essy-util-ui
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -1,1 +0,1 @@ | ||
module.exports=function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";function o(t,e,n){const o=document.createElement("div");o.style.fontFamily=e,o.style.fontSize=n,o.style.left="-10000px",o.style.top="-10000px",o.style.position="absolute",o.textContent=t,document.body.appendChild(o);const r=o.offsetWidth;return o.remove(),r}function r(t,e,n){let o=document.getElementById(t);return o||(o=document.createElement("div"),o.id=t,o.style.left="-10000px",o.style.position="absolute",o.style.top="-10000px",e&&(o.className=e),document.body.appendChild(o)),o.textContent=n,o.offsetWidth}function u(t,e,n){let o=0;return n.forEach(n=>{const u=r(t,e,n);u>o&&(o=u)}),o}function i(t,e,n){let o=document.getElementById(t);return o||(o=document.createElement("div"),o.id=t,o.style.left="-10000px",o.style.position="absolute",o.style.top="-10000px",e&&(o.className=e),document.body.appendChild(o)),o.innerHTML=n,o.offsetWidth}function l(t,e,n,o){let r=0;return n.forEach(n=>{const u=i(t,e,o(n));u>r&&(r=u)}),r}function d(t="_app_state"){const e=window.App,n=document.getElementById(t);return delete window.App,n.parentElement.removeChild(n),e}function c(...t){return t.filter(t=>!!t).join(" ")}n.r(e),n.d(e,"textWidth",(function(){return o})),n.d(e,"elWidthText",(function(){return r})),n.d(e,"elWidthTextMax",(function(){return u})),n.d(e,"elWidthHtml",(function(){return i})),n.d(e,"elWidthHtmlMax",(function(){return l})),n.d(e,"getAppState",(function(){return d})),n.d(e,"classNames",(function(){return c}))}]); | ||
module.exports=function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";function o(t,e,n){const o=document.createElement("div");o.style.fontFamily=e,o.style.fontSize=n,o.style.left="-10000px",o.style.top="-10000px",o.style.position="absolute",o.textContent=t.replace(/\s+/g,"-"),document.body.appendChild(o);const r=o.offsetWidth;return o.remove(),r}function r(t,e,n){let o=document.getElementById(t);return o||(o=document.createElement("div"),o.id=t,o.style.left="-10000px",o.style.position="absolute",o.style.top="-10000px",e&&(o.className=e),document.body.appendChild(o)),o.textContent=n,o.offsetWidth}function u(t,e,n){let o=0;return n.forEach(n=>{const u=r(t,e,n);u>o&&(o=u)}),o}function i(t,e,n){let o=document.getElementById(t);return o||(o=document.createElement("div"),o.id=t,o.style.left="-10000px",o.style.position="absolute",o.style.top="-10000px",e&&(o.className=e),document.body.appendChild(o)),o.innerHTML=n,o.offsetWidth}function l(t,e,n,o){let r=0;return n.forEach(n=>{const u=i(t,e,o(n));u>r&&(r=u)}),r}function d(t="_app_state"){const e=window.App,n=document.getElementById(t);return delete window.App,n.parentElement.removeChild(n),e}function c(...t){return t.filter(t=>!!t).join(" ")}n.r(e),n.d(e,"textWidth",(function(){return o})),n.d(e,"elWidthText",(function(){return r})),n.d(e,"elWidthTextMax",(function(){return u})),n.d(e,"elWidthHtml",(function(){return i})),n.d(e,"elWidthHtmlMax",(function(){return l})),n.d(e,"getAppState",(function(){return d})),n.d(e,"classNames",(function(){return c}))}]); |
{ | ||
"name": "essy-util-ui", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "UI Javascript functions.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3548