@volverjs/ui-vue 0.0.3-beta.2 → 0.0.3-beta.4

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 (131) hide show
  1. package/dist/components/VvAccordion/VvAccordion.es.js +63 -131
  2. package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
  3. package/dist/components/VvAccordion/VvAccordion.vue.d.ts +2 -2
  4. package/dist/components/VvAccordion/index.d.ts +2 -2
  5. package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +97 -176
  6. package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
  7. package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +4 -4
  8. package/dist/components/VvAccordionGroup/index.d.ts +2 -2
  9. package/dist/components/VvBadge/VvBadge.es.js +16 -50
  10. package/dist/components/VvBadge/VvBadge.umd.js +1 -1
  11. package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +38 -45
  12. package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
  13. package/dist/components/VvButton/VvButton.es.js +170 -306
  14. package/dist/components/VvButton/VvButton.umd.js +1 -1
  15. package/dist/components/VvButton/VvButton.vue.d.ts +4 -4
  16. package/dist/components/VvButton/index.d.ts +3 -3
  17. package/dist/components/VvButtonGroup/VvButtonGroup.es.js +39 -84
  18. package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
  19. package/dist/components/VvCard/VvCard.es.js +26 -60
  20. package/dist/components/VvCard/VvCard.umd.js +1 -1
  21. package/dist/components/VvCard/VvCard.vue.d.ts +2 -2
  22. package/dist/components/VvCard/index.d.ts +1 -1
  23. package/dist/components/VvCheckbox/VvCheckbox.es.js +144 -282
  24. package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
  25. package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +6 -6
  26. package/dist/components/VvCheckbox/index.d.ts +10 -4
  27. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +190 -346
  28. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
  29. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +7 -7
  30. package/dist/components/VvCheckboxGroup/index.d.ts +3 -3
  31. package/dist/components/VvCombobox/VvCombobox.es.js +330 -487
  32. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  33. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +8 -8
  34. package/dist/components/VvCombobox/index.d.ts +4 -4
  35. package/dist/components/VvDialog/VvDialog.es.js +66 -102
  36. package/dist/components/VvDialog/VvDialog.umd.js +1 -1
  37. package/dist/components/VvDropdown/VvDropdown.es.js +61 -185
  38. package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
  39. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +2 -2
  40. package/dist/components/VvDropdown/index.d.ts +1 -1
  41. package/dist/components/VvIcon/VvIcon.es.js +30 -65
  42. package/dist/components/VvIcon/VvIcon.umd.js +1 -1
  43. package/dist/components/VvInputText/VvInputText.es.js +304 -407
  44. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  45. package/dist/components/VvInputText/VvInputText.vue.d.ts +10 -10
  46. package/dist/components/VvInputText/VvInputTextActions.d.ts +1 -1
  47. package/dist/components/VvInputText/index.d.ts +5 -5
  48. package/dist/components/VvProgress/VvProgress.es.js +17 -51
  49. package/dist/components/VvProgress/VvProgress.umd.js +1 -1
  50. package/dist/components/VvRadio/VvRadio.es.js +110 -249
  51. package/dist/components/VvRadio/VvRadio.umd.js +1 -1
  52. package/dist/components/VvRadio/VvRadio.vue.d.ts +6 -6
  53. package/dist/components/VvRadio/index.d.ts +3 -3
  54. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +161 -318
  55. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
  56. package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +7 -7
  57. package/dist/components/VvRadioGroup/index.d.ts +3 -3
  58. package/dist/components/VvSelect/VvSelect.es.js +200 -292
  59. package/dist/components/VvSelect/VvSelect.umd.js +1 -1
  60. package/dist/components/VvSelect/VvSelect.vue.d.ts +8 -8
  61. package/dist/components/VvSelect/index.d.ts +4 -4
  62. package/dist/components/VvTextarea/VvTextarea.es.js +195 -254
  63. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  64. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +6 -6
  65. package/dist/components/VvTextarea/index.d.ts +3 -3
  66. package/dist/components/common/HintSlot.d.ts +1 -1
  67. package/dist/components/index.es.js +1168 -1360
  68. package/dist/components/index.umd.js +1 -1
  69. package/dist/composables/group/useInjectedGroupState.d.ts +1 -1
  70. package/dist/composables/useComponentFocus.d.ts +1 -1
  71. package/dist/composables/useComponentIcons.d.ts +1 -1
  72. package/dist/composables/useDebouncedInput.d.ts +1 -1
  73. package/dist/composables/useModifiers.d.ts +1 -1
  74. package/dist/composables/useTextCount.d.ts +1 -1
  75. package/dist/icons.es.js +3 -3
  76. package/dist/icons.umd.js +1 -1
  77. package/dist/index.es.js +1203 -1396
  78. package/dist/index.umd.js +1 -1
  79. package/dist/props/index.d.ts +12 -12
  80. package/dist/utils/ObjectUtilities.d.ts +1 -1
  81. package/package.json +2 -1
  82. package/src/assets/icons/detailed.json +1 -1
  83. package/src/assets/icons/normal.json +1 -1
  84. package/src/assets/icons/simple.json +1 -1
  85. package/src/components/VvAccordion/VvAccordion.vue +0 -3
  86. package/src/components/VvAccordion/index.ts +1 -2
  87. package/src/components/VvAccordionGroup/VvAccordionGroup.vue +1 -3
  88. package/src/components/VvBadge/VvBadge.vue +0 -1
  89. package/src/components/VvButton/VvButton.vue +0 -3
  90. package/src/components/VvButton/index.ts +2 -10
  91. package/src/components/VvButtonGroup/VvButtonGroup.vue +0 -3
  92. package/src/components/VvCard/VvCard.vue +0 -1
  93. package/src/components/VvCheckbox/VvCheckbox.vue +0 -3
  94. package/src/components/VvCheckbox/index.ts +1 -2
  95. package/src/components/VvCheckboxGroup/VvCheckboxGroup.vue +0 -5
  96. package/src/components/VvCombobox/VvCombobox.vue +0 -7
  97. package/src/components/VvDialog/VvDialog.vue +1 -2
  98. package/src/components/VvDropdown/VvDropdown.vue +0 -4
  99. package/src/components/VvIcon/VvIcon.vue +0 -2
  100. package/src/components/VvInputText/VvInputClearAction.ts +0 -1
  101. package/src/components/VvInputText/VvInputPasswordAction.ts +0 -1
  102. package/src/components/VvInputText/VvInputStepAction.ts +0 -1
  103. package/src/components/VvInputText/VvInputText.vue +1 -16
  104. package/src/components/VvInputText/VvInputTextActions.ts +1 -1
  105. package/src/components/VvProgress/VvProgress.vue +0 -2
  106. package/src/components/VvRadio/VvRadio.vue +0 -3
  107. package/src/components/VvRadio/index.ts +0 -1
  108. package/src/components/VvRadioGroup/VvRadioGroup.vue +0 -5
  109. package/src/components/VvSelect/VvSelect.vue +1 -14
  110. package/src/components/common/HintSlot.ts +1 -11
  111. package/src/composables/group/types/IAccordionGroupState.ts +0 -1
  112. package/src/composables/group/types/IButtonGroupState.ts +0 -1
  113. package/src/composables/group/types/IInputGroup.ts +0 -1
  114. package/src/composables/group/useInjectedGroupState.ts +1 -2
  115. package/src/composables/group/useProvideGroupState.ts +0 -1
  116. package/src/composables/useComponentFocus.ts +1 -2
  117. package/src/composables/useComponentIcons.ts +1 -1
  118. package/src/composables/useDebouncedInput.ts +1 -1
  119. package/src/composables/useModifiers.ts +1 -2
  120. package/src/composables/useOptions.ts +0 -1
  121. package/src/composables/useTextCount.ts +1 -1
  122. package/src/stories/Breadcrumb/Breadcrumb.settings.ts +0 -1
  123. package/src/stories/ButtonGroup/ButtonGroup.settings.ts +0 -1
  124. package/src/stories/Combobox/Combobox.settings.ts +0 -1
  125. package/src/stories/Dropdown/Dropdown.settings.ts +0 -1
  126. package/src/stories/Icon/Icon.settings.ts +0 -1
  127. package/src/stories/InputText/InputText.settings.ts +0 -1
  128. package/src/stories/Select/Select.settings.ts +0 -1
  129. package/src/stories/Textarea/Textarea.settings.ts +0 -1
  130. package/src/stories/Tooltip/Tooltip.settings.ts +0 -1
  131. package/src/utils/ObjectUtilities.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
