cas-ds-web-components 1.2.112 → 1.2.113

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.
@@ -1,4 +1,4 @@
1
- (function(_,J){typeof exports=="object"&&typeof module<"u"?J(exports):typeof define=="function"&&define.amd?define(["exports"],J):(_=typeof globalThis<"u"?globalThis:_||self,J(_["all-components"]={}))})(this,function(_){"use strict";var Fv=Object.defineProperty;var Nv=(_,J,J1)=>J in _?Fv(_,J,{enumerable:!0,configurable:!0,writable:!0,value:J1}):_[J]=J1;var g=(_,J,J1)=>(Nv(_,typeof J!="symbol"?J+"":J,J1),J1);var I3,SC;(()=>{const o=document.createElement("link");o.setAttribute("href","https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap"),o.setAttribute("rel","stylesheet"),document.head.appendChild(o)})();const Y5={name:"@eloisa-ds/all-components",version:"1.0.114",dependencies:{},main:"./index.js",module:"./index.mjs",typings:"./index.d.ts",private:!0};/**
1
+ (function(_,J){typeof exports=="object"&&typeof module<"u"?J(exports):typeof define=="function"&&define.amd?define(["exports"],J):(_=typeof globalThis<"u"?globalThis:_||self,J(_["all-components"]={}))})(this,function(_){"use strict";var Fv=Object.defineProperty;var Nv=(_,J,J1)=>J in _?Fv(_,J,{enumerable:!0,configurable:!0,writable:!0,value:J1}):_[J]=J1;var g=(_,J,J1)=>(Nv(_,typeof J!="symbol"?J+"":J,J1),J1);var I3,SC;(()=>{const o=document.createElement("link");o.setAttribute("href","https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap"),o.setAttribute("rel","stylesheet"),document.head.appendChild(o)})();const Y5={name:"@eloisa-ds/all-components",version:"1.0.115",dependencies:{},main:"./index.js",module:"./index.mjs",typings:"./index.d.ts",private:!0};/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -10235,7 +10235,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10235
10235
  ></vaadin-combo-box-overlay>
10236
10236
 
10237
10237
  <slot name="tooltip"></slot>
10238
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Cp(this,C=>{this._setInputElement(C),this._setFocusElement(C),this.stateTarget=C,this.ariaTarget=C})),this.addController(new tp(this.inputElement,this._labelController)),this._tooltipController=new I9(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(C=>!C.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(C){C.stopPropagation(),super._onClearButtonClick(C)}_onHostClick(C){const t=C.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(C)}}i1(Hp);class z3 extends f{constructor(){var C;super(),this.type="select",this.label="",this.placeholder="Seleccione",this.name=((C=this.getAttribute("label"))==null?void 0:C.toLowerCase().replace(" ","-"))||"select",this.value="",this.data=[],this.filteredData=[],this.itemValuePath=null,this.size="small",this.required=!1,this.fullWidth=!1,this.showDropdown=!1,this.disabled=!1,this.autoselect=!1,this.clearButtonVisible=!1,this.helperText=""}_onChange(C){const t=C.composedPath()[0].selectedItem;this.value=typeof t=="string"?t:(t==null?void 0:t.value)||(t==null?void 0:t.label),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0}));const e={value:this.value,name:this.name,message:"Success",success:!0,error:!1};this.dispatchEvent(new CustomEvent("callback",{detail:{...e,selected:t},bubbles:!0,composed:!0}))}filterChanged(C){var e;const t=C.detail.value;if(this.itemValuePath=t,!t){this.filteredData=this.data;return}this.filteredData=(e=this.data)==null?void 0:e.filter(i=>{var a,l;return typeof i=="string"?i==null?void 0:i.toLowerCase().includes(t.toLowerCase()):((a=i==null?void 0:i.keywords)==null?void 0:a.some(h=>h==null?void 0:h.toLowerCase().includes(t.toLowerCase())))||((l=i==null?void 0:i.label)==null?void 0:l.toLowerCase().includes(t.toLowerCase()))}),this.requestUpdate()}updated(C){C.has("data")}handleRender(){const C=i=>{var l,h,n;const a=((l=i==null?void 0:i.keywords)==null?void 0:l.length)>2;return M`
10238
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Cp(this,C=>{this._setInputElement(C),this._setFocusElement(C),this.stateTarget=C,this.ariaTarget=C})),this.addController(new tp(this.inputElement,this._labelController)),this._tooltipController=new I9(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(C=>!C.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(C){C.stopPropagation(),super._onClearButtonClick(C)}_onHostClick(C){const t=C.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(C)}}i1(Hp);class z3 extends f{constructor(){var C;super(),this.type="select",this.label="",this.placeholder="Seleccione",this.name=((C=this.getAttribute("label"))==null?void 0:C.toLowerCase().replace(" ","-"))||"select",this.value="",this.data=[],this.filteredData=[],this.itemValuePath=null,this.size="small",this.required=!1,this.fullWidth=!1,this["allow-custom-value"]=!1,this.showDropdown=!1,this.disabled=!1,this.autoselect=!1,this.clearButtonVisible=!1,this.helperText=""}_onChange(C){var i;const t=C.composedPath()[0].selectedItem;this.value=typeof t=="string"?t:(t==null?void 0:t.value)||(t==null?void 0:t.label),this["allow-custom-value"]&&(this.value=(i=C.composedPath()[0].__data)==null?void 0:i.value),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0}));const e={value:this.value,name:this.name,message:"Success",success:!0,error:!1};this.dispatchEvent(new CustomEvent("callback",{detail:{...e,selected:t},bubbles:!0,composed:!0}))}filterChanged(C){var e;const t=C.detail.value;if(this.itemValuePath=t,!t){this.filteredData=this.data;return}this.filteredData=(e=this.data)==null?void 0:e.filter(i=>{var a,l;return typeof i=="string"?i==null?void 0:i.toLowerCase().includes(t.toLowerCase()):((a=i==null?void 0:i.keywords)==null?void 0:a.some(h=>h==null?void 0:h.toLowerCase().includes(t.toLowerCase())))||((l=i==null?void 0:i.label)==null?void 0:l.toLowerCase().includes(t.toLowerCase()))}),this.requestUpdate()}updated(C){C.has("data")}handleRender(){const C=i=>{var l,h,n;const a=((l=i==null?void 0:i.keywords)==null?void 0:l.length)>2;return M`
10239
10239
  <div class="custom">
10240
10240
  <cas-text variant="body2" class="label">
10241
10241
  ${typeof i=="string"?i:i.label}
@@ -10247,6 +10247,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10247
10247
  </div>
10248
10248
  `},t=document.createElement("style");t.id="idssss",t.textContent=_7,document.head.insertAdjacentElement("afterbegin",t);const e=this.isSelectError?"flat-info":this.secondaryIcon;return M`
10249
10249
  <vaadin-combo-box
10250
+ ?allow-custom-value="${this["allow-custom-value"]}"
10250
10251
  ?clear-button-visible="${this.clearButtonVisible}"
10251
10252
  ?required="${this.required}"
10252
10253
  ?disabled="${this.disabled}"
@@ -10265,7 +10266,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10265
10266
  <cas-icon slot="prefix" name="${e}" size="20" />`:""}
10266
10267
  </vaadin-combo-box>
10267
10268
  ${""}
10268
- `}render(){return this.handleRender()}}g(z3,"formAssociated",!0),g(z3,"styles",_7),g(z3,"properties",{theme:{type:String},type:{type:String},label:{type:String},placeholder:{type:String},name:{type:String},value:{type:String},data:{type:Array},size:{type:String},fullWidth:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},showDropdown:{type:Boolean},autoselect:{type:Boolean},clearButtonVisible:{type:Boolean},isSelectError:{type:String},secondaryIcon:{type:String},helperText:{type:String},itemValuePath:{type:String},itemLabelPath:{type:String}}),g(z3,"shadowRootOptions",{...f.shadowRootOptions,mode:"open"}),customElements.get("cas-select")||customElements.define("cas-select",z3),M`
10269
+ `}render(){return this.handleRender()}}g(z3,"formAssociated",!0),g(z3,"styles",_7),g(z3,"properties",{theme:{type:String},type:{type:String},label:{type:String},placeholder:{type:String},name:{type:String},value:{type:String},data:{type:Array},size:{type:String},fullWidth:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},showDropdown:{type:Boolean},autoselect:{type:Boolean},clearButtonVisible:{type:Boolean},isSelectError:{type:String},secondaryIcon:{type:String},helperText:{type:String},itemValuePath:{type:String},itemLabelPath:{type:String},"allow-custom-value":{type:Boolean}}),g(z3,"shadowRootOptions",{...f.shadowRootOptions,mode:"open"}),customElements.get("cas-select")||customElements.define("cas-select",z3),M`
10269
10270
  <svg width="124" height="129" viewBox="0 0 124 129" fill="none" xmlns="http://www.w3.org/2000/svg">
10270
10271
  <path
10271
10272
  d="M16.9864 19.462C3.58478 33.871 1.48396 59.2606 7.71552 77.8967C13.194 92.9143 23.2289 107.698 37.3345 116.88C51.4401 126.063 68.7706 131.105 85.3644 128.16C101.958 125.215 117.319 113.441 121.979 97.3152C126.639 81.1893 118.634 61.6893 102.973 55.5063C93.282 51.6812 81.5611 52.8059 73.2723 46.4653C61.4859 37.5385 61.6386 17.5821 48.6626 10.47C38.284 4.75961 25.0296 10.796 16.9864 19.462Z"
@@ -10235,7 +10235,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10235
10235
  ></vaadin-combo-box-overlay>
10236
10236
 
10237
10237
  <slot name="tooltip"></slot>
10238
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new lc(this,C=>{this._setInputElement(C),this._setFocusElement(C),this.stateTarget=C,this.ariaTarget=C})),this.addController(new hc(this.inputElement,this._labelController)),this._tooltipController=new X7(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(C=>!C.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(C){C.stopPropagation(),super._onClearButtonClick(C)}_onHostClick(C){const t=C.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(C)}}W(bc);class l3 extends V{constructor(){var C;super(),this.type="select",this.label="",this.placeholder="Seleccione",this.name=((C=this.getAttribute("label"))==null?void 0:C.toLowerCase().replace(" ","-"))||"select",this.value="",this.data=[],this.filteredData=[],this.itemValuePath=null,this.size="small",this.required=!1,this.fullWidth=!1,this.showDropdown=!1,this.disabled=!1,this.autoselect=!1,this.clearButtonVisible=!1,this.helperText=""}_onChange(C){const t=C.composedPath()[0].selectedItem;this.value=typeof t=="string"?t:(t==null?void 0:t.value)||(t==null?void 0:t.label),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0}));const e={value:this.value,name:this.name,message:"Success",success:!0,error:!1};this.dispatchEvent(new CustomEvent("callback",{detail:{...e,selected:t},bubbles:!0,composed:!0}))}filterChanged(C){var e;const t=C.detail.value;if(this.itemValuePath=t,!t){this.filteredData=this.data;return}this.filteredData=(e=this.data)==null?void 0:e.filter(i=>{var a,l;return typeof i=="string"?i==null?void 0:i.toLowerCase().includes(t.toLowerCase()):((a=i==null?void 0:i.keywords)==null?void 0:a.some(n=>n==null?void 0:n.toLowerCase().includes(t.toLowerCase())))||((l=i==null?void 0:i.label)==null?void 0:l.toLowerCase().includes(t.toLowerCase()))}),this.requestUpdate()}updated(C){C.has("data")}handleRender(){const C=i=>{var l,n,h;const a=((l=i==null?void 0:i.keywords)==null?void 0:l.length)>2;return u`
10238
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new lc(this,C=>{this._setInputElement(C),this._setFocusElement(C),this.stateTarget=C,this.ariaTarget=C})),this.addController(new hc(this.inputElement,this._labelController)),this._tooltipController=new X7(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(C=>!C.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(C){C.stopPropagation(),super._onClearButtonClick(C)}_onHostClick(C){const t=C.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(C)}}W(bc);class l3 extends V{constructor(){var C;super(),this.type="select",this.label="",this.placeholder="Seleccione",this.name=((C=this.getAttribute("label"))==null?void 0:C.toLowerCase().replace(" ","-"))||"select",this.value="",this.data=[],this.filteredData=[],this.itemValuePath=null,this.size="small",this.required=!1,this.fullWidth=!1,this["allow-custom-value"]=!1,this.showDropdown=!1,this.disabled=!1,this.autoselect=!1,this.clearButtonVisible=!1,this.helperText=""}_onChange(C){var i;const t=C.composedPath()[0].selectedItem;this.value=typeof t=="string"?t:(t==null?void 0:t.value)||(t==null?void 0:t.label),this["allow-custom-value"]&&(this.value=(i=C.composedPath()[0].__data)==null?void 0:i.value),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0}));const e={value:this.value,name:this.name,message:"Success",success:!0,error:!1};this.dispatchEvent(new CustomEvent("callback",{detail:{...e,selected:t},bubbles:!0,composed:!0}))}filterChanged(C){var e;const t=C.detail.value;if(this.itemValuePath=t,!t){this.filteredData=this.data;return}this.filteredData=(e=this.data)==null?void 0:e.filter(i=>{var a,l;return typeof i=="string"?i==null?void 0:i.toLowerCase().includes(t.toLowerCase()):((a=i==null?void 0:i.keywords)==null?void 0:a.some(n=>n==null?void 0:n.toLowerCase().includes(t.toLowerCase())))||((l=i==null?void 0:i.label)==null?void 0:l.toLowerCase().includes(t.toLowerCase()))}),this.requestUpdate()}updated(C){C.has("data")}handleRender(){const C=i=>{var l,n,h;const a=((l=i==null?void 0:i.keywords)==null?void 0:l.length)>2;return u`
10239
10239
  <div class="custom">
10240
10240
  <cas-text variant="body2" class="label">
10241
10241
  ${typeof i=="string"?i:i.label}
@@ -10247,6 +10247,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10247
10247
  </div>
10248
10248
  `},t=document.createElement("style");t.id="idssss",t.textContent=R4,document.head.insertAdjacentElement("afterbegin",t);const e=this.isSelectError?"flat-info":this.secondaryIcon;return u`
10249
10249
  <vaadin-combo-box
10250
+ ?allow-custom-value="${this["allow-custom-value"]}"
10250
10251
  ?clear-button-visible="${this.clearButtonVisible}"
10251
10252
  ?required="${this.required}"
10252
10253
  ?disabled="${this.disabled}"
@@ -10265,7 +10266,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10265
10266
  <cas-icon slot="prefix" name="${e}" size="20" />`:""}
10266
10267
  </vaadin-combo-box>
10267
10268
  ${""}
10268
- `}render(){return this.handleRender()}}f(l3,"formAssociated",!0),f(l3,"styles",R4),f(l3,"properties",{theme:{type:String},type:{type:String},label:{type:String},placeholder:{type:String},name:{type:String},value:{type:String},data:{type:Array},size:{type:String},fullWidth:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},showDropdown:{type:Boolean},autoselect:{type:Boolean},clearButtonVisible:{type:Boolean},isSelectError:{type:String},secondaryIcon:{type:String},helperText:{type:String},itemValuePath:{type:String},itemLabelPath:{type:String}}),f(l3,"shadowRootOptions",{...V.shadowRootOptions,mode:"open"}),customElements.get("cas-select")||customElements.define("cas-select",l3),u`
10269
+ `}render(){return this.handleRender()}}f(l3,"formAssociated",!0),f(l3,"styles",R4),f(l3,"properties",{theme:{type:String},type:{type:String},label:{type:String},placeholder:{type:String},name:{type:String},value:{type:String},data:{type:Array},size:{type:String},fullWidth:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},showDropdown:{type:Boolean},autoselect:{type:Boolean},clearButtonVisible:{type:Boolean},isSelectError:{type:String},secondaryIcon:{type:String},helperText:{type:String},itemValuePath:{type:String},itemLabelPath:{type:String},"allow-custom-value":{type:Boolean}}),f(l3,"shadowRootOptions",{...V.shadowRootOptions,mode:"open"}),customElements.get("cas-select")||customElements.define("cas-select",l3),u`
10269
10270
  <svg width="124" height="129" viewBox="0 0 124 129" fill="none" xmlns="http://www.w3.org/2000/svg">
10270
10271
  <path
10271
10272
  d="M16.9864 19.462C3.58478 33.871 1.48396 59.2606 7.71552 77.8967C13.194 92.9143 23.2289 107.698 37.3345 116.88C51.4401 126.063 68.7706 131.105 85.3644 128.16C101.958 125.215 117.319 113.441 121.979 97.3152C126.639 81.1893 118.634 61.6893 102.973 55.5063C93.282 51.6812 81.5611 52.8059 73.2723 46.4653C61.4859 37.5385 61.6386 17.5821 48.6626 10.47C38.284 4.75961 25.0296 10.796 16.9864 19.462Z"
@@ -3066,7 +3066,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3066
3066
  ></vaadin-combo-box-overlay>
3067
3067
 
3068
3068
  <slot name="tooltip"></slot>
3069
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new ur(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t})),this.addController(new gr(this.inputElement,this._labelController)),this._tooltipController=new Ti(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t)}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t)}}L(kr);class F0 extends A0{constructor(){var t;super(),this.type="select",this.label="",this.placeholder="Seleccione",this.name=((t=this.getAttribute("label"))==null?void 0:t.toLowerCase().replace(" ","-"))||"select",this.value="",this.data=[],this.filteredData=[],this.itemValuePath=null,this.size="small",this.required=!1,this.fullWidth=!1,this.showDropdown=!1,this.disabled=!1,this.autoselect=!1,this.clearButtonVisible=!1,this.helperText=""}_onChange(t){const e=t.composedPath()[0].selectedItem;this.value=typeof e=="string"?e:(e==null?void 0:e.value)||(e==null?void 0:e.label),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0}));const h={value:this.value,name:this.name,message:"Success",success:!0,error:!1};this.dispatchEvent(new CustomEvent("callback",{detail:{...h,selected:e},bubbles:!0,composed:!0}))}filterChanged(t){var h;const e=t.detail.value;if(this.itemValuePath=e,!e){this.filteredData=this.data;return}this.filteredData=(h=this.data)==null?void 0:h.filter(i=>{var s,n;return typeof i=="string"?i==null?void 0:i.toLowerCase().includes(e.toLowerCase()):((s=i==null?void 0:i.keywords)==null?void 0:s.some(l=>l==null?void 0:l.toLowerCase().includes(e.toLowerCase())))||((n=i==null?void 0:i.label)==null?void 0:n.toLowerCase().includes(e.toLowerCase()))}),this.requestUpdate()}updated(t){t.has("data")}handleRender(){const t=i=>{var n,l,o;const s=((n=i==null?void 0:i.keywords)==null?void 0:n.length)>2;return K0`
3069
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new ur(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t})),this.addController(new gr(this.inputElement,this._labelController)),this._tooltipController=new Ti(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t)}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t)}}L(kr);class F0 extends A0{constructor(){var t;super(),this.type="select",this.label="",this.placeholder="Seleccione",this.name=((t=this.getAttribute("label"))==null?void 0:t.toLowerCase().replace(" ","-"))||"select",this.value="",this.data=[],this.filteredData=[],this.itemValuePath=null,this.size="small",this.required=!1,this.fullWidth=!1,this["allow-custom-value"]=!1,this.showDropdown=!1,this.disabled=!1,this.autoselect=!1,this.clearButtonVisible=!1,this.helperText=""}_onChange(t){var i;const e=t.composedPath()[0].selectedItem;this.value=typeof e=="string"?e:(e==null?void 0:e.value)||(e==null?void 0:e.label),this["allow-custom-value"]&&(this.value=(i=t.composedPath()[0].__data)==null?void 0:i.value),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0}));const h={value:this.value,name:this.name,message:"Success",success:!0,error:!1};this.dispatchEvent(new CustomEvent("callback",{detail:{...h,selected:e},bubbles:!0,composed:!0}))}filterChanged(t){var h;const e=t.detail.value;if(this.itemValuePath=e,!e){this.filteredData=this.data;return}this.filteredData=(h=this.data)==null?void 0:h.filter(i=>{var s,n;return typeof i=="string"?i==null?void 0:i.toLowerCase().includes(e.toLowerCase()):((s=i==null?void 0:i.keywords)==null?void 0:s.some(l=>l==null?void 0:l.toLowerCase().includes(e.toLowerCase())))||((n=i==null?void 0:i.label)==null?void 0:n.toLowerCase().includes(e.toLowerCase()))}),this.requestUpdate()}updated(t){t.has("data")}handleRender(){const t=i=>{var n,l,o;const s=((n=i==null?void 0:i.keywords)==null?void 0:n.length)>2;return K0`
3070
3070
  <div class="custom">
3071
3071
  <cas-text variant="body2" class="label">
3072
3072
  ${typeof i=="string"?i:i.label}
@@ -3078,6 +3078,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3078
3078
  </div>
3079
3079
  `},e=document.createElement("style");e.id="idssss",e.textContent=yh,document.head.insertAdjacentElement("afterbegin",e);const h=this.isSelectError?"flat-info":this.secondaryIcon;return K0`
3080
3080
  <vaadin-combo-box
3081
+ ?allow-custom-value="${this["allow-custom-value"]}"
3081
3082
  ?clear-button-visible="${this.clearButtonVisible}"
3082
3083
  ?required="${this.required}"
3083
3084
  ?disabled="${this.disabled}"
@@ -3096,7 +3097,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3096
3097
  <cas-icon slot="prefix" name="${h}" size="20" />`:""}
3097
3098
  </vaadin-combo-box>
3098
3099
  ${""}
3099
- `}render(){return this.handleRender()}}xt(F0,"formAssociated",!0),xt(F0,"styles",yh),xt(F0,"properties",{theme:{type:String},type:{type:String},label:{type:String},placeholder:{type:String},name:{type:String},value:{type:String},data:{type:Array},size:{type:String},fullWidth:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},showDropdown:{type:Boolean},autoselect:{type:Boolean},clearButtonVisible:{type:Boolean},isSelectError:{type:String},secondaryIcon:{type:String},helperText:{type:String},itemValuePath:{type:String},itemLabelPath:{type:String}}),xt(F0,"shadowRootOptions",{...A0.shadowRootOptions,mode:"open"}),customElements.get("cas-select")||customElements.define("cas-select",F0),K0`
3100
+ `}render(){return this.handleRender()}}xt(F0,"formAssociated",!0),xt(F0,"styles",yh),xt(F0,"properties",{theme:{type:String},type:{type:String},label:{type:String},placeholder:{type:String},name:{type:String},value:{type:String},data:{type:Array},size:{type:String},fullWidth:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},showDropdown:{type:Boolean},autoselect:{type:Boolean},clearButtonVisible:{type:Boolean},isSelectError:{type:String},secondaryIcon:{type:String},helperText:{type:String},itemValuePath:{type:String},itemLabelPath:{type:String},"allow-custom-value":{type:Boolean}}),xt(F0,"shadowRootOptions",{...A0.shadowRootOptions,mode:"open"}),customElements.get("cas-select")||customElements.define("cas-select",F0),K0`
3100
3101
  <svg width="124" height="129" viewBox="0 0 124 129" fill="none" xmlns="http://www.w3.org/2000/svg">
3101
3102
  <path
3102
3103
  d="M16.9864 19.462C3.58478 33.871 1.48396 59.2606 7.71552 77.8967C13.194 92.9143 23.2289 107.698 37.3345 116.88C51.4401 126.063 68.7706 131.105 85.3644 128.16C101.958 125.215 117.319 113.441 121.979 97.3152C126.639 81.1893 118.634 61.6893 102.973 55.5063C93.282 51.6812 81.5611 52.8059 73.2723 46.4653C61.4859 37.5385 61.6386 17.5821 48.6626 10.47C38.284 4.75961 25.0296 10.796 16.9864 19.462Z"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cas-ds-web-components",
3
3
  "description": "Web Components based on CAS DS",
4
- "version": "1.2.112",
4
+ "version": "1.2.113",
5
5
  "author": "aconejeros",
6
6
  "keywords": [
7
7
  "direflow",