Web UI: Upgrade Dojo version 1.13.0 -> 1.16.2
- upgrade dojo.js bundle - fix prepare-dojo.sh - update Dojo version in package.json (reference purpose only) Ticket: https://pagure.io/freeipa/issue/8222 Signed-off-by: Serhii Tsymbaliuk <stsymbal@redhat.com> Reviewed-By: Armando Neto <abiagion@redhat.com>
This commit is contained in:
3 files changed
+8
-10
No files matched your search
Vendored
+5
-5
@@ -1,5 +1,5 @@
|
||||
(function(userConfig,defaultConfig){var globalObject=function(){if(typeof global!=="undefined"&&typeof global!=="function"){return global}else if(typeof window!=="undefined"){return window}else if(typeof self!=="undefined"){return self}return this}();var noop=function(){},isEmpty=function(it){for(var p in it){return 0}return 1},toString={}.toString,isFunction=function(it){return toString.call(it)=="[object Function]"},isString=function(it){return toString.call(it)=="[object String]"},isArray=function(it){return toString.call(it)=="[object Array]"},forEach=function(vector,callback){if(vector){for(var i=0;i<vector.length;){callback(vector[i++])}}},mix=function(dest,src){for(var p in src){dest[p]=src[p]}return dest},makeError=function(error,info){return mix(new Error(error),{src:"dojoLoader",info:info})},uidSeed=1,uid=function(){return"_"+uidSeed++},req=function(config,dependencies,callback){return contextRequire(config,dependencies,callback,0,req)},global=globalObject,doc=global.document,element=doc&&doc.createElement("DiV"),has=req.has=function(name){return isFunction(hasCache[name])?hasCache[name]=hasCache[name](global,doc,element):hasCache[name]},hasCache=has.cache=defaultConfig.hasCache;if(isFunction(userConfig)){userConfig=userConfig(globalObject)}has.add=function(name,test,now,force){(hasCache[name]===undefined||force)&&(hasCache[name]=test);return now&&has(name)};0&&has.add("host-node",userConfig.has&&"host-node"in userConfig.has?userConfig.has["host-node"]:typeof process=="object"&&process.versions&&process.versions.node&&process.versions.v8);if(0){require("./_base/configNode.js").config(defaultConfig);defaultConfig.loaderPatch.nodeRequire=require}0&&has.add("host-rhino",userConfig.has&&"host-rhino"in userConfig.has?userConfig.has["host-rhino"]:typeof load=="function"&&(typeof Packages=="function"||typeof Packages=="object"));if(0){for(var baseUrl=userConfig.baseUrl||".",arg,rhinoArgs=this.arguments,i=0;i<rhinoArgs.length;){arg=(rhinoArgs[i++]+"").split("=");if(arg[0]=="baseUrl"){baseUrl=arg[1];break}}load(baseUrl+"/_base/configRhino.js");rhinoDojoConfig(defaultConfig,baseUrl,rhinoArgs)}has.add("host-webworker",typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope);if(has("host-webworker")){mix(defaultConfig.hasCache,{"host-browser":0,dom:0,"dojo-dom-ready-api":0,"dojo-sniff":0,"dojo-inject-api":1,"host-webworker":1,"dojo-guarantee-console":0});defaultConfig.loaderPatch={injectUrl:function(url,callback){try{importScripts(url);callback()}catch(e){console.info("failed to load resource ("+url+")");console.error(e)}}}}for(var p in userConfig.has){has.add(p,userConfig.has[p],0,1)}var requested=1,arrived=2,nonmodule=3,executing=4,executed=5;if(0){requested="requested";arrived="arrived";nonmodule="not-a-module";executing="executing";executed="executed"}var legacyMode=0,sync="sync",xd="xd",syncExecStack=[],dojoRequirePlugin=0,checkDojoRequirePlugin=noop,transformToAmd=noop,getXhr;if(1){req.isXdUrl=noop;req.initSyncLoader=function(dojoRequirePlugin_,checkDojoRequirePlugin_,transformToAmd_){if(!dojoRequirePlugin){dojoRequirePlugin=dojoRequirePlugin_;checkDojoRequirePlugin=checkDojoRequirePlugin_;transformToAmd=transformToAmd_}return{sync:sync,requested:requested,arrived:arrived,nonmodule:nonmodule,executing:executing,executed:executed,syncExecStack:syncExecStack,modules:modules,execQ:execQ,getModule:getModule,injectModule:injectModule,setArrived:setArrived,signal:signal,finishExec:finishExec,execModule:execModule,dojoRequirePlugin:dojoRequirePlugin,getLegacyMode:function(){return legacyMode},guardCheckComplete:guardCheckComplete}};if(1||has("host-webworker")){var locationProtocol=location.protocol,locationHost=location.host;req.isXdUrl=function(url){if(/^\./.test(url)){return false}if(/^\/\//.test(url)){return true}var match=url.match(/^([^\/\:]+\:)\/+([^\/]+)/);return match&&(match[1]!=locationProtocol||locationHost&&match[2]!=locationHost)};1||has.add("dojo-xhr-factory",1);has.add("dojo-force-activex-xhr",1&&!doc.addEventListener&&window.location.protocol=="file:");has.add("native-xhr",typeof XMLHttpRequest!="undefined");if(has("native-xhr")&&!has("dojo-force-activex-xhr")){getXhr=function(){return new XMLHttpRequest}}else{for(var XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],progid,i=0;i<3;){try{progid=XMLHTTP_PROGIDS[i++];if(new ActiveXObject(progid)){break}}catch(e){}}getXhr=function(){return new ActiveXObject(progid)}}req.getXhr=getXhr;has.add("dojo-gettext-api",1);req.getText=function(url,async,onLoad){var xhr=getXhr();xhr.open("GET",fixupUrl(url),false);xhr.send(null);if(xhr.status==200||!location.host&&!xhr.status){if(onLoad){onLoad(xhr.responseText,async)}}else{throw makeError("xhrFailed",xhr.status)}return xhr.responseText}}}else{req.async=1}var eval_=has("csp-restrictions")?function(){}:new Function("return eval(arguments[0]);");req.eval=function(text,hint){return eval_(text+"\r\n//# sourceURL="+hint)};var listenerQueues={},error="error",signal=req.Line truncated
|
||||
node.detachEvent(event,detectReady)})};var div=doc.createElement("div");try{if(div.doScroll&&global.frameElement===null){tests.push(function(){try{div.doScroll("left");return 1}catch(e){}})}}catch(e){}}on(doc,"DOMContentLoaded");on(global,"load");if("onreadystatechange"in doc){on(doc,"readystatechange")}else if(!fixReadyState){tests.push(function(){return readyStates[doc.readyState]})}if(tests.length){var poller=function(){if(ready){return}var i=tests.length;while(i--){if(tests[i]()){detectReady("poller");return}}setTimeout(poller,30)};poller()}}return domReady})},"dojo/global":function(){define(function(){if(typeof global!=="undefined"&&typeof global!=="function"){return global}else if(typeof window!=="undefined"){return window}else if(typeof self!=="undefined"){return self}return this})},"dojo/has":function(){define(["./global","require","module"],function(global,require,module){var has=require.has||function(){};if(!1){var isBrowser=typeof window!="undefined"&&typeof location!="undefined"&&typeof document!="undefined"&&window.location==location&&window.document==document,doc=isBrowser&&document,element=doc&&doc.createElement("DiV"),cache=module.config&&module.config()||{};has=function(name){return typeof cache[name]=="function"?cache[name]=cache[name](global,doc,element):cache[name]};has.cache=cache;has.add=function(name,test,now,force){(typeof cache[name]=="undefined"||force)&&(cache[name]=test);return now&&has(name)};1||has.add("host-browser",isBrowser);0&&has.add("host-node",typeof process=="object"&&process.versions&&process.versions.node&&process.versions.v8);0&&has.add("host-rhino",typeof load=="function"&&(typeof Packages=="function"||typeof Packages=="object"));1||has.add("dom",isBrowser);1||has.add("dojo-dom-ready-api",1);1||has.add("dojo-sniff",1)}if(1){has.add("dom-addeventlistener",!!document.addEventListener);has.add("touch","ontouchstart"in document||"onpointerdown"in document&&navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints);has.add("touch-events","ontouchstart"in document);has.add("pointer-events","pointerEnabled"in window.navigator?window.navigator.pointerEnabled:"PointerEvent"in window);has.add("MSPointer",window.navigator.msPointerEnabled);has.add("touch-action",has("touch")&&has("pointer-events"));has.add("device-width",screen.availWidth||innerWidth);var form=document.createElement("form");has.add("dom-attributes-explicit",form.attributes.length==0);has.add("dom-attributes-specified-flag",form.attributes.length>0&&form.attributes.length<40)}has.clearElement=function(element){element.innerHTML="";return element};has.normalize=function(id,toAbsMid){var tokens=id.match(/[\?:]|[^:\?]*/g),i=0,get=function(skip){var term=tokens[i++];if(term==":"){return 0}else{if(tokens[i++]=="?"){if(!skip&&has(term)){return get()}else{get(true);return get(skip)}}return term||0}};id=get();return id&&toAbsMid(id)};has.load=function(id,parentRequire,loaded){if(id){parentRequire([id],loaded)}else{loaded()}};return has})},"dojo/_base/declare":function(){define(["./kernel","../has","./lang"],function(dojo,has,lang){var mix=lang.mixin,op=Object.prototype,opts=op.toString,xtor,counter=0,cname="constructor";if(!has("csp-restrictions")){xtor=new Function}else{xtor=function(){}}function err(msg,cls){throw new Error("declare"+(cls?" "+cls:"")+": "+msg)}function c3mro(bases,className){var result=[],roots=[{cls:0,refs:[]}],nameMap={},clsCount=1,l=bases.length,i=0,j,lin,base,top,proto,rec,name,refs;for(;i<l;++i){base=bases[i];if(!base){err("mixin #"+i+" is unknown. Did you use dojo.require to pull it in?",className)}else if(opts.call(base)!="[object Function]"){err("mixin #"+i+" is not a callable constructor.",className)}lin=base._meta?base._meta.bases:[base];top=0;for(j=lin.length-1;j>=0;--j){proto=lin[j].prototype;if(!proto.hasOwnProperty("declaredClass")){proto.declaredClass="uniqName_"+counter++}name=proto.declaredClass;if(!nameMap.hasOwnProperty(name)){nameMap[name]={count:0,refs:[],cls:lin[j]};++clsCount}rec=nameMap[name];if(top&&top!==rec){rec.refs.push(top);++top.count}top=rec}++top.count;roots[0].refs.push(top)}while(roots.length){top=roots.pop();result.push(top.cls);--clsCount;while(refs=top.refs,refs.length==1){top=refs[0];if(!top||--top.count){top=0;break}result.push(top.cls);--clsCount}if(top){for(i=0,l=refs.length;i<l;++i){top=refs[i];if(!--top.count){roots.push(top)}}}}if(clsCount){err("can't build consistent linearization",className)}base=bases[0];result[0]=base?base._meta&&base===result[result.length-base._meta.bases.length]?base._meta.bases.length:1:0;return result}function inherited(args,a,f,g){var name,chains,bases,caller,meta,base,proto,opf,pos,cache=this._inherited=this._inherited||{};if(typeof args==="string"){name=args;args=a;a=f;f=g}if(typeof args==="function"){caller=args;args=a;a=f}else{try{caller=args.callee}catch(e){if(e instanceof TypeError){err("strict mode inherited() requires the caller function to be passed before arguments",this.declaredClass)}else{throw e}}}name=name||calLine truncated
|
||||
node.removeChild(c)}}exports.empty=function empty(node){_empty(dom.byId(node))};function _destroy(node,parent){if(node.firstChild){_empty(node)}if(parent){has("ie")&&parent.canHaveChildren&&"removeNode"in node?node.removeNode(false):parent.removeChild(node)}}var destroy=exports.destroy=function destroy(node){node=dom.byId(node);if(!node){return}_destroy(node,node.parentNode)}})},"dojo/dom-attr":function(){define(["exports","./sniff","./_base/lang","./dom","./dom-style","./dom-prop"],function(exports,has,lang,dom,style,prop){var forcePropNames={innerHTML:1,textContent:1,className:1,htmlFor:has("ie"),value:1},attrNames={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};function _hasAttr(node,name){var attr=node.getAttributeNode&&node.getAttributeNode(name);return!!attr&&attr.specified}exports.has=function hasAttr(node,name){var lc=name.toLowerCase();return forcePropNames[prop.names[lc]||name]||_hasAttr(dom.byId(node),attrNames[lc]||name)};exports.get=function getAttr(node,name){node=dom.byId(node);var lc=name.toLowerCase(),propName=prop.names[lc]||name,forceProp=forcePropNames[propName],value=node[propName];if(forceProp&&typeof value!="undefined"){return value}if(propName=="textContent"){return prop.get(node,propName)}if(propName!="href"&&(typeof value=="boolean"||lang.isFunction(value))){return value}var attrName=attrNames[lc]||name;return _hasAttr(node,attrName)?node.getAttribute(attrName):null};exports.set=function setAttr(node,name,value){node=dom.byId(node);if(arguments.length==2){for(var x in name){exports.set(node,x,name[x])}return node}var lc=name.toLowerCase(),propName=prop.names[lc]||name,forceProp=forcePropNames[propName];if(propName=="style"&&typeof value!="string"){style.set(node,value);return node}if(forceProp||typeof value=="boolean"||lang.isFunction(value)){return prop.set(node,name,value)}node.setAttribute(attrNames[lc]||name,value);return node};exports.remove=function removeAttr(node,name){dom.byId(node).removeAttribute(attrNames[name.toLowerCase()]||name)};exports.getNodeProp=function getNodeProp(node,name){node=dom.byId(node);var lc=name.toLowerCase(),propName=prop.names[lc]||name;if(propName in node&&propName!="href"){return node[propName]}var attrName=attrNames[lc]||name;return _hasAttr(node,attrName)?node.getAttribute(attrName):null}})},"dojo/dom-style":function(){define(["./sniff","./dom","./_base/window"],function(has,dom,win){var getComputedStyle,style={};if(has("webkit")){getComputedStyle=function(node){var s;if(node.nodeType==1){var dv=node.ownerDocument.defaultView;s=dv.getComputedStyle(node,null);if(!s&&node.style){node.style.display="";s=dv.getComputedStyle(node,null)}}return s||{}}}else if(has("ie")&&(has("ie")<9||has("quirks"))){getComputedStyle=function(node){return node.nodeType==1&&node.currentStyle?node.currentStyle:{}}}else{getComputedStyle=function(node){if(node.nodeType===1){var dv=node.ownerDocument.defaultView,w=dv.opener?dv:win.global.window;return w.getComputedStyle(node,null)}return{}}}style.getComputedStyle=getComputedStyle;var toPixel;if(!has("ie")){toPixel=function(element,value){return parseFloat(value)||0}}else{toPixel=function(element,avalue){if(!avalue){return 0}if(avalue=="medium"){return 4}if(avalue.slice&&avalue.slice(-2)=="px"){return parseFloat(avalue)}var s=element.style,rs=element.runtimeStyle,cs=element.currentStyle,sLeft=s.left,rsLeft=rs.left;rs.left=cs.left;try{s.left=avalue;avalue=s.pixelLeft}catch(e){avalue=0}s.left=sLeft;rs.left=rsLeft;return avalue}}style.toPixelValue=toPixel;var astr="DXImageTransform.Microsoft.Alpha";var af=function(n,f){try{return n.filters.item(astr)}catch(e){return f?{}:null}};var _getOpacity=has("ie")<9||has("ie")<10&&has("quirks")?function(node){try{return af(node).Opacity/100}catch(e){return 1}}:function(node){return getComputedStyle(node).opacity};var _setOpacity=has("ie")<9||has("ie")<10&&has("quirks")?function(node,opacity){if(opacity===""){opacity=1}var ov=opacity*100,fullyOpaque=opacity===1;if(fullyOpaque){node.style.zoom="";if(af(node)){node.style.filter=node.style.filter.replace(new RegExp("\\s*progid:"+astr+"\\([^\\)]+?\\)","i"),"")}}else{node.style.zoom=1;if(af(node)){af(node,1).Opacity=ov}else{node.style.filter+=" progid:"+astr+"(Opacity="+ov+")"}af(node,1).Enabled=true}if(node.tagName.toLowerCase()=="tr"){for(var td=node.firstChild;td;td=td.nextSibling){if(td.tagName.toLowerCase()=="td"){_setOpacity(td,opacity)}}}return opacity}:function(node,opacity){return node.style.opacity=opacity};var _pixelNamesCache={left:true,top:true};var _pixelRegExp=/margin|padding|width|height|max|min|offset/;function _toStyleValue(node,type,value){type=type.toLowerCase();if(value=="auto"){if(type=="height"){return node.offsetHeight}if(type=="width"){return node.offsetWidth}}if(type=="fontweight"){switch(value){case 700:return"bold";case 400:default:return"normal"}}if(!(type in _pixelNamesCache)){_pixelNamesCache[type]=_pixelRegExp.test(type)}return _pixelNamesCache[type]?toPixel(node,value):value}var _floaLine truncated
|
||||
META:has("webkit")?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,UP_DPAD:175,DOWN_DPAD:176,LEFT_DPAD:177,RIGHT_DPAD:178,copyKey:has("mac")&&!has("air")?has("safari")?91:224:17}})},"dojo/dom-class":function(){define(["./_base/lang","./_base/array","./dom"],function(lang,array,dom){var className="className";var cls,spaces=/\s+/,a1=[""];function str2array(s){if(typeof s=="string"||s instanceof String){if(s&&!spaces.test(s)){a1[0]=s;return a1}var a=s.split(spaces);if(a.length&&!a[0]){a.shift()}if(a.length&&!a[a.length-1]){a.pop()}return a}if(!s){return[]}return array.filter(s,function(x){return x})}var fakeNode={};cls={contains:function containsClass(node,classStr){return(" "+dom.byId(node)[className]+" ").indexOf(" "+classStr+" ")>=0},add:function addClass(node,classStr){node=dom.byId(node);classStr=str2array(classStr);var cls=node[className],oldLen;cls=cls?" "+cls+" ":" ";oldLen=cls.length;for(var i=0,len=classStr.length,c;i<len;++i){c=classStr[i];if(c&&cls.indexOf(" "+c+" ")<0){cls+=c+" "}}if(oldLen<cls.length){node[className]=cls.substr(1,cls.length-2)}},remove:function removeClass(node,classStr){node=dom.byId(node);var cls;if(classStr!==undefined){classStr=str2array(classStr);cls=" "+node[className]+" ";for(var i=0,len=classStr.length;i<len;++i){cls=cls.replace(" "+classStr[i]+" "," ")}cls=lang.trim(cls)}else{cls=""}if(node[className]!=cls){node[className]=cls}},replace:function replaceClass(node,addClassStr,removeClassStr){node=dom.byId(node);fakeNode[className]=node[className];cls.remove(fakeNode,removeClassStr);cls.add(fakeNode,addClassStr);if(node[className]!==fakeNode[className]){node[className]=fakeNode[className]}},toggle:function toggleClass(node,classStr,condition){node=dom.byId(node);if(condition===undefined){classStr=str2array(classStr);for(var i=0,len=classStr.length,c;i<len;++i){c=classStr[i];cls[cls.contains(node,c)?"remove":"add"](node,c)}}else{cls[condition?"add":"remove"](node,classStr)}return condition}};return cls})},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","./when"],function(declare,lang,array,when){return declare("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name]}return apn[name]={s:"_"+name+"Setter",g:"_"+name+"Getter"}},postscript:function(params){if(params){this.set(params)}},_get:function(name,names){return typeof this[names.g]==="function"?this[names.g]():this[name]},get:function(name){return this._get(name,this._getAttrNames(name))},set:function(name,value){if(typeof name==="object"){for(var x in name){if(name.hasOwnProperty(x)&&x!="_watchCallbacks"){this.set(x,name[x])}}return this}var names=this._getAttrNames(name),oldValue=this._get(name,names),setter=this[names.s],result;if(typeof setter==="function"){result=setter.apply(this,Array.prototype.slice.call(arguments,1))}else{this[name]=value}if(this._watchCallbacks){var self=this;when(result,function(){self._watchCallbacks(name,oldValue,value)})}return this},_changeAttrValue:function(name,value){var oldValue=this.get(name);this[name]=value;if(this._watchCallbacks){this._watchCallbacks(name,oldValue,value)}return this},watch:function(name,callback){var callbacks=this._watchCallbacks;if(!callbacks){var self=this;callbacks=this._watchCallbacks=function(name,oldValue,value,ignoreCatchall){var notify=function(propertyCallbacks){if(propertyCallbacks){propertyCallbacks=propertyCallbacks.slice();for(var i=0,l=propertyCallbacks.length;i<l;i++){propertyCallbacks[i].call(self,name,oldValue,value)}}};notify(callbacks["_"+name]);if(!ignoreCatchall){notify(callbacks["*"])}}}if(!callback&&typeof name==="function"){callback=name;name="*"}else{name="_"+name}var propertyCallbacks=callbacks[name];if(typeof propertyCallbacks!=="object"){propertyCallbacks=callbacks[name]=[]}propertyCallbacks.push(callback);var handle={};handle.unwatch=handle.remove=function(){var index=array.indexOf(propertyCallbacks,callback);if(index>-1){propertyCallbacks.splice(index,1)}};return handle}})})},"dojo/when":function(){define(["./Deferred","./promise/Promise"],function(Deferred,Promise){"use strict";return function when(valueOrPromise,callback,errback,progback){var receivedPromise=valueOrPromise&&typeof valueOrPromise.then==="function";var nativePromise=receivedPromise&&valueOrPromise instanceof Promise;if(!receivedPromise){if(arguments.length>1){return callback?callback(valueOrPromise):valueOrPromise}else{return(new DeferrLine truncated
|
||||
if(this._parent){return this._parent}else{return new this._NodeListCtor(0)}},concat:function(item){var t=aps.call(this,0),m=array.map(arguments,function(a){return aps.call(a,0)});return this._wrap(apc.apply(t,m),this)},map:function(func,obj){return this._wrap(array.map(this,func,obj),this)},forEach:function(callback,thisObj){forEach(this,callback,thisObj);return this},filter:function(filter){var a=arguments,items=this,start=0;if(typeof filter=="string"){items=query._filterResult(this,a[0]);if(a.length==1){return items._stash(this)}start=1}return this._wrap(array.filter(items,a[start],a[start+1]),this)},instantiate:function(declaredClass,properties){var c=lang.isFunction(declaredClass)?declaredClass:lang.getObject(declaredClass);properties=properties||{};return this.forEach(function(node){new c(properties,node)})},at:function(){var t=new this._NodeListCtor(0);forEach(arguments,function(i){if(i<0){i=this.length+i}if(this[i]){t.push(this[i])}},this);return t._stash(this)}});function queryForEngine(engine,NodeList){var query=function(query,root){if(typeof root=="string"){root=dom.byId(root);if(!root){return new NodeList([])}}var results=typeof query=="string"?engine(query,root):query?query.end&&query.on?query:[query]:[];if(results.end&&results.on){return results}return new NodeList(results)};query.matches=engine.match||function(node,selector,root){return query.filter([node],selector,root).length>0};query.filter=engine.filter||function(nodes,selector,root){return query(selector,root).filter(function(node){return array.indexOf(nodes,node)>-1})};if(typeof engine!="function"){var search=engine.search;engine=function(selector,root){return search(root||document,selector)}}return query}var query=queryForEngine(defaultEngine,NodeList);dojo.query=queryForEngine(defaultEngine,function(array){return NodeList(array)});query.load=function(id,parentRequire,loaded){loader.load(id,parentRequire,function(engine){loaded(queryForEngine(engine,NodeList))})};dojo._filterQueryResult=query._filterResult=function(nodes,selector,root){return new NodeList(query.filter(nodes,selector,root))};dojo.NodeList=query.NodeList=NodeList;return query})},"dojo/selector/_loader":function(){define(["../has","require"],function(has,require){"use strict";if(typeof document!=="undefined"){var testDiv=document.createElement("div");has.add("dom-qsa2.1",!!testDiv.querySelectorAll);has.add("dom-qsa3",function(){try{testDiv.innerHTML="<p class='TEST'></p>";return testDiv.querySelectorAll(".TEST:empty").length==1}catch(e){}})}var fullEngine;var acme="./acme",lite="./lite";return{load:function(id,parentRequire,loaded,config){if(config&&config.isBuild){loaded();return}var req=require;id=id=="default"?has("config-selectorEngine")||"css3":id;id=id=="css2"||id=="lite"?lite:id=="css2.1"?has("dom-qsa2.1")?lite:acme:id=="css3"?has("dom-qsa3")?lite:acme:id=="acme"?acme:(req=parentRequire)&&id;if(id.charAt(id.length-1)=="?"){id=id.substring(0,id.length-1);var optionalLoad=true}if(optionalLoad&&(has("dom-compliant-qsa")||fullEngine)){return loaded(fullEngine)}req([id],function(engine){if(id!="./lite"){fullEngine=engine}loaded(engine)})}}})},"dojo/selector/lite":function(){define(["../has","../_base/kernel"],function(has,dojo){"use strict";var testDiv=document.createElement("div");var matchesSelector=testDiv.matches||testDiv.webkitMatchesSelector||testDiv.mozMatchesSelector||testDiv.msMatchesSelector||testDiv.oMatchesSelector;var querySelectorAll=testDiv.querySelectorAll;var unionSplit=/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g;has.add("dom-matches-selector",!!matchesSelector);has.add("dom-qsa",!!querySelectorAll);var liteEngine=function(selector,root){if(combine&&selector.indexOf(",")>-1){return combine(selector,root)}var doc=root?root.ownerDocument||root:dojo.doc||document,match=(querySelectorAll?/^([\w]*)#([\w\-]+$)|^(\.)([\w\-\*]+$)|^(\w+$)/:/^([\w]*)#([\w\-]+)(?:\s+(.*))?$|(?:^|(>|.+\s+))([\w\-\*]+)(\S*$)/).exec(selector);root=root||doc;if(match){var isInsideDomTree=has("ie")===8&&has("quirks")?root.nodeType===doc.nodeType:root.parentNode!==null&&root.nodeType!==9&&root.parentNode===doc;if(match[2]&&isInsideDomTree){var found=dojo.byId?dojo.byId(match[2],doc):doc.getElementById(match[2]);if(!found||match[1]&&match[1]!=found.tagName.toLowerCase()){return[]}if(root!=doc){var parent=found;while(parent!=root){parent=parent.parentNode;if(!parent){return[]}}}return match[3]?liteEngine(match[3],found):[found]}if(match[3]&&root.getElementsByClassName){return root.getElementsByClassName(match[4])}var found;if(match[5]){found=root.getElementsByTagName(match[5]);if(match[4]||match[6]){selector=(match[4]||"")+match[6]}else{return found}}}if(querySelectorAll){if(root.nodeType===1&&root.nodeName.toLowerCase()!=="object"){return useRoot(root,selector,root.querySelectorAll)}else{return root.querySelectorAll(selector)}}else if(!found){found=root.getElementsByTagName("*")}var results=[];for(var i=0,l=found.length;i<l;i++){var node=found[i];if(node.nodeType==1&&jsMatchesSeLine truncated
|
||||
(function(userConfig,defaultConfig){var globalObject=function(){if(typeof global!=="undefined"&&typeof global!=="function"){return global}else if(typeof window!=="undefined"){return window}else if(typeof self!=="undefined"){return self}return this}();var noop=function(){},isEmpty=function(it){for(var p in it){return 0}return 1},toString={}.toString,isFunction=function(it){return toString.call(it)=="[object Function]"},isString=function(it){return toString.call(it)=="[object String]"},isArray=function(it){return toString.call(it)=="[object Array]"},forEach=function(vector,callback){if(vector){for(var i=0;i<vector.length;){callback(vector[i++])}}},mix=function(dest,src){for(var p in src){dest[p]=src[p]}return dest},makeError=function(error,info){return mix(new Error(error),{src:"dojoLoader",info:info})},uidSeed=1,uid=function(){return"_"+uidSeed++},req=function(config,dependencies,callback){return contextRequire(config,dependencies,callback,0,req)},global=globalObject,doc=global.document,element=doc&&doc.createElement("DiV"),has=req.has=function(name){return isFunction(hasCache[name])?hasCache[name]=hasCache[name](global,doc,element):hasCache[name]},hasCache=has.cache=defaultConfig.hasCache;if(isFunction(userConfig)){userConfig=userConfig(globalObject)}has.add=function(name,test,now,force){(hasCache[name]===undefined||force)&&(hasCache[name]=test);return now&&has(name)};0&&has.add("host-node",userConfig.has&&"host-node"in userConfig.has?userConfig.has["host-node"]:typeof process=="object"&&process.versions&&process.versions.node&&process.versions.v8);if(0){require("./_base/configNode.js").config(defaultConfig);defaultConfig.loaderPatch.nodeRequire=require}0&&has.add("host-rhino",userConfig.has&&"host-rhino"in userConfig.has?userConfig.has["host-rhino"]:typeof load=="function"&&(typeof Packages=="function"||typeof Packages=="object"));if(0){for(var baseUrl=userConfig.baseUrl||".",arg,rhinoArgs=this.arguments,i=0;i<rhinoArgs.length;){arg=(rhinoArgs[i++]+"").split("=");if(arg[0]=="baseUrl"){baseUrl=arg[1];break}}load(baseUrl+"/_base/configRhino.js");rhinoDojoConfig(defaultConfig,baseUrl,rhinoArgs)}has.add("host-webworker",typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope);if(has("host-webworker")){mix(defaultConfig.hasCache,{"host-browser":0,dom:0,"dojo-dom-ready-api":0,"dojo-sniff":0,"dojo-inject-api":1,"host-webworker":1,"dojo-guarantee-console":0});defaultConfig.loaderPatch={injectUrl:function(url,callback){try{importScripts(url);callback()}catch(e){console.info("failed to load resource ("+url+")");console.error(e)}}}}for(var p in userConfig.has){has.add(p,userConfig.has[p],0,1)}var requested=1,arrived=2,nonmodule=3,executing=4,executed=5;if(0){requested="requested";arrived="arrived";nonmodule="not-a-module";executing="executing";executed="executed"}var legacyMode=0,sync="sync",xd="xd",syncExecStack=[],dojoRequirePlugin=0,checkDojoRequirePlugin=noop,transformToAmd=noop,getXhr;if(1){req.isXdUrl=noop;req.initSyncLoader=function(dojoRequirePlugin_,checkDojoRequirePlugin_,transformToAmd_){if(!dojoRequirePlugin){dojoRequirePlugin=dojoRequirePlugin_;checkDojoRequirePlugin=checkDojoRequirePlugin_;transformToAmd=transformToAmd_}return{sync:sync,requested:requested,arrived:arrived,nonmodule:nonmodule,executing:executing,executed:executed,syncExecStack:syncExecStack,modules:modules,execQ:execQ,getModule:getModule,injectModule:injectModule,setArrived:setArrived,signal:signal,finishExec:finishExec,execModule:execModule,dojoRequirePlugin:dojoRequirePlugin,getLegacyMode:function(){return legacyMode},guardCheckComplete:guardCheckComplete}};if(1||has("host-webworker")){var locationProtocol=location.protocol,locationHost=location.host;req.isXdUrl=function(url){if(/^\./.test(url)){return false}if(/^\/\//.test(url)){return true}var match=url.match(/^([^\/\:]+\:)\/+([^\/]+)/);return match&&(match[1]!=locationProtocol||locationHost&&match[2]!=locationHost)};1||has.add("dojo-xhr-factory",1);has.add("dojo-force-activex-xhr",1&&!doc.addEventListener&&window.location.protocol=="file:");has.add("native-xhr",typeof XMLHttpRequest!="undefined");if(has("native-xhr")&&!has("dojo-force-activex-xhr")){getXhr=function(){return new XMLHttpRequest}}else{for(var XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],progid,i=0;i<3;){try{progid=XMLHTTP_PROGIDS[i++];if(new ActiveXObject(progid)){break}}catch(e){}}getXhr=function(){return new ActiveXObject(progid)}}req.getXhr=getXhr;has.add("dojo-gettext-api",1);req.getText=function(url,async,onLoad){var xhr=getXhr();xhr.open("GET",fixupUrl(url),false);xhr.send(null);if(xhr.status==200||!location.host&&!xhr.status){if(onLoad){onLoad(xhr.responseText,async)}}else{throw makeError("xhrFailed",xhr.status)}return xhr.responseText}}}else{req.async=1}var eval_=has("csp-restrictions")?function(){}:new Function("return eval(arguments[0]);");req.eval=function(text,hint){return eval_(text+"\r\n//# sourceURL="+hint)};var listenerQueues={},error="error",signal=req.Line truncated
|
||||
},on=function(node,event){node.addEventListener(event,detectReady,false);readyQ.push(function(){node.removeEventListener(event,detectReady,false)})};if(!has("dom-addeventlistener")){on=function(node,event){event="on"+event;node.attachEvent(event,detectReady);readyQ.push(function(){node.detachEvent(event,detectReady)})};var div=doc.createElement("div");try{if(div.doScroll&&global.frameElement===null){tests.push(function(){try{div.doScroll("left");return 1}catch(e){}})}}catch(e){}}on(doc,"DOMContentLoaded");on(global,"load");if("onreadystatechange"in doc){on(doc,"readystatechange")}else if(!fixReadyState){tests.push(function(){return readyStates[doc.readyState]})}if(tests.length){var poller=function(){if(ready){return}var i=tests.length;while(i--){if(tests[i]()){detectReady("poller");return}}setTimeout(poller,30)};poller()}}return domReady})},"dojo/global":function(){define(function(){if(typeof global!=="undefined"&&typeof global!=="function"){return global}else if(typeof window!=="undefined"){return window}else if(typeof self!=="undefined"){return self}return this})},"dojo/has":function(){define(["./global","require","module"],function(global,require,module){var has=require.has||function(){};if(!1){var isBrowser=typeof window!="undefined"&&typeof location!="undefined"&&typeof document!="undefined"&&window.location==location&&window.document==document,doc=isBrowser&&document,element=doc&&doc.createElement("DiV"),cache=module.config&&module.config()||{};has=function(name){return typeof cache[name]=="function"?cache[name]=cache[name](global,doc,element):cache[name]};has.cache=cache;has.add=function(name,test,now,force){(typeof cache[name]=="undefined"||force)&&(cache[name]=test);return now&&has(name)};1||has.add("host-browser",isBrowser);0&&has.add("host-node",typeof process=="object"&&process.versions&&process.versions.node&&process.versions.v8);0&&has.add("host-rhino",typeof load=="function"&&(typeof Packages=="function"||typeof Packages=="object"));1||has.add("dom",isBrowser);1||has.add("dojo-dom-ready-api",1);1||has.add("dojo-sniff",1)}if(1){has.add("dom-addeventlistener",!!document.addEventListener);has.add("touch","ontouchstart"in document||"onpointerdown"in document&&navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints);has.add("touch-events","ontouchstart"in document);has.add("pointer-events","pointerEnabled"in window.navigator?window.navigator.pointerEnabled:"PointerEvent"in window);has.add("MSPointer",window.navigator.msPointerEnabled);has.add("touch-action",has("touch")&&has("pointer-events"));has.add("device-width",screen.availWidth||innerWidth);var form=document.createElement("form");has.add("dom-attributes-explicit",form.attributes.length==0);has.add("dom-attributes-specified-flag",form.attributes.length>0&&form.attributes.length<40)}has.clearElement=function(element){element.innerHTML="";return element};has.normalize=function(id,toAbsMid){var tokens=id.match(/[\?:]|[^:\?]*/g),i=0,get=function(skip){var term=tokens[i++];if(term==":"){return 0}else{if(tokens[i++]=="?"){if(!skip&&has(term)){return get()}else{get(true);return get(skip)}}return term||0}};id=get();return id&&toAbsMid(id)};has.load=function(id,parentRequire,loaded){if(id){parentRequire([id],loaded)}else{loaded()}};return has})},"dojo/_base/declare":function(){define(["./kernel","../has","./lang"],function(dojo,has,lang){var mix=lang.mixin,op=Object.prototype,opts=op.toString,xtor,counter=0,cname="constructor";if(!has("csp-restrictions")){xtor=new Function}else{xtor=function(){}}function err(msg,cls){throw new Error("declare"+(cls?" "+cls:"")+": "+msg)}function c3mro(bases,className){var result=[],roots=[{cls:0,refs:[]}],nameMap={},clsCount=1,l=bases.length,i=0,j,lin,base,top,proto,rec,name,refs;for(;i<l;++i){base=bases[i];if(!base){err("mixin #"+i+" is unknown. Did you use dojo.require to pull it in?",className)}else if(opts.call(base)!="[object Function]"){err("mixin #"+i+" is not a callable constructor.",className)}lin=base._meta?base._meta.bases:[base];top=0;for(j=lin.length-1;j>=0;--j){proto=lin[j].prototype;if(!proto.hasOwnProperty("declaredClass")){proto.declaredClass="uniqName_"+counter++}name=proto.declaredClass;if(!nameMap.hasOwnProperty(name)){nameMap[name]={count:0,refs:[],cls:lin[j]};++clsCount}rec=nameMap[name];if(top&&top!==rec){rec.refs.push(top);++top.count}top=rec}++top.count;roots[0].refs.push(top)}while(roots.length){top=roots.pop();result.push(top.cls);--clsCount;while(refs=top.refs,refs.length==1){top=refs[0];if(!top||--top.count){top=0;break}result.push(top.cls);--clsCount}if(top){for(i=0,l=refs.length;i<l;++i){top=refs[i];if(!--top.count){roots.push(top)}}}}if(clsCount){err("can't build consistent linearization",className)}base=bases[0];result[0]=base?base._meta&&base===result[result.length-base._meta.bases.length]?base._meta.bases.length:1:0;return result}function inherited(args,a,f,g){var name,chains,bases,caller,meta,base,proto,opf,pos,cache=this._inherited=this._inherited||{};if(typeof args==="stringLine truncated
|
||||
;doc=refNode.ownerDocument}if(typeof tag=="string"){tag=doc.createElement(tag)}if(attrs){attr.set(tag,attrs)}if(refNode){exports.place(tag,refNode,pos)}return tag};function _empty(node){if("innerHTML"in node){try{node.innerHTML="";return}catch(e){}}for(var c;c=node.lastChild;){node.removeChild(c)}}exports.empty=function empty(node){_empty(dom.byId(node))};function _destroy(node,parent){if(node.firstChild){_empty(node)}if(parent){has("ie")&&parent.canHaveChildren&&"removeNode"in node?node.removeNode(false):parent.removeChild(node)}}var destroy=exports.destroy=function destroy(node){node=dom.byId(node);if(!node){return}_destroy(node,node.parentNode)}})},"dojo/dom-attr":function(){define(["exports","./sniff","./_base/lang","./dom","./dom-style","./dom-prop"],function(exports,has,lang,dom,style,prop){var forcePropNames={innerHTML:1,textContent:1,className:1,htmlFor:has("ie")?1:0,value:1},attrNames={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};function _hasAttr(node,name){var attr=node.getAttributeNode&&node.getAttributeNode(name);return!!attr&&attr.specified}exports.has=function hasAttr(node,name){var lc=name.toLowerCase();return!!forcePropNames[prop.names[lc]||name]||_hasAttr(dom.byId(node),attrNames[lc]||name)};exports.get=function getAttr(node,name){node=dom.byId(node);var lc=name.toLowerCase(),propName=prop.names[lc]||name,forceProp=forcePropNames[propName],value=node[propName];if(forceProp&&typeof value!="undefined"){return value}if(propName=="textContent"){return prop.get(node,propName)}if(propName!="href"&&(typeof value=="boolean"||lang.isFunction(value))){return value}var attrName=attrNames[lc]||name;return _hasAttr(node,attrName)?node.getAttribute(attrName):null};exports.set=function setAttr(node,name,value){node=dom.byId(node);if(arguments.length==2){for(var x in name){exports.set(node,x,name[x])}return node}var lc=name.toLowerCase(),propName=prop.names[lc]||name,forceProp=forcePropNames[propName];if(propName=="style"&&typeof value!="string"){style.set(node,value);return node}if(forceProp||typeof value=="boolean"||lang.isFunction(value)){return prop.set(node,name,value)}node.setAttribute(attrNames[lc]||name,value);return node};exports.remove=function removeAttr(node,name){dom.byId(node).removeAttribute(attrNames[name.toLowerCase()]||name)};exports.getNodeProp=function getNodeProp(node,name){node=dom.byId(node);var lc=name.toLowerCase(),propName=prop.names[lc]||name;if(propName in node&&propName!="href"){return node[propName]}var attrName=attrNames[lc]||name;return _hasAttr(node,attrName)?node.getAttribute(attrName):null}})},"dojo/dom-style":function(){define(["./sniff","./dom","./_base/window"],function(has,dom,win){var getComputedStyle,style={};if(has("webkit")){getComputedStyle=function(node){var s;if(node.nodeType==1){var dv=node.ownerDocument.defaultView;s=dv.getComputedStyle(node,null);if(!s&&node.style){node.style.display="";s=dv.getComputedStyle(node,null)}}return s||{}}}else if(has("ie")&&(has("ie")<9||has("quirks"))){getComputedStyle=function(node){return node.nodeType==1&&node.currentStyle?node.currentStyle:{}}}else{getComputedStyle=function(node){if(node.nodeType===1){var dv=node.ownerDocument.defaultView,w=dv.opener?dv:win.global.window;return w.getComputedStyle(node,null)}return{}}}style.getComputedStyle=getComputedStyle;var toPixel;if(!has("ie")){toPixel=function(element,value){return parseFloat(value)||0}}else{toPixel=function(element,avalue){if(!avalue){return 0}if(avalue=="medium"){return 4}if(avalue.slice&&avalue.slice(-2)=="px"){return parseFloat(avalue)}var s=element.style,rs=element.runtimeStyle,cs=element.currentStyle,sLeft=s.left,rsLeft=rs.left;rs.left=cs.left;try{s.left=avalue;avalue=s.pixelLeft}catch(e){avalue=0}s.left=sLeft;rs.left=rsLeft;return avalue}}style.toPixelValue=toPixel;var astr="DXImageTransform.Microsoft.Alpha";var af=function(n,f){try{return n.filters.item(astr)}catch(e){return f?{}:null}};var _getOpacity=has("ie")<9||has("ie")<10&&has("quirks")?function(node){try{return af(node).Opacity/100}catch(e){return 1}}:function(node){return getComputedStyle(node).opacity};var _setOpacity=has("ie")<9||has("ie")<10&&has("quirks")?function(node,opacity){if(opacity===""){opacity=1}var ov=opacity*100,fullyOpaque=opacity===1;if(fullyOpaque){node.style.zoom="";if(af(node)){node.style.filter=node.style.filter.replace(new RegExp("\\s*progid:"+astr+"\\([^\\)]+?\\)","i"),"")}}else{node.style.zoom=1;if(af(node)){af(node,1).Opacity=ov}else{node.style.filter+=" progid:"+astr+"(Opacity="+ov+")"}af(node,1).Enabled=true}if(node.tagName.toLowerCase()=="tr"){for(var td=node.firstChild;td;td=td.nextSibling){if(td.tagName.toLowerCase()=="td"){_setOpacity(td,opacity)}}}return opacity}:function(node,opacity){return node.style.opacity=opacity};var _pixelNamesCache={left:true,top:true};var _pixelRegExp=/margin|padding|width|height|max|min|offset/;function _toStyleValue(node,type,value){type=type.toLowerCase();if(value=="auto"){if(type=="height"){return node.offsetHeiLine truncated
|
||||
;lang.mixin(dojo,{isBrowser:true,isFF:has("ff"),isIE:has("ie"),isKhtml:has("khtml"),isWebKit:has("webkit"),isMozilla:has("mozilla"),isMoz:has("mozilla"),isOpera:has("opera"),isSafari:has("safari"),isChrome:has("chrome"),isMac:has("mac"),isIos:has("ios"),isAndroid:has("android"),isWii:has("wii"),isQuirks:has("quirks"),isAir:has("air")});return has})},"dojo/keys":function(){define(["./_base/kernel","./sniff"],function(dojo,has){return dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:has("webkit")?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,UP_DPAD:175,DOWN_DPAD:176,LEFT_DPAD:177,RIGHT_DPAD:178,copyKey:has("mac")&&!has("air")?has("safari")?91:224:17}})},"dojo/dom-class":function(){define(["./_base/lang","./_base/array","./dom"],function(lang,array,dom){var className="className";var cls,spaces=/\s+/,a1=[""];function str2array(s){if(typeof s=="string"||s instanceof String){if(s&&!spaces.test(s)){a1[0]=s;return a1}var a=s.split(spaces);if(a.length&&!a[0]){a.shift()}if(a.length&&!a[a.length-1]){a.pop()}return a}if(!s){return[]}return array.filter(s,function(x){return x})}var fakeNode={};cls={contains:function containsClass(node,classStr){return(" "+dom.byId(node)[className]+" ").indexOf(" "+classStr+" ")>=0},add:function addClass(node,classStr){node=dom.byId(node);classStr=str2array(classStr);var cls=node[className],oldLen;cls=cls?" "+cls+" ":" ";oldLen=cls.length;for(var i=0,len=classStr.length,c;i<len;++i){c=classStr[i];if(c&&cls.indexOf(" "+c+" ")<0){cls+=c+" "}}if(oldLen<cls.length){node[className]=cls.substr(1,cls.length-2)}},remove:function removeClass(node,classStr){node=dom.byId(node);var cls;if(classStr!==undefined){classStr=str2array(classStr);cls=" "+node[className]+" ";for(var i=0,len=classStr.length;i<len;++i){cls=cls.replace(" "+classStr[i]+" "," ")}cls=lang.trim(cls)}else{cls=""}if(node[className]!=cls){node[className]=cls}},replace:function replaceClass(node,addClassStr,removeClassStr){node=dom.byId(node);fakeNode[className]=node[className];cls.remove(fakeNode,removeClassStr);cls.add(fakeNode,addClassStr);if(node[className]!==fakeNode[className]){node[className]=fakeNode[className]}},toggle:function toggleClass(node,classStr,condition){node=dom.byId(node);if(condition===undefined){classStr=str2array(classStr);for(var i=0,len=classStr.length,c;i<len;++i){c=classStr[i];cls[cls.contains(node,c)?"remove":"add"](node,c)}}else{cls[condition?"add":"remove"](node,classStr)}return condition}};return cls})},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","./when"],function(declare,lang,array,when){return declare("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name]}return apn[name]={s:"_"+name+"Setter",g:"_"+name+"Getter"}},postscript:function(params){if(params){this.set(params)}},_get:function(name,names){return typeof this[names.g]==="function"?this[names.g]():this[name]},get:function(name){return this._get(name,this._getAttrNames(name))},set:function(name,value){if(typeof name==="object"){for(var x in name){if(name.hasOwnProperty(x)&&x!="_watchCallbacks"){this.set(x,name[x])}}return this}var names=this._getAttrNames(name),oldValue=this._get(name,names),setter=this[names.s],result;if(typeof setter==="function"){result=setter.apply(this,Array.prototype.slice.call(arguments,1))}else{this[name]=value}if(this._watchCallbacks){var self=this;when(result,function(){self._watchCallbacks(name,oldValue,value)})}return this},_changeAttrValue:function(name,value){var oldValue=this.get(name);this[name]=value;if(this._watchCallbacks){this._watchCallbacks(name,oldValue,value)}return this},watch:function(name,callback){var callbacks=this._watchCallbacks;if(!callbacks){var self=this;callbacks=this._watchCallbacks=function(name,oldValue,value,ignoreCatchall){var notify=function(propertyCallbacks){if(propertyCallbacks){propertyCallbacks=propertyCallbacks.slice();for(var i=0,l=propertyCallbacks.length;i<l;i++){propertyCallbacks[i].call(self,name,oldValue,value)}}};notify(callbacks["_"+name]);if(!ignoreCatchall){notify(callbacks["*"])}}}if(!callback&&typeof name==="function"){callback=name;name="*"}else{name="_"+name}var propertyCallbacks=callbacks[name];if(typeof propertyCallbacks!=="object"){propertyCallbacks=callbacks[name]=[]}propertyCallbacks.push(callback);var handle={};handle.unwatch=handle.remove=function(){var index=array.indexOf(propertyCallbacks,callbaLine truncated
|
||||
;var nl=NodeList,nlp=nl.prototype=has("array-extensible")?[]:{};nl._wrap=nlp._wrap=tnl;nl._adaptAsMap=adaptAsMap;nl._adaptAsForEach=adaptAsForEach;nl._adaptAsFilter=adaptAsFilter;nl._adaptWithCondition=adaptWithCondition;forEach(["slice","splice"],function(name){var f=ap[name];nlp[name]=function(){return this._wrap(f.apply(this,arguments),name=="slice"?this:null)}});forEach(["indexOf","lastIndexOf","every","some"],function(name){var f=array[name];nlp[name]=function(){return f.apply(dojo,[this].concat(aps.call(arguments,0)))}});lang.extend(NodeList,{constructor:nl,_NodeListCtor:nl,toString:function(){return this.join(",")},_stash:function(parent){this._parent=parent;return this},on:function(eventName,listener){var handles=this.map(function(node){return on(node,eventName,listener)});handles.remove=function(){for(var i=0;i<handles.length;i++){handles[i].remove()}};return handles},end:function(){if(this._parent){return this._parent}else{return new this._NodeListCtor(0)}},concat:function(item){var t=aps.call(this,0),m=array.map(arguments,function(a){return aps.call(a,0)});return this._wrap(apc.apply(t,m),this)},map:function(func,obj){return this._wrap(array.map(this,func,obj),this)},forEach:function(callback,thisObj){forEach(this,callback,thisObj);return this},filter:function(filter){var a=arguments,items=this,start=0;if(typeof filter=="string"){items=query._filterResult(this,a[0]);if(a.length==1){return items._stash(this)}start=1}return this._wrap(array.filter(items,a[start],a[start+1]),this)},instantiate:function(declaredClass,properties){var c=lang.isFunction(declaredClass)?declaredClass:lang.getObject(declaredClass);properties=properties||{};return this.forEach(function(node){new c(properties,node)})},at:function(){var t=new this._NodeListCtor(0);forEach(arguments,function(i){if(i<0){i=this.length+i}if(this[i]){t.push(this[i])}},this);return t._stash(this)}});function queryForEngine(engine,NodeList){var query=function(query,root){if(typeof root=="string"){root=dom.byId(root);if(!root){return new NodeList([])}}var results=typeof query=="string"?engine(query,root):query?query.end&&query.on?query:[query]:[];if(results.end&&results.on){return results}return new NodeList(results)};query.matches=engine.match||function(node,selector,root){return query.filter([node],selector,root).length>0};query.filter=engine.filter||function(nodes,selector,root){return query(selector,root).filter(function(node){return array.indexOf(nodes,node)>-1})};if(typeof engine!="function"){var search=engine.search;engine=function(selector,root){return search(root||document,selector)}}return query}var query=queryForEngine(defaultEngine,NodeList);dojo.query=queryForEngine(defaultEngine,function(array){return NodeList(array)});query.load=function(id,parentRequire,loaded){loader.load(id,parentRequire,function(engine){loaded(queryForEngine(engine,NodeList))})};dojo._filterQueryResult=query._filterResult=function(nodes,selector,root){return new NodeList(query.filter(nodes,selector,root))};dojo.NodeList=query.NodeList=NodeList;return query})},"dojo/selector/_loader":function(){define(["../has","require"],function(has,require){"use strict";if(typeof document!=="undefined"){var testDiv=document.createElement("div");has.add("dom-qsa2.1",!!testDiv.querySelectorAll);has.add("dom-qsa3",function(){try{testDiv.innerHTML="<p class='TEST'></p>";return testDiv.querySelectorAll(".TEST:empty").length==1}catch(e){}})}var fullEngine;var acme="./acme",lite="./lite";return{load:function(id,parentRequire,loaded,config){if(config&&config.isBuild){loaded();return}var req=require;id=id=="default"?has("config-selectorEngine")||"css3":id;id=id=="css2"||id=="lite"?lite:id=="css2.1"?has("dom-qsa2.1")?lite:acme:id=="css3"?has("dom-qsa3")?lite:acme:id=="acme"?acme:(req=parentRequire)&&id;if(id.charAt(id.length-1)=="?"){id=id.substring(0,id.length-1);var optionalLoad=true}if(optionalLoad&&(has("dom-compliant-qsa")||fullEngine)){return loaded(fullEngine)}req([id],function(engine){if(id!="./lite"){fullEngine=engine}loaded(engine)})}}})},"dojo/selector/lite":function(){define(["../has","../_base/kernel"],function(has,dojo){"use strict";var testDiv=document.createElement("div");var matchesSelector=testDiv.matches||testDiv.webkitMatchesSelector||testDiv.mozMatchesSelector||testDiv.msMatchesSelector||testDiv.oMatchesSelector;var querySelectorAll=testDiv.querySelectorAll;var unionSplit=/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g;has.add("dom-matches-selector",!!matchesSelector);has.add("dom-qsa",!!querySelectorAll);var liteEngine=function(selector,root){if(combine&&selector.indexOf(",")>-1){return combine(selector,root)}var doc=root?root.ownerDocument||root:dojo.doc||document,match=(querySelectorAll?/^([\w]*)#([\w\-]+$)|^(\.)([\w\-\*]+$)|^(\w+$)/:/^([\w]*)#([\w\-]+)(?:\s+(.*))?$|(?:^|(>|.+\s+))([\w\-\*]+)(\S*$)/).exec(selector);root=root||doc;if(match){var isInsideDomTree=has("ie")===8&&has("quirks")?root.nodeType===doc.nodeType:root.parentNode!==null&&root.nodeType!==9&&rLine truncated
|
||||
@@ -46,7 +46,7 @@
|
||||
"grunt-qunit-junit": "^0.3.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"dojo": "~1.8.1"
|
||||
"dojo": "~1.16.2"
|
||||
},
|
||||
"main": "src",
|
||||
"homepage": "http://freeipa.org/",
|
||||
|
||||
@@ -59,7 +59,7 @@ OPTIONS
|
||||
|
||||
--all Do --clone --checkout --patches --links --dojo --util
|
||||
|
||||
--branch <br> Specify a Dojo branch/tag/hash to checkout, default: 1.8.3
|
||||
--branch <br> Specify a Dojo branch/tag/hash to checkout, default: 1.16.2
|
||||
|
||||
--dir <dir> Specify a clone dir, default: freeipa/../dojo/
|
||||
__EOF__
|
||||
@@ -76,7 +76,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
DOJO_DIR=$DIR/../../../../dojo
|
||||
|
||||
# working version of Dojo toolkit
|
||||
BRANCH='1.13.0'
|
||||
BRANCH='1.16.2'
|
||||
YES='YES'
|
||||
|
||||
args=`getopt -q -u -l help,checkout,clone,patches,links,dojo,util,all,branch:,dir: a $*`
|
||||
@@ -166,7 +166,6 @@ if [[ $DOJO = $YES ]] ; then
|
||||
git checkout master
|
||||
git fetch --tags
|
||||
git fetch
|
||||
git branch -D $BRANCH
|
||||
git checkout $BRANCH
|
||||
fi
|
||||
popd
|
||||
@@ -187,7 +186,6 @@ if [[ $UTIL = $YES ]] ; then
|
||||
git checkout master
|
||||
git fetch --tags
|
||||
git fetch
|
||||
git branch -D $BRANCH
|
||||
git checkout $BRANCH
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user