- modelValue: (ArrayConstructor | StringConstructor)[];
2
+ modelValue: (StringConstructor | ArrayConstructor)[];
3
3
  items: {
4
4
  type: {
5
5
  (arrayLength: number): import("@/components/VvAccordionGroup/").VvAccordionGroupItem[];
@@ -18,7 +18,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
18
18
  default: () => never[];
19
19
  };
20
20
  collapse: BooleanConstructor;
21
- modifiers: (ArrayConstructor | StringConstructor)[];
21
+ modifiers: (StringConstructor | ArrayConstructor)[];
22
22
  itemModifiers: {
23
23
  type: (StringConstructor | {
24
24
  (arrayLength: number): string[];
@@ -38,7 +38,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
38
38
  };
39
39
  disabled: BooleanConstructor;
40
40
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
41
- modelValue: (ArrayConstructor | StringConstructor)[];
41
+ modelValue: (StringConstructor | ArrayConstructor)[];
42
42
  items: {
43
43
  type: {
44
44
  (arrayLength: number): import("@/components/VvAccordionGroup/").VvAccordionGroupItem[];
@@ -57,7 +57,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
57
57
  default: () => never[];
58
58
  };
59
59
  collapse: BooleanConstructor;
60
- modifiers: (ArrayConstructor | StringConstructor)[];
60
+ modifiers: (StringConstructor | ArrayConstructor)[];
61
61
  itemModifiers: {
62
62
  type: (StringConstructor | {
63
63
  (arrayLength: number): string[];
@@ -9,7 +9,7 @@ export declare const VvAccordionGroupProps: {
9
9
  /**
10
10
  * VModel
11
11
  */
12
- modelValue: (ArrayConstructor | StringConstructor)[];
12
+ modelValue: (StringConstructor | ArrayConstructor)[];
13
13
  /**
14
14
  * Accordion items
15
15
  * @type VvAccordionGroupItem
@@ -38,7 +38,7 @@ export declare const VvAccordionGroupProps: {
38
38
  /**
39
39
  * String or String[] of css classes (modifiers) that will be concatenated to prefix 'vv-accordion-group--'
40
40
  */
41
- modifiers: (ArrayConstructor | StringConstructor)[];
41
+ modifiers: (StringConstructor | ArrayConstructor)[];
42
42
  /**
43
43
  * String or String[] of css classes (modifiers) that will be concatenated to prefix 'vv-accordion--'
44
44
  */
@@ -1,62 +1,28 @@
1
- import { computed as f, unref as u, defineComponent as m, openBlock as p, createElementBlock as C, normalizeClass as b, renderSlot as _, createTextVNode as g, toDisplayString as A } from "vue";
2
- function i(e) {
3
- var s, r;
4
- if (e)
5
- return (r = (s = e.match(
6
- /[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g
7
- )) == null ? void 0 : s.join("-")) == null ? void 0 : r.toLowerCase();
8
- }
9
- function $(e, s) {
10
- const r = { [`${e}`]: !0 };
11
- return {
12
- bemCssClasses: f(() => Object.keys(s).reduce((o, a) => {
13
- const t = u(s[a]) || !1;
14
- if (!t)
15
- return o;
16
- if (a === "modifiers") {
17
- const c = Array.isArray(t) ? t : t.split(" ");
18
- return {
19
- ...o,
20
- ...c.reduce(
21
- (l, d) => ({
22
- ...l,
23
- [`${e}--${i(d)}`]: !0
24
- }),
25
- {}
26
- )
27
- };
28
- } else
29
- return {
30
- ...o,
31
- [`${e}--${i(a)}`]: t
32
- };
33
- }, r) || {})
34
- };
35
- }
36
- const v = {
1
+ import { defineComponent as t, openBlock as a, createElementBlock as n, normalizeClass as i, unref as l, renderSlot as d, createTextVNode as c, toDisplayString as m } from "vue";
2
+ const p = {
37
3
  modifiers: [String, Array]
38
- }, y = {
39
- ...v,
4
+ }, f = {
5
+ ...p,
40
6
  value: [String, Number]
41
- }, B = {
7
+ }, u = {
42
8
  name: "VvBadge"
43
- }, S = /* @__PURE__ */ m({
44
- ...B,
45
- props: y,
46
- setup(e) {
47
- const s = e, { bemCssClasses: r } = $("vv-badge", {
48
- modifiers: s.modifiers
9
+ }, _ = /* @__PURE__ */ t({
10
+ ...u,
11
+ props: f,
12
+ setup(s) {
13
+ const o = s, { bemCssClasses: r } = useBemModifiers("vv-badge", {
14
+ modifiers: o.modifiers
49
15
  });
50
- return (n, o) => (p(), C("span", {
51
- class: b(u(r)),
16
+ return (e, g) => (a(), n("span", {
17
+ class: i(l(r)),
52
18
  role: "status"
53
19
  }, [
54
- _(n.$slots, "default", {}, () => [
55
- g(A(n.value), 1)
20
+ d(e.$slots, "default", {}, () => [
21
+ c(m(e.value), 1)
56
22
  ])
57
23
  ], 2));
58
24
  }
59
25
  });
60
26
  export {
61
- S as default
27
+ _ as default
62
28
  };
@@ -1 +1 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n(require("vue")):typeof define=="function"&&define.amd?define(["vue"],n):(e=typeof globalThis<"u"?globalThis:e||self,e.VvBadge=n(e.vue))})(this,function(e){"use strict";function n(s){var r,t;if(s)return(t=(r=s.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g))==null?void 0:r.join("-"))==null?void 0:t.toLowerCase()}function f(s,r){const t={[`${s}`]:!0};return{bemCssClasses:e.computed(()=>Object.keys(r).reduce((i,a)=>{const o=e.unref(r[a])||!1;if(!o)return i;if(a==="modifiers"){const l=Array.isArray(o)?o:o.split(" ");return{...i,...l.reduce((m,p)=>({...m,[`${s}--${n(p)}`]:!0}),{})}}else return{...i,[`${s}--${n(a)}`]:o}},t)||{})}}const u={...{modifiers:[String,Array]},value:[String,Number]},c={name:"VvBadge"};return e.defineComponent({...c,props:u,setup(s){const r=s,{bemCssClasses:t}=f("vv-badge",{modifiers:r.modifiers});return(d,i)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(t)),role:"status"},[e.renderSlot(d.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(d.value),1)])],2))}})});
1
+ (function(e,s){typeof exports=="object"&&typeof module<"u"?module.exports=s(require("vue")):typeof define=="function"&&define.amd?define(["vue"],s):(e=typeof globalThis<"u"?globalThis:e||self,e.VvBadge=s(e.vue))})(this,function(e){"use strict";const o={...{modifiers:[String,Array]},value:[String,Number]},t={name:"VvBadge"};return e.defineComponent({...t,props:o,setup(i){const r=i,{bemCssClasses:d}=useBemModifiers("vv-badge",{modifiers:r.modifiers});return(n,a)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(d)),role:"status"},[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.value),1)])],2))}})});
@@ -1,79 +1,72 @@
1
- import { computed as v, unref as _, defineComponent as C, openBlock as c, createElementBlock as u, normalizeClass as p, createElementVNode as d, Fragment as g, renderList as h, createBlock as y, resolveDynamicComponent as $, mergeProps as k, withCtx as A, renderSlot as B, normalizeProps as N, guardReactiveProps as P, createTextVNode as z, toDisplayString as L } from "vue";
2
- function f(s) {
3
- var t, a;
4
- if (s)
5
- return (a = (t = s.match(
6
- /[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g
7
- )) == null ? void 0 : t.join("-")) == null ? void 0 : a.toLowerCase();
8
- }
9
- function V(s, t) {
10
- const a = { [`${s}`]: !0 };
1
+ import { defineComponent as f, openBlock as m, createElementBlock as c, normalizeClass as p, unref as v, createElementVNode as d, Fragment as _, renderList as C, createBlock as g, resolveDynamicComponent as h, mergeProps as $, withCtx as k, renderSlot as y, normalizeProps as B, guardReactiveProps as N, createTextVNode as P, toDisplayString as A } from "vue";
2
+ function V(t, o) {
3
+ const u = { [`${t}`]: !0 };
11
4
  return {
12
- bemCssClasses: v(() => Object.keys(t).reduce((n, r) => {
13
- const e = _(t[r]) || !1;
5
+ bemCssClasses: computed(() => Object.keys(o).reduce((a, r) => {
6
+ const e = unref(o[r]) || !1;
14
7
  if (!e)
15
- return n;
8
+ return a;
16
9
  if (r === "modifiers") {
17
- const i = Array.isArray(e) ? e : e.split(" ");
10
+ const n = Array.isArray(e) ? e : e.split(" ");
18
11
  return {
19
- ...n,
20
- ...i.reduce(
21
- (l, m) => ({
12
+ ...a,
13
+ ...n.reduce(
14
+ (l, i) => ({
22
15
  ...l,
23
- [`${s}--${f(m)}`]: !0
16
+ [`${t}--${kebabCase(i)}`]: !0
24
17
  }),
25
18
  {}
26
19
  )
27
20
  };
28
21
  } else
29
22
  return {
30
- ...n,
31
- [`${s}--${f(r)}`]: e
23
+ ...a,
24
+ [`${t}--${kebabCase(r)}`]: e
32
25
  };
33
- }, a) || {})
26
+ }, u) || {})
34
27
  };
35
28
  }
36
- const Z = {
29
+ const E = {
37
30
  modifiers: [String, Array]
38
- }, E = {
39
- ...Z,
31
+ }, L = {
32
+ ...E,
40
33
  routes: Array
41
- }, M = { class: "vv-breadcrumb__list" }, S = ["content"], j = {
34
+ }, M = { class: "vv-breadcrumb__list" }, S = ["content"], z = {
42
35
  name: "VvBreadcrumb"
43
- }, D = /* @__PURE__ */ C({
44
- ...j,
45
- props: E,
46
- setup(s) {
47
- const t = s, { bemCssClasses: a } = V("vv-breadcrumb", {
48
- modifiers: t.modifiers
36
+ }, j = /* @__PURE__ */ f({
37
+ ...z,
38
+ props: L,
39
+ setup(t) {
40
+ const o = t, { bemCssClasses: u } = V("vv-breadcrumb", {
41
+ modifiers: o.modifiers
49
42
  });
50
- return (o, n) => (c(), u("nav", {
51
- class: p(_(a)),
43
+ return (s, a) => (m(), c("nav", {
44
+ class: p(v(u)),
52
45
  "aria-label": "breadcrumbs"
53
46
  }, [
54
47
  d("ol", M, [
55
- (c(!0), u(g, null, h(o.routes, (r, e) => {
56
- var i, l, m, b;
57
- return c(), u("li", {
48
+ (m(!0), c(_, null, C(s.routes, (r, e) => {
49
+ var n, l, i, b;
50
+ return m(), c("li", {
58
51
  key: `${r.label}-${e}`,
59
52
  class: p({
60
- "vv-breadcrumb__item": e < Number((i = o.routes) == null ? void 0 : i.length) - 1,
61
- "vv-breadcrumb__item-active": e === Number((l = o.routes) == null ? void 0 : l.length) - 1
53
+ "vv-breadcrumb__item": e < Number((n = s.routes) == null ? void 0 : n.length) - 1,
54
+ "vv-breadcrumb__item-active": e === Number((l = s.routes) == null ? void 0 : l.length) - 1
62
55
  }),
63
56
  itemprop: "itemListElement",
64
57
  itemtype: "https://schema.org/ListItem",
65
58
  itemscope: ""
66
59
  }, [
67
- (c(), y($(r.to ? "router-link" : r.href ? "a" : "span"), k(r, {
60
+ (m(), g(h(r.to ? "router-link" : r.href ? "a" : "span"), $(r, {
68
61
  class: {
69
- "vv-breadcrumb__link": e < Number((m = o.routes) == null ? void 0 : m.length) - 1
62
+ "vv-breadcrumb__link": e < Number((i = s.routes) == null ? void 0 : i.length) - 1
70
63
  },
71
- "aria-current": e === Number((b = o.routes) == null ? void 0 : b.length) - 1 ? "page" : void 0,
64
+ "aria-current": e === Number((b = s.routes) == null ? void 0 : b.length) - 1 ? "page" : void 0,
72
65
  itemprop: "item"
73
66
  }), {
74
- default: A(() => [
75
- B(o.$slots, "label", N(P({ route: r, index: e })), () => [
76
- z(L(r.label), 1)
67
+ default: k(() => [
68
+ y(s.$slots, "label", B(N({ route: r, index: e })), () => [
69
+ P(A(r.label), 1)
77
70
  ])
78
71
  ]),
79
72
  _: 2
@@ -89,5 +82,5 @@ const Z = {
89
82
  }
90
83
  });
91
84
  export {
92
- D as default
85
+ j as default
93
86
  };
@@ -1 +1 @@
1
- (function(e,a){typeof exports=="object"&&typeof module<"u"?module.exports=a(require("vue")):typeof define=="function"&&define.amd?define(["vue"],a):(e=typeof globalThis<"u"?globalThis:e||self,e.VvBreadcrumb=a(e.vue))})(this,function(e){"use strict";function a(t){var o,i;if(t)return(i=(o=t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g))==null?void 0:o.join("-"))==null?void 0:i.toLowerCase()}function u(t,o){const i={[`${t}`]:!0};return{bemCssClasses:e.computed(()=>Object.keys(o).reduce((l,s)=>{const r=e.unref(o[s])||!1;if(!r)return l;if(s==="modifiers"){const c=Array.isArray(r)?r:r.split(" ");return{...l,...c.reduce((m,d)=>({...m,[`${t}--${a(d)}`]:!0}),{})}}else return{...l,[`${t}--${a(s)}`]:r}},i)||{})}}const b={...{modifiers:[String,Array]},routes:Array},f={class:"vv-breadcrumb__list"},_=["content"],h={name:"VvBreadcrumb"};return e.defineComponent({...h,props:b,setup(t){const o=t,{bemCssClasses:i}=u("vv-breadcrumb",{modifiers:o.modifiers});return(n,l)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(e.unref(i)),"aria-label":"breadcrumbs"},[e.createElementVNode("ol",f,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.routes,(s,r)=>{var c,m,d,p;return e.openBlock(),e.createElementBlock("li",{key:`${s.label}-${r}`,class:e.normalizeClass({"vv-breadcrumb__item":r<Number((c=n.routes)==null?void 0:c.length)-1,"vv-breadcrumb__item-active":r===Number((m=n.routes)==null?void 0:m.length)-1}),itemprop:"itemListElement",itemtype:"https://schema.org/ListItem",itemscope:""},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.to?"router-link":s.href?"a":"span"),e.mergeProps(s,{class:{"vv-breadcrumb__link":r<Number((d=n.routes)==null?void 0:d.length)-1},"aria-current":r===Number((p=n.routes)==null?void 0:p.length)-1?"page":void 0,itemprop:"item"}),{default:e.withCtx(()=>[e.renderSlot(n.$slots,"label",e.normalizeProps(e.guardReactiveProps({route:s,index:r})),()=>[e.createTextVNode(e.toDisplayString(s.label),1)])]),_:2},1040,["class","aria-current"])),e.createElementVNode("meta",{itemprop:"position",content:`${r+1}`},null,8,_)],2)}),128))])],2))}})});
1
+ (function(e,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("vue")):typeof define=="function"&&define.amd?define(["vue"],o):(e=typeof globalThis<"u"?globalThis:e||self,e.VvBreadcrumb=o(e.vue))})(this,function(e){"use strict";function o(n,a){const d={[`${n}`]:!0};return{bemCssClasses:computed(()=>Object.keys(a).reduce((i,s)=>{const r=unref(a[s])||!1;if(!r)return i;if(s==="modifiers"){const l=Array.isArray(r)?r:r.split(" ");return{...i,...l.reduce((c,m)=>({...c,[`${n}--${kebabCase(m)}`]:!0}),{})}}else return{...i,[`${n}--${kebabCase(s)}`]:r}},d)||{})}}const u={...{modifiers:[String,Array]},routes:Array},b={class:"vv-breadcrumb__list"},f=["content"],_={name:"VvBreadcrumb"};return e.defineComponent({..._,props:u,setup(n){const a=n,{bemCssClasses:d}=o("vv-breadcrumb",{modifiers:a.modifiers});return(t,i)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(e.unref(d)),"aria-label":"breadcrumbs"},[e.createElementVNode("ol",b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.routes,(s,r)=>{var l,c,m,p;return e.openBlock(),e.createElementBlock("li",{key:`${s.label}-${r}`,class:e.normalizeClass({"vv-breadcrumb__item":r<Number((l=t.routes)==null?void 0:l.length)-1,"vv-breadcrumb__item-active":r===Number((c=t.routes)==null?void 0:c.length)-1}),itemprop:"itemListElement",itemtype:"https://schema.org/ListItem",itemscope:""},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.to?"router-link":s.href?"a":"span"),e.mergeProps(s,{class:{"vv-breadcrumb__link":r<Number((m=t.routes)==null?void 0:m.length)-1},"aria-current":r===Number((p=t.routes)==null?void 0:p.length)-1?"page":void 0,itemprop:"item"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"label",e.normalizeProps(e.guardReactiveProps({route:s,index:r})),()=>[e.createTextVNode(e.toDisplayString(s.label),1)])]),_:2},1040,["class","aria-current"])),e.createElementVNode("meta",{itemprop:"position",content:`${r+1}`},null,8,f)],2)}),128))])],2))}})});