genus-ui 1.87.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 +12 -15
- package/dist/index.umd.js +12 -15
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1164,11 +1164,7 @@ const Ug = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1164
1164
|
return gt;
|
|
1165
1165
|
}
|
|
1166
1166
|
}, Symbol.toStringTag, { value: "Module" })), or = x`
|
|
1167
|
-
.label-text
|
|
1168
|
-
{
|
|
1169
|
-
color: var(--radio-button-font-color, #213e70);
|
|
1170
|
-
order: 2;
|
|
1171
|
-
}
|
|
1167
|
+
.label-text { order: 2; }
|
|
1172
1168
|
|
|
1173
1169
|
.genus-radiobtn-label
|
|
1174
1170
|
{
|
|
@@ -1193,13 +1189,14 @@ const Ug = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1193
1189
|
{
|
|
1194
1190
|
font-family: var(--label-text-font-family, 'Sofia Pro');
|
|
1195
1191
|
font-size: var(--label-text-font-size, 1rem);
|
|
1192
|
+
color: var(--label-text-font-color, #213e70);
|
|
1196
1193
|
}
|
|
1197
1194
|
|
|
1198
|
-
.
|
|
1195
|
+
.group-label
|
|
1199
1196
|
{
|
|
1200
|
-
font-family: var(--
|
|
1201
|
-
font-size: var(--
|
|
1202
|
-
color: var(--
|
|
1197
|
+
font-family: var(--group-label-font-family, 'Sofia Pro');
|
|
1198
|
+
font-size: var(--group-label-font-size, 1rem);
|
|
1199
|
+
color: var(--group-label-color, #213e70);
|
|
1203
1200
|
}
|
|
1204
1201
|
`, rr = x`
|
|
1205
1202
|
.form-field
|
|
@@ -1316,7 +1313,7 @@ let Mt = class extends tt {
|
|
|
1316
1313
|
Mt.styles = [or, ar, lr, rr, Ar, hr, cr];
|
|
1317
1314
|
Mt.formAssociated = !0;
|
|
1318
1315
|
Zt([
|
|
1319
|
-
G({ attribute: "
|
|
1316
|
+
G({ attribute: "label-text" })
|
|
1320
1317
|
], Mt.prototype, "labelText", 2);
|
|
1321
1318
|
Zt([
|
|
1322
1319
|
G({ attribute: "options", type: Array })
|
|
@@ -1972,7 +1969,7 @@ let at = class extends tt {
|
|
|
1972
1969
|
return this.withoutLabel ? this.withFilter ? i = B`
|
|
1973
1970
|
<div class='drop-down'>
|
|
1974
1971
|
<div class='form-field form-field--without-label'>
|
|
1975
|
-
<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 />
|
|
1976
1973
|
<div class='icon-container'>
|
|
1977
1974
|
<img class="component-icon" src='${this.inputIconSrc || ni}' />
|
|
1978
1975
|
</div>
|
|
@@ -1988,7 +1985,7 @@ let at = class extends tt {
|
|
|
1988
1985
|
</div>` : i = B`
|
|
1989
1986
|
<div class='drop-down'>
|
|
1990
1987
|
<div class='form-field form-field--without-label'>
|
|
1991
|
-
<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 />
|
|
1992
1989
|
<div class='icon-container'>
|
|
1993
1990
|
<img class="component-icon" src='${this.inputIconSrc || ni}' />
|
|
1994
1991
|
</div>
|
|
@@ -2000,7 +1997,7 @@ let at = class extends tt {
|
|
|
2000
1997
|
<div class='drop-down drop-down--with-filter'>
|
|
2001
1998
|
<div class='form-field'>
|
|
2002
1999
|
<label class='input-label'>${this.labelText}</label>
|
|
2003
|
-
<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 />
|
|
2004
2001
|
<div class='icon-container'>
|
|
2005
2002
|
<img class="component-icon" src='${this.inputIconSrc || ni}' />
|
|
2006
2003
|
</div>
|
|
@@ -2017,7 +2014,7 @@ let at = class extends tt {
|
|
|
2017
2014
|
<div class='drop-down'>
|
|
2018
2015
|
<div class='form-field'>
|
|
2019
2016
|
<label class='input-label'>${this.labelText}</label>
|
|
2020
|
-
<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 />
|
|
2021
2018
|
<div class='icon-container'>
|
|
2022
2019
|
<img class="component-icon" src='${this.inputIconSrc || ni}' />
|
|
2023
2020
|
</div>
|
|
@@ -2064,7 +2061,7 @@ ft([
|
|
|
2064
2061
|
G({ attribute: "display-position" })
|
|
2065
2062
|
], at.prototype, "displayPosition", 2);
|
|
2066
2063
|
ft([
|
|
2067
|
-
G({ attribute: "
|
|
2064
|
+
G({ attribute: "dropdown-icon" })
|
|
2068
2065
|
], at.prototype, "inputIconSrc", 2);
|
|
2069
2066
|
ft([
|
|
2070
2067
|
J()
|
package/dist/index.umd.js
CHANGED
|
@@ -814,11 +814,7 @@
|
|
|
814
814
|
<slot></slot>
|
|
815
815
|
</div>
|
|
816
816
|
`}};We.styles=[Qs,Ps],We=Va([M.customElement("genus-step-content")],We);const ja=Object.freeze(Object.defineProperty({__proto__:null,get GenusStepContent(){return We},get GenusStepWizard(){return at}},Symbol.toStringTag,{value:"Module"})),Wa=p.css`
|
|
817
|
-
.label-text
|
|
818
|
-
{
|
|
819
|
-
color: var(--radio-button-font-color, #213e70);
|
|
820
|
-
order: 2;
|
|
821
|
-
}
|
|
817
|
+
.label-text { order: 2; }
|
|
822
818
|
|
|
823
819
|
.genus-radiobtn-label
|
|
824
820
|
{
|
|
@@ -843,13 +839,14 @@
|
|
|
843
839
|
{
|
|
844
840
|
font-family: var(--label-text-font-family, 'Sofia Pro');
|
|
845
841
|
font-size: var(--label-text-font-size, 1rem);
|
|
842
|
+
color: var(--label-text-font-color, #213e70);
|
|
846
843
|
}
|
|
847
844
|
|
|
848
|
-
.
|
|
845
|
+
.group-label
|
|
849
846
|
{
|
|
850
|
-
font-family: var(--
|
|
851
|
-
font-size: var(--
|
|
852
|
-
color: var(--
|
|
847
|
+
font-family: var(--group-label-font-family, 'Sofia Pro');
|
|
848
|
+
font-size: var(--group-label-font-size, 1rem);
|
|
849
|
+
color: var(--group-label-color, #213e70);
|
|
853
850
|
}
|
|
854
851
|
`,Ua=p.css`
|
|
855
852
|
.form-field
|
|
@@ -942,7 +939,7 @@
|
|
|
942
939
|
`)}
|
|
943
940
|
</div>
|
|
944
941
|
</div>
|
|
945
|
-
`}},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`
|
|
946
943
|
*
|
|
947
944
|
{
|
|
948
945
|
margin: 0;
|
|
@@ -1443,7 +1440,7 @@
|
|
|
1443
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`
|
|
1444
1441
|
<div class='drop-down'>
|
|
1445
1442
|
<div class='form-field form-field--without-label'>
|
|
1446
|
-
<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 />
|
|
1447
1444
|
<div class='icon-container'>
|
|
1448
1445
|
<img class="component-icon" src='${this.inputIconSrc||Ue}' />
|
|
1449
1446
|
</div>
|
|
@@ -1459,7 +1456,7 @@
|
|
|
1459
1456
|
</div>`:i=p.html`
|
|
1460
1457
|
<div class='drop-down'>
|
|
1461
1458
|
<div class='form-field form-field--without-label'>
|
|
1462
|
-
<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 />
|
|
1463
1460
|
<div class='icon-container'>
|
|
1464
1461
|
<img class="component-icon" src='${this.inputIconSrc||Ue}' />
|
|
1465
1462
|
</div>
|
|
@@ -1471,7 +1468,7 @@
|
|
|
1471
1468
|
<div class='drop-down drop-down--with-filter'>
|
|
1472
1469
|
<div class='form-field'>
|
|
1473
1470
|
<label class='input-label'>${this.labelText}</label>
|
|
1474
|
-
<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 />
|
|
1475
1472
|
<div class='icon-container'>
|
|
1476
1473
|
<img class="component-icon" src='${this.inputIconSrc||Ue}' />
|
|
1477
1474
|
</div>
|
|
@@ -1488,7 +1485,7 @@
|
|
|
1488
1485
|
<div class='drop-down'>
|
|
1489
1486
|
<div class='form-field'>
|
|
1490
1487
|
<label class='input-label'>${this.labelText}</label>
|
|
1491
|
-
<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 />
|
|
1492
1489
|
<div class='icon-container'>
|
|
1493
1490
|
<img class="component-icon" src='${this.inputIconSrc||Ue}' />
|
|
1494
1491
|
</div>
|
|
@@ -1496,7 +1493,7 @@
|
|
|
1496
1493
|
<ul class='options options-${this.displayPosition} ${this._showOptionsCSS}' @click=${this.selectOption}>
|
|
1497
1494
|
<slot></slot>
|
|
1498
1495
|
</ul>
|
|
1499
|
-
</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`
|
|
1500
1497
|
<li class='options__list-item' option-value=${this.optionValue}>
|
|
1501
1498
|
<slot></slot>
|
|
1502
1499
|
</li>
|