@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,4 +1,4 @@
1
- import { resolveComponent as d, createElementBlock as s, createCommentVNode as o, openBlock as a, normalizeClass as t, createElementVNode as b, Fragment as k, renderList as f, createBlock as y, renderSlot as c, withCtx as p, createTextVNode as u, toDisplayString as i, createVNode as g } from "vue";
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, icon
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(e) {
34
+ setup(a) {
35
35
  return (l, B) => {
36
36
  const m = d("router-link");
37
- return e.items.length ? (a(), s("nav", {
37
+ return a.items.length ? (t(), s("nav", {
38
38
  key: 0,
39
- class: t(e.classes.nav),
39
+ class: r(a.classes.nav),
40
40
  "aria-label": "Breadcrumb"
41
41
  }, [
42
42
  b("ol", {
43
- class: t(e.classes.list)
43
+ class: r(a.classes.list)
44
44
  }, [
45
- (a(!0), s(k, null, f(e.items, (r, n) => (a(), s("li", {
45
+ (t(!0), s(k, null, f(a.items, (e, n) => (t(), s("li", {
46
46
  key: n,
47
- class: t(e.classes.item)
47
+ class: r([a.classes.item, e?.classes?.item])
48
48
  }, [
49
- r.current ? (a(), s("span", {
49
+ e.current ? (t(), s("span", {
50
50
  key: 1,
51
- class: t(r.current)
51
+ class: r([a.classes.current, e?.classes?.current])
52
52
  }, [
53
- c(l.$slots, "default", { item: r }, () => [
54
- u(i(r.title), 1)
53
+ c(l.$slots, "default", { item: e }, () => [
54
+ u(i(e.title), 1)
55
55
  ])
56
- ], 2)) : (a(), y(m, {
56
+ ], 2)) : (t(), y(m, {
57
57
  key: 0,
58
- to: r.to,
59
- class: t(e.classes.link),
60
- "aria-current": r.current ? "page" : null
58
+ to: e.to,
59
+ class: r([a.classes.link, e?.classes?.link]),
60
+ "aria-current": e.current ? "page" : null
61
61
  }, {
62
- default: p(() => [
63
- c(l.$slots, "default", { item: r }, () => [
64
- u(i(r.title), 1)
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 < e.items.length - 1 ? c(l.$slots, "separator", { key: 2 }, () => [
70
- g(h, {
71
- class: t(e.classes.separator),
72
- icon: e.separatorIcon || "type:pathSeparator"
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 y } from "./components/collapsible/UluTab.vue.js";
15
- import { default as L } from "./components/collapsible/UluTabGroup.vue.js";
16
- import { default as M } from "./components/collapsible/UluTabList.vue.js";
17
- import { default as B } from "./components/collapsible/UluTabPanel.vue.js";
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/UluExternalLink.vue.js";
29
- import { default as te } from "./components/elements/UluIcon.vue.js";
30
- import { default as le } from "./components/elements/UluImage.vue.js";
31
- import { default as fe } from "./components/elements/UluList.vue.js";
32
- import { default as me } from "./components/elements/UluOverflowScroller.vue.js";
33
- import { default as de } from "./components/elements/UluRule.vue.js";
34
- import { default as Ue } from "./components/elements/UluScrollSlider.vue.js";
35
- import { default as ne } from "./components/elements/UluSlider.vue.js";
36
- import { default as Se } from "./components/elements/UluSpokeSpinner.vue.js";
37
- import { default as Te } from "./components/elements/UluTag.vue.js";
38
- import { default as ge } from "./components/forms/UluSelectableMenu.vue.js";
39
- import { default as he } from "./components/forms/UluFileDisplay.vue.js";
40
- import { default as Pe } from "./components/forms/UluFormFile.vue.js";
41
- import { default as ye } from "./components/forms/UluFormMessage.vue.js";
42
- import { default as Le } from "./components/forms/UluFormSelect.vue.js";
43
- import { default as Me } from "./components/forms/UluFormText.vue.js";
44
- import { default as Be } from "./components/forms/UluSearchForm.vue.js";
45
- import { default as De } from "./components/forms/UluForm.vue.js";
46
- import { default as Ee } from "./components/forms/UluFormActions.vue.js";
47
- import { default as We } from "./components/forms/UluFormCheckbox.vue.js";
48
- import { default as He } from "./components/forms/UluFormFieldset.vue.js";
49
- import { default as Ve } from "./components/forms/UluFormItem.vue.js";
50
- import { default as ze } from "./components/forms/UluFormItemsInline.vue.js";
51
- import { default as Ke } from "./components/forms/UluFormRadio.vue.js";
52
- import { default as Xe } from "./components/forms/UluFormRequiredChar.vue.js";
53
- import { default as Ze } from "./components/forms/UluFormTextarea.vue.js";
54
- import { default as $e } from "./components/layout/UluAdaptiveLayout.vue.js";
55
- import { default as oo } from "./components/layout/UluDataGrid.vue.js";
56
- import { default as to } from "./components/layout/UluTitleRail.vue.js";
57
- import { default as lo } from "./components/layout/UluWhenBreakpoint.vue.js";
58
- import { default as fo } from "./components/navigation/UluBreadcrumb.vue.js";
59
- import { default as mo } from "./components/navigation/UluMenu.vue.js";
60
- import { default as xo } from "./components/navigation/UluMenuStack.vue.js";
61
- import { default as io } from "./components/navigation/UluNavStrip.vue.js";
62
- import { default as co } from "./components/navigation/UluPager.vue.js";
63
- import { default as Fo } from "./components/utils/UluAction.vue.js";
64
- import { default as Ao } from "./components/utils/UluConditionalText.vue.js";
65
- import { default as bo } from "./components/utils/UluConditionalWrapper.vue.js";
66
- import { default as ko } from "./components/utils/UluPlaceholderImage.vue.js";
67
- import { default as vo } from "./components/utils/UluPlaceholderText.vue.js";
68
- import { default as Co } from "./components/utils/UluRouteAnnouncer.vue.js";
69
- import { default as Ro } from "./components/utils/UluSanityRichText.vue.js";
70
- import { default as wo } from "./components/visualizations/UluAnimateNumber.vue.js";
71
- import { default as Io } from "./components/visualizations/UluProgressBar.vue.js";
72
- import { default as No } from "./components/visualizations/UluProgressCircle.vue.js";
73
- import { default as Go } from "./components/systems/facets/UluFacetsActiveFilters.vue.js";
74
- import { default as qo } from "./components/systems/facets/UluFacetsFilterLists.vue.js";
75
- import { default as Oo } from "./components/systems/facets/UluFacetsFilterAccordions.vue.js";
76
- import { default as jo } from "./components/systems/facets/UluFacetsFilterPopovers.vue.js";
77
- import { default as Jo } from "./components/systems/facets/UluFacetsFilterSelects.vue.js";
78
- import { default as Qo } from "./components/systems/facets/UluFacetsHeaderLayout.vue.js";
79
- import { default as Yo } from "./components/systems/facets/UluFacetsResults.vue.js";
80
- import { default as _o } from "./components/systems/facets/UluFacetsSearch.vue.js";
81
- import { default as er } from "./components/systems/facets/UluFacetsSidebarLayout.vue.js";
82
- import { default as rr } from "./components/systems/facets/UluFacetsSort.vue.js";
83
- import { default as ar } from "./components/systems/facets/UluFacetsList.vue.js";
84
- import { default as ur } from "./components/systems/scroll-anchors/UluScrollAnchors.vue.js";
85
- import { default as sr } from "./components/systems/scroll-anchors/UluScrollAnchorsNav.vue.js";
86
- import { default as pr } from "./components/systems/scroll-anchors/UluScrollAnchorsNavAnimated.vue.js";
87
- import { default as xr } from "./components/systems/scroll-anchors/UluScrollAnchorsSection.vue.js";
88
- import { default as ir } from "./components/systems/scroll-anchors/UluScrollAnchorsHeadlessSection.vue.js";
89
- import { default as cr } from "./components/systems/skeleton/UluShowSkeleton.vue.js";
90
- import { default as Fr } from "./components/systems/skeleton/UluSkeletonContent.vue.js";
91
- import { default as Ar } from "./components/systems/skeleton/UluSkeletonMedia.vue.js";
92
- import { default as br } from "./components/systems/skeleton/UluSkeletonText.vue.js";
93
- import { default as kr } from "./components/systems/table-sticky/UluTableSticky.vue.js";
94
- import { default as vr } from "./components/systems/table-sticky/UluTableStickyRows.vue.js";
95
- import { default as Cr } from "./components/systems/table-sticky/UluTableStickyTable.vue.js";
96
- import { useTooltip as Rr } from "./plugins/popovers/useTooltip.js";
97
- import { default as wr } from "./components/elements/UluMain.vue.js";
98
- import { default as Ir } from "./components/navigation/UluSkipLink.vue.js";
99
- import { default as Nr } from "./components/utils/UluEmpty.vue.js";
100
- import { default as Gr } from "./components/utils/UluEmptyView.vue.js";
101
- import { useFacets as qr } from "./components/systems/facets/useFacets.js";
102
- import { useScrollAnchors as Or } from "./components/systems/scroll-anchors/useScrollAnchors.js";
103
- import { useScrollAnchorSection as jr } from "./components/systems/scroll-anchors/useScrollAnchorSection.js";
104
- import { useScrollAnchorSections as Jr } from "./components/systems/scroll-anchors/useScrollAnchorSections.js";
105
- import { useIcon as Qr } from "./composables/useIcon.js";
106
- import { useModifiers as Yr } from "./composables/useModifiers.js";
107
- import { useWindowResize as _r } from "./composables/useWindowResize.js";
108
- import { useRequiredInject as et } from "./composables/useRequiredInject.js";
109
- import { useBreakpointManager as rt } from "./composables/useBreakpointManager.js";
110
- import { usePagination as at } from "./composables/usePagination.js";
111
- import { useDocumentTitle as ut } from "./composables/useDocumentTitle.js";
112
- import { useUluFloating as st } from "./composables/useUluFloating.js";
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
- Fo as UluAction,
117
- $e as UluAdaptiveLayout,
118
+ bo as UluAction,
119
+ to as UluAdaptiveLayout,
118
120
  E as UluAlert,
119
- wo as UluAnimateNumber,
121
+ No as UluAnimateNumber,
120
122
  W as UluBadge,
121
123
  H as UluBadgeStack,
122
- fo as UluBreadcrumb,
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
- Ao as UluConditionalText,
130
- bo as UluConditionalWrapper,
131
- oo as UluDataGrid,
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
- Nr as UluEmpty,
135
- Gr as UluEmptyView,
136
- oe as UluExternalLink,
137
- Go as UluFacetsActiveFilters,
138
- Oo as UluFacetsFilterAccordions,
139
- qo as UluFacetsFilterLists,
140
- jo as UluFacetsFilterPopovers,
141
- Jo as UluFacetsFilterSelects,
142
- Qo as UluFacetsHeaderLayout,
143
- ar as UluFacetsList,
144
- Yo as UluFacetsResults,
145
- _o as UluFacetsSearch,
146
- er as UluFacetsSidebarLayout,
147
- rr as UluFacetsSort,
148
- he as UluFileDisplay,
149
- De as UluForm,
150
- Ee as UluFormActions,
151
- We as UluFormCheckbox,
152
- He as UluFormFieldset,
153
- Pe as UluFormFile,
154
- Ve as UluFormItem,
155
- ze as UluFormItemsInline,
156
- ye as UluFormMessage,
157
- Ke as UluFormRadio,
158
- Xe as UluFormRequiredChar,
159
- Le as UluFormSelect,
160
- Me as UluFormText,
161
- Ze as UluFormTextarea,
162
- te as UluIcon,
163
- le as UluImage,
164
- fe as UluList,
165
- wr as UluMain,
166
- mo as UluMenu,
167
- xo as UluMenuStack,
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
- io as UluNavStrip,
173
+ Fo as UluNavStrip,
170
174
  P as UluOverflowPopover,
171
- me as UluOverflowScroller,
172
- co as UluPager,
173
- ko as UluPlaceholderImage,
174
- vo as UluPlaceholderText,
175
- Io as UluProgressBar,
176
- No as UluProgressCircle,
177
- Co as UluRouteAnnouncer,
178
- de as UluRule,
179
- Ro as UluSanityRichText,
180
- ur as UluScrollAnchors,
181
- ir as UluScrollAnchorsHeadlessSection,
182
- sr as UluScrollAnchorsNav,
183
- pr as UluScrollAnchorsNavAnimated,
184
- xr as UluScrollAnchorsSection,
185
- Ue as UluScrollSlider,
186
- Be as UluSearchForm,
187
- ge as UluSelectableMenu,
188
- cr as UluShowSkeleton,
189
- Fr as UluSkeletonContent,
190
- Ar as UluSkeletonMedia,
191
- br as UluSkeletonText,
192
- Ir as UluSkipLink,
193
- ne as UluSlider,
194
- Se as UluSpokeSpinner,
195
- y as UluTab,
196
- L as UluTabGroup,
197
- M as UluTabList,
198
- B as UluTabPanel,
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
- kr as UluTableSticky,
201
- vr as UluTableStickyRows,
202
- Cr as UluTableStickyTable,
203
- Te as UluTag,
204
- to as UluTitleRail,
205
- lo as UluWhenBreakpoint,
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
- rt as useBreakpointManager,
212
- ut as useDocumentTitle,
213
- qr as useFacets,
214
- Qr as useIcon,
215
- Yr as useModifiers,
216
- at as usePagination,
217
- et as useRequiredInject,
218
- jr as useScrollAnchorSection,
219
- Jr as useScrollAnchorSections,
220
- Or as useScrollAnchors,
221
- Rr as useTooltip,
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
- st as useUluFloating,
224
- _r as useWindowResize,
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
- :model-value="modelValue"
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="$emit('update:modelValue', $event)"
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>