You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by cd...@apache.org on 2021/02/28 12:43:04 UTC

[royale-asjs] branch feature/distribution-allignment updated (26c96b5 -> 7dd4295)

This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a change to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git.


    from 26c96b5  - Re-imported the current versions of Ant distribution descriptors and adjusted them for a maven directory structure.
     new 3716110  added in Accordion
     new b922c81  in mx DataGridColumn itemtoDataTip added
     new a8f6264  autoload property added in mx Image
     new b358cc7  autoLayout property added to mx container
     new 9ac5449  jewel-daterangerestriction: Fix logic when both min and max dates are set
     new 2d43f40  tour-de-jewel: reduce code on h list
     new de7c335  jewel-tilelayouts: perform layout when changed at runtime
     new 9371acb  jewel-tilelayouts: perform layout when changed at runtime 2
     new f6f1fe4  Formatting tidyup and avoid duplicate var declaration warning
     new e6bca55  reduce build noise, avoid warnings for (presumably) intentional 'this within closure' usage (matches maven build)
     new 5e6a287  fix typo
     new a0591e7  AppWithLib: start of an example that uses a library. This is just the app part, created with the maven archetype on the fly
     new 31a7933  maven-archetype: new "royale-jewel-library-archetype" to generate libraries quickly
     new f7b3d36  add "royale-jewel-library-archetype" to modules
     new 57a5710  royale-jewel-library-archetype: few namespace fixes
     new b26894c  SampleLib: The lib part to use with AppWithLib example app, generated with the maven archetype "royale-jewel-library-archetype"
     new db3e22e  AppWithLib: add SampleLib dependency to AppWithLib example app
     new 957e6a6  moving new example from examples/jewel to crux, since it will have some crux code
     new 7dd4295  - Hopefully fixed the ACE build

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


Summary of changes:
 archetypes/pom.xml                                 |   1 +
 archetypes/royale-jewel-library-archetype/pom.xml  |  45 +++
 .../META-INF/archetype-post-generate.groovy        |   0
 .../META-INF/maven/archetype-metadata.xml          |  87 ++++++
 .../archetype-resources/.vscode/tasks.json         |   0
 .../__artifactId__.mxml.as3proj                    |   0
 .../resources/archetype-resources/asconfig.json    |  58 ++++
 .../src/main/resources/archetype-resources/pom.xml | 312 +++++++++++++++++++++
 .../__artifactIdLowerCase__-as-manifest.xml        |  26 ++
 .../resources/__artifactIdLowerCase__-manifest.xml |  26 ++
 .../src/main/royale/SampleClass.as                 |  31 ++
 .../src/main/royale/__artifactId__Classes.as       |  46 +++
 .../archetype-resources/src/main/sass/_global.sass |  25 ++
 .../src/main/sass/default.sass                     |   0
 distribution/pom.xml                               |   4 +-
 examples/crux/AppWithLib/AppWithLib.mxml.as3proj   | 117 ++++++++
 examples/crux/AppWithLib/asconfig.json             |  44 +++
 examples/crux/AppWithLib/pom.xml                   | 202 +++++++++++++
 .../crux/AppWithLib/src/main/resources/default.css |  21 ++
 .../resources/jewel-example-index-template.html    |   0
 .../AppWithLib/src/main/royale/AppWithLib.mxml     |  51 ++++
 .../org/apache/royale/examples}/config/Beans.mxml  |   0
 .../org/apache/royale/examples/events/SomeEvent.as |  44 +++
 .../org/apache/royale/examples/views/MainView.mxml |  40 +++
 .../crux/AppWithLib/src/main/sass/_global.sass     |  26 ++
 .../AppWithLib}/src/main/sass/default.sass         |   0
 examples/crux/SampleLib/SampleLib.mxml.as3proj     | 117 ++++++++
 examples/crux/SampleLib/asconfig.json              |  58 ++++
 examples/crux/SampleLib/pom.xml                    | 307 ++++++++++++++++++++
 .../crux/SampleLib/src/main/resources/default.css  |  20 ++
 .../src/main/resources/samplelib-as-manifest.xml   |  26 ++
 .../src/main/resources/samplelib-manifest.xml      |  27 ++
 .../SampleLib/src/main/royale/SampleLibClasses.as  |  46 +++
 .../org/apache/royale/examples/SampleClass.as      |  31 ++
 examples/crux/SampleLib/src/main/sass/_global.sass |  25 ++
 .../SampleLib}/src/main/sass/default.sass          |   0
 .../src/main/royale/ListPlayGround.mxml            |   4 +-
 .../src/main/config/compile-js-config.xml          |   3 +
 frameworks/projects/Ace/pom.xml                    |   3 +-
 .../org/apache/royale/core/BrowserOrientation.as   |   2 +-
 .../datechooser/DateChooserDateRangeRestriction.as |   6 +-
 .../jewel/beads/layouts/TileHorizontalLayout.as    |   1 +
 .../jewel/beads/layouts/TileVerticalLayout.as      |   3 +-
 .../src/main/config/compile-swf-config.xml         |   3 +
 .../src/main/royale/mx/containers/Accordion.as     |  69 +++++
 .../MXRoyale/src/main/royale/mx/controls/Image.as  |  19 ++
 .../mx/controls/dataGridClasses/DataGridColumn.as  |  52 ++++
 .../VirtualDataItemRendererFactoryForIListData.as  |  11 +-
 .../MXRoyale/src/main/royale/mx/core/Container.as  |  63 +++++
 frameworks/projects/pom.xml                        |   2 +-
 50 files changed, 2087 insertions(+), 17 deletions(-)
 create mode 100644 archetypes/royale-jewel-library-archetype/pom.xml
 copy archetypes/{royale-jewel-application-archetype => royale-jewel-library-archetype}/src/main/resources/META-INF/archetype-post-generate.groovy (100%)
 create mode 100644 archetypes/royale-jewel-library-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
 copy archetypes/{royale-jewel-application-archetype => royale-jewel-library-archetype}/src/main/resources/archetype-resources/.vscode/tasks.json (100%)
 copy archetypes/{royale-jewel-application-archetype => royale-jewel-library-archetype}/src/main/resources/archetype-resources/__artifactId__.mxml.as3proj (100%)
 create mode 100644 archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/asconfig.json
 create mode 100644 archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/pom.xml
 create mode 100644 archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/resources/__artifactIdLowerCase__-as-manifest.xml
 create mode 100644 archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/resources/__artifactIdLowerCase__-manifest.xml
 create mode 100644 archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/royale/SampleClass.as
 create mode 100644 archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/royale/__artifactId__Classes.as
 create mode 100644 archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/sass/_global.sass
 copy {examples/jewel/todomvc => archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources}/src/main/sass/default.sass (100%)
 create mode 100644 examples/crux/AppWithLib/AppWithLib.mxml.as3proj
 create mode 100644 examples/crux/AppWithLib/asconfig.json
 create mode 100644 examples/crux/AppWithLib/pom.xml
 create mode 100644 examples/crux/AppWithLib/src/main/resources/default.css
 copy examples/{blog/BE0016_Live_Editing_DataGrid => crux/AppWithLib}/src/main/resources/jewel-example-index-template.html (100%)
 create mode 100644 examples/crux/AppWithLib/src/main/royale/AppWithLib.mxml
 copy {archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/__application__/src/main/royale => examples/crux/AppWithLib/src/main/royale/org/apache/royale/examples}/config/Beans.mxml (100%)
 create mode 100644 examples/crux/AppWithLib/src/main/royale/org/apache/royale/examples/events/SomeEvent.as
 create mode 100644 examples/crux/AppWithLib/src/main/royale/org/apache/royale/examples/views/MainView.mxml
 create mode 100644 examples/crux/AppWithLib/src/main/sass/_global.sass
 copy examples/{jewel/todomvc => crux/AppWithLib}/src/main/sass/default.sass (100%)
 create mode 100644 examples/crux/SampleLib/SampleLib.mxml.as3proj
 create mode 100644 examples/crux/SampleLib/asconfig.json
 create mode 100644 examples/crux/SampleLib/pom.xml
 create mode 100644 examples/crux/SampleLib/src/main/resources/default.css
 create mode 100644 examples/crux/SampleLib/src/main/resources/samplelib-as-manifest.xml
 create mode 100644 examples/crux/SampleLib/src/main/resources/samplelib-manifest.xml
 create mode 100644 examples/crux/SampleLib/src/main/royale/SampleLibClasses.as
 create mode 100644 examples/crux/SampleLib/src/main/royale/org/apache/royale/examples/SampleClass.as
 create mode 100644 examples/crux/SampleLib/src/main/sass/_global.sass
 copy examples/{jewel/todomvc => crux/SampleLib}/src/main/sass/default.sass (100%)


[royale-asjs] 17/19: AppWithLib: add SampleLib dependency to AppWithLib example app

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit db3e22e6a8a991cb7c7dc76edd088029d1b492d8
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sat Feb 27 17:38:18 2021 +0100

    AppWithLib: add SampleLib dependency to AppWithLib example app
---
 examples/jewel/AppWithLib/asconfig.json                   |  9 ++++++++-
 examples/jewel/AppWithLib/pom.xml                         |  8 ++++++++
 examples/jewel/AppWithLib/src/main/resources/default.css  |  1 +
 .../royale/org/apache/royale/examples/views/MainView.mxml | 15 ++++++++++++++-
 examples/jewel/AppWithLib/src/main/sass/_global.sass      |  1 +
 5 files changed, 32 insertions(+), 2 deletions(-)

diff --git a/examples/jewel/AppWithLib/asconfig.json b/examples/jewel/AppWithLib/asconfig.json
index c7cd803..040debd 100644
--- a/examples/jewel/AppWithLib/asconfig.json
+++ b/examples/jewel/AppWithLib/asconfig.json
@@ -22,7 +22,14 @@
         "debug": false,
         "targets": ["JSRoyale"],
         "source-path": [
-            "src/main/resources"
+            "src/main/resources",
+            "../SampleLib/src/main/royale/"
+        ],
+        "namespace": [
+            {
+                "uri": "library://ns.apache.org/royale/samplelib",
+                "manifest": "../SampleLib/src/main/resources/samplelib-manifest.xml"
+            }
         ],
         "source-map": true,
         "html-template": "src/main/resources/jewel-example-index-template.html",
diff --git a/examples/jewel/AppWithLib/pom.xml b/examples/jewel/AppWithLib/pom.xml
index dbbb1b4..03b87df 100644
--- a/examples/jewel/AppWithLib/pom.xml
+++ b/examples/jewel/AppWithLib/pom.xml
@@ -100,6 +100,14 @@
 
   <dependencies>
     <dependency>
+      <groupId>org.apache.royale.examples</groupId>
+      <artifactId>SampleLib</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+    
+    <dependency>
       <groupId>org.apache.royale.framework</groupId>
       <artifactId>Core</artifactId>
       <version>0.9.8-SNAPSHOT</version>
diff --git a/examples/jewel/AppWithLib/src/main/resources/default.css b/examples/jewel/AppWithLib/src/main/resources/default.css
index 7497f0f..921f072 100644
--- a/examples/jewel/AppWithLib/src/main/resources/default.css
+++ b/examples/jewel/AppWithLib/src/main/resources/default.css
@@ -16,5 +16,6 @@
  */
 @namespace "http://www.w3.org/1999/xhtml";
 @namespace j "library://ns.apache.org/royale/jewel";
+@namespace j "library://ns.apache.org/royale/samplelib";
 
 /*# sourceMappingURL=default.css.map */
diff --git a/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/views/MainView.mxml b/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/views/MainView.mxml
index fcb3f77..8f4c888 100644
--- a/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/views/MainView.mxml
+++ b/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/views/MainView.mxml
@@ -19,8 +19,21 @@ limitations under the License.
 -->
 <j:View xmlns:fx="http://ns.adobe.com/mxml/2009"
     xmlns:j="library://ns.apache.org/royale/jewel"
-    xmlns:js="library://ns.apache.org/royale/basic">
+    xmlns:js="library://ns.apache.org/royale/basic"
+    initComplete="initView()">
     
+    <fx:Script>
+        <![CDATA[
+            import org.apache.royale.examples.SampleClass;
+
+            public function initView():void
+            {
+                var s:SampleClass = new SampleClass;
+                s.doSomething();
+            }
+        ]]>
+    </fx:Script>
+
     <j:VGroup>
         <j:Label text="Hello Jewel + Crux!"/>
     </j:VGroup>
diff --git a/examples/jewel/AppWithLib/src/main/sass/_global.sass b/examples/jewel/AppWithLib/src/main/sass/_global.sass
index 4245094..450aa02 100644
--- a/examples/jewel/AppWithLib/src/main/sass/_global.sass
+++ b/examples/jewel/AppWithLib/src/main/sass/_global.sass
@@ -19,6 +19,7 @@
 
 @namespace "http://www.w3.org/1999/xhtml"
 @namespace j "library://ns.apache.org/royale/jewel"
+@namespace j "library://ns.apache.org/royale/samplelib"
 
 // .jewel
 //     .label


[royale-asjs] 18/19: moving new example from examples/jewel to crux, since it will have some crux code

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 957e6a6fb862e1b29b08cb03259974fb91ac3629
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sat Feb 27 17:55:57 2021 +0100

    moving new example from examples/jewel to crux, since it will have some crux code
