@lumx/vue 4.13.0-next.5 → 4.14.0-next.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/components/combobox/ComboboxButton.d.ts +12 -0
- package/components/combobox/index.d.ts +4 -0
- package/components/combobox/useWrappedRenderOptionSlot.d.ts +11 -0
- package/components/combobox/useWrappedRenderSectionTitleSlot.d.ts +10 -0
- package/components/select-button/SelectButton.d.ts +175 -0
- package/components/select-button/SelectButton.stories.d.ts +126 -0
- package/components/select-button/SelectButton.test.d.ts +1 -0
- package/components/select-button/SelectButton.test.stories.d.ts +33 -0
- package/components/select-button/Stories/CustomRender.vue.d.ts +2 -0
- package/components/select-button/Stories/WithInfiniteScroll.vue.d.ts +2 -0
- package/components/select-button/index.d.ts +13 -0
- package/index.d.ts +1 -0
- package/index.js +4236 -4059
- package/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -7,6 +7,12 @@ export type ComboboxButtonProps = VueToJSXProps<UIProps, 'label' | 'renderButton
|
|
|
7
7
|
value?: string;
|
|
8
8
|
/** Controls how the label/value is displayed. @default 'show-selection' */
|
|
9
9
|
labelDisplayMode?: ComboboxButtonLabelDisplayMode;
|
|
10
|
+
/** Called when an option is selected. */
|
|
11
|
+
onSelect?: (option: {
|
|
12
|
+
value: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
/** Custom render function replacing the default `<Button>`. See `ComboboxButtonProps.renderButton` in core. */
|
|
15
|
+
renderButton?: UIProps['renderButton'];
|
|
10
16
|
};
|
|
11
17
|
/**
|
|
12
18
|
* Combobox.Button component - Button trigger for select-only combobox mode.
|
|
@@ -27,6 +33,12 @@ declare const ComboboxButton: import('vue').DefineSetupFnComponent<ComboboxButto
|
|
|
27
33
|
value?: string;
|
|
28
34
|
/** Controls how the label/value is displayed. @default 'show-selection' */
|
|
29
35
|
labelDisplayMode?: ComboboxButtonLabelDisplayMode;
|
|
36
|
+
/** Called when an option is selected. */
|
|
37
|
+
onSelect?: (option: {
|
|
38
|
+
value: string;
|
|
39
|
+
}) => void;
|
|
40
|
+
/** Custom render function replacing the default `<Button>`. See `ComboboxButtonProps.renderButton` in core. */
|
|
41
|
+
renderButton?: UIProps["renderButton"];
|
|
30
42
|
} & {
|
|
31
43
|
onSelect?: ((option: {
|
|
32
44
|
value: string;
|
|
@@ -33,6 +33,10 @@ export declare const Combobox: {
|
|
|
33
33
|
label: string;
|
|
34
34
|
value?: string;
|
|
35
35
|
labelDisplayMode?: import('@lumx/core/js/components/Combobox/ComboboxButton').ComboboxButtonLabelDisplayMode;
|
|
36
|
+
onSelect?: (option: {
|
|
37
|
+
value: string;
|
|
38
|
+
}) => void;
|
|
39
|
+
renderButton?: import('@lumx/core/js/components/Combobox/ComboboxButton').ComboboxButtonProps["renderButton"];
|
|
36
40
|
} & {
|
|
37
41
|
onSelect?: ((option: {
|
|
38
42
|
value: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComputedRef, Slot } from 'vue';
|
|
2
|
+
import { JSXElement } from '@lumx/core/js/types';
|
|
3
|
+
import { RenderOptionContext } from '@lumx/core/js/utils/select/types';
|
|
4
|
+
/** Render function passed as `renderOption` to a core Select* template. */
|
|
5
|
+
type WrappedRenderOption = (option: unknown, context: RenderOptionContext) => JSXElement;
|
|
6
|
+
/**
|
|
7
|
+
* Adapts a Vue scoped slot returning a `<ComboboxOption>` into the `renderOption`
|
|
8
|
+
* callback shape expected by the core Select* templates.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useWrappedRenderOptionSlot(slot: Slot | undefined): ComputedRef<WrappedRenderOption | undefined>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComputedRef, Slot } from 'vue';
|
|
2
|
+
import { JSXElement } from '@lumx/core/js/types';
|
|
3
|
+
/** Render function passed as `renderSectionTitle` to a core Select* template. */
|
|
4
|
+
type WrappedRenderSectionTitle = (sectionId: string, options: unknown[]) => JSXElement;
|
|
5
|
+
/**
|
|
6
|
+
* Adapts a Vue scoped section-title slot into the `renderSectionTitle` callback shape
|
|
7
|
+
* expected by the core Select* templates.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useWrappedRenderSectionTitleSlot(slot: Slot | undefined): ComputedRef<WrappedRenderSectionTitle | undefined>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { EmitFn, EmitsToProps, PublicProps, SlotsType } from 'vue';
|
|
2
|
+
import { BaseSelectButtonWrapperProps } from '@lumx/core/js/utils/select/types';
|
|
3
|
+
import { SelectButtonProps as UIProps } from '@lumx/core/js/components/SelectButton';
|
|
4
|
+
import { EmitsOf } from '../../utils/VueToJSX';
|
|
5
|
+
/**
|
|
6
|
+
* Props exposed to the `#button` scoped slot of `<SelectButton>`.
|
|
7
|
+
*
|
|
8
|
+
* `buttonProps` **must** be spread on the slot root element so that the combobox ARIA
|
|
9
|
+
* attributes (`role="combobox"`, `aria-controls`, `aria-haspopup`, `aria-expanded`,
|
|
10
|
+
* `aria-activedescendant`) and the internal `ref` callback reach the underlying DOM node.
|
|
11
|
+
*
|
|
12
|
+
* The `<Tooltip label={label}>` wrapper is always rendered around the slot root, keeping
|
|
13
|
+
* accessibility semantics consistent regardless of the element returned by the slot.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```html
|
|
17
|
+
* <!-- IconButton trigger (no text children — use labelDisplayMode="show-tooltip") -->
|
|
18
|
+
* <SelectButton label="More" label-display-mode="show-tooltip" ...>
|
|
19
|
+
* <template #button="{ buttonProps, label }">
|
|
20
|
+
* <IconButton v-bind="buttonProps" :icon="mdiDotsVertical" :label="label" :hide-tooltip="true" />
|
|
21
|
+
* </template>
|
|
22
|
+
* </SelectButton>
|
|
23
|
+
*
|
|
24
|
+
* <!-- Chip trigger -->
|
|
25
|
+
* <SelectButton label="Status" ...>
|
|
26
|
+
* <template #button="{ buttonProps, children }">
|
|
27
|
+
* <Chip v-bind="buttonProps" is-clickable>{{ children }}</Chip>
|
|
28
|
+
* </template>
|
|
29
|
+
* </SelectButton>
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export interface SelectButtonButtonSlotProps {
|
|
33
|
+
/**
|
|
34
|
+
* Merged props that **must** be spread on the slot root element.
|
|
35
|
+
*
|
|
36
|
+
* Contains: `role="combobox"`, `aria-controls`, `aria-haspopup="listbox"`,
|
|
37
|
+
* `aria-expanded`, `aria-activedescendant=""`, the internal `ref` callback,
|
|
38
|
+
* `className`, and any caller-provided button attrs.
|
|
39
|
+
*/
|
|
40
|
+
buttonProps: Record<string, any>;
|
|
41
|
+
/**
|
|
42
|
+
* The configured label (always defined).
|
|
43
|
+
* Useful for setting the `label` prop of `<IconButton>` or `<Tooltip>`.
|
|
44
|
+
*/
|
|
45
|
+
label: string;
|
|
46
|
+
/**
|
|
47
|
+
* Resolved button children computed from `labelDisplayMode`:
|
|
48
|
+
* - `'show-selection'` — selected option name, falls back to the label when nothing is selected.
|
|
49
|
+
* - `'show-label'` — always the label.
|
|
50
|
+
* - `'show-tooltip'` — `null` (label is surfaced only via the Tooltip; ignore this in the slot).
|
|
51
|
+
*/
|
|
52
|
+
children: string | null;
|
|
53
|
+
}
|
|
54
|
+
/** Common props shared by single and multi modes. */
|
|
55
|
+
interface BaseSelectButtonProps<O = any> extends BaseSelectButtonWrapperProps<O> {
|
|
56
|
+
/** Controls how the label/value is displayed in the button. */
|
|
57
|
+
labelDisplayMode?: UIProps<O>['labelDisplayMode'];
|
|
58
|
+
/** Props forwarded to the Combobox.Popover. */
|
|
59
|
+
popoverProps?: Record<string, any>;
|
|
60
|
+
/** CSS class. */
|
|
61
|
+
class?: string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Single-selection props (`selectionType` defaults to `'single'`).
|
|
65
|
+
* Backwards-compatible — existing consumers do not need to set `selectionType`.
|
|
66
|
+
*/
|
|
67
|
+
export interface SingleSelectButtonProps<O = any> extends BaseSelectButtonProps<O> {
|
|
68
|
+
/** Selection type. Optional — defaults to `'single'`. */
|
|
69
|
+
selectionType?: 'single';
|
|
70
|
+
/** Selected option (or `undefined` when nothing is selected). */
|
|
71
|
+
value?: O;
|
|
72
|
+
}
|
|
73
|
+
/** Multi-selection props (`selectionType: 'multiple'` is required to opt in). */
|
|
74
|
+
export interface MultipleSelectButtonProps<O = any> extends BaseSelectButtonProps<O> {
|
|
75
|
+
/** Selection type. */
|
|
76
|
+
selectionType: 'multiple';
|
|
77
|
+
/** Selected options. */
|
|
78
|
+
value?: O[];
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* SelectButton props — supports both single and multi selection.
|
|
82
|
+
* Discriminated on `selectionType`: when `'multiple'`, `value` is `O[]`.
|
|
83
|
+
*/
|
|
84
|
+
export type SelectButtonProps<O = any> = SingleSelectButtonProps<O> | MultipleSelectButtonProps<O>;
|
|
85
|
+
/**
|
|
86
|
+
* SelectButton events schema
|
|
87
|
+
*/
|
|
88
|
+
export declare const emitSchema: {
|
|
89
|
+
/**
|
|
90
|
+
* Selection change. Payload type depends on `selectionType`:
|
|
91
|
+
* - default / `'single'` → `O | undefined` (option on select).
|
|
92
|
+
* - `'multiple'` → `O[] | undefined` (toggled array).
|
|
93
|
+
*
|
|
94
|
+
* The runtime validator uses `unknown` since the typed payload can't be expressed
|
|
95
|
+
* without the component generic. The typed payload is restored via `SelectButtonEmits`.
|
|
96
|
+
*/
|
|
97
|
+
change: (_newValue?: unknown) => boolean;
|
|
98
|
+
/** Bottom of the options list reached — consumer should fetch the next page. */
|
|
99
|
+
'load-more': () => boolean;
|
|
100
|
+
/** Dropdown opened or closed. */
|
|
101
|
+
open: (_isOpen: boolean) => boolean;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* SelectButton emits typed over the option type O and the selection type S.
|
|
105
|
+
*/
|
|
106
|
+
type SelectButtonEmits<O, S extends 'single' | 'multiple'> = Omit<EmitsOf<typeof emitSchema>, 'change'> & {
|
|
107
|
+
change: (newValue: (S extends 'multiple' ? O[] : O) | undefined) => void;
|
|
108
|
+
};
|
|
109
|
+
type SingleSelectButtonPublicProps<O> = SingleSelectButtonProps<O> & EmitsToProps<SelectButtonEmits<O, 'single'>>;
|
|
110
|
+
type MultipleSelectButtonPublicProps<O> = MultipleSelectButtonProps<O> & EmitsToProps<SelectButtonEmits<O, 'multiple'>>;
|
|
111
|
+
/**
|
|
112
|
+
* SelectButton component constructor with generic type attached to props.
|
|
113
|
+
*
|
|
114
|
+
* Vue's `defineComponent` setup-fn overload cannot carry an unbound generic from the setup
|
|
115
|
+
* signature to the resulting component constructor, so the generic is layered on via cast.
|
|
116
|
+
*
|
|
117
|
+
* Two `new` overloads provide per-branch emit narrowing matching `SelectTextField`.
|
|
118
|
+
*/
|
|
119
|
+
export interface SelectButtonConstructor {
|
|
120
|
+
new <O = any>(props: SingleSelectButtonPublicProps<O> & PublicProps): {
|
|
121
|
+
$props: SingleSelectButtonPublicProps<O>;
|
|
122
|
+
$emit: EmitFn<SelectButtonEmits<O, 'single'>>;
|
|
123
|
+
};
|
|
124
|
+
new <O = any>(props: MultipleSelectButtonPublicProps<O> & PublicProps): {
|
|
125
|
+
$props: MultipleSelectButtonPublicProps<O>;
|
|
126
|
+
$emit: EmitFn<SelectButtonEmits<O, 'multiple'>>;
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* A Button with a select dropdown to choose between a list of options.
|
|
131
|
+
*
|
|
132
|
+
* Scoped slots:
|
|
133
|
+
* - `button({ buttonProps, label, content })` — replaces the default `<Button rightIcon={mdiMenuDown}>` trigger.
|
|
134
|
+
* `buttonProps` **must** be spread on the slot root so that the combobox ARIA attributes and `ref`
|
|
135
|
+
* reach the DOM node. The `<Tooltip>` wrapper is always rendered. See `SelectButtonButtonSlotProps`.
|
|
136
|
+
* - `option({ option, index })` — custom option rendering inside a `<Combobox.Option>`.
|
|
137
|
+
* - `sectionTitle({ sectionId, options })` — custom section header rendering.
|
|
138
|
+
*/
|
|
139
|
+
declare const SelectButton: import('vue').DefineSetupFnComponent<SelectButtonProps<any>, {
|
|
140
|
+
/**
|
|
141
|
+
* Selection change. Payload type depends on `selectionType`:
|
|
142
|
+
* - default / `'single'` → `O | undefined` (option on select).
|
|
143
|
+
* - `'multiple'` → `O[] | undefined` (toggled array).
|
|
144
|
+
*
|
|
145
|
+
* The runtime validator uses `unknown` since the typed payload can't be expressed
|
|
146
|
+
* without the component generic. The typed payload is restored via `SelectButtonEmits`.
|
|
147
|
+
*/
|
|
148
|
+
change: (_newValue?: unknown) => boolean;
|
|
149
|
+
/** Bottom of the options list reached — consumer should fetch the next page. */
|
|
150
|
+
'load-more': () => boolean;
|
|
151
|
+
/** Dropdown opened or closed. */
|
|
152
|
+
open: (_isOpen: boolean) => boolean;
|
|
153
|
+
}, SlotsType<{
|
|
154
|
+
/**
|
|
155
|
+
* Replaces the default `<Button rightIcon={mdiMenuDown}>` trigger.
|
|
156
|
+
* `buttonProps` must be spread on the root element of the slot.
|
|
157
|
+
*/
|
|
158
|
+
button: SelectButtonButtonSlotProps;
|
|
159
|
+
/** Custom option rendering inside a `<SelectButtonOption>`. */
|
|
160
|
+
option: {
|
|
161
|
+
option: unknown;
|
|
162
|
+
index: number;
|
|
163
|
+
};
|
|
164
|
+
/** Custom section header rendering. */
|
|
165
|
+
sectionTitle: {
|
|
166
|
+
sectionId: string;
|
|
167
|
+
options: unknown[];
|
|
168
|
+
};
|
|
169
|
+
}>, SelectButtonProps<any> & {
|
|
170
|
+
onChange?: ((_newValue?: unknown) => any) | undefined;
|
|
171
|
+
onOpen?: ((_isOpen: boolean) => any) | undefined;
|
|
172
|
+
"onLoad-more"?: (() => any) | undefined;
|
|
173
|
+
}, PublicProps>;
|
|
174
|
+
declare const _default: SelectButtonConstructor & typeof SelectButton;
|
|
175
|
+
export default _default;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: any;
|
|
3
|
+
play({ canvas }: any): Promise<void>;
|
|
4
|
+
title: string;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Default: {
|
|
8
|
+
args: {
|
|
9
|
+
value: undefined;
|
|
10
|
+
};
|
|
11
|
+
decorators: ((story: any, context: any) => any)[];
|
|
12
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
13
|
+
};
|
|
14
|
+
export declare const WithSelectedValue: {
|
|
15
|
+
args: {
|
|
16
|
+
value: {
|
|
17
|
+
category: string;
|
|
18
|
+
categoryIcon: string;
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
icon: string;
|
|
22
|
+
description: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
decorators: ((story: any, context: any) => any)[];
|
|
26
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
27
|
+
};
|
|
28
|
+
export declare const WithSections: {
|
|
29
|
+
args: {
|
|
30
|
+
value: undefined;
|
|
31
|
+
};
|
|
32
|
+
decorators: ((story: any, context: any) => any)[];
|
|
33
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
34
|
+
};
|
|
35
|
+
export declare const WithDescriptions: {
|
|
36
|
+
args: {
|
|
37
|
+
value: undefined;
|
|
38
|
+
};
|
|
39
|
+
decorators: ((story: any, context: any) => any)[];
|
|
40
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
41
|
+
};
|
|
42
|
+
export declare const Disabled: {
|
|
43
|
+
args: {
|
|
44
|
+
value: {
|
|
45
|
+
category: string;
|
|
46
|
+
categoryIcon: string;
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
icon: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
decorators: ((story: any, context: any) => any)[];
|
|
54
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
55
|
+
};
|
|
56
|
+
export declare const Loading: {
|
|
57
|
+
args: {
|
|
58
|
+
value: undefined;
|
|
59
|
+
};
|
|
60
|
+
decorators: ((story: any, context: any) => any)[];
|
|
61
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
62
|
+
};
|
|
63
|
+
export declare const LoadingMore: {
|
|
64
|
+
args: {
|
|
65
|
+
value: undefined;
|
|
66
|
+
};
|
|
67
|
+
decorators: ((story: any, context: any) => any)[];
|
|
68
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
69
|
+
};
|
|
70
|
+
export declare const ErrorState: {
|
|
71
|
+
args: {
|
|
72
|
+
value: undefined;
|
|
73
|
+
};
|
|
74
|
+
decorators: ((story: any, context: any) => any)[];
|
|
75
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
76
|
+
};
|
|
77
|
+
export declare const MultipleSelection: {
|
|
78
|
+
args: {
|
|
79
|
+
value: never[];
|
|
80
|
+
};
|
|
81
|
+
decorators: ((story: any, context: any) => any)[];
|
|
82
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
83
|
+
};
|
|
84
|
+
export declare const MultipleWithPreselected: {
|
|
85
|
+
args: {
|
|
86
|
+
value: {
|
|
87
|
+
category: string;
|
|
88
|
+
categoryIcon: string;
|
|
89
|
+
id: string;
|
|
90
|
+
name: string;
|
|
91
|
+
icon: string;
|
|
92
|
+
description: string;
|
|
93
|
+
}[];
|
|
94
|
+
};
|
|
95
|
+
decorators: ((story: any, context: any) => any)[];
|
|
96
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
97
|
+
};
|
|
98
|
+
export declare const WithNbOptionMessage: {
|
|
99
|
+
args: {
|
|
100
|
+
value: undefined;
|
|
101
|
+
};
|
|
102
|
+
decorators: ((story: any, context: any) => any)[];
|
|
103
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
104
|
+
};
|
|
105
|
+
export declare const LabelDisplayModes: {
|
|
106
|
+
play: () => void;
|
|
107
|
+
argTypes: {
|
|
108
|
+
labelDisplayMode: {
|
|
109
|
+
control: boolean;
|
|
110
|
+
};
|
|
111
|
+
value: {
|
|
112
|
+
control: boolean;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
render: ({ value, labelDisplayMode }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
116
|
+
decorators: ((story: any, context: any) => any)[];
|
|
117
|
+
};
|
|
118
|
+
/** SelectButton with a custom trigger (`#button` slot) and custom option rendering (`#option` slot) */
|
|
119
|
+
export declare const CustomRender: {
|
|
120
|
+
render: () => {
|
|
121
|
+
components: {
|
|
122
|
+
StoryCustomRender: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
123
|
+
};
|
|
124
|
+
template: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: any;
|
|
4
|
+
tags: string[];
|
|
5
|
+
parameters: {
|
|
6
|
+
chromatic: {
|
|
7
|
+
disable: boolean;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
export declare const ClickOutsideCloses: {
|
|
13
|
+
render: (args: any) => import("vue/jsx-runtime").JSX.Element;
|
|
14
|
+
args: {
|
|
15
|
+
value: undefined;
|
|
16
|
+
onChange: () => void;
|
|
17
|
+
};
|
|
18
|
+
play: ({ canvasElement }: any) => Promise<void>;
|
|
19
|
+
};
|
|
20
|
+
export declare const SelectionUpdates: {
|
|
21
|
+
render: () => any;
|
|
22
|
+
play: ({ canvasElement }: any) => Promise<void>;
|
|
23
|
+
};
|
|
24
|
+
/** Test infinite scroll loads more options when scrolling to the bottom */
|
|
25
|
+
export declare const WithInfiniteScroll: {
|
|
26
|
+
render: () => {
|
|
27
|
+
components: {
|
|
28
|
+
StoryWithInfiniteScroll: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
29
|
+
};
|
|
30
|
+
template: string;
|
|
31
|
+
};
|
|
32
|
+
play({ canvasElement }: any): Promise<void>;
|
|
33
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { default as SelectButton, type SelectButtonProps, type SingleSelectButtonProps, type MultipleSelectButtonProps, type SelectButtonButtonSlotProps, } from './SelectButton';
|
|
2
|
+
export type { SelectTextFieldStatus, SelectButtonTranslations } from '@lumx/core/js/utils/select/types';
|
|
3
|
+
/** Selectable option within the dropdown list. */
|
|
4
|
+
export declare const SelectButtonOption: import('vue').DefineSetupFnComponent<import('../combobox').ComboboxOptionProps, {
|
|
5
|
+
click: () => boolean;
|
|
6
|
+
}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxOption').ComboboxOptionProps, "className" | import('@lumx/core/js/types').PropsToOverride | "id" | "hidden" | "descriptionId" | "isGrid" | import('@lumx/core/js/components/Combobox/ComboboxOption').ComboboxOptionPropsToOverride> & {
|
|
7
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
8
|
+
} & {
|
|
9
|
+
tooltipProps?: Partial<import('../tooltip').TooltipProps>;
|
|
10
|
+
actionProps?: Record<string, any>;
|
|
11
|
+
} & {
|
|
12
|
+
onClick?: (() => any) | undefined;
|
|
13
|
+
}, import('vue').PublicProps>;
|
package/index.d.ts
CHANGED