@openremote/or-json-forms 1.34.0 → 1.35.0-snapshot.20261109083019
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.
|
@@ -658,7 +658,7 @@ ${t[0]?t[0]:""}</textarea>`:q` <input
|
|
|
658
658
|
${e?q` <span class="mdc-notched-outline__notch"> ${e} </span> `:""}
|
|
659
659
|
<span class="mdc-notched-outline__trailing"></span>
|
|
660
660
|
</span>
|
|
661
|
-
`}setCustomValidity(e){this.errorMessage=e;let t=this.shadowRoot.getElementById("elem");t&&t.setCustomValidity&&t.setCustomValidity(null!=e?e:""),this.reportValidity()}checkValidity(){let e=this.shadowRoot.getElementById("elem"),t=!0;return e&&e.validity&&(t=e.validity.valid),t&&(this.type===mA.JSON||this.type===mA.JSON_OBJECT)&&void 0!==this.value&&null!==this.value&&""===this._mdcComponent.value&&(t=!1),t}reportValidity(){let e=this.checkValidity();return this.isUiValid=e,this._mdcComponent&&(this._mdcComponent.valid=e),e}onValueChange(e,t,n){var i,r;let o,a=this.value;if("undefined"===t&&(a=null,t=void 0),"null"===t&&(a=void 0,t=null),"string"==typeof t)switch(this.type){case mA.CHECKBOX:case mA.SWITCH:t="on"===t;break;case mA.JSON:case mA.JSON_OBJECT:case mA.NUMBER:case mA.RANGE:if(""===t)t=null;else try{t=JSON.parse(t),this.type===mA.JSON_OBJECT&&("object"!=typeof t||Array.isArray(t))&&(t=this.value,o=lm.i18next.t("validation.invalidJSON"))}catch(e){t=this.value,o=this.type===mA.JSON||this.type==mA.JSON_OBJECT?lm.i18next.t("validation.invalidJSON"):lm.i18next.t("validation.invalidNumber")}break;case mA.DATETIME:if(""===t)t=null;else try{t=Date.parse(t)}catch(e){t=this.value,o=lm.i18next.t("validation.invalidDate")}}if(this.value=t,this.setCustomValidity(o),this.reportValidity(),this.type!==mA.CHECKBOX_LIST&&t!==a&&(this.type===mA.RANGE&&(this._mdcComponent.setValue(t),this._mdcComponent2&&(this._mdcComponent2.value=t)),this.dispatchEvent(new lB(this.value,a,n))),void 0!=this.searchProvider&&this.type===mA.SELECT){let e=null==(r=null==(i=this.shadowRoot)?void 0:i.getElementById("select-searchable"))?void 0:r.children[1];e&&(this.searchableValue=void 0,e.value="")}this.type!==mA.CHECKBOX_LIST||ld.Util.objectsEqual(t,a,!0)||this.dispatchEvent(new lB(t,a,n))}get valid(){let e=this.shadowRoot.getElementById("elem");return!e||!e.checkValidity||e.checkValidity()}get currentValue(){let e=this.shadowRoot.getElementById("elem");if(e&&e.value)return e.value}resolveOptions(e){let t;return e&&e.length>0&&(t=e.map(e=>{if(Array.isArray(e))return e;{let t=""+e;return[e,lm.i18next.t(t,{defaultValue:ld.Util.camelCaseToSentenceCase(t)})]}})),t}getSelectedTextValue(e){let t=this.value,n=Array.isArray(t)?t:null!=t?[t]:void 0;if(!n)return"";let i=e||this.resolveOptions(this.options);return i&&n?n.map(e=>i.find(([t,n],i)=>e===t)).map(e=>e?e[1]:"").join(", "):""}};lk([eb({type:Boolean})],lH.prototype,"focused",void 0),lk([eb()],lH.prototype,"value",void 0),lk([eb({type:String})],lH.prototype,"type",void 0),lk([eb({type:String})],lH.prototype,"name",void 0),lk([eb({type:Boolean})],lH.prototype,"readonly",void 0),lk([eb({type:Boolean})],lH.prototype,"required",void 0),lk([eb()],lH.prototype,"max",void 0),lk([eb()],lH.prototype,"min",void 0),lk([eb({type:Number})],lH.prototype,"step",void 0),lk([eb({type:Boolean})],lH.prototype,"checked",void 0),lk([eb({type:Boolean})],lH.prototype,"indeterminate",void 0),lk([eb({type:Number})],lH.prototype,"maxLength",void 0),lk([eb({type:Number})],lH.prototype,"minLength",void 0),lk([eb({type:Number})],lH.prototype,"rows",void 0),lk([eb({type:Number})],lH.prototype,"cols",void 0),lk([eb({type:Boolean})],lH.prototype,"multiple",void 0),lk([eb({type:String,attribute:!0,reflect:!1})],lH.prototype,"pattern",void 0),lk([eb({type:String})],lH.prototype,"placeHolder",void 0),lk([eb({type:Array})],lH.prototype,"options",void 0),lk([eb({type:Boolean})],lH.prototype,"autoSelect",void 0),lk([eb({type:Object})],lH.prototype,"searchProvider",void 0),lk([eb({type:String})],lH.prototype,"searchLabel",void 0),lk([eb({type:String})],lH.prototype,"icon",void 0),lk([eb({type:String})],lH.prototype,"iconColor",void 0),lk([eb({type:String})],lH.prototype,"iconOn",void 0),lk([eb({type:String})],lH.prototype,"iconTrailing",void 0),lk([eb({type:Boolean})],lH.prototype,"compact",void 0),lk([eb({type:Boolean})],lH.prototype,"comfortable",void 0),lk([eb({type:Boolean})],lH.prototype,"raised",void 0),lk([eb({type:Boolean})],lH.prototype,"action",void 0),lk([eb({type:Boolean})],lH.prototype,"unElevated",void 0),lk([eb({type:Boolean})],lH.prototype,"outlined",void 0),lk([eb({type:Boolean})],lH.prototype,"rounded",void 0),lk([eb({type:Object})],lH.prototype,"format",void 0),lk([eb({type:Boolean})],lH.prototype,"disableSliderNumberInput",void 0),lk([eb({type:Boolean})],lH.prototype,"fullWidth",void 0),lk([eb({type:String})],lH.prototype,"helperText",void 0),lk([eb({type:Boolean})],lH.prototype,"helperPersistent",void 0),lk([eb({type:String,attribute:!0})],lH.prototype,"validationMessage",void 0),lk([eb({type:Boolean})],lH.prototype,"autoValidate",void 0),lk([eb({type:Boolean})],lH.prototype,"charCounter",void 0),lk([eb({type:String})],lH.prototype,"label",void 0),lk([eb({type:Boolean})],lH.prototype,"disabled",void 0),lk([eb({type:Boolean})],lH.prototype,"continuous",void 0),lk([eb({type:Boolean})],lH.prototype,"resizeVertical",void 0),lk([eb({type:Boolean})],lH.prototype,"censored",void 0),lk([eb({type:Boolean,reflect:!0})],lH.prototype,"advertised",void 0),lk([ey()],lH.prototype,"isUiValid",void 0),lk([ey()],lH.prototype,"searchableValue",void 0),lk([ey()],lH.prototype,"errorMessage",void 0),lH=lk([eg("or-mwc-input")],lH),(mf=mT||(mT={})).BUTTON="button",mf.BUTTON_TOGGLE="button-toggle",mf.BUTTON_MOMENTARY="button-momentary",mf.CHECKBOX="checkbox",mf.CHECKBOX_LIST="checkbox-list",mf.COLOUR="color",mf.DATE="date",mf.DATETIME="datetime-local",mf.EMAIL="email",mf.JSON="json",mf.JSON_OBJECT="json-object",mf.MONTH="month",mf.NUMBER="number",mf.BIG_INT="big-int",mf.PASSWORD="password",mf.RADIO="radio",mf.SWITCH="switch",mf.RANGE="range",mf.TELEPHONE="tel",mf.TEXT="text",mf.TEXTAREA="textarea",mf.TIME="time",mf.URL="url",mf.WEEK="week",mf.SELECT="select",mf.LIST="list",mf.CRON="cron",mf.DURATION="duration",mf.DURATION_TIME="duration-time",mf.DURATION_PERIOD="duration-period",window.Vaadin||={},window.Vaadin.featureFlags||={};let lW={};function lU(e,t="25.3.4"){if(Object.defineProperty(e,"version",{get:()=>t}),e.experimental){let t="string"==typeof e.experimental?e.experimental:`${e.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,e=>e[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[t]||lW[t]){if(lW[t])return void lW[t].add(e)}else{lW[t]=new Set,lW[t].add(e),Object.defineProperty(window.Vaadin.featureFlags,t,{get:()=>0===lW[t].size,set(e){e&&lW[t].size>0&&(lW[t].forEach(e=>{customElements.define(e.is,e)}),lW[t].clear())}});return}}let n=customElements.get(e.is);if(n){let t=n.version;t&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${n.version} is already in use. Something will probably break.`)}else customElements.define(e.is,e)}let lG=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,lK=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function lq(e,t){if("function"!=typeof e)return;let n=lG.exec(e.toString());if(n)try{e=Function(n[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}window.Vaadin=window.Vaadin||{};let lY=function(e,t){if(window.Vaadin.developmentMode)return lq(e,t)};function lX(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{if(localStorage.getItem("vaadin.developmentmode.force"))return!0;if(!(["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0))return!1;if(lK)return!(lK&&Object.keys(lK).map(e=>lK[e]).filter(e=>e.productionMode).length>0);return!lq(function(){return!0})}catch(e){return!1}}());let lQ=function(){if("function"==typeof lY)return lY(lX)},lJ=0,lZ=0,l0=[],l1=!1,l2={after:e=>({run:t=>window.setTimeout(t,e),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},l5={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},l4={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},l3={run(e){l1||(l1=!0,queueMicrotask(()=>(function(){l1=!1;let e=l0.length;for(let t=0;t<e;t++){let e=l0[t];if(e)try{e()}catch(e){setTimeout(()=>{throw e})}}l0.splice(0,e),lZ+=e})())),l0.push(e);let t=lJ;return lJ+=1,t},cancel(e){let t=e-lZ;if(t>=0){if(!l0[t])throw Error(`invalid async handle: ${e}`);l0[t]=null}}},l8=new Set;class l6{static debounce(e,t,n){return e instanceof l6?e._cancelAsync():e=new l6,e.setConfig(t,n),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,l8.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),l8.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}let l7=()=>{let e;do e=function(){let e=!!l8.size;return l8.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e}();while(e)},l9=[];function ce(e,t,n=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=n&&e.removeAttribute("dir")}function ct(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let e=ct();l9.forEach(t=>{ce(t,e)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let cn=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),ce(this,ct(),null))}attributeChangedCallback(e,t,n){if(super.attributeChangedCallback(e,t,n),"dir"!==e)return;let i=ct(),r=n===i&&-1===l9.indexOf(this),o=!n&&t&&-1===l9.indexOf(this),a=n!==i&&t===i;r||o?(this.__subscribe(),ce(this,i,n)):a&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=l9.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,n){("dir"!==n||""!==t||e.hasAttribute("dir"))&&super._valueToNodeAttribute(e,t,n)}_attributeToProperty(e,t,n){"dir"!==e||t?super._attributeToProperty(e,t,n):this.dir=""}__subscribe(){l9.includes(this)||l9.push(this)}__unsubscribe(){l9.includes(this)&&l9.splice(l9.indexOf(this),1)}};window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){lQ()};let ci=new Set,cr=t=>class extends cn(t){static _ensureRegistrations(){let{is:t}=this;if(t&&!ci.has(t)){window.Vaadin.registrations.push(this),ci.add(t);let i=window.Vaadin.developmentModeCallback;if(i){var n;n=e=l6.debounce(e,l4,()=>{i["vaadin-usage-statistics"]()}),l8.add(n)}}}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.'),this.constructor._ensureRegistrations()}},co=new WeakMap;function ca(e){return t=>{if(function(e,t){let n=t;for(;n;){if(co.get(n)===e)return!0;n=Object.getPrototypeOf(n)}return!1}(e,t))return t;let n=e(t);return co.set(n,e),n}}let cs={},cl=/([A-Z])/gu;function cc(e){return cs[e]||(cs[e]=e.replace(cl,"-$1").toLowerCase()),cs[e]}function cd(e){return e[0].toUpperCase()+e.substring(1)}function ch(e){let[t,n]=e.split("(");return{method:t,observerProps:n.replace(")","").split(",").map(e=>e.trim())}}function cu(e,t){return Object.prototype.hasOwnProperty.call(e,t)||(e[t]=new Map(e[t])),e[t]}let cp=ca(e=>class extends e{static enabledWarnings=[];static createProperty(e,t){[String,Boolean,Number,Array].includes(t)&&(t={type:t}),t?.reflectToAttribute&&(t.reflect=!0),super.createProperty(e,t)}static getOrCreateMap(e){return cu(this,e)}static finalize(){if(window.litIssuedWarnings&&(window.litIssuedWarnings.add("no-override-create-property"),window.litIssuedWarnings.add("no-override-get-property-descriptor")),super.finalize(),Array.isArray(this.observers)){let e=this.getOrCreateMap("__complexObservers");this.observers.forEach(t=>{let{method:n,observerProps:i}=ch(t);e.set(n,i)})}}static addCheckedInitializer(e){super.addInitializer(t=>{t instanceof this&&e(t)})}static getPropertyDescriptor(e,t,n){let i=super.getPropertyDescriptor(e,t,n),r=i;if(this.getOrCreateMap("__propKeys").set(e,t),n.sync&&(r={get:i.get,set(i){let r=this[e];E(i,r)&&(this[t]=i,this.requestUpdate(e,r,n),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),n.readOnly){let t=r.set;this.addCheckedInitializer(n=>{n[`_set${cd(e)}`]=function(e){t.call(n,e)}}),r={get:r.get,set(){},configurable:!0,enumerable:!0}}if("value"in n&&this.addCheckedInitializer(t=>{let i="function"==typeof n.value?n.value.call(t):n.value;n.readOnly?t[`_set${cd(e)}`](i):t[e]=i}),n.observer){let t=n.observer;this.getOrCreateMap("__observers").set(e,t),this.addCheckedInitializer(e=>{e[t]||console.warn(`observer method ${t} not defined`)})}if(n.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let e=this.__notifyProps;this.__notifyProps=new Set(e)}}else this.__notifyProps=new Set;this.__notifyProps.add(e)}if(n.computed){let t=`__assignComputed${e}`,i=ch(n.computed);this.prototype[t]=function(...t){this[e]=this[i.method](...t)},this.getOrCreateMap("__computedObservers").set(t,i.observerProps)}return n.attribute||(n.attribute=cc(e)),r}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:e}=this.constructor;this.hasUpdated||e.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e})}ready(){}willUpdate(e){this.constructor.__computedObservers&&this.__runComplexObservers(e,this.constructor.__computedObservers)}updated(e){let t=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(e,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(e,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(e,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(e,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(e,this.constructor.__notifyProps),t||this.ready()}setProperties(e){Object.entries(e).forEach(([e,t])=>{let n=this.constructor.__propKeys.get(e),i=this[n];this[n]=t,this.requestUpdate(e,i)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(e){let t=cu(this,"__dynamicMethodObservers"),{method:n,observerProps:i}=ch(e);t.set(n,i)}_createPropertyObserver(e,t){cu(this,"__dynamicPropertyObservers").set(t,e)}__runComplexObservers(e,t){t.forEach((t,n)=>{t.some(t=>e.has(t))&&(this[n]?this[n](...t.map(e=>this[e])):console.warn(`observer method ${n} not defined`))})}__runDynamicObservers(e,t){t.forEach((t,n)=>{e.has(t)&&this[n]&&this[n](this[t],e.get(t))})}__runObservers(e,t){e.forEach((e,n)=>{let i=t.get(n);void 0!==i&&this[i]&&this[i](this[n],e)})}__runNotifyProps(e,t){e.forEach((e,n)=>{t.has(n)&&this.dispatchEvent(new CustomEvent(`${cc(n)}-changed`,{detail:{value:this[n]}}))})}_get(e,t){return e.split(".").reduce((e,t)=>e?e[t]:void 0,t)}_set(e,t,n){let i,r;r=(i=e.split(".")).pop(),i.reduce((e,t)=>e[t],n)[r]=t}});function cm(e){return new Set(e?e.split(" ").filter(Boolean):[])}function cf(e){return e?[...e].join(" "):""}function cg(e,t,n){n?e.setAttribute(t,n):e.removeAttribute(t)}function cv(e){return cm(Array.isArray(e)?e.join(" "):e)}function cb(e,t,n){n=cv(n);let i=cm(e.getAttribute(t));n.forEach(e=>i.add(e)),cg(e,t,cf(i))}function cy(e,t,n){n=cv(n);let i=cm(e.getAttribute(t));n.forEach(e=>i.delete(e)),cg(e,t,cf(i))}class c_{constructor(e,t,n={}){this.target=e,this.callback=t,this.forceInitial=n.forceInitial,this._storedNodes=[],this._isSlot=e instanceof HTMLSlotElement,this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),n.syncInitial?this.flush():this._schedule()}connect(){this.target.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.target.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this._scheduled&&this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_collectNodes(){return[...new Set((this._isSlot?[this.target]:[...this.target.querySelectorAll("slot")]).flatMap(e=>e.assignedNodes({flatten:!0})))]}_groupNodesBySlot(e){let t=new Map;return e.forEach(e=>{let n=e.assignedSlot;t.set(n,t.get(n)??[]),t.get(n).push(e)}),t}_collectMovedNodes(e){let t=this._groupNodesBySlot(e),n=this._groupNodesBySlot(this._storedNodes),i=[];return t.forEach((e,t)=>{let r=n.get(t)||[];new Set(r).difference(new Set(e)).size>0||r.forEach((t,n)=>{e.indexOf(t)!==n&&i.push(t)})}),i}_processNodes(){let e=this._collectNodes(),t=e.filter(e=>!this._storedNodes.includes(e)),n=this._storedNodes.filter(t=>!e.includes(t)),i=this._collectMovedNodes(e);(t.length||n.length||i.length||this.forceInitial)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:i,removedNodes:n}),this.forceInitial&&(this.forceInitial=!1),this._storedNodes=e}}let cx=0;class cw extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${cx++}`}constructor(e,t,n,i={}){super();const{initializer:r,multiple:o,observe:a,useUniqueId:s,uniqueIdPrefix:l}=i;this.host=e,this.slotName=t,this.tagName=n,this.observe="boolean"!=typeof a||a,this.multiple="boolean"==typeof o&&o,this.slotInitializer=r,o&&(this.nodes=[]),s&&(this.defaultId=this.constructor.generateId(e,l||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){let e=this.getSlotChildren();if(0===e.length){let e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=e,e.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){let{host:e,slotName:t,tagName:n}=this,i=this.defaultNode;return!i&&n&&(i=document.createElement(n))instanceof Element&&(""!==t&&i.setAttribute("slot",t),this.defaultNode=i),i&&(this.node=i,e.appendChild(i)),i}getSlotChildren(){let{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>!(t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute("data-slot-ignore"))&&(t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&""===e))}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){let{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){let{slotName:e}=this,t=""===e?"slot:not([name])":`slot[name=${e}]`;new c_(this.host.shadowRoot.querySelector(t),({addedNodes:e,removedNodes:t})=>{let n=this.multiple?this.nodes:[this.node],i=e.filter(e=>(e.nodeType!==Node.TEXT_NODE||""!==e.textContent.trim())&&!n.includes(e)&&!(e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-slot-ignore")));t.length&&(this.multiple?this.nodes=n.filter(e=>!t.includes(e)):t.includes(this.node)&&(this.node=null),t.forEach(e=>{this.teardownNode(e)})),i?.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...i].filter(e=>e!==this.defaultNode),i.forEach(e=>{this.initAddedNode(e)})):(this.node&&this.node.remove(),this.node=i[0],this.initAddedNode(this.node)))})}}class ck extends cw{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,void 0!==this.ariaTarget&&(e.ariaTarget=this.ariaTarget),void 0!==this.context&&(e.context=this.context),void 0!==this.manual&&(e.manual=this.manual),void 0!==this.position&&(e._position=this.position),void 0!==this.shouldShow&&(e.shouldShow=this.shouldShow),this.manual||this.host.setAttribute("has-tooltip",""),this.#e(e),e.addEventListener("content-changed",this.#t)}teardownNode(e){this.manual||this.host.removeAttribute("has-tooltip"),e.removeEventListener("content-changed",this.#t),this.#e(null)}setAriaTarget(e){this.ariaTarget=e;let t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;let t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;let t=this.node;t&&(t.manual=e)}setPosition(e){this.position=e;let t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;let t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;let t=this.node;t&&(t.target=e)}open(e){let t=this.node;t?.isConnected&&t._stateController.open(e)}close(e){let t=this.node;t&&t._stateController.close(e)}#t=e=>{this.#e(e.target)};#e(e){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:e}}))}}function cC(e){try{CSS.registerProperty(e)}catch(t){if(t instanceof DOMException&&"InvalidModificationError"===t.name)console.warn(`The CSS property ${e.name} has already been registered.`);else throw t}}class cE extends EventTarget{#n;#i=new Set;#r;#o=!1;constructor(e){super(),this.#n=e,this.#r=new CSSStyleSheet}#a(e){let{propertyName:t}=e;this.#i.has(t)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:t}}))}observe(e){this.connect(),this.#i.has(e)||(this.#i.add(e),this.#r.replaceSync(`
|
|
661
|
+
`}setCustomValidity(e){this.errorMessage=e;let t=this.shadowRoot.getElementById("elem");t&&t.setCustomValidity&&t.setCustomValidity(null!=e?e:""),this.reportValidity()}checkValidity(){let e=this.shadowRoot.getElementById("elem"),t=!0;return e&&e.validity&&(t=e.validity.valid),t&&(this.type===mA.JSON||this.type===mA.JSON_OBJECT)&&void 0!==this.value&&null!==this.value&&""===this._mdcComponent.value&&(t=!1),t}reportValidity(){let e=this.checkValidity();return this.isUiValid=e,this._mdcComponent&&(this._mdcComponent.valid=e),e}onValueChange(e,t,n){var i,r;let o,a=this.value;if("undefined"===t&&(a=null,t=void 0),"null"===t&&(a=void 0,t=null),"string"==typeof t)switch(this.type){case mA.CHECKBOX:case mA.SWITCH:t="on"===t;break;case mA.JSON:case mA.JSON_OBJECT:case mA.NUMBER:case mA.RANGE:if(""===t)t=null;else try{t=JSON.parse(t),this.type===mA.JSON_OBJECT&&("object"!=typeof t||Array.isArray(t))&&(t=this.value,o=lm.i18next.t("validation.invalidJSON"))}catch(e){t=this.value,o=this.type===mA.JSON||this.type==mA.JSON_OBJECT?lm.i18next.t("validation.invalidJSON"):lm.i18next.t("validation.invalidNumber")}break;case mA.DATETIME:if(""===t)t=null;else try{t=Date.parse(t)}catch(e){t=this.value,o=lm.i18next.t("validation.invalidDate")}}if(this.value=t,this.setCustomValidity(o),this.reportValidity(),this.type!==mA.CHECKBOX_LIST&&t!==a&&(this.type===mA.RANGE&&(this._mdcComponent.setValue(t),this._mdcComponent2&&(this._mdcComponent2.value=t)),this.dispatchEvent(new lB(this.value,a,n))),void 0!=this.searchProvider&&this.type===mA.SELECT){let e=null==(r=null==(i=this.shadowRoot)?void 0:i.getElementById("select-searchable"))?void 0:r.children[1];e&&(this.searchableValue=void 0,e.value="")}this.type!==mA.CHECKBOX_LIST||ld.Util.objectsEqual(t,a,!0)||this.dispatchEvent(new lB(t,a,n))}get valid(){let e=this.shadowRoot.getElementById("elem");return!e||!e.checkValidity||e.checkValidity()}get currentValue(){let e=this.shadowRoot.getElementById("elem");if(e&&e.value)return e.value}resolveOptions(e){let t;return e&&e.length>0&&(t=e.map(e=>{if(Array.isArray(e))return e;{let t=""+e;return[e,lm.i18next.t(t,{defaultValue:ld.Util.camelCaseToSentenceCase(t)})]}})),t}getSelectedTextValue(e){let t=this.value,n=Array.isArray(t)?t:null!=t?[t]:void 0;if(!n)return"";let i=e||this.resolveOptions(this.options);return i&&n?n.map(e=>i.find(([t,n],i)=>e===t)).map(e=>e?e[1]:"").join(", "):""}};lk([eb({type:Boolean})],lH.prototype,"focused",void 0),lk([eb()],lH.prototype,"value",void 0),lk([eb({type:String})],lH.prototype,"type",void 0),lk([eb({type:String})],lH.prototype,"name",void 0),lk([eb({type:Boolean})],lH.prototype,"readonly",void 0),lk([eb({type:Boolean})],lH.prototype,"required",void 0),lk([eb()],lH.prototype,"max",void 0),lk([eb()],lH.prototype,"min",void 0),lk([eb({type:Number})],lH.prototype,"step",void 0),lk([eb({type:Boolean})],lH.prototype,"checked",void 0),lk([eb({type:Boolean})],lH.prototype,"indeterminate",void 0),lk([eb({type:Number})],lH.prototype,"maxLength",void 0),lk([eb({type:Number})],lH.prototype,"minLength",void 0),lk([eb({type:Number})],lH.prototype,"rows",void 0),lk([eb({type:Number})],lH.prototype,"cols",void 0),lk([eb({type:Boolean})],lH.prototype,"multiple",void 0),lk([eb({type:String,attribute:!0,reflect:!1})],lH.prototype,"pattern",void 0),lk([eb({type:String})],lH.prototype,"placeHolder",void 0),lk([eb({type:Array})],lH.prototype,"options",void 0),lk([eb({type:Boolean})],lH.prototype,"autoSelect",void 0),lk([eb({type:Object})],lH.prototype,"searchProvider",void 0),lk([eb({type:String})],lH.prototype,"searchLabel",void 0),lk([eb({type:String})],lH.prototype,"icon",void 0),lk([eb({type:String})],lH.prototype,"iconColor",void 0),lk([eb({type:String})],lH.prototype,"iconOn",void 0),lk([eb({type:String})],lH.prototype,"iconTrailing",void 0),lk([eb({type:Boolean})],lH.prototype,"compact",void 0),lk([eb({type:Boolean})],lH.prototype,"comfortable",void 0),lk([eb({type:Boolean})],lH.prototype,"raised",void 0),lk([eb({type:Boolean})],lH.prototype,"action",void 0),lk([eb({type:Boolean})],lH.prototype,"unElevated",void 0),lk([eb({type:Boolean})],lH.prototype,"outlined",void 0),lk([eb({type:Boolean})],lH.prototype,"rounded",void 0),lk([eb({type:Object})],lH.prototype,"format",void 0),lk([eb({type:Boolean})],lH.prototype,"disableSliderNumberInput",void 0),lk([eb({type:Boolean})],lH.prototype,"fullWidth",void 0),lk([eb({type:String})],lH.prototype,"helperText",void 0),lk([eb({type:Boolean})],lH.prototype,"helperPersistent",void 0),lk([eb({type:String,attribute:!0})],lH.prototype,"validationMessage",void 0),lk([eb({type:Boolean})],lH.prototype,"autoValidate",void 0),lk([eb({type:Boolean})],lH.prototype,"charCounter",void 0),lk([eb({type:String})],lH.prototype,"label",void 0),lk([eb({type:Boolean})],lH.prototype,"disabled",void 0),lk([eb({type:Boolean})],lH.prototype,"continuous",void 0),lk([eb({type:Boolean})],lH.prototype,"resizeVertical",void 0),lk([eb({type:Boolean})],lH.prototype,"censored",void 0),lk([eb({type:Boolean,reflect:!0})],lH.prototype,"advertised",void 0),lk([ey()],lH.prototype,"isUiValid",void 0),lk([ey()],lH.prototype,"searchableValue",void 0),lk([ey()],lH.prototype,"errorMessage",void 0),lH=lk([eg("or-mwc-input")],lH),(mf=mT||(mT={})).BUTTON="button",mf.BUTTON_TOGGLE="button-toggle",mf.BUTTON_MOMENTARY="button-momentary",mf.CHECKBOX="checkbox",mf.CHECKBOX_LIST="checkbox-list",mf.COLOUR="color",mf.DATE="date",mf.DATETIME="datetime-local",mf.EMAIL="email",mf.JSON="json",mf.JSON_OBJECT="json-object",mf.MONTH="month",mf.NUMBER="number",mf.BIG_INT="big-int",mf.PASSWORD="password",mf.RADIO="radio",mf.SWITCH="switch",mf.RANGE="range",mf.TELEPHONE="tel",mf.TEXT="text",mf.TEXTAREA="textarea",mf.TIME="time",mf.URL="url",mf.WEEK="week",mf.SELECT="select",mf.LIST="list",mf.CRON="cron",mf.DURATION="duration",mf.DURATION_TIME="duration-time",mf.DURATION_PERIOD="duration-period",window.Vaadin||={},window.Vaadin.featureFlags||={};let lW={};function lU(e,t="25.3.5"){if(Object.defineProperty(e,"version",{get:()=>t}),e.experimental){let t="string"==typeof e.experimental?e.experimental:`${e.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,e=>e[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[t]||lW[t]){if(lW[t])return void lW[t].add(e)}else{lW[t]=new Set,lW[t].add(e),Object.defineProperty(window.Vaadin.featureFlags,t,{get:()=>0===lW[t].size,set(e){e&&lW[t].size>0&&(lW[t].forEach(e=>{customElements.define(e.is,e)}),lW[t].clear())}});return}}let n=customElements.get(e.is);if(n){let t=n.version;t&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${n.version} is already in use. Something will probably break.`)}else customElements.define(e.is,e)}let lG=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,lK=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function lq(e,t){if("function"!=typeof e)return;let n=lG.exec(e.toString());if(n)try{e=Function(n[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}window.Vaadin=window.Vaadin||{};let lY=function(e,t){if(window.Vaadin.developmentMode)return lq(e,t)};function lX(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{if(localStorage.getItem("vaadin.developmentmode.force"))return!0;if(!(["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0))return!1;if(lK)return!(lK&&Object.keys(lK).map(e=>lK[e]).filter(e=>e.productionMode).length>0);return!lq(function(){return!0})}catch(e){return!1}}());let lQ=function(){if("function"==typeof lY)return lY(lX)},lJ=0,lZ=0,l0=[],l1=!1,l2={after:e=>({run:t=>window.setTimeout(t,e),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},l5={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},l4={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},l3={run(e){l1||(l1=!0,queueMicrotask(()=>(function(){l1=!1;let e=l0.length;for(let t=0;t<e;t++){let e=l0[t];if(e)try{e()}catch(e){setTimeout(()=>{throw e})}}l0.splice(0,e),lZ+=e})())),l0.push(e);let t=lJ;return lJ+=1,t},cancel(e){let t=e-lZ;if(t>=0){if(!l0[t])throw Error(`invalid async handle: ${e}`);l0[t]=null}}},l8=new Set;class l6{static debounce(e,t,n){return e instanceof l6?e._cancelAsync():e=new l6,e.setConfig(t,n),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,l8.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),l8.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}let l7=()=>{let e;do e=function(){let e=!!l8.size;return l8.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e}();while(e)},l9=[];function ce(e,t,n=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=n&&e.removeAttribute("dir")}function ct(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let e=ct();l9.forEach(t=>{ce(t,e)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let cn=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),ce(this,ct(),null))}attributeChangedCallback(e,t,n){if(super.attributeChangedCallback(e,t,n),"dir"!==e)return;let i=ct(),r=n===i&&-1===l9.indexOf(this),o=!n&&t&&-1===l9.indexOf(this),a=n!==i&&t===i;r||o?(this.__subscribe(),ce(this,i,n)):a&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=l9.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,n){("dir"!==n||""!==t||e.hasAttribute("dir"))&&super._valueToNodeAttribute(e,t,n)}_attributeToProperty(e,t,n){"dir"!==e||t?super._attributeToProperty(e,t,n):this.dir=""}__subscribe(){l9.includes(this)||l9.push(this)}__unsubscribe(){l9.includes(this)&&l9.splice(l9.indexOf(this),1)}};window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){lQ()};let ci=new Set,cr=t=>class extends cn(t){static _ensureRegistrations(){let{is:t}=this;if(t&&!ci.has(t)){window.Vaadin.registrations.push(this),ci.add(t);let i=window.Vaadin.developmentModeCallback;if(i){var n;n=e=l6.debounce(e,l4,()=>{i["vaadin-usage-statistics"]()}),l8.add(n)}}}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.'),this.constructor._ensureRegistrations()}},co=new WeakMap;function ca(e){return t=>{if(function(e,t){let n=t;for(;n;){if(co.get(n)===e)return!0;n=Object.getPrototypeOf(n)}return!1}(e,t))return t;let n=e(t);return co.set(n,e),n}}let cs={},cl=/([A-Z])/gu;function cc(e){return cs[e]||(cs[e]=e.replace(cl,"-$1").toLowerCase()),cs[e]}function cd(e){return e[0].toUpperCase()+e.substring(1)}function ch(e){let[t,n]=e.split("(");return{method:t,observerProps:n.replace(")","").split(",").map(e=>e.trim())}}function cu(e,t){return Object.prototype.hasOwnProperty.call(e,t)||(e[t]=new Map(e[t])),e[t]}let cp=ca(e=>class extends e{static enabledWarnings=[];static createProperty(e,t){[String,Boolean,Number,Array].includes(t)&&(t={type:t}),t?.reflectToAttribute&&(t.reflect=!0),super.createProperty(e,t)}static getOrCreateMap(e){return cu(this,e)}static finalize(){if(window.litIssuedWarnings&&(window.litIssuedWarnings.add("no-override-create-property"),window.litIssuedWarnings.add("no-override-get-property-descriptor")),super.finalize(),Array.isArray(this.observers)){let e=this.getOrCreateMap("__complexObservers");this.observers.forEach(t=>{let{method:n,observerProps:i}=ch(t);e.set(n,i)})}}static addCheckedInitializer(e){super.addInitializer(t=>{t instanceof this&&e(t)})}static getPropertyDescriptor(e,t,n){let i=super.getPropertyDescriptor(e,t,n),r=i;if(this.getOrCreateMap("__propKeys").set(e,t),n.sync&&(r={get:i.get,set(i){let r=this[e];E(i,r)&&(this[t]=i,this.requestUpdate(e,r,n),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),n.readOnly){let t=r.set;this.addCheckedInitializer(n=>{n[`_set${cd(e)}`]=function(e){t.call(n,e)}}),r={get:r.get,set(){},configurable:!0,enumerable:!0}}if("value"in n&&this.addCheckedInitializer(t=>{let i="function"==typeof n.value?n.value.call(t):n.value;n.readOnly?t[`_set${cd(e)}`](i):t[e]=i}),n.observer){let t=n.observer;this.getOrCreateMap("__observers").set(e,t),this.addCheckedInitializer(e=>{e[t]||console.warn(`observer method ${t} not defined`)})}if(n.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let e=this.__notifyProps;this.__notifyProps=new Set(e)}}else this.__notifyProps=new Set;this.__notifyProps.add(e)}if(n.computed){let t=`__assignComputed${e}`,i=ch(n.computed);this.prototype[t]=function(...t){this[e]=this[i.method](...t)},this.getOrCreateMap("__computedObservers").set(t,i.observerProps)}return n.attribute||(n.attribute=cc(e)),r}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:e}=this.constructor;this.hasUpdated||e.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e})}ready(){}willUpdate(e){this.constructor.__computedObservers&&this.__runComplexObservers(e,this.constructor.__computedObservers)}updated(e){let t=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(e,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(e,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(e,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(e,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(e,this.constructor.__notifyProps),t||this.ready()}setProperties(e){Object.entries(e).forEach(([e,t])=>{let n=this.constructor.__propKeys.get(e),i=this[n];this[n]=t,this.requestUpdate(e,i)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(e){let t=cu(this,"__dynamicMethodObservers"),{method:n,observerProps:i}=ch(e);t.set(n,i)}_createPropertyObserver(e,t){cu(this,"__dynamicPropertyObservers").set(t,e)}__runComplexObservers(e,t){t.forEach((t,n)=>{t.some(t=>e.has(t))&&(this[n]?this[n](...t.map(e=>this[e])):console.warn(`observer method ${n} not defined`))})}__runDynamicObservers(e,t){t.forEach((t,n)=>{e.has(t)&&this[n]&&this[n](this[t],e.get(t))})}__runObservers(e,t){e.forEach((e,n)=>{let i=t.get(n);void 0!==i&&this[i]&&this[i](this[n],e)})}__runNotifyProps(e,t){e.forEach((e,n)=>{t.has(n)&&this.dispatchEvent(new CustomEvent(`${cc(n)}-changed`,{detail:{value:this[n]}}))})}_get(e,t){return e.split(".").reduce((e,t)=>e?e[t]:void 0,t)}_set(e,t,n){let i,r;r=(i=e.split(".")).pop(),i.reduce((e,t)=>e[t],n)[r]=t}});function cm(e){return new Set(e?e.split(" ").filter(Boolean):[])}function cf(e){return e?[...e].join(" "):""}function cg(e,t,n){n?e.setAttribute(t,n):e.removeAttribute(t)}function cv(e){return cm(Array.isArray(e)?e.join(" "):e)}function cb(e,t,n){n=cv(n);let i=cm(e.getAttribute(t));n.forEach(e=>i.add(e)),cg(e,t,cf(i))}function cy(e,t,n){n=cv(n);let i=cm(e.getAttribute(t));n.forEach(e=>i.delete(e)),cg(e,t,cf(i))}class c_{constructor(e,t,n={}){this.target=e,this.callback=t,this.forceInitial=n.forceInitial,this._storedNodes=[],this._isSlot=e instanceof HTMLSlotElement,this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),n.syncInitial?this.flush():this._schedule()}connect(){this.target.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.target.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this._scheduled&&this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_collectNodes(){return[...new Set((this._isSlot?[this.target]:[...this.target.querySelectorAll("slot")]).flatMap(e=>e.assignedNodes({flatten:!0})))]}_groupNodesBySlot(e){let t=new Map;return e.forEach(e=>{let n=e.assignedSlot;t.set(n,t.get(n)??[]),t.get(n).push(e)}),t}_collectMovedNodes(e){let t=this._groupNodesBySlot(e),n=this._groupNodesBySlot(this._storedNodes),i=[];return t.forEach((e,t)=>{let r=n.get(t)||[];new Set(r).difference(new Set(e)).size>0||r.forEach((t,n)=>{e.indexOf(t)!==n&&i.push(t)})}),i}_processNodes(){let e=this._collectNodes(),t=e.filter(e=>!this._storedNodes.includes(e)),n=this._storedNodes.filter(t=>!e.includes(t)),i=this._collectMovedNodes(e);(t.length||n.length||i.length||this.forceInitial)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:i,removedNodes:n}),this.forceInitial&&(this.forceInitial=!1),this._storedNodes=e}}let cx=0;class cw extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${cx++}`}constructor(e,t,n,i={}){super();const{initializer:r,multiple:o,observe:a,useUniqueId:s,uniqueIdPrefix:l}=i;this.host=e,this.slotName=t,this.tagName=n,this.observe="boolean"!=typeof a||a,this.multiple="boolean"==typeof o&&o,this.slotInitializer=r,o&&(this.nodes=[]),s&&(this.defaultId=this.constructor.generateId(e,l||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){let e=this.getSlotChildren();if(0===e.length){let e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=e,e.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){let{host:e,slotName:t,tagName:n}=this,i=this.defaultNode;return!i&&n&&(i=document.createElement(n))instanceof Element&&(""!==t&&i.setAttribute("slot",t),this.defaultNode=i),i&&(this.node=i,e.appendChild(i)),i}getSlotChildren(){let{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>!(t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute("data-slot-ignore"))&&(t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&""===e))}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){let{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){let{slotName:e}=this,t=""===e?"slot:not([name])":`slot[name=${e}]`;new c_(this.host.shadowRoot.querySelector(t),({addedNodes:e,removedNodes:t})=>{let n=this.multiple?this.nodes:[this.node],i=e.filter(e=>(e.nodeType!==Node.TEXT_NODE||""!==e.textContent.trim())&&!n.includes(e)&&!(e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-slot-ignore")));t.length&&(this.multiple?this.nodes=n.filter(e=>!t.includes(e)):t.includes(this.node)&&(this.node=null),t.forEach(e=>{this.teardownNode(e)})),i?.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...i].filter(e=>e!==this.defaultNode),i.forEach(e=>{this.initAddedNode(e)})):(this.node&&this.node.remove(),this.node=i[0],this.initAddedNode(this.node)))})}}class ck extends cw{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,void 0!==this.ariaTarget&&(e.ariaTarget=this.ariaTarget),void 0!==this.context&&(e.context=this.context),void 0!==this.manual&&(e.manual=this.manual),void 0!==this.position&&(e._position=this.position),void 0!==this.shouldShow&&(e.shouldShow=this.shouldShow),this.manual||this.host.setAttribute("has-tooltip",""),this.#e(e),e.addEventListener("content-changed",this.#t)}teardownNode(e){this.manual||this.host.removeAttribute("has-tooltip"),e.removeEventListener("content-changed",this.#t),this.#e(null)}setAriaTarget(e){this.ariaTarget=e;let t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;let t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;let t=this.node;t&&(t.manual=e)}setPosition(e){this.position=e;let t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;let t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;let t=this.node;t&&(t.target=e)}open(e){let t=this.node;t?.isConnected&&t._stateController.open(e)}close(e){let t=this.node;t&&t._stateController.close(e)}#t=e=>{this.#e(e.target)};#e(e){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:e}}))}}function cC(e){try{CSS.registerProperty(e)}catch(t){if(t instanceof DOMException&&"InvalidModificationError"===t.name)console.warn(`The CSS property ${e.name} has already been registered.`);else throw t}}class cE extends EventTarget{#n;#i=new Set;#r;#o=!1;constructor(e){super(),this.#n=e,this.#r=new CSSStyleSheet}#a(e){let{propertyName:t}=e;this.#i.has(t)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:t}}))}observe(e){this.connect(),this.#i.has(e)||(this.#i.add(e),this.#r.replaceSync(`
|
|
662
662
|
:root::before, :host::before {
|
|
663
663
|
content: '' !important;
|
|
664
664
|
position: absolute !important;
|
|
@@ -2838,7 +2838,7 @@ ${t[0]?t[0]:""}</textarea>`:q` <input
|
|
|
2838
2838
|
:host([theme~='align-right']) ::slotted([slot='value']) {
|
|
2839
2839
|
justify-content: right;
|
|
2840
2840
|
}
|
|
2841
|
-
`;class pU extends cw{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(e,t)=>{t._setFocusElement(e),t.ariaTarget=e,t.stateTarget=e,e.setAttribute("aria-haspopup","listbox")}})}}let pG=e=>class extends dS(d$(df(dj(e)))){static get properties(){return{items:{type:Array},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged",reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged",sync:!0},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object,__slottedListBox:{type:Object,sync:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder, focusElement)"]}constructor(){super(),this._itemId=`value-${this.localName}-${cx++}`,this._srLabelController=new dP(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._overlayElement=this.$.overlay,this._valueButtonController=new pU(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new hH(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new ck(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}updated(e){if(super.updated(e),e.has("_phone")&&this.toggleAttribute("phone",this._phone),(e.has("items")||e.has("renderer")||e.has("__slottedListBox"))&&this.__slottedListBox&&(this.items?.length||this.renderer))throw Error('A slotted <vaadin-select-list-box> cannot be used together with the "items" or "renderer" property.');if(e.has("items")&&this._overlayElement.requestContentUpdate(),e.has("__slottedListBox")){let t=this.__slottedListBox;t?this._assignMenuElement(t):e.get("__slottedListBox")&&(this._menuElement=null,this._items=null,this.__lastMenuElement=null)}e.has("accessibleName")&&this._srLabelController.setLabel(this.accessibleName),e.has("required")&&!1===this.required&&this._requestValidation()}requestContentUpdate(){this._overlayElement&&this._overlayElement.requestContentUpdate()}__onOverlaySlotChange(e){this.__slottedListBox=e.target.assignedElements().find(e=>e._hasVaadinListMixin)}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e)}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",e=>this._onKeyDownInside(e),!0),e.addEventListener("click",e=>{let t=e.composedPath().find(e=>e._hasVaadinItemMixin);this.__dispatchChangePending=t?.value!==void 0&&t.value!==this.value,this.opened=!1},!0),this.__lastMenuElement=e),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items)}__initMenuItems(e){e.items&&(this._items=e.items)}_valueChanged(e,t){this.toggleAttribute("has-value",!!e),void 0===t||this.__dispatchChangePending||this._requestValidation()}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly)}_onEscape(e){this.opened&&(e.stopPropagation(),this.opened=!1)}_onToggleMouseDown(e){e.preventDefault(),this.opened||this.focusElement.focus()}_onKeyDown(e){if(super._onKeyDown(e),!e.altKey&&!e.shiftKey&&!e.ctrlKey&&!e.metaKey&&e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&1===e.key.length){let t=this._menuElement.selected,n=this._menuElement._searchKey(t??-1,e.key);n>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=n)}}}_onKeyDownInside(e){"Tab"===e.key&&(this.focusElement.setAttribute("tabindex","-1"),this._overlayElement.restoreFocusOnClose=!1,this.opened=!1,setTimeout(()=>{this.focusElement.setAttribute("tabindex","0"),this._overlayElement.restoreFocusOnClose=!0}))}_openedChanged(e,t){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1);let e=this.hasAttribute("focus-ring");this._openedWithFocusRing=e,e&&this.removeAttribute("focus-ring")}else t&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),this.__dispatchChangePending||this._keyboardActive||this._requestValidation())}_updateAriaExpanded(e,t){t&&t.setAttribute("aria-expanded",e?"true":"false")}_updateAriaLive(e){this.focusElement&&cg(this.focusElement,"aria-live",e&&"polite")}__attachSelectedItem(e){let t,n=e.getAttribute("label");(t=n?this.__createItemElement({label:n}):e.cloneNode(!0))._sourceItem=e,this.__appendValueItemElement(t,this.focusElement)
|
|
2841
|
+
`;class pU extends cw{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(e,t)=>{t._setFocusElement(e),t.ariaTarget=e,t.stateTarget=e,e.setAttribute("aria-haspopup","listbox")}})}}let pG=e=>class extends dS(d$(df(dj(e)))){static get properties(){return{items:{type:Array},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged",reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged",sync:!0},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object,__slottedListBox:{type:Object,sync:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder, focusElement)"]}constructor(){super(),this._itemId=`value-${this.localName}-${cx++}`,this._srLabelController=new dP(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._overlayElement=this.$.overlay,this._valueButtonController=new pU(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new hH(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new ck(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}updated(e){if(super.updated(e),e.has("_phone")&&this.toggleAttribute("phone",this._phone),(e.has("items")||e.has("renderer")||e.has("__slottedListBox"))&&this.__slottedListBox&&(this.items?.length||this.renderer))throw Error('A slotted <vaadin-select-list-box> cannot be used together with the "items" or "renderer" property.');if(e.has("items")&&this._overlayElement.requestContentUpdate(),e.has("__slottedListBox")){let t=this.__slottedListBox;t?this._assignMenuElement(t):e.get("__slottedListBox")&&(this._menuElement=null,this._items=null,this.__lastMenuElement=null)}e.has("accessibleName")&&this._srLabelController.setLabel(this.accessibleName),e.has("required")&&!1===this.required&&this._requestValidation()}requestContentUpdate(){this._overlayElement&&this._overlayElement.requestContentUpdate()}__onOverlaySlotChange(e){this.__slottedListBox=e.target.assignedElements().find(e=>e._hasVaadinListMixin)}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e)}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",e=>this._onKeyDownInside(e),!0),e.addEventListener("click",e=>{let t=e.composedPath().find(e=>e._hasVaadinItemMixin);this.__dispatchChangePending=t?.value!==void 0&&t.value!==this.value,this.opened=!1},!0),this.__lastMenuElement=e),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items)}__initMenuItems(e){e.items&&(this._items=e.items)}_valueChanged(e,t){this.toggleAttribute("has-value",!!e),void 0===t||this.__dispatchChangePending||this._requestValidation()}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly)}_onEscape(e){this.opened&&(e.stopPropagation(),this.opened=!1)}_onToggleMouseDown(e){e.preventDefault(),this.opened||this.focusElement.focus()}_onKeyDown(e){if(super._onKeyDown(e),!e.altKey&&!e.shiftKey&&!e.ctrlKey&&!e.metaKey&&e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&1===e.key.length){let t=this._menuElement.selected,n=this._menuElement._searchKey(t??-1,e.key);n>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=n)}}}_onKeyDownInside(e){"Tab"===e.key&&(this.focusElement.setAttribute("tabindex","-1"),this._overlayElement.restoreFocusOnClose=!1,this.opened=!1,setTimeout(()=>{this.focusElement.setAttribute("tabindex","0"),this._overlayElement.restoreFocusOnClose=!0}))}_openedChanged(e,t){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1);let e=this.hasAttribute("focus-ring");this._openedWithFocusRing=e,e&&this.removeAttribute("focus-ring")}else t&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),this.__dispatchChangePending||this._keyboardActive||this._requestValidation())}_updateAriaExpanded(e,t){t&&t.setAttribute("aria-expanded",e?"true":"false")}_updateAriaLive(e){this.focusElement&&cg(this.focusElement,"aria-live",e&&"polite")}__attachSelectedItem(e){let t,n=e.getAttribute("label");(t=n?this.__createItemElement({label:n}):e.cloneNode(!0))._sourceItem=e,this.__appendValueItemElement(t,this.focusElement)}__createItemElement(e){let t=document.createElement(e.component||"vaadin-select-item");return e.label&&(t.textContent=e.label),e.value&&(t.value=e.value),e.disabled&&(t.disabled=e.disabled),e.className&&(t.className=e.className),t}__appendValueItemElement(e,t){t.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("selected"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId)}__updateValueButton(){let e=this.focusElement;if(!e)return;e.innerHTML="";let t=this._items?this._items[this._menuElement.selected]:void 0;if(e.removeAttribute("placeholder"),this._hasContent(t))this.__attachSelectedItem(t);else if(this.placeholder){let t=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(t,e),e.setAttribute("placeholder","")}!this._valueChanging&&t&&(this._selectedChanging=!0,this.value=t.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging),this.__updateFieldAriaControllerLabelledBy()}_hasContent(e){if(!e)return!1;let t=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),n=e.childElementCount>0;return t||n}_updateSelectedItem(e,t,n){if(t){let n=null==e?e:e.toString();this._menuElement.selected=t.reduce((e,t,i)=>void 0===e&&t.value===n?i:e,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}else n&&this.__updateValueButton()}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this._requestValidation()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(e,t){if(!this.items||0===this.items.length){e.textContent="";return}let n=e.firstElementChild;n||(n=document.createElement("vaadin-select-list-box"),e.appendChild(n)),n.textContent="",this.items.forEach(e=>{n.appendChild(this.__createItemElement(e))})}__dispatchChange(){this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1}__updateFieldAriaControllerLabel(){}__updateFieldAriaControllerLabelledBy(){let e;this.accessibleNameRef?e=this.accessibleNameRef:this.accessibleName?e=this._srLabelController.defaultId:this.hasAttribute("has-label")&&(e=this._labelNode?.id);let t=[e,this._items?.[this._menuElement.selected]||this.placeholder?this._itemId:null].filter(Boolean);t.length>0?this._fieldAriaController.setLabelledBy(t.join(" ")):this._fieldAriaController.setLabelledBy(null)}};class pK extends pG(cr(cU(cp(cN(ep))))){static get is(){return"vaadin-select"}static get styles(){return[hY,pH,pW]}render(){return q`
|
|
2842
2842
|
<div class="vaadin-select-container">
|
|
2843
2843
|
<div part="label" @click="${this._onClick}">
|
|
2844
2844
|
<slot name="label"></slot>
|
package/build/dist/umd/index.js
CHANGED
|
@@ -658,7 +658,7 @@ ${t[0]?t[0]:""}</textarea>`:q` <input
|
|
|
658
658
|
${e?q` <span class="mdc-notched-outline__notch"> ${e} </span> `:""}
|
|
659
659
|
<span class="mdc-notched-outline__trailing"></span>
|
|
660
660
|
</span>
|
|
661
|
-
`}setCustomValidity(e){this.errorMessage=e;let t=this.shadowRoot.getElementById("elem");t&&t.setCustomValidity&&t.setCustomValidity(null!=e?e:""),this.reportValidity()}checkValidity(){let e=this.shadowRoot.getElementById("elem"),t=!0;return e&&e.validity&&(t=e.validity.valid),t&&(this.type===mA.JSON||this.type===mA.JSON_OBJECT)&&void 0!==this.value&&null!==this.value&&""===this._mdcComponent.value&&(t=!1),t}reportValidity(){let e=this.checkValidity();return this.isUiValid=e,this._mdcComponent&&(this._mdcComponent.valid=e),e}onValueChange(e,t,n){var i,r;let o,a=this.value;if("undefined"===t&&(a=null,t=void 0),"null"===t&&(a=void 0,t=null),"string"==typeof t)switch(this.type){case mA.CHECKBOX:case mA.SWITCH:t="on"===t;break;case mA.JSON:case mA.JSON_OBJECT:case mA.NUMBER:case mA.RANGE:if(""===t)t=null;else try{t=JSON.parse(t),this.type===mA.JSON_OBJECT&&("object"!=typeof t||Array.isArray(t))&&(t=this.value,o=lm.i18next.t("validation.invalidJSON"))}catch(e){t=this.value,o=this.type===mA.JSON||this.type==mA.JSON_OBJECT?lm.i18next.t("validation.invalidJSON"):lm.i18next.t("validation.invalidNumber")}break;case mA.DATETIME:if(""===t)t=null;else try{t=Date.parse(t)}catch(e){t=this.value,o=lm.i18next.t("validation.invalidDate")}}if(this.value=t,this.setCustomValidity(o),this.reportValidity(),this.type!==mA.CHECKBOX_LIST&&t!==a&&(this.type===mA.RANGE&&(this._mdcComponent.setValue(t),this._mdcComponent2&&(this._mdcComponent2.value=t)),this.dispatchEvent(new lB(this.value,a,n))),void 0!=this.searchProvider&&this.type===mA.SELECT){let e=null==(r=null==(i=this.shadowRoot)?void 0:i.getElementById("select-searchable"))?void 0:r.children[1];e&&(this.searchableValue=void 0,e.value="")}this.type!==mA.CHECKBOX_LIST||ld.Util.objectsEqual(t,a,!0)||this.dispatchEvent(new lB(t,a,n))}get valid(){let e=this.shadowRoot.getElementById("elem");return!e||!e.checkValidity||e.checkValidity()}get currentValue(){let e=this.shadowRoot.getElementById("elem");if(e&&e.value)return e.value}resolveOptions(e){let t;return e&&e.length>0&&(t=e.map(e=>{if(Array.isArray(e))return e;{let t=""+e;return[e,lm.i18next.t(t,{defaultValue:ld.Util.camelCaseToSentenceCase(t)})]}})),t}getSelectedTextValue(e){let t=this.value,n=Array.isArray(t)?t:null!=t?[t]:void 0;if(!n)return"";let i=e||this.resolveOptions(this.options);return i&&n?n.map(e=>i.find(([t,n],i)=>e===t)).map(e=>e?e[1]:"").join(", "):""}};lk([eb({type:Boolean})],lH.prototype,"focused",void 0),lk([eb()],lH.prototype,"value",void 0),lk([eb({type:String})],lH.prototype,"type",void 0),lk([eb({type:String})],lH.prototype,"name",void 0),lk([eb({type:Boolean})],lH.prototype,"readonly",void 0),lk([eb({type:Boolean})],lH.prototype,"required",void 0),lk([eb()],lH.prototype,"max",void 0),lk([eb()],lH.prototype,"min",void 0),lk([eb({type:Number})],lH.prototype,"step",void 0),lk([eb({type:Boolean})],lH.prototype,"checked",void 0),lk([eb({type:Boolean})],lH.prototype,"indeterminate",void 0),lk([eb({type:Number})],lH.prototype,"maxLength",void 0),lk([eb({type:Number})],lH.prototype,"minLength",void 0),lk([eb({type:Number})],lH.prototype,"rows",void 0),lk([eb({type:Number})],lH.prototype,"cols",void 0),lk([eb({type:Boolean})],lH.prototype,"multiple",void 0),lk([eb({type:String,attribute:!0,reflect:!1})],lH.prototype,"pattern",void 0),lk([eb({type:String})],lH.prototype,"placeHolder",void 0),lk([eb({type:Array})],lH.prototype,"options",void 0),lk([eb({type:Boolean})],lH.prototype,"autoSelect",void 0),lk([eb({type:Object})],lH.prototype,"searchProvider",void 0),lk([eb({type:String})],lH.prototype,"searchLabel",void 0),lk([eb({type:String})],lH.prototype,"icon",void 0),lk([eb({type:String})],lH.prototype,"iconColor",void 0),lk([eb({type:String})],lH.prototype,"iconOn",void 0),lk([eb({type:String})],lH.prototype,"iconTrailing",void 0),lk([eb({type:Boolean})],lH.prototype,"compact",void 0),lk([eb({type:Boolean})],lH.prototype,"comfortable",void 0),lk([eb({type:Boolean})],lH.prototype,"raised",void 0),lk([eb({type:Boolean})],lH.prototype,"action",void 0),lk([eb({type:Boolean})],lH.prototype,"unElevated",void 0),lk([eb({type:Boolean})],lH.prototype,"outlined",void 0),lk([eb({type:Boolean})],lH.prototype,"rounded",void 0),lk([eb({type:Object})],lH.prototype,"format",void 0),lk([eb({type:Boolean})],lH.prototype,"disableSliderNumberInput",void 0),lk([eb({type:Boolean})],lH.prototype,"fullWidth",void 0),lk([eb({type:String})],lH.prototype,"helperText",void 0),lk([eb({type:Boolean})],lH.prototype,"helperPersistent",void 0),lk([eb({type:String,attribute:!0})],lH.prototype,"validationMessage",void 0),lk([eb({type:Boolean})],lH.prototype,"autoValidate",void 0),lk([eb({type:Boolean})],lH.prototype,"charCounter",void 0),lk([eb({type:String})],lH.prototype,"label",void 0),lk([eb({type:Boolean})],lH.prototype,"disabled",void 0),lk([eb({type:Boolean})],lH.prototype,"continuous",void 0),lk([eb({type:Boolean})],lH.prototype,"resizeVertical",void 0),lk([eb({type:Boolean})],lH.prototype,"censored",void 0),lk([eb({type:Boolean,reflect:!0})],lH.prototype,"advertised",void 0),lk([ey()],lH.prototype,"isUiValid",void 0),lk([ey()],lH.prototype,"searchableValue",void 0),lk([ey()],lH.prototype,"errorMessage",void 0),lH=lk([eg("or-mwc-input")],lH),(mf=mT||(mT={})).BUTTON="button",mf.BUTTON_TOGGLE="button-toggle",mf.BUTTON_MOMENTARY="button-momentary",mf.CHECKBOX="checkbox",mf.CHECKBOX_LIST="checkbox-list",mf.COLOUR="color",mf.DATE="date",mf.DATETIME="datetime-local",mf.EMAIL="email",mf.JSON="json",mf.JSON_OBJECT="json-object",mf.MONTH="month",mf.NUMBER="number",mf.BIG_INT="big-int",mf.PASSWORD="password",mf.RADIO="radio",mf.SWITCH="switch",mf.RANGE="range",mf.TELEPHONE="tel",mf.TEXT="text",mf.TEXTAREA="textarea",mf.TIME="time",mf.URL="url",mf.WEEK="week",mf.SELECT="select",mf.LIST="list",mf.CRON="cron",mf.DURATION="duration",mf.DURATION_TIME="duration-time",mf.DURATION_PERIOD="duration-period",window.Vaadin||={},window.Vaadin.featureFlags||={};let lW={};function lU(e,t="25.3.4"){if(Object.defineProperty(e,"version",{get:()=>t}),e.experimental){let t="string"==typeof e.experimental?e.experimental:`${e.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,e=>e[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[t]||lW[t]){if(lW[t])return void lW[t].add(e)}else{lW[t]=new Set,lW[t].add(e),Object.defineProperty(window.Vaadin.featureFlags,t,{get:()=>0===lW[t].size,set(e){e&&lW[t].size>0&&(lW[t].forEach(e=>{customElements.define(e.is,e)}),lW[t].clear())}});return}}let n=customElements.get(e.is);if(n){let t=n.version;t&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${n.version} is already in use. Something will probably break.`)}else customElements.define(e.is,e)}let lG=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,lK=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function lq(e,t){if("function"!=typeof e)return;let n=lG.exec(e.toString());if(n)try{e=Function(n[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}window.Vaadin=window.Vaadin||{};let lY=function(e,t){if(window.Vaadin.developmentMode)return lq(e,t)};function lX(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{if(localStorage.getItem("vaadin.developmentmode.force"))return!0;if(!(["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0))return!1;if(lK)return!(lK&&Object.keys(lK).map(e=>lK[e]).filter(e=>e.productionMode).length>0);return!lq(function(){return!0})}catch(e){return!1}}());let lQ=function(){if("function"==typeof lY)return lY(lX)},lJ=0,lZ=0,l0=[],l1=!1,l2={after:e=>({run:t=>window.setTimeout(t,e),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},l5={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},l4={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},l3={run(e){l1||(l1=!0,queueMicrotask(()=>(function(){l1=!1;let e=l0.length;for(let t=0;t<e;t++){let e=l0[t];if(e)try{e()}catch(e){setTimeout(()=>{throw e})}}l0.splice(0,e),lZ+=e})())),l0.push(e);let t=lJ;return lJ+=1,t},cancel(e){let t=e-lZ;if(t>=0){if(!l0[t])throw Error(`invalid async handle: ${e}`);l0[t]=null}}},l8=new Set;class l6{static debounce(e,t,n){return e instanceof l6?e._cancelAsync():e=new l6,e.setConfig(t,n),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,l8.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),l8.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}let l7=()=>{let e;do e=function(){let e=!!l8.size;return l8.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e}();while(e)},l9=[];function ce(e,t,n=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=n&&e.removeAttribute("dir")}function ct(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let e=ct();l9.forEach(t=>{ce(t,e)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let cn=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),ce(this,ct(),null))}attributeChangedCallback(e,t,n){if(super.attributeChangedCallback(e,t,n),"dir"!==e)return;let i=ct(),r=n===i&&-1===l9.indexOf(this),o=!n&&t&&-1===l9.indexOf(this),a=n!==i&&t===i;r||o?(this.__subscribe(),ce(this,i,n)):a&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=l9.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,n){("dir"!==n||""!==t||e.hasAttribute("dir"))&&super._valueToNodeAttribute(e,t,n)}_attributeToProperty(e,t,n){"dir"!==e||t?super._attributeToProperty(e,t,n):this.dir=""}__subscribe(){l9.includes(this)||l9.push(this)}__unsubscribe(){l9.includes(this)&&l9.splice(l9.indexOf(this),1)}};window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){lQ()};let ci=new Set,cr=t=>class extends cn(t){static _ensureRegistrations(){let{is:t}=this;if(t&&!ci.has(t)){window.Vaadin.registrations.push(this),ci.add(t);let i=window.Vaadin.developmentModeCallback;if(i){var n;n=e=l6.debounce(e,l4,()=>{i["vaadin-usage-statistics"]()}),l8.add(n)}}}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.'),this.constructor._ensureRegistrations()}},co=new WeakMap;function ca(e){return t=>{if(function(e,t){let n=t;for(;n;){if(co.get(n)===e)return!0;n=Object.getPrototypeOf(n)}return!1}(e,t))return t;let n=e(t);return co.set(n,e),n}}let cs={},cl=/([A-Z])/gu;function cc(e){return cs[e]||(cs[e]=e.replace(cl,"-$1").toLowerCase()),cs[e]}function cd(e){return e[0].toUpperCase()+e.substring(1)}function ch(e){let[t,n]=e.split("(");return{method:t,observerProps:n.replace(")","").split(",").map(e=>e.trim())}}function cu(e,t){return Object.prototype.hasOwnProperty.call(e,t)||(e[t]=new Map(e[t])),e[t]}let cp=ca(e=>class extends e{static enabledWarnings=[];static createProperty(e,t){[String,Boolean,Number,Array].includes(t)&&(t={type:t}),t?.reflectToAttribute&&(t.reflect=!0),super.createProperty(e,t)}static getOrCreateMap(e){return cu(this,e)}static finalize(){if(window.litIssuedWarnings&&(window.litIssuedWarnings.add("no-override-create-property"),window.litIssuedWarnings.add("no-override-get-property-descriptor")),super.finalize(),Array.isArray(this.observers)){let e=this.getOrCreateMap("__complexObservers");this.observers.forEach(t=>{let{method:n,observerProps:i}=ch(t);e.set(n,i)})}}static addCheckedInitializer(e){super.addInitializer(t=>{t instanceof this&&e(t)})}static getPropertyDescriptor(e,t,n){let i=super.getPropertyDescriptor(e,t,n),r=i;if(this.getOrCreateMap("__propKeys").set(e,t),n.sync&&(r={get:i.get,set(i){let r=this[e];E(i,r)&&(this[t]=i,this.requestUpdate(e,r,n),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),n.readOnly){let t=r.set;this.addCheckedInitializer(n=>{n[`_set${cd(e)}`]=function(e){t.call(n,e)}}),r={get:r.get,set(){},configurable:!0,enumerable:!0}}if("value"in n&&this.addCheckedInitializer(t=>{let i="function"==typeof n.value?n.value.call(t):n.value;n.readOnly?t[`_set${cd(e)}`](i):t[e]=i}),n.observer){let t=n.observer;this.getOrCreateMap("__observers").set(e,t),this.addCheckedInitializer(e=>{e[t]||console.warn(`observer method ${t} not defined`)})}if(n.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let e=this.__notifyProps;this.__notifyProps=new Set(e)}}else this.__notifyProps=new Set;this.__notifyProps.add(e)}if(n.computed){let t=`__assignComputed${e}`,i=ch(n.computed);this.prototype[t]=function(...t){this[e]=this[i.method](...t)},this.getOrCreateMap("__computedObservers").set(t,i.observerProps)}return n.attribute||(n.attribute=cc(e)),r}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:e}=this.constructor;this.hasUpdated||e.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e})}ready(){}willUpdate(e){this.constructor.__computedObservers&&this.__runComplexObservers(e,this.constructor.__computedObservers)}updated(e){let t=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(e,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(e,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(e,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(e,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(e,this.constructor.__notifyProps),t||this.ready()}setProperties(e){Object.entries(e).forEach(([e,t])=>{let n=this.constructor.__propKeys.get(e),i=this[n];this[n]=t,this.requestUpdate(e,i)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(e){let t=cu(this,"__dynamicMethodObservers"),{method:n,observerProps:i}=ch(e);t.set(n,i)}_createPropertyObserver(e,t){cu(this,"__dynamicPropertyObservers").set(t,e)}__runComplexObservers(e,t){t.forEach((t,n)=>{t.some(t=>e.has(t))&&(this[n]?this[n](...t.map(e=>this[e])):console.warn(`observer method ${n} not defined`))})}__runDynamicObservers(e,t){t.forEach((t,n)=>{e.has(t)&&this[n]&&this[n](this[t],e.get(t))})}__runObservers(e,t){e.forEach((e,n)=>{let i=t.get(n);void 0!==i&&this[i]&&this[i](this[n],e)})}__runNotifyProps(e,t){e.forEach((e,n)=>{t.has(n)&&this.dispatchEvent(new CustomEvent(`${cc(n)}-changed`,{detail:{value:this[n]}}))})}_get(e,t){return e.split(".").reduce((e,t)=>e?e[t]:void 0,t)}_set(e,t,n){let i,r;r=(i=e.split(".")).pop(),i.reduce((e,t)=>e[t],n)[r]=t}});function cm(e){return new Set(e?e.split(" ").filter(Boolean):[])}function cf(e){return e?[...e].join(" "):""}function cg(e,t,n){n?e.setAttribute(t,n):e.removeAttribute(t)}function cv(e){return cm(Array.isArray(e)?e.join(" "):e)}function cb(e,t,n){n=cv(n);let i=cm(e.getAttribute(t));n.forEach(e=>i.add(e)),cg(e,t,cf(i))}function cy(e,t,n){n=cv(n);let i=cm(e.getAttribute(t));n.forEach(e=>i.delete(e)),cg(e,t,cf(i))}class c_{constructor(e,t,n={}){this.target=e,this.callback=t,this.forceInitial=n.forceInitial,this._storedNodes=[],this._isSlot=e instanceof HTMLSlotElement,this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),n.syncInitial?this.flush():this._schedule()}connect(){this.target.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.target.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this._scheduled&&this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_collectNodes(){return[...new Set((this._isSlot?[this.target]:[...this.target.querySelectorAll("slot")]).flatMap(e=>e.assignedNodes({flatten:!0})))]}_groupNodesBySlot(e){let t=new Map;return e.forEach(e=>{let n=e.assignedSlot;t.set(n,t.get(n)??[]),t.get(n).push(e)}),t}_collectMovedNodes(e){let t=this._groupNodesBySlot(e),n=this._groupNodesBySlot(this._storedNodes),i=[];return t.forEach((e,t)=>{let r=n.get(t)||[];new Set(r).difference(new Set(e)).size>0||r.forEach((t,n)=>{e.indexOf(t)!==n&&i.push(t)})}),i}_processNodes(){let e=this._collectNodes(),t=e.filter(e=>!this._storedNodes.includes(e)),n=this._storedNodes.filter(t=>!e.includes(t)),i=this._collectMovedNodes(e);(t.length||n.length||i.length||this.forceInitial)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:i,removedNodes:n}),this.forceInitial&&(this.forceInitial=!1),this._storedNodes=e}}let cx=0;class cw extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${cx++}`}constructor(e,t,n,i={}){super();const{initializer:r,multiple:o,observe:a,useUniqueId:s,uniqueIdPrefix:l}=i;this.host=e,this.slotName=t,this.tagName=n,this.observe="boolean"!=typeof a||a,this.multiple="boolean"==typeof o&&o,this.slotInitializer=r,o&&(this.nodes=[]),s&&(this.defaultId=this.constructor.generateId(e,l||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){let e=this.getSlotChildren();if(0===e.length){let e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=e,e.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){let{host:e,slotName:t,tagName:n}=this,i=this.defaultNode;return!i&&n&&(i=document.createElement(n))instanceof Element&&(""!==t&&i.setAttribute("slot",t),this.defaultNode=i),i&&(this.node=i,e.appendChild(i)),i}getSlotChildren(){let{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>!(t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute("data-slot-ignore"))&&(t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&""===e))}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){let{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){let{slotName:e}=this,t=""===e?"slot:not([name])":`slot[name=${e}]`;new c_(this.host.shadowRoot.querySelector(t),({addedNodes:e,removedNodes:t})=>{let n=this.multiple?this.nodes:[this.node],i=e.filter(e=>(e.nodeType!==Node.TEXT_NODE||""!==e.textContent.trim())&&!n.includes(e)&&!(e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-slot-ignore")));t.length&&(this.multiple?this.nodes=n.filter(e=>!t.includes(e)):t.includes(this.node)&&(this.node=null),t.forEach(e=>{this.teardownNode(e)})),i?.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...i].filter(e=>e!==this.defaultNode),i.forEach(e=>{this.initAddedNode(e)})):(this.node&&this.node.remove(),this.node=i[0],this.initAddedNode(this.node)))})}}class ck extends cw{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,void 0!==this.ariaTarget&&(e.ariaTarget=this.ariaTarget),void 0!==this.context&&(e.context=this.context),void 0!==this.manual&&(e.manual=this.manual),void 0!==this.position&&(e._position=this.position),void 0!==this.shouldShow&&(e.shouldShow=this.shouldShow),this.manual||this.host.setAttribute("has-tooltip",""),this.#e(e),e.addEventListener("content-changed",this.#t)}teardownNode(e){this.manual||this.host.removeAttribute("has-tooltip"),e.removeEventListener("content-changed",this.#t),this.#e(null)}setAriaTarget(e){this.ariaTarget=e;let t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;let t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;let t=this.node;t&&(t.manual=e)}setPosition(e){this.position=e;let t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;let t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;let t=this.node;t&&(t.target=e)}open(e){let t=this.node;t?.isConnected&&t._stateController.open(e)}close(e){let t=this.node;t&&t._stateController.close(e)}#t=e=>{this.#e(e.target)};#e(e){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:e}}))}}function cC(e){try{CSS.registerProperty(e)}catch(t){if(t instanceof DOMException&&"InvalidModificationError"===t.name)console.warn(`The CSS property ${e.name} has already been registered.`);else throw t}}class cE extends EventTarget{#n;#i=new Set;#r;#o=!1;constructor(e){super(),this.#n=e,this.#r=new CSSStyleSheet}#a(e){let{propertyName:t}=e;this.#i.has(t)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:t}}))}observe(e){this.connect(),this.#i.has(e)||(this.#i.add(e),this.#r.replaceSync(`
|
|
661
|
+
`}setCustomValidity(e){this.errorMessage=e;let t=this.shadowRoot.getElementById("elem");t&&t.setCustomValidity&&t.setCustomValidity(null!=e?e:""),this.reportValidity()}checkValidity(){let e=this.shadowRoot.getElementById("elem"),t=!0;return e&&e.validity&&(t=e.validity.valid),t&&(this.type===mA.JSON||this.type===mA.JSON_OBJECT)&&void 0!==this.value&&null!==this.value&&""===this._mdcComponent.value&&(t=!1),t}reportValidity(){let e=this.checkValidity();return this.isUiValid=e,this._mdcComponent&&(this._mdcComponent.valid=e),e}onValueChange(e,t,n){var i,r;let o,a=this.value;if("undefined"===t&&(a=null,t=void 0),"null"===t&&(a=void 0,t=null),"string"==typeof t)switch(this.type){case mA.CHECKBOX:case mA.SWITCH:t="on"===t;break;case mA.JSON:case mA.JSON_OBJECT:case mA.NUMBER:case mA.RANGE:if(""===t)t=null;else try{t=JSON.parse(t),this.type===mA.JSON_OBJECT&&("object"!=typeof t||Array.isArray(t))&&(t=this.value,o=lm.i18next.t("validation.invalidJSON"))}catch(e){t=this.value,o=this.type===mA.JSON||this.type==mA.JSON_OBJECT?lm.i18next.t("validation.invalidJSON"):lm.i18next.t("validation.invalidNumber")}break;case mA.DATETIME:if(""===t)t=null;else try{t=Date.parse(t)}catch(e){t=this.value,o=lm.i18next.t("validation.invalidDate")}}if(this.value=t,this.setCustomValidity(o),this.reportValidity(),this.type!==mA.CHECKBOX_LIST&&t!==a&&(this.type===mA.RANGE&&(this._mdcComponent.setValue(t),this._mdcComponent2&&(this._mdcComponent2.value=t)),this.dispatchEvent(new lB(this.value,a,n))),void 0!=this.searchProvider&&this.type===mA.SELECT){let e=null==(r=null==(i=this.shadowRoot)?void 0:i.getElementById("select-searchable"))?void 0:r.children[1];e&&(this.searchableValue=void 0,e.value="")}this.type!==mA.CHECKBOX_LIST||ld.Util.objectsEqual(t,a,!0)||this.dispatchEvent(new lB(t,a,n))}get valid(){let e=this.shadowRoot.getElementById("elem");return!e||!e.checkValidity||e.checkValidity()}get currentValue(){let e=this.shadowRoot.getElementById("elem");if(e&&e.value)return e.value}resolveOptions(e){let t;return e&&e.length>0&&(t=e.map(e=>{if(Array.isArray(e))return e;{let t=""+e;return[e,lm.i18next.t(t,{defaultValue:ld.Util.camelCaseToSentenceCase(t)})]}})),t}getSelectedTextValue(e){let t=this.value,n=Array.isArray(t)?t:null!=t?[t]:void 0;if(!n)return"";let i=e||this.resolveOptions(this.options);return i&&n?n.map(e=>i.find(([t,n],i)=>e===t)).map(e=>e?e[1]:"").join(", "):""}};lk([eb({type:Boolean})],lH.prototype,"focused",void 0),lk([eb()],lH.prototype,"value",void 0),lk([eb({type:String})],lH.prototype,"type",void 0),lk([eb({type:String})],lH.prototype,"name",void 0),lk([eb({type:Boolean})],lH.prototype,"readonly",void 0),lk([eb({type:Boolean})],lH.prototype,"required",void 0),lk([eb()],lH.prototype,"max",void 0),lk([eb()],lH.prototype,"min",void 0),lk([eb({type:Number})],lH.prototype,"step",void 0),lk([eb({type:Boolean})],lH.prototype,"checked",void 0),lk([eb({type:Boolean})],lH.prototype,"indeterminate",void 0),lk([eb({type:Number})],lH.prototype,"maxLength",void 0),lk([eb({type:Number})],lH.prototype,"minLength",void 0),lk([eb({type:Number})],lH.prototype,"rows",void 0),lk([eb({type:Number})],lH.prototype,"cols",void 0),lk([eb({type:Boolean})],lH.prototype,"multiple",void 0),lk([eb({type:String,attribute:!0,reflect:!1})],lH.prototype,"pattern",void 0),lk([eb({type:String})],lH.prototype,"placeHolder",void 0),lk([eb({type:Array})],lH.prototype,"options",void 0),lk([eb({type:Boolean})],lH.prototype,"autoSelect",void 0),lk([eb({type:Object})],lH.prototype,"searchProvider",void 0),lk([eb({type:String})],lH.prototype,"searchLabel",void 0),lk([eb({type:String})],lH.prototype,"icon",void 0),lk([eb({type:String})],lH.prototype,"iconColor",void 0),lk([eb({type:String})],lH.prototype,"iconOn",void 0),lk([eb({type:String})],lH.prototype,"iconTrailing",void 0),lk([eb({type:Boolean})],lH.prototype,"compact",void 0),lk([eb({type:Boolean})],lH.prototype,"comfortable",void 0),lk([eb({type:Boolean})],lH.prototype,"raised",void 0),lk([eb({type:Boolean})],lH.prototype,"action",void 0),lk([eb({type:Boolean})],lH.prototype,"unElevated",void 0),lk([eb({type:Boolean})],lH.prototype,"outlined",void 0),lk([eb({type:Boolean})],lH.prototype,"rounded",void 0),lk([eb({type:Object})],lH.prototype,"format",void 0),lk([eb({type:Boolean})],lH.prototype,"disableSliderNumberInput",void 0),lk([eb({type:Boolean})],lH.prototype,"fullWidth",void 0),lk([eb({type:String})],lH.prototype,"helperText",void 0),lk([eb({type:Boolean})],lH.prototype,"helperPersistent",void 0),lk([eb({type:String,attribute:!0})],lH.prototype,"validationMessage",void 0),lk([eb({type:Boolean})],lH.prototype,"autoValidate",void 0),lk([eb({type:Boolean})],lH.prototype,"charCounter",void 0),lk([eb({type:String})],lH.prototype,"label",void 0),lk([eb({type:Boolean})],lH.prototype,"disabled",void 0),lk([eb({type:Boolean})],lH.prototype,"continuous",void 0),lk([eb({type:Boolean})],lH.prototype,"resizeVertical",void 0),lk([eb({type:Boolean})],lH.prototype,"censored",void 0),lk([eb({type:Boolean,reflect:!0})],lH.prototype,"advertised",void 0),lk([ey()],lH.prototype,"isUiValid",void 0),lk([ey()],lH.prototype,"searchableValue",void 0),lk([ey()],lH.prototype,"errorMessage",void 0),lH=lk([eg("or-mwc-input")],lH),(mf=mT||(mT={})).BUTTON="button",mf.BUTTON_TOGGLE="button-toggle",mf.BUTTON_MOMENTARY="button-momentary",mf.CHECKBOX="checkbox",mf.CHECKBOX_LIST="checkbox-list",mf.COLOUR="color",mf.DATE="date",mf.DATETIME="datetime-local",mf.EMAIL="email",mf.JSON="json",mf.JSON_OBJECT="json-object",mf.MONTH="month",mf.NUMBER="number",mf.BIG_INT="big-int",mf.PASSWORD="password",mf.RADIO="radio",mf.SWITCH="switch",mf.RANGE="range",mf.TELEPHONE="tel",mf.TEXT="text",mf.TEXTAREA="textarea",mf.TIME="time",mf.URL="url",mf.WEEK="week",mf.SELECT="select",mf.LIST="list",mf.CRON="cron",mf.DURATION="duration",mf.DURATION_TIME="duration-time",mf.DURATION_PERIOD="duration-period",window.Vaadin||={},window.Vaadin.featureFlags||={};let lW={};function lU(e,t="25.3.5"){if(Object.defineProperty(e,"version",{get:()=>t}),e.experimental){let t="string"==typeof e.experimental?e.experimental:`${e.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,e=>e[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[t]||lW[t]){if(lW[t])return void lW[t].add(e)}else{lW[t]=new Set,lW[t].add(e),Object.defineProperty(window.Vaadin.featureFlags,t,{get:()=>0===lW[t].size,set(e){e&&lW[t].size>0&&(lW[t].forEach(e=>{customElements.define(e.is,e)}),lW[t].clear())}});return}}let n=customElements.get(e.is);if(n){let t=n.version;t&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${n.version} is already in use. Something will probably break.`)}else customElements.define(e.is,e)}let lG=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,lK=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function lq(e,t){if("function"!=typeof e)return;let n=lG.exec(e.toString());if(n)try{e=Function(n[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}window.Vaadin=window.Vaadin||{};let lY=function(e,t){if(window.Vaadin.developmentMode)return lq(e,t)};function lX(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{if(localStorage.getItem("vaadin.developmentmode.force"))return!0;if(!(["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0))return!1;if(lK)return!(lK&&Object.keys(lK).map(e=>lK[e]).filter(e=>e.productionMode).length>0);return!lq(function(){return!0})}catch(e){return!1}}());let lQ=function(){if("function"==typeof lY)return lY(lX)},lJ=0,lZ=0,l0=[],l1=!1,l2={after:e=>({run:t=>window.setTimeout(t,e),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},l5={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},l4={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},l3={run(e){l1||(l1=!0,queueMicrotask(()=>(function(){l1=!1;let e=l0.length;for(let t=0;t<e;t++){let e=l0[t];if(e)try{e()}catch(e){setTimeout(()=>{throw e})}}l0.splice(0,e),lZ+=e})())),l0.push(e);let t=lJ;return lJ+=1,t},cancel(e){let t=e-lZ;if(t>=0){if(!l0[t])throw Error(`invalid async handle: ${e}`);l0[t]=null}}},l8=new Set;class l6{static debounce(e,t,n){return e instanceof l6?e._cancelAsync():e=new l6,e.setConfig(t,n),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,l8.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),l8.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}let l7=()=>{let e;do e=function(){let e=!!l8.size;return l8.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e}();while(e)},l9=[];function ce(e,t,n=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=n&&e.removeAttribute("dir")}function ct(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let e=ct();l9.forEach(t=>{ce(t,e)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let cn=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),ce(this,ct(),null))}attributeChangedCallback(e,t,n){if(super.attributeChangedCallback(e,t,n),"dir"!==e)return;let i=ct(),r=n===i&&-1===l9.indexOf(this),o=!n&&t&&-1===l9.indexOf(this),a=n!==i&&t===i;r||o?(this.__subscribe(),ce(this,i,n)):a&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=l9.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,n){("dir"!==n||""!==t||e.hasAttribute("dir"))&&super._valueToNodeAttribute(e,t,n)}_attributeToProperty(e,t,n){"dir"!==e||t?super._attributeToProperty(e,t,n):this.dir=""}__subscribe(){l9.includes(this)||l9.push(this)}__unsubscribe(){l9.includes(this)&&l9.splice(l9.indexOf(this),1)}};window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){lQ()};let ci=new Set,cr=t=>class extends cn(t){static _ensureRegistrations(){let{is:t}=this;if(t&&!ci.has(t)){window.Vaadin.registrations.push(this),ci.add(t);let i=window.Vaadin.developmentModeCallback;if(i){var n;n=e=l6.debounce(e,l4,()=>{i["vaadin-usage-statistics"]()}),l8.add(n)}}}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.'),this.constructor._ensureRegistrations()}},co=new WeakMap;function ca(e){return t=>{if(function(e,t){let n=t;for(;n;){if(co.get(n)===e)return!0;n=Object.getPrototypeOf(n)}return!1}(e,t))return t;let n=e(t);return co.set(n,e),n}}let cs={},cl=/([A-Z])/gu;function cc(e){return cs[e]||(cs[e]=e.replace(cl,"-$1").toLowerCase()),cs[e]}function cd(e){return e[0].toUpperCase()+e.substring(1)}function ch(e){let[t,n]=e.split("(");return{method:t,observerProps:n.replace(")","").split(",").map(e=>e.trim())}}function cu(e,t){return Object.prototype.hasOwnProperty.call(e,t)||(e[t]=new Map(e[t])),e[t]}let cp=ca(e=>class extends e{static enabledWarnings=[];static createProperty(e,t){[String,Boolean,Number,Array].includes(t)&&(t={type:t}),t?.reflectToAttribute&&(t.reflect=!0),super.createProperty(e,t)}static getOrCreateMap(e){return cu(this,e)}static finalize(){if(window.litIssuedWarnings&&(window.litIssuedWarnings.add("no-override-create-property"),window.litIssuedWarnings.add("no-override-get-property-descriptor")),super.finalize(),Array.isArray(this.observers)){let e=this.getOrCreateMap("__complexObservers");this.observers.forEach(t=>{let{method:n,observerProps:i}=ch(t);e.set(n,i)})}}static addCheckedInitializer(e){super.addInitializer(t=>{t instanceof this&&e(t)})}static getPropertyDescriptor(e,t,n){let i=super.getPropertyDescriptor(e,t,n),r=i;if(this.getOrCreateMap("__propKeys").set(e,t),n.sync&&(r={get:i.get,set(i){let r=this[e];E(i,r)&&(this[t]=i,this.requestUpdate(e,r,n),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),n.readOnly){let t=r.set;this.addCheckedInitializer(n=>{n[`_set${cd(e)}`]=function(e){t.call(n,e)}}),r={get:r.get,set(){},configurable:!0,enumerable:!0}}if("value"in n&&this.addCheckedInitializer(t=>{let i="function"==typeof n.value?n.value.call(t):n.value;n.readOnly?t[`_set${cd(e)}`](i):t[e]=i}),n.observer){let t=n.observer;this.getOrCreateMap("__observers").set(e,t),this.addCheckedInitializer(e=>{e[t]||console.warn(`observer method ${t} not defined`)})}if(n.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let e=this.__notifyProps;this.__notifyProps=new Set(e)}}else this.__notifyProps=new Set;this.__notifyProps.add(e)}if(n.computed){let t=`__assignComputed${e}`,i=ch(n.computed);this.prototype[t]=function(...t){this[e]=this[i.method](...t)},this.getOrCreateMap("__computedObservers").set(t,i.observerProps)}return n.attribute||(n.attribute=cc(e)),r}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:e}=this.constructor;this.hasUpdated||e.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e})}ready(){}willUpdate(e){this.constructor.__computedObservers&&this.__runComplexObservers(e,this.constructor.__computedObservers)}updated(e){let t=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(e,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(e,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(e,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(e,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(e,this.constructor.__notifyProps),t||this.ready()}setProperties(e){Object.entries(e).forEach(([e,t])=>{let n=this.constructor.__propKeys.get(e),i=this[n];this[n]=t,this.requestUpdate(e,i)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(e){let t=cu(this,"__dynamicMethodObservers"),{method:n,observerProps:i}=ch(e);t.set(n,i)}_createPropertyObserver(e,t){cu(this,"__dynamicPropertyObservers").set(t,e)}__runComplexObservers(e,t){t.forEach((t,n)=>{t.some(t=>e.has(t))&&(this[n]?this[n](...t.map(e=>this[e])):console.warn(`observer method ${n} not defined`))})}__runDynamicObservers(e,t){t.forEach((t,n)=>{e.has(t)&&this[n]&&this[n](this[t],e.get(t))})}__runObservers(e,t){e.forEach((e,n)=>{let i=t.get(n);void 0!==i&&this[i]&&this[i](this[n],e)})}__runNotifyProps(e,t){e.forEach((e,n)=>{t.has(n)&&this.dispatchEvent(new CustomEvent(`${cc(n)}-changed`,{detail:{value:this[n]}}))})}_get(e,t){return e.split(".").reduce((e,t)=>e?e[t]:void 0,t)}_set(e,t,n){let i,r;r=(i=e.split(".")).pop(),i.reduce((e,t)=>e[t],n)[r]=t}});function cm(e){return new Set(e?e.split(" ").filter(Boolean):[])}function cf(e){return e?[...e].join(" "):""}function cg(e,t,n){n?e.setAttribute(t,n):e.removeAttribute(t)}function cv(e){return cm(Array.isArray(e)?e.join(" "):e)}function cb(e,t,n){n=cv(n);let i=cm(e.getAttribute(t));n.forEach(e=>i.add(e)),cg(e,t,cf(i))}function cy(e,t,n){n=cv(n);let i=cm(e.getAttribute(t));n.forEach(e=>i.delete(e)),cg(e,t,cf(i))}class c_{constructor(e,t,n={}){this.target=e,this.callback=t,this.forceInitial=n.forceInitial,this._storedNodes=[],this._isSlot=e instanceof HTMLSlotElement,this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),n.syncInitial?this.flush():this._schedule()}connect(){this.target.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.target.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this._scheduled&&this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_collectNodes(){return[...new Set((this._isSlot?[this.target]:[...this.target.querySelectorAll("slot")]).flatMap(e=>e.assignedNodes({flatten:!0})))]}_groupNodesBySlot(e){let t=new Map;return e.forEach(e=>{let n=e.assignedSlot;t.set(n,t.get(n)??[]),t.get(n).push(e)}),t}_collectMovedNodes(e){let t=this._groupNodesBySlot(e),n=this._groupNodesBySlot(this._storedNodes),i=[];return t.forEach((e,t)=>{let r=n.get(t)||[];new Set(r).difference(new Set(e)).size>0||r.forEach((t,n)=>{e.indexOf(t)!==n&&i.push(t)})}),i}_processNodes(){let e=this._collectNodes(),t=e.filter(e=>!this._storedNodes.includes(e)),n=this._storedNodes.filter(t=>!e.includes(t)),i=this._collectMovedNodes(e);(t.length||n.length||i.length||this.forceInitial)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:i,removedNodes:n}),this.forceInitial&&(this.forceInitial=!1),this._storedNodes=e}}let cx=0;class cw extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${cx++}`}constructor(e,t,n,i={}){super();const{initializer:r,multiple:o,observe:a,useUniqueId:s,uniqueIdPrefix:l}=i;this.host=e,this.slotName=t,this.tagName=n,this.observe="boolean"!=typeof a||a,this.multiple="boolean"==typeof o&&o,this.slotInitializer=r,o&&(this.nodes=[]),s&&(this.defaultId=this.constructor.generateId(e,l||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){let e=this.getSlotChildren();if(0===e.length){let e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=e,e.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){let{host:e,slotName:t,tagName:n}=this,i=this.defaultNode;return!i&&n&&(i=document.createElement(n))instanceof Element&&(""!==t&&i.setAttribute("slot",t),this.defaultNode=i),i&&(this.node=i,e.appendChild(i)),i}getSlotChildren(){let{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>!(t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute("data-slot-ignore"))&&(t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&""===e))}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){let{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){let{slotName:e}=this,t=""===e?"slot:not([name])":`slot[name=${e}]`;new c_(this.host.shadowRoot.querySelector(t),({addedNodes:e,removedNodes:t})=>{let n=this.multiple?this.nodes:[this.node],i=e.filter(e=>(e.nodeType!==Node.TEXT_NODE||""!==e.textContent.trim())&&!n.includes(e)&&!(e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-slot-ignore")));t.length&&(this.multiple?this.nodes=n.filter(e=>!t.includes(e)):t.includes(this.node)&&(this.node=null),t.forEach(e=>{this.teardownNode(e)})),i?.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...i].filter(e=>e!==this.defaultNode),i.forEach(e=>{this.initAddedNode(e)})):(this.node&&this.node.remove(),this.node=i[0],this.initAddedNode(this.node)))})}}class ck extends cw{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,void 0!==this.ariaTarget&&(e.ariaTarget=this.ariaTarget),void 0!==this.context&&(e.context=this.context),void 0!==this.manual&&(e.manual=this.manual),void 0!==this.position&&(e._position=this.position),void 0!==this.shouldShow&&(e.shouldShow=this.shouldShow),this.manual||this.host.setAttribute("has-tooltip",""),this.#e(e),e.addEventListener("content-changed",this.#t)}teardownNode(e){this.manual||this.host.removeAttribute("has-tooltip"),e.removeEventListener("content-changed",this.#t),this.#e(null)}setAriaTarget(e){this.ariaTarget=e;let t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;let t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;let t=this.node;t&&(t.manual=e)}setPosition(e){this.position=e;let t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;let t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;let t=this.node;t&&(t.target=e)}open(e){let t=this.node;t?.isConnected&&t._stateController.open(e)}close(e){let t=this.node;t&&t._stateController.close(e)}#t=e=>{this.#e(e.target)};#e(e){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:e}}))}}function cC(e){try{CSS.registerProperty(e)}catch(t){if(t instanceof DOMException&&"InvalidModificationError"===t.name)console.warn(`The CSS property ${e.name} has already been registered.`);else throw t}}class cE extends EventTarget{#n;#i=new Set;#r;#o=!1;constructor(e){super(),this.#n=e,this.#r=new CSSStyleSheet}#a(e){let{propertyName:t}=e;this.#i.has(t)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:t}}))}observe(e){this.connect(),this.#i.has(e)||(this.#i.add(e),this.#r.replaceSync(`
|
|
662
662
|
:root::before, :host::before {
|
|
663
663
|
content: '' !important;
|
|
664
664
|
position: absolute !important;
|
|
@@ -2838,7 +2838,7 @@ ${t[0]?t[0]:""}</textarea>`:q` <input
|
|
|
2838
2838
|
:host([theme~='align-right']) ::slotted([slot='value']) {
|
|
2839
2839
|
justify-content: right;
|
|
2840
2840
|
}
|
|
2841
|
-
`;class pU extends cw{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(e,t)=>{t._setFocusElement(e),t.ariaTarget=e,t.stateTarget=e,e.setAttribute("aria-haspopup","listbox")}})}}let pG=e=>class extends dS(d$(df(dj(e)))){static get properties(){return{items:{type:Array},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged",reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged",sync:!0},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object,__slottedListBox:{type:Object,sync:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder, focusElement)"]}constructor(){super(),this._itemId=`value-${this.localName}-${cx++}`,this._srLabelController=new dP(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._overlayElement=this.$.overlay,this._valueButtonController=new pU(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new hH(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new ck(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}updated(e){if(super.updated(e),e.has("_phone")&&this.toggleAttribute("phone",this._phone),(e.has("items")||e.has("renderer")||e.has("__slottedListBox"))&&this.__slottedListBox&&(this.items?.length||this.renderer))throw Error('A slotted <vaadin-select-list-box> cannot be used together with the "items" or "renderer" property.');if(e.has("items")&&this._overlayElement.requestContentUpdate(),e.has("__slottedListBox")){let t=this.__slottedListBox;t?this._assignMenuElement(t):e.get("__slottedListBox")&&(this._menuElement=null,this._items=null,this.__lastMenuElement=null)}e.has("accessibleName")&&this._srLabelController.setLabel(this.accessibleName),e.has("required")&&!1===this.required&&this._requestValidation()}requestContentUpdate(){this._overlayElement&&this._overlayElement.requestContentUpdate()}__onOverlaySlotChange(e){this.__slottedListBox=e.target.assignedElements().find(e=>e._hasVaadinListMixin)}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e)}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",e=>this._onKeyDownInside(e),!0),e.addEventListener("click",e=>{let t=e.composedPath().find(e=>e._hasVaadinItemMixin);this.__dispatchChangePending=t?.value!==void 0&&t.value!==this.value,this.opened=!1},!0),this.__lastMenuElement=e),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items)}__initMenuItems(e){e.items&&(this._items=e.items)}_valueChanged(e,t){this.toggleAttribute("has-value",!!e),void 0===t||this.__dispatchChangePending||this._requestValidation()}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly)}_onEscape(e){this.opened&&(e.stopPropagation(),this.opened=!1)}_onToggleMouseDown(e){e.preventDefault(),this.opened||this.focusElement.focus()}_onKeyDown(e){if(super._onKeyDown(e),!e.altKey&&!e.shiftKey&&!e.ctrlKey&&!e.metaKey&&e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&1===e.key.length){let t=this._menuElement.selected,n=this._menuElement._searchKey(t??-1,e.key);n>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=n)}}}_onKeyDownInside(e){"Tab"===e.key&&(this.focusElement.setAttribute("tabindex","-1"),this._overlayElement.restoreFocusOnClose=!1,this.opened=!1,setTimeout(()=>{this.focusElement.setAttribute("tabindex","0"),this._overlayElement.restoreFocusOnClose=!0}))}_openedChanged(e,t){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1);let e=this.hasAttribute("focus-ring");this._openedWithFocusRing=e,e&&this.removeAttribute("focus-ring")}else t&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),this.__dispatchChangePending||this._keyboardActive||this._requestValidation())}_updateAriaExpanded(e,t){t&&t.setAttribute("aria-expanded",e?"true":"false")}_updateAriaLive(e){this.focusElement&&cg(this.focusElement,"aria-live",e&&"polite")}__attachSelectedItem(e){let t,n=e.getAttribute("label");(t=n?this.__createItemElement({label:n}):e.cloneNode(!0))._sourceItem=e,this.__appendValueItemElement(t,this.focusElement)
|
|
2841
|
+
`;class pU extends cw{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(e,t)=>{t._setFocusElement(e),t.ariaTarget=e,t.stateTarget=e,e.setAttribute("aria-haspopup","listbox")}})}}let pG=e=>class extends dS(d$(df(dj(e)))){static get properties(){return{items:{type:Array},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged",reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged",sync:!0},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object,__slottedListBox:{type:Object,sync:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder, focusElement)"]}constructor(){super(),this._itemId=`value-${this.localName}-${cx++}`,this._srLabelController=new dP(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._overlayElement=this.$.overlay,this._valueButtonController=new pU(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new hH(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new ck(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}updated(e){if(super.updated(e),e.has("_phone")&&this.toggleAttribute("phone",this._phone),(e.has("items")||e.has("renderer")||e.has("__slottedListBox"))&&this.__slottedListBox&&(this.items?.length||this.renderer))throw Error('A slotted <vaadin-select-list-box> cannot be used together with the "items" or "renderer" property.');if(e.has("items")&&this._overlayElement.requestContentUpdate(),e.has("__slottedListBox")){let t=this.__slottedListBox;t?this._assignMenuElement(t):e.get("__slottedListBox")&&(this._menuElement=null,this._items=null,this.__lastMenuElement=null)}e.has("accessibleName")&&this._srLabelController.setLabel(this.accessibleName),e.has("required")&&!1===this.required&&this._requestValidation()}requestContentUpdate(){this._overlayElement&&this._overlayElement.requestContentUpdate()}__onOverlaySlotChange(e){this.__slottedListBox=e.target.assignedElements().find(e=>e._hasVaadinListMixin)}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e)}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",e=>this._onKeyDownInside(e),!0),e.addEventListener("click",e=>{let t=e.composedPath().find(e=>e._hasVaadinItemMixin);this.__dispatchChangePending=t?.value!==void 0&&t.value!==this.value,this.opened=!1},!0),this.__lastMenuElement=e),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items)}__initMenuItems(e){e.items&&(this._items=e.items)}_valueChanged(e,t){this.toggleAttribute("has-value",!!e),void 0===t||this.__dispatchChangePending||this._requestValidation()}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly)}_onEscape(e){this.opened&&(e.stopPropagation(),this.opened=!1)}_onToggleMouseDown(e){e.preventDefault(),this.opened||this.focusElement.focus()}_onKeyDown(e){if(super._onKeyDown(e),!e.altKey&&!e.shiftKey&&!e.ctrlKey&&!e.metaKey&&e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&1===e.key.length){let t=this._menuElement.selected,n=this._menuElement._searchKey(t??-1,e.key);n>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=n)}}}_onKeyDownInside(e){"Tab"===e.key&&(this.focusElement.setAttribute("tabindex","-1"),this._overlayElement.restoreFocusOnClose=!1,this.opened=!1,setTimeout(()=>{this.focusElement.setAttribute("tabindex","0"),this._overlayElement.restoreFocusOnClose=!0}))}_openedChanged(e,t){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1);let e=this.hasAttribute("focus-ring");this._openedWithFocusRing=e,e&&this.removeAttribute("focus-ring")}else t&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),this.__dispatchChangePending||this._keyboardActive||this._requestValidation())}_updateAriaExpanded(e,t){t&&t.setAttribute("aria-expanded",e?"true":"false")}_updateAriaLive(e){this.focusElement&&cg(this.focusElement,"aria-live",e&&"polite")}__attachSelectedItem(e){let t,n=e.getAttribute("label");(t=n?this.__createItemElement({label:n}):e.cloneNode(!0))._sourceItem=e,this.__appendValueItemElement(t,this.focusElement)}__createItemElement(e){let t=document.createElement(e.component||"vaadin-select-item");return e.label&&(t.textContent=e.label),e.value&&(t.value=e.value),e.disabled&&(t.disabled=e.disabled),e.className&&(t.className=e.className),t}__appendValueItemElement(e,t){t.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("selected"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId)}__updateValueButton(){let e=this.focusElement;if(!e)return;e.innerHTML="";let t=this._items?this._items[this._menuElement.selected]:void 0;if(e.removeAttribute("placeholder"),this._hasContent(t))this.__attachSelectedItem(t);else if(this.placeholder){let t=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(t,e),e.setAttribute("placeholder","")}!this._valueChanging&&t&&(this._selectedChanging=!0,this.value=t.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging),this.__updateFieldAriaControllerLabelledBy()}_hasContent(e){if(!e)return!1;let t=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),n=e.childElementCount>0;return t||n}_updateSelectedItem(e,t,n){if(t){let n=null==e?e:e.toString();this._menuElement.selected=t.reduce((e,t,i)=>void 0===e&&t.value===n?i:e,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}else n&&this.__updateValueButton()}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this._requestValidation()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(e,t){if(!this.items||0===this.items.length){e.textContent="";return}let n=e.firstElementChild;n||(n=document.createElement("vaadin-select-list-box"),e.appendChild(n)),n.textContent="",this.items.forEach(e=>{n.appendChild(this.__createItemElement(e))})}__dispatchChange(){this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1}__updateFieldAriaControllerLabel(){}__updateFieldAriaControllerLabelledBy(){let e;this.accessibleNameRef?e=this.accessibleNameRef:this.accessibleName?e=this._srLabelController.defaultId:this.hasAttribute("has-label")&&(e=this._labelNode?.id);let t=[e,this._items?.[this._menuElement.selected]||this.placeholder?this._itemId:null].filter(Boolean);t.length>0?this._fieldAriaController.setLabelledBy(t.join(" ")):this._fieldAriaController.setLabelledBy(null)}};class pK extends pG(cr(cU(cp(cN(ep))))){static get is(){return"vaadin-select"}static get styles(){return[hY,pH,pW]}render(){return q`
|
|
2842
2842
|
<div class="vaadin-select-container">
|
|
2843
2843
|
<div part="label" @click="${this._onClick}">
|
|
2844
2844
|
<slot name="label"></slot>
|