---
 .../{jewel => crux}/AppWithLib/AppWithLib.mxml.as3proj |  0
 examples/{jewel => crux}/AppWithLib/asconfig.json      |  0
 examples/{jewel => crux}/AppWithLib/pom.xml            |  8 +++-----
 .../AppWithLib/src/main/resources/default.css          |  0
 .../main/resources/jewel-example-index-template.html   |  0
 .../AppWithLib/src/main/royale/AppWithLib.mxml         |  0
 .../org/apache/royale/examples/config/Beans.mxml       |  0
 .../org/apache/royale/examples/events/SomeEvent.as     |  0
 .../org/apache/royale/examples/views/MainView.mxml     |  0
 .../AppWithLib/src/main/sass/_global.sass              |  0
 .../AppWithLib}/src/main/sass/default.sass             |  0
 .../{jewel => crux}/SampleLib/SampleLib.mxml.as3proj   |  0
 examples/{jewel => crux}/SampleLib/asconfig.json       |  0
 examples/{jewel => crux}/SampleLib/pom.xml             | 18 ++++++++++++------
 .../SampleLib/src/main/resources/default.css           |  0
 .../src/main/resources/samplelib-as-manifest.xml       |  0
 .../src/main/resources/samplelib-manifest.xml          |  1 +
 .../SampleLib/src/main/royale/SampleLibClasses.as      |  0
 .../royale/org/apache/royale/examples/SampleClass.as   |  0
 .../SampleLib/src/main/sass/_global.sass               |  0
 .../SampleLib}/src/main/sass/default.sass              |  0
 21 files changed, 16 insertions(+), 11 deletions(-)

diff --git a/examples/jewel/AppWithLib/AppWithLib.mxml.as3proj b/examples/crux/AppWithLib/AppWithLib.mxml.as3proj
similarity index 100%
rename from examples/jewel/AppWithLib/AppWithLib.mxml.as3proj
rename to examples/crux/AppWithLib/AppWithLib.mxml.as3proj
diff --git a/examples/jewel/AppWithLib/asconfig.json b/examples/crux/AppWithLib/asconfig.json
similarity index 100%
rename from examples/jewel/AppWithLib/asconfig.json
rename to examples/crux/AppWithLib/asconfig.json
diff --git a/examples/jewel/AppWithLib/pom.xml b/examples/crux/AppWithLib/pom.xml
similarity index 97%
rename from examples/jewel/AppWithLib/pom.xml
rename to examples/crux/AppWithLib/pom.xml
index 03b87df..1196525 100644
--- a/examples/jewel/AppWithLib/pom.xml
+++ b/examples/crux/AppWithLib/pom.xml
@@ -23,13 +23,11 @@
   <modelVersion>4.0.0</modelVersion>
 
   <parent>
-    <groupId>org.apache</groupId>
-    <artifactId>apache</artifactId>
-    <version>23</version>
-    <relativePath />
+    <groupId>org.apache.royale.examples</groupId>
+    <artifactId>examples-crux</artifactId>
+    <version>0.9.8-SNAPSHOT</version>
   </parent>
 
-  <groupId>org.apache.royale.examples</groupId>
   <artifactId>AppWithLib</artifactId>
   <version>0.9.8-SNAPSHOT</version>
   <packaging>swf</packaging>
diff --git a/examples/jewel/AppWithLib/src/main/resources/default.css b/examples/crux/AppWithLib/src/main/resources/default.css
similarity index 100%
rename from examples/jewel/AppWithLib/src/main/resources/default.css
rename to examples/crux/AppWithLib/src/main/resources/default.css
diff --git a/examples/jewel/AppWithLib/src/main/resources/jewel-example-index-template.html b/examples/crux/AppWithLib/src/main/resources/jewel-example-index-template.html
similarity index 100%
rename from examples/jewel/AppWithLib/src/main/resources/jewel-example-index-template.html
rename to examples/crux/AppWithLib/src/main/resources/jewel-example-index-template.html
diff --git a/examples/jewel/AppWithLib/src/main/royale/AppWithLib.mxml b/examples/crux/AppWithLib/src/main/royale/AppWithLib.mxml
similarity index 100%
rename from examples/jewel/AppWithLib/src/main/royale/AppWithLib.mxml
rename to examples/crux/AppWithLib/src/main/royale/AppWithLib.mxml
diff --git a/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/config/Beans.mxml b/examples/crux/AppWithLib/src/main/royale/org/apache/royale/examples/config/Beans.mxml
similarity index 100%
rename from examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/config/Beans.mxml
rename to examples/crux/AppWithLib/src/main/royale/org/apache/royale/examples/config/Beans.mxml
diff --git a/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/events/SomeEvent.as b/examples/crux/AppWithLib/src/main/royale/org/apache/royale/examples/events/SomeEvent.as
similarity index 100%
rename from examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/events/SomeEvent.as
rename to examples/crux/AppWithLib/src/main/royale/org/apache/royale/examples/events/SomeEvent.as
diff --git a/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/views/MainView.mxml b/examples/crux/AppWithLib/src/main/royale/org/apache/royale/examples/views/MainView.mxml
similarity index 100%
rename from examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/views/MainView.mxml
rename to examples/crux/AppWithLib/src/main/royale/org/apache/royale/examples/views/MainView.mxml
diff --git a/examples/jewel/AppWithLib/src/main/sass/_global.sass b/examples/crux/AppWithLib/src/main/sass/_global.sass
similarity index 100%
rename from examples/jewel/AppWithLib/src/main/sass/_global.sass
rename to examples/crux/AppWithLib/src/main/sass/_global.sass
diff --git a/examples/jewel/SampleLib/src/main/sass/default.sass b/examples/crux/AppWithLib/src/main/sass/default.sass
similarity index 100%
rename from examples/jewel/SampleLib/src/main/sass/default.sass
rename to examples/crux/AppWithLib/src/main/sass/default.sass
diff --git a/examples/jewel/SampleLib/SampleLib.mxml.as3proj b/examples/crux/SampleLib/SampleLib.mxml.as3proj
similarity index 100%
rename from examples/jewel/SampleLib/SampleLib.mxml.as3proj
rename to examples/crux/SampleLib/SampleLib.mxml.as3proj
diff --git a/examples/jewel/SampleLib/asconfig.json b/examples/crux/SampleLib/asconfig.json
similarity index 100%
rename from examples/jewel/SampleLib/asconfig.json
rename to examples/crux/SampleLib/asconfig.json
diff --git a/examples/jewel/SampleLib/pom.xml b/examples/crux/SampleLib/pom.xml
similarity index 96%
rename from examples/jewel/SampleLib/pom.xml
rename to examples/crux/SampleLib/pom.xml
index 2508c8c..822480f 100644
--- a/examples/jewel/SampleLib/pom.xml
+++ b/examples/crux/SampleLib/pom.xml
@@ -23,13 +23,11 @@
   <modelVersion>4.0.0</modelVersion>
 
   <parent>
-    <groupId>org.apache</groupId>
-    <artifactId>apache</artifactId>
-    <version>23</version>
-    <relativePath />
+    <groupId>org.apache.royale.examples</groupId>
+    <artifactId>examples-crux</artifactId>
+    <version>0.9.8-SNAPSHOT</version>
   </parent>
-
-  <groupId>org.apache.royale.examples</groupId>
+  
   <artifactId>SampleLib</artifactId>
   <version>0.9.8-SNAPSHOT</version>
   <packaging>swc</packaging>
@@ -223,6 +221,14 @@
     <!-- Add dependencies you might be needing here -->
     <dependency>
       <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Crux</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
       <artifactId>Core</artifactId>
       <version>0.9.8-SNAPSHOT</version>
       <type>swc</type>
diff --git a/examples/jewel/SampleLib/src/main/resources/default.css b/examples/crux/SampleLib/src/main/resources/default.css
similarity index 100%
rename from examples/jewel/SampleLib/src/main/resources/default.css
rename to examples/crux/SampleLib/src/main/resources/default.css
diff --git a/examples/jewel/SampleLib/src/main/resources/samplelib-as-manifest.xml b/examples/crux/SampleLib/src/main/resources/samplelib-as-manifest.xml
similarity index 100%
rename from examples/jewel/SampleLib/src/main/resources/samplelib-as-manifest.xml
rename to examples/crux/SampleLib/src/main/resources/samplelib-as-manifest.xml
diff --git a/examples/jewel/SampleLib/src/main/resources/samplelib-manifest.xml b/examples/crux/SampleLib/src/main/resources/samplelib-manifest.xml
similarity index 90%
rename from examples/jewel/SampleLib/src/main/resources/samplelib-manifest.xml
rename to examples/crux/SampleLib/src/main/resources/samplelib-manifest.xml
index 523a781..351c690 100644
--- a/examples/jewel/SampleLib/src/main/resources/samplelib-manifest.xml
+++ b/examples/crux/SampleLib/src/main/resources/samplelib-manifest.xml
@@ -21,6 +21,7 @@
 
 <componentPackage>
 
+  <!-- <component id="Beans" class="org.apache.royale.examples.Beans"/> -->
   <component id="SampleClass" class="org.apache.royale.examples.SampleClass"/>
 
 </componentPackage>
\ No newline at end of file
diff --git a/examples/jewel/SampleLib/src/main/royale/SampleLibClasses.as b/examples/crux/SampleLib/src/main/royale/SampleLibClasses.as
similarity index 100%
rename from examples/jewel/SampleLib/src/main/royale/SampleLibClasses.as
rename to examples/crux/SampleLib/src/main/royale/SampleLibClasses.as
diff --git a/examples/jewel/SampleLib/src/main/royale/org/apache/royale/examples/SampleClass.as b/examples/crux/SampleLib/src/main/royale/org/apache/royale/examples/SampleClass.as
similarity index 100%
rename from examples/jewel/SampleLib/src/main/royale/org/apache/royale/examples/SampleClass.as
rename to examples/crux/SampleLib/src/main/royale/org/apache/royale/examples/SampleClass.as
diff --git a/examples/jewel/SampleLib/src/main/sass/_global.sass b/examples/crux/SampleLib/src/main/sass/_global.sass
similarity index 100%
rename from examples/jewel/SampleLib/src/main/sass/_global.sass
rename to examples/crux/SampleLib/src/main/sass/_global.sass
diff --git a/examples/jewel/AppWithLib/src/main/sass/default.sass b/examples/crux/SampleLib/src/main/sass/default.sass
similarity index 100%
rename from examples/jewel/AppWithLib/src/main/sass/default.sass
rename to examples/crux/SampleLib/src/main/sass/default.sass


[royale-asjs] 05/19: jewel-daterangerestriction: Fix logic when both min and max dates are set

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 9ac5449c596113bae00a040e0575dd2312efc97b
Author: Brian Raymes <br...@teotech.com>
AuthorDate: Thu Feb 25 11:50:19 2021 -0800

    jewel-daterangerestriction: Fix logic when both min and max dates are set
---
 .../beads/controls/datechooser/DateChooserDateRangeRestriction.as   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/datechooser/DateChooserDateRangeRestriction.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/datechooser/DateChooserDateRangeRestriction.as
