Skip to content

Commit

Permalink
Add dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
snootched authored and github-actions[bot] committed Oct 20, 2024
1 parent cbe3a00 commit 3b9656e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,20 @@ class EditorForm extends lit_1.LitElement {
generateTabs(tabs) {
const visibleTabs = tabs.filter(tab => this._evaluateCondition(tab.visibilityCondition || "true"));
return (0, lit_1.html) `
<md-tabs @MDCTabBar:activated=${this._handleTabActivated}>
<mwc-tabs @MDCTabBar:activated=${this._handleTabActivated}>
${visibleTabs.map((tab, index) => (0, lit_1.html) `
<md-tab label="${tab.label}" ?selected=${this._selectedTab === index}></md-tab>
<mwc-tab label="${tab.label}" ?selected=${this._selectedTab === index}></mwc-tab>
`)}
</md-tabs>
</mwc-tabs>
<div class="tab-content">
${visibleTabs.map((tab, index) => (0, lit_1.html) `
<div class="tab-panel" ?hidden=${this._selectedTab !== index}>
${tab.content.map(item => {
if (item.type === "Section") {
return this.generateSection(item);
//} else if (item.type === "ControlRow") {
}
else if (item.type === "ControlRow") {
else {
return this.generateRow(item);
}
})}
Expand Down Expand Up @@ -232,7 +233,7 @@ class EditorForm extends lit_1.LitElement {
}
/* Styles for tabs */
md-tabs {
mwc-tabs {
border-bottom: 1px solid var(--divider-color);
}
.tab-content {
Expand Down

0 comments on commit 3b9656e

Please sign in to comment.