bromcom-ui 2.6.2-rc.0 → 2.6.2-rc.1
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.esm.js +1 -1
- package/dist/bromcom-ui/{p-3b501ebc.entry.js → p-033d4da7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-214f509f.entry.js → p-15bf77d0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-00548093.entry.js → p-18058353.entry.js} +1 -1
- package/dist/bromcom-ui/{p-060d4830.entry.js → p-27296867.entry.js} +1 -1
- package/dist/bromcom-ui/{p-887aaa28.entry.js → p-2a982545.entry.js} +1 -1
- package/dist/bromcom-ui/{p-31006673.entry.js → p-2d1abb9c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fa39a9d9.entry.js → p-32a5f072.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7d69ad88.entry.js → p-35d7a019.entry.js} +1 -1
- package/dist/bromcom-ui/{p-adc6873e.js → p-391795a8.js} +1 -1
- package/dist/bromcom-ui/{p-703b569b.entry.js → p-3a16fe4c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-15451ea8.entry.js → p-3eada5da.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3253a7db.entry.js → p-44e3abeb.entry.js} +1 -1
- package/dist/bromcom-ui/p-499dc051.entry.js +1 -0
- package/dist/bromcom-ui/{p-69abf1f9.entry.js → p-4d8aa25e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2fc3d7c4.entry.js → p-6201fa37.entry.js} +1 -1
- package/dist/bromcom-ui/p-639d919a.entry.js +1 -0
- package/dist/bromcom-ui/p-6e266ed0.js +1 -0
- package/dist/bromcom-ui/{p-231f8e6e.entry.js → p-79105792.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5a003304.entry.js → p-7eda3154.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9831c2e5.entry.js → p-7f278eb3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c45140e8.entry.js → p-919b8d62.entry.js} +1 -1
- package/dist/bromcom-ui/p-9950326d.entry.js +1 -0
- package/dist/bromcom-ui/{p-2f83346d.entry.js → p-a20d0bc4.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e760cf4c.entry.js → p-b3544e64.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9ad319db.entry.js → p-c587a419.entry.js} +1 -1
- package/dist/bromcom-ui/p-ccb81d54.entry.js +1 -0
- package/dist/bromcom-ui/{p-c6afbd41.entry.js → p-ce0d01ca.entry.js} +1 -1
- package/dist/bromcom-ui/{p-cf71c42c.js → p-d1362d26.js} +1 -1
- package/dist/bromcom-ui/{p-6eb857e2.entry.js → p-dc7fd238.entry.js} +1 -1
- package/dist/bromcom-ui/p-e135888f.entry.js +1 -0
- package/dist/bromcom-ui/{p-24b2b16a.entry.js → p-fd48dffe.entry.js} +1 -1
- package/dist/bromcom-ui/{p-af88e6ae.entry.js → p-fda217dd.entry.js} +1 -1
- package/package.json +1 -1
- package/dist/bromcom-ui/p-141a3020.entry.js +0 -1
- package/dist/bromcom-ui/p-4bbe0b4e.entry.js +0 -1
- package/dist/bromcom-ui/p-8be6b27e.entry.js +0 -1
- package/dist/bromcom-ui/p-9a366681.entry.js +0 -1
- package/dist/bromcom-ui/p-cd548f6c.entry.js +0 -1
- package/dist/bromcom-ui/p-f0f84c9e.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,H as e}from"./p-9d960649.js";import{G as a}from"./p-
|
|
1
|
+
import{r as t,c as s,h as i,H as e}from"./p-9d960649.js";import{G as a}from"./p-391795a8.js";import{B as h}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 o}from"./p-faaebe40.js";var c;!function(t){t.none="none",t.both="both",t.horizontal="horizontal",t.vertical="vertical",t.initial="initial",t.inherit="inherit"}(c||(c={}));const p=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=a.UID(),this._internal_id=a.UID(),this.hidden=!1,this.required=!1,this.noCaption=!1,this.captionType=h.Status.default,this.rows=3,this.size=h.Size.medium,this.readonly=!1,this.resize=c.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(){return await n(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await n(10),Promise.resolve()}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:a,fullWidth:n,size:c,rows:p,disabled:u,clearable:d,label:m,focused:b,noCaption:f,caption:y,captionError:w,captionType:C,value:g,resize:j,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:C,value:m,required:x,htmlFor:t}),i(o,{elementType:h.HtmlElementType.textarea,id:t,value:g,rows:p,disabled:u,maxLength:v,placeholder:B,clearable:d,resize:j,readonly:a,size:c,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:C,captionError:w,caption:y,value:g,maxLength:v}))}static get watchers(){return{value:["watchValue"]}}};export{p as bcm_textarea}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as e,H as i,g as a}from"./p-9d960649.js";import{I as r}from"./p-407ce259.js";import{G as h}from"./p-391795a8.js";import"./p-112455b1.js";import{c as p}from"./p-7294ec8e.js";import"./p-6d018a8f.js";import"./p-a8b797d7.js";import{A as c}from"./p-6e266ed0.js";import{s as o}from"./p-d1362d26.js";var n=function(t,s,e,i){var a,r=arguments.length,h=r<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,s,e,i);else for(var p=t.length-1;p>=0;p--)(a=t[p])&&(h=(r<3?a(h):r>3?a(s,e,h):a(s,e))||h);return r>3&&h&&Object.defineProperty(s,e,h),h};const d=class{constructor(e){t(this,e),this.dataIsLoaded=s(this,"data-is-loaded",7),this.bcmChangeHidden=s(this,"bcm-change-hidden",7),this.hidden=!1,this._id=h.UID(),this.status="default",this.loading=!1,this.valid=!0,this.active=!1,this.isLast=!1,this.disabled=!1}componentDidLoad(){this.isLast&&this.dataIsLoaded.emit(!0)}getStepper(){return this.el.closest("bcm-stepper")||null}activeChanged(){if(this.active){const t=this.getStepper();t&&o.changeStepDisabled(t.id,this._id,!1)}}statusChange(){const t=this.getStepper();t&&o.changeStepStatus(t.id,this._id,this.status)}hiddenChange(t,s){const e=this.getStepper();t!==s&&e&&!this.active&&this.bcmChangeHidden.emit(t)}render(){const{hidden:t,valid:s,active:a}=this,r=p("bcm-stepper__step",s?"bcm-stepper__step-valid":"bcm-stepper__step-invalid",{"bcm-stepper__step-active":a,hidden:t});return e(i,{class:r},e("slot",null))}get el(){return a(this)}static get watchers(){return{active:["activeChanged"],status:["statusChange"],hidden:["hiddenChange"]}}};n([r()],d.prototype,"el",void 0),n([c("title")],d.prototype,"_title",void 0);export{d as bcm_step}
|