Fix #5654 - roojspacker - get it working as a doc tool...
[roojs1] / docs / Roo.docs.bjs
diff --git a/docs/Roo.docs.bjs b/docs/Roo.docs.bjs
new file mode 100644 (file)
index 0000000..282156e
--- /dev/null
@@ -0,0 +1,417 @@
+{
+ "name" : "Roo.docs",
+ "parent" : "",
+ "title" : "",
+ "path" : "/home/alan/gitlive/roojs1/docs2/Roo.docs.bjs",
+ "permname" : "",
+ "modOrder" : "001",
+ "strings" : {
+  "3e6ec55e2dff4342e3f25b0b0b988de9" : "Inheritance tree",
+  "ae635f08107a69569e636835f24e6f6f" : " extends ",
+  "87f9f735a1d36793ceaecd4e47124b63" : "Events",
+  "d41d8cd98f00b204e9800998ecf8427e" : " ",
+  "50f33d14f129e4548c1c270fd6725a78" : "Configuration options",
+  "e64b94523532dbac62df6795a5153f04" : "doc-desc",
+  "3673e725413179fe76f341ed908a5c36" : "Defined in: ",
+  "d2b697ad8e989a6c4592987f22f5bbfc" : "doc-comments",
+  "f361257612a512f9be2fdc2abfb25aef" : "<small>Defined by</small>",
+  "494a64a432ff6a121e4ab9003c7a0df3" : "parentcls",
+  "9bd81329febf6efe22788e03ddeaf0af" : " Class ",
+  "f561aaf6ef0bf14d4208bb46a4ccb3ad" : "xxx",
+  "a1d108496af420635536a4e29e87d42b" : "Constructor, Static and Public Methods"
+ },
+ "items" : [
+  {
+   "listeners" : {
+    "render" : "function (_self)\n{\n      \n   \n    \n}"
+   },
+   "String cls" : "doc-body",
+   "xtype" : "Body",
+   "$ xns" : "Roo.bootstrap",
+   "items" : [
+    {
+     "listeners" : {
+      "render" : "function (_self)\n{\n  //  this.el.addClass(language);\n    \n}"
+     },
+     "String cls" : "left-menu-sidebar",
+     "xtype" : "NavSidebar",
+     "$ xns" : "Roo.bootstrap",
+     "String style" : "padding-top:80px;",
+     "items" : [
+      {
+       "listeners" : {
+        "render" : "function (_self)\n{\n    _this.navGroup = this;\n    \n}",
+        "childrenrendered" : "function (_self)\n{\n    _this.navGroup.autoExpand();\n    \n    _this.navGroup.activeLookup();\n}"
+       },
+       "| function activeLookup" : "function() \n{ \n    return;\n    \n    var pathname = window.location.pathname.substring(baseURL.length);\n    \n    if(!pathname.length){\n        return;\n    }\n    \n    if(pathname.match(/^\\/Projects/)){\n        pathname = '/Projects';\n    }\n    \n    var lookupPath = function(item)\n    {\n        if(typeof(item.href) == 'undefined' || !item.href.length || item.href == '#'){\n            return true;\n        }\n        \n        item.el.removeClass('active');\n        \n        var href = item.href.substring(baseURL.length);\n        \n        if(href != pathname){\n            return true;\n        }\n        \n        item.el.addClass('active');\n        return false;\n            \n    };\n    \n    var seted = false;\n    \n    Roo.each(_this.navGroup.items, function(i){\n        \n        var s = lookupPath(i);\n        \n        if(!s){\n            return false;\n        }\n        \n        if(typeof(i.menu) == 'undefined' || !i.menu.items.length){\n            return;\n        }\n        \n        Roo.each(i.menu.items, function(ii){\n            \n            var ss = lookupPath(ii);\n            \n            if(!ss){\n                seted = true;\n                return false;\n            }\n            \n        });\n        \n        if(seted){\n            return false;\n        }\n        \n    });\n}",
+       "xtype" : "NavGroup",
+       "$ xns" : "Roo.bootstrap",
+       "| function autoExpand" : "function() \n{ \n    return;\n    \n    _this.menu_expand = false;\n    \n    var lookupMenu = function(menu, index){\n        \n        if(menu.target == pagedata.page.target){\n            _this.menu_expand = index + 1;\n            return;\n        }\n        \n        if(!menu.children.length){\n            return;\n        }\n        \n        Roo.each(menu.children, function(c){\n            lookupMenu(c, index);\n        });\n        \n    }\n    \n    Roo.each(pagemenus, function(v, k){\n        \n        lookupMenu(v, k);\n        \n    });\n    \n    if(_this.menu_expand === false){\n        return;\n    }\n    \n    if(typeof(_this.navGroup.items[_this.menu_expand].menu) == 'undefined'){\n        return;\n    }\n    \n    _this.navGroup.items[_this.menu_expand].menu.show(_this.navGroup.items[_this.menu_expand].el, false, false);\n    \n}",
+       "items" : [
+        {
+         "Boolean active" : false,
+         "String cls" : "",
+         "xtype" : "NavItem",
+         "$ xns" : "Roo.bootstrap",
+         "String style" : "position:fixed;top:0;z-Index:1000;",
+         "items" : [
+          {
+           "String cls" : "logo",
+           "Boolean preventDefault" : false,
+           "xtype" : "Link",
+           "$ xns" : "Roo.bootstrap",
+           "$ string href" : "baseURL +'/'"
+          }
+         ]
+        }
+       ]
+      },
+      {
+       "String cls" : "left-menu-sidebar-options",
+       "xtype" : "Container",
+       "$ xns" : "Roo.bootstrap",
+       "items" : [
+        {
+         "xtype" : "Row",
+         "$ xns" : "Roo.bootstrap"
+        }
+       ]
+      }
+     ]
+    },
+    {
+     "listeners" : {
+      "beforetoggle" : "function (_self)\n{\n    _this.navGroup.autoExpand(); \n    \n    _this.navGroup.activeLookup();\n    \n    _this.navHeaderBar.mask.show();\n    \n    if(this.el.select('.navbar-collapse',true).first().hasClass('in')){\n        _this.navHeaderBar.mask.hide();\n        return;\n    }\n}",
+      "render" : "function (_self)\n{\n    return;\n    \n    _this.navHeaderBar = this;\n    \n    this.el.addClass(language); \n    \n    var body = Roo.select('body', true).first();\n    \n    var mark = {\n        tag: \"div\",\n        cls:\"x-dlg-mask\"\n    };\n    \n    this.mask = Roo.DomHelper.append(body, mark, true);\n    \n    var size = body.getSize();\n    this.mask.setSize(size.width, size.height);\n    \n    this.mask.setStyle('z-index', '1029');\n    \n    this.mask.enableDisplayMode(\"block\");\n    this.mask.hide();\n    \n    this.mask.on('click', function(){\n        \n        this.el.select('.navbar-collapse',true).removeClass('in'); \n        this.mask.hide();\n        \n    }, this);\n    \n    \n    var maxHeight = Roo.lib.Dom.getViewHeight() - this.el.select('.navbar-header', true).first().getHeight();\n    \n    this.el.select('.navbar-collapse', true).first().setStyle('max-height', maxHeight);\n    \n}"
+     },
+     "$ String brand_href" : "baseURL + '/'",
+     "String cls" : "mobile-header-menu",
+     "String position" : "fixed-top",
+     "bool autohide" : true,
+     "xtype" : "NavHeaderbar",
+     "Boolean inverse" : false,
+     "$ xns" : "Roo.bootstrap",
+     "String brand" : " ",
+     "String style" : ""
+    },
+    {
+     "listeners" : {
+      "render" : "function (_self)\n{\n    _this.doc_body_content = this;\n}"
+     },
+     "String cls" : "general-content-body",
+     "xtype" : "Container",
+     "$ xns" : "Roo.bootstrap",
+     "items" : [
+      {
+       "xtype" : "Row",
+       "$ xns" : "Roo.bootstrap",
+       "String style" : "margin: 0px;",
+       "items" : [
+        {
+         "Number md" : 9,
+         "xtype" : "Column",
+         "$ xns" : "Roo.bootstrap",
+         "String style" : "padding-left: 0px;",
+         "items" : [
+          {
+           "String cls" : "doc-header-container",
+           "xtype" : "Container",
+           "$ xns" : "Roo.bootstrap",
+           "items" : [
+            {
+             "xtype" : "Header",
+             "$ xns" : "Roo.bootstrap",
+             "Number level" : 4,
+             "String html" : " Class ",
+             "items" : [
+              {
+               "listeners" : {
+                "render" : "function (_self)\n{\n    _this.doc_name = this\n}"
+               },
+               "String tag" : "span",
+               "String cls" : "doc-classname",
+               "xtype" : "Element",
+               "$ xns" : "Roo.bootstrap",
+               "String html" : "xxx",
+               "String style" : "font-size: 24px;\n    font-weight: bold;"
+              },
+              {
+               "listeners" : {
+                "render" : "function (_self)\n{\n    _this.doc_extends_sep = this;\n}"
+               },
+               "String tag" : "small",
+               "String cls" : "doc-extends-str",
+               "xtype" : "Element",
+               "$ xns" : "Roo.bootstrap",
+               "String html" : " extends ",
+               "items" : [
+                {
+                 "listeners" : {
+                  "render" : "function (_self)\n{\n    _this.doc_extends = this;\n}",
+                  "click" : "function (e)\n{\n\n    if (this.el.dom.innerHTML.length) {\n        Roo.docs.init.loadDoc({ name : this.el.dom.innerHTML, is_class : true});\n    }\n}"
+                 },
+                 "String cls" : "doc-extends",
+                 "Boolean preventDefault" : false,
+                 "xtype" : "Link",
+                 "$ xns" : "Roo.bootstrap",
+                 "String html" : "parentcls"
+                }
+               ]
+              }
+             ]
+            },
+            {
+             "xtype" : "Header",
+             "Number level" : 5,
+             "$ xns" : "Roo.bootstrap",
+             "String html" : "Defined in: ",
+             "items" : [
+              {
+               "listeners" : {
+                "render" : "function (_self)\n{\n    _this.doc_source = this;\n}",
+                "click" : "function (e)\n{\n    \n    Roo.log([\"click\", this]);\n    if (this.el.dom.innerHTML.length > 0) {\n        Roo.docs.init.loadSource();\n    }\n}"
+               },
+               "String cls" : "doc-source",
+               "String href" : "#",
+               "Boolean preventDefault" : true,
+               "xtype" : "Link",
+               "$ xns" : "Roo.bootstrap",
+               "String html" : "Defined in: "
+              }
+             ]
+            }
+           ]
+          },
+          {
+           "listeners" : {
+            "render" : "function (_self)\n{\n    _this.doc_desc = this;\n}"
+           },
+           "String cls" : "doc-desc",
+           "xtype" : "Container",
+           "$ xns" : "Roo.bootstrap",
+           "String html" : "doc-desc"
+          },
+          {
+           "String cls" : "doc-comments",
+           "xtype" : "Container",
+           "$ xns" : "Roo.bootstrap",
+           "String html" : "doc-comments",
+           "Boolean hidden" : true
+          }
+         ]
+        },
+        {
+         "Number md" : 3,
+         "xtype" : "Column",
+         "$ xns" : "Roo.bootstrap",
+         "items" : [
+          {
+           "listeners" : {
+            "render" : "function (_self)\n{\n    _this.augments  = this;\n}"
+           },
+           "String header" : "Inheritance tree",
+           "String cls" : "doc-augments",
+           "xtype" : "Container",
+           "String panel" : "success",
+           "$ xns" : "Roo.bootstrap"
+          }
+         ]
+        }
+       ]
+      },
+      {
+       "listeners" : {
+        "render" : "function (_self)\n{\n    _this.configTableContainer = this;\n}"
+       },
+       "String header" : "Configuration options",
+       "String cls" : "doc-table-container",
+       "Boolean expanded" : true,
+       "xtype" : "Container",
+       "String panel" : "info",
+       "$ xns" : "Roo.bootstrap",
+       "String style" : "margin-top:15px",
+       "Boolean expandable" : true,
+       "items" : [
+        {
+         "listeners" : {
+          "rowclass" : "function (_self, rowcfg)\n{\n      rc = rowcfg.record.json.memberOf == Roo.docs.init.currentClass ? 'doc-added-member '  : 'doc-not-member ';\n      rowcfg.rowClass = rc + (rowcfg.record.json.expanded ? 'expanded' : '');\n}",
+          "render" : "function (_self)\n{\n    _this.configTable = this;\n}",
+          "rowclick" : "function (_self, el, rowIndex, e)\n{\n    if (e.target.className != 'fixedFont' && e.target.parentNode.className != 'fixedFont') {\n        return false;\n    }\n    \n    var r = this.store.getAt(rowIndex);\n    r.json.expanded = !r.json.expanded ;\n    this.refreshRow(r);\n}"
+         },
+         "boolean striped" : true,
+         "xtype" : "Table",
+         "Boolean rowSelection" : true,
+         "$ xns" : "Roo.bootstrap",
+         "items" : [
+          {
+           "String header" : "",
+           "String dataIndex" : "name",
+           "Number md" : 11,
+           "$ Function renderer" : "function(v,x,r) { \n\n    return Roo.docs.template.config(r.json);\n\n\t\t\t\n}",
+           "xtype" : "ColumnModel",
+           "$ xns" : "Roo.grid",
+           "* prop" : "cm[]"
+          },
+          {
+           "String header" : "<small>Defined by</small>",
+           "String dataIndex" : "memberOf",
+           "Number md" : 1,
+           "$ Function renderer" : "function(v,x,r) { \n if (r.json.memberOf  == Roo.docs.init.currentClass) {\n            return '';\n        }\n\n\t\treturn \t'<small><a href=\"#' + r.json.memberOf + '\">' + r.json.memberOf + '</a></small>';\n\t\t\t\n}",
+           "xtype" : "ColumnModel",
+           "$ xns" : "Roo.grid",
+           "* prop" : "cm[]"
+          },
+          {
+           "xtype" : "Store",
+           "$ xns" : "Roo.data",
+           "* prop" : "store",
+           "items" : [
+            {
+             "xtype" : "MemoryProxy",
+             "$ xns" : "Roo.data",
+             "* prop" : "proxy"
+            },
+            {
+             "xtype" : "ArrayReader",
+             "$ fields" : "[ 'name', 'type', 'desc', 'memberOf' ]",
+             "$ xns" : "Roo.data",
+             "* prop" : "reader"
+            }
+           ]
+          }
+         ]
+        }
+       ]
+      },
+      {
+       "listeners" : {
+        "render" : "function (_self)\n{\n    _this.methodsTableContainer = this;\n}"
+       },
+       "String header" : "Constructor, Static and Public Methods",
+       "String cls" : "doc-table-container",
+       "Boolean expanded" : false,
+       "String panel" : "info",
+       "xtype" : "Container",
+       "$ xns" : "Roo.bootstrap",
+       "Boolean expandable" : true,
+       "items" : [
+        {
+         "listeners" : {
+          "rowclass" : "function (_self, rowcfg)\n{\n      var j = rowcfg.record.json;\n      var rc = j.memberOf == Roo.docs.init.currentClass || j.isConstructor ? 'doc-added-member '  : 'doc-not-member ';\n      rowcfg.rowClass = rc + (rowcfg.record.json.expanded ? 'expanded' : '');\n}",
+          "render" : "function (_self)\n{\n    _this.methodsTable = this;\n}",
+          "rowclick" : "function (_self, el, rowIndex, e)\n{\n      if (e.target.className != 'fixedFont' && e.target.parentNode.className != 'fixedFont') {\n        return false;\n    }\n     var r = this.store.getAt(rowIndex);\n    r.json.expanded = !r.json.expanded ;\n    this.refreshRow(r);\n}"
+         },
+         "xtype" : "Table",
+         "Boolean rowSelection" : true,
+         "$ xns" : "Roo.bootstrap",
+         "items" : [
+          {
+           "String header" : " ",
+           "Number md" : 11,
+           "String dataIndex" : "name",
+           "$ Function renderer" : "function(v,x,r) { \n\n    return Roo.docs.template.method(r.json);\n\t\t \n\t\t\t\n}",
+           "xtype" : "ColumnModel",
+           "$ xns" : "Roo.grid",
+           "Boolean sortable" : false,
+           "* prop" : "cm[]"
+          },
+          {
+           "String header" : "<small>Defined by</small>",
+           "Number md" : 1,
+           "String dataIndex" : "memberOf",
+           "$ Function renderer" : "function(v,x,r) { \n\n if (r.json.memberOf  == Roo.docs.init.currentClass) {\n            return '';\n        }\n\t\treturn \t'<small><a href=\"#' + r.json.memberOf + '\">' + r.json.memberOf + '</a></small>';\n\t\t\t\n}",
+           "xtype" : "ColumnModel",
+           "$ xns" : "Roo.grid",
+           "* prop" : "cm[]"
+          },
+          {
+           "$ Object sortInfo" : "{ field : 'name', direction : 'ASC' }",
+           "xtype" : "Store",
+           "$ xns" : "Roo.data",
+           "* prop" : "store",
+           "items" : [
+            {
+             "xtype" : "MemoryProxy",
+             "$ xns" : "Roo.data",
+             "* prop" : "proxy"
+            },
+            {
+             "xtype" : "ArrayReader",
+             "$ fields" : "[ 'name', 'type', 'desc', 'memberOf' ]",
+             "$ xns" : "Roo.data",
+             "* prop" : "reader"
+            }
+           ]
+          }
+         ]
+        }
+       ]
+      },
+      {
+       "listeners" : {
+        "render" : "function (_self)\n{\n    _this.eventsTableContainer   = this;\n}"
+       },
+       "String header" : "Events",
+       "String cls" : "doc-table-container",
+       "Boolean expanded" : false,
+       "xtype" : "Container",
+       "String panel" : "info",
+       "$ xns" : "Roo.bootstrap",
+       "Boolean expandable" : true,
+       "items" : [
+        {
+         "listeners" : {
+          "rowclass" : "function (_self, rowcfg)\n{\n      rc = rowcfg.record.json.memberOf == Roo.docs.init.currentClass ? 'doc-added-member '  : 'doc-not-member ';\n      rowcfg.rowClass = rc + (rowcfg.record.json.expanded ? 'expanded' : '');\n}",
+          "render" : "function (_self)\n{\n    _this.eventsTable = this;\n}",
+          "rowclick" : "function (_self, el, rowIndex, e)\n{\n        if (e.target.className != 'fixedFont' && e.target.parentNode.className != 'fixedFont') {\n        return false;\n    }\n    var r = this.store.getAt(rowIndex);\n    r.json.expanded = !r.json.expanded ;\n    this.refreshRow(r);\n}"
+         },
+         "xtype" : "Table",
+         "Boolean rowSelection" : true,
+         "$ xns" : "Roo.bootstrap",
+         "items" : [
+          {
+           "String header" : "",
+           "String dataIndex" : "name",
+           "Number md" : 11,
+           "$ Function renderer" : "function(v,x,r) { \n\n    return Roo.docs.template.event(r.json);\n\t\t \n\t\t\t\n}",
+           "xtype" : "ColumnModel",
+           "$ xns" : "Roo.grid",
+           "* prop" : "cm[]"
+          },
+          {
+           "String header" : "<small>Defined by</small>",
+           "String dataIndex" : "memberOf",
+           "Number md" : 1,
+           "$ Function renderer" : "function(v,x,r) { \n        if (r.json.memberOf  == Roo.docs.init.currentClass) {\n            return '';\n        }\n\n\t\treturn \t'<small><a href=\"#' + r.json.memberOf + '\">' + r.json.memberOf + '</a></small>';\n\t\t\t\n}",
+           "xtype" : "ColumnModel",
+           "$ xns" : "Roo.grid",
+           "* prop" : "cm[]"
+          },
+          {
+           "xtype" : "Store",
+           "$ xns" : "Roo.data",
+           "* prop" : "store",
+           "items" : [
+            {
+             "xtype" : "ArrayReader",
+             "$ xns" : "Roo.data",
+             "$ fields" : "[ 'name', 'type', 'desc', 'memberOf' ]",
+             "* prop" : "reader"
+            },
+            {
+             "xtype" : "MemoryProxy",
+             "$ xns" : "Roo.data",
+             "* prop" : "proxy"
+            }
+           ]
+          }
+         ]
+        }
+       ]
+      }
+     ]
+    }
+   ]
+  }
+ ]
+}
\ No newline at end of file