primevue
Version:
[](https://opensource.org/licenses/MIT) [](https://badge.fury.io/js/primevue)
1 lines • 3.42 kB
JavaScript
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["headercheckbox"]=t():e["headercheckbox"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(o){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(o.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},fb15:function(e,t,n){"use strict";var o;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(o=window.document.currentScript)&&(o=o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=o[1]));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"p-checkbox p-component",on:{click:e.onClick}},[n("div",{staticClass:"p-hidden-accessible"},[n("input",{ref:"input",attrs:{type:"checkbox",disabled:e.disabled},domProps:{checked:e.checked},on:{focus:function(t){return e.onFocus(t)},blur:function(t){return e.onBlur(t)}}})]),n("div",{ref:"box",class:["p-checkbox-box p-component",{"p-highlight":e.checked,"p-disabled":e.$attrs.disabled,"p-focus":e.focused}],attrs:{role:"checkbox","aria-checked":e.checked}},[n("span",{class:["p-checkbox-icon",{"pi pi-check":e.checked}]})])])},c=[],i={inheritAttrs:!1,props:{disabled:null,checked:null},data:function(){return{focused:!1}},methods:{onClick:function(e){this.disabled||(this.$emit("change",e),this.$refs.input.focus())},onFocus:function(){this.focused=!0},onBlur:function(){this.focused=!1}}},s=i;function u(e,t,n,o,r,c,i,s){var u,f="function"===typeof e?e.options:e;if(t&&(f.render=t,f.staticRenderFns=n,f._compiled=!0),o&&(f.functional=!0),c&&(f._scopeId="data-v-"+c),i?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},f._ssrRegister=u):r&&(u=s?function(){r.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:r),u)if(f.functional){f._injectStyles=u;var d=f.render;f.render=function(e,t){return u.call(t),d(e,t)}}else{var a=f.beforeCreate;f.beforeCreate=a?[].concat(a,u):[u]}return{exports:e,options:f}}var f=u(s,r,c,!1,null,null,null),d=f.exports;t["default"]=d}})["default"]}));