basicplaceholder
Advanced tools
Comparing version 1.4.3 to 1.4.4
@@ -1,1 +0,1 @@ | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.basicPlaceholder=e()}}(function(){return function e(t,r,n){function a(u,i){if(!r[u]){if(!t[u]){var o="function"==typeof require&&require;if(!i&&o)return o(u,!0);if(l)return l(u,!0);var d=new Error("Cannot find module '"+u+"'");throw d.code="MODULE_NOT_FOUND",d}var c=r[u]={exports:{}};t[u][0].call(c.exports,function(e){var r=t[u][1][e];return a(r?r:e)},c,c.exports,e,t,r,n)}return r[u].exports}for(var l="function"==typeof require&&require,u=0;u<n.length;u++)a(n[u]);return a}({1:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=null,a=null,l=(r.init=function(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];n=t.errorText||"Invalid",a=t.warningText||"Invalid";for(var r=0;r<e.length;++r){var l=e[r];d(l),l.oninput=o}return!0},function(e){var t=e.getAttribute("data-basicPlaceholder-error");return null!==t&&"false"!==t?!0:!1}),u=function(e){var t=e.getAttribute("data-basicPlaceholder-warning");return null!==t&&"false"!==t?!0:!1},i=function(e){var t=e.getAttribute("data-basicPlaceholder-persistent");return null!==t&&"false"!==t?!0:!1},o=function(){var e=this,t=l(e),r=u(e);t===!0&&c(e),r===!0&&c(e),e.value.length>0?d(e):c(e)},d=function(e){var t=null,r=e.getAttribute("data-basicPlaceholder-text"),o=e.parentElement,d=l(e),c=u(e),s=i(e),v=null;return 0===e.value.length&&s===!1&&d===!1&&c===!1?!1:"true"===e.getAttribute("data-basicPlaceholder")?!1:(t=d===!0?n:c===!0?a:e.getAttribute("placeholder")||null,null!==r&&r.length>0&&(t=r),null===t?!1:(v=f(t),o.insertAdjacentHTML("beforeend",v),e.setAttribute("data-basicPlaceholder",!0),!0))},c=function(e){var t=e.parentElement,r=t.querySelector(".basicPlaceholder__placeholder"),n=i(e);return n===!0?!1:null===r?!1:(r.parentElement.removeChild(r),e.removeAttribute("data-basicPlaceholder-error"),e.removeAttribute("data-basicPlaceholder-warning"),e.removeAttribute("data-basicPlaceholder"),!0)},f=function(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0];return'<div class="basicPlaceholder__placeholder">'+e+"</a>"}},{}]},{},[1])(1)}); | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.basicPlaceholder=e()}}(function(){return function e(t,r,n){function l(i,o){if(!r[i]){if(!t[i]){var u="function"==typeof require&&require;if(!o&&u)return u(i,!0);if(a)return a(i,!0);var d=new Error("Cannot find module '"+i+"'");throw d.code="MODULE_NOT_FOUND",d}var c=r[i]={exports:{}};t[i][0].call(c.exports,function(e){var r=t[i][1][e];return l(r?r:e)},c,c.exports,e,t,r,n)}return r[i].exports}for(var a="function"==typeof require&&require,i=0;i<n.length;i++)l(n[i]);return l}({1:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=null,l=null,a=(r.init=function(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];n=t.errorText||"Invalid",l=t.warningText||"Invalid";for(var r=0;r<e.length;++r){var a=e[r];d(a),a.oninput=u}return!0},function(e){var t=e.getAttribute("data-basicPlaceholder-error");return null!==t&&"false"!==t}),i=function(e){var t=e.getAttribute("data-basicPlaceholder-warning");return null!==t&&"false"!==t},o=function(e){var t=e.getAttribute("data-basicPlaceholder-persistent");return null!==t&&"false"!==t},u=function(){var e=this,t=a(e),r=i(e);t===!0&&c(e),r===!0&&c(e),e.value.length>0?d(e):c(e)},d=function(e){var t=null,r=e.getAttribute("data-basicPlaceholder-text"),u=e.parentElement,d=a(e),c=i(e),s=o(e),v=null;return 0===e.value.length&&s===!1&&d===!1&&c===!1?!1:"true"===e.getAttribute("data-basicPlaceholder")?!1:(t=d===!0?n:c===!0?l:e.getAttribute("placeholder")||null,null!==r&&r.length>0&&(t=r),null===t?!1:(v=f(t),u.insertAdjacentHTML("beforeend",v),e.setAttribute("data-basicPlaceholder",!0),!0))},c=function(e){var t=e.parentElement,r=t.querySelector(".basicPlaceholder__placeholder"),n=o(e);return n===!0?!1:null===r?!1:(r.parentElement.removeChild(r),e.removeAttribute("data-basicPlaceholder-error"),e.removeAttribute("data-basicPlaceholder-warning"),e.removeAttribute("data-basicPlaceholder"),!0)},f=function(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0];return'<div class="basicPlaceholder__placeholder">'+e+"</a>"}},{}]},{},[1])(1)}); |
{ | ||
"name": "basicplaceholder", | ||
"moduleName": "basicPlaceholder", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"authors": [ | ||
@@ -26,6 +26,11 @@ "Tobias Reich <tobias@electerious.com>" | ||
}, | ||
"files": [ | ||
"dist", | ||
"src", | ||
"LICENSE.md" | ||
], | ||
"devDependencies": { | ||
"@electerious/basictasks": "^1.1.4", | ||
"@electerious/basictasks": "^1.3.0", | ||
"gulp": "^3.9.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
14683
9
82