PluginProbe ʕ •ᴥ•ʔ
JetFormBuilder — Dynamic Blocks Form Builder / trunk
JetFormBuilder — Dynamic Blocks Form Builder vtrunk
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 / blocks-v2 / text-field / assets / build / frontend / field.js
jetformbuilder / modules / blocks-v2 / text-field / assets / build / frontend Last commit date
field.asset.php 1 month ago field.css 1 year ago field.js 1 month ago field.mask.asset.php 1 month ago field.mask.js 1 month ago
field.js
1 lines
1 (()=>{"use strict";const{InputData:t}=JetFormBuilderAbstract;function e(){t.call(this),this.isSupported=function(){return!0},this.addListeners=function(){t.prototype.addListeners.call(this);const[e]=this.nodes,i=this.getWrapperNode()?.querySelector?.(".jfb-eye-icon");i&&(i.addEventListener("click",function(){i.classList.toggle("seen");const t="true"===this.getAttribute("aria-pressed");this.setAttribute("aria-pressed",!t),e.type=i.classList.contains("seen")?"password":"text"}),i.addEventListener("keydown",function(t){" "!==t.key&&"Enter"!==t.key||(t.preventDefault(),this.click())}),i.addEventListener("keyup",function(t){" "===t.key&&t.preventDefault()}))}}e.prototype=Object.create(t.prototype);const i=e,{BaseSignal:n}=JetFormBuilderAbstract,{toDate:r,toDateTime:s,toTime:u}=JetFormBuilderFunctions;function a(){n.call(this),this.isSupported=function(){return!0},this.runSignal=function(){this.input.calcValue=Number.isNaN(Number(this.input.calcValue))?this.input.calcValue:parseFloat(this.input.calcValue);const[t]=this.input.nodes,e=["date","time","datetime-local"].includes(t.type)?function(t,e){if(""===e||null==e)return"";if(Number.isNaN(Number(e)))return e;const i=new Date(Number(e));return"date"===t.type?r(i):"time"===t.type?u(i):"datetime-local"===t.type?s(i):e}(t,this.input.value.current):this.input.value.current;t.value!==e&&(t.value=e,this.triggerJQuery(t))}}a.prototype=Object.create(n.prototype);const o=a,{addFilter:c}=JetPlugins.hooks;c("jet.fb.inputs","jet-form-builder/text-field",function(t){return t.push(i),t},999),c("jet.fb.signals","jet-form-builder/text-field",function(t){return t.push(o),t},999)})();