index 1992f99..7036ddc 100755
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/datechooser/DateChooserDateRangeRestriction.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/datechooser/DateChooserDateRangeRestriction.as
@@ -223,7 +223,7 @@ package org.apache.royale.jewel.beads.controls.datechooser
 			if (model.viewState == 0) // Day view
 			{
 				if (minDate && maxDate)
-					disabled.disabled = isLessThanDay(rendererDate, minDate) && isLessThanDay(maxDate, rendererDate);
+					disabled.disabled = isLessThanDay(rendererDate, minDate) || isLessThanDay(maxDate, rendererDate);
 				else if (minDate)
 					disabled.disabled = isLessThanDay(rendererDate, minDate);
 				else if (maxDate)
@@ -232,7 +232,7 @@ package org.apache.royale.jewel.beads.controls.datechooser
 			else if (model.viewState == 1) // Year view
 			{
 				if (minDate && maxDate)
-					disabled.disabled = isLessThanYear(rendererDate, minDate) && isLessThanYear(maxDate, rendererDate);
+					disabled.disabled = isLessThanYear(rendererDate, minDate) || isLessThanYear(maxDate, rendererDate);
 				else if (minDate)
 					disabled.disabled = isLessThanYear(rendererDate, minDate);
 				else if (maxDate)
@@ -241,7 +241,7 @@ package org.apache.royale.jewel.beads.controls.datechooser
 			else if (model.viewState == 2) // Month view
 			{
 				if (minDate && maxDate)
-					disabled.disabled = isLessThanMonth(rendererDate, minDate) && isLessThanMonth(maxDate, rendererDate);
+					disabled.disabled = isLessThanMonth(rendererDate, minDate) || isLessThanMonth(maxDate, rendererDate);
 				else if (minDate)
 					disabled.disabled = isLessThanMonth(rendererDate, minDate);
 				else if (maxDate)


[royale-asjs] 16/19: SampleLib: The lib part to use with AppWithLib example app, generated with the maven archetype "royale-jewel-library-archetype"

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit b26894c44a75d177126a4f4b68e50181e8b6928f
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sat Feb 27 16:58:29 2021 +0100

    SampleLib: The lib part to use with AppWithLib example app, generated with the maven archetype "royale-jewel-library-archetype"
---
 examples/jewel/SampleLib/SampleLib.mxml.as3proj    | 117 ++++++++
 examples/jewel/SampleLib/asconfig.json             |  58 ++++
 examples/jewel/SampleLib/pom.xml                   | 301 +++++++++++++++++++++
 .../jewel/SampleLib/src/main/resources/default.css |  20 ++
 .../src/main/resources/samplelib-as-manifest.xml   |  26 ++
 .../src/main/resources/samplelib-manifest.xml      |  26 ++
 .../SampleLib/src/main/royale/SampleLibClasses.as  |  46 ++++
 .../org/apache/royale/examples/SampleClass.as      |  31 +++
 .../jewel/SampleLib/src/main/sass/_global.sass     |  25 ++
 .../jewel/SampleLib/src/main/sass/default.sass     |  21 ++
 10 files changed, 671 insertions(+)

diff --git a/examples/jewel/SampleLib/SampleLib.mxml.as3proj b/examples/jewel/SampleLib/SampleLib.mxml.as3proj
new file mode 100644
index 0000000..2a85f03
--- /dev/null
+++ b/examples/jewel/SampleLib/SampleLib.mxml.as3proj
@@ -0,0 +1,117 @@
+<!--
+
+  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.
+
+-->
+<?xml version="1.0" encoding="utf-8"?>
+<project>
+  <output>
+    <movie width="800"/>
+    <movie disabled="False"/>
+    <movie path="bin-debug/SampleLib.swf"/>
+    <movie platform="Flash Player"/>
+    <movie fps="60"/>
+    <movie version="11"/>
+    <movie height="600"/>
+    <movie background="#FFFFFF"/>
+    <movie input=""/>
+  </output>
+  &lt;!-- Other classes to be compiled into your SWF --&gt;
+  <jsOutput>
+    <option path="/Users/christofer.dutz/Library/Containers/com.moonshine-ide/Data/Documents/NewJavaScriptBrowserProject"/>
+  </jsOutput>
+  <classpaths>
+    <class path="src"/>
+  </classpaths>
+  <moonshineResourcePaths></moonshineResourcePaths>
+  <moonshineNativeExtensionPaths></moonshineNativeExtensionPaths>
+  <build>
+    <option compilerConstants=""/>
+    <option strict="True"/>
+    <option useResourceBundleMetadata="True"/>
+    <option allowSourcePathOverlap="False"/>
+    <option sourceMap="True"/>
+    <option showDeprecationWarnings="True"/>
+    <option benchmark="False"/>
+    <option showBindingWarnings="True"/>
+    <option warnings="True"/>
+    <option customSDK="/Users/christofer.dutz/Downloads/MoonshineSDKs/Royale_SDK/apache-royale-0.9.8-bin-js/royale-asjs"/>
+    <option showActionScriptWarnings="True"/>
+    <option antBuildPath="build/build.xml"/>
+    <option verboseStackTraces="False"/>
+    <option loadConfig=""/>
+    <option additional="-theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css -html-template=src/resources/jewel-index-template.html"/>
+    <option linkReport=""/>
+    <option optimize="False"/>
+    <option locale=""/>
+    <option accessible="False"/>
+    <option staticLinkRSL="False"/>
+    <option showUnusedTypeSelectorWarnings="True"/>
+    <option useNetwork="True"/>
+    <option es="False"/>
+  </build>
+  <mavenBuild>
+    <option settingsFilePath=""/>
+    <option mavenBuildPath="/Users/christofer.dutz/Library/Containers/com.moonshine-ide/Data/Documents/NewJavaScriptBrowserProject"/>
+    <option commandLine=""/>
+    <actions>
+      <action action="install" actionName="Build"/>
+      <action action="clean package" actionName="Clean and package"/>
+      <action action="clean" actionName="Clean"/>
+      <action action="clean install" actionName="Clean and Build"/>
+      <action action="war:exploded" actionName="Exploded"/>
+    </actions>
+  </mavenBuild>
+  <includeLibraries></includeLibraries>
+  <libraryPaths></libraryPaths>
+  <externalLibraryPaths></externalLibraryPaths>
+  <rslPaths></rslPaths>
+  <intrinsics>
+    <element path="Library/AS3/frameworks/Flex4"/>
+    <element path="Library\AS3\frameworks\Flex4"/>
+    <element path="Library\AS3\frameworks\Flex4"/>
+  </intrinsics>
+  <library></library>
+  <compileTargets>
+    <compile path="src/NewJavaScriptBrowserProject.mxml"/>
+  </compileTargets>
+  <hiddenPaths></hiddenPaths>
+  <preBuildCommand>null</preBuildCommand>
+  <postBuildCommand alwaysRun="False">null</postBuildCommand>
+  <trustSVNCertificate>False</trustSVNCertificate>
+  <options>
+    <option testMovieCommand=""/>
+    <option defaultBuildTargets=""/>
+    <option isRoyale="True"/>
+    <option isExportedToExistingSource="False"/>
+    <option showHiddenPaths="False"/>
+    <option isPrimeFacesVisualEditor="False"/>
+    <option testMovie=""/>
+    <option visualEditorExportPath=""/>
+  </options>
+  <moonshineRunCustomization>
+    <option launchMethod="Simulator"/>
+    <option urlToLaunch="/Users/christofer.dutz/Library/Containers/com.moonshine-ide/Data/Documents/NewJavaScriptBrowserProject/bin/js-debug/index.html"/>
+    <option targetPlatform="5"/>
+    <option projectType="2"/>
+    <option customUrlToLaunch=""/>
+    <option deviceSimulator="null"/>
+    <deviceSimulator>null</deviceSimulator>
+    <certAndroid>null</certAndroid>
+    <certIos>null</certIos>
+    <certIosProvisioning>null</certIosProvisioning>
+  </moonshineRunCustomization>
+</project>
\ No newline at end of file
diff --git a/examples/jewel/SampleLib/asconfig.json b/examples/jewel/SampleLib/asconfig.json
new file mode 100644
index 0000000..cdedb7a
--- /dev/null
+++ b/examples/jewel/SampleLib/asconfig.json
@@ -0,0 +1,58 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+{
+    "config": "royale",
+    "type": "lib",
+    "compilerOptions": {
+        "debug": true,
+        "targets": ["JSRoyale"],
+        "source-path": [
+            "src/main/royale"
+        ],
+        "include-namespaces": [
+            "library://ns.apache.org/royale/samplelib"
+        ],
+        "namespace": [
+            {
+                "uri": "library://ns.apache.org/royale/samplelib",
+                "manifest": "src/main/resources/samplelib-manifest.xml"
+            }
+            // ,{
+            //     "uri": "library://ns.apache.org/royale/samplelib",
+            //     "manifest": "src/main/resources/samplelib-as-manifest.xml"
+            // }
+        ],
+        "include-classes": [
+            "SampleLibClasses"
+        ],
+        "include-sources": [
+            "src/main/royale"
+        ],
+        // "library-path": [
+        //     "${royalelib}/js/libs/MXRoyaleJS.swc"
+        // ],
+        // "js-library-path": [
+        //     "${royalelib}/js/libs/MXRoyaleJS.swc"
+        // ],
+        "source-map": true,
+        "output": "bin/SampleLib.swc"
+    }
+    // ,
+    // "additionalOptions": "-js-dynamic-access-unknown-members=true"
+}
diff --git a/examples/jewel/SampleLib/pom.xml b/examples/jewel/SampleLib/pom.xml
new file mode 100644
index 0000000..2508c8c
--- /dev/null
+++ b/examples/jewel/SampleLib/pom.xml
@@ -0,0 +1,301 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  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.
+
+-->
+<project xmlns="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">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache</groupId>
+    <artifactId>apache</artifactId>
+    <version>23</version>
+    <relativePath />
+  </parent>
+
+  <groupId>org.apache.royale.examples</groupId>
+  <artifactId>SampleLib</artifactId>
+  <version>0.9.8-SNAPSHOT</version>
+  <packaging>swc</packaging>
+
+  <properties>
+    <compiler.debug>true</compiler.debug>
+    <royale.framework.version>0.9.8-SNAPSHOT</royale.framework.version>
+    <compiler.output-dir-debug>${basedir}/target/javascript/bin/js-debug</compiler.output-dir-debug>
+    <compiler.output-dir-release>${basedir}/target/javascript/bin/js-release</compiler.output-dir-release>
+  </properties>
+
+  <build>
+    <sourceDirectory>src/main/royale</sourceDirectory>
+
+    <pluginManagement>
+      <plugins>
+        <!-- Copy the resources to the compiler output directory -->
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-resources-plugin</artifactId>
+          <executions>
+            <execution>
+              <id>copy-resources-debug</id>
+              <phase>validate</phase>
+              <goals>
+                <goal>copy-resources</goal>
+              </goals>
+              <configuration>
+                <outputDirectory>${compiler.output-dir-debug}</outputDirectory>
+                <resources>
+                  <resource>
+                    <directory>src/main/resources</directory>
+                    <filtering>true</filtering>
+                  </resource>
+                </resources>
+              </configuration>
+            </execution>
+            <execution>
+              <id>copy-resources-release</id>
+              <phase>validate</phase>
+              <goals>
+                <goal>copy-resources</goal>
+              </goals>
+              <configuration>
+                <!-- Copy the assets to the assets output directory -->
+                <outputDirectory>${compiler.output-dir-release}/assets</outputDirectory>
+                <resources>
+                  <resource>
+                    <directory>src/main/resources/js</directory>
+                    <filtering>true</filtering>
+                  </resource>
+                </resources>
+              </configuration>
+            </execution>
+          </executions>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+
+    <plugins>
+      <plugin>
+        <groupId>org.apache.royale.compiler</groupId>
+        <artifactId>royale-maven-plugin</artifactId>
+        <version>0.9.8-SNAPSHOT</version>
+        <extensions>true</extensions>
+        <configuration>
+          <targets>JSRoyale</targets>
+          <namespaces>
+            <namespace>
+              <uri>library://ns.apache.org/royale/samplelib</uri>
+              <manifest>${project.basedir}/src/main/resources/samplelib-manifest.xml</manifest>
+            </namespace>
+            <!-- <namespace>
+              <type>as</type>
+              <uri>library://ns.apache.org/royale/samplelib</uri>
+              <manifest>${basedir}/src/main/resources/samplelib-as-manifest.xml</manifest>
+            </namespace> -->
+          </namespaces>
+          <includeClasses>
+            <includeClass>SampleLibClasses</includeClass>
+          </includeClasses>
+          <includeFiles>
+            <include-file>
+              <name>default.css</name>
+              <path>../src/main/resources/default.css</path>
+            </include-file>
+            <!-- Uncomment To Include Assets like Images -->
+            <!-- <include-file>
+              <name>assets/*</name>
+              <path>../src/main/resources/assets/*</path>
+            </include-file>
+            <include-file>
+              <name>js/*</name>
+              <path>../src/main/resources/js/*</path>
+            </include-file> -->
+          </includeFiles>
+          <!-- <includeLookupOnly>true</includeLookupOnly>
+          <allowSubclassOverrides>true</allowSubclassOverrides>
+          <skipExtern>true</skipExtern>
+          <skipAS>true</skipAS> -->
+          <!-- <additionalCompilerOptions>
+            -source-map=true;
+            -source-map-source-root=/frameworks/projects/Jewel/src/main/royale/
+          </additionalCompilerOptions> -->
+        </configuration>
+        <dependencies>
+          <dependency>
+            <groupId>org.apache.royale.compiler</groupId>
+            <artifactId>compiler-jx</artifactId>
+            <version>0.9.8-SNAPSHOT</version>
+          </dependency>
+        </dependencies>
+      </plugin>
+      <plugin>
+        <groupId>nl.geodienstencentrum.maven</groupId>
+        <artifactId>sass-maven-plugin</artifactId>
+        <version>3.7.2</version>
+        <configuration>
+          <resources>
+            <resource>
+              <source>
+                <directory>${basedir}/src/main/sass</directory>
+                <includes>
+                  <include>**/*.sass</include>
+                </includes>
+              </source>
+              <destination>${basedir}/src/main/resources</destination>
+            </resource>
+          </resources>
+        </configuration>
+        <executions>
+          <execution>
+            <id>generate-css-using-sass</id>
+            <goals>
+                <goal>update-stylesheets</goal>
+            </goals>
+            <phase>generate-resources</phase>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>com.google.code.maven-replacer-plugin</groupId>
+        <artifactId>replacer</artifactId>
+        <version>1.5.3</version>
+        <executions>
+          <execution>
+            <phase>generate-resources</phase>
+            <goals>
+              <goal>replace</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <includes>
+            <include>${basedir}/src/main/resources/**/*.css</include>
+          </includes>
+          <regex>false</regex>
+          <replacements>
+            <replacement>
+              <token>@@ZERO_WIDTH_SPACE</token>
+              <value>\200b</value>
+            </replacement>
+            <replacement>
+              <token>@@NON_BREAKING_SPACE</token>
+              <value>\0a</value>
+            </replacement>
+          </replacements>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+  <dependencies>
+    <!-- For flash compilation, we need the airglobal or playerglobal -->
+    <dependency>
+      <groupId>com.adobe.air.framework</groupId>
+      <artifactId>airglobal</artifactId>
+      <version>20.0</version>
+      <type>swc</type>
+      <scope>provided</scope>
+    </dependency>
+    <!-- For JavaScript compilation, we need some other base classes -->
+    <dependency>
+      <groupId>org.apache.royale.typedefs</groupId>
+      <artifactId>royale-typedefs-gcl</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>typedefs</classifier>
+    </dependency>
+
+    <!-- Add dependencies you might be needing here -->
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Core</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Basic</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Jewel</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Icons</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+
+    <!-- Needed for JavaScript compilation -->
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>HTML</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Language</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+  </dependencies>
+
+  <profiles>
+    <profile>
+      <id>apache-release</id>
+      <properties>
+        <compiler.debug>false</compiler.debug>
+      </properties>
+    </profile>
+
+    <profile>
+      <id>option-with-swf</id>
+      <properties>
+        <!-- no point building the swf target  -->
+        <royale.targets>JSRoyale</royale.targets>
+      </properties>
+      <dependencies>
+        <!-- Needed for Flash compilation -->
+        <!-- <dependency>
+          <groupId>com.adobe.flash.framework</groupId>
+          <artifactId>playerglobal</artifactId>
+          <version>20.0</version>
+          <type>swc</type>
+          <scope>provided</scope>
+        </dependency> -->
+      </dependencies>
+    </profile>
+  </profiles>
+
+</project>
diff --git a/examples/jewel/SampleLib/src/main/resources/default.css b/examples/jewel/SampleLib/src/main/resources/default.css
new file mode 100644
index 0000000..5542716
--- /dev/null
+++ b/examples/jewel/SampleLib/src/main/resources/default.css
@@ -0,0 +1,20 @@
+/**
+ *  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.
+ */
+@namespace "http://www.w3.org/1999/xhtml";
+@namespace j "library://ns.apache.org/royale/samplelib";
+
+/*# sourceMappingURL=default.css.map */
diff --git a/examples/jewel/SampleLib/src/main/resources/samplelib-as-manifest.xml b/examples/jewel/SampleLib/src/main/resources/samplelib-as-manifest.xml
new file mode 100644
index 0000000..43b5314
--- /dev/null
+++ b/examples/jewel/SampleLib/src/main/resources/samplelib-as-manifest.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+
+<componentPackage>
+
+  <!-- <component id="ClassName" class="package.ClassName"/> -->
+
+</componentPackage>
\ No newline at end of file
diff --git a/examples/jewel/SampleLib/src/main/resources/samplelib-manifest.xml b/examples/jewel/SampleLib/src/main/resources/samplelib-manifest.xml
new file mode 100644
index 0000000..523a781
--- /dev/null
+++ b/examples/jewel/SampleLib/src/main/resources/samplelib-manifest.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+
+<componentPackage>
+
+  <component id="SampleClass" class="org.apache.royale.examples.SampleClass"/>
+
+</componentPackage>
\ No newline at end of file
diff --git a/examples/jewel/SampleLib/src/main/royale/SampleLibClasses.as b/examples/jewel/SampleLib/src/main/royale/SampleLibClasses.as
new file mode 100644
index 0000000..8e6964a
--- /dev/null
+++ b/examples/jewel/SampleLib/src/main/royale/SampleLibClasses.as
@@ -0,0 +1,46 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+    /**
+     *  @private
+     *  This class is used to link additional classes into jewel.swc
+     *  beyond those that are found by dependecy analysis starting
+     *  from the classes specified in manifest.xml.
+     * 
+     *  If the class need to be used in MXML please add only to manifest.xml
+     */
+    internal class SampleLibClasses
+    {
+        // Add here classes for all platforms
+        // import package.ClassName; ClassName;
+
+        // Add here classes for the JS platform
+        // COMPILE::JS
+	    // {
+        // import package.ClassName; ClassName;
+        // }
+        
+        // Add here classes for the SWF platform
+        // COMPILE::SWF
+	    // {
+        // import package.ClassName; ClassName;
+        // }
+    }
+}
\ No newline at end of file
diff --git a/examples/jewel/SampleLib/src/main/royale/org/apache/royale/examples/SampleClass.as b/examples/jewel/SampleLib/src/main/royale/org/apache/royale/examples/SampleClass.as
new file mode 100644
index 0000000..7093b6a
--- /dev/null
+++ b/examples/jewel/SampleLib/src/main/royale/org/apache/royale/examples/SampleClass.as
@@ -0,0 +1,31 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.apache.royale.examples
+{
+    /**
+     *  A Sample Class to fill this library
+     */
+    public class SampleClass
+    {
+        public function doSomething():void
+        {
+            trace("doing something");
+        }
+    }
+}
\ No newline at end of file
diff --git a/examples/jewel/SampleLib/src/main/sass/_global.sass b/examples/jewel/SampleLib/src/main/sass/_global.sass
new file mode 100644
index 0000000..319f28c
--- /dev/null
+++ b/examples/jewel/SampleLib/src/main/sass/_global.sass
@@ -0,0 +1,25 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+@namespace "http://www.w3.org/1999/xhtml"
+@namespace j "library://ns.apache.org/royale/samplelib"
+
+// .jewel
+//     .label
+//         color: #ff0000
\ No newline at end of file
diff --git a/examples/jewel/SampleLib/src/main/sass/default.sass b/examples/jewel/SampleLib/src/main/sass/default.sass
new file mode 100644
index 0000000..bbad92a
--- /dev/null
+++ b/examples/jewel/SampleLib/src/main/sass/default.sass
@@ -0,0 +1,21 @@
+/**
+ *  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.
+ */
+
+// Variables
+
+// Global
+@import "global"
\ No newline at end of file


[royale-asjs] 10/19: reduce build noise, avoid warnings for (presumably) intentional 'this within closure' usage (matches maven build)

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit e6bca555cb8b88b45fbeca207cc83edae84866aa
Author: greg-dove <gr...@gmail.com>
AuthorDate: Sat Feb 27 10:57:54 2021 +1300

    reduce build noise, avoid warnings for (presumably) intentional 'this within closure' usage (matches maven build)
---
 .../js/projects/MXRoyaleJS/src/main/config/compile-js-config.xml       | 3 +++
 frameworks/projects/MXRoyale/src/main/config/compile-swf-config.xml    | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/frameworks/js/projects/MXRoyaleJS/src/main/config/compile-js-config.xml b/frameworks/js/projects/MXRoyaleJS/src/main/config/compile-js-config.xml
index ba023db..e906ba0 100644
--- a/frameworks/js/projects/MXRoyaleJS/src/main/config/compile-js-config.xml
+++ b/frameworks/js/projects/MXRoyaleJS/src/main/config/compile-js-config.xml
@@ -91,6 +91,9 @@
 
         <!-- Use of the instanceof operator. -->
         <warn-instance-of-changes>false</warn-instance-of-changes>
+
+        <!-- avoid warnings for 'this within closure' (multiple, intentional) -->
+        <warn-this-within-closure>false</warn-this-within-closure>
     </compiler>
     
     <export-protected-symbols>true</export-protected-symbols>
diff --git a/frameworks/projects/MXRoyale/src/main/config/compile-swf-config.xml b/frameworks/projects/MXRoyale/src/main/config/compile-swf-config.xml
index 62e8da4..06d5442 100644
--- a/frameworks/projects/MXRoyale/src/main/config/compile-swf-config.xml
+++ b/frameworks/projects/MXRoyale/src/main/config/compile-swf-config.xml
@@ -96,6 +96,9 @@
 
         <!-- Use of the instanceof operator. -->
         <warn-instance-of-changes>false</warn-instance-of-changes>
+
+        <!-- avoid warnings for 'this within closure' (multiple, intentional) -->
+        <warn-this-within-closure>false</warn-this-within-closure>
     </compiler>
     
     <include-file>


[royale-asjs] 04/19: autoLayout property added to mx container

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit b358cc79ca67c1edff37b5e27a43a32d644cf11d
Author: alinakazi <al...@gmail.com>
AuthorDate: Thu Feb 25 17:02:37 2021 +0500

    autoLayout property added to mx container
---
 .../MXRoyale/src/main/royale/mx/core/Container.as  | 63 ++++++++++++++++++++++
 1 file changed, 63 insertions(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
index 147cad5..04f8088 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
@@ -818,6 +818,69 @@ public class Container extends UIComponent
 //        }
     }
 
+
+    //----------------------------------
+    //  autoLayout
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the autoLayout property.
+     */
+    private var _autoLayout:Boolean = true;
+
+    [Inspectable(defaultValue="true")]
+
+    /**
+     *  If <code>true</code>, measurement and layout are done
+     *  when the position or size of a child is changed.
+     *  If <code>false</code>, measurement and layout are done only once,
+     *  when children are added to or removed from the container.
+     *
+     *  <p>When using the Move effect, the layout around the component that
+     *  is moving does not readjust to fit that the Move effect animates.
+     *  Setting a container's <code>autoLayout</code> property to
+     *  <code>true</code> has no effect on this behavior.</p>
+     *
+     *  <p>The Zoom effect does not work when the <code>autoLayout</code> 
+     *  property is <code>false</code>.</p>
+     *
+     *  <p>The <code>autoLayout</code> property does not apply to
+     *  Accordion or ViewStack containers.</p>
+     * 
+     *  @default true
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get autoLayout():Boolean
+    {
+        return _autoLayout;
+    }
+
+    /**
+     *  @private
+     */
+    public function set autoLayout(value:Boolean):void
+    {
+        _autoLayout = value;
+
+        // If layout is being turned back on, trigger a layout to occur now.
+        if (value)
+        {
+            invalidateSize();
+            invalidateDisplayList();
+
+            var p:IInvalidating = parent as IInvalidating;
+            if (p)
+            {
+                p.invalidateSize();
+                p.invalidateDisplayList();
+            }
+        }
+    }
     /**
      *  Number of pixels between the container's bottom border
      *  and the bottom of its content area.


[royale-asjs] 14/19: add "royale-jewel-library-archetype" to modules

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit f7b3d36de0fde82899c3e4c07c6654225be8f664
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sat Feb 27 16:40:37 2021 +0100

    add "royale-jewel-library-archetype" to modules
---
 archetypes/pom.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/archetypes/pom.xml b/archetypes/pom.xml
index 5675261..ebe582c 100644
--- a/archetypes/pom.xml
+++ b/archetypes/pom.xml
@@ -39,6 +39,7 @@
   <modules>
     <module>royale-simple-application-archetype</module>
     <module>royale-jewel-application-archetype</module>
+    <module>royale-jewel-library-archetype</module>
     <module>royale-jewel-module-application-archetype</module>
     <module>royale-simple-application-pure-js-archetype</module>
     <module>royale-simple-application-pure-swf-archetype</module>


[royale-asjs] 13/19: maven-archetype: new "royale-jewel-library-archetype" to generate libraries quickly

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 31a7933eb5cf4cabd2aeec9f4c5c92ba55f863a8
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sat Feb 27 16:39:52 2021 +0100

    maven-archetype: new "royale-jewel-library-archetype" to generate libraries quickly
---
 archetypes/royale-jewel-library-archetype/pom.xml  |  45 +++
 .../META-INF/archetype-post-generate.groovy        |  71 +++++
 .../META-INF/maven/archetype-metadata.xml          |  87 ++++++
 .../archetype-resources/.vscode/tasks.json         |  73 +++++
 .../__artifactId__.mxml.as3proj                    | 117 ++++++++
 .../resources/archetype-resources/asconfig.json    |  58 ++++
 .../src/main/resources/archetype-resources/pom.xml | 312 +++++++++++++++++++++
 .../__artifactIdLowerCase__-as-manifest.xml        |  26 ++
 .../resources/__artifactIdLowerCase__-manifest.xml |  26 ++
 .../src/main/royale/SampleClass.as                 |  31 ++
 .../src/main/royale/__artifactId__Classes.as       |  46 +++
 .../archetype-resources/src/main/sass/_global.sass |  25 ++
 .../archetype-resources/src/main/sass/default.sass |  21 ++
 13 files changed, 938 insertions(+)

diff --git a/archetypes/royale-jewel-library-archetype/pom.xml b/archetypes/royale-jewel-library-archetype/pom.xml
new file mode 100644
index 0000000..55948d8
--- /dev/null
+++ b/archetypes/royale-jewel-library-archetype/pom.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  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.
+
+--><project xmlns="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">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.royale.framework</groupId>
+    <artifactId>royale-maven-archetypes</artifactId>
+    <version>0.9.8-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>royale-jewel-library-archetype</artifactId>
+  <version>0.9.8-SNAPSHOT</version>
+  <packaging>maven-archetype</packaging>
+
+  <name>Apache Royale: Framework: Archetypes: Jewel Royale Library</name>
+  <description>Maven archetype for creating Royale Maven project for building a Jewel Royale library for JavaScript output.</description>
+
+  <build>
+    <extensions>
+      <extension>
+        <groupId>org.apache.maven.archetype</groupId>
+        <artifactId>archetype-packaging</artifactId>
+        <version>3.1.1</version>
+      </extension>
+    </extensions>
+  </build>
+  
+</project>
diff --git a/archetypes/royale-jewel-library-archetype/src/main/resources/META-INF/archetype-post-generate.groovy b/archetypes/royale-jewel-library-archetype/src/main/resources/META-INF/archetype-post-generate.groovy
new file mode 100644
index 0000000..a005cea
--- /dev/null
+++ b/archetypes/royale-jewel-library-archetype/src/main/resources/META-INF/archetype-post-generate.groovy
@@ -0,0 +1,71 @@
+/**
+ *  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.
+ */
+
+
+//  This script will be executed upon creating a project from this archetype.
+//  https://maven.apache.org/archetype/maven-archetype-plugin/advanced-usage.html
+// 
+//  It will delete a the associated Crux folders if the value for the "includeCrux" property
+//  is set to false.
+
+import java.io.File
+import java.nio.file.Files
+import java.nio.file.Path
+import java.nio.file.Paths
+import org.apache.commons.io.FileUtils
+ 
+println "*******************************"
+println "  groovy post processing"
+println "*******************************"
+// println "artifactId: " + artifactId
+// println "request: " + request
+// println "archetypeArtifactId: " + request.getArchetypeArtifactId()
+// println "archetypeGroupId: " + request.getArchetypeGroupId()
+// println "archetypeVersion: " + request.getArchetypeVersion()
+// println "archetypeName: " + request.getArchetypeName()
+// println "artifactId: " + request.getArtifactId()
+// println "groupId: " + request.getGroupId()
+// println "version: " + request.getVersion()
+
+Properties properties = request.properties
+// println "Properties: " + properties
+// println "application: " + request.getProperties().getProperty("application")
+// println "moduele: " + request.getProperties().getProperty("module")
+
+// Application path
+Path appPath = Paths.get(request.outputDirectory, request.artifactId)// + File.separator + properties.get("application"))
+println "appPath prop : " + appPath
+String includeCrux = properties.get("includeCrux")
+println "includeCrux prop : " + includeCrux
+ 
+if (includeCrux.equals("false")) {
+    println "Not includin Crux - Deleting Crux files"
+
+    String packageProp = properties.get("package").equals('') ? "" : properties.get("package").replace(".", File.separator) + File.separator;
+    //println "package prop : " + packageProp
+    Path configPath = appPath.resolve("src" + File.separator + "main" + File.separator + "royale" + File.separator + packageProp + "config")   
+    Path eventsPath = appPath.resolve("src" + File.separator + "main" + File.separator + "royale" + File.separator + packageProp + "events")   
+    
+    //String configurationFile = "Beans.mxml";    
+    //Path cxfConfigPath = configPath.resolve(configurationFile)
+    //println "cxfConfigPath " + cxfConfigPath  
+    //Files.deleteIfExists cxfConfigPath
+
+    FileUtils.deleteDirectory(configPath.toFile());
+    FileUtils.deleteDirectory(eventsPath.toFile());
+}
+println "*******************************"
\ No newline at end of file
diff --git a/archetypes/royale-jewel-library-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml b/archetypes/royale-jewel-library-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
new file mode 100644
index 0000000..89596af
--- /dev/null
+++ b/archetypes/royale-jewel-library-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  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.
+
+-->
+<archetype-descriptor
+        xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.1.0
+        https://maven.apache.org/xsd/archetype-descriptor-1.1.0.xsd"
+        xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.1.0"
+        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        name="${artifactId}">
+
+  <fileSets>
+    <fileSet filtered="true" encoding="UTF-8">
+      <directory>.vscode</directory>
+      <includes>
+        <include>**/*.json</include>
+      </includes>
+    </fileSet>
+    <fileSet filtered="true" encoding="UTF-8">
+      <directory></directory>
+      <includes>
+        <include>__artifactId__.mxml.as3proj</include>
+        <include>asconfig.json</include>
+      </includes>
+    </fileSet>
+    <fileSet filtered="true" encoding="UTF-8">
+      <directory>src/main/resources</directory>
+      <includes>
+        <include>**/*.xml</include>
+      </includes>
+    </fileSet>
+    <fileSet filtered="true" encoding="UTF-8">
+      <directory>src/main/sass</directory>
+      <includes>
+        <include>**/*.sass</include>
+      </includes>
+    </fileSet>
+    <fileSet filtered="true" encoding="UTF-8">
+      <directory>src/main/royale</directory>
+      <includes>
+        <include>__artifactId__Classes.as</include>
+      </includes>
+    </fileSet>
+    <fileSet filtered="true" packaged="true" encoding="UTF-8">
+      <directory>src/main/royale</directory>
+      <includes>
+        <include>**/*.mxml</include>
+        <include>**/*.as</include>
+      </includes>
+      <excludes>
+        <exclude>__artifactId__Classes.as</exclude>
+      </excludes>
+    </fileSet>      
+    <fileSet filtered="true" packaged="true" encoding="UTF-8">
+      <directory>src/test/royale</directory>
+      <includes>
+        <include>**/*.as</include>
+        <include>**/*.mxml</include>
+      </includes>
+    </fileSet>
+  </fileSets>
+
+  <requiredProperties>
+    <requiredProperty key="artifactIdLowerCase">
+        <defaultValue>${artifactId.toLowerCase()}</defaultValue>
+    </requiredProperty>
+    <requiredProperty key="includeCrux"> 
+     	<defaultValue>false</defaultValue>
+    </requiredProperty>
+  </requiredProperties>
+
+</archetype-descriptor>
diff --git a/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/.vscode/tasks.json b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/.vscode/tasks.json
new file mode 100644
index 0000000..597385f
--- /dev/null
+++ b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/.vscode/tasks.json
@@ -0,0 +1,73 @@
+#set($dollar = '$')
+{
+    // See https://go.microsoft.com/fwlink/?LinkId=733558
+    // for the documentation about the tasks.json format
+    "version": "2.0.0",
+    "tasks": [
+        // MAVEN
+        {
+            "label": "Build with Maven",
+            "type": "shell",
+            "command": "mvn",
+            "args": [
+                "clean",
+                "install",
+                // "-P option-with-swf",
+                "-DskipTests"
+            ],
+            "group": "build",
+            "presentation": {
+                "echo": true,
+                "reveal": "always",
+                "focus": true,
+                "panel": "dedicated"
+            },
+            "problemMatcher": []
+        },
+        // AS3&MXML (Debug)
+        {
+            "label": "Build with AS3&MXML (Debug)",
+            "type": "actionscript",
+            "debug": true,
+            "group": "build",
+            "presentation": {
+                "echo": true,
+                "reveal": "always",
+                "focus": true,
+                "panel": "dedicated"
+            },
+            "problemMatcher": []
+        },
+        // AS3&MXML (Release)
+        {
+            "label": "Build with AS3&MXML (Release)",
+            "type": "actionscript",
+            "debug": false,
+            "group": "build",
+            "presentation": {
+                "echo": true,
+                "reveal": "always",
+                "focus": true,
+                "panel": "dedicated"
+            },
+            "problemMatcher": []
+        },
+        // ASCONFIGC
+        {
+            "label": "build with asconfigc",
+            "type": "shell",
+            "command": "asconfigc",
+            "args": [
+                "--sdk=${dollar}{config:as3mxml.sdk.framework}"
+            ],
+            "group": "build",
+            "presentation": {
+                "echo": true,
+                "reveal": "always",
+                "focus": true,
+                "panel": "dedicated"
+            },
+            "problemMatcher": []
+        }
+    ]
+}
\ No newline at end of file
diff --git a/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/__artifactId__.mxml.as3proj b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/__artifactId__.mxml.as3proj
new file mode 100644
index 0000000..a2952cb
--- /dev/null
+++ b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/__artifactId__.mxml.as3proj
@@ -0,0 +1,117 @@
+<!--
+
+  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.
+
+-->
+<?xml version="1.0" encoding="utf-8"?>
+<project>
+  <output>
+    <movie width="800"/>
+    <movie disabled="False"/>
+    <movie path="bin-debug/${artifactId}.swf"/>
+    <movie platform="Flash Player"/>
+    <movie fps="60"/>
+    <movie version="11"/>
+    <movie height="600"/>
+    <movie background="#FFFFFF"/>
+    <movie input=""/>
+  </output>
+  &lt;!-- Other classes to be compiled into your SWF --&gt;
+  <jsOutput>
+    <option path="/Users/christofer.dutz/Library/Containers/com.moonshine-ide/Data/Documents/NewJavaScriptBrowserProject"/>
+  </jsOutput>
+  <classpaths>
+    <class path="src"/>
+  </classpaths>
+  <moonshineResourcePaths></moonshineResourcePaths>
+  <moonshineNativeExtensionPaths></moonshineNativeExtensionPaths>
+  <build>
+    <option compilerConstants=""/>
+    <option strict="True"/>
+    <option useResourceBundleMetadata="True"/>
+    <option allowSourcePathOverlap="False"/>
+    <option sourceMap="True"/>
+    <option showDeprecationWarnings="True"/>
+    <option benchmark="False"/>
+    <option showBindingWarnings="True"/>
+    <option warnings="True"/>
+    <option customSDK="/Users/christofer.dutz/Downloads/MoonshineSDKs/Royale_SDK/apache-royale-0.9.8-bin-js/royale-asjs"/>
+    <option showActionScriptWarnings="True"/>
+    <option antBuildPath="build/build.xml"/>
+    <option verboseStackTraces="False"/>
+    <option loadConfig=""/>
+    <option additional="-theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css -html-template=src/resources/jewel-index-template.html"/>
+    <option linkReport=""/>
+    <option optimize="False"/>
+    <option locale=""/>
+    <option accessible="False"/>
+    <option staticLinkRSL="False"/>
+    <option showUnusedTypeSelectorWarnings="True"/>
+    <option useNetwork="True"/>
+    <option es="False"/>
+  </build>
+  <mavenBuild>
+    <option settingsFilePath=""/>
+    <option mavenBuildPath="/Users/christofer.dutz/Library/Containers/com.moonshine-ide/Data/Documents/NewJavaScriptBrowserProject"/>
+    <option commandLine=""/>
+    <actions>
+      <action action="install" actionName="Build"/>
+      <action action="clean package" actionName="Clean and package"/>
+      <action action="clean" actionName="Clean"/>
+      <action action="clean install" actionName="Clean and Build"/>
+      <action action="war:exploded" actionName="Exploded"/>
+    </actions>
+  </mavenBuild>
+  <includeLibraries></includeLibraries>
+  <libraryPaths></libraryPaths>
+  <externalLibraryPaths></externalLibraryPaths>
+  <rslPaths></rslPaths>
+  <intrinsics>
+    <element path="Library/AS3/frameworks/Flex4"/>
+    <element path="Library\AS3\frameworks\Flex4"/>
+    <element path="Library\AS3\frameworks\Flex4"/>
+  </intrinsics>
+  <library></library>
+  <compileTargets>
+    <compile path="src/NewJavaScriptBrowserProject.mxml"/>
+  </compileTargets>
+  <hiddenPaths></hiddenPaths>
+  <preBuildCommand>null</preBuildCommand>
+  <postBuildCommand alwaysRun="False">null</postBuildCommand>
+  <trustSVNCertificate>False</trustSVNCertificate>
+  <options>
+    <option testMovieCommand=""/>
+    <option defaultBuildTargets=""/>
+    <option isRoyale="True"/>
+    <option isExportedToExistingSource="False"/>
+    <option showHiddenPaths="False"/>
+    <option isPrimeFacesVisualEditor="False"/>
+    <option testMovie=""/>
+    <option visualEditorExportPath=""/>
+  </options>
+  <moonshineRunCustomization>
+    <option launchMethod="Simulator"/>
+    <option urlToLaunch="/Users/christofer.dutz/Library/Containers/com.moonshine-ide/Data/Documents/NewJavaScriptBrowserProject/bin/js-debug/index.html"/>
+    <option targetPlatform="5"/>
+    <option projectType="2"/>
+    <option customUrlToLaunch=""/>
+    <option deviceSimulator="null"/>
+    <deviceSimulator>null</deviceSimulator>
+    <certAndroid>null</certAndroid>
+    <certIos>null</certIos>
+    <certIosProvisioning>null</certIosProvisioning>
+  </moonshineRunCustomization>
+</project>
\ No newline at end of file
diff --git a/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/asconfig.json b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/asconfig.json
new file mode 100644
index 0000000..f130bd2
--- /dev/null
+++ b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/asconfig.json
@@ -0,0 +1,58 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+{
+    "config": "royale",
+    "type": "lib",
+    "compilerOptions": {
+        "debug": true,
+        "targets": ["JSRoyale"],
+        "source-path": [
+            "src/main/royale"
+        ],
+        "include-namespaces": [
+            "library://ns.apache.org/royale/${artifactIdLowerCase}"
+        ],
+        "namespace": [
+            {
+                "uri": "library://ns.apache.org/royale/${artifactIdLowerCase}",
+                "manifest": "src/main/resources/${artifactIdLowerCase}-manifest.xml"
+            }
+            // ,{
+            //     "uri": "library://ns.apache.org/royale/${artifactIdLowerCase}",
+            //     "manifest": "src/main/resources/${artifactIdLowerCase}-as-manifest.xml"
+            // }
+        ],
+        "include-classes": [
+            "${artifactId}Classes"
+        ],
+        "include-sources": [
+            "src/main/royale"
+        ],
+        // "library-path": [
+        //     "${royalelib}/js/libs/MXRoyaleJS.swc"
+        // ],
+        // "js-library-path": [
+        //     "${royalelib}/js/libs/MXRoyaleJS.swc"
+        // ],
+        "source-map": true,
+        "output": "bin/${artifactId}.swc"
+    }
+    // ,
+    // "additionalOptions": "-js-dynamic-access-unknown-members=true"
+}
diff --git a/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/pom.xml
new file mode 100644
index 0000000..d7c2863
--- /dev/null
+++ b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/pom.xml
@@ -0,0 +1,312 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  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.
+
+-->
+#set($dollar = '$')
+<project xmlns="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">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache</groupId>
+    <artifactId>apache</artifactId>
+    <version>23</version>
+    <relativePath />
+  </parent>
+
+  <groupId>\${groupId}</groupId>
+  <artifactId>\${artifactId}</artifactId>
+  <version>\${version}</version>
+  <packaging>swc</packaging>
+
+  <properties>
+    <compiler.debug>true</compiler.debug>
+    <royale.framework.version>0.9.8-SNAPSHOT</royale.framework.version>
+    <compiler.output-dir-debug>${dollar}{basedir}/target/javascript/bin/js-debug</compiler.output-dir-debug>
+    <compiler.output-dir-release>${dollar}{basedir}/target/javascript/bin/js-release</compiler.output-dir-release>
+  </properties>
+
+  <build>
+    <sourceDirectory>src/main/royale</sourceDirectory>
+
+    <pluginManagement>
+      <plugins>
+        <!-- Copy the resources to the compiler output directory -->
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-resources-plugin</artifactId>
+          <executions>
+            <execution>
+              <id>copy-resources-debug</id>
+              <phase>validate</phase>
+              <goals>
+                <goal>copy-resources</goal>
+              </goals>
+              <configuration>
+                <outputDirectory>${dollar}{compiler.output-dir-debug}</outputDirectory>
+                <resources>
+                  <resource>
+                    <directory>src/main/resources</directory>
+                    <filtering>true</filtering>
+                  </resource>
+                </resources>
+              </configuration>
+            </execution>
+            <execution>
+              <id>copy-resources-release</id>
+              <phase>validate</phase>
+              <goals>
+                <goal>copy-resources</goal>
+              </goals>
+              <configuration>
+                <!-- Copy the assets to the assets output directory -->
+                <outputDirectory>${dollar}{compiler.output-dir-release}/assets</outputDirectory>
+                <resources>
+                  <resource>
+                    <directory>src/main/resources/js</directory>
+                    <filtering>true</filtering>
+                  </resource>
+                </resources>
+              </configuration>
+            </execution>
+          </executions>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+
+    <plugins>
+      <plugin>
+        <groupId>org.apache.royale.compiler</groupId>
+        <artifactId>royale-maven-plugin</artifactId>
+        <version>${royale.framework.version}</version>
+        <extensions>true</extensions>
+        <configuration>
+          <targets>JSRoyale</targets>
+          <namespaces>
+            <namespace>
+              <uri>library://ns.apache.org/royale/jewel</uri>
+              <manifest>${dollar}{project.basedir}/src/main/resources/${artifactIdLowerCase}-manifest.xml</manifest>
+            </namespace>
+            <!-- <namespace>
+              <type>as</type>
+              <uri>library://ns.apache.org/royale/jewel</uri>
+              <manifest>${dollar}{basedir}/src/main/resources/${artifactIdLowerCase}-as-manifest.xml</manifest>
+            </namespace> -->
+          </namespaces>
+          <includeClasses>
+            <includeClass>\${artifactId}Classes</includeClass>
+          </includeClasses>
+          <includeFiles>
+            <include-file>
+              <name>default.css</name>
+              <path>../src/main/resources/default.css</path>
+            </include-file>
+            <!-- Uncomment To Include Assets like Images -->
+            <!-- <include-file>
+              <name>assets/*</name>
+              <path>../src/main/resources/assets/*</path>
+            </include-file>
+            <include-file>
+              <name>js/*</name>
+              <path>../src/main/resources/js/*</path>
+            </include-file> -->
+          </includeFiles>
+          <!-- <includeLookupOnly>true</includeLookupOnly>
+          <allowSubclassOverrides>true</allowSubclassOverrides>
+          <skipExtern>true</skipExtern>
+          <skipAS>true</skipAS> -->
+          <!-- <additionalCompilerOptions>
+            -source-map=true;
+            -source-map-source-root=/frameworks/projects/Jewel/src/main/royale/
+          </additionalCompilerOptions> -->
+        </configuration>
+        <dependencies>
+          <dependency>
+            <groupId>org.apache.royale.compiler</groupId>
+            <artifactId>compiler-jx</artifactId>
+            <version>${royale.framework.version}</version>
+          </dependency>
+        </dependencies>
+      </plugin>
+      <plugin>
+        <groupId>nl.geodienstencentrum.maven</groupId>
+        <artifactId>sass-maven-plugin</artifactId>
+        <version>3.7.2</version>
+        <configuration>
+          <resources>
+            <resource>
+              <source>
+                <directory>${dollar}{basedir}/src/main/sass</directory>
+                <includes>
+                  <include>**/*.sass</include>
+                </includes>
+              </source>
+              <destination>${dollar}{basedir}/src/main/resources</destination>
+            </resource>
+          </resources>
+        </configuration>
+        <executions>
+          <execution>
+            <id>generate-css-using-sass</id>
+            <goals>
+                <goal>update-stylesheets</goal>
+            </goals>
+            <phase>generate-resources</phase>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>com.google.code.maven-replacer-plugin</groupId>
+        <artifactId>replacer</artifactId>
+        <version>1.5.3</version>
+        <executions>
+          <execution>
+            <phase>generate-resources</phase>
+            <goals>
+              <goal>replace</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <includes>
+            <include>${dollar}{basedir}/src/main/resources/**/*.css</include>
+          </includes>
+          <regex>false</regex>
+          <replacements>
+            <replacement>
+              <token>@@ZERO_WIDTH_SPACE</token>
+              <value>\200b</value>
+            </replacement>
+            <replacement>
+              <token>@@NON_BREAKING_SPACE</token>
+              <value>\0a</value>
+            </replacement>
+          </replacements>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+  <dependencies>
+    <!-- For flash compilation, we need the airglobal or playerglobal -->
+    <dependency>
+      <groupId>com.adobe.air.framework</groupId>
+      <artifactId>airglobal</artifactId>
+      <version>20.0</version>
+      <type>swc</type>
+      <scope>provided</scope>
+    </dependency>
+    <!-- For JavaScript compilation, we need some other base classes -->
+    <dependency>
+      <groupId>org.apache.royale.typedefs</groupId>
+      <artifactId>royale-typedefs-gcl</artifactId>
+      <version>${royale.framework.version}</version>
+      <type>swc</type>
+      <classifier>typedefs</classifier>
+    </dependency>
+
+    <!-- Add dependencies you might be needing here -->
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Core</artifactId>
+      <version>${royale.framework.version}</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Basic</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Jewel</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Icons</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+#if (${includeCrux} == 'true' || ${includeCrux} == 'yes' || ${includeCrux} == 'y')
+    
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Crux</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+#end
+
+    <!-- Needed for JavaScript compilation -->
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>HTML</artifactId>
+      <version>${royale.framework.version}</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Language</artifactId>
+      <version>${royale.framework.version}</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+  </dependencies>
+
+  <profiles>
+    <profile>
+      <id>apache-release</id>
+      <properties>
+        <compiler.debug>false</compiler.debug>
+      </properties>
+    </profile>
+
+    <profile>
+      <id>option-with-swf</id>
+      <properties>
+        <!-- no point building the swf target  -->
+        <royale.targets>JSRoyale</royale.targets>
+      </properties>
+      <dependencies>
+        <!-- Needed for Flash compilation -->
+        <!-- <dependency>
+          <groupId>com.adobe.flash.framework</groupId>
+          <artifactId>playerglobal</artifactId>
+          <version>20.0</version>
+          <type>swc</type>
+          <scope>provided</scope>
+        </dependency> -->
+      </dependencies>
+    </profile>
+  </profiles>
+
+</project>
diff --git a/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/resources/__artifactIdLowerCase__-as-manifest.xml b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/resources/__artifactIdLowerCase__-as-manifest.xml
new file mode 100644
index 0000000..43b5314
--- /dev/null
+++ b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/resources/__artifactIdLowerCase__-as-manifest.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+
+<componentPackage>
+
+  <!-- <component id="ClassName" class="package.ClassName"/> -->
+
+</componentPackage>
\ No newline at end of file
diff --git a/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/resources/__artifactIdLowerCase__-manifest.xml b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/resources/__artifactIdLowerCase__-manifest.xml
new file mode 100644
index 0000000..f6f7324
--- /dev/null
+++ b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/resources/__artifactIdLowerCase__-manifest.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+
+<componentPackage>
+
+  <component id="SampleClass" class="${package}.SampleClass"/>
+
+</componentPackage>
\ No newline at end of file
diff --git a/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/royale/SampleClass.as b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/royale/SampleClass.as
new file mode 100644
index 0000000..433016e
--- /dev/null
+++ b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/royale/SampleClass.as
@@ -0,0 +1,31 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 ${package}
+{
+    /**
+     *  A Sample Class to fill this library
+     */
+    public class SampleClass
+    {
+        public function doSomething():void
+        {
+            trace("doing something");
+        }
+    }
+}
\ No newline at end of file
diff --git a/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/royale/__artifactId__Classes.as b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/royale/__artifactId__Classes.as
new file mode 100644
index 0000000..e48bebe
--- /dev/null
+++ b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/royale/__artifactId__Classes.as
@@ -0,0 +1,46 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+    /**
+     *  @private
+     *  This class is used to link additional classes into jewel.swc
+     *  beyond those that are found by dependecy analysis starting
+     *  from the classes specified in manifest.xml.
+     * 
+     *  If the class need to be used in MXML please add only to manifest.xml
+     */
+    internal class ${artifactId}Classes
+    {
+        // Add here classes for all platforms
+        // import package.ClassName; ClassName;
+
+        // Add here classes for the JS platform
+        // COMPILE::JS
+	    // {
+        // import package.ClassName; ClassName;
+        // }
+        
+        // Add here classes for the SWF platform
+        // COMPILE::SWF
+	    // {
+        // import package.ClassName; ClassName;
+        // }
+    }
+}
\ No newline at end of file
diff --git a/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/sass/_global.sass b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/sass/_global.sass
new file mode 100644
index 0000000..4245094
--- /dev/null
+++ b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/sass/_global.sass
@@ -0,0 +1,25 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+@namespace "http://www.w3.org/1999/xhtml"
+@namespace j "library://ns.apache.org/royale/jewel"
+
+// .jewel
+//     .label
+//         color: #ff0000
\ No newline at end of file
diff --git a/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/sass/default.sass b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/sass/default.sass
new file mode 100644
index 0000000..bbad92a
--- /dev/null
+++ b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/sass/default.sass
@@ -0,0 +1,21 @@
+/**
+ *  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.
+ */
+
+// Variables
+
+// Global
+@import "global"
\ No newline at end of file


[royale-asjs] 03/19: autoload property added in mx Image

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit a8f626471a48fad4a090f5310b9d71a37e8568e2
Author: alinakazi <al...@gmail.com>
AuthorDate: Thu Feb 25 16:52:40 2021 +0500

    autoload property added in mx Image
---
 .../MXRoyale/src/main/royale/mx/controls/Image.as     | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Image.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Image.as
index d69460e..af28071 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Image.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Image.as
@@ -496,6 +496,25 @@ public class Image extends UIComponent
 	}
 
 	//----------------------------------
