@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.
- package/dist/components/collapsible/UluAccordionGroup.vue.d.ts +2 -2
- package/dist/components/collapsible/UluAccordionGroup.vue.d.ts.map +1 -1
- package/dist/components/collapsible/UluAccordionGroup.vue.js +22 -19
- package/dist/components/collapsible/UluDropdown.vue.d.ts +1 -1
- package/dist/components/collapsible/UluDropdown.vue.d.ts.map +1 -1
- package/dist/components/collapsible/UluDropdown.vue.js +22 -15
- package/dist/components/collapsible/UluModal.vue.d.ts +43 -248
- package/dist/components/collapsible/UluModal.vue.d.ts.map +1 -1
- package/dist/components/collapsible/UluModal.vue.js +139 -191
- package/dist/components/collapsible/UluTabGroup.vue.d.ts +2 -0
- package/dist/components/collapsible/UluTabGroup.vue.d.ts.map +1 -1
- package/dist/components/collapsible/UluTabGroup.vue.js +23 -14
- package/dist/components/elements/UluAlert.vue.d.ts +29 -144
- package/dist/components/elements/UluAlert.vue.d.ts.map +1 -1
- package/dist/components/elements/UluAlert.vue.js +39 -50
- package/dist/components/elements/UluBadge.vue.d.ts +6 -6
- package/dist/components/elements/UluBadgeStack.vue.d.ts +1 -1
- package/dist/components/elements/UluBadgeStack.vue.d.ts.map +1 -1
- package/dist/components/elements/UluBadgeStack.vue.js +12 -9
- package/dist/components/elements/UluButton.vue.d.ts +47 -177
- package/dist/components/elements/UluButton.vue.d.ts.map +1 -1
- package/dist/components/elements/UluButton.vue.js +59 -72
- package/dist/components/elements/UluButtonVerbose.vue.d.ts +38 -123
- package/dist/components/elements/UluButtonVerbose.vue.d.ts.map +1 -1
- package/dist/components/elements/UluButtonVerbose.vue.js +52 -65
- package/dist/components/elements/UluCallout.vue.d.ts +20 -25
- package/dist/components/elements/UluCallout.vue.d.ts.map +1 -1
- package/dist/components/elements/UluCallout.vue.js +11 -16
- package/dist/components/elements/UluCaptionedFigure.vue.d.ts +25 -0
- package/dist/components/elements/UluCaptionedFigure.vue.d.ts.map +1 -0
- package/dist/components/elements/UluCaptionedFigure.vue.js +48 -0
- package/dist/components/elements/UluCard.vue.d.ts +2 -2
- package/dist/components/elements/UluDefinitionList.vue.d.ts +4 -2
- package/dist/components/elements/UluDefinitionList.vue.d.ts.map +1 -1
- package/dist/components/elements/UluDefinitionList.vue.js +32 -28
- package/dist/components/elements/UluExternalLink.vue.d.ts +2 -2
- package/dist/components/elements/UluImage.vue.d.ts +14 -0
- package/dist/components/elements/UluImage.vue.d.ts.map +1 -0
- package/dist/components/elements/UluImage.vue.js +53 -0
- package/dist/components/elements/UluList.vue.d.ts.map +1 -1
- package/dist/components/elements/UluList.vue.js +14 -13
- package/dist/components/elements/UluOverflowScroller.vue.d.ts +49 -0
- package/dist/components/elements/UluOverflowScroller.vue.d.ts.map +1 -0
- package/dist/components/elements/UluOverflowScroller.vue.js +138 -0
- package/dist/components/elements/UluScrollSlider.vue.d.ts +38 -0
- package/dist/components/elements/UluScrollSlider.vue.d.ts.map +1 -0
- package/dist/components/elements/UluScrollSlider.vue.js +146 -0
- package/dist/components/elements/UluSlider.vue.d.ts +57 -0
- package/dist/components/elements/UluSlider.vue.d.ts.map +1 -0
- package/dist/components/elements/UluSlider.vue.js +277 -0
- package/dist/components/forms/UluFormFile.vue.d.ts +2 -2
- package/dist/components/forms/UluFormRadio.vue.d.ts +4 -4
- package/dist/components/index.d.ts +6 -0
- package/dist/components/layout/UluTitleRail.vue.d.ts +29 -87
- package/dist/components/layout/UluTitleRail.vue.d.ts.map +1 -1
- package/dist/components/layout/UluTitleRail.vue.js +51 -46
- package/dist/components/navigation/UluBreadcrumb.vue.d.ts +27 -68
- package/dist/components/navigation/UluBreadcrumb.vue.d.ts.map +1 -1
- package/dist/components/navigation/UluBreadcrumb.vue.js +51 -54
- package/dist/components/navigation/UluMenu.vue.d.ts +30 -138
- package/dist/components/navigation/UluMenu.vue.d.ts.map +1 -1
- package/dist/components/navigation/UluMenu.vue.js +85 -84
- package/dist/components/navigation/UluMenuStack.vue.d.ts +12 -2
- package/dist/components/navigation/UluMenuStack.vue.d.ts.map +1 -1
- package/dist/components/navigation/UluMenuStack.vue.js +26 -18
- package/dist/components/navigation/UluNavStrip.vue.d.ts +22 -134
- package/dist/components/navigation/UluNavStrip.vue.d.ts.map +1 -1
- package/dist/components/navigation/UluNavStrip.vue.js +43 -31
- package/dist/components/systems/facets/UluFacetsSidebarLayout.vue.js +10 -10
- package/dist/components/systems/facets/useFacets.d.ts +3 -0
- package/dist/components/systems/facets/useFacets.d.ts.map +1 -1
- package/dist/components/systems/facets/useFacets.js +124 -112
- package/dist/components/systems/index.d.ts +0 -3
- package/dist/components/systems/scroll-anchors/UluScrollAnchors.vue.d.ts +2 -2
- package/dist/components/systems/table-sticky/UluTableSticky.vue.d.ts +504 -432
- package/dist/components/systems/table-sticky/UluTableSticky.vue.d.ts.map +1 -1
- package/dist/components/systems/table-sticky/UluTableSticky.vue.js +313 -456
- package/dist/components/systems/table-sticky/UluTableStickyRows.vue.d.ts +40 -31
- package/dist/components/systems/table-sticky/UluTableStickyRows.vue.d.ts.map +1 -1
- package/dist/components/systems/table-sticky/UluTableStickyRows.vue.js +43 -45
- package/dist/components/systems/table-sticky/UluTableStickyTable.vue.d.ts +60 -146
- package/dist/components/systems/table-sticky/UluTableStickyTable.vue.d.ts.map +1 -1
- package/dist/components/systems/table-sticky/UluTableStickyTable.vue.js +156 -175
- package/dist/components/utils/UluAction.vue.d.ts +36 -0
- package/dist/components/utils/UluAction.vue.d.ts.map +1 -0
- package/dist/components/utils/UluAction.vue.js +59 -0
- package/dist/components/utils/UluConditionalText.vue.d.ts +7 -26
- package/dist/components/utils/UluConditionalText.vue.d.ts.map +1 -1
- package/dist/components/utils/UluConditionalText.vue.js +12 -14
- package/dist/components/utils/UluConditionalWrapper.vue.d.ts.map +1 -1
- package/dist/components/utils/UluConditionalWrapper.vue.js +11 -9
- package/dist/components/utils/UluPlaceholderImage.vue.d.ts +12 -57
- package/dist/components/utils/UluPlaceholderImage.vue.d.ts.map +1 -1
- package/dist/components/utils/UluPlaceholderImage.vue.js +18 -26
- package/dist/components/utils/UluPlaceholderText.vue.d.ts +6 -20
- package/dist/components/utils/UluPlaceholderText.vue.js +12 -14
- package/dist/components/utils/UluRouteAnnouncer.vue.d.ts +9 -58
- package/dist/components/utils/UluRouteAnnouncer.vue.d.ts.map +1 -1
- package/dist/components/utils/UluRouteAnnouncer.vue.js +28 -28
- package/dist/components/visualizations/UluAnimateNumber.vue.d.ts +20 -14
- package/dist/components/visualizations/UluAnimateNumber.vue.d.ts.map +1 -1
- package/dist/components/visualizations/UluAnimateNumber.vue.js +18 -26
- package/dist/components/visualizations/UluProgressCircle.vue.d.ts +2 -2
- package/dist/composables/useModifiers.d.ts +20 -25
- package/dist/composables/useModifiers.d.ts.map +1 -1
- package/dist/index.js +206 -200
- package/dist/plugins/modals/UluModalsDisplay.vue.d.ts +3 -12
- package/dist/plugins/modals/UluModalsDisplay.vue.js +24 -45
- package/dist/plugins/modals/index.js +6 -6
- package/dist/plugins/toast/UluToast.vue.d.ts +24 -49
- package/dist/plugins/toast/UluToast.vue.d.ts.map +1 -1
- package/dist/plugins/toast/UluToast.vue.js +68 -77
- package/dist/plugins/toast/UluToastDisplay.vue.d.ts +1 -9
- package/dist/plugins/toast/UluToastDisplay.vue.js +27 -35
- package/dist/plugins/toast/defaults.d.ts +40 -35
- package/dist/plugins/toast/defaults.js +2 -2
- package/dist/plugins/toast/index.js +4 -4
- package/dist/plugins/toast/store.d.ts +40 -35
- package/dist/plugins/toast/store.d.ts.map +1 -1
- package/dist/utils/props.d.ts +7 -0
- package/dist/utils/props.d.ts.map +1 -0
- package/dist/utils/props.js +6 -0
- package/lib/components/collapsible/UluAccordionGroup.vue +4 -1
- package/lib/components/collapsible/UluDropdown.vue +5 -1
- package/lib/components/collapsible/UluModal.vue +278 -298
- package/lib/components/collapsible/UluTabGroup.vue +21 -6
- package/lib/components/elements/UluAlert.vue +38 -51
- package/lib/components/elements/UluBadgeStack.vue +4 -1
- package/lib/components/elements/UluButton.vue +105 -129
- package/lib/components/elements/UluButtonVerbose.vue +67 -89
- package/lib/components/elements/UluCallout.vue +15 -19
- package/lib/components/elements/UluCaptionedFigure.vue +40 -0
- package/lib/components/elements/UluDefinitionList.vue +27 -6
- package/lib/components/elements/UluImage.vue +56 -0
- package/lib/components/elements/UluList.vue +1 -0
- package/lib/components/elements/UluOverflowScroller.vue +140 -0
- package/lib/components/elements/UluScrollSlider.vue +150 -0
- package/lib/components/elements/UluSlider.vue +488 -0
- package/lib/components/index.js +10 -0
- package/lib/components/layout/UluTitleRail.vue +55 -48
- package/lib/components/navigation/UluBreadcrumb.vue +29 -34
- package/lib/components/navigation/UluMenu.vue +60 -71
- package/lib/components/navigation/UluMenuStack.vue +6 -1
- package/lib/components/navigation/UluNavStrip.vue +43 -31
- package/lib/components/systems/facets/useFacets.js +33 -17
- package/lib/components/systems/index.js +0 -4
- package/lib/components/systems/table-sticky/UluTableSticky.vue +602 -576
- package/lib/components/systems/table-sticky/UluTableStickyRows.vue +16 -27
- package/lib/components/systems/table-sticky/UluTableStickyTable.vue +95 -96
- package/lib/components/utils/UluAction.vue +81 -0
- package/lib/components/utils/UluConditionalText.vue +13 -16
- package/lib/components/utils/UluConditionalWrapper.vue +5 -1
- package/lib/components/utils/UluPlaceholderImage.vue +44 -46
- package/lib/components/utils/UluPlaceholderText.vue +10 -13
- package/lib/components/utils/UluRouteAnnouncer.vue +59 -47
- package/lib/components/visualizations/UluAnimateNumber.vue +23 -30
- package/lib/composables/useModifiers.js +21 -26
- package/lib/plugins/modals/UluModalsDisplay.vue +44 -45
- package/lib/plugins/toast/UluToast.vue +28 -34
- package/lib/plugins/toast/UluToastDisplay.vue +9 -15
- package/lib/utils/props.js +8 -0
- package/package.json +9 -5
- package/dist/components/systems/slider/UluImageSlideShow.vue.d.ts +0 -130
- package/dist/components/systems/slider/UluImageSlideShow.vue.d.ts.map +0 -1
- package/dist/components/systems/slider/UluImageSlideShow.vue.js +0 -73
- package/dist/components/systems/slider/UluSlideShow.vue.d.ts +0 -205
- package/dist/components/systems/slider/UluSlideShow.vue.d.ts.map +0 -1
- package/dist/components/systems/slider/UluSlideShow.vue.js +0 -292
- package/dist/components/systems/slider/UluSlideShowSlide.vue.d.ts +0 -17
- package/dist/components/systems/slider/UluSlideShowSlide.vue.d.ts.map +0 -1
- package/dist/components/systems/slider/UluSlideShowSlide.vue.js +0 -26
- package/lib/components/systems/slider/UluImageSlideShow.vue +0 -75
- package/lib/components/systems/slider/UluSlideShow.vue +0 -336
- 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
|
|
1
|
+
{"version":3,"file":"UluPlaceholderImage.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/utils/UluPlaceholderImage.vue"],"names":[],"mappings":"AAGA;"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
}
|
|
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
|
-
|
|
45
|
+
g as default
|
|
54
46
|
};
|
|
@@ -1,24 +1,10 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<
|
|
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
|
-
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
24
|
+
p as default
|
|
27
25
|
};
|
|
@@ -1,63 +1,14 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<
|
|
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
|
-
|
|
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
|
|
1
|
+
{"version":3,"file":"UluRouteAnnouncer.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/utils/UluRouteAnnouncer.vue"],"names":[],"mappings":"AAqBA;"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
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: (
|
|
31
|
+
default: (r) => g(r)
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
if (
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
-
|
|
58
|
+
A as default
|
|
59
59
|
};
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
declare const _default:
|
|
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;;
|
|
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
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
13
|
-
value
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
19
|
+
t.value = Math.ceil(l.tweenValue);
|
|
18
20
|
}
|
|
19
21
|
});
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
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
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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"}
|