@ulu/frontend-vue 0.6.0 → 0.6.1
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/elements/UluBadge.vue.d.ts +2 -0
- package/dist/components/elements/UluBadge.vue.d.ts.map +1 -1
- package/dist/components/elements/UluBadge.vue.js +30 -21
- package/dist/components/systems/facets/useFacets.d.ts.map +1 -1
- package/dist/components/systems/scroll-anchors/useScrollAnchorSection.d.ts.map +1 -1
- package/dist/components/systems/scroll-anchors/useScrollAnchorSections.d.ts.map +1 -1
- package/dist/components/systems/scroll-anchors/useScrollAnchors.d.ts.map +1 -1
- package/dist/composables/useBreakpointManager.d.ts.map +1 -1
- package/dist/composables/useDocumentTitle.d.ts.map +1 -1
- package/dist/composables/useIcon.d.ts +3 -0
- package/dist/composables/useIcon.d.ts.map +1 -1
- package/dist/composables/useModifiers.d.ts.map +1 -1
- package/dist/composables/usePagination.d.ts.map +1 -1
- package/dist/composables/useRequiredInject.d.ts.map +1 -1
- package/dist/composables/useTableData.d.ts.map +1 -1
- package/dist/composables/useUluFloating.d.ts.map +1 -1
- package/dist/composables/useWindowResize.d.ts.map +1 -1
- package/dist/mcp-data.json +17685 -0
- package/dist/plugins/breakpoints/index.d.ts.map +1 -1
- package/dist/plugins/core/index.d.ts.map +1 -1
- package/dist/plugins/modals/api.d.ts.map +1 -1
- package/dist/plugins/modals/index.d.ts.map +1 -1
- package/dist/plugins/modals/useModals.d.ts.map +1 -1
- package/dist/plugins/popovers/defaults.d.ts.map +1 -1
- package/dist/plugins/popovers/index.d.ts.map +1 -1
- package/dist/plugins/popovers/useTooltip.d.ts.map +1 -1
- package/dist/plugins/popovers/useTooltipFollow.d.ts.map +1 -1
- package/dist/plugins/toast/index.d.ts.map +1 -1
- package/dist/plugins/toast/store.d.ts.map +1 -1
- package/dist/plugins/toast/useToast.d.ts.map +1 -1
- package/dist/resolver.d.ts.map +1 -1
- package/dist/utils/dom.d.ts +3 -0
- package/dist/utils/dom.d.ts.map +1 -1
- package/dist/utils/props.d.ts +3 -0
- package/dist/utils/props.d.ts.map +1 -1
- package/dist/utils/router.d.ts +12 -15
- package/dist/utils/router.d.ts.map +1 -1
- package/lib/components/elements/UluBadge.vue +16 -5
- package/lib/components/index.js +3 -0
- package/lib/components/systems/facets/useFacets.js +3 -0
- package/lib/components/systems/index.js +3 -0
- package/lib/components/systems/scroll-anchors/useScrollAnchorSection.js +3 -0
- package/lib/components/systems/scroll-anchors/useScrollAnchorSections.js +3 -0
- package/lib/components/systems/scroll-anchors/useScrollAnchors.js +3 -0
- package/lib/composables/useBreakpointManager.js +3 -0
- package/lib/composables/useDocumentTitle.js +3 -0
- package/lib/composables/useIcon.js +3 -0
- package/lib/composables/useModifiers.js +3 -1
- package/lib/composables/usePagination.js +3 -0
- package/lib/composables/useRequiredInject.js +3 -0
- package/lib/composables/useTableData.js +3 -0
- package/lib/composables/useUluFloating.js +3 -0
- package/lib/composables/useWindowResize.js +3 -0
- package/lib/index.js +1 -1
- package/lib/meta.js +1 -1
- package/lib/plugins/breakpoints/index.js +3 -0
- package/lib/plugins/core/index.js +2 -1
- package/lib/plugins/index.js +1 -1
- package/lib/plugins/modals/api.js +3 -0
- package/lib/plugins/modals/index.js +2 -3
- package/lib/plugins/modals/useModals.js +3 -0
- package/lib/plugins/popovers/defaults.js +3 -0
- package/lib/plugins/popovers/index.js +3 -0
- package/lib/plugins/popovers/useTooltip.js +3 -0
- package/lib/plugins/popovers/useTooltipFollow.js +3 -0
- package/lib/plugins/toast/defaults.js +3 -0
- package/lib/plugins/toast/index.js +3 -0
- package/lib/plugins/toast/store.js +3 -0
- package/lib/plugins/toast/useToast.js +3 -0
- package/lib/resolver.js +3 -0
- package/lib/utils/dom.js +3 -0
- package/lib/utils/index.js +3 -0
- package/lib/utils/props.js +3 -0
- package/lib/utils/router.js +10 -10
- package/lib/vite.js +3 -0
- package/package.json +17 -4
|
@@ -7,6 +7,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
7
7
|
skeleton: boolean;
|
|
8
8
|
type?: string | undefined;
|
|
9
9
|
size?: string | undefined;
|
|
10
|
+
modifiers?: string | unknown[] | undefined;
|
|
10
11
|
to?: string | Record<string, any> | undefined;
|
|
11
12
|
href?: string | undefined;
|
|
12
13
|
click?: Function | undefined;
|
|
@@ -16,6 +17,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
16
17
|
readonly skeleton?: boolean | undefined;
|
|
17
18
|
readonly type?: string | undefined;
|
|
18
19
|
readonly size?: string | undefined;
|
|
20
|
+
readonly modifiers?: string | unknown[] | undefined;
|
|
19
21
|
readonly to?: string | Record<string, any> | undefined;
|
|
20
22
|
readonly href?: string | undefined;
|
|
21
23
|
readonly click?: Function | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UluBadge.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/elements/UluBadge.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UluBadge.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/elements/UluBadge.vue"],"names":[],"mappings":"AAuBA;wBA2PqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAXjC;;;;;;;;;;;;;;;;;;;;;2OAQG"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { RouterLink as
|
|
3
|
-
|
|
1
|
+
import { computed as o, createBlock as m, openBlock as a, resolveDynamicComponent as f, normalizeClass as i, unref as g, withCtx as h, createElementVNode as y, createElementBlock as r, renderSlot as S, createCommentVNode as b, toDisplayString as c } from "vue";
|
|
2
|
+
import { RouterLink as C } from "vue-router";
|
|
3
|
+
import { useModifiers as v } from "../../composables/useModifiers.js";
|
|
4
|
+
const B = ["aria-hidden"], x = {
|
|
4
5
|
key: 2,
|
|
5
6
|
class: "hidden-visually"
|
|
6
|
-
},
|
|
7
|
+
}, E = {
|
|
7
8
|
__name: "UluBadge",
|
|
8
9
|
props: {
|
|
9
10
|
/**
|
|
@@ -37,32 +38,40 @@ const S = ["aria-hidden"], B = {
|
|
|
37
38
|
/**
|
|
38
39
|
* A URL. Renders as a standard <a> tag.
|
|
39
40
|
*/
|
|
40
|
-
href: String
|
|
41
|
+
href: String,
|
|
42
|
+
/**
|
|
43
|
+
* Modifiers (to add any modifier classes based on base class [ie. 'tertiary'])
|
|
44
|
+
*/
|
|
45
|
+
modifiers: [String, Array]
|
|
41
46
|
},
|
|
42
47
|
setup(e) {
|
|
43
|
-
const t = e, s =
|
|
44
|
-
|
|
45
|
-
|
|
48
|
+
const t = e, s = o(() => !!(t.to || t.click)), { resolvedModifiers: d } = v({
|
|
49
|
+
props: t,
|
|
50
|
+
baseClass: "badge",
|
|
51
|
+
internal: o(() => ({
|
|
52
|
+
[t.size]: t.size,
|
|
53
|
+
[t.type]: t.type,
|
|
54
|
+
clickable: s.value
|
|
55
|
+
}))
|
|
56
|
+
}), u = o(() => {
|
|
57
|
+
const { click: n, to: l, href: k } = t;
|
|
58
|
+
return n ? "button" : l ? C : k ? "a" : "span";
|
|
46
59
|
});
|
|
47
|
-
return (n,
|
|
48
|
-
class:
|
|
49
|
-
e.size ? `badge--${e.size}` : null,
|
|
50
|
-
e.type ? `badge--${e.type}` : null,
|
|
51
|
-
{ "badge--clickable": s.value }
|
|
52
|
-
]]),
|
|
60
|
+
return (n, l) => (a(), m(f(u.value), {
|
|
61
|
+
class: i(["badge", g(d)]),
|
|
53
62
|
to: e.to,
|
|
54
63
|
href: e.href,
|
|
55
64
|
onClick: e.click
|
|
56
65
|
}, {
|
|
57
|
-
default:
|
|
58
|
-
|
|
59
|
-
class:
|
|
66
|
+
default: h(() => [
|
|
67
|
+
y("span", {
|
|
68
|
+
class: i(["badge__inner", { "skeleton__background-color": e.skeleton }])
|
|
60
69
|
}, [
|
|
61
|
-
e.text ? (
|
|
70
|
+
e.text ? (a(), r("span", {
|
|
62
71
|
key: 0,
|
|
63
72
|
"aria-hidden": e.alt ? "true" : null
|
|
64
|
-
},
|
|
65
|
-
e.alt ? (
|
|
73
|
+
}, c(e.text), 9, B)) : S(n.$slots, "default", { key: 1 }),
|
|
74
|
+
e.alt ? (a(), r("span", x, c(e.alt), 1)) : b("", !0)
|
|
66
75
|
], 2)
|
|
67
76
|
]),
|
|
68
77
|
_: 3
|
|
@@ -70,5 +79,5 @@ const S = ["aria-hidden"], B = {
|
|
|
70
79
|
}
|
|
71
80
|
};
|
|
72
81
|
export {
|
|
73
|
-
|
|
82
|
+
E as default
|
|
74
83
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFacets.d.ts","sourceRoot":"","sources":["../../../../lib/components/systems/facets/useFacets.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFacets.d.ts","sourceRoot":"","sources":["../../../../lib/components/systems/facets/useFacets.js"],"names":[],"mappings":"AAoHA;;;;;;;;;;;;;;;;;GAiBG;AACH,oCAhBW,OAAO,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,YAExC;IAAwB,aAAa;IACb,WAAW;IACV,kBAAkB;IAClB,eAAe;IACd,cAAc;IACf,cAAc;IACd,aAAa;IACX,YAAY;IACd,SAAS;IACT,OAAO;;;;IAGL,QAAQ;CACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+WA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScrollAnchorSection.d.ts","sourceRoot":"","sources":["../../../../lib/components/systems/scroll-anchors/useScrollAnchorSection.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useScrollAnchorSection.d.ts","sourceRoot":"","sources":["../../../../lib/components/systems/scroll-anchors/useScrollAnchorSection.js"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH,8CAHW,MAAM,GACJ,MAAM,CAmDlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScrollAnchorSections.d.ts","sourceRoot":"","sources":["../../../../lib/components/systems/scroll-anchors/useScrollAnchorSections.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useScrollAnchorSections.d.ts","sourceRoot":"","sources":["../../../../lib/components/systems/scroll-anchors/useScrollAnchorSections.js"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,2CAFa,MAAM,CAQlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScrollAnchors.d.ts","sourceRoot":"","sources":["../../../../lib/components/systems/scroll-anchors/useScrollAnchors.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useScrollAnchors.d.ts","sourceRoot":"","sources":["../../../../lib/components/systems/scroll-anchors/useScrollAnchors.js"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,4EAFW;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,WAAW;IAAC,cAAc,EAAE,MAAM,CAAA;CAAC,QAsTnF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBreakpointManager.d.ts","sourceRoot":"","sources":["../../lib/composables/useBreakpointManager.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useBreakpointManager.d.ts","sourceRoot":"","sources":["../../lib/composables/useBreakpointManager.js"],"names":[],"mappings":"AAuBA;;;;;;;;;;;;;;;;;GAiBG;AACH,8CAZG;IAAyB,YAAY;IACV,OAAO;IACT,MAAM;CAC/B,GAAU;IACR,iBAAiB,EAAE,OAAO,KAAK,EAAE,GAAG,CAAC,OAAO,eAAe,EAAE,iBAAiB,GAAG,IAAI,CAAC,CAAC;IACvF,gBAAgB,EAAE,OAAO,KAAK,EAAE,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACnD,mBAAmB,EAAE,OAAO,KAAK,EAAE,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;CACtD,CA6CH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDocumentTitle.d.ts","sourceRoot":"","sources":["../../lib/composables/useDocumentTitle.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDocumentTitle.d.ts","sourceRoot":"","sources":["../../lib/composables/useDocumentTitle.js"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;;GAcG;AACH,2CALG;IAAqD,KAAK;IACjC,aAAa;IACX,QAAQ;IACR,OAAO;CACpC,QAsCA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIcon.d.ts","sourceRoot":"","sources":["../../lib/composables/useIcon.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,2BAPa;IACR,YAAY,EAAE,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;IACxE,wBAAwB,EAAE,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,KAAK,MAAM,GAAG,IAAI,CAAA;CACpF,CA6DH"}
|
|
1
|
+
{"version":3,"file":"useIcon.d.ts","sourceRoot":"","sources":["../../lib/composables/useIcon.js"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;GAWG;AACH,2BAPa;IACR,YAAY,EAAE,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;IACxE,wBAAwB,EAAE,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,KAAK,MAAM,GAAG,IAAI,CAAA;CACpF,CA6DH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useModifiers.d.ts","sourceRoot":"","sources":["../../lib/composables/useModifiers.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useModifiers.d.ts","sourceRoot":"","sources":["../../lib/composables/useModifiers.js"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePagination.d.ts","sourceRoot":"","sources":["../../lib/composables/usePagination.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePagination.d.ts","sourceRoot":"","sources":["../../lib/composables/usePagination.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;GAaG;AACH,qCAVW,OAAO,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,gBAC7B,MAAM,GACJ;IACR,WAAW,EAAE,OAAO,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC/C,UAAU,EAAE,OAAO,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9C,cAAc,EAAE,OAAO,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IACtD,UAAU,EAAE,OAAO,KAAK,EAAE,WAAW,CAAC,MAAM,GAAC,IAAI,CAAC,CAAC;IACnD,aAAa,EAAE,OAAO,KAAK,EAAE,WAAW,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,OAAO,CAAA;KAAC,CAAC,CAAA;CAC7E,CA0GH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRequiredInject.d.ts","sourceRoot":"","sources":["../../lib/composables/useRequiredInject.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useRequiredInject.d.ts","sourceRoot":"","sources":["../../lib/composables/useRequiredInject.js"],"names":[],"mappings":"AAWA;;;;;GAKG;AACH,uCAHW,MAAM,MAchB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTableData.d.ts","sourceRoot":"","sources":["../../lib/composables/useTableData.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useTableData.d.ts","sourceRoot":"","sources":["../../lib/composables/useTableData.js"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,oCAHW,MAAM;;;;;;;;;;;;;;;;;;;;;EAsLhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUluFloating.d.ts","sourceRoot":"","sources":["../../lib/composables/useUluFloating.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useUluFloating.d.ts","sourceRoot":"","sources":["../../lib/composables/useUluFloating.js"],"names":[],"mappings":"AAcA;;GAEG;AAEH;;;;;;;GAOG;AAEH;;;;;;GAMG;AACH,wCALW,OAAO,KAAK,EAAE,GAAG,CAAC,WAAW,CAAC,WAC9B,OAAO,KAAK,EAAE,GAAG,CAAC,WAAW,CAAC,UAC9B,OAAO,KAAK,EAAE,GAAG,CAAC,iBAAiB,CAAC,GAClC;IAAC,cAAc,EAAE,OAAO,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAAC,SAAS,EAAE,OAAO,KAAK,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC;IAAC,cAAc,EAAE,OAAO,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAAC,MAAM,WAAW;IAAC,YAAY,EAAE,OAAO,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAAC,WAAW,EAAE,OAAO,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAAC,YAAY,EAAE,OAAO,KAAK,EAAE,GAAG,CAAC,WAAW,CAAC,CAAA;CAAC,CAkE7R;wBAnFY,OAAO,kBAAkB,EAAE,SAAS;;;;;eAKnC,SAAS;;;;YACT,OAAO;;;;YACP,MAAM;;;;WACN,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWindowResize.d.ts","sourceRoot":"","sources":["../../lib/composables/useWindowResize.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useWindowResize.d.ts","sourceRoot":"","sources":["../../lib/composables/useWindowResize.js"],"names":[],"mappings":"AAqDA;;;;;;;;;;;;;GAaG;AACH,mCATa;IACR,QAAQ,EAAE,OAAO,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACrC,aAAa,EAAE,CAAC,QAAQ,UAAU,aAAa,CAAC;IAChD,WAAW,EAAE,CAAC,QAAQ,UAAU,aAAa,CAAA;CAC9C,CAeH"}
|