@ulu/frontend-vue 0.2.0-beta.8 → 0.3.0

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 (174) hide show
  1. package/dist/components/collapsible/UluAccordionGroup.vue.d.ts +2 -2
  2. package/dist/components/collapsible/UluAccordionGroup.vue.d.ts.map +1 -1
  3. package/dist/components/collapsible/UluAccordionGroup.vue.js +22 -19
  4. package/dist/components/collapsible/UluDropdown.vue.d.ts +1 -1
  5. package/dist/components/collapsible/UluDropdown.vue.d.ts.map +1 -1
  6. package/dist/components/collapsible/UluDropdown.vue.js +22 -15
  7. package/dist/components/collapsible/UluModal.vue.d.ts +43 -248
  8. package/dist/components/collapsible/UluModal.vue.d.ts.map +1 -1
  9. package/dist/components/collapsible/UluModal.vue.js +139 -191
  10. package/dist/components/collapsible/UluTabGroup.vue.d.ts +2 -0
  11. package/dist/components/collapsible/UluTabGroup.vue.d.ts.map +1 -1
  12. package/dist/components/collapsible/UluTabGroup.vue.js +23 -14
  13. package/dist/components/elements/UluAlert.vue.d.ts +29 -144
  14. package/dist/components/elements/UluAlert.vue.d.ts.map +1 -1
  15. package/dist/components/elements/UluAlert.vue.js +39 -50
  16. package/dist/components/elements/UluBadge.vue.d.ts +6 -6
  17. package/dist/components/elements/UluBadgeStack.vue.d.ts +1 -1
  18. package/dist/components/elements/UluBadgeStack.vue.d.ts.map +1 -1
  19. package/dist/components/elements/UluBadgeStack.vue.js +12 -9
  20. package/dist/components/elements/UluButton.vue.d.ts +47 -177
  21. package/dist/components/elements/UluButton.vue.d.ts.map +1 -1
  22. package/dist/components/elements/UluButton.vue.js +59 -72
  23. package/dist/components/elements/UluButtonVerbose.vue.d.ts +38 -123
  24. package/dist/components/elements/UluButtonVerbose.vue.d.ts.map +1 -1
  25. package/dist/components/elements/UluButtonVerbose.vue.js +52 -65
  26. package/dist/components/elements/UluCallout.vue.d.ts +20 -25
  27. package/dist/components/elements/UluCallout.vue.d.ts.map +1 -1
  28. package/dist/components/elements/UluCallout.vue.js +11 -16
  29. package/dist/components/elements/UluCaptionedFigure.vue.d.ts +25 -0
  30. package/dist/components/elements/UluCaptionedFigure.vue.d.ts.map +1 -0
  31. package/dist/components/elements/UluCaptionedFigure.vue.js +48 -0
  32. package/dist/components/elements/UluCard.vue.d.ts +2 -2
  33. package/dist/components/elements/UluDefinitionList.vue.d.ts +4 -2
  34. package/dist/components/elements/UluDefinitionList.vue.d.ts.map +1 -1
  35. package/dist/components/elements/UluDefinitionList.vue.js +32 -28
  36. package/dist/components/elements/UluExternalLink.vue.d.ts +2 -2
  37. package/dist/components/elements/UluImage.vue.d.ts +14 -0
  38. package/dist/components/elements/UluImage.vue.d.ts.map +1 -0
  39. package/dist/components/elements/UluImage.vue.js +53 -0
  40. package/dist/components/elements/UluList.vue.d.ts.map +1 -1
  41. package/dist/components/elements/UluList.vue.js +14 -13
  42. package/dist/components/elements/UluOverflowScroller.vue.d.ts +49 -0
  43. package/dist/components/elements/UluOverflowScroller.vue.d.ts.map +1 -0
  44. package/dist/components/elements/UluOverflowScroller.vue.js +138 -0
  45. package/dist/components/elements/UluScrollSlider.vue.d.ts +38 -0
  46. package/dist/components/elements/UluScrollSlider.vue.d.ts.map +1 -0
  47. package/dist/components/elements/UluScrollSlider.vue.js +146 -0
  48. package/dist/components/elements/UluSlider.vue.d.ts +57 -0
  49. package/dist/components/elements/UluSlider.vue.d.ts.map +1 -0
  50. package/dist/components/elements/UluSlider.vue.js +277 -0
  51. package/dist/components/forms/UluFormFile.vue.d.ts +2 -2
  52. package/dist/components/forms/UluFormRadio.vue.d.ts +4 -4
  53. package/dist/components/index.d.ts +6 -0
  54. package/dist/components/layout/UluTitleRail.vue.d.ts +29 -87
  55. package/dist/components/layout/UluTitleRail.vue.d.ts.map +1 -1
  56. package/dist/components/layout/UluTitleRail.vue.js +51 -46
  57. package/dist/components/navigation/UluBreadcrumb.vue.d.ts +27 -68
  58. package/dist/components/navigation/UluBreadcrumb.vue.d.ts.map +1 -1
  59. package/dist/components/navigation/UluBreadcrumb.vue.js +51 -54
  60. package/dist/components/navigation/UluMenu.vue.d.ts +30 -138
  61. package/dist/components/navigation/UluMenu.vue.d.ts.map +1 -1
  62. package/dist/components/navigation/UluMenu.vue.js +85 -84
  63. package/dist/components/navigation/UluMenuStack.vue.d.ts +12 -2
  64. package/dist/components/navigation/UluMenuStack.vue.d.ts.map +1 -1
  65. package/dist/components/navigation/UluMenuStack.vue.js +26 -18
  66. package/dist/components/navigation/UluNavStrip.vue.d.ts +22 -134
  67. package/dist/components/navigation/UluNavStrip.vue.d.ts.map +1 -1
  68. package/dist/components/navigation/UluNavStrip.vue.js +43 -31
  69. package/dist/components/systems/facets/UluFacetsSidebarLayout.vue.js +10 -10
  70. package/dist/components/systems/facets/useFacets.d.ts +3 -0
  71. package/dist/components/systems/facets/useFacets.d.ts.map +1 -1
  72. package/dist/components/systems/facets/useFacets.js +124 -112
  73. package/dist/components/systems/index.d.ts +0 -3
  74. package/dist/components/systems/scroll-anchors/UluScrollAnchors.vue.d.ts +2 -2
  75. package/dist/components/systems/table-sticky/UluTableSticky.vue.d.ts +504 -432
  76. package/dist/components/systems/table-sticky/UluTableSticky.vue.d.ts.map +1 -1
  77. package/dist/components/systems/table-sticky/UluTableSticky.vue.js +313 -456
  78. package/dist/components/systems/table-sticky/UluTableStickyRows.vue.d.ts +40 -31
  79. package/dist/components/systems/table-sticky/UluTableStickyRows.vue.d.ts.map +1 -1
  80. package/dist/components/systems/table-sticky/UluTableStickyRows.vue.js +43 -45
  81. package/dist/components/systems/table-sticky/UluTableStickyTable.vue.d.ts +60 -146
  82. package/dist/components/systems/table-sticky/UluTableStickyTable.vue.d.ts.map +1 -1
  83. package/dist/components/systems/table-sticky/UluTableStickyTable.vue.js +156 -175
  84. package/dist/components/utils/UluAction.vue.d.ts +36 -0
  85. package/dist/components/utils/UluAction.vue.d.ts.map +1 -0
  86. package/dist/components/utils/UluAction.vue.js +59 -0
  87. package/dist/components/utils/UluConditionalText.vue.d.ts +7 -26
  88. package/dist/components/utils/UluConditionalText.vue.d.ts.map +1 -1
  89. package/dist/components/utils/UluConditionalText.vue.js +12 -14
  90. package/dist/components/utils/UluConditionalWrapper.vue.d.ts.map +1 -1
  91. package/dist/components/utils/UluConditionalWrapper.vue.js +11 -9
  92. package/dist/components/utils/UluPlaceholderImage.vue.d.ts +12 -57
  93. package/dist/components/utils/UluPlaceholderImage.vue.d.ts.map +1 -1
  94. package/dist/components/utils/UluPlaceholderImage.vue.js +18 -26
  95. package/dist/components/utils/UluPlaceholderText.vue.d.ts +6 -20
  96. package/dist/components/utils/UluPlaceholderText.vue.js +12 -14
  97. package/dist/components/utils/UluRouteAnnouncer.vue.d.ts +9 -58
  98. package/dist/components/utils/UluRouteAnnouncer.vue.d.ts.map +1 -1
  99. package/dist/components/utils/UluRouteAnnouncer.vue.js +28 -28
  100. package/dist/components/visualizations/UluAnimateNumber.vue.d.ts +20 -14
  101. package/dist/components/visualizations/UluAnimateNumber.vue.d.ts.map +1 -1
  102. package/dist/components/visualizations/UluAnimateNumber.vue.js +18 -26
  103. package/dist/components/visualizations/UluProgressCircle.vue.d.ts +2 -2
  104. package/dist/composables/useModifiers.d.ts +20 -25
  105. package/dist/composables/useModifiers.d.ts.map +1 -1
  106. package/dist/index.js +206 -200
  107. package/dist/plugins/modals/UluModalsDisplay.vue.d.ts +3 -12
  108. package/dist/plugins/modals/UluModalsDisplay.vue.js +24 -45
  109. package/dist/plugins/modals/index.js +6 -6
  110. package/dist/plugins/toast/UluToast.vue.d.ts +24 -49
  111. package/dist/plugins/toast/UluToast.vue.d.ts.map +1 -1
  112. package/dist/plugins/toast/UluToast.vue.js +68 -77
  113. package/dist/plugins/toast/UluToastDisplay.vue.d.ts +1 -9
  114. package/dist/plugins/toast/UluToastDisplay.vue.js +27 -35
  115. package/dist/plugins/toast/defaults.d.ts +40 -35
  116. package/dist/plugins/toast/defaults.js +2 -2
  117. package/dist/plugins/toast/index.js +4 -4
  118. package/dist/plugins/toast/store.d.ts +40 -35
  119. package/dist/plugins/toast/store.d.ts.map +1 -1
  120. package/dist/utils/props.d.ts +7 -0
  121. package/dist/utils/props.d.ts.map +1 -0
  122. package/dist/utils/props.js +6 -0
  123. package/lib/components/collapsible/UluAccordionGroup.vue +4 -1
  124. package/lib/components/collapsible/UluDropdown.vue +5 -1
  125. package/lib/components/collapsible/UluModal.vue +278 -298
  126. package/lib/components/collapsible/UluTabGroup.vue +21 -6
  127. package/lib/components/elements/UluAlert.vue +38 -51
  128. package/lib/components/elements/UluBadgeStack.vue +4 -1
  129. package/lib/components/elements/UluButton.vue +105 -129
  130. package/lib/components/elements/UluButtonVerbose.vue +67 -89
  131. package/lib/components/elements/UluCallout.vue +15 -19
  132. package/lib/components/elements/UluCaptionedFigure.vue +40 -0
  133. package/lib/components/elements/UluDefinitionList.vue +27 -6
  134. package/lib/components/elements/UluImage.vue +56 -0
  135. package/lib/components/elements/UluList.vue +1 -0
  136. package/lib/components/elements/UluOverflowScroller.vue +140 -0
  137. package/lib/components/elements/UluScrollSlider.vue +150 -0
  138. package/lib/components/elements/UluSlider.vue +488 -0
  139. package/lib/components/index.js +10 -0
  140. package/lib/components/layout/UluTitleRail.vue +55 -48
  141. package/lib/components/navigation/UluBreadcrumb.vue +29 -34
  142. package/lib/components/navigation/UluMenu.vue +60 -71
  143. package/lib/components/navigation/UluMenuStack.vue +6 -1
  144. package/lib/components/navigation/UluNavStrip.vue +43 -31
  145. package/lib/components/systems/facets/useFacets.js +33 -17
  146. package/lib/components/systems/index.js +0 -4
  147. package/lib/components/systems/table-sticky/UluTableSticky.vue +602 -576
  148. package/lib/components/systems/table-sticky/UluTableStickyRows.vue +16 -27
  149. package/lib/components/systems/table-sticky/UluTableStickyTable.vue +95 -96
  150. package/lib/components/utils/UluAction.vue +81 -0
  151. package/lib/components/utils/UluConditionalText.vue +13 -16
  152. package/lib/components/utils/UluConditionalWrapper.vue +5 -1
  153. package/lib/components/utils/UluPlaceholderImage.vue +44 -46
  154. package/lib/components/utils/UluPlaceholderText.vue +10 -13
  155. package/lib/components/utils/UluRouteAnnouncer.vue +59 -47
  156. package/lib/components/visualizations/UluAnimateNumber.vue +23 -30
  157. package/lib/composables/useModifiers.js +21 -26
  158. package/lib/plugins/modals/UluModalsDisplay.vue +44 -45
  159. package/lib/plugins/toast/UluToast.vue +28 -34
  160. package/lib/plugins/toast/UluToastDisplay.vue +9 -15
  161. package/lib/utils/props.js +8 -0
  162. package/package.json +9 -5
  163. package/dist/components/systems/slider/UluImageSlideShow.vue.d.ts +0 -130
  164. package/dist/components/systems/slider/UluImageSlideShow.vue.d.ts.map +0 -1
  165. package/dist/components/systems/slider/UluImageSlideShow.vue.js +0 -73
  166. package/dist/components/systems/slider/UluSlideShow.vue.d.ts +0 -205
  167. package/dist/components/systems/slider/UluSlideShow.vue.d.ts.map +0 -1
  168. package/dist/components/systems/slider/UluSlideShow.vue.js +0 -292
  169. package/dist/components/systems/slider/UluSlideShowSlide.vue.d.ts +0 -17
  170. package/dist/components/systems/slider/UluSlideShowSlide.vue.d.ts.map +0 -1
  171. package/dist/components/systems/slider/UluSlideShowSlide.vue.js +0 -26
  172. package/lib/components/systems/slider/UluImageSlideShow.vue +0 -75
  173. package/lib/components/systems/slider/UluSlideShow.vue +0 -336
  174. package/lib/components/systems/slider/UluSlideShowSlide.vue +0 -25