+	//  autoLoad copied from SWFLoader
+	//----------------------------------
+
+	/**
+	 *  @private
+	 *  Storage for the autoLoad property.
+	 */
+	private var _autoLoad:Boolean = true;
+
+
+	public function get autoLoad():Boolean
+	{
+		return _autoLoad;
+	}
+    public function set autoLoad(value:Boolean):void
+	{
+		_autoLoad = value;
+	}
+	//----------------------------------
 	//  scaleContent copied from SWFLoader
 	//----------------------------------
 


[royale-asjs] 06/19: tour-de-jewel: reduce code on h list

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 2d43f404d7c11ad7fd87d728d3fff2d0c9d592ac
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Thu Feb 25 21:16:55 2021 +0100

    tour-de-jewel: reduce code on h list
---
 examples/jewel/TourDeJewel/src/main/royale/ListPlayGround.mxml | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/examples/jewel/TourDeJewel/src/main/royale/ListPlayGround.mxml b/examples/jewel/TourDeJewel/src/main/royale/ListPlayGround.mxml
index e002184..60f724f 100644
--- a/examples/jewel/TourDeJewel/src/main/royale/ListPlayGround.mxml
+++ b/examples/jewel/TourDeJewel/src/main/royale/ListPlayGround.mxml
@@ -322,9 +322,7 @@ limitations under the License.
 						<j:beads>
 							<j:HorizontalLayout itemsExpand="true" />
 						</j:beads>
