@rarui/components 1.24.2-rc.4 → 1.24.2-rc.6
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/custom-elements.json +16 -1
- package/dist/index.d.ts +12 -0
- package/dist/index.js +1 -2
- package/package.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.24.2-rc.
|
|
2
|
+
"version": "1.24.2-rc.6",
|
|
3
3
|
"tags": [
|
|
4
4
|
{
|
|
5
5
|
"name": "rarui-avatar",
|
|
@@ -2633,11 +2633,26 @@
|
|
|
2633
2633
|
"type": "boolean",
|
|
2634
2634
|
"default": false
|
|
2635
2635
|
},
|
|
2636
|
+
{
|
|
2637
|
+
"name": "label",
|
|
2638
|
+
"description": "The label of the checkbox for form submission.",
|
|
2639
|
+
"type": "string"
|
|
2640
|
+
},
|
|
2636
2641
|
{
|
|
2637
2642
|
"name": "name",
|
|
2638
2643
|
"description": "The name of the checkbox for form submission.",
|
|
2639
2644
|
"type": "string"
|
|
2640
2645
|
},
|
|
2646
|
+
{
|
|
2647
|
+
"name": "disabled",
|
|
2648
|
+
"description": "The name of the checkbox for form submission.",
|
|
2649
|
+
"type": "boolean"
|
|
2650
|
+
},
|
|
2651
|
+
{
|
|
2652
|
+
"name": "id",
|
|
2653
|
+
"description": "The id of the checkbox for form submission.\n\n(Required)",
|
|
2654
|
+
"type": "string"
|
|
2655
|
+
},
|
|
2641
2656
|
{
|
|
2642
2657
|
"name": "value",
|
|
2643
2658
|
"description": "The value of the checkbox when checked for form submission.",
|
package/dist/index.d.ts
CHANGED
|
@@ -18782,10 +18782,22 @@ type CheckboxManifestProperties = Pick<CheckboxProps, "error" | "size" | "indete
|
|
|
18782
18782
|
* @default false
|
|
18783
18783
|
*/
|
|
18784
18784
|
readonly?: boolean;
|
|
18785
|
+
/**
|
|
18786
|
+
* The label of the checkbox for form submission.
|
|
18787
|
+
*/
|
|
18788
|
+
label?: string;
|
|
18785
18789
|
/**
|
|
18786
18790
|
* The name of the checkbox for form submission.
|
|
18787
18791
|
*/
|
|
18788
18792
|
name?: string;
|
|
18793
|
+
/**
|
|
18794
|
+
* The name of the checkbox for form submission.
|
|
18795
|
+
*/
|
|
18796
|
+
disabled?: boolean;
|
|
18797
|
+
/**
|
|
18798
|
+
* The id of the checkbox for form submission.
|
|
18799
|
+
*/
|
|
18800
|
+
id: string;
|
|
18789
18801
|
/**
|
|
18790
18802
|
* The value of the checkbox when checked for form submission.
|
|
18791
18803
|
*/
|
package/dist/index.js
CHANGED
|
@@ -408,7 +408,7 @@ const bo=Symbol.for(""),xo=r=>{if(r?.r===bo)return r?._$litStatic$},go=r=>({_$li
|
|
|
408
408
|
:host([full]) {
|
|
409
409
|
width: 100%;
|
|
410
410
|
}
|
|
411
|
-
`,r([fr({type:String})],Ea.prototype,"type",void 0),r([fr({type:String})],Ea.prototype,"size",void 0),r([fr({type:String})],Ea.prototype,"variant",void 0),r([fr({type:String})],Ea.prototype,"appearance",void 0),r([fr({type:Boolean,converter:r=>"false"!==r})],Ea.prototype,"disabled",void 0),r([fr({type:Boolean,converter:r=>"false"!==r})],Ea.prototype,"full",void 0),r([fr({type:String})],Ea.prototype,"name",void 0),r([fr({type:String})],Ea.prototype,"value",void 0),r([fr({type:String})],Ea.prototype,"form",void 0),Ea=r([_r("rarui-button")],Ea);let Pa=class extends er{constructor(){super(),this.size="medium",this.error=!1,this.indeterminate=!1,this.disabled=!1,this.checked=!1,this.readonly=!1,this.required=!1,this._hasCheckedAttribute=!1,this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this._hasCheckedAttribute=this.hasAttribute("checked"),document.addEventListener("rarui-label-click",this._handleLabelClick.bind(this))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("rarui-label-click",this._handleLabelClick.bind(this))}attributeChangedCallback(r,i,o){super.attributeChangedCallback(r,i,o),"checked"===r&&(this._hasCheckedAttribute=null!==o)}updated(r){super.updated(r),r.has("checked")&&this.input&&this._hasCheckedAttribute&&(this.input.checked=this.checked)}render(){return N`
|
|
411
|
+
`,r([fr({type:String})],Ea.prototype,"type",void 0),r([fr({type:String})],Ea.prototype,"size",void 0),r([fr({type:String})],Ea.prototype,"variant",void 0),r([fr({type:String})],Ea.prototype,"appearance",void 0),r([fr({type:Boolean,converter:r=>"false"!==r})],Ea.prototype,"disabled",void 0),r([fr({type:Boolean,converter:r=>"false"!==r})],Ea.prototype,"full",void 0),r([fr({type:String})],Ea.prototype,"name",void 0),r([fr({type:String})],Ea.prototype,"value",void 0),r([fr({type:String})],Ea.prototype,"form",void 0),Ea=r([_r("rarui-button")],Ea);let Pa=class extends er{constructor(){super(),this.size="medium",this.error=!1,this.indeterminate=!1,this.disabled=!1,this.checked=!1,this.readonly=!1,this.required=!1,this._hasCheckedAttribute=!1,this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this._hasCheckedAttribute=this.hasAttribute("checked"),document.addEventListener("rarui-label-click",this._handleLabelClick.bind(this))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("rarui-label-click",this._handleLabelClick.bind(this))}attributeChangedCallback(r,i,o){super.attributeChangedCallback(r,i,o),"checked"===r&&(this._hasCheckedAttribute=null!==o)}updated(r){super.updated(r),r.has("checked")&&this.input&&this._hasCheckedAttribute&&(this.input.checked=this.checked)}render(){return console.log("lanel render",this.label),N`
|
|
412
412
|
<label
|
|
413
413
|
for="${this.readonly?"":this.id??""}"
|
|
414
414
|
class="${Dr.classnames.label({error:this.error})}"
|
|
@@ -569,7 +569,6 @@ const bo=Symbol.for(""),xo=r=>{if(r?.r===bo)return r?._$litStatic$},go=r=>({_$li
|
|
|
569
569
|
<input
|
|
570
570
|
type="${gr(this.type)}"
|
|
571
571
|
name="${gr(this.name)}"
|
|
572
|
-
id="${gr(this.id)}"
|
|
573
572
|
form="${gr(this.form)}"
|
|
574
573
|
class="${ni.classnames.input({size:this.size,divider:!(!r&&!i)&&this.divider})}"
|
|
575
574
|
.value="${this.value}"
|