@@ -1,52 +1,27 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- /**
3
- * Toast configuration
4
- */
5
- toast: ObjectConstructor;
6
- /**
7
- * Icons for each element { icon, header, content, date, actions, action, closeButton, title, body, closeButton }
8
- */
9
- classes: {
10
- type: ObjectConstructor;
11
- default: () => {
12
- content: string;
13
- date: string;
14
- actions: string;
15
- action: string;
16
- closeButton: string;
17
- };
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>;
8
+ toast?: Record<string, any> | undefined;
9
+ $props: {
10
+ readonly classes?: Record<string, any> | undefined;
11
+ readonly toast?: Record<string, any> | undefined;
18
12
  };
19
- }>, {}, {}, {}, {
20
- handleAction(event: any, action: any): void;
21
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
22
- /**
23
- * Toast configuration
24
- */
25
- toast: ObjectConstructor;
26
- /**
27
- * Icons for each element { icon, header, content, date, actions, action, closeButton, title, body, closeButton }
28
- */
29
- classes: {
30
- type: ObjectConstructor;
31
- default: () => {
32
- content: string;
33
- date: string;
34
- actions: string;
35
- action: string;
36
- closeButton: string;
37
- };
13
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
14
+ type __VLS_TemplateResult = {
15
+ attrs: Partial<{}>;
16
+ slots: {
17
+ icon?(_: {
18
+ toast: Record<string, any> | undefined;
19
+ }): any;
20
+ content?(_: {
21
+ toast: Record<string, any> | undefined;
22
+ }): any;
38
23
  };
39
- }>> & Readonly<{}>, {
40
- classes: Record<string, any>;
41
- }, {}, {
42
- UluIcon: import('vue').DefineComponent<{}, {
43
- spaced: boolean;
44
- icon?: string | boolean | Record<string, any> | unknown[] | undefined;
45
- $props: {
46
- readonly spaced?: boolean | undefined;
47
- readonly icon?: string | boolean | Record<string, any> | unknown[] | undefined;
48
- };
49
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
50
- }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
51
- export default _default;
24
+ refs: {};
25
+ rootEl: HTMLDivElement;
26
+ };
52
27
  //# sourceMappingURL=UluToast.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UluToast.vue.d.ts","sourceRoot":"","sources":["../../../lib/plugins/toast/UluToast.vue"],"names":[],"mappings":"AAiDA;;IA+FM;;OAEG;;IAEH;;OAEG;;;;;;;;;;;;;;IANH;;OAEG;;IAEH;;OAEG"}
1
+ {"version":3,"file":"UluToast.vue.d.ts","sourceRoot":"","sources":["../../../lib/plugins/toast/UluToast.vue"],"names":[],"mappings":"AAiDA;wBA6PqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAXjC;;;;;;;sPAQG"}
@@ -1,11 +1,7 @@
1
- import k from "../../components/elements/UluIcon.vue.js";
2
- import { resolveComponent as b, createElementBlock as o, openBlock as e, normalizeClass as s, createCommentVNode as a, createElementVNode as d, renderSlot as _, createBlock as f, toDisplayString as i, Fragment as h, renderList as v, createVNode as C } from "vue";
3
- import B from "../../_virtual/_plugin-vue_export-helper.js";
4
- const U = {
5
- name: "UluToast",
6
- components: {
7
- UluIcon: k
8
- },
1
+ import { createElementBlock as a, openBlock as e, normalizeClass as s, createCommentVNode as o, createElementVNode as u, renderSlot as m, createBlock as f, toDisplayString as i, Fragment as v, renderList as B, createVNode as C, nextTick as g } from "vue";
2
+ import r from "../../components/elements/UluIcon.vue.js";
3
+ const h = ["onClick"], V = {
4
+ __name: "UluToast",
9
5
  props: {
10
6
  /**
11
7
  * Toast configuration
@@ -25,77 +21,72 @@ const U = {
25
21
  })
26
22
  }
27
23
  },
28
- methods: {
29
- handleAction(n, c) {
30
- const { toast: t } = this;
31
- this.toast.close(), this.$nextTick(() => {
32
- c(n, t, c);
24
+ setup(t) {
25
+ const d = t, y = (n, c) => {
26
+ d.toast.close(), g(() => {
27
+ c(n, d.toast, c);
33
28
  });
34
- }
35
- }
36
- }, g = ["onClick"];
37
- function x(n, c, t, I, N, m) {
38
- const u = b("UluIcon");
39
- return e(), o("div", {
40
- class: s(["toast", [
41
- {
42
- "toast--persistent": !t.toast.duration
43
- },
44
- t.toast?.class
45
- ]])
46
- }, [
47
- t.toast.icon || n.$slots.icon ? (e(), o("div", {
48
- key: 0,
49
- class: s(["toast__icon", t.classes.icon])
29
+ };
30
+ return (n, c) => (e(), a("div", {
31
+ class: s(["toast", [
32
+ {
33
+ "toast--persistent": !t.toast.duration
34
+ },
35
+ t.toast?.class
36
+ ]])
50
37
  }, [
51
- _(n.$slots, "icon", { toast: t.toast }, () => [
52
- t.toast.icon ? (e(), f(u, {
53
- key: 0,
54
- icon: t.toast.icon
55
- }, null, 8, ["icon"])) : a("", !0)
56
- ])
57
- ], 2)) : a("", !0),
58
- d("div", {
59
- class: s(["toast__content", t.classes.content])
60
- }, [
61
- _(n.$slots, "content", { toast: t.toast }, () => [
62
- t.toast.title ? (e(), o("div", {
63
- key: 0,
64
- class: s(["toast__header", t.classes.header])
65
- }, [
66
- d("strong", {
67
- class: s(["toast__title", t.classes.title])
68
- }, i(t.toast.title), 3),
69
- t.toast.date ? (e(), o("span", {
38
+ t.toast.icon || n.$slots.icon ? (e(), a("div", {
39
+ key: 0,
40
+ class: s(["toast__icon", t.classes.icon])
41
+ }, [
42
+ m(n.$slots, "icon", { toast: t.toast }, () => [
43
+ t.toast.icon ? (e(), f(r, {
70
44
  key: 0,
71
- class: s(["toast__date", t.classes.date])
72
- }, i(t.toast.date), 3)) : a("", !0)
73
- ], 2)) : a("", !0),
74
- t.toast.description ? (e(), o("div", {
75
- key: 1,
76
- class: s(["toast__body", t.classes.body])
77
- }, i(t.toast.description), 3)) : a("", !0)
78
- ])
79
- ], 2),
80
- t.toast.actions?.length ? (e(), o("div", {
81
- key: 1,
82
- class: s(["toast__actions", t.classes.actions])
83
- }, [
84
- (e(!0), o(h, null, v(t.toast.actions, (l, r) => (e(), o("button", {
85
- key: r,
86
- class: s(["toast__action", t.classes.action]),
87
- onClick: (y) => m.handleAction(y, l)
88
- }, i(l.label), 11, g))), 128))
89
- ], 2)) : a("", !0),
90
- d("button", {
91
- class: s(["toast__close", t.classes.closeButton]),
92
- onClick: c[0] || (c[0] = (...l) => t.toast.close && t.toast.close(...l))
93
- }, [
94
- C(u, { icon: "type:close" })
95
- ], 2)
96
- ], 2);
97
- }
98
- const A = /* @__PURE__ */ B(U, [["render", x]]);
45
+ icon: t.toast.icon
46
+ }, null, 8, ["icon"])) : o("", !0)
47
+ ])
48
+ ], 2)) : o("", !0),
49
+ u("div", {
50
+ class: s(["toast__content", t.classes.content])
51
+ }, [
52
+ m(n.$slots, "content", { toast: t.toast }, () => [
53
+ t.toast.title ? (e(), a("div", {
54
+ key: 0,
55
+ class: s(["toast__header", t.classes.header])
56
+ }, [
57
+ u("strong", {
58
+ class: s(["toast__title", t.classes.title])
59
+ }, i(t.toast.title), 3),
60
+ t.toast.date ? (e(), a("span", {
61
+ key: 0,
62
+ class: s(["toast__date", t.classes.date])
63
+ }, i(t.toast.date), 3)) : o("", !0)
64
+ ], 2)) : o("", !0),
65
+ t.toast.description ? (e(), a("div", {
66
+ key: 1,
67
+ class: s(["toast__body", t.classes.body])
68
+ }, i(t.toast.description), 3)) : o("", !0)
69
+ ])
70
+ ], 2),
71
+ t.toast.actions?.length ? (e(), a("div", {
72
+ key: 1,
73
+ class: s(["toast__actions", t.classes.actions])
74
+ }, [
75
+ (e(!0), a(v, null, B(t.toast.actions, (l, k) => (e(), a("button", {
76
+ key: k,
77
+ class: s(["toast__action", t.classes.action]),
78
+ onClick: (b) => y(b, l)
79
+ }, i(l.label), 11, h))), 128))
80
+ ], 2)) : o("", !0),
81
+ u("button", {
82
+ class: s(["toast__close", t.classes.closeButton]),
83
+ onClick: c[0] || (c[0] = (...l) => t.toast.close && t.toast.close(...l))
84
+ }, [
85
+ C(r, { icon: "type:close" })
86
+ ], 2)
87
+ ], 2));
88
+ }
89
+ };
99
90
  export {
100
- A as default
91
+ V as default
101
92
  };
