diff --git a/bower.json b/bower.json index 59cdf19..69068e0 100644 --- a/bower.json +++ b/bower.json @@ -1,16 +1,16 @@ { "name": "delite-build", - "version": "0.2.0-dev", + "version": "0.3.0-alpha", "dependencies": { "dojo": ">=1.9.1", "requirejs": "2.1.x", "requirejs-domready": "2.0.x", "requirejs-text": "2.0.x", "decor-build": "0.2.0-dev", - "dpointer-build": "0.1.x" + "dpointer-build": "0.3.x" }, "devDependencies": { - "delite": "0.2.0-dev" + "delite": "0.3.0-alpha" }, "ignore": [ ".jshintrc", diff --git a/layer.js b/layer.js index 41ff2d1..e1dd763 100644 --- a/layer.js +++ b/layer.js @@ -1,6 +1,6 @@ require.config({"config":{"delite/theme":{"layersMap":{"delite/themes/{{theme}}/common.css":"delite/themes/layer_{{theme}}.css","delite/themes/{{theme}}/global.css":"delite/themes/layer_{{theme}}.css","delite/Scrollable/themes/{{theme}}/Scrollable.css":"delite/themes/layer_{{theme}}.css","delite/DialogUnderlay/themes/{{theme}}/DialogUnderlay.css":"delite/themes/layer_{{theme}}.css"}}}}); -define("requirejs-text/text",["module"],function(a){"use strict";var b,c,d,e,f,g=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],h=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,i=/
]*>\s*([\s\S]+)\s*<\/body>/im,j="undefined"!=typeof location&&location.href,k=j&&location.protocol&&location.protocol.replace(/\:/,""),l=j&&location.hostname,m=j&&(location.port||void 0),n={},o=a.config&&a.config()||{};return b={version:"2.0.12",strip:function(a){if(a){a=a.replace(h,"");var b=a.match(i);b&&(a=b[1])}else a="";return a},jsEscape:function(a){return a.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:o.createXhr||function(){var a,b,c;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)for(b=0;3>b;b+=1){c=g[b];try{a=new ActiveXObject(c)}catch(d){}if(a){g=[c];break}}return a},parseName:function(a){var b,c,d,e=!1,f=a.indexOf("."),g=0===a.indexOf("./")||0===a.indexOf("../");return-1!==f&&(!g||f>1)?(b=a.substring(0,f),c=a.substring(f+1,a.length)):b=a,d=c||b,f=d.indexOf("!"),-1!==f&&(e="strip"===d.substring(f+1),d=d.substring(0,f),c?c=d:b=d),{moduleName:b,ext:c,strip:e}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(a,c,d,e){var f,g,h,i=b.xdRegExp.exec(a);return i?(f=i[2],g=i[3],g=g.split(":"),h=g[1],g=g[0],!(f&&f!==c||g&&g.toLowerCase()!==d.toLowerCase()||(h||g)&&h!==e)):!0},finishLoad:function(a,c,d,e){d=c?b.strip(d):d,o.isBuild&&(n[a]=d),e(d)},load:function(a,c,d,e){if(e&&e.isBuild&&!e.inlineText)return void d();o.isBuild=e&&e.isBuild;var f=b.parseName(a),g=f.moduleName+(f.ext?"."+f.ext:""),h=c.toUrl(g),i=o.useXhr||b.useXhr;return 0===h.indexOf("empty:")?void d():void(!j||i(h,k,l,m)?b.get(h,function(c){b.finishLoad(a,f.strip,c,d)},function(a){d.error&&d.error(a)}):c([g],function(a){b.finishLoad(f.moduleName+"."+f.ext,f.strip,a,d)}))},write:function(a,c,d){if(n.hasOwnProperty(c)){var e=b.jsEscape(n[c]);d.asModule(a+"!"+c,"define(function () { return '"+e+"';});\n")}},writeFile:function(a,c,d,e,f){var g=b.parseName(c),h=g.ext?"."+g.ext:"",i=g.moduleName+h,j=d.toUrl(g.moduleName+h)+".js";b.load(i,d,function(){var c=function(a){return e(j,a)};c.asModule=function(a,b){return e.asModule(a,j,b)},b.write(a,i,c,f)},f)}},"node"===o.env||!o.env&&"undefined"!=typeof process&&process.versions&&process.versions.node&&!process.versions["node-webkit"]?(c=require.nodeRequire("fs"),b.get=function(a,b,d){try{var e=c.readFileSync(a,"utf8");0===e.indexOf("")&&(e=e.substring(1)),b(e)}catch(f){d&&d(f)}}):"xhr"===o.env||!o.env&&b.createXhr()?b.get=function(a,c,d,e){var f,g=b.createXhr();if(g.open("GET",a,!0),e)for(f in e)e.hasOwnProperty(f)&&g.setRequestHeader(f.toLowerCase(),e[f]);o.onXhr&&o.onXhr(g,a),g.onreadystatechange=function(){var b,e;4===g.readyState&&(b=g.status||0,b>399&&600>b?(e=new Error(a+" HTTP status: "+b),e.xhr=g,d&&d(e)):c(g.responseText),o.onXhrComplete&&o.onXhrComplete(g,a))},g.send(null)}:"rhino"===o.env||!o.env&&"undefined"!=typeof Packages&&"undefined"!=typeof java?b.get=function(a,b){var c,d,e="utf-8",f=new java.io.File(a),g=java.lang.System.getProperty("line.separator"),h=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(f),e)),i="";try{for(c=new java.lang.StringBuffer,d=h.readLine(),d&&d.length()&&65279===d.charAt(0)&&(d=d.substring(1)),null!==d&&c.append(d);null!==(d=h.readLine());)c.append(g),c.append(d);i=String(c.toString())}finally{h.close()}b(i)}:("xpconnect"===o.env||!o.env&&"undefined"!=typeof Components&&Components.classes&&Components.interfaces)&&(d=Components.classes,e=Components.interfaces,Components.utils["import"]("resource://gre/modules/FileUtils.jsm"),f="@mozilla.org/windows-registry-key;1"in d,b.get=function(a,b){var c,g,h,i={};f&&(a=a.replace(/\//g,"\\")),h=new FileUtils.File(a);try{c=d["@mozilla.org/network/file-input-stream;1"].createInstance(e.nsIFileInputStream),c.init(h,1,0,!1),g=d["@mozilla.org/intl/converter-input-stream;1"].createInstance(e.nsIConverterInputStream),g.init(c,"utf-8",c.available(),e.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER),g.readString(c.available(),i),g.close(),c.close(),b(i.value)}catch(j){throw new Error((h&&h.path||"")+": "+j)}}),b}),define("dojo/dom-geometry",["./sniff","./_base/window","./dom","./dom-style"],function(a,b,c,d){function e(a,b,c,d,e,f){f=f||"px";var g=a.style;isNaN(b)||(g.left=b+f),isNaN(c)||(g.top=c+f),d>=0&&(g.width=d+f),e>=0&&(g.height=e+f)}function f(a){return"button"==a.tagName.toLowerCase()||"input"==a.tagName.toLowerCase()&&"button"==(a.getAttribute("type")||"").toLowerCase()}function g(a){return"border-box"==h.boxModel||"table"==a.tagName.toLowerCase()||f(a)}var h={};h.boxModel="content-box",a("ie")&&(h.boxModel="BackCompat"==document.compatMode?"border-box":"content-box"),h.getPadExtents=function(a,b){a=c.byId(a);var e=b||d.getComputedStyle(a),f=d.toPixelValue,g=f(a,e.paddingLeft),h=f(a,e.paddingTop),i=f(a,e.paddingRight),j=f(a,e.paddingBottom);return{l:g,t:h,r:i,b:j,w:g+i,h:h+j}};var i="none";h.getBorderExtents=function(a,b){a=c.byId(a);var e=d.toPixelValue,f=b||d.getComputedStyle(a),g=f.borderLeftStyle!=i?e(a,f.borderLeftWidth):0,h=f.borderTopStyle!=i?e(a,f.borderTopWidth):0,j=f.borderRightStyle!=i?e(a,f.borderRightWidth):0,k=f.borderBottomStyle!=i?e(a,f.borderBottomWidth):0;return{l:g,t:h,r:j,b:k,w:g+j,h:h+k}},h.getPadBorderExtents=function(a,b){a=c.byId(a);var e=b||d.getComputedStyle(a),f=h.getPadExtents(a,e),g=h.getBorderExtents(a,e);return{l:f.l+g.l,t:f.t+g.t,r:f.r+g.r,b:f.b+g.b,w:f.w+g.w,h:f.h+g.h}},h.getMarginExtents=function(a,b){a=c.byId(a);var e=b||d.getComputedStyle(a),f=d.toPixelValue,g=f(a,e.marginLeft),h=f(a,e.marginTop),i=f(a,e.marginRight),j=f(a,e.marginBottom);return{l:g,t:h,r:i,b:j,w:g+i,h:h+j}},h.getMarginBox=function(b,e){b=c.byId(b);var f,g=e||d.getComputedStyle(b),j=h.getMarginExtents(b,g),k=b.offsetLeft-j.l,l=b.offsetTop-j.t,m=b.parentNode,n=d.toPixelValue;if(a("mozilla")){var o=parseFloat(g.left),p=parseFloat(g.top);isNaN(o)||isNaN(p)?m&&m.style&&(f=d.getComputedStyle(m),"visible"!=f.overflow&&(k+=f.borderLeftStyle!=i?n(b,f.borderLeftWidth):0,l+=f.borderTopStyle!=i?n(b,f.borderTopWidth):0)):(k=o,l=p)}else(a("opera")||8==a("ie")&&!a("quirks"))&&m&&(f=d.getComputedStyle(m),k-=f.borderLeftStyle!=i?n(b,f.borderLeftWidth):0,l-=f.borderTopStyle!=i?n(b,f.borderTopWidth):0);return{l:k,t:l,w:b.offsetWidth+j.w,h:b.offsetHeight+j.h}},h.getContentBox=function(b,e){b=c.byId(b);var f,g=e||d.getComputedStyle(b),i=b.clientWidth,j=h.getPadExtents(b,g),k=h.getBorderExtents(b,g);return i?(f=b.clientHeight,k.w=k.h=0):(i=b.offsetWidth,f=b.offsetHeight),a("opera")&&(j.l+=k.l,j.t+=k.t),{l:j.l,t:j.t,w:i-j.w-k.w,h:f-j.h-k.h}},h.setContentSize=function(a,b,d){a=c.byId(a);var f=b.w,i=b.h;if(g(a)){var j=h.getPadBorderExtents(a,d);f>=0&&(f+=j.w),i>=0&&(i+=j.h)}e(a,0/0,0/0,f,i)};var j={l:0,t:0,w:0,h:0};return h.setMarginBox=function(b,i,k){b=c.byId(b);var l=k||d.getComputedStyle(b),m=i.w,n=i.h,o=g(b)?j:h.getPadBorderExtents(b,l),p=h.getMarginExtents(b,l);if(a("webkit")&&f(b)){var q=b.style;m>=0&&!q.width&&(q.width="4px"),n>=0&&!q.height&&(q.height="4px")}m>=0&&(m=Math.max(m-o.w-p.w,0)),n>=0&&(n=Math.max(n-o.h-p.h,0)),e(b,i.l,i.t,m,n)},h.isBodyLtr=function(a){return a=a||b.doc,"ltr"==(b.body(a).dir||a.documentElement.dir||"ltr").toLowerCase()},h.docScroll=function(c){c=c||b.doc;var d=b.doc.parentWindow||b.doc.defaultView;return"pageXOffset"in d?{x:d.pageXOffset,y:d.pageYOffset}:(d=a("quirks")?b.body(c):c.documentElement)&&{x:h.fixIeBiDiScrollLeft(d.scrollLeft||0,c),y:d.scrollTop||0}},a("ie")&&(h.getIeDocumentElementOffset=function(c){c=c||b.doc;var d=c.documentElement;if(a("ie")<8){var e=d.getBoundingClientRect(),f=e.left,g=e.top;return a("ie")<7&&(f+=d.clientLeft,g+=d.clientTop),{x:0>f?0:f,y:0>g?0:g}}return{x:0,y:0}}),h.fixIeBiDiScrollLeft=function(c,d){d=d||b.doc;var e=a("ie");if(e&&!h.isBodyLtr(d)){var f=a("quirks"),g=f?b.body(d):d.documentElement,i=b.global;return 6==e&&!f&&i.frameElement&&g.scrollHeight>g.clientHeight&&(c+=g.clientLeft),8>e||f?c+g.clientWidth-g.scrollWidth:-c}return c},h.position=function(d,e){d=c.byId(d);var f=b.body(d.ownerDocument),g=d.getBoundingClientRect();if(g={x:g.left,y:g.top,w:g.right-g.left,h:g.bottom-g.top},a("ie")<9){var i=h.getIeDocumentElementOffset(d.ownerDocument);g.x-=i.x+(a("quirks")?f.clientLeft+f.offsetLeft:0),g.y-=i.y+(a("quirks")?f.clientTop+f.offsetTop:0)}if(e){var j=h.docScroll(d.ownerDocument);g.x+=j.x,g.y+=j.y}return g},h.getMarginSize=function(a,b){a=c.byId(a);var e=h.getMarginExtents(a,b||d.getComputedStyle(a)),f=a.getBoundingClientRect();return{w:f.right-f.left+e.w,h:f.bottom-f.top+e.h}},h.normalizeEvent=function(b){if("layerX"in b||(b.layerX=b.offsetX,b.layerY=b.offsetY),!a("dom-addeventlistener")){var c=b.target,d=c&&c.ownerDocument||document,e=a("quirks")?d.body:d.documentElement,f=h.getIeDocumentElementOffset(d);b.pageX=b.clientX+h.fixIeBiDiScrollLeft(e.scrollLeft||0,d)-f.x,b.pageY=b.clientY+(e.scrollTop||0)-f.y}},h}),define("dojo/dom-style",["./sniff","./dom"],function(a,b){function c(b,c,d){if(c=c.toLowerCase(),a("ie")||a("trident")){if("auto"==d){if("height"==c)return b.offsetHeight;if("width"==c)return b.offsetWidth}if("fontweight"==c)switch(d){case 700:return"bold";case 400:default:return"normal"}}return c in k||(k[c]=l.test(c)),k[c]?f(b,d):d}var d,e={};d=a("webkit")?function(a){var b;if(1==a.nodeType){var c=a.ownerDocument.defaultView;b=c.getComputedStyle(a,null),!b&&a.style&&(a.style.display="",b=c.getComputedStyle(a,null))}return b||{}}:a("ie")&&(a("ie")<9||a("quirks"))?function(a){return 1==a.nodeType&&a.currentStyle?a.currentStyle:{}}:function(a){return 1==a.nodeType?a.ownerDocument.defaultView.getComputedStyle(a,null):{}},e.getComputedStyle=d;var f;f=a("ie")?function(a,b){if(!b)return 0;if("medium"==b)return 4;if(b.slice&&"px"==b.slice(-2))return parseFloat(b);var c=a.style,d=a.runtimeStyle,e=a.currentStyle,f=c.left,g=d.left;d.left=e.left;try{c.left=b,b=c.pixelLeft}catch(h){b=0}return c.left=f,d.left=g,b}:function(a,b){return parseFloat(b)||0},e.toPixelValue=f;var g="DXImageTransform.Microsoft.Alpha",h=function(a,b){try{return a.filters.item(g)}catch(c){return b?{}:null}},i=a("ie")<9||a("ie")<10&&a("quirks")?function(a){try{return h(a).Opacity/100}catch(b){return 1}}:function(a){return d(a).opacity},j=a("ie")<9||a("ie")<10&&a("quirks")?function(a,b){""===b&&(b=1);var c=100*b,d=1===b;if(d?(a.style.zoom="",h(a)&&(a.style.filter=a.style.filter.replace(new RegExp("\\s*progid:"+g+"\\([^\\)]+?\\)","i"),""))):(a.style.zoom=1,h(a)?h(a,1).Opacity=c:a.style.filter+=" progid:"+g+"(Opacity="+c+")",h(a,1).Enabled=!0),"tr"==a.tagName.toLowerCase())for(var e=a.firstChild;e;e=e.nextSibling)"td"==e.tagName.toLowerCase()&&j(e,b);return b}:function(a,b){return a.style.opacity=b},k={left:!0,top:!0},l=/margin|padding|width|height|max|min|offset/,m={cssFloat:1,styleFloat:1,"float":1};return e.get=function(a,d){var f=b.byId(a),g=arguments.length,h="opacity"==d;if(2==g&&h)return i(f);d=m[d]?"cssFloat"in f.style?"cssFloat":"styleFloat":d;var j=e.getComputedStyle(f);return 1==g?j:c(f,d,j[d]||f.style[d])},e.set=function(a,c,d){var f=b.byId(a),g=arguments.length,h="opacity"==c;if(c=m[c]?"cssFloat"in f.style?"cssFloat":"styleFloat":c,3==g)return h?j(f,d):f.style[c]=d;for(var i in c)e.set(a,i,c[i]);return e.getComputedStyle(f)},e}),define("dojo/dom",["./sniff","./_base/window"],function(a,b){if(a("ie")<=7)try{document.execCommand("BackgroundImageCache",!1,!0)}catch(c){}var d={};d.byId=a("ie")?function(a,c){if("string"!=typeof a)return a;var d=c||b.doc,e=a&&d.getElementById(a);if(e&&(e.attributes.id.value==a||e.id==a))return e;var f=d.all[a];(!f||f.nodeName)&&(f=[f]);for(var g=0;e=f[g++];)if(e.attributes&&e.attributes.id&&e.attributes.id.value==a||e.id==a)return e}:function(a,c){return("string"==typeof a?(c||b.doc).getElementById(a):a)||null},d.isDescendant=function(a,b){try{for(a=d.byId(a),b=d.byId(b);a;){if(a==b)return!0;a=a.parentNode}}catch(c){}return!1},a.add("css-user-select",function(a,b,c){if(!c)return!1;var d=c.style,e=["Khtml","O","Moz","Webkit"],f=e.length,g="userSelect";do if("undefined"!=typeof d[g])return g;while(f--&&(g=e[f]+"UserSelect"));return!1});var e=a("css-user-select");return d.setSelectable=e?function(a,b){d.byId(a).style[e]=b?"":"none"}:function(a,b){a=d.byId(a);var c=a.getElementsByTagName("*"),e=c.length;if(b)for(a.removeAttribute("unselectable");e--;)c[e].removeAttribute("unselectable");else for(a.setAttribute("unselectable","on");e--;)c[e].setAttribute("unselectable","on")},d}),define("dojo/_base/window",["./kernel","./lang","../sniff"],function(a,b,c){var d={global:a.global,doc:this.document||null,body:function(b){return b=b||a.doc,b.body||b.getElementsByTagName("body")[0]},setContext:function(b,c){a.global=d.global=b,a.doc=d.doc=c},withGlobal:function(b,c,e,f){var g=a.global;try{return a.global=d.global=b,d.withDoc.call(null,b.document,c,e,f)}finally{a.global=d.global=g}},withDoc:function(b,e,f,g){var h,i,j,k=d.doc,l=c("quirks"),m=c("ie");try{return a.doc=d.doc=b,a.isQuirks=c.add("quirks","BackCompat"==a.doc.compatMode,!0,!0),c("ie")&&(j=b.parentWindow)&&j.navigator&&(h=parseFloat(j.navigator.appVersion.split("MSIE ")[1])||void 0,i=b.documentMode,i&&5!=i&&Math.floor(h)!=i&&(h=i),a.isIE=c.add("ie",h,!0,!0)),f&&"string"==typeof e&&(e=f[e]),e.apply(f,g||[])}finally{a.doc=d.doc=k,a.isQuirks=c.add("quirks",l,!0,!0),a.isIE=c.add("ie",m,!0,!0)}}};return c("extend-dojo")&&b.mixin(a,d),d}),define("dojo/_base/lang",["./kernel","../has","../sniff"],function(a,b){b.add("bug-for-in-skips-shadowed",function(){for(var a in{toString:1})return 0;return 1});var c=b("bug-for-in-skips-shadowed")?"hasOwnProperty.valueOf.isPrototypeOf.propertyIsEnumerable.toLocaleString.toString.constructor".split("."):[],d=c.length,e=function(b,c,d){d||(d=b[0]&&a.scopeMap[b[0]]?a.scopeMap[b.shift()][1]:a.global);try{for(var e=0;e