-						<j:dataProvider>
-							<js:ArrayList localId="avengersCharacters" source="[Iron Man, Hulk, Thor, Captain America, Hawkeye]" />
-						</j:dataProvider>
+						<js:ArrayList localId="avengersCharacters" source="[Iron Man, Hulk, Thor, Captain America, Hawkeye]" />
 					</j:List>
 				
 				</j:CardPrimaryContent>


[royale-asjs] 08/19: jewel-tilelayouts: perform layout when changed at runtime 2

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 9371acbabc4ce2322c5efeb180400ed59a8f0072
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Fri Feb 26 18:14:51 2021 +0100

    jewel-tilelayouts: perform layout when changed at runtime 2
---
 .../royale/org/apache/royale/jewel/beads/layouts/TileVerticalLayout.as  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileVerticalLayout.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileVerticalLayout.as
index 802804a..7662a5d 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileVerticalLayout.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileVerticalLayout.as
@@ -28,7 +28,7 @@ package org.apache.royale.jewel.beads.layouts
 	import org.apache.royale.core.ValuesManager;
 	import org.apache.royale.core.layout.EdgeData;
 	import org.apache.royale.core.layout.ILayoutStyleProperties;
-	import org.apache.royale.events.Event
+	import org.apache.royale.events.Event;
 
 	/**
 	 *  The TileVerticalLayout class bead sizes and positions the elements it manages into rows and columns.


[royale-asjs] 15/19: royale-jewel-library-archetype: few namespace fixes

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 57a571054f1e2419bfc9751986d2c64022896ad0
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sat Feb 27 16:56:28 2021 +0100

    royale-jewel-library-archetype: few namespace fixes
---
 .../src/main/resources/archetype-resources/pom.xml                    | 4 ++--
 .../src/main/resources/archetype-resources/src/main/sass/_global.sass | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/pom.xml
index d7c2863..031f19c 100644
--- a/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/pom.xml
+++ b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/pom.xml
@@ -100,12 +100,12 @@
           <targets>JSRoyale</targets>
           <namespaces>
             <namespace>
-              <uri>library://ns.apache.org/royale/jewel</uri>
+              <uri>library://ns.apache.org/royale/${artifactIdLowerCase}</uri>
               <manifest>${dollar}{project.basedir}/src/main/resources/${artifactIdLowerCase}-manifest.xml</manifest>
             </namespace>
             <!-- <namespace>
               <type>as</type>
-              <uri>library://ns.apache.org/royale/jewel</uri>
+              <uri>library://ns.apache.org/royale/${artifactIdLowerCase}</uri>
               <manifest>${dollar}{basedir}/src/main/resources/${artifactIdLowerCase}-as-manifest.xml</manifest>
             </namespace> -->
           </namespaces>
diff --git a/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/sass/_global.sass b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/sass/_global.sass
index 4245094..d9d5fb6 100644
--- a/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/sass/_global.sass
+++ b/archetypes/royale-jewel-library-archetype/src/main/resources/archetype-resources/src/main/sass/_global.sass
@@ -18,7 +18,7 @@
 ////////////////////////////////////////////////////////////////////////////////
 
 @namespace "http://www.w3.org/1999/xhtml"
-@namespace j "library://ns.apache.org/royale/jewel"
+@namespace j "library://ns.apache.org/royale/${artifactIdLowerCase}"
 
 // .jewel
 //     .label


[royale-asjs] 07/19: jewel-tilelayouts: perform layout when changed at runtime

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit de7c3354cf43df71ac611798cdd90326987b2654
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Fri Feb 26 18:10:42 2021 +0100

    jewel-tilelayouts: perform layout when changed at runtime
---
 .../royale/org/apache/royale/jewel/beads/layouts/TileHorizontalLayout.as | 1 +
 .../royale/org/apache/royale/jewel/beads/layouts/TileVerticalLayout.as   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileHorizontalLayout.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileHorizontalLayout.as
index a6e4410..d44b695 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileHorizontalLayout.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileHorizontalLayout.as
@@ -73,6 +73,7 @@ package org.apache.royale.jewel.beads.layouts
 			super.beadsAddedHandler();
 
 			hostComponent.replaceClass("tile");
+			hostComponent.dispatchEvent(new Event("layoutNeeded"));
 		}
 
 		private var _columnCount:int = -1;
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileVerticalLayout.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileVerticalLayout.as
index 7b59ac4..802804a 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileVerticalLayout.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileVerticalLayout.as
@@ -78,6 +78,7 @@ package org.apache.royale.jewel.beads.layouts
 			super.beadsAddedHandler();
 
 			hostComponent.replaceClass("tile");
+			hostComponent.dispatchEvent(new Event("layoutNeeded"));
 		}
 
 		private var _columnCount:int = -1;


[royale-asjs] 19/19: - Hopefully fixed the ACE build

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 7dd429513273ac54f4c2a6fa808c9fbdaca0584a
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Mon Feb 22 12:45:22 2021 +0100

    - Hopefully fixed the ACE build
---
 distribution/pom.xml            | 4 ++--
 frameworks/projects/Ace/pom.xml | 3 ++-
 frameworks/projects/pom.xml     | 2 +-
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/distribution/pom.xml b/distribution/pom.xml
index d6c89c1..c1b91d8 100644
--- a/distribution/pom.xml
+++ b/distribution/pom.xml
@@ -87,13 +87,13 @@
     </dependency>
 
     <!-- Add the framework js-swc modules -->
-    <!--dependency>
+    <dependency>
       <groupId>org.apache.royale.framework</groupId>
       <artifactId>Ace</artifactId>
       <version>0.9.8-SNAPSHOT</version>
       <type>swc</type>
       <classifier>js</classifier>
-    </dependency-->
+    </dependency>
     <dependency>
       <groupId>org.apache.royale.framework</groupId>
       <artifactId>Basic</artifactId>
diff --git a/frameworks/projects/Ace/pom.xml b/frameworks/projects/Ace/pom.xml
index ae47e04..6a76b12 100644
--- a/frameworks/projects/Ace/pom.xml
+++ b/frameworks/projects/Ace/pom.xml
@@ -48,7 +48,7 @@
             </namespace>
           </namespaces>
           <includeClasses>
-            <includeClass>JQueryClasses</includeClass>
+            <includeClass>AceClasses</includeClass>
           </includeClasses>
           <includeFiles>
             <include-file>
@@ -56,6 +56,7 @@
               <path>../src/main/resources/defaults.css</path>
             </include-file>
           </includeFiles>
+          <allowSubclassOverrides>true</allowSubclassOverrides>
           <skipExtern>true</skipExtern>
           <skipAS>${royale.skipAS}</skipAS>
         </configuration>
diff --git a/frameworks/projects/pom.xml b/frameworks/projects/pom.xml
index 3364a0b..9e09e3f 100644
--- a/frameworks/projects/pom.xml
+++ b/frameworks/projects/pom.xml
@@ -44,7 +44,7 @@
   <name>Apache Royale: Framework: Libs</name>
 
   <modules>
-    <!--module>Ace</module-->
+    <module>Ace</module>
     <module>Basic</module>
     <module>Binding</module>
     <module>Charts</module>


[royale-asjs] 02/19: in mx DataGridColumn itemtoDataTip added

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit b922c8129d1056ffdad37fd63514aefcf4b48e90
Author: alinakazi <al...@gmail.com>
AuthorDate: Thu Feb 25 16:42:24 2021 +0500

    in mx DataGridColumn itemtoDataTip added
---
 .../mx/controls/dataGridClasses/DataGridColumn.as  | 52 ++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dataGridClasses/DataGridColumn.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dataGridClasses/DataGridColumn.as
index 3683e32..1dd40cf 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dataGridClasses/DataGridColumn.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dataGridClasses/DataGridColumn.as
@@ -1041,6 +1041,58 @@ public class DataGridColumn extends org.apache.royale.html.supportClasses.DataGr
             dispatchEvent(new Event("labelFunctionChanged"));
         }
 		
+	/**
+     *  Returns a String that the item renderer displays as the datatip for the given data object,
+     *  based on the <code>dataTipField</code> and <code>dataTipFunction</code> properties.
+     *  If the method cannot convert the parameter to a String, it returns a
+     *  single space.
+     * 
+     *  <p>This method is for use by developers who are creating subclasses 
+     *  of the DataGridColumn class.
+     *  It is not for use by application developers.</p>
+     *
+     *  @param data Object to be rendered.
+     *
+     *  @return Displayable String based on the data.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function itemToDataTip(data:Object):String
+    {
+        if (dataTipFunction != null)
+            return dataTipFunction(data);
+
+        
+
+        if (typeof(data) == "object" || typeof(data) == "xml")
+        {
+            var field:String = dataTipField;
+            
+
+            if (field in data && data[field] != null)
+                data = data[field];
+            else if (dataField in data && data[dataField] != null)
+                data = data[dataField];
+			else
+				data = null;
+        }
+
+        if (data is String)
+            return String(data);
+
+        try
+        {
+            return data.toString();
+        }
+        catch(e:Error)
+        {
+        }
+
+        return " ";
+    }
 		//----------------------------------
 		//  dataTipField
 		//----------------------------------


[royale-asjs] 11/19: fix typo

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 5e6a287a195b4b18119130e3e87faa012507cbc9
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sat Feb 27 12:11:51 2021 +0100

    fix typo
---
 .../Core/src/main/royale/org/apache/royale/core/BrowserOrientation.as   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/BrowserOrientation.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/BrowserOrientation.as
index 26359b0..08aecd2 100644
--- a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/BrowserOrientation.as
+++ b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/BrowserOrientation.as
@@ -35,7 +35,7 @@ COMPILE::JS
      *  The BrowserOrientation class listens for browser
      *  resizing (only in devices) and dispatchh orientation change events.
      *   - if orientation is portratit it dispatches: 'orientationPortrait'
-     *   - if orientation is ladspace it dispatches: 'orientationLandscape'
+     *   - if orientation is landspace it dispatches: 'orientationLandscape'
      *  
      *  @langversion 3.0
      *  @playerversion Flash 10.2


[royale-asjs] 09/19: Formatting tidyup and avoid duplicate var declaration warning

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit f6f1fe45a156c927aef5fa94506bff7cbb88bd84
Author: greg-dove <gr...@gmail.com>
AuthorDate: Sat Feb 27 10:44:35 2021 +1300

    Formatting tidyup and avoid duplicate var declaration warning
---
 .../listClasses/VirtualDataItemRendererFactoryForIListData.as | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/VirtualDataItemRendererFactoryForIListData.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/VirtualDataItemRendererFactoryForIListData.as
index 6f7db55..9fc01ff 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/VirtualDataItemRendererFactoryForIListData.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/VirtualDataItemRendererFactoryForIListData.as
@@ -143,21 +143,22 @@ package mx.controls.listClasses
             var ir:IIndexedItemRenderer = rendererMap[index];
             if (ir) return ir;
             
-	    var functionBead:ItemRendererFunctionBead = _strand.getBeadByType(ItemRendererFunctionBead) as ItemRendererFunctionBead;
-	    var rendererFunction:Function = functionBead ? functionBead.itemRendererFunction : null;
+            var functionBead:ItemRendererFunctionBead = _strand.getBeadByType(ItemRendererFunctionBead) as ItemRendererFunctionBead;
+            var rendererFunction:Function = functionBead ? functionBead.itemRendererFunction : null;
             var dp:IList = dataProviderModel.dataProvider as IList;
             
             var view:IListView = (_strand as IStrandWithModelView).view as IListView;
             var dataGroup:IItemRendererOwnerView = view.dataGroup;
             var data:Object = dp.getItemAt(index);
-	    var ir:IIndexedItemRenderer = rendererFunction ? (rendererFunction(data) as IFactory).newInstance() as IIndexedItemRenderer :
-		    itemRendererFactory.createItemRenderer() as IIndexedItemRenderer;
+            ir = rendererFunction ?
+                 (rendererFunction(data) as IFactory).newInstance() as IIndexedItemRenderer :
+                 itemRendererFactory.createItemRenderer() as IIndexedItemRenderer;
             
             dataGroup.addItemRendererAt(ir, elementIndex);
             
             (itemRendererInitializer as IIndexedItemRendererInitializer).initializeIndexedItemRenderer(ir, data, index);
             rendererMap[index] = ir;
-	    ir.data = data;
+            ir.data = data;
                         
             var newEvent:ItemRendererEvent = new ItemRendererEvent(ItemRendererEvent.CREATED);
             newEvent.itemRenderer = ir;


[royale-asjs] 01/19: added in Accordion

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 37161108ed7c6dad0c5fbbf9c550a117bfb00bef
Author: alinakazi <al...@gmail.com>
AuthorDate: Thu Feb 25 16:25:00 2021 +0500

    added in Accordion
---
 .../src/main/royale/mx/containers/Accordion.as     | 69 ++++++++++++++++++++++
 1 file changed, 69 insertions(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Accordion.as b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Accordion.as
index 03fb717..2c3cc5e 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Accordion.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Accordion.as
@@ -26,6 +26,7 @@ import mx.events.FocusEvent;
 import mx.events.KeyboardEvent;
 import mx.events.MouseEvent;
 import mx.core.Container;
+import mx.controls.Button;
 
 [RequiresDataBinding(true)]
 
@@ -348,7 +349,75 @@ public class Accordion extends Container //implements IHistoryManagerClient, IFo
 
       
     }
+	
+	//--------------------------------------------------------------------------
+    //
+    //  Public methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Returns a reference to the navigator button for a child container.
+     *
+     *  @param index Zero-based index of the child.
+     *
+     *  @return Button object representing the navigator button.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function getHeaderAt(index:int):Button
+    {
+        return new Button();
+    }
+	
+	//----------------------------------
+    //  selectedIndex
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the selectedIndex and selectedChild properties.
+     */
+    private var _selectedIndex:int = -1;
 
