@e-xode/vui 0.6.6 → 0.6.8

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.
Files changed (95) hide show
  1. package/README.md +8 -8
  2. package/dist/checkbox-BP2ttYER.js +1 -0
  3. package/dist/{checkbox-C0XHmyOW.js → checkbox-Qcc2Y3jj.js} +56 -25
  4. package/dist/doc/assets/{alert-DXU8Elqq.js → alert-CbFgfQUo.js} +1 -1
  5. package/dist/doc/assets/{alert-DeIKuuce.js → alert-DfQwT6OA.js} +1 -1
  6. package/dist/doc/assets/{button-G8t_NLRi.js → button-COuiG5KX.js} +1 -1
  7. package/dist/doc/assets/{button-B13Yf1Kd.js → button-DvGB3hP2.js} +1 -1
  8. package/dist/doc/assets/{card-bZflYXP1.js → card-BE5N1ELf.js} +1 -1
  9. package/dist/doc/assets/{card-B_zN0RIP.js → card-DrG3AJ3t.js} +1 -1
  10. package/dist/doc/assets/checkbox-BNwsQFlx.css +1 -0
  11. package/dist/doc/assets/checkbox-C22EmmAr.js +1 -0
  12. package/dist/doc/assets/checkbox-CtW0hne9.js +28 -0
  13. package/dist/doc/assets/{component-B1_tpRW4.js → component-Ckhc3XnI.js} +1 -1
  14. package/dist/doc/assets/{default-D8NjjGBi.css → default-DOpWYWAd.css} +1 -1
  15. package/dist/doc/assets/{default-DHgTVVbu.js → default-LA7Ccgwz.js} +1 -1
  16. package/dist/doc/assets/{demonstrable-nGGBFHXw.js → demonstrable-D6rf1mQ8.js} +1 -1
  17. package/dist/doc/assets/{dropdown-DcmkPEip.js → dropdown-AsBf0iVM.js} +1 -1
  18. package/dist/doc/assets/{dropdown-inZsWa61.js → dropdown-CdJfqX3U.js} +1 -1
  19. package/dist/doc/assets/{dropdown-BDltvOgD.css → dropdown-MxPEtcwI.css} +1 -1
  20. package/dist/doc/assets/{footer-BBBAapy7.js → footer-BUhm-koS.js} +1 -1
  21. package/dist/doc/assets/{footer-D_HwgUDT.js → footer-DITUoPy9.js} +1 -1
  22. package/dist/doc/assets/{form-CjnywRsh.js → form-BLtUQ-lY.js} +1 -1
  23. package/dist/doc/assets/{form-8yXKOyqL.js → form-DV09lYvO.js} +1 -1
  24. package/dist/doc/assets/{grid-BMMzEfv4.js → grid-CTROyBV4.js} +1 -1
  25. package/dist/doc/assets/{grid-CEJWLlXk.js → grid-DVItt9zr.js} +1 -1
  26. package/dist/doc/assets/{header-BlKpFHRO.js → header-B-BfJKYQ.js} +1 -1
  27. package/dist/doc/assets/{header-rBaLh0Nj.js → header-BD031rJv.js} +1 -1
  28. package/dist/doc/assets/{index-Bxv-4tsQ.js → index-421S8sYE.js} +15 -15
  29. package/dist/doc/assets/{index-5BUQdJLK.js → index-X2VadL3u.js} +1 -1
  30. package/dist/doc/assets/input-DAYAbs_u.js +1 -0
  31. package/dist/doc/assets/input-DJ8amP3y.css +1 -0
  32. package/dist/doc/assets/input-DpDc_WzU.js +37 -0
  33. package/dist/doc/assets/{list-Dg2wJkNi.js → list-D2FEJjG3.js} +1 -1
  34. package/dist/doc/assets/{list-uelxz83r.js → list-yhtMSymY.js} +1 -1
  35. package/dist/doc/assets/{loader-Brnp5cYS.js → loader-B6lJYbZi.js} +1 -1
  36. package/dist/doc/assets/{loader-CG6MxzXb.js → loader-Bf-nSxQT.js} +1 -1
  37. package/dist/doc/assets/{modal-DfTrEZrg.js → modal-DlUW_kaU.js} +1 -1
  38. package/dist/doc/assets/{modal-fIYL2tZA.js → modal-VE08CY0x.js} +1 -1
  39. package/dist/doc/assets/{nav-BcINi9Ls.js → nav-DYkZv58f.js} +1 -1
  40. package/dist/doc/assets/{nav-as-1HVTB.js → nav-IXrpcqYs.js} +1 -1
  41. package/dist/doc/assets/{page-25OUIluR.js → page-BpUtuiQG.js} +1 -1
  42. package/dist/doc/assets/{page-Cobsh0Ws.js → page-wuZc9O2p.js} +1 -1
  43. package/dist/doc/assets/{pager-BloxkVL8.js → pager-CEzyxQCo.js} +1 -1
  44. package/dist/doc/assets/{pager-DW6NgWoZ.js → pager-CXdKPt5C.js} +1 -1
  45. package/dist/doc/assets/{progress-Agje03EU.js → progress-BlA_EUah.js} +1 -1
  46. package/dist/doc/assets/{progress-vNI_eJTO.js → progress-yFWu8fT9.js} +1 -1
  47. package/dist/doc/assets/radio-BS9FLviC.js +28 -0
  48. package/dist/doc/assets/radio-Ckx0vNcX.js +1 -0
  49. package/dist/doc/assets/radio-Dg31j783.css +1 -0
  50. package/dist/doc/assets/{start-vmhkIBQI.js → start-C_u3pZMX.js} +1 -1
  51. package/dist/doc/assets/{table-ovOZ3st-.js → table-CjpAkPH9.js} +4 -4
  52. package/dist/doc/assets/table-d1SewNuO.js +1 -0
  53. package/dist/doc/assets/tabs-C60XBCs9.js +18 -0
  54. package/dist/doc/assets/{tabs-B3SGp8R7.css → tabs-hlfEQ058.css} +1 -1
  55. package/dist/doc/assets/tabs-vW_19yxP.js +1 -0
  56. package/dist/doc/assets/{tag-BkuMiR78.js → tag--7Zal5Qh.js} +1 -1
  57. package/dist/doc/assets/{tag-BzSu1hWx.js → tag-BVTDDSad.js} +1 -1
  58. package/dist/doc/assets/{toggle-DwIBPen1.js → toggle-Borth1ZY.js} +1 -1
  59. package/dist/doc/assets/{toggle-EqO81L8C.js → toggle-y-gY6lFl.js} +1 -1
  60. package/dist/doc/assets/{tooltip-DpEnb-Ez.js → tooltip-03ntAr6u.js} +1 -1
  61. package/dist/doc/assets/{tooltip-Di8htduO.js → tooltip-CSTgz_s6.js} +1 -1
  62. package/dist/doc/assets/{translatable-CVnAMpzi.js → translatable-1Spw6vjt.js} +1 -1
  63. package/dist/doc/assets/{unit-thgjRRiP.js → unit-DrC7rDZj.js} +1 -1
  64. package/dist/doc/assets/{unit-CHR3cNii.js → unit-qNeooDZa.js} +1 -1
  65. package/dist/doc/index.html +1 -1
  66. package/dist/{dropdown-CXZUMHXL.js → dropdown-DUUZsTpI.js} +1 -1
  67. package/dist/{dropdown-Dh1vGymO.js → dropdown-UMn42uen.js} +6 -5
  68. package/dist/input-BS_1U11l.js +139 -0
  69. package/dist/input-CPJkbqQt.js +1 -0
  70. package/dist/radio-BlBm-IvA.js +1 -0
  71. package/dist/radio-CzWvdO-G.js +147 -0
  72. package/dist/style.css +1 -1
  73. package/dist/table-BwNXLneC.js +99 -0
  74. package/dist/table-CZIoYOTL.js +1 -0
  75. package/dist/{tabs-X0RMcNvq.js → tabs-BRZDtZl_.js} +26 -26
  76. package/dist/tabs-ovpCyyQj.js +1 -0
  77. package/dist/vui.esm.js +12 -1
  78. package/dist/vui.js +1 -1
  79. package/dist/vui.umd.js +1 -1
  80. package/package.json +9 -9
  81. package/dist/checkbox-B9yl-GCS.js +0 -1
  82. package/dist/doc/assets/checkbox-C2hNaqU5.js +0 -14
  83. package/dist/doc/assets/checkbox-C9B8Gm2L.js +0 -1
  84. package/dist/doc/assets/checkbox-Dtjrzcei.css +0 -1
  85. package/dist/doc/assets/input-Bm6YMcaH.js +0 -1
  86. package/dist/doc/assets/input-D3l35AS9.css +0 -1
  87. package/dist/doc/assets/input-DqqDODLC.js +0 -15
  88. package/dist/doc/assets/table-0uWudBxb.js +0 -1
  89. package/dist/doc/assets/tabs-B3nfb47D.js +0 -11
  90. package/dist/doc/assets/tabs-C3cihruc.js +0 -1
  91. package/dist/input-Dy5fCJhT.js +0 -103
  92. package/dist/input-WjGQ7q1J.js +0 -1
  93. package/dist/table-8qXMDkjH.js +0 -1
  94. package/dist/table-DuvV-g2p.js +0 -95
  95. package/dist/tabs-CHwXPZS8.js +0 -1
