@e-xode/vui 0.7.2 → 0.7.3
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/{checkbox-Qcc2Y3jj.js → checkbox-CezXn9-X.js} +4 -4
- package/dist/checkbox-sDZAnUiA.js +1 -0
- package/dist/doc/assets/{alert-DdLr0KCt.js → alert-8Rttk9yu.js} +1 -1
- package/dist/doc/assets/{alert-CBk8WJSH.js → alert-Cl9jlikY.js} +1 -1
- package/dist/doc/assets/{button-Cbqxv1An.js → button-BnuGfmWf.js} +1 -1
- package/dist/doc/assets/{button-BJTrUZL_.js → button-D2nGyV-k.js} +1 -1
- package/dist/doc/assets/{card-B7R31mfQ.js → card-CIZGN-ZR.js} +1 -1
- package/dist/doc/assets/{card-DgJ2ukcm.js → card-DLUQlhvM.js} +1 -1
- package/dist/doc/assets/{checkbox-CuN3VaqR.js → checkbox-CLQmdWzB.js} +1 -1
- package/dist/doc/assets/checkbox-tHAt76NZ.js +1 -0
- package/dist/doc/assets/{component-B-dcgOHa.js → component-DYsSorq5.js} +1 -1
- package/dist/doc/assets/{default-DahVE7fk.js → default-n0XwPIs9.js} +1 -1
- package/dist/doc/assets/{demonstrable-DecbLsKO.js → demonstrable-BAeLg1x3.js} +1 -1
- package/dist/doc/assets/{dropdown-CqIeMWQe.js → dropdown-DqCVNMcJ.js} +1 -1
- package/dist/doc/assets/{dropdown-9SF172nG.js → dropdown-OMeNFUqR.js} +1 -1
- package/dist/doc/assets/{footer-BK4bOi8N.js → footer-ByOLs7vh.js} +1 -1
- package/dist/doc/assets/{footer-DctUwKV7.js → footer-DeK1CZgc.js} +1 -1
- package/dist/doc/assets/{form-GyGTZcLo.js → form-BBxTwRyA.js} +1 -1
- package/dist/doc/assets/{form-B4X9buyb.js → form-D98MdjXW.js} +1 -1
- package/dist/doc/assets/{grid-NCb6VTjv.js → grid-B-RjBYp0.js} +1 -1
- package/dist/doc/assets/{grid-jzNVMl5f.js → grid-C7ZlqbOM.js} +1 -1
- package/dist/doc/assets/{header-D94OYVyA.js → header-B3PMmLqd.js} +1 -1
- package/dist/doc/assets/{header-CxC5fR6N.js → header-D8EgX9oX.js} +1 -1
- package/dist/doc/assets/{index-B04yxJIQ.js → index-B3xm9a7h.js} +3 -3
- package/dist/doc/assets/{index-CGCL1hLO.js → index-C8jD1yF4.js} +1 -1
- package/dist/doc/assets/{input-CYhOxmCc.js → input-C4l0nUJQ.js} +1 -1
- package/dist/doc/assets/input-CvF9PMC5.js +1 -0
- package/dist/doc/assets/{list-IfD6-Vht.js → list-BX0o43BO.js} +1 -1
- package/dist/doc/assets/{list-DCYteIIG.js → list-kVXLwBrO.js} +1 -1
- package/dist/doc/assets/{loader-Dkbs5SEt.js → loader-C5HB7ek9.js} +1 -1
- package/dist/doc/assets/{loader-D3Y5I701.js → loader-CWDpLVg8.js} +1 -1
- package/dist/doc/assets/{modal-CsnSl4Rm.js → modal-3t6vVSix.js} +1 -1
- package/dist/doc/assets/{modal-Cma1RxxS.js → modal-Cby_fcIc.js} +1 -1
- package/dist/doc/assets/{nav-DH7NXSpG.js → nav-By3YGPfa.js} +1 -1
- package/dist/doc/assets/{nav-VBfZayJE.js → nav-vTxyglzn.js} +1 -1
- package/dist/doc/assets/{page-K4nFWdV1.js → page-Bevk66c3.js} +1 -1
- package/dist/doc/assets/{page-D1_rHvrQ.js → page-CSJXKcsD.js} +1 -1
- package/dist/doc/assets/{pager-BaNs9vWb.js → pager-Bra0mA5b.js} +1 -1
- package/dist/doc/assets/{pager-DQSvQJyT.js → pager-CqIruhwG.js} +1 -1
- package/dist/doc/assets/{progress-Dp_xiVtW.js → progress-Bzgvw1h0.js} +1 -1
- package/dist/doc/assets/{progress-C1eih1jx.js → progress-CSablIYY.js} +1 -1
- package/dist/doc/assets/radio-Dq2UJ75m.js +1 -0
- package/dist/doc/assets/{radio-Dl6mdb0u.js → radio-MX2fi8YE.js} +1 -1
- package/dist/doc/assets/{stars-Y5vRxqqG.js → stars-C6KEUmeB.js} +1 -1
- package/dist/doc/assets/{stars-B2k_QKWQ.js → stars-DVajAulQ.js} +1 -1
- package/dist/doc/assets/{start-ch2Yz3tt.js → start-H1r3K_bp.js} +1 -1
- package/dist/doc/assets/{table-oKEFrCq6.js → table-BM5dQX27.js} +1 -1
- package/dist/doc/assets/{table-ElyVAsf5.js → table-Cq7J2jpj.js} +1 -1
- package/dist/doc/assets/{tabs-uXNoMzqe.js → tabs-BEURkqhc.js} +1 -1
- package/dist/doc/assets/{tabs-E39pEu5a.js → tabs-DUliEms8.js} +1 -1
- package/dist/doc/assets/{tag-9H0iNBbV.js → tag-DvzISO1o.js} +1 -1
- package/dist/doc/assets/{tag-xtszhCca.js → tag-GD0nTzc5.js} +1 -1
- package/dist/doc/assets/{toggle-UGtlNhbD.js → toggle-B_0Z212b.js} +1 -1
- package/dist/doc/assets/{toggle-DZitOlDa.js → toggle-xpysr4Y5.js} +1 -1
- package/dist/doc/assets/{tooltip-DMC2cS7d.js → tooltip-Bslu0cSi.js} +1 -1
- package/dist/doc/assets/{tooltip-at6r_CGf.js → tooltip-DL7ojxlq.js} +1 -1
- package/dist/doc/assets/{translatable-CrjU8ZOm.js → translatable-Bd84jMZo.js} +1 -1
- package/dist/doc/assets/{unit-kByK2jlm.js → unit-BX0jrls7.js} +1 -1
- package/dist/doc/assets/{unit-D7w7Ta0Q.js → unit-DmkhvKjy.js} +1 -1
- package/dist/doc/index.html +1 -1
- package/dist/{dropdown-Cql-u7fh.js → dropdown-7LJE0jcf.js} +1 -1
- package/dist/{dropdown-6d036roU.js → dropdown-BArYbp8p.js} +1 -1
- package/dist/input-BdNDl9Hu.js +1 -0
- package/dist/{input-DkYUu1MY.js → input-Ccz7I5Ae.js} +4 -4
- package/dist/radio-B7uNjWD3.js +1 -0
- package/dist/{radio-CzWvdO-G.js → radio-Ce5EpDEt.js} +13 -13
- package/dist/vui.esm.js +1 -1
- package/dist/vui.js +1 -1
- package/dist/vui.umd.js +1 -1
- package/package.json +1 -1
- package/dist/checkbox-BP2ttYER.js +0 -1
- package/dist/doc/assets/checkbox-DtRjEdeM.js +0 -1
- package/dist/doc/assets/input-BcHANWts.js +0 -1
- package/dist/doc/assets/radio-CDhfQM0f.js +0 -1
- package/dist/input-DaLYtDC8.js +0 -1
- package/dist/radio-BlBm-IvA.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n}from"./composable-CshUTKfl.js";import{t as r}from"./translatable-
|
|
1
|
+
import{c as n}from"./composable-CshUTKfl.js";import{t as r}from"./translatable-Bd84jMZo.js";import l from"./alert-8Rttk9yu.js";import{_ as i,h as p,w as d,n as e,r as c,o as u,j as s,d as a,t as m}from"./index-B3xm9a7h.js";const f={"component.loader.text":"It's loading..."},$={},v={en:f,fr:$},h={icon:{type:String,default:"fa-sharp fa-solid fa-spinner"},text:{type:String}},g={name:"VuiLoader",components:{VuiAlert:l},mixins:[n],props:h,created(){r(v)}},y={class:"vui-loader-body"};function b(o,S,V,B,C,_){const t=c("vui-alert");return u(),p(t,{id:o.componentId,class:e(["vui-loader",`vui-loader--${o.layout}`,{"vui-loader--flat":o.hasAttribute("flat")},o.$props.class])},{default:d(()=>[s(o.$slots,"prepend"),s(o.$slots,"icon",{},()=>[a("i",{class:e(["vui-loader-icon",o.icon])},null,2)]),s(o.$slots,"default",{},()=>[a("span",y,m(o.text?o.text:o.$t("component.loader.text")),1)]),s(o.$slots,"append")]),_:3},8,["id","class"])}const L=i(g,[["render",b]]);export{L as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as h}from"./demonstrable-
|
|
1
|
+
import{d as h}from"./demonstrable-BAeLg1x3.js";import{t as f}from"./translatable-Bd84jMZo.js";import y from"./loader-C5HB7ek9.js";import{_,a as s,b as t,w as l,r as d,o as a,F as i,g as v,h as b,m as x,i as S,d as n,t as p}from"./index-B3xm9a7h.js";import"./composable-CshUTKfl.js";import"./alert-8Rttk9yu.js";const m={attrs:[{name:"flat",text:"page.component.loader.doc.attr.flat"}],examples:[{markup:`
|
|
2
2
|
<vui-loader
|
|
3
3
|
text="It's loading..."
|
|
4
4
|
>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import u from"./button-
|
|
1
|
+
import u from"./button-D2nGyV-k.js";import{c as h}from"./composable-CshUTKfl.js";import{t as m}from"./translatable-Bd84jMZo.js";import{_ as c,a as t,j as i,d as p,t as f,f as o,h as b,n as V,r as v,o as s}from"./index-B3xm9a7h.js";import"./animable-S5zFcxd4.js";const y={"component.button.close":"Close"},k={},g={en:y,fr:k},C={loading:{type:Boolean},modelValue:{default:void 0,type:Boolean},showFooter:{type:Boolean},showFooterClose:{type:Boolean},showHeader:{type:Boolean},showHeaderClose:{type:Boolean},title:{type:String},value:{default:void 0,type:Boolean}},B={name:"VuiModal",components:{VuiButton:u},mixins:[h],props:C,emits:["update:model-value"],data(){return{isVisible:!1}},computed:{isHeaderVisible(){return this.$slots.header||this.showHeader||this.showHeaderClose},isFooterVisible(){return this.$slots.footer||this.showFooter||this.showFooterClose}},watch:{modelValue(e){this.isVisible=e},value(e){this.isVisible=e}},created(){m(g),this.hasModelValue?this.isVisible=this.modelValue:this.hasValue&&(this.isVisible=this.value)},methods:{onToggle(){this.disabled||(this.isVisible=!this.isVisible,this.$emit("update:model-value",this.isVisible))}}},w=["id"],$={class:"vui-modal-content"},H={key:0,class:"vui-modal-content-header"},_={key:0,class:"vui-modal-content-header-title"},F={key:1,class:"vui-modal-content-body"},T={key:2,class:"vui-modal-content-footer"};function M(e,a,S,N,n,l){const r=v("vui-button");return n.isVisible?(s(),t("div",{key:0,id:e.componentId,class:V(["vui-modal",e.$props.class])},[i(e.$slots,"prepend"),p("div",$,[l.isHeaderVisible?(s(),t("div",H,[e.title?(s(),t("span",_,f(e.title),1)):o("",!0),e.showHeaderClose?(s(),t("i",{key:1,class:"fa-regular fa-circle-xmark",onClick:a[0]||(a[0]=(...d)=>l.onToggle&&l.onToggle(...d))})):o("",!0),i(e.$slots,"header")])):o("",!0),e.$slots.body||e.$slots.default?(s(),t("div",F,[i(e.$slots,"body"),i(e.$slots,"default")])):o("",!0),l.isFooterVisible?(s(),t("div",T,[e.showHeaderClose?(s(),b(r,{key:0,text:e.$t("component.button.close"),onClick:l.onToggle},null,8,["text","onClick"])):o("",!0),i(e.$slots,"footer")])):o("",!0)]),i(e.$slots,"append")],10,w)):o("",!0)}const q=c(B,[["render",M]]);export{q as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as w}from"./demonstrable-
|
|
1
|
+
import{d as w}from"./demonstrable-BAeLg1x3.js";import{t as C}from"./translatable-Bd84jMZo.js";import x from"./modal-3t6vVSix.js";import{_ as V,a as s,b as e,w as t,r as a,o as p,F as h,g as B,e as H,t as l,m as k,d as n}from"./index-B3xm9a7h.js";import"./button-D2nGyV-k.js";import"./animable-S5zFcxd4.js";import"./composable-CshUTKfl.js";const F={"page.component.modal.example-1":"modal example","page.component.modal.click-to-open":"click to open","page.component.modal.content":"My modal content","page.component.modal.title":"My modal title","page.component.modal.doc.prop.loading":"Binds the loading state","page.component.modal.doc.prop.showFooter":"Enables the modal footer","page.component.modal.doc.prop.showFooterClose":"Displays close button in the modal footer","page.component.modal.doc.prop.showHeader":"Enables the modal header","page.component.modal.doc.prop.showHeaderClose":"Display the close button in the modal header","page.component.modal.doc.prop.value":"Defines the visible state of the modal","page.component.modal.doc.prop.vmodel":"Binds the visible state of the modal","page.component.modal.doc.slot.header":"Slot for the header content of modal","page.component.modal.doc.slot.body":"Slot for the body content of modal","page.component.modal.doc.slot.footer":"Slot for the footer content of modal"},M={},$={en:F,fr:M},g={attrs:[],examples:[{markup:`
|
|
2
2
|
<vui-modal
|
|
3
3
|
id="vui-modal-1"
|
|
4
4
|
:showHeaderClose="true"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as f}from"./demonstrable-
|
|
1
|
+
import{d as f}from"./demonstrable-BAeLg1x3.js";import{t as _}from"./translatable-Bd84jMZo.js";import x from"./nav-vTxyglzn.js";import{_ as y,a as l,b as t,w as n,r as p,o,F as u,g as L,h as S,m as V,i as k,d as s,t as v}from"./index-B3xm9a7h.js";import"./list-BX0o43BO.js";import"./animable-S5zFcxd4.js";import"./composable-CshUTKfl.js";const B={"page.component.nav.doc.prop.disabled":"Binds the disabled state condition","page.component.nav.doc.prop.icon":"Class name of the icon to display before each item label","page.component.nav.doc.prop.item-label":"Label key foreach nav item","page.component.nav.doc.prop.item-value":"Value key foreach nav item","page.component.nav.doc.prop.items":"Array of values that composes the nav","page.component.nav.doc.prop.loading":"Layout of the tag","page.component.nav.doc.prop.value":"Selected item in the nav","page.component.nav.doc.prop.v-model":"Binds the models of nav","page.component.nav.doc.slot.group-item":"Slot to custom each items group of the list","page.component.nav.doc.slot.item":"Slot to custom each item of the list","page.component.nav.doc.slot.placeholder":"Placeholder slot for the default list title element"},N={},w={en:B,fr:N},i={examples:[{markup:`
|
|
2
2
|
<vui-nav
|
|
3
3
|
:items=[
|
|
4
4
|
{ label: "label 1", value: "value 1" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import V from"./list-
|
|
1
|
+
import V from"./list-BX0o43BO.js";import{c as y}from"./composable-CshUTKfl.js";import{t as k}from"./translatable-Bd84jMZo.js";import{_ as g,a as i,j as n,b as N,w as m,n as p,r as c,o as l,f as r,t as f,h as B,e as C}from"./index-B3xm9a7h.js";import"./animable-S5zFcxd4.js";const S={},_={},$={en:S,fr:_},w={items:{type:Array,required:!0},itemLabel:{type:String},itemValue:{type:String},modelValue:{default:void 0,types:[Boolean,Number,Object,String]},showIcons:{type:Boolean,default:!0},value:{default:void 0,types:[Boolean,Number,Object,String]}},I={name:"VuiNav",components:{VuiList:V},mixins:[y],props:w,emits:["update:model-value"],data(){return{selected:null}},watch:{modelValue(e){this.selected=e},value(e){this.selected=e}},created(){k($),this.hasModelValue?this.selected=this.modelValue:this.hasValue&&(this.selected=this.value)},methods:{onClick(e){this.disabled||this.$emit("update:model-value",e)}}},j=["id"],A={key:1,class:"vui-list-items-item-label-text"};function L(e,d,O,U,u,h){const v=c("router-link"),b=c("vui-list");return l(),i("div",{id:e.componentId,class:p(["vui-nav",{"vui-nav--flat":e.hasAttribute("flat")},e.$props.class])},[n(e.$slots,"prepend"),N(b,{modelValue:u.selected,"onUpdate:modelValue":[d[0]||(d[0]=s=>u.selected=s),h.onClick],class:"vui-nav-list","group-id":e.componentGroupId,disabled:e.disabled,"item-label":e.itemLabel,"item-value":e.itemValue,items:e.items,selectable:!e.disabled},{item:m(({index:s,item:t,itemValue:o,itemLabel:a})=>[n(e.$slots,"item",{index:s,item:t,itemLabel:a,itemValue:o},()=>[e.showIcons?(l(),i("i",{key:0,class:p(["fa-solid",{"fa-location-dot":!s},{"fa-chevron-right":s}])},null,2)):r("",!0),t.route?r("",!0):(l(),i("span",A,f(o?t[a]:t),1)),t.route?(l(),B(v,{key:2,to:t.route,class:"vui-list-items-item-label-text"},{default:m(()=>[C(f(o?t[a]:t),1)]),_:2},1032,["to"])):r("",!0)])]),_:3},8,["modelValue","group-id","disabled","item-label","item-value","items","selectable","onUpdate:modelValue"]),n(e.$slots,"append")],10,j)}const M=g(I,[["render",L]]);export{M as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./animable-S5zFcxd4.js";import{c as d}from"./composable-CshUTKfl.js";import{t as p}from"./translatable-
|
|
1
|
+
import{a as n}from"./animable-S5zFcxd4.js";import{c as d}from"./composable-CshUTKfl.js";import{t as p}from"./translatable-Bd84jMZo.js";import{_ as u,a as e,j as o,f as a,n as c,o as t}from"./index-B3xm9a7h.js";const m={},f={},$={en:m,fr:f},h={name:"VuiPage",mixins:[n,d],created(){p($)},methods:{outclick(){this.$bus.emit("outclick",this.componentGroupId)}}},k=["id"],v={key:0,class:"vui-page-header"},g={key:1,class:"vui-page-body"},b={key:2,class:"vui-page-footer"};function y(s,r,C,V,B,l){return t(),e("div",{id:s.componentId,class:c(["vui-page",`vui-page--${s.layout}`,{"vui-page--flat":s.hasAttribute("flat")},s.$props.class]),onClick:r[0]||(r[0]=(...i)=>l.outclick&&l.outclick(...i))},[o(s.$slots,"prepend"),s.$slots.header?(t(),e("div",v,[o(s.$slots,"header")])):a("",!0),s.$slots.body||s.$slots.default?(t(),e("div",g,[o(s.$slots,"body"),o(s.$slots,"default")])):a("",!0),s.$slots.footer?(t(),e("div",b,[o(s.$slots,"footer")])):a("",!0),o(s.$slots,"append")],10,k)}const A=u(h,[["render",y]]);export{A as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as f}from"./demonstrable-
|
|
1
|
+
import{d as f}from"./demonstrable-BAeLg1x3.js";import{t as b}from"./translatable-Bd84jMZo.js";import v from"./page-Bevk66c3.js";import{_,a as s,b as t,w as a,r as n,o as g,F as i,g as M,m as k,l as S,e as l,t as p,d as r}from"./index-B3xm9a7h.js";import"./animable-S5zFcxd4.js";import"./composable-CshUTKfl.js";const m={attrs:[{name:"flat",text:"page.component.page.doc.attr.flat"}],examples:[{markup:`
|
|
2
2
|
<vui-page
|
|
3
3
|
layout="warning"
|
|
4
4
|
id="vui-page-1"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as f}from"./demonstrable-
|
|
1
|
+
import{d as f}from"./demonstrable-BAeLg1x3.js";import{t as b}from"./translatable-Bd84jMZo.js";import x from"./pager-CqIruhwG.js";import{_ as V,a as s,b as o,w as r,r as n,o as a,F as c,g as y,h as k,m as z,i as B,d as i,t as u}from"./index-B3xm9a7h.js";import"./nav-vTxyglzn.js";import"./list-BX0o43BO.js";import"./animable-S5zFcxd4.js";import"./composable-CshUTKfl.js";import"./button-D2nGyV-k.js";const g={attrs:[],examples:[{markup:`
|
|
2
2
|
<vui-pager
|
|
3
3
|
id="vui-page-1"
|
|
4
4
|
:count="9"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import h from"./nav-
|
|
1
|
+
import h from"./nav-vTxyglzn.js";import f from"./button-D2nGyV-k.js";import{a as b}from"./animable-S5zFcxd4.js";import{c as v}from"./composable-CshUTKfl.js";import{t as V}from"./translatable-Bd84jMZo.js";import{_ as P,a as k,j as i,d as p,n as d,r as u,o as C,b as l,m as n}from"./index-B3xm9a7h.js";import"./list-BX0o43BO.js";const N={"page.component.pager.doc.prop.count":"Total number of paginated items","page.component.pager.doc.prop.disabled":"Binds the disabled state condition","page.component.pager.doc.prop.loading":"Binds the loading state","page.component.pager.doc.prop.size":"Number of paginated items per page","page.component.pager.doc.prop.value":"Selected item in the pager","page.component.pager.doc.prop.v-model":"Binds the model changes of pager","page.component.pager.doc.slot.first":"Slot for first page button","page.component.pager.doc.slot.last":"Slot for last page button","page.component.pager.doc.slot.previous":"Slot for previous page button","page.component.pager.doc.slot.next":"Slot for next page button"},y={},B={en:N,fr:y},L={count:{type:Number,default:0},modelValue:{default:void 0,type:Number},route:{default:void 0,type:Object},size:{type:Number,default:25},value:{default:void 0,type:Number}},S={name:"VuiPager",components:{VuiButton:f,VuiNav:h},mixins:[b,v],props:L,emits:["update:model-value"],data(){return{page:1}},computed:{isLast(){return this.page===this.last},last(){return Math.ceil(this.count/this.size)},pages(){if(this.last){const e=[...Array.from({length:this.last},(g,a)=>a+1)],s=e.slice(0,this.page),o=e.slice(this.page,e.length);return[...s.slice(-(o.length>2?2:2+(2-o.length))),...o.slice(0,s.length>2?2:2+(2-s.length))]}return[]}},watch:{modelValue(e){this.page=e},value(e){this.page=e}},created(){V(B),this.hasModelValue?this.page=this.modelValue:this.hasValue&&(this.page=this.value)},methods:{onFirst(){!this.disabled&&this.page>1&&(this.page=1,this.onPage())},onLast(){!this.disabled&&!this.isLast&&(this.page=this.last,this.onPage())},onNext(){!this.disabled&&!this.isLast&&(this.page++,this.onPage())},onPrevious(){!this.disabled&&this.page>1&&(this.page--,this.onPage())},onPage(){var o;const{page:e,$route:s={}}=this;this.$emit("update:model-value",e),this.route&&((o=s.query)==null?void 0:o.page)!==e&&this.$router.push({...this.route,query:{...this.route.query,page:e}})}}},z=["id"],q={class:"vui-pager-content"};function U(e,s,o,g,a,t){const r=u("vui-button"),c=u("vui-nav");return C(),k("div",{id:e.componentId,class:d(["vui-pager",e.$props.class])},[i(e.$slots,"prepend"),p("div",q,[i(e.$slots,"first",{},()=>[l(r,n(e.$attrs,{disabled:a.page===1,icon:"fa-solid fa-angles-left",class:"vui-button--first",onClick:t.onFirst}),null,16,["disabled","onClick"])]),i(e.$slots,"previous",{},()=>[l(r,n(e.$attrs,{disabled:a.page===1,icon:"fa-solid fa-chevron-left",class:"vui-button--previous",onClick:t.onPrevious}),null,16,["disabled","onClick"])]),i(e.$slots,"pages",{},()=>[p("div",{class:d(["ellipse",{visible:t.last>4&&a.page+2>4}])}," ... ",2),l(c,n({modelValue:a.page,"onUpdate:modelValue":s[0]||(s[0]=m=>a.page=m)},e.$attrs,{flat:e.hasAttribute("flat"),items:t.pages,"show-icons":!1,"onUpdate:modelValue":t.onPage}),null,16,["modelValue","flat","items","onUpdate:modelValue"]),p("div",{class:d(["ellipse",{visible:t.last>4&&a.page+2<t.last}])}," ... ",2)]),i(e.$slots,"next",{},()=>[l(r,n(e.$attrs,{disabled:t.isLast,icon:"fa-solid fa-chevron-right",class:"vui-button--next",onClick:t.onNext}),null,16,["disabled","onClick"])]),i(e.$slots,"previous",{},()=>[l(r,n(e.$attrs,{disabled:t.isLast,icon:"fa-solid fa-angles-right",class:"vui-button--last",onClick:t.onLast}),null,16,["disabled","onClick"])])]),i(e.$slots,"append")],10,z)}const E=P(S,[["render",U]]);export{E as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as g}from"./demonstrable-
|
|
1
|
+
import{d as g}from"./demonstrable-BAeLg1x3.js";import{t as v}from"./translatable-Bd84jMZo.js";import _ from"./progress-CSablIYY.js";import{_ as h,a as t,b as r,w as a,r as p,o as s,F as c,g as x,h as b,m as f,i as y,d as m,t as w}from"./index-B3xm9a7h.js";import"./composable-CshUTKfl.js";const k={"page.component.progress.doc.prop.disabled":"Bind the disabled state","page.component.progress.doc.prop.layout":"The progress-bar layout: [error, success, warning]","page.component.progress.doc.prop.min":"Minimum value of progressbar","page.component.progress.doc.prop.max":"Maximum value of progressbar","page.component.progress.doc.prop.value":"current value of progressbar"},B={},$={en:k,fr:B},n={examples:[{markup:`
|
|
2
2
|
<vui-progress
|
|
3
3
|
min="0"
|
|
4
4
|
max="100"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p}from"./composable-CshUTKfl.js";import{t as c}from"./translatable-
|
|
1
|
+
import{c as p}from"./composable-CshUTKfl.js";import{t as c}from"./translatable-Bd84jMZo.js";import{_ as u,a as l,j as t,d as a,p as d,n as o,o as m}from"./index-B3xm9a7h.js";const h={},b={},v={en:h,fr:b},f={min:{type:Number,required:!0},max:{type:Number,required:!0},value:{type:Number,required:!0}},$={name:"VuiProgress",mixins:[p],props:f,computed:{width(){const s=Math.abs(this.value),e=Math.abs(this.min),r=Math.abs(this.max);return`${Math.round(s/(e+r)*100)}%`}},created(){c(v)}},g=["id"];function y(s,e,r,n,_,i){return m(),l("div",{id:s.componentId,class:o(["vui-progress",s.$props.class])},[t(s.$slots,"prepend"),a("div",{class:o(["vui-progress-bar",`vui-progress-bar--${s.layout}`])},[a("div",{class:"vui-progress-bar-cursor",style:d({width:i.width})},null,4)],2),t(s.$slots,"append")],10,g)}const w=u($,[["render",y]]);export{w as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as u}from"./composable-CshUTKfl.js";import{t as r}from"./translatable-Bd84jMZo.js";import{_ as h,a as i,j as l,n as t,f as s,d as c,o as d,e as f,t as g}from"./index-B3xm9a7h.js";const m={},p={},k={en:m,fr:p},b={checked:{default:void 0,type:Boolean},checkedValue:{default:void 0,types:[Boolean,String,Number,null]},icon:{type:String,default:"fa-solid fa-circle"},iconChecked:{type:String,default:"fa-solid fa-circle-check"},modelValue:{default:void 0,types:[Boolean,String,Number,null]},name:{default:void 0,type:String},text:{default:void 0,type:String},uncheckedValue:{default:void 0,types:[Boolean,String,Number,null]},value:{default:void 0,types:[Boolean,String,Number,null]}},v={name:"VuiRadio",mixins:[u],props:b,emits:["update:model-value"],data(){return{toggled:!1}},computed:{hasLabel(){return this.$slots.default||this.text},isChecked(){return this.hasProp("checked")?this.checked:this.hasProp("checkedValue")?this.toggled===this.checkedValue:this.toggled}},watch:{modelValue(e){this.toggled=e},value(e){this.toggled=e}},created(){r(k),this.hasModelValue?this.toggled=this.modelValue:this.hasValue&&(this.toggled=this.value)},methods:{onToggle(){this.disabled||(this.hasProp("checkedValue")?this.toggled=this.isChecked?this.uncheckedValue:this.checkedValue:this.toggled=!this.isChecked,this.$emit("update:model-value",this.toggled))}}},V=["id"],y=["name","disabled","required"],C=["for"];function S(e,o,B,N,w,a){return d(),i("div",{id:e.componentId,class:t(["vui-radio",`vui-radio--${e.layout}`,{"vui-radio--flat":e.hasAttribute("flat")},{"vui-radio--with-label":a.hasLabel},{"vui-radio--with-icon":e.icon},{"vui-radio--checked":a.isChecked},{"vui-radio--disabled":e.disabled},{"vui-radio--loading":!e.disabled&&e.loading},e.$props.class]),onClick:o[0]||(o[0]=(...n)=>a.onToggle&&a.onToggle(...n))},[l(e.$slots,"prepend"),e.icon&&!a.isChecked?(d(),i("i",{key:0,class:t(["vui-radio-icon",e.icon])},null,2)):s("",!0),e.iconChecked&&a.isChecked?(d(),i("i",{key:1,class:t(["vui-radio-icon",e.iconChecked])},null,2)):s("",!0),c("input",{name:e.name,disabled:e.disabled,required:e.hasAttribute("required"),type:"checkbox"},null,8,y),a.hasLabel?(d(),i("label",{key:2,class:"vui-radio-label",for:e.name},[l(e.$slots,"default",{},()=>[f(g(e.text),1)])],8,C)):s("",!0),l(e.$slots,"append")],10,V)}const L=h(v,[["render",S]]);export{L as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as S}from"./demonstrable-
|
|
1
|
+
import{d as S}from"./demonstrable-BAeLg1x3.js";import{t as V}from"./translatable-Bd84jMZo.js";import w from"./radio-Dq2UJ75m.js";import{_ as N,a,b as n,w as r,r as l,o as t,F as p,g as C,h as m,e as u,t as d,f as i,m as y,i as k,d as g}from"./index-B3xm9a7h.js";import"./composable-CshUTKfl.js";const D={"page.component.radio.default":"Default radio","page.component.radio.binded":"Binded radio","page.component.radio.success":"Success radio","page.component.radio.error":"Error radio","page.component.radio.warning":"Warning radio","page.component.radio.label":"Checked","page.component.radio.doc.prop.checked":"Binds the conditions of checked state","page.component.radio.doc.prop.checked-value":"Checked value of the radio","page.component.radio.doc.prop.disabled":"Binds the disabled state of the radio","page.component.radio.doc.prop.layout":"Defines the layout of component [default, error, success, warning]","page.component.radio.doc.prop.loading":"Boolean to enable the loading style for component","page.component.radio.doc.prop.text":"Text used as label for the component","page.component.radio.doc.prop.unchecked-value":"Unchecked value of the radio","page.component.radio.doc.prop.value":"Value of the radio","page.component.radio.doc.prop.v-model":"Binds the model value of radio","page.component.radio.doc.slot.default":"Default slot for label content","page.component.radio.doc.slot.prepend":"Slot used to insert custom content at the beginning of component","page.component.radio.doc.slot.append":"Slot used to insert custom content et the end of component"},$={},E={en:D,fr:$},h={examples:[{markup:`
|
|
2
2
|
<vui-radio
|
|
3
3
|
v-model="myradiomodel"
|
|
4
4
|
:layout="default"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as l}from"./composable-CshUTKfl.js";import{t as i}from"./translatable-
|
|
1
|
+
import{c as l}from"./composable-CshUTKfl.js";import{t as i}from"./translatable-Bd84jMZo.js";import{_ as n,a as d,j as t,d as e,n as o,o as p}from"./index-B3xm9a7h.js";const v={},m={},u={en:v,fr:m},$={value:{type:Number,required:!0}},c={name:"VuiStars",mixins:[l],props:$,emits:["click"],created(){i(u)}},k=["id"];function f(s,a,C,b,B,S){return p(),d("div",{id:s.componentId,class:o(["vui-stars",s.$props.class])},[t(s.$slots,"prepend"),e("div",{class:o(["stars",{"stars--25":s.value>=0&&s.value<=25},{"stars--50":s.value>=26&&s.value<=50},{"stars--75":s.value>=51&&s.value<=75},{"stars--100":s.value>=76&&s.value<=100}])},[e("div",{class:"star star--1",onClick:a[0]||(a[0]=r=>s.$emit("click",25))}),e("div",{class:"star star--2",onClick:a[1]||(a[1]=r=>s.$emit("click",50))}),e("div",{class:"star star--3",onClick:a[2]||(a[2]=r=>s.$emit("click",75))}),e("div",{class:"star star--4",onClick:a[3]||(a[3]=r=>s.$emit("click",100))})],2),t(s.$slots,"append")],10,k)}const j=n(c,[["render",f]]);export{j as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as v}from"./demonstrable-
|
|
1
|
+
import{d as v}from"./demonstrable-BAeLg1x3.js";import{t as g}from"./translatable-Bd84jMZo.js";import _ from"./stars-C6KEUmeB.js";import{_ as h,a as o,b as e,w as r,r as n,o as a,F as l,g as f,h as y,m as b,i as k,d as u,t as x}from"./index-B3xm9a7h.js";import"./composable-CshUTKfl.js";const w={"page.component.stars.doc.prop.disabled":"Bind the disabled state","page.component.stars.doc.prop.layout":"The progress-bar layout: [error, success, warning]"},B={},$={en:w,fr:B},p={examples:[{markup:`
|
|
2
2
|
<vui-stars
|
|
3
3
|
:value="25"
|
|
4
4
|
/>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as d}from"./translatable-
|
|
1
|
+
import{t as d}from"./translatable-Bd84jMZo.js";import{_ as m,c as f,r as l,o as v,a as b,b as c,w as o,e as r,t as i}from"./index-B3xm9a7h.js";const x={},h={},k={en:x,fr:h},w={name:"ViewStart",computed:{components(){return f.reduce((e,t)=>{const a=e.findIndex(n=>n.label===t.type);return a===-1?e.push({label:t.type,value:[t]}):e[a].value.push(t),e},[])}},created(){d(k)}},g={class:"view-start"};function V(e,t,a,n,$,u){const p=l("router-link"),_=l("vui-list");return v(),b("div",g,[c(_,{flat:"",autoclose:!1,expanded:!0,items:u.components,"item-label":"label","item-value":"value"},{"group-item":o(({item:s})=>[r(i(s.label),1)]),item:o(({item:s})=>[c(p,{to:{name:s.doc.name}},{default:o(()=>[r(i(s.label),1)]),_:2},1032,["to"])]),_:1},8,["items"])])}const N=m(w,[["render",V]]);export{N as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as y}from"./demonstrable-
|
|
1
|
+
import{d as y}from"./demonstrable-BAeLg1x3.js";import{t as h}from"./translatable-Bd84jMZo.js";import g from"./table-Cq7J2jpj.js";import{_,a as i,b as t,w as l,r as n,o,F as m,g as f,h as Q,e as x,t as s,m as S,i as D,d as r}from"./index-B3xm9a7h.js";import"./animable-S5zFcxd4.js";import"./composable-CshUTKfl.js";const V={"page.component.table.doc.prop.headers":"Array containing text / value foreach item header","page.component.table.doc.prop.item-label":"Label key for each item in table","page.component.table.doc.prop.item-value":"Value key for each item in table","page.component.table.doc.prop.items":"Array of items to display in table","page.component.table.doc.slot.header":"Slot to replace header row default rendering","page.component.table.doc.slot.item":"Slot to replace item row default rendering"},k={},L={en:V,fr:k},u={attrs:[],examples:[{markup:`
|
|
2
2
|
<vui-table
|
|
3
3
|
itemLabel="label",
|
|
4
4
|
itemValue="value"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as y}from"./animable-S5zFcxd4.js";import{c as L}from"./composable-CshUTKfl.js";import{t as g}from"./translatable-
|
|
1
|
+
import{a as y}from"./animable-S5zFcxd4.js";import{c as L}from"./composable-CshUTKfl.js";import{t as g}from"./translatable-Bd84jMZo.js";import{_ as h,a as l,j as r,d as n,F as u,g as d,n as p,o as t,e as $,t as V}from"./index-B3xm9a7h.js";const k={headers:{type:Array,default:()=>[]},itemLabel:{type:String,default:"label"},itemValue:{type:String,default:"value"},items:{type:Array,default:()=>[],required:!0}},I={},S={},B={en:I,fr:S},T={name:"VuiTable",mixins:[y,L],props:k,created(){g(B)},methods:{leaf(e,b){return b.split(".").reduce((o,m)=>o&&o[m]?o[m]:null,e)}}},v=["id"],A=["data-label"];function F(e,b,o,m,N,c){return t(),l("div",{id:e.componentId,class:p(["vui-table",e.$props.class])},[r(e.$slots,"prepend"),n("table",null,[n("thead",null,[n("tr",null,[(t(!0),l(u,null,d(e.headers,(a,s)=>(t(),l("th",{key:`table-${e.componentId}-header--${s}`,class:p(a.class)},[r(e.$slots,`header.${a[e.itemValue]}`,{item:a,itemLabel:e.itemLabel,itemValue:e.itemValue,index:s},()=>[$(V(a[e.itemLabel]),1)])],2))),128))])]),n("tbody",null,[(t(!0),l(u,null,d(e.items,(a,s)=>r(e.$slots,"default",{key:`table-${e.componentId}-item--${s}`,index:s,item:a,itemLabel:e.itemLabel,itemValue:e.itemValue},()=>[n("tr",null,[(t(!0),l(u,null,d(e.headers,(i,f)=>(t(),l("td",{key:`table-${e.componentId}-item-td--${f}`,"data-label":i.label,class:p(i.class)},[r(e.$slots,`item.${i[e.itemValue]}`,{index:f,item:a,itemLabel:e.itemLabel,itemValue:e.itemValue},()=>[$(V(c.leaf(a,i.value)),1)])],10,A))),128))])])),128))])]),r(e.$slots,"append")],10,v)}const D=h(T,[["render",F]]);export{D as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as h}from"./demonstrable-
|
|
1
|
+
import{d as h}from"./demonstrable-BAeLg1x3.js";import{t as _}from"./translatable-Bd84jMZo.js";import f from"./tabs-DUliEms8.js";import{_ as x,a as T,b as t,w as s,r as l,o as p,h as d,l as y,g as B,e as k,t as n,u as b,x as u,i as v,d as o}from"./index-B3xm9a7h.js";import"./composable-CshUTKfl.js";const L={"page.component.tabs.doc.prop.disabled":"Binds the disabled state","page.component.tabs.doc.prop.items":"List of tabs and label / value","page.component.tabs.doc.prop.item-label":"Label key name foreach tab","page.component.tabs.doc.prop.item-value":"Value key name foreach tab","page.component.tabs.doc.prop.vmodel":"Binds the active tab","page.component.tabs.doc.prop.value":"Define the active tab","page.component.tabs.doc.slot.value":"Slot defined by the tabs items value"},S={},H={en:L,fr:S},i={examples:[{markup:`
|
|
2
2
|
<vui-tabs
|
|
3
3
|
items="[
|
|
4
4
|
{ 'label': 'Tab 1', 'value': 'tab1' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p}from"./composable-CshUTKfl.js";import{t as v}from"./translatable-
|
|
1
|
+
import{c as p}from"./composable-CshUTKfl.js";import{t as v}from"./translatable-Bd84jMZo.js";import{_ as b,a as s,j as a,d,F as l,g as c,n as o,o as i,f as m,t as f}from"./index-B3xm9a7h.js";const V={},g={},$={en:V,fr:g},y={icon:{type:String},items:{type:Array,required:!0},itemLabel:{type:String,default:"label"},itemValue:{type:String,default:"value"},modelValue:{type:String},value:{type:String}},k={name:"VuiTabs",mixins:[p],props:y,emits:["update:model-value"],data(){return{active:null}},computed:{tabs(){return this.items.map(e=>({...e,$$id:this.newId()}))}},watch:{modelValue(e){this.active=e},value(e){this.active=e}},created(){var e;if(v($),this.hasModelValue)this.active=this.modelValue;else if(this.hasValue)this.active=this.value;else if((e=this.items)!=null&&e.length){const n=this.items[0];this.active=n[this.itemValue]}},methods:{toggle(e){this.disabled||(this.active=e,this.$emit("update:model-value",this.active))}}},S=["id"],C={class:"vui-tabs-tabs"},w=["onClick"],B={class:"label"},L={key:0,class:"vui-tabs-slot"};function _(e,n,F,I,r,u){return i(),s("div",{id:e.componentId,class:o(["vui-tabs",e.$props.class])},[a(e.$slots,"prepend"),d("div",C,[(i(!0),s(l,null,c(u.tabs,t=>(i(),s("div",{key:t.$$id,class:o(["vui-tabs-tabs-tab",{"vui-tabs-tabs-tab--with-icon":e.icon},{"vui-tabs-tabs-tab--active":t[e.itemValue]===r.active}]),onClick:()=>u.toggle(t[e.itemValue])},[e.icon?(i(),s("i",{key:0,class:o(["vui-tabs-tabs-tab-icon",e.icon])},null,2)):m("",!0),d("span",B,f(t[e.itemLabel]),1)],10,w))),128))]),(i(!0),s(l,null,c(e.items,(t,h)=>(i(),s(l,{key:`slot-${t.$$id}`},[e.$slots[t[e.itemValue]]&&t[e.itemValue]===r.active?(i(),s("div",L,[a(e.$slots,t[e.itemValue],{index:h})])):m("",!0)],64))),128)),a(e.$slots,"append")],10,S)}const q=b(k,[["render",_]]);export{q as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as f}from"./demonstrable-
|
|
1
|
+
import{d as f}from"./demonstrable-BAeLg1x3.js";import{t as h}from"./translatable-Bd84jMZo.js";import _ from"./tag-GD0nTzc5.js";import{_ as v,a as s,b as o,w as n,r as p,o as a,F as r,g as y,h as x,e as b,t as i,f as k,m as w,i as S,d as c}from"./index-B3xm9a7h.js";import"./composable-CshUTKfl.js";const $={"page.component.tag.doc.prop.disabled":"Binds the disabled state","page.component.tag.doc.prop.error":"Error type tag","page.component.tag.doc.prop.success":"Success type tag","page.component.tag.doc.prop.warning":"Warning type tag","page.component.tag.doc.prop.icon":"Class name of the icon to prepend","page.component.tag.doc.prop.text":"Text content of the tag","page.component.tag.doc.prop.layout":"Layout of the tag","page.component.card.doc.slot.default":"Default type slot"},T={},V={en:$,fr:T},g={examples:[{markup:`
|
|
2
2
|
<vui-tag
|
|
3
3
|
icon="fa-solid fa-tag"
|
|
4
4
|
>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n}from"./composable-CshUTKfl.js";import{t as i}from"./translatable-
|
|
1
|
+
import{c as n}from"./composable-CshUTKfl.js";import{t as i}from"./translatable-Bd84jMZo.js";import{_ as r,a as e,j as s,n as t,f as p,o as a,e as c,t as l}from"./index-B3xm9a7h.js";const d={},m={},u={en:d,fr:m},f={icon:{type:String},text:{type:String}},g={name:"VuiTag",mixins:[n],props:f,created(){i(u)}},$=["id"];function v(o,y,S,V,h,k){return a(),e("div",{id:o.componentId,class:t(["vui-tag",`vui-tag--${o.layout}`,{"vui-tag--with-icon":o.icon},o.$props.class])},[s(o.$slots,"prepend"),o.icon?(a(),e("i",{key:0,class:t(["vui-tag-icon",o.icon])},null,2)):p("",!0),s(o.$slots,"default",{},()=>[c(l(o.text),1)]),s(o.$slots,"append")],10,$)}const C=r(g,[["render",v]]);export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n}from"./composable-CshUTKfl.js";import{_ as u,a as o,j as l,d,f as r,n as g,k as h,o as a}from"./index-
|
|
1
|
+
import{c as n}from"./composable-CshUTKfl.js";import{_ as u,a as o,j as l,d,f as r,n as g,k as h,o as a}from"./index-B3xm9a7h.js";import{t as c}from"./translatable-Bd84jMZo.js";const m={},f={},p={en:m,fr:f},k={checked:{default:void 0,type:Boolean},checkedValue:{default:void 0,types:[Boolean,String,Number,null]},modelValue:{default:void 0,types:[Boolean,String,Number,null]},name:{type:String},uncheckedValue:{default:void 0,types:[Boolean,String,Number,null]},value:{default:void 0,types:[Boolean,String,Number,null]}},V={name:"VuiToggle",mixins:[n],props:k,emits:["update:model-value"],data(){return{toggled:!1}},computed:{isChecked(){return this.hasProp("checked")?this.checked:this.hasProp("checkedValue")?this.toggled===this.checkedValue:this.toggled}},watch:{modelValue(e){this.toggled=e},value(e){this.toggled=e}},created(){c(p),this.hasModelValue?this.toggled=this.modelValue:this.hasValue&&(this.toggled=this.value)},methods:{onToggle(){this.disabled||(this.hasProp("checkedValue")?this.toggled=this.isChecked?this.uncheckedValue:this.checkedValue:this.toggled=!this.isChecked,this.$emit("update:model-value",this.toggled))}}},v=["id","name"],b=["for"];function B(e,t,y,C,$,s){return a(),o("div",{id:e.componentId,name:e.componentId,class:g(["vui-toggle",{"vui-toggle--checked":s.isChecked},{"vui-toggle--disabled":e.disabled},e.$props.class]),onClick:t[0]||(t[0]=h((...i)=>s.onToggle&&s.onToggle(...i),["stop"]))},[l(e.$slots,"prepend"),t[1]||(t[1]=d("div",{class:"vui-toggle-slider"},[d("div",{class:"vui-toggle-slider-button"})],-1)),e.$slots.default?(a(),o("label",{key:0,class:"vui-toggle-label",for:e.componentId},[l(e.$slots,"default")],8,b)):r("",!0),l(e.$slots,"append")],10,v)}const I=u(V,[["render",B]]);export{I as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as N}from"./demonstrable-
|
|
1
|
+
import{d as N}from"./demonstrable-BAeLg1x3.js";import{t as x}from"./translatable-Bd84jMZo.js";import C from"./toggle-B_0Z212b.js";import{_ as S,a as n,b as s,w as l,r as d,o,F as a,g as T,h as v,e as c,t as p,f as i,m as h,i as f,d as _}from"./index-B3xm9a7h.js";import"./composable-CshUTKfl.js";const $={"page.component.toggle.default":"Default toggle","page.component.toggle.binded":"Binded toggle","page.component.toggle.label":"Checked","page.component.toggle.doc.prop.checked-value":"Checked value of the toggle","page.component.toggle.doc.prop.disabled":"Binds the disabled state to component","page.component.toggle.doc.prop.unchecked-value":"Unchecked value of the toggle","page.component.toggle.doc.prop.value":"Value of the toggle","page.component.toggle.doc.prop.v-model":"Binds the model value of the toggle"},w={},D={en:$,fr:w},u={examples:[{markup:`
|
|
2
2
|
<vui-toggle>
|
|
3
3
|
Default checkbox
|
|
4
4
|
</vui-toggle>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as x}from"./demonstrable-
|
|
1
|
+
import{d as x}from"./demonstrable-BAeLg1x3.js";import{t as _}from"./translatable-Bd84jMZo.js";import V from"./tooltip-DL7ojxlq.js";import{_ as w,a as l,b as e,w as i,r as p,o as n,F as g,g as k,h as y,m as T,i as C,d as a,t as h}from"./index-B3xm9a7h.js";import"./index-7pe20t8n.js";import"./composable-CshUTKfl.js";const M={"page.component.tooltip.button.show-bottom":"show tooltip on bottom","page.component.tooltip.button.show-right":"show tooltip on right","page.component.tooltip.button.show-left":"show tooltip on left","page.component.tooltip.button.show-top":"show tooltip on top","page.component.tooltip.text":"My tooltip content My tooltip content My tooltip content My tooltip content My tooltip content My tooltip content","page.component.tooltip.doc.prop.text":"Text of the tooltip","page.component.tooltip.doc.prop.icon":"Class name of the icon to prepend","page.component.tooltip.doc.prop.holder":"Id of the element which tooltip refers to","page.component.tooltip.doc.prop.position":"Position of the tooltip from holder","page.component.tooltip.doc.prop.v-model":"Binds the visible state of the tooltip","page.component.tooltip.doc.slot.default":"Default slot for tooltip content"},S={},$={en:M,fr:S},s={attrs:[],examples:[{markup:`
|
|
2
2
|
<vui-button
|
|
3
3
|
@click="isVisible=!isVisible"
|
|
4
4
|
>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as r}from"./index-7pe20t8n.js";import{c as d}from"./composable-CshUTKfl.js";import{t as h}from"./translatable-
|
|
1
|
+
import{l as r}from"./index-7pe20t8n.js";import{c as d}from"./composable-CshUTKfl.js";import{t as h}from"./translatable-Bd84jMZo.js";import{_ as p,a as o,d as u,n as s,f as n,j as c,F as f,e as m,t as g,p as y,o as a}from"./index-B3xm9a7h.js";const w={icon:{type:String},position:{type:String,default:"right"},text:{type:String},modelValue:{default:void 0,type:Boolean},value:{default:void 0,type:Boolean}},$={name:"VuiTooltip",mixins:[d],props:w,emits:["update:model-value"],data(){return{dimension:{content:{},holder:{}},show:!1}},computed:{display(){return this.show?"block":"none"},left(){const{content:t,holder:e}=this.dimension;switch(this.position){case"left":return e.left-(t.width+15);case"bottom":case"top":{const l=t.width-e.width;return e.left-l/2}case"right":default:return e.right+15}},top(){const{content:t,holder:e}=this.dimension;switch(this.position){case"bottom":return e.top+e.height+15;case"top":return e.top-t.height-15;case"left":case"right":default:return e.top-e.height/2}}},watch:{async modelValue(t){this.show=t,t&&(await this.$nextTick(),this.setPosition())},async value(t){this.show=t,t&&(await this.$nextTick(),this.setPosition())}},created(){h(r),this.hasModelValue&&(this.show=this.modelValue),this.hasValue&&(this.show=this.value),this.$bus.on("outclick",()=>{this.disabled||(this.show=!1,this.$emit("update:model-value",this.show))})},methods:{setPosition(){this.dimension.content=this.$refs.tooltip.getBoundingClientRect(),this.dimension.holder=this.$parent.$el.getBoundingClientRect()}}},v=["id"];function V(t,e,l,k,b,i){return a(),o("div",{id:t.componentId,ref:"tooltip",class:s(["vui-tooltip",{"vui-tooltip--with-icon":t.icon},t.$props.class]),style:y({position:"fixed",display:i.display,top:`${i.top}px`,left:`${i.left}px`})},[u("i",{class:s(["vui-tooltip-pointer",`vui-tooltip-pointer--${t.position}`])},null,2),t.icon?(a(),o("i",{key:0,class:s(["vui-tooltip-icon",t.icon])},null,2)):n("",!0),t.$slots.default?c(t.$slots,"default",{key:1}):n("",!0),t.text?(a(),o(f,{key:2},[m(g(t.text),1)],64)):n("",!0)],14,v)}const x=p($,[["render",V]]);export{x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as o}from"./index-
|
|
1
|
+
import{v as o}from"./index-B3xm9a7h.js";const a=e=>{const t=o.useI18n();return Object.keys(e).forEach(r=>{t.mergeLocaleMessage(r,e[r])}),t};export{a as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as _}from"./demonstrable-
|
|
1
|
+
import{d as _}from"./demonstrable-BAeLg1x3.js";import{t as f}from"./translatable-Bd84jMZo.js";import v from"./unit-DmkhvKjy.js";import{_ as h,a as s,b as t,w as e,r as a,o as d,F as u,g as b,d as n,t as l}from"./index-B3xm9a7h.js";import"./composable-CshUTKfl.js";const $={"page.component.grid-unit.left":"Col 1 content","page.component.grid-unit.right":"Col 2 content","page.component.grid-unit.doc.tag.col":"Defines flex basis percentage for grid-unit column"},x={},C={en:$,fr:x},p={attrs:[],examples:[{markup:`
|
|
2
2
|
<vui-grid
|
|
3
3
|
id="example-grid-1"
|
|
4
4
|
col-md="2"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e}from"./composable-CshUTKfl.js";import{t as n}from"./translatable-
|
|
1
|
+
import{c as e}from"./composable-CshUTKfl.js";import{t as n}from"./translatable-Bd84jMZo.js";import{_ as r,a as t,j as o,n as a,o as i}from"./index-B3xm9a7h.js";const l={},p={},c={en:l,fr:p},d={col:{default:void 0,types:[String,Number]}},u={name:"VuiGridUnit",mixins:[e],props:d,created(){n(c)}};function m(s,f,$,g,b,v){return i(),t("div",{class:a(["vui-grid-unit",{[`vui-grid-unit-col--${s.col}`]:s.col},s.$props.class])},[o(s.$slots,"prepend"),o(s.$slots,"default"),o(s.$slots,"append")],2)}const G=r(u,[["render",m]]);export{G as default};
|
package/dist/doc/index.html
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<style>
|
|
23
23
|
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
|
|
24
24
|
</style>
|
|
25
|
-
<script type="module" crossorigin src="/assets/index-
|
|
25
|
+
<script type="module" crossorigin src="/assets/index-B3xm9a7h.js"></script>
|
|
26
26
|
<link rel="stylesheet" crossorigin href="/assets/index-Bif4l-EJ.css">
|
|
27
27
|
</head>
|
|
28
28
|
<body>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./input-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./input-BdNDl9Hu.js"),p=require("./list-D6Ab_PXR.js"),c=require("./animable-ChJEXlsE.js"),u=require("./_plugin-vue_export-helper-DeDoBcDj.js"),l=require("vue");require("highlight.js");const h={"component.dropdown.placeholder":"Select a value ..."},b={},f={en:h,fr:b},g={disableFiltering:{type:Boolean,default:!1},icon:{default:void 0,type:String},items:{type:Array,required:!0},itemLabel:{type:String,default:"label"},itemValue:{type:String,default:"value"},modelValue:{default:void 0,types:[Boolean,Number,Object,String,null]},multiple:{default:!1,type:Boolean},placeholder:{types:[Boolean,Number,String]},value:{default:void 0,types:[Boolean,Object,Number,String,null]}},v={name:"VuiDropdown",components:{VuiInput:m.default,VuiList:p.default},mixins:[c.animable,u.composable],props:g,emits:["input","update:model-value"],data(){return{keyword:null,selected:this.multiple?[]:null}},computed:{listTitle(){return this.selected?this.placeholderLabel:null},placeholderValue(){const{itemValue:e,multiple:d,selected:a}=this,n=d?a[0]:a,i=typeof(n==null?void 0:n[e])<"u"?n[e]:n,o=[null,void 0].includes(i)?this.placeholderLabel:this.labelFromItem(i);return d&&a.length>1?`${o} (+${a.length-1})`:o},placeholderLabel(){return this.placeholder?this.placeholder:this.$t("component.dropdown.placeholder")}},watch:{modelValue(e){this.selected=e},value(e){this.selected=e}},created(){u.translatable(f),this.hasModelValue?this.selected=this.modelValue:this.hasValue&&(this.selected=this.value)},methods:{labelFromChild(e,d,a){const{itemValue:n,itemLabel:i}=this;return e[n].reduce((o,r)=>r[n]===a?r[i]:o,d)},labelFromItem(e){const{itemValue:d,itemLabel:a}=this;return this.items.reduce((n,i)=>Array.isArray(i[d])?this.labelFromChild(i,n,e):i[d]===e?i[a]:n,e)},onClick(){this.disabled||this.onAnimate()},onInput(e){this.$emit("input",e),this.onAnimate(!0),this.keyword=e.target.value?e.target.value:null},onToggle(e){this.keyword=null,this.multiple||this.blur(),this.hasProp("value")||(this.selected=e),this.$emit("update:model-value",e)}}},y=["id"];function w(e,d,a,n,i,o){const r=l.resolveComponent("vui-input"),s=l.resolveComponent("vui-list");return l.openBlock(),l.createElementBlock("div",{id:e.componentId,class:l.normalizeClass(["vui-dropdown",e.$props.class])},[l.renderSlot(e.$slots,"prepend"),l.createElementVNode("div",{class:l.normalizeClass(["vui-dropdown-placeholder",{"vui-dropdown-placeholder--toggled":e.toggled},{"vui-dropdown-placeholder--animating":e.animating},{"vui-dropdown-placeholder--disabled":e.disabled}]),onClick:d[0]||(d[0]=l.withModifiers((...t)=>o.onClick&&o.onClick(...t),["stop"]))},[l.renderSlot(e.$slots,"keyword",{keyword:i.keyword},()=>[l.createVNode(r,{type:"text",class:"vui-dropdown-placeholder-label","prepend-icon":e.icon,value:i.keyword,placeholder:`${o.placeholderValue}`,"with-icon":!1,onInput:o.onInput},null,8,["prepend-icon","value","placeholder","onInput"])])],2),e.toggled?(l.openBlock(),l.createBlock(s,l.mergeProps({key:0,value:i.selected},e.$attrs,{class:"vui-dropdown-list","group-id":e.componentGroupId,"disable-filtering":e.disableFiltering,disabled:e.disabled,items:e.items,"item-label":e.itemLabel,"item-value":e.itemValue,keyword:i.keyword,selectable:!0,title:o.listTitle,multiple:e.multiple,"onUpdate:modelValue":o.onToggle}),l.createSlots({_:2},[e.$slots.placeholder?{name:"placeholder",fn:l.withCtx(t=>[l.renderSlot(e.$slots,"placeholder",{index:t.index,item:t.item,itemLabel:t.itemLabel,itemValue:t.itemValue})]),key:"0"}:void 0,e.$slots["group-item"]?{name:"group-item",fn:l.withCtx(t=>[l.renderSlot(e.$slots,"group-item",{index:t.index,item:t.item,itemLabel:t.itemLabel,itemValue:t.itemValue})]),key:"1"}:void 0,e.$slots.item?{name:"item",fn:l.withCtx(t=>[l.renderSlot(e.$slots,"item",{index:t.index,item:t.item,itemLabel:t.itemLabel,itemValue:t.itemValue})]),key:"2"}:void 0]),1040,["value","group-id","disable-filtering","disabled","items","item-label","item-value","keyword","title","multiple","onUpdate:modelValue"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"append")],10,y)}const V=u._export_sfc(v,[["render",w]]);exports.default=V;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./_plugin-vue_export-helper-DeDoBcDj.js"),n=require("vue");require("highlight.js");const u={"component.input.placeholder":"Type a value ..."},p={},s={en:u,fr:p},d={icon:{default:void 0,type:String},modelValue:{default:void 0,types:[Boolean,String,Number,null]},maxlength:{type:Number},name:{type:String},placeholder:{default:null,types:[Boolean,String,Number,null]},prependIcon:{default:void 0,type:String},type:{default:"text",type:String},value:{default:void 0,types:[Boolean,Number,String,null]},withIcon:{default:!0,type:Boolean}},r={name:"VuiInput",mixins:[i.composable],props:d,emits:["input","update:model-value"],data(){return{typed:null}},computed:{placeholderValue(){return this.placeholder?this.placeholder:this.$t("component.input.placeholder")}},watch:{value(e){this.typed=e},modelValue(e){this.typed=e}},created(){i.translatable(s),this.hasModelValue?this.typed=this.modelValue:this.hasValue&&(this.typed=this.value)},methods:{onInput(e){this.typed=this.type==="number"?e.target.valueAsNumber:e.target.value,this.$emit("input",e),this.$emit("update:model-value",this.typed)}}},c=["id"],m=["value","disabled","maxlength","name","placeholder","required","type"],h={key:1,class:n.normalizeClass(["vui-input-icon","vui-input-icon--append","fa-solid fa-font"])},y={key:2,class:n.normalizeClass(["vui-input-icon","vui-input-icon--append","fa-solid fa-at"])},f={key:3,class:n.normalizeClass(["vui-input-icon","vui-input-icon--append","fa-solid fa-key"])},v={key:4,class:n.normalizeClass(["vui-input-icon","vui-input-icon--append","fa-solid fa-arrow-down-1-9"])};function k(e,o,g,B,l,t){return n.openBlock(),n.createElementBlock("div",{id:e.componentId,class:n.normalizeClass(["vui-input",`vui-input--${e.layout}`,{"vui-input--flat":e.hasAttribute("flat")},{"vui-input--with-icon":e.withIcon},{"vui-input--disabled":e.disabled},{"vui-input--loading":!e.disabled&&e.loading},e.$props.class])},[n.renderSlot(e.$slots,"prepend",{},()=>[e.prependIcon?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["vui-input-icon","vui-input-icon--prepend",e.prependIcon])},null,2)):n.createCommentVNode("",!0)]),n.createElementVNode("input",{value:l.typed,disabled:e.disabled,maxlength:e.maxlength,name:e.name,placeholder:t.placeholderValue,required:e.hasAttribute("required"),type:e.type,onInput:o[0]||(o[0]=(...a)=>t.onInput&&t.onInput(...a))},null,40,m),n.renderSlot(e.$slots,"append",{},()=>[e.withIcon&&e.icon?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["vui-input-icon","vui-input-icon--append",e.icon])},null,2)):n.createCommentVNode("",!0),e.withIcon&&!e.icon&&e.type==="text"?(n.openBlock(),n.createElementBlock("i",h)):n.createCommentVNode("",!0),e.withIcon&&!e.icon&&e.type==="email"?(n.openBlock(),n.createElementBlock("i",y)):n.createCommentVNode("",!0),e.withIcon&&!e.icon&&e.type==="password"?(n.openBlock(),n.createElementBlock("i",f)):n.createCommentVNode("",!0),e.withIcon&&!e.icon&&e.type==="number"?(n.openBlock(),n.createElementBlock("i",v)):n.createCommentVNode("",!0)])],10,c)}const b=i._export_sfc(r,[["render",k]]);exports.default=b;
|
|
@@ -94,28 +94,28 @@ const m = {
|
|
|
94
94
|
class: /* @__PURE__ */ i([
|
|
95
95
|
"vui-input-icon",
|
|
96
96
|
"vui-input-icon--append",
|
|
97
|
-
"fa-font"
|
|
97
|
+
"fa-solid fa-font"
|
|
98
98
|
])
|
|
99
99
|
}, V = {
|
|
100
100
|
key: 2,
|
|
101
101
|
class: /* @__PURE__ */ i([
|
|
102
102
|
"vui-input-icon",
|
|
103
103
|
"vui-input-icon--append",
|
|
104
|
-
"fa-at"
|
|
104
|
+
"fa-solid fa-at"
|
|
105
105
|
])
|
|
106
106
|
}, k = {
|
|
107
107
|
key: 3,
|
|
108
108
|
class: /* @__PURE__ */ i([
|
|
109
109
|
"vui-input-icon",
|
|
110
110
|
"vui-input-icon--append",
|
|
111
|
-
"fa-key"
|
|
111
|
+
"fa-solid fa-key"
|
|
112
112
|
])
|
|
113
113
|
}, S = {
|
|
114
114
|
key: 4,
|
|
115
115
|
class: /* @__PURE__ */ i([
|
|
116
116
|
"vui-input-icon",
|
|
117
117
|
"vui-input-icon--append",
|
|
118
|
-
"fa-arrow-down-1-9"
|
|
118
|
+
"fa-solid fa-arrow-down-1-9"
|
|
119
119
|
])
|
|
120
120
|
};
|
|
121
121
|
function N(e, a, $, B, p, o) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./_plugin-vue_export-helper-DeDoBcDj.js"),l=require("vue");require("highlight.js");const o={},s={},n={en:o,fr:s},r={checked:{default:void 0,type:Boolean},checkedValue:{default:void 0,types:[Boolean,String,Number,null]},icon:{type:String,default:"fa-solid fa-circle"},iconChecked:{type:String,default:"fa-solid fa-circle-check"},modelValue:{default:void 0,types:[Boolean,String,Number,null]},name:{default:void 0,type:String},text:{default:void 0,type:String},uncheckedValue:{default:void 0,types:[Boolean,String,Number,null]},value:{default:void 0,types:[Boolean,String,Number,null]}},u={name:"VuiRadio",mixins:[i.composable],props:r,emits:["update:model-value"],data(){return{toggled:!1}},computed:{hasLabel(){return this.$slots.default||this.text},isChecked(){return this.hasProp("checked")?this.checked:this.hasProp("checkedValue")?this.toggled===this.checkedValue:this.toggled}},watch:{modelValue(e){this.toggled=e},value(e){this.toggled=e}},created(){i.translatable(n),this.hasModelValue?this.toggled=this.modelValue:this.hasValue&&(this.toggled=this.value)},methods:{onToggle(){this.disabled||(this.hasProp("checkedValue")?this.toggled=this.isChecked?this.uncheckedValue:this.checkedValue:this.toggled=!this.isChecked,this.$emit("update:model-value",this.toggled))}}},c=["id"],h=["name","disabled","required"],g=["for"];function f(e,d,k,p,b,t){return l.openBlock(),l.createElementBlock("div",{id:e.componentId,class:l.normalizeClass(["vui-radio",`vui-radio--${e.layout}`,{"vui-radio--flat":e.hasAttribute("flat")},{"vui-radio--with-label":t.hasLabel},{"vui-radio--with-icon":e.icon},{"vui-radio--checked":t.isChecked},{"vui-radio--disabled":e.disabled},{"vui-radio--loading":!e.disabled&&e.loading},e.$props.class]),onClick:d[0]||(d[0]=(...a)=>t.onToggle&&t.onToggle(...a))},[l.renderSlot(e.$slots,"prepend"),e.icon&&!t.isChecked?(l.openBlock(),l.createElementBlock("i",{key:0,class:l.normalizeClass(["vui-radio-icon",e.icon])},null,2)):l.createCommentVNode("",!0),e.iconChecked&&t.isChecked?(l.openBlock(),l.createElementBlock("i",{key:1,class:l.normalizeClass(["vui-radio-icon",e.iconChecked])},null,2)):l.createCommentVNode("",!0),l.createElementVNode("input",{name:e.name,disabled:e.disabled,required:e.hasAttribute("required"),type:"checkbox"},null,8,h),t.hasLabel?(l.openBlock(),l.createElementBlock("label",{key:2,class:"vui-radio-label",for:e.name},[l.renderSlot(e.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(e.text),1)])],8,g)):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"append")],10,c)}const m=i._export_sfc(u,[["render",f]]);exports.default=m;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as u, c as r, t as h } from "./_plugin-vue_export-helper-BSl1dQT6.js";
|
|
2
|
-
import { openBlock as d, createElementBlock as
|
|
2
|
+
import { openBlock as d, createElementBlock as l, normalizeClass as a, renderSlot as t, createCommentVNode as s, createElementVNode as c, createTextVNode as f, toDisplayString as g } from "vue";
|
|
3
3
|
import "highlight.js";
|
|
4
4
|
const m = {}, p = {}, k = {
|
|
5
5
|
en: m,
|
|
@@ -20,11 +20,11 @@ const m = {}, p = {}, k = {
|
|
|
20
20
|
},
|
|
21
21
|
icon: {
|
|
22
22
|
type: String,
|
|
23
|
-
default: "fa-circle"
|
|
23
|
+
default: "fa-solid fa-circle"
|
|
24
24
|
},
|
|
25
25
|
iconChecked: {
|
|
26
26
|
type: String,
|
|
27
|
-
default: "fa-circle-check"
|
|
27
|
+
default: "fa-solid fa-circle-check"
|
|
28
28
|
},
|
|
29
29
|
modelValue: {
|
|
30
30
|
default: void 0,
|
|
@@ -99,9 +99,9 @@ const m = {}, p = {}, k = {
|
|
|
99
99
|
}
|
|
100
100
|
}, V = ["id"], y = ["name", "disabled", "required"], C = ["for"];
|
|
101
101
|
function S(e, o, B, N, T, i) {
|
|
102
|
-
return d(),
|
|
102
|
+
return d(), l("div", {
|
|
103
103
|
id: e.componentId,
|
|
104
|
-
class:
|
|
104
|
+
class: a([
|
|
105
105
|
"vui-radio",
|
|
106
106
|
`vui-radio--${e.layout}`,
|
|
107
107
|
{ "vui-radio--flat": e.hasAttribute("flat") },
|
|
@@ -114,14 +114,14 @@ function S(e, o, B, N, T, i) {
|
|
|
114
114
|
]),
|
|
115
115
|
onClick: o[0] || (o[0] = (...n) => i.onToggle && i.onToggle(...n))
|
|
116
116
|
}, [
|
|
117
|
-
|
|
118
|
-
e.icon && !i.isChecked ? (d(),
|
|
117
|
+
t(e.$slots, "prepend"),
|
|
118
|
+
e.icon && !i.isChecked ? (d(), l("i", {
|
|
119
119
|
key: 0,
|
|
120
|
-
class:
|
|
120
|
+
class: a(["vui-radio-icon", e.icon])
|
|
121
121
|
}, null, 2)) : s("", !0),
|
|
122
|
-
e.iconChecked && i.isChecked ? (d(),
|
|
122
|
+
e.iconChecked && i.isChecked ? (d(), l("i", {
|
|
123
123
|
key: 1,
|
|
124
|
-
class:
|
|
124
|
+
class: a(["vui-radio-icon", e.iconChecked])
|
|
125
125
|
}, null, 2)) : s("", !0),
|
|
126
126
|
c("input", {
|
|
127
127
|
name: e.name,
|
|
@@ -129,16 +129,16 @@ function S(e, o, B, N, T, i) {
|
|
|
129
129
|
required: e.hasAttribute("required"),
|
|
130
130
|
type: "checkbox"
|
|
131
131
|
}, null, 8, y),
|
|
132
|
-
i.hasLabel ? (d(),
|
|
132
|
+
i.hasLabel ? (d(), l("label", {
|
|
133
133
|
key: 2,
|
|
134
134
|
class: "vui-radio-label",
|
|
135
135
|
for: e.name
|
|
136
136
|
}, [
|
|
137
|
-
|
|
137
|
+
t(e.$slots, "default", {}, () => [
|
|
138
138
|
f(g(e.text), 1)
|
|
139
139
|
])
|
|
140
140
|
], 8, C)) : s("", !0),
|
|
141
|
-
|
|
141
|
+
t(e.$slots, "append")
|
|
142
142
|
], 10, V);
|
|
143
143
|
}
|
|
144
144
|
const L = /* @__PURE__ */ u(v, [["render", S]]);
|
package/dist/vui.esm.js
CHANGED
|
@@ -279,7 +279,7 @@ const m = [
|
|
|
279
279
|
], r = {
|
|
280
280
|
install(o) {
|
|
281
281
|
o.provide("$bus", u());
|
|
282
|
-
const t = /* @__PURE__ */ Object.assign({ "/components/html/button/button.vue": () => import("./button-DHGu7n_C.js"), "/components/html/checkbox/checkbox.vue": () => import("./checkbox-
|
|
282
|
+
const t = /* @__PURE__ */ Object.assign({ "/components/html/button/button.vue": () => import("./button-DHGu7n_C.js"), "/components/html/checkbox/checkbox.vue": () => import("./checkbox-CezXn9-X.js"), "/components/html/footer/footer.vue": () => import("./footer-51s_zdw3.js"), "/components/html/form/form.vue": () => import("./form-BZpgCWGA.js"), "/components/html/header/header.vue": () => import("./header-DcGPzeye.js"), "/components/html/input/input.vue": () => import("./input-Ccz7I5Ae.js"), "/components/html/radio/radio.vue": () => import("./radio-Ce5EpDEt.js"), "/components/html/table/table.vue": () => import("./table-BwNXLneC.js"), "/components/layout/grid/grid.vue": () => import("./grid-CurHW85o.js"), "/components/layout/unit/unit.vue": () => import("./unit-Xp1FHc7U.js"), "/components/ui/alert/alert.vue": () => import("./alert-CL20mS-E.js"), "/components/ui/card/card.vue": () => import("./card-ouJTJOLK.js"), "/components/ui/dropdown/dropdown.vue": () => import("./dropdown-BArYbp8p.js"), "/components/ui/list/list.vue": () => import("./list-B2RmfvYJ.js"), "/components/ui/loader/loader.vue": () => import("./loader-D-dknzvs.js"), "/components/ui/modal/modal.vue": () => import("./modal-CwIKus7b.js"), "/components/ui/nav/nav.vue": () => import("./nav-DaMMbZ1c.js"), "/components/ui/page/page.vue": () => import("./page-CM5kqSQi.js"), "/components/ui/pager/pager.vue": () => import("./pager-eK2_u3ky.js"), "/components/ui/progress/progress.vue": () => import("./progress-DsA7oWSK.js"), "/components/ui/stars/stars.vue": () => import("./stars-qgR-qcVz.js"), "/components/ui/tabs/tabs.vue": () => import("./tabs-BRZDtZl_.js"), "/components/ui/tag/tag.vue": () => import("./tag-D4iZf3-b.js"), "/components/ui/toggle/toggle.vue": () => import("./toggle-D8hJDrDz.js"), "/components/ui/tooltip/tooltip.vue": () => import("./tooltip-CIoZoCZY.js") });
|
|
283
283
|
for (const e in t) {
|
|
284
284
|
const n = e.startsWith("..") ? e.slice(2) : e, a = m.find((i) => i.path === n);
|
|
285
285
|
a && o.component(
|