@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.
- package/dist/components/collapsible/UluAccordion.vue.d.ts.map +1 -1
- package/dist/components/collapsible/UluAccordion.vue.js +41 -32
- package/dist/components/collapsible/UluAccordionGroup.vue.d.ts +6 -5
- package/dist/components/collapsible/UluAccordionGroup.vue.d.ts.map +1 -1
- package/dist/components/collapsible/UluAccordionGroup.vue.js +31 -40
- package/dist/components/elements/UluDefinitionList.vue.d.ts +1 -0
- package/dist/components/elements/UluDefinitionList.vue.d.ts.map +1 -1
- package/dist/components/elements/UluDefinitionList.vue.js +34 -32
- package/dist/components/elements/UluDefinitionListItem.vue.d.ts +28 -0
- package/dist/components/elements/UluDefinitionListItem.vue.d.ts.map +1 -0
- package/dist/components/elements/UluDefinitionListItem.vue.js +46 -0
- package/dist/components/elements/UluList.vue.d.ts +1 -0
- package/dist/components/elements/UluList.vue.d.ts.map +1 -1
- package/dist/components/elements/UluList.vue.js +18 -16
- package/dist/components/elements/UluListItem.vue.d.ts +20 -0
- package/dist/components/elements/UluListItem.vue.d.ts.map +1 -0
- package/dist/components/elements/UluListItem.vue.js +21 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/navigation/UluBreadcrumb.vue.js +23 -23
- package/dist/index.js +182 -178
- package/lib/components/collapsible/UluAccordion.vue +28 -3
- package/lib/components/collapsible/UluAccordionGroup.vue +71 -79
- package/lib/components/elements/UluDefinitionList.vue +32 -27
- package/lib/components/elements/UluDefinitionListItem.vue +43 -0
- package/lib/components/elements/UluList.vue +19 -14
- package/lib/components/elements/UluListItem.vue +19 -0
- package/lib/components/index.js +2 -0
- package/lib/components/navigation/UluBreadcrumb.vue +5 -5
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UluAccordion.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/UluAccordion.vue"],"names":[],"mappings":"
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useModifiers as
|
|
5
|
-
|
|
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(
|
|
61
|
-
const r =
|
|
62
|
-
const
|
|
63
|
-
return
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"
|
|
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:
|
|
74
|
-
|
|
75
|
-
(
|
|
76
|
-
default:
|
|
77
|
-
|
|
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
|
-
|
|
83
|
-
|
|
84
|
-
class:
|
|
91
|
+
l(e.$slots, "icon", { isOpen: n }, () => [
|
|
92
|
+
M("span", {
|
|
93
|
+
class: S(["accordion__icon", t.classes.icon])
|
|
85
94
|
}, [
|
|
86
|
-
|
|
87
|
-
icon:
|
|
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:
|
|
94
|
-
|
|
95
|
-
isOpen:
|
|
96
|
-
toggle:
|
|
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
|
-
|
|
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, {},
|
|
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:
|
|
22
|
+
item: unknown;
|
|
23
23
|
index: number;
|
|
24
24
|
isOpen: boolean | undefined;
|
|
25
25
|
}): any;
|
|
26
26
|
icon?(_: {
|
|
27
|
-
item:
|
|
27
|
+
item: unknown;
|
|
28
28
|
index: number;
|
|
29
29
|
isOpen: boolean | undefined;
|
|
30
30
|
}): any;
|
|
31
31
|
item?(_: {
|
|
32
|
-
item:
|
|
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:
|
|
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":"
|
|
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
|
|
2
|
-
import
|
|
3
|
-
const
|
|
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(
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
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 (
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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":
|
|
60
|
-
modifiers:
|
|
61
|
-
animate:
|
|
62
|
-
},
|
|
63
|
-
default:
|
|
64
|
-
|
|
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:
|
|
57
|
+
index: o,
|
|
67
58
|
isOpen: n,
|
|
68
59
|
toggle: d
|
|
69
60
|
}, () => [
|
|
70
|
-
|
|
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:
|
|
78
|
-
|
|
68
|
+
fn: a(({ isOpen: n }) => [
|
|
69
|
+
s(e.$slots, "trigger", {
|
|
79
70
|
item: t,
|
|
80
|
-
index:
|
|
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:
|
|
89
|
-
|
|
79
|
+
fn: a(({ isOpen: n }) => [
|
|
80
|
+
s(e.$slots, "icon", {
|
|
90
81
|
item: t,
|
|
91
|
-
index:
|
|
82
|
+
index: o,
|
|
92
83
|
isOpen: n
|
|
93
84
|
})
|
|
94
85
|
]),
|
|
95
86
|
key: "1"
|
|
96
87
|
} : void 0
|
|
97
|
-
]), 1032, ["
|
|
98
|
-
]))
|
|
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
|
-
|
|
93
|
+
B as default
|
|
103
94
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UluDefinitionList.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/elements/UluDefinitionList.vue"],"names":[],"mappings":"
|
|
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 {
|
|
2
|
-
import { useModifiers as
|
|
3
|
-
const
|
|
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(
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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,
|
|
67
|
+
return (s, $) => (e.items !== void 0 ? e.items.length : s.$slots.default) ? (a(), i("dl", {
|
|
66
68
|
key: 0,
|
|
67
|
-
class:
|
|
69
|
+
class: r(["definition-list", [L(k), e.classes.list]])
|
|
68
70
|
}, [
|
|
69
|
-
(a(!0),
|
|
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:
|
|
73
|
+
class: r(e.classes.item)
|
|
72
74
|
}, [
|
|
73
|
-
|
|
74
|
-
class:
|
|
75
|
+
C("dt", {
|
|
76
|
+
class: r(e.classes.term)
|
|
75
77
|
}, [
|
|
76
|
-
|
|
77
|
-
item:
|
|
78
|
+
o(s.$slots, "term", {
|
|
79
|
+
item: n,
|
|
78
80
|
index: l
|
|
79
81
|
}, () => [
|
|
80
|
-
|
|
82
|
+
p(y(n.term), 1)
|
|
81
83
|
])
|
|
82
84
|
], 2),
|
|
83
|
-
(a(!0),
|
|
85
|
+
(a(!0), i(u, null, f(A(n), (d, c) => (a(), i("dd", {
|
|
84
86
|
key: c,
|
|
85
|
-
class:
|
|
87
|
+
class: r(e.classes.description)
|
|
86
88
|
}, [
|
|
87
|
-
|
|
88
|
-
item:
|
|
89
|
-
description:
|
|
89
|
+
o(s.$slots, "description", {
|
|
90
|
+
item: n,
|
|
91
|
+
description: d,
|
|
90
92
|
index: l,
|
|
91
93
|
descriptionIndex: c
|
|
92
94
|
}, () => [
|
|
93
|
-
|
|
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
|
-
|
|
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
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UluList.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/elements/UluList.vue"],"names":[],"mappings":"
|
|
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
|
|
2
|
-
const
|
|
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
|
|
54
|
-
|
|
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:
|
|
70
|
+
reversed: n.value ? e.reversed : null,
|
|
69
71
|
start: e.start
|
|
70
72
|
}, {
|
|
71
|
-
default:
|
|
72
|
-
(
|
|
73
|
-
key:
|
|
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
|
-
|
|
78
|
+
s?.classes?.item
|
|
77
79
|
])
|
|
78
80
|
}, [
|
|
79
|
-
|
|
80
|
-
item:
|
|
81
|
-
index:
|
|
81
|
+
c(l.$slots, "default", {
|
|
82
|
+
item: s,
|
|
83
|
+
index: d
|
|
82
84
|
}, () => [
|
|
83
|
-
|
|
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"])) :
|
|
90
|
+
}, 8, ["class", "style", "reversed", "start"])) : f("", !0);
|
|
89
91
|
}
|
|
90
92
|
};
|
|
91
93
|
export {
|
|
92
|
-
|
|
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';
|