@@ -1,11 +0,0 @@
1
- import{d as h}from"./demonstrable-nGGBFHXw.js";import{t as _}from"./translatable-CVnAMpzi.js";import f from"./tabs-C3cihruc.js";import{_ as y,a as p,b as a,w as o,r as n,o as s,F as b,g as u,h as x,q as T,e as k,t as l,k as B,l as $,i as S,d as r}from"./index-Bxv-4tsQ.js";import"./composable-CshUTKfl.js";const V={"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"},L={},w={en:V,fr:L},i={examples:[{markup:`
2
- <vui-tabs
3
- items="[
4
- { 'label': 'Tab 1', 'value': 'tab1' },
5
- { 'label': 'Tab 2', 'value': 'tab2' },
6
- ]"
7
- >
8
- <template #tab1>Tab 1</template>
9
- <template #tab2>Tab 2</template>
10
- </vui-tabs>
11
- `,props:{icon:"fa-solid fa-tags",id:"vui-tabs-1",items:[{label:"Tab 1",value:"tab1"},{label:"Tab 2",value:"tab2"}]},text:"page.component.tabs.default"}],props:[{tag:"items",type:"Array",text:"page.component.tabs.doc.prop.disabled"},{tag:"items",type:"Array",text:"page.component.tabs.doc.prop.items"},{tag:"item-label",type:"String",text:"page.component.tabs.doc.prop.item-label"},{tag:"item-value",type:"String",text:"page.component.tabs.doc.prop.item-value"},{tag:"v-model",type:"Boolean",text:"page.component.tabs.doc.prop.vmodel"},{tag:"value",type:"Boolean",text:"page.component.tabs.doc.prop.value"}],slots:[{name:"default",text:"page.component.card.doc.slot.default"}]},H={name:"ViewTabs",mixins:[h],setup(){return _(w),{}},computed:{doc(){return i},examples(){return this.docExamples(f,{attrs:i.attrs,examples:i.examples.map(e=>({...e,props:{...e.props,text:e.props.text?this.$t(e.props.text):null}}))})}}},P={class:"view-tabs"},C=["innerHTML"],D={class:"title"},N={class:"title"};function A(e,E,F,M,q,g){const c=n("vui-grid-unit"),d=n("vui-table"),v=n("vui-grid");return s(),p("div",P,[a(v,{"col-sm":"1","col-md":"2"},{default:o(()=>[a(c,{class:"examples"},{default:o(()=>[(s(!0),p(b,null,u(g.examples,t=>(s(),p(b,{key:`tag-${t.props.id}`},[(s(),x(S(t.component),B($(t.props)),T({_:2},[u(t.props.items,(m,z)=>({name:m.value,fn:o(()=>[k(l(m.label),1)])}))]),1040)),r("div",{class:"highlighted-code",innerHTML:t.highlighted},null,8,C)],64))),128))]),_:1}),a(c,{class:"api-options"},{default:o(()=>[r("h2",D,l(e.$t("page.component.h2.api")),1),a(d,{"item-label":"label","item-value":"value",headers:e.docPropsHeaders,items:e.docProps},null,8,["headers","items"]),r("h2",N,l(e.$t("page.component.h2.slots")),1),a(d,{"item-label":"label","item-value":"value",headers:e.docSlotsHeaders,items:e.docSlots},null,8,["headers","items"])]),_:1})]),_:1})])}const K=y(H,[["render",A]]);export{K as default};
@@ -1 +0,0 @@
1
- import{c as p}from"./composable-CshUTKfl.js";import{t as v}from"./translatable-CVnAMpzi.js";import{_ as b,a as s,j as i,d as l,F as o,g as c,n,o as a,f as m,t as f}from"./index-Bxv-4tsQ.js";const V={},g={},y={en:V,fr:g},$={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:$,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(y),this.hasModelValue)this.active=this.modelValue;else if(this.hasValue)this.active=this.value;else if((e=this.items)!=null&&e.length){const r=this.items[0];this.active=r[this.itemValue]}},methods:{toggle(e){this.disabled||(this.active=e,this.$emit("update:model-value",this.active))}}},S=["id"],_={class:"vui-tabs-tabs"},C=["onClick"],w={class:"label"},B={class:"vui-tabs-slots"};function L(e,r,F,I,u,d){return a(),s("div",{id:e.componentId,class:n(["vui-tabs",e.$props.class])},[i(e.$slots,"prepend"),l("div",_,[(a(!0),s(o,null,c(d.tabs,t=>(a(),s("div",{key:t.$$id,class:n(["vui-tabs-tabs-tab",{"vui-tabs-tabs-tab--with-icon":e.icon},{"vui-tabs-tabs-tab--active":t[e.itemValue]===u.active}]),onClick:()=>d.toggle(t[e.itemValue])},[e.icon?(a(),s("i",{key:0,class:n(["vui-tabs-tabs-tab-icon",e.icon])},null,2)):m("",!0),l("span",w,f(t[e.itemLabel]),1)],10,C))),128))]),l("div",B,[(a(!0),s(o,null,c(e.items,(t,h)=>(a(),s(o,{key:`slot-${t.$$id}`},[t[e.itemValue]===u.active?i(e.$slots,t[e.itemValue],{key:0,index:h}):m("",!0)],64))),128))]),i(e.$slots,"append")],10,S)}const q=b(k,[["render",L]]);export{q as default};
@@ -1,103 +0,0 @@
1
- import { _ as u, c as s, t as o } from "./_plugin-vue_export-helper-BSl1dQT6.js";
2
- import { openBlock as d, createElementBlock as r, normalizeClass as i, renderSlot as a, createElementVNode as m } from "vue";
3
- import "highlight.js";
4
- const h = {
5
- "component.input.placeholder": "Type a value ..."
6
- }, c = {}, y = {
7
- en: h,
8
- fr: c
9
- }, f = {
10
- modelValue: {
11
- default: void 0,
12
- types: [
13
- Boolean,
14
- String,
15
- Number,
16
- null
17
- ]
18
- },
19
- maxlength: {
20
- type: Number
21
- },
22
- name: {
23
- type: String
24
- },
25
- placeholder: {
26
- default: null,
27
- types: [
28
- Boolean,
29
- String,
30
- Number,
31
- null
32
- ]
33
- },
34
- type: {
35
- type: String,
36
- default: "text"
37
- },
38
- value: {
39
- default: void 0,
40
- types: [
41
- Boolean,
42
- Number,
43
- String,
44
- null
45
- ]
46
- }
47
- }, b = {
48
- name: "VuiInput",
49
- mixins: [
50
- s
51
- ],
52
- props: f,
53
- emits: ["input", "update:model-value"],
54
- data() {
55
- return {
56
- typed: null
57
- };
58
- },
59
- computed: {
60
- placeholderValue() {
61
- return this.placeholder ? this.placeholder : this.$t("component.input.placeholder");
62
- }
63
- },
64
- watch: {
65
- value(e) {
66
- this.typed = e;
67
- },
68
- modelValue(e) {
69
- this.typed = e;
70
- }
71
- },
72
- created() {
73
- o(y), this.hasModelValue ? this.typed = this.modelValue : this.hasValue && (this.typed = this.value);
74
- },
75
- methods: {
76
- onInput(e) {
77
- this.typed = this.type === "number" ? e.target.valueAsNumber : e.target.value, this.$emit("input", e), this.$emit("update:model-value", this.typed);
78
- }
79
- }
80
- }, g = ["id"], v = ["value", "disabled", "maxlength", "name", "placeholder", "required", "type"];
81
- function V(e, l, I, N, n, t) {
82
- return d(), r("div", {
83
- id: e.componentId,
84
- class: i(["vui-input", e.$props.class])
85
- }, [
86
- a(e.$slots, "prepend"),
87
- m("input", {
88
- value: n.typed,
89
- disabled: e.disabled,
90
- maxlength: e.maxlength,
91
- name: e.name,
92
- placeholder: t.placeholderValue,
93
- required: e.hasAttribute("required"),
94
- type: e.type,
95
- onInput: l[0] || (l[0] = (...p) => t.onInput && t.onInput(...p))
96
- }, null, 40, v),
97
- a(e.$slots, "append")
98
- ], 10, g);
99
- }
100
- const q = /* @__PURE__ */ u(b, [["render", V]]);
101
- export {
102
- q as default
103
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./_plugin-vue_export-helper-DeDoBcDj.js"),t=require("vue");require("highlight.js");const p={"component.input.placeholder":"Type a value ..."},d={},o={en:p,fr:d},s={modelValue:{default:void 0,types:[Boolean,String,Number,null]},maxlength:{type:Number},name:{type:String},placeholder:{default:null,types:[Boolean,String,Number,null]},type:{type:String,default:"text"},value:{default:void 0,types:[Boolean,Number,String,null]}},i={name:"VuiInput",mixins:[n.composable],props:s,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(){n.translatable(o),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)}}},h=["id"],m=["value","disabled","maxlength","name","placeholder","required","type"];function c(e,a,f,g,u,l){return t.openBlock(),t.createElementBlock("div",{id:e.componentId,class:t.normalizeClass(["vui-input",e.$props.class])},[t.renderSlot(e.$slots,"prepend"),t.createElementVNode("input",{value:u.typed,disabled:e.disabled,maxlength:e.maxlength,name:e.name,placeholder:l.placeholderValue,required:e.hasAttribute("required"),type:e.type,onInput:a[0]||(a[0]=(...r)=>l.onInput&&l.onInput(...r))},null,40,m),t.renderSlot(e.$slots,"append")],10,h)}const y=n._export_sfc(i,[["render",c]]);exports.default=y;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./animable-ChJEXlsE.js"),s=require("./_plugin-vue_export-helper-DeDoBcDj.js"),e=require("vue");require("highlight.js");const p={headers:{type:Array,default:()=>[]},itemLabel:{type:String,default:"label"},itemValue:{type:String,default:"value"},items:{type:Array,default:()=>[],required:!0}},c={},b={},V={en:c,fr:b},$={name:"VuiTable",mixins:[d.animable,s.composable],props:p,created(){s.translatable(V)},methods:{leaf(l,i){return i.split(".").reduce((r,o)=>r&&r[o]?r[o]:null,l)}}},f=["id"],y=["data-label"];function g(l,i,r,o,E,u){return e.openBlock(),e.createElementBlock("div",{id:l.componentId,class:e.normalizeClass(["vui-table",l.$props.class])},[e.renderSlot(l.$slots,"prepend"),e.createElementVNode("table",null,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.headers,(t,a)=>e.renderSlot(l.$slots,`header.${t[l.itemValue]}`,{key:`table-${l.componentId}-header--${a}`,item:t,itemLabel:l.itemLabel,itemValue:l.itemValue,index:a},()=>[e.createElementVNode("th",{class:e.normalizeClass(t.class)},e.toDisplayString(t[l.itemLabel]),3)])),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.items,(t,a)=>e.renderSlot(l.$slots,"default",{key:`table-${l.componentId}-item--${a}`,index:a,item:t,itemLabel:l.itemLabel,itemValue:l.itemValue},()=>[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.headers,(n,m)=>e.renderSlot(l.$slots,`item.${n[l.itemValue]}`,{key:`table-${l.componentId}-item-td--${m}`,index:m,item:t,itemLabel:l.itemLabel,itemValue:l.itemValue},()=>[e.createElementVNode("td",{"data-label":n.label,class:e.normalizeClass(n.class)},e.toDisplayString(u.leaf(t,n.value)),11,y)])),128))])])),128))])]),e.renderSlot(l.$slots,"append")],10,f)}const k=s._export_sfc($,[["render",g]]);exports.default=k;
@@ -1,95 +0,0 @@
1
- import { a as y } from "./animable-DnFaMPYA.js";
2
- import { _ as V, c as L, t as g } from "./_plugin-vue_export-helper-BSl1dQT6.js";
3
- import { openBlock as i, createElementBlock as o, normalizeClass as u, renderSlot as s, createElementVNode as t, Fragment as d, renderList as p, toDisplayString as f } from "vue";
4
- import "highlight.js";
5
- const h = {
6
- headers: {
7
- type: Array,
8
- default: () => []
9
- },
10
- itemLabel: {
11
- type: String,
12
- default: "label"
13
- },
14
- itemValue: {
15
- type: String,
16
- default: "value"
17
- },
18
- items: {
19
- type: Array,
20
- default: () => [],
21
- required: !0
22
- }
23
- }, k = {}, I = {}, S = {
24
- en: k,
25
- fr: I
26
- }, v = {
27
- name: "VuiTable",
28
- mixins: [
29
- y,
30
- L
31
- ],
32
- props: h,
33
- created() {
34
- g(S);
35
- },
36
- methods: {
37
- leaf(e, b) {
38
- return b.split(".").reduce((n, m) => n && n[m] ? n[m] : null, e);
39
- }
40
- }
41
- }, A = ["id"], B = ["data-label"];
42
- function E(e, b, n, m, q, c) {
43
- return i(), o("div", {
44
- id: e.componentId,
45
- class: u(["vui-table", e.$props.class])
46
- }, [
47
- s(e.$slots, "prepend"),
48
- t("table", null, [
49
- t("thead", null, [
50
- t("tr", null, [
51
- (i(!0), o(d, null, p(e.headers, (l, a) => s(e.$slots, `header.${l[e.itemValue]}`, {
52
- key: `table-${e.componentId}-header--${a}`,
53
- item: l,
54
- itemLabel: e.itemLabel,
55
- itemValue: e.itemValue,
56
- index: a
57
- }, () => [
58
- t("th", {
59
- class: u(l.class)
60
- }, f(l[e.itemLabel]), 3)
61
- ])), 128))
62
- ])
63
- ]),
64
- t("tbody", null, [
65
- (i(!0), o(d, null, p(e.items, (l, a) => s(e.$slots, "default", {
66
- key: `table-${e.componentId}-item--${a}`,
67
- index: a,
68
- item: l,
69
- itemLabel: e.itemLabel,
70
- itemValue: e.itemValue
71
- }, () => [
72
- t("tr", null, [
73
- (i(!0), o(d, null, p(e.headers, (r, $) => s(e.$slots, `item.${r[e.itemValue]}`, {
74
- key: `table-${e.componentId}-item-td--${$}`,
75
- index: $,
76
- item: l,
77
- itemLabel: e.itemLabel,
78
- itemValue: e.itemValue
79
- }, () => [
80
- t("td", {
81
- "data-label": r.label,
82
- class: u(r.class)
83
- }, f(c.leaf(l, r.value)), 11, B)
84
- ])), 128))
85
- ])
86
- ])), 128))
87
- ])
88
- ]),
89
- s(e.$slots, "append")
90
- ], 10, A);
91
- }
92
- const N = /* @__PURE__ */ V(v, [["render", E]]);
93
- export {
94
- N as default
95
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./_plugin-vue_export-helper-DeDoBcDj.js"),e=require("vue");require("highlight.js");const r={},c={},u={en:r,fr:c},d={icon:{type:String},items:{type:Array,required:!0},itemLabel:{type:String,default:"label"},itemValue:{type:String,default:"value"},modelValue:{type:String},value:{type:String}},m={name:"VuiTabs",mixins:[i.composable],props:d,emits:["update:model-value"],data(){return{active:null}},computed:{tabs(){return this.items.map(t=>({...t,$$id:this.newId()}))}},watch:{modelValue(t){this.active=t},value(t){this.active=t}},created(){var t;if(i.translatable(u),this.hasModelValue)this.active=this.modelValue;else if(this.hasValue)this.active=this.value;else if((t=this.items)!=null&&t.length){const a=this.items[0];this.active=a[this.itemValue]}},methods:{toggle(t){this.disabled||(this.active=t,this.$emit("update:model-value",this.active))}}},p=["id"],h={class:"vui-tabs-tabs"},v=["onClick"],b={class:"label"},g={class:"vui-tabs-slots"};function k(t,a,y,f,l,o){return e.openBlock(),e.createElementBlock("div",{id:t.componentId,class:e.normalizeClass(["vui-tabs",t.$props.class])},[e.renderSlot(t.$slots,"prepend"),e.createElementVNode("div",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tabs,s=>(e.openBlock(),e.createElementBlock("div",{key:s.$$id,class:e.normalizeClass(["vui-tabs-tabs-tab",{"vui-tabs-tabs-tab--with-icon":t.icon},{"vui-tabs-tabs-tab--active":s[t.itemValue]===l.active}]),onClick:()=>o.toggle(s[t.itemValue])},[t.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["vui-tabs-tabs-tab-icon",t.icon])},null,2)):e.createCommentVNode("",!0),e.createElementVNode("span",b,e.toDisplayString(s[t.itemLabel]),1)],10,v))),128))]),e.createElementVNode("div",g,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(s,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`slot-${s.$$id}`},[s[t.itemValue]===l.active?e.renderSlot(t.$slots,s[t.itemValue],{key:0,index:n}):e.createCommentVNode("",!0)],64))),128))]),e.renderSlot(t.$slots,"append")],10,p)}const V=i._export_sfc(m,[["render",k]]);exports.default=V;