+/**
+     *  The zero-based index of the currently visible child container.
+     *  Child indexes are in the range 0, 1, 2, ..., n - 1, where n is the number
+     *  of children.
+     *  The default value is 0, corresponding to the first child.
+     *  If there are no children, this property is <code>-1</code>.
+     *
+     *  @default 0
+     *
+     *  @tiptext Specifies the index of the child view that is currently displayed
+     *  @helpid 3402
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get selectedIndex():int
+    {
+       
+        return _selectedIndex;
+    }
+
+    /**
+     *  @private
+     */
+    public function set selectedIndex(value:int):void
+    {
+        // Bail if new index isn't a number.
+        if (value == -1)
+            return;
+		
+		_selectedIndex = value;
+      
+    }
     //--------------------------------------------------------------------------
     //
     //  Variables


[royale-asjs] 12/19: AppWithLib: start of an example that uses a library. This is just the app part, created with the maven archetype on the fly

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit a0591e780a0edae8d92da1932ba1e70a7a25bc3d
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sat Feb 27 12:13:50 2021 +0100

    AppWithLib: start of an example that uses a library. This is just the app part, created with the maven archetype on the fly
---
 examples/jewel/AppWithLib/AppWithLib.mxml.as3proj  | 117 ++++++++++++
 examples/jewel/AppWithLib/asconfig.json            |  37 ++++
 examples/jewel/AppWithLib/pom.xml                  | 196 +++++++++++++++++++++
 .../AppWithLib/src/main/resources/default.css      |  20 +++
 .../resources/jewel-example-index-template.html    |  30 ++++
 .../AppWithLib/src/main/royale/AppWithLib.mxml     |  51 ++++++
 .../org/apache/royale/examples/config/Beans.mxml   |  28 +++
 .../org/apache/royale/examples/events/SomeEvent.as |  44 +++++
 .../org/apache/royale/examples/views/MainView.mxml |  27 +++
 .../jewel/AppWithLib/src/main/sass/_global.sass    |  25 +++
 .../jewel/AppWithLib/src/main/sass/default.sass    |  21 +++
 11 files changed, 596 insertions(+)

