diff --git a/dist/base.js b/dist/base.js index 54ff64e..c74c43d 100644 --- a/dist/base.js +++ b/dist/base.js @@ -1,3 +1,3 @@ -/**! Qoopido.nucleus 3.2.14 | http://nucleus.qoopido.com | (c) 2021 Dirk Lueth */ +/**! Qoopido.nucleus 3.2.15 | http://nucleus.qoopido.com | (c) 2021 Dirk Lueth */ !function(t){"use strict";var e=Object,r=e.create,o=e.getOwnPropertyNames,n=e.getOwnPropertyDescriptor;(0,e.defineProperty)(Function.prototype,"extends",(function(t){for(var e,p=this,c=p.prototype,i=o(c),y={constructor:{value:p,writable:!0,configurable:!0}},a=0;(e=i[a])&&!y[e];a++)y[e]=n(c,e);try{p.prototype=r(t.prototype||t,y)}catch(t){}if(p.prototype===c)throw new TypeError("Unable to extend, prototype is not writable");return p}))}(); //# sourceMappingURL=base.js.map diff --git a/dist/component/iterator.js b/dist/component/iterator.js index ebb074f..a8eca1b 100644 --- a/dist/component/iterator.js +++ b/dist/component/iterator.js @@ -1,3 +1,3 @@ -/**! Qoopido.nucleus 3.2.14 | http://nucleus.qoopido.com | (c) 2021 Dirk Lueth */ +/**! Qoopido.nucleus 3.2.15 | http://nucleus.qoopido.com | (c) 2021 Dirk Lueth */ !function(){"use strict";provide(["/demand/weakmap","../emitter","../function/merge"],(function(t,e,n){var i=new t;function r(t,e){var n;if((n=i.get(t))&&n.data)return n.data[e]}function s(t,r){var a=e.call(this);return i.set(a,{settings:n({},s.settings,r),index:null,data:null}),t&&a.setData(t),a}return s.prototype={get length(){return r(this,"length")||0},get index(){return function(t,e){var n;if(n=i.get(t))return n.index}(this)},get item(){return r(this,this.index)},setData:function(t){var e,n,r=this;return"object"==typeof t&&t.length&&(n=(e=i.get(r)).settings,e.data=t,null!==n.initial&&r.seek(n.initial)),r},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=this,n=i.get(e).settings;return t=!0===n.loop?(e.index-1)%e.length:e.index-1,t=!0===n.loop&&t<0?e.length+t:t,e.seek(t)},next:function(){var t,e=this;return t=!0===i.get(e).settings.loop?(e.index+1)%e.length:e.index+1,e.seek(t)}},s.settings={loop:!0,initial:0},s.extends(e)}))}(); //# sourceMappingURL=iterator.js.map diff --git a/dist/component/sense.js b/dist/component/sense.js index fc4ac4a..ecb89ae 100644 --- a/dist/component/sense.js +++ b/dist/component/sense.js @@ -1,3 +1,3 @@ -/**! Qoopido.nucleus 3.2.14 | http://nucleus.qoopido.com | (c) 2021 Dirk Lueth */ +/**! Qoopido.nucleus 3.2.15 | http://nucleus.qoopido.com | (c) 2021 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 d744f5e..c3597b3 100644 --- a/dist/dom/collection.js +++ b/dist/dom/collection.js @@ -1,3 +1,3 @@ -/**! Qoopido.nucleus 3.2.14 | http://nucleus.qoopido.com | (c) 2021 Dirk Lueth */ +/**! Qoopido.nucleus 3.2.15 | http://nucleus.qoopido.com | (c) 2021 Dirk Lueth */ !function(e){"use strict";provide(["/demand/validator/isTypeOf","/demand/validator/isInstanceOf","./element"],(function(t,n,r){var i=Array.prototype.slice,l=Object.defineProperty;function s(n){var r,l,s=0;if(t(n,"string"))for(r=n.split(","),n=[],s=0;l=r[s];s++)try{n=n.concat(i.call(e.querySelectorAll(l)))}catch(e){}return n.length&&!Array.isArray(n)&&(n=i.call(n)),Array.isArray(n)||(n=[n]),n}function o(e){for(var t,n=this,r=n.elements,l=i.call(arguments,1),s=0;t=r[s];s++)t[e].apply(t,l);return n}function u(e,t){return(e=n(e,r)?e:new r(e))&&e[t].call(e,a(this.elements)),this}function a(t){for(var n,r=e.createDocumentFragment(),i=0;n=t[i];i++)r.appendChild(n.node);return r}function c(e){var t=this;return l(t,"elements",{value:[]}),l(t,"nodes",{value:[]}),e&&t.add(e),t}return c.prototype={get length(){return this.elements.length},get:function(e){return this.elements[e]},add:function(e){var t,i=this,l=0;for(e=s(e);t=e[l];l++)-1===i.nodes.indexOf(t.node||t)&&(t=n(t,r)?t:new r(t),i.elements.push(t),i.nodes.push(t.node));return i},remove:function(e){var t,n,r=this,i=0;for(e=s(e);t=e[i];i++)-1!==(n=r.nodes.indexOf(t.node||t))&&(r.elements.splice(n,1),r.nodes.splice(n,1));return r},each:function(e){for(var t,n=this.elements,r=0;t=n[r];r++)e.call(t,r);return this},setAttribute:function(e,t){return o.call(this,"setAttribute",e,t)},setAttributes:function(e){return o.call(this,"setAttributes",e)},removeAttribute:function(e){return o.call(this,"removeAttribute",e)},removeAttributes:function(e){return o.call(this,"removeAttributes",e)},setStyle:function(e,t){return o.call(this,"setStyle",e,t)},setStyles:function(e){return o.call(this,"setStyles",e)},removeStyle:function(e){return o.call(this,"removeStyle",e)},removeStyles:function(e){return o.call(this,"removeStyles",e)},addClass:function(e){return o.call(this,"addClass",e)},removeClass:function(e){return o.call(this,"removeClass",e)},toggleClass:function(e){return o.call(this,"toggleClass",e)},prependTo:function(e){return u.call(this,e,"prepend")},appendTo:function(e){return u.call(this,e,"append")},insertBefore:function(e){return(e=n(e,r)?e:new r(e))&&(e=e.node)&&e.parentNode.insertBefore(a(this.elements),e),this},insertAfter:function(e){var t,i;return(e=n(e,r)?e:new r(e))&&(e=e.node)&&(i=a(this.elements),(t=e.nextSibling)?e.parentNode.insertBefore(i,t):e.parentNode.appendChild(i)),this},replace:function(e){for(var t,n=this.elements,r=0;t=n[r];r++)0===r?t.replace(e):t.insertAfter(n[r-1]);return this},detach:function(){for(var e,t=this.elements,n=0;e=t[n];n++)e.detach();return this},blur:function(){return o.call(this,"blur")},on:function(){return o.apply(this,["on"].concat(i.call(arguments)))},one:function(){return o.apply(this,["one"].concat(i.call(arguments)))},off:function(){return o.apply(this,["off"].concat(i.call(arguments)))},emit:function(){return o.apply(this,["emit"].concat(i.call(arguments)))}},c}))}(document); //# sourceMappingURL=collection.js.map diff --git a/dist/dom/element.js b/dist/dom/element.js index 6ed67f4..6c01fbb 100644 --- a/dist/dom/element.js +++ b/dist/dom/element.js @@ -1,3 +1,3 @@ -/**! Qoopido.nucleus 3.2.14 | http://nucleus.qoopido.com | (c) 2021 Dirk Lueth */ +/**! Qoopido.nucleus 3.2.15 | http://nucleus.qoopido.com | (c) 2021 Dirk Lueth */ !function(e,t){"use strict";provide(["/demand/validator/isObject","/demand/validator/isInstanceOf","/demand/validator/isTypeOf","/demand/function/uuid","/demand/function/iterate","./event","../hooks/css","../support/method"],(function(n,r,i,o,s,u,a,d){var f=t.body||t.getElementsByTagName("body")[0],c=Array.prototype.concat,l=Array.prototype.slice,h=Object.defineProperty,p=Object.defineProperties,g=t.getElementsByTagName("head")[0],v=null,m="undefined",y="string",b="textContent"in t.createElement("a")?"textContent":"innerText",S=d("matches",f)||d("matchesSelector",f),C=/^<(\w+)\s*\/>$/,A=/ +/g,E=/^\s*^/,T=i(g.previousElementSibling,m)?function(){for(var e=this;e=e.previousSibling;)if(1===e.nodeType)return e}:function(){return this.previousElementSibling},N=i(g.nextElementSibling,m)?function(){for(var e=this;e=e.nextSibling;)if(1===e.nodeType)return e}:function(){return this.nextElementSibling},B={},L=!1;function w(e){return L||"boolean"==typeof e?e:e&&e.capture}function x(e,n){var r;(r=t.createEvent("CustomEvent")).initCustomEvent(e,"load"!==e&&"resize"!==e,"load"!==e&&"resize"!==e,n),this.node.dispatchEvent(r)}function j(e){if("string"==typeof e)try{e=C.test(e)?t.createElement(e.replace(C,"$1").toLowerCase()):t.querySelector(e)}catch(t){e=v}if(!e)throw new Error("Element could not be resolved");return e}function H(e){return c.apply([],l.call(e)).join(" ").split(A)}function O(e,t){for(var n,r=0;n=e.path[r];r++){if(n[S]&&n[S](t))return e.isDelegate=!0,e.currentTarget=n,!0;if(n===e.currentTarget)break}return!1}function P(e,t,n,r,i){var o=!(r&&1===r),s=!!o&&[];for(i=!o&&i;e=t.call(e);)if(1===e.nodeType){if(!n||e[S](n)){if(!o)return e;s.push(e)}if(i)break}return s}function I(e,t,n,r){var i=!(n&&1===n),o=!!i&&[];for(r=!i&&r;e=e.parentNode;)if(1===e.nodeType){if(!t||e[S](t)){if(!i)return e;o.push(e)}if(r)break}return o}function R(t,r,i){var s,u=this;return(s=(t=j(t)).uuid)||(s=o(),B[s]={},h(t,"uuid",{value:s})),p(u,{uuid:{value:s},type:{value:t===e?"#window":t.nodeName},node:{value:t}}),n(r)&&u.setAttributes(r),n(i)&&u.setStyles(i),u}return function(){var t,n=function(){},r=""+ +new Date;try{t=Object.defineProperty({},"passive",{get:function(){L=!0}}),e.addEventListener(r,n,t),e.removeEventListener(r,n,t)}catch(e){}}(),R.prototype={clone:function(){return new R(this.node.cloneNode(!0))},focus:function(){return this.node.focus(),this},blur:function(){return this.node.blur(),this},getPosition:function(){var e=this.node.getBoundingClientRect();return{left:e.left+f.scrollLeft,top:e.top+f.scrollTop}},getOffset:function(e){var t=this.node,n=e?t.getBoundingClientRect():null;return{left:e?n.left:t.offsetLeft,top:e?n.top:t.offsetTop}},getWidth:function(e){var t,n=this.node,r=n.offsetWidth;return e&&(t=getComputedStyle(n),r+=parseInt(t.marginLeft)+parseInt(t.marginRight)),r},getHeight:function(e){var t,n=this.node,r=n.offsetHeight;return e&&(t=getComputedStyle(n),r+=parseInt(t.marginTop)+parseInt(t.marginBottom)),r},getContent:function(e){var t=this.node;return e?t.innerHTML:t[b]},getAttribute:function(e){if(i(e,y))return this.node.getAttribute(e)},getAttributes:function(){for(var e,t=this,n={},r=H(arguments),i=0;e=r[i];i++)n[e]=t.node.getAttribute(e);return n},getStyle:function(e){if(i(e,y))return a.process("get",this.node,e)},getStyles:function(){for(var e,t=this,n={},r=H(arguments),i=0;e=r[i];i++)n[e]=a.process("get",t.node,e);return n},getSiblingBefore:function(e,t){return P(this.node,T,e,1,t)},getSiblingAfter:function(e,t){return P(this.node,N,e,1,t)},getSiblings:function(e){return this.getSiblingsBefore(e).concat(this.getSiblingsAfter(e))},getSiblingsBefore:function(e){return P(this.node,T,e)},getSiblingsAfter:function(e){return P(this.node,N,e)},getChildren:function(e){var t,n,r,i,o=this.node;if(e)E.test(e)?(t=o.uuid,o.setAttribute("nucleus-uuid",t),e='[nucleus-uuid="'+t+'"] '+e,n=l.call(o.parentNode.querySelectorAll(e)),o.removeAttribute("nucleus-uuid")):n=l.call(o.querySelectorAll(e));else for(n=[],r=0;i=o.childNodes[r];r++)1===i.nodeType&&n.push(i);return n},getParent:function(e,t){return I(this.node,e,1,t)},getParents:function(e){return I(this.node,e)},hasChild:function(e){var t=this.node;return t!==e&&t.contains(e.node||e)},hasClass:function(e){return!!e&&new RegExp("(?:^|\\s)"+e+"(?:\\s|$)").test(this.node.className)},isVisible:function(){var e=this,t=e.node;return!(t.offsetWidth<=0&&t.offsetHeight<=0||"hidden"===e.getStyle("visibility")||e.getStyle("opacity")<=0)},setContent:function(e,t){var n=this.node;return t?n.innerHTML=e:n[b]=e,this},setAttribute:function(e,t){return i(e,y)&&this.node.setAttribute(e,t),this},setAttributes:function(e){var t=this;return s(e,(function(e,n){t.setAttribute(e,n)})),t},removeAttribute:function(e){return i(e,y)&&this.node.removeAttribute(e),this},removeAttributes:function(){for(var e,t=this,n=H(arguments),r=0;e=n[r];r++)t.removeAttribute(e);return t},setStyle:function(e,t){return i(e,y)&&a.process("set",this.node,e,t),this},setStyles:function(e){var t=this;return s(e,(function(e,n){a.process("set",t.node,e,n)})),t},removeStyle:function(e){return i(e,y)&&this.setStyle(e,""),this},removeStyles:function(){for(var e,t=this,n=H(arguments),r=0;e=n[r];r++)t.setStyle(e,"");return t},addClass:function(e){var t=this;return e&&!t.hasClass(e)&&(t.node.className+=t.node.className?" "+e:e),t},removeClass:function(e){var t=this;return e&&t.hasClass(e)&&(t.node.className=t.node.className.replace(new RegExp("(?:^|\\s)"+e+"(?!\\S)"),"").trim()),t},toggleClass:function(e){var t=this;return e&&(t.hasClass(e)?t.removeClass(e):t.addClass(e)),t},prepend:function(e){var t=this,n=t.node;if(e)try{e=r(e,R)?e.node:j(e),n.firstChild?n.insertBefore(e,n.firstChild):t.append(e)}catch(t){n.insertAdjacentHTML("afterBegin",e)}return t},append:function(e){var t=this.node;if(e)try{t.appendChild(r(e,R)?e.node:j(e))}catch(n){t.insertAdjacentHTML("beforeEnd",e)}return this},prependTo:function(e){var t=this,n=t.node;return e&&((e=e.node||j(e)).firstChild?e.insertBefore(n,e.firstChild):t.appendTo(e)),t},appendTo:function(e){return e&&(e.node||j(e)).appendChild(this.node),this},insertBefore:function(e){var t=this.node;return e&&(e=e.node||j(e)).parentNode.insertBefore(t,e),this},insertAfter:function(e){var t=this,n=t.node;return e&&((e=e.node||j(e)).nextSibling?e.parentNode.insertBefore(n,e.nextSibling):t.appendTo(e.parentNode)),t},replace:function(e){var t=this.node;return e&&(e=e.node||j(e)).parentNode.replaceChild(t,e),this},replaceWith:function(e){var t=this.node;return e&&(e=r(e,R)?e.node:j(e),t.parentNode.replaceChild(e,t)),this},detach:function(){var e=this.node;return e.parentNode&&e.parentNode.removeChild(e),this},on:function(e){var t,n=this,r=4===arguments.length||"string"==typeof arguments[1]?arguments[1]:v,i=4===arguments.length||"function"==typeof arguments[2]?arguments[2]:arguments[1],s=w(arguments.length>3?arguments[3]:arguments[2]),a=i.uuid||(i.uuid=o()),d=0;for(e=e.split(A);t=e[d];d++){var f=t+"-"+a,c=function(e){(e=new u(e)).isPropagationStopped||(e.uuid=o(),r&&!O(e,r)||i.call(e.currentTarget,e,e.originalEvent.detail))};c.type=t,B[n.uuid][f]=c,n.node.addEventListener(t,c,s)}return n},one:function(e){var t=this,n=5===arguments.length||"string"==typeof arguments[1]?arguments[1]:v,r=5===arguments.length||"function"==typeof arguments[2]?arguments[2]:arguments[1],i=w(arguments.length>3?arguments[3]:arguments[2]),s=!1!==(arguments.length>4?arguments[4]:arguments[3]),u=function(n){t.off(!0===s?n.type:e,u,i),r.call(this,n,n.originalEvent.detail)};return r.uuid=u.uuid=o(),n?t.on(e,n,u,i):t.on(e,u,i),t},off:function(e,t,n){var r,i,o,s=this,u=s.node,a=0;for(n=w(n),e=e.split(" ");r=e[a];a++)(o=(i=t.uuid&&r+"-"+t.uuid||v)&&B[s.uuid][i]||v)?(u.removeEventListener(r,o,n),delete B[s.uuid][i]):u.removeEventListener(r,t,n);return s},emit:function(e,t){return x.call(this,e,t),this}},R}))}(this,document); //# sourceMappingURL=element.js.map diff --git a/dist/dom/element/appear.js b/dist/dom/element/appear.js index 6fe795a..c51b846 100644 --- a/dist/dom/element/appear.js +++ b/dist/dom/element/appear.js @@ -1,3 +1,3 @@ -/**! Qoopido.nucleus 3.2.14 | http://nucleus.qoopido.com | (c) 2021 Dirk Lueth */ +/**! Qoopido.nucleus 3.2.15 | http://nucleus.qoopido.com | (c) 2021 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),u={},d=new n,h=[],l="resize orientationchange",g="appear",f="disappear";function m(){u.left=0,u.top=0,u.right=t.innerWidth||a.clientWidth,u.bottom=t.innerHeight||a.clientHeight}function p(){var t=d.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=u.left-o,i.top=u.top-r,i.right=u.right+o,i.bottom=u.bottom+r}function b(t,e){var i=t.getBoundingClientRect();return!(i.right<=e.left||i.bottom<=e.top||i.left>=e.right||i.top>=e.bottom)}function v(){var t=this.node,e=d.get(this);return b(t,u)?2:b(t,e.boundaries)?1:0}function w(t,e){var i=o.call(this,t);return"auto"===(e=r({},w.settings,e)).threshold&&delete e.threshold,d.set(i,{settings:e,boundaries:{},state:-1}),c.on(l,s(p.bind(i))),p.call(i),h.push(i),i}return c.on(l,s(m)),m(),i((function(){for(var t,e,i,n,o=0;t=h[o];o++)if(!(i=(e=d.get(t)).settings).visibility||t.isVisible()){if((n=v.call(t))!==e.state){switch(n){case 0:t.emit(f,{priority:1});break;case 1:t.emit(e.state<=0?g:f,{priority:2});break;case 2:t.emit(g,{priority:1})}e.state=n}i.recur||2!==n||(h.splice(o,1),o--)}}),1e3/30),w.settings={threshold:"auto",recur:!0,auto:1,visibility:!0},w.extends(o)}))}(this,document,setInterval); //# sourceMappingURL=appear.js.map diff --git a/dist/dom/element/resize.js b/dist/dom/element/resize.js index 6cb9ce7..54e7ee1 100644 --- a/dist/dom/element/resize.js +++ b/dist/dom/element/resize.js @@ -1,3 +1,3 @@ -/**! Qoopido.nucleus 3.2.14 | http://nucleus.qoopido.com | (c) 2021 Dirk Lueth */ +/**! Qoopido.nucleus 3.2.15 | http://nucleus.qoopido.com | (c) 2021 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("