@@ -1,11 +1,3 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {
2
- toasts: never[];
3
- pluginOptions: {
4
- teleportTo: string;
5
- position: string[];
6
- };
7
- }, {
8
- classes(): string[];
9
- }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
10
2
  export default _default;
11
3
  //# sourceMappingURL=UluToastDisplay.vue.d.ts.map
@@ -1,40 +1,32 @@
1
- import { store as l } from "./store.js";
2
- import { createBlock as a, openBlock as e, Teleport as p, createVNode as c, TransitionGroup as m, normalizeClass as u, withCtx as d, createElementBlock as f, Fragment as _, renderList as g, resolveDynamicComponent as C } from "vue";
1
+ import { computed as i, createBlock as a, openBlock as e, Teleport as p, unref as s, createVNode as m, TransitionGroup as u, normalizeClass as _, withCtx as d, createElementBlock as f, Fragment as k, renderList as T, resolveDynamicComponent as g } from "vue";
2
+ import { store as v } from "./store.js";
3
3
  /* empty css */
4
- import T from "../../_virtual/_plugin-vue_export-helper.js";
5
- const k = {
6
- name: "UluTooltipDisplay",
7
- data() {
8
- const { toasts: t, pluginOptions: o } = l;
9
- return { toasts: t, pluginOptions: o };
10
- },
11
- computed: {
12
- classes() {
13
- const { position: t } = this.pluginOptions;
14
- return t.map((n) => `toast-container--${n}`);
15
- }
4
+ const h = {
5
+ __name: "UluToastDisplay",
6
+ setup(x) {
7
+ const { toasts: c, pluginOptions: o } = v, l = i(() => {
8
+ const { position: n } = o;
9
+ return n.map((r) => `toast-container--${r}`);
10
+ });
11
+ return (n, r) => (e(), a(p, {
12
+ to: s(o).teleportTo
13
+ }, [
14
+ m(u, {
15
+ class: _(["toast-container", l.value]),
16
+ name: "toast-animation",
17
+ tag: "div"
18
+ }, {
19
+ default: d(() => [
20
+ (e(!0), f(k, null, T(s(c), (t) => (e(), a(g(t.component), {
21
+ key: t.uid,
22
+ toast: t
23
+ }, null, 8, ["toast"]))), 128))
24
+ ]),
25
+ _: 1
26
+ }, 8, ["class"])
27
+ ], 8, ["to"]));
16
28
  }
17
29
  };
18
- function x(t, o, n, y, r, i) {
19
- return e(), a(p, {
20
- to: r.pluginOptions.teleportTo
21
- }, [
22
- c(m, {
23
- class: u(["toast-container", i.classes]),
24
- name: "toast-animation",
25
- tag: "div"
26
- }, {
27
- default: d(() => [
28
- (e(!0), f(_, null, g(r.toasts, (s) => (e(), a(C(s.component), {
29
- key: s.uid,
30
- toast: s
31
- }, null, 8, ["toast"]))), 128))
32
- ]),
33
- _: 1
34
- }, 8, ["class"])
35
- ], 8, ["to"]);
36
- }
37
- const v = /* @__PURE__ */ T(k, [["render", x]]);
38
30
  export {
39
- v as default
31
+ h as default
40
32
  };
@@ -1,43 +1,48 @@
1
1
  declare namespace _default {
2
2
  namespace toastOptions {
3
- let component: import("vue").Raw<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
- toast: ObjectConstructor;
5
- classes: {
6
- type: ObjectConstructor;
7
- default: () => {
8
- content: string;
9
- date: string;
10
- actions: string;
11
- action: string;
12
- closeButton: string;
13
- };
14
- };
15
- }>, {}, {}, {}, {
16
- handleAction(event: any, action: any): void;
17
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
- toast: ObjectConstructor;
19
- classes: {
20
- type: ObjectConstructor;
21
- default: () => {
22
- content: string;
23
- date: string;
24
- actions: string;
25
- action: string;
26
- closeButton: string;
3
+ let component: import("vue").Raw<{
4
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
5
+ classes: Record<string, any>;
6
+ toast?: Record<string, any> | undefined;
7
+ $props: {
8
+ readonly classes?: Record<string, any> | undefined;
9
+ readonly toast?: Record<string, any> | undefined;
27
10
  };
28
- };
29
- }>> & Readonly<{}>, {
30
- classes: Record<string, any>;
31
- }, {}, {
32
- UluIcon: import("vue").DefineComponent<{}, {
33
- spaced: boolean;
34
- icon?: string | boolean | Record<string, any> | unknown[] | undefined;
11
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, HTMLDivElement, import("vue").ComponentProvideOptions, {
12
+ P: {};
13
+ B: {};
14
+ D: {};
15
+ C: {};
16
+ M: {};
17
+ Defaults: {};
18
+ }, Readonly<{}> & Readonly<{}>, {
19
+ classes: Record<string, any>;
20
+ toast?: Record<string, any> | undefined;
35
21
  $props: {
36
- readonly spaced?: boolean | undefined;
37
- readonly icon?: string | boolean | Record<string, any> | unknown[] | undefined;
22
+ readonly classes?: Record<string, any> | undefined;
23
+ readonly toast?: Record<string, any> | undefined;
38
24
  };
39
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
40
- }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
25
+ }, {}, {}, {}, {}>;
26
+ __isFragment?: never;
27
+ __isTeleport?: never;
28
+ __isSuspense?: never;
29
+ } & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {
30
+ classes: Record<string, any>;
31
+ toast?: Record<string, any> | undefined;
32
+ $props: {
33
+ readonly classes?: Record<string, any> | undefined;
34
+ readonly toast?: Record<string, any> | undefined;
35
+ };
36
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
37
+ $slots: {
38
+ icon?(_: {
39
+ toast: Record<string, any> | undefined;
40
+ }): any;
41
+ content?(_: {
42
+ toast: Record<string, any> | undefined;
43
+ }): any;
44
+ };
45
+ })>;
41
46
  let duration: number;
42
47
  let actions: never[];
43
48
  }
@@ -1,6 +1,6 @@
1
1
  import { markRaw as o } from "vue";
2
2
  import t from "./UluToast.vue.js";
3
- const a = {
3
+ const p = {
4
4
  toastOptions: {
5
5
  /**
6
6
  * Component used to render the toast in the display
@@ -25,5 +25,5 @@ const a = {
25
25
  }
26
26
  };
27
27
  export {
28
- a as default
28
+ p as default
29
29
  };
@@ -1,8 +1,8 @@
1
- import { store as s, api as l } from "./store.js";
2
- import i from "./UluToast.vue.js";
3
- import a from "./UluToastDisplay.vue.js";
1
+ import { store as i, api as s } from "./store.js";
2
+ import n from "./UluToast.vue.js";
3
+ import l from "./UluToastDisplay.vue.js";
4
4
  function e(o, t = {}) {
5
- s.setPluginOptions(t?.plugin), s.setToastOptions(t?.toast), o.component("UluToast", i), o.component("UluToastDisplay", a), o.config.globalProperties.$uluToast = l, o.provide("uluToast", l);
5
+ i.setPluginOptions(t?.plugin), i.setToastOptions(t?.toast), o.component("UluToast", n), o.component("UluToastDisplay", l), o.config.globalProperties.$uluToast = s, o.provide("uluToast", s);
6
6
  }
7
7
  export {
8
8
  e as default
@@ -8,44 +8,49 @@ export const store: {
8
8
  position: string[];
9
9
  };
10
10
  toastOptions: {
11
- component: import('vue').Raw<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
12
- toast: ObjectConstructor;
13
- classes: {
14
- type: ObjectConstructor;
15
- default: () => {
16
- content: string;
17
- date: string;
18
- actions: string;
19
- action: string;
20
- closeButton: string;
21
- };
22
- };
23
- }>, {}, {}, {}, {
24
- handleAction(event: any, action: any): void;
25
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
26
- toast: ObjectConstructor;
27
- classes: {
28
- type: ObjectConstructor;
29
- default: () => {
30
- content: string;
31
- date: string;
32
- actions: string;
33
- action: string;
34
- closeButton: string;
11
+ component: import('vue').Raw<{
12
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
13
+ classes: Record<string, any>;
14
+ toast?: Record<string, any> | undefined;
15
+ $props: {
16
+ readonly classes?: Record<string, any> | undefined;
17
+ readonly toast?: Record<string, any> | undefined;
35
18
  };
36
- };
37
- }>> & Readonly<{}>, {
38
- classes: Record<string, any>;
39
- }, {}, {
40
- UluIcon: import('vue').DefineComponent<{}, {
41
- spaced: boolean;
42
- icon?: string | boolean | Record<string, any> | unknown[] | undefined;
19
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
20
+ P: {};
21
+ B: {};
22
+ D: {};
23
+ C: {};
24
+ M: {};
25
+ Defaults: {};
26
+ }, Readonly<{}> & Readonly<{}>, {
27
+ classes: Record<string, any>;
28
+ toast?: Record<string, any> | undefined;
43
29
  $props: {
44
- readonly spaced?: boolean | undefined;
45
- readonly icon?: string | boolean | Record<string, any> | unknown[] | undefined;
30
+ readonly classes?: Record<string, any> | undefined;
31
+ readonly toast?: Record<string, any> | undefined;
46
32
  };
47
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
48
- }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>;
33
+ }, {}, {}, {}, {}>;
34
+ __isFragment?: never;
35
+ __isTeleport?: never;
36
+ __isSuspense?: never;
37
+ } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {
38
+ classes: Record<string, any>;
39
+ toast?: Record<string, any> | undefined;
40
+ $props: {
41
+ readonly classes?: Record<string, any> | undefined;
42
+ readonly toast?: Record<string, any> | undefined;
43
+ };
44
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
45
+ $slots: {
46
+ icon?(_: {
47
+ toast: Record<string, any> | undefined;
48
+ }): any;
49
+ content?(_: {
50
+ toast: Record<string, any> | undefined;
51
+ }): any;
52
+ };
53
+ })>;
49
54
  duration: number;
50
55
  actions: never[];
51
56
  };
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../lib/plugins/toast/store.js"],"names":[],"mappings":"AAMA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBG;;IAMD;;;;OAIG;IACH,sBAHW,MAAM,OAYhB;IACD;;;OAGG;IACH,gCAKC;IACD;;OAEG;IACH,2BAEC"}
1
+ {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../lib/plugins/toast/store.js"],"names":[],"mappings":"AAMA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBG;;IAMD;;;;OAIG;IACH,sBAHW,MAAM,OAYhB;IACD;;;OAGG;IACH,gCAKC;IACD;;OAEG;IACH,2BAEC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Ensures the array consists of objects
3
+ * @param {Array} array Array to check
4
+ * @returns {Boolean} Whether all are objects within
5
+ */
6
+ export function isArrayOfObjects(array: any[]): boolean;
7
+ //# sourceMappingURL=props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../lib/utils/props.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wDAEC"}
@@ -0,0 +1,6 @@
1
+ function t(e) {
2
+ return e.every((r) => typeof r == "object");
3
+ }
4
+ export {
5
+ t as isArrayOfObjects
6
+ };
@@ -1,5 +1,8 @@
1
1
  <template>
2
- <div class="accordion-group">
2
+ <div
3
+ v-if="items?.length"
4
+ class="accordion-group"
5
+ >
3
6
  <UluAccordion
4
7
  v-for="(item, index) in internalItems"
5
8
  :key="index"
@@ -11,7 +11,11 @@
11
11
  </slot>
12
12
  </template>
13
13
  <template #default>
14
- <UluMenuStack :items="items"/>
14
+ <UluMenuStack :items="items">
15
+ <template v-for="(_, name) in $slots" #[name]="slotData">
16
+ <slot :name="name" v-bind="slotData" />
17
+ </template>
18
+ </UluMenuStack>
15
19
  </template>
16
20
  </UluPopover>
17
21
  </template>