@lumx/vue 4.9.0-alpha.0 → 4.9.0-alpha.2
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/_internal/{DCsEMm-b.js → BrPeaE_u.js} +29 -29
- package/_internal/{DCsEMm-b.js.map → BrPeaE_u.js.map} +1 -1
- package/components/user-block/UserBlock.d.ts +39 -0
- package/components/user-block/UserBlock.stories.d.ts +151 -0
- package/components/user-block/index.d.ts +1 -0
- package/index.d.ts +1 -0
- package/index.js +2641 -2436
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/utils/index.js +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { inject as
|
|
1
|
+
import { inject as i, computed as m, unref as P, defineComponent as c, provide as l, ref as y, watch as b, onBeforeUnmount as p, createVNode as C, Teleport as R, isVNode as x, onMounted as L } from "vue";
|
|
2
2
|
import { Theme as T } from "@lumx/core/js/constants";
|
|
3
3
|
function S(e = { defaultTheme: T.light }) {
|
|
4
|
-
const { defaultTheme: n } = e, o =
|
|
4
|
+
const { defaultTheme: n } = e, o = i("theme", void 0);
|
|
5
5
|
return m(() => P(o) || n);
|
|
6
6
|
}
|
|
7
7
|
const g = c(
|
|
8
|
-
(e, { slots: n }) => (
|
|
8
|
+
(e, { slots: n }) => (l(
|
|
9
9
|
"theme",
|
|
10
10
|
m(() => e.value)
|
|
11
11
|
), () => n.default?.()),
|
|
@@ -15,9 +15,9 @@ const g = c(
|
|
|
15
15
|
}
|
|
16
16
|
), v = /* @__PURE__ */ Symbol("LumxPortal"), A = () => ({
|
|
17
17
|
container: "body"
|
|
18
|
-
}),
|
|
18
|
+
}), N = /* @__PURE__ */ c((e, {
|
|
19
19
|
slots: n
|
|
20
|
-
}) => (
|
|
20
|
+
}) => (l(v, e.value), () => n.default?.()), {
|
|
21
21
|
name: "LumxPortalProvider",
|
|
22
22
|
props: {
|
|
23
23
|
value: {
|
|
@@ -29,20 +29,20 @@ const g = c(
|
|
|
29
29
|
function w(e) {
|
|
30
30
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !x(e);
|
|
31
31
|
}
|
|
32
|
-
const
|
|
32
|
+
const O = /* @__PURE__ */ c((e, {
|
|
33
33
|
slots: n
|
|
34
34
|
}) => {
|
|
35
|
-
const o =
|
|
35
|
+
const o = i(v, A), t = y(null), u = () => {
|
|
36
36
|
e.enabled ? t.value = o() : t.value = null;
|
|
37
37
|
};
|
|
38
38
|
return u(), b(() => e.enabled, u), p(() => {
|
|
39
39
|
t.value?.teardown?.();
|
|
40
40
|
}), () => {
|
|
41
|
-
const
|
|
42
|
-
return !e.enabled || !
|
|
43
|
-
to:
|
|
44
|
-
}, w(
|
|
45
|
-
default: () => [
|
|
41
|
+
const a = n.default?.(), r = t.value?.container;
|
|
42
|
+
return !e.enabled || !r ? a : C(R, {
|
|
43
|
+
to: r
|
|
44
|
+
}, w(a) ? a : {
|
|
45
|
+
default: () => [a]
|
|
46
46
|
});
|
|
47
47
|
};
|
|
48
48
|
}, {
|
|
@@ -55,39 +55,39 @@ const Y = /* @__PURE__ */ c((e, {
|
|
|
55
55
|
}
|
|
56
56
|
}), s = ["mousedown", "touchstart"];
|
|
57
57
|
function E(e, n) {
|
|
58
|
-
return !n.some((o) => e.some((t) => o
|
|
58
|
+
return !n.some((o) => o instanceof Node && e.some((t) => o.contains(t)));
|
|
59
59
|
}
|
|
60
60
|
function j(e, n) {
|
|
61
61
|
if (!n)
|
|
62
62
|
return;
|
|
63
63
|
const o = (t) => {
|
|
64
|
-
const u = [t.composedPath?.()[0], t.target]
|
|
65
|
-
E(u,
|
|
64
|
+
const u = [t.composedPath?.()[0], t.target].filter((r) => r instanceof Node), a = e();
|
|
65
|
+
E(u, a) && n(t);
|
|
66
66
|
};
|
|
67
67
|
return s.forEach((t) => document.addEventListener(t, o)), () => {
|
|
68
68
|
s.forEach((t) => document.removeEventListener(t, o));
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
const f = /* @__PURE__ */ Symbol("LumxClickAway"),
|
|
71
|
+
const f = /* @__PURE__ */ Symbol("LumxClickAway"), Y = /* @__PURE__ */ c((e, {
|
|
72
72
|
slots: n
|
|
73
73
|
}) => {
|
|
74
|
-
const o =
|
|
74
|
+
const o = i(f, null), t = [], u = {
|
|
75
75
|
childrenRefs: t,
|
|
76
|
-
addRefs(...
|
|
77
|
-
for (const h of
|
|
76
|
+
addRefs(...r) {
|
|
77
|
+
for (const h of r) {
|
|
78
78
|
const d = h.value;
|
|
79
79
|
d && t.push(d);
|
|
80
80
|
}
|
|
81
|
-
o && (o.addRefs(...
|
|
81
|
+
o && (o.addRefs(...r), e.parentRef && o.addRefs(e.parentRef));
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
|
-
|
|
85
|
-
let
|
|
84
|
+
l(f, u);
|
|
85
|
+
let a;
|
|
86
86
|
return L(() => {
|
|
87
|
-
const
|
|
88
|
-
|
|
87
|
+
const r = e.childrenRefs.value;
|
|
88
|
+
r && u.addRefs(...r), a = j(() => t, e.callback);
|
|
89
89
|
}), p(() => {
|
|
90
|
-
|
|
90
|
+
a?.();
|
|
91
91
|
}), () => n.default?.();
|
|
92
92
|
}, {
|
|
93
93
|
name: "LumxClickAwayProvider",
|
|
@@ -107,11 +107,11 @@ const f = /* @__PURE__ */ Symbol("LumxClickAway"), I = /* @__PURE__ */ c((e, {
|
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
export {
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
Y as C,
|
|
111
|
+
O as P,
|
|
112
112
|
g as T,
|
|
113
|
-
|
|
113
|
+
N as a,
|
|
114
114
|
j as s,
|
|
115
115
|
S as u
|
|
116
116
|
};
|
|
117
|
-
//# sourceMappingURL=
|
|
117
|
+
//# sourceMappingURL=BrPeaE_u.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DCsEMm-b.js","sources":["../../src/utils/theme/useTheme.ts","../../src/utils/theme/ThemeProvider.ts","../../src/utils/Portal/PortalProvider.tsx","../../src/utils/Portal/Portal.tsx","../../../lumx-core/src/js/utils/ClickAway/index.ts","../../src/utils/ClickAway/ClickAwayProvider.tsx"],"sourcesContent":["import { type ComputedRef, type Ref, computed, inject, unref } from 'vue';\n\nimport { Theme } from '@lumx/core/js/constants';\n\nexport interface UseTheme {\n defaultTheme?: Theme;\n}\n/**\n * Retrieves the globally applied theme.\n * @returns computed theme value (auto-updates when the provided theme changes)\n */\nexport function useTheme(options: UseTheme = { defaultTheme: Theme.light }): ComputedRef<Theme | undefined> {\n const { defaultTheme } = options;\n const injected = inject<Theme | Ref<Theme | undefined> | undefined>('theme', undefined);\n return computed(() => unref(injected) || defaultTheme);\n}\n","import { computed, defineComponent, provide, type PropType } from 'vue';\nimport type { Theme } from '@lumx/core/js/constants';\n\n/**\n * ThemeProvider for Vue: wraps children with `provide('theme', value)` for theme isolation.\n * Vue's `provide()` requires a component boundary, so this is a component.\n */\nexport const ThemeProvider = defineComponent(\n (props: { value: Theme | undefined }, { slots }) => {\n provide(\n 'theme',\n computed(() => props.value),\n );\n return () => slots.default?.();\n },\n {\n name: 'LumxThemeProvider',\n props: { value: { type: String as PropType<Theme | undefined>, default: undefined } },\n },\n);\n","import { defineComponent, provide, type PropType, type InjectionKey } from 'vue';\n\nexport type { PortalInit, PortalProviderProps } from '@lumx/core/js/utils/Portal';\nimport type { PortalInit, PortalProviderProps } from '@lumx/core/js/utils/Portal';\n\nexport const PORTAL_KEY: InjectionKey<PortalInit> = Symbol('LumxPortal');\n\nexport const defaultPortalInit: PortalInit = () => ({ container: 'body' });\n\n/**\n * Customize where <Portal> wrapped elements render (tooltip, popover, dialog, etc.)\n */\nexport const PortalProvider = defineComponent(\n (props: PortalProviderProps, { slots }) => {\n provide(PORTAL_KEY, props.value);\n return () => slots.default?.();\n },\n {\n name: 'LumxPortalProvider',\n props: {\n value: {\n type: Function as PropType<PortalInit>,\n required: true,\n },\n },\n },\n);\n","import { defineComponent, inject, onBeforeUnmount, Teleport, ref, watch } from 'vue';\nimport { PORTAL_KEY, defaultPortalInit } from './PortalProvider';\n\nexport type { PortalProps } from '@lumx/core/js/utils/Portal';\nimport type { PortalProps } from '@lumx/core/js/utils/Portal';\n\n/**\n * Render children in a portal outside the current DOM position\n * (defaults to `document.body` but can be customized with the PortalProvider)\n */\nexport const Portal = defineComponent(\n (props: PortalProps, { slots }) => {\n const portalInit = inject(PORTAL_KEY, defaultPortalInit);\n const context = ref<ReturnType<typeof portalInit> | null>(null);\n\n // Initialize portal context when enabled\n const initializePortal = () => {\n if (props.enabled) {\n context.value = portalInit();\n } else {\n context.value = null;\n }\n };\n\n // Initialize on mount and when enabled changes\n initializePortal();\n watch(() => props.enabled, initializePortal);\n\n // Register teardown on unmount\n onBeforeUnmount(() => {\n context.value?.teardown?.();\n });\n\n return () => {\n const content = slots.default?.();\n const container = context.value?.container;\n\n // If disabled or no container, render inline\n if (!props.enabled || !container) {\n return content;\n }\n\n // Render in portal using Teleport\n return <Teleport to={container}>{content}</Teleport>;\n };\n },\n {\n name: 'LumxPortal',\n props: {\n enabled: {\n type: Boolean,\n default: true,\n },\n },\n },\n);\n","/**\n * Shared types and logic for ClickAway detection.\n *\n * ClickAway detects clicks outside a set of elements and triggers a callback.\n * The core logic (event listening + target checking) is framework-agnostic.\n * Framework-specific wrappers (React hook, Vue composable) and context providers\n * (React context, Vue provide/inject) are implemented in each framework package.\n */\n\nimport type { Falsy } from '@lumx/core/js/types';\n\n/** Event types that trigger click away detection. */\nexport const CLICK_AWAY_EVENT_TYPES = ['mousedown', 'touchstart'] as const;\n\n/** Callback triggered when a click away is detected. */\nexport type ClickAwayCallback = EventListener | Falsy;\n\n/**\n * Check if the click event targets are outside all the given elements.\n *\n * @param targets - The event target elements (from `event.target` and `event.composedPath()`).\n * @param elements - The elements considered \"inside\" the click away context.\n * @returns `true` if the click is outside all elements (i.e. a click away).\n */\nexport function isClickAway(targets: HTMLElement[], elements: HTMLElement[]): boolean {\n return !elements.some((element) => targets.some((target) => element?.contains(target)));\n}\n\n/**\n * Imperative setup for click away detection.\n * Adds mousedown/touchstart listeners on `document` and calls the callback when a click\n * occurs outside the elements returned by `getElements`.\n *\n * Note: when `getElements` returns an empty array, any click is considered a click away.\n * Callers should guard against calling `setupClickAway` when no refs are registered.\n *\n * @param getElements - Getter returning the current list of elements considered \"inside\".\n * @param callback - Callback to invoke on click away.\n * @returns A teardown function that removes the event listeners.\n */\nexport function setupClickAway(\n getElements: () => HTMLElement[],\n callback: ClickAwayCallback,\n): (() => void) | undefined {\n if (!callback) {\n return undefined;\n }\n\n const listener: EventListener = (evt) => {\n const targets = [evt.composedPath?.()[0], evt.target] as HTMLElement[];\n const elements = getElements();\n if (isClickAway(targets, elements)) {\n callback(evt);\n }\n };\n\n CLICK_AWAY_EVENT_TYPES.forEach((evtType) => document.addEventListener(evtType, listener));\n return () => {\n CLICK_AWAY_EVENT_TYPES.forEach((evtType) => document.removeEventListener(evtType, listener));\n };\n}\n","import {\n defineComponent,\n inject,\n onBeforeUnmount,\n onMounted,\n provide,\n type InjectionKey,\n type PropType,\n type Ref,\n} from 'vue';\nimport { setupClickAway, type ClickAwayCallback } from '@lumx/core/js/utils/ClickAway';\n\ninterface ContextValue {\n childrenRefs: HTMLElement[];\n addRefs(...newChildrenRefs: Array<Ref<HTMLElement | undefined>>): void;\n}\n\nexport const CLICK_AWAY_KEY: InjectionKey<ContextValue> = Symbol('LumxClickAway');\n\n/**\n * Component combining click away detection with Vue's provide/inject to hook into the component tree\n * and take into account both the DOM tree and the component tree to detect click away.\n */\nexport const ClickAwayProvider = defineComponent(\n (\n props: {\n callback: ClickAwayCallback;\n childrenRefs: Ref<Array<Ref<HTMLElement | undefined>>>;\n parentRef?: Ref<HTMLElement | undefined>;\n },\n { slots },\n ) => {\n const parentContext = inject(CLICK_AWAY_KEY, null);\n\n const contextChildrenRefs: HTMLElement[] = [];\n\n const currentContext: ContextValue = {\n childrenRefs: contextChildrenRefs,\n addRefs(...newChildrenRefs) {\n for (const newRef of newChildrenRefs) {\n const el = newRef.value;\n if (el) {\n contextChildrenRefs.push(el);\n }\n }\n if (parentContext) {\n parentContext.addRefs(...newChildrenRefs);\n if (props.parentRef) {\n parentContext.addRefs(props.parentRef);\n }\n }\n },\n };\n\n provide(CLICK_AWAY_KEY, currentContext);\n\n let teardown: (() => void) | undefined;\n\n onMounted(() => {\n const refs = props.childrenRefs.value;\n if (refs) {\n currentContext.addRefs(...refs);\n }\n\n // Setup click away using the context's collected refs directly\n teardown = setupClickAway(() => contextChildrenRefs, props.callback);\n });\n\n onBeforeUnmount(() => {\n teardown?.();\n });\n\n return () => slots.default?.();\n },\n {\n name: 'LumxClickAwayProvider',\n props: {\n callback: {\n type: [Function, Boolean, undefined] as PropType<ClickAwayCallback>,\n default: undefined,\n },\n childrenRefs: {\n type: Object as PropType<Ref<Array<Ref<HTMLElement | undefined>>>>,\n required: true,\n },\n parentRef: {\n type: Object as PropType<Ref<HTMLElement | undefined>>,\n default: undefined,\n },\n },\n },\n);\n"],"names":["useTheme","options","Theme","defaultTheme","injected","inject","computed","unref","ThemeProvider","defineComponent","props","slots","provide","PORTAL_KEY","Symbol","defaultPortalInit","container","PortalProvider","value","default","name","type","Function","required","_isSlot","s","Object","prototype","toString","call","_isVNode","Portal","portalInit","context","ref","initializePortal","enabled","watch","onBeforeUnmount","teardown","content","_createVNode","Teleport","Boolean","CLICK_AWAY_EVENT_TYPES","isClickAway","targets","elements","element","target","setupClickAway","getElements","callback","listener","evt","evtType","CLICK_AWAY_KEY","ClickAwayProvider","parentContext","contextChildrenRefs","currentContext","childrenRefs","addRefs","newChildrenRefs","newRef","el","push","parentRef","onMounted","refs","undefined"],"mappings":";;AAWO,SAASA,EAASC,IAAoB,EAAE,cAAcC,EAAM,SAAyC;AACxG,QAAM,EAAE,cAAAC,MAAiBF,GACnBG,IAAWC,EAAmD,SAAS,MAAS;AACtF,SAAOC,EAAS,MAAMC,EAAMH,CAAQ,KAAKD,CAAY;A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EAAoBO,KAAKD,CAAE;AAAA,MAEnC;AACA,MAAIP,MACAA,EAAcI,QAAQ,GAAGC,CAAe,GACpCrD,EAAMyD,aACNT,EAAcI,QAAQpD,EAAMyD,SAAS;AAAA,IAGjD;AAAA;AAGJvD,EAAAA,EAAQ4C,GAAgBI,CAAc;AAEtC,MAAIrB;AAEJ6B,SAAAA,EAAU,MAAM;AACZ,UAAMC,IAAO3D,EAAMmD,aAAa3C;AAChC,IAAImD,KACAT,EAAeE,QAAQ,GAAGO,CAAI,GAIlC9B,IAAWW,EAAe,MAAMS,GAAqBjD,EAAM0C,QAAQ;AAAA,EACvE,CAAC,GAEDd,EAAgB,MAAM;AAClBC,IAAAA,IAAQ;AAAA,EACZ,CAAC,GAEM,MAAM5B,EAAMQ,UAAO;AAC9B,GACA;AAAA,EACIC,MAAM;AAAA,EACNV,OAAO;AAAA,IACH0C,UAAU;AAAA,MACN/B,MAAM,CAACC,UAAUqB,SAAS2B,MAAS;AAAA,MACnCnD,SAASmD;AAAAA;IAEbT,cAAc;AAAA,MACVxC,MAAMK;AAAAA,MACNH,UAAU;AAAA;IAEd4C,WAAW;AAAA,MACP9C,MAAMK;AAAAA,MACNP,SAASmD;AAAAA,IACb;AAAA,EACJ;AACJ,CACJ;"}
|
|
1
|
+
{"version":3,"file":"BrPeaE_u.js","sources":["../../src/utils/theme/useTheme.ts","../../src/utils/theme/ThemeProvider.ts","../../src/utils/Portal/PortalProvider.tsx","../../src/utils/Portal/Portal.tsx","../../../lumx-core/src/js/utils/ClickAway/index.ts","../../src/utils/ClickAway/ClickAwayProvider.tsx"],"sourcesContent":["import { type ComputedRef, type Ref, computed, inject, unref } from 'vue';\n\nimport { Theme } from '@lumx/core/js/constants';\n\nexport interface UseTheme {\n defaultTheme?: Theme;\n}\n/**\n * Retrieves the globally applied theme.\n * @returns computed theme value (auto-updates when the provided theme changes)\n */\nexport function useTheme(options: UseTheme = { defaultTheme: Theme.light }): ComputedRef<Theme | undefined> {\n const { defaultTheme } = options;\n const injected = inject<Theme | Ref<Theme | undefined> | undefined>('theme', undefined);\n return computed(() => unref(injected) || defaultTheme);\n}\n","import { computed, defineComponent, provide, type PropType } from 'vue';\nimport type { Theme } from '@lumx/core/js/constants';\n\n/**\n * ThemeProvider for Vue: wraps children with `provide('theme', value)` for theme isolation.\n * Vue's `provide()` requires a component boundary, so this is a component.\n */\nexport const ThemeProvider = defineComponent(\n (props: { value: Theme | undefined }, { slots }) => {\n provide(\n 'theme',\n computed(() => props.value),\n );\n return () => slots.default?.();\n },\n {\n name: 'LumxThemeProvider',\n props: { value: { type: String as PropType<Theme | undefined>, default: undefined } },\n },\n);\n","import { defineComponent, provide, type PropType, type InjectionKey } from 'vue';\n\nexport type { PortalInit, PortalProviderProps } from '@lumx/core/js/utils/Portal';\nimport type { PortalInit, PortalProviderProps } from '@lumx/core/js/utils/Portal';\n\nexport const PORTAL_KEY: InjectionKey<PortalInit> = Symbol('LumxPortal');\n\nexport const defaultPortalInit: PortalInit = () => ({ container: 'body' });\n\n/**\n * Customize where <Portal> wrapped elements render (tooltip, popover, dialog, etc.)\n */\nexport const PortalProvider = defineComponent(\n (props: PortalProviderProps, { slots }) => {\n provide(PORTAL_KEY, props.value);\n return () => slots.default?.();\n },\n {\n name: 'LumxPortalProvider',\n props: {\n value: {\n type: Function as PropType<PortalInit>,\n required: true,\n },\n },\n },\n);\n","import { defineComponent, inject, onBeforeUnmount, Teleport, ref, watch } from 'vue';\nimport { PORTAL_KEY, defaultPortalInit } from './PortalProvider';\n\nexport type { PortalProps } from '@lumx/core/js/utils/Portal';\nimport type { PortalProps } from '@lumx/core/js/utils/Portal';\n\n/**\n * Render children in a portal outside the current DOM position\n * (defaults to `document.body` but can be customized with the PortalProvider)\n */\nexport const Portal = defineComponent(\n (props: PortalProps, { slots }) => {\n const portalInit = inject(PORTAL_KEY, defaultPortalInit);\n const context = ref<ReturnType<typeof portalInit> | null>(null);\n\n // Initialize portal context when enabled\n const initializePortal = () => {\n if (props.enabled) {\n context.value = portalInit();\n } else {\n context.value = null;\n }\n };\n\n // Initialize on mount and when enabled changes\n initializePortal();\n watch(() => props.enabled, initializePortal);\n\n // Register teardown on unmount\n onBeforeUnmount(() => {\n context.value?.teardown?.();\n });\n\n return () => {\n const content = slots.default?.();\n const container = context.value?.container;\n\n // If disabled or no container, render inline\n if (!props.enabled || !container) {\n return content;\n }\n\n // Render in portal using Teleport\n return <Teleport to={container}>{content}</Teleport>;\n };\n },\n {\n name: 'LumxPortal',\n props: {\n enabled: {\n type: Boolean,\n default: true,\n },\n },\n },\n);\n","/**\n * Shared types and logic for ClickAway detection.\n *\n * ClickAway detects clicks outside a set of elements and triggers a callback.\n * The core logic (event listening + target checking) is framework-agnostic.\n * Framework-specific wrappers (React hook, Vue composable) and context providers\n * (React context, Vue provide/inject) are implemented in each framework package.\n */\n\nimport type { Falsy } from '@lumx/core/js/types';\n\n/** Event types that trigger click away detection. */\nexport const CLICK_AWAY_EVENT_TYPES = ['mousedown', 'touchstart'] as const;\n\n/** Callback triggered when a click away is detected. */\nexport type ClickAwayCallback = EventListener | Falsy;\n\n/**\n * Check if the click event targets are outside all the given elements.\n *\n * @param targets - The event target elements (from `event.target` and `event.composedPath()`).\n * @param elements - The elements considered \"inside\" the click away context.\n * @returns `true` if the click is outside all elements (i.e. a click away).\n */\nexport function isClickAway(targets: HTMLElement[], elements: HTMLElement[]): boolean {\n return !elements.some((element) => element instanceof Node && targets.some((target) => element.contains(target)));\n}\n\n/**\n * Imperative setup for click away detection.\n * Adds mousedown/touchstart listeners on `document` and calls the callback when a click\n * occurs outside the elements returned by `getElements`.\n *\n * Note: when `getElements` returns an empty array, any click is considered a click away.\n * Callers should guard against calling `setupClickAway` when no refs are registered.\n *\n * @param getElements - Getter returning the current list of elements considered \"inside\".\n * @param callback - Callback to invoke on click away.\n * @returns A teardown function that removes the event listeners.\n */\nexport function setupClickAway(\n getElements: () => HTMLElement[],\n callback: ClickAwayCallback,\n): (() => void) | undefined {\n if (!callback) {\n return undefined;\n }\n\n const listener: EventListener = (evt) => {\n const targets = [evt.composedPath?.()[0], evt.target].filter((t): t is HTMLElement => t instanceof Node);\n const elements = getElements();\n if (isClickAway(targets, elements)) {\n callback(evt);\n }\n };\n\n CLICK_AWAY_EVENT_TYPES.forEach((evtType) => document.addEventListener(evtType, listener));\n return () => {\n CLICK_AWAY_EVENT_TYPES.forEach((evtType) => document.removeEventListener(evtType, listener));\n };\n}\n","import {\n defineComponent,\n inject,\n onBeforeUnmount,\n onMounted,\n provide,\n type InjectionKey,\n type PropType,\n type Ref,\n} from 'vue';\nimport { setupClickAway, type ClickAwayCallback } from '@lumx/core/js/utils/ClickAway';\n\ninterface ContextValue {\n childrenRefs: HTMLElement[];\n addRefs(...newChildrenRefs: Array<Ref<HTMLElement | undefined>>): void;\n}\n\nexport const CLICK_AWAY_KEY: InjectionKey<ContextValue> = Symbol('LumxClickAway');\n\n/**\n * Component combining click away detection with Vue's provide/inject to hook into the component tree\n * and take into account both the DOM tree and the component tree to detect click away.\n */\nexport const ClickAwayProvider = defineComponent(\n (\n props: {\n callback: ClickAwayCallback;\n childrenRefs: Ref<Array<Ref<HTMLElement | undefined>>>;\n parentRef?: Ref<HTMLElement | undefined>;\n },\n { slots },\n ) => {\n const parentContext = inject(CLICK_AWAY_KEY, null);\n\n const contextChildrenRefs: HTMLElement[] = [];\n\n const currentContext: ContextValue = {\n childrenRefs: contextChildrenRefs,\n addRefs(...newChildrenRefs) {\n for (const newRef of newChildrenRefs) {\n const el = newRef.value;\n if (el) {\n contextChildrenRefs.push(el);\n }\n }\n if (parentContext) {\n parentContext.addRefs(...newChildrenRefs);\n if (props.parentRef) {\n parentContext.addRefs(props.parentRef);\n }\n }\n },\n };\n\n provide(CLICK_AWAY_KEY, currentContext);\n\n let teardown: (() => void) | undefined;\n\n onMounted(() => {\n const refs = props.childrenRefs.value;\n if (refs) {\n currentContext.addRefs(...refs);\n }\n\n // Setup click away using the context's collected refs directly\n teardown = setupClickAway(() => contextChildrenRefs, props.callback);\n });\n\n onBeforeUnmount(() => {\n teardown?.();\n });\n\n return () => slots.default?.();\n },\n {\n name: 'LumxClickAwayProvider',\n props: {\n callback: {\n type: [Function, Boolean, undefined] as PropType<ClickAwayCallback>,\n default: undefined,\n },\n childrenRefs: {\n type: Object as PropType<Ref<Array<Ref<HTMLElement | undefined>>>>,\n required: true,\n },\n parentRef: {\n type: Object as PropType<Ref<HTMLElement | undefined>>,\n default: undefined,\n },\n },\n },\n);\n"],"names":["useTheme","options","Theme","defaultTheme","injected","inject","computed","unref","ThemeProvider","defineComponent","props","slots","provide","PORTAL_KEY","Symbol","defaultPortalInit","container","PortalProvider","value","default","name","type","Function","required","_isSlot","s","Object","prototype","toString","call","_isVNode","Portal","portalInit","context","ref","initializePortal","enabled","watch","onBeforeUnmount","teardown","content","_createVNode","Teleport","Boolean","CLICK_AWAY_EVENT_TYPES","isClickAway","targets","elements","element","target","setupClickAway","getElements","callback","listener","evt","t","evtType","CLICK_AWAY_KEY","ClickAwayProvider","parentContext","contextChildrenRefs","currentContext","childrenRefs","addRefs","newChildrenRefs","newRef","el","push","parentRef","onMounted","refs","undefined"],"mappings":";;AAWO,SAASA,EAASC,IAAoB,EAAE,cAAcC,EAAM,SAAyC;AACxG,QAAM,EAAE,cAAAC,MAAiBF,GACnBG,IAAWC,EAAmD,SAAS,MAAS;AACtF,SAAOC,EAAS,MAAMC,EAAMH,CAAQ,KAAKD,CAAY;AACzD;ACRO,MAAMK,IAAgBC;AAAA,EACzB,CAACC,GAAqC,EAAE,OAAAC,SACpCC;AAAA,IACI;AAAA,IACAN,EAAS,MAAMI,EAAM,KAAK;AAAA,EAAA,GAEvB,MAAMC,EAAM,UAAA;AAAA,EAEvB;AAAA,IACI,MAAM;AAAA,IACN,OAAO,EAAE,OAAO,EAAE,MAAM,QAAuC,SAAS,SAAU;AAAA,EAAE;AAE5F,GCdaE,IAAuCC,uBAAO,YAAY,GAE1DC,IAAgCA,OAAO;AAAA,EAAEC,WAAW;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,KACAT,EAAeE,QAAQ,GAAGO,CAAI,GAIlC/B,IAAWW,EAAe,MAAMU,GAAqBlD,EAAM0C,QAAQ;AAAA,EACvE,CAAC,GAEDd,EAAgB,MAAM;AAClBC,IAAAA,IAAQ;AAAA,EACZ,CAAC,GAEM,MAAM5B,EAAMQ,UAAO;AAC9B,GACA;AAAA,EACIC,MAAM;AAAA,EACNV,OAAO;AAAA,IACH0C,UAAU;AAAA,MACN/B,MAAM,CAACC,UAAUqB,SAAS4B,MAAS;AAAA,MACnCpD,SAASoD;AAAAA;IAEbT,cAAc;AAAA,MACVzC,MAAMK;AAAAA,MACNH,UAAU;AAAA;IAEd6C,WAAW;AAAA,MACP/C,MAAMK;AAAAA,MACNP,SAASoD;AAAAA,IACb;AAAA,EACJ;AACJ,CACJ;"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { UserBlockProps as UIProps, UserBlockPropsToOverride, CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS, UserBlockSize } from '@lumx/core/js/components/UserBlock';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
import { AvatarProps } from '../avatar';
|
|
4
|
+
export type { UserBlockSize };
|
|
5
|
+
export type UserBlockProps = VueToJSXProps<UIProps, UserBlockPropsToOverride | 'handleClick' | 'handleMouseEnter' | 'handleMouseLeave' | 'simpleAction' | 'multipleActions' | 'additionalFields' | 'after'> & {
|
|
6
|
+
/** Props to pass to the avatar. */
|
|
7
|
+
avatarProps?: Omit<AvatarProps, 'alt'>;
|
|
8
|
+
/** Props to pass to the link wrapping the avatar thumbnail. */
|
|
9
|
+
linkProps?: Record<string, any>;
|
|
10
|
+
};
|
|
11
|
+
export declare const emitSchema: {
|
|
12
|
+
click: () => boolean;
|
|
13
|
+
mouseenter: () => boolean;
|
|
14
|
+
mouseleave: () => boolean;
|
|
15
|
+
};
|
|
16
|
+
export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
|
|
17
|
+
/**
|
|
18
|
+
* UserBlock component.
|
|
19
|
+
*
|
|
20
|
+
* @param props Component props.
|
|
21
|
+
* @return Vue element.
|
|
22
|
+
*/
|
|
23
|
+
declare const UserBlock: import('vue').DefineSetupFnComponent<UserBlockProps, {
|
|
24
|
+
click: () => boolean;
|
|
25
|
+
mouseenter: () => boolean;
|
|
26
|
+
mouseleave: () => boolean;
|
|
27
|
+
}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "after" | "multipleActions" | "simpleAction" | "additionalFields" | UserBlockPropsToOverride> & {
|
|
28
|
+
class?: string;
|
|
29
|
+
} & {
|
|
30
|
+
/** Props to pass to the avatar. */
|
|
31
|
+
avatarProps?: Omit<AvatarProps, "alt">;
|
|
32
|
+
/** Props to pass to the link wrapping the avatar thumbnail. */
|
|
33
|
+
linkProps?: Record<string, any>;
|
|
34
|
+
} & {
|
|
35
|
+
onClick?: (() => any) | undefined;
|
|
36
|
+
onMouseenter?: (() => any) | undefined;
|
|
37
|
+
onMouseleave?: (() => any) | undefined;
|
|
38
|
+
}, import('vue').PublicProps>;
|
|
39
|
+
export default UserBlock;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
decorators: ((story: any, context: any) => {
|
|
3
|
+
setup(): {
|
|
4
|
+
as: string | object;
|
|
5
|
+
overriddenProps: any;
|
|
6
|
+
};
|
|
7
|
+
template: string;
|
|
8
|
+
})[];
|
|
9
|
+
component: any;
|
|
10
|
+
render: any;
|
|
11
|
+
argTypes: {
|
|
12
|
+
size: {
|
|
13
|
+
control: {
|
|
14
|
+
type: "select" | "inline-radio";
|
|
15
|
+
};
|
|
16
|
+
options: ("s" | "xs" | "m" | "l")[];
|
|
17
|
+
mapping: Record<string, "s" | "xs" | "m" | "l"> | undefined;
|
|
18
|
+
};
|
|
19
|
+
orientation: {
|
|
20
|
+
control: {
|
|
21
|
+
type: "select" | "inline-radio";
|
|
22
|
+
};
|
|
23
|
+
options: ("vertical" | "horizontal")[];
|
|
24
|
+
mapping: Record<string, "vertical" | "horizontal"> | undefined;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
args: Partial<import('@lumx/core/js/components/UserBlock').UserBlockProps>;
|
|
28
|
+
title: string;
|
|
29
|
+
};
|
|
30
|
+
export default _default;
|
|
31
|
+
export declare const AvatarOnly: {
|
|
32
|
+
args: {
|
|
33
|
+
avatarProps: {
|
|
34
|
+
image: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export declare const AvatarAndName: {
|
|
39
|
+
args: {
|
|
40
|
+
name: string;
|
|
41
|
+
avatarProps: {
|
|
42
|
+
image: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export declare const AvatarAndCustomName: {
|
|
47
|
+
args: {
|
|
48
|
+
avatarProps: {
|
|
49
|
+
image: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
render: (args: any) => import("vue/jsx-runtime").JSX.Element;
|
|
53
|
+
};
|
|
54
|
+
export declare const AvatarAndNameAndSecondaryFields: {
|
|
55
|
+
args: {
|
|
56
|
+
fields: string[];
|
|
57
|
+
name: string;
|
|
58
|
+
avatarProps: {
|
|
59
|
+
image: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export declare const WithAfter: {
|
|
64
|
+
args: {
|
|
65
|
+
fields: string[];
|
|
66
|
+
name: string;
|
|
67
|
+
avatarProps: {
|
|
68
|
+
image: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
render: (args: any) => import("vue/jsx-runtime").JSX.Element;
|
|
72
|
+
};
|
|
73
|
+
export declare const WithAdditionalFields: {
|
|
74
|
+
args: {
|
|
75
|
+
name: string;
|
|
76
|
+
avatarProps: {
|
|
77
|
+
image: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
render: (args: any) => import("vue/jsx-runtime").JSX.Element;
|
|
81
|
+
parameters: {
|
|
82
|
+
wrapperProps: {
|
|
83
|
+
style: {
|
|
84
|
+
width: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
export declare const SizesAndOrientations: {
|
|
90
|
+
args: {
|
|
91
|
+
fields: string[];
|
|
92
|
+
name: string;
|
|
93
|
+
avatarProps: {
|
|
94
|
+
image: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
decorators: ((story: any, context: any) => any)[];
|
|
98
|
+
};
|
|
99
|
+
export declare const WithConstrainedSize: {
|
|
100
|
+
args: {
|
|
101
|
+
fields: string[];
|
|
102
|
+
name: string;
|
|
103
|
+
avatarProps: {
|
|
104
|
+
image: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
parameters: {
|
|
108
|
+
wrapperProps: {
|
|
109
|
+
style: {
|
|
110
|
+
width: string;
|
|
111
|
+
resize: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
export declare const AsButton: {
|
|
117
|
+
argTypes: {
|
|
118
|
+
onClick: {
|
|
119
|
+
action: boolean;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
args: {
|
|
123
|
+
fields: string[];
|
|
124
|
+
name: string;
|
|
125
|
+
avatarProps: {
|
|
126
|
+
image: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
export declare const AsLink: {
|
|
131
|
+
args: {
|
|
132
|
+
linkProps: {
|
|
133
|
+
href: string;
|
|
134
|
+
};
|
|
135
|
+
fields: string[];
|
|
136
|
+
name: string;
|
|
137
|
+
avatarProps: {
|
|
138
|
+
image: string;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
export declare const WithBadge: {
|
|
143
|
+
args: {
|
|
144
|
+
fields: string[];
|
|
145
|
+
name: string;
|
|
146
|
+
avatarProps: {
|
|
147
|
+
image: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
render: (args: any) => import("vue/jsx-runtime").JSX.Element;
|
|
151
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as UserBlock, type UserBlockProps, type UserBlockSize } from './UserBlock';
|
package/index.d.ts
CHANGED