UNPKG

@geoblink/design-system

Version:

Geoblink Design System for Vue.js

1 lines 3.65 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash")):"function"==typeof define&&define.amd?define(["lodash"],t):"object"==typeof exports?exports["components/GeoBorderedBoxHeader"]=t(require("lodash")):e["components/GeoBorderedBoxHeader"]=t(e.lodash)}(window,function(e){return o={},t.m=n={9:function(e,t,n){e.exports=n("Do2U")},Do2U:function(e,t,n){"use strict";n.r(t);var o=n("YLtl"),i=n.n(o),r={name:"GeoBorderedBoxHeader",status:"ready",release:"7.3.0",props:{icon:{type:Array,required:!1},trailingIcon:{type:Array,default:function(){return["fal","times"]}}},computed:{isTrailingIconVisible:function(){return this.$listeners&&this.$listeners["click-trailing-icon"]&&this.hasTrailingIcon},hasTrailingIcon:function(){return 0<i.a.size(this.trailingIcon)}},methods:{emitClick:function(e){this.$emit("click",e)},emitIconClick:function(e){this.$emit("click-icon",e)},emitTrailingIconClick:function(e){this.$emit("click-trailing-icon",e)}}},c=n("KHd+"),a=Object(c.a)(r,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"geo-bordered-box-header",on:{click:function(t){return e.emitClick(t)}}},[n("div",{staticClass:"geo-bordered-box-header__icon-and-label"},[e.icon?n("div",{staticClass:"geo-bordered-box-header__icon-container"},[n("font-awesome-icon",{staticClass:"geo-bordered-box-header__icon",attrs:{icon:e.icon,"aria-hidden":"","fixed-width":""},on:{click:function(t){return e.emitIconClick(t)}}})],1):e._e(),e._v(" "),n("div",{staticClass:"geo-bordered-box-header__label"},[e._t("default")],2)]),e._v(" "),e.isTrailingIconVisible?n("div",{staticClass:"geo-bordered-box-header__trailing-button",on:{click:function(t){return e.emitTrailingIconClick(t)}}},[n("font-awesome-icon",{staticClass:"geo-bordered-box-header__trailing-button-icon",attrs:{icon:e.trailingIcon,"aria-hidden":"","fixed-width":""}})],1):e._e()])},[],!1,null,null,null);t.default=a.exports},"KHd+":function(e,t,n){"use strict";function o(e,t,n,o,i,r,c,a){var s,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),o&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),c?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},d._ssrRegister=s):i&&(s=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),s)if(d.functional){d._injectStyles=s;var l=d.render;d.render=function(e,t){return s.call(t),l(e,t)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,s):[s]}return{exports:e,options:d}}n.d(t,"a",function(){return o})},YLtl:function(t,n){t.exports=e}},t.c=o,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(o,i,function(t){return e[t]}.bind(null,i));return o},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=9);function t(e){if(o[e])return o[e].exports;var i=o[e]={i:e,l:!1,exports:{}};return n[e].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n,o});