@ulu/frontend-vue 0.5.1 → 0.5.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.
Files changed (29) hide show
  1. package/dist/components/collapsible/UluAccordion.vue.d.ts.map +1 -1
  2. package/dist/components/collapsible/UluAccordion.vue.js +41 -32
  3. package/dist/components/collapsible/UluAccordionGroup.vue.d.ts +6 -5
  4. package/dist/components/collapsible/UluAccordionGroup.vue.d.ts.map +1 -1
  5. package/dist/components/collapsible/UluAccordionGroup.vue.js +31 -40
  6. package/dist/components/elements/UluDefinitionList.vue.d.ts +1 -0
  7. package/dist/components/elements/UluDefinitionList.vue.d.ts.map +1 -1
  8. package/dist/components/elements/UluDefinitionList.vue.js +34 -32
  9. package/dist/components/elements/UluDefinitionListItem.vue.d.ts +28 -0
  10. package/dist/components/elements/UluDefinitionListItem.vue.d.ts.map +1 -0
  11. package/dist/components/elements/UluDefinitionListItem.vue.js +46 -0
  12. package/dist/components/elements/UluList.vue.d.ts +1 -0
  13. package/dist/components/elements/UluList.vue.d.ts.map +1 -1
  14. package/dist/components/elements/UluList.vue.js +18 -16
  15. package/dist/components/elements/UluListItem.vue.d.ts +20 -0
  16. package/dist/components/elements/UluListItem.vue.d.ts.map +1 -0
  17. package/dist/components/elements/UluListItem.vue.js +21 -0
  18. package/dist/components/index.d.ts +2 -0
  19. package/dist/components/navigation/UluBreadcrumb.vue.js +23 -23
  20. package/dist/index.js +182 -178
  21. package/lib/components/collapsible/UluAccordion.vue +28 -3
  22. package/lib/components/collapsible/UluAccordionGroup.vue +71 -79
  23. package/lib/components/elements/UluDefinitionList.vue +32 -27
  24. package/lib/components/elements/UluDefinitionListItem.vue +43 -0
  25. package/lib/components/elements/UluList.vue +19 -14
  26. package/lib/components/elements/UluListItem.vue +19 -0
  27. package/lib/components/index.js +2 -0
  28. package/lib/components/navigation/UluBreadcrumb.vue +5 -5
  29. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"UluAccordion.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/UluAccordion.vue"],"names":[],"mappings":"AA8BA;wBA0SqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAZjC;;;;;;;;;;;;;;;;;;sPASG"}
