genus-ui 1.82.12 → 1.82.17
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.umd.js
CHANGED
|
@@ -368,7 +368,7 @@
|
|
|
368
368
|
place-items: center;
|
|
369
369
|
cursor: pointer;
|
|
370
370
|
}
|
|
371
|
-
`,Ys="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%3cstyle%3e%20%23Profile%20{%20fill:%20%23203e70;%20}%20%3c/style%3e%3ctitle%3eIconly/Bold/Profile%3c/title%3e%3cg%20id='Iconly/Bold/Profile'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Profile'%20transform='translate(4.000000,%202.000000)'%20fill='%23000000'%20fill-rule='nonzero'%3e%3cpath%20d='M8,13.1739317%20C12.338627,13.1739317%2016,13.8789388%2016,16.598966%20C16,19.3199932%2012.314618,20%208,20%20C3.66237339,20%205.68434189e-14,19.2949929%205.68434189e-14,16.5749657%20C5.68434189e-14,13.8539385%203.68538202,13.1739317%208,13.1739317%20Z%20M8,-6.03961325e-14%20C10.9391022,-6.03961325e-14%2013.2939852,2.35402354%2013.2939852,5.29105291%20C13.2939852,8.22808228%2010.9391022,10.5831058%208,10.5831058%20C5.06189821,10.5831058%202.70601476,8.22808228%202.70601476,5.29105291%20C2.70601476,2.35402354%205.06189821,-6.03961325e-14%208,-6.03961325e-14%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",xs="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%3cstyle%3e%20%23Password%20{%20fill:%20%23203e70;%20}%20%3c/style%3e%3ctitle%3eIconly/Bold/Password%3c/title%3e%3cg%20id='Iconly/Bold/Password'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Password'%20transform='translate(1.999700,%201.999200)'%20fill='%23000000'%20fill-rule='nonzero'%3e%3cpath%20d='M14.335,0%20C17.723,0%2020,2.378%2020,5.917%20L20,5.917%20L20,14.084%20C20,17.623%2017.723,20%2014.334,20%20L14.334,20%20L5.666,20%20C2.277,20%200,17.623%200,14.084%20L0,14.084%20L0,5.917%20C0,2.378%202.277,0%205.666,0%20L5.666,0%20Z%20M6.841,7.399%20C5.407,7.399%204.24,8.566%204.24,10%20C4.24,11.435%205.407,12.602%206.841,12.602%20C8.013,12.602%208.995,11.818%209.319,10.75%20L9.319,10.75%20L11.431,10.75%20L11.431,11.852%20C11.431,12.266%2011.767,12.602%2012.181,12.602%20C12.595,12.602%2012.931,12.266%2012.931,11.852%20L12.931,11.852%20L12.931,10.75%20L14.261,10.75%20L14.261,11.852%20C14.261,12.266%2014.597,12.602%2015.011,12.602%20C15.425,12.602%2015.761,12.266%2015.761,11.852%20L15.761,11.852%20L15.761,10%20C15.761,9.586%2015.425,9.25%2015.011,9.25%20L15.011,9.25%20L9.319,9.25%20C8.995,8.183%208.013,7.399%206.841,7.399%20Z%20M6.8411,8.8989%20C7.4481,8.8989%207.9431,9.3929%207.9431,10.0009%20C7.9431,10.6079%207.4481,11.1019%206.8411,11.1019%20C6.2341,11.1019%205.7391,10.6079%205.7391,10.0009%20C5.7391,9.3929%206.2341,8.8989%206.8411,8.8989%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Cs="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%3cstyle%3e%20%23Message%20{%20fill:%20%23203e70;%20}%20%3c/style%3e%3ctitle%3eIconly/Bold/Message%3c/title%3e%3cg%20id='Iconly/Bold/Message'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Message'%20transform='translate(2.000400,%203.000000)'%20fill='%23000000'%20fill-rule='nonzero'%3e%3cpath%20d='M14.939,0%20C16.28,0%2017.57,0.53%2018.519,1.481%20C19.469,2.43%2020,3.71%2020,5.05%20L20,5.05%20L20,12.95%20C20,15.74%2017.73,18%2014.939,18%20L14.939,18%20L5.06,18%20C2.269,18%200,15.74%200,12.95%20L0,12.95%20L0,5.05%20C0,2.26%202.259,0%205.06,0%20L5.06,0%20Z%20M16.07,5.2%20C15.86,5.189%2015.66,5.26%2015.509,5.4%20L15.509,5.4%20L11,9%20C10.42,9.481%209.589,9.481%209,9%20L9,9%20L4.5,5.4%20C4.189,5.17%203.759,5.2%203.5,5.47%20C3.23,5.74%203.2,6.17%203.429,6.47%20L3.429,6.47%20L3.56,6.6%20L8.11,10.15%20C8.67,10.59%209.349,10.83%2010.06,10.83%20C10.769,10.83%2011.46,10.59%2012.019,10.15%20L12.019,10.15%20L16.53,6.54%20L16.61,6.46%20C16.849,6.17%2016.849,5.75%2016.599,5.46%20C16.46,5.311%2016.269,5.22%2016.07,5.2%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",ys="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%3cstyle%3e%20%23Calendar%20{%20fill:%20%23203e70;%20}%20%3c/style%3e%3ctitle%3eIconly/Bold/Calendar%3c/title%3e%3cg%20id='Iconly/Bold/Calendar'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Calendar'%20transform='translate(3.000000,%202.000000)'%20fill='%23000000'%20fill-rule='nonzero'%3e%3cpath%20d='M12.6496583,2.25524422e-06%20C13.0742093,-0.000994978687%2013.4099008,0.32883983%2013.4108881,0.768619575%20L13.4108881,0.768619575%20L13.4118754,1.51824414%20C16.1665203,1.73413601%2017.9861656,3.61119592%2017.9891276,6.48975425%20L17.9891276,6.48975425%20L17.9999941,14.9155344%20C18.0039375,18.0539625%2016.0322437,19.9849954%2012.8718071,19.9899929%20L12.8718071,19.9899929%20L5.15189025,20.0000023%20C2.0112002,20.0039859%200.0148231956,18.0269761%200.010873884,14.8795524%20L0.010873884,14.8795524%20L6.62739655e-06,6.55272272%20C-0.00393603445,3.6551739%201.75153297,1.78311149%204.5061778,1.53023813%20L4.5061778,1.53023813%20L4.50519047,0.780613568%20C4.50420314,0.340833823%204.83002135,0.00999951493%205.26444563,0.00999951493%20C5.6988699,0.00900001551%206.02468811,0.338834824%206.02567543,0.778614569%20L6.02567543,0.778614569%20L6.02666276,1.47826416%20L11.8913905,1.47026817%20L11.8904031,0.770618574%20C11.8894158,0.330838829%2012.215234,0.00100402015%2012.6496583,2.25524422e-06%20Z%20M13.0524881,14.1918968%20L13.0426148,14.1918968%20C12.588444,14.2028913%2012.22412,14.5837006%2012.2339933,15.0434703%20C12.2349806,15.50324%2012.6012792,15.8820503%2013.0554501,15.8920453%20C13.5185068,15.8910458%2013.8936914,15.5102365%2013.8927061,15.0404718%20C13.8927061,14.5707071%2013.5165322,14.1918968%2013.0524881,14.1918968%20L13.0524881,14.1918968%20Z%20M4.91690621,14.1928941%20C4.46273537,14.2128863%204.10729733,14.5936956%204.10828261,15.0534653%20C4.12901854,15.513235%204.50420314,15.8730548%204.95837398,15.8520653%20C5.40365886,15.8320753%205.75810957,15.4512661%205.73737569,14.9914963%20C5.72750241,14.5417216%205.36120376,14.1918968%204.91690621,14.1928941%20Z%20M8.98469714,14.1878967%20C8.53052631,14.2088883%208.1760756,14.5886981%208.1760756,15.0484678%20C8.19680948,15.5082375%208.57199408,15.8670578%209.02616491,15.8470678%20C9.47046247,15.8260783%209.82590051,15.4462686%209.80516663,14.9854993%20C9.79529335,14.5367241%209.4289947,14.1868993%208.98469714,14.1878967%20Z%20M4.91196957,10.5946962%20C4.45779873,10.6146884%204.10334802,10.9954976%204.10433329,11.4552674%20C4.1240819,11.9150371%204.50025383,12.2748569%204.95442467,12.2538674%20C5.39872222,12.2338774%205.75317294,11.8530681%205.73243905,11.3932984%20C5.72256577,10.9435237%205.35725445,10.5936989%204.91196957,10.5946962%20Z%20M8.98074783,10.5597138%20C8.526577,10.5797059%208.17113896,10.9605152%208.17212423,11.4202849%20C8.19187284,11.8800546%208.56804477,12.2388749%209.0222156,12.2188849%20C9.46651316,12.1978954%209.82096387,11.8180857%209.80121731,11.3583159%20C9.79035671,10.9085412%209.42504539,10.5587164%208.98074783,10.5597138%20Z%20M13.0485388,10.5647113%20C12.5943679,10.5747084%2012.2389299,10.9445232%2012.2399152,11.4042929%20L12.2399152,11.4042929%20L12.2399152,11.4152874%20C12.2497905,11.8750571%2012.6249751,12.2238824%2013.0801333,12.2138874%20C13.5244308,12.2028929%2013.8788815,11.8220837%2013.8690083,11.3623139%20C13.8482744,10.9225342%2013.491849,10.5637139%2013.0485388,10.5647113%20Z%20M11.8933651,3.00949727%20L6.02863742,3.01749327%20L6.02962475,3.8260883%20C6.02962475,4.25687255%205.70479387,4.59670235%205.27036959,4.59670235%20C4.83594532,4.59770185%204.50913978,4.25887155%204.50913978,3.8280873%20L4.50913978,3.8280873%20L4.50815246,3.05847275%20C2.58286306,3.25137613%201.51753626,4.38280948%201.52049208,6.55072372%20L1.52049208,6.55072372%20L1.52148557,6.86156804%20L16.4696299,6.84157805%20L16.4696299,6.49175325%20C16.4271748,4.3428295%2015.3490128,3.21539415%2013.4138501,3.04747825%20L13.4138501,3.04747825%20L13.4148374,3.81709281%20C13.4148374,4.24687756%2013.0801333,4.58770686%2012.6555823,4.58770686%20C12.221158,4.58870636%2011.8943525,4.24887655%2011.8943525,3.8190918%20L11.8943525,3.8190918%20L11.8933651,3.00949727%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",vs="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%3cstyle%3e%20%23Search%20{%20stroke:%20%23203e70;%20}%20%3c/style%3e%3ctitle%3eIconly/Light/Search%3c/title%3e%3cg%20id='Iconly/Light/Search'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cg%20id='Search'%20transform='translate(2.000000,%202.000000)'%20stroke='%23000000'%20stroke-width='1.5'%3e%3ccircle%20id='Ellipse_739'%20cx='9.76659044'%20cy='9.76659044'%20r='8.9885584'%3e%3c/circle%3e%3cline%20x1='16.0183067'%20y1='16.4851259'%20x2='19.5423342'%20y2='20.0000001'%20id='Line_181'%3e%3c/line%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Is="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%3cstyle%3e%20%23Arrow---Left-2%20{%20stroke:%20%231e9dfc;%20}%20%3c/style%3e%3ctitle%3eIconly/Light/Arrow%20-%20Left%202%3c/title%3e%3cg%20id='Iconly/Light/Arrow---Left-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cg%20id='Arrow---Left-2'%20transform='translate(12.000000,%2012.000000)%20rotate(-270.000000)%20translate(-12.000000,%20-12.000000)%20translate(5.000000,%208.500000)'%20stroke='%23000000'%20stroke-width='1.5'%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",Es="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%3cstyle%3e%20%23Arrow---Right-2%20{%20stroke:%20%231e9dfc;%20}%20%3c/style%3e%3ctitle%3eIconly/Light/Arrow%20-%20Right%202%3c/title%3e%3cg%20id='Iconly/Light/Arrow---Right-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cg%20id='Arrow---Right-2'%20transform='translate(12.000000,%2012.000000)%20rotate(-90.000000)%20translate(-12.000000,%20-12.000000)%20translate(5.000000,%208.500000)'%20stroke='%23000000'%20stroke-width='1.5'%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 xa=Object.defineProperty,Ca=Object.getOwnPropertyDescriptor,X=(i,t,e,s)=>{for(var n=s>1?void 0:s?Ca(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&&xa(t,e,n),n};b.GenusTextBox=class extends p.LitElement{constructor(){super(),this.labelText="",this.inputValue="",this.inputType="text",this.inputName="",this.inputIconSrc="",this.placeholderText="",this.withoutIcon=!1,this.withoutLabel=!1,this.withoutLabelIcon=!1,this.readOnly=!1,this.displayPosition="bottom",this.getInputValue=t=>{this._targetInput===null&&(this._targetInput=t.target),this.inputValue=this._targetInput.value,this._internals.setFormValue(this._targetInput.value),this.dispatchEvent(new CustomEvent("typed",{detail:t.target.value}))},this._monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"],this._currentMonth=new Date().getMonth(),this._currentYear=new Date().getFullYear(),this._currentDate=new Date,this._targetInput=null,this._isLeapYear=t=>t%4===0&&t%100!==0&&t%400!==0||t%100===0&&t%400===0,this._getFebDays=t=>this._isLeapYear(t)?29:28,this._showMonthsCssClass="",this._showCalenderCssClass="",this._toggleCalendar=()=>{this._showCalenderCssClass=this._showCalenderCssClass?"":`calendar-${this.displayPosition}--show`},this._selectDate=t=>{let e=new Date(this._currentYear,this._currentMonth,Number(t));this.inputValue=`${e.toLocaleString("default",{weekday:"long"})}, ${t} ${this._monthNames[e.getMonth()]} ${this._currentYear}`,this._internals.setFormValue(e.toString()),this.dispatchEvent(new CustomEvent("selected",{detail:{chosenDate:e,formattedDate:this.inputValue}})),this._showCalenderCssClass=""},this._generateDays=(t,e)=>{const s=[31,this._getFebDays(e),31,30,31,30,31,31,30,31,30,31];let n=new Date(e,t,1),o=document.createElement("div");o.classList.add("dates");for(let a=0;a<=s[t]+n.getDay()-1;a++){let r=document.createElement("div");a>=n.getDay()&&(r.classList.add("date"),r.innerHTML=(a-n.getDay()+1).toString(),a-n.getDay()+1===this._currentDate.getDate()&&e===this._currentDate.getFullYear()&&t===this._currentDate.getMonth()&&r.classList.add("current-date")),r.addEventListener("click",A=>{this._selectDate(A.target.innerHTML),A.target.classList.add("date--selected")}),o.appendChild(r)}return o},this._setMonth=t=>{this._currentMonth=t,this._showMonthsCssClass="",this._generateDays(this._currentMonth,this._currentYear)},this._previousYear=()=>{--this._currentYear,this._generateDays(this._currentMonth,this._currentYear)},this._nextYear=()=>{++this._currentYear,this._generateDays(this._currentMonth,this._currentYear)},this.renderInputControl=t=>({text:()=>{let s;return this.withoutIcon?s=p.html`
|
|
371
|
+
`,Ys="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%3cstyle%3e%20%23Profile%20{%20fill:%20%23203e70;%20}%20%3c/style%3e%3ctitle%3eIconly/Bold/Profile%3c/title%3e%3cg%20id='Iconly/Bold/Profile'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Profile'%20transform='translate(4.000000,%202.000000)'%20fill='%23000000'%20fill-rule='nonzero'%3e%3cpath%20d='M8,13.1739317%20C12.338627,13.1739317%2016,13.8789388%2016,16.598966%20C16,19.3199932%2012.314618,20%208,20%20C3.66237339,20%205.68434189e-14,19.2949929%205.68434189e-14,16.5749657%20C5.68434189e-14,13.8539385%203.68538202,13.1739317%208,13.1739317%20Z%20M8,-6.03961325e-14%20C10.9391022,-6.03961325e-14%2013.2939852,2.35402354%2013.2939852,5.29105291%20C13.2939852,8.22808228%2010.9391022,10.5831058%208,10.5831058%20C5.06189821,10.5831058%202.70601476,8.22808228%202.70601476,5.29105291%20C2.70601476,2.35402354%205.06189821,-6.03961325e-14%208,-6.03961325e-14%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",xs="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%3cstyle%3e%20%23Password%20{%20fill:%20%23203e70;%20}%20%3c/style%3e%3ctitle%3eIconly/Bold/Password%3c/title%3e%3cg%20id='Iconly/Bold/Password'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Password'%20transform='translate(1.999700,%201.999200)'%20fill='%23000000'%20fill-rule='nonzero'%3e%3cpath%20d='M14.335,0%20C17.723,0%2020,2.378%2020,5.917%20L20,5.917%20L20,14.084%20C20,17.623%2017.723,20%2014.334,20%20L14.334,20%20L5.666,20%20C2.277,20%200,17.623%200,14.084%20L0,14.084%20L0,5.917%20C0,2.378%202.277,0%205.666,0%20L5.666,0%20Z%20M6.841,7.399%20C5.407,7.399%204.24,8.566%204.24,10%20C4.24,11.435%205.407,12.602%206.841,12.602%20C8.013,12.602%208.995,11.818%209.319,10.75%20L9.319,10.75%20L11.431,10.75%20L11.431,11.852%20C11.431,12.266%2011.767,12.602%2012.181,12.602%20C12.595,12.602%2012.931,12.266%2012.931,11.852%20L12.931,11.852%20L12.931,10.75%20L14.261,10.75%20L14.261,11.852%20C14.261,12.266%2014.597,12.602%2015.011,12.602%20C15.425,12.602%2015.761,12.266%2015.761,11.852%20L15.761,11.852%20L15.761,10%20C15.761,9.586%2015.425,9.25%2015.011,9.25%20L15.011,9.25%20L9.319,9.25%20C8.995,8.183%208.013,7.399%206.841,7.399%20Z%20M6.8411,8.8989%20C7.4481,8.8989%207.9431,9.3929%207.9431,10.0009%20C7.9431,10.6079%207.4481,11.1019%206.8411,11.1019%20C6.2341,11.1019%205.7391,10.6079%205.7391,10.0009%20C5.7391,9.3929%206.2341,8.8989%206.8411,8.8989%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Cs="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%3cstyle%3e%20%23Message%20{%20fill:%20%23203e70;%20}%20%3c/style%3e%3ctitle%3eIconly/Bold/Message%3c/title%3e%3cg%20id='Iconly/Bold/Message'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Message'%20transform='translate(2.000400,%203.000000)'%20fill='%23000000'%20fill-rule='nonzero'%3e%3cpath%20d='M14.939,0%20C16.28,0%2017.57,0.53%2018.519,1.481%20C19.469,2.43%2020,3.71%2020,5.05%20L20,5.05%20L20,12.95%20C20,15.74%2017.73,18%2014.939,18%20L14.939,18%20L5.06,18%20C2.269,18%200,15.74%200,12.95%20L0,12.95%20L0,5.05%20C0,2.26%202.259,0%205.06,0%20L5.06,0%20Z%20M16.07,5.2%20C15.86,5.189%2015.66,5.26%2015.509,5.4%20L15.509,5.4%20L11,9%20C10.42,9.481%209.589,9.481%209,9%20L9,9%20L4.5,5.4%20C4.189,5.17%203.759,5.2%203.5,5.47%20C3.23,5.74%203.2,6.17%203.429,6.47%20L3.429,6.47%20L3.56,6.6%20L8.11,10.15%20C8.67,10.59%209.349,10.83%2010.06,10.83%20C10.769,10.83%2011.46,10.59%2012.019,10.15%20L12.019,10.15%20L16.53,6.54%20L16.61,6.46%20C16.849,6.17%2016.849,5.75%2016.599,5.46%20C16.46,5.311%2016.269,5.22%2016.07,5.2%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",ys="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%3cstyle%3e%20%23Calendar%20{%20fill:%20%23203e70;%20}%20%3c/style%3e%3ctitle%3eIconly/Bold/Calendar%3c/title%3e%3cg%20id='Iconly/Bold/Calendar'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Calendar'%20transform='translate(3.000000,%202.000000)'%20fill='%23000000'%20fill-rule='nonzero'%3e%3cpath%20d='M12.6496583,2.25524422e-06%20C13.0742093,-0.000994978687%2013.4099008,0.32883983%2013.4108881,0.768619575%20L13.4108881,0.768619575%20L13.4118754,1.51824414%20C16.1665203,1.73413601%2017.9861656,3.61119592%2017.9891276,6.48975425%20L17.9891276,6.48975425%20L17.9999941,14.9155344%20C18.0039375,18.0539625%2016.0322437,19.9849954%2012.8718071,19.9899929%20L12.8718071,19.9899929%20L5.15189025,20.0000023%20C2.0112002,20.0039859%200.0148231956,18.0269761%200.010873884,14.8795524%20L0.010873884,14.8795524%20L6.62739655e-06,6.55272272%20C-0.00393603445,3.6551739%201.75153297,1.78311149%204.5061778,1.53023813%20L4.5061778,1.53023813%20L4.50519047,0.780613568%20C4.50420314,0.340833823%204.83002135,0.00999951493%205.26444563,0.00999951493%20C5.6988699,0.00900001551%206.02468811,0.338834824%206.02567543,0.778614569%20L6.02567543,0.778614569%20L6.02666276,1.47826416%20L11.8913905,1.47026817%20L11.8904031,0.770618574%20C11.8894158,0.330838829%2012.215234,0.00100402015%2012.6496583,2.25524422e-06%20Z%20M13.0524881,14.1918968%20L13.0426148,14.1918968%20C12.588444,14.2028913%2012.22412,14.5837006%2012.2339933,15.0434703%20C12.2349806,15.50324%2012.6012792,15.8820503%2013.0554501,15.8920453%20C13.5185068,15.8910458%2013.8936914,15.5102365%2013.8927061,15.0404718%20C13.8927061,14.5707071%2013.5165322,14.1918968%2013.0524881,14.1918968%20L13.0524881,14.1918968%20Z%20M4.91690621,14.1928941%20C4.46273537,14.2128863%204.10729733,14.5936956%204.10828261,15.0534653%20C4.12901854,15.513235%204.50420314,15.8730548%204.95837398,15.8520653%20C5.40365886,15.8320753%205.75810957,15.4512661%205.73737569,14.9914963%20C5.72750241,14.5417216%205.36120376,14.1918968%204.91690621,14.1928941%20Z%20M8.98469714,14.1878967%20C8.53052631,14.2088883%208.1760756,14.5886981%208.1760756,15.0484678%20C8.19680948,15.5082375%208.57199408,15.8670578%209.02616491,15.8470678%20C9.47046247,15.8260783%209.82590051,15.4462686%209.80516663,14.9854993%20C9.79529335,14.5367241%209.4289947,14.1868993%208.98469714,14.1878967%20Z%20M4.91196957,10.5946962%20C4.45779873,10.6146884%204.10334802,10.9954976%204.10433329,11.4552674%20C4.1240819,11.9150371%204.50025383,12.2748569%204.95442467,12.2538674%20C5.39872222,12.2338774%205.75317294,11.8530681%205.73243905,11.3932984%20C5.72256577,10.9435237%205.35725445,10.5936989%204.91196957,10.5946962%20Z%20M8.98074783,10.5597138%20C8.526577,10.5797059%208.17113896,10.9605152%208.17212423,11.4202849%20C8.19187284,11.8800546%208.56804477,12.2388749%209.0222156,12.2188849%20C9.46651316,12.1978954%209.82096387,11.8180857%209.80121731,11.3583159%20C9.79035671,10.9085412%209.42504539,10.5587164%208.98074783,10.5597138%20Z%20M13.0485388,10.5647113%20C12.5943679,10.5747084%2012.2389299,10.9445232%2012.2399152,11.4042929%20L12.2399152,11.4042929%20L12.2399152,11.4152874%20C12.2497905,11.8750571%2012.6249751,12.2238824%2013.0801333,12.2138874%20C13.5244308,12.2028929%2013.8788815,11.8220837%2013.8690083,11.3623139%20C13.8482744,10.9225342%2013.491849,10.5637139%2013.0485388,10.5647113%20Z%20M11.8933651,3.00949727%20L6.02863742,3.01749327%20L6.02962475,3.8260883%20C6.02962475,4.25687255%205.70479387,4.59670235%205.27036959,4.59670235%20C4.83594532,4.59770185%204.50913978,4.25887155%204.50913978,3.8280873%20L4.50913978,3.8280873%20L4.50815246,3.05847275%20C2.58286306,3.25137613%201.51753626,4.38280948%201.52049208,6.55072372%20L1.52049208,6.55072372%20L1.52148557,6.86156804%20L16.4696299,6.84157805%20L16.4696299,6.49175325%20C16.4271748,4.3428295%2015.3490128,3.21539415%2013.4138501,3.04747825%20L13.4138501,3.04747825%20L13.4148374,3.81709281%20C13.4148374,4.24687756%2013.0801333,4.58770686%2012.6555823,4.58770686%20C12.221158,4.58870636%2011.8943525,4.24887655%2011.8943525,3.8190918%20L11.8943525,3.8190918%20L11.8933651,3.00949727%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",vs="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%3cstyle%3e%20%23Search%20{%20stroke:%20%23203e70;%20}%20%3c/style%3e%3ctitle%3eIconly/Light/Search%3c/title%3e%3cg%20id='Iconly/Light/Search'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cg%20id='Search'%20transform='translate(2.000000,%202.000000)'%20stroke='%23000000'%20stroke-width='1.5'%3e%3ccircle%20id='Ellipse_739'%20cx='9.76659044'%20cy='9.76659044'%20r='8.9885584'%3e%3c/circle%3e%3cline%20x1='16.0183067'%20y1='16.4851259'%20x2='19.5423342'%20y2='20.0000001'%20id='Line_181'%3e%3c/line%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Is="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%3cstyle%3e%20%23Arrow---Left-2%20{%20stroke:%20%231e9dfc;%20}%20%3c/style%3e%3ctitle%3eIconly/Light/Arrow%20-%20Left%202%3c/title%3e%3cg%20id='Iconly/Light/Arrow---Left-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cg%20id='Arrow---Left-2'%20transform='translate(12.000000,%2012.000000)%20rotate(-270.000000)%20translate(-12.000000,%20-12.000000)%20translate(5.000000,%208.500000)'%20stroke='%23000000'%20stroke-width='1.5'%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",Es="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%3cstyle%3e%20%23Arrow---Right-2%20{%20stroke:%20%231e9dfc;%20}%20%3c/style%3e%3ctitle%3eIconly/Light/Arrow%20-%20Right%202%3c/title%3e%3cg%20id='Iconly/Light/Arrow---Right-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cg%20id='Arrow---Right-2'%20transform='translate(12.000000,%2012.000000)%20rotate(-90.000000)%20translate(-12.000000,%20-12.000000)%20translate(5.000000,%208.500000)'%20stroke='%23000000'%20stroke-width='1.5'%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 xa=Object.defineProperty,Ca=Object.getOwnPropertyDescriptor,X=(i,t,e,s)=>{for(var n=s>1?void 0:s?Ca(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&&xa(t,e,n),n};b.GenusTextBox=class extends p.LitElement{constructor(){super(),this.labelText="",this.inputValue="",this.inputType="text",this.inputName="",this.inputIcon="",this.placeholderText="",this.withoutIcon=!1,this.withoutLabel=!1,this.withoutLabelIcon=!1,this.readOnly=!1,this.displayPosition="bottom",this.getInputValue=t=>{this._targetInput===null&&(this._targetInput=t.target),this.inputValue=this._targetInput.value,this._internals.setFormValue(this._targetInput.value),this.dispatchEvent(new CustomEvent("typed",{detail:t.target.value}))},this._monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"],this._currentMonth=new Date().getMonth(),this._currentYear=new Date().getFullYear(),this._currentDate=new Date,this._targetInput=null,this._isLeapYear=t=>t%4===0&&t%100!==0&&t%400!==0||t%100===0&&t%400===0,this._getFebDays=t=>this._isLeapYear(t)?29:28,this._showMonthsCssClass="",this._showCalenderCssClass="",this._toggleCalendar=()=>{this._showCalenderCssClass=this._showCalenderCssClass?"":`calendar-${this.displayPosition}--show`},this._selectDate=t=>{let e=new Date(this._currentYear,this._currentMonth,Number(t));this.inputValue=`${e.toLocaleString("default",{weekday:"long"})}, ${t} ${this._monthNames[e.getMonth()]} ${this._currentYear}`,this._internals.setFormValue(e.toString()),this.dispatchEvent(new CustomEvent("selected",{detail:{chosenDate:e,formattedDate:this.inputValue}})),this._showCalenderCssClass=""},this._generateDays=(t,e)=>{const s=[31,this._getFebDays(e),31,30,31,30,31,31,30,31,30,31];let n=new Date(e,t,1),o=document.createElement("div");o.classList.add("dates");for(let a=0;a<=s[t]+n.getDay()-1;a++){let r=document.createElement("div");a>=n.getDay()&&(r.classList.add("date"),r.innerHTML=(a-n.getDay()+1).toString(),a-n.getDay()+1===this._currentDate.getDate()&&e===this._currentDate.getFullYear()&&t===this._currentDate.getMonth()&&r.classList.add("current-date")),r.addEventListener("click",A=>{this._selectDate(A.target.innerHTML),A.target.classList.add("date--selected")}),o.appendChild(r)}return o},this._setMonth=t=>{this._currentMonth=t,this._showMonthsCssClass="",this._generateDays(this._currentMonth,this._currentYear)},this._previousYear=()=>{--this._currentYear,this._generateDays(this._currentMonth,this._currentYear)},this._nextYear=()=>{++this._currentYear,this._generateDays(this._currentMonth,this._currentYear)},this.renderInputControl=t=>({text:()=>{let s;return this.withoutIcon?s=p.html`
|
|
372
372
|
<div class='form-field form-field--without-icon'>
|
|
373
373
|
<label class='input-label'>${this.labelText}</label>
|
|
374
374
|
${this.readOnly?p.html`<input class='input-control input-control--without-icon' type='${t}' value=${this.inputValue} readonly />`:p.html`<input class='input-control input-control--without-icon' type='${t}' @input=${this.getInputValue} name='${this.inputName}' placeholder=${this.placeholderText} value=${this.inputValue} />`}
|
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
<div class='form-field form-field--without-label'>
|
|
378
378
|
<input class='input-control' type='${t}' @input=${this.getInputValue} name='${this.inputName}' placeholder=${this.placeholderText} value=${this.inputValue} />
|
|
379
379
|
<div class='icon-container'>
|
|
380
|
-
<img class="component-icon" src='${this.
|
|
380
|
+
<img class="component-icon" src='${this.inputIcon||Ys}' />
|
|
381
381
|
</div>
|
|
382
382
|
</div>`:this.withoutLabelIcon?s=p.html`
|
|
383
383
|
<div class='form-field form-field--without-label-icon'>
|
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
<label class='input-label'>${this.labelText}</label>
|
|
388
388
|
<input class='input-control' type='${t}' @input=${this.getInputValue} name='${this.inputName}' placeholder=${this.placeholderText} value=${this.inputValue} />
|
|
389
389
|
<div class='icon-container'>
|
|
390
|
-
<img class="component-icon" src='${this.
|
|
390
|
+
<img class="component-icon" src='${this.inputIcon||Ys}' />
|
|
391
391
|
</div>
|
|
392
392
|
</div>`,s},password:()=>{let s;return this.withoutIcon?s=p.html`
|
|
393
393
|
<div class='form-field form-field--without-icon'>
|
|
@@ -398,7 +398,7 @@
|
|
|
398
398
|
<div class='form-field form-field--without-label'>
|
|
399
399
|
<input class='input-control' type='${t}' @input=${this.getInputValue} name='${this.inputName}' placeholder=${this.placeholderText} />
|
|
400
400
|
<div class='icon-container'>
|
|
401
|
-
<img class="component-icon" src='${this.
|
|
401
|
+
<img class="component-icon" src='${this.inputIcon||xs}' />
|
|
402
402
|
</div>
|
|
403
403
|
</div>`:this.withoutLabelIcon?s=p.html`
|
|
404
404
|
<div class='form-field form-field--without-label-icon'>
|
|
@@ -408,7 +408,7 @@
|
|
|
408
408
|
<label class='input-label'>${this.labelText}</label>
|
|
409
409
|
<input class='input-control' type='${t}' @input=${this.getInputValue} name='${this.inputName}' placeholder=${this.placeholderText} />
|
|
410
410
|
<div class='icon-container'>
|
|
411
|
-
<img class="component-icon" src='${this.
|
|
411
|
+
<img class="component-icon" src='${this.inputIcon||xs}' />
|
|
412
412
|
</div>
|
|
413
413
|
</div>`,s},email:()=>{let s;return this.withoutIcon?s=p.html`
|
|
414
414
|
<div class='form-field form-field--without-icon'>
|
|
@@ -419,7 +419,7 @@
|
|
|
419
419
|
<div class='form-field form-field--without-label'>
|
|
420
420
|
<input class='input-control' type='${t}' @input=${this.getInputValue} name='${this.inputName}' placeholder=${this.placeholderText} value=${this.inputValue} />
|
|
421
421
|
<div class='icon-container'>
|
|
422
|
-
<img class="component-icon" src='${this.
|
|
422
|
+
<img class="component-icon" src='${this.inputIcon||Cs}' />
|
|
423
423
|
</div>
|
|
424
424
|
</div>`:this.withoutLabelIcon?s=p.html`
|
|
425
425
|
<div class='form-field form-field--without-label-icon'>
|
|
@@ -429,27 +429,27 @@
|
|
|
429
429
|
<label class='input-label'>${this.labelText}</label>
|
|
430
430
|
<input class='input-control' type='${t}' @input=${this.getInputValue} name='${this.inputName}' placeholder=${this.placeholderText} value=${this.inputValue} />
|
|
431
431
|
<div class='icon-container'>
|
|
432
|
-
<img class="component-icon" src='${this.
|
|
432
|
+
<img class="component-icon" src='${this.inputIcon||Cs}' />
|
|
433
433
|
</div>
|
|
434
434
|
</div>`,s},search:()=>{let s;return this.withoutLabel?s=p.html`
|
|
435
435
|
<div class='form-field form-field--without-label'>
|
|
436
436
|
<input class='input-control' type='text' @input=${this.getInputValue} name='${this.inputName}' value=${this.inputValue} placeholder=${this.placeholderText} />
|
|
437
437
|
<div class='icon-container'>
|
|
438
|
-
<img class="component-icon" src='${this.
|
|
438
|
+
<img class="component-icon" src='${this.inputIcon||vs}' />
|
|
439
439
|
</div>
|
|
440
440
|
</div>`:s=p.html`
|
|
441
441
|
<div class='form-field'>
|
|
442
442
|
<label class='input-label'>${this.labelText}</label>
|
|
443
443
|
<input class='input-control' type='text' @input=${this.getInputValue} name='${this.inputName}' value=${this.inputValue} placeholder=${this.placeholderText} />
|
|
444
444
|
<div class='icon-container'>
|
|
445
|
-
<img class="component-icon" src='${this.
|
|
445
|
+
<img class="component-icon" src='${this.inputIcon||vs}' />
|
|
446
446
|
</div>
|
|
447
447
|
</div>`,s},date:()=>{let s;return this.withoutLabel?s=p.html`
|
|
448
448
|
<div class='date-picker'>
|
|
449
449
|
<div class='form-field form-field--without-label'>
|
|
450
450
|
<input class='input-control date-control' type='text' @click=${this._toggleCalendar} value=${this.inputValue} placeholder=${this.placeholderText} readonly />
|
|
451
451
|
<div class='icon-container'>
|
|
452
|
-
<img class="component-icon" src='${this.
|
|
452
|
+
<img class="component-icon" src='${this.inputIcon||ys}' />
|
|
453
453
|
</div>
|
|
454
454
|
</div>
|
|
455
455
|
<div class='calendar calendar-${this.displayPosition} ${this._showCalenderCssClass}'>
|
|
@@ -488,7 +488,7 @@
|
|
|
488
488
|
<label class='input-label'>${this.labelText}</label>
|
|
489
489
|
<input class='input-control date-control' type='text' @click=${this._toggleCalendar} value=${this.inputValue} placeholder=${this.placeholderText} readonly />
|
|
490
490
|
<div class='icon-container'>
|
|
491
|
-
<img class="component-icon" src='${this.
|
|
491
|
+
<img class="component-icon" src='${this.inputIcon||ys}' />
|
|
492
492
|
</div>
|
|
493
493
|
</div>
|
|
494
494
|
<div class='calendar calendar-${this.displayPosition} ${this._showCalenderCssClass}'>
|
|
@@ -521,7 +521,7 @@
|
|
|
521
521
|
</div>
|
|
522
522
|
</div>
|
|
523
523
|
</div>
|
|
524
|
-
`,s}})[t](),this._internals=this.attachInternals()}updated(){this.inputValue===""&&this._targetInput!=null&&(this._targetInput.value=""),this.inputValue&&this._targetInput!=null&&(this._targetInput.value=this.inputValue)}render(){return this.renderInputControl(this.inputType)}},b.GenusTextBox.styles=[Ya,Ba,Ga,ma,Ma,Da,ba],b.GenusTextBox.formAssociated=!0,X([M.property({attribute:"label-text"})],b.GenusTextBox.prototype,"labelText",2),X([M.property({attribute:"input-value"})],b.GenusTextBox.prototype,"inputValue",2),X([M.property({attribute:"input-type"})],b.GenusTextBox.prototype,"inputType",2),X([M.property({attribute:"name",reflect:!0})],b.GenusTextBox.prototype,"inputName",2),X([M.property({attribute:"
|
|
524
|
+
`,s}})[t](),this._internals=this.attachInternals()}updated(){this.inputValue===""&&this._targetInput!=null&&(this._targetInput.value=""),this.inputValue&&this._targetInput!=null&&(this._targetInput.value=this.inputValue)}render(){return this.renderInputControl(this.inputType)}},b.GenusTextBox.styles=[Ya,Ba,Ga,ma,Ma,Da,ba],b.GenusTextBox.formAssociated=!0,X([M.property({attribute:"label-text"})],b.GenusTextBox.prototype,"labelText",2),X([M.property({attribute:"input-value"})],b.GenusTextBox.prototype,"inputValue",2),X([M.property({attribute:"input-type"})],b.GenusTextBox.prototype,"inputType",2),X([M.property({attribute:"name",reflect:!0})],b.GenusTextBox.prototype,"inputName",2),X([M.property({attribute:"input-icon"})],b.GenusTextBox.prototype,"inputIcon",2),X([M.property({attribute:"placeholder-text"})],b.GenusTextBox.prototype,"placeholderText",2),X([M.property({attribute:"without-icon",type:Boolean})],b.GenusTextBox.prototype,"withoutIcon",2),X([M.property({attribute:"without-label",type:Boolean})],b.GenusTextBox.prototype,"withoutLabel",2),X([M.property({attribute:"without-label-icon",type:Boolean})],b.GenusTextBox.prototype,"withoutLabelIcon",2),X([M.property({attribute:"read-only",type:Boolean})],b.GenusTextBox.prototype,"readOnly",2),X([M.property({attribute:"display-position"})],b.GenusTextBox.prototype,"displayPosition",2),X([M.state()],b.GenusTextBox.prototype,"_currentMonth",2),X([M.state()],b.GenusTextBox.prototype,"_currentYear",2),X([M.state()],b.GenusTextBox.prototype,"_currentDate",2),X([M.state()],b.GenusTextBox.prototype,"_targetInput",2),X([M.state()],b.GenusTextBox.prototype,"_showMonthsCssClass",2),X([M.state()],b.GenusTextBox.prototype,"_showCalenderCssClass",2),X([M.state()],b.GenusTextBox.prototype,"_generateDays",2),b.GenusTextBox=X([M.customElement("genus-textbox")],b.GenusTextBox);const ya=p.css`
|
|
525
525
|
input[type=radio]
|
|
526
526
|
{
|
|
527
527
|
display: none;
|
|
@@ -1083,7 +1083,7 @@
|
|
|
1083
1083
|
width: var(--icon-width, 1.5625rem);
|
|
1084
1084
|
height: var(--icon-height, 1.5625rem);
|
|
1085
1085
|
}
|
|
1086
|
-
`;var ar=Object.defineProperty,rr=Object.getOwnPropertyDescriptor,ie=(i,t,e,s)=>{for(var n=s>1?void 0:s?rr(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&&ar(t,e,n),n};b.GenusDataCard=class extends p.LitElement{constructor(){super(...arguments),this.dataCardTitle="",this.dataCardValue="",this.
|
|
1086
|
+
`;var ar=Object.defineProperty,rr=Object.getOwnPropertyDescriptor,ie=(i,t,e,s)=>{for(var n=s>1?void 0:s?rr(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&&ar(t,e,n),n};b.GenusDataCard=class extends p.LitElement{constructor(){super(...arguments),this.dataCardTitle="",this.dataCardValue="",this.dataCardIcon="",this.datCardLayoutDirection="row",this.withoutIcon=!1}render(){return this.withoutIcon?p.html`
|
|
1087
1087
|
<div class='data-card data-card--${this.datCardLayoutDirection} data-card--no-icon'>
|
|
1088
1088
|
<h4 class='data-card__title'>${this.dataCardTitle}</h4>
|
|
1089
1089
|
<p class='data-card__text'>${this.dataCardValue}</p>
|
|
@@ -1091,12 +1091,12 @@
|
|
|
1091
1091
|
`:p.html`
|
|
1092
1092
|
<div class='data-card data-card--${this.datCardLayoutDirection}'>
|
|
1093
1093
|
<div class='icon-container'>
|
|
1094
|
-
<img class='component-icon' src=${this.
|
|
1094
|
+
<img class='component-icon' src=${this.dataCardIcon} />
|
|
1095
1095
|
</div>
|
|
1096
1096
|
<h4 class='data-card__title'>${this.dataCardTitle}</h4>
|
|
1097
1097
|
<p class='data-card__text'>${this.dataCardValue}</p>
|
|
1098
1098
|
</div>
|
|
1099
|
-
`}},b.GenusDataCard.styles=[er,nr,ir,sr,or],ie([M.property({attribute:"card-title"})],b.GenusDataCard.prototype,"dataCardTitle",2),ie([M.property({attribute:"card-value"})],b.GenusDataCard.prototype,"dataCardValue",2),ie([M.property({attribute:"
|
|
1099
|
+
`}},b.GenusDataCard.styles=[er,nr,ir,sr,or],ie([M.property({attribute:"card-title"})],b.GenusDataCard.prototype,"dataCardTitle",2),ie([M.property({attribute:"card-value"})],b.GenusDataCard.prototype,"dataCardValue",2),ie([M.property({attribute:"data-card-icon"})],b.GenusDataCard.prototype,"dataCardIcon",2),ie([M.property({attribute:"layout-direction"})],b.GenusDataCard.prototype,"datCardLayoutDirection",2),ie([M.property({type:Boolean,attribute:"without-icon"})],b.GenusDataCard.prototype,"withoutIcon",2),b.GenusDataCard=ie([M.customElement("genus-data-card")],b.GenusDataCard);const zs=p.css`
|
|
1100
1100
|
.label-text, .options-label
|
|
1101
1101
|
{
|
|
1102
1102
|
font-family: var(--font-family, 'Sofia Pro');
|
|
@@ -1621,7 +1621,7 @@
|
|
|
1621
1621
|
|
|
1622
1622
|
.overlay
|
|
1623
1623
|
{
|
|
1624
|
-
position:
|
|
1624
|
+
position: fixed;
|
|
1625
1625
|
width: 100%;
|
|
1626
1626
|
height: 100%;
|
|
1627
1627
|
top: 0;
|
|
@@ -1674,6 +1674,8 @@
|
|
|
1674
1674
|
display: flex;
|
|
1675
1675
|
column-gap: 0.5rem;
|
|
1676
1676
|
align-items: center;
|
|
1677
|
+
width: fit-content;
|
|
1678
|
+
justify-content: end;
|
|
1677
1679
|
}
|
|
1678
1680
|
|
|
1679
1681
|
.dialog-buttons
|
|
@@ -1743,7 +1745,7 @@
|
|
|
1743
1745
|
text-align: center;
|
|
1744
1746
|
}
|
|
1745
1747
|
|
|
1746
|
-
.navigation-button
|
|
1748
|
+
.navigation-button
|
|
1747
1749
|
{
|
|
1748
1750
|
background: none;
|
|
1749
1751
|
width: 2.5rem;
|
|
@@ -1751,6 +1753,12 @@
|
|
|
1751
1753
|
padding: 0;
|
|
1752
1754
|
}
|
|
1753
1755
|
|
|
1756
|
+
.delete-action
|
|
1757
|
+
{
|
|
1758
|
+
background: none;
|
|
1759
|
+
padding: 0;
|
|
1760
|
+
}
|
|
1761
|
+
|
|
1754
1762
|
.navigation-button:hover, .delete-action:hover, .dialog-button:hover { cursor: pointer; }
|
|
1755
1763
|
|
|
1756
1764
|
.cancel-button
|
|
@@ -1882,11 +1890,11 @@
|
|
|
1882
1890
|
`}};R.styles=[Kd,Ud,Xd,Jd,qd,_d,$d],j([M.property({attribute:"table-headers",type:Array})],R.prototype,"tableHeaders",2),j([M.property({attribute:"table-title"})],R.prototype,"tableTitle",2),j([M.property({attribute:"data-source",type:Array,reflect:!0})],R.prototype,"dataSource",2),j([M.property({attribute:"specific-columns",type:Array})],R.prototype,"objectProperties",2),j([M.property({attribute:"readonly",type:Boolean})],R.prototype,"readonly",2),j([M.property({attribute:"with-pagination",type:Boolean})],R.prototype,"withPagination",2),j([M.property({attribute:"results-per-page",type:Number})],R.prototype,"resultsPerPage",2),j([M.property({attribute:"previous-icon"})],R.prototype,"previousSvgSrc",2),j([M.property({attribute:"next-icon"})],R.prototype,"nextSvgSrc",2),j([M.property({attribute:"key"})],R.prototype,"key",2),j([M.property({attribute:"anchor-attribute-value"})],R.prototype,"anchorAttrValue",2),j([M.property({attribute:"empty-state-illustration"})],R.prototype,"emptyStateSvgSrc",2),j([M.property({attribute:"row-actions",type:Array})],R.prototype,"rowActions",2),j([M.property({attribute:"view-icon"})],R.prototype,"viewSvgIconSrc",2),j([M.property({attribute:"edit-icon"})],R.prototype,"editSvgIconSrc",2),j([M.property({attribute:"delete-icon"})],R.prototype,"deleteSvgIconSrc",2),j([M.state()],R.prototype,"currentPage",2),j([M.state()],R.prototype,"totalPages",2),j([M.state()],R.prototype,"paginatedArray",2),j([M.state()],R.prototype,"dataKey",2),j([M.query(".current-page-input")],R.prototype,"targetInput",2),j([M.state()],R.prototype,"isDialogVisible",2),R=j([M.customElement("genus-table")],R);const og=Object.freeze(Object.defineProperty({__proto__:null,get GenusTable(){return R}},Symbol.toStringTag,{value:"Module"})),ag=p.css`
|
|
1883
1891
|
.toast
|
|
1884
1892
|
{
|
|
1885
|
-
position:
|
|
1893
|
+
position: fixed;
|
|
1886
1894
|
visibility: hidden;
|
|
1887
1895
|
opacity: 0;
|
|
1888
1896
|
left: 50%;
|
|
1889
|
-
|
|
1897
|
+
top: 100dvh;
|
|
1890
1898
|
padding: 0.8rem 1rem;
|
|
1891
1899
|
transform: translateX(-50%);
|
|
1892
1900
|
width: -moz-fit-content;
|
|
@@ -1898,7 +1906,7 @@
|
|
|
1898
1906
|
|
|
1899
1907
|
.toast--show-toast
|
|
1900
1908
|
{
|
|
1901
|
-
|
|
1909
|
+
top: 90dvh;
|
|
1902
1910
|
visibility: visible;
|
|
1903
1911
|
opacity: 1;
|
|
1904
1912
|
}
|
|
@@ -1913,12 +1921,13 @@
|
|
|
1913
1921
|
{
|
|
1914
1922
|
left: unset;
|
|
1915
1923
|
right: 0;
|
|
1916
|
-
|
|
1924
|
+
top: 85dvh;
|
|
1917
1925
|
transform: unset;
|
|
1918
1926
|
}
|
|
1919
1927
|
|
|
1920
1928
|
.toast--show-toast
|
|
1921
1929
|
{
|
|
1930
|
+
top: 85dvh;
|
|
1922
1931
|
right: 2rem;
|
|
1923
1932
|
visibility: visible;
|
|
1924
1933
|
opacity: 1;
|
|
@@ -2069,7 +2078,7 @@
|
|
|
2069
2078
|
width: var(--icon-width, 1.5625rem);
|
|
2070
2079
|
height: var(--icon-height, 1.5625rem);
|
|
2071
2080
|
}
|
|
2072
|
-
`;var Dg=Object.defineProperty,bg=Object.getOwnPropertyDescriptor,_t=(i,t,e,s)=>{for(var n=s>1?void 0:s?bg(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&&Dg(t,e,n),n};b.GenusDataListItem=class extends p.LitElement{constructor(){super(...arguments),this.dataHeader="",this.dataText="",this.
|
|
2081
|
+
`;var Dg=Object.defineProperty,bg=Object.getOwnPropertyDescriptor,_t=(i,t,e,s)=>{for(var n=s>1?void 0:s?bg(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&&Dg(t,e,n),n};b.GenusDataListItem=class extends p.LitElement{constructor(){super(...arguments),this.dataHeader="",this.dataText="",this.dataItemIcon="",this.withoutIcon=!1,this.withoutAction=!1,this.withoutIconandAction=!1,this.renderDataItem=()=>{let t;return this.withoutIcon?t=p.html`
|
|
2073
2082
|
<div class='data-list-item data-list-item--no-icon'>
|
|
2074
2083
|
<h6 class='data-header'>${this.dataHeader}</h4>
|
|
2075
2084
|
<p class='data-text'>${this.dataText}</p>
|
|
@@ -2078,7 +2087,7 @@
|
|
|
2078
2087
|
</div>`:this.withoutAction?t=p.html`
|
|
2079
2088
|
<div class='data-list-item data-list-item--no-action'>
|
|
2080
2089
|
<div class='icon-container'>
|
|
2081
|
-
<img class='component-icon' src=${this.
|
|
2090
|
+
<img class='component-icon' src=${this.dataItemIcon} />
|
|
2082
2091
|
</div>
|
|
2083
2092
|
<h6 class='data-header'>${this.dataHeader}</h4>
|
|
2084
2093
|
<p class='data-text'>${this.dataText}</p>
|
|
@@ -2089,13 +2098,13 @@
|
|
|
2089
2098
|
</div>`:t=p.html`
|
|
2090
2099
|
<div class='data-list-item'>
|
|
2091
2100
|
<div class='icon-container'>
|
|
2092
|
-
<img class='component-icon' src=${this.
|
|
2101
|
+
<img class='component-icon' src=${this.dataItemIcon} />
|
|
2093
2102
|
</div>
|
|
2094
2103
|
<h6 class='data-header'>${this.dataHeader}</h4>
|
|
2095
2104
|
<p class='data-text'>${this.dataText}</p>
|
|
2096
2105
|
|
|
2097
2106
|
<slot></slot>
|
|
2098
|
-
</div>`,t}}render(){return this.renderDataItem()}},b.GenusDataListItem.styles=[fg,pg,wg,mg,Mg],_t([M.property({attribute:"data-header"})],b.GenusDataListItem.prototype,"dataHeader",2),_t([M.property({attribute:"data-text"})],b.GenusDataListItem.prototype,"dataText",2),_t([M.property({attribute:"
|
|
2107
|
+
</div>`,t}}render(){return this.renderDataItem()}},b.GenusDataListItem.styles=[fg,pg,wg,mg,Mg],_t([M.property({attribute:"data-header"})],b.GenusDataListItem.prototype,"dataHeader",2),_t([M.property({attribute:"data-text"})],b.GenusDataListItem.prototype,"dataText",2),_t([M.property({attribute:"data-item-icon"})],b.GenusDataListItem.prototype,"dataItemIcon",2),_t([M.property({type:Boolean,attribute:"without-icon"})],b.GenusDataListItem.prototype,"withoutIcon",2),_t([M.property({type:Boolean,attribute:"without-action"})],b.GenusDataListItem.prototype,"withoutAction",2),_t([M.property({type:Boolean,attribute:"without-icon-action"})],b.GenusDataListItem.prototype,"withoutIconandAction",2),b.GenusDataListItem=_t([M.customElement("genus-data-list-item")],b.GenusDataListItem);const Bg=p.css`
|
|
2099
2108
|
.upload-label
|
|
2100
2109
|
{
|
|
2101
2110
|
display: flex;
|
|
@@ -2140,7 +2149,7 @@
|
|
|
2140
2149
|
.upload-label:hover { cursor: pointer; }
|
|
2141
2150
|
`,Cg=p.css`
|
|
2142
2151
|
input[type='file'] { display: none; }
|
|
2143
|
-
`,ca="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/Bold/Upload%3c/title%3e%3cg%20id='Iconly/Bold/Upload'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Upload'%20transform='translate(2.000000,%202.000000)'%20fill='%23213e70'%20fill-rule='nonzero'%3e%3cpath%20d='M1.77635684e-15,11.2874674%20C1.77635684e-15,8.87583953%201.8779102,6.89627143%204.23116222,6.78512193%20L4.44,6.7802%20L9.23,6.7802%20L9.23,12.8848512%20C9.23,13.3223512%209.57,13.6682814%2010,13.6682814%20C10.385,13.6682814%2010.7111806,13.3776039%2010.7628704,12.9921713%20L10.77,12.8848512%20L10.77,6.7802%20L15.55,6.7802%20C17.93,6.7802%2019.8853469,8.69086445%2019.9951382,11.0944886%20L20,11.3078163%20L20,16.2627581%20C20,18.6842698%2018.1220898,20.6641203%2015.7688378,20.7752778%20L15.56,20.7802%20L4.45,20.7802%20C2.06028571,20.7802%200.114097959,18.8599342%200.00483801749,16.4650885%20L1.77635684e-15,16.2525837%20L1.77635684e-15,11.2874674%20Z%20M6.5502,4.24%20C6.26838182,3.96727273%206.24276198,3.53752066%206.46582735,3.23624343%20L6.5402,3.15%20L9.4502,0.23%20C9.6002,0.08%209.7902,-1.42108547e-14%2010.0002,-1.42108547e-14%20C10.1602,-1.42108547e-14%2010.3202,0.0512%2010.44948,0.14848%20L10.5402,0.23%20L13.4502,3.15%20C13.6002,3.3%2013.6802,3.5%2013.6802,3.69%20C13.6802,3.89%2013.6002,4.09%2013.4502,4.24%20C13.1774727,4.51272727%2012.7477207,4.53752066%2012.4464434,4.31438017%20L12.3602,4.24%20L10.7702,2.64%20L10.7702,6.78%20L9.2302,6.78%20L9.2302,2.64%20L7.6402,4.24%20C7.3402,4.54%206.8502,4.54%206.5502,4.24%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e";var yg=Object.defineProperty,vg=Object.getOwnPropertyDescriptor,$t=(i,t,e,s)=>{for(var n=s>1?void 0:s?vg(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&&yg(t,e,n),n};b.GenusFileUpload=class extends p.LitElement{constructor(){super(...arguments),this.buttonText="",this.
|
|
2152
|
+
`,ca="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/Bold/Upload%3c/title%3e%3cg%20id='Iconly/Bold/Upload'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Upload'%20transform='translate(2.000000,%202.000000)'%20fill='%23213e70'%20fill-rule='nonzero'%3e%3cpath%20d='M1.77635684e-15,11.2874674%20C1.77635684e-15,8.87583953%201.8779102,6.89627143%204.23116222,6.78512193%20L4.44,6.7802%20L9.23,6.7802%20L9.23,12.8848512%20C9.23,13.3223512%209.57,13.6682814%2010,13.6682814%20C10.385,13.6682814%2010.7111806,13.3776039%2010.7628704,12.9921713%20L10.77,12.8848512%20L10.77,6.7802%20L15.55,6.7802%20C17.93,6.7802%2019.8853469,8.69086445%2019.9951382,11.0944886%20L20,11.3078163%20L20,16.2627581%20C20,18.6842698%2018.1220898,20.6641203%2015.7688378,20.7752778%20L15.56,20.7802%20L4.45,20.7802%20C2.06028571,20.7802%200.114097959,18.8599342%200.00483801749,16.4650885%20L1.77635684e-15,16.2525837%20L1.77635684e-15,11.2874674%20Z%20M6.5502,4.24%20C6.26838182,3.96727273%206.24276198,3.53752066%206.46582735,3.23624343%20L6.5402,3.15%20L9.4502,0.23%20C9.6002,0.08%209.7902,-1.42108547e-14%2010.0002,-1.42108547e-14%20C10.1602,-1.42108547e-14%2010.3202,0.0512%2010.44948,0.14848%20L10.5402,0.23%20L13.4502,3.15%20C13.6002,3.3%2013.6802,3.5%2013.6802,3.69%20C13.6802,3.89%2013.6002,4.09%2013.4502,4.24%20C13.1774727,4.51272727%2012.7477207,4.53752066%2012.4464434,4.31438017%20L12.3602,4.24%20L10.7702,2.64%20L10.7702,6.78%20L9.2302,6.78%20L9.2302,2.64%20L7.6402,4.24%20C7.3402,4.54%206.8502,4.54%206.5502,4.24%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e";var yg=Object.defineProperty,vg=Object.getOwnPropertyDescriptor,$t=(i,t,e,s)=>{for(var n=s>1?void 0:s?vg(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&&yg(t,e,n),n};b.GenusFileUpload=class extends p.LitElement{constructor(){super(...arguments),this.buttonText="",this.uploadIcon="",this.specificFileTypes="",this.withoutIcon=!1,this.withoutButtonText=!1,this.getInputValue=()=>{let t=[];if(this._fileInput.files){let e=Array.from(this._fileInput.files);for(let s of e)t.push({fileName:s==null?void 0:s.name,fileSize:(s==null?void 0:s.size)/1024>=1024?`${((s==null?void 0:s.size)/1024/1024).toFixed(1)} MB`:`${((s==null?void 0:s.size)/1024).toFixed(1)} KB`,fileData:s})}this.dispatchEvent(new CustomEvent("selected",{detail:t}))},this.renderInputControl=()=>{let t;return this.withoutIcon?t=p.html`
|
|
2144
2153
|
<input type='file' id='file-input' accept='${this.specificFileTypes}' @change='${this.getInputValue}' multiple />
|
|
2145
2154
|
<label class='upload-label upload-label--without-icon' for='file-input'>
|
|
2146
2155
|
<span class='button-text'>${this.buttonText}</span>
|
|
@@ -2148,15 +2157,15 @@
|
|
|
2148
2157
|
`:this.withoutButtonText?t=p.html`
|
|
2149
2158
|
<input type='file' id='file-input' accept='${this.specificFileTypes}' @change='${this.getInputValue}' multiple />
|
|
2150
2159
|
<label class='upload-label upload-label--without-button-text' for='file-input'>
|
|
2151
|
-
<img class='component-icon' src='${this.
|
|
2160
|
+
<img class='component-icon' src='${this.uploadIcon||ca}' />
|
|
2152
2161
|
</label>
|
|
2153
2162
|
`:t=p.html`
|
|
2154
2163
|
<input type='file' id='file-input' accept='${this.specificFileTypes}' @change='${this.getInputValue}' multiple />
|
|
2155
2164
|
<label class='upload-label' for='file-input'>
|
|
2156
|
-
<img class='component-icon' src='${this.
|
|
2165
|
+
<img class='component-icon' src='${this.uploadIcon||ca}' />
|
|
2157
2166
|
<span class='button-text'>${this.buttonText}</span>
|
|
2158
2167
|
</label>
|
|
2159
|
-
`,t}}render(){return this.renderInputControl()}},b.GenusFileUpload.styles=[xg,Yg,Gg,Cg,Bg],$t([M.property({attribute:"button-text"})],b.GenusFileUpload.prototype,"buttonText",2),$t([M.property({attribute:"
|
|
2168
|
+
`,t}}render(){return this.renderInputControl()}},b.GenusFileUpload.styles=[xg,Yg,Gg,Cg,Bg],$t([M.property({attribute:"button-text"})],b.GenusFileUpload.prototype,"buttonText",2),$t([M.property({attribute:"upload-icon"})],b.GenusFileUpload.prototype,"uploadIcon",2),$t([M.property({attribute:"file-types"})],b.GenusFileUpload.prototype,"specificFileTypes",2),$t([M.property({type:Boolean,attribute:"without-icon"})],b.GenusFileUpload.prototype,"withoutIcon",2),$t([M.property({type:Boolean,attribute:"without-button-text"})],b.GenusFileUpload.prototype,"withoutButtonText",2),$t([M.query("#file-input")],b.GenusFileUpload.prototype,"_fileInput",2),b.GenusFileUpload=$t([M.customElement("genus-file-upload")],b.GenusFileUpload),(()=>{let i=`
|
|
2160
2169
|
@font-face
|
|
2161
2170
|
{
|
|
2162
2171
|
font-family: 'Sofia Pro';
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { LitElement } from 'lit';
|
|
|
2
2
|
export declare class GenusDataCard extends LitElement {
|
|
3
3
|
dataCardTitle: string;
|
|
4
4
|
dataCardValue: string;
|
|
5
|
-
|
|
5
|
+
dataCardIcon: string;
|
|
6
6
|
datCardLayoutDirection: string;
|
|
7
7
|
withoutIcon: boolean;
|
|
8
8
|
static styles: import("lit").CSSResult[];
|
|
@@ -2,7 +2,7 @@ import { LitElement, TemplateResult } from 'lit';
|
|
|
2
2
|
export declare class GenusDataListItem extends LitElement {
|
|
3
3
|
dataHeader: string;
|
|
4
4
|
dataText: string;
|
|
5
|
-
|
|
5
|
+
dataItemIcon: string;
|
|
6
6
|
withoutIcon: boolean;
|
|
7
7
|
withoutAction: boolean;
|
|
8
8
|
withoutIconandAction: boolean;
|