PageRenderTime 8ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/site/ucw-boxset/ucw_ajax/wwwroot/dojo/src/namespaces/dojo.js

https://github.com/vikram/lisplibraries
JavaScript | 158 lines | 133 code | 5 blank | 20 comment | 2 complexity | e3f6599ed8852bda781a708a4179e3db MD5 | raw file
Possible License(s): LGPL-2.0, LGPL-2.1, CC-BY-SA-3.0, LGPL-3.0, BSD-3-Clause, GPL-2.0
  1. /*
  2. Copyright (c) 2004-2006, The Dojo Foundation
  3. All Rights Reserved.
  4. Licensed under the Academic Free License version 2.1 or above OR the
  5. modified BSD license. For more information on Dojo licensing, see:
  6. http://dojotoolkit.org/community/licensing.shtml
  7. */
  8. dojo.provide("dojo.namespaces.dojo");
  9. dojo.require("dojo.ns");
  10. (function(){
  11. //mapping of all widget short names to their full package names
  12. // This is used for widget autoloading - no dojo.require() is necessary.
  13. // If you use a widget in markup or create one dynamically, then this
  14. // mapping is used to find and load any dependencies not already loaded.
  15. // You should use your own namespace for any custom widgets.
  16. // For extra widgets you use, dojo.declare() may be used to explicitly load them.
  17. var map = {
  18. html: {
  19. "accordioncontainer": "dojo.widget.AccordionContainer",
  20. "button": "dojo.widget.Button",
  21. "chart": "dojo.widget.Chart",
  22. "checkbox": "dojo.widget.Checkbox",
  23. "colorpalette": "dojo.widget.ColorPalette",
  24. "combobox": "dojo.widget.ComboBox",
  25. "combobutton": "dojo.widget.Button",
  26. "contentpane": "dojo.widget.ContentPane",
  27. "contextmenu": "dojo.widget.ContextMenu",
  28. "currencytextbox": "dojo.widget.CurrencyTextbox",
  29. "datepicker": "dojo.widget.DatePicker",
  30. "datetextbox": "dojo.widget.DateTextbox",
  31. "debugconsole": "dojo.widget.DebugConsole",
  32. "dialog": "dojo.widget.Dialog",
  33. "docpane": "dojo.widget.DocPane",
  34. "dropdownbutton": "dojo.widget.Button",
  35. "dropdowndatepicker": "dojo.widget.DropdownDatePicker",
  36. "dropdowntimepicker": "dojo.widget.DropdownTimePicker",
  37. "emaillisttextbox": "dojo.widget.InternetTextbox",
  38. "emailtextbox": "dojo.widget.InternetTextbox",
  39. "editor2": "dojo.widget.Editor2",
  40. "editor2toolbar": "dojo.widget.Editor2Toolbar",
  41. "editor": "dojo.widget.Editor",
  42. "editortree": "dojo.widget.EditorTree",
  43. "editortreecontextmenu": "dojo.widget.EditorTreeContextMenu",
  44. "editortreenode": "dojo.widget.EditorTreeNode",
  45. "filteringtable": "dojo.widget.FilteringTable",
  46. "fisheyelist": "dojo.widget.FisheyeList",
  47. "editortreecontroller": "dojo.widget.EditorTreeController",
  48. "googlemap": "dojo.widget.GoogleMap",
  49. "editortreeselector": "dojo.widget.EditorTreeSelector",
  50. "fisheyelist": "dojo.widget.FisheyeList",
  51. "fisheyelistitem": "dojo.widget.FisheyeList",
  52. "floatingpane": "dojo.widget.FloatingPane",
  53. "form": "dojo.widget.Form",
  54. "hslcolorpicker": "dojo.widget.HslColorPicker",
  55. "inlineeditbox": "dojo.widget.InlineEditBox",
  56. "integerspinner": "dojo.widget.IntegerSpinner",
  57. "integertextbox": "dojo.widget.IntegerTextbox",
  58. "ipaddresstextbox": "dojo.widget.InternetTextbox",
  59. "layoutcontainer": "dojo.widget.LayoutContainer",
  60. "linkpane": "dojo.widget.LinkPane",
  61. "pagecontainer": "dojo.widget.PageContainer",
  62. "pagecontroller": "dojo.widget.PageContainer",
  63. "popupcontainer": "dojo.widget.Menu2",
  64. "popupmenu2": "dojo.widget.Menu2",
  65. "menuitem2": "dojo.widget.Menu2",
  66. "menuseparator2": "dojo.widget.Menu2",
  67. "menubar2": "dojo.widget.Menu2",
  68. "menubaritem2": "dojo.widget.Menu2",
  69. "monthlyCalendar": "dojo.widget.MonthlyCalendar",
  70. "radiogroup": "dojo.widget.RadioGroup",
  71. "realnumbertextbox": "dojo.widget.RealNumberTextbox",
  72. "regexptextbox": "dojo.widget.RegexpTextbox",
  73. "repeater": "dojo.widget.Repeater",
  74. "richtext": "dojo.widget.RichText",
  75. "remotetabcontroller": "dojo.widget.RemoteTabController",
  76. "resizehandle": "dojo.widget.ResizeHandle",
  77. "resizabletextarea": "dojo.widget.ResizableTextarea",
  78. "select": "dojo.widget.Select",
  79. "slidervertical": "dojo.widget.Slider",
  80. "sliderhorizontal": "dojo.widget.Slider",
  81. "slider":"dojo.widget.Slider",
  82. "slideshow": "dojo.widget.SlideShow",
  83. "sortabletable": "dojo.widget.SortableTable",
  84. "splitcontainer": "dojo.widget.SplitContainer",
  85. "svgbutton": "dojo.widget.SvgButton",
  86. "tabcontainer": "dojo.widget.TabContainer",
  87. "tabcontroller": "dojo.widget.TabContainer",
  88. "taskbar": "dojo.widget.TaskBar",
  89. "textbox": "dojo.widget.Textbox",
  90. "timepicker": "dojo.widget.TimePicker",
  91. "timetextbox": "dojo.widget.DateTextbox",
  92. "titlepane": "dojo.widget.TitlePane",
  93. "toaster": "dojo.widget.Toaster",
  94. "toggler": "dojo.widget.Toggler",
  95. "toolbar": "dojo.widget.Toolbar",
  96. "tooltip": "dojo.widget.Tooltip",
  97. "tree": "dojo.widget.Tree",
  98. "treebasiccontroller": "dojo.widget.TreeBasicController",
  99. "treecontextmenu": "dojo.widget.TreeContextMenu",
  100. "treeselector": "dojo.widget.TreeSelector",
  101. "treecontrollerextension": "dojo.widget.TreeControllerExtension",
  102. "treenode": "dojo.widget.TreeNode",
  103. "treerpccontroller": "dojo.widget.TreeRPCController",
  104. "treebasiccontrollerv3": "dojo.widget.TreeBasicControllerV3",
  105. "treecontextmenuv3": "dojo.widget.TreeContextMenuV3",
  106. "treedeselectondblselect": "dojo.widget.TreeDeselectOnDblselect",
  107. "treedisablewrapextension": "dojo.widget.TreeDisableWrapExtension",
  108. "treedndcontrollerv3": "dojo.widget.TreeDndControllerV3",
  109. "treedociconextension": "dojo.widget.TreeDocIconExtension",
  110. "treeeditor": "dojo.widget.TreeEditor",
  111. "treeemphasizeonselect": "dojo.widget.TreeEmphasizeOnSelect",
  112. "treelinkextension": "dojo.widget.TreeLinkExtension",
  113. "treeloadingcontrollerv3": "dojo.widget.TreeLoadingControllerV3",
  114. "treemenuitemv3": "dojo.widget.TreeContextMenuV3",
  115. "treerpccontrollerv3": "dojo.widget.TreeRpcControllerV3",
  116. "treeselectorv3": "dojo.widget.TreeSelectorV3",
  117. "treev3": "dojo.widget.TreeV3",
  118. "urltextbox": "dojo.widget.InternetTextbox",
  119. "usphonenumbertextbox": "dojo.widget.UsTextbox",
  120. "ussocialsecuritynumbertextbox": "dojo.widget.UsTextbox",
  121. "usstatetextbox": "dojo.widget.UsTextbox",
  122. "usziptextbox": "dojo.widget.UsTextbox",
  123. "validationtextbox": "dojo.widget.ValidationTextbox",
  124. "treeloadingcontroller": "dojo.widget.TreeLoadingController",
  125. "widget": "dojo.widget.Widget",
  126. "wizard": "dojo.widget.Wizard",
  127. "yahoomap": "dojo.widget.YahooMap"
  128. },
  129. svg: {
  130. "chart": "dojo.widget.svg.Chart",
  131. "hslcolorpicker": "dojo.widget.svg.HslColorPicker"
  132. },
  133. vml: {
  134. "chart": "dojo.widget.vml.Chart"
  135. }
  136. };
  137. dojo.addDojoNamespaceMapping = function(/*String*/shortName, /*String*/packageName){
  138. // summary:
  139. // Add an entry to the mapping table for the dojo: namespace
  140. //
  141. // shortName: the name to be used as the widget's tag name in the dojo: namespace
  142. // packageName: the path to the Javascript module in dotted package notation
  143. map[shortName]=packageName;
  144. };
  145. function dojoNamespaceResolver(name, domain){
  146. if(!domain){ domain="html"; }
  147. if(!map[domain]){ return null; }
  148. return map[domain][name];
  149. }
  150. dojo.registerNamespaceResolver("dojo", dojoNamespaceResolver);
  151. })();