1
+ {"version":3,"file":"UluAccordion.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/UluAccordion.vue"],"names":[],"mappings":"AA+BA;wBA8VqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAZjC;;;;;;;;;;;;;;;;;;sPASG"}
@@ -1,8 +1,9 @@
1
- import { computed as u, createBlock as l, openBlock as s, withCtx as n, renderSlot as o, resolveDynamicComponent as g, createTextVNode as f, toDisplayString as p, createElementVNode as y, normalizeClass as x, createVNode as V } from "vue";
2
- import v from "../elements/UluIcon.vue.js";
3
- import O from "./UluCollapsible.vue.js";
4
- import { useModifiers as T } from "../../composables/useModifiers.js";
5
- const E = {
1
+ import { computed as c, inject as x, onMounted as V, createBlock as s, openBlock as d, unref as O, withCtx as i, renderSlot as l, resolveDynamicComponent as T, createTextVNode as B, toDisplayString as C, createElementVNode as M, normalizeClass as S, createVNode as $ } from "vue";
2
+ import A from "../elements/UluIcon.vue.js";
3
+ import b from "./UluCollapsible.vue.js";
4
+ import { useModifiers as h } from "../../composables/useModifiers.js";
5
+ import { newId as j } from "../../utils/dom.js";
6
+ const G = {
6
7
  __name: "UluAccordion",
7
8
  props: {
8
9
  /**
@@ -57,49 +58,57 @@ const E = {
57
58
  modifiers: [String, Array]
58
59
  },
59
60
  emits: ["update:modelValue"],
60
- setup(e, { emit: $ }) {
61
- const r = e, { resolvedModifiers: c } = T({ props: r, baseClass: "accordion" }), d = u(() => {
62
- const t = { ...r.classes };
63
- return t.container = [t.container, c.value], t;
61
+ setup(t, { emit: u }) {
62
+ const r = t, m = u, { resolvedModifiers: g } = h({ props: r, baseClass: "accordion" }), p = c(() => {
63
+ const e = { ...r.classes };
64
+ return e.container = [e.container, g.value], e;
65
+ }), o = x("uluAccordionGroup", null), a = j("ulu-accordion");
66
+ V(() => {
67
+ o && r.startOpen && o.toggle(a, !0);
64
68
  });
65
- return (t, i) => (s(), l(O, {
66
- "model-value": e.modelValue,
67
- "start-open": e.startOpen,
68
- "trigger-text": e.triggerText,
69
- classes: d.value,
70
- animate: e.animate,
71
- "onUpdate:modelValue": i[0] || (i[0] = (a) => t.$emit("update:modelValue", a))
69
+ const f = c(() => o ? o.activeAccordionId.value === a : r.modelValue);
70
+ function y(e) {
71
+ o && o.toggle(a, e), m("update:modelValue", e);
72
+ }
73
+ return (e, E) => (d(), s(b, {
74
+ id: O(a),
75
+ "model-value": f.value,
76
+ "start-open": t.startOpen,
77
+ "trigger-text": t.triggerText,
78
+ classes: p.value,
79
+ animate: t.animate,
80
+ "onUpdate:modelValue": y
72
81
  }, {
73
- trigger: n(({ isOpen: a }) => [
74
- o(t.$slots, "trigger", { isOpen: a }, () => [
75
- (s(), l(g(e.triggerTextElement), null, {
76
- default: n(() => [
77
- f(p(e.triggerText), 1)
82
+ trigger: i(({ isOpen: n }) => [
83
+ l(e.$slots, "trigger", { isOpen: n }, () => [
84
+ (d(), s(T(t.triggerTextElement), null, {
85
+ default: i(() => [
86
+ B(C(t.triggerText), 1)
78
87
  ]),
79
88
  _: 1
80
89
  }))
81
90
  ]),
82
- o(t.$slots, "icon", { isOpen: a }, () => [
83
- y("span", {
84
- class: x(["accordion__icon", e.classes.icon])
91
+ l(e.$slots, "icon", { isOpen: n }, () => [
92
+ M("span", {
93
+ class: S(["accordion__icon", t.classes.icon])
85
94
  }, [
86
- V(v, {
87
- icon: a ? "type:collapse" : "type:expand",
95
+ $(A, {
96
+ icon: n ? "type:collapse" : "type:expand",
88
97
  style: { display: "inline" }
89
98
  }, null, 8, ["icon"])
90
99
  ], 2)
91
100
  ])
92
101
  ]),
93
- default: n(({ isOpen: a, toggle: m }) => [
94
- o(t.$slots, "default", {
95
- isOpen: a,
96
- toggle: m
102
+ default: i(({ isOpen: n, toggle: v }) => [
103
+ l(e.$slots, "default", {
104
+ isOpen: n,
105
+ toggle: v
97
106
  })
98
107
  ]),
99
108
  _: 3
100
- }, 8, ["model-value", "start-open", "trigger-text", "classes", "animate"]));
109
+ }, 8, ["id", "model-value", "start-open", "trigger-text", "classes", "animate"]));
101
110
  }
102
111
  };
103
112
  export {
104
- E as default
113
+ G as default
105
114
  };
@@ -14,28 +14,29 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
14
14
  readonly items?: unknown[] | undefined;
15
15
  readonly modifiers?: string | unknown[] | undefined;
16
16
  };
17
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
17
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
18
18
  type __VLS_TemplateResult = {
19
19
  attrs: Partial<{}>;
20
20
  slots: {
21
21
  trigger?(_: {
22
- item: never;
22
+ item: unknown;
23
23
  index: number;
24
24
  isOpen: boolean | undefined;
25
25
  }): any;
26
26
  icon?(_: {
27
- item: never;
27
+ item: unknown;
28
28
  index: number;
29
29
  isOpen: boolean | undefined;
30
30
  }): any;
31
31
  item?(_: {
32
- item: never;
32
+ item: unknown;
33
33
  index: number;
34
34
  isOpen: true;
35
35
  toggle: typeof toggle;
36
36
  }): any;
37
+ default?(_: {}): any;
37
38
  };
38
39
  refs: {};
39
- rootEl: any;
40
+ rootEl: HTMLDivElement;
40
41
  };
41
42
  //# sourceMappingURL=UluAccordionGroup.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UluAccordionGroup.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/UluAccordionGroup.vue"],"names":[],"mappings":"AAgCA;wBAkRqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAVjC;;;;;;;;;;;2OAOG"}
1
+ {"version":3,"file":"UluAccordionGroup.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/UluAccordionGroup.vue"],"names":[],"mappings":"AA+BA;wBAgQqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAXjC;;;;;;;;;;;sPAQG"}
@@ -1,9 +1,6 @@
1
- import { ref as f, watch as p, createElementBlock as g, createCommentVNode as y, openBlock as s, Fragment as O, renderList as h, createBlock as k, createSlots as v, withCtx as l, renderSlot as m, createTextVNode as $, toDisplayString as S } from "vue";
2
- import B from "./UluAccordion.vue.js";
3
- const E = {
4
- key: 0,
5
- class: "accordion-group"
6
- }, x = {
1
+ import { ref as m, provide as f, createElementBlock as c, openBlock as l, renderSlot as s, Fragment as p, renderList as y, createBlock as k, createSlots as $, withCtx as a, createTextVNode as v, toDisplayString as A } from "vue";
2
+ import O from "./UluAccordion.vue.js";
3
+ const S = { class: "accordion-group" }, B = {
7
4
  __name: "UluAccordionGroup",
8
5
  props: {
9
6
  /**
@@ -36,48 +33,42 @@ const E = {
36
33
  default: !0
37
34
  }
38
35
  },
39
- setup(a) {
40
- const u = a, o = f([]);
41
- p(() => u.items, (e) => {
42
- o.value = e.map((i) => ({
43
- ...i,
44
- isOpen: i.isOpen || !1
45
- }));
46
- }, { immediate: !0, deep: !0 });
47
- function c(e, i) {
48
- i ? o.value.forEach((t, r) => {
49
- t.isOpen = r === e;
50
- }) : o.value[e].isOpen = !1;
36
+ setup(r) {
37
+ const i = m(null);
38
+ function u(e, g) {
39
+ g ? i.value = e : i.value === e && (i.value = null);
51
40
  }
52
- return (e, i) => a.items?.length ? (s(), g("div", E, [
53
- (s(!0), g(O, null, h(o.value, (t, r) => (s(), k(B, {
54
- key: r,
55
- "model-value": t.isOpen,
56
- "onUpdate:modelValue": (n) => c(r, n),
41
+ return f("uluAccordionGroup", {
42
+ activeAccordionId: i,
43
+ toggle: u
44
+ }), (e, g) => (l(), c("div", S, [
45
+ r.items?.length ? (l(!0), c(p, { key: 0 }, y(r.items, (t, o) => (l(), k(O, {
46
+ key: o,
47
+ "start-open": t.isOpen,
57
48
  "trigger-text": t.title,
58
49
  classes: t.classes,
59
- "trigger-text-element": a.triggerTextElement,
60
- modifiers: a.modifiers,
61
- animate: a.animate
62
- }, v({
63
- default: l(({ isOpen: n, toggle: d }) => [
64
- m(e.$slots, "item", {
50
+ "trigger-text-element": r.triggerTextElement,
51
+ modifiers: r.modifiers,
52
+ animate: r.animate
53
+ }, $({
54
+ default: a(({ isOpen: n, toggle: d }) => [
55
+ s(e.$slots, "item", {
65
56
  item: t,
66
- index: r,
57
+ index: o,
67
58
  isOpen: n,
68
59
  toggle: d
69
60
  }, () => [
70
- $(S(t.content), 1)
61
+ v(A(t.content), 1)
71
62
  ])
72
63
  ]),
73
64
  _: 2
74
65
  }, [
75
66
  e.$slots.trigger ? {
76
67
  name: "trigger",
77
- fn: l(({ isOpen: n }) => [
78
- m(e.$slots, "trigger", {
68
+ fn: a(({ isOpen: n }) => [
69
+ s(e.$slots, "trigger", {
79
70
  item: t,
80
- index: r,
71
+ index: o,
81
72
  isOpen: n
82
73
  })
83
74
  ]),
@@ -85,19 +76,19 @@ const E = {
85
76
  } : void 0,
86
77
  e.$slots.icon ? {
87
78
  name: "icon",
88
- fn: l(({ isOpen: n }) => [
89
- m(e.$slots, "icon", {
79
+ fn: a(({ isOpen: n }) => [
80
+ s(e.$slots, "icon", {
90
81
  item: t,
91
- index: r,
82
+ index: o,
92
83
  isOpen: n
93
84
  })
94
85
  ]),
95
86
  key: "1"
96
87
  } : void 0
97
- ]), 1032, ["model-value", "onUpdate:modelValue", "trigger-text", "classes", "trigger-text-element", "modifiers", "animate"]))), 128))
98
- ])) : y("", !0);
88
+ ]), 1032, ["start-open", "trigger-text", "classes", "trigger-text-element", "modifiers", "animate"]))), 128)) : s(e.$slots, "default", { key: 1 })
89
+ ]));
99
90
  }
100
91
  };
101
92
  export {
102
- x as default
93
+ B as default
103
94
  };
@@ -40,6 +40,7 @@ type __VLS_TemplateResult = {
40
40
  index: number;
41
41
  descriptionIndex: number;
42
42
  }): any;
43
+ default?(_: {}): any;
43
44
  };
44
45
  refs: {};
45
46
  rootEl: any;
@@ -1 +1 @@
1
- {"version":3,"file":"UluDefinitionList.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/elements/UluDefinitionList.vue"],"names":[],"mappings":"AAmCA;wBAyQqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAVjC;;;;;;;;;;;;;;;;;;;;;;;2OAOG"}
1
+ {"version":3,"file":"UluDefinitionList.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/elements/UluDefinitionList.vue"],"names":[],"mappings":"AAsCA;wBAuRqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAVjC;;;;;;;;;;;;;;;;;;;;;;;2OAOG"}
@@ -1,6 +1,6 @@
1
- import { computed as b, createElementBlock as r, createCommentVNode as g, openBlock as a, normalizeClass as n, unref as k, Fragment as d, renderList as m, createElementVNode as L, renderSlot as p, createTextVNode as u, toDisplayString as f } from "vue";
2
- import { useModifiers as C } from "../../composables/useModifiers.js";
3
- const N = {
1
+ import { provide as b, computed as m, createElementBlock as i, createCommentVNode as g, openBlock as a, normalizeClass as r, unref as L, renderSlot as o, Fragment as u, renderList as f, createElementVNode as C, createTextVNode as p, toDisplayString as y } from "vue";
2
+ import { useModifiers as D } from "../../composables/useModifiers.js";
3
+ const M = {
4
4
  __name: "UluDefinitionList",
5
5
  props: {
6
6
  /**
@@ -48,55 +48,57 @@ const N = {
48
48
  */
49
49
  compact: Boolean
50
50
  },
51
- setup(t) {
52
- const e = t, y = b(() => ({
53
- inline: e.inline,
54
- "inline-all": e.inlineAll,
55
- table: e.table,
56
- separated: e.separated,
57
- "separated-first": e.separatedFirst,
58
- "separated-last": e.separatedLast,
59
- compact: e.compact
60
- })), { resolvedModifiers: B } = C({
61
- props: e,
62
- internal: y,
51
+ setup(e) {
52
+ const t = e;
53
+ b("uluDefinitionListClasses", m(() => t.classes));
54
+ const B = m(() => ({
55
+ inline: t.inline,
56
+ "inline-all": t.inlineAll,
57
+ table: t.table,
58
+ separated: t.separated,
59
+ "separated-first": t.separatedFirst,
60
+ "separated-last": t.separatedLast,
61
+ compact: t.compact
62
+ })), { resolvedModifiers: k } = D({
63
+ props: t,
64
+ internal: B,
63
65
  baseClass: "definition-list"
64
66
  }), A = (s) => Array.isArray(s.description) ? s.description : [s.description];
65
- return (s, D) => t.items?.length ? (a(), r("dl", {
67
+ return (s, $) => (e.items !== void 0 ? e.items.length : s.$slots.default) ? (a(), i("dl", {
66
68
  key: 0,
67
- class: n(["definition-list", [k(B), t.classes.list]])
69
+ class: r(["definition-list", [L(k), e.classes.list]])
68
70
  }, [
69
- (a(!0), r(d, null, m(t.items, (i, l) => (a(), r("div", {
71
+ e.items !== void 0 ? (a(!0), i(u, { key: 0 }, f(e.items, (n, l) => (a(), i("div", {
70
72
  key: l,
71
- class: n(t.classes.item)
73
+ class: r(e.classes.item)
72
74
  }, [
73
- L("dt", {
74
- class: n(t.classes.term)
75
+ C("dt", {
76
+ class: r(e.classes.term)
75
77
  }, [
76
- p(s.$slots, "term", {
77
- item: i,
78
+ o(s.$slots, "term", {
79
+ item: n,
78
80
  index: l
79
81
  }, () => [
80
- u(f(i.term), 1)
82
+ p(y(n.term), 1)
81
83
  ])
82
84
  ], 2),
83
- (a(!0), r(d, null, m(A(i), (o, c) => (a(), r("dd", {
85
+ (a(!0), i(u, null, f(A(n), (d, c) => (a(), i("dd", {
84
86
  key: c,
85
- class: n(t.classes.description)
87
+ class: r(e.classes.description)
86
88
  }, [
87
- p(s.$slots, "description", {
88
- item: i,
89
- description: o,
89
+ o(s.$slots, "description", {
90
+ item: n,
91
+ description: d,
90
92
  index: l,
91
93
  descriptionIndex: c
92
94
  }, () => [
93
- u(f(o), 1)
95
+ p(y(d), 1)
94
96
  ])
95
97
  ], 2))), 128))
96
- ], 2))), 128))
98
+ ], 2))), 128)) : o(s.$slots, "default", { key: 1 })
97
99
  ], 2)) : g("", !0);
98
100
  }
99
101
  };
100
102
  export {
101
- N as default
103
+ M as default
102
104
  };
@@ -0,0 +1,28 @@
1
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2
+ export default _default;
3
+ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
4
+ $slots: S;
5
+ });
6
+ declare const __VLS_component: import('vue').DefineComponent<{}, {
7
+ classes?: Record<string, any> | undefined;
8
+ description?: string | unknown[] | undefined;
9
+ term?: string | undefined;
10
+ $props: {
11
+ readonly classes?: Record<string, any> | undefined;
12
+ readonly description?: string | unknown[] | undefined;
13
+ readonly term?: string | undefined;
14
+ };
15
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
16
+ type __VLS_TemplateResult = {
17
+ attrs: Partial<{}>;
18
+ slots: {
19
+ term?(_: {}): any;
20
+ description?(_: {
21
+ description: unknown;
22
+ index: number;
23
+ }): any;
24
+ };
25
+ refs: {};
26
+ rootEl: HTMLDivElement;
27
+ };
28
+ //# sourceMappingURL=UluDefinitionListItem.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UluDefinitionListItem.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/elements/UluDefinitionListItem.vue"],"names":[],"mappings":"AAgBA;wBAwIqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAXjC;;;;;;;;;sPAQG"}
@@ -0,0 +1,46 @@
1
+ import { inject as f, computed as o, createElementBlock as r, openBlock as i, normalizeClass as n, createElementVNode as y, renderSlot as d, createTextVNode as u, toDisplayString as m, Fragment as g, renderList as C } from "vue";
2
+ const k = {
3
+ __name: "UluDefinitionListItem",
4
+ props: {
5
+ /**
6
+ * The term text (renders inside dt)
7
+ */
8
+ term: String,
9
+ /**
10
+ * The description text or array of strings (renders inside dd)
11
+ */
12
+ description: [String, Array],
13
+ /**
14
+ * Optional classes object to override/append to injected parent classes { item, term, description }
15
+ */
16
+ classes: Object
17
+ },
18
+ setup(e) {
19
+ const t = e, p = f("uluDefinitionListClasses", { value: {} }), s = o(() => p.value || {}), v = o(() => t.description ? Array.isArray(t.description) ? t.description : [t.description] : []);
20
+ return (c, S) => (i(), r("div", {
21
+ class: n([s.value.item, e.classes?.item])
22
+ }, [
23
+ y("dt", {
24
+ class: n([s.value.term, e.classes?.term])
25
+ }, [
26
+ d(c.$slots, "term", {}, () => [
27
+ u(m(e.term), 1)
28
+ ])
29
+ ], 2),
30
+ (i(!0), r(g, null, C(v.value, (l, a) => (i(), r("dd", {
31
+ key: a,
32
+ class: n([s.value.description, e.classes?.description])
33
+ }, [
34
+ d(c.$slots, "description", {
35
+ description: l,
36
+ index: a
37
+ }, () => [
38
+ u(m(l), 1)
39
+ ])
40
+ ], 2))), 128))
41
+ ], 2));
42
+ }
43
+ };
44
+ export {
45
+ k as default
46
+ };
@@ -34,6 +34,7 @@ type __VLS_TemplateResult = {
34
34
  item: unknown;
35
35
  index: number;
36
36
  }): any;
37
+ default?(_: {}): any;
37
38
  };
38
39
  refs: {};
39
40
  rootEl: any;
@@ -1 +1 @@
1
- {"version":3,"file":"UluList.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/elements/UluList.vue"],"names":[],"mappings":"AAiCA;wBAmPqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAVjC;;;;;;;;;;;;;;;;;;;;;;;2OAOG"}
1
+ {"version":3,"file":"UluList.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/elements/UluList.vue"],"names":[],"mappings":"AAoCA;wBAiQqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAVjC;;;;;;;;;;;;;;;;;;;;;;;2OAOG"}
@@ -1,5 +1,5 @@
1
- import { computed as n, createBlock as m, createCommentVNode as u, openBlock as l, resolveDynamicComponent as y, normalizeStyle as B, normalizeClass as o, withCtx as f, createElementBlock as d, Fragment as v, renderList as S, renderSlot as g, createTextVNode as k, toDisplayString as C } from "vue";
2
- const h = {
1
+ import { provide as m, computed as r, createBlock as y, createCommentVNode as f, openBlock as a, resolveDynamicComponent as v, normalizeStyle as B, normalizeClass as o, withCtx as S, createElementBlock as i, renderSlot as c, Fragment as k, renderList as g, createTextVNode as C, toDisplayString as O } from "vue";
2
+ const L = {
3
3
  __name: "UluList",
4
4
  props: {
5
5
  /**
@@ -50,8 +50,10 @@ const h = {
50
50
  listStyleType: String
51
51
  },
52
52
  setup(e) {
53
- const r = e, s = n(() => r.ordered || r.forceOrdered), c = n(() => s.value ? "ol" : "ul");
54
- return (i, O) => e.items?.length ? (l(), m(y(c.value), {
53
+ const t = e;
54
+ m("uluListClasses", r(() => t.classes));
55
+ const n = r(() => t.ordered || t.forceOrdered), u = r(() => n.value ? "ol" : "ul");
56
+ return (l, T) => (e.items !== void 0 ? e.items.length : l.$slots.default) ? (a(), y(v(u.value), {
55
57
  key: 0,
56
58
  class: o([
57
59
  {
@@ -65,29 +67,29 @@ const h = {
65
67
  style: B({
66
68
  listStyleType: e.listStyleType
67
69
  }),
68
- reversed: s.value ? e.reversed : null,
70
+ reversed: n.value ? e.reversed : null,
69
71
  start: e.start
70
72
  }, {
71
- default: f(() => [
72
- (l(!0), d(v, null, S(e.items, (t, a) => (l(), d("li", {
73
- key: a,
73
+ default: S(() => [
74
+ e.items !== void 0 ? (a(!0), i(k, { key: 0 }, g(e.items, (s, d) => (a(), i("li", {
75
+ key: d,
74
76
  class: o([
75
77
  e.classes.item,
76
- t?.classes?.item
78
+ s?.classes?.item
77
79
  ])
78
80
  }, [
79
- g(i.$slots, "default", {
80
- item: t,
81
- index: a
81
+ c(l.$slots, "default", {
82
+ item: s,
83
+ index: d
82
84
  }, () => [
83
- k(C(t), 1)
85
+ C(O(s), 1)
84
86
  ])
85
- ], 2))), 128))
87
+ ], 2))), 128)) : c(l.$slots, "default", { key: 1 })
86
88
  ]),
87
89
  _: 3
88
- }, 8, ["class", "style", "reversed", "start"])) : u("", !0);
90
+ }, 8, ["class", "style", "reversed", "start"])) : f("", !0);
89
91
  }
90
92
  };
91
93
  export {
92
- h as default
94
+ L as default
93
95
  };
@@ -0,0 +1,20 @@
1
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2
+ export default _default;
3
+ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
4
+ $slots: S;
5
+ });
6
+ declare const __VLS_component: import('vue').DefineComponent<{}, {
7
+ classes?: string | Record<string, any> | unknown[] | undefined;
8
+ $props: {
9
+ readonly classes?: string | Record<string, any> | unknown[] | undefined;
10
+ };
11
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLLIElement>;
12
+ type __VLS_TemplateResult = {
13
+ attrs: Partial<{}>;
14
+ slots: {
15
+ default?(_: {}): any;
16
+ };
17
+ refs: {};
18
+ rootEl: HTMLLIElement;
19
+ };
20
+ //# sourceMappingURL=UluListItem.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UluListItem.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/elements/UluListItem.vue"],"names":[],"mappings":"AAKA;wBAkFqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAXjC;;;;;qPAQG"}
@@ -0,0 +1,21 @@
1
+ import { inject as a, computed as c, createElementBlock as r, openBlock as n, normalizeClass as o, renderSlot as u } from "vue";
2
+ const p = {
3
+ __name: "UluListItem",
4
+ props: {
5
+ /**
6
+ * Optional class binding to append to the injected parent classes
7
+ */
8
+ classes: [String, Array, Object]
9
+ },
10
+ setup(e) {
11
+ const s = a("uluListClasses", { value: {} }), t = c(() => s.value || {});
12
+ return (l, i) => (n(), r("li", {
13
+ class: o([t.value.item, e.classes])
14
+ }, [
15
+ u(l.$slots, "default")
16
+ ], 2));
17
+ }
18
+ };
19
+ export {
20
+ p as default
21
+ };
@@ -18,10 +18,12 @@ export { default as UluCallout } from './elements/UluCallout.vue';
18
18
  export { default as UluCaptionedFigure } from './elements/UluCaptionedFigure.vue';
19
19
  export { default as UluCard } from './elements/UluCard.vue';
20
20
  export { default as UluDefinitionList } from './elements/UluDefinitionList.vue';
21
+ export { default as UluDefinitionListItem } from './elements/UluDefinitionListItem.vue';
21
22
  export { default as UluExternalLink } from './elements/UluExternalLink.vue';
22
23
  export { default as UluIcon } from './elements/UluIcon.vue';
23
24
  export { default as UluImage } from './elements/UluImage.vue';
24
25
  export { default as UluList } from './elements/UluList.vue';
26
+ export { default as UluListItem } from './elements/UluListItem.vue';
25
27
  export { default as UluMain } from './elements/UluMain.vue';
26
28
  export { default as UluOverflowScroller } from './elements/UluOverflowScroller.vue';
27
29
  export { default as UluRule } from './elements/UluRule.vue';