cas-ds-web-components 1.2.42 → 1.2.43

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(y,c2){typeof exports=="object"&&typeof module<"u"?c2(exports):typeof define=="function"&&define.amd?define(["exports"],c2):(y=typeof globalThis<"u"?globalThis:y||self,c2(y["all-components"]={}))})(this,function(y){"use strict";(()=>{const e=document.createElement("link");e.setAttribute("href","https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Short+Stack&display=swap"),e.setAttribute("rel","stylesheet"),document.head.appendChild(e)})();var U7={name:"@eloisa-ds/all-components",version:"1.0.46",main:"./all-components.umd.js",module:"./all-components.es.js",exports:{".":{import:"./all-components.es.js",require:"./all-components.umd.js"}}};/**
1
+ (function(y,c2){typeof exports=="object"&&typeof module<"u"?c2(exports):typeof define=="function"&&define.amd?define(["exports"],c2):(y=typeof globalThis<"u"?globalThis:y||self,c2(y["all-components"]={}))})(this,function(y){"use strict";(()=>{const e=document.createElement("link");e.setAttribute("href","https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Short+Stack&display=swap"),e.setAttribute("rel","stylesheet"),document.head.appendChild(e)})();var U7={name:"@eloisa-ds/all-components",version:"1.0.47",main:"./all-components.umd.js",module:"./all-components.es.js",exports:{".":{import:"./all-components.es.js",require:"./all-components.umd.js"}}};/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -10162,16 +10162,16 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10162
10162
  ></vaadin-combo-box-overlay>
10163
10163
 
10164
10164
  <slot name="tooltip"></slot>
10165
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new or(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t})),this.addController(new sr(this.inputElement,this._labelController)),this._tooltipController=new Oh(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 C=t.composedPath();(C.includes(this._labelNode)||C.includes(this._positionTarget))&&super._onHostClick(t)}}$2(gr);class Mr extends f{static formAssociated=!0;static styles=o8;constructor(){super(),this.type="select",this.label="",this.placeholder="Seleccione",this.name=this.getAttribute("label")?.toLowerCase().replace(" ","-")||"select",this.value="",this.data=[],this.filteredData=[],this.size="small",this.required=!1,this.fullWidth=!1,this.showDropdown=!1,this.disabled=!1,this.autoselect=!1,this.clearButtonVisible=!1,this.helperText=""}static 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}};static shadowRootOptions={...f.shadowRootOptions,mode:"open"};_onChange(t){const C=t.composedPath()[0].selectedItem;this.value=typeof C=="string"?C:C?.value||C?.label,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0}));const i={value:this.value,name:this.name,message:"Success",success:!0,error:!1};this.dispatchEvent(new CustomEvent("callback",{detail:i,bubbles:!0,composed:!0}))}filterChanged(t){const C=t.detail.value;this.filteredData=this.data?.filter(i=>typeof i=="string"?i?.toLowerCase().includes(C.toLowerCase()):i?.label?.toLowerCase().includes(C.toLowerCase())||i?.keywords?.some(s=>s?.toLowerCase().includes(C.toLowerCase()))),this.requestUpdate()}render(){const t=s=>L`
10165
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new or(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t})),this.addController(new sr(this.inputElement,this._labelController)),this._tooltipController=new Oh(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 C=t.composedPath();(C.includes(this._labelNode)||C.includes(this._positionTarget))&&super._onHostClick(t)}}$2(gr);class Mr extends f{static formAssociated=!0;static styles=o8;constructor(){super(),this.type="select",this.label="",this.placeholder="Seleccione",this.name=this.getAttribute("label")?.toLowerCase().replace(" ","-")||"select",this.value="",this.data=[],this.filteredData=[],this.size="small",this.required=!1,this.fullWidth=!1,this.showDropdown=!1,this.disabled=!1,this.autoselect=!1,this.clearButtonVisible=!1,this.helperText=""}static 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}};static shadowRootOptions={...f.shadowRootOptions,mode:"open"};_onChange(t){const C=t.composedPath()[0].selectedItem;this.value=typeof C=="string"?C:C?.value||C?.label,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0}));const i={value:this.value,name:this.name,message:"Success",success:!0,error:!1};this.dispatchEvent(new CustomEvent("callback",{detail:i,bubbles:!0,composed:!0}))}filterChanged(t){const C=t.detail.value;this.filteredData=this.data?.filter(i=>typeof i=="string"?i?.toLowerCase().includes(C.toLowerCase()):i?.label?.toLowerCase().includes(C.toLowerCase())||i?.keywords?.some(s=>s?.toLowerCase().includes(C.toLowerCase()))),this.requestUpdate()}render(){const t=a=>L`
10166
10166
  <style>
10167
10167
  @import url(https://fonts.googleapis.com/css2?family=Rubik:wght@400;500&display=swap);
10168
10168
  </style>
10169
10169
  <div class="custom">
10170
- ${typeof s=="string"?s:s.label}
10170
+ ${typeof a=="string"?a:a.label}
10171
10171
  <br />
10172
- ${typeof s=="string"?"":L`<h5 className="keywords">${s?.keywords?.join(", ")}</h5>`}
10172
+ ${typeof a=="string"?"":L`<h5 className="keywords">${a?.keywords?.join(", ")}</h5>`}
10173
10173
  </div>
10174
- `,C=document.createElement("style");C.id="idssss",C.textContent=o8,document.head.insertAdjacentElement("afterbegin",C);const i=this.isSelectError?"flat-info":this.secondaryIcon;return L`
10174
+ `,C=document.createElement("style");C.id="idssss",C.textContent=o8,document.head.insertAdjacentElement("afterbegin",C);const i=this.isSelectError?"flat-info":this.secondaryIcon,s=this.data.length>0&&this.filteredData.length===0;return L`
10175
10175
  <vaadin-combo-box
10176
10176
  ?clear-button-visible="${this.clearButtonVisible}"
10177
10177
  ?required="${this.required}"
@@ -10189,7 +10189,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10189
10189
  >
10190
10190
  ${this.secondaryIcon?L` <cas-icon slot="prefix" name="${i}" size="20" />`:""}
10191
10191
  </vaadin-combo-box>
10192
- ${this.filteredData.length===0?L`
10192
+ ${s?L`
10193
10193
  <div class="empty">
10194
10194
  ${ur}
10195
10195
  <cas-text variant="headline1">¡Lo sentimos!</cas-text>
@@ -10162,16 +10162,16 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10162
10162
  ></vaadin-combo-box-overlay>
10163
10163
 
10164
10164
  <slot name="tooltip"></slot>
10165
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new nh(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t})),this.addController(new rh(this.inputElement,this._labelController)),this._tooltipController=new jl(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 C=t.composedPath();(C.includes(this._labelNode)||C.includes(this._positionTarget))&&super._onHostClick(t)}}c2(Hh);class Zh extends H{static formAssociated=!0;static styles=t6;constructor(){super(),this.type="select",this.label="",this.placeholder="Seleccione",this.name=this.getAttribute("label")?.toLowerCase().replace(" ","-")||"select",this.value="",this.data=[],this.filteredData=[],this.size="small",this.required=!1,this.fullWidth=!1,this.showDropdown=!1,this.disabled=!1,this.autoselect=!1,this.clearButtonVisible=!1,this.helperText=""}static 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}};static shadowRootOptions={...H.shadowRootOptions,mode:"open"};_onChange(t){const C=t.composedPath()[0].selectedItem;this.value=typeof C=="string"?C:C?.value||C?.label,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0}));const o={value:this.value,name:this.name,message:"Success",success:!0,error:!1};this.dispatchEvent(new CustomEvent("callback",{detail:o,bubbles:!0,composed:!0}))}filterChanged(t){const C=t.detail.value;this.filteredData=this.data?.filter(o=>typeof o=="string"?o?.toLowerCase().includes(C.toLowerCase()):o?.label?.toLowerCase().includes(C.toLowerCase())||o?.keywords?.some(s=>s?.toLowerCase().includes(C.toLowerCase()))),this.requestUpdate()}render(){const t=s=>M`
10165
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new nh(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t})),this.addController(new rh(this.inputElement,this._labelController)),this._tooltipController=new jl(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 C=t.composedPath();(C.includes(this._labelNode)||C.includes(this._positionTarget))&&super._onHostClick(t)}}c2(Hh);class Zh extends H{static formAssociated=!0;static styles=t6;constructor(){super(),this.type="select",this.label="",this.placeholder="Seleccione",this.name=this.getAttribute("label")?.toLowerCase().replace(" ","-")||"select",this.value="",this.data=[],this.filteredData=[],this.size="small",this.required=!1,this.fullWidth=!1,this.showDropdown=!1,this.disabled=!1,this.autoselect=!1,this.clearButtonVisible=!1,this.helperText=""}static 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}};static shadowRootOptions={...H.shadowRootOptions,mode:"open"};_onChange(t){const C=t.composedPath()[0].selectedItem;this.value=typeof C=="string"?C:C?.value||C?.label,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0}));const o={value:this.value,name:this.name,message:"Success",success:!0,error:!1};this.dispatchEvent(new CustomEvent("callback",{detail:o,bubbles:!0,composed:!0}))}filterChanged(t){const C=t.detail.value;this.filteredData=this.data?.filter(o=>typeof o=="string"?o?.toLowerCase().includes(C.toLowerCase()):o?.label?.toLowerCase().includes(C.toLowerCase())||o?.keywords?.some(s=>s?.toLowerCase().includes(C.toLowerCase()))),this.requestUpdate()}render(){const t=a=>M`
10166
10166
  <style>
10167
10167
  @import url(https://fonts.googleapis.com/css2?family=Rubik:wght@400;500&display=swap);
10168
10168
  </style>
10169
10169
  <div class="custom">
10170
- ${typeof s=="string"?s:s.label}
10170
+ ${typeof a=="string"?a:a.label}
10171
10171
  <br />
10172
- ${typeof s=="string"?"":M`<h5 className="keywords">${s?.keywords?.join(", ")}</h5>`}
10172
+ ${typeof a=="string"?"":M`<h5 className="keywords">${a?.keywords?.join(", ")}</h5>`}
10173
10173
  </div>
10174
- `,C=document.createElement("style");C.id="idssss",C.textContent=t6,document.head.insertAdjacentElement("afterbegin",C);const o=this.isSelectError?"flat-info":this.secondaryIcon;return M`
10174
+ `,C=document.createElement("style");C.id="idssss",C.textContent=t6,document.head.insertAdjacentElement("afterbegin",C);const o=this.isSelectError?"flat-info":this.secondaryIcon,s=this.data.length>0&&this.filteredData.length===0;return M`
10175
10175
  <vaadin-combo-box
10176
10176
  ?clear-button-visible="${this.clearButtonVisible}"
10177
10177
  ?required="${this.required}"
@@ -10189,7 +10189,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10189
10189
  >
10190
10190
  ${this.secondaryIcon?M` <cas-icon slot="prefix" name="${o}" size="20" />`:""}
10191
10191
  </vaadin-combo-box>
10192
- ${this.filteredData.length===0?M`
10192
+ ${s?M`
10193
10193
  <div class="empty">
10194
10194
  ${Vh}
10195
10195
  <cas-text variant="headline1">¡Lo sentimos!</cas-text>
@@ -3127,16 +3127,16 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3127
3127
  ></vaadin-combo-box-overlay>
3128
3128
 
3129
3129
  <slot name="tooltip"></slot>
3130
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new hn(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new an(this.inputElement,this._labelController)),this._tooltipController=new V2(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}N0(fn);class dh extends j{static formAssociated=!0;static styles=x1;constructor(){super(),this.type="select",this.label="",this.placeholder="Seleccione",this.name=this.getAttribute("label")?.toLowerCase().replace(" ","-")||"select",this.value="",this.data=[],this.filteredData=[],this.size="small",this.required=!1,this.fullWidth=!1,this.showDropdown=!1,this.disabled=!1,this.autoselect=!1,this.clearButtonVisible=!1,this.helperText=""}static 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}};static shadowRootOptions={...j.shadowRootOptions,mode:"open"};_onChange(e){const t=e.composedPath()[0].selectedItem;this.value=typeof t=="string"?t:t?.value||t?.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,bubbles:!0,composed:!0}))}filterChanged(e){const t=e.detail.value;this.filteredData=this.data?.filter(h=>typeof h=="string"?h?.toLowerCase().includes(t.toLowerCase()):h?.label?.toLowerCase().includes(t.toLowerCase())||h?.keywords?.some(i=>i?.toLowerCase().includes(t.toLowerCase()))),this.requestUpdate()}render(){const e=i=>W`
3130
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new hn(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new an(this.inputElement,this._labelController)),this._tooltipController=new V2(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}N0(fn);class dh extends j{static formAssociated=!0;static styles=x1;constructor(){super(),this.type="select",this.label="",this.placeholder="Seleccione",this.name=this.getAttribute("label")?.toLowerCase().replace(" ","-")||"select",this.value="",this.data=[],this.filteredData=[],this.size="small",this.required=!1,this.fullWidth=!1,this.showDropdown=!1,this.disabled=!1,this.autoselect=!1,this.clearButtonVisible=!1,this.helperText=""}static 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}};static shadowRootOptions={...j.shadowRootOptions,mode:"open"};_onChange(e){const t=e.composedPath()[0].selectedItem;this.value=typeof t=="string"?t:t?.value||t?.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,bubbles:!0,composed:!0}))}filterChanged(e){const t=e.detail.value;this.filteredData=this.data?.filter(h=>typeof h=="string"?h?.toLowerCase().includes(t.toLowerCase()):h?.label?.toLowerCase().includes(t.toLowerCase())||h?.keywords?.some(i=>i?.toLowerCase().includes(t.toLowerCase()))),this.requestUpdate()}render(){const e=s=>W`
3131
3131
  <style>
3132
3132
  @import url(https://fonts.googleapis.com/css2?family=Rubik:wght@400;500&display=swap);
3133
3133
  </style>
3134
3134
  <div class="custom">
3135
- ${typeof i=="string"?i:i.label}
3135
+ ${typeof s=="string"?s:s.label}
3136
3136
  <br />
3137
- ${typeof i=="string"?"":W`<h5 className="keywords">${i?.keywords?.join(", ")}</h5>`}
3137
+ ${typeof s=="string"?"":W`<h5 className="keywords">${s?.keywords?.join(", ")}</h5>`}
3138
3138
  </div>
3139
- `,t=document.createElement("style");t.id="idssss",t.textContent=x1,document.head.insertAdjacentElement("afterbegin",t);const h=this.isSelectError?"flat-info":this.secondaryIcon;return W`
3139
+ `,t=document.createElement("style");t.id="idssss",t.textContent=x1,document.head.insertAdjacentElement("afterbegin",t);const h=this.isSelectError?"flat-info":this.secondaryIcon,i=this.data.length>0&&this.filteredData.length===0;return W`
3140
3140
  <vaadin-combo-box
3141
3141
  ?clear-button-visible="${this.clearButtonVisible}"
3142
3142
  ?required="${this.required}"
@@ -3154,7 +3154,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3154
3154
  >
3155
3155
  ${this.secondaryIcon?W` <cas-icon slot="prefix" name="${h}" size="20" />`:""}
3156
3156
  </vaadin-combo-box>
3157
- ${this.filteredData.length===0?W`
3157
+ ${i?W`
3158
3158
  <div class="empty">
3159
3159
  ${gn}
3160
3160
  <cas-text variant="headline1">¡Lo sentimos!</cas-text>
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.42",
4
+ "version": "1.2.43",
5
5
  "author": "aconejeros",
6
6
  "keywords": [
7
7
  "direflow",