@digdir/ds-core-js
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -1,1 +0,1 @@ | ||
!function(){"use strict";var n;n="dds-checkbox",document.querySelectorAll(".".concat(n,"--disabled > input.").concat(n,"__input")).forEach((function(n){return n.addEventListener("click",(function(n){n.preventDefault()}))})),function(){var n="dds-radio";document.querySelectorAll(".".concat(n,"--disabled > input.").concat(n,"__input")).forEach((function(n){return n.addEventListener("click",(function(n){n.preventDefault()}))}))}()}(); | ||
!function(){"use strict";var n,t=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";document.querySelectorAll(n).forEach((function(n){var t=n.cloneNode(!0);t.addEventListener("click",(function(n){n.preventDefault()})),n.replaceWith(t)}))};t(".".concat(n="dds-checkbox","--disabled > input.").concat(n,"__input")),function(){var n="dds-radio";t(".".concat(n,"--disabled > input.").concat(n,"__input"))}(),t(".".concat("dds-button","--disabled"))}(); |
@@ -1,1 +0,1 @@ | ||
document.querySelectorAll(".dds-checkbox--disabled > input.dds-checkbox__input").forEach((e=>e.addEventListener("click",(e=>{e.preventDefault()})))),document.querySelectorAll(".dds-radio--disabled > input.dds-radio__input").forEach((e=>e.addEventListener("click",(e=>{e.preventDefault()})))); | ||
const d=(d="")=>{document.querySelectorAll(d).forEach((d=>{const e=d.cloneNode(!0);e.addEventListener("click",(d=>{d.preventDefault()})),d.replaceWith(e)}))};d(".dds-checkbox--disabled > input.dds-checkbox__input"),d(".dds-radio--disabled > input.dds-radio__input"),d(".dds-button--disabled"); |
{ | ||
"name": "@digdir/ds-core-js", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"private": false, | ||
@@ -35,3 +35,3 @@ "description": "JavaScript for Digdir core components", | ||
}, | ||
"gitHead": "44d508e00b45cc91366dae4c6fa6a033562a3017" | ||
"gitHead": "339ae970d076273869c24a985d1bed703d1fa9a2" | ||
} |
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
3689