@openremote/or-attribute-input 1.34.0 → 1.35.0-snapshot.20261109113241
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.
|
@@ -652,7 +652,7 @@ ${e[0]?e[0]:""}</textarea>`:K` <input
|
|
|
652
652
|
${t?K` <span class="mdc-notched-outline__notch"> ${t} </span> `:""}
|
|
653
653
|
<span class="mdc-notched-outline__trailing"></span>
|
|
654
654
|
</span>
|
|
655
|
-
`}setCustomValidity(t){this.errorMessage=t;let e=this.shadowRoot.getElementById("elem");e&&e.setCustomValidity&&e.setCustomValidity(null!=t?t:""),this.reportValidity()}checkValidity(){let t=this.shadowRoot.getElementById("elem"),e=!0;return t&&t.validity&&(e=t.validity.valid),e&&(this.type===dX.JSON||this.type===dX.JSON_OBJECT)&&void 0!==this.value&&null!==this.value&&""===this._mdcComponent.value&&(e=!1),e}reportValidity(){let t=this.checkValidity();return this.isUiValid=t,this._mdcComponent&&(this._mdcComponent.valid=t),t}onValueChange(t,e,n){var i,r;let a,o=this.value;if("undefined"===e&&(o=null,e=void 0),"null"===e&&(o=void 0,e=null),"string"==typeof e)switch(this.type){case dX.CHECKBOX:case dX.SWITCH:e="on"===e;break;case dX.JSON:case dX.JSON_OBJECT:case dX.NUMBER:case dX.RANGE:if(""===e)e=null;else try{e=JSON.parse(e),this.type===dX.JSON_OBJECT&&("object"!=typeof e||Array.isArray(e))&&(e=this.value,a=tB.i18next.t("validation.invalidJSON"))}catch(t){e=this.value,a=this.type===dX.JSON||this.type==dX.JSON_OBJECT?tB.i18next.t("validation.invalidJSON"):tB.i18next.t("validation.invalidNumber")}break;case dX.DATETIME:if(""===e)e=null;else try{e=Date.parse(e)}catch(t){e=this.value,a=tB.i18next.t("validation.invalidDate")}}if(this.value=e,this.setCustomValidity(a),this.reportValidity(),this.type!==dX.CHECKBOX_LIST&&e!==o&&(this.type===dX.RANGE&&(this._mdcComponent.setValue(e),this._mdcComponent2&&(this._mdcComponent2.value=e)),this.dispatchEvent(new i8(this.value,o,n))),void 0!=this.searchProvider&&this.type===dX.SELECT){let t=null==(r=null==(i=this.shadowRoot)?void 0:i.getElementById("select-searchable"))?void 0:r.children[1];t&&(this.searchableValue=void 0,t.value="")}this.type!==dX.CHECKBOX_LIST||tj.Util.objectsEqual(e,o,!0)||this.dispatchEvent(new i8(e,o,n))}get valid(){let t=this.shadowRoot.getElementById("elem");return!t||!t.checkValidity||t.checkValidity()}get currentValue(){let t=this.shadowRoot.getElementById("elem");if(t&&t.value)return t.value}resolveOptions(t){let e;return t&&t.length>0&&(e=t.map(t=>{if(Array.isArray(t))return t;{let e=""+t;return[t,tB.i18next.t(e,{defaultValue:tj.Util.camelCaseToSentenceCase(e)})]}})),e}getSelectedTextValue(t){let e=this.value,n=Array.isArray(e)?e:null!=e?[e]:void 0;if(!n)return"";let i=t||this.resolveOptions(this.options);return i&&n?n.map(t=>i.find(([e,n],i)=>t===e)).map(t=>t?t[1]:"").join(", "):""}};ij([tv({type:Boolean})],i9.prototype,"focused",void 0),ij([tv()],i9.prototype,"value",void 0),ij([tv({type:String})],i9.prototype,"type",void 0),ij([tv({type:String})],i9.prototype,"name",void 0),ij([tv({type:Boolean})],i9.prototype,"readonly",void 0),ij([tv({type:Boolean})],i9.prototype,"required",void 0),ij([tv()],i9.prototype,"max",void 0),ij([tv()],i9.prototype,"min",void 0),ij([tv({type:Number})],i9.prototype,"step",void 0),ij([tv({type:Boolean})],i9.prototype,"checked",void 0),ij([tv({type:Boolean})],i9.prototype,"indeterminate",void 0),ij([tv({type:Number})],i9.prototype,"maxLength",void 0),ij([tv({type:Number})],i9.prototype,"minLength",void 0),ij([tv({type:Number})],i9.prototype,"rows",void 0),ij([tv({type:Number})],i9.prototype,"cols",void 0),ij([tv({type:Boolean})],i9.prototype,"multiple",void 0),ij([tv({type:String,attribute:!0,reflect:!1})],i9.prototype,"pattern",void 0),ij([tv({type:String})],i9.prototype,"placeHolder",void 0),ij([tv({type:Array})],i9.prototype,"options",void 0),ij([tv({type:Boolean})],i9.prototype,"autoSelect",void 0),ij([tv({type:Object})],i9.prototype,"searchProvider",void 0),ij([tv({type:String})],i9.prototype,"searchLabel",void 0),ij([tv({type:String})],i9.prototype,"icon",void 0),ij([tv({type:String})],i9.prototype,"iconColor",void 0),ij([tv({type:String})],i9.prototype,"iconOn",void 0),ij([tv({type:String})],i9.prototype,"iconTrailing",void 0),ij([tv({type:Boolean})],i9.prototype,"compact",void 0),ij([tv({type:Boolean})],i9.prototype,"comfortable",void 0),ij([tv({type:Boolean})],i9.prototype,"raised",void 0),ij([tv({type:Boolean})],i9.prototype,"action",void 0),ij([tv({type:Boolean})],i9.prototype,"unElevated",void 0),ij([tv({type:Boolean})],i9.prototype,"outlined",void 0),ij([tv({type:Boolean})],i9.prototype,"rounded",void 0),ij([tv({type:Object})],i9.prototype,"format",void 0),ij([tv({type:Boolean})],i9.prototype,"disableSliderNumberInput",void 0),ij([tv({type:Boolean})],i9.prototype,"fullWidth",void 0),ij([tv({type:String})],i9.prototype,"helperText",void 0),ij([tv({type:Boolean})],i9.prototype,"helperPersistent",void 0),ij([tv({type:String,attribute:!0})],i9.prototype,"validationMessage",void 0),ij([tv({type:Boolean})],i9.prototype,"autoValidate",void 0),ij([tv({type:Boolean})],i9.prototype,"charCounter",void 0),ij([tv({type:String})],i9.prototype,"label",void 0),ij([tv({type:Boolean})],i9.prototype,"disabled",void 0),ij([tv({type:Boolean})],i9.prototype,"continuous",void 0),ij([tv({type:Boolean})],i9.prototype,"resizeVertical",void 0),ij([tv({type:Boolean})],i9.prototype,"censored",void 0),ij([tv({type:Boolean,reflect:!0})],i9.prototype,"advertised",void 0),ij([ty()],i9.prototype,"isUiValid",void 0),ij([ty()],i9.prototype,"searchableValue",void 0),ij([ty()],i9.prototype,"errorMessage",void 0),i9=ij([tb("or-mwc-input")],i9),window.Vaadin||={},window.Vaadin.featureFlags||={};let rt={};function re(t,e="25.3.4"){if(Object.defineProperty(t,"version",{get:()=>e}),t.experimental){let e="string"==typeof t.experimental?t.experimental:`${t.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,t=>t[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[e]||rt[e]){if(rt[e])return void rt[e].add(t)}else{rt[e]=new Set,rt[e].add(t),Object.defineProperty(window.Vaadin.featureFlags,e,{get:()=>0===rt[e].size,set(t){t&&rt[e].size>0&&(rt[e].forEach(t=>{customElements.define(t.is,t)}),rt[e].clear())}});return}}let n=customElements.get(t.is);if(n){let e=n.version;e&&t.version&&e===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${n.version} is already in use. Something will probably break.`)}else customElements.define(t.is,t)}let rn=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,ri=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function rr(t,e){if("function"!=typeof t)return;let n=rn.exec(t.toString());if(n)try{t=Function(n[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}return t(e)}window.Vaadin=window.Vaadin||{};let ra=function(t,e){if(window.Vaadin.developmentMode)return rr(t,e)};function ro(){}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(ri)return!(ri&&Object.keys(ri).map(t=>ri[t]).filter(t=>t.productionMode).length>0);return!rr(function(){return!0})}catch(t){return!1}}());let rs=function(){if("function"==typeof ra)return ra(ro)},rl=0,rd=0,rc=[],rp=!1,ru={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},rh={run:t=>window.requestAnimationFrame(t),cancel(t){window.cancelAnimationFrame(t)}},rm={run:t=>window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16),cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},rf={run(t){rp||(rp=!0,queueMicrotask(()=>(function(){rp=!1;let t=rc.length;for(let e=0;e<t;e++){let t=rc[e];if(t)try{t()}catch(t){setTimeout(()=>{throw t})}}rc.splice(0,t),rd+=t})())),rc.push(t);let e=rl;return rl+=1,e},cancel(t){let e=t-rd;if(e>=0){if(!rc[e])throw Error(`invalid async handle: ${t}`);rc[e]=null}}},rg=new Set;class rb{static debounce(t,e,n){return t instanceof rb?t._cancelAsync():t=new rb,t.setConfig(e,n),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,rg.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),rg.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 r_=()=>{let t;do t=function(){let t=!!rg.size;return rg.forEach(t=>{try{t.flush()}catch(t){setTimeout(()=>{throw t})}}),t}();while(t)},rv=[];function ry(t,e,n=t.getAttribute("dir")){e?t.setAttribute("dir",e):null!=n&&t.removeAttribute("dir")}function rx(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let t=rx();rv.forEach(e=>{ry(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let rw=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>""===t?null:t}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),ry(this,rx(),null))}attributeChangedCallback(t,e,n){if(super.attributeChangedCallback(t,e,n),"dir"!==t)return;let i=rx(),r=n===i&&-1===rv.indexOf(this),a=!n&&e&&-1===rv.indexOf(this),o=n!==i&&e===i;r||a?(this.__subscribe(),ry(this,i,n)):o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=rv.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,n){("dir"!==n||""!==e||t.hasAttribute("dir"))&&super._valueToNodeAttribute(t,e,n)}_attributeToProperty(t,e,n){"dir"!==t||e?super._attributeToProperty(t,e,n):this.dir=""}__subscribe(){rv.includes(this)||rv.push(this)}__unsubscribe(){rv.includes(this)&&rv.splice(rv.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(){rs()};let rk=new Set,rE=e=>class extends rw(e){static _ensureRegistrations(){let{is:e}=this;if(e&&!rk.has(e)){window.Vaadin.registrations.push(this),rk.add(e);let i=window.Vaadin.developmentModeCallback;if(i){var n;n=t=rb.debounce(t,rm,()=>{i["vaadin-usage-statistics"]()}),rg.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()}},rC=new WeakMap;function rT(t){return e=>{if(function(t,e){let n=e;for(;n;){if(rC.get(n)===t)return!0;n=Object.getPrototypeOf(n)}return!1}(t,e))return e;let n=t(e);return rC.set(n,t),n}}let rI={},rA=/([A-Z])/gu;function rS(t){return rI[t]||(rI[t]=t.replace(rA,"-$1").toLowerCase()),rI[t]}function rO(t){return t[0].toUpperCase()+t.substring(1)}function rD(t){let[e,n]=t.split("(");return{method:e,observerProps:n.replace(")","").split(",").map(t=>t.trim())}}function rL(t,e){return Object.prototype.hasOwnProperty.call(t,e)||(t[e]=new Map(t[e])),t[e]}let rR=rT(t=>class extends t{static enabledWarnings=[];static createProperty(t,e){[String,Boolean,Number,Array].includes(e)&&(e={type:e}),e?.reflectToAttribute&&(e.reflect=!0),super.createProperty(t,e)}static getOrCreateMap(t){return rL(this,t)}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 t=this.getOrCreateMap("__complexObservers");this.observers.forEach(e=>{let{method:n,observerProps:i}=rD(e);t.set(n,i)})}}static addCheckedInitializer(t){super.addInitializer(e=>{e instanceof this&&t(e)})}static getPropertyDescriptor(t,e,n){let i=super.getPropertyDescriptor(t,e,n),r=i;if(this.getOrCreateMap("__propKeys").set(t,e),n.sync&&(r={get:i.get,set(i){let r=this[t];T(i,r)&&(this[e]=i,this.requestUpdate(t,r,n),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),n.readOnly){let e=r.set;this.addCheckedInitializer(n=>{n[`_set${rO(t)}`]=function(t){e.call(n,t)}}),r={get:r.get,set(){},configurable:!0,enumerable:!0}}if("value"in n&&this.addCheckedInitializer(e=>{let i="function"==typeof n.value?n.value.call(e):n.value;n.readOnly?e[`_set${rO(t)}`](i):e[t]=i}),n.observer){let e=n.observer;this.getOrCreateMap("__observers").set(t,e),this.addCheckedInitializer(t=>{t[e]||console.warn(`observer method ${e} not defined`)})}if(n.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let t=this.__notifyProps;this.__notifyProps=new Set(t)}}else this.__notifyProps=new Set;this.__notifyProps.add(t)}if(n.computed){let e=`__assignComputed${t}`,i=rD(n.computed);this.prototype[e]=function(...e){this[t]=this[i.method](...e)},this.getOrCreateMap("__computedObservers").set(e,i.observerProps)}return n.attribute||(n.attribute=rS(t)),r}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:t}=this.constructor;this.hasUpdated||t.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t})}ready(){}willUpdate(t){this.constructor.__computedObservers&&this.__runComplexObservers(t,this.constructor.__computedObservers)}updated(t){let e=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(t,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(t,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(t,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(t,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(t,this.constructor.__notifyProps),e||this.ready()}setProperties(t){Object.entries(t).forEach(([t,e])=>{let n=this.constructor.__propKeys.get(t),i=this[n];this[n]=e,this.requestUpdate(t,i)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(t){let e=rL(this,"__dynamicMethodObservers"),{method:n,observerProps:i}=rD(t);e.set(n,i)}_createPropertyObserver(t,e){rL(this,"__dynamicPropertyObservers").set(e,t)}__runComplexObservers(t,e){e.forEach((e,n)=>{e.some(e=>t.has(e))&&(this[n]?this[n](...e.map(t=>this[t])):console.warn(`observer method ${n} not defined`))})}__runDynamicObservers(t,e){e.forEach((e,n)=>{t.has(e)&&this[n]&&this[n](this[e],t.get(e))})}__runObservers(t,e){t.forEach((t,n)=>{let i=e.get(n);void 0!==i&&this[i]&&this[i](this[n],t)})}__runNotifyProps(t,e){t.forEach((t,n)=>{e.has(n)&&this.dispatchEvent(new CustomEvent(`${rS(n)}-changed`,{detail:{value:this[n]}}))})}_get(t,e){return t.split(".").reduce((t,e)=>t?t[e]:void 0,e)}_set(t,e,n){let i,r;r=(i=t.split(".")).pop(),i.reduce((t,e)=>t[e],n)[r]=e}});function rP(t){return new Set(t?t.split(" ").filter(Boolean):[])}function rN(t){return t?[...t].join(" "):""}function rM(t,e,n){n?t.setAttribute(e,n):t.removeAttribute(e)}function rz(t){return rP(Array.isArray(t)?t.join(" "):t)}function r$(t,e,n){n=rz(n);let i=rP(t.getAttribute(e));n.forEach(t=>i.add(t)),rM(t,e,rN(i))}function rV(t,e,n){n=rz(n);let i=rP(t.getAttribute(e));n.forEach(t=>i.delete(t)),rM(t,e,rN(i))}class rF{constructor(t,e,n={}){this.target=t,this.callback=e,this.forceInitial=n.forceInitial,this._storedNodes=[],this._isSlot=t 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(t=>t.assignedNodes({flatten:!0})))]}_groupNodesBySlot(t){let e=new Map;return t.forEach(t=>{let n=t.assignedSlot;e.set(n,e.get(n)??[]),e.get(n).push(t)}),e}_collectMovedNodes(t){let e=this._groupNodesBySlot(t),n=this._groupNodesBySlot(this._storedNodes),i=[];return e.forEach((t,e)=>{let r=n.get(e)||[];new Set(r).difference(new Set(t)).size>0||r.forEach((e,n)=>{t.indexOf(e)!==n&&i.push(e)})}),i}_processNodes(){let t=this._collectNodes(),e=t.filter(t=>!this._storedNodes.includes(t)),n=this._storedNodes.filter(e=>!t.includes(e)),i=this._collectMovedNodes(t);(e.length||n.length||i.length||this.forceInitial)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:i,removedNodes:n}),this.forceInitial&&(this.forceInitial=!1),this._storedNodes=t}}let rB=0;class rH extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${rB++}`}constructor(t,e,n,i={}){super();const{initializer:r,multiple:a,observe:o,useUniqueId:s,uniqueIdPrefix:l}=i;this.host=t,this.slotName=e,this.tagName=n,this.observe="boolean"!=typeof o||o,this.multiple="boolean"==typeof a&&a,this.slotInitializer=r,a&&(this.nodes=[]),s&&(this.defaultId=this.constructor.generateId(t,l||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){let t=this.getSlotChildren();if(0===t.length){let t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=t,t.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){let{host:t,slotName:e,tagName:n}=this,i=this.defaultNode;return!i&&n&&(i=document.createElement(n))instanceof Element&&(""!==e&&i.setAttribute("slot",e),this.defaultNode=i),i&&(this.node=i,t.appendChild(i)),i}getSlotChildren(){let{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>!(e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-slot-ignore"))&&(e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t))}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){let{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){let{slotName:t}=this,e=""===t?"slot:not([name])":`slot[name=${t}]`;new rF(this.host.shadowRoot.querySelector(e),({addedNodes:t,removedNodes:e})=>{let n=this.multiple?this.nodes:[this.node],i=t.filter(t=>(t.nodeType!==Node.TEXT_NODE||""!==t.textContent.trim())&&!n.includes(t)&&!(t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute("data-slot-ignore")));e.length&&(this.multiple?this.nodes=n.filter(t=>!e.includes(t)):e.includes(this.node)&&(this.node=null),e.forEach(t=>{this.teardownNode(t)})),i?.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...i].filter(t=>t!==this.defaultNode),i.forEach(t=>{this.initAddedNode(t)})):(this.node&&this.node.remove(),this.node=i[0],this.initAddedNode(this.node)))})}}class rj extends rH{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,void 0!==this.ariaTarget&&(t.ariaTarget=this.ariaTarget),void 0!==this.context&&(t.context=this.context),void 0!==this.manual&&(t.manual=this.manual),void 0!==this.position&&(t._position=this.position),void 0!==this.shouldShow&&(t.shouldShow=this.shouldShow),this.manual||this.host.setAttribute("has-tooltip",""),this.#t(t),t.addEventListener("content-changed",this.#e)}teardownNode(t){this.manual||this.host.removeAttribute("has-tooltip"),t.removeEventListener("content-changed",this.#e),this.#t(null)}setAriaTarget(t){this.ariaTarget=t;let e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;let e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;let e=this.node;e&&(e.manual=t)}setPosition(t){this.position=t;let e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;let e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;let e=this.node;e&&(e.target=t)}open(t){let e=this.node;e?.isConnected&&e._stateController.open(t)}close(t){let e=this.node;e&&e._stateController.close(t)}#e=t=>{this.#t(t.target)};#t(t){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:t}}))}}function rU(t){try{CSS.registerProperty(t)}catch(e){if(e instanceof DOMException&&"InvalidModificationError"===e.name)console.warn(`The CSS property ${t.name} has already been registered.`);else throw e}}class rX extends EventTarget{#n;#i=new Set;#r;#a=!1;constructor(t){super(),this.#n=t,this.#r=new CSSStyleSheet}#o(t){let{propertyName:e}=t;this.#i.has(e)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:e}}))}observe(t){this.connect(),this.#i.has(t)||(this.#i.add(t),this.#r.replaceSync(`
|
|
655
|
+
`}setCustomValidity(t){this.errorMessage=t;let e=this.shadowRoot.getElementById("elem");e&&e.setCustomValidity&&e.setCustomValidity(null!=t?t:""),this.reportValidity()}checkValidity(){let t=this.shadowRoot.getElementById("elem"),e=!0;return t&&t.validity&&(e=t.validity.valid),e&&(this.type===dX.JSON||this.type===dX.JSON_OBJECT)&&void 0!==this.value&&null!==this.value&&""===this._mdcComponent.value&&(e=!1),e}reportValidity(){let t=this.checkValidity();return this.isUiValid=t,this._mdcComponent&&(this._mdcComponent.valid=t),t}onValueChange(t,e,n){var i,r;let a,o=this.value;if("undefined"===e&&(o=null,e=void 0),"null"===e&&(o=void 0,e=null),"string"==typeof e)switch(this.type){case dX.CHECKBOX:case dX.SWITCH:e="on"===e;break;case dX.JSON:case dX.JSON_OBJECT:case dX.NUMBER:case dX.RANGE:if(""===e)e=null;else try{e=JSON.parse(e),this.type===dX.JSON_OBJECT&&("object"!=typeof e||Array.isArray(e))&&(e=this.value,a=tB.i18next.t("validation.invalidJSON"))}catch(t){e=this.value,a=this.type===dX.JSON||this.type==dX.JSON_OBJECT?tB.i18next.t("validation.invalidJSON"):tB.i18next.t("validation.invalidNumber")}break;case dX.DATETIME:if(""===e)e=null;else try{e=Date.parse(e)}catch(t){e=this.value,a=tB.i18next.t("validation.invalidDate")}}if(this.value=e,this.setCustomValidity(a),this.reportValidity(),this.type!==dX.CHECKBOX_LIST&&e!==o&&(this.type===dX.RANGE&&(this._mdcComponent.setValue(e),this._mdcComponent2&&(this._mdcComponent2.value=e)),this.dispatchEvent(new i8(this.value,o,n))),void 0!=this.searchProvider&&this.type===dX.SELECT){let t=null==(r=null==(i=this.shadowRoot)?void 0:i.getElementById("select-searchable"))?void 0:r.children[1];t&&(this.searchableValue=void 0,t.value="")}this.type!==dX.CHECKBOX_LIST||tj.Util.objectsEqual(e,o,!0)||this.dispatchEvent(new i8(e,o,n))}get valid(){let t=this.shadowRoot.getElementById("elem");return!t||!t.checkValidity||t.checkValidity()}get currentValue(){let t=this.shadowRoot.getElementById("elem");if(t&&t.value)return t.value}resolveOptions(t){let e;return t&&t.length>0&&(e=t.map(t=>{if(Array.isArray(t))return t;{let e=""+t;return[t,tB.i18next.t(e,{defaultValue:tj.Util.camelCaseToSentenceCase(e)})]}})),e}getSelectedTextValue(t){let e=this.value,n=Array.isArray(e)?e:null!=e?[e]:void 0;if(!n)return"";let i=t||this.resolveOptions(this.options);return i&&n?n.map(t=>i.find(([e,n],i)=>t===e)).map(t=>t?t[1]:"").join(", "):""}};ij([tv({type:Boolean})],i9.prototype,"focused",void 0),ij([tv()],i9.prototype,"value",void 0),ij([tv({type:String})],i9.prototype,"type",void 0),ij([tv({type:String})],i9.prototype,"name",void 0),ij([tv({type:Boolean})],i9.prototype,"readonly",void 0),ij([tv({type:Boolean})],i9.prototype,"required",void 0),ij([tv()],i9.prototype,"max",void 0),ij([tv()],i9.prototype,"min",void 0),ij([tv({type:Number})],i9.prototype,"step",void 0),ij([tv({type:Boolean})],i9.prototype,"checked",void 0),ij([tv({type:Boolean})],i9.prototype,"indeterminate",void 0),ij([tv({type:Number})],i9.prototype,"maxLength",void 0),ij([tv({type:Number})],i9.prototype,"minLength",void 0),ij([tv({type:Number})],i9.prototype,"rows",void 0),ij([tv({type:Number})],i9.prototype,"cols",void 0),ij([tv({type:Boolean})],i9.prototype,"multiple",void 0),ij([tv({type:String,attribute:!0,reflect:!1})],i9.prototype,"pattern",void 0),ij([tv({type:String})],i9.prototype,"placeHolder",void 0),ij([tv({type:Array})],i9.prototype,"options",void 0),ij([tv({type:Boolean})],i9.prototype,"autoSelect",void 0),ij([tv({type:Object})],i9.prototype,"searchProvider",void 0),ij([tv({type:String})],i9.prototype,"searchLabel",void 0),ij([tv({type:String})],i9.prototype,"icon",void 0),ij([tv({type:String})],i9.prototype,"iconColor",void 0),ij([tv({type:String})],i9.prototype,"iconOn",void 0),ij([tv({type:String})],i9.prototype,"iconTrailing",void 0),ij([tv({type:Boolean})],i9.prototype,"compact",void 0),ij([tv({type:Boolean})],i9.prototype,"comfortable",void 0),ij([tv({type:Boolean})],i9.prototype,"raised",void 0),ij([tv({type:Boolean})],i9.prototype,"action",void 0),ij([tv({type:Boolean})],i9.prototype,"unElevated",void 0),ij([tv({type:Boolean})],i9.prototype,"outlined",void 0),ij([tv({type:Boolean})],i9.prototype,"rounded",void 0),ij([tv({type:Object})],i9.prototype,"format",void 0),ij([tv({type:Boolean})],i9.prototype,"disableSliderNumberInput",void 0),ij([tv({type:Boolean})],i9.prototype,"fullWidth",void 0),ij([tv({type:String})],i9.prototype,"helperText",void 0),ij([tv({type:Boolean})],i9.prototype,"helperPersistent",void 0),ij([tv({type:String,attribute:!0})],i9.prototype,"validationMessage",void 0),ij([tv({type:Boolean})],i9.prototype,"autoValidate",void 0),ij([tv({type:Boolean})],i9.prototype,"charCounter",void 0),ij([tv({type:String})],i9.prototype,"label",void 0),ij([tv({type:Boolean})],i9.prototype,"disabled",void 0),ij([tv({type:Boolean})],i9.prototype,"continuous",void 0),ij([tv({type:Boolean})],i9.prototype,"resizeVertical",void 0),ij([tv({type:Boolean})],i9.prototype,"censored",void 0),ij([tv({type:Boolean,reflect:!0})],i9.prototype,"advertised",void 0),ij([ty()],i9.prototype,"isUiValid",void 0),ij([ty()],i9.prototype,"searchableValue",void 0),ij([ty()],i9.prototype,"errorMessage",void 0),i9=ij([tb("or-mwc-input")],i9),window.Vaadin||={},window.Vaadin.featureFlags||={};let rt={};function re(t,e="25.3.5"){if(Object.defineProperty(t,"version",{get:()=>e}),t.experimental){let e="string"==typeof t.experimental?t.experimental:`${t.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,t=>t[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[e]||rt[e]){if(rt[e])return void rt[e].add(t)}else{rt[e]=new Set,rt[e].add(t),Object.defineProperty(window.Vaadin.featureFlags,e,{get:()=>0===rt[e].size,set(t){t&&rt[e].size>0&&(rt[e].forEach(t=>{customElements.define(t.is,t)}),rt[e].clear())}});return}}let n=customElements.get(t.is);if(n){let e=n.version;e&&t.version&&e===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${n.version} is already in use. Something will probably break.`)}else customElements.define(t.is,t)}let rn=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,ri=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function rr(t,e){if("function"!=typeof t)return;let n=rn.exec(t.toString());if(n)try{t=Function(n[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}return t(e)}window.Vaadin=window.Vaadin||{};let ra=function(t,e){if(window.Vaadin.developmentMode)return rr(t,e)};function ro(){}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(ri)return!(ri&&Object.keys(ri).map(t=>ri[t]).filter(t=>t.productionMode).length>0);return!rr(function(){return!0})}catch(t){return!1}}());let rs=function(){if("function"==typeof ra)return ra(ro)},rl=0,rd=0,rc=[],rp=!1,ru={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},rh={run:t=>window.requestAnimationFrame(t),cancel(t){window.cancelAnimationFrame(t)}},rm={run:t=>window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16),cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},rf={run(t){rp||(rp=!0,queueMicrotask(()=>(function(){rp=!1;let t=rc.length;for(let e=0;e<t;e++){let t=rc[e];if(t)try{t()}catch(t){setTimeout(()=>{throw t})}}rc.splice(0,t),rd+=t})())),rc.push(t);let e=rl;return rl+=1,e},cancel(t){let e=t-rd;if(e>=0){if(!rc[e])throw Error(`invalid async handle: ${t}`);rc[e]=null}}},rg=new Set;class rb{static debounce(t,e,n){return t instanceof rb?t._cancelAsync():t=new rb,t.setConfig(e,n),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,rg.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),rg.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 r_=()=>{let t;do t=function(){let t=!!rg.size;return rg.forEach(t=>{try{t.flush()}catch(t){setTimeout(()=>{throw t})}}),t}();while(t)},rv=[];function ry(t,e,n=t.getAttribute("dir")){e?t.setAttribute("dir",e):null!=n&&t.removeAttribute("dir")}function rx(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let t=rx();rv.forEach(e=>{ry(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let rw=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>""===t?null:t}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),ry(this,rx(),null))}attributeChangedCallback(t,e,n){if(super.attributeChangedCallback(t,e,n),"dir"!==t)return;let i=rx(),r=n===i&&-1===rv.indexOf(this),a=!n&&e&&-1===rv.indexOf(this),o=n!==i&&e===i;r||a?(this.__subscribe(),ry(this,i,n)):o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=rv.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,n){("dir"!==n||""!==e||t.hasAttribute("dir"))&&super._valueToNodeAttribute(t,e,n)}_attributeToProperty(t,e,n){"dir"!==t||e?super._attributeToProperty(t,e,n):this.dir=""}__subscribe(){rv.includes(this)||rv.push(this)}__unsubscribe(){rv.includes(this)&&rv.splice(rv.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(){rs()};let rk=new Set,rE=e=>class extends rw(e){static _ensureRegistrations(){let{is:e}=this;if(e&&!rk.has(e)){window.Vaadin.registrations.push(this),rk.add(e);let i=window.Vaadin.developmentModeCallback;if(i){var n;n=t=rb.debounce(t,rm,()=>{i["vaadin-usage-statistics"]()}),rg.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()}},rC=new WeakMap;function rT(t){return e=>{if(function(t,e){let n=e;for(;n;){if(rC.get(n)===t)return!0;n=Object.getPrototypeOf(n)}return!1}(t,e))return e;let n=t(e);return rC.set(n,t),n}}let rI={},rA=/([A-Z])/gu;function rS(t){return rI[t]||(rI[t]=t.replace(rA,"-$1").toLowerCase()),rI[t]}function rO(t){return t[0].toUpperCase()+t.substring(1)}function rD(t){let[e,n]=t.split("(");return{method:e,observerProps:n.replace(")","").split(",").map(t=>t.trim())}}function rL(t,e){return Object.prototype.hasOwnProperty.call(t,e)||(t[e]=new Map(t[e])),t[e]}let rR=rT(t=>class extends t{static enabledWarnings=[];static createProperty(t,e){[String,Boolean,Number,Array].includes(e)&&(e={type:e}),e?.reflectToAttribute&&(e.reflect=!0),super.createProperty(t,e)}static getOrCreateMap(t){return rL(this,t)}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 t=this.getOrCreateMap("__complexObservers");this.observers.forEach(e=>{let{method:n,observerProps:i}=rD(e);t.set(n,i)})}}static addCheckedInitializer(t){super.addInitializer(e=>{e instanceof this&&t(e)})}static getPropertyDescriptor(t,e,n){let i=super.getPropertyDescriptor(t,e,n),r=i;if(this.getOrCreateMap("__propKeys").set(t,e),n.sync&&(r={get:i.get,set(i){let r=this[t];T(i,r)&&(this[e]=i,this.requestUpdate(t,r,n),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),n.readOnly){let e=r.set;this.addCheckedInitializer(n=>{n[`_set${rO(t)}`]=function(t){e.call(n,t)}}),r={get:r.get,set(){},configurable:!0,enumerable:!0}}if("value"in n&&this.addCheckedInitializer(e=>{let i="function"==typeof n.value?n.value.call(e):n.value;n.readOnly?e[`_set${rO(t)}`](i):e[t]=i}),n.observer){let e=n.observer;this.getOrCreateMap("__observers").set(t,e),this.addCheckedInitializer(t=>{t[e]||console.warn(`observer method ${e} not defined`)})}if(n.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let t=this.__notifyProps;this.__notifyProps=new Set(t)}}else this.__notifyProps=new Set;this.__notifyProps.add(t)}if(n.computed){let e=`__assignComputed${t}`,i=rD(n.computed);this.prototype[e]=function(...e){this[t]=this[i.method](...e)},this.getOrCreateMap("__computedObservers").set(e,i.observerProps)}return n.attribute||(n.attribute=rS(t)),r}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:t}=this.constructor;this.hasUpdated||t.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t})}ready(){}willUpdate(t){this.constructor.__computedObservers&&this.__runComplexObservers(t,this.constructor.__computedObservers)}updated(t){let e=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(t,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(t,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(t,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(t,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(t,this.constructor.__notifyProps),e||this.ready()}setProperties(t){Object.entries(t).forEach(([t,e])=>{let n=this.constructor.__propKeys.get(t),i=this[n];this[n]=e,this.requestUpdate(t,i)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(t){let e=rL(this,"__dynamicMethodObservers"),{method:n,observerProps:i}=rD(t);e.set(n,i)}_createPropertyObserver(t,e){rL(this,"__dynamicPropertyObservers").set(e,t)}__runComplexObservers(t,e){e.forEach((e,n)=>{e.some(e=>t.has(e))&&(this[n]?this[n](...e.map(t=>this[t])):console.warn(`observer method ${n} not defined`))})}__runDynamicObservers(t,e){e.forEach((e,n)=>{t.has(e)&&this[n]&&this[n](this[e],t.get(e))})}__runObservers(t,e){t.forEach((t,n)=>{let i=e.get(n);void 0!==i&&this[i]&&this[i](this[n],t)})}__runNotifyProps(t,e){t.forEach((t,n)=>{e.has(n)&&this.dispatchEvent(new CustomEvent(`${rS(n)}-changed`,{detail:{value:this[n]}}))})}_get(t,e){return t.split(".").reduce((t,e)=>t?t[e]:void 0,e)}_set(t,e,n){let i,r;r=(i=t.split(".")).pop(),i.reduce((t,e)=>t[e],n)[r]=e}});function rP(t){return new Set(t?t.split(" ").filter(Boolean):[])}function rN(t){return t?[...t].join(" "):""}function rM(t,e,n){n?t.setAttribute(e,n):t.removeAttribute(e)}function rz(t){return rP(Array.isArray(t)?t.join(" "):t)}function r$(t,e,n){n=rz(n);let i=rP(t.getAttribute(e));n.forEach(t=>i.add(t)),rM(t,e,rN(i))}function rV(t,e,n){n=rz(n);let i=rP(t.getAttribute(e));n.forEach(t=>i.delete(t)),rM(t,e,rN(i))}class rF{constructor(t,e,n={}){this.target=t,this.callback=e,this.forceInitial=n.forceInitial,this._storedNodes=[],this._isSlot=t 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(t=>t.assignedNodes({flatten:!0})))]}_groupNodesBySlot(t){let e=new Map;return t.forEach(t=>{let n=t.assignedSlot;e.set(n,e.get(n)??[]),e.get(n).push(t)}),e}_collectMovedNodes(t){let e=this._groupNodesBySlot(t),n=this._groupNodesBySlot(this._storedNodes),i=[];return e.forEach((t,e)=>{let r=n.get(e)||[];new Set(r).difference(new Set(t)).size>0||r.forEach((e,n)=>{t.indexOf(e)!==n&&i.push(e)})}),i}_processNodes(){let t=this._collectNodes(),e=t.filter(t=>!this._storedNodes.includes(t)),n=this._storedNodes.filter(e=>!t.includes(e)),i=this._collectMovedNodes(t);(e.length||n.length||i.length||this.forceInitial)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:i,removedNodes:n}),this.forceInitial&&(this.forceInitial=!1),this._storedNodes=t}}let rB=0;class rH extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${rB++}`}constructor(t,e,n,i={}){super();const{initializer:r,multiple:a,observe:o,useUniqueId:s,uniqueIdPrefix:l}=i;this.host=t,this.slotName=e,this.tagName=n,this.observe="boolean"!=typeof o||o,this.multiple="boolean"==typeof a&&a,this.slotInitializer=r,a&&(this.nodes=[]),s&&(this.defaultId=this.constructor.generateId(t,l||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){let t=this.getSlotChildren();if(0===t.length){let t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=t,t.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){let{host:t,slotName:e,tagName:n}=this,i=this.defaultNode;return!i&&n&&(i=document.createElement(n))instanceof Element&&(""!==e&&i.setAttribute("slot",e),this.defaultNode=i),i&&(this.node=i,t.appendChild(i)),i}getSlotChildren(){let{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>!(e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-slot-ignore"))&&(e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t))}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){let{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){let{slotName:t}=this,e=""===t?"slot:not([name])":`slot[name=${t}]`;new rF(this.host.shadowRoot.querySelector(e),({addedNodes:t,removedNodes:e})=>{let n=this.multiple?this.nodes:[this.node],i=t.filter(t=>(t.nodeType!==Node.TEXT_NODE||""!==t.textContent.trim())&&!n.includes(t)&&!(t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute("data-slot-ignore")));e.length&&(this.multiple?this.nodes=n.filter(t=>!e.includes(t)):e.includes(this.node)&&(this.node=null),e.forEach(t=>{this.teardownNode(t)})),i?.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...i].filter(t=>t!==this.defaultNode),i.forEach(t=>{this.initAddedNode(t)})):(this.node&&this.node.remove(),this.node=i[0],this.initAddedNode(this.node)))})}}class rj extends rH{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,void 0!==this.ariaTarget&&(t.ariaTarget=this.ariaTarget),void 0!==this.context&&(t.context=this.context),void 0!==this.manual&&(t.manual=this.manual),void 0!==this.position&&(t._position=this.position),void 0!==this.shouldShow&&(t.shouldShow=this.shouldShow),this.manual||this.host.setAttribute("has-tooltip",""),this.#t(t),t.addEventListener("content-changed",this.#e)}teardownNode(t){this.manual||this.host.removeAttribute("has-tooltip"),t.removeEventListener("content-changed",this.#e),this.#t(null)}setAriaTarget(t){this.ariaTarget=t;let e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;let e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;let e=this.node;e&&(e.manual=t)}setPosition(t){this.position=t;let e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;let e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;let e=this.node;e&&(e.target=t)}open(t){let e=this.node;e?.isConnected&&e._stateController.open(t)}close(t){let e=this.node;e&&e._stateController.close(t)}#e=t=>{this.#t(t.target)};#t(t){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:t}}))}}function rU(t){try{CSS.registerProperty(t)}catch(e){if(e instanceof DOMException&&"InvalidModificationError"===e.name)console.warn(`The CSS property ${t.name} has already been registered.`);else throw e}}class rX extends EventTarget{#n;#i=new Set;#r;#a=!1;constructor(t){super(),this.#n=t,this.#r=new CSSStyleSheet}#o(t){let{propertyName:e}=t;this.#i.has(e)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:e}}))}observe(t){this.connect(),this.#i.has(t)||(this.#i.add(t),this.#r.replaceSync(`
|
|
656
656
|
:root::before, :host::before {
|
|
657
657
|
content: '' !important;
|
|
658
658
|
position: absolute !important;
|
|
@@ -2832,7 +2832,7 @@ ${e[0]?e[0]:""}</textarea>`:K` <input
|
|
|
2832
2832
|
:host([theme~='align-right']) ::slotted([slot='value']) {
|
|
2833
2833
|
justify-content: right;
|
|
2834
2834
|
}
|
|
2835
|
-
`;class dr extends rH{constructor(t){super(t,"value","vaadin-select-value-button",{initializer:(t,e)=>{e._setFocusElement(t),e.ariaTarget=t,e.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}let da=t=>class extends aZ(a2(aL(oi(t)))){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}-${rB++}`,this._srLabelController=new ot(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 dr(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new sn(this._phoneMediaQuery,t=>{this._phone=t})),this._tooltipController=new rj(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}updated(t){if(super.updated(t),t.has("_phone")&&this.toggleAttribute("phone",this._phone),(t.has("items")||t.has("renderer")||t.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(t.has("items")&&this._overlayElement.requestContentUpdate(),t.has("__slottedListBox")){let e=this.__slottedListBox;e?this._assignMenuElement(e):t.get("__slottedListBox")&&(this._menuElement=null,this._items=null,this.__lastMenuElement=null)}t.has("accessibleName")&&this._srLabelController.setLabel(this.accessibleName),t.has("required")&&!1===this.required&&this._requestValidation()}requestContentUpdate(){this._overlayElement&&this._overlayElement.requestContentUpdate()}__onOverlaySlotChange(t){this.__slottedListBox=t.target.assignedElements().find(t=>t._hasVaadinListMixin)}_assignMenuElement(t){t&&t!==this.__lastMenuElement&&(this._menuElement=t,this.__initMenuItems(t),t.addEventListener("items-changed",()=>{this.__initMenuItems(t)}),t.addEventListener("selected-changed",()=>this.__updateValueButton()),t.addEventListener("keydown",t=>this._onKeyDownInside(t),!0),t.addEventListener("click",t=>{let e=t.composedPath().find(t=>t._hasVaadinItemMixin);this.__dispatchChangePending=e?.value!==void 0&&e.value!==this.value,this.opened=!1},!0),this.__lastMenuElement=t),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items)}__initMenuItems(t){t.items&&(this._items=t.items)}_valueChanged(t,e){this.toggleAttribute("has-value",!!t),void 0===e||this.__dispatchChangePending||this._requestValidation()}_onClick(t){this.disabled||(t.preventDefault(),this.opened=!this.readonly)}_onEscape(t){this.opened&&(t.stopPropagation(),this.opened=!1)}_onToggleMouseDown(t){t.preventDefault(),this.opened||this.focusElement.focus()}_onKeyDown(t){if(super._onKeyDown(t),!t.altKey&&!t.shiftKey&&!t.ctrlKey&&!t.metaKey&&t.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(t.key))t.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(t.key)&&1===t.key.length){let e=this._menuElement.selected,n=this._menuElement._searchKey(e??-1,t.key);n>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=n)}}}_onKeyDownInside(t){"Tab"===t.key&&(this.focusElement.setAttribute("tabindex","-1"),this._overlayElement.restoreFocusOnClose=!1,this.opened=!1,setTimeout(()=>{this.focusElement.setAttribute("tabindex","0"),this._overlayElement.restoreFocusOnClose=!0}))}_openedChanged(t,e){if(t){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1);let t=this.hasAttribute("focus-ring");this._openedWithFocusRing=t,t&&this.removeAttribute("focus-ring")}else e&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),this.__dispatchChangePending||this._keyboardActive||this._requestValidation())}_updateAriaExpanded(t,e){e&&e.setAttribute("aria-expanded",t?"true":"false")}_updateAriaLive(t){this.focusElement&&rM(this.focusElement,"aria-live",t&&"polite")}__attachSelectedItem(t){let e,n=t.getAttribute("label");(e=n?this.__createItemElement({label:n}):t.cloneNode(!0))._sourceItem=t,this.__appendValueItemElement(e,this.focusElement)
|
|
2835
|
+
`;class dr extends rH{constructor(t){super(t,"value","vaadin-select-value-button",{initializer:(t,e)=>{e._setFocusElement(t),e.ariaTarget=t,e.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}let da=t=>class extends aZ(a2(aL(oi(t)))){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}-${rB++}`,this._srLabelController=new ot(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 dr(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new sn(this._phoneMediaQuery,t=>{this._phone=t})),this._tooltipController=new rj(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}updated(t){if(super.updated(t),t.has("_phone")&&this.toggleAttribute("phone",this._phone),(t.has("items")||t.has("renderer")||t.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(t.has("items")&&this._overlayElement.requestContentUpdate(),t.has("__slottedListBox")){let e=this.__slottedListBox;e?this._assignMenuElement(e):t.get("__slottedListBox")&&(this._menuElement=null,this._items=null,this.__lastMenuElement=null)}t.has("accessibleName")&&this._srLabelController.setLabel(this.accessibleName),t.has("required")&&!1===this.required&&this._requestValidation()}requestContentUpdate(){this._overlayElement&&this._overlayElement.requestContentUpdate()}__onOverlaySlotChange(t){this.__slottedListBox=t.target.assignedElements().find(t=>t._hasVaadinListMixin)}_assignMenuElement(t){t&&t!==this.__lastMenuElement&&(this._menuElement=t,this.__initMenuItems(t),t.addEventListener("items-changed",()=>{this.__initMenuItems(t)}),t.addEventListener("selected-changed",()=>this.__updateValueButton()),t.addEventListener("keydown",t=>this._onKeyDownInside(t),!0),t.addEventListener("click",t=>{let e=t.composedPath().find(t=>t._hasVaadinItemMixin);this.__dispatchChangePending=e?.value!==void 0&&e.value!==this.value,this.opened=!1},!0),this.__lastMenuElement=t),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items)}__initMenuItems(t){t.items&&(this._items=t.items)}_valueChanged(t,e){this.toggleAttribute("has-value",!!t),void 0===e||this.__dispatchChangePending||this._requestValidation()}_onClick(t){this.disabled||(t.preventDefault(),this.opened=!this.readonly)}_onEscape(t){this.opened&&(t.stopPropagation(),this.opened=!1)}_onToggleMouseDown(t){t.preventDefault(),this.opened||this.focusElement.focus()}_onKeyDown(t){if(super._onKeyDown(t),!t.altKey&&!t.shiftKey&&!t.ctrlKey&&!t.metaKey&&t.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(t.key))t.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(t.key)&&1===t.key.length){let e=this._menuElement.selected,n=this._menuElement._searchKey(e??-1,t.key);n>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=n)}}}_onKeyDownInside(t){"Tab"===t.key&&(this.focusElement.setAttribute("tabindex","-1"),this._overlayElement.restoreFocusOnClose=!1,this.opened=!1,setTimeout(()=>{this.focusElement.setAttribute("tabindex","0"),this._overlayElement.restoreFocusOnClose=!0}))}_openedChanged(t,e){if(t){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1);let t=this.hasAttribute("focus-ring");this._openedWithFocusRing=t,t&&this.removeAttribute("focus-ring")}else e&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),this.__dispatchChangePending||this._keyboardActive||this._requestValidation())}_updateAriaExpanded(t,e){e&&e.setAttribute("aria-expanded",t?"true":"false")}_updateAriaLive(t){this.focusElement&&rM(this.focusElement,"aria-live",t&&"polite")}__attachSelectedItem(t){let e,n=t.getAttribute("label");(e=n?this.__createItemElement({label:n}):t.cloneNode(!0))._sourceItem=t,this.__appendValueItemElement(e,this.focusElement)}__createItemElement(t){let e=document.createElement(t.component||"vaadin-select-item");return t.label&&(e.textContent=t.label),t.value&&(e.value=t.value),t.disabled&&(e.disabled=t.disabled),t.className&&(e.className=t.className),e}__appendValueItemElement(t,e){e.appendChild(t),t.removeAttribute("tabindex"),t.removeAttribute("selected"),t.removeAttribute("aria-selected"),t.removeAttribute("role"),t.removeAttribute("focused"),t.removeAttribute("focus-ring"),t.removeAttribute("active"),t.setAttribute("id",this._itemId)}__updateValueButton(){let t=this.focusElement;if(!t)return;t.innerHTML="";let e=this._items?this._items[this._menuElement.selected]:void 0;if(t.removeAttribute("placeholder"),this._hasContent(e))this.__attachSelectedItem(e);else if(this.placeholder){let e=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(e,t),t.setAttribute("placeholder","")}!this._valueChanging&&e&&(this._selectedChanging=!0,this.value=e.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging),this.__updateFieldAriaControllerLabelledBy()}_hasContent(t){if(!t)return!1;let e=!!(t.hasAttribute("label")?t.getAttribute("label"):t.textContent.trim()),n=t.childElementCount>0;return e||n}_updateSelectedItem(t,e,n){if(e){let n=null==t?t:t.toString();this._menuElement.selected=e.reduce((t,e,i)=>void 0===t&&e.value===n?i:t,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}else n&&this.__updateValueButton()}_shouldRemoveFocus(t){return!this.contains(t.relatedTarget)}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this._requestValidation()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(t,e){if(!this.items||0===this.items.length){t.textContent="";return}let n=t.firstElementChild;n||(n=document.createElement("vaadin-select-list-box"),t.appendChild(n)),n.textContent="",this.items.forEach(t=>{n.appendChild(this.__createItemElement(t))})}__dispatchChange(){this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1}__updateFieldAriaControllerLabel(){}__updateFieldAriaControllerLabelledBy(){let t;this.accessibleNameRef?t=this.accessibleNameRef:this.accessibleName?t=this._srLabelController.defaultId:this.hasAttribute("has-label")&&(t=this._labelNode?.id);let e=[t,this._items?.[this._menuElement.selected]||this.placeholder?this._itemId:null].filter(Boolean);e.length>0?this._fieldAriaController.setLabelledBy(e.join(" ")):this._fieldAriaController.setLabelledBy(null)}};class ds extends da(rE(ae(rR(r2(tm))))){static get is(){return"vaadin-select"}static get styles(){return[sl,dn,di]}render(){return K`
|
|
2836
2836
|
<div class="vaadin-select-container">
|
|
2837
2837
|
<div part="label" @click="${this._onClick}">
|
|
2838
2838
|
<slot name="label"></slot>
|
package/build/dist/umd/index.js
CHANGED
|
@@ -652,7 +652,7 @@ ${e[0]?e[0]:""}</textarea>`:K` <input
|
|
|
652
652
|
${t?K` <span class="mdc-notched-outline__notch"> ${t} </span> `:""}
|
|
653
653
|
<span class="mdc-notched-outline__trailing"></span>
|
|
654
654
|
</span>
|
|
655
|
-
`}setCustomValidity(t){this.errorMessage=t;let e=this.shadowRoot.getElementById("elem");e&&e.setCustomValidity&&e.setCustomValidity(null!=t?t:""),this.reportValidity()}checkValidity(){let t=this.shadowRoot.getElementById("elem"),e=!0;return t&&t.validity&&(e=t.validity.valid),e&&(this.type===dX.JSON||this.type===dX.JSON_OBJECT)&&void 0!==this.value&&null!==this.value&&""===this._mdcComponent.value&&(e=!1),e}reportValidity(){let t=this.checkValidity();return this.isUiValid=t,this._mdcComponent&&(this._mdcComponent.valid=t),t}onValueChange(t,e,n){var i,r;let a,o=this.value;if("undefined"===e&&(o=null,e=void 0),"null"===e&&(o=void 0,e=null),"string"==typeof e)switch(this.type){case dX.CHECKBOX:case dX.SWITCH:e="on"===e;break;case dX.JSON:case dX.JSON_OBJECT:case dX.NUMBER:case dX.RANGE:if(""===e)e=null;else try{e=JSON.parse(e),this.type===dX.JSON_OBJECT&&("object"!=typeof e||Array.isArray(e))&&(e=this.value,a=tB.i18next.t("validation.invalidJSON"))}catch(t){e=this.value,a=this.type===dX.JSON||this.type==dX.JSON_OBJECT?tB.i18next.t("validation.invalidJSON"):tB.i18next.t("validation.invalidNumber")}break;case dX.DATETIME:if(""===e)e=null;else try{e=Date.parse(e)}catch(t){e=this.value,a=tB.i18next.t("validation.invalidDate")}}if(this.value=e,this.setCustomValidity(a),this.reportValidity(),this.type!==dX.CHECKBOX_LIST&&e!==o&&(this.type===dX.RANGE&&(this._mdcComponent.setValue(e),this._mdcComponent2&&(this._mdcComponent2.value=e)),this.dispatchEvent(new i8(this.value,o,n))),void 0!=this.searchProvider&&this.type===dX.SELECT){let t=null==(r=null==(i=this.shadowRoot)?void 0:i.getElementById("select-searchable"))?void 0:r.children[1];t&&(this.searchableValue=void 0,t.value="")}this.type!==dX.CHECKBOX_LIST||tj.Util.objectsEqual(e,o,!0)||this.dispatchEvent(new i8(e,o,n))}get valid(){let t=this.shadowRoot.getElementById("elem");return!t||!t.checkValidity||t.checkValidity()}get currentValue(){let t=this.shadowRoot.getElementById("elem");if(t&&t.value)return t.value}resolveOptions(t){let e;return t&&t.length>0&&(e=t.map(t=>{if(Array.isArray(t))return t;{let e=""+t;return[t,tB.i18next.t(e,{defaultValue:tj.Util.camelCaseToSentenceCase(e)})]}})),e}getSelectedTextValue(t){let e=this.value,n=Array.isArray(e)?e:null!=e?[e]:void 0;if(!n)return"";let i=t||this.resolveOptions(this.options);return i&&n?n.map(t=>i.find(([e,n],i)=>t===e)).map(t=>t?t[1]:"").join(", "):""}};ij([tv({type:Boolean})],i9.prototype,"focused",void 0),ij([tv()],i9.prototype,"value",void 0),ij([tv({type:String})],i9.prototype,"type",void 0),ij([tv({type:String})],i9.prototype,"name",void 0),ij([tv({type:Boolean})],i9.prototype,"readonly",void 0),ij([tv({type:Boolean})],i9.prototype,"required",void 0),ij([tv()],i9.prototype,"max",void 0),ij([tv()],i9.prototype,"min",void 0),ij([tv({type:Number})],i9.prototype,"step",void 0),ij([tv({type:Boolean})],i9.prototype,"checked",void 0),ij([tv({type:Boolean})],i9.prototype,"indeterminate",void 0),ij([tv({type:Number})],i9.prototype,"maxLength",void 0),ij([tv({type:Number})],i9.prototype,"minLength",void 0),ij([tv({type:Number})],i9.prototype,"rows",void 0),ij([tv({type:Number})],i9.prototype,"cols",void 0),ij([tv({type:Boolean})],i9.prototype,"multiple",void 0),ij([tv({type:String,attribute:!0,reflect:!1})],i9.prototype,"pattern",void 0),ij([tv({type:String})],i9.prototype,"placeHolder",void 0),ij([tv({type:Array})],i9.prototype,"options",void 0),ij([tv({type:Boolean})],i9.prototype,"autoSelect",void 0),ij([tv({type:Object})],i9.prototype,"searchProvider",void 0),ij([tv({type:String})],i9.prototype,"searchLabel",void 0),ij([tv({type:String})],i9.prototype,"icon",void 0),ij([tv({type:String})],i9.prototype,"iconColor",void 0),ij([tv({type:String})],i9.prototype,"iconOn",void 0),ij([tv({type:String})],i9.prototype,"iconTrailing",void 0),ij([tv({type:Boolean})],i9.prototype,"compact",void 0),ij([tv({type:Boolean})],i9.prototype,"comfortable",void 0),ij([tv({type:Boolean})],i9.prototype,"raised",void 0),ij([tv({type:Boolean})],i9.prototype,"action",void 0),ij([tv({type:Boolean})],i9.prototype,"unElevated",void 0),ij([tv({type:Boolean})],i9.prototype,"outlined",void 0),ij([tv({type:Boolean})],i9.prototype,"rounded",void 0),ij([tv({type:Object})],i9.prototype,"format",void 0),ij([tv({type:Boolean})],i9.prototype,"disableSliderNumberInput",void 0),ij([tv({type:Boolean})],i9.prototype,"fullWidth",void 0),ij([tv({type:String})],i9.prototype,"helperText",void 0),ij([tv({type:Boolean})],i9.prototype,"helperPersistent",void 0),ij([tv({type:String,attribute:!0})],i9.prototype,"validationMessage",void 0),ij([tv({type:Boolean})],i9.prototype,"autoValidate",void 0),ij([tv({type:Boolean})],i9.prototype,"charCounter",void 0),ij([tv({type:String})],i9.prototype,"label",void 0),ij([tv({type:Boolean})],i9.prototype,"disabled",void 0),ij([tv({type:Boolean})],i9.prototype,"continuous",void 0),ij([tv({type:Boolean})],i9.prototype,"resizeVertical",void 0),ij([tv({type:Boolean})],i9.prototype,"censored",void 0),ij([tv({type:Boolean,reflect:!0})],i9.prototype,"advertised",void 0),ij([ty()],i9.prototype,"isUiValid",void 0),ij([ty()],i9.prototype,"searchableValue",void 0),ij([ty()],i9.prototype,"errorMessage",void 0),i9=ij([tb("or-mwc-input")],i9),window.Vaadin||={},window.Vaadin.featureFlags||={};let rt={};function re(t,e="25.3.4"){if(Object.defineProperty(t,"version",{get:()=>e}),t.experimental){let e="string"==typeof t.experimental?t.experimental:`${t.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,t=>t[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[e]||rt[e]){if(rt[e])return void rt[e].add(t)}else{rt[e]=new Set,rt[e].add(t),Object.defineProperty(window.Vaadin.featureFlags,e,{get:()=>0===rt[e].size,set(t){t&&rt[e].size>0&&(rt[e].forEach(t=>{customElements.define(t.is,t)}),rt[e].clear())}});return}}let n=customElements.get(t.is);if(n){let e=n.version;e&&t.version&&e===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${n.version} is already in use. Something will probably break.`)}else customElements.define(t.is,t)}let rn=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,ri=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function rr(t,e){if("function"!=typeof t)return;let n=rn.exec(t.toString());if(n)try{t=Function(n[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}return t(e)}window.Vaadin=window.Vaadin||{};let ra=function(t,e){if(window.Vaadin.developmentMode)return rr(t,e)};function ro(){}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(ri)return!(ri&&Object.keys(ri).map(t=>ri[t]).filter(t=>t.productionMode).length>0);return!rr(function(){return!0})}catch(t){return!1}}());let rs=function(){if("function"==typeof ra)return ra(ro)},rl=0,rd=0,rc=[],rp=!1,ru={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},rh={run:t=>window.requestAnimationFrame(t),cancel(t){window.cancelAnimationFrame(t)}},rm={run:t=>window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16),cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},rf={run(t){rp||(rp=!0,queueMicrotask(()=>(function(){rp=!1;let t=rc.length;for(let e=0;e<t;e++){let t=rc[e];if(t)try{t()}catch(t){setTimeout(()=>{throw t})}}rc.splice(0,t),rd+=t})())),rc.push(t);let e=rl;return rl+=1,e},cancel(t){let e=t-rd;if(e>=0){if(!rc[e])throw Error(`invalid async handle: ${t}`);rc[e]=null}}},rg=new Set;class rb{static debounce(t,e,n){return t instanceof rb?t._cancelAsync():t=new rb,t.setConfig(e,n),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,rg.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),rg.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 r_=()=>{let t;do t=function(){let t=!!rg.size;return rg.forEach(t=>{try{t.flush()}catch(t){setTimeout(()=>{throw t})}}),t}();while(t)},rv=[];function ry(t,e,n=t.getAttribute("dir")){e?t.setAttribute("dir",e):null!=n&&t.removeAttribute("dir")}function rx(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let t=rx();rv.forEach(e=>{ry(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let rw=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>""===t?null:t}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),ry(this,rx(),null))}attributeChangedCallback(t,e,n){if(super.attributeChangedCallback(t,e,n),"dir"!==t)return;let i=rx(),r=n===i&&-1===rv.indexOf(this),a=!n&&e&&-1===rv.indexOf(this),o=n!==i&&e===i;r||a?(this.__subscribe(),ry(this,i,n)):o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=rv.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,n){("dir"!==n||""!==e||t.hasAttribute("dir"))&&super._valueToNodeAttribute(t,e,n)}_attributeToProperty(t,e,n){"dir"!==t||e?super._attributeToProperty(t,e,n):this.dir=""}__subscribe(){rv.includes(this)||rv.push(this)}__unsubscribe(){rv.includes(this)&&rv.splice(rv.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(){rs()};let rk=new Set,rE=e=>class extends rw(e){static _ensureRegistrations(){let{is:e}=this;if(e&&!rk.has(e)){window.Vaadin.registrations.push(this),rk.add(e);let i=window.Vaadin.developmentModeCallback;if(i){var n;n=t=rb.debounce(t,rm,()=>{i["vaadin-usage-statistics"]()}),rg.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()}},rC=new WeakMap;function rT(t){return e=>{if(function(t,e){let n=e;for(;n;){if(rC.get(n)===t)return!0;n=Object.getPrototypeOf(n)}return!1}(t,e))return e;let n=t(e);return rC.set(n,t),n}}let rI={},rA=/([A-Z])/gu;function rS(t){return rI[t]||(rI[t]=t.replace(rA,"-$1").toLowerCase()),rI[t]}function rO(t){return t[0].toUpperCase()+t.substring(1)}function rD(t){let[e,n]=t.split("(");return{method:e,observerProps:n.replace(")","").split(",").map(t=>t.trim())}}function rL(t,e){return Object.prototype.hasOwnProperty.call(t,e)||(t[e]=new Map(t[e])),t[e]}let rR=rT(t=>class extends t{static enabledWarnings=[];static createProperty(t,e){[String,Boolean,Number,Array].includes(e)&&(e={type:e}),e?.reflectToAttribute&&(e.reflect=!0),super.createProperty(t,e)}static getOrCreateMap(t){return rL(this,t)}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 t=this.getOrCreateMap("__complexObservers");this.observers.forEach(e=>{let{method:n,observerProps:i}=rD(e);t.set(n,i)})}}static addCheckedInitializer(t){super.addInitializer(e=>{e instanceof this&&t(e)})}static getPropertyDescriptor(t,e,n){let i=super.getPropertyDescriptor(t,e,n),r=i;if(this.getOrCreateMap("__propKeys").set(t,e),n.sync&&(r={get:i.get,set(i){let r=this[t];T(i,r)&&(this[e]=i,this.requestUpdate(t,r,n),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),n.readOnly){let e=r.set;this.addCheckedInitializer(n=>{n[`_set${rO(t)}`]=function(t){e.call(n,t)}}),r={get:r.get,set(){},configurable:!0,enumerable:!0}}if("value"in n&&this.addCheckedInitializer(e=>{let i="function"==typeof n.value?n.value.call(e):n.value;n.readOnly?e[`_set${rO(t)}`](i):e[t]=i}),n.observer){let e=n.observer;this.getOrCreateMap("__observers").set(t,e),this.addCheckedInitializer(t=>{t[e]||console.warn(`observer method ${e} not defined`)})}if(n.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let t=this.__notifyProps;this.__notifyProps=new Set(t)}}else this.__notifyProps=new Set;this.__notifyProps.add(t)}if(n.computed){let e=`__assignComputed${t}`,i=rD(n.computed);this.prototype[e]=function(...e){this[t]=this[i.method](...e)},this.getOrCreateMap("__computedObservers").set(e,i.observerProps)}return n.attribute||(n.attribute=rS(t)),r}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:t}=this.constructor;this.hasUpdated||t.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t})}ready(){}willUpdate(t){this.constructor.__computedObservers&&this.__runComplexObservers(t,this.constructor.__computedObservers)}updated(t){let e=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(t,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(t,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(t,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(t,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(t,this.constructor.__notifyProps),e||this.ready()}setProperties(t){Object.entries(t).forEach(([t,e])=>{let n=this.constructor.__propKeys.get(t),i=this[n];this[n]=e,this.requestUpdate(t,i)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(t){let e=rL(this,"__dynamicMethodObservers"),{method:n,observerProps:i}=rD(t);e.set(n,i)}_createPropertyObserver(t,e){rL(this,"__dynamicPropertyObservers").set(e,t)}__runComplexObservers(t,e){e.forEach((e,n)=>{e.some(e=>t.has(e))&&(this[n]?this[n](...e.map(t=>this[t])):console.warn(`observer method ${n} not defined`))})}__runDynamicObservers(t,e){e.forEach((e,n)=>{t.has(e)&&this[n]&&this[n](this[e],t.get(e))})}__runObservers(t,e){t.forEach((t,n)=>{let i=e.get(n);void 0!==i&&this[i]&&this[i](this[n],t)})}__runNotifyProps(t,e){t.forEach((t,n)=>{e.has(n)&&this.dispatchEvent(new CustomEvent(`${rS(n)}-changed`,{detail:{value:this[n]}}))})}_get(t,e){return t.split(".").reduce((t,e)=>t?t[e]:void 0,e)}_set(t,e,n){let i,r;r=(i=t.split(".")).pop(),i.reduce((t,e)=>t[e],n)[r]=e}});function rP(t){return new Set(t?t.split(" ").filter(Boolean):[])}function rN(t){return t?[...t].join(" "):""}function rM(t,e,n){n?t.setAttribute(e,n):t.removeAttribute(e)}function rz(t){return rP(Array.isArray(t)?t.join(" "):t)}function r$(t,e,n){n=rz(n);let i=rP(t.getAttribute(e));n.forEach(t=>i.add(t)),rM(t,e,rN(i))}function rV(t,e,n){n=rz(n);let i=rP(t.getAttribute(e));n.forEach(t=>i.delete(t)),rM(t,e,rN(i))}class rF{constructor(t,e,n={}){this.target=t,this.callback=e,this.forceInitial=n.forceInitial,this._storedNodes=[],this._isSlot=t 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(t=>t.assignedNodes({flatten:!0})))]}_groupNodesBySlot(t){let e=new Map;return t.forEach(t=>{let n=t.assignedSlot;e.set(n,e.get(n)??[]),e.get(n).push(t)}),e}_collectMovedNodes(t){let e=this._groupNodesBySlot(t),n=this._groupNodesBySlot(this._storedNodes),i=[];return e.forEach((t,e)=>{let r=n.get(e)||[];new Set(r).difference(new Set(t)).size>0||r.forEach((e,n)=>{t.indexOf(e)!==n&&i.push(e)})}),i}_processNodes(){let t=this._collectNodes(),e=t.filter(t=>!this._storedNodes.includes(t)),n=this._storedNodes.filter(e=>!t.includes(e)),i=this._collectMovedNodes(t);(e.length||n.length||i.length||this.forceInitial)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:i,removedNodes:n}),this.forceInitial&&(this.forceInitial=!1),this._storedNodes=t}}let rB=0;class rH extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${rB++}`}constructor(t,e,n,i={}){super();const{initializer:r,multiple:a,observe:o,useUniqueId:s,uniqueIdPrefix:l}=i;this.host=t,this.slotName=e,this.tagName=n,this.observe="boolean"!=typeof o||o,this.multiple="boolean"==typeof a&&a,this.slotInitializer=r,a&&(this.nodes=[]),s&&(this.defaultId=this.constructor.generateId(t,l||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){let t=this.getSlotChildren();if(0===t.length){let t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=t,t.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){let{host:t,slotName:e,tagName:n}=this,i=this.defaultNode;return!i&&n&&(i=document.createElement(n))instanceof Element&&(""!==e&&i.setAttribute("slot",e),this.defaultNode=i),i&&(this.node=i,t.appendChild(i)),i}getSlotChildren(){let{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>!(e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-slot-ignore"))&&(e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t))}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){let{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){let{slotName:t}=this,e=""===t?"slot:not([name])":`slot[name=${t}]`;new rF(this.host.shadowRoot.querySelector(e),({addedNodes:t,removedNodes:e})=>{let n=this.multiple?this.nodes:[this.node],i=t.filter(t=>(t.nodeType!==Node.TEXT_NODE||""!==t.textContent.trim())&&!n.includes(t)&&!(t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute("data-slot-ignore")));e.length&&(this.multiple?this.nodes=n.filter(t=>!e.includes(t)):e.includes(this.node)&&(this.node=null),e.forEach(t=>{this.teardownNode(t)})),i?.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...i].filter(t=>t!==this.defaultNode),i.forEach(t=>{this.initAddedNode(t)})):(this.node&&this.node.remove(),this.node=i[0],this.initAddedNode(this.node)))})}}class rj extends rH{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,void 0!==this.ariaTarget&&(t.ariaTarget=this.ariaTarget),void 0!==this.context&&(t.context=this.context),void 0!==this.manual&&(t.manual=this.manual),void 0!==this.position&&(t._position=this.position),void 0!==this.shouldShow&&(t.shouldShow=this.shouldShow),this.manual||this.host.setAttribute("has-tooltip",""),this.#t(t),t.addEventListener("content-changed",this.#e)}teardownNode(t){this.manual||this.host.removeAttribute("has-tooltip"),t.removeEventListener("content-changed",this.#e),this.#t(null)}setAriaTarget(t){this.ariaTarget=t;let e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;let e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;let e=this.node;e&&(e.manual=t)}setPosition(t){this.position=t;let e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;let e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;let e=this.node;e&&(e.target=t)}open(t){let e=this.node;e?.isConnected&&e._stateController.open(t)}close(t){let e=this.node;e&&e._stateController.close(t)}#e=t=>{this.#t(t.target)};#t(t){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:t}}))}}function rU(t){try{CSS.registerProperty(t)}catch(e){if(e instanceof DOMException&&"InvalidModificationError"===e.name)console.warn(`The CSS property ${t.name} has already been registered.`);else throw e}}class rX extends EventTarget{#n;#i=new Set;#r;#a=!1;constructor(t){super(),this.#n=t,this.#r=new CSSStyleSheet}#o(t){let{propertyName:e}=t;this.#i.has(e)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:e}}))}observe(t){this.connect(),this.#i.has(t)||(this.#i.add(t),this.#r.replaceSync(`
|
|
655
|
+
`}setCustomValidity(t){this.errorMessage=t;let e=this.shadowRoot.getElementById("elem");e&&e.setCustomValidity&&e.setCustomValidity(null!=t?t:""),this.reportValidity()}checkValidity(){let t=this.shadowRoot.getElementById("elem"),e=!0;return t&&t.validity&&(e=t.validity.valid),e&&(this.type===dX.JSON||this.type===dX.JSON_OBJECT)&&void 0!==this.value&&null!==this.value&&""===this._mdcComponent.value&&(e=!1),e}reportValidity(){let t=this.checkValidity();return this.isUiValid=t,this._mdcComponent&&(this._mdcComponent.valid=t),t}onValueChange(t,e,n){var i,r;let a,o=this.value;if("undefined"===e&&(o=null,e=void 0),"null"===e&&(o=void 0,e=null),"string"==typeof e)switch(this.type){case dX.CHECKBOX:case dX.SWITCH:e="on"===e;break;case dX.JSON:case dX.JSON_OBJECT:case dX.NUMBER:case dX.RANGE:if(""===e)e=null;else try{e=JSON.parse(e),this.type===dX.JSON_OBJECT&&("object"!=typeof e||Array.isArray(e))&&(e=this.value,a=tB.i18next.t("validation.invalidJSON"))}catch(t){e=this.value,a=this.type===dX.JSON||this.type==dX.JSON_OBJECT?tB.i18next.t("validation.invalidJSON"):tB.i18next.t("validation.invalidNumber")}break;case dX.DATETIME:if(""===e)e=null;else try{e=Date.parse(e)}catch(t){e=this.value,a=tB.i18next.t("validation.invalidDate")}}if(this.value=e,this.setCustomValidity(a),this.reportValidity(),this.type!==dX.CHECKBOX_LIST&&e!==o&&(this.type===dX.RANGE&&(this._mdcComponent.setValue(e),this._mdcComponent2&&(this._mdcComponent2.value=e)),this.dispatchEvent(new i8(this.value,o,n))),void 0!=this.searchProvider&&this.type===dX.SELECT){let t=null==(r=null==(i=this.shadowRoot)?void 0:i.getElementById("select-searchable"))?void 0:r.children[1];t&&(this.searchableValue=void 0,t.value="")}this.type!==dX.CHECKBOX_LIST||tj.Util.objectsEqual(e,o,!0)||this.dispatchEvent(new i8(e,o,n))}get valid(){let t=this.shadowRoot.getElementById("elem");return!t||!t.checkValidity||t.checkValidity()}get currentValue(){let t=this.shadowRoot.getElementById("elem");if(t&&t.value)return t.value}resolveOptions(t){let e;return t&&t.length>0&&(e=t.map(t=>{if(Array.isArray(t))return t;{let e=""+t;return[t,tB.i18next.t(e,{defaultValue:tj.Util.camelCaseToSentenceCase(e)})]}})),e}getSelectedTextValue(t){let e=this.value,n=Array.isArray(e)?e:null!=e?[e]:void 0;if(!n)return"";let i=t||this.resolveOptions(this.options);return i&&n?n.map(t=>i.find(([e,n],i)=>t===e)).map(t=>t?t[1]:"").join(", "):""}};ij([tv({type:Boolean})],i9.prototype,"focused",void 0),ij([tv()],i9.prototype,"value",void 0),ij([tv({type:String})],i9.prototype,"type",void 0),ij([tv({type:String})],i9.prototype,"name",void 0),ij([tv({type:Boolean})],i9.prototype,"readonly",void 0),ij([tv({type:Boolean})],i9.prototype,"required",void 0),ij([tv()],i9.prototype,"max",void 0),ij([tv()],i9.prototype,"min",void 0),ij([tv({type:Number})],i9.prototype,"step",void 0),ij([tv({type:Boolean})],i9.prototype,"checked",void 0),ij([tv({type:Boolean})],i9.prototype,"indeterminate",void 0),ij([tv({type:Number})],i9.prototype,"maxLength",void 0),ij([tv({type:Number})],i9.prototype,"minLength",void 0),ij([tv({type:Number})],i9.prototype,"rows",void 0),ij([tv({type:Number})],i9.prototype,"cols",void 0),ij([tv({type:Boolean})],i9.prototype,"multiple",void 0),ij([tv({type:String,attribute:!0,reflect:!1})],i9.prototype,"pattern",void 0),ij([tv({type:String})],i9.prototype,"placeHolder",void 0),ij([tv({type:Array})],i9.prototype,"options",void 0),ij([tv({type:Boolean})],i9.prototype,"autoSelect",void 0),ij([tv({type:Object})],i9.prototype,"searchProvider",void 0),ij([tv({type:String})],i9.prototype,"searchLabel",void 0),ij([tv({type:String})],i9.prototype,"icon",void 0),ij([tv({type:String})],i9.prototype,"iconColor",void 0),ij([tv({type:String})],i9.prototype,"iconOn",void 0),ij([tv({type:String})],i9.prototype,"iconTrailing",void 0),ij([tv({type:Boolean})],i9.prototype,"compact",void 0),ij([tv({type:Boolean})],i9.prototype,"comfortable",void 0),ij([tv({type:Boolean})],i9.prototype,"raised",void 0),ij([tv({type:Boolean})],i9.prototype,"action",void 0),ij([tv({type:Boolean})],i9.prototype,"unElevated",void 0),ij([tv({type:Boolean})],i9.prototype,"outlined",void 0),ij([tv({type:Boolean})],i9.prototype,"rounded",void 0),ij([tv({type:Object})],i9.prototype,"format",void 0),ij([tv({type:Boolean})],i9.prototype,"disableSliderNumberInput",void 0),ij([tv({type:Boolean})],i9.prototype,"fullWidth",void 0),ij([tv({type:String})],i9.prototype,"helperText",void 0),ij([tv({type:Boolean})],i9.prototype,"helperPersistent",void 0),ij([tv({type:String,attribute:!0})],i9.prototype,"validationMessage",void 0),ij([tv({type:Boolean})],i9.prototype,"autoValidate",void 0),ij([tv({type:Boolean})],i9.prototype,"charCounter",void 0),ij([tv({type:String})],i9.prototype,"label",void 0),ij([tv({type:Boolean})],i9.prototype,"disabled",void 0),ij([tv({type:Boolean})],i9.prototype,"continuous",void 0),ij([tv({type:Boolean})],i9.prototype,"resizeVertical",void 0),ij([tv({type:Boolean})],i9.prototype,"censored",void 0),ij([tv({type:Boolean,reflect:!0})],i9.prototype,"advertised",void 0),ij([ty()],i9.prototype,"isUiValid",void 0),ij([ty()],i9.prototype,"searchableValue",void 0),ij([ty()],i9.prototype,"errorMessage",void 0),i9=ij([tb("or-mwc-input")],i9),window.Vaadin||={},window.Vaadin.featureFlags||={};let rt={};function re(t,e="25.3.5"){if(Object.defineProperty(t,"version",{get:()=>e}),t.experimental){let e="string"==typeof t.experimental?t.experimental:`${t.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,t=>t[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[e]||rt[e]){if(rt[e])return void rt[e].add(t)}else{rt[e]=new Set,rt[e].add(t),Object.defineProperty(window.Vaadin.featureFlags,e,{get:()=>0===rt[e].size,set(t){t&&rt[e].size>0&&(rt[e].forEach(t=>{customElements.define(t.is,t)}),rt[e].clear())}});return}}let n=customElements.get(t.is);if(n){let e=n.version;e&&t.version&&e===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${n.version} is already in use. Something will probably break.`)}else customElements.define(t.is,t)}let rn=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,ri=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function rr(t,e){if("function"!=typeof t)return;let n=rn.exec(t.toString());if(n)try{t=Function(n[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}return t(e)}window.Vaadin=window.Vaadin||{};let ra=function(t,e){if(window.Vaadin.developmentMode)return rr(t,e)};function ro(){}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(ri)return!(ri&&Object.keys(ri).map(t=>ri[t]).filter(t=>t.productionMode).length>0);return!rr(function(){return!0})}catch(t){return!1}}());let rs=function(){if("function"==typeof ra)return ra(ro)},rl=0,rd=0,rc=[],rp=!1,ru={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},rh={run:t=>window.requestAnimationFrame(t),cancel(t){window.cancelAnimationFrame(t)}},rm={run:t=>window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16),cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},rf={run(t){rp||(rp=!0,queueMicrotask(()=>(function(){rp=!1;let t=rc.length;for(let e=0;e<t;e++){let t=rc[e];if(t)try{t()}catch(t){setTimeout(()=>{throw t})}}rc.splice(0,t),rd+=t})())),rc.push(t);let e=rl;return rl+=1,e},cancel(t){let e=t-rd;if(e>=0){if(!rc[e])throw Error(`invalid async handle: ${t}`);rc[e]=null}}},rg=new Set;class rb{static debounce(t,e,n){return t instanceof rb?t._cancelAsync():t=new rb,t.setConfig(e,n),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,rg.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),rg.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 r_=()=>{let t;do t=function(){let t=!!rg.size;return rg.forEach(t=>{try{t.flush()}catch(t){setTimeout(()=>{throw t})}}),t}();while(t)},rv=[];function ry(t,e,n=t.getAttribute("dir")){e?t.setAttribute("dir",e):null!=n&&t.removeAttribute("dir")}function rx(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let t=rx();rv.forEach(e=>{ry(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let rw=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>""===t?null:t}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),ry(this,rx(),null))}attributeChangedCallback(t,e,n){if(super.attributeChangedCallback(t,e,n),"dir"!==t)return;let i=rx(),r=n===i&&-1===rv.indexOf(this),a=!n&&e&&-1===rv.indexOf(this),o=n!==i&&e===i;r||a?(this.__subscribe(),ry(this,i,n)):o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=rv.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,n){("dir"!==n||""!==e||t.hasAttribute("dir"))&&super._valueToNodeAttribute(t,e,n)}_attributeToProperty(t,e,n){"dir"!==t||e?super._attributeToProperty(t,e,n):this.dir=""}__subscribe(){rv.includes(this)||rv.push(this)}__unsubscribe(){rv.includes(this)&&rv.splice(rv.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(){rs()};let rk=new Set,rE=e=>class extends rw(e){static _ensureRegistrations(){let{is:e}=this;if(e&&!rk.has(e)){window.Vaadin.registrations.push(this),rk.add(e);let i=window.Vaadin.developmentModeCallback;if(i){var n;n=t=rb.debounce(t,rm,()=>{i["vaadin-usage-statistics"]()}),rg.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()}},rC=new WeakMap;function rT(t){return e=>{if(function(t,e){let n=e;for(;n;){if(rC.get(n)===t)return!0;n=Object.getPrototypeOf(n)}return!1}(t,e))return e;let n=t(e);return rC.set(n,t),n}}let rI={},rA=/([A-Z])/gu;function rS(t){return rI[t]||(rI[t]=t.replace(rA,"-$1").toLowerCase()),rI[t]}function rO(t){return t[0].toUpperCase()+t.substring(1)}function rD(t){let[e,n]=t.split("(");return{method:e,observerProps:n.replace(")","").split(",").map(t=>t.trim())}}function rL(t,e){return Object.prototype.hasOwnProperty.call(t,e)||(t[e]=new Map(t[e])),t[e]}let rR=rT(t=>class extends t{static enabledWarnings=[];static createProperty(t,e){[String,Boolean,Number,Array].includes(e)&&(e={type:e}),e?.reflectToAttribute&&(e.reflect=!0),super.createProperty(t,e)}static getOrCreateMap(t){return rL(this,t)}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 t=this.getOrCreateMap("__complexObservers");this.observers.forEach(e=>{let{method:n,observerProps:i}=rD(e);t.set(n,i)})}}static addCheckedInitializer(t){super.addInitializer(e=>{e instanceof this&&t(e)})}static getPropertyDescriptor(t,e,n){let i=super.getPropertyDescriptor(t,e,n),r=i;if(this.getOrCreateMap("__propKeys").set(t,e),n.sync&&(r={get:i.get,set(i){let r=this[t];T(i,r)&&(this[e]=i,this.requestUpdate(t,r,n),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),n.readOnly){let e=r.set;this.addCheckedInitializer(n=>{n[`_set${rO(t)}`]=function(t){e.call(n,t)}}),r={get:r.get,set(){},configurable:!0,enumerable:!0}}if("value"in n&&this.addCheckedInitializer(e=>{let i="function"==typeof n.value?n.value.call(e):n.value;n.readOnly?e[`_set${rO(t)}`](i):e[t]=i}),n.observer){let e=n.observer;this.getOrCreateMap("__observers").set(t,e),this.addCheckedInitializer(t=>{t[e]||console.warn(`observer method ${e} not defined`)})}if(n.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let t=this.__notifyProps;this.__notifyProps=new Set(t)}}else this.__notifyProps=new Set;this.__notifyProps.add(t)}if(n.computed){let e=`__assignComputed${t}`,i=rD(n.computed);this.prototype[e]=function(...e){this[t]=this[i.method](...e)},this.getOrCreateMap("__computedObservers").set(e,i.observerProps)}return n.attribute||(n.attribute=rS(t)),r}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:t}=this.constructor;this.hasUpdated||t.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t})}ready(){}willUpdate(t){this.constructor.__computedObservers&&this.__runComplexObservers(t,this.constructor.__computedObservers)}updated(t){let e=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(t,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(t,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(t,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(t,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(t,this.constructor.__notifyProps),e||this.ready()}setProperties(t){Object.entries(t).forEach(([t,e])=>{let n=this.constructor.__propKeys.get(t),i=this[n];this[n]=e,this.requestUpdate(t,i)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(t){let e=rL(this,"__dynamicMethodObservers"),{method:n,observerProps:i}=rD(t);e.set(n,i)}_createPropertyObserver(t,e){rL(this,"__dynamicPropertyObservers").set(e,t)}__runComplexObservers(t,e){e.forEach((e,n)=>{e.some(e=>t.has(e))&&(this[n]?this[n](...e.map(t=>this[t])):console.warn(`observer method ${n} not defined`))})}__runDynamicObservers(t,e){e.forEach((e,n)=>{t.has(e)&&this[n]&&this[n](this[e],t.get(e))})}__runObservers(t,e){t.forEach((t,n)=>{let i=e.get(n);void 0!==i&&this[i]&&this[i](this[n],t)})}__runNotifyProps(t,e){t.forEach((t,n)=>{e.has(n)&&this.dispatchEvent(new CustomEvent(`${rS(n)}-changed`,{detail:{value:this[n]}}))})}_get(t,e){return t.split(".").reduce((t,e)=>t?t[e]:void 0,e)}_set(t,e,n){let i,r;r=(i=t.split(".")).pop(),i.reduce((t,e)=>t[e],n)[r]=e}});function rP(t){return new Set(t?t.split(" ").filter(Boolean):[])}function rN(t){return t?[...t].join(" "):""}function rM(t,e,n){n?t.setAttribute(e,n):t.removeAttribute(e)}function rz(t){return rP(Array.isArray(t)?t.join(" "):t)}function r$(t,e,n){n=rz(n);let i=rP(t.getAttribute(e));n.forEach(t=>i.add(t)),rM(t,e,rN(i))}function rV(t,e,n){n=rz(n);let i=rP(t.getAttribute(e));n.forEach(t=>i.delete(t)),rM(t,e,rN(i))}class rF{constructor(t,e,n={}){this.target=t,this.callback=e,this.forceInitial=n.forceInitial,this._storedNodes=[],this._isSlot=t 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(t=>t.assignedNodes({flatten:!0})))]}_groupNodesBySlot(t){let e=new Map;return t.forEach(t=>{let n=t.assignedSlot;e.set(n,e.get(n)??[]),e.get(n).push(t)}),e}_collectMovedNodes(t){let e=this._groupNodesBySlot(t),n=this._groupNodesBySlot(this._storedNodes),i=[];return e.forEach((t,e)=>{let r=n.get(e)||[];new Set(r).difference(new Set(t)).size>0||r.forEach((e,n)=>{t.indexOf(e)!==n&&i.push(e)})}),i}_processNodes(){let t=this._collectNodes(),e=t.filter(t=>!this._storedNodes.includes(t)),n=this._storedNodes.filter(e=>!t.includes(e)),i=this._collectMovedNodes(t);(e.length||n.length||i.length||this.forceInitial)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:i,removedNodes:n}),this.forceInitial&&(this.forceInitial=!1),this._storedNodes=t}}let rB=0;class rH extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${rB++}`}constructor(t,e,n,i={}){super();const{initializer:r,multiple:a,observe:o,useUniqueId:s,uniqueIdPrefix:l}=i;this.host=t,this.slotName=e,this.tagName=n,this.observe="boolean"!=typeof o||o,this.multiple="boolean"==typeof a&&a,this.slotInitializer=r,a&&(this.nodes=[]),s&&(this.defaultId=this.constructor.generateId(t,l||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){let t=this.getSlotChildren();if(0===t.length){let t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=t,t.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){let{host:t,slotName:e,tagName:n}=this,i=this.defaultNode;return!i&&n&&(i=document.createElement(n))instanceof Element&&(""!==e&&i.setAttribute("slot",e),this.defaultNode=i),i&&(this.node=i,t.appendChild(i)),i}getSlotChildren(){let{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>!(e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-slot-ignore"))&&(e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t))}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){let{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){let{slotName:t}=this,e=""===t?"slot:not([name])":`slot[name=${t}]`;new rF(this.host.shadowRoot.querySelector(e),({addedNodes:t,removedNodes:e})=>{let n=this.multiple?this.nodes:[this.node],i=t.filter(t=>(t.nodeType!==Node.TEXT_NODE||""!==t.textContent.trim())&&!n.includes(t)&&!(t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute("data-slot-ignore")));e.length&&(this.multiple?this.nodes=n.filter(t=>!e.includes(t)):e.includes(this.node)&&(this.node=null),e.forEach(t=>{this.teardownNode(t)})),i?.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...i].filter(t=>t!==this.defaultNode),i.forEach(t=>{this.initAddedNode(t)})):(this.node&&this.node.remove(),this.node=i[0],this.initAddedNode(this.node)))})}}class rj extends rH{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,void 0!==this.ariaTarget&&(t.ariaTarget=this.ariaTarget),void 0!==this.context&&(t.context=this.context),void 0!==this.manual&&(t.manual=this.manual),void 0!==this.position&&(t._position=this.position),void 0!==this.shouldShow&&(t.shouldShow=this.shouldShow),this.manual||this.host.setAttribute("has-tooltip",""),this.#t(t),t.addEventListener("content-changed",this.#e)}teardownNode(t){this.manual||this.host.removeAttribute("has-tooltip"),t.removeEventListener("content-changed",this.#e),this.#t(null)}setAriaTarget(t){this.ariaTarget=t;let e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;let e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;let e=this.node;e&&(e.manual=t)}setPosition(t){this.position=t;let e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;let e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;let e=this.node;e&&(e.target=t)}open(t){let e=this.node;e?.isConnected&&e._stateController.open(t)}close(t){let e=this.node;e&&e._stateController.close(t)}#e=t=>{this.#t(t.target)};#t(t){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:t}}))}}function rU(t){try{CSS.registerProperty(t)}catch(e){if(e instanceof DOMException&&"InvalidModificationError"===e.name)console.warn(`The CSS property ${t.name} has already been registered.`);else throw e}}class rX extends EventTarget{#n;#i=new Set;#r;#a=!1;constructor(t){super(),this.#n=t,this.#r=new CSSStyleSheet}#o(t){let{propertyName:e}=t;this.#i.has(e)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:e}}))}observe(t){this.connect(),this.#i.has(t)||(this.#i.add(t),this.#r.replaceSync(`
|
|
656
656
|
:root::before, :host::before {
|
|
657
657
|
content: '' !important;
|
|
658
658
|
position: absolute !important;
|
|
@@ -2832,7 +2832,7 @@ ${e[0]?e[0]:""}</textarea>`:K` <input
|
|
|
2832
2832
|
:host([theme~='align-right']) ::slotted([slot='value']) {
|
|
2833
2833
|
justify-content: right;
|
|
2834
2834
|
}
|
|
2835
|
-
`;class dr extends rH{constructor(t){super(t,"value","vaadin-select-value-button",{initializer:(t,e)=>{e._setFocusElement(t),e.ariaTarget=t,e.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}let da=t=>class extends aZ(a2(aL(oi(t)))){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}-${rB++}`,this._srLabelController=new ot(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 dr(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new sn(this._phoneMediaQuery,t=>{this._phone=t})),this._tooltipController=new rj(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}updated(t){if(super.updated(t),t.has("_phone")&&this.toggleAttribute("phone",this._phone),(t.has("items")||t.has("renderer")||t.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(t.has("items")&&this._overlayElement.requestContentUpdate(),t.has("__slottedListBox")){let e=this.__slottedListBox;e?this._assignMenuElement(e):t.get("__slottedListBox")&&(this._menuElement=null,this._items=null,this.__lastMenuElement=null)}t.has("accessibleName")&&this._srLabelController.setLabel(this.accessibleName),t.has("required")&&!1===this.required&&this._requestValidation()}requestContentUpdate(){this._overlayElement&&this._overlayElement.requestContentUpdate()}__onOverlaySlotChange(t){this.__slottedListBox=t.target.assignedElements().find(t=>t._hasVaadinListMixin)}_assignMenuElement(t){t&&t!==this.__lastMenuElement&&(this._menuElement=t,this.__initMenuItems(t),t.addEventListener("items-changed",()=>{this.__initMenuItems(t)}),t.addEventListener("selected-changed",()=>this.__updateValueButton()),t.addEventListener("keydown",t=>this._onKeyDownInside(t),!0),t.addEventListener("click",t=>{let e=t.composedPath().find(t=>t._hasVaadinItemMixin);this.__dispatchChangePending=e?.value!==void 0&&e.value!==this.value,this.opened=!1},!0),this.__lastMenuElement=t),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items)}__initMenuItems(t){t.items&&(this._items=t.items)}_valueChanged(t,e){this.toggleAttribute("has-value",!!t),void 0===e||this.__dispatchChangePending||this._requestValidation()}_onClick(t){this.disabled||(t.preventDefault(),this.opened=!this.readonly)}_onEscape(t){this.opened&&(t.stopPropagation(),this.opened=!1)}_onToggleMouseDown(t){t.preventDefault(),this.opened||this.focusElement.focus()}_onKeyDown(t){if(super._onKeyDown(t),!t.altKey&&!t.shiftKey&&!t.ctrlKey&&!t.metaKey&&t.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(t.key))t.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(t.key)&&1===t.key.length){let e=this._menuElement.selected,n=this._menuElement._searchKey(e??-1,t.key);n>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=n)}}}_onKeyDownInside(t){"Tab"===t.key&&(this.focusElement.setAttribute("tabindex","-1"),this._overlayElement.restoreFocusOnClose=!1,this.opened=!1,setTimeout(()=>{this.focusElement.setAttribute("tabindex","0"),this._overlayElement.restoreFocusOnClose=!0}))}_openedChanged(t,e){if(t){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1);let t=this.hasAttribute("focus-ring");this._openedWithFocusRing=t,t&&this.removeAttribute("focus-ring")}else e&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),this.__dispatchChangePending||this._keyboardActive||this._requestValidation())}_updateAriaExpanded(t,e){e&&e.setAttribute("aria-expanded",t?"true":"false")}_updateAriaLive(t){this.focusElement&&rM(this.focusElement,"aria-live",t&&"polite")}__attachSelectedItem(t){let e,n=t.getAttribute("label");(e=n?this.__createItemElement({label:n}):t.cloneNode(!0))._sourceItem=t,this.__appendValueItemElement(e,this.focusElement)
|
|
2835
|
+
`;class dr extends rH{constructor(t){super(t,"value","vaadin-select-value-button",{initializer:(t,e)=>{e._setFocusElement(t),e.ariaTarget=t,e.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}let da=t=>class extends aZ(a2(aL(oi(t)))){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}-${rB++}`,this._srLabelController=new ot(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 dr(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new sn(this._phoneMediaQuery,t=>{this._phone=t})),this._tooltipController=new rj(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}updated(t){if(super.updated(t),t.has("_phone")&&this.toggleAttribute("phone",this._phone),(t.has("items")||t.has("renderer")||t.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(t.has("items")&&this._overlayElement.requestContentUpdate(),t.has("__slottedListBox")){let e=this.__slottedListBox;e?this._assignMenuElement(e):t.get("__slottedListBox")&&(this._menuElement=null,this._items=null,this.__lastMenuElement=null)}t.has("accessibleName")&&this._srLabelController.setLabel(this.accessibleName),t.has("required")&&!1===this.required&&this._requestValidation()}requestContentUpdate(){this._overlayElement&&this._overlayElement.requestContentUpdate()}__onOverlaySlotChange(t){this.__slottedListBox=t.target.assignedElements().find(t=>t._hasVaadinListMixin)}_assignMenuElement(t){t&&t!==this.__lastMenuElement&&(this._menuElement=t,this.__initMenuItems(t),t.addEventListener("items-changed",()=>{this.__initMenuItems(t)}),t.addEventListener("selected-changed",()=>this.__updateValueButton()),t.addEventListener("keydown",t=>this._onKeyDownInside(t),!0),t.addEventListener("click",t=>{let e=t.composedPath().find(t=>t._hasVaadinItemMixin);this.__dispatchChangePending=e?.value!==void 0&&e.value!==this.value,this.opened=!1},!0),this.__lastMenuElement=t),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items)}__initMenuItems(t){t.items&&(this._items=t.items)}_valueChanged(t,e){this.toggleAttribute("has-value",!!t),void 0===e||this.__dispatchChangePending||this._requestValidation()}_onClick(t){this.disabled||(t.preventDefault(),this.opened=!this.readonly)}_onEscape(t){this.opened&&(t.stopPropagation(),this.opened=!1)}_onToggleMouseDown(t){t.preventDefault(),this.opened||this.focusElement.focus()}_onKeyDown(t){if(super._onKeyDown(t),!t.altKey&&!t.shiftKey&&!t.ctrlKey&&!t.metaKey&&t.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(t.key))t.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(t.key)&&1===t.key.length){let e=this._menuElement.selected,n=this._menuElement._searchKey(e??-1,t.key);n>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=n)}}}_onKeyDownInside(t){"Tab"===t.key&&(this.focusElement.setAttribute("tabindex","-1"),this._overlayElement.restoreFocusOnClose=!1,this.opened=!1,setTimeout(()=>{this.focusElement.setAttribute("tabindex","0"),this._overlayElement.restoreFocusOnClose=!0}))}_openedChanged(t,e){if(t){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1);let t=this.hasAttribute("focus-ring");this._openedWithFocusRing=t,t&&this.removeAttribute("focus-ring")}else e&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),this.__dispatchChangePending||this._keyboardActive||this._requestValidation())}_updateAriaExpanded(t,e){e&&e.setAttribute("aria-expanded",t?"true":"false")}_updateAriaLive(t){this.focusElement&&rM(this.focusElement,"aria-live",t&&"polite")}__attachSelectedItem(t){let e,n=t.getAttribute("label");(e=n?this.__createItemElement({label:n}):t.cloneNode(!0))._sourceItem=t,this.__appendValueItemElement(e,this.focusElement)}__createItemElement(t){let e=document.createElement(t.component||"vaadin-select-item");return t.label&&(e.textContent=t.label),t.value&&(e.value=t.value),t.disabled&&(e.disabled=t.disabled),t.className&&(e.className=t.className),e}__appendValueItemElement(t,e){e.appendChild(t),t.removeAttribute("tabindex"),t.removeAttribute("selected"),t.removeAttribute("aria-selected"),t.removeAttribute("role"),t.removeAttribute("focused"),t.removeAttribute("focus-ring"),t.removeAttribute("active"),t.setAttribute("id",this._itemId)}__updateValueButton(){let t=this.focusElement;if(!t)return;t.innerHTML="";let e=this._items?this._items[this._menuElement.selected]:void 0;if(t.removeAttribute("placeholder"),this._hasContent(e))this.__attachSelectedItem(e);else if(this.placeholder){let e=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(e,t),t.setAttribute("placeholder","")}!this._valueChanging&&e&&(this._selectedChanging=!0,this.value=e.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging),this.__updateFieldAriaControllerLabelledBy()}_hasContent(t){if(!t)return!1;let e=!!(t.hasAttribute("label")?t.getAttribute("label"):t.textContent.trim()),n=t.childElementCount>0;return e||n}_updateSelectedItem(t,e,n){if(e){let n=null==t?t:t.toString();this._menuElement.selected=e.reduce((t,e,i)=>void 0===t&&e.value===n?i:t,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}else n&&this.__updateValueButton()}_shouldRemoveFocus(t){return!this.contains(t.relatedTarget)}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this._requestValidation()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(t,e){if(!this.items||0===this.items.length){t.textContent="";return}let n=t.firstElementChild;n||(n=document.createElement("vaadin-select-list-box"),t.appendChild(n)),n.textContent="",this.items.forEach(t=>{n.appendChild(this.__createItemElement(t))})}__dispatchChange(){this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1}__updateFieldAriaControllerLabel(){}__updateFieldAriaControllerLabelledBy(){let t;this.accessibleNameRef?t=this.accessibleNameRef:this.accessibleName?t=this._srLabelController.defaultId:this.hasAttribute("has-label")&&(t=this._labelNode?.id);let e=[t,this._items?.[this._menuElement.selected]||this.placeholder?this._itemId:null].filter(Boolean);e.length>0?this._fieldAriaController.setLabelledBy(e.join(" ")):this._fieldAriaController.setLabelledBy(null)}};class ds extends da(rE(ae(rR(r2(tm))))){static get is(){return"vaadin-select"}static get styles(){return[sl,dn,di]}render(){return K`
|
|
2836
2836
|
<div class="vaadin-select-container">
|
|
2837
2837
|
<div part="label" @click="${this._onClick}">
|
|
2838
2838
|
<slot name="label"></slot>
|