cas-ds-web-components 1.2.161 → 1.2.162

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(I,b1){typeof exports=="object"&&typeof module<"u"?b1(exports):typeof define=="function"&&define.amd?define(["exports"],b1):(I=typeof globalThis<"u"?globalThis:I||self,b1(I["all-components"]={}))})(this,function(I){"use strict";var Wm=Object.defineProperty;var qm=(I,b1,J2)=>b1 in I?Wm(I,b1,{enumerable:!0,configurable:!0,writable:!0,value:J2}):I[b1]=J2;var m=(I,b1,J2)=>(qm(I,typeof b1!="symbol"?b1+"":b1,J2),J2);var l6,il;(()=>{const e=document.createElement("link");e.setAttribute("href","https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap"),e.setAttribute("rel","stylesheet"),document.head.appendChild(e)})();const T4={name:"@eloisa-ds/all-components",version:"1.0.161",dependencies:{},main:"./index.js",module:"./index.mjs",typings:"./index.d.ts",private:!0};/**
1
+ (function(I,b1){typeof exports=="object"&&typeof module<"u"?b1(exports):typeof define=="function"&&define.amd?define(["exports"],b1):(I=typeof globalThis<"u"?globalThis:I||self,b1(I["all-components"]={}))})(this,function(I){"use strict";var Wm=Object.defineProperty;var qm=(I,b1,J2)=>b1 in I?Wm(I,b1,{enumerable:!0,configurable:!0,writable:!0,value:J2}):I[b1]=J2;var m=(I,b1,J2)=>(qm(I,typeof b1!="symbol"?b1+"":b1,J2),J2);var l6,il;(()=>{const e=document.createElement("link");e.setAttribute("href","https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap"),e.setAttribute("rel","stylesheet"),document.head.appendChild(e)})();const T4={name:"@eloisa-ds/all-components",version:"1.0.162",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
@@ -23522,7 +23522,9 @@ x.version="2.30.1",vg(C1),x.fn=H,x.min=lu,x.max=au,x.now=su,x.utc=O1,x.unix=Bw,x
23522
23522
  }
23523
23523
  `;function gm({value:e,helperText:C,placeholder:t}){const i=g1({"textarea-container":!0,"has-value":(e==null?void 0:e.length)>0||(t==null?void 0:t.length)>0}),l=(C==null?void 0:C.length)>0,s=e==null?void 0:e.length;return{areaStyles:i,hasHelper:l,characters:s}}class U3 extends _{constructor(){super(),this.label="",this.name="",this.value="",this.helperText="",this.limit=280}_onChange(C){this.value=C.composedPath()[0].value,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}render(){const{value:C,label:t,helperText:i,limit:l,placeholder:s}=this,{areaStyles:o,hasHelper:n,characters:h}=gm({value:C,helperText:i,placeholder:s});return u`
23524
23524
  <div class=${o}>
23525
- <textarea @input=${this._onChange} maxlength=${l} .disabled=${this.disabled} placeholder=${this.placeholder}>${C}</textarea>
23525
+ <textarea @input=${this._onChange} maxlength=${l} .disabled=${this.disabled} placeholder=${this.placeholder}
23526
+ part="textarea-element"
23527
+ >${C}</textarea>
23526
23528
  <label>${t}</label>
23527
23529
  ${n?u`
23528
23530
  <div class="helper">
@@ -120,7 +120,9 @@
120
120
  http://jedwatson.github.io/classnames
121
121
  */(function(o){(function(){var t={}.hasOwnProperty;function e(){for(var r="",n=0;n<arguments.length;n++){var a=arguments[n];a&&(r=s(r,i(a)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return e.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var n="";for(var a in r)t.call(r,a)&&r[a]&&(n=s(n,a));return n}function s(r,n){return n?r?r+" "+n:r+n:r}o.exports?(e.default=e,o.exports=e):window.classNames=e})()})(Wt);var xe=Wt.exports;const Ee=be(xe);function Se({value:o,helperText:t,placeholder:e}){const i=Ee({"textarea-container":!0,"has-value":(o==null?void 0:o.length)>0||(e==null?void 0:e.length)>0}),s=(t==null?void 0:t.length)>0,r=o==null?void 0:o.length;return{areaStyles:i,hasHelper:s,characters:r}}class R extends O{constructor(){super(),this.label="",this.name="",this.value="",this.helperText="",this.limit=280}_onChange(t){this.value=t.composedPath()[0].value,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}render(){const{value:t,label:e,helperText:i,limit:s,placeholder:r}=this,{areaStyles:n,hasHelper:a,characters:l}=Se({value:t,helperText:i,placeholder:r});return Vt`
122
122
  <div class=${n}>
123
- <textarea @input=${this._onChange} maxlength=${s} .disabled=${this.disabled} placeholder=${this.placeholder}>${t}</textarea>
123
+ <textarea @input=${this._onChange} maxlength=${s} .disabled=${this.disabled} placeholder=${this.placeholder}
124
+ part="textarea-element"
125
+ >${t}</textarea>
124
126
  <label>${e}</label>
125
127
  ${a?Vt`
126
128
  <div class="helper">
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.161",
4
+ "version": "1.2.162",
5
5
  "author": "aconejeros",
6
6
  "keywords": [
7
7
  "direflow",