From 1b9b53bd7a92084087fd4f559e9dd7c22f9f96c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Alcaraz=20Mart=C3=ADnez?= Date: Sun, 8 Dec 2024 17:41:34 +0100 Subject: [PATCH] chore: prepare v5.1.2 --- README.md | 14 +++++++------- css/bootstrap5-toggle.css | 2 +- css/bootstrap5-toggle.min.css | 2 +- js/bootstrap5-toggle.ecmas.js | 3 ++- js/bootstrap5-toggle.ecmas.min.js | 4 ++-- js/bootstrap5-toggle.ecmas.min.js.map | 2 +- js/bootstrap5-toggle.jquery.js | 3 ++- js/bootstrap5-toggle.jquery.min.js | 4 ++-- js/bootstrap5-toggle.jquery.min.js.map | 2 +- 9 files changed, 19 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index ea0a703..3c7e711 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![NPM Badge](https://img.shields.io/npm/dm/bootstrap5-toggle?logo=npm)](https://www.npmjs.com/package/bootstrap5-toggle) [![Build](https://img.shields.io/github/actions/workflow/status/palcarazm/bootstrap5-toggle/build.yml?branch=v5&logo=npm)](https://github.com/palcarazm/bootstrap5-toggle/actions?query=workflow%3A%22Build+Check%22) [![Test](https://img.shields.io/github/actions/workflow/status/palcarazm/bootstrap5-toggle/cypress.yml?branch=v5&label=tests&logo=cypress)](https://github.com/palcarazm/bootstrap5-toggle/actions?query=workflow%3A%22Cypress+Tests%22) -[![Security](https://img.shields.io/snyk/vulnerabilities/npm/bootstrap5-toggle@5.1.1?logo=snyk)](https://snyk.io/advisor/npm-package/bootstrap5-toggle) +[![Security](https://img.shields.io/snyk/vulnerabilities/npm/bootstrap5-toggle@5.1.2?logo=snyk)](https://snyk.io/advisor/npm-package/bootstrap5-toggle) [![EOL](https://img.shields.io/endpoint?url=https%3A%2F%2Fpalcarazm.github.io%2Fbootstrap5-toggle%2Fapi%2Feol%2Fv5)](https://github.com/palcarazm/bootstrap5-toggle/security/policy) [![Funding](https://img.shields.io/badge/sponsor-30363D?style=flat&logo=GitHub-Sponsors&logoColor=#white)](https://github.com/sponsors/palcarazm) [![Rate this package](https://badges.openbase.com/js/rating/bootstrap5-toggle.svg?token=rNvznTVToo+EmX5g+KTvfYqI9+YTWJeUWTxPj7tLA6o=)](https://openbase.com/js/bootstrap5-toggle?utm_source=embedded&utm_medium=badge&utm_campaign=rating-badge&utm_term=js/bootstrap5-toggle) @@ -79,18 +79,18 @@ See EOL for each version in [Security Policy Page](https://github.com/palcarazm/ ```html - + ``` ### jQuery Interface ```html - + ``` ## Download @@ -102,13 +102,13 @@ See EOL for each version in [Security Policy Page](https://github.com/palcarazm/ [![NPM Badge](https://img.shields.io/npm/dm/bootstrap5-toggle?logo=npm)](https://www.npmjs.com/package/bootstrap5-toggle) ```ksh -npm install bootstrap5-toggle@5.1.1 +npm install bootstrap5-toggle@5.1.2 ``` ## Yarn ```ksh -yarn add bootstrap5-toggle@5.1.1 +yarn add bootstrap5-toggle@5.1.2 ``` # Usage diff --git a/css/bootstrap5-toggle.css b/css/bootstrap5-toggle.css index db1c944..338e31c 100644 --- a/css/bootstrap5-toggle.css +++ b/css/bootstrap5-toggle.css @@ -1,5 +1,5 @@ /* Copyright Notice - * bootstrap5-toggle v5.1.1 + * bootstrap5-toggle v5.1.2 * https://palcarazm.github.io/bootstrap5-toggle/ * @author 2011-2014 Min Hur (https://github.com/minhur) * @author 2018-2019 Brent Ely (https://github.com/gitbrent) diff --git a/css/bootstrap5-toggle.min.css b/css/bootstrap5-toggle.min.css index 638d14b..752f010 100644 --- a/css/bootstrap5-toggle.min.css +++ b/css/bootstrap5-toggle.min.css @@ -1,5 +1,5 @@ /* Copyright Notice - * bootstrap5-toggle v5.1.1 + * bootstrap5-toggle v5.1.2 * https://palcarazm.github.io/bootstrap5-toggle/ * @author 2011-2014 Min Hur (https://github.com/minhur) * @author 2018-2019 Brent Ely (https://github.com/gitbrent) diff --git a/js/bootstrap5-toggle.ecmas.js b/js/bootstrap5-toggle.ecmas.js index 729a54b..77ce620 100644 --- a/js/bootstrap5-toggle.ecmas.js +++ b/js/bootstrap5-toggle.ecmas.js @@ -1,5 +1,5 @@ /* Copyright Notice - * bootstrap5-toggle v5.1.1 + * bootstrap5-toggle v5.1.2 * https://palcarazm.github.io/bootstrap5-toggle/ * @author 2011-2014 Min Hur (https://github.com/minhur) * @author 2018-2019 Brent Ely (https://github.com/gitbrent) @@ -10,6 +10,7 @@ * @see https://github.com/palcarazm/bootstrap5-toggle/blob/master/LICENSE */ + "use strict"; function sanitize(text) { if (!text) return text; // handle null or undefined diff --git a/js/bootstrap5-toggle.ecmas.min.js b/js/bootstrap5-toggle.ecmas.min.js index 1906b86..706de5b 100644 --- a/js/bootstrap5-toggle.ecmas.min.js +++ b/js/bootstrap5-toggle.ecmas.min.js @@ -1,5 +1,5 @@ /* Copyright Notice - * bootstrap5-toggle v5.1.1 + * bootstrap5-toggle v5.1.2 * https://palcarazm.github.io/bootstrap5-toggle/ * @author 2011-2014 Min Hur (https://github.com/minhur) * @author 2018-2019 Brent Ely (https://github.com/gitbrent) @@ -10,5 +10,5 @@ * @see https://github.com/palcarazm/bootstrap5-toggle/blob/master/LICENSE */ -"use strict";function sanitize(e){var t;return e&&(t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},e.replace(/[&<>"'/]/g,function(e){return t[e]}))}!function(){class s{constructor(e,t){const i="BOOTSTRAP TOGGLE DEPRECATION CHECK -- a0Jhux0QySypjjs4tLtEo8xT2kx0AbYaq9K6mgNjWSs0HF0L8T8J0M0o3Kr7zkm7 --",s="attribute",n="option",l=function(e,t,i){console.warn(`Bootstrap Toggle deprecation warning: Using ${t} ${e} is deprected. Use ${i} instead.`)},o="On",a="primary",h=null,d=null,r="Off",m="secondary",g=null,b=null,c="",u="",f=null,p=null,v=0,A=!1,y=null;t=t||{},this.element=e,this.options={onlabel:this.element.getAttribute("data-onlabel")||t.onlabel||i||o,onstyle:sanitize(this.element.getAttribute("data-onstyle"))||t.onstyle||a,onvalue:sanitize(this.element.getAttribute("value"))||sanitize(this.element.getAttribute("data-onvalue"))||t.onvalue||h,ontitle:sanitize(this.element.getAttribute("data-ontitle"))||t.ontitle||sanitize(this.element.getAttribute("title"))||d,offlabel:this.element.getAttribute("data-offlabel")||t.offlabel||i||r,offstyle:sanitize(this.element.getAttribute("data-offstyle"))||t.offstyle||m,offvalue:sanitize(this.element.getAttribute("data-offvalue"))||t.offvalue||g,offtitle:sanitize(this.element.getAttribute("data-offtitle"))||t.offtitle||sanitize(this.element.getAttribute("title"))||b,size:sanitize(this.element.getAttribute("data-size"))||t.size||c,style:sanitize(this.element.getAttribute("data-style"))||t.style||u,width:sanitize(this.element.getAttribute("data-width"))||t.width||f,height:sanitize(this.element.getAttribute("data-height"))||t.height||p,tabindex:sanitize(this.element.getAttribute("tabindex"))||t.tabindex||v,tristate:this.element.hasAttribute("tristate")||t.tristate||A,name:sanitize(this.element.getAttribute("name"))||t.name||y},this.options.onlabel===i&&(sanitize(this.element.getAttribute("data-on"))?(l(s,"data-on","data-onlabel"),this.options.onlabel=this.element.getAttribute("data-on")):t.on?(l(n,"on","onlabel"),this.options.onlabel=t.on):this.options.onlabel=o),this.options.offlabel===i&&(sanitize(this.element.getAttribute("data-off"))?(l(s,"data-off","data-offlabel"),this.options.offlabel=this.element.getAttribute("data-off")):t.off?(l(n,"off","offlabel"),this.options.offlabel=t.off):this.options.offlabel=r),this.render()}render(){function e(e){var t=window.getComputedStyle(e),e=e.offsetHeight,i=parseFloat(t.borderTopWidth);return e-parseFloat(t.borderBottomWidth)-i-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)}let t;switch(this.options.size){case"large":case"lg":t="btn-lg";break;case"small":case"sm":t="btn-sm";break;case"mini":case"xs":t="btn-xs";break;default:t=""}var i=document.createElement("span"),s=(i.setAttribute("class","btn btn-"+this.options.onstyle+" "+t),i.innerHTML=this.options.onlabel,this.options.ontitle&&i.setAttribute("title",this.options.ontitle),document.createElement("span")),n=(s.setAttribute("class","btn btn-"+this.options.offstyle+" "+t),s.innerHTML=this.options.offlabel,this.options.offtitle&&s.setAttribute("title",this.options.offtitle),document.createElement("span")),l=(n.setAttribute("class","toggle-handle btn "+t),document.createElement("div"));l.setAttribute("class","toggle-group"),l.appendChild(i),l.appendChild(s),l.appendChild(n);let o=document.createElement("div"),a=(o.setAttribute("class","toggle btn"),o.classList.add(this.element.checked?"btn-"+this.options.onstyle:"btn-"+this.options.offstyle),o.setAttribute("tabindex",this.options.tabindex),this.element.checked||o.classList.add("off"),this.options.size&&o.classList.add(t),this.options.style&&this.options.style.split(" ").forEach(e=>{o.classList.add(e)}),(this.element.disabled||this.element.readOnly)&&(o.classList.add("disabled"),o.setAttribute("disabled","disabled")),this.options.onvalue&&this.element.setAttribute("value",this.options.onvalue),null);this.options.offvalue&&((a=this.element.cloneNode()).setAttribute("value",this.options.offvalue),a.setAttribute("data-toggle","invert-toggle"),a.removeAttribute("id"),a.checked=!this.element.checked),this.element.parentElement.insertBefore(o,this.element),o.appendChild(this.element),a&&o.appendChild(a),o.appendChild(l),this.options.width?o.style.width=this.options.width+"px":(o.style["min-width"]="100px",o.style["min-width"]=Math.max(i.getBoundingClientRect().width,s.getBoundingClientRect().width)+n.getBoundingClientRect().width/2+"px"),this.options.height?o.style.height=this.options.height+"px":(o.style["min-height"]="36px",o.style["min-height"]=Math.max(i.getBoundingClientRect().height,s.getBoundingClientRect().height)+"px"),i.classList.add("toggle-on"),s.classList.add("toggle-off"),this.options.height&&(i.style.lineHeight=e(i)+"px",s.style.lineHeight=e(s)+"px"),o.addEventListener("touchstart",e=>{this.#toggleActionPerformed(e)},{passive:!0}),o.addEventListener("click",e=>{this.#toggleActionPerformed(e)}),o.addEventListener("keypress",e=>{" "==e.key&&this.#toggleActionPerformed(e)}),this.element.id&&document.querySelectorAll('label[for="'+this.element.id+'"]').forEach(e=>{e.addEventListener("touchstart",e=>{this.toggle(),o.focus()}),e.addEventListener("click",e=>{this.toggle(),o.focus()})}),this.ecmasToggle=o,this.invElement=a,this.element.bsToggle=this}#toggleActionPerformed(e){this.options.tristate?this.ecmasToggle.classList.contains("indeterminate")?(this.determinate(!0),this.toggle()):this.indeterminate():this.toggle()}toggle(e=!1){this.element.checked?this.off(e):this.on(e)}on(e=!1){if(this.element.disabled||this.element.readOnly)return!1;this.ecmasToggle.classList.remove("btn-"+this.options.offstyle),this.ecmasToggle.classList.add("btn-"+this.options.onstyle),this.ecmasToggle.classList.remove("off"),this.element.checked=!0,this.invElement&&(this.invElement.checked=!1),e||this.trigger()}off(e=!1){if(this.element.disabled||this.element.readOnly)return!1;this.ecmasToggle.classList.remove("btn-"+this.options.onstyle),this.ecmasToggle.classList.add("btn-"+this.options.offstyle),this.ecmasToggle.classList.add("off"),this.element.checked=!1,this.invElement&&(this.invElement.checked=!0),e||this.trigger()}indeterminate(e=!1){if(!this.options.tristate||this.element.disabled||this.element.readOnly)return!1;this.ecmasToggle.classList.add("indeterminate"),this.element.indeterminate=!0,this.element.removeAttribute("name"),this.invElement&&(this.invElement.indeterminate=!0),this.invElement&&this.invElement.removeAttribute("name"),e||this.trigger()}determinate(e=!1){if(!this.options.tristate||this.element.disabled||this.element.readOnly)return!1;this.ecmasToggle.classList.remove("indeterminate"),this.element.indeterminate=!1,this.options.name&&this.element.setAttribute("name",this.options.name),this.invElement&&(this.invElement.indeterminate=!1),this.invElement&&this.options.name&&this.invElement.setAttribute("name",this.options.name),e||this.trigger()}enable(){this.ecmasToggle.classList.remove("disabled"),this.ecmasToggle.removeAttribute("disabled"),this.element.removeAttribute("disabled"),this.element.removeAttribute("readonly"),this.invElement&&(this.invElement.removeAttribute("disabled"),this.invElement.removeAttribute("readonly"))}disable(){this.ecmasToggle.classList.add("disabled"),this.ecmasToggle.setAttribute("disabled",""),this.element.setAttribute("disabled",""),this.element.removeAttribute("readonly"),this.invElement&&(this.invElement.setAttribute("disabled",""),this.invElement.removeAttribute("readonly"))}readonly(){this.ecmasToggle.classList.add("disabled"),this.ecmasToggle.setAttribute("disabled",""),this.element.removeAttribute("disabled"),this.element.setAttribute("readonly",""),this.invElement&&(this.invElement.removeAttribute("disabled"),this.invElement.setAttribute("readonly",""))}update(e){this.element.disabled?this.disable():this.element.readOnly?this.readonly():this.enable(),this.element.checked?this.on(e):this.off(e)}trigger(e){e||this.element.dispatchEvent(new Event("change",{bubbles:!0}))}destroy(){this.ecmasToggle.parentNode.insertBefore(this.element,this.ecmasToggle),this.ecmasToggle.parentNode.removeChild(this.ecmasToggle),delete this.element.bsToggle,delete this.ecmasToggle}rerender(){this.destroy(),this.element.bootstrapToggle()}}Element.prototype.bootstrapToggle=function(e,t){var i=this.bsToggle||new s(this,e);e&&"string"==typeof e&&("toggle"==e.toLowerCase()?i.toggle(t):"on"==e.toLowerCase()?i.on(t):"off"==e.toLowerCase()?i.off(t):"indeterminate"==e.toLowerCase()?i.indeterminate(t):"determinate"==e.toLowerCase()?i.determinate(t):"enable"==e.toLowerCase()?i.enable():"disable"==e.toLowerCase()?i.disable():"readonly"==e.toLowerCase()?i.readonly():"destroy"==e.toLowerCase()?i.destroy():"rerender"==e.toLowerCase()&&i.rerender())},"undefined"!=typeof window&&(window.onload=function(){document.querySelectorAll('input[type=checkbox][data-toggle="toggle"]').forEach(function(e){e.bootstrapToggle()})}),"undefined"!=typeof module&&module.exports&&(module.exports=s)}(); +"use strict";function sanitize(e){var t;return e&&(t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},e.replace(/[&<>"'/]/g,function(e){return t[e]}))}!function(){class s{constructor(e,t){const i="BOOTSTRAP TOGGLE DEPRECATION CHECK -- a0Jhux0QySypjjs4tLtEo8xT2kx0AbYaq9K6mgNjWSs0HF0L8T8J0M0o3Kr7zkm7 --",s="attribute",n="option",l=function(e,t,i){console.warn(`Bootstrap Toggle deprecation warning: Using ${t} ${e} is deprected. Use ${i} instead.`)},o="On",a="primary",h=null,d=null,r="Off",m="secondary",g=null,b=null,c="",u="",f=null,p=null,v=0,A=!1,y=null;t=t||{},this.element=e,this.options={onlabel:this.element.getAttribute("data-onlabel")||t.onlabel||i||o,onstyle:sanitize(this.element.getAttribute("data-onstyle"))||t.onstyle||a,onvalue:sanitize(this.element.getAttribute("value"))||sanitize(this.element.getAttribute("data-onvalue"))||t.onvalue||h,ontitle:sanitize(this.element.getAttribute("data-ontitle"))||t.ontitle||sanitize(this.element.getAttribute("title"))||d,offlabel:this.element.getAttribute("data-offlabel")||t.offlabel||i||r,offstyle:sanitize(this.element.getAttribute("data-offstyle"))||t.offstyle||m,offvalue:sanitize(this.element.getAttribute("data-offvalue"))||t.offvalue||g,offtitle:sanitize(this.element.getAttribute("data-offtitle"))||t.offtitle||sanitize(this.element.getAttribute("title"))||b,size:sanitize(this.element.getAttribute("data-size"))||t.size||c,style:sanitize(this.element.getAttribute("data-style"))||t.style||u,width:sanitize(this.element.getAttribute("data-width"))||t.width||f,height:sanitize(this.element.getAttribute("data-height"))||t.height||p,tabindex:sanitize(this.element.getAttribute("tabindex"))||t.tabindex||v,tristate:this.element.hasAttribute("tristate")||t.tristate||A,name:sanitize(this.element.getAttribute("name"))||t.name||y},this.options.onlabel===i&&(sanitize(this.element.getAttribute("data-on"))?(l(s,"data-on","data-onlabel"),this.options.onlabel=this.element.getAttribute("data-on")):t.on?(l(n,"on","onlabel"),this.options.onlabel=t.on):this.options.onlabel=o),this.options.offlabel===i&&(sanitize(this.element.getAttribute("data-off"))?(l(s,"data-off","data-offlabel"),this.options.offlabel=this.element.getAttribute("data-off")):t.off?(l(n,"off","offlabel"),this.options.offlabel=t.off):this.options.offlabel=r),this.render()}render(){function e(e){var t=window.getComputedStyle(e),e=e.offsetHeight,i=parseFloat(t.borderTopWidth);return e-parseFloat(t.borderBottomWidth)-i-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)}let t;switch(this.options.size){case"large":case"lg":t="btn-lg";break;case"small":case"sm":t="btn-sm";break;case"mini":case"xs":t="btn-xs";break;default:t=""}var i=document.createElement("span"),s=(i.setAttribute("class","btn btn-"+this.options.onstyle+" "+t),i.innerHTML=this.options.onlabel,this.options.ontitle&&i.setAttribute("title",this.options.ontitle),document.createElement("span")),n=(s.setAttribute("class","btn btn-"+this.options.offstyle+" "+t),s.innerHTML=this.options.offlabel,this.options.offtitle&&s.setAttribute("title",this.options.offtitle),document.createElement("span")),l=(n.setAttribute("class","toggle-handle btn "+t),document.createElement("div"));l.setAttribute("class","toggle-group"),l.appendChild(i),l.appendChild(s),l.appendChild(n);let o=document.createElement("div"),a=(o.setAttribute("class","toggle btn"),o.classList.add(this.element.checked?"btn-"+this.options.onstyle:"btn-"+this.options.offstyle),o.setAttribute("tabindex",this.options.tabindex),this.element.checked||o.classList.add("off"),this.options.size&&o.classList.add(t),this.options.style&&this.options.style.split(" ").forEach(e=>{o.classList.add(e)}),(this.element.disabled||this.element.readOnly)&&(o.classList.add("disabled"),o.setAttribute("disabled","disabled")),this.options.onvalue&&this.element.setAttribute("value",this.options.onvalue),null);this.options.offvalue&&((a=this.element.cloneNode()).setAttribute("value",this.options.offvalue),a.setAttribute("data-toggle","invert-toggle"),a.removeAttribute("id"),a.checked=!this.element.checked),this.element.parentElement.insertBefore(o,this.element),o.appendChild(this.element),a&&o.appendChild(a),o.appendChild(l),this.options.width?o.style.width=this.options.width+"px":(o.style["min-width"]="100px",o.style["min-width"]=Math.max(i.getBoundingClientRect().width,s.getBoundingClientRect().width)+n.getBoundingClientRect().width/2+"px"),this.options.height?o.style.height=this.options.height+"px":(o.style["min-height"]="36px",o.style["min-height"]=Math.max(i.getBoundingClientRect().height,s.getBoundingClientRect().height)+"px"),i.classList.add("toggle-on"),s.classList.add("toggle-off"),this.options.height&&(i.style.lineHeight=e(i)+"px",s.style.lineHeight=e(s)+"px"),o.addEventListener("pointerdown",e=>{this.#toggleActionPerformed(e)},{passive:!0}),o.addEventListener("keypress",e=>{" "==e.key&&this.#toggleActionPerformed(e)},{passive:!0}),this.element.id&&document.querySelectorAll('label[for="'+this.element.id+'"]').forEach(e=>{e.addEventListener("pointerdown",e=>{e.preventDefault(),this.toggle(),o.focus()},{passive:!0})}),this.ecmasToggle=o,this.invElement=a,this.element.bsToggle=this}#toggleActionPerformed(e){this.options.tristate?this.ecmasToggle.classList.contains("indeterminate")?(this.determinate(!0),this.toggle()):this.indeterminate():this.toggle()}toggle(e=!1){this.element.checked?this.off(e):this.on(e)}on(e=!1){if(this.element.disabled||this.element.readOnly)return!1;this.ecmasToggle.classList.remove("btn-"+this.options.offstyle),this.ecmasToggle.classList.add("btn-"+this.options.onstyle),this.ecmasToggle.classList.remove("off"),this.element.checked=!0,this.invElement&&(this.invElement.checked=!1),e||this.trigger()}off(e=!1){if(this.element.disabled||this.element.readOnly)return!1;this.ecmasToggle.classList.remove("btn-"+this.options.onstyle),this.ecmasToggle.classList.add("btn-"+this.options.offstyle),this.ecmasToggle.classList.add("off"),this.element.checked=!1,this.invElement&&(this.invElement.checked=!0),e||this.trigger()}indeterminate(e=!1){if(!this.options.tristate||this.element.disabled||this.element.readOnly)return!1;this.ecmasToggle.classList.add("indeterminate"),this.element.indeterminate=!0,this.element.removeAttribute("name"),this.invElement&&(this.invElement.indeterminate=!0),this.invElement&&this.invElement.removeAttribute("name"),e||this.trigger()}determinate(e=!1){if(!this.options.tristate||this.element.disabled||this.element.readOnly)return!1;this.ecmasToggle.classList.remove("indeterminate"),this.element.indeterminate=!1,this.options.name&&this.element.setAttribute("name",this.options.name),this.invElement&&(this.invElement.indeterminate=!1),this.invElement&&this.options.name&&this.invElement.setAttribute("name",this.options.name),e||this.trigger()}enable(){this.ecmasToggle.classList.remove("disabled"),this.ecmasToggle.removeAttribute("disabled"),this.element.removeAttribute("disabled"),this.element.removeAttribute("readonly"),this.invElement&&(this.invElement.removeAttribute("disabled"),this.invElement.removeAttribute("readonly"))}disable(){this.ecmasToggle.classList.add("disabled"),this.ecmasToggle.setAttribute("disabled",""),this.element.setAttribute("disabled",""),this.element.removeAttribute("readonly"),this.invElement&&(this.invElement.setAttribute("disabled",""),this.invElement.removeAttribute("readonly"))}readonly(){this.ecmasToggle.classList.add("disabled"),this.ecmasToggle.setAttribute("disabled",""),this.element.removeAttribute("disabled"),this.element.setAttribute("readonly",""),this.invElement&&(this.invElement.removeAttribute("disabled"),this.invElement.setAttribute("readonly",""))}update(e){this.element.disabled?this.disable():this.element.readOnly?this.readonly():this.enable(),this.element.checked?this.on(e):this.off(e)}trigger(e){e||this.element.dispatchEvent(new Event("change",{bubbles:!0}))}destroy(){this.ecmasToggle.parentNode.insertBefore(this.element,this.ecmasToggle),this.ecmasToggle.parentNode.removeChild(this.ecmasToggle),delete this.element.bsToggle,delete this.ecmasToggle}rerender(){this.destroy(),this.element.bootstrapToggle()}}Element.prototype.bootstrapToggle=function(e,t){var i=this.bsToggle||new s(this,e);e&&"string"==typeof e&&("toggle"==e.toLowerCase()?i.toggle(t):"on"==e.toLowerCase()?i.on(t):"off"==e.toLowerCase()?i.off(t):"indeterminate"==e.toLowerCase()?i.indeterminate(t):"determinate"==e.toLowerCase()?i.determinate(t):"enable"==e.toLowerCase()?i.enable():"disable"==e.toLowerCase()?i.disable():"readonly"==e.toLowerCase()?i.readonly():"destroy"==e.toLowerCase()?i.destroy():"rerender"==e.toLowerCase()&&i.rerender())},"undefined"!=typeof window&&(window.onload=function(){document.querySelectorAll('input[type=checkbox][data-toggle="toggle"]').forEach(function(e){e.bootstrapToggle()})}),"undefined"!=typeof module&&module.exports&&(module.exports=s)}(); //# sourceMappingURL=bootstrap5-toggle.ecmas.min.js.map \ No newline at end of file diff --git a/js/bootstrap5-toggle.ecmas.min.js.map b/js/bootstrap5-toggle.ecmas.min.js.map index bca10c9..2b87dea 100644 --- a/js/bootstrap5-toggle.ecmas.min.js.map +++ b/js/bootstrap5-toggle.ecmas.min.js.map @@ -1 +1 @@ -{"version":3,"file":"bootstrap5-toggle.ecmas.min.js","sources":["bootstrap5-toggle.ecmas.js"],"names":["sanitize","text","map","&","<",">","\"","'","/","replace","m","Toggle","constructor","element","options","DEPRECATION","type","oldlabel","newlabel","console","warn","DEFAULTS","this","onlabel","getAttribute","onstyle","onvalue","ontitle","offlabel","offstyle","offvalue","offtitle","size","style","width","height","tabindex","tristate","hasAttribute","name","on","off","render","calcH","el","styles","window","getComputedStyle","offsetHeight","borderTopWidth","parseFloat","borderBottomWidth","paddingTop","paddingBottom","let","ecmasToggleOn","document","createElement","ecmasToggleOff","setAttribute","innerHTML","ecmasToggleHandle","ecmasToggleGroup","appendChild","ecmasToggle","invElement","classList","add","checked","split","forEach","disabled","readOnly","cloneNode","removeAttribute","parentElement","insertBefore","Math","max","getBoundingClientRect","lineHeight","addEventListener","#toggleActionPerformed","e","passive","key","id","querySelectorAll","label","toggle","focus","bsToggle","contains","determinate","indeterminate","silent","remove","trigger","enable","disable","readonly","update","dispatchEvent","Event","bubbles","destroy","parentNode","removeChild","rerender","bootstrapToggle","Element","prototype","_bsToggle","toLowerCase","onload","ele","module","exports"],"mappings":"AAaA,aACA,SAASA,SAASC,GAChB,IACIC,EADJ,OAAKD,IACDC,EAAM,CACRC,IAAK,QACLC,IAAK,OACLC,IAAK,OACLC,IAAK,SACLC,IAAK,QACLC,IAAK,QACP,EACOP,EAAKQ,QAAQ,YAAa,SAAUC,GACzC,OAAOR,EAAIQ,EACb,CAAC,EACH,CAEA,CAAA,iBAIQC,EACJC,YAAYC,EAASC,GACnB,MAAMC,EAEF,4GAFEA,EAGO,YAHPA,EAII,SAJJA,EAKC,SAAUC,EAAMC,EAAUC,GAC7BC,QAAQC,oDACyCH,KAAYD,uBAA0BE,YACvF,CACF,EAEIG,EACK,KADLA,EAEK,UAFLA,EAGK,KAHLA,EAIK,KAJLA,EAKM,MALNA,EAMM,YANNA,EAOM,KAPNA,EAQM,KARNA,EASE,GATFA,EAUG,GAVHA,EAWG,KAXHA,EAYI,KAZJA,EAaM,EAbNA,EAcM,CAAA,EAdNA,EAeE,KAERP,EAAUA,GAAW,GAGrBQ,KAAKT,QAAUA,EAGfS,KAAKR,QAAU,CACbS,QACED,KAAKT,QAAQW,aAAa,cAAc,GACxCV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AW,EAGxD,OAAO1C,KAAKT,QAAQ8E,SACpB,OAAOrE,KAAK0C,WACd,CAEA4C,WACEtF,KAAKmF,QAAQ,EACbnF,KAAKT,QAAQgG,gBAAgB,CAC/B,CACF,CAMAC,QAAQC,UAAUF,gBAAkB,SAAU/F,EAASiF,GACrDzC,IAAI0D,EAAY1F,KAAKqE,UAAY,IAAIhF,EAAOW,KAAMR,CAAO,EAGrDA,GAA8B,UAAnB,OAAOA,IACS,UAAzBA,EAAQmG,YAAY,EAAeD,EAAUvB,OAAOM,CAAM,EAC5B,MAAzBjF,EAAQmG,YAAY,EAAWD,EAAUxE,GAAGuD,CAAM,EACzB,OAAzBjF,EAAQmG,YAAY,EAAYD,EAAUvE,IAAIsD,CAAM,EAC3B,iBAAzBjF,EAAQmG,YAAY,EAC3BD,EAAUlB,cAAcC,CAAM,EACE,eAAzBjF,EAAQmG,YAAY,EAC3BD,EAAUnB,YAAYE,CAAM,EACI,UAAzBjF,EAAQmG,YAAY,EAAeD,EAAUd,OAAO,EAC3B,WAAzBpF,EAAQmG,YAAY,EAAgBD,EAAUb,QAAQ,EAC7B,YAAzBrF,EAAQmG,YAAY,EAAiBD,EAAUZ,SAAS,EAC/B,WAAzBtF,EAAQmG,YAAY,EAAgBD,EAAUP,QAAQ,EAC7B,YAAzB3F,EAAQmG,YAAY,GAAiBD,EAAUJ,SAAS,EAErE,EAMsB,aAAlB,OAAO9D,SACTA,OAAOoE,OAAS,WACd1D,SACG+B,iBAAiB,4CAA4C,EAC7DjB,QAAQ,SAAU6C,GACjBA,EAAIN,gBAAgB,CACtB,CAAC,CACL,GAGoB,aAAlB,OAAOO,QAA0BA,OAAOC,UAC1CD,OAAOC,QAAU1G,EAEpB,EAAE"} \ No newline at end of file +{"version":3,"file":"bootstrap5-toggle.ecmas.min.js","sources":["bootstrap5-toggle.ecmas.js"],"names":["sanitize","text","map","&","<",">","\"","'","/","replace","m","Toggle","constructor","element","options","DEPRECATION","type","oldlabel","newlabel","console","warn","DEFAULTS","this","onlabel","getAttribute","onstyle","onvalue","ontitle","offlabel","offstyle","offvalue","offtitle","size","style","width","height","tabindex","tristate","hasAttribute","name","on","off","render","calcH","el","styles","window","getComputedStyle","offsetHeight","borderTopWidth","parseFloat","borderBottomWidth","paddingTop","paddingBottom","let","ecmasToggleOn","document","createElement","ecmasToggleOff","setAttribute","innerHTML","ecmasToggleHandle","ecmasToggleGroup","appendChild","ecmasToggle","invElement","classList","add","checked","split","forEach","disabled","readOnly","cloneNode","removeAttribute","parentElement","insertBefore","Math","max","getBoundingClientRect","lineHeight","addEventListener","#toggleActionPerformed","e","passive","key","id","querySelectorAll","label","preventDefault","toggle","focus","bsToggle","contains","determinate","indeterminate","silent","remove","trigger","enable","disable","readonly","update","dispatchEvent","Event","bubbles","destroy","parentNode","removeChild","rerender","bootstrapToggle","Element","prototype","_bsToggle","toLowerCase","onload","ele","module","exports"],"mappings":"AAaA,aACA,SAASA,SAASC,GAChB,IACIC,EADJ,OAAKD,IACDC,EAAM,CACRC,IAAK,QACLC,IAAK,OACLC,IAAK,OACLC,IAAK,SACLC,IAAK,QACLC,IAAK,QACP,EACOP,EAAKQ,QAAQ,YAAa,SAAUC,GACzC,OAAOR,EAAIQ,EACb,CAAC,EACH,CAEA,CAAA,iBAIQC,EACJC,YAAYC,EAASC,GACnB,MAAMC,EAEF,4GAFEA,EAGO,YAHPA,EAII,SAJJA,EAKC,SAAUC,EAAMC,EAAUC,GAC7BC,QAAQC,oDACyCH,KAAYD,uBAA0BE,YACvF,CACF,EAEIG,EACK,KADLA,EAEK,UAFLA,EAGK,KAHLA,EAIK,KAJLA,EAKM,MALNA,EAMM,YANNA,EAOM,KAPNA,EAQM,KARNA,EASE,GATFA,EAUG,GAVHA,EAWG,KAXHA,EAYI,KAZJA,EAaM,EAbNA,EAcM,CAAA,EAdNA,EAeE,KAERP,EAAUA,GAAW,GAGrBQ,KAAKT,QAAUA,EAGfS,KAAKR,QAAU,CACbS,QACED,KAAKT,QAAQW,aAA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AEA6C,WACEvF,KAAKoF,QAAQ,EACbpF,KAAKT,QAAQiG,gBAAgB,CAC/B,CACF,CAMAC,QAAQC,UAAUF,gBAAkB,SAAUhG,EAASkF,GACrD1C,IAAI2D,EAAY3F,KAAKsE,UAAY,IAAIjF,EAAOW,KAAMR,CAAO,EAGrDA,GAA8B,UAAnB,OAAOA,IACS,UAAzBA,EAAQoG,YAAY,EAAeD,EAAUvB,OAAOM,CAAM,EAC5B,MAAzBlF,EAAQoG,YAAY,EAAWD,EAAUzE,GAAGwD,CAAM,EACzB,OAAzBlF,EAAQoG,YAAY,EAAYD,EAAUxE,IAAIuD,CAAM,EAC3B,iBAAzBlF,EAAQoG,YAAY,EAC3BD,EAAUlB,cAAcC,CAAM,EACE,eAAzBlF,EAAQoG,YAAY,EAC3BD,EAAUnB,YAAYE,CAAM,EACI,UAAzBlF,EAAQoG,YAAY,EAAeD,EAAUd,OAAO,EAC3B,WAAzBrF,EAAQoG,YAAY,EAAgBD,EAAUb,QAAQ,EAC7B,YAAzBtF,EAAQoG,YAAY,EAAiBD,EAAUZ,SAAS,EAC/B,WAAzBvF,EAAQoG,YAAY,EAAgBD,EAAUP,QAAQ,EAC7B,YAAzB5F,EAAQoG,YAAY,GAAiBD,EAAUJ,SAAS,EAErE,EAMsB,aAAlB,OAAO/D,SACTA,OAAOqE,OAAS,WACd3D,SACG+B,iBAAiB,4CAA4C,EAC7DjB,QAAQ,SAAU8C,GACjBA,EAAIN,gBAAgB,CACtB,CAAC,CACL,GAGoB,aAAlB,OAAOO,QAA0BA,OAAOC,UAC1CD,OAAOC,QAAU3G,EAEpB,EAAE"} \ No newline at end of file diff --git a/js/bootstrap5-toggle.jquery.js b/js/bootstrap5-toggle.jquery.js index 13f3b78..fec81fd 100644 --- a/js/bootstrap5-toggle.jquery.js +++ b/js/bootstrap5-toggle.jquery.js @@ -1,5 +1,5 @@ /* Copyright Notice - * bootstrap5-toggle v5.1.1 + * bootstrap5-toggle v5.1.2 * https://palcarazm.github.io/bootstrap5-toggle/ * @author 2011-2014 Min Hur (https://github.com/minhur) * @author 2018-2019 Brent Ely (https://github.com/gitbrent) @@ -10,6 +10,7 @@ * @see https://github.com/palcarazm/bootstrap5-toggle/blob/master/LICENSE */ + "use strict"; function sanitize(text) { if (!text) return text; // handle null or undefined diff --git a/js/bootstrap5-toggle.jquery.min.js b/js/bootstrap5-toggle.jquery.min.js index 92f50a5..bd0552e 100644 --- a/js/bootstrap5-toggle.jquery.min.js +++ b/js/bootstrap5-toggle.jquery.min.js @@ -1,5 +1,5 @@ /* Copyright Notice - * bootstrap5-toggle v5.1.1 + * bootstrap5-toggle v5.1.2 * https://palcarazm.github.io/bootstrap5-toggle/ * @author 2011-2014 Min Hur (https://github.com/minhur) * @author 2018-2019 Brent Ely (https://github.com/gitbrent) @@ -10,5 +10,5 @@ * @see https://github.com/palcarazm/bootstrap5-toggle/blob/master/LICENSE */ -"use strict";function sanitize(t){var e;return t&&(e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},t.replace(/[&<>"'/]/g,function(t){return e[t]}))}!function(a){function n(t,e){this.$element=a(t),this.options=a.extend({},this.defaults(),e),this.options.onlabel===n.DEPRECATION.value&&(sanitize(this.$element.attr("data-on"))?(n.DEPRECATION.log(n.DEPRECATION.ATTRIBUTE,"data-on","data-onlabel"),this.options.onlabel=this.$element.attr("data-on")):e.on?(n.DEPRECATION.log(n.DEPRECATION.OPTION,"on","onlabel"),this.options.onlabel=e.on):this.options.onlabel=n.DEFAULTS.onlabel),this.options.offlabel===n.DEPRECATION.value&&(sanitize(this.$element.attr("data-off"))?(n.DEPRECATION.log(n.DEPRECATION.ATTRIBUTE,"data-off","data-offlabel"),this.options.offlabel=this.$element.attr("data-off")):e.off?(n.DEPRECATION.log(n.DEPRECATION.OPTION,"off","offlabel"),this.options.offlabel=e.off):this.options.offlabel=n.DEFAULTS.offlabel),this.render()}function h(t,e){e.options.tristate?e.$toggle.hasClass("indeterminate")?(e.determinate(!0),e.toggle()):e.indeterminate():e.toggle()}n.DEPRECATION={value:"BOOTSTRAP TOGGLE DEPRECATION CHECK -- a0Jhux0QySypjjs4tLtEo8xT2kx0AbYaq9K6mgNjWSs0HF0L8T8J0M0o3Kr7zkm7 --",ATTRIBUTE:"attribute",OPTION:"option",log:function(t,e,i){console.warn(`Bootstrap Toggle deprecation warning: Using ${e} ${t} is deprected. Use ${i} instead.`)}},n.DEFAULTS={onlabel:"On",offlabel:"Off",onstyle:"primary",offstyle:"secondary",onvalue:null,offvalue:null,ontitle:null,offtitle:null,size:"normal",style:"",width:null,height:null,tabindex:0,tristate:!1,name:null},n.prototype.defaults=function(){return{onlabel:this.$element.attr("data-onlabel")||n.DEPRECATION.value||n.DEFAULTS.onlabel,offlabel:this.$element.attr("data-offlabel")||n.DEPRECATION.value||n.DEFAULTS.offlabel,onstyle:sanitize(this.$element.attr("data-onstyle"))||n.DEFAULTS.onstyle,offstyle:sanitize(this.$element.attr("data-offstyle"))||n.DEFAULTS.offstyle,onvalue:sanitize(this.$element.attr("value"))||sanitize(this.$element.attr("data-onvalue"))||n.DEFAULTS.onvalue,offvalue:sanitize(this.$element.attr("data-offvalue"))||n.DEFAULTS.offvalue,ontitle:sanitize(this.$element.attr("data-ontitle"))||sanitize(this.$element.attr("title"))||n.DEFAULTS.ontitle,offtitle:sanitize(this.$element.attr("data-offtitle"))||sanitize(this.$element.attr("title"))||n.DEFAULTS.offtitle,size:sanitize(this.$element.attr("data-size"))||n.DEFAULTS.size,style:sanitize(this.$element.attr("data-style"))||n.DEFAULTS.style,width:sanitize(this.$element.attr("data-width"))||n.DEFAULTS.width,height:sanitize(this.$element.attr("data-height"))||n.DEFAULTS.height,tabindex:sanitize(this.$element.attr("tabindex"))||n.DEFAULTS.tabindex,tristate:this.$element.is("[tristate]")||n.DEFAULTS.tristate,name:sanitize(this.$element.attr("name"))||n.DEFAULTS.name}},n.prototype.render=function(){let t;switch(this.options.size){case"large":case"lg":t="btn-lg";break;case"small":case"sm":t="btn-sm";break;case"mini":case"xs":t="btn-xs";break;default:t=""}var e=a('').html(this.options.onlabel).addClass("btn-"+this.options.onstyle+" "+t),i=(this.options.ontitle&&e.attr("title",this.options.ontitle),a('').html(this.options.offlabel).addClass("btn-"+this.options.offstyle+" "+t)),o=(this.options.offtitle&&i.attr("title",this.options.offtitle),a('').addClass(t)),s=a('
').append(e,i,o),n=a('
').addClass(this.$element.prop("checked")?"btn-"+this.options.onstyle:"btn-"+this.options.offstyle+" off").addClass(t).addClass(this.options.style).attr("tabindex",this.options.tabindex);(this.$element.prop("disabled")||this.$element.prop("readonly"))&&(n.addClass("disabled"),n.attr("disabled","disabled")),this.options.onvalue&&this.$element.val(this.options.onvalue);let l=null;this.options.offvalue&&((l=this.$element.clone()).val(this.options.offvalue),l.attr("data-toggle","invert-toggle"),l.removeAttr("id"),l.prop("checked",!this.$element.prop("checked"))),this.$element.wrap(n),a.extend(this,{$toggle:this.$element.parent(),$toggleOn:e,$toggleOff:i,$toggleGroup:s,$invElement:l}),this.$toggle.append(l,s),this.options.width?this.$toggle.css("width",this.options.width):(this.$toggle.css("min-width","100px"),this.$toggle.css("min-width",Math.max(e.outerWidth(),i.outerWidth())+o.outerWidth()/2+"px")),this.options.height?this.$toggle.css("height",this.options.height):(this.$toggle.css("min-height","36px"),this.$toggle.css("min-height",Math.max(e.outerHeight(),i.outerHeight())+"px")),e.addClass("toggle-on"),i.addClass("toggle-off"),this.options.height&&(e.css("line-height",e.height()+"px"),i.css("line-height",i.height()+"px")),this.$toggle.on("touchstart",t=>{h(0,this)}),this.$toggle.on("click",t=>{h(0,this)}),this.$toggle.on("keypress",t=>{" "==t.key&&h(0,this)}),this.$element.prop("id")&&a('label[for="'+this.$element.prop("id")+'"]').on("touchstart click",t=>{this.toggle(),this.$toggle.focus()})},n.prototype.toggle=function(t=!1){this.$element.prop("checked")?this.off(t):this.on(t)},n.prototype.on=function(t=!1){if(this.$element.prop("disabled")||this.$element.prop("readonly"))return!1;this.$toggle.removeClass("btn-"+this.options.offstyle+" off").addClass("btn-"+this.options.onstyle),this.$element.prop("checked",!0),this.$invElement&&this.$invElement.prop("checked",!1),t||this.trigger()},n.prototype.off=function(t=!1){if(this.$element.prop("disabled")||this.$element.prop("readonly"))return!1;this.$toggle.removeClass("btn-"+this.options.onstyle).addClass("btn-"+this.options.offstyle+" off"),this.$element.prop("checked",!1),this.$invElement&&this.$invElement.prop("checked",!0),t||this.trigger()},n.prototype.indeterminate=function(t=!1){if(!this.options.tristate||this.$element.prop("disabled")||this.$element.prop("readonly"))return!1;this.$toggle.addClass("indeterminate"),this.$element.prop("indeterminate",!0),this.$element.removeAttr("name"),this.$invElement&&this.$invElement.prop("indeterminate",!0),this.$invElement&&this.$invElement.removeAttr("name"),t||this.trigger()},n.prototype.determinate=function(t=!1){if(!this.options.tristate||this.$element.prop("disabled")||this.$element.prop("readonly"))return!1;this.$toggle.removeClass("indeterminate"),this.$element.prop("indeterminate",!1),this.options.name&&this.$element.attr("name",this.options.name),this.$invElement&&this.$invElement.prop("indeterminate",!1),this.$invElement&&this.options.name&&this.$invElement.attr("name",this.options.name),t||this.trigger()},n.prototype.enable=function(){this.$toggle.removeClass("disabled"),this.$toggle.removeAttr("disabled"),this.$element.prop("disabled",!1),this.$element.prop("readonly",!1),this.$invElement&&(this.$invElement.prop("disabled",!1),this.$invElement.prop("readonly",!1))},n.prototype.disable=function(){this.$toggle.addClass("disabled"),this.$toggle.attr("disabled","disabled"),this.$element.prop("disabled",!0),this.$element.prop("readonly",!1),this.$invElement&&(this.$invElement.prop("disabled",!0),this.$invElement.prop("readonly",!1))},n.prototype.readonly=function(){this.$toggle.addClass("disabled"),this.$toggle.attr("disabled","disabled"),this.$element.prop("disabled",!1),this.$element.prop("readonly",!0),this.$invElement&&(this.$invElement.prop("disabled",!1),this.$invElement.prop("readonly",!0))},n.prototype.update=function(t){this.$element.prop("disabled")?this.disable():this.$element.prop("readonly")?this.readonly():this.enable(),this.$element.prop("checked")?this.on(t):this.off(t)},n.prototype.trigger=function(t){this.$element.off("change.bs.toggle"),t||this.$element.change(),this.$element.on("change.bs.toggle",a.proxy(function(){this.update()},this))},n.prototype.destroy=function(){this.$element.off("change.bs.toggle"),this.$toggleGroup.remove(),this.$invElement&&this.$invElement.remove(),this.$element.removeData("bs.toggle"),this.$element.unwrap()},n.prototype.rerender=function(){this.destroy(),this.$element.bootstrapToggle()};let t=a.fn.bootstrapToggle;a.fn.bootstrapToggle=function(o){let s=Array.prototype.slice.call(arguments,1)[0];return this.each(function(){var t=a(this);let e=t.data("bs.toggle");var i="object"==typeof o&&o;e||(e=new n(this,i),t.data("bs.toggle",e)),"string"==typeof o&&e[o]&&"boolean"==typeof s?e[o](s):"string"==typeof o&&e[o]&&e[o]()})},a.fn.bootstrapToggle.Constructor=n,a.fn.toggle.noConflict=function(){return a.fn.bootstrapToggle=t,this},a(function(){a("input[type=checkbox][data-toggle^=toggle]").bootstrapToggle()})}(jQuery); +"use strict";function sanitize(t){var e;return t&&(e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},t.replace(/[&<>"'/]/g,function(t){return e[t]}))}!function(a){function s(t,e){this.$element=a(t),this.options=a.extend({},this.defaults(),e),this.options.onlabel===s.DEPRECATION.value&&(sanitize(this.$element.attr("data-on"))?(s.DEPRECATION.log(s.DEPRECATION.ATTRIBUTE,"data-on","data-onlabel"),this.options.onlabel=this.$element.attr("data-on")):e.on?(s.DEPRECATION.log(s.DEPRECATION.OPTION,"on","onlabel"),this.options.onlabel=e.on):this.options.onlabel=s.DEFAULTS.onlabel),this.options.offlabel===s.DEPRECATION.value&&(sanitize(this.$element.attr("data-off"))?(s.DEPRECATION.log(s.DEPRECATION.ATTRIBUTE,"data-off","data-offlabel"),this.options.offlabel=this.$element.attr("data-off")):e.off?(s.DEPRECATION.log(s.DEPRECATION.OPTION,"off","offlabel"),this.options.offlabel=e.off):this.options.offlabel=s.DEFAULTS.offlabel),this.render()}function h(t,e){e.options.tristate?e.$toggle.hasClass("indeterminate")?(e.determinate(!0),e.toggle()):e.indeterminate():e.toggle()}s.DEPRECATION={value:"BOOTSTRAP TOGGLE DEPRECATION CHECK -- a0Jhux0QySypjjs4tLtEo8xT2kx0AbYaq9K6mgNjWSs0HF0L8T8J0M0o3Kr7zkm7 --",ATTRIBUTE:"attribute",OPTION:"option",log:function(t,e,i){console.warn(`Bootstrap Toggle deprecation warning: Using ${e} ${t} is deprected. Use ${i} instead.`)}},s.DEFAULTS={onlabel:"On",offlabel:"Off",onstyle:"primary",offstyle:"secondary",onvalue:null,offvalue:null,ontitle:null,offtitle:null,size:"normal",style:"",width:null,height:null,tabindex:0,tristate:!1,name:null},s.prototype.defaults=function(){return{onlabel:this.$element.attr("data-onlabel")||s.DEPRECATION.value||s.DEFAULTS.onlabel,offlabel:this.$element.attr("data-offlabel")||s.DEPRECATION.value||s.DEFAULTS.offlabel,onstyle:sanitize(this.$element.attr("data-onstyle"))||s.DEFAULTS.onstyle,offstyle:sanitize(this.$element.attr("data-offstyle"))||s.DEFAULTS.offstyle,onvalue:sanitize(this.$element.attr("value"))||sanitize(this.$element.attr("data-onvalue"))||s.DEFAULTS.onvalue,offvalue:sanitize(this.$element.attr("data-offvalue"))||s.DEFAULTS.offvalue,ontitle:sanitize(this.$element.attr("data-ontitle"))||sanitize(this.$element.attr("title"))||s.DEFAULTS.ontitle,offtitle:sanitize(this.$element.attr("data-offtitle"))||sanitize(this.$element.attr("title"))||s.DEFAULTS.offtitle,size:sanitize(this.$element.attr("data-size"))||s.DEFAULTS.size,style:sanitize(this.$element.attr("data-style"))||s.DEFAULTS.style,width:sanitize(this.$element.attr("data-width"))||s.DEFAULTS.width,height:sanitize(this.$element.attr("data-height"))||s.DEFAULTS.height,tabindex:sanitize(this.$element.attr("tabindex"))||s.DEFAULTS.tabindex,tristate:this.$element.is("[tristate]")||s.DEFAULTS.tristate,name:sanitize(this.$element.attr("name"))||s.DEFAULTS.name}},s.prototype.render=function(){let t;switch(this.options.size){case"large":case"lg":t="btn-lg";break;case"small":case"sm":t="btn-sm";break;case"mini":case"xs":t="btn-xs";break;default:t=""}var e=a('').html(this.options.onlabel).addClass("btn-"+this.options.onstyle+" "+t),i=(this.options.ontitle&&e.attr("title",this.options.ontitle),a('').html(this.options.offlabel).addClass("btn-"+this.options.offstyle+" "+t)),o=(this.options.offtitle&&i.attr("title",this.options.offtitle),a('').addClass(t)),n=a('
').append(e,i,o),s=a('
').addClass(this.$element.prop("checked")?"btn-"+this.options.onstyle:"btn-"+this.options.offstyle+" off").addClass(t).addClass(this.options.style).attr("tabindex",this.options.tabindex);(this.$element.prop("disabled")||this.$element.prop("readonly"))&&(s.addClass("disabled"),s.attr("disabled","disabled")),this.options.onvalue&&this.$element.val(this.options.onvalue);let l=null;this.options.offvalue&&((l=this.$element.clone()).val(this.options.offvalue),l.attr("data-toggle","invert-toggle"),l.removeAttr("id"),l.prop("checked",!this.$element.prop("checked"))),this.$element.wrap(s),a.extend(this,{$toggle:this.$element.parent(),$toggleOn:e,$toggleOff:i,$toggleGroup:n,$invElement:l}),this.$toggle.append(l,n),this.options.width?this.$toggle.css("width",this.options.width):(this.$toggle.css("min-width","100px"),this.$toggle.css("min-width",Math.max(e.outerWidth(),i.outerWidth())+o.outerWidth()/2+"px")),this.options.height?this.$toggle.css("height",this.options.height):(this.$toggle.css("min-height","36px"),this.$toggle.css("min-height",Math.max(e.outerHeight(),i.outerHeight())+"px")),e.addClass("toggle-on"),i.addClass("toggle-off"),this.options.height&&(e.css("line-height",e.height()+"px"),i.css("line-height",i.height()+"px")),this.$toggle.on("pointerdown",t=>{h(0,this)}),this.$toggle.on("keypress",t=>{" "==t.key&&h(0,this)}),this.$element.prop("id")&&a('label[for="'+this.$element.prop("id")+'"]').on("click touchstart",t=>{t.preventDefault(),this.toggle(),this.$toggle.focus()})},s.prototype.toggle=function(t=!1){this.$element.prop("checked")?this.off(t):this.on(t)},s.prototype.on=function(t=!1){if(this.$element.prop("disabled")||this.$element.prop("readonly"))return!1;this.$toggle.removeClass("btn-"+this.options.offstyle+" off").addClass("btn-"+this.options.onstyle),this.$element.prop("checked",!0),this.$invElement&&this.$invElement.prop("checked",!1),t||this.trigger()},s.prototype.off=function(t=!1){if(this.$element.prop("disabled")||this.$element.prop("readonly"))return!1;this.$toggle.removeClass("btn-"+this.options.onstyle).addClass("btn-"+this.options.offstyle+" off"),this.$element.prop("checked",!1),this.$invElement&&this.$invElement.prop("checked",!0),t||this.trigger()},s.prototype.indeterminate=function(t=!1){if(!this.options.tristate||this.$element.prop("disabled")||this.$element.prop("readonly"))return!1;this.$toggle.addClass("indeterminate"),this.$element.prop("indeterminate",!0),this.$element.removeAttr("name"),this.$invElement&&this.$invElement.prop("indeterminate",!0),this.$invElement&&this.$invElement.removeAttr("name"),t||this.trigger()},s.prototype.determinate=function(t=!1){if(!this.options.tristate||this.$element.prop("disabled")||this.$element.prop("readonly"))return!1;this.$toggle.removeClass("indeterminate"),this.$element.prop("indeterminate",!1),this.options.name&&this.$element.attr("name",this.options.name),this.$invElement&&this.$invElement.prop("indeterminate",!1),this.$invElement&&this.options.name&&this.$invElement.attr("name",this.options.name),t||this.trigger()},s.prototype.enable=function(){this.$toggle.removeClass("disabled"),this.$toggle.removeAttr("disabled"),this.$element.prop("disabled",!1),this.$element.prop("readonly",!1),this.$invElement&&(this.$invElement.prop("disabled",!1),this.$invElement.prop("readonly",!1))},s.prototype.disable=function(){this.$toggle.addClass("disabled"),this.$toggle.attr("disabled","disabled"),this.$element.prop("disabled",!0),this.$element.prop("readonly",!1),this.$invElement&&(this.$invElement.prop("disabled",!0),this.$invElement.prop("readonly",!1))},s.prototype.readonly=function(){this.$toggle.addClass("disabled"),this.$toggle.attr("disabled","disabled"),this.$element.prop("disabled",!1),this.$element.prop("readonly",!0),this.$invElement&&(this.$invElement.prop("disabled",!1),this.$invElement.prop("readonly",!0))},s.prototype.update=function(t){this.$element.prop("disabled")?this.disable():this.$element.prop("readonly")?this.readonly():this.enable(),this.$element.prop("checked")?this.on(t):this.off(t)},s.prototype.trigger=function(t){this.$element.off("change.bs.toggle"),t||this.$element.change(),this.$element.on("change.bs.toggle",a.proxy(function(){this.update()},this))},s.prototype.destroy=function(){this.$element.off("change.bs.toggle"),this.$toggleGroup.remove(),this.$invElement&&this.$invElement.remove(),this.$element.removeData("bs.toggle"),this.$element.unwrap()},s.prototype.rerender=function(){this.destroy(),this.$element.bootstrapToggle()};let t=a.fn.bootstrapToggle;a.fn.bootstrapToggle=function(o){let n=Array.prototype.slice.call(arguments,1)[0];return this.each(function(){var t=a(this);let e=t.data("bs.toggle");var i="object"==typeof o&&o;e||(e=new s(this,i),t.data("bs.toggle",e)),"string"==typeof o&&e[o]&&"boolean"==typeof n?e[o](n):"string"==typeof o&&e[o]&&e[o]()})},a.fn.bootstrapToggle.Constructor=s,a.fn.toggle.noConflict=function(){return a.fn.bootstrapToggle=t,this},a(function(){a("input[type=checkbox][data-toggle^=toggle]").bootstrapToggle()})}(jQuery); //# sourceMappingURL=bootstrap5-toggle.jquery.min.js.map \ No newline at end of file diff --git a/js/bootstrap5-toggle.jquery.min.js.map b/js/bootstrap5-toggle.jquery.min.js.map index 0b0119a..327541d 100644 --- a/js/bootstrap5-toggle.jquery.min.js.map +++ b/js/bootstrap5-toggle.jquery.min.js.map @@ -1 +1 @@ -{"version":3,"file":"bootstrap5-toggle.jquery.min.js","sources":["bootstrap5-toggle.jquery.js"],"names":["sanitize","text","map","&","<",">","\"","'","/","replace","m","$","Toggle","element","options","this","$element","extend","defaults","onlabel","DEPRECATION","value","attr","log","ATTRIBUTE","on","OPTION","DEFAULTS","offlabel","off","render","toggleActionPerformed","e","target","tristate","$toggle","hasClass","determinate","toggle","indeterminate","type","oldlabel","newlabel","console","warn","onstyle","offstyle","onvalue","offvalue","ontitle","offtitle","size","style","width","height","tabindex","name","prototype","is","let","$toggleOn","html","addClass","$toggleOff","$toggleHandle","$toggleGroup","append","prop","val","$invElement","clone","removeAttr","wrap","parent","css","Math","max","outerWidth","outerHeight","key","focus","silent","removeClass","trigger","enable","disable","readonly","update","change","proxy","destroy","remove","removeData","unwrap","rerender","bootstrapToggle","old","fn","option","optArg","Array","slice","call","arguments","each","$this","data","Constructor","noConflict","jQuery"],"mappings":"AAaA,aACA,SAASA,SAASC,GAChB,IACIC,EADJ,OAAKD,IACDC,EAAM,CACRC,IAAK,QACLC,IAAK,OACLC,IAAK,OACLC,IAAK,SACLC,IAAK,QACLC,IAAK,QACP,EACOP,EAAKQ,QAAQ,YAAa,SAAUC,GACzC,OAAOR,EAAIQ,EACb,CAAC,EACH,CAEC,CAAA,SAAWC,GAIG,SAATC,EAAmBC,EAASC,GAE9BC,KAAKC,SAAWL,EAAEE,CAAO,EAGzBE,KAAKD,QAAUH,EAAEM,OAAO,GAAIF,KAAKG,SAAS,EAAGJ,CAAO,EAGhDC,KAAKD,QAAQK,UAAYP,EAAOQ,YAAYC,QAC1CrB,SAASe,KAAKC,SAASM,KAAK,SAAS,CAAC,GACxCV,EAAOQ,YAAYG,IACjBX,EAAOQ,YAAYI,UACnB,UACA,cACF,EACAT,KAAKD,QAAQK,QAAUJ,KAAKC,SAASM,KAAK,SAAS,GAC1CR,EAAQW,IACjBb,EAAOQ,YAAYG,IAAIX,EAAOQ,YAAYM,OAAQ,KAAM,SAAS,EACjEX,KAAKD,QAAQK,QAAUL,EAAQW,IAE/BV,KAAKD,QAAQK,QAAUP,EAAOe,SAASR,SAGvCJ,KAAKD,QAAQc,WAAahB,EAAOQ,YAAYC,QAC3CrB,SAASe,KAAKC,SAASM,KAAK,UAAU,CAAC,GACzCV,EAAOQ,YAAYG,IACjBX,EAAOQ,YAAYI,UACnB,WACA,eACF,EACAT,KAAKD,QAAQc,SAAWb,KAAKC,SAASM,KAAK,UAAU,GAC5CR,EAAQe,KACjBjB,EAAOQ,YAAYG,IAAIX,EAAOQ,YAAYM,OAAQ,MAAO,UAAU,EACnEX,KAAKD,QAAQc,SAAWd,EAAQe,KAEhCd,KAAKD,QAAQc,SAAWhB,EAAOe,SAASC,UAK5Cb,KA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,EAAEI,IAAI,EAClB4C,IAAI+C,EAAOD,EAAMC,KAAK,WAAW,EACjC/C,IAAI7C,EAA2B,UAAjB,OAAOoF,GAAsBA,EAEtCQ,IACHA,EAAO,IAAI9F,EAAOG,KAAMD,CAAO,EAC/B2F,EAAMC,KAAK,YAAaA,CAAI,GAGV,UAAlB,OAAOR,GACPQ,EAAKR,IACa,WAAlB,OAAOC,EAEPO,EAAKR,GAAQC,CAAM,EACM,UAAlB,OAAOD,GAAuBQ,EAAKR,IAASQ,EAAKR,GAAQ,CAEpE,CAAC,CACH,EAKAvF,EAAEsF,GAAGF,gBAAgBY,YAAc/F,EAKnCD,EAAEsF,GAAG3D,OAAOsE,WAAa,WAEvB,OADAjG,EAAEsF,GAAGF,gBAAkBC,EAChBjF,IACT,EAMAJ,EAAE,WACAA,EAAE,2CAA2C,EAAEoF,gBAAgB,CACjE,CAAC,CACF,EAAEc,MAAM"} \ No newline at end of file +{"version":3,"file":"bootstrap5-toggle.jquery.min.js","sources":["bootstrap5-toggle.jquery.js"],"names":["sanitize","text","map","&","<",">","\"","'","/","replace","m","$","Toggle","element","options","this","$element","extend","defaults","onlabel","DEPRECATION","value","attr","log","ATTRIBUTE","on","OPTION","DEFAULTS","offlabel","off","render","toggleActionPerformed","e","target","tristate","$toggle","hasClass","determinate","toggle","indeterminate","type","oldlabel","newlabel","console","warn","onstyle","offstyle","onvalue","offvalue","ontitle","offtitle","size","style","width","height","tabindex","name","prototype","is","let","$toggleOn","html","addClass","$toggleOff","$toggleHandle","$toggleGroup","append","prop","val","$invElement","clone","removeAttr","wrap","parent","css","Math","max","outerWidth","outerHeight","key","preventDefault","focus","silent","removeClass","trigger","enable","disable","readonly","update","change","proxy","destroy","remove","removeData","unwrap","rerender","bootstrapToggle","old","fn","option","optArg","Array","slice","call","arguments","each","$this","data","Constructor","noConflict","jQuery"],"mappings":"AAaA,aACA,SAASA,SAASC,GAChB,IACIC,EADJ,OAAKD,IACDC,EAAM,CACRC,IAAK,QACLC,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