UNPKG

primevue

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/primevue.svg)](https://badge.fury.io/js/primevue)

1 lines 3.56 kB
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["rowradiobutton"]=t(require("vue")):e["rowradiobutton"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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")}({8875:function(e,t,n){var r,o,c;(function(n,u){o=[],r=u,c="function"===typeof r?r.apply(t,o):r,void 0===c||(e.exports=c)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(s){var n,r,o,c=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,u=/@([^@]*):(\d+):(\d+)\s*$/gi,i=c.exec(s.stack)||u.exec(s.stack),d=i&&i[1]||!1,f=i&&i[2]||!1,a=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");d===a&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(f-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var p=0;p<l.length;p++){if("interactive"===l[p].readyState)return l[p];if(l[p].src===d)return l[p];if(d===a&&l[p].innerHTML&&l[p].innerHTML.trim()===o)return l[p]}return null}}return e}))},"8bbf":function(t,n){t.exports=e},fb15:function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var c=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(n.p=c[1])}var u=n("8bbf"),i=Object(u["createVNode"])("div",{class:"p-radiobutton-icon"},null,-1);function d(e,t,n,r,o,c){return Object(u["openBlock"])(),Object(u["createBlock"])("div",{class:"p-radiobutton p-component",onClick:t[1]||(t[1]=function(){return c.onClick&&c.onClick.apply(c,arguments)}),tabindex:"0",onFocus:t[2]||(t[2]=function(e){return c.onFocus(e)}),onBlur:t[3]||(t[3]=function(e){return c.onBlur(e)})},[Object(u["createVNode"])("div",{ref:"box",class:["p-radiobutton-box p-component",{"p-highlight":n.checked,"p-disabled":e.$attrs.disabled,"p-focus":o.focused}],role:"radio","aria-checked":n.checked},[i],10,["aria-checked"])],32)}var f={inheritAttrs:!1,emits:["change"],props:{value:null,checked:null},data:function(){return{focused:!1}},methods:{onClick:function(e){this.disabled||this.checked||this.$emit("change",{originalEvent:e,data:this.value})},onFocus:function(){this.focused=!0},onBlur:function(){this.focused=!1}}};f.render=d;var a=f;t["default"]=a}})["default"]}));