aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Components/ComponentsPanelBase.reel
diff options
context:
space:
mode:
authorEric Guzman2012-04-05 18:42:40 -0700
committerEric Guzman2012-04-05 18:42:40 -0700
commit8ff9dde2053e41d85bb27d9c91808a30e551a138 (patch)
tree8eec67d632d82d3052ed470096eda13fd50a55c8 /js/panels/Components/ComponentsPanelBase.reel
parent4631d54ffb4942378835689e9f5d70ed95610822 (diff)
parent7656b6eac7aec59697c6cddbe2a507fe9e4aa187 (diff)
downloadninja-8ff9dde2053e41d85bb27d9c91808a30e551a138.tar.gz
Merge branch 'refs/heads/master' into CSSPanelUpdates
Diffstat (limited to 'js/panels/Components/ComponentsPanelBase.reel')
-rwxr-xr-xjs/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.css11
-rwxr-xr-xjs/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.html65
-rwxr-xr-xjs/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js423
3 files changed, 0 insertions, 499 deletions
diff --git a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.css b/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.css
deleted file mode 100755
index ac250c83..00000000
--- a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.css
+++ /dev/null
@@ -1,11 +0,0 @@
1/* <copyright>
2 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3 No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4 (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5 </copyright> */
6
7.treeHolder{
8 width: 227px;
9 background: red;
10 padding-left: 13px;
11}
diff --git a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.html b/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.html
deleted file mode 100755
index 6d7c8a2c..00000000
--- a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.html
+++ /dev/null
@@ -1,65 +0,0 @@
1<!DOCTYPE html>
2<!-- <copyright>
3 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
4 No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
5 (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
6 </copyright> -->
7<html lang="en">
8 <head>
9 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
10 <link rel="stylesheet" type="text/css" href="ComponentsPanelBase.css">
11
12 <script type="text/montage-serialization">
13 {
14 "owner": {
15 "module": "js/panels/Components/ComponentsPanelBase.reel",
16 "name": "ComponentsPanelBase",
17 "properties": {
18 "element": {"#": "components_panel"},
19 "controller": {"@": "componentsTree"}
20 }
21 },
22
23 "componentsController" : {
24 "module": "js/components/controllers/tree-controller",
25 "name": "TreeController",
26 "properties" : {
27 "branchKey" : "children",
28 "labelKey" : "text",
29 "delegate": {"@": "owner" }
30 },
31 "bindings": {
32 "content": {
33 "boundObject": {"@": "owner"},
34 "boundObjectPropertyPath": "components"
35 }
36 }
37 },
38
39 "componentsTree" : {
40 "module" : "js/components/treeview/treeview.reel",
41 "name" : "Treeview",
42 "properties" : {
43 "element" : {"#": "componentsContainer"},
44 "branchComponent" : {"@": "branch" },
45 "contentController": {"@": "componentsController"},
46 "showRoot" : false
47 }
48 },
49
50 "branch" : {
51 "module" : "js/components/treeview/ninja-branch.reel",
52 "name" : "Branch"
53 }
54 }
55 </script>
56
57 </head>
58 <body>
59
60 <div id="components_panel" class="components_panel">
61 <div id="componentsContainer"></div>
62 </div>
63
64 </body>
65</html> \ No newline at end of file
diff --git a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js b/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js
deleted file mode 100755
index e990551b..00000000
--- a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js
+++ /dev/null
@@ -1,423 +0,0 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5</copyright> */
6
7var Montage = require("montage/core/core").Montage,
8 Component = require("montage/ui/component").Component,
9 NJUtils = require("js/lib/NJUtils").NJUtils;
10
11var treeControlModule = require("js/components/tree.reel");
12var PIData = require("js/data/pi/pi-data").PiData;
13
14String.prototype.capitalizeFirstChar = function() {
15 return this.charAt(0).toUpperCase() + this.slice(1);
16};
17
18
19var ComponentsPanelBase = exports.ComponentsPanelBase = Montage.create(Component, {
20
21 components: {
22 value: {
23 "text": "styles",
24 "children": [
25 {
26 "text": "Widgets",
27 "children": [
28 {
29 "text": "Feed Reader",
30 "dataFile" : "node_modules/components-data/feed-reader.json",
31 "component": "feedreader"
32 },
33 {
34 "text": "Map",
35 "dataFile" : "node_modules/components-data/map.json",
36 "component": "map"
37 },
38 {
39 "text": "Picasa Carousel",
40 "dataFile" : "node_modules/components-data/picasa-carousel.json",
41 "component": "picasa-carousel"
42 },
43 {
44 "text": "Search Bar",
45 "dataFile" : "node_modules/components-data/searchfield.json",
46 "component": "searchfield"
47 },
48 {
49 "text": "Youtube Channel",
50 "dataFile" : "node_modules/components-data/youtube-channel.json",
51 "component": "youtube-channel"
52 }
53 ]
54 },
55 {
56 "text": "Montage Components",
57 "children": [
58 {
59 "text": "Anchor",
60 "dataFile" : "node_modules/components-data/anchor.json",
61 "component": "anchor"
62 },
63 {
64 "text": "Button",
65 "dataFile" : "node_modules/components-data/button.json",
66 "component": "button"
67 },
68 {
69 "text": "Checkbox",
70 "dataFile" : "node_modules/components-data/checkbox.json",
71 "component": "checkbox"
72 },
73 {
74 "text": "Image Component",
75 "dataFile" : "node_modules/components-data/image.json",
76 "component": "imageComponent"
77 },
78 {
79 "text": "NumberInput",
80 "dataFile" : "node_modules/components-data/number-input.json",
81 "component": "numberInput"
82 },
83 {
84 "text": "Select Input",
85 "dataFile" : "node_modules/components-data/select.json",
86 "component": "select"
87 },
88 {
89 "text": "Radio Button",
90 "dataFile" : "node_modules/components-data/radio-button.json",
91 "component": "radioButton"
92 },
93 {
94 "text": "Range Input",
95 "dataFile" : "node_modules/components-data/range-input.json",
96 "component": "rangeInput"
97 },
98 {
99 "text": "TextArea",
100 "dataFile" : "node_modules/components-data/textarea.json",
101 "component": "textarea"
102 },
103 {
104 "text": "Textfield",
105 "dataFile" : "node_modules/components-data/textfield.json",
106 "component": "textfield"
107 },
108 {
109 "text": "Toogle Button",
110 "dataFile" : "node_modules/components-data/toggle-button.json",
111 "component": "toggleButton"