tema-design
Advanced tools
Comparing version 1.0.15 to 1.0.16
@@ -27,1 +27,6 @@ function onFocusAdded(node) { | ||
window.addEventListener('DOMContentLoaded', e => syncFields(document), false); | ||
module.exports = { | ||
syncFields, | ||
onFocusLose | ||
}; |
{ | ||
"name": "tema-design", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "Design system source used into thinkseg group systems", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -96,3 +96,3 @@ /******/ (function(modules) { // webpackBootstrap | ||
eval("function onFocusAdded(node) {\n if(['input', 'textarea'].indexOf(node.nodeName.toLowerCase()) === -1) {\n return;\n }\n node.parentNode.className += ' active';\n}\n\nfunction onFocusLose(node) {\n if(!node.parentNode) { return; }\n let currentClass = node.parentNode.className;\n node.parentNode.className = currentClass.replace(/\\sactive/gi, '').replace(/\\sfilled/gi, '');\n if(node.value) {\n node.parentNode.className += ' filled';\n }\n}\n\nfunction syncFields(root) {\n if(!root.querySelectorAll) { return; }\n root.querySelectorAll('input').forEach(elm => onFocusLose(elm));\n root.querySelectorAll('textarea').forEach(elm => onFocusLose(elm));\n}\n\nwindow.addEventListener('focus', e => onFocusAdded(document.activeElement), true);\nwindow.addEventListener('blur', e => onFocusLose(e.target), true);\nwindow.addEventListener('DOMNodeInserted', e => syncFields(e.target), false);\nwindow.addEventListener('DOMContentLoaded', e => syncFields(document), false);\n\n\n//# sourceURL=webpack:///../js/form.js?"); | ||
eval("function onFocusAdded(node) {\n if(['input', 'textarea'].indexOf(node.nodeName.toLowerCase()) === -1) {\n return;\n }\n node.parentNode.className += ' active';\n}\n\nfunction onFocusLose(node) {\n if(!node.parentNode) { return; }\n let currentClass = node.parentNode.className;\n node.parentNode.className = currentClass.replace(/\\sactive/gi, '').replace(/\\sfilled/gi, '');\n if(node.value) {\n node.parentNode.className += ' filled';\n }\n}\n\nfunction syncFields(root) {\n if(!root.querySelectorAll) { return; }\n root.querySelectorAll('input').forEach(elm => onFocusLose(elm));\n root.querySelectorAll('textarea').forEach(elm => onFocusLose(elm));\n}\n\nwindow.addEventListener('focus', e => onFocusAdded(document.activeElement), true);\nwindow.addEventListener('blur', e => onFocusLose(e.target), true);\nwindow.addEventListener('DOMNodeInserted', e => syncFields(e.target), false);\nwindow.addEventListener('DOMContentLoaded', e => syncFields(document), false);\n\nmodule.exports = {\n syncFields,\n onFocusLose\n};\n\n\n//# sourceURL=webpack:///../js/form.js?"); | ||
@@ -99,0 +99,0 @@ /***/ }), |
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
684825
11171