@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 +1 @@
1
- {"version":3,"file":"UluPlaceholderImage.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/utils/UluPlaceholderImage.vue"],"names":[],"mappings":"AAGA;;;IA2DM;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;IAEH;;OAEG;;;;;;;;;;IApBH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;IAEH;;OAEG"}
1
+ {"version":3,"file":"UluPlaceholderImage.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/utils/UluPlaceholderImage.vue"],"names":[],"mappings":"AAGA;"}
@@ -1,8 +1,7 @@
1
- import { randomInt as i } from "@ulu/utils/random.js";
2
- import { createElementBlock as s, openBlock as c } from "vue";
3
- import a from "../../_virtual/_plugin-vue_export-helper.js";
4
- const d = {
5
- name: "UluPlaceholderImage",
1
+ import { computed as n, createElementBlock as d, openBlock as h } from "vue";
2
+ import { randomInt as o } from "@ulu/utils/random.js";
3
+ const s = ["src", "alt"], g = {
4
+ __name: "UluPlaceholderImage",
6
5
  props: {
7
6
  imageId: String,
8
7
  /**
@@ -28,27 +27,20 @@ const d = {
28
27
  */
29
28
  random: Boolean
30
29
  },
31
- computed: {
32
- src() {
33
- const { imageId: t } = this, { width: r, height: e } = this.size;
34
- return `https://picsum.photos/${t ? `id/${t}/` : ""}${r}/${e}`;
35
- },
36
- size() {
37
- const { random: t, width: r, height: e } = this;
38
- return t ? {
39
- width: i(500, 1e3),
40
- height: i(500, 1e3)
41
- } : { width: r, height: e };
42
- }
30
+ setup(e) {
31
+ const t = e, a = n(() => t.random ? {
32
+ width: o(500, 1e3),
33
+ height: o(500, 1e3)
34
+ } : { width: t.width, height: t.height }), c = n(() => {
35
+ const { width: r, height: i } = a.value;
36
+ return `https://picsum.photos/${t.imageId ? `id/${t.imageId}/` : ""}${r}/${i}`;
37
+ });
38
+ return (r, i) => (h(), d("img", {
39
+ src: c.value,
40
+ alt: e.alt
41
+ }, null, 8, s));
43
42
  }
44
- }, h = ["src", "alt"];
45
- function m(t, r, e, o, l, n) {
46
- return c(), s("img", {
47
- src: n.src,
48
- alt: e.alt
49
- }, null, 8, h);
50
- }
51
- const f = /* @__PURE__ */ a(d, [["render", m]]);
43
+ };
52
44
  export {
53
- f as default
45
+ g as default
54
46
  };
@@ -1,24 +1,10 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- amount: {
3
- type: NumberConstructor;
4
- default: number;
5
- };
6
- element: {
7
- type: StringConstructor;
8
- default: string;
9
- };
10
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
11
- amount: {
12
- type: NumberConstructor;
13
- default: number;
14
- };
15
- element: {
16
- type: StringConstructor;
17
- default: string;
18
- };
19
- }>> & Readonly<{}>, {
1
+ declare const _default: import('vue').DefineComponent<{}, {
20
2
  element: string;
21
3
  amount: number;
22
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4
+ $props: {
5
+ readonly element?: string | undefined;
6
+ readonly amount?: number | undefined;
7
+ };
8
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
23
9
  export default _default;
24
10
  //# sourceMappingURL=UluPlaceholderText.vue.d.ts.map
@@ -1,7 +1,6 @@
1
- import { createElementBlock as u, openBlock as i, Fragment as s, renderList as a, createBlock as r, resolveDynamicComponent as c, withCtx as l, createTextVNode as o } from "vue";
2
- import m from "../../_virtual/_plugin-vue_export-helper.js";
3
- const d = {
4
- name: "PlaceholderText",
1
+ import { createElementBlock as n, openBlock as u, Fragment as s, renderList as a, createBlock as r, resolveDynamicComponent as l, withCtx as c, createTextVNode as m } from "vue";
2
+ const p = {
3
+ __name: "UluPlaceholderText",
5
4
  props: {
6
5
  amount: {
7
6
  type: Number,
@@ -11,17 +10,16 @@ const d = {
11
10
  type: String,
12
11
  default: "p"
13
12
  }
13
+ },
14
+ setup(e) {
15
+ return (o, t) => (u(!0), n(s, null, a(parseInt(e.amount), (i) => (u(), r(l(e.element), { key: i }, {
16
+ default: c(() => [...t[0] || (t[0] = [
17
+ m(" Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed semper erat tincidunt tellus vestibulum dictum. Fusce vel augue commodo, egestas diam sed, accumsan leo. Maecenas congue nec nisl et ullamcorper. Maecenas tincidunt, tortor et viverra eleifend, enim leo vestibulum ipsum, quis placerat mi nisi nec ex. Vivamus a justo volutpat, scelerisque elit eget, lacinia ex. Phasellus dapibus sollicitudin tortor, vitae suscipit nunc condimentum ut. Cras suscipit feugiat nibh nec consectetur. Phasellus vitae quam blandit, cursus metus ut, placerat mi. Sed tempor lacus non est interdum imperdiet nec quis metus. Praesent vel eleifend diam. Donec tincidunt eget purus sed posuere. ", -1)
18
+ ])]),
19
+ _: 2
20
+ }, 1024))), 128));
14
21
  }
15
22
  };
16
- function p(f, e, t, v, g, x) {
17
- return i(!0), u(s, null, a(parseInt(t.amount), (n) => (i(), r(c(t.element), { key: n }, {
18
- default: l(() => [...e[0] || (e[0] = [
19
- o(" Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed semper erat tincidunt tellus vestibulum dictum. Fusce vel augue commodo, egestas diam sed, accumsan leo. Maecenas congue nec nisl et ullamcorper. Maecenas tincidunt, tortor et viverra eleifend, enim leo vestibulum ipsum, quis placerat mi nisi nec ex. Vivamus a justo volutpat, scelerisque elit eget, lacinia ex. Phasellus dapibus sollicitudin tortor, vitae suscipit nunc condimentum ut. Cras suscipit feugiat nibh nec consectetur. Phasellus vitae quam blandit, cursus metus ut, placerat mi. Sed tempor lacus non est interdum imperdiet nec quis metus. Praesent vel eleifend diam. Donec tincidunt eget purus sed posuere. ", -1)
20
- ])]),
21
- _: 2
22
- }, 1024))), 128);
23
- }
24
- const h = /* @__PURE__ */ m(d, [["render", p]]);
25
23
  export {
26
- h as default
24
+ p as default
27
25
  };
@@ -1,63 +1,14 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- /**
3
- * Allow user to bypass this functionality
4
- * - Function should return true if the page should be announced
5
- * - Function is passed (to, from, $route) => {}
6
- * - to/from are path strings
7
- */
8
- validator: {
9
- type: FunctionConstructor;
10
- default: () => boolean;
11
- };
12
- /**
13
- * Array of paths to exclude
14
- * - Can be exact path "/about"
15
- * - Or can be path with wildcard "/about/*" (match all paths under about)
16
- */
17
- exclude: {
18
- type: ArrayConstructor;
19
- default: () => never[];
20
- };
21
- /**
22
- * Function to retrieve routes title
23
- */
24
- getTitle: {
25
- type: FunctionConstructor;
26
- default: (route: any) => any;
27
- };
28
- }>, {}, {}, {
29
- title(): any;
30
- }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
31
- /**
32
- * Allow user to bypass this functionality
33
- * - Function should return true if the page should be announced
34
- * - Function is passed (to, from, $route) => {}
35
- * - to/from are path strings
36
- */
37
- validator: {
38
- type: FunctionConstructor;
39
- default: () => boolean;
40
- };
41
- /**
42
- * Array of paths to exclude
43
- * - Can be exact path "/about"
44
- * - Or can be path with wildcard "/about/*" (match all paths under about)
45
- */
46
- exclude: {
47
- type: ArrayConstructor;
48
- default: () => never[];
49
- };
50
- /**
51
- * Function to retrieve routes title
52
- */
53
- getTitle: {
54
- type: FunctionConstructor;
55
- default: (route: any) => any;
56
- };
57
- }>> & Readonly<{}>, {
1
+ declare const _default: import('vue').DefineComponent<{}, {
58
2
  validator: Function;
59
3
  exclude: unknown[];
60
4
  getTitle: Function;
61
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
5
+ $props: {
6
+ readonly validator?: Function | undefined;
7
+ readonly exclude?: unknown[] | undefined;
8
+ readonly getTitle?: Function | undefined;
9
+ };
10
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
11
+ el: HTMLParagraphElement;
12
+ }, any>;
62
13
  export default _default;
63
14
  //# sourceMappingURL=UluRouteAnnouncer.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UluRouteAnnouncer.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/utils/UluRouteAnnouncer.vue"],"names":[],"mappings":"AAqBA;;IAuFM;;;;;OAKG;;;;;IAKH;;;;OAIG;;;;;IAKH;;OAEG;;;;;;;;IArBH;;;;;OAKG;;;;;IAKH;;;;OAIG;;;;;IAKH;;OAEG"}
1
+ {"version":3,"file":"UluRouteAnnouncer.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/utils/UluRouteAnnouncer.vue"],"names":[],"mappings":"AAqBA;"}
@@ -1,7 +1,8 @@
1
- import { createElementBlock as s, createCommentVNode as l, openBlock as u, toDisplayString as c } from "vue";
2
- import a from "../../_virtual/_plugin-vue_export-helper.js";
3
- const d = {
4
- name: "RouteAnnouncer",
1
+ import { ref as s, computed as f, watch as d, nextTick as p, createElementBlock as m, createCommentVNode as h, openBlock as y, toDisplayString as v } from "vue";
2
+ import { useRoute as _ } from "vue-router";
3
+ import { getRouteTitle as g } from "../../utils/router.js";
4
+ const A = {
5
+ __name: "UluRouteAnnouncer",
5
6
  props: {
6
7
  /**
7
8
  * Allow user to bypass this functionality
@@ -27,33 +28,32 @@ const d = {
27
28
  */
28
29
  getTitle: {
29
30
  type: Function,
30
- default: (t) => t.meta?.title
31
+ default: (r) => g(r)
31
32
  }
32
33
  },
33
- watch: {
34
- "$route.path"(t, r) {
35
- if (this.$route.hash)
36
- return;
37
- const n = this.validator(t, r, this.$route), i = this.exclude.some((e) => e.endsWith("*") ? t.startsWith(e.slice(0, e.length - 1)) : t === e);
38
- n && !i && this.$refs.el.focus();
39
- }
40
- },
41
- computed: {
42
- title() {
43
- const t = this.getTitle(this.$route);
44
- return t || console.warn("RouteAnnouncer: No page title!"), t;
45
- }
34
+ setup(r) {
35
+ const n = r, t = _(), u = s(null), l = f(() => {
36
+ if (!t) return "";
37
+ const e = n.getTitle(t);
38
+ return e || console.warn("RouteAnnouncer: No page title!"), e;
39
+ });
40
+ return t ? d(
41
+ () => t.path,
42
+ async (e, a) => {
43
+ if (t.hash)
44
+ return;
45
+ const c = n.validator(e, a, t), i = n.exclude.some((o) => o.endsWith("*") ? e.startsWith(o.slice(0, o.length - 1)) : e === o);
46
+ c && !i && (await p(), u.value?.focus());
47
+ }
48
+ ) : console.error("RouteAnnouncer: No route found (install vue-router)."), (e, a) => l.value ? (y(), m("p", {
49
+ key: 0,
50
+ tabindex: "-1",
51
+ class: "hidden-visually",
52
+ ref_key: "el",
53
+ ref: u
54
+ }, v(l.value), 513)) : h("", !0);
46
55
  }
47
56
  };
48
- function f(t, r, n, i, e, o) {
49
- return o.title ? (u(), s("p", {
50
- key: 0,
51
- tabindex: "-1",
52
- class: "hidden-visually",
53
- ref: "el"
54
- }, c(o.title), 513)) : l("", !0);
55
- }
56
- const m = /* @__PURE__ */ a(d, [["render", f]]);
57
57
  export {
58
- m as default
58
+ A as default
59
59
  };
@@ -1,16 +1,22 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- /**
3
- * The target number to animate to.
4
- */
5
- value: NumberConstructor;
6
- }>, {}, {
7
- currentValue: number | undefined;
8
- tweenValue: number | undefined;
9
- }, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
- /**
11
- * The target number to animate to.
12
- */
13
- value: NumberConstructor;
14
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
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
+ value?: number | undefined;
8
+ $props: {
9
+ readonly value?: number | undefined;
10
+ };
11
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLSpanElement>;
12
+ type __VLS_TemplateResult = {
13
+ attrs: Partial<{}>;
14
+ slots: {
15
+ default?(_: {
16
+ currentValue: number | undefined;
17
+ }): any;
18
+ };
19
+ refs: {};
20
+ rootEl: HTMLSpanElement;
21
+ };
16
22
  //# sourceMappingURL=UluAnimateNumber.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UluAnimateNumber.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/visualizations/UluAnimateNumber.vue"],"names":[],"mappings":"AAGA;;IAiDM;;OAEG;;;;;;IAFH;;OAEG"}
1
+ {"version":3,"file":"UluAnimateNumber.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/visualizations/UluAnimateNumber.vue"],"names":[],"mappings":"AAGA;wBA6GqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAXjC;;;;;uPAQG"}
@@ -1,39 +1,31 @@
1
- import r from "gsap";
2
- import { createElementBlock as a, openBlock as u, renderSlot as n, createTextVNode as l, toDisplayString as o } from "vue";
3
- import s from "../../_virtual/_plugin-vue_export-helper.js";
4
- const c = {
5
- name: "AnimateNumber",
1
+ import { ref as n, reactive as u, watch as o, createElementBlock as c, openBlock as s, renderSlot as p, createTextVNode as m, toDisplayString as i } from "vue";
2
+ import v from "gsap";
3
+ const _ = {
4
+ __name: "UluAnimateNumber",
6
5
  props: {
7
6
  /**
8
7
  * The target number to animate to.
9
8
  */
10
9
  value: Number
11
10
  },
12
- watch: {
13
- value() {
14
- r.to(this, {
15
- tweenValue: this.value,
11
+ setup(r) {
12
+ const e = r, t = n(e.value), l = u({
13
+ tweenValue: e.value
14
+ });
15
+ return o(() => e.value, (a) => {
16
+ v.to(l, {
17
+ tweenValue: a,
16
18
  onUpdate: () => {
17
- this.currentValue = Math.ceil(this.tweenValue);
19
+ t.value = Math.ceil(l.tweenValue);
18
20
  }
19
21
  });
20
- }
21
- },
22
- data() {
23
- return {
24
- currentValue: this.value,
25
- tweenValue: this.value
26
- };
22
+ }), (a, f) => (s(), c("span", null, [
23
+ p(a.$slots, "default", { currentValue: t.value }, () => [
24
+ m(i(t.value), 1)
25
+ ])
26
+ ]));
27
27
  }
28
28
  };
29
- function i(t, p, m, f, e, h) {
30
- return u(), a("span", null, [
31
- n(t.$slots, "default", { currentValue: e.currentValue }, () => [
32
- l(o(e.currentValue), 1)
33
- ])
34
- ]);
35
- }
36
- const v = /* @__PURE__ */ s(c, [["render", i]]);
37
29
  export {
38
- v as default
30
+ _ as default
39
31
  };
@@ -4,9 +4,9 @@ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
4
4
  $slots: S;
5
5
  });
6
6
  declare const __VLS_component: import('vue').DefineComponent<{}, {
7
- small: boolean;
8
7
  duration: number;
9
8
  easing: string;
9
+ small: boolean;
10
10
  label: string;
11
11
  formatValue: Function;
12
12
  percentage: number;
@@ -17,9 +17,9 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
17
17
  pieStyle: boolean;
18
18
  noMask: boolean;
19
19
  $props: {
20
- readonly small?: boolean | undefined;
21
20
  readonly duration?: number | undefined;
22
21
  readonly easing?: string | undefined;
22
+ readonly small?: boolean | undefined;
23
23
  readonly label?: string | undefined;
24
24
  readonly formatValue?: Function | undefined;
25
25
  readonly percentage?: number | undefined;
@@ -16,37 +16,32 @@
16
16
  * <div :class="[resolvedModifiers, 'other-class']"></div>
17
17
  * </template>
18
18
  *
19
- * <script>
19
+ * <script setup>
20
20
  * import { computed, ref } from 'vue';
21
21
  * import { useModifiers } from './composables/useModifiers.js'; // Adjust path
22
22
  *
23
- * export default {
24
- * props: {
25
- * variant: String, // e.g., 'primary', 'secondary'
26
- * isActive: Boolean,
27
- * modifiers: [String, Array, Object] // User-passed modifiers
28
- * },
29
- * setup(props) {
30
- * const isHovered = ref(false);
23
+ * const props = defineProps({
24
+ * variant: String, // e.g., 'primary', 'secondary'
25
+ * isActive: Boolean,
26
+ * modifiers: [String, Array, Object] // User-passed modifiers
27
+ * });
31
28
  *
32
- * // Define component-internal modifiers based on props or local state
33
- * const internalModifiers = computed(() => ({
34
- * [props.variant]: !!props.variant, // Add 'primary' or 'secondary' if prop exists
35
- * 'active': props.isActive, // Add 'active' if isActive prop is true
36
- * 'hovered': isHovered.value, // Add 'hovered' if local state is true
37
- * 'default': !props.variant && !props.isActive // Add 'default' if no variant/active
38
- * }));
29
+ * const isHovered = ref(false);
39
30
  *
40
- * // Use the composable to get the combined modifier classes
41
- * const { resolvedModifiers } = useModifiers({
42
- * props: props, // Pass component props for 'modifiers' prop
43
- * baseClass: 'button', // The BEM block name
44
- * internal: internalModifiers // The computed internal modifiers
45
- * });
31
+ * // Define component-internal modifiers based on props or local state
32
+ * const internalModifiers = computed(() => ({
33
+ * [props.variant]: !!props.variant, // Add 'primary' or 'secondary' if prop exists
34
+ * 'active': props.isActive, // Add 'active' if isActive prop is true
35
+ * 'hovered': isHovered.value, // Add 'hovered' if local state is true
36
+ * 'default': !props.variant && !props.isActive // Add 'default' if no variant/active
37
+ * }));
46
38
  *
47
- * return { resolvedModifiers, isHovered };
48
- * }
49
- * };
39
+ * // Use the composable to get the combined modifier classes
40
+ * const { resolvedModifiers } = useModifiers({
41
+ * props: props, // Pass component props for 'modifiers' prop
42
+ * baseClass: 'button', // The BEM block name
43
+ * internal: internalModifiers // The computed internal modifiers
44
+ * });
50
45
  * </script>
51
46
  *
52
47
  * // Resulting class examples for 'my-component':
@@ -1 +1 @@
1
- {"version":3,"file":"useModifiers.d.ts","sourceRoot":"","sources":["../../lib/composables/useModifiers.js"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,6DAtDG;IAAwB,KAAK,EAArB,MAAM;IACsC,SAAS,EAArD,MAAM,GAAG,OAAO,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC;IAEuF,QAAQ;;;;;CAEzI,GAAU,MAAM,CA0ElB"}
1
+ {"version":3,"file":"useModifiers.d.ts","sourceRoot":"","sources":["../../lib/composables/useModifiers.js"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,6DAjDG;IAAwB,KAAK,EAArB,MAAM;IACsC,SAAS,EAArD,MAAM,GAAG,OAAO,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC;IAEuF,QAAQ;;;;;CAEzI,GAAU,MAAM,CAqElB"}