genus-ui 1.88.20 → 1.90.20
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 +6 -6
- package/dist/index.umd.js +6 -6
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1313,7 +1313,7 @@ let Mt = class extends tt {
|
|
|
1313
1313
|
Mt.styles = [or, ar, lr, rr, Ar, hr, cr];
|
|
1314
1314
|
Mt.formAssociated = !0;
|
|
1315
1315
|
Zt([
|
|
1316
|
-
G({ attribute: "
|
|
1316
|
+
G({ attribute: "label-text" })
|
|
1317
1317
|
], Mt.prototype, "labelText", 2);
|
|
1318
1318
|
Zt([
|
|
1319
1319
|
G({ attribute: "options", type: Array })
|
|
@@ -1969,7 +1969,7 @@ let at = class extends tt {
|
|
|
1969
1969
|
return this.withoutLabel ? this.withFilter ? i = B`
|
|
1970
1970
|
<div class='drop-down'>
|
|
1971
1971
|
<div class='form-field form-field--without-label'>
|
|
1972
|
-
<input class='input-control select-control' type='text' @click=${this._toggleOptions} placeholder=${this.placeholderText} value=${this.inputValue} readonly />
|
|
1972
|
+
<input class='input-control select-control' type='text' @click=${this._toggleOptions} placeholder=${this.placeholderText} value=${this.inputValue} name=${this.inputName} readonly />
|
|
1973
1973
|
<div class='icon-container'>
|
|
1974
1974
|
<img class="component-icon" src='${this.inputIconSrc || ni}' />
|
|
1975
1975
|
</div>
|
|
@@ -1985,7 +1985,7 @@ let at = class extends tt {
|
|
|
1985
1985
|
</div>` : i = B`
|
|
1986
1986
|
<div class='drop-down'>
|
|
1987
1987
|
<div class='form-field form-field--without-label'>
|
|
1988
|
-
<input class='input-control select-control' type='text' @click=${this._toggleOptions} placeholder=${this.placeholderText} value=${this.inputValue} readonly />
|
|
1988
|
+
<input class='input-control select-control' type='text' @click=${this._toggleOptions} placeholder=${this.placeholderText} value=${this.inputValue} name=${this.inputName} readonly />
|
|
1989
1989
|
<div class='icon-container'>
|
|
1990
1990
|
<img class="component-icon" src='${this.inputIconSrc || ni}' />
|
|
1991
1991
|
</div>
|
|
@@ -1997,7 +1997,7 @@ let at = class extends tt {
|
|
|
1997
1997
|
<div class='drop-down drop-down--with-filter'>
|
|
1998
1998
|
<div class='form-field'>
|
|
1999
1999
|
<label class='input-label'>${this.labelText}</label>
|
|
2000
|
-
<input class='input-control select-control' type='text' @click=${this._toggleOptions} placeholder=${this.placeholderText} value=${this.inputValue} readonly />
|
|
2000
|
+
<input class='input-control select-control' type='text' @click=${this._toggleOptions} placeholder=${this.placeholderText} value=${this.inputValue} name=${this.inputName} readonly />
|
|
2001
2001
|
<div class='icon-container'>
|
|
2002
2002
|
<img class="component-icon" src='${this.inputIconSrc || ni}' />
|
|
2003
2003
|
</div>
|
|
@@ -2014,7 +2014,7 @@ let at = class extends tt {
|
|
|
2014
2014
|
<div class='drop-down'>
|
|
2015
2015
|
<div class='form-field'>
|
|
2016
2016
|
<label class='input-label'>${this.labelText}</label>
|
|
2017
|
-
<input class='input-control select-control' type='text' @click=${this._toggleOptions} placeholder=${this.placeholderText} value=${this.inputValue} readonly />
|
|
2017
|
+
<input class='input-control select-control' type='text' @click=${this._toggleOptions} placeholder=${this.placeholderText} value=${this.inputValue} name=${this.inputName} readonly />
|
|
2018
2018
|
<div class='icon-container'>
|
|
2019
2019
|
<img class="component-icon" src='${this.inputIconSrc || ni}' />
|
|
2020
2020
|
</div>
|
|
@@ -2061,7 +2061,7 @@ ft([
|
|
|
2061
2061
|
G({ attribute: "display-position" })
|
|
2062
2062
|
], at.prototype, "displayPosition", 2);
|
|
2063
2063
|
ft([
|
|
2064
|
-
G({ attribute: "
|
|
2064
|
+
G({ attribute: "dropdown-icon" })
|
|
2065
2065
|
], at.prototype, "inputIconSrc", 2);
|
|
2066
2066
|
ft([
|
|
2067
2067
|
J()
|
package/dist/index.umd.js
CHANGED
|
@@ -939,7 +939,7 @@
|
|
|
939
939
|
`)}
|
|
940
940
|
</div>
|
|
941
941
|
</div>
|
|
942
|
-
`}},b.GenusRadioBtnGroup.styles=[Wa,Za,Xa,Ua,Ka,qa,Ja],b.GenusRadioBtnGroup.formAssociated=!0,It([M.property({attribute:"
|
|
942
|
+
`}},b.GenusRadioBtnGroup.styles=[Wa,Za,Xa,Ua,Ka,qa,Ja],b.GenusRadioBtnGroup.formAssociated=!0,It([M.property({attribute:"label-text"})],b.GenusRadioBtnGroup.prototype,"labelText",2),It([M.property({attribute:"options",type:Array})],b.GenusRadioBtnGroup.prototype,"options",2),It([M.property({attribute:"name",reflect:!0})],b.GenusRadioBtnGroup.prototype,"inputName",2),It([M.property({attribute:"selected-option"})],b.GenusRadioBtnGroup.prototype,"selectedOption",2),It([M.property({attribute:"checked-radio-icon"})],b.GenusRadioBtnGroup.prototype,"checkedRadioIcon",2),It([M.property({attribute:"unchecked-radio-icon"})],b.GenusRadioBtnGroup.prototype,"uncheckedRadioIcon",2),It([M.property({attribute:"without-icon",type:Boolean})],b.GenusRadioBtnGroup.prototype,"withoutIcon",2),b.GenusRadioBtnGroup=It([M.customElement("genus-radiobtn-group")],b.GenusRadioBtnGroup);const ir=p.css`
|
|
943
943
|
*
|
|
944
944
|
{
|
|
945
945
|
margin: 0;
|
|
@@ -1440,7 +1440,7 @@
|
|
|
1440
1440
|
`,Ue="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eIconly/Light/Arrow%20-%20Down%202%3c/title%3e%3cg%20id='Iconly/Light/Arrow---Down-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cg%20id='Arrow---Down-2'%20transform='translate(5.000000,%208.500000)'%20stroke='%23203e70'%20stroke-width='1.25'%3e%3cpolyline%20id='Stroke-1'%20points='14%200%207%207%200%200'%3e%3c/polyline%3e%3c/g%3e%3c/g%3e%3c/svg%3e";var Pr=Object.defineProperty,Or=Object.getOwnPropertyDescriptor,ct=(i,t,e,s)=>{for(var n=s>1?void 0:s?Or(t,e):t,o=i.length-1,a;o>=0;o--)(a=i[o])&&(n=(s?a(t,e,n):a(n))||n);return s&&n&&Pr(t,e,n),n};let $=class extends p.LitElement{constructor(){super(),this.labelText="",this.inputValue="",this.inputName="",this.placeholderText="",this.searchPlaceholderText="",this.options=[],this.withoutLabel=!1,this.withFilter=!1,this.displayPosition="bottom",this.inputIconSrc="",this.selectOption=i=>{let t=i.target.getAttribute("option-value");this._showOptionsCSS="",this.inputValue=t,this._internals.setFormValue(t),this.dispatchEvent(new CustomEvent("selected",{detail:t}))},this.getInputValue=i=>{this.dispatchEvent(new CustomEvent("typed",{detail:i.target.value}))},this.renderDropDownControl=()=>{let i=p.html``;return this.withoutLabel?this.withFilter?i=p.html`
|
|
1441
1441
|
<div class='drop-down'>
|
|
1442
1442
|
<div class='form-field form-field--without-label'>
|
|
1443
|
-
<input class='input-control select-control' type='text' @click=${this._toggleOptions} placeholder=${this.placeholderText} value=${this.inputValue} readonly />
|
|
1443
|
+
<input class='input-control select-control' type='text' @click=${this._toggleOptions} placeholder=${this.placeholderText} value=${this.inputValue} name=${this.inputName} readonly />
|
|
1444
1444
|
<div class='icon-container'>
|
|
1445
1445
|
<img class="component-icon" src='${this.inputIconSrc||Ue}' />
|
|
1446
1446
|
</div>
|
|
@@ -1456,7 +1456,7 @@
|
|
|
1456
1456
|
</div>`:i=p.html`
|
|
1457
1457
|
<div class='drop-down'>
|
|
1458
1458
|
<div class='form-field form-field--without-label'>
|
|
1459
|
-
<input class='input-control select-control' type='text' @click=${this._toggleOptions} placeholder=${this.placeholderText} value=${this.inputValue} readonly />
|
|
1459
|
+
<input class='input-control select-control' type='text' @click=${this._toggleOptions} placeholder=${this.placeholderText} value=${this.inputValue} name=${this.inputName} readonly />
|
|
1460
1460
|
<div class='icon-container'>
|
|
1461
1461
|
<img class="component-icon" src='${this.inputIconSrc||Ue}' />
|
|
1462
1462
|
</div>
|
|
@@ -1468,7 +1468,7 @@
|
|
|
1468
1468
|
<div class='drop-down drop-down--with-filter'>
|
|
1469
1469
|
<div class='form-field'>
|
|
1470
1470
|
<label class='input-label'>${this.labelText}</label>
|
|
1471
|
-
<input class='input-control select-control' type='text' @click=${this._toggleOptions} placeholder=${this.placeholderText} value=${this.inputValue} readonly />
|
|
1471
|
+
<input class='input-control select-control' type='text' @click=${this._toggleOptions} placeholder=${this.placeholderText} value=${this.inputValue} name=${this.inputName} readonly />
|
|
1472
1472
|
<div class='icon-container'>
|
|
1473
1473
|
<img class="component-icon" src='${this.inputIconSrc||Ue}' />
|
|
1474
1474
|
</div>
|
|
@@ -1485,7 +1485,7 @@
|
|
|
1485
1485
|
<div class='drop-down'>
|
|
1486
1486
|
<div class='form-field'>
|
|
1487
1487
|
<label class='input-label'>${this.labelText}</label>
|
|
1488
|
-
<input class='input-control select-control' type='text' @click=${this._toggleOptions} placeholder=${this.placeholderText} value=${this.inputValue} readonly />
|
|
1488
|
+
<input class='input-control select-control' type='text' @click=${this._toggleOptions} placeholder=${this.placeholderText} value=${this.inputValue} name=${this.inputName} readonly />
|
|
1489
1489
|
<div class='icon-container'>
|
|
1490
1490
|
<img class="component-icon" src='${this.inputIconSrc||Ue}' />
|
|
1491
1491
|
</div>
|
|
@@ -1493,7 +1493,7 @@
|
|
|
1493
1493
|
<ul class='options options-${this.displayPosition} ${this._showOptionsCSS}' @click=${this.selectOption}>
|
|
1494
1494
|
<slot></slot>
|
|
1495
1495
|
</ul>
|
|
1496
|
-
</div>`,i},this._showOptionsCSS="",this._toggleOptions=()=>{this.withFilter?this._showOptionsCSS=this._showOptionsCSS?"":`filter-container-${this.displayPosition}--show`:this._showOptionsCSS=this._showOptionsCSS?"":`options-${this.displayPosition}--show`},this._internals=this.attachInternals()}render(){return this.renderDropDownControl()}};$.styles=[yr,vr,Ir,Ls,Er,Ss,kr,Qr],$.formAssociated=!0,ct([M.property({attribute:"label-text"})],$.prototype,"labelText",2),ct([M.property({attribute:"input-value"})],$.prototype,"inputValue",2),ct([M.property({attribute:"name",reflect:!0})],$.prototype,"inputName",2),ct([M.property({attribute:"placeholder-text"})],$.prototype,"placeholderText",2),ct([M.property({attribute:"search-placeholder-text"})],$.prototype,"searchPlaceholderText",2),ct([M.property({attribute:"options",type:Array})],$.prototype,"options",2),ct([M.property({attribute:"without-label",type:Boolean})],$.prototype,"withoutLabel",2),ct([M.property({attribute:"with-filter",type:Boolean})],$.prototype,"withFilter",2),ct([M.property({attribute:"display-position"})],$.prototype,"displayPosition",2),ct([M.property({attribute:"
|
|
1496
|
+
</div>`,i},this._showOptionsCSS="",this._toggleOptions=()=>{this.withFilter?this._showOptionsCSS=this._showOptionsCSS?"":`filter-container-${this.displayPosition}--show`:this._showOptionsCSS=this._showOptionsCSS?"":`options-${this.displayPosition}--show`},this._internals=this.attachInternals()}render(){return this.renderDropDownControl()}};$.styles=[yr,vr,Ir,Ls,Er,Ss,kr,Qr],$.formAssociated=!0,ct([M.property({attribute:"label-text"})],$.prototype,"labelText",2),ct([M.property({attribute:"input-value"})],$.prototype,"inputValue",2),ct([M.property({attribute:"name",reflect:!0})],$.prototype,"inputName",2),ct([M.property({attribute:"placeholder-text"})],$.prototype,"placeholderText",2),ct([M.property({attribute:"search-placeholder-text"})],$.prototype,"searchPlaceholderText",2),ct([M.property({attribute:"options",type:Array})],$.prototype,"options",2),ct([M.property({attribute:"without-label",type:Boolean})],$.prototype,"withoutLabel",2),ct([M.property({attribute:"with-filter",type:Boolean})],$.prototype,"withFilter",2),ct([M.property({attribute:"display-position"})],$.prototype,"displayPosition",2),ct([M.property({attribute:"dropdown-icon"})],$.prototype,"inputIconSrc",2),ct([M.state()],$.prototype,"_showOptionsCSS",2),$=ct([M.customElement("genus-dropdown")],$);var zr=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,Rs=(i,t,e,s)=>{for(var n=s>1?void 0:s?Tr(t,e):t,o=i.length-1,a;o>=0;o--)(a=i[o])&&(n=(s?a(t,e,n):a(n))||n);return s&&n&&zr(t,e,n),n};let ge=class extends p.LitElement{constructor(){super(...arguments),this.optionValue=""}render(){return p.html`
|
|
1497
1497
|
<li class='options__list-item' option-value=${this.optionValue}>
|
|
1498
1498
|
<slot></slot>
|
|
1499
1499
|
</li>
|