diff --git a/examples/jewel/AppWithLib/AppWithLib.mxml.as3proj b/examples/jewel/AppWithLib/AppWithLib.mxml.as3proj
new file mode 100644
index 0000000..11c86c4
--- /dev/null
+++ b/examples/jewel/AppWithLib/AppWithLib.mxml.as3proj
@@ -0,0 +1,117 @@
+<!--
+
+  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.
+
+-->
+<?xml version="1.0" encoding="utf-8"?>
+<project>
+  <output>
+    <movie width="800"/>
+    <movie disabled="False"/>
+    <movie path="bin-debug/AppWithLib.swf"/>
+    <movie platform="Flash Player"/>
+    <movie fps="60"/>
+    <movie version="11"/>
+    <movie height="600"/>
+    <movie background="#FFFFFF"/>
+    <movie input=""/>
+  </output>
+  &lt;!-- Other classes to be compiled into your SWF --&gt;
+  <jsOutput>
+    <option path="/Users/christofer.dutz/Library/Containers/com.moonshine-ide/Data/Documents/NewJavaScriptBrowserProject"/>
+  </jsOutput>
+  <classpaths>
+    <class path="src"/>
+  </classpaths>
+  <moonshineResourcePaths></moonshineResourcePaths>
+  <moonshineNativeExtensionPaths></moonshineNativeExtensionPaths>
+  <build>
+    <option compilerConstants=""/>
+    <option strict="True"/>
+    <option useResourceBundleMetadata="True"/>
+    <option allowSourcePathOverlap="False"/>
+    <option sourceMap="True"/>
+    <option showDeprecationWarnings="True"/>
+    <option benchmark="False"/>
+    <option showBindingWarnings="True"/>
+    <option warnings="True"/>
+    <option customSDK="/Users/christofer.dutz/Downloads/MoonshineSDKs/Royale_SDK/apache-royale-0.9.8-bin-js/royale-asjs"/>
+    <option showActionScriptWarnings="True"/>
+    <option antBuildPath="build/build.xml"/>
+    <option verboseStackTraces="False"/>
+    <option loadConfig=""/>
+    <option additional="-theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css -html-template=src/resources/jewel-index-template.html"/>
+    <option linkReport=""/>
+    <option optimize="False"/>
+    <option locale=""/>
+    <option accessible="False"/>
+    <option staticLinkRSL="False"/>
+    <option showUnusedTypeSelectorWarnings="True"/>
+    <option useNetwork="True"/>
+    <option es="False"/>
+  </build>
+  <mavenBuild>
+    <option settingsFilePath=""/>
+    <option mavenBuildPath="/Users/christofer.dutz/Library/Containers/com.moonshine-ide/Data/Documents/NewJavaScriptBrowserProject"/>
+    <option commandLine=""/>
+    <actions>
+      <action action="install" actionName="Build"/>
+      <action action="clean package" actionName="Clean and package"/>
+      <action action="clean" actionName="Clean"/>
+      <action action="clean install" actionName="Clean and Build"/>
+      <action action="war:exploded" actionName="Exploded"/>
+    </actions>
+  </mavenBuild>
+  <includeLibraries></includeLibraries>
+  <libraryPaths></libraryPaths>
+  <externalLibraryPaths></externalLibraryPaths>
+  <rslPaths></rslPaths>
+  <intrinsics>
+    <element path="Library/AS3/frameworks/Flex4"/>
+    <element path="Library\AS3\frameworks\Flex4"/>
+    <element path="Library\AS3\frameworks\Flex4"/>
+  </intrinsics>
+  <library></library>
+  <compileTargets>
+    <compile path="src/NewJavaScriptBrowserProject.mxml"/>
+  </compileTargets>
+  <hiddenPaths></hiddenPaths>
+  <preBuildCommand>null</preBuildCommand>
+  <postBuildCommand alwaysRun="False">null</postBuildCommand>
+  <trustSVNCertificate>False</trustSVNCertificate>
+  <options>
+    <option testMovieCommand=""/>
+    <option defaultBuildTargets=""/>
+    <option isRoyale="True"/>
+    <option isExportedToExistingSource="False"/>
+    <option showHiddenPaths="False"/>
+    <option isPrimeFacesVisualEditor="False"/>
+    <option testMovie=""/>
+    <option visualEditorExportPath=""/>
+  </options>
+  <moonshineRunCustomization>
+    <option launchMethod="Simulator"/>
+    <option urlToLaunch="/Users/christofer.dutz/Library/Containers/com.moonshine-ide/Data/Documents/NewJavaScriptBrowserProject/bin/js-debug/index.html"/>
+    <option targetPlatform="5"/>
+    <option projectType="2"/>
+    <option customUrlToLaunch=""/>
+    <option deviceSimulator="null"/>
+    <deviceSimulator>null</deviceSimulator>
+    <certAndroid>null</certAndroid>
+    <certIos>null</certIos>
+    <certIosProvisioning>null</certIosProvisioning>
+  </moonshineRunCustomization>
+</project>
\ No newline at end of file
diff --git a/examples/jewel/AppWithLib/asconfig.json b/examples/jewel/AppWithLib/asconfig.json
new file mode 100644
index 0000000..c7cd803
--- /dev/null
+++ b/examples/jewel/AppWithLib/asconfig.json
@@ -0,0 +1,37 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+{
+    "config": "royale",
+    "compilerOptions": {
+        "debug": false,
+        "targets": ["JSRoyale"],
+        "source-path": [
+            "src/main/resources"
+        ],
+        "source-map": true,
+        "html-template": "src/main/resources/jewel-example-index-template.html",
+        "theme": "${royalelib}/themes/JewelTheme/src/main/resources/defaults.css"
+    },
+    "copySourcePathAssets": true,
+    "additionalOptions": "-js-dynamic-access-unknown-members=true",
+    "files":
+    [
+        "src/main/royale/AppWithLib.mxml"
+    ]
+}
diff --git a/examples/jewel/AppWithLib/pom.xml b/examples/jewel/AppWithLib/pom.xml
new file mode 100644
index 0000000..dbbb1b4
--- /dev/null
+++ b/examples/jewel/AppWithLib/pom.xml
@@ -0,0 +1,196 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  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.
+
+-->
+<project xmlns="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">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache</groupId>
+    <artifactId>apache</artifactId>
+    <version>23</version>
+    <relativePath />
+  </parent>
+
+  <groupId>org.apache.royale.examples</groupId>
+  <artifactId>AppWithLib</artifactId>
+  <version>0.9.8-SNAPSHOT</version>
+  <packaging>swf</packaging>
+
+  <properties>
+    <compiler.debug>true</compiler.debug>
+  </properties>
+
+  <build>
+    <sourceDirectory>src/main/royale</sourceDirectory>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.royale.compiler</groupId>
+        <artifactId>royale-maven-plugin</artifactId>
+        <version>0.9.8-SNAPSHOT</version>
+        <extensions>true</extensions>
+        <configuration>
+          <mainClass>AppWithLib.mxml</mainClass>
+          <targets>JSRoyale</targets>
+          <debug>false</debug>
+          <htmlTemplate>${basedir}/src/main/resources/jewel-example-index-template.html</htmlTemplate>
+          <additionalCompilerOptions>
+            -source-map=true;
+            -js-default-initializers=true;
+            -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css;
+            -keep-as3-metadata+=Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient;
+            -keep-code-with-metadata=Inject;
+            <!-- to access JSON object graph subobjects --> 
+            <!-- -js-dynamic-access-unknown-members=true;  -->
+          </additionalCompilerOptions>
+        </configuration>
+        <dependencies>
+          <dependency>
+            <groupId>org.apache.royale.compiler</groupId>
+            <artifactId>compiler-jx</artifactId>
+            <version>0.9.8-SNAPSHOT</version>
+          </dependency>
+        </dependencies>
+      </plugin>
+      <plugin>
+        <groupId>nl.geodienstencentrum.maven</groupId>
+        <artifactId>sass-maven-plugin</artifactId>
+        <version>3.7.2</version>
+        <configuration>
+          <resources>
+            <resource>
+              <source>
+                <directory>${basedir}/src/main/sass</directory>
+                <includes>
+                  <include>**/*.sass</include>
+                </includes>
+              </source>
+              <destination>${basedir}/src/main/resources</destination>
+            </resource>
+          </resources>
+        </configuration>
+        <executions>
+          <execution>
+            <id>generate-css-using-sass</id>
+            <goals>
+                <goal>update-stylesheets</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Core</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Basic</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Jewel</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>JewelTheme</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <scope>theme</scope>
+      <classifier>js</classifier>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Icons</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Crux</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+
+    <!-- Needed for JavaScript compilation -->
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>HTML</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Language</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+  </dependencies>
+
+  <profiles>
+    <profile>
+      <id>apache-release</id>
+      <properties>
+        <compiler.debug>false</compiler.debug>
+      </properties>
+    </profile>
+
+    <profile>
+      <id>option-with-swf</id>
+      <properties>
+        <!-- no point building the swf target  -->
+        <royale.targets>JSRoyale</royale.targets>
+      </properties>
+      <dependencies>
+        <!-- Needed for Flash compilation -->
+        <!-- <dependency>
+          <groupId>com.adobe.flash.framework</groupId>
+          <artifactId>playerglobal</artifactId>
+          <version>20.0</version>
+          <type>swc</type>
+          <scope>provided</scope>
+        </dependency> -->
+      </dependencies>
+    </profile>
+  </profiles>
+
+</project>
diff --git a/examples/jewel/AppWithLib/src/main/resources/default.css b/examples/jewel/AppWithLib/src/main/resources/default.css
new file mode 100644
index 0000000..7497f0f
--- /dev/null
+++ b/examples/jewel/AppWithLib/src/main/resources/default.css
@@ -0,0 +1,20 @@
+/**
+ *  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.
+ */
+@namespace "http://www.w3.org/1999/xhtml";
+@namespace j "library://ns.apache.org/royale/jewel";
+
+/*# sourceMappingURL=default.css.map */
diff --git a/examples/jewel/AppWithLib/src/main/resources/jewel-example-index-template.html b/examples/jewel/AppWithLib/src/main/resources/jewel-example-index-template.html
new file mode 100644
index 0000000..140ba98
--- /dev/null
+++ b/examples/jewel/AppWithLib/src/main/resources/jewel-example-index-template.html
@@ -0,0 +1,30 @@
+<!--
+  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.
+-->
+<!DOCTYPE html>
+<html>
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+    <meta name="Custom Template for injecting custom style CSS">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
+    <link rel="stylesheet" type="text/css" href="${application}.css">
+    <link href="https://fonts.googleapis.com/css?family=Lato:400,700" rel="stylesheet">
+${head}
+</head>
+<body>
+${body}
+</body>
+</html>
diff --git a/examples/jewel/AppWithLib/src/main/royale/AppWithLib.mxml b/examples/jewel/AppWithLib/src/main/royale/AppWithLib.mxml
new file mode 100644
index 0000000..4364d9d
--- /dev/null
+++ b/examples/jewel/AppWithLib/src/main/royale/AppWithLib.mxml
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+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.
+
+-->
+<j:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+            xmlns:js="library://ns.apache.org/royale/basic"
+            xmlns:j="library://ns.apache.org/royale/jewel"
+            xmlns:crux="library://ns.apache.org/royale/crux"
+            xmlns:config="org.apache.royale.examples.config.*"
+            xmlns:views="org.apache.royale.examples.views.*">
+
+    <!-- <fx:Style source="../../main/resources/default.css"/> -->
+
+    <j:valuesImpl>
+        <js:SimpleCSSValuesImpl />
+    </j:valuesImpl>
+    <j:beads>
+		<crux:JSStageEvents packageExclusionFilter="_default_"/>
+        <crux:Crux>
+            <crux:beanProviders>
+                <config:Beans/>
+            </crux:beanProviders>
+            <crux:config>
+                <crux:CruxConfig
+                    eventPackages="org.apache.royale.examples.events.*"
+                    viewPackages="org.apache.royale.examples.views.*"
+                    />
+            </crux:config>
+        </crux:Crux>
+	</j:beads>
+
+    <j:initialView>
+        <views:MainView width="100%" height="100%"/>
+    </j:initialView>
+    
+</j:Application>
diff --git a/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/config/Beans.mxml b/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/config/Beans.mxml
new file mode 100644
index 0000000..9efab2a
--- /dev/null
+++ b/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/config/Beans.mxml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+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.
+
+-->
+<crux:BeanProvider
+    xmlns:fx="http://ns.adobe.com/mxml/2009"
+	xmlns:crux="library://ns.apache.org/royale/crux"
+	xmlns:mx="library://ns.apache.org/royale/mx">
+	
+    <!-- Add beans -->
+    <!-- <mx:HTTPService id="service"/> -->
+
+</crux:BeanProvider>
diff --git a/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/events/SomeEvent.as b/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/events/SomeEvent.as
new file mode 100644
index 0000000..b7ad8aa
--- /dev/null
+++ b/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/events/SomeEvent.as
@@ -0,0 +1,44 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.apache.royale.examples.events
+{
+	import org.apache.royale.events.Event;
+
+	/**
+	 * Some Event
+	 */
+	public class SomeEvent extends Event
+	{
+		/**
+		 * Actions
+		 */
+		public static const SOME_ACTION:String = "some_action";
+		
+		/**
+         * constructor
+		 * 
+		 * This is just a normal Royale event which will be dispatched from a view instance.
+		 * The only thing to note is that we set 'bubbles' to true, so that the event will bubble
+		 * up the 'display' list, allowing Crux to listen for your events.
+		 */ 
+		public function SomeEvent(type:String) {
+			super(type, true);
+		}
+	}
+}
\ No newline at end of file
diff --git a/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/views/MainView.mxml b/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/views/MainView.mxml
new file mode 100644
index 0000000..fcb3f77
--- /dev/null
+++ b/examples/jewel/AppWithLib/src/main/royale/org/apache/royale/examples/views/MainView.mxml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+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.
+
+-->
+<j:View xmlns:fx="http://ns.adobe.com/mxml/2009"
+    xmlns:j="library://ns.apache.org/royale/jewel"
+    xmlns:js="library://ns.apache.org/royale/basic">
+    
+    <j:VGroup>
+        <j:Label text="Hello Jewel + Crux!"/>
+    </j:VGroup>
+</j:View>
\ No newline at end of file
diff --git a/examples/jewel/AppWithLib/src/main/sass/_global.sass b/examples/jewel/AppWithLib/src/main/sass/_global.sass
new file mode 100644
index 0000000..4245094
--- /dev/null
+++ b/examples/jewel/AppWithLib/src/main/sass/_global.sass
@@ -0,0 +1,25 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+@namespace "http://www.w3.org/1999/xhtml"
+@namespace j "library://ns.apache.org/royale/jewel"
+
+// .jewel
+//     .label
+//         color: #ff0000
\ No newline at end of file
diff --git a/examples/jewel/AppWithLib/src/main/sass/default.sass b/examples/jewel/AppWithLib/src/main/sass/default.sass
new file mode 100644
index 0000000..bbad92a
--- /dev/null
+++ b/examples/jewel/AppWithLib/src/main/sass/default.sass
@@ -0,0 +1,21 @@
+/**
+ *  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.
+ */
+
+// Variables
+
+// Global
+@import "global"
\ No newline at end of file