@volverjs/ui-vue 0.0.10-beta.6 → 0.0.10-beta.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.
- package/bin/icons.cjs +1 -1
- package/bin/icons.js +22 -15
- package/dist/Volver.d.ts +0 -1
- package/dist/components/VvAccordion/VvAccordion.es.js +10 -2
- package/dist/components/VvAccordion/VvAccordion.vue.d.ts +4 -4
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +52 -25
- package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +4 -4
- package/dist/components/VvAction/VvAction.es.js +6 -1
- package/dist/components/VvAction/VvAction.vue.d.ts +4 -4
- package/dist/components/VvAlert/VvAlert.es.js +73 -43
- package/dist/components/VvAlert/VvAlert.umd.js +1 -1
- package/dist/components/VvAlert/VvAlert.vue.d.ts +4 -4
- package/dist/components/VvAlertGroup/VvAlertGroup.es.js +113 -64
- package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
- package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +4 -4
- package/dist/components/VvAvatar/VvAvatar.es.js +1 -1
- package/dist/components/VvAvatar/VvAvatar.umd.js +1 -1
- package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +56 -26
- package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -1
- package/dist/components/VvBadge/VvBadge.es.js +18 -8
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +61 -38
- package/dist/components/VvButton/VvButton.es.js +45 -17
- package/dist/components/VvButton/VvButton.umd.js +1 -1
- package/dist/components/VvButton/VvButton.vue.d.ts +15 -9
- package/dist/components/VvButton/index.d.ts +2 -2
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +12 -6
- package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +4 -4
- package/dist/components/VvCard/VvCard.es.js +26 -16
- package/dist/components/VvCard/VvCard.umd.js +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.es.js +9 -2
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +4 -4
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +78 -44
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +4 -4
- package/dist/components/VvCheckboxGroup/index.d.ts +1 -1
- package/dist/components/VvCombobox/VvCombobox.es.js +595 -372
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +7 -7
- package/dist/components/VvCombobox/index.d.ts +11 -6
- package/dist/components/VvDialog/VvDialog.es.js +44 -27
- package/dist/components/VvDialog/VvDialog.umd.js +1 -1
- package/dist/components/VvDialog/VvDialog.vue.d.ts +4 -4
- package/dist/components/VvDropdown/VvDropdown.es.js +64 -44
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +18 -4
- package/dist/components/VvDropdown/index.d.ts +1 -1
- package/dist/components/VvDropdownAction/VvDropdownAction.es.js +26 -9
- package/dist/components/VvDropdownItem/VvDropdownItem.es.js +13 -7
- package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +7 -1
- package/dist/components/VvDropdownOption/VvDropdownOption.es.js +19 -8
- package/dist/components/VvIcon/VvIcon.es.js +1 -1
- package/dist/components/VvIcon/VvIcon.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.es.js +126 -97
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +4 -4
- package/dist/components/VvNav/VvNav.es.js +50 -26
- package/dist/components/VvNav/VvNav.vue.d.ts +7 -7
- package/dist/components/VvNav/index.d.ts +1 -1
- package/dist/components/VvNavItem/VvNavItem.es.js +19 -7
- package/dist/components/VvProgress/VvProgress.es.js +12 -6
- package/dist/components/VvRadio/VvRadio.es.js +9 -2
- package/dist/components/VvRadio/VvRadio.vue.d.ts +4 -4
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +78 -44
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +4 -4
- package/dist/components/VvRadioGroup/index.d.ts +1 -1
- package/dist/components/VvSelect/VvSelect.es.js +133 -94
- package/dist/components/VvSelect/VvSelect.umd.js +1 -1
- package/dist/components/VvSelect/VvSelect.vue.d.ts +4 -4
- package/dist/components/VvSelect/index.d.ts +1 -1
- package/dist/components/VvTab/VvTab.es.js +98 -44
- package/dist/components/VvTab/VvTab.umd.js +1 -1
- package/dist/components/VvTab/VvTab.vue.d.ts +4 -4
- package/dist/components/VvTextarea/VvTextarea.es.js +99 -74
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +4 -4
- package/dist/components/VvTooltip/VvTooltip.es.js +19 -9
- package/dist/components/VvTooltip/VvTooltip.vue.d.ts +3 -3
- package/dist/components/VvTooltip/index.d.ts +1 -1
- package/dist/components/index.es.js +1363 -840
- package/dist/components/index.umd.js +1 -1
- package/dist/composables/useVolver.d.ts +1 -1
- package/dist/directives/index.d.ts +3 -5
- package/dist/directives/index.es.js +39 -23
- package/dist/directives/index.umd.js +1 -1
- package/dist/directives/v-tooltip.es.js +37 -18
- package/dist/directives/v-tooltip.umd.js +1 -1
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/props/index.d.ts +1 -1
- package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +46 -11
- package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +308 -59
- package/dist/stories/Combobox/Combobox.settings.d.ts +8 -0
- package/dist/stories/Tab/Tab.settings.d.ts +2 -15
- package/dist/types/generic.d.ts +1 -1
- package/package.json +35 -35
- package/src/Volver.ts +0 -1
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvCombobox/VvCombobox.vue +7 -3
- package/src/components/VvCombobox/index.ts +4 -0
- package/src/components/VvInputText/VvInputText.vue +2 -2
- package/src/directives/index.ts +1 -4
- package/src/directives/v-tooltip.ts +19 -10
- package/src/index.ts +3 -1
- package/src/stories/Combobox/Combobox.settings.ts +8 -0
- package/src/stories/Tab/Tab.settings.ts +2 -2
- package/src/types/generic.ts +2 -1
|
@@ -571,7 +571,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
571
571
|
color: _ctx.color,
|
|
572
572
|
onLoad: _ctx.onLoad,
|
|
573
573
|
icon: unref(icon)
|
|
574
|
-
}), null, 16, ["class"])) : createCommentVNode("", true);
|
|
574
|
+
}), null, 16, ["class"])) : createCommentVNode("v-if", true);
|
|
575
575
|
};
|
|
576
576
|
}
|
|
577
577
|
});
|
|
@@ -726,7 +726,13 @@ const _hoisted_1 = {
|
|
|
726
726
|
};
|
|
727
727
|
const _hoisted_2 = ["id"];
|
|
728
728
|
const _hoisted_3 = ["aria-label"];
|
|
729
|
-
const _hoisted_4 = /* @__PURE__ */ createElementVNode(
|
|
729
|
+
const _hoisted_4 = /* @__PURE__ */ createElementVNode(
|
|
730
|
+
"div",
|
|
731
|
+
{ class: "vv-alert__close-mask" },
|
|
732
|
+
null,
|
|
733
|
+
-1
|
|
734
|
+
/* HOISTED */
|
|
735
|
+
);
|
|
730
736
|
const _hoisted_5 = [
|
|
731
737
|
_hoisted_4
|
|
732
738
|
];
|
|
@@ -750,47 +756,71 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
750
756
|
const { hasProps, hasTitleId, hasIcon, close } = useVvAlert(props, emit);
|
|
751
757
|
__expose({ close });
|
|
752
758
|
return (_ctx, _cache) => {
|
|
753
|
-
return openBlock(), createElementBlock(
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
))
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
759
|
+
return openBlock(), createElementBlock(
|
|
760
|
+
"div",
|
|
761
|
+
normalizeProps(guardReactiveProps(unref(hasProps))),
|
|
762
|
+
[
|
|
763
|
+
_ctx.$slots.header || _ctx.$slots.title || _ctx.$slots.close || _ctx.$slots["title::before"] || _ctx.$slots["title::after"] || _ctx.title || _ctx.dismissable || _ctx.autoClose ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
764
|
+
unref(hasIcon) ? (openBlock(), createBlock(
|
|
765
|
+
_sfc_main$2,
|
|
766
|
+
mergeProps({ key: 0 }, unref(hasIcon), { class: "vv-alert__icon" }),
|
|
767
|
+
null,
|
|
768
|
+
16
|
|
769
|
+
/* FULL_PROPS */
|
|
770
|
+
)) : createCommentVNode("v-if", true),
|
|
771
|
+
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
772
|
+
renderSlot(_ctx.$slots, "title::before"),
|
|
773
|
+
_ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock("strong", {
|
|
774
|
+
key: 0,
|
|
775
|
+
id: unref(hasTitleId),
|
|
776
|
+
class: "vv-alert__title"
|
|
777
|
+
}, [
|
|
778
|
+
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
779
|
+
createTextVNode(
|
|
780
|
+
toDisplayString(_ctx.title),
|
|
781
|
+
1
|
|
782
|
+
/* TEXT */
|
|
783
|
+
)
|
|
784
|
+
])
|
|
785
|
+
], 8, _hoisted_2)) : createCommentVNode("v-if", true),
|
|
786
|
+
renderSlot(_ctx.$slots, "title::after")
|
|
787
|
+
]),
|
|
788
|
+
renderSlot(_ctx.$slots, "close", normalizeProps(guardReactiveProps({ close: unref(close) })), () => [
|
|
789
|
+
_ctx.dismissable || _ctx.autoClose ? (openBlock(), createElementBlock("button", {
|
|
790
|
+
key: 0,
|
|
791
|
+
class: "vv-alert__close",
|
|
792
|
+
type: "button",
|
|
793
|
+
"aria-label": _ctx.closeLabel,
|
|
794
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(
|
|
795
|
+
//@ts-ignore
|
|
796
|
+
(...args) => unref(close) && unref(close)(...args),
|
|
797
|
+
["stop"]
|
|
798
|
+
))
|
|
799
|
+
}, _hoisted_5, 8, _hoisted_3)) : createCommentVNode("v-if", true)
|
|
800
|
+
])
|
|
801
|
+
])) : createCommentVNode("v-if", true),
|
|
802
|
+
_ctx.$slots.default || _ctx.content ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
803
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
804
|
+
createTextVNode(
|
|
805
|
+
toDisplayString(_ctx.content),
|
|
806
|
+
1
|
|
807
|
+
/* TEXT */
|
|
808
|
+
)
|
|
809
|
+
])
|
|
810
|
+
])) : createCommentVNode("v-if", true),
|
|
811
|
+
_ctx.$slots.footer || _ctx.footer ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
812
|
+
renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
813
|
+
createTextVNode(
|
|
814
|
+
toDisplayString(_ctx.footer),
|
|
815
|
+
1
|
|
816
|
+
/* TEXT */
|
|
817
|
+
)
|
|
818
|
+
])
|
|
819
|
+
])) : createCommentVNode("v-if", true)
|
|
820
|
+
],
|
|
821
|
+
16
|
|
822
|
+
/* FULL_PROPS */
|
|
823
|
+
);
|
|
794
824
|
};
|
|
795
825
|
}
|
|
796
826
|
});
|
|
@@ -831,27 +861,46 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
831
861
|
}
|
|
832
862
|
};
|
|
833
863
|
return (_ctx, _cache) => {
|
|
834
|
-
return openBlock(), createElementBlock(
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
864
|
+
return openBlock(), createElementBlock(
|
|
865
|
+
"div",
|
|
866
|
+
normalizeProps(guardReactiveProps(unref(hasProps))),
|
|
867
|
+
[
|
|
868
|
+
renderSlot(_ctx.$slots, "before"),
|
|
869
|
+
createVNode(TransitionGroup, mergeProps({
|
|
870
|
+
tag: "div",
|
|
871
|
+
role: "group",
|
|
872
|
+
name: unref(hasTransition),
|
|
873
|
+
class: "vv-alert-group__list"
|
|
874
|
+
}, toHandlers(alertGroupTransitionHandlers)), {
|
|
875
|
+
default: withCtx(() => [
|
|
876
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
877
|
+
(openBlock(true), createElementBlock(
|
|
878
|
+
Fragment,
|
|
879
|
+
null,
|
|
880
|
+
renderList(_ctx.items, (item) => {
|
|
881
|
+
return openBlock(), createBlock(
|
|
882
|
+
_sfc_main$1,
|
|
883
|
+
mergeProps(item, {
|
|
884
|
+
key: item.id
|
|
885
|
+
}),
|
|
886
|
+
null,
|
|
887
|
+
16
|
|
888
|
+
/* FULL_PROPS */
|
|
889
|
+
);
|
|
890
|
+
}),
|
|
891
|
+
128
|
|
892
|
+
/* KEYED_FRAGMENT */
|
|
893
|
+
))
|
|
894
|
+
])
|
|
895
|
+
]),
|
|
896
|
+
_: 3
|
|
897
|
+
/* FORWARDED */
|
|
898
|
+
}, 16, ["name"]),
|
|
899
|
+
renderSlot(_ctx.$slots, "after")
|
|
900
|
+
],
|
|
901
|
+
16
|
|
902
|
+
/* FULL_PROPS */
|
|
903
|
+
);
|
|
855
904
|
};
|
|
856
905
|
}
|
|
857
906
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue"),require("mitt"),require("@iconify/vue"),require("uid")):"function"==typeof define&&define.amd?define(["vue","mitt","@iconify/vue","uid"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).VvAlertGroup=t(e.vue,e.mitt,e.vue$1,e.uid)}(this,(function(e,t,o,r){"use strict";var l=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(l||{}),n=(e=>(e.before="before",e.after="after",e))(n||{}),i=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(i||{});const a=Symbol.for("volver"),s=Symbol.for("alertGroup"),c=(Boolean,Boolean,Boolean,Boolean,{modifiers:[String,Array]}),u={icon:{type:[String,Object]},iconPosition:{type:String,default:n.before,validation:e=>Object.values(n).includes(e)}},d={id:[String,Number]};function
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue"),require("mitt"),require("@iconify/vue"),require("uid")):"function"==typeof define&&define.amd?define(["vue","mitt","@iconify/vue","uid"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).VvAlertGroup=t(e.vue,e.mitt,e.vue$1,e.uid)}(this,(function(e,t,o,r){"use strict";var l=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(l||{}),n=(e=>(e.before="before",e.after="after",e))(n||{}),i=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(i||{});const a=Symbol.for("volver"),s=Symbol.for("alertGroup"),c=(Boolean,Boolean,Boolean,Boolean,{modifiers:[String,Array]}),u={icon:{type:[String,Object]},iconPosition:{type:String,default:n.before,validation:e=>Object.values(n).includes(e)}},d={id:[String,Number]};function v(t,o,r){return e.computed((()=>{const l={[t]:!0},n="string"==typeof(null==o?void 0:o.value)?o.value.split(" "):null==o?void 0:o.value;return n&&Array.isArray(n)&&n.forEach((e=>{e&&(l[`${t}--${e}`]=!0)})),r&&Object.keys(r.value).forEach((o=>{l[`${t}--${o}`]=e.unref(r.value[o])})),l}))}l.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,i.button;const f={...c,name:{type:String,required:!0},items:{type:Array,default:()=>[]},stack:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},inline:{type:String,default:void 0},block:{type:String,default:void 0},position:{type:String,default:void 0},transition:{type:String,default:void 0}},p=(o,r)=>{const l=function({name:o}){const r=t();return e.provide(s,{name:o,bus:r}),r}({name:e.computed((()=>o.name))});(o.block&&!o.inline||!o.block&&o.inline)&&console.warn("[VvAlertGroup]: block and inline props must coexist at the same time.");const n=e.computed((()=>{const t=[v("vv-alert-group",e.computed((()=>o.modifiers)),e.computed((()=>({stack:o.stack,reverse:o.reverse,absolute:"absolute"===o.position,fixed:"fixed"===o.position})))).value];return o.inline&&o.block&&t.push(`vv-alert-group--${o.block}-${o.inline}`),t})),i=e.computed((()=>o.transition?o.transition:o.position?"start"===o.inline?"vv-alert--fade-inline-start":"end"===o.inline?"vv-alert--fade-inline-end":"top"===o.block?"vv-alert--fade-block-top":"bottom"===o.block?"vv-alert--fade-block-bottom":"vv-alert--fade":"vv-alert--fade"));return l.on("close",(e=>{r("close",e)})),{hasTransition:i,hasProps:e.computed((()=>({class:n.value})))}},m={color:String,width:{type:[String,Number]},height:{type:[String,Number]},name:{type:String,required:!0},provider:{type:String},prefix:{type:String,default:"normal"},src:String,horizontalFlip:Boolean,verticalFlip:Boolean,flip:String,mode:String,inline:Boolean,rotate:[Number,String],onLoad:Function,svg:String,modifiers:{type:[String,Array]}};const b=e.defineComponent({name:"VvIcon",props:m,setup(t){const r=t,l=e.computed((()=>"string"==typeof r.rotate?parseFloat(r.rotate):r.rotate)),n=e.ref(!0),i=e.inject(a),{modifiers:s}=e.toRefs(r),c=v("vv-icon",s),u=e.computed((()=>r.provider||(null==i?void 0:i.iconsProvider))),d=e.computed((()=>{const e=r.name??"",t=`@${u.value}:${r.prefix}:${e}`;if(o.iconExists(t))return t;const l=null==i?void 0:i.iconsCollections.find((t=>{const r=`@${u.value}:${t.prefix}:${e}`;return o.iconExists(r)}));return l?`@${u.value}:${l.prefix}:${e}`:e}));function f(e){const t=function(e){let t;if("undefined"==typeof window){const{JSDOM:e}=require("jsdom");t=(new e).window}return(t?new t.DOMParser:new window.DOMParser).parseFromString(e,"text/html").querySelector("svg")}(e),l=(null==t?void 0:t.innerHTML.trim())||"";t&&l&&o.addIcon(`@${u.value}:${r.prefix}:${r.name}`,{body:l,height:t.viewBox.baseVal.height,width:t.viewBox.baseVal.width})}return i&&r.src&&!o.iconExists(`@${u.value}:${r.prefix}:${r.name}`)&&(n.value=!1,i.fetchIcon(r.src).then((e=>{e&&(f(e),n.value=!0)})).catch((e=>{throw new Error(`Error during fetch icon: ${null==e?void 0:e.message}`)}))),r.svg&&f(r.svg),(t,r)=>e.unref(n)?(e.openBlock(),e.createBlock(e.unref(o.Icon),e.mergeProps({key:0,class:e.unref(c)},{inline:t.inline,width:t.width,height:t.height,horizontalFlip:t.horizontalFlip,verticalFlip:t.verticalFlip,flip:t.flip,rotate:e.unref(l),color:t.color,onLoad:t.onLoad,icon:e.unref(d)}),null,16,["class"])):e.createCommentVNode("v-if",!0)}});const g={...d,...c,...u,dismissable:{type:Boolean,default:!1},autoClose:{type:Number,default:0},closeLabel:{type:String,default:"Close"},title:{type:String,default:void 0},content:{type:String,default:void 0},footer:{type:String,default:void 0},role:{type:String,default:"alert"}},y=(t,o)=>{const{bus:l}=e.inject(s,{}),n=(i=e.computed((()=>t.id)),e.computed((()=>String((null==i?void 0:i.value)||r.uid()))));var i;const a=e.computed((()=>`${n.value}-title`)),c=e.computed((()=>"string"==typeof t.icon?{name:t.icon}:t.icon)),u=v("vv-alert",e.computed((()=>t.modifiers)),e.computed((()=>({dismissable:t.autoClose>0||t.dismissable,"auto-close":t.autoClose>0,hover:m.value})))),d=e.computed((()=>({"--alert-duration":`${t.autoClose}ms`}))),f=()=>{p&&clearTimeout(p),o("close",n.value),null==l||l.emit("close",n.value)};let p;e.watch((()=>t.autoClose),(e=>{e>0?p=setTimeout(f,e):p&&clearTimeout(p)}),{immediate:!0});const m=e.ref(!1),b=e.withModifiers((()=>{m.value=!0,p&&clearTimeout(p)}),["passive"]),g=e.withModifiers((()=>{m.value=!1,t.autoClose>0&&(p=setTimeout(f,t.autoClose))}),["passive"]);return{close:f,hasIcon:c,hasTitleId:a,hasProps:e.computed((()=>({onMouseover:b,onMouseleave:g,class:u.value,style:d.value,role:t.role,"aria-labelledby":a.value})))}},h={key:0,class:"vv-alert__header"},k=["id"],S=["aria-label"],$=[e.createElementVNode("div",{class:"vv-alert__close-mask"},null,-1)],B={key:1,class:"vv-alert__content"},w={key:2,class:"vv-alert__footer"},C=e.defineComponent({name:"VvAlert",props:g,emits:["close"],setup(t,{expose:o,emit:r}){const l=t,{hasProps:n,hasTitleId:i,hasIcon:a,close:s}=y(l,r);return o({close:s}),(t,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(e.unref(n))),[t.$slots.header||t.$slots.title||t.$slots.close||t.$slots["title::before"]||t.$slots["title::after"]||t.title||t.dismissable||t.autoClose?(e.openBlock(),e.createElementBlock("div",h,[e.unref(a)?(e.openBlock(),e.createBlock(b,e.mergeProps({key:0},e.unref(a),{class:"vv-alert__icon"}),null,16)):e.createCommentVNode("v-if",!0),e.renderSlot(t.$slots,"header",{},(()=>[e.renderSlot(t.$slots,"title::before"),t.$slots.title||t.title?(e.openBlock(),e.createElementBlock("strong",{key:0,id:e.unref(i),class:"vv-alert__title"},[e.renderSlot(t.$slots,"title",{},(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]))],8,k)):e.createCommentVNode("v-if",!0),e.renderSlot(t.$slots,"title::after")])),e.renderSlot(t.$slots,"close",e.normalizeProps(e.guardReactiveProps({close:e.unref(s)})),(()=>[t.dismissable||t.autoClose?(e.openBlock(),e.createElementBlock("button",{key:0,class:"vv-alert__close",type:"button","aria-label":t.closeLabel,onClick:o[0]||(o[0]=e.withModifiers(((...t)=>e.unref(s)&&e.unref(s)(...t)),["stop"]))},$,8,S)):e.createCommentVNode("v-if",!0)]))])):e.createCommentVNode("v-if",!0),t.$slots.default||t.content?(e.openBlock(),e.createElementBlock("div",B,[e.renderSlot(t.$slots,"default",{},(()=>[e.createTextVNode(e.toDisplayString(t.content),1)]))])):e.createCommentVNode("v-if",!0),t.$slots.footer||t.footer?(e.openBlock(),e.createElementBlock("div",w,[e.renderSlot(t.$slots,"footer",{},(()=>[e.createTextVNode(e.toDisplayString(t.footer),1)]))])):e.createCommentVNode("v-if",!0)],16))}});return e.defineComponent({name:"VvAlertGroup",props:f,emits:["close","before-enter","after-leave","enter","after-enter","enter-cancelled","before-leave","leave","leave-cancelled"],setup(t,{emit:o}){const r=t,{hasProps:l,hasTransition:n}=p(r,o),i={"before-enter":()=>{o("before-enter")},"after-leave":()=>{o("after-leave")},enter:()=>{o("enter")},"after-enter":()=>{o("after-enter")},"enter-cancelled":()=>{o("enter-cancelled")},"before-leave":()=>{o("before-leave")},leave:()=>{o("leave")},"leave-cancelled":()=>{o("leave-cancelled")}};return(t,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(e.unref(l))),[e.renderSlot(t.$slots,"before"),e.createVNode(e.TransitionGroup,e.mergeProps({tag:"div",role:"group",name:e.unref(n),class:"vv-alert-group__list"},e.toHandlers(i)),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(t=>(e.openBlock(),e.createBlock(C,e.mergeProps(t,{key:t.id}),null,16)))),128))]))])),_:3},16,["name"]),e.renderSlot(t.$slots,"after")],16))}})}));
|
|
@@ -32,7 +32,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
32
32
|
default: undefined;
|
|
33
33
|
};
|
|
34
34
|
modifiers: globalThis.PropType<string | string[]>;
|
|
35
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
35
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
+
[x: string]: (...args: any[]) => void;
|
|
37
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
38
|
name: {
|
|
37
39
|
type: StringConstructor;
|
|
38
40
|
required: boolean;
|
|
@@ -66,9 +68,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
66
68
|
default: undefined;
|
|
67
69
|
};
|
|
68
70
|
modifiers: globalThis.PropType<string | string[]>;
|
|
69
|
-
}
|
|
70
|
-
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
71
|
-
}, {
|
|
71
|
+
}>>, {
|
|
72
72
|
reverse: boolean;
|
|
73
73
|
items: import(".").AlertItem[];
|
|
74
74
|
transition: string;
|
|
@@ -283,7 +283,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
283
283
|
key: 0,
|
|
284
284
|
src: _ctx.imgSrc,
|
|
285
285
|
alt: "avatar"
|
|
286
|
-
}, null, 8, _hoisted_2)) : createCommentVNode("", true)
|
|
286
|
+
}, null, 8, _hoisted_2)) : createCommentVNode("v-if", true)
|
|
287
287
|
])
|
|
288
288
|
], 10, _hoisted_1);
|
|
289
289
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("vue")):"function"==typeof define&&define.amd?define(["vue"],o):(e="undefined"!=typeof globalThis?globalThis:e||self).VvAvatar=o(e.vue)}(this,(function(e){"use strict";var o=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(o||{}),t=(e=>(e.before="before",e.after="after",e))(t||{}),r=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(r||{});Boolean,Boolean,Boolean,Boolean;const n={modifiers:[String,Array]};t.before,o.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,r.button;const a={...n,imgSrc:String};const l=["role","aria-label"],i=["src"];return e.defineComponent({__name:"VvAvatar",props:a,setup(o){const t=o,{modifiers:r}=e.toRefs(t),n=function(o,t,r){return e.computed((()=>{const n={[o]:!0},a="string"==typeof(null==t?void 0:t.value)?t.value.split(" "):null==t?void 0:t.value;return a&&Array.isArray(a)&&a.forEach((e=>{e&&(n[`${o}--${e}`]=!0)})),r&&Object.keys(r.value).forEach((t=>{n[`${o}--${t}`]=e.unref(r.value[t])})),n}))}("vv-avatar",r);return(o,t)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(n)),role:o.imgSrc?void 0:"img","aria-label":o.imgSrc?void 0:"avatar"},[e.renderSlot(o.$slots,"default",{},(()=>[o.imgSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.imgSrc,alt:"avatar"},null,8,i)):e.createCommentVNode("",!0)]))],10,l))}})}));
|
|
1
|
+
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("vue")):"function"==typeof define&&define.amd?define(["vue"],o):(e="undefined"!=typeof globalThis?globalThis:e||self).VvAvatar=o(e.vue)}(this,(function(e){"use strict";var o=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(o||{}),t=(e=>(e.before="before",e.after="after",e))(t||{}),r=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(r||{});Boolean,Boolean,Boolean,Boolean;const n={modifiers:[String,Array]};t.before,o.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,r.button;const a={...n,imgSrc:String};const l=["role","aria-label"],i=["src"];return e.defineComponent({__name:"VvAvatar",props:a,setup(o){const t=o,{modifiers:r}=e.toRefs(t),n=function(o,t,r){return e.computed((()=>{const n={[o]:!0},a="string"==typeof(null==t?void 0:t.value)?t.value.split(" "):null==t?void 0:t.value;return a&&Array.isArray(a)&&a.forEach((e=>{e&&(n[`${o}--${e}`]=!0)})),r&&Object.keys(r.value).forEach((t=>{n[`${o}--${t}`]=e.unref(r.value[t])})),n}))}("vv-avatar",r);return(o,t)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(n)),role:o.imgSrc?void 0:"img","aria-label":o.imgSrc?void 0:"avatar"},[e.renderSlot(o.$slots,"default",{},(()=>[o.imgSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.imgSrc,alt:"avatar"},null,8,i)):e.createCommentVNode("v-if",!0)]))],10,l))}})}));
|
|
@@ -303,7 +303,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
303
303
|
key: 0,
|
|
304
304
|
src: _ctx.imgSrc,
|
|
305
305
|
alt: "avatar"
|
|
306
|
-
}, null, 8, _hoisted_2)) : createCommentVNode("", true)
|
|
306
|
+
}, null, 8, _hoisted_2)) : createCommentVNode("v-if", true)
|
|
307
307
|
])
|
|
308
308
|
], 10, _hoisted_1$1);
|
|
309
309
|
};
|
|
@@ -342,34 +342,64 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
342
342
|
});
|
|
343
343
|
});
|
|
344
344
|
return (_ctx, _cache) => {
|
|
345
|
-
return openBlock(), createElementBlock(
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
345
|
+
return openBlock(), createElementBlock(
|
|
346
|
+
"span",
|
|
347
|
+
{
|
|
348
|
+
class: normalizeClass(unref(bemCssClasses))
|
|
349
|
+
},
|
|
350
|
+
[
|
|
351
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
352
|
+
(openBlock(true), createElementBlock(
|
|
353
|
+
Fragment,
|
|
354
|
+
null,
|
|
355
|
+
renderList(unref(avatarItems), (avatarItem) => {
|
|
356
|
+
return openBlock(), createBlock(
|
|
357
|
+
_sfc_main$1,
|
|
358
|
+
mergeProps({
|
|
359
|
+
key: avatarItem.key
|
|
360
|
+
}, {
|
|
361
|
+
modifiers: avatarItem.modifiers,
|
|
362
|
+
imgSrc: avatarItem.imgSrc
|
|
363
|
+
}),
|
|
364
|
+
{
|
|
365
|
+
default: withCtx(() => [
|
|
366
|
+
avatarItem.text ? (openBlock(), createElementBlock(
|
|
367
|
+
"span",
|
|
368
|
+
_hoisted_1,
|
|
369
|
+
toDisplayString(avatarItem.text),
|
|
370
|
+
1
|
|
371
|
+
/* TEXT */
|
|
372
|
+
)) : createCommentVNode("v-if", true)
|
|
373
|
+
]),
|
|
374
|
+
_: 2
|
|
375
|
+
/* DYNAMIC */
|
|
376
|
+
},
|
|
377
|
+
1040
|
|
378
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
379
|
+
);
|
|
380
|
+
}),
|
|
381
|
+
128
|
|
382
|
+
/* KEYED_FRAGMENT */
|
|
383
|
+
)),
|
|
384
|
+
(unref(totalItems) || unref(items).length) > unref(toShow) ? (openBlock(), createBlock(_sfc_main$1, {
|
|
385
|
+
key: 0,
|
|
386
|
+
modifiers: `${unref(stringModifiers)} surface bordered`
|
|
352
387
|
}, {
|
|
353
|
-
modifiers: avatarItem.modifiers,
|
|
354
|
-
imgSrc: avatarItem.imgSrc
|
|
355
|
-
}), {
|
|
356
388
|
default: withCtx(() => [
|
|
357
|
-
|
|
389
|
+
createTextVNode(
|
|
390
|
+
toDisplayString(`+${(unref(totalItems) || unref(items).length) - unref(toShow)}`),
|
|
391
|
+
1
|
|
392
|
+
/* TEXT */
|
|
393
|
+
)
|
|
358
394
|
]),
|
|
359
|
-
_:
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
createTextVNode(toDisplayString(`+${(unref(totalItems) || unref(items).length) - unref(toShow)}`), 1)
|
|
368
|
-
]),
|
|
369
|
-
_: 1
|
|
370
|
-
}, 8, ["modifiers"])) : createCommentVNode("", true)
|
|
371
|
-
])
|
|
372
|
-
], 2);
|
|
395
|
+
_: 1
|
|
396
|
+
/* STABLE */
|
|
397
|
+
}, 8, ["modifiers"])) : createCommentVNode("v-if", true)
|
|
398
|
+
])
|
|
399
|
+
],
|
|
400
|
+
2
|
|
401
|
+
/* CLASS */
|
|
402
|
+
);
|
|
373
403
|
};
|
|
374
404
|
}
|
|
375
405
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("vue"),require("uid")):"function"==typeof define&&define.amd?define(["vue","uid"],o):(e="undefined"!=typeof globalThis?globalThis:e||self).VvAvatarGroup=o(e.vue,e.uid)}(this,(function(e,o){"use strict";var r=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(r||{}),t=(e=>(e.before="before",e.after="after",e))(t||{}),a=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(a||{});Boolean,Boolean,Boolean,Boolean;const l={modifiers:[String,Array]};t.before,r.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,a.button;const n={...l,items:{type:Array,default:()=>[],required:!0},toShow:{type:Number,default:3},totalItems:{type:Number},avatarModifiers:[String,Array]},i={...l,imgSrc:String};function u(o,r,t){return e.computed((()=>{const a={[o]:!0},l="string"==typeof(null==r?void 0:r.value)?r.value.split(" "):null==r?void 0:r.value;return l&&Array.isArray(l)&&l.forEach((e=>{e&&(a[`${o}--${e}`]=!0)})),t&&Object.keys(t.value).forEach((r=>{a[`${o}--${r}`]=e.unref(t.value[r])})),a}))}const s=["role","aria-label"],
|
|
1
|
+
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("vue"),require("uid")):"function"==typeof define&&define.amd?define(["vue","uid"],o):(e="undefined"!=typeof globalThis?globalThis:e||self).VvAvatarGroup=o(e.vue,e.uid)}(this,(function(e,o){"use strict";var r=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(r||{}),t=(e=>(e.before="before",e.after="after",e))(t||{}),a=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(a||{});Boolean,Boolean,Boolean,Boolean;const l={modifiers:[String,Array]};t.before,r.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,a.button;const n={...l,items:{type:Array,default:()=>[],required:!0},toShow:{type:Number,default:3},totalItems:{type:Number},avatarModifiers:[String,Array]},i={...l,imgSrc:String};function u(o,r,t){return e.computed((()=>{const a={[o]:!0},l="string"==typeof(null==r?void 0:r.value)?r.value.split(" "):null==r?void 0:r.value;return l&&Array.isArray(l)&&l.forEach((e=>{e&&(a[`${o}--${e}`]=!0)})),t&&Object.keys(t.value).forEach((r=>{a[`${o}--${r}`]=e.unref(t.value[r])})),a}))}const s=["role","aria-label"],f=["src"],d=e.defineComponent({__name:"VvAvatar",props:i,setup(o){const r=o,{modifiers:t}=e.toRefs(r),a=u("vv-avatar",t);return(o,r)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(a)),role:o.imgSrc?void 0:"img","aria-label":o.imgSrc?void 0:"avatar"},[e.renderSlot(o.$slots,"default",{},(()=>[o.imgSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.imgSrc,alt:"avatar"},null,8,f)):e.createCommentVNode("v-if",!0)]))],10,s))}}),m={key:0};return e.defineComponent({__name:"VvAvatarGroup",props:n,setup(r){const t=r,{modifiers:a,items:l,toShow:n,totalItems:i,avatarModifiers:s}=e.toRefs(t),f=u("vv-avatar-group",a),c=e.computed((()=>(null==s?void 0:s.value)&&Array.isArray(null==s?void 0:s.value)?s.value.join(" "):(null==s?void 0:s.value)||"")),v=e.computed((()=>l.value.slice(0,n.value).map((r=>{let t=[],a=[];return(null==s?void 0:s.value)&&(t=Array.isArray(null==s?void 0:s.value)?null==s?void 0:s.value:[null==s?void 0:s.value]),r.modifiers&&(a=Array.isArray(r.modifiers)?r.modifiers:[r.modifiers]),{...r,key:r.key||e.computed((()=>String((null==l?void 0:l.value)||o.uid()))).value,modifiers:[...t,...a]};var l}))));return(o,r)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(f))},[e.renderSlot(o.$slots,"default",{},(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(v),(o=>(e.openBlock(),e.createBlock(d,e.mergeProps({key:o.key},{modifiers:o.modifiers,imgSrc:o.imgSrc}),{default:e.withCtx((()=>[o.text?(e.openBlock(),e.createElementBlock("span",m,e.toDisplayString(o.text),1)):e.createCommentVNode("v-if",!0)])),_:2},1040)))),128)),(e.unref(i)||e.unref(l).length)>e.unref(n)?(e.openBlock(),e.createBlock(d,{key:0,modifiers:`${e.unref(c)} surface bordered`},{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString("+"+((e.unref(i)||e.unref(l).length)-e.unref(n))),1)])),_:1},8,["modifiers"])):e.createCommentVNode("v-if",!0)]))],2))}})}));
|
|
@@ -271,14 +271,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
271
271
|
const { modifiers } = toRefs(props);
|
|
272
272
|
const bemCssClasses = useModifiers("vv-badge", modifiers);
|
|
273
273
|
return (_ctx, _cache) => {
|
|
274
|
-
return openBlock(), createElementBlock(
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
274
|
+
return openBlock(), createElementBlock(
|
|
275
|
+
"span",
|
|
276
|
+
{
|
|
277
|
+
class: normalizeClass(unref(bemCssClasses)),
|
|
278
|
+
role: "status"
|
|
279
|
+
},
|
|
280
|
+
[
|
|
281
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
282
|
+
createTextVNode(
|
|
283
|
+
toDisplayString(_ctx.value),
|
|
284
|
+
1
|
|
285
|
+
/* TEXT */
|
|
286
|
+
)
|
|
287
|
+
])
|
|
288
|
+
],
|
|
289
|
+
2
|
|
290
|
+
/* CLASS */
|
|
291
|
+
);
|
|
282
292
|
};
|
|
283
293
|
}
|
|
284
294
|
});
|
|
@@ -273,45 +273,68 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
273
273
|
const { modifiers } = toRefs(props);
|
|
274
274
|
const bemCssClasses = useModifiers("vv-breadcrumb", modifiers);
|
|
275
275
|
return (_ctx, _cache) => {
|
|
276
|
-
return openBlock(), createElementBlock(
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
276
|
+
return openBlock(), createElementBlock(
|
|
277
|
+
"nav",
|
|
278
|
+
{
|
|
279
|
+
class: normalizeClass(unref(bemCssClasses)),
|
|
280
|
+
"aria-label": "breadcrumbs"
|
|
281
|
+
},
|
|
282
|
+
[
|
|
283
|
+
createElementVNode("ol", _hoisted_1, [
|
|
284
|
+
(openBlock(true), createElementBlock(
|
|
285
|
+
Fragment,
|
|
286
|
+
null,
|
|
287
|
+
renderList(_ctx.routes, (route, index) => {
|
|
288
|
+
var _a, _b, _c, _d;
|
|
289
|
+
return openBlock(), createElementBlock(
|
|
290
|
+
"li",
|
|
291
|
+
{
|
|
292
|
+
key: `${route.label}-${index}`,
|
|
293
|
+
class: normalizeClass({
|
|
294
|
+
"vv-breadcrumb__item": index < Number((_a = _ctx.routes) == null ? void 0 : _a.length) - 1,
|
|
295
|
+
"vv-breadcrumb__item-active": index === Number((_b = _ctx.routes) == null ? void 0 : _b.length) - 1
|
|
296
|
+
}),
|
|
297
|
+
itemprop: "itemListElement",
|
|
298
|
+
itemtype: "https://schema.org/ListItem",
|
|
299
|
+
itemscope: ""
|
|
300
|
+
},
|
|
301
|
+
[
|
|
302
|
+
(openBlock(), createBlock(resolveDynamicComponent(route.to ? "router-link" : route.href ? "a" : "span"), mergeProps(route, {
|
|
303
|
+
class: {
|
|
304
|
+
"vv-breadcrumb__link": index < Number((_c = _ctx.routes) == null ? void 0 : _c.length) - 1
|
|
305
|
+
},
|
|
306
|
+
"aria-current": index === Number((_d = _ctx.routes) == null ? void 0 : _d.length) - 1 ? "page" : void 0,
|
|
307
|
+
itemprop: "item"
|
|
308
|
+
}), {
|
|
309
|
+
default: withCtx(() => [
|
|
310
|
+
renderSlot(_ctx.$slots, "label", normalizeProps(guardReactiveProps({ route, index })), () => [
|
|
311
|
+
createTextVNode(
|
|
312
|
+
toDisplayString(route.label),
|
|
313
|
+
1
|
|
314
|
+
/* TEXT */
|
|
315
|
+
)
|
|
316
|
+
])
|
|
317
|
+
]),
|
|
318
|
+
_: 2
|
|
319
|
+
/* DYNAMIC */
|
|
320
|
+
}, 1040, ["class", "aria-current"])),
|
|
321
|
+
createElementVNode("meta", {
|
|
322
|
+
itemprop: "position",
|
|
323
|
+
content: `${index + 1}`
|
|
324
|
+
}, null, 8, _hoisted_2)
|
|
325
|
+
],
|
|
326
|
+
2
|
|
327
|
+
/* CLASS */
|
|
328
|
+
);
|
|
288
329
|
}),
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
"aria-current": index === Number((_d = _ctx.routes) == null ? void 0 : _d.length) - 1 ? "page" : void 0,
|
|
298
|
-
itemprop: "item"
|
|
299
|
-
}), {
|
|
300
|
-
default: withCtx(() => [
|
|
301
|
-
renderSlot(_ctx.$slots, "label", normalizeProps(guardReactiveProps({ route, index })), () => [
|
|
302
|
-
createTextVNode(toDisplayString(route.label), 1)
|
|
303
|
-
])
|
|
304
|
-
]),
|
|
305
|
-
_: 2
|
|
306
|
-
}, 1040, ["class", "aria-current"])),
|
|
307
|
-
createElementVNode("meta", {
|
|
308
|
-
itemprop: "position",
|
|
309
|
-
content: `${index + 1}`
|
|
310
|
-
}, null, 8, _hoisted_2)
|
|
311
|
-
], 2);
|
|
312
|
-
}), 128))
|
|
313
|
-
])
|
|
314
|
-
], 2);
|
|
330
|
+
128
|
|
331
|
+
/* KEYED_FRAGMENT */
|
|
332
|
+
))
|
|
333
|
+
])
|
|
334
|
+
],
|
|
335
|
+
2
|
|
336
|
+
/* CLASS */
|
|
337
|
+
);
|
|
315
338
|
};
|
|
316
339
|
}
|
|
317
340
|
});
|