@geoblink/design-system
Version:
Geoblink Design System for Vue.js
1 lines • 3.26 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["components/GeoListGroup"]=t():e["components/GeoListGroup"]=t()}(window,function(){return n={},e.m=t={73:function(e,t,n){e.exports=n("tswV")},"KHd+":function(e,t,n){"use strict";function o(e,t,n,o,r,i,s,c){var a,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(a=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=a):r&&(a=c?function(){r.call(this,this.$root.$options.shadowRoot)}:r),a)if(l.functional){l._injectStyles=a;var u=l.render;l.render=function(e,t){return a.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,a):[a]}return{exports:e,options:l}}n.d(t,"a",function(){return o})},tswV:function(e,t,n){"use strict";n.r(t);var o={name:"GeoListGroup",status:"ready",release:"4.0.0",props:{icon:{type:Array,required:!1}},computed:{hasTitle:function(){return!(!this.$slots.title||!this.$slots.title.length)},hasTrailingAccessoryItems:function(){return!(!this.$slots.trailingAccessoryItem||!this.$slots.trailingAccessoryItem.length)}},methods:{emitClick:function(e){this.$emit("click",e)}}},r=n("KHd+"),i=Object(r.a)(o,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"geo-list-group"},[e.hasTitle?n("div",{staticClass:"geo-list-group-header",on:{click:function(t){return e.emitClick(t)}}},[n("div",{staticClass:"geo-list-group-header__icon-and-label"},[e.icon?n("div",{staticClass:"geo-list-group-header__icon-container"},[n("font-awesome-icon",{staticClass:"geo-list-group-header__icon",attrs:{icon:e.icon,"aria-hidden":"","fixed-width":""}})],1):e._e(),e._v(" "),n("div",{staticClass:"geo-list-group-header__label"},[e._t("title")],2)]),e._v(" "),e.hasTrailingAccessoryItems?n("div",{staticClass:"geo-list-group-header__trailing-accessory-items"},[e._t("trailingAccessoryItem")],2):e._e()]):e._e(),e._v(" "),n("div",{staticClass:"geo-list-group__content"},[e._t("item")],2)])},[],!1,null,null,null);t.default=i.exports}},e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:o})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)e.d(o,r,function(e){return t[e]}.bind(null,r));return o},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="/",e(e.s=73);function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var t,n});