genus-ui 1.21.1 → 1.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +4 -0
- package/dist/index.umd.js +10 -6
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1503,8 +1503,12 @@ const se = s`
|
|
|
1503
1503
|
padding: 0;
|
|
1504
1504
|
border-radius: 0.375rem;
|
|
1505
1505
|
width: 100%;
|
|
1506
|
+
height: 15.625rem;
|
|
1507
|
+
overflow-y: scroll;
|
|
1506
1508
|
}
|
|
1507
1509
|
|
|
1510
|
+
.options::-webkit-scrollbar { display: none; }
|
|
1511
|
+
|
|
1508
1512
|
.options__list-item { padding: var(--option-item-padding, 1rem 1.25rem); }
|
|
1509
1513
|
|
|
1510
1514
|
::slotted(genus-dropdown-option:not(:last-child)) { position: relative; }
|
package/dist/index.umd.js
CHANGED
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
font-family: var(--textarea-label-font-family, sans-serif);
|
|
55
55
|
font-size: var(--textarea-label-font-size, 1rem);
|
|
56
56
|
}
|
|
57
|
-
`;var Y=Object.defineProperty,W=Object.getOwnPropertyDescriptor,
|
|
57
|
+
`;var Y=Object.defineProperty,W=Object.getOwnPropertyDescriptor,h=(t,n,a,s)=>{for(var i=s>1?void 0:s?W(n,a):n,l=t.length-1,c;l>=0;l--)(c=t[l])&&(i=(s?c(n,a,i):c(i))||i);return s&&i&&Y(n,a,i),i};o.GenusTextArea=class extends e.LitElement{constructor(){super(...arguments),this.labelText="",this.inputValue="",this.readOnly=!1,this.getInputValue=t=>{this.dispatchEvent(new CustomEvent("typed",{detail:t.target.value}))},this._targetInput=null}updated(){this.inputValue===""&&this._targetInput!=null&&(this._targetInput.value="")}render(){return e.html`
|
|
58
58
|
<div class='form-field form-field--without-icon'>
|
|
59
59
|
<label class='input-label'>${this.labelText}</label>
|
|
60
60
|
${this.readOnly?e.html`<textarea class='input-control' rows='5' readonly>${this.inputValue}</textarea>`:e.html`<textarea class='input-control' rows='5' @input=${this.getInputValue}>${this.inputValue}</textarea>`}
|
|
61
61
|
</div>
|
|
62
|
-
`}},o.GenusTextArea.styles=[V,G,U,S,P],
|
|
62
|
+
`}},o.GenusTextArea.styles=[V,G,U,S,P],h([r.property({attribute:"label-text"})],o.GenusTextArea.prototype,"labelText",2),h([r.property({attribute:"input-value"})],o.GenusTextArea.prototype,"inputValue",2),h([r.property({attribute:"read-only",type:Boolean})],o.GenusTextArea.prototype,"readOnly",2),h([r.state()],o.GenusTextArea.prototype,"_targetInput",2),o.GenusTextArea=h([r.customElement("genus-textarea")],o.GenusTextArea);const H=e.css`
|
|
63
63
|
input[type='text'], input[type='email'], input[type='password'], input[type='date']
|
|
64
64
|
{
|
|
65
65
|
border: var(--input-border, none);
|
|
@@ -485,7 +485,7 @@
|
|
|
485
485
|
}
|
|
486
486
|
`,ct=e.css`
|
|
487
487
|
.tab-labels { display: flex; }
|
|
488
|
-
`;var dt=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,
|
|
488
|
+
`;var dt=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,A=(t,n,a,s)=>{for(var i=s>1?void 0:s?ut(n,a):n,l=t.length-1,c;l>=0;l--)(c=t[l])&&(i=(s?c(n,a,i):c(i))||i);return s&&i&&dt(n,a,i),i};let M=class extends e.LitElement{constructor(){super(...arguments),this._numberOfTabs=0,this._tabsTemplate=[],this._tabNames=[],this.tabNames="",this._hideCurrentContent=()=>{this._tabContents.forEach(t=>{t.classList.contains("show-content")&&t.classList.remove("show-content")})},this._showContent=t=>{this._hideCurrentContent(),this._tabContents[t].classList.add("show-content")},this._generateTabs=()=>{this._tabNames=JSON.parse(this.tabNames);for(let t=0;t<this._numberOfTabs;t++)t===0?this._tabsTemplate.push(e.html`
|
|
489
489
|
<input class="tab-radio" id=${this._tabNames[t]} type="radio" name="tabGroup" @change=${()=>{this._showContent(t)}} checked/>
|
|
490
490
|
<label class="tab ${this._tabNames[t]}-tab" for=${this._tabNames[t]}>${this._tabNames[t]=this._tabNames[t].replace("-"," ")}</label>
|
|
491
491
|
`):this._tabsTemplate.push(e.html`
|
|
@@ -498,7 +498,7 @@
|
|
|
498
498
|
</div>
|
|
499
499
|
<slot></slot>
|
|
500
500
|
</div>
|
|
501
|
-
`}};M.styles=[nt,ot,st,rt,lt,ct],
|
|
501
|
+
`}};M.styles=[nt,ot,st,rt,lt,ct],A([r.queryAssignedElements()],M.prototype,"_tabContents",2),A([r.state()],M.prototype,"_numberOfTabs",2),A([r.state()],M.prototype,"_tabsTemplate",2),A([r.property({attribute:"tab-names"})],M.prototype,"tabNames",2),M=A([r.customElement("genus-tab-container")],M);var pt=Object.defineProperty,Mt=Object.getOwnPropertyDescriptor,gt=(t,n,a,s)=>{for(var i=s>1?void 0:s?Mt(n,a):n,l=t.length-1,c;l>=0;l--)(c=t[l])&&(i=(s?c(n,a,i):c(i))||i);return s&&i&&pt(n,a,i),i};let w=class extends e.LitElement{render(){return e.html`<slot></slot>`}};w=gt([r.customElement("genus-tab-content")],w);const bt=Object.freeze(Object.defineProperty({__proto__:null,get GenusTabContainer(){return M},get GenusTabContent(){return w}},Symbol.toStringTag,{value:"Module"})),D=e.css`
|
|
502
502
|
::slotted(.hide-content)
|
|
503
503
|
{
|
|
504
504
|
visibility: hidden;
|
|
@@ -587,13 +587,13 @@
|
|
|
587
587
|
color: var(--step-number-color);
|
|
588
588
|
margin-bottom: var(--step-number-margin-buttom, 1rem);
|
|
589
589
|
}
|
|
590
|
-
`;var It=Object.defineProperty,
|
|
590
|
+
`;var It=Object.defineProperty,ht=Object.getOwnPropertyDescriptor,m=(t,n,a,s)=>{for(var i=s>1?void 0:s?ht(n,a):n,l=t.length-1,c;l>=0;l--)(c=t[l])&&(i=(s?c(n,a,i):c(i))||i);return s&&i&&It(n,a,i),i};let p=class extends e.LitElement{constructor(){super(...arguments),this.currentStep=0,this.direction="",this._progressBarsTemplate=[],this._steps=0,this._hideCurrentContent=()=>{this._stepContents.forEach(t=>{t.classList.contains("show-content")&&t.classList.remove("show-content")})},this._changeStep=()=>{this._hideCurrentContent(),this._stepContents[this.currentStep].classList.add("show-content")},this._generateProgressBars=()=>{for(let t=0;t<this._steps;t++)this._progressBarsTemplate.push(e.html`<div class='progress-bar'></div>`);this._progressBarsTemplate[this.currentStep]=e.html`<div class='progress-bar current'></div>`}}firstUpdated(){this._stepContents.forEach(t=>{t.classList.add("hide-content")}),this._stepContents[this.currentStep].classList.add("show-content"),this._steps=this._stepContents.length,this._generateProgressBars()}updated(){this._changeStep()}render(){return this.direction==="next"&&(this._progressBarsTemplate[this.currentStep]=e.html`<div class='progress-bar current'></div>`),this.direction==="prev"&&(this._progressBarsTemplate[this.currentStep+1]=e.html`<div class='progress-bar'></div>`),e.html`
|
|
591
591
|
<h5 class='step-number'>Step ${this.currentStep+1}</h5>
|
|
592
592
|
<div class='progress-bars'>${this._progressBarsTemplate}</div>
|
|
593
593
|
<div class='step-contents'>
|
|
594
594
|
<slot></slot>
|
|
595
595
|
</div>
|
|
596
|
-
`}};p.styles=[D,v,mt,j],m([r.queryAssignedElements()],p.prototype,"_stepContents",2),m([r.property({attribute:"current-step",type:Number})],p.prototype,"currentStep",2),m([r.property()],p.prototype,"direction",2),m([r.state()],p.prototype,"_progressBarsTemplate",2),m([r.state()],p.prototype,"_steps",2),p=m([r.customElement("genus-step-wizard")],p);var
|
|
596
|
+
`}};p.styles=[D,v,mt,j],m([r.queryAssignedElements()],p.prototype,"_stepContents",2),m([r.property({attribute:"current-step",type:Number})],p.prototype,"currentStep",2),m([r.property()],p.prototype,"direction",2),m([r.state()],p.prototype,"_progressBarsTemplate",2),m([r.state()],p.prototype,"_steps",2),p=m([r.customElement("genus-step-wizard")],p);var At=Object.defineProperty,xt=Object.getOwnPropertyDescriptor,f=(t,n,a,s)=>{for(var i=s>1?void 0:s?xt(n,a):n,l=t.length-1,c;l>=0;l--)(c=t[l])&&(i=(s?c(n,a,i):c(i))||i);return s&&i&&At(n,a,i),i};let I=class extends e.LitElement{constructor(){super(...arguments),this.stepTitle="",this.stepDescription=""}render(){return e.html`
|
|
597
597
|
<div class='step-container'>
|
|
598
598
|
<div class='step-info'>
|
|
599
599
|
<h4 class='step-title'>${this.stepTitle}</h4>
|
|
@@ -1066,8 +1066,12 @@
|
|
|
1066
1066
|
padding: 0;
|
|
1067
1067
|
border-radius: 0.375rem;
|
|
1068
1068
|
width: 100%;
|
|
1069
|
+
height: 15.625rem;
|
|
1070
|
+
overflow-y: scroll;
|
|
1069
1071
|
}
|
|
1070
1072
|
|
|
1073
|
+
.options::-webkit-scrollbar { display: none; }
|
|
1074
|
+
|
|
1071
1075
|
.options__list-item { padding: var(--option-item-padding, 1rem 1.25rem); }
|
|
1072
1076
|
|
|
1073
1077
|
::slotted(genus-dropdown-option:not(:last-child)) { position: relative; }
|