diff --git a/dist/base.js b/dist/base.js index 995ddde..8026981 100644 --- a/dist/base.js +++ b/dist/base.js @@ -1,3 +1,3 @@ -/**! Qoopido.nucleus 3.2.6 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ +/**! Qoopido.nucleus 3.2.7 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ !function(t){"use strict";var e=Object,r=e.create,o=e.getOwnPropertyNames,n=e.getOwnPropertyDescriptor,i=e.defineProperty;function p(t,e,r,o){return{__proto__:null,value:t,enumerable:!!o,configurable:!!r,writable:!!e}}function c(t,e,r,o,n){i(this,t,new p(e,r,o,n))}c.call(Object.prototype,"define",c),Function.prototype.define("extends",(function(t){for(var e,i=this.prototype,c=o(i),s={constructor:new p(this,!0,!0)},u=0;(e=c[u])&&!s[e];u++)s[e]=n(i,e);try{this.prototype=r(t.prototype||t,s)}catch(t){}if(this.prototype===i)throw new TypeError("Unable to extend, prototype is not writable");return this}))}(); //# sourceMappingURL=base.js.map diff --git a/dist/component/iterator.js b/dist/component/iterator.js index dcde502..ddbb769 100644 --- a/dist/component/iterator.js +++ b/dist/component/iterator.js @@ -1,3 +1,3 @@ -/**! Qoopido.nucleus 3.2.6 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ +/**! Qoopido.nucleus 3.2.7 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ !function(){"use strict";provide(["/demand/weakmap","../emitter","../function/merge"],(function(t,e,n){var i=new t;function s(t,e){var n;if((n=i.get(t))&&n.data)return n.data[e]}function r(t,s){var a=e.call(this);return i.set(a,{settings:n({},r.settings,s),index:null,data:null}),t&&a.setData(t),a}return r.prototype={get length(){return s(this,"length")||0},get index(){return function(t,e){var n;if(n=i.get(t))return n.index}(this)},get item(){return s(this,this.index)},setData:function(t){var e,n;return"object"==typeof t&&t.length&&(n=(e=i.get(this)).settings,e.data=t,null!==n.initial&&this.seek(n.initial)),this},seek:function(t){var e=i.get(this);return(t=parseInt(t,10))!==e.index&&"undefined"!=typeof e.data[t]&&(e.index=t),this},first:function(){return this.seek(0)},last:function(){return this.seek(this.length-1)},previous:function(){var t,e=i.get(this).settings;return t=!0===e.loop?(this.index-1)%this.length:this.index-1,t=!0===e.loop&&t<0?this.length+t:t,this.seek(t)},next:function(){var t;return t=!0===i.get(this).settings.loop?(this.index+1)%this.length:this.index+1,this.seek(t)}},r.settings={loop:!0,initial:0},r.extends(e)}))}(); //# sourceMappingURL=iterator.js.map diff --git a/dist/component/sense.js b/dist/component/sense.js index fa0aa4c..85c37aa 100644 --- a/dist/component/sense.js +++ b/dist/component/sense.js @@ -1,3 +1,3 @@ -/**! Qoopido.nucleus 3.2.6 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ +/**! Qoopido.nucleus 3.2.7 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ !function(t){"use strict";provide(["/demand/weakmap","../emitter",t.matchMedia||"../polyfill/window/matchmedia"],(function(t,e,a){var i=new t;function n(t){var n=e.call(this),r=a(t);return i.set(n,r),r.addListener((function(){n.emit(!0===r.matches?"match":"unmatch")})),n}return n.prototype={get matches(){var t=i.get(this);if(t)return t.matches}},n.extends(e)}))}(this); //# sourceMappingURL=sense.js.map diff --git a/dist/dom/collection.js b/dist/dom/collection.js index fc105f2..201f199 100644 --- a/dist/dom/collection.js +++ b/dist/dom/collection.js @@ -1,3 +1,3 @@ -/**! Qoopido.nucleus 3.2.6 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ +/**! Qoopido.nucleus 3.2.7 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ !function(t){"use strict";provide(["/demand/validator/isTypeOf","/demand/validator/isInstanceOf","/demand/descriptor","./element"],(function(e,n,r,i){var s=Array.prototype.slice,l=Object.defineProperty;function o(n){var r,i,l=0;if(e(n,"string"))for(r=n.split(","),n=[],l=0;i=r[l];l++)try{n=n.concat(s.call(t.querySelectorAll(i)))}catch(t){}return n.length&&!Array.isArray(n)&&(n=s.call(n)),Array.isArray(n)||(n=[n]),n}function c(t){for(var e,n=this,r=n.elements,i=s.call(arguments,1),l=0;e=r[l];l++)e[t].apply(e,i);return n}function u(t,e){return(t=n(t,i)?t:new i(t))&&t[e].call(t,a(this.elements)),this}function a(e){for(var n,r=t.createDocumentFragment(),i=0;n=e[i];i++)r.appendChild(n.node);return r}function f(t){return l(this,"elements",new r([])),l(this,"nodes",new r([])),t&&this.add(t),this}return f.prototype={get length(){return this.elements.length},get:function(t){return this.elements[t]},add:function(t){var e,r=0;for(t=o(t);e=t[r];r++)-1===this.nodes.indexOf(e.node||e)&&(e=n(e,i)?e:new i(e),this.elements.push(e),this.nodes.push(e.node));return this},remove:function(t){var e,n,r=0;for(t=o(t);e=t[r];r++)-1!==(n=this.nodes.indexOf(e.node||e))&&(this.elements.splice(n,1),this.nodes.splice(n,1));return this},each:function(t){for(var e,n=this.elements,r=0;e=n[r];r++)t.call(e,r);return this},setAttribute:function(t,e){return c.call(this,"setAttribute",t,e)},setAttributes:function(t){return c.call(this,"setAttributes",t)},removeAttribute:function(t){return c.call(this,"removeAttribute",t)},removeAttributes:function(t){return c.call(this,"removeAttributes",t)},setStyle:function(t,e){return c.call(this,"setStyle",t,e)},setStyles:function(t){return c.call(this,"setStyles",t)},removeStyle:function(t){return c.call(this,"removeStyle",t)},removeStyles:function(t){return c.call(this,"removeStyles",t)},addClass:function(t){return c.call(this,"addClass",t)},removeClass:function(t){return c.call(this,"removeClass",t)},toggleClass:function(t){return c.call(this,"toggleClass",t)},prependTo:function(t){return u.call(this,t,"prepend")},appendTo:function(t){return u.call(this,t,"append")},insertBefore:function(t){return(t=n(t,i)?t:new i(t))&&(t=t.node)&&t.parentNode.insertBefore(a(this.elements),t),this},insertAfter:function(t){var e,r;return(t=n(t,i)?t:new i(t))&&(t=t.node)&&(r=a(this.elements),(e=t.nextSibling)?t.parentNode.insertBefore(r,e):t.parentNode.appendChild(r)),this},replace:function(t){for(var e,n=this.elements,r=0;e=n[r];r++)0===r?e.replace(t):e.insertAfter(n[r-1]);return this},detach:function(){for(var t,e=this.elements,n=0;t=e[n];n++)t.detach();return this},blur:function(){return c.call(this,"blur")},on:function(){return c.apply(this,["on"].concat(s.call(arguments)))},one:function(){return c.apply(this,["one"].concat(s.call(arguments)))},off:function(){return c.apply(this,["off"].concat(s.call(arguments)))},emit:function(){return c.apply(this,["emit"].concat(s.call(arguments)))}},f}))}(document); //# sourceMappingURL=collection.js.map diff --git a/dist/dom/element.js b/dist/dom/element.js index 6394742..9cd6b9e 100644 --- a/dist/dom/element.js +++ b/dist/dom/element.js @@ -1,3 +1,3 @@ -/**! Qoopido.nucleus 3.2.6 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ +/**! Qoopido.nucleus 3.2.7 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ !function(t,e){"use strict";provide(["/demand/validator/isObject","/demand/validator/isInstanceOf","/demand/validator/isTypeOf","/demand/function/uuid","/demand/function/iterate","/demand/descriptor","./event","../hooks/css","../support/method"],(function(n,i,r,o,s,u,d,a,f){var l=e.body||e.getElementsByTagName("body")[0],c=Array.prototype.concat,h=Array.prototype.slice,p=Object.defineProperty,g=Object.defineProperties,v=e.getElementsByTagName("head")[0],m="textContent"in e.createElement("a")?"textContent":"innerText",y=f("matches",l)||f("matchesSelector",l),b=/^<(\w+)\s*\/>$/,S=/ +/g,C=/^\s*^/,A=r(v.previousElementSibling,"undefined")?function(){for(var t=this;t=t.previousSibling;)if(1===t.nodeType)return t}:function(){return this.previousElementSibling},E=r(v.nextElementSibling,"undefined")?function(){for(var t=this;t=t.nextSibling;)if(1===t.nodeType)return t}:function(){return this.nextElementSibling},T={},N=!1;function w(t){return N||"boolean"==typeof t?t:t&&t.capture}function B(n,i,r){var o;(o=e.createEvent("CustomEvent")).initCustomEvent(n,"load"!==n&&"resize"!==n,"load"!==n&&"resize"!==n,i),r&&(o.uuid=r,o.isDelegate=!0),this.node.dispatchEvent(o),this.node===t||o.defaultPrevented||"function"!=typeof this.node[n]||this.node[n]()}function L(t){if("string"==typeof t)try{t=b.test(t)?e.createElement(t.replace(b,"$1").toLowerCase()):e.querySelector(t)}catch(e){t=null}if(!t)throw new Error("Element could not be resolved");return t}function x(t){return c.apply([],h.call(t)).join(" ").split(S)}function P(t,e){for(var n,i=0;n=t.path[i];i++){if(n[y]&&n[y](e))return t.currentTarget=n,!0;if(n===t.currentTarget)break}return!1}function j(t,e,n,i,r){var o=!(i&&1===i),s=!!o&&[];for(r=!o&&r;t=e.call(t);)if(1===t.nodeType){if(!n||t[y](n)){if(!o)return t;s.push(t)}if(r)break}return s}function H(t,e,n,i){var r=!(n&&1===n),o=!!r&&[];for(i=!r&&i;t=t.parentNode;)if(1===t.nodeType){if(!e||t[y](e)){if(!r)return t;o.push(t)}if(i)break}return o}function O(e,i,r){var s;return(s=(e=L(e)).uuid)||(s=o(),T[s]={},p(e,"uuid",new u(s))),g(this,{uuid:new u(s),type:new u(e===t?"#window":e.nodeName),node:new u(e)}),n(i)&&this.setAttributes(i),n(r)&&this.setStyles(r),this}return function(){var e,n=function(){},i=""+ +new Date;try{e=Object.defineProperty({},"passive",{get:function(){N=!0}}),t.addEventListener(i,n,e),t.removeEventListener(i,n,e)}catch(t){}}(),O.prototype={clone:function(){return new O(this.node.cloneNode(!0))},focus:function(){return this.node.focus(),this},blur:function(){return this.node.blur(),this},getPosition:function(){var t=this.node.getBoundingClientRect();return{left:t.left+l.scrollLeft,top:t.top+l.scrollTop}},getOffset:function(t){var e=this.node,n=t?e.getBoundingClientRect():null;return{left:t?n.left:e.offsetLeft,top:t?n.top:e.offsetTop}},getWidth:function(t){var e,n=this.node,i=n.offsetWidth;return t&&(e=getComputedStyle(n),i+=parseInt(e.marginLeft)+parseInt(e.marginRight)),i},getHeight:function(t){var e,n=this.node,i=n.offsetHeight;return t&&(e=getComputedStyle(n),i+=parseInt(e.marginTop)+parseInt(e.marginBottom)),i},getContent:function(t){var e=this.node;return t?e.innerHTML:e[m]},getAttribute:function(t){if(r(t,"string"))return this.node.getAttribute(t)},getAttributes:function(){for(var t,e=this,n={},i=x(arguments),r=0;t=i[r];r++)n[t]=e.node.getAttribute(t);return n},getStyle:function(t){if(r(t,"string"))return a.process("get",this.node,t)},getStyles:function(){for(var t,e=this,n={},i=x(arguments),r=0;t=i[r];r++)n[t]=a.process("get",e.node,t);return n},getSiblingBefore:function(t,e){return j(this.node,A,t,1,e)},getSiblingAfter:function(t,e){return j(this.node,E,t,1,e)},getSiblings:function(t){return this.getSiblingsBefore(t).concat(this.getSiblingsAfter(t))},getSiblingsBefore:function(t){return j(this.node,A,t)},getSiblingsAfter:function(t){return j(this.node,E,t)},getChildren:function(t){var e,n,i,r,o=this.node;if(t)C.test(t)?(e=o.uuid,o.setAttribute("nucleus-uuid",e),t='[nucleus-uuid="'+e+'"] '+t,n=h.call(o.parentNode.querySelectorAll(t)),o.removeAttribute("nucleus-uuid")):n=h.call(o.querySelectorAll(t));else for(n=[],i=0;r=o.childNodes[i];i++)1===r.nodeType&&n.push(r);return n},getParent:function(t,e){return H(this.node,t,1,e)},getParents:function(t){return H(this.node,t)},hasChild:function(t){var e=this.node;return e!==t&&e.contains(t.node||t)},hasClass:function(t){return!!t&&new RegExp("(?:^|\\s)"+t+"(?:\\s|$)").test(this.node.className)},isVisible:function(){var t=this.node;return!(t.offsetWidth<=0&&t.offsetHeight<=0||"hidden"===this.getStyle("visibility")||this.getStyle("opacity")<=0)},setContent:function(t,e){var n=this.node;return e?n.innerHTML=t:n[m]=t,this},setAttribute:function(t,e){return r(t,"string")&&this.node.setAttribute(t,e),this},setAttributes:function(t){var e=this;return s(t,(function(t,n){e.setAttribute(t,n)})),e},removeAttribute:function(t){return r(t,"string")&&this.node.removeAttribute(t),this},removeAttributes:function(){for(var t,e=this,n=x(arguments),i=0;t=n[i];i++)e.removeAttribute(t);return e},setStyle:function(t,e){return r(t,"string")&&a.process("set",this.node,t,e),this},setStyles:function(t){var e=this;return s(t,(function(t,n){a.process("set",e.node,t,n)})),e},removeStyle:function(t){return r(t,"string")&&this.setStyle(t,""),this},removeStyles:function(){for(var t,e=this,n=x(arguments),i=0;t=n[i];i++)e.setStyle(t,"");return e},addClass:function(t){return t&&!this.hasClass(t)&&(this.node.className+=this.node.className?" "+t:t),this},removeClass:function(t){return t&&this.hasClass(t)&&(this.node.className=this.node.className.replace(new RegExp("(?:^|\\s)"+t+"(?!\\S)"),"").trim()),this},toggleClass:function(t){return t&&(this.hasClass(t)?this.removeClass(t):this.addClass(t)),this},prepend:function(t){var e=this.node;if(t)try{t=i(t,O)?t.node:L(t),e.firstChild?e.insertBefore(t,e.firstChild):this.append(t)}catch(n){e.insertAdjacentHTML("afterBegin",t)}return this},append:function(t){var e=this.node;if(t)try{e.appendChild(i(t,O)?t.node:L(t))}catch(n){e.insertAdjacentHTML("beforeEnd",t)}return this},prependTo:function(t){var e=this.node;return t&&((t=t.node||L(t)).firstChild?t.insertBefore(e,t.firstChild):this.appendTo(t)),this},appendTo:function(t){return t&&(t.node||L(t)).appendChild(this.node),this},insertBefore:function(t){var e=this.node;return t&&(t=t.node||L(t)).parentNode.insertBefore(e,t),this},insertAfter:function(t){var e=this.node;return t&&((t=t.node||L(t)).nextSibling?t.parentNode.insertBefore(e,t.nextSibling):this.appendTo(t.parentNode)),this},replace:function(t){var e=this.node;return t&&(t=t.node||L(t)).parentNode.replaceChild(e,t),this},replaceWith:function(t){var e=this.node;return t&&(t=i(t,O)?t.node:L(t),e.parentNode.replaceChild(t,e)),this},detach:function(){var t=this.node;return t.parentNode&&t.parentNode.removeChild(t),this},on:function(t){var e,n=this,i=4===arguments.length||"string"==typeof arguments[1]?arguments[1]:null,r=4===arguments.length||"function"==typeof arguments[2]?arguments[2]:arguments[1],s=w(arguments.length>3?arguments[3]:arguments[2]),u=r.uuid||(r.uuid=o()),a=0;for(t=t.split(S);e=t[a];a++){var f=e+"-"+u,l=function(t){var e;(t=new d(t)).isPropagationStopped||(e=t.delegate,t.uuid=o(),i&&!P(t,i)||r.call(t.currentTarget,t,t.originalEvent.detail),e&&(delete t.delegate,B.call(n,e)))};l.type=e,T[n.uuid][f]=l,n.node.addEventListener(e,l,s)}return n},one:function(t){var e=this,n=5===arguments.length||"string"==typeof arguments[1]?arguments[1]:null,i=5===arguments.length||"function"==typeof arguments[2]?arguments[2]:arguments[1],r=w(arguments.length>3?arguments[3]:arguments[2]),s=!1!==(arguments.length>4?arguments[4]:arguments[3]),u=function(n){e.off(!0===s?n.type:t,u,r),i.call(this,n,n.originalEvent.detail)};return i.uuid=u.uuid=o(),n?e.on(t,n,u,r):e.on(t,u,r),e},off:function(t,e,n){var i,r,o,s=this.node,u=0;for(n=w(n),t=t.split(" ");i=t[u];u++)(o=(r=e.uuid&&i+"-"+e.uuid||null)&&T[this.uuid][r]||null)?(s.removeEventListener(i,o,n),delete T[this.uuid][r]):s.removeEventListener(i,e,n);return this},emit:function(t,e){return B.call(this,t,e),this}},O}))}(this,document); //# sourceMappingURL=element.js.map diff --git a/dist/dom/element/appear.js b/dist/dom/element/appear.js index 0eff928..e58b42f 100644 --- a/dist/dom/element/appear.js +++ b/dist/dom/element/appear.js @@ -1,3 +1,3 @@ -/**! Qoopido.nucleus 3.2.6 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ +/**! Qoopido.nucleus 3.2.7 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ !function(t,e,i){"use strict";if("CSS1Compat"!==e.compatMode)throw new Error("Browser needs to be in standards mode");provide(["/demand/weakmap","../element","../../function/merge","../../function/debounce"],(function(n,o,r,s){var a=e.documentElement,c=new o(t),d={},u=new n,h=[];function l(){d.left=0,d.top=0,d.right=t.innerWidth||a.clientWidth,d.bottom=t.innerHeight||a.clientHeight}function p(){var t=u.get(this),e=t.settings,i=t.boundaries,n=e.threshold,o=void 0!==n?n:a.clientWidth*e.auto,r=void 0!==n?n:a.clientHeight*e.auto;i.left=d.left-o,i.top=d.top-r,i.right=d.right+o,i.bottom=d.bottom+r}function g(t,e){var i=t.getBoundingClientRect();return!(i.right<=e.left||i.bottom<=e.top||i.left>=e.right||i.top>=e.bottom)}function f(){var t=this.node,e=u.get(this);return g(t,d)?2:g(t,e.boundaries)?1:0}function m(t,e){var i=o.call(this,t);return"auto"===(e=r({},m.settings,e)).threshold&&delete e.threshold,u.set(i,{settings:e,boundaries:{},state:-1}),c.on("resize orientationchange",s(p.bind(i))),p.call(i),h.push(i),i}return c.on("resize orientationchange",s(l)),l(),i((function(){for(var t,e,i,n,o=0;t=h[o];o++)if(!(i=(e=u.get(t)).settings).visibility||t.isVisible()){if((n=f.call(t))!==e.state){switch(n){case 0:t.emit("disappear",{priority:1});break;case 1:t.emit(e.state<=0?"appear":"disappear",{priority:2});break;case 2:t.emit("appear",{priority:1})}e.state=n}i.recur||2!==n||(h.splice(o,1),o--)}}),1e3/30),m.settings={threshold:"auto",recur:!0,auto:1,visibility:!0},m.extends(o)}))}(this,document,setInterval); //# sourceMappingURL=appear.js.map diff --git a/dist/dom/element/resize.js b/dist/dom/element/resize.js index 40d4e49..80426bc 100644 --- a/dist/dom/element/resize.js +++ b/dist/dom/element/resize.js @@ -1,3 +1,3 @@ -/**! Qoopido.nucleus 3.2.6 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ +/**! Qoopido.nucleus 3.2.7 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ !function(){"use strict";provide(["/demand/weakmap","../element"],(function(e,n){var t=new e,i=!(document.documentMode<11)&&"pointerEvents"in document.createElement("iframe").style,o={pointerEvents:"none",userSelect:"none",userDrag:"none",zIndex:"-1",display:"block",opacity:0,position:"absolute",left:0,top:"-100%",width:"100%",height:"100%",margin:"1px 0 0",padding:0,border:"none"};return i||(o.visibility="hidden"),function(e){var i,d,a=n.call(this,e),r=t.get(a.node);if(r)return r;i=a.getStyle("position"),d=new n("