PluginProbe ʕ •ᴥ•ʔ
JetFormBuilder — Dynamic Blocks Form Builder / 3.5.5
JetFormBuilder — Dynamic Blocks Form Builder v3.5.5
3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.1.0 2.1.1 2.1.10 2.1.11 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 3.0.0 3.0.0.1 3.0.0.2 3.0.0.3 3.0.1 3.0.1.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.0.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.2 3.2.3 3.3.0 3.3.1 3.3.2 3.3.3 3.3.3.1 3.3.4 3.3.4.1 3.3.4.2 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.5.1 3.4.5.2 3.4.6 3.4.7 3.4.7.1 3.5.0 3.5.1 3.5.1.1 3.5.1.2 3.5.2 3.5.2.1 3.5.3 3.5.4 3.5.5 3.5.6 3.5.6.1 3.5.6.2 3.5.6.3 3.6.0
jetformbuilder / modules / switcher / assets / build / switcher.js
jetformbuilder / modules / switcher / assets / build Last commit date
editor.asset.php 1 year ago editor.js 1 year ago switcher.asset.php 2 years ago switcher.css 1 year ago switcher.js 2 years ago
switcher.js
1 lines
1 (()=>{"use strict";const{InputData:t,ReactiveHook:e}=JetFormBuilderAbstract;function n(){t.call(this),this.isSupported=function(t){return"switch"===t?.role},this.addListeners=function(){const[t]=this.nodes;t.addEventListener("input",(t=>{this.value.current=t.target.checked})),t.addEventListener("blur",(t=>{this.reportOnBlur()})),this.enterKey=new e,t.addEventListener("keydown",this.handleEnterKey.bind(this)),this.sanitize((function(e){return Boolean(e)?t.value:""}))},this.setValue=function(){const[t]=this.nodes;this.value.current=t.checked?t.value:null},this.setNode=function(e){t.prototype.setNode.call(this,e),this.inputType="switcher"}}n.prototype=Object.create(t.prototype);const i=n,{BaseSignal:s}=JetFormBuilderAbstract;function r(){s.call(this),this.isSupported=function(t,e){return"switch"===t.role},this.runSignal=function(){var t;const[e]=this.input.nodes;this.input.calcValue=0,e.checked=this.input.value.current===e.value,e.checked&&(this.input.calcValue+=parseFloat(null!==(t=e.dataset?.calculate)&&void 0!==t?t:e.value))}}r.prototype=Object.create(s.prototype);const u=r,{addFilter:c}=JetPlugins.hooks;c("jet.fb.inputs","jet-form-builder/switcher",(function(t){return[i,...t]})),c("jet.fb.signals","jet-form-builder/switcher",(function(t){return[u,...t]}))})();