bromcom-ui 2.6.0 → 2.6.2-rc.0
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.
- package/dist/bromcom-ui/bromcom-ui.css +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/{p-968781bc.entry.js → p-00548093.entry.js} +1 -1
- package/dist/bromcom-ui/p-060d4830.entry.js +1 -0
- package/dist/bromcom-ui/p-12313045.entry.js +1 -0
- package/dist/bromcom-ui/{p-1b42141b.entry.js → p-141a3020.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0dada2ef.entry.js → p-15451ea8.entry.js} +1 -1
- package/dist/bromcom-ui/p-214f509f.entry.js +1 -0
- package/dist/bromcom-ui/p-231f8e6e.entry.js +1 -0
- package/dist/bromcom-ui/p-24b2b16a.entry.js +1 -0
- package/dist/bromcom-ui/{p-ca02ca51.entry.js → p-2f83346d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c078014c.entry.js → p-2fc3d7c4.entry.js} +1 -1
- package/dist/bromcom-ui/p-31006673.entry.js +1 -0
- package/dist/bromcom-ui/{p-e99f720c.entry.js → p-3253a7db.entry.js} +1 -1
- package/dist/bromcom-ui/{p-086480c8.entry.js → p-3b501ebc.entry.js} +1 -1
- package/dist/bromcom-ui/p-4bbe0b4e.entry.js +1 -0
- package/dist/bromcom-ui/p-5a003304.entry.js +1 -0
- package/dist/bromcom-ui/p-69abf1f9.entry.js +1 -0
- package/dist/bromcom-ui/{p-896e1a29.entry.js → p-6eb857e2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0b450f3c.entry.js → p-703b569b.entry.js} +1 -1
- package/dist/bromcom-ui/p-7d69ad88.entry.js +1 -0
- package/dist/bromcom-ui/{p-04715e25.entry.js → p-887aaa28.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2e3678b6.entry.js → p-8be6b27e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-13c40d3e.entry.js → p-9831c2e5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7467b1e4.entry.js → p-9ad319db.entry.js} +1 -1
- package/dist/bromcom-ui/p-adc6873e.js +1 -0
- package/dist/bromcom-ui/{p-ffef5aef.entry.js → p-af88e6ae.entry.js} +1 -1
- package/dist/bromcom-ui/p-c45140e8.entry.js +1 -0
- package/dist/bromcom-ui/{p-0e75b906.entry.js → p-c6afbd41.entry.js} +1 -1
- package/dist/bromcom-ui/p-cd548f6c.entry.js +1 -0
- package/dist/bromcom-ui/{p-474ec4cc.js → p-cf71c42c.js} +1 -1
- package/dist/bromcom-ui/p-e760cf4c.entry.js +1 -0
- package/dist/bromcom-ui/{p-87f2312b.entry.js → p-e9b1e392.entry.js} +1 -1
- package/dist/bromcom-ui/p-ecc440c0.entry.js +1 -0
- package/dist/bromcom-ui/{p-1d6283cc.entry.js → p-fa39a9d9.entry.js} +1 -1
- package/package.json +1 -1
- package/dist/bromcom-ui/p-1000817a.entry.js +0 -1
- package/dist/bromcom-ui/p-124d8fc2.js +0 -1
- package/dist/bromcom-ui/p-2301a2b6.entry.js +0 -1
- package/dist/bromcom-ui/p-25d0939e.entry.js +0 -1
- package/dist/bromcom-ui/p-33931412.entry.js +0 -1
- package/dist/bromcom-ui/p-3d5afd5c.entry.js +0 -1
- package/dist/bromcom-ui/p-4b16f50d.entry.js +0 -1
- package/dist/bromcom-ui/p-4d7912fa.entry.js +0 -1
- package/dist/bromcom-ui/p-67fdd6ef.entry.js +0 -1
- package/dist/bromcom-ui/p-82d0b82e.entry.js +0 -1
- package/dist/bromcom-ui/p-878dcaf3.entry.js +0 -1
- package/dist/bromcom-ui/p-aa020d19.entry.js +0 -1
- package/dist/bromcom-ui/p-bbd9aa3b.entry.js +0 -1
- package/dist/bromcom-ui/p-ce39d425.entry.js +0 -1
- package/dist/bromcom-ui/p-d4758438.entry.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,H as e}from"./p-9d960649.js";import{G as h}from"./p-124d8fc2.js";import{B as a}from"./p-7e73190d.js";import"./p-112455b1.js";import{c as r}from"./p-7294ec8e.js";import"./p-6d018a8f.js";import{d as n}from"./p-a80ff3e5.js";import{C as l}from"./p-b43213d3.js";import{I as c}from"./p-faaebe40.js";var o;!function(t){t.none="none",t.both="both",t.horizontal="horizontal",t.vertical="vertical",t.initial="initial",t.inherit="inherit"}(o||(o={}));const d=class{constructor(i){t(this,i),this.focus=s(this,"bcm-focus",7),this.blur=s(this,"bcm-blur",7),this.clear=s(this,"bcm-clear",7),this.change=s(this,"bcm-change",7),this.input=s(this,"bcm-input",7),this._id=h.UID(),this._internal_id=h.UID(),this.hidden=!1,this.required=!1,this.noCaption=!1,this.captionType=a.Status.default,this.rows=3,this.size=a.Size.medium,this.readonly=!1,this.resize=o.vertical,this.fullWidth=!1,this.focused=!1}connectedCallback(){this.captionCache=this.caption,this.captionTypeCache=this.captionType}async onBcmFocus(){this.textarea.focus()}async onBcmBlur(){this.textarea.blur()}async onBcmSelect(){this.textarea.select()}async set(t){await this.setValue(t)}async get(){return this.value||null}async setValue(t){return this.textarea.value=t,this.value=t,this.handleChange(),t}async setClear(){return this.textarea.value="",this.value="",await n(10),Promise.resolve()}async resetCaption(){this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null}async getValue(){return this.value}watchValue(){this.handleChange()}handleFocus(){this.focused=!0,this.focus.emit()}handleBlur(){this.focused=!1,this.blur.emit()}handleChange(){this.value=this.textarea.value,this.change.emit(this.value)}handleInput(){this.value=this.textarea.value,this.input.emit(this.value)}handleClear(t){this.textarea.value="",this.value="",this.clear.emit(),this.textarea.focus(),t.stopPropagation()}render(){const{_id:t,hidden:s,readonly:h,fullWidth:n,size:o,rows:d,disabled:p,clearable:u,label:m,focused:b,noCaption:f,caption:y,captionError:C,captionType:g,value:j,resize:w,maxLength:v,placeholder:B,required:x}=this,z=r("bcm-input",{hidden:s,"full-width":n});return i(e,{class:z},m&&i("bcm-label",{type:g,value:m,required:x,htmlFor:t}),i(c,{elementType:a.HtmlElementType.textarea,id:t,value:j,rows:d,disabled:p,maxLength:v,placeholder:B,clearable:u,resize:w,readonly:h,size:o,focused:b,handleFocus:()=>this.handleFocus(),handleBlur:()=>this.handleBlur(),handleChange:()=>this.handleChange(),handleInput:()=>this.handleInput(),handleClear:t=>this.handleClear(t),ref:t=>this.textarea=t}),i(l,{noCaption:f,captionType:g,captionError:C,caption:y,value:j,maxLength:v}))}static get watchers(){return{value:["watchValue"]}}};export{d as bcm_textarea}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as e,H as r,g as i}from"./p-9d960649.js";import{G as o}from"./p-124d8fc2.js";import"./p-7e73190d.js";import"./p-112455b1.js";import{s as d}from"./p-6d018a8f.js";import{S as a}from"./p-a69c842b.js";const l=class{constructor(e){t(this,e),this.bcmItems=s(this,"bcm-items",7),this._id=o.UID()}connectedCallback(){if(this.el.children&&this.el.children.length>0){let t=d((()=>{var t;return Array.from(null===(t=this.el)||void 0===t?void 0:t.children).map((t=>({id:t.getAttribute("id")||o.UID(),text:t.getAttribute("text")||t.textContent.trim(),isHtmlContent:t.innerHTML.trim(),disabled:a.elementBooleanCheck(t.getAttribute("disabled")),selected:a.elementBooleanCheck(t.getAttribute("selected")),checked:a.elementBooleanCheck(t.getAttribute("checked")),readonly:a.elementBooleanCheck(t.getAttribute("readonly"))})))}),[]);this.bcmItems.emit(t),this.el.remove()}}render(){return e(r,null,e("slot",null))}get el(){return i(this)}};export{l as bcm_items}
|