@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,4 +1,4 @@
|
|
|
1
|
-
import { resolveComponent as d, createElementBlock as s, createCommentVNode as o, openBlock as
|
|
1
|
+
import { resolveComponent as d, createElementBlock as s, createCommentVNode as o, openBlock as t, normalizeClass as r, createElementVNode as b, Fragment as k, renderList as f, createBlock as y, renderSlot as c, withCtx as g, createTextVNode as u, toDisplayString as i, createVNode as p } from "vue";
|
|
2
2
|
import h from "../elements/UluIcon.vue.js";
|
|
3
3
|
const N = {
|
|
4
4
|
__name: "UluBreadcrumb",
|
|
@@ -17,7 +17,7 @@ const N = {
|
|
|
17
17
|
separatorIcon: String,
|
|
18
18
|
/**
|
|
19
19
|
* Classes object to be applied to elements.
|
|
20
|
-
* Keys: nav, list, item, link,
|
|
20
|
+
* Keys: nav, list, item, link, current, separator
|
|
21
21
|
*/
|
|
22
22
|
classes: {
|
|
23
23
|
type: Object,
|
|
@@ -31,45 +31,45 @@ const N = {
|
|
|
31
31
|
})
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
|
-
setup(
|
|
34
|
+
setup(a) {
|
|
35
35
|
return (l, B) => {
|
|
36
36
|
const m = d("router-link");
|
|
37
|
-
return
|
|
37
|
+
return a.items.length ? (t(), s("nav", {
|
|
38
38
|
key: 0,
|
|
39
|
-
class:
|
|
39
|
+
class: r(a.classes.nav),
|
|
40
40
|
"aria-label": "Breadcrumb"
|
|
41
41
|
}, [
|
|
42
42
|
b("ol", {
|
|
43
|
-
class:
|
|
43
|
+
class: r(a.classes.list)
|
|
44
44
|
}, [
|
|
45
|
-
(
|
|
45
|
+
(t(!0), s(k, null, f(a.items, (e, n) => (t(), s("li", {
|
|
46
46
|
key: n,
|
|
47
|
-
class:
|
|
47
|
+
class: r([a.classes.item, e?.classes?.item])
|
|
48
48
|
}, [
|
|
49
|
-
|
|
49
|
+
e.current ? (t(), s("span", {
|
|
50
50
|
key: 1,
|
|
51
|
-
class:
|
|
51
|
+
class: r([a.classes.current, e?.classes?.current])
|
|
52
52
|
}, [
|
|
53
|
-
c(l.$slots, "default", { item:
|
|
54
|
-
u(i(
|
|
53
|
+
c(l.$slots, "default", { item: e }, () => [
|
|
54
|
+
u(i(e.title), 1)
|
|
55
55
|
])
|
|
56
|
-
], 2)) : (
|
|
56
|
+
], 2)) : (t(), y(m, {
|
|
57
57
|
key: 0,
|
|
58
|
-
to:
|
|
59
|
-
class:
|
|
60
|
-
"aria-current":
|
|
58
|
+
to: e.to,
|
|
59
|
+
class: r([a.classes.link, e?.classes?.link]),
|
|
60
|
+
"aria-current": e.current ? "page" : null
|
|
61
61
|
}, {
|
|
62
|
-
default:
|
|
63
|
-
c(l.$slots, "default", { item:
|
|
64
|
-
u(i(
|
|
62
|
+
default: g(() => [
|
|
63
|
+
c(l.$slots, "default", { item: e }, () => [
|
|
64
|
+
u(i(e.title), 1)
|
|
65
65
|
])
|
|
66
66
|
]),
|
|
67
67
|
_: 2
|
|
68
68
|
}, 1032, ["to", "class", "aria-current"])),
|
|
69
|
-
n <
|
|
70
|
-
|
|
71
|
-
class:
|
|
72
|
-
icon:
|
|
69
|
+
n < a.items.length - 1 ? c(l.$slots, "separator", { key: 2 }, () => [
|
|
70
|
+
p(h, {
|
|
71
|
+
class: r([a.classes.separator, e?.classes?.separator]),
|
|
72
|
+
icon: a.separatorIcon || "type:pathSeparator"
|
|
73
73
|
}, null, 8, ["class", "icon"])
|
|
74
74
|
]) : o("", !0)
|
|
75
75
|
], 2))), 128))
|
package/dist/index.js
CHANGED
|
@@ -11,10 +11,10 @@ import { default as T } from "./components/collapsible/UluCollapsible.vue.js";
|
|
|
11
11
|
import { default as g } from "./components/collapsible/UluDropdown.vue.js";
|
|
12
12
|
import { default as h } from "./components/collapsible/UluModal.vue.js";
|
|
13
13
|
import { default as P } from "./components/collapsible/UluOverflowPopover.vue.js";
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
14
|
+
import { default as v } from "./components/collapsible/UluTab.vue.js";
|
|
15
|
+
import { default as C } from "./components/collapsible/UluTabGroup.vue.js";
|
|
16
|
+
import { default as R } from "./components/collapsible/UluTabList.vue.js";
|
|
17
|
+
import { default as w } from "./components/collapsible/UluTabPanel.vue.js";
|
|
18
18
|
import { default as D } from "./components/collapsible/UluTabPanels.vue.js";
|
|
19
19
|
import { default as E } from "./components/elements/UluAlert.vue.js";
|
|
20
20
|
import { default as W } from "./components/elements/UluBadge.vue.js";
|
|
@@ -25,202 +25,206 @@ import { default as K } from "./components/elements/UluCallout.vue.js";
|
|
|
25
25
|
import { default as X } from "./components/elements/UluCaptionedFigure.vue.js";
|
|
26
26
|
import { default as Z } from "./components/elements/UluCard.vue.js";
|
|
27
27
|
import { default as $ } from "./components/elements/UluDefinitionList.vue.js";
|
|
28
|
-
import { default as oe } from "./components/elements/
|
|
29
|
-
import { default as te } from "./components/elements/
|
|
30
|
-
import { default as le } from "./components/elements/
|
|
31
|
-
import { default as fe } from "./components/elements/
|
|
32
|
-
import { default as me } from "./components/elements/
|
|
33
|
-
import { default as de } from "./components/elements/
|
|
34
|
-
import { default as Ue } from "./components/elements/
|
|
35
|
-
import { default as ne } from "./components/elements/
|
|
36
|
-
import { default as Se } from "./components/elements/
|
|
37
|
-
import { default as Te } from "./components/elements/
|
|
38
|
-
import { default as ge } from "./components/
|
|
39
|
-
import { default as he } from "./components/
|
|
40
|
-
import { default as Pe } from "./components/forms/
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as De } from "./components/forms/
|
|
46
|
-
import { default as Ee } from "./components/forms/
|
|
47
|
-
import { default as We } from "./components/forms/
|
|
48
|
-
import { default as He } from "./components/forms/
|
|
49
|
-
import { default as Ve } from "./components/forms/
|
|
50
|
-
import { default as ze } from "./components/forms/
|
|
51
|
-
import { default as Ke } from "./components/forms/
|
|
52
|
-
import { default as Xe } from "./components/forms/
|
|
53
|
-
import { default as Ze } from "./components/forms/
|
|
54
|
-
import { default as $e } from "./components/
|
|
55
|
-
import { default as oo } from "./components/
|
|
56
|
-
import { default as to } from "./components/layout/
|
|
57
|
-
import { default as lo } from "./components/layout/
|
|
58
|
-
import { default as fo } from "./components/
|
|
59
|
-
import { default as mo } from "./components/
|
|
60
|
-
import { default as xo } from "./components/navigation/
|
|
61
|
-
import { default as io } from "./components/navigation/
|
|
62
|
-
import { default as co } from "./components/navigation/
|
|
63
|
-
import { default as Fo } from "./components/
|
|
64
|
-
import { default as Ao } from "./components/
|
|
65
|
-
import { default as bo } from "./components/utils/
|
|
66
|
-
import { default as ko } from "./components/utils/
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
71
|
-
import { default as
|
|
72
|
-
import { default as No } from "./components/visualizations/
|
|
73
|
-
import { default as Go } from "./components/
|
|
74
|
-
import { default as qo } from "./components/
|
|
75
|
-
import { default as Oo } from "./components/systems/facets/
|
|
76
|
-
import { default as jo } from "./components/systems/facets/
|
|
77
|
-
import { default as Jo } from "./components/systems/facets/
|
|
78
|
-
import { default as Qo } from "./components/systems/facets/
|
|
79
|
-
import { default as Yo } from "./components/systems/facets/
|
|
80
|
-
import { default as _o } from "./components/systems/facets/
|
|
81
|
-
import { default as er } from "./components/systems/facets/
|
|
82
|
-
import { default as rr } from "./components/systems/facets/
|
|
83
|
-
import { default as ar } from "./components/systems/facets/
|
|
84
|
-
import { default as ur } from "./components/systems/
|
|
85
|
-
import { default as sr } from "./components/systems/
|
|
86
|
-
import { default as pr } from "./components/systems/scroll-anchors/
|
|
87
|
-
import { default as xr } from "./components/systems/scroll-anchors/
|
|
88
|
-
import { default as ir } from "./components/systems/scroll-anchors/
|
|
89
|
-
import { default as cr } from "./components/systems/
|
|
90
|
-
import { default as Fr } from "./components/systems/
|
|
91
|
-
import { default as Ar } from "./components/systems/skeleton/
|
|
92
|
-
import { default as br } from "./components/systems/skeleton/
|
|
93
|
-
import { default as kr } from "./components/systems/
|
|
94
|
-
import { default as
|
|
95
|
-
import { default as
|
|
96
|
-
import {
|
|
97
|
-
import { default as
|
|
98
|
-
import {
|
|
99
|
-
import { default as Nr } from "./components/
|
|
100
|
-
import { default as Gr } from "./components/
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
28
|
+
import { default as oe } from "./components/elements/UluDefinitionListItem.vue.js";
|
|
29
|
+
import { default as te } from "./components/elements/UluExternalLink.vue.js";
|
|
30
|
+
import { default as le } from "./components/elements/UluIcon.vue.js";
|
|
31
|
+
import { default as fe } from "./components/elements/UluImage.vue.js";
|
|
32
|
+
import { default as me } from "./components/elements/UluList.vue.js";
|
|
33
|
+
import { default as de } from "./components/elements/UluListItem.vue.js";
|
|
34
|
+
import { default as Ue } from "./components/elements/UluOverflowScroller.vue.js";
|
|
35
|
+
import { default as ne } from "./components/elements/UluRule.vue.js";
|
|
36
|
+
import { default as Se } from "./components/elements/UluScrollSlider.vue.js";
|
|
37
|
+
import { default as Te } from "./components/elements/UluSlider.vue.js";
|
|
38
|
+
import { default as ge } from "./components/elements/UluSpokeSpinner.vue.js";
|
|
39
|
+
import { default as he } from "./components/elements/UluTag.vue.js";
|
|
40
|
+
import { default as Pe } from "./components/forms/UluSelectableMenu.vue.js";
|
|
41
|
+
import { default as ve } from "./components/forms/UluFileDisplay.vue.js";
|
|
42
|
+
import { default as Ce } from "./components/forms/UluFormFile.vue.js";
|
|
43
|
+
import { default as Re } from "./components/forms/UluFormMessage.vue.js";
|
|
44
|
+
import { default as we } from "./components/forms/UluFormSelect.vue.js";
|
|
45
|
+
import { default as De } from "./components/forms/UluFormText.vue.js";
|
|
46
|
+
import { default as Ee } from "./components/forms/UluSearchForm.vue.js";
|
|
47
|
+
import { default as We } from "./components/forms/UluForm.vue.js";
|
|
48
|
+
import { default as He } from "./components/forms/UluFormActions.vue.js";
|
|
49
|
+
import { default as Ve } from "./components/forms/UluFormCheckbox.vue.js";
|
|
50
|
+
import { default as ze } from "./components/forms/UluFormFieldset.vue.js";
|
|
51
|
+
import { default as Ke } from "./components/forms/UluFormItem.vue.js";
|
|
52
|
+
import { default as Xe } from "./components/forms/UluFormItemsInline.vue.js";
|
|
53
|
+
import { default as Ze } from "./components/forms/UluFormRadio.vue.js";
|
|
54
|
+
import { default as $e } from "./components/forms/UluFormRequiredChar.vue.js";
|
|
55
|
+
import { default as oo } from "./components/forms/UluFormTextarea.vue.js";
|
|
56
|
+
import { default as to } from "./components/layout/UluAdaptiveLayout.vue.js";
|
|
57
|
+
import { default as lo } from "./components/layout/UluDataGrid.vue.js";
|
|
58
|
+
import { default as fo } from "./components/layout/UluTitleRail.vue.js";
|
|
59
|
+
import { default as mo } from "./components/layout/UluWhenBreakpoint.vue.js";
|
|
60
|
+
import { default as xo } from "./components/navigation/UluBreadcrumb.vue.js";
|
|
61
|
+
import { default as io } from "./components/navigation/UluMenu.vue.js";
|
|
62
|
+
import { default as co } from "./components/navigation/UluMenuStack.vue.js";
|
|
63
|
+
import { default as Fo } from "./components/navigation/UluNavStrip.vue.js";
|
|
64
|
+
import { default as Ao } from "./components/navigation/UluPager.vue.js";
|
|
65
|
+
import { default as bo } from "./components/utils/UluAction.vue.js";
|
|
66
|
+
import { default as ko } from "./components/utils/UluConditionalText.vue.js";
|
|
67
|
+
import { default as Lo } from "./components/utils/UluConditionalWrapper.vue.js";
|
|
68
|
+
import { default as yo } from "./components/utils/UluPlaceholderImage.vue.js";
|
|
69
|
+
import { default as Io } from "./components/utils/UluPlaceholderText.vue.js";
|
|
70
|
+
import { default as Mo } from "./components/utils/UluRouteAnnouncer.vue.js";
|
|
71
|
+
import { default as Bo } from "./components/utils/UluSanityRichText.vue.js";
|
|
72
|
+
import { default as No } from "./components/visualizations/UluAnimateNumber.vue.js";
|
|
73
|
+
import { default as Go } from "./components/visualizations/UluProgressBar.vue.js";
|
|
74
|
+
import { default as qo } from "./components/visualizations/UluProgressCircle.vue.js";
|
|
75
|
+
import { default as Oo } from "./components/systems/facets/UluFacetsActiveFilters.vue.js";
|
|
76
|
+
import { default as jo } from "./components/systems/facets/UluFacetsFilterLists.vue.js";
|
|
77
|
+
import { default as Jo } from "./components/systems/facets/UluFacetsFilterAccordions.vue.js";
|
|
78
|
+
import { default as Qo } from "./components/systems/facets/UluFacetsFilterPopovers.vue.js";
|
|
79
|
+
import { default as Yo } from "./components/systems/facets/UluFacetsFilterSelects.vue.js";
|
|
80
|
+
import { default as _o } from "./components/systems/facets/UluFacetsHeaderLayout.vue.js";
|
|
81
|
+
import { default as er } from "./components/systems/facets/UluFacetsResults.vue.js";
|
|
82
|
+
import { default as rr } from "./components/systems/facets/UluFacetsSearch.vue.js";
|
|
83
|
+
import { default as ar } from "./components/systems/facets/UluFacetsSidebarLayout.vue.js";
|
|
84
|
+
import { default as ur } from "./components/systems/facets/UluFacetsSort.vue.js";
|
|
85
|
+
import { default as sr } from "./components/systems/facets/UluFacetsList.vue.js";
|
|
86
|
+
import { default as pr } from "./components/systems/scroll-anchors/UluScrollAnchors.vue.js";
|
|
87
|
+
import { default as xr } from "./components/systems/scroll-anchors/UluScrollAnchorsNav.vue.js";
|
|
88
|
+
import { default as ir } from "./components/systems/scroll-anchors/UluScrollAnchorsNavAnimated.vue.js";
|
|
89
|
+
import { default as cr } from "./components/systems/scroll-anchors/UluScrollAnchorsSection.vue.js";
|
|
90
|
+
import { default as Fr } from "./components/systems/scroll-anchors/UluScrollAnchorsHeadlessSection.vue.js";
|
|
91
|
+
import { default as Ar } from "./components/systems/skeleton/UluShowSkeleton.vue.js";
|
|
92
|
+
import { default as br } from "./components/systems/skeleton/UluSkeletonContent.vue.js";
|
|
93
|
+
import { default as kr } from "./components/systems/skeleton/UluSkeletonMedia.vue.js";
|
|
94
|
+
import { default as Lr } from "./components/systems/skeleton/UluSkeletonText.vue.js";
|
|
95
|
+
import { default as yr } from "./components/systems/table-sticky/UluTableSticky.vue.js";
|
|
96
|
+
import { default as Ir } from "./components/systems/table-sticky/UluTableStickyRows.vue.js";
|
|
97
|
+
import { default as Mr } from "./components/systems/table-sticky/UluTableStickyTable.vue.js";
|
|
98
|
+
import { useTooltip as Br } from "./plugins/popovers/useTooltip.js";
|
|
99
|
+
import { default as Nr } from "./components/elements/UluMain.vue.js";
|
|
100
|
+
import { default as Gr } from "./components/navigation/UluSkipLink.vue.js";
|
|
101
|
+
import { default as qr } from "./components/utils/UluEmpty.vue.js";
|
|
102
|
+
import { default as Or } from "./components/utils/UluEmptyView.vue.js";
|
|
103
|
+
import { useFacets as jr } from "./components/systems/facets/useFacets.js";
|
|
104
|
+
import { useScrollAnchors as Jr } from "./components/systems/scroll-anchors/useScrollAnchors.js";
|
|
105
|
+
import { useScrollAnchorSection as Qr } from "./components/systems/scroll-anchors/useScrollAnchorSection.js";
|
|
106
|
+
import { useScrollAnchorSections as Yr } from "./components/systems/scroll-anchors/useScrollAnchorSections.js";
|
|
107
|
+
import { useIcon as _r } from "./composables/useIcon.js";
|
|
108
|
+
import { useModifiers as et } from "./composables/useModifiers.js";
|
|
109
|
+
import { useWindowResize as rt } from "./composables/useWindowResize.js";
|
|
110
|
+
import { useRequiredInject as at } from "./composables/useRequiredInject.js";
|
|
111
|
+
import { useBreakpointManager as ut } from "./composables/useBreakpointManager.js";
|
|
112
|
+
import { usePagination as st } from "./composables/usePagination.js";
|
|
113
|
+
import { useDocumentTitle as pt } from "./composables/useDocumentTitle.js";
|
|
114
|
+
import { useUluFloating as xt } from "./composables/useUluFloating.js";
|
|
113
115
|
export {
|
|
114
116
|
n as UluAccordion,
|
|
115
117
|
S as UluAccordionGroup,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
+
bo as UluAction,
|
|
119
|
+
to as UluAdaptiveLayout,
|
|
118
120
|
E as UluAlert,
|
|
119
|
-
|
|
121
|
+
No as UluAnimateNumber,
|
|
120
122
|
W as UluBadge,
|
|
121
123
|
H as UluBadgeStack,
|
|
122
|
-
|
|
124
|
+
xo as UluBreadcrumb,
|
|
123
125
|
V as UluButton,
|
|
124
126
|
z as UluButtonVerbose,
|
|
125
127
|
K as UluCallout,
|
|
126
128
|
X as UluCaptionedFigure,
|
|
127
129
|
Z as UluCard,
|
|
128
130
|
T as UluCollapsible,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
ko as UluConditionalText,
|
|
132
|
+
Lo as UluConditionalWrapper,
|
|
133
|
+
lo as UluDataGrid,
|
|
132
134
|
$ as UluDefinitionList,
|
|
135
|
+
oe as UluDefinitionListItem,
|
|
133
136
|
g as UluDropdown,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
137
|
+
qr as UluEmpty,
|
|
138
|
+
Or as UluEmptyView,
|
|
139
|
+
te as UluExternalLink,
|
|
140
|
+
Oo as UluFacetsActiveFilters,
|
|
141
|
+
Jo as UluFacetsFilterAccordions,
|
|
142
|
+
jo as UluFacetsFilterLists,
|
|
143
|
+
Qo as UluFacetsFilterPopovers,
|
|
144
|
+
Yo as UluFacetsFilterSelects,
|
|
145
|
+
_o as UluFacetsHeaderLayout,
|
|
146
|
+
sr as UluFacetsList,
|
|
147
|
+
er as UluFacetsResults,
|
|
148
|
+
rr as UluFacetsSearch,
|
|
149
|
+
ar as UluFacetsSidebarLayout,
|
|
150
|
+
ur as UluFacetsSort,
|
|
151
|
+
ve as UluFileDisplay,
|
|
152
|
+
We as UluForm,
|
|
153
|
+
He as UluFormActions,
|
|
154
|
+
Ve as UluFormCheckbox,
|
|
155
|
+
ze as UluFormFieldset,
|
|
156
|
+
Ce as UluFormFile,
|
|
157
|
+
Ke as UluFormItem,
|
|
158
|
+
Xe as UluFormItemsInline,
|
|
159
|
+
Re as UluFormMessage,
|
|
160
|
+
Ze as UluFormRadio,
|
|
161
|
+
$e as UluFormRequiredChar,
|
|
162
|
+
we as UluFormSelect,
|
|
163
|
+
De as UluFormText,
|
|
164
|
+
oo as UluFormTextarea,
|
|
165
|
+
le as UluIcon,
|
|
166
|
+
fe as UluImage,
|
|
167
|
+
me as UluList,
|
|
168
|
+
de as UluListItem,
|
|
169
|
+
Nr as UluMain,
|
|
170
|
+
io as UluMenu,
|
|
171
|
+
co as UluMenuStack,
|
|
168
172
|
h as UluModal,
|
|
169
|
-
|
|
173
|
+
Fo as UluNavStrip,
|
|
170
174
|
P as UluOverflowPopover,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
175
|
+
Ue as UluOverflowScroller,
|
|
176
|
+
Ao as UluPager,
|
|
177
|
+
yo as UluPlaceholderImage,
|
|
178
|
+
Io as UluPlaceholderText,
|
|
179
|
+
Go as UluProgressBar,
|
|
180
|
+
qo as UluProgressCircle,
|
|
181
|
+
Mo as UluRouteAnnouncer,
|
|
182
|
+
ne as UluRule,
|
|
183
|
+
Bo as UluSanityRichText,
|
|
184
|
+
pr as UluScrollAnchors,
|
|
185
|
+
Fr as UluScrollAnchorsHeadlessSection,
|
|
186
|
+
xr as UluScrollAnchorsNav,
|
|
187
|
+
ir as UluScrollAnchorsNavAnimated,
|
|
188
|
+
cr as UluScrollAnchorsSection,
|
|
189
|
+
Se as UluScrollSlider,
|
|
190
|
+
Ee as UluSearchForm,
|
|
191
|
+
Pe as UluSelectableMenu,
|
|
192
|
+
Ar as UluShowSkeleton,
|
|
193
|
+
br as UluSkeletonContent,
|
|
194
|
+
kr as UluSkeletonMedia,
|
|
195
|
+
Lr as UluSkeletonText,
|
|
196
|
+
Gr as UluSkipLink,
|
|
197
|
+
Te as UluSlider,
|
|
198
|
+
ge as UluSpokeSpinner,
|
|
199
|
+
v as UluTab,
|
|
200
|
+
C as UluTabGroup,
|
|
201
|
+
R as UluTabList,
|
|
202
|
+
w as UluTabPanel,
|
|
199
203
|
D as UluTabPanels,
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
yr as UluTableSticky,
|
|
205
|
+
Ir as UluTableStickyRows,
|
|
206
|
+
Mr as UluTableStickyTable,
|
|
207
|
+
he as UluTag,
|
|
208
|
+
fo as UluTitleRail,
|
|
209
|
+
mo as UluWhenBreakpoint,
|
|
206
210
|
U as breakpointsPlugin,
|
|
207
211
|
t as corePlugin,
|
|
208
212
|
m as modalsPlugin,
|
|
209
213
|
l as popoversPlugin,
|
|
210
214
|
d as toastPlugin,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
215
|
+
ut as useBreakpointManager,
|
|
216
|
+
pt as useDocumentTitle,
|
|
217
|
+
jr as useFacets,
|
|
218
|
+
_r as useIcon,
|
|
219
|
+
et as useModifiers,
|
|
220
|
+
st as usePagination,
|
|
221
|
+
at as useRequiredInject,
|
|
222
|
+
Qr as useScrollAnchorSection,
|
|
223
|
+
Yr as useScrollAnchorSections,
|
|
224
|
+
Jr as useScrollAnchors,
|
|
225
|
+
Br as useTooltip,
|
|
222
226
|
f as useTooltipFollow,
|
|
223
|
-
|
|
224
|
-
|
|
227
|
+
xt as useUluFloating,
|
|
228
|
+
rt as useWindowResize,
|
|
225
229
|
e as utils
|
|
226
230
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<UluCollapsible
|
|
3
|
-
:
|
|
3
|
+
:id="id"
|
|
4
|
+
:model-value="resolvedModelValue"
|
|
4
5
|
:start-open="startOpen"
|
|
5
6
|
:trigger-text="triggerText"
|
|
6
7
|
:classes="mergedClasses"
|
|
7
8
|
:animate="animate"
|
|
8
|
-
@update:model-value="
|
|
9
|
+
@update:model-value="handleUpdateModelValue"
|
|
9
10
|
>
|
|
10
11
|
<template #trigger="{ isOpen }">
|
|
11
12
|
<slot name="trigger" :isOpen="isOpen">
|
|
@@ -30,10 +31,11 @@
|
|
|
30
31
|
</template>
|
|
31
32
|
|
|
32
33
|
<script setup>
|
|
33
|
-
import { computed } from 'vue';
|
|
34
|
+
import { computed, inject, onMounted } from 'vue';
|
|
34
35
|
import UluIcon from "../elements/UluIcon.vue";
|
|
35
36
|
import UluCollapsible from "./UluCollapsible.vue";
|
|
36
37
|
import { useModifiers } from "../../composables/useModifiers.js";
|
|
38
|
+
import { newId } from "../../utils/dom.js";
|
|
37
39
|
|
|
38
40
|
const props = defineProps({
|
|
39
41
|
/**
|
|
@@ -97,4 +99,27 @@
|
|
|
97
99
|
merged.container = [merged.container, resolvedModifiers.value];
|
|
98
100
|
return merged;
|
|
99
101
|
});
|
|
102
|
+
|
|
103
|
+
const accordionGroup = inject('uluAccordionGroup', null);
|
|
104
|
+
const id = newId('ulu-accordion');
|
|
105
|
+
|
|
106
|
+
onMounted(() => {
|
|
107
|
+
if (accordionGroup && props.startOpen) {
|
|
108
|
+
accordionGroup.toggle(id, true);
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
const resolvedModelValue = computed(() => {
|
|
113
|
+
if (accordionGroup) {
|
|
114
|
+
return accordionGroup.activeAccordionId.value === id;
|
|
115
|
+
}
|
|
116
|
+
return props.modelValue;
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
function handleUpdateModelValue(newValue) {
|
|
120
|
+
if (accordionGroup) {
|
|
121
|
+
accordionGroup.toggle(id, newValue);
|
|
122
|
+
}
|
|
123
|
+
emit('update:modelValue', newValue);
|
|
124
|
+
}
|
|
100
125
|
</script>
|