@lumx/vue 4.15.0 → 4.15.1-alpha.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/useWrappedRenderSectionTitleSlot.d.ts +1 -1
- package/components/select-button/SelectButton.d.ts +9 -9
- package/components/select-button/index.d.ts +1 -1
- package/components/select-text-field/index.d.ts +2 -1
- package/index.js +981 -980
- package/index.js.map +1 -1
- package/package.json +5 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComputedRef, Slot } from 'vue';
|
|
2
2
|
import { JSXElement } from '@lumx/core/js/types';
|
|
3
3
|
/** Render function passed as `renderSectionTitle` to a core Select* template. */
|
|
4
|
-
type WrappedRenderSectionTitle = (sectionId: string, options: unknown[]) => JSXElement;
|
|
4
|
+
type WrappedRenderSectionTitle = (sectionId: string | undefined, options: unknown[]) => JSXElement;
|
|
5
5
|
/**
|
|
6
6
|
* Adapts a Vue scoped section-title slot into the `renderSectionTitle` callback shape
|
|
7
7
|
* expected by the core Select* templates.
|
|
@@ -88,13 +88,13 @@ export type SelectButtonProps<O = any> = SingleSelectButtonProps<O> | MultipleSe
|
|
|
88
88
|
export declare const emitSchema: {
|
|
89
89
|
/**
|
|
90
90
|
* Selection change. Payload type depends on `selectionType`:
|
|
91
|
-
* - default / `'single'` → `O
|
|
92
|
-
* - `'multiple'` → `O[]
|
|
91
|
+
* - default / `'single'` → `O` (selected option).
|
|
92
|
+
* - `'multiple'` → `O[]` (toggled array).
|
|
93
93
|
*
|
|
94
94
|
* The runtime validator uses `unknown` since the typed payload can't be expressed
|
|
95
95
|
* without the component generic. The typed payload is restored via `SelectButtonEmits`.
|
|
96
96
|
*/
|
|
97
|
-
change: (_newValue
|
|
97
|
+
change: (_newValue: unknown) => boolean;
|
|
98
98
|
/** Bottom of the options list reached — consumer should fetch the next page. */
|
|
99
99
|
'load-more': () => boolean;
|
|
100
100
|
/** Dropdown opened or closed. */
|
|
@@ -104,7 +104,7 @@ export declare const emitSchema: {
|
|
|
104
104
|
* SelectButton emits typed over the option type O and the selection type S.
|
|
105
105
|
*/
|
|
106
106
|
type SelectButtonEmits<O, S extends 'single' | 'multiple'> = Omit<EmitsOf<typeof emitSchema>, 'change'> & {
|
|
107
|
-
change: (newValue:
|
|
107
|
+
change: (newValue: S extends 'multiple' ? O[] : O) => void;
|
|
108
108
|
};
|
|
109
109
|
type SingleSelectButtonPublicProps<O> = SingleSelectButtonProps<O> & EmitsToProps<SelectButtonEmits<O, 'single'>>;
|
|
110
110
|
type MultipleSelectButtonPublicProps<O> = MultipleSelectButtonProps<O> & EmitsToProps<SelectButtonEmits<O, 'multiple'>>;
|
|
@@ -139,13 +139,13 @@ export interface SelectButtonConstructor {
|
|
|
139
139
|
declare const SelectButton: import('vue').DefineSetupFnComponent<SelectButtonProps<any>, {
|
|
140
140
|
/**
|
|
141
141
|
* Selection change. Payload type depends on `selectionType`:
|
|
142
|
-
* - default / `'single'` → `O
|
|
143
|
-
* - `'multiple'` → `O[]
|
|
142
|
+
* - default / `'single'` → `O` (selected option).
|
|
143
|
+
* - `'multiple'` → `O[]` (toggled array).
|
|
144
144
|
*
|
|
145
145
|
* The runtime validator uses `unknown` since the typed payload can't be expressed
|
|
146
146
|
* without the component generic. The typed payload is restored via `SelectButtonEmits`.
|
|
147
147
|
*/
|
|
148
|
-
change: (_newValue
|
|
148
|
+
change: (_newValue: unknown) => boolean;
|
|
149
149
|
/** Bottom of the options list reached — consumer should fetch the next page. */
|
|
150
150
|
'load-more': () => boolean;
|
|
151
151
|
/** Dropdown opened or closed. */
|
|
@@ -163,11 +163,11 @@ declare const SelectButton: import('vue').DefineSetupFnComponent<SelectButtonPro
|
|
|
163
163
|
};
|
|
164
164
|
/** Custom section header rendering. */
|
|
165
165
|
sectionTitle: {
|
|
166
|
-
sectionId: string;
|
|
166
|
+
sectionId: string | undefined;
|
|
167
167
|
options: unknown[];
|
|
168
168
|
};
|
|
169
169
|
}>, SelectButtonProps<any> & {
|
|
170
|
-
onChange?: ((_newValue
|
|
170
|
+
onChange?: ((_newValue: unknown) => any) | undefined;
|
|
171
171
|
onOpen?: ((_isOpen: boolean) => any) | undefined;
|
|
172
172
|
"onLoad-more"?: (() => any) | undefined;
|
|
173
173
|
}, PublicProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as SelectButton, type SelectButtonProps, type SingleSelectButtonProps, type MultipleSelectButtonProps, type SelectButtonButtonSlotProps, } from './SelectButton';
|
|
2
|
-
export type {
|
|
2
|
+
export type { SelectListStatus, SelectListStatus as SelectButtonStatus, SelectButtonTranslations, } from '@lumx/core/js/utils/select/types';
|
|
3
3
|
/** Selectable option within the dropdown list. */
|
|
4
4
|
export declare const SelectButtonOption: import('vue').DefineSetupFnComponent<import('../combobox').ComboboxOptionProps, {
|
|
5
5
|
click: () => boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { type SelectTextFieldProps, type SingleSelectTextFieldProps, type MultipleSelectTextFieldProps, default as SelectTextField, } from './SelectTextField';
|
|
2
|
-
export type {
|
|
2
|
+
export type { SelectListStatus, SelectListStatus as SelectTextFieldStatus } from '@lumx/core/js/utils/select/types';
|
|
3
|
+
export type { SelectTextFieldTranslations } from '@lumx/core/js/utils/select/types';
|
|
3
4
|
/** Selectable option within the dropdown list. */
|
|
4
5
|
export declare const SelectTextFieldOption: import('vue').DefineSetupFnComponent<import('../combobox').ComboboxOptionProps, {
|
|
5
6
|
click: () => boolean;
|