@descope/web-components-ui 3.13.3 → 3.14.0
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/cjs/index.cjs.js +1283 -729
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1577 -1022
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/8350.js +1 -1
- package/dist/umd/8350.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/DescopeDev.js.map +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js.map +1 -1
- package/dist/umd/descope-button.js +1 -1
- package/dist/umd/descope-button.js.map +1 -1
- package/dist/umd/descope-month-day-field.js +1 -1
- package/dist/umd/descope-month-day-field.js.map +1 -1
- package/dist/umd/descope-multi-line-mappings.js +1 -1
- package/dist/umd/descope-multi-line-mappings.js.map +1 -1
- package/dist/umd/descope-multi-sso.js +339 -0
- package/dist/umd/descope-multi-sso.js.LICENSE.txt +5 -0
- package/dist/umd/descope-multi-sso.js.map +1 -0
- package/dist/umd/descope-outbound-app-button.js +1 -1
- package/dist/umd/descope-outbound-app-button.js.map +1 -1
- package/dist/umd/descope-outbound-apps.js +1 -1
- package/dist/umd/descope-outbound-apps.js.map +1 -1
- package/dist/umd/descope-timer-button.js +1 -1
- package/dist/umd/descope-timer-button.js.map +1 -1
- package/dist/umd/descope-upload-file-index-js.js +2 -2
- package/dist/umd/descope-upload-file-index-js.js.map +1 -1
- package/dist/umd/descope-user-attribute-index-js.js +4 -4
- package/dist/umd/descope-user-attribute-index-js.js.map +1 -1
- package/dist/umd/descope-user-auth-method-index-js.js +1 -1
- package/dist/umd/descope-user-auth-method-index-js.js.map +1 -1
- package/dist/umd/descope-user-passkeys.js +1 -1
- package/dist/umd/descope-user-passkeys.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -1
- package/dist/umd/mapping-fields-descope-mappings-field-index-js.js.map +1 -1
- package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js +1 -1
- package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js.map +1 -1
- package/package.json +40 -39
- package/src/theme/components/index.js +2 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[1202,6724,9585],{49139(t){t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05IDVIMTVWNC41MDQ2OEMxNSA0LjIxNDA0IDE1LjIyNiA0IDE1LjUwNDcgNEgxNi40OTUzQzE2Ljc4NiA0IDE3IDQuMjI1OTUgMTcgNC41MDQ2OFY1SDE4Ljc1NjhDMTkuMzAyOCA1IDE5Ljc1IDUuNDQ3MjUgMTkuNzUgNS45OTg5NlY3LjAwMTA0QzE5Ljc1IDcuNTU3MzQgMTkuMzA1MyA4IDE4Ljc1NjggOEg1LjI0MzE3QzQuNjk3MTcgOCA0LjI1IDcuNTUyNzUgNC4yNSA3LjAwMTA0VjUuOTk4OTZDNC4yNSA1LjQ0MjY2IDQuNjk0NjYgNSA1LjI0MzE3IDVIN1Y0LjUwNDY4QzcgNC4yMTQwNCA3LjIyNTk2IDQgNy41MDQ2OCA0SDguNDk1MzJDOC43ODU5NiA0IDkgNC4yMjU5NSA5IDQuNTA0NjhWNVpNNS41MDQ2OCA5SDYuNDk1MzJDNi43ODU5NiA5IDcgOS4yMjU5NiA3IDkuNTA0NjhWMTAuNDk1M0M3I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TA0NyA5SDE4LjQ5NTNDMTguNzg2IDkgMTkgOS4yMjU5NiAxOSA5LjUwNDY4VjEwLjQ5NTNDMTkgMTAuNzg2IDE4Ljc3NCAxMSAxOC40OTUzIDExSDE3LjUwNDdDMTcuMjE0IDExIDE3IDEwLjc3NCAxNyAxMC40OTUzVjkuNTA0NjhDMTcgOS4yMTQwNCAxNy4yMjYgOSAxNy41MDQ3IDlaIiBmaWxsPSIjODA4MDgwIi8+IDwvc3ZnPiA="},19624(t,e,i){"use strict";i.d(e,{J:()=>d,T:()=>l});var n=i(63200),o=i(25964),r=i(88961),s=i(98538),a=i(10767);const l=(0,o.xE)("button"),{host:p,label:u,slottedIcon:c}={host:{selector:()=>":host"},label:{selector:"::part(label)"},slottedIcon:{selector:()=>"::slotted(descope-icon)"}};let h;const d=(0,n.Zz)((0,r.DM)({triggers:[{attr:"full-width",value:"true"}]}),(0,r.RF)({mappings:{hostWidth:{property:"width"},hostHeight:{property:"height"},hostDirection:{...p,property:"direction"},fontSize:{},fontFamily:{},fontWeight:{},cursor:{},backgroundColor:{},outlineOffset:{},outlineColor:{},outlineStyle:{},outlineWidth:{},borderRadius:{},borderColor:{},borderStyle:{},borderWidth:{},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-right",fallback:"0.875em"},{property:"padding-left",fallback:"0.875em"}],labelTextColor:{property:"color"},iconColor:{selector:()=>"::slotted(*)",property:s.S.cssVarList.fill},labelTextDecoration:{...u,property:"text-decoration"},labelSpacing:{...u,property:"gap"},textAlign:{...u,property:"justify-content",fallback:"center"},iconSize:[{...c,property:"width"},{...c,property:"height"}]}}),a.G,r.VO,r.tQ)((0,r.tz)({slots:["","prefix","label","suffix"],wrappedEleName:"vaadin-button",style:()=>`\n\t\t\t\n\t:host {\n\t\tdisplay: inline-block;\n\t\tbox-sizing: border-box;\n\t}\n\tvaadin-button::before,\n\tvaadin-button::after {\n\t\topacity: 0;\n\t}\n\tvaadin-button {\n\t\tmargin: 0;\n\t\tmin-width: 0;\n\t\twidth: 100%;\n\t\theight: auto;\n\t\tbox-shadow: none;\n\t}\n\tvaadin-button::part(label) {\n\t\tpadding: 0;\n width: 100%;\n\t}\n\tvaadin-button::part(prefix) {\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n\t\t\t\n\tvaadin-button::part(prefix),\n\tvaadin-button::part(label) {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t}\n\n\t\t\t${h}\n\t\t\tvaadin-button::part(label) { pointer-events: none; }\n\t\t\t:host {\n\t\t\t\tpadding: calc(var(${d.cssVarList.outlineWidth}) + var(${d.cssVarList.outlineOffset}));\n\t\t\t}\n :host([full-width="true"]) {\n width: var(${d.cssVarList.hostWidth});\n }\n\t\t\tvaadin-button {\n\t\t\t\theight: calc(var(${d.cssVarList.hostHeight}) - var(${d.cssVarList.outlineWidth}) - var(${d.cssVarList.outlineOffset}));\n\t\t\t}\n\t\t\t[square="true"]:not([full-width="true"]) {\n\t\t\t\twidth: calc(var(${d.cssVarList.hostWidth}) - var(${d.cssVarList.outlineWidth}) - var(${d.cssVarList.outlineOffset}));\n padding: 0;\n\t\t\t}\n\t\t`,excludeAttrsSync:["tabindex","class","style"],componentName:l})),{color:g,fontSize:y}=d.cssVarList;h=`\n\t@keyframes spin {\n\t\t0% { -webkit-transform: rotate(0deg); }\n\t\t100% { -webkit-transform: rotate(360deg); }\n\t}\n\t:host([loading="true"]) ::before {\n\t\tanimation: spin 2s linear infinite;\n\t\tposition: absolute;\n\t\tcontent: '';\n\t\tz-index: 1;\n\t\tbox-sizing: border-box;\n\t\tborder-radius: 50%;\n\t\tborder-bottom-color: transparent;\n\t\tborder-left-color: transparent;\n\t\tborder-style: solid;\n\t\tcolor: var(${g});\n\t\ttop: calc(50% - (var(${y}) / 2));\n\t\tleft: calc(50% - (var(${y}) / 2));\n\t\tborder-width: calc(var(${y}) / 10);\n\t\twidth: var(${y});\n\t\theight: var(${y});\n\t}\n\t:host([disabled="true"]),\n\t:host([loading="true"]) {\n\t\tpointer-events: none;\n\t}\n\t:host([loading="true"]) ::part(prefix),\n\t:host([loading="true"]) ::part(label) {\n\t\tvisibility: hidden;\n\t}\n`},10767(t,e,i){"use strict";i.d(e,{G:()=>n});const n=t=>class extends t{get isLoading(){return"true"===this.getAttribute("loading")}click(){this.isLoading||super.click()}}},30576(t,e,i){"use strict";i.r(e),i.d(e,{ButtonClass:()=>n.J,componentName:()=>n.T});var n=i(19624);i(83799),customElements.define(n.T,n.J)},98538(t,e,i){"use strict";i.d(e,{S:()=>l,T:()=>a});var n=i(88961),o=i(25964),r=i(8512),s=i(63200);const a=(0,o.xE)("icon"),l=(0,s.Zz)((0,n.RF)({mappings:{fill:[{},{property:r.q.cssVarList.fill}],height:{selector:()=>":host"},width:{selector:()=>":host"}}}),n.VO,n.tQ)((0,n.tz)({slots:[],wrappedEleName:"descope-image",style:()=>"\n :host {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n max-height: 100%;\n }\n ",excludeAttrsSync:["tabindex","class","style","st-height","st-width"],componentName:a}))},56737(t,e,i){"use strict";i.r(e),i.d(e,{IconClass:()=>n.S,componentName:()=>n.T}),i(53455);var n=i(98538);customElements.define(n.T,n.S)},8512(t,e,i){"use strict";i.d(e,{T:()=>l,q:()=>c});var n=i(88961),o=i(72270),r=i(63200),s=i(25964),a=i(18782);const l=(0,s.xE)("image"),p=["src","src-dark"];class u extends((0,o.qu)({componentName:l,baseSelector:"slot"})){static get observedAttributes(){return p}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<slot></slot>\n\t",(0,s.fz)("\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n :host > slot {\n width: 100%;\n height: 100%;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tdisplay: flex;\n\t\t\t\toverflow: hidden;\n\t\t\t}\n\n ::slotted(*) {\n width: 100%;\n\t\t\t}\n\n .hidden {\n display: none;\n }\n ",this)}init(){super.init?.(),this.toggleVisibility(this.getSrc)}onThemeChange(){this.renderImage()}toggleVisibility(t){t?this.classList.remove("hidden"):this.classList.add("hidden")}get altText(){return this.getAttribute("alt")||""}get legacySrc(){return this.getAttribute("src")}get themeSrc(){return this.getAttribute(`src-${this.currentThemeName}`)}get getSrc(){return this.themeSrc||this.legacySrc}updateFillColor(t){[t,...t.querySelectorAll("*[fill]")].forEach(t=>{t.setAttribute("fill",`var(${c.cssVarList.fill}, ${t.getAttribute("fill")||"''"})`)})}renderImage(){this.toggleVisibility(this.getSrc),(0,a.m)(this.getSrc,this.altText).then(t=>{this.innerHTML="",t&&(this.updateFillColor(t),this.appendChild(t))})}shouldRender(t){const e=this.getAttribute(t);return this.getSrc===e}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&this.shouldRender(t)&&this.renderImage()}}const c=(0,r.Zz)((0,n.RF)({mappings:{fill:{},height:{selector:()=>":host"},width:{selector:()=>":host"}}}),n.VO,n.tQ)(u)},18782(t,e,i){"use strict";i.d(e,{m:()=>r});var n=i(25414);const o=t=>{const e=n.A.sanitize(t,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_TAGS:["image"],FORBID_TAGS:["defs"]});return(new DOMParser).parseFromString(e,"image/svg+xml").querySelector("svg")},r=async(t,e)=>{try{let i;if((t=>t.startsWith("data:image/svg+xml;base64,"))(t)){const e=atob(t.slice(26));i=o(e)}else if("svg"===(t=>{const e=t.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i);return e?e[1]:null})(t)){const e=await fetch(t),n=await e.text();i=o(n)}else i=((t,e)=>{const i=document.createElement("img");return i.setAttribute("src",t),i.setAttribute("alt",e),i})(t,e);return i.style.setProperty("max-width","100%"),i.style.setProperty("max-height","100%"),i}catch{return null}}},53455(t,e,i){"use strict";i.r(e),i.d(e,{ImageClass:()=>n.q,componentName:()=>n.T});var n=i(8512);customElements.define(n.T,n.q)},92661(t,e,i){"use strict";i.r(e),i.d(e,{MonthDayFieldPickerClass:()=>N,componentName:()=>p}),i(27092);var n=i(72270),o=i(63200),r=i(25964),s=i(88961);const a=[31,29,31,30,31,30,31,31,30,31,30,31],l=["January","February","March","April","May","June","July","August","September","October","November","December"],p=(0,r.xE)("month-day-field-picker"),u=["initial-value","picker-months","st-host-direction","disabled","full-width"],c=(0,n.yc)({componentName:p,baseSelector:"div"}),h=(t,e)=>{const i=document.createDocumentFragment();t.forEach(({id:t,name:e})=>{const n=document.createElement("div");n.className="combo-box-item",n.setAttribute("data-id",String(t)),n.setAttribute("data-name",e),n.textContent=e,i.appendChild(n)}),e.replaceChildren(i)},{picker:d,monthInput:g,dayInput:y,inputsRow:M}={picker:{selector:()=>".picker"},monthInput:{selector:()=>".month-input"},dayInput:{selector:()=>".day-input"},inputsRow:{selector:()=>".inputs-row"}},N=(0,o.Zz)((0,s.RF)({componentNameOverride:(0,r.xE)("input-wrapper")}),(0,s.RF)({mappings:{fontSize:{},fontFamily:{},hostWidth:{selector:()=>":host",property:"width"},hostDirection:{property:"direction"},pickerPadding:{...d,property:"padding"},inputsRowGap:{...M,property:"gap"},inputWidth:[{...g,property:"width"},{...y,property:"width"}]}}),s.VO,s.tQ)(class extends c{static get observedAttributes(){return[].concat(c.observedAttributes||[],u)}#t=null;#e=null;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="picker">\n <div class="inputs-row">\n <descope-combo-box\n class="month-input"\n bordered="true"\n label-type="static"\n allow-custom-value="false"\n full-width="true"\n item-label-path="data-name"\n item-value-path="data-id"\n ></descope-combo-box>\n <descope-combo-box\n class="day-input"\n bordered="true"\n label-type="static"\n allow-custom-value="false"\n full-width="true"\n item-label-path="data-name"\n item-value-path="data-id"\n ></descope-combo-box>\n </div>\n </div>\n ',(0,r.fz)("\n :host {\n display: inline-block;\n box-sizing: border-box;\n max-width: 100%;\n user-select: none;\n -webkit-user-select: none;\n }\n\n .inputs-row {\n display: flex;\n }\n\n .inputs-row > descope-combo-box {\n flex: 1;\n min-width: 0;\n }\n ",this),this.monthInput=this.shadowRoot.querySelector(".month-input"),this.dayInput=this.shadowRoot.querySelector(".day-input")}get month(){return this.#t}set month(t){const e=Number(t);!Number.isInteger(e)||e<1||e>12?this.#t=null:this.#t=e,null!=this.#e&&null!=this.#t&&this.#e>a[this.#t-1]&&(this.#e=1),this.#i(),this.#n(),this.#o(),this.#r()}get day(){return this.#e}set day(t){const e=Number(t);!Number.isInteger(e)||e<1||null!=this.#t&&e>a[this.#t-1]?this.#e=null:this.#e=e,this.#o(),this.#r()}set value(t){if(!t)return void this.#s();const e=/^(0?[1-9]|1[0-2])\D(0?[1-9]|[12][0-9]|3[01])$/.exec(String(t).trim());if(!e)return;const i=Number(e[1]),n=Number(e[2]);this.month=i,this.day=n}#s(){const t=new Date;this.month=t.getMonth()+1,this.day=t.getDate()}get value(){return null==this.#t||null==this.#e?"":`${String(this.#t).padStart(2,"0")}/${String(this.#e).padStart(2,"0")}`}init(){super.init?.(),this.#a(),this.#l();const t=this.getAttribute("initial-value");t?this.value=t:null==this.#t&&this.#s(),(0,r.EA)(this,this.monthInput,{includeAttrs:["disabled","size","st-host-direction"]}),(0,r.EA)(this,this.dayInput,{includeAttrs:["disabled","size","st-host-direction"]})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("initial-value"===t?this.value=i:"picker-months"===t&&this.#p())}get#u(){return(t=>{const e=t?.split(",");return(t=>Array.isArray(t)&&12===t.length&&12===t.filter(Boolean).length)(e)?e:l})(this.getAttribute("picker-months"))}#a(){this.#p(),this.monthInput.addEventListener("input",this.#c.bind(this))}#l(){this.dayInput.addEventListener("input",this.#h.bind(this))}#p(){h(this.#u.map((t,e)=>({id:e+1,name:t})),this.monthInput),this.#i()}#n(){const t=a[this.#t-1]??0;h((t=>Array.from({length:t},(t,e)=>({id:e+1,name:String(e+1)})))(t),this.dayInput)}#i(){this.monthInput&&setTimeout(()=>{this.monthInput&&(this.monthInput.value=null!=this.#t?String(this.#t):"")})}#o(){setTimeout(()=>{this.dayInput&&(this.dayInput.value=null!==this.#e?String(this.#e):"")})}#c(t){const e=t.target?.value,i=e?Number(e):null;i!==this.#t&&(this.month=i)}#h(t){const e=t.target?.value,i=e?Number(e):null;i!==this.#e&&(this.day=i)}#r(){this.dispatchEvent(new CustomEvent("change",{detail:{month:this.#t,day:this.#e},bubbles:!0,composed:!0}))}getValidity(){return{}}});customElements.define(p,N)},63423(t,e,i){"use strict";i.r(e),i.d(e,{MonthDayFieldClass:()=>Q,componentName:()=>x}),i(20428),i(64014),i(92661),i(56737),i(30576);var n=i(28027),o=i(19624),r=i(72270),s=i(63200),a=i(88961),l=i(25964);class p{#d=Object.freeze([]);constructor({id:t,min:e,max:i,placeholder:n},o){this.id=t,this.min=e,this.max=i,this.placeholder=n,this.onChange=o}get data(){return this.#d}set data(t){this.#d=Object.freeze(t),this.onChange?.()}get#g(){return this.data.length?this.numberValue:0}get numberValue(){return Number(this.stringValue)}get stringValue(){return(this.data.join("")||this.placeholder).padStart(this.length,"0")}get isFull(){return 10*this.numberValue>this.max||this.data.length===this.length}get isEmpty(){return this.stringValue===this.placeholder}get length(){return this.max.toString().length}set(t){this.data=t.toString().split("")}add(t){let{data:e}=this;return e=[...e,t],Number(e.join(""))>this.max?e=[t]:this.length<e.length&&(e=e.slice(1,e.length)),this.data=e,t}del(){this.data.filter(t=>"0"!==t).filter(Boolean).length?this.data=this.data.slice(0,this.data.length-1):this.data=[]}clear(){this.data=[]}inc(t){this.replaceValue(this.#g<this.max?Math.max(this.#g+(t||1),this.min):this.min)}dec(t){this.replaceValue(this.#g>this.min?Math.min(this.#g-(t||1),this.max):this.max)}isInRange(t){return t>=this.min&&t<=this.max}replaceValue(t){this.isInRange(t)&&(this.data=t.toString().padStart(this.length,0).split(""))}setMin(t){this.min=Number(t)}setMax(t){this.max=Number(t)}}const u=["MM/DD","DD/MM"],c=u[0],h="/",d=[31,29,31,30,31,30,31,31,30,31,30,31],g={id:"month",min:1,max:12,placeholder:"MM"},y={id:"day",min:1,max:31,placeholder:"DD"},M={MM:"(0?[1-9]|1[0-2])",DD:"(0?[1-9]|[12][0-9]|3[01])"},N=t=>{const e=(t=>`^${t.split(h).map(t=>M[t]).join("\\D")}$`)(t),i=(t=>{const e=t.split(h);return t=>{const i={};return e.forEach((e,n)=>{i[e]=Number(t[n+1])}),{month:i.MM,day:i.DD}}})(t),n=new RegExp(e);return{pattern:e,validate:t=>n.test(t),getParts:t=>{const e=n.exec(t);return e?i(e):null}}},m=Object.fromEntries(u.map(t=>[t,N(t)]));var b=i(49139),D=i.n(b);const T=(t,e)=>{const i=t?.trim?.();return i?m[e]?.getParts(i)??null:null},x=(0,l.xE)("month-day-field"),I=(0,r.yc)({componentName:x,baseSelector:"vaadin-popover"}),A=["format","opened","initial-value","readonly","disable-picker"],v=["picker-months","picker-label-submit","picker-label-cancel"],C=[...A,...v],E=n.w.cssVarList,{host:S,input:k,inputEleRTL:j,toggleButton:w,overlay:f,backdrop:L,bottomNav:O,navButton:z}={host:{selector:()=>":host"},input:{selector:()=>"descope-text-field"},inputEleRTL:{selector:()=>':host([st-host-direction="rtl"]) descope-text-field'},toggleButton:{selector:()=>".toggle-picker"},overlay:{selector:"vaadin-popover-overlay::part(overlay)"},backdrop:{selector:"vaadin-popover-overlay::part(backdrop)"},bottomNav:{selector:"vaadin-popover-overlay .bottom-nav"},navButton:{selector:"vaadin-popover-overlay .bottom-nav descope-button"}},Q=(0,s.Zz)((0,a.RF)({componentNameOverride:(0,l.xE)("input-wrapper")}),(0,a.RF)({mappings:{iconMargin:{...w,property:"margin-inline-end"},hostWidth:{...S,property:"width"},hostDirection:{...S,property:"direction"},textAlign:{...k,property:"text-align"},rtlInputDirection:{...j,property:E.inputDirection},rtlInputAlignment:{...j,property:E.inputTextAlign},overlayGap:{property:()=>Q.cssVarList.overlayGap},overlayBackgroundColor:{property:()=>Q.cssVarList.overlayBackgroundColor},overlayPadding:{property:()=>Q.cssVarList.overlayPadding},overlayBoxShadow:{property:()=>Q.cssVarList.overlayBoxShadow},overlayOutlineWidth:{property:()=>Q.cssVarList.overlayOutlineWidth},overlayOutlineColor:{property:()=>Q.cssVarList.overlayOutlineColor},overlayOutlineStyle:{property:()=>Q.cssVarList.overlayOutlineStyle},errorMessageIcon:{selector:n.w.componentName,property:n.w.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:n.w.componentName,property:n.w.cssVarList.errorMessageIconSize},errorMessageIconPadding:{selector:n.w.componentName,property:n.w.cssVarList.errorMessageIconPadding},errorMessageIconRepeat:{selector:n.w.componentName,property:n.w.cssVarList.errorMessageIconRepeat},errorMessageIconPosition:{selector:n.w.componentName,property:n.w.cssVarList.errorMessageIconPosition},errorMessageFontSize:{selector:n.w.componentName,property:n.w.cssVarList.errorMessageFontSize},labelFontWeight:{selector:n.w.componentName,property:n.w.cssVarList.labelFontWeight},inputValueFontWeight:{selector:n.w.componentName,property:n.w.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{selector:n.w.componentName,property:n.w.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{selector:n.w.componentName,property:n.w.cssVarList.helperTextFontWeight},errorMessageFontWeight:{selector:n.w.componentName,property:n.w.cssVarList.errorMessageFontWeight}}}),(0,a.mA)({name:"overlay",selector:"",mappings:{marginTop:{...f,property:"margin-top"},backgroundColor:{...f},backdropBackgroundColor:{...L,property:"background-color"},backdropPointerEvents:{...L,property:"pointer-events"},padding:{...f},boxShadow:{...f},outlineWidth:{...f},outlineColor:{...f},outlineStyle:{...f},bottomNavTopPadding:{...O,property:"padding-top"},bottomNavBottomPadding:{...O,property:"padding-bottom"},bottomNavHorizontalPadding:[{...O,property:"padding-left"},{...O,property:"padding-right"}],bottomNavAlignment:{...O,property:"justify-content"},bottomNavGap:{...O,property:"gap"},navButtonPadding:[{...z,property:o.J.cssVarList.horizontalPadding},{...z,property:o.J.cssVarList.verticalPadding}],navButtonOutlineWidth:{...z,property:o.J.cssVarList.outlineWidth}}}),a.VO,a.tQ)(class extends I{format=c;#y=0;#M=()=>{this.updateCountersDisplay(),this.#N(),this.#m()};#b=[new p(g,this.#M.bind(this)),new p(y,this.#M.bind(this))];static get observedAttributes(){return[].concat(I.observedAttributes||[],C)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n <div>\n <descope-text-field inputmode="numeric">\n <span slot="suffix" class="toggle-picker">\n <descope-icon src="${D()}"></descope-icon>\n </span>\n </descope-text-field>\n <vaadin-popover></vaadin-popover>\n </div>\n `,(0,l.fz)('\n :host {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n max-width: 100%;\n }\n\n :host ::slotted {\n padding: 0;\n }\n\n .toggle-picker {\n cursor: pointer;\n display: flex;\n align-self: center;\n z-index: 1;\n height: 100%;\n align-items: center;\n }\n\n :host([readonly="true"]) .toggle-picker {\n pointer-events: none;\n }\n\n .hidden {\n display: none;\n }\n ',this),this.inputElement=this.shadowRoot.querySelector("descope-text-field"),this.popoverToggleButton=this.inputElement.querySelector(".toggle-picker")}get validationTarget(){return this.inputElement}get opened(){return"true"===this.getAttribute("opened")}get monthCounter(){return this.#b.find(t=>t.id===g.id)}get dayCounter(){return this.#b.find(t=>t.id===y.id)}get sortedCounters(){return this.format.split(h).map(t=>this.#b.find(e=>e.placeholder===t))}get activeCounter(){return this.sortedCounters[this.#y]}get countersValue(){return this.sortedCounters.map(t=>t.stringValue).join(h)}get isCountersEmpty(){return this.#b.every(t=>t.isEmpty)}get isCountersOutOfRange(){return this.#b.some(t=>!t.isInRange(t.numberValue))}get disablePicker(){return"true"===this.getAttribute("disable-picker")}get overlay(){return this.baseElement.shadowRoot?.querySelector("vaadin-popover-overlay")}get backdrop(){return this.overlay?.shadowRoot?.querySelector("#backdrop")}get picker(){return this.overlay?.querySelector("descope-month-day-field-picker")}get isRTL(){const t=getComputedStyle(this.baseElement).getPropertyValue("direction");return t?"rtl"===t:"rtl"===this.getAttribute("st-host-direction")}get value(){return this.isCountersEmpty||this.isCountersOutOfRange?"":(t=this.monthCounter.numberValue,e=this.dayCounter.numberValue,this.format.replace(/MM|DD/g,i=>String("MM"===i?t:e).padStart(2,"0")));var t,e}set value(t){const e=t?T(String(t),this.format):null;e?this.#D(e.month,e.day):(this.#b.forEach(t=>t.clear()),this.clearInputEle())}get isSelectAll(){const{value:t,selectionStart:e,selectionEnd:i}=this.inputElement;return t.length===e+i}getValidity(){return this.isRequired&&this.isCountersEmpty?{valueMissing:!0}:!this.isCountersEmpty&&this.isCountersOutOfRange?{patternMismatch:!0}:{}}reportValidity(){this.inputElement.reportValidity()}#N(){const t=this.monthCounter.numberValue,e=d[t-1]??31;this.dayCounter.max!==e&&this.dayCounter.setMax(e)}#D(t,e){this.monthCounter.replaceValue(t),this.#N(),e>this.dayCounter.max?this.dayCounter.clear():this.dayCounter.replaceValue(e)}updateCountersDisplay(){this.inputElement.value=this.countersValue}#m(){this.dispatchEvent(new Event("input",{bubbles:!0}))}resetCounters(){this.#b.forEach(t=>t.clear())}clearInputEle(){this.inputElement.value=""}init(){super.init?.(),this.#T(),this.#x(),this.#M(),this.#I(),setTimeout(()=>this.#A(),0)}#I(){this.inputElement.getValidity=this.getValidity.bind(this),this.popoverToggleButton.addEventListener("click",this.#v.bind(this)),this.inputElement.addEventListener("focus",this.#C.bind(this)),this.inputElement.addEventListener("blur",this.#E.bind(this)),this.inputElement.addEventListener("click",this.#S.bind(this)),this.inputElement.addEventListener("keydown",this.#k.bind(this)),this.inputElement.addEventListener("beforeinput",this.#j.bind(this)),this.inputElement.addEventListener("pointerdown",this.#w.bind(this)),this.inputElement.addEventListener("paste",this.#f.bind(this)),(0,l.EA)(this,this.inputElement,{includeAttrs:["label","label-type","placeholder","disabled","readonly","bordered","required","full-width","st-host-direction","pattern","data-errormessage-value-missing","data-errormessage-pattern-mismatch","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]})}#x(){this.baseElement.trigger=["click"],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#L.bind(this),this.baseElement.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation()})}#O;#L(t){t.firstChild||(this.overlay.positionTarget=this.shadowRoot.querySelector(".toggle-picker"),t.appendChild(this.#z()),(t=>{const e=new CSSStyleSheet;e.insertRule(":host{display:block!important;}"),t?.shadowRoot?.adoptedStyleSheets?.push(e)})(this.baseElement),this.backdrop?.addEventListener("click",this.closePopover.bind(this)),(0,l.fz)("\n .overlay-hidden { visibility: hidden; }\n .bottom-nav {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n }\n ",t.getRootNode())),this.#Q(),t.classList.add("overlay-hidden"),setTimeout(()=>{this.#U(),t.classList.remove("overlay-hidden")},100)}#U(){const t=this.shadowRoot.querySelector("vaadin-popover").shadowRoot;if(!t||!this.picker)return;this.#O?.replaceSync("vaadin-popover-overlay::part(overlay) { transform: none; }");const e=document.body.getBoundingClientRect(),i=this.getBoundingClientRect(),n=this.picker.getBoundingClientRect(),o=this.isRTL?"right":"left",r=i[o]-n[o],s=n.left,a=e.width-n.right;let p;p=r>0?Math.min(r,a):-1*Math.min(Math.abs(r),s);const u=`\n vaadin-popover-overlay::part(overlay) {\n transform: translateX(${p}px);\n }\n `;this.#O?this.#O.replaceSync(u):this.#O=(0,l.fz)(u,t)}#z(){const t=document.createElement("span");t.innerHTML='\n <descope-month-day-field-picker></descope-month-day-field-picker>\n <nav class="bottom-nav">\n <descope-button class="cancel-button" variant="link" mode="primary"></descope-button>\n <descope-button class="submit-button" variant="link" mode="primary" disabled="true"></descope-button>\n </nav>\n ';const e=t.querySelector("descope-month-day-field-picker");return this.cancelButton=t.querySelector(".cancel-button"),this.submitButton=t.querySelector(".submit-button"),this.#V(),this.cancelButton.addEventListener("click",this.#P.bind(this)),this.submitButton.addEventListener("click",this.#Y.bind(this)),e.addEventListener("change",this.#F.bind(this)),t}#A(){this.overlay&&(this.overlay._attachOverlay=()=>this.overlay.bringToFront(),this.overlay._detachOverlay=()=>{},this.overlay._enterModalState=()=>{})}#Q(){this.picker&&(this.isCountersEmpty?this.picker.value="":(this.picker.month=this.monthCounter.isEmpty?null:this.monthCounter.numberValue,this.picker.day=this.dayCounter.isEmpty?null:this.dayCounter.numberValue),(0,l.EA)(this,this.picker,{includeAttrs:["st-host-direction","readonly","disabled","picker-months"]}))}get#R(){return this.getAttribute("picker-label-submit")||"Done"}get#W(){return this.getAttribute("picker-label-cancel")||"Cancel"}#V(){this.submitButton&&(this.submitButton.textContent=this.#R,this.cancelButton.textContent=this.#W)}#F(t){const{month:e,day:i}=t.detail||{};this.#B(null==e||null==i)}#B(t){if(!this.submitButton)return;const e=this.submitButton.shadowRoot?.querySelector("vaadin-button");t?(this.submitButton.setAttribute("disabled","true"),e?.setAttribute("disabled","true")):(this.submitButton.removeAttribute("disabled"),e?.removeAttribute("disabled"))}#P(){this.closePopover()}#Y(){if(this.isReadOnly)return void this.closePopover();const t=this.picker?.month,e=this.picker?.day;null!=t&&null!=e?(this.#D(t,e),this.#m(),this.closePopover()):this.closePopover()}#v(){this.opened?this.closePopover():this.openPopover()}openPopover(){this.disablePicker||this.setAttribute("opened","true")}closePopover(){this.removeAttribute("opened"),this.inputElement.focus()}#$(t){t?this.popoverToggleButton.classList.remove("hidden"):this.popoverToggleButton.classList.add("hidden")}#j(t){var e;t.preventDefault(),this.#q(),t.data&&(e=t.data,String(e||"").trim()&&!Number.isNaN(Number(e)))?(this.#J(t.data),this.updateCountersDisplay()):t.inputType&&this.#Z(t)}#q(){this.isSelectAll&&this.#H()}#J(t){this.activeCounter.add(t),this.activeCounter.isFull&&this.#G(),this.#_()}#K(t){const[e,i]=this.sortedCounters.map(t=>t.length);return t<=e?0:1}#X(t){this.#y=this.#K(t.target?.selectionStart||this.inputElement.selectionStart)}#H(){this.#y=0}#G(){this.#y<this.#b.length-1&&(this.#y=Math.min(this.#y+1,1))}#tt(){this.#y>0&&(this.#y=0)}#_(){this.#y<0||setTimeout(()=>{const t=this.sortedCounters.slice(0,this.#y).reduce((t,e)=>t+e.length,this.#y);this.inputElement.setSelectionRange(t,t+this.sortedCounters[this.#y].length)})}#k(t){t.metaKey||t.ctrlKey?"x"===t.key.toLowerCase()&&this.#et(t):(this.#q(),"ArrowUp"===t.key?this.activeCounter.inc():"ArrowDown"===t.key?this.activeCounter.dec():"ArrowRight"===t.key?this.#G():"ArrowLeft"===t.key&&this.#tt(),this.#_())}#Z(t){this.isReadOnly||(this.opened&&this.closePopover(),this.activeCounter&&("deleteContentBackward"===t.inputType&&this.#it(),this.#_()))}#it(){if(this.isSelectAll)return void this.#nt();const t=this.activeCounter;t.isEmpty?(this.#tt(),this.#_()):t.set(""),setTimeout(()=>{this.updateCountersDisplay(),this.#_()})}#S(t){this.opened||(t.preventDefault(),this.#X(t),this.#_())}#w(t){setTimeout(()=>this.#S(t),150)}#C(){this.isReadOnly||setTimeout(()=>this.#ot())}#E(){this.opened||this.inputElement.value===this.format&&this.clearInputEle()}#ot(){this.inputElement.value||(this.inputElement.value=this.format),this.#H(),this.inputElement.setSelectionRange(0,this.sortedCounters[0].length)}#nt(){this.resetCounters(),this.#H(),this.#ot()}#rt(t){Object.keys(m).includes(t)&&(this.format=t,this.#T(),this.updateCountersDisplay())}#T(){const t=this.getAttribute("format")||this.format||c,e=m[t]?t:c;this.format=e,this.setAttribute("pattern",m[e].pattern)}#et(t){t.preventDefault(),this.isSelectAll?(this.#st(this.countersValue),this.#nt()):(this.#st(this.activeCounter.stringValue),this.activeCounter.set("")),this.#_()}#st(t){try{navigator.clipboard.writeText(t)}catch(t){console.error("Failed to copy month/day value:",t)}}#f(t){t.preventDefault();const e=(t.clipboardData||window.clipboardData).getData("Text"),i=T(e,this.format);if(i)return this.#D(i.month,i.day),this.#M(),void setTimeout(()=>this.inputElement.setSelectionRange(0,this.inputElement.value.length));const n=Number(e);n&&this.activeCounter.isInRange(n)&&(this.activeCounter.set(String(n)),setTimeout(()=>this.#_()))}#at(t){this.value||setTimeout(()=>{t&&(this.value=t)})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("disable-picker"===t&&this.#$("true"!==i),A.includes(t)?(i&&"format"===t&&this.#rt(i),"initial-value"===t&&this.#at(i)):"picker-label-submit"===t||"picker-label-cancel"===t?this.#V():v.includes(t)&&(i?this.picker?.setAttribute(t,i):this.picker?.removeAttribute(t)))}});customElements.define(x,Q)},28027(t,e,i){"use strict";i.d(e,{T:()=>l,w:()=>u});var n=i(88961),o=i(63200),r=i(25964),s=i(79673),a=i(47656);const l=(0,r.xE)("text-field"),p=["type","label-type","copy-to-clipboard"],u=(0,o.Zz)((0,n.RF)({mappings:a.A}),n.VO,(0,n.OZ)({proxyProps:["value","selectionStart","selectionEnd"],useProxyTargets:!0}),n.tQ,t=>class extends t{static get observedAttributes(){return p.concat(t.observedAttributes||[])}icon;init(){super.init?.()}renderCopyToClipboard(t){if(!t)return void this.icon?.remove();const e={icon:"vaadin:copy-o",title:"Copy",style:"cursor: pointer"},i={icon:"vaadin:check-circle-o",title:"Copied",style:"cursor: initial"};this.icon=Object.assign(document.createElement("vaadin-icon"),{slot:"suffix",...e}),this.baseElement.appendChild(this.icon),this.icon.addEventListener("click",()=>{navigator.clipboard.writeText(this.value),Object.assign(this.icon,i),setTimeout(()=>{Object.assign(this.icon,e)},5e3)})}onLabelClick(){this.focus()}attributeChangedCallback(t,e,i){super.attributeChangeCallback?.(t,e,i),"type"===t&&this.baseElement._setType(i),e!==i&&("label-type"===t?"floating"===i?this.addEventListener("click",this.onLabelClick):this.removeEventListener("click",this.onLabelClick):"copy-to-clipboard"===t&&this.renderCopyToClipboard("true"===i))}})((0,n.tz)({slots:["prefix","suffix"],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tpadding: calc(var(${u.cssVarList.inputOutlineWidth}) + var(${u.cssVarList.inputOutlineOffset}));\n box-sizing: border-box;\n\t\t\t}\n :host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {\n opacity: 1;\n }\n\n vaadin-text-field[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n vaadin-text-field[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n ${(0,s.$J)("vaadin-text-field")}\n\t\t\t${(0,s.cy)(u.cssVarList)}\n\t\t\t${(0,s.LJ)("vaadin-text-field",u.cssVarList)}\n ${(0,s.Kl)()}\n\n vaadin-text-field vaadin-icon {\n align-self: center;\n }\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:l}))},64014(t,e,i){"use strict";i.r(e),i.d(e,{TextFieldClass:()=>n.w,componentName:()=>n.T}),i(11284),i(37182),i(95260);var n=i(28027);customElements.define(n.T,n.w)},47656(t,e,i){"use strict";i.d(e,{A:()=>b});const{host:n,label:o,placeholder:r,requiredIndicator:s,inputField:a,input:l,inputMask:p,helperText:u,errorMessage:c,disabledPlaceholder:h,inputDisabled:d,inputIcon:g,externalInput:y,externalInputDisabled:M,externalPlaceholder:N,externalDisabledPlaceholder:m}={host:{selector:()=>":host"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},placeholder:[{selector:"> input:placeholder-shown"},{selector:()=>":host::slotted(input:placeholder-shown)"}],disabledPlaceholder:{selector:"> input:disabled::placeholder"},inputField:{selector:"::part(input-field)"},input:{selector:"input"},inputMask:{selector:"::part(input-field)::before"},inputDisabled:{selector:"input:disabled"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},inputIcon:{selector:"vaadin-icon"},externalInput:{selector:()=>"::slotted(input)"},externalInputDisabled:{selector:()=>"::slotted(input:disabled)"},externalPlaceholder:{selector:()=>"::slotted(input:placeholder-shown)"},externalDisabledPlaceholder:{selector:()=>"::slotted(input:disabled::placeholder)"}},b={fontSize:[{},n],fontFamily:[o,a,u,c],labelFontSize:{...o,property:"font-size"},labelFontWeight:{...o,property:"font-weight"},inputValueFontWeight:[{...l,property:"font-weight"},{...y,property:"font-weight"}],inputPlaceholderFontWeight:[{selector:()=>":host input:placeholder-shown",property:"font-weight"},{...N,property:"font-weight"}],helperTextFontWeight:{...u,property:"font-weight"},errorMessageFontWeight:{...c,property:"font-weight"},labelTextColor:[{...o,property:"color"},{...s,property:"color"},{...o,property:"-webkit-text-fill-color"},{...s,property:"-webkit-text-fill-color"}],hostWidth:{...n,property:"width"},hostMinWidth:{...n,property:"min-width"},hostDirection:{...n,property:"direction"},inputDirection:{...l,property:"direction"},inputBackgroundColor:[{...a,property:"background-color"},{...p,property:"background-color"}],errorMessageTextColor:{...c,property:"color"},errorMessageIcon:{...c,property:"background-image"},errorMessageIconSize:{...c,property:"background-size"},errorMessageIconPadding:{...c,property:"padding-inline-start"},errorMessageIconRepeat:{...c,property:"background-repeat"},errorMessageIconPosition:{...c,property:"background-position"},errorMessageFontSize:{...c,property:"font-size"},helperTextColor:{...u,property:"-webkit-text-fill-color"},inputValueTextColor:[{...a,property:"color"},{...d,property:"-webkit-text-fill-color"},{...M,property:"-webkit-text-fill-color"}],inputCaretTextColor:[{...l,property:"caret-color"},{...y,property:"caret-color"}],labelRequiredIndicator:{...s,property:"content"},inputBorderColor:{...a,property:"border-color"},inputBorderWidth:{...a,property:"border-width"},inputBorderStyle:{...a,property:"border-style"},inputBorderRadius:{...a,property:"border-radius"},inputHeight:{...a,property:"height"},inputHorizontalPadding:[{...l,property:"padding-left"},{...l,property:"padding-right"},{...y,property:"padding-left"},{...y,property:"padding-right"}],inputOutlineColor:{...a,property:"outline-color"},inputOutlineStyle:{...a,property:"outline-style"},inputOutlineWidth:{...a,property:"outline-width"},inputOutlineOffset:{...a,property:"outline-offset"},textAlign:{},inputTextAlign:[{...l,property:"text-align"},{...y,property:"text-align"}],inputPlaceholderColor:[{selector:()=>":host input:placeholder-shown",property:"color"},{...N,property:"color"},{...r,property:"color"},{...h,property:"-webkit-text-fill-color"},{...m,property:"-webkit-text-fill-color"}],labelPosition:{...o,property:"position"},labelTopPosition:{...o,property:"top"},labelHorizontalPosition:[{...o,property:"left"},{...o,property:"right"}],inputTransformY:{...o,property:"transform"},inputTransition:{...o,property:"transition"},marginInlineStart:{...o,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...N,property:"opacity"}],inputVerticalAlignment:[{...a,property:"align-items"},{...y,property:"align-items"}],valueInputHeight:[{...l,property:"height"},{...y,property:"height"}],valueInputMarginBottom:[{...l,property:"margin-bottom"},{...y,property:"margin-bottom"}],inputIconOffset:[{...g,property:"margin-right"},{...g,property:"margin-left"}],inputIconSize:{...g,property:"font-size"},inputIconColor:{...g,property:"color"},inputTextSecurity:[{...l,property:"-webkit-text-security"},{...l,property:"text-security"},{...y,property:"-webkit-text-security"},{...y,property:"text-security"}]}}}]);
|
|
1
|
+
(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[1202,6724,9585],{49139(t){t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05IDVIMTVWNC41MDQ2OEMxNSA0LjIxNDA0IDE1LjIyNiA0IDE1LjUwNDcgNEgxNi40OTUzQzE2Ljc4NiA0IDE3IDQuMjI1OTUgMTcgNC41MDQ2OFY1SDE4Ljc1NjhDMTkuMzAyOCA1IDE5Ljc1IDUuNDQ3MjUgMTkuNzUgNS45OTg5NlY3LjAwMTA0QzE5Ljc1IDcuNTU3MzQgMTkuMzA1MyA4IDE4Ljc1NjggOEg1LjI0MzE3QzQuNjk3MTcgOCA0LjI1IDcuNTUyNzUgNC4yNSA3LjAwMTA0VjUuOTk4OTZDNC4yNSA1LjQ0MjY2IDQuNjk0NjYgNSA1LjI0MzE3IDVIN1Y0LjUwNDY4QzcgNC4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A0N1YxMy40OTUzQzE5IDEzLjc4NiAxOC43NzQgMTQgMTguNDk1MyAxNEgxNy41MDQ3QzE3LjIxNCAxNCAxNyAxMy43NzQgMTcgMTMuNDk1M1YxMi41MDQ3QzE3IDEyLjIxNCAxNy4yMjYgMTIgMTcuNTA0NyAxMlpNMTcuNTA0NyA5SDE4LjQ5NTNDMTguNzg2IDkgMTkgOS4yMjU5NiAxOSA5LjUwNDY4VjEwLjQ5NTNDMTkgMTAuNzg2IDE4Ljc3NCAxMSAxOC40OTUzIDExSDE3LjUwNDdDMTcuMjE0IDExIDE3IDEwLjc3NCAxNyAxMC40OTUzVjkuNTA0NjhDMTcgOS4yMTQwNCAxNy4yMjYgOSAxNy41MDQ3IDlaIiBmaWxsPSIjODA4MDgwIi8+IDwvc3ZnPiA="},19624(t,e,i){"use strict";i.d(e,{J:()=>d,T:()=>l});var n=i(63200),o=i(25964),r=i(88961),s=i(98538),a=i(10767);const l=(0,o.xE)("button"),{host:p,label:u,slottedIcon:c}={host:{selector:()=>":host"},label:{selector:"::part(label)"},slottedIcon:{selector:()=>"::slotted(descope-icon)"}};let h;const d=(0,n.Zz)((0,r.DM)({triggers:[{attr:"full-width",value:"true"}]}),(0,r.RF)({mappings:{hostWidth:{property:"width"},hostMaxWidth:{...p,property:"max-width"},hostHeight:{property:"height"},hostDirection:{...p,property:"direction"},fontSize:{},fontFamily:{},fontWeight:{},cursor:{},backgroundColor:{},outlineOffset:{},outlineColor:{},outlineStyle:{},outlineWidth:{},borderRadius:{},borderColor:{},borderStyle:{},borderWidth:{},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-right",fallback:"0.875em"},{property:"padding-left",fallback:"0.875em"}],labelTextColor:{property:"color"},iconColor:{selector:()=>"::slotted(*)",property:s.S.cssVarList.fill},labelTextDecoration:{...u,property:"text-decoration"},labelSpacing:{...u,property:"gap"},textAlign:{...u,property:"justify-content",fallback:"center"},iconSize:[{...c,property:"width"},{...c,property:"height"}]}}),a.G,r.VO,r.tQ)((0,r.tz)({slots:["","prefix","label","suffix"],wrappedEleName:"vaadin-button",style:()=>`\n\t\t\t\n\t:host {\n\t\tdisplay: inline-block;\n\t\tbox-sizing: border-box;\n\t}\n\tvaadin-button::before,\n\tvaadin-button::after {\n\t\topacity: 0;\n\t}\n\tvaadin-button {\n\t\tmargin: 0;\n\t\tmin-width: 0;\n\t\twidth: 100%;\n\t\theight: auto;\n\t\tbox-shadow: none;\n\t}\n\tvaadin-button::part(label) {\n\t\tpadding: 0;\n width: 100%;\n\t}\n\tvaadin-button::part(prefix) {\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n\t\t\t\n\tvaadin-button::part(prefix),\n\tvaadin-button::part(label) {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t}\n\n\t\t\t${h}\n\t\t\tvaadin-button::part(label) { pointer-events: none; }\n\t\t\t:host {\n\t\t\t\tpadding: calc(var(${d.cssVarList.outlineWidth}) + var(${d.cssVarList.outlineOffset}));\n\t\t\t}\n :host([full-width="true"]) {\n width: var(${d.cssVarList.hostWidth});\n }\n\t\t\tvaadin-button {\n\t\t\t\theight: calc(var(${d.cssVarList.hostHeight}) - var(${d.cssVarList.outlineWidth}) - var(${d.cssVarList.outlineOffset}));\n\t\t\t}\n\t\t\t[square="true"]:not([full-width="true"]) {\n\t\t\t\twidth: calc(var(${d.cssVarList.hostWidth}) - var(${d.cssVarList.outlineWidth}) - var(${d.cssVarList.outlineOffset}));\n padding: 0;\n\t\t\t}\n\t\t`,excludeAttrsSync:["tabindex","class","style"],componentName:l})),{color:g,fontSize:y}=d.cssVarList;h=`\n\t@keyframes spin {\n\t\t0% { -webkit-transform: rotate(0deg); }\n\t\t100% { -webkit-transform: rotate(360deg); }\n\t}\n\t:host([loading="true"]) ::before {\n\t\tanimation: spin 2s linear infinite;\n\t\tposition: absolute;\n\t\tcontent: '';\n\t\tz-index: 1;\n\t\tbox-sizing: border-box;\n\t\tborder-radius: 50%;\n\t\tborder-bottom-color: transparent;\n\t\tborder-left-color: transparent;\n\t\tborder-style: solid;\n\t\tcolor: var(${g});\n\t\ttop: calc(50% - (var(${y}) / 2));\n\t\tleft: calc(50% - (var(${y}) / 2));\n\t\tborder-width: calc(var(${y}) / 10);\n\t\twidth: var(${y});\n\t\theight: var(${y});\n\t}\n\t:host([disabled="true"]),\n\t:host([loading="true"]) {\n\t\tpointer-events: none;\n\t}\n\t:host([loading="true"]) ::part(prefix),\n\t:host([loading="true"]) ::part(label) {\n\t\tvisibility: hidden;\n\t}\n`},10767(t,e,i){"use strict";i.d(e,{G:()=>n});const n=t=>class extends t{get isLoading(){return"true"===this.getAttribute("loading")}click(){this.isLoading||super.click()}}},30576(t,e,i){"use strict";i.r(e),i.d(e,{ButtonClass:()=>n.J,componentName:()=>n.T});var n=i(19624);i(83799),customElements.define(n.T,n.J)},98538(t,e,i){"use strict";i.d(e,{S:()=>l,T:()=>a});var n=i(88961),o=i(25964),r=i(8512),s=i(63200);const a=(0,o.xE)("icon"),l=(0,s.Zz)((0,n.RF)({mappings:{fill:[{},{property:r.q.cssVarList.fill}],height:{selector:()=>":host"},width:{selector:()=>":host"}}}),n.VO,n.tQ)((0,n.tz)({slots:[],wrappedEleName:"descope-image",style:()=>"\n :host {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n max-height: 100%;\n }\n ",excludeAttrsSync:["tabindex","class","style","st-height","st-width"],componentName:a}))},56737(t,e,i){"use strict";i.r(e),i.d(e,{IconClass:()=>n.S,componentName:()=>n.T}),i(53455);var n=i(98538);customElements.define(n.T,n.S)},8512(t,e,i){"use strict";i.d(e,{T:()=>l,q:()=>c});var n=i(88961),o=i(72270),r=i(63200),s=i(25964),a=i(18782);const l=(0,s.xE)("image"),p=["src","src-dark"];class u extends((0,o.qu)({componentName:l,baseSelector:"slot"})){static get observedAttributes(){return p}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<slot></slot>\n\t",(0,s.fz)("\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n :host > slot {\n width: 100%;\n height: 100%;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tdisplay: flex;\n\t\t\t\toverflow: hidden;\n\t\t\t}\n\n ::slotted(*) {\n width: 100%;\n\t\t\t}\n\n .hidden {\n display: none;\n }\n ",this)}init(){super.init?.(),this.toggleVisibility(this.getSrc)}onThemeChange(){this.renderImage()}toggleVisibility(t){t?this.classList.remove("hidden"):this.classList.add("hidden")}get altText(){return this.getAttribute("alt")||""}get legacySrc(){return this.getAttribute("src")}get themeSrc(){return this.getAttribute(`src-${this.currentThemeName}`)}get getSrc(){return this.themeSrc||this.legacySrc}updateFillColor(t){[t,...t.querySelectorAll("*[fill]")].forEach(t=>{t.setAttribute("fill",`var(${c.cssVarList.fill}, ${t.getAttribute("fill")||"''"})`)})}renderImage(){this.toggleVisibility(this.getSrc),(0,a.m)(this.getSrc,this.altText).then(t=>{this.innerHTML="",t&&(this.updateFillColor(t),this.appendChild(t))})}shouldRender(t){const e=this.getAttribute(t);return this.getSrc===e}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&this.shouldRender(t)&&this.renderImage()}}const c=(0,r.Zz)((0,n.RF)({mappings:{fill:{},height:{selector:()=>":host"},width:{selector:()=>":host"}}}),n.VO,n.tQ)(u)},18782(t,e,i){"use strict";i.d(e,{m:()=>r});var n=i(25414);const o=t=>{const e=n.A.sanitize(t,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_TAGS:["image"],FORBID_TAGS:["defs"]});return(new DOMParser).parseFromString(e,"image/svg+xml").querySelector("svg")},r=async(t,e)=>{try{let i;if((t=>t.startsWith("data:image/svg+xml;base64,"))(t)){const e=atob(t.slice(26));i=o(e)}else if("svg"===(t=>{const e=t.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i);return e?e[1]:null})(t)){const e=await fetch(t),n=await e.text();i=o(n)}else i=((t,e)=>{const i=document.createElement("img");return i.setAttribute("src",t),i.setAttribute("alt",e),i})(t,e);return i.style.setProperty("max-width","100%"),i.style.setProperty("max-height","100%"),i}catch{return null}}},53455(t,e,i){"use strict";i.r(e),i.d(e,{ImageClass:()=>n.q,componentName:()=>n.T});var n=i(8512);customElements.define(n.T,n.q)},92661(t,e,i){"use strict";i.r(e),i.d(e,{MonthDayFieldPickerClass:()=>N,componentName:()=>p}),i(27092);var n=i(72270),o=i(63200),r=i(25964),s=i(88961);const a=[31,29,31,30,31,30,31,31,30,31,30,31],l=["January","February","March","April","May","June","July","August","September","October","November","December"],p=(0,r.xE)("month-day-field-picker"),u=["initial-value","picker-months","st-host-direction","disabled","full-width"],c=(0,n.yc)({componentName:p,baseSelector:"div"}),h=(t,e)=>{const i=document.createDocumentFragment();t.forEach(({id:t,name:e})=>{const n=document.createElement("div");n.className="combo-box-item",n.setAttribute("data-id",String(t)),n.setAttribute("data-name",e),n.textContent=e,i.appendChild(n)}),e.replaceChildren(i)},{picker:d,monthInput:g,dayInput:y,inputsRow:M}={picker:{selector:()=>".picker"},monthInput:{selector:()=>".month-input"},dayInput:{selector:()=>".day-input"},inputsRow:{selector:()=>".inputs-row"}},N=(0,o.Zz)((0,s.RF)({componentNameOverride:(0,r.xE)("input-wrapper")}),(0,s.RF)({mappings:{fontSize:{},fontFamily:{},hostWidth:{selector:()=>":host",property:"width"},hostDirection:{property:"direction"},pickerPadding:{...d,property:"padding"},inputsRowGap:{...M,property:"gap"},inputWidth:[{...g,property:"width"},{...y,property:"width"}]}}),s.VO,s.tQ)(class extends c{static get observedAttributes(){return[].concat(c.observedAttributes||[],u)}#t=null;#e=null;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="picker">\n <div class="inputs-row">\n <descope-combo-box\n class="month-input"\n bordered="true"\n label-type="static"\n allow-custom-value="false"\n full-width="true"\n item-label-path="data-name"\n item-value-path="data-id"\n ></descope-combo-box>\n <descope-combo-box\n class="day-input"\n bordered="true"\n label-type="static"\n allow-custom-value="false"\n full-width="true"\n item-label-path="data-name"\n item-value-path="data-id"\n ></descope-combo-box>\n </div>\n </div>\n ',(0,r.fz)("\n :host {\n display: inline-block;\n box-sizing: border-box;\n max-width: 100%;\n user-select: none;\n -webkit-user-select: none;\n }\n\n .inputs-row {\n display: flex;\n }\n\n .inputs-row > descope-combo-box {\n flex: 1;\n min-width: 0;\n }\n ",this),this.monthInput=this.shadowRoot.querySelector(".month-input"),this.dayInput=this.shadowRoot.querySelector(".day-input")}get month(){return this.#t}set month(t){const e=Number(t);!Number.isInteger(e)||e<1||e>12?this.#t=null:this.#t=e,null!=this.#e&&null!=this.#t&&this.#e>a[this.#t-1]&&(this.#e=1),this.#i(),this.#n(),this.#o(),this.#r()}get day(){return this.#e}set day(t){const e=Number(t);!Number.isInteger(e)||e<1||null!=this.#t&&e>a[this.#t-1]?this.#e=null:this.#e=e,this.#o(),this.#r()}set value(t){if(!t)return void this.#s();const e=/^(0?[1-9]|1[0-2])\D(0?[1-9]|[12][0-9]|3[01])$/.exec(String(t).trim());if(!e)return;const i=Number(e[1]),n=Number(e[2]);this.month=i,this.day=n}#s(){const t=new Date;this.month=t.getMonth()+1,this.day=t.getDate()}get value(){return null==this.#t||null==this.#e?"":`${String(this.#t).padStart(2,"0")}/${String(this.#e).padStart(2,"0")}`}init(){super.init?.(),this.#a(),this.#l();const t=this.getAttribute("initial-value");t?this.value=t:null==this.#t&&this.#s(),(0,r.EA)(this,this.monthInput,{includeAttrs:["disabled","size","st-host-direction"]}),(0,r.EA)(this,this.dayInput,{includeAttrs:["disabled","size","st-host-direction"]})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("initial-value"===t?this.value=i:"picker-months"===t&&this.#p())}get#u(){return(t=>{const e=t?.split(",");return(t=>Array.isArray(t)&&12===t.length&&12===t.filter(Boolean).length)(e)?e:l})(this.getAttribute("picker-months"))}#a(){this.#p(),this.monthInput.addEventListener("input",this.#c.bind(this))}#l(){this.dayInput.addEventListener("input",this.#h.bind(this))}#p(){h(this.#u.map((t,e)=>({id:e+1,name:t})),this.monthInput),this.#i()}#n(){const t=a[this.#t-1]??0;h((t=>Array.from({length:t},(t,e)=>({id:e+1,name:String(e+1)})))(t),this.dayInput)}#i(){this.monthInput&&setTimeout(()=>{this.monthInput&&(this.monthInput.value=null!=this.#t?String(this.#t):"")})}#o(){setTimeout(()=>{this.dayInput&&(this.dayInput.value=null!==this.#e?String(this.#e):"")})}#c(t){const e=t.target?.value,i=e?Number(e):null;i!==this.#t&&(this.month=i)}#h(t){const e=t.target?.value,i=e?Number(e):null;i!==this.#e&&(this.day=i)}#r(){this.dispatchEvent(new CustomEvent("change",{detail:{month:this.#t,day:this.#e},bubbles:!0,composed:!0}))}getValidity(){return{}}});customElements.define(p,N)},63423(t,e,i){"use strict";i.r(e),i.d(e,{MonthDayFieldClass:()=>Q,componentName:()=>x}),i(20428),i(64014),i(92661),i(56737),i(30576);var n=i(28027),o=i(19624),r=i(72270),s=i(63200),a=i(88961),l=i(25964);class p{#d=Object.freeze([]);constructor({id:t,min:e,max:i,placeholder:n},o){this.id=t,this.min=e,this.max=i,this.placeholder=n,this.onChange=o}get data(){return this.#d}set data(t){this.#d=Object.freeze(t),this.onChange?.()}get#g(){return this.data.length?this.numberValue:0}get numberValue(){return Number(this.stringValue)}get stringValue(){return(this.data.join("")||this.placeholder).padStart(this.length,"0")}get isFull(){return 10*this.numberValue>this.max||this.data.length===this.length}get isEmpty(){return this.stringValue===this.placeholder}get length(){return this.max.toString().length}set(t){this.data=t.toString().split("")}add(t){let{data:e}=this;return e=[...e,t],Number(e.join(""))>this.max?e=[t]:this.length<e.length&&(e=e.slice(1,e.length)),this.data=e,t}del(){this.data.filter(t=>"0"!==t).filter(Boolean).length?this.data=this.data.slice(0,this.data.length-1):this.data=[]}clear(){this.data=[]}inc(t){this.replaceValue(this.#g<this.max?Math.max(this.#g+(t||1),this.min):this.min)}dec(t){this.replaceValue(this.#g>this.min?Math.min(this.#g-(t||1),this.max):this.max)}isInRange(t){return t>=this.min&&t<=this.max}replaceValue(t){this.isInRange(t)&&(this.data=t.toString().padStart(this.length,0).split(""))}setMin(t){this.min=Number(t)}setMax(t){this.max=Number(t)}}const u=["MM/DD","DD/MM"],c=u[0],h="/",d=[31,29,31,30,31,30,31,31,30,31,30,31],g={id:"month",min:1,max:12,placeholder:"MM"},y={id:"day",min:1,max:31,placeholder:"DD"},M={MM:"(0?[1-9]|1[0-2])",DD:"(0?[1-9]|[12][0-9]|3[01])"},N=t=>{const e=(t=>`^${t.split(h).map(t=>M[t]).join("\\D")}$`)(t),i=(t=>{const e=t.split(h);return t=>{const i={};return e.forEach((e,n)=>{i[e]=Number(t[n+1])}),{month:i.MM,day:i.DD}}})(t),n=new RegExp(e);return{pattern:e,validate:t=>n.test(t),getParts:t=>{const e=n.exec(t);return e?i(e):null}}},m=Object.fromEntries(u.map(t=>[t,N(t)]));var b=i(49139),D=i.n(b);const T=(t,e)=>{const i=t?.trim?.();return i?m[e]?.getParts(i)??null:null},x=(0,l.xE)("month-day-field"),I=(0,r.yc)({componentName:x,baseSelector:"vaadin-popover"}),A=["format","opened","initial-value","readonly","disable-picker"],v=["picker-months","picker-label-submit","picker-label-cancel"],C=[...A,...v],E=n.w.cssVarList,{host:S,input:k,inputEleRTL:j,toggleButton:w,overlay:f,backdrop:L,bottomNav:O,navButton:z}={host:{selector:()=>":host"},input:{selector:()=>"descope-text-field"},inputEleRTL:{selector:()=>':host([st-host-direction="rtl"]) descope-text-field'},toggleButton:{selector:()=>".toggle-picker"},overlay:{selector:"vaadin-popover-overlay::part(overlay)"},backdrop:{selector:"vaadin-popover-overlay::part(backdrop)"},bottomNav:{selector:"vaadin-popover-overlay .bottom-nav"},navButton:{selector:"vaadin-popover-overlay .bottom-nav descope-button"}},Q=(0,s.Zz)((0,a.RF)({componentNameOverride:(0,l.xE)("input-wrapper")}),(0,a.RF)({mappings:{iconMargin:{...w,property:"margin-inline-end"},hostWidth:{...S,property:"width"},hostDirection:{...S,property:"direction"},textAlign:{...k,property:"text-align"},rtlInputDirection:{...j,property:E.inputDirection},rtlInputAlignment:{...j,property:E.inputTextAlign},overlayGap:{property:()=>Q.cssVarList.overlayGap},overlayBackgroundColor:{property:()=>Q.cssVarList.overlayBackgroundColor},overlayPadding:{property:()=>Q.cssVarList.overlayPadding},overlayBoxShadow:{property:()=>Q.cssVarList.overlayBoxShadow},overlayOutlineWidth:{property:()=>Q.cssVarList.overlayOutlineWidth},overlayOutlineColor:{property:()=>Q.cssVarList.overlayOutlineColor},overlayOutlineStyle:{property:()=>Q.cssVarList.overlayOutlineStyle},errorMessageIcon:{selector:n.w.componentName,property:n.w.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:n.w.componentName,property:n.w.cssVarList.errorMessageIconSize},errorMessageIconPadding:{selector:n.w.componentName,property:n.w.cssVarList.errorMessageIconPadding},errorMessageIconRepeat:{selector:n.w.componentName,property:n.w.cssVarList.errorMessageIconRepeat},errorMessageIconPosition:{selector:n.w.componentName,property:n.w.cssVarList.errorMessageIconPosition},errorMessageFontSize:{selector:n.w.componentName,property:n.w.cssVarList.errorMessageFontSize},labelFontWeight:{selector:n.w.componentName,property:n.w.cssVarList.labelFontWeight},inputValueFontWeight:{selector:n.w.componentName,property:n.w.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{selector:n.w.componentName,property:n.w.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{selector:n.w.componentName,property:n.w.cssVarList.helperTextFontWeight},errorMessageFontWeight:{selector:n.w.componentName,property:n.w.cssVarList.errorMessageFontWeight}}}),(0,a.mA)({name:"overlay",selector:"",mappings:{marginTop:{...f,property:"margin-top"},backgroundColor:{...f},backdropBackgroundColor:{...L,property:"background-color"},backdropPointerEvents:{...L,property:"pointer-events"},padding:{...f},boxShadow:{...f},outlineWidth:{...f},outlineColor:{...f},outlineStyle:{...f},bottomNavTopPadding:{...O,property:"padding-top"},bottomNavBottomPadding:{...O,property:"padding-bottom"},bottomNavHorizontalPadding:[{...O,property:"padding-left"},{...O,property:"padding-right"}],bottomNavAlignment:{...O,property:"justify-content"},bottomNavGap:{...O,property:"gap"},navButtonPadding:[{...z,property:o.J.cssVarList.horizontalPadding},{...z,property:o.J.cssVarList.verticalPadding}],navButtonOutlineWidth:{...z,property:o.J.cssVarList.outlineWidth}}}),a.VO,a.tQ)(class extends I{format=c;#y=0;#M=()=>{this.updateCountersDisplay(),this.#N(),this.#m()};#b=[new p(g,this.#M.bind(this)),new p(y,this.#M.bind(this))];static get observedAttributes(){return[].concat(I.observedAttributes||[],C)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n <div>\n <descope-text-field inputmode="numeric">\n <span slot="suffix" class="toggle-picker">\n <descope-icon src="${D()}"></descope-icon>\n </span>\n </descope-text-field>\n <vaadin-popover></vaadin-popover>\n </div>\n `,(0,l.fz)('\n :host {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n max-width: 100%;\n }\n\n :host ::slotted {\n padding: 0;\n }\n\n .toggle-picker {\n cursor: pointer;\n display: flex;\n align-self: center;\n z-index: 1;\n height: 100%;\n align-items: center;\n }\n\n :host([readonly="true"]) .toggle-picker {\n pointer-events: none;\n }\n\n .hidden {\n display: none;\n }\n ',this),this.inputElement=this.shadowRoot.querySelector("descope-text-field"),this.popoverToggleButton=this.inputElement.querySelector(".toggle-picker")}get validationTarget(){return this.inputElement}get opened(){return"true"===this.getAttribute("opened")}get monthCounter(){return this.#b.find(t=>t.id===g.id)}get dayCounter(){return this.#b.find(t=>t.id===y.id)}get sortedCounters(){return this.format.split(h).map(t=>this.#b.find(e=>e.placeholder===t))}get activeCounter(){return this.sortedCounters[this.#y]}get countersValue(){return this.sortedCounters.map(t=>t.stringValue).join(h)}get isCountersEmpty(){return this.#b.every(t=>t.isEmpty)}get isCountersOutOfRange(){return this.#b.some(t=>!t.isInRange(t.numberValue))}get disablePicker(){return"true"===this.getAttribute("disable-picker")}get overlay(){return this.baseElement.shadowRoot?.querySelector("vaadin-popover-overlay")}get backdrop(){return this.overlay?.shadowRoot?.querySelector("#backdrop")}get picker(){return this.overlay?.querySelector("descope-month-day-field-picker")}get isRTL(){const t=getComputedStyle(this.baseElement).getPropertyValue("direction");return t?"rtl"===t:"rtl"===this.getAttribute("st-host-direction")}get value(){return this.isCountersEmpty||this.isCountersOutOfRange?"":(t=this.monthCounter.numberValue,e=this.dayCounter.numberValue,this.format.replace(/MM|DD/g,i=>String("MM"===i?t:e).padStart(2,"0")));var t,e}set value(t){const e=t?T(String(t),this.format):null;e?this.#D(e.month,e.day):(this.#b.forEach(t=>t.clear()),this.clearInputEle())}get isSelectAll(){const{value:t,selectionStart:e,selectionEnd:i}=this.inputElement;return t.length===e+i}getValidity(){return this.isRequired&&this.isCountersEmpty?{valueMissing:!0}:!this.isCountersEmpty&&this.isCountersOutOfRange?{patternMismatch:!0}:{}}reportValidity(){this.inputElement.reportValidity()}#N(){const t=this.monthCounter.numberValue,e=d[t-1]??31;this.dayCounter.max!==e&&this.dayCounter.setMax(e)}#D(t,e){this.monthCounter.replaceValue(t),this.#N(),e>this.dayCounter.max?this.dayCounter.clear():this.dayCounter.replaceValue(e)}updateCountersDisplay(){this.inputElement.value=this.countersValue}#m(){this.dispatchEvent(new Event("input",{bubbles:!0}))}resetCounters(){this.#b.forEach(t=>t.clear())}clearInputEle(){this.inputElement.value=""}init(){super.init?.(),this.#T(),this.#x(),this.#M(),this.#I(),setTimeout(()=>this.#A(),0)}#I(){this.inputElement.getValidity=this.getValidity.bind(this),this.popoverToggleButton.addEventListener("click",this.#v.bind(this)),this.inputElement.addEventListener("focus",this.#C.bind(this)),this.inputElement.addEventListener("blur",this.#E.bind(this)),this.inputElement.addEventListener("click",this.#S.bind(this)),this.inputElement.addEventListener("keydown",this.#k.bind(this)),this.inputElement.addEventListener("beforeinput",this.#j.bind(this)),this.inputElement.addEventListener("pointerdown",this.#w.bind(this)),this.inputElement.addEventListener("paste",this.#f.bind(this)),(0,l.EA)(this,this.inputElement,{includeAttrs:["label","label-type","placeholder","disabled","readonly","bordered","required","full-width","st-host-direction","pattern","data-errormessage-value-missing","data-errormessage-pattern-mismatch","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]})}#x(){this.baseElement.trigger=["click"],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#L.bind(this),this.baseElement.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation()})}#O;#L(t){t.firstChild||(this.overlay.positionTarget=this.shadowRoot.querySelector(".toggle-picker"),t.appendChild(this.#z()),(t=>{const e=new CSSStyleSheet;e.insertRule(":host{display:block!important;}"),t?.shadowRoot?.adoptedStyleSheets?.push(e)})(this.baseElement),this.backdrop?.addEventListener("click",this.closePopover.bind(this)),(0,l.fz)("\n .overlay-hidden { visibility: hidden; }\n .bottom-nav {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n }\n ",t.getRootNode())),this.#Q(),t.classList.add("overlay-hidden"),setTimeout(()=>{this.#U(),t.classList.remove("overlay-hidden")},100)}#U(){const t=this.shadowRoot.querySelector("vaadin-popover").shadowRoot;if(!t||!this.picker)return;this.#O?.replaceSync("vaadin-popover-overlay::part(overlay) { transform: none; }");const e=document.body.getBoundingClientRect(),i=this.getBoundingClientRect(),n=this.picker.getBoundingClientRect(),o=this.isRTL?"right":"left",r=i[o]-n[o],s=n.left,a=e.width-n.right;let p;p=r>0?Math.min(r,a):-1*Math.min(Math.abs(r),s);const u=`\n vaadin-popover-overlay::part(overlay) {\n transform: translateX(${p}px);\n }\n `;this.#O?this.#O.replaceSync(u):this.#O=(0,l.fz)(u,t)}#z(){const t=document.createElement("span");t.innerHTML='\n <descope-month-day-field-picker></descope-month-day-field-picker>\n <nav class="bottom-nav">\n <descope-button class="cancel-button" variant="link" mode="primary"></descope-button>\n <descope-button class="submit-button" variant="link" mode="primary" disabled="true"></descope-button>\n </nav>\n ';const e=t.querySelector("descope-month-day-field-picker");return this.cancelButton=t.querySelector(".cancel-button"),this.submitButton=t.querySelector(".submit-button"),this.#V(),this.cancelButton.addEventListener("click",this.#P.bind(this)),this.submitButton.addEventListener("click",this.#Y.bind(this)),e.addEventListener("change",this.#F.bind(this)),t}#A(){this.overlay&&(this.overlay._attachOverlay=()=>this.overlay.bringToFront(),this.overlay._detachOverlay=()=>{},this.overlay._enterModalState=()=>{})}#Q(){this.picker&&(this.isCountersEmpty?this.picker.value="":(this.picker.month=this.monthCounter.isEmpty?null:this.monthCounter.numberValue,this.picker.day=this.dayCounter.isEmpty?null:this.dayCounter.numberValue),(0,l.EA)(this,this.picker,{includeAttrs:["st-host-direction","readonly","disabled","picker-months"]}))}get#R(){return this.getAttribute("picker-label-submit")||"Done"}get#W(){return this.getAttribute("picker-label-cancel")||"Cancel"}#V(){this.submitButton&&(this.submitButton.textContent=this.#R,this.cancelButton.textContent=this.#W)}#F(t){const{month:e,day:i}=t.detail||{};this.#B(null==e||null==i)}#B(t){if(!this.submitButton)return;const e=this.submitButton.shadowRoot?.querySelector("vaadin-button");t?(this.submitButton.setAttribute("disabled","true"),e?.setAttribute("disabled","true")):(this.submitButton.removeAttribute("disabled"),e?.removeAttribute("disabled"))}#P(){this.closePopover()}#Y(){if(this.isReadOnly)return void this.closePopover();const t=this.picker?.month,e=this.picker?.day;null!=t&&null!=e?(this.#D(t,e),this.#m(),this.closePopover()):this.closePopover()}#v(){this.opened?this.closePopover():this.openPopover()}openPopover(){this.disablePicker||this.setAttribute("opened","true")}closePopover(){this.removeAttribute("opened"),this.inputElement.focus()}#$(t){t?this.popoverToggleButton.classList.remove("hidden"):this.popoverToggleButton.classList.add("hidden")}#j(t){var e;t.preventDefault(),this.#q(),t.data&&(e=t.data,String(e||"").trim()&&!Number.isNaN(Number(e)))?(this.#J(t.data),this.updateCountersDisplay()):t.inputType&&this.#Z(t)}#q(){this.isSelectAll&&this.#H()}#J(t){this.activeCounter.add(t),this.activeCounter.isFull&&this.#G(),this.#_()}#K(t){const[e,i]=this.sortedCounters.map(t=>t.length);return t<=e?0:1}#X(t){this.#y=this.#K(t.target?.selectionStart||this.inputElement.selectionStart)}#H(){this.#y=0}#G(){this.#y<this.#b.length-1&&(this.#y=Math.min(this.#y+1,1))}#tt(){this.#y>0&&(this.#y=0)}#_(){this.#y<0||setTimeout(()=>{const t=this.sortedCounters.slice(0,this.#y).reduce((t,e)=>t+e.length,this.#y);this.inputElement.setSelectionRange(t,t+this.sortedCounters[this.#y].length)})}#k(t){t.metaKey||t.ctrlKey?"x"===t.key.toLowerCase()&&this.#et(t):(this.#q(),"ArrowUp"===t.key?this.activeCounter.inc():"ArrowDown"===t.key?this.activeCounter.dec():"ArrowRight"===t.key?this.#G():"ArrowLeft"===t.key&&this.#tt(),this.#_())}#Z(t){this.isReadOnly||(this.opened&&this.closePopover(),this.activeCounter&&("deleteContentBackward"===t.inputType&&this.#it(),this.#_()))}#it(){if(this.isSelectAll)return void this.#nt();const t=this.activeCounter;t.isEmpty?(this.#tt(),this.#_()):t.set(""),setTimeout(()=>{this.updateCountersDisplay(),this.#_()})}#S(t){this.opened||(t.preventDefault(),this.#X(t),this.#_())}#w(t){setTimeout(()=>this.#S(t),150)}#C(){this.isReadOnly||setTimeout(()=>this.#ot())}#E(){this.opened||this.inputElement.value===this.format&&this.clearInputEle()}#ot(){this.inputElement.value||(this.inputElement.value=this.format),this.#H(),this.inputElement.setSelectionRange(0,this.sortedCounters[0].length)}#nt(){this.resetCounters(),this.#H(),this.#ot()}#rt(t){Object.keys(m).includes(t)&&(this.format=t,this.#T(),this.updateCountersDisplay())}#T(){const t=this.getAttribute("format")||this.format||c,e=m[t]?t:c;this.format=e,this.setAttribute("pattern",m[e].pattern)}#et(t){t.preventDefault(),this.isSelectAll?(this.#st(this.countersValue),this.#nt()):(this.#st(this.activeCounter.stringValue),this.activeCounter.set("")),this.#_()}#st(t){try{navigator.clipboard.writeText(t)}catch(t){console.error("Failed to copy month/day value:",t)}}#f(t){t.preventDefault();const e=(t.clipboardData||window.clipboardData).getData("Text"),i=T(e,this.format);if(i)return this.#D(i.month,i.day),this.#M(),void setTimeout(()=>this.inputElement.setSelectionRange(0,this.inputElement.value.length));const n=Number(e);n&&this.activeCounter.isInRange(n)&&(this.activeCounter.set(String(n)),setTimeout(()=>this.#_()))}#at(t){this.value||setTimeout(()=>{t&&(this.value=t)})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("disable-picker"===t&&this.#$("true"!==i),A.includes(t)?(i&&"format"===t&&this.#rt(i),"initial-value"===t&&this.#at(i)):"picker-label-submit"===t||"picker-label-cancel"===t?this.#V():v.includes(t)&&(i?this.picker?.setAttribute(t,i):this.picker?.removeAttribute(t)))}});customElements.define(x,Q)},28027(t,e,i){"use strict";i.d(e,{T:()=>l,w:()=>u});var n=i(88961),o=i(63200),r=i(25964),s=i(79673),a=i(47656);const l=(0,r.xE)("text-field"),p=["type","label-type","copy-to-clipboard"],u=(0,o.Zz)((0,n.RF)({mappings:a.A}),n.VO,(0,n.OZ)({proxyProps:["value","selectionStart","selectionEnd"],useProxyTargets:!0}),n.tQ,t=>class extends t{static get observedAttributes(){return p.concat(t.observedAttributes||[])}icon;init(){super.init?.()}renderCopyToClipboard(t){if(!t)return void this.icon?.remove();const e={icon:"vaadin:copy-o",title:"Copy",style:"cursor: pointer"},i={icon:"vaadin:check-circle-o",title:"Copied",style:"cursor: initial"};this.icon=Object.assign(document.createElement("vaadin-icon"),{slot:"suffix",...e}),this.baseElement.appendChild(this.icon),this.icon.addEventListener("click",()=>{navigator.clipboard.writeText(this.value),Object.assign(this.icon,i),setTimeout(()=>{Object.assign(this.icon,e)},5e3)})}onLabelClick(){this.focus()}attributeChangedCallback(t,e,i){super.attributeChangeCallback?.(t,e,i),"type"===t&&this.baseElement._setType(i),e!==i&&("label-type"===t?"floating"===i?this.addEventListener("click",this.onLabelClick):this.removeEventListener("click",this.onLabelClick):"copy-to-clipboard"===t&&this.renderCopyToClipboard("true"===i))}})((0,n.tz)({slots:["prefix","suffix"],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tpadding: calc(var(${u.cssVarList.inputOutlineWidth}) + var(${u.cssVarList.inputOutlineOffset}));\n box-sizing: border-box;\n\t\t\t}\n :host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {\n opacity: 1;\n }\n\n vaadin-text-field[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n vaadin-text-field[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n ${(0,s.$J)("vaadin-text-field")}\n\t\t\t${(0,s.cy)(u.cssVarList)}\n\t\t\t${(0,s.LJ)("vaadin-text-field",u.cssVarList)}\n ${(0,s.Kl)()}\n\n vaadin-text-field vaadin-icon {\n align-self: center;\n }\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:l}))},64014(t,e,i){"use strict";i.r(e),i.d(e,{TextFieldClass:()=>n.w,componentName:()=>n.T}),i(11284),i(37182),i(95260);var n=i(28027);customElements.define(n.T,n.w)},47656(t,e,i){"use strict";i.d(e,{A:()=>b});const{host:n,label:o,placeholder:r,requiredIndicator:s,inputField:a,input:l,inputMask:p,helperText:u,errorMessage:c,disabledPlaceholder:h,inputDisabled:d,inputIcon:g,externalInput:y,externalInputDisabled:M,externalPlaceholder:N,externalDisabledPlaceholder:m}={host:{selector:()=>":host"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},placeholder:[{selector:"> input:placeholder-shown"},{selector:()=>":host::slotted(input:placeholder-shown)"}],disabledPlaceholder:{selector:"> input:disabled::placeholder"},inputField:{selector:"::part(input-field)"},input:{selector:"input"},inputMask:{selector:"::part(input-field)::before"},inputDisabled:{selector:"input:disabled"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},inputIcon:{selector:"vaadin-icon"},externalInput:{selector:()=>"::slotted(input)"},externalInputDisabled:{selector:()=>"::slotted(input:disabled)"},externalPlaceholder:{selector:()=>"::slotted(input:placeholder-shown)"},externalDisabledPlaceholder:{selector:()=>"::slotted(input:disabled::placeholder)"}},b={fontSize:[{},n],fontFamily:[o,a,u,c],labelFontSize:{...o,property:"font-size"},labelFontWeight:{...o,property:"font-weight"},inputValueFontWeight:[{...l,property:"font-weight"},{...y,property:"font-weight"}],inputPlaceholderFontWeight:[{selector:()=>":host input:placeholder-shown",property:"font-weight"},{...N,property:"font-weight"}],helperTextFontWeight:{...u,property:"font-weight"},errorMessageFontWeight:{...c,property:"font-weight"},labelTextColor:[{...o,property:"color"},{...s,property:"color"},{...o,property:"-webkit-text-fill-color"},{...s,property:"-webkit-text-fill-color"}],hostWidth:{...n,property:"width"},hostMinWidth:{...n,property:"min-width"},hostDirection:{...n,property:"direction"},inputDirection:{...l,property:"direction"},inputBackgroundColor:[{...a,property:"background-color"},{...p,property:"background-color"}],errorMessageTextColor:{...c,property:"color"},errorMessageIcon:{...c,property:"background-image"},errorMessageIconSize:{...c,property:"background-size"},errorMessageIconPadding:{...c,property:"padding-inline-start"},errorMessageIconRepeat:{...c,property:"background-repeat"},errorMessageIconPosition:{...c,property:"background-position"},errorMessageFontSize:{...c,property:"font-size"},helperTextColor:{...u,property:"-webkit-text-fill-color"},inputValueTextColor:[{...a,property:"color"},{...d,property:"-webkit-text-fill-color"},{...M,property:"-webkit-text-fill-color"}],inputCaretTextColor:[{...l,property:"caret-color"},{...y,property:"caret-color"}],labelRequiredIndicator:{...s,property:"content"},inputBorderColor:{...a,property:"border-color"},inputBorderWidth:{...a,property:"border-width"},inputBorderStyle:{...a,property:"border-style"},inputBorderRadius:{...a,property:"border-radius"},inputHeight:{...a,property:"height"},inputHorizontalPadding:[{...l,property:"padding-left"},{...l,property:"padding-right"},{...y,property:"padding-left"},{...y,property:"padding-right"}],inputOutlineColor:{...a,property:"outline-color"},inputOutlineStyle:{...a,property:"outline-style"},inputOutlineWidth:{...a,property:"outline-width"},inputOutlineOffset:{...a,property:"outline-offset"},textAlign:{},inputTextAlign:[{...l,property:"text-align"},{...y,property:"text-align"}],inputPlaceholderColor:[{selector:()=>":host input:placeholder-shown",property:"color"},{...N,property:"color"},{...r,property:"color"},{...h,property:"-webkit-text-fill-color"},{...m,property:"-webkit-text-fill-color"}],labelPosition:{...o,property:"position"},labelTopPosition:{...o,property:"top"},labelHorizontalPosition:[{...o,property:"left"},{...o,property:"right"}],inputTransformY:{...o,property:"transform"},inputTransition:{...o,property:"transition"},marginInlineStart:{...o,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...N,property:"opacity"}],inputVerticalAlignment:[{...a,property:"align-items"},{...y,property:"align-items"}],valueInputHeight:[{...l,property:"height"},{...y,property:"height"}],valueInputMarginBottom:[{...l,property:"margin-bottom"},{...y,property:"margin-bottom"}],inputIconOffset:[{...g,property:"margin-right"},{...g,property:"margin-left"}],inputIconSize:{...g,property:"font-size"},inputIconColor:{...g,property:"color"},inputTextSecurity:[{...l,property:"-webkit-text-security"},{...l,property:"text-security"},{...y,property:"-webkit-text-security"},{...y,property:"text-security"}]}}}]);
|
|
2
2
|
//# sourceMappingURL=descope-month-day-field.js.map
|