@giwisoft/wc-tabs
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -9,5 +9,7 @@ export class WCTabs { | ||
onSelectedTab(event) { | ||
const group = this.tabGroup.find(group => group.header.id === event.detail.id); | ||
console.debug(group, event.detail); | ||
this.selectGroup(group); | ||
if (this.tabGroup) { | ||
const group = this.tabGroup.find(group => group.header.id === event.detail.id); | ||
console.debug(group, event.detail); | ||
this.selectGroup(group); | ||
} | ||
} | ||
@@ -14,0 +16,0 @@ createGroup() { |
// WcTabs: Host Data, ES Module/es2017 Target | ||
export const COMPONENTS = [["wc-tabs","1uhbbigh",1,[["host",64]],0,[["onSelect","onSelectedTab"]]],["wc-tabs-content","cn6jcu4w",1,[["getChild",32],["isSelected",16],["name",1,0,1,2]]],["wc-tabs-header","lpi4g303",1,[["disabled",1,0,1,4],["getChild",32],["isSelected",16],["name",1,0,1,2]],1]] | ||
export const COMPONENTS = [["wc-tabs","oeq6qaib",1,[["host",64]],0,[["onSelect","onSelectedTab"]]],["wc-tabs-content","cn6jcu4w",1,[["getChild",32],["isSelected",16],["name",1,0,1,2]]],["wc-tabs-header","lpi4g303",1,[["disabled",1,0,1,4],["getChild",32],["isSelected",16],["name",1,0,1,2]],1]] |
// WcTabs: Host Data, ES Module/es5 Target | ||
export var COMPONENTS = [["wc-tabs","1uhbbigh",1,[["host",64]],0,[["onSelect","onSelectedTab"]]],["wc-tabs-content","cn6jcu4w",1,[["getChild",32],["isSelected",16],["name",1,0,1,2]]],["wc-tabs-header","lpi4g303",1,[["disabled",1,0,1,4],["getChild",32],["isSelected",16],["name",1,0,1,2]],1]] | ||
export var COMPONENTS = [["wc-tabs","oeq6qaib",1,[["host",64]],0,[["onSelect","onSelectedTab"]]],["wc-tabs-content","cn6jcu4w",1,[["getChild",32],["isSelected",16],["name",1,0,1,2]]],["wc-tabs-header","lpi4g303",1,[["disabled",1,0,1,4],["getChild",32],["isSelected",16],["name",1,0,1,2]],1]] |
@@ -1,1 +0,1 @@ | ||
!function(e,t,r,s,n,c,i,o,a,u,l,d,p,h){for(l=e.WcTabs=e.WcTabs||{},(d=t.createElement("style")).innerHTML=a+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),p=t.head.querySelector("meta[charset]"),t.head.insertBefore(d,p?p.nextSibling:t.head.firstChild),function(e,t,r){(e["s-apps"]=e["s-apps"]||[]).push("WcTabs"),r.componentOnReady||(r.componentOnReady=function(){var t=this;function r(r){if(t.nodeName.indexOf("-")>0){for(var s=e["s-apps"],n=0,c=0;c<s.length;c++)if(e[s[c]].componentOnReady){if(e[s[c]].componentOnReady(t,r))return;n++}if(n<s.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,r])}r(null)}return e.Promise?new e.Promise(r):{then:r}})}(e,0,u),n=n||l.resourcesUrl,d=(p=t.querySelectorAll("script")).length-1;d>=0&&!(h=p[d]).src&&!h.hasAttribute("data-resources-url");d--);p=h.getAttribute("data-resources-url"),!n&&p&&(n=p),!n&&h.src&&(n=(p=h.src.split("/").slice(0,-1)).join("/")+(p.length?"/":"")+"wc-tabs/"),d=t.createElement("script"),function(e,t,r,s){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in r)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,d)?d.src=n+"wc-tabs.em0hqa7q.js":(d.src=n+"wc-tabs.or5suu9n.js",d.setAttribute("type","module"),d.setAttribute("crossorigin",!0)),d.setAttribute("data-resources-url",n),d.setAttribute("data-namespace","wc-tabs"),t.head.appendChild(d)}(window,document,0,0,0,0,0,0,"wc-tabs,wc-tabs-content,wc-tabs-header",HTMLElement.prototype); | ||
!function(e,t,r,s,n,c,i,o,a,u,l,d,p,h){for(l=e.WcTabs=e.WcTabs||{},(d=t.createElement("style")).innerHTML=a+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),p=t.head.querySelector("meta[charset]"),t.head.insertBefore(d,p?p.nextSibling:t.head.firstChild),function(e,t,r){(e["s-apps"]=e["s-apps"]||[]).push("WcTabs"),r.componentOnReady||(r.componentOnReady=function(){var t=this;function r(r){if(t.nodeName.indexOf("-")>0){for(var s=e["s-apps"],n=0,c=0;c<s.length;c++)if(e[s[c]].componentOnReady){if(e[s[c]].componentOnReady(t,r))return;n++}if(n<s.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,r])}r(null)}return e.Promise?new e.Promise(r):{then:r}})}(e,0,u),n=n||l.resourcesUrl,d=(p=t.querySelectorAll("script")).length-1;d>=0&&!(h=p[d]).src&&!h.hasAttribute("data-resources-url");d--);p=h.getAttribute("data-resources-url"),!n&&p&&(n=p),!n&&h.src&&(n=(p=h.src.split("/").slice(0,-1)).join("/")+(p.length?"/":"")+"wc-tabs/"),d=t.createElement("script"),function(e,t,r,s){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in r)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,d)?d.src=n+"wc-tabs.a4ua6myj.js":(d.src=n+"wc-tabs.gemcxxeg.js",d.setAttribute("type","module"),d.setAttribute("crossorigin",!0)),d.setAttribute("data-resources-url",n),d.setAttribute("data-namespace","wc-tabs"),t.head.appendChild(d)}(window,document,0,0,0,0,0,0,"wc-tabs,wc-tabs-content,wc-tabs-header",HTMLElement.prototype); |
{ | ||
"name": "@giwisoft/wc-tabs", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Tabs component", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
295705
2807