@florid-kit/components 2.6.0 → 2.6.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/index.js +2 -2
- package/index.mjs +4 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -5027,7 +5027,7 @@
|
|
|
5027
5027
|
:host([state="success"]) .helper-text o-icon-button {
|
|
5028
5028
|
--color-content-action-primary: var(--color-content-success, #3b7902);
|
|
5029
5029
|
}
|
|
5030
|
-
`;O([s({type:String})],M.prototype,"label",2);O([s({type:String})],M.prototype,"value",2);O([s({type:String})],M.prototype,"placeholder",2);O([s({type:String,attribute:"helper-text"})],M.prototype,"helperText",2);O([s({type:String,reflect:!0})],M.prototype,"state",2);O([s({type:Boolean,reflect:!0})],M.prototype,"disabled",2);O([s({type:String,attribute:"leading-icon"})],M.prototype,"leadingIcon",2);O([s({type:String,attribute:"trailing-icon"})],M.prototype,"trailingIcon",2);O([s({type:String})],M.prototype,"name",2);O([s({type:Boolean})],M.prototype,"required",2);O([s({type:String,attribute:"clear-label"})],M.prototype,"clearLabel",2);O([s({type:String,reflect:!0,attribute:"input-id"})],M.prototype,"inputId",2);O([O1("input")],M.prototype,"inputEl",2);M=O([u("o-input")],M);var he=Object.defineProperty,de=Object.getOwnPropertyDescriptor,P=(e,t,i,n)=>{for(var o=n>1?void 0:n?de(t,i):t,r=e.length-1,l;r>=0;r--)(l=e[r])&&(o=(n?l(t,i,o):l(o))||o);return n&&o&&he(t,i,o),o};const pe=Q1(p);let Ce=0,k=class extends pe{constructor(){super(),this.label="",this.value="",this.placeholder="",this.helperText="",this.state="default",this.disabled=!1,this.name="",this.required=!1,this.rows=3,this.resize="none",this.textareaId="",this.textareaId||(this.textareaId=`o-textarea-${++Ce}`)}updated(e){(e.has("value")||e.has("name"))&&this[$1].setFormValue(this.value)}formResetCallback(){this.value="",this[$1].setFormValue("")}handleInput(e){e.stopPropagation();const t=e.target;this.value=t.value,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}handleChange(e){e.stopPropagation();const t=e.target;this.value=t.value,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}renderHelperIcon(){return this.state==="success"?a`<o-icon-button type="span" icon="occ-check-filled" bgstyle="none-light" size="small"></o-icon-button>`:this.state==="error"?a`<o-icon-button type="span" icon="occ-warning" bgstyle="none-light" size="small"></o-icon-button>`:c}render(){return a`
|
|
5030
|
+
`;O([s({type:String})],M.prototype,"label",2);O([s({type:String,reflect:!0})],M.prototype,"value",2);O([s({type:String,reflect:!0})],M.prototype,"placeholder",2);O([s({type:String,attribute:"helper-text"})],M.prototype,"helperText",2);O([s({type:String,reflect:!0})],M.prototype,"state",2);O([s({type:Boolean,reflect:!0})],M.prototype,"disabled",2);O([s({type:String,attribute:"leading-icon"})],M.prototype,"leadingIcon",2);O([s({type:String,attribute:"trailing-icon"})],M.prototype,"trailingIcon",2);O([s({type:String})],M.prototype,"name",2);O([s({type:Boolean})],M.prototype,"required",2);O([s({type:String,attribute:"clear-label"})],M.prototype,"clearLabel",2);O([s({type:String,reflect:!0,attribute:"input-id"})],M.prototype,"inputId",2);O([O1("input")],M.prototype,"inputEl",2);M=O([u("o-input")],M);var he=Object.defineProperty,de=Object.getOwnPropertyDescriptor,P=(e,t,i,n)=>{for(var o=n>1?void 0:n?de(t,i):t,r=e.length-1,l;r>=0;r--)(l=e[r])&&(o=(n?l(t,i,o):l(o))||o);return n&&o&&he(t,i,o),o};const pe=Q1(p);let Ce=0,k=class extends pe{constructor(){super(),this.label="",this.value="",this.placeholder="",this.helperText="",this.state="default",this.disabled=!1,this.name="",this.required=!1,this.rows=3,this.resize="none",this.textareaId="",this.textareaId||(this.textareaId=`o-textarea-${++Ce}`)}updated(e){(e.has("value")||e.has("name"))&&this[$1].setFormValue(this.value)}formResetCallback(){this.value="",this[$1].setFormValue("")}handleInput(e){e.stopPropagation();const t=e.target;this.value=t.value,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}handleChange(e){e.stopPropagation();const t=e.target;this.value=t.value,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}renderHelperIcon(){return this.state==="success"?a`<o-icon-button type="span" icon="occ-check-filled" bgstyle="none-light" size="small"></o-icon-button>`:this.state==="error"?a`<o-icon-button type="span" icon="occ-warning" bgstyle="none-light" size="small"></o-icon-button>`:c}render(){return a`
|
|
5031
5031
|
${this.label?a`<label class="label" for=${this.textareaId}>${this.label}</label>`:c}
|
|
5032
5032
|
|
|
5033
5033
|
<div class="textarea-wrapper">
|
|
@@ -5208,7 +5208,7 @@
|
|
|
5208
5208
|
:host([state="success"]) .helper-text o-icon-button {
|
|
5209
5209
|
--color-content-action-primary: var(--color-content-success, #3b7902);
|
|
5210
5210
|
}
|
|
5211
|
-
`;P([s({type:String})],k.prototype,"label",2);P([s({type:String})],k.prototype,"value",2);P([s({type:String})],k.prototype,"placeholder",2);P([s({type:String,attribute:"helper-text"})],k.prototype,"helperText",2);P([s({type:String,reflect:!0})],k.prototype,"state",2);P([s({type:Boolean,reflect:!0})],k.prototype,"disabled",2);P([s({type:String})],k.prototype,"name",2);P([s({type:Boolean})],k.prototype,"required",2);P([s({type:Number})],k.prototype,"rows",2);P([s({type:String,reflect:!0})],k.prototype,"resize",2);P([s({type:String,reflect:!0,attribute:"textarea-id"})],k.prototype,"textareaId",2);P([O1("textarea")],k.prototype,"textareaEl",2);k=P([u("o-textarea")],k);var ue=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,s1=(e,t,i,n)=>{for(var o=n>1?void 0:n?ge(t,i):t,r=e.length-1,l;r>=0;r--)(l=e[r])&&(o=(n?l(t,i,o):l(o))||o);return n&&o&&ue(t,i,o),o};let z=class extends p{constructor(){super(...arguments),this.label="",this.value="",this.placeholder="Search...",this.helperText="",this.state="default",this.disabled=!1,this.theme="default",this.trigger="input"}dispatchSearch(){var e;this.dispatchEvent(new CustomEvent("search",{detail:{value:this.value},bubbles:!0,composed:!0})),(e=this.onSearch)==null||e.call(this,this.value)}handleInput(e){const t=e.target;this.value=t.value,this.trigger==="input"&&this.dispatchSearch()}handleKeyDown(e){e.key==="Enter"&&this.trigger==="enter"&&this.dispatchSearch()}handleChange(){this.trigger==="change"&&this.dispatchSearch()}render(){return a`
|
|
5211
|
+
`;P([s({type:String})],k.prototype,"label",2);P([s({type:String,reflect:!0})],k.prototype,"value",2);P([s({type:String,reflect:!0})],k.prototype,"placeholder",2);P([s({type:String,attribute:"helper-text"})],k.prototype,"helperText",2);P([s({type:String,reflect:!0})],k.prototype,"state",2);P([s({type:Boolean,reflect:!0})],k.prototype,"disabled",2);P([s({type:String})],k.prototype,"name",2);P([s({type:Boolean})],k.prototype,"required",2);P([s({type:Number})],k.prototype,"rows",2);P([s({type:String,reflect:!0})],k.prototype,"resize",2);P([s({type:String,reflect:!0,attribute:"textarea-id"})],k.prototype,"textareaId",2);P([O1("textarea")],k.prototype,"textareaEl",2);k=P([u("o-textarea")],k);var ue=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,s1=(e,t,i,n)=>{for(var o=n>1?void 0:n?ge(t,i):t,r=e.length-1,l;r>=0;r--)(l=e[r])&&(o=(n?l(t,i,o):l(o))||o);return n&&o&&ue(t,i,o),o};let z=class extends p{constructor(){super(...arguments),this.label="",this.value="",this.placeholder="Search...",this.helperText="",this.state="default",this.disabled=!1,this.theme="default",this.trigger="input"}dispatchSearch(){var e;this.dispatchEvent(new CustomEvent("search",{detail:{value:this.value},bubbles:!0,composed:!0})),(e=this.onSearch)==null||e.call(this,this.value)}handleInput(e){const t=e.target;this.value=t.value,this.trigger==="input"&&this.dispatchSearch()}handleKeyDown(e){e.key==="Enter"&&this.trigger==="enter"&&this.dispatchSearch()}handleChange(){this.trigger==="change"&&this.dispatchSearch()}render(){return a`
|
|
5212
5212
|
<o-input
|
|
5213
5213
|
label=${this.label}
|
|
5214
5214
|
value=${this.value}
|
package/index.mjs
CHANGED
|
@@ -8221,10 +8221,10 @@ O([
|
|
|
8221
8221
|
s({ type: String })
|
|
8222
8222
|
], M.prototype, "label", 2);
|
|
8223
8223
|
O([
|
|
8224
|
-
s({ type: String })
|
|
8224
|
+
s({ type: String, reflect: !0 })
|
|
8225
8225
|
], M.prototype, "value", 2);
|
|
8226
8226
|
O([
|
|
8227
|
-
s({ type: String })
|
|
8227
|
+
s({ type: String, reflect: !0 })
|
|
8228
8228
|
], M.prototype, "placeholder", 2);
|
|
8229
8229
|
O([
|
|
8230
8230
|
s({ type: String, attribute: "helper-text" })
|
|
@@ -8483,10 +8483,10 @@ P([
|
|
|
8483
8483
|
s({ type: String })
|
|
8484
8484
|
], k.prototype, "label", 2);
|
|
8485
8485
|
P([
|
|
8486
|
-
s({ type: String })
|
|
8486
|
+
s({ type: String, reflect: !0 })
|
|
8487
8487
|
], k.prototype, "value", 2);
|
|
8488
8488
|
P([
|
|
8489
|
-
s({ type: String })
|
|
8489
|
+
s({ type: String, reflect: !0 })
|
|
8490
8490
|
], k.prototype, "placeholder", 2);
|
|
8491
8491
|
P([
|
|
8492
8492
|
s({ type: String, attribute: "helper-text" })
|