From 84ceb1902ae91f91bebb5a4ddab91a429f4ba9e2 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 8 Aug 2017 12:05:44 +0800 Subject: [PATCH] docs/default.css Attribute changed docs/default.css docs/doc.js Attribute changed docs/doc.js docs/header.html Attribute changed docs/header.html docs/index.html Attribute changed docs/index.html docs/page.js Attribute changed docs/page.js docs/symbols/src/Array.js.html docs/symbols/src/Date.js.html docs/symbols/src/Function.js.html docs/symbols/src/Number.js.html docs/symbols/src/Roo.js.html docs/symbols/src/String.js.html docs/symbols/src/roojs-calendar-debug.js.html docs/symbols/src/roojs-calendar.js.html docs/symbols/src/roojs-doc-debug.js.html docs/symbols/src/roojs-doc.js.html docs/symbols/src/Roo_Ajax.js.html docs/symbols/src/Roo_BasicDialog.js.html docs/symbols/src/Roo_BasicLayoutRegion.js.html docs/symbols/src/Roo_BorderLayout.js.html docs/symbols/src/Roo_BoxComponent.js.html docs/symbols/src/Roo_Button.js.html docs/symbols/src/Roo_CalendarPanel.js.html docs/symbols/src/Roo_CenterLayoutRegion.js.html docs/symbols/src/Roo_ColorPalette.js.html docs/symbols/src/Roo_Component.js.html docs/symbols/src/Roo_ComponentMgr.js.html docs/symbols/src/Roo_CompositeElement.js.html docs/symbols/src/Roo_CompositeElementLite.js.html docs/symbols/src/Roo_ContentPanel.js.html docs/symbols/src/Roo_DDView.js.html docs/symbols/src/Roo_DatePicker.js.html docs/symbols/src/Roo_Document.js.html docs/symbols/src/Roo_DomHelper.js.html docs/symbols/src/Roo_DomQuery.js.html docs/symbols/src/Roo_DomTemplate.js.html docs/symbols/src/Roo_Editor.js.html docs/symbols/src/Roo_Element.js.html docs/symbols/src/Roo_EventManager.js.html docs/symbols/src/Roo_Fx.js.html docs/symbols/src/Roo_HtmlEditorCore.js.html docs/symbols/src/Roo_JsonView.js.html docs/symbols/src/Roo_KeyMap.js.html docs/symbols/src/Roo_KeyNav.js.html docs/symbols/src/Roo_Layer.js.html docs/symbols/src/Roo_LayoutManager.js.html docs/symbols/src/Roo_LayoutRegion.js.html docs/symbols/src/Roo_LayoutStateManager.js.html docs/symbols/src/Roo_LoadMask.js.html docs/symbols/src/Roo_Login.js.html docs/symbols/src/Roo_MasterTemplate.js.html docs/symbols/src/Roo_MessageBox.js.html docs/symbols/src/Roo_PagingToolbar.js.html docs/symbols/src/Roo_QuickTips.js.html docs/symbols/src/Roo_ReaderLayout.js.html docs/symbols/src/Roo_Resizable.js.html docs/symbols/src/Roo_Shadow.js.html docs/symbols/src/Roo_SplitBar.js.html docs/symbols/src/Roo_SplitButton.js.html docs/symbols/src/Roo_SplitLayoutRegion.js.html docs/symbols/src/Roo_TabPanel.js.html docs/symbols/src/Roo_Template.js.html docs/symbols/src/Roo_Toolbar.js.html docs/symbols/src/Roo_UpdateManager.js.html docs/symbols/src/Roo_View.js.html docs/symbols/src/Roo_ViewPanel.js.html docs/symbols/src/Roo_XComponent.js.html docs/symbols/src/Roo_XTemplate.js.html docs/symbols/src/Roo_data_ArrayReader.js.html docs/symbols/src/Roo_data_Connection.js.html docs/symbols/src/Roo_data_DataProxy.js.html docs/symbols/src/Roo_data_DataReader.js.html docs/symbols/src/Roo_data_Field.js.html docs/symbols/src/Roo_data_HttpProxy.js.html docs/symbols/src/Roo_data_JsonReader.js.html docs/symbols/src/Roo_data_JsonStore.js.html docs/symbols/src/Roo_data_MemoryProxy.js.html docs/symbols/src/Roo_data_Record.js.html docs/symbols/src/Roo_data_ScriptTagProxy.js.html docs/symbols/src/Roo_data_SimpleStore.js.html docs/symbols/src/Roo_data_SortTypes.js.html docs/symbols/src/Roo_data_Store.js.html docs/symbols/src/Roo_data_Tree.js.html docs/symbols/src/Roo_data_XmlReader.js.html docs/symbols/src/Roo_dd_DD.js.html docs/symbols/src/Roo_dd_DDProxy.js.html docs/symbols/src/Roo_dd_DDTarget.js.html docs/symbols/src/Roo_dd_DragDrop.js.html docs/symbols/src/Roo_dd_DragDropMgr.js.html docs/symbols/src/Roo_dd_DragSource.js.html docs/symbols/src/Roo_dd_DragZone.js.html docs/symbols/src/Roo_dd_DropTarget.js.html docs/symbols/src/Roo_dd_DropZone.js.html docs/symbols/src/Roo_dd_Registry.js.html docs/symbols/src/Roo_dd_ScrollManager.js.html docs/symbols/src/Roo_dd_StatusProxy.js.html docs/symbols/src/Roo_form_Action.js.html docs/symbols/src/Roo_form_BasicForm.js.html docs/symbols/src/Roo_form_Checkbox.js.html docs/symbols/src/Roo_form_ComboBox.js.html docs/symbols/src/Roo_form_ComboBoxArray.js.html docs/symbols/src/Roo_form_ComboCheck.js.html docs/symbols/src/Roo_form_DateField.js.html docs/symbols/src/Roo_form_DayPicker.js.html docs/symbols/src/Roo_form_DisplayField.js.html docs/symbols/src/Roo_form_FCKeditor.js.html docs/symbols/src/Roo_form_Field.js.html docs/symbols/src/Roo_form_Form.js.html docs/symbols/src/Roo_form_GridField.js.html docs/symbols/src/Roo_form_Hidden.js.html docs/symbols/src/Roo_form_HtmlEditor.js.html docs/symbols/src/Roo_form_Layout.js.html docs/symbols/src/Roo_form_MonthField.js.html docs/symbols/src/Roo_form_NumberField.js.html docs/symbols/src/Roo_form_Radio.js.html docs/symbols/src/Roo_form_Select.js.html docs/symbols/src/Roo_form_Signature.js.html docs/symbols/src/Roo_form_TextArea.js.html docs/symbols/src/Roo_form_TextField.js.html docs/symbols/src/Roo_form_TriggerField.js.html docs/symbols/src/Roo_form_VTypes.js.html docs/symbols/src/Roo_form_HtmlEditor_ToolbarContext.js.html docs/symbols/src/Roo_form_HtmlEditor_ToolbarStandard.js.html docs/symbols/src/Roo_grid_AbstractGridView.js.html docs/symbols/src/Roo_grid_AbstractSelectionModel.js.html docs/symbols/src/Roo_grid_Calendar.js.html docs/symbols/src/Roo_grid_CellSelectionModel.js.html docs/symbols/src/Roo_grid_ColumnModel.js.html docs/symbols/src/Roo_grid_EditorGrid.js.html docs/symbols/src/Roo_grid_Grid.js.html docs/symbols/src/Roo_grid_GridDragZone.js.html docs/symbols/src/Roo_grid_GridEditor.js.html docs/symbols/src/Roo_grid_GridView.js.html docs/symbols/src/Roo_grid_HeaderDragZone.js.html docs/symbols/src/Roo_grid_HeaderDropZone.js.html docs/symbols/src/Roo_grid_PropertyGrid.js.html docs/symbols/src/Roo_grid_RowSelectionModel.js.html docs/symbols/src/Roo_grid_SplitDragZone.js.html docs/symbols/src/Roo_lib_Ajax.js.html docs/symbols/src/Roo_lib_Anim.js.html docs/symbols/src/Roo_lib_AnimBase.js.html docs/symbols/src/Roo_lib_AnimMgr.js.html docs/symbols/src/Roo_lib_Beizer.js.html docs/symbols/src/Roo_lib_Color.js.html docs/symbols/src/Roo_lib_ColorAnim.js.html docs/symbols/src/Roo_lib_Dom.js.html docs/symbols/src/Roo_lib_Easing.js.html docs/symbols/src/Roo_lib_Event.js.html docs/symbols/src/Roo_lib_Motion.js.html docs/symbols/src/Roo_lib_Point.js.html docs/symbols/src/Roo_lib_Region.js.html docs/symbols/src/Roo_lib_Scroll.js.html docs/symbols/src/Roo_menu_Adapter.js.html docs/symbols/src/Roo_menu_BaseItem.js.html docs/symbols/src/Roo_menu_CheckItem.js.html docs/symbols/src/Roo_menu_ColorItem.js.html docs/symbols/src/Roo_menu_ColorMenu.js.html docs/symbols/src/Roo_menu_DateItem.js.html docs/symbols/src/Roo_menu_DateMenu.js.html docs/symbols/src/Roo_menu_Item.js.html docs/symbols/src/Roo_menu_Menu.js.html docs/symbols/src/Roo_menu_MenuMgr.js.html docs/symbols/src/Roo_menu_Separator.js.html docs/symbols/src/Roo_menu_TextItem.js.html docs/symbols/src/Roo_state_CookieProvider.js.html docs/symbols/src/Roo_state_Manager.js.html docs/symbols/src/Roo_state_Provider.js.html docs/symbols/src/Roo_tree_AsyncTreeNode.js.html docs/symbols/src/Roo_tree_ColumnNodeUI.js.html docs/symbols/src/Roo_tree_ColumnTree.js.html docs/symbols/src/Roo_tree_TreeDragZone.js.html docs/symbols/src/Roo_tree_TreeDropZone.js.html docs/symbols/src/Roo_tree_TreeEditor.js.html docs/symbols/src/Roo_tree_TreeFilter.js.html docs/symbols/src/Roo_tree_TreeLoader.js.html docs/symbols/src/Roo_tree_TreeNode.js.html docs/symbols/src/Roo_tree_TreeNodeUI.js.html docs/symbols/src/Roo_tree_TreePanel.js.html docs/symbols/src/Roo_tree_TreeSelectionModel.js.html docs/symbols/src/Roo_tree_TreeSorter.js.html docs/symbols/src/Roo_util_CSS.js.html docs/symbols/src/Roo_util_ClickRepeater.js.html docs/symbols/src/Roo_util_DelayedTask.js.html docs/symbols/src/Roo_util_Format.js.html docs/symbols/src/Roo_util_JSON.js.html docs/symbols/src/Roo_util_Math.js.html docs/symbols/src/Roo_util_MixedCollection.js.html docs/symbols/src/Roo_util_Observable.js.html docs/symbols/src/Roo_util_TaskRunner.js.html docs/symbols/src/Roo_util_TextMetrics.js.html docs/symbols/src/Roo_bootstrap_Alert.js.html docs/symbols/src/Roo_bootstrap_Body.js.html docs/symbols/src/Roo_bootstrap_Brick.js.html docs/symbols/src/Roo_bootstrap_Button.js.html docs/symbols/src/Roo_bootstrap_ButtonGroup.js.html --- docs/index.html | 6 + docs/symbols/src/Roo_Document.js.html | 360 ++----------------- docs/symbols/src/Roo_XComponent.js.html | 2 +- docs/symbols/src/Roo_bootstrap_Brick.js.html | 2 + 4 files changed, 41 insertions(+), 329 deletions(-) diff --git a/docs/index.html b/docs/index.html index c36f98f24d..40faa90f25 100644 --- a/docs/index.html +++ b/docs/index.html @@ -166,6 +166,12 @@ Roo.BLANK_IMAGE_URL = "../images/gray/s.gif"; +
  • Roo.Document
    + +
  • +
  • Roo.DomHelper
    diff --git a/docs/symbols/src/Roo_Document.js.html b/docs/symbols/src/Roo_Document.js.html index 18af0da228..2351640e6d 100644 --- a/docs/symbols/src/Roo_Document.js.html +++ b/docs/symbols/src/Roo_Document.js.html @@ -1,342 +1,46 @@ ../roojs1/Roo/Document.js/* - * Original code for Roojs - LGPL - * <script type="text/javascript"> + * RooJS Library + * Copyright(c) 2007-2017, Roo J Solutions Ltd + * + * Licence LGPL + * */ /** - * - * This needs some more thought.. - * - * - * - * @class Roo.XComponent - * @extends Roo.data.Observable - * - * A delayed Element creator... - * - * Mypart.xyx = new Roo.XComponent({ - - parent : 'Mypart.xyz', // empty == document.element.!! - order : '001', - name : 'xxxx' - region : 'xxxx' - disabled : function() {} - - items : [ // technically only one component.. - { - xtype : 'NestedLayoutPanel', - // technicall + * @class Roo.Document + * @extends Roo.util.Observable + * This is a convience class to wrap up the main document loading code.. , rather than adding Roo.onReady(......) + * + * @param {Object} config the methods and properties of the 'base' class for the application. + * + * Generic Page handler - implement this to start your app.. + * + * eg. + * MyProject = new Roo.Document({ + events : { + 'load' : true // your events.. + }, + listeners : { + 'ready' : function() { + // fired on Roo.onReady() + } } - ] - *}) - * - * * */ -Roo.XComponent = function(cfg) { - Roo.apply(this, cfg); +Roo.Document = function(cfg) { + this.addEvents({ - /** - * @event built - * Fires when this the componnt is built - * @param {Roo.XComponent} c the component - */ - 'built' : true, - /** - * @event buildcomplete - * Fires on the top level element when all elements have been built - * @param {Roo.XComponent} c the top level component. - */ - 'buildcomplete' : true - + 'ready' : true }); - - Roo.XComponent.register(this); - this.modules = []; - this.el = false; // where the layout goes.. - - -} -Roo.extend(Roo.XComponent, Roo.util.Observable { - /** - * @property el - * The created element (with Roo.factory()) - * @type {Roo.Layout} - */ - el : false, - - /** - * @property el - * for BC - use el in new code - * @type {Roo.Layout} - */ - panel : false, - - /** - * @property layout - * for BC - use el in new code - * @type {Roo.Layout} - */ - layout : false, + Roo.util.Observable.call(this,cfg); - /** - * @cfg {Function|boolean} disabled - * If this module is disabled by some rule, return true from the funtion - */ - disabled : false, + var _this = this; - /** - * @cfg {String} parent - * Name of parent element which it get xtype added to.. - */ - parent: false, + Roo.onReady(function() { + _this.fireEvent('ready'); + },null,false); - /** - * @cfg {String} order - * Used to set the order in which elements are created (usefull for multiple tabs) - */ - order : false, - /** - * @cfg {String} name - * String to display while loading. - */ - name : false, - /** - * @cfg {Array} items - * A single item array - the first element is the root of the tree.. - * It's done this way to stay compatible with the Xtype system... - */ - items : false -}); +} -Roo.apply(Roo.XComponent, - /** - * @property buildCompleted - * True when the builder has completed building the interface. - * @type Boolean - */ - buildCompleted : false, - - /** - * @property topModule - * the upper most module - uses document.element as it's constructor. - * @type Object - */ - - topModule : false, - - /** - * @property modules - * array of modules to be created by registration system. - * @type Roo.XComponent - */ - - modules : [], - - - /** - * Register components to be built later. - * @param {Object} details about module - * - * This solves the following issues - * - Building is not done on page load, but after an authentication process has occured. - * - Interface elements are registered on page load - * - Parent Interface elements may not be loaded before child, so this handles that.. - * - * - * example: - * - * MyApp.register({ - order : '000001', - module : 'Pman.Tab.projectMgr', - region : 'center', - parent : 'Pman.layout', - disabled : false, // or use a function.. - }) - * - */ - register : function(obj) { - this.modules.push(obj); - - }, - /** - * convert a string to an object.. - * - */ - - toObject : function(str) - { - if (typeof(str) == 'object') { - return str; - } - var ar = str.split('.'); - var rt, o; - rt = ar.unshift(); - /** eval:var:o */ - eval('if (typeof ' + rt + ' == "undefined"){ o = false;} o = ' + rt + ';'); - if (o === false) { - throw "Module not found : " + str; - } - Roo.each(ar, function(e) { - if (typeof(o[e]) == 'undefined') { - throw "Module not found : " + str; - } - o = o[e]; - }); - return o; - - } - - - /** - * move modules into their correct place in the tree.. - * - */ - preBuild : function () - { - var modules = this.modules; - this.modules = false; - - Roo.each(modules , function (obj) - { - obj.parent = this.toObject(obj.parent); - - if (!obj.parent) { - this.topModule = obj; - return; - } - obj.parent = toObject(obj.parent); - if (!obj.parent.modules) { - obj.parent.modules = new Roo.util.MixedCollection(false, - function(o) { return o.order + '' } - ); - } - - obj.parent.modules.add(obj); - }, this); - } - - /** - * make a list of modules to build. - * @return {Array} list of modules. - */ - - buildOrder : function() - { - var _this = this; - var cmp = function(a,b) { - return String(a).toUpperCase() > String(b).toUpperCase() ? 1 : -1; - }; - - if (!this.topModule || !this.topModule.modules) { - throw "No top level modules to build"; - } - - // make a flat list in order of modules to build. - var mods = [ this.topModule ]; - - - // add modules to their parents.. - var addMod = function(m) { - // console.log(m.modKey); - - mods.push(m); - if (m.module.modules) { - m.module.modules.keySort('ASC', cmp ); - m.module.modules.each(addMod); - } - if (m.finalize) { - m.finalize.name = m.name + " (clean up) "; - mods.push(m.finalize); - } - - } - this.topModule.modules.keySort('ASC', cmp ); - this.topModule.modules.each(addMod); - } - - /** - * Build the registered modules. - * @param {Object} parent element. - * @param {Function} optional method to call after module has been added. - * - */ - - build : function() - { - - this.preBuild(); - var mods = this.buildOrder(); - - //this.allmods = mods; - //console.log(mods); - //return; - if (!mods.length) { // should not happen - throw "NO modules!!!"; - } - - - - // flash it up as modal - so we store the mask!? - Roo.MessageBox.show({ title: 'loading' }); - Roo.MessageBox.show({ - title: "Please wait...", - msg: "Building Interface...", - width:450, - progress:true, - closable:false, - modal: false - - }); - var total = mods.length(); - - var _this = this; - var progressRun = function() { - if (mods.length) { - Roo.MessageBox.hide(); - _this.topModule.fireEvent('buildcomplete', _this.topModule); - return; - } - - var m = mods.unshift(); - - if (typeof(m) == 'function') { // not sure if this is supported any more.. - m.call(this); - return progressRun.defer(10, _this); - } - - Roo.MessageBox.updateProgress( - (total - mods.length)/total, "Building Interface " + (total - mods.length) + - " of " + total + - (m.name ? (' - ' + m.name) : '') - ); - - - - var disabled = (typeof(m.module.disabled) == 'function') ? - m.module.disabled.call(m.module.disabled) : m.module.disabled; - } - - if (disabled) { - return progressRun(); // we do not update the display! - } - - m.el = m.parent.el.addxtype(m.items[0]); - m.fireEvent('built', m); - m.panel = this.el; - m.layout = m.panel.layout; - - - } - progressRun.defer(1, _this); - - - - } - - - - -}); - \ No newline at end of file +Roo.extend(Roo.Document, Roo.util.Observable, {}); \ No newline at end of file diff --git a/docs/symbols/src/Roo_XComponent.js.html b/docs/symbols/src/Roo_XComponent.js.html index 680452493b..ef8f341805 100644 --- a/docs/symbols/src/Roo_XComponent.js.html +++ b/docs/symbols/src/Roo_XComponent.js.html @@ -181,7 +181,7 @@ this.parent = { el : true }; break; } - if (["Nest", "Content"].indexOf(tree.xtype) > -1) { + if (["Nest", "Content", "Grid", "Tree"].indexOf(tree.xtype) > -1) { // need to insert stuff... this.parent = { el : new Roo.bootstrap.layout.Border({ diff --git a/docs/symbols/src/Roo_bootstrap_Brick.js.html b/docs/symbols/src/Roo_bootstrap_Brick.js.html index af60479730..828680e971 100644 --- a/docs/symbols/src/Roo_bootstrap_Brick.js.html +++ b/docs/symbols/src/Roo_bootstrap_Brick.js.html @@ -117,6 +117,8 @@ cls: 'roo-brick-text', html: this.html }); + } else { + cn.cls += ' hide'; } if(this.bgimage.length){ -- 2.39.2