@lumx/vue 4.9.0-next.8 → 4.9.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/_internal/{DCsEMm-b.js → BqMObS2T.js} +40 -37
- package/_internal/BqMObS2T.js.map +1 -0
- package/components/button/Button.d.ts +3 -5
- package/components/button/IconButton.d.ts +3 -5
- package/components/combobox/Combobox.stories.d.ts +152 -0
- package/components/combobox/Combobox.test.stories.d.ts +112 -0
- package/components/combobox/ComboboxButton.d.ts +44 -0
- package/components/combobox/ComboboxInput.d.ts +68 -0
- package/components/combobox/ComboboxList.d.ts +15 -0
- package/components/combobox/ComboboxOption.d.ts +29 -0
- package/components/combobox/ComboboxOptionAction.d.ts +20 -0
- package/components/combobox/ComboboxOptionMoreInfo.d.ts +29 -0
- package/components/combobox/ComboboxOptionSkeleton.d.ts +14 -0
- package/components/combobox/ComboboxPopover.d.ts +20 -0
- package/components/combobox/ComboboxProvider.d.ts +16 -0
- package/components/combobox/ComboboxSection.d.ts +14 -0
- package/components/combobox/ComboboxState.d.ts +14 -0
- package/components/combobox/context/ComboboxContext.d.ts +23 -0
- package/components/combobox/context/ComboboxListContext.d.ts +14 -0
- package/components/combobox/context/ComboboxOptionContext.d.ts +16 -0
- package/components/combobox/context/useComboboxEvent.d.ts +7 -0
- package/components/combobox/context/useComboboxOpen.d.ts +7 -0
- package/components/combobox/index.d.ts +112 -0
- package/components/expansion-panel/ExpansionPanel.d.ts +39 -0
- package/components/expansion-panel/ExpansionPanel.stories.d.ts +54 -0
- package/components/expansion-panel/index.d.ts +1 -0
- package/components/image-block/ImageBlock.d.ts +19 -0
- package/components/image-block/ImageBlock.stories.d.ts +178 -0
- package/components/image-block/ImageCaption.d.ts +18 -0
- package/components/image-block/index.d.ts +1 -0
- package/components/list/ListSection.stories.d.ts +21 -23
- package/components/mosaic/Mosaic.d.ts +30 -0
- package/components/mosaic/Mosaic.stories.d.ts +93 -0
- package/components/mosaic/index.d.ts +1 -0
- package/components/text-field/RawInputText.d.ts +3 -0
- package/components/text-field/RawInputTextarea.d.ts +3 -0
- package/components/text-field/TextField.d.ts +11 -0
- package/composables/useWatchDisposable.d.ts +19 -0
- package/index.d.ts +4 -0
- package/index.js +8264 -6242
- package/index.js.map +1 -1
- package/package.json +4 -5
- package/stories/decorators/withValueOnChange.d.ts +4 -4
- package/utils/VueToJSX.d.ts +7 -0
- package/utils/index.js +2 -2
- package/_internal/DCsEMm-b.js.map +0 -1
|
@@ -1,28 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
component: any;
|
|
3
|
-
argTypes: {
|
|
4
|
-
'list.itemPadding': {
|
|
5
|
-
control: {
|
|
6
|
-
type: "select" | "inline-radio";
|
|
7
|
-
};
|
|
8
|
-
options: ("big" | "huge" | undefined)[];
|
|
9
|
-
mapping: Record<string, "big" | "huge" | undefined> | undefined;
|
|
10
|
-
};
|
|
11
|
-
'listItem.size': {
|
|
12
|
-
control: {
|
|
13
|
-
type: "select" | "inline-radio";
|
|
14
|
-
};
|
|
15
|
-
options: ("big" | "tiny" | "regular" | undefined)[];
|
|
16
|
-
mapping: Record<string, "big" | "tiny" | "regular" | undefined> | undefined;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
title: string;
|
|
20
|
-
};
|
|
21
|
-
export default _default;
|
|
22
|
-
export declare const Default: {
|
|
23
|
-
args: {
|
|
24
|
-
label: string;
|
|
25
|
-
};
|
|
26
3
|
argTypes: {
|
|
27
4
|
icon: {
|
|
28
5
|
control: {
|
|
@@ -90,6 +67,27 @@ export declare const Default: {
|
|
|
90
67
|
mdiViewList: string;
|
|
91
68
|
};
|
|
92
69
|
};
|
|
70
|
+
'list.itemPadding': {
|
|
71
|
+
control: {
|
|
72
|
+
type: "select" | "inline-radio";
|
|
73
|
+
};
|
|
74
|
+
options: ("big" | "huge" | undefined)[];
|
|
75
|
+
mapping: Record<string, "big" | "huge" | undefined> | undefined;
|
|
76
|
+
};
|
|
77
|
+
'listItem.size': {
|
|
78
|
+
control: {
|
|
79
|
+
type: "select" | "inline-radio";
|
|
80
|
+
};
|
|
81
|
+
options: ("big" | "tiny" | "regular" | undefined)[];
|
|
82
|
+
mapping: Record<string, "big" | "tiny" | "regular" | undefined> | undefined;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
title: string;
|
|
86
|
+
};
|
|
87
|
+
export default _default;
|
|
88
|
+
export declare const Default: {
|
|
89
|
+
args: {
|
|
90
|
+
label: string;
|
|
93
91
|
};
|
|
94
92
|
render({ "list.itemPadding": itemPadding, "listItem.size": itemSize, ...args }: any): import("vue/jsx-runtime").JSX.Element;
|
|
95
93
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { MosaicProps as UIProps, MosaicPropsToOverride } from '@lumx/core/js/components/Mosaic';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
import { ThumbnailProps } from '../thumbnail/Thumbnail';
|
|
4
|
+
export type MosaicThumbnailItem = Omit<ThumbnailProps, 'class'> & {
|
|
5
|
+
onClick?: (event: Event) => void;
|
|
6
|
+
};
|
|
7
|
+
export type MosaicProps = VueToJSXProps<UIProps, MosaicPropsToOverride> & {
|
|
8
|
+
/** Thumbnails. */
|
|
9
|
+
thumbnails: MosaicThumbnailItem[];
|
|
10
|
+
};
|
|
11
|
+
export declare const emitSchema: {
|
|
12
|
+
handleClick: (index: number) => boolean;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Mosaic component.
|
|
16
|
+
*
|
|
17
|
+
* @param props Component props.
|
|
18
|
+
* @return Vue element.
|
|
19
|
+
*/
|
|
20
|
+
declare const Mosaic: import('vue').DefineSetupFnComponent<MosaicProps, {
|
|
21
|
+
handleClick: (index: number) => boolean;
|
|
22
|
+
}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | MosaicPropsToOverride> & {
|
|
23
|
+
class?: string;
|
|
24
|
+
} & {
|
|
25
|
+
/** Thumbnails. */
|
|
26
|
+
thumbnails: MosaicThumbnailItem[];
|
|
27
|
+
} & {
|
|
28
|
+
onHandleClick?: ((index: number) => any) | undefined;
|
|
29
|
+
}, import('vue').PublicProps>;
|
|
30
|
+
export default Mosaic;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: any;
|
|
3
|
+
render: (args: any) => import("vue/jsx-runtime").JSX.Element;
|
|
4
|
+
args: Partial<import('@lumx/core/js/components/Mosaic').MosaicProps>;
|
|
5
|
+
argTypes: {};
|
|
6
|
+
decorators: ((story: any, context: any) => any)[];
|
|
7
|
+
title: string;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export declare const OneThumbnail: {
|
|
11
|
+
args: {
|
|
12
|
+
thumbnails: {
|
|
13
|
+
image: string;
|
|
14
|
+
}[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const OneThumbnailClickable: {
|
|
18
|
+
args: {
|
|
19
|
+
thumbnails: {
|
|
20
|
+
image: string;
|
|
21
|
+
}[];
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const TwoThumbnail: {
|
|
25
|
+
args: {
|
|
26
|
+
thumbnails: {
|
|
27
|
+
image: string;
|
|
28
|
+
}[];
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const TwoThumbnailClickable: {
|
|
32
|
+
args: {
|
|
33
|
+
thumbnails: {
|
|
34
|
+
image: string;
|
|
35
|
+
}[];
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export declare const ThreeThumbnail: {
|
|
39
|
+
args: {
|
|
40
|
+
thumbnails: {
|
|
41
|
+
image: string;
|
|
42
|
+
}[];
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export declare const ThreeThumbnailClickable: {
|
|
46
|
+
args: {
|
|
47
|
+
thumbnails: {
|
|
48
|
+
image: string;
|
|
49
|
+
}[];
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export declare const FourThumbnail: {
|
|
53
|
+
args: {
|
|
54
|
+
thumbnails: {
|
|
55
|
+
image: string;
|
|
56
|
+
}[];
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export declare const FourThumbnailClickable: {
|
|
60
|
+
args: {
|
|
61
|
+
thumbnails: {
|
|
62
|
+
image: string;
|
|
63
|
+
}[];
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export declare const FiveThumbnail: {
|
|
67
|
+
args: {
|
|
68
|
+
thumbnails: {
|
|
69
|
+
image: string;
|
|
70
|
+
}[];
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
export declare const FiveThumbnailClickable: {
|
|
74
|
+
args: {
|
|
75
|
+
thumbnails: {
|
|
76
|
+
image: string;
|
|
77
|
+
}[];
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export declare const SixThumbnail: {
|
|
81
|
+
args: {
|
|
82
|
+
thumbnails: {
|
|
83
|
+
image: string;
|
|
84
|
+
}[];
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
export declare const SixThumbnailClickable: {
|
|
88
|
+
args: {
|
|
89
|
+
thumbnails: {
|
|
90
|
+
image: string;
|
|
91
|
+
}[];
|
|
92
|
+
};
|
|
93
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Mosaic, type MosaicProps, type MosaicThumbnailItem } from './Mosaic';
|
|
@@ -3,6 +3,7 @@ import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
|
3
3
|
export type RawInputTextProps = VueToJSXProps<UIProps>;
|
|
4
4
|
export declare const emitSchema: {
|
|
5
5
|
change: (value: string, _name?: string, _event?: Event) => boolean;
|
|
6
|
+
input: (value: string, _name?: string, _event?: Event) => boolean;
|
|
6
7
|
};
|
|
7
8
|
/**
|
|
8
9
|
* Raw input text component.
|
|
@@ -13,9 +14,11 @@ export declare const emitSchema: {
|
|
|
13
14
|
*/
|
|
14
15
|
declare const RawInputText: import('vue').DefineSetupFnComponent<RawInputTextProps, {
|
|
15
16
|
change: (value: string, _name?: string, _event?: Event) => boolean;
|
|
17
|
+
input: (value: string, _name?: string, _event?: Event) => boolean;
|
|
16
18
|
}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
17
19
|
class?: string;
|
|
18
20
|
} & {
|
|
21
|
+
onInput?: ((value: string, _name?: string | undefined, _event?: Event | undefined) => any) | undefined;
|
|
19
22
|
onChange?: ((value: string, _name?: string | undefined, _event?: Event | undefined) => any) | undefined;
|
|
20
23
|
}, import('vue').PublicProps>;
|
|
21
24
|
export default RawInputText;
|
|
@@ -3,6 +3,7 @@ import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
|
3
3
|
export type RawInputTextareaProps = VueToJSXProps<UIProps>;
|
|
4
4
|
export declare const emitSchema: {
|
|
5
5
|
change: (value: string, _name?: string, _event?: Event) => boolean;
|
|
6
|
+
input: (value: string, _name?: string, _event?: Event) => boolean;
|
|
6
7
|
};
|
|
7
8
|
/**
|
|
8
9
|
* Raw input textarea component.
|
|
@@ -13,9 +14,11 @@ export declare const emitSchema: {
|
|
|
13
14
|
*/
|
|
14
15
|
declare const RawInputTextarea: import('vue').DefineSetupFnComponent<RawInputTextareaProps, {
|
|
15
16
|
change: (value: string, _name?: string, _event?: Event) => boolean;
|
|
17
|
+
input: (value: string, _name?: string, _event?: Event) => boolean;
|
|
16
18
|
}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
17
19
|
class?: string;
|
|
18
20
|
} & {
|
|
21
|
+
onInput?: ((value: string, _name?: string | undefined, _event?: Event | undefined) => any) | undefined;
|
|
19
22
|
onChange?: ((value: string, _name?: string | undefined, _event?: Event | undefined) => any) | undefined;
|
|
20
23
|
}, import('vue').PublicProps>;
|
|
21
24
|
export default RawInputTextarea;
|
|
@@ -18,9 +18,14 @@ export type TextFieldProps = VueToJSXProps<UIProps, TextFieldPropsToOverride | '
|
|
|
18
18
|
minimumRows?: number;
|
|
19
19
|
/** Additional label props. */
|
|
20
20
|
labelProps?: InputLabelProps;
|
|
21
|
+
/** Ref callback for the native input element. */
|
|
22
|
+
inputRef?: (el: HTMLInputElement | HTMLTextAreaElement | null) => void;
|
|
23
|
+
/** Ref callback for the text field wrapper element. */
|
|
24
|
+
textFieldRef?: (el: HTMLElement | null) => void;
|
|
21
25
|
};
|
|
22
26
|
export declare const emitSchema: {
|
|
23
27
|
change: (value: string, _name?: string, _event?: Event) => boolean;
|
|
28
|
+
input: (value: string, _name?: string, _event?: Event) => boolean;
|
|
24
29
|
focus: (_event?: FocusEvent) => boolean;
|
|
25
30
|
blur: (_event?: FocusEvent) => boolean;
|
|
26
31
|
clear: (_event?: MouseEvent) => boolean;
|
|
@@ -34,6 +39,7 @@ export { CLASSNAME, COMPONENT_NAME };
|
|
|
34
39
|
*/
|
|
35
40
|
declare const TextField: import('vue').DefineSetupFnComponent<TextFieldProps, {
|
|
36
41
|
change: (value: string, _name?: string, _event?: Event) => boolean;
|
|
42
|
+
input: (value: string, _name?: string, _event?: Event) => boolean;
|
|
37
43
|
focus: (_event?: FocusEvent) => boolean;
|
|
38
44
|
blur: (_event?: FocusEvent) => boolean;
|
|
39
45
|
clear: (_event?: MouseEvent) => boolean;
|
|
@@ -55,7 +61,12 @@ declare const TextField: import('vue').DefineSetupFnComponent<TextFieldProps, {
|
|
|
55
61
|
minimumRows?: number;
|
|
56
62
|
/** Additional label props. */
|
|
57
63
|
labelProps?: InputLabelProps;
|
|
64
|
+
/** Ref callback for the native input element. */
|
|
65
|
+
inputRef?: (el: HTMLInputElement | HTMLTextAreaElement | null) => void;
|
|
66
|
+
/** Ref callback for the text field wrapper element. */
|
|
67
|
+
textFieldRef?: (el: HTMLElement | null) => void;
|
|
58
68
|
} & {
|
|
69
|
+
onInput?: ((value: string, _name?: string | undefined, _event?: Event | undefined) => any) | undefined;
|
|
59
70
|
onBlur?: ((_event?: FocusEvent | undefined) => any) | undefined;
|
|
60
71
|
onChange?: ((value: string, _name?: string | undefined, _event?: Event | undefined) => any) | undefined;
|
|
61
72
|
onFocus?: ((_event?: FocusEvent | undefined) => any) | undefined;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { WatchOptions, WatchSource } from 'vue';
|
|
2
|
+
type Cleanup = void | (() => void);
|
|
3
|
+
type MapSources<T> = {
|
|
4
|
+
[K in keyof T]: T[K] extends WatchSource<infer V> ? V : never;
|
|
5
|
+
};
|
|
6
|
+
type MultiWatchSources = (WatchSource<unknown> | object)[];
|
|
7
|
+
/**
|
|
8
|
+
* Watch a reactive source and run an effect that can return a cleanup function.
|
|
9
|
+
* On each re-run the previous cleanup is called automatically.
|
|
10
|
+
* Stops and cleans up on unmount.
|
|
11
|
+
*
|
|
12
|
+
* @param source One or more reactive sources to watch.
|
|
13
|
+
* @param effect Effect callback receiving the new (and old) value; may return a cleanup function.
|
|
14
|
+
* @param options Watch options (defaults to `{ immediate: true }`).
|
|
15
|
+
* @returns A stop function that also runs the latest cleanup.
|
|
16
|
+
*/
|
|
17
|
+
export declare function useWatchDisposable<T extends MultiWatchSources>(source: [...T], effect: (value: MapSources<T>, oldValue: MapSources<T> | undefined) => Cleanup, options?: WatchOptions): () => void;
|
|
18
|
+
export declare function useWatchDisposable<T>(source: WatchSource<T>, effect: (value: T, oldValue: T | undefined) => Cleanup, options?: WatchOptions): () => void;
|
|
19
|
+
export {};
|
package/index.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export * from '@lumx/core/js/constants';
|
|
2
2
|
export * from '@lumx/core/js/types';
|
|
3
3
|
export * from './components/avatar';
|
|
4
|
+
export * from './components/combobox';
|
|
4
5
|
export * from './components/badge';
|
|
5
6
|
export * from './components/button';
|
|
6
7
|
export * from './components/checkbox';
|
|
7
8
|
export * from './components/chip';
|
|
8
9
|
export * from './components/divider';
|
|
9
10
|
export * from './components/drag-handle';
|
|
11
|
+
export * from './components/expansion-panel';
|
|
10
12
|
export * from './components/flag';
|
|
11
13
|
export * from './components/flex-box';
|
|
12
14
|
export * from './components/grid-column';
|
|
@@ -17,6 +19,7 @@ export * from './components/input-label';
|
|
|
17
19
|
export * from './components/link';
|
|
18
20
|
export * from './components/list';
|
|
19
21
|
export * from './components/message';
|
|
22
|
+
export * from './components/mosaic';
|
|
20
23
|
export * from './components/popover';
|
|
21
24
|
export * from './components/popover-dialog';
|
|
22
25
|
export * from './components/progress';
|
|
@@ -26,6 +29,7 @@ export * from './components/switch';
|
|
|
26
29
|
export * from './components/text-field';
|
|
27
30
|
export * from './components/uploader';
|
|
28
31
|
export * from './components/generic-block';
|
|
32
|
+
export * from './components/image-block';
|
|
29
33
|
export * from './components/inline-list';
|
|
30
34
|
export * from './components/table';
|
|
31
35
|
export * from './components/tabs';
|