@lumx/vue 4.17.0 → 4.17.1-alpha.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/components/combobox/Combobox.test.stories.d.ts +7 -7
- package/components/popover/Popover.d.ts +3 -2
- package/components/popover/Popover.stories.d.ts +16 -0
- package/components/popover/index.d.ts +2 -1
- package/components/popover/usePopoverStyle.d.ts +8 -1
- package/components/popover-dialog/PopoverDialog.d.ts +1 -1
- package/components/popover-dialog/PopoverDialog.test.stories.d.ts +1 -1
- package/components/select-button/SelectButton.d.ts +2 -1
- package/components/select-text-field/SelectTextField.d.ts +5 -1
- package/components/time-picker-field/TimePickerField.stories.d.ts +7 -0
- package/index.js +4441 -4373
- package/index.js.map +1 -1
- package/package.json +6 -5
|
@@ -20,7 +20,7 @@ export declare const MouseHoverDoesNotActivateOption: {
|
|
|
20
20
|
onChange: (v: string) => void;
|
|
21
21
|
onSelect?: (option: {
|
|
22
22
|
value: string;
|
|
23
|
-
}) => void;
|
|
23
|
+
}) => boolean | void;
|
|
24
24
|
}) => import("vue/jsx-runtime").JSX.Element;
|
|
25
25
|
};
|
|
26
26
|
export declare const ClickAwayClosesPopup: {
|
|
@@ -42,7 +42,7 @@ export declare const MouseHoverThenKeyboardNav: {
|
|
|
42
42
|
onChange: (v: string) => void;
|
|
43
43
|
onSelect?: (option: {
|
|
44
44
|
value: string;
|
|
45
|
-
}) => void;
|
|
45
|
+
}) => boolean | void;
|
|
46
46
|
}) => import("vue/jsx-runtime").JSX.Element;
|
|
47
47
|
};
|
|
48
48
|
export declare const OptionMoreInfoKeyboardHighlight: {
|
|
@@ -106,7 +106,7 @@ export declare const ButtonTypeaheadFromClosed: {
|
|
|
106
106
|
value: string;
|
|
107
107
|
onSelect: (option: {
|
|
108
108
|
value: string;
|
|
109
|
-
}) => void;
|
|
109
|
+
}) => boolean | void;
|
|
110
110
|
}) => import("vue/jsx-runtime").JSX.Element;
|
|
111
111
|
};
|
|
112
112
|
export declare const ButtonTypeaheadWhileOpen: {
|
|
@@ -119,7 +119,7 @@ export declare const ButtonTypeaheadWhileOpen: {
|
|
|
119
119
|
value: string;
|
|
120
120
|
onSelect: (option: {
|
|
121
121
|
value: string;
|
|
122
|
-
}) => void;
|
|
122
|
+
}) => boolean | void;
|
|
123
123
|
}) => import("vue/jsx-runtime").JSX.Element;
|
|
124
124
|
};
|
|
125
125
|
export declare const ButtonEndFromClosed: {
|
|
@@ -132,7 +132,7 @@ export declare const ButtonEndFromClosed: {
|
|
|
132
132
|
value: string;
|
|
133
133
|
onSelect: (option: {
|
|
134
134
|
value: string;
|
|
135
|
-
}) => void;
|
|
135
|
+
}) => boolean | void;
|
|
136
136
|
}) => import("vue/jsx-runtime").JSX.Element;
|
|
137
137
|
};
|
|
138
138
|
export declare const ButtonHomeFromClosed: {
|
|
@@ -145,7 +145,7 @@ export declare const ButtonHomeFromClosed: {
|
|
|
145
145
|
value: string;
|
|
146
146
|
onSelect: (option: {
|
|
147
147
|
value: string;
|
|
148
|
-
}) => void;
|
|
148
|
+
}) => boolean | void;
|
|
149
149
|
}) => import("vue/jsx-runtime").JSX.Element;
|
|
150
150
|
};
|
|
151
151
|
export declare const ButtonArrowDownFromClosed: {
|
|
@@ -158,6 +158,6 @@ export declare const ButtonArrowDownFromClosed: {
|
|
|
158
158
|
value: string;
|
|
159
159
|
onSelect: (option: {
|
|
160
160
|
value: string;
|
|
161
|
-
}) => void;
|
|
161
|
+
}) => boolean | void;
|
|
162
162
|
}) => import("vue/jsx-runtime").JSX.Element;
|
|
163
163
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { PopoverProps as CorePopoverProps } from '@lumx/core/js/components/Popover';
|
|
3
|
+
import { PopoverSizes } from '@lumx/core/js/components/Popover/types';
|
|
3
4
|
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
4
5
|
/**
|
|
5
6
|
* Vue Popover props derived from core PopoverProps.
|
|
6
7
|
* Omits framework-specific props and narrows element ref types to raw HTMLElement.
|
|
7
8
|
* `isOpen` is made optional (defaults to false at runtime via keysOf).
|
|
8
9
|
*/
|
|
9
|
-
export type PopoverProps = VueToJSXProps<CorePopoverProps, 'anchorRef' | 'boundaryRef' | 'focusElement' | 'parentElement' | 'focusTrapZoneElement' | 'isOpen'> & {
|
|
10
|
+
export type PopoverProps = VueToJSXProps<CorePopoverProps, 'anchorRef' | 'boundaryRef' | 'focusElement' | 'parentElement' | 'focusTrapZoneElement' | 'isOpen'> & PopoverSizes & {
|
|
10
11
|
/** Reference to the DOM element used to set the position of the popover. Accepts a Vue Ref for reactive positioning. */
|
|
11
12
|
anchorRef?: Ref<HTMLElement | undefined> | HTMLElement;
|
|
12
13
|
/** Element which will act as boundary when opening the popover. Accepts a Vue Ref for reactive positioning. */
|
|
@@ -27,7 +28,7 @@ declare const Popover: import('vue').DefineSetupFnComponent<PopoverProps, {
|
|
|
27
28
|
close: () => boolean;
|
|
28
29
|
}, {}, Omit<CorePopoverProps, "className" | import('@lumx/core/js/types').PropsToOverride | "isOpen" | "focusElement" | "children" | "parentElement" | "anchorRef" | "boundaryRef" | "focusTrapZoneElement"> & {
|
|
29
30
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
30
|
-
} & {
|
|
31
|
+
} & PopoverSizes & {
|
|
31
32
|
/** Reference to the DOM element used to set the position of the popover. Accepts a Vue Ref for reactive positioning. */
|
|
32
33
|
anchorRef?: Ref<HTMLElement | undefined> | HTMLElement;
|
|
33
34
|
/** Element which will act as boundary when opening the popover. Accepts a Vue Ref for reactive positioning. */
|
|
@@ -120,3 +120,19 @@ export declare const FitToAnchorWidth: {
|
|
|
120
120
|
};
|
|
121
121
|
decorators: ((story: any, context: any) => any)[];
|
|
122
122
|
};
|
|
123
|
+
export declare const Width: {
|
|
124
|
+
args: {
|
|
125
|
+
anchorClassName: string;
|
|
126
|
+
popoverClassName: string;
|
|
127
|
+
placement: "bottom";
|
|
128
|
+
};
|
|
129
|
+
decorators: ((story: any, context: any) => any)[];
|
|
130
|
+
};
|
|
131
|
+
export declare const Height: {
|
|
132
|
+
args: {
|
|
133
|
+
anchorClassName: string;
|
|
134
|
+
popoverClassName: string;
|
|
135
|
+
placement: "bottom";
|
|
136
|
+
};
|
|
137
|
+
decorators: ((story: any, context: any) => any)[];
|
|
138
|
+
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { default as Popover, type PopoverProps } from './Popover';
|
|
2
|
-
export { Placement
|
|
2
|
+
export { Placement } from '@lumx/core/js/components/Popover/constants';
|
|
3
|
+
export type { Offset, Elevation, PopoverHeight, PopoverWidth } from '@lumx/core/js/components/Popover/types';
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { Ref, CSSProperties } from 'vue';
|
|
2
|
-
import { Placement
|
|
2
|
+
import { Placement } from '@lumx/core/js/components/Popover/constants';
|
|
3
|
+
import { Offset, PopoverSizes } from '@lumx/core/js/components/Popover/types';
|
|
3
4
|
export interface UsePopoverStyleOptions {
|
|
4
5
|
anchorRef: Ref<HTMLElement | undefined>;
|
|
5
6
|
offset?: Ref<Offset | undefined>;
|
|
6
7
|
hasArrow?: Ref<boolean | undefined>;
|
|
7
8
|
fitToAnchorWidth?: Ref<string | boolean | undefined>;
|
|
8
9
|
fitWithinViewportHeight?: Ref<boolean | undefined>;
|
|
10
|
+
width?: Ref<PopoverSizes['width']>;
|
|
11
|
+
minWidth?: Ref<PopoverSizes['minWidth']>;
|
|
12
|
+
maxWidth?: Ref<PopoverSizes['maxWidth']>;
|
|
13
|
+
height?: Ref<PopoverSizes['height']>;
|
|
14
|
+
minHeight?: Ref<PopoverSizes['minHeight']>;
|
|
15
|
+
maxHeight?: Ref<PopoverSizes['maxHeight']>;
|
|
9
16
|
boundaryRef?: Ref<HTMLElement | undefined>;
|
|
10
17
|
placement?: Ref<Placement | undefined>;
|
|
11
18
|
style?: Ref<CSSProperties | undefined>;
|
|
@@ -13,7 +13,7 @@ declare const PopoverDialog: import('vue').DefineSetupFnComponent<PopoverDialogP
|
|
|
13
13
|
close: () => boolean;
|
|
14
14
|
}, {}, Omit<CorePopoverProps, "className" | import('@lumx/core/js/types').PropsToOverride | "isOpen" | "focusElement" | "children" | "parentElement" | "anchorRef" | "boundaryRef" | "focusTrapZoneElement"> & {
|
|
15
15
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
16
|
-
} & {
|
|
16
|
+
} & import('@lumx/core/js/components/Popover/types').PopoverSizes & {
|
|
17
17
|
anchorRef?: import('vue').Ref<HTMLElement | undefined> | HTMLElement;
|
|
18
18
|
boundaryRef?: import('vue').Ref<HTMLElement | undefined> | HTMLElement;
|
|
19
19
|
focusElement?: HTMLElement;
|
|
@@ -4,7 +4,7 @@ declare const _default: {
|
|
|
4
4
|
close: () => boolean;
|
|
5
5
|
}, {}, Omit<import('@lumx/core/js/components/Popover').PopoverProps, "className" | import('../..').PropsToOverride | "isOpen" | "focusElement" | "children" | "parentElement" | "anchorRef" | "boundaryRef" | "focusTrapZoneElement"> & {
|
|
6
6
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
7
|
-
} & {
|
|
7
|
+
} & import('@lumx/core/js/components/Popover/types').PopoverSizes & {
|
|
8
8
|
anchorRef?: import('vue').Ref<HTMLElement | undefined> | HTMLElement;
|
|
9
9
|
boundaryRef?: import('vue').Ref<HTMLElement | undefined> | HTMLElement;
|
|
10
10
|
focusElement?: HTMLElement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmitFn, EmitsToProps, PublicProps, SlotsType } from 'vue';
|
|
2
2
|
import { BaseSelectButtonWrapperProps } from '@lumx/core/js/utils/select/types';
|
|
3
|
-
import { SelectButtonProps as UIProps } from '@lumx/core/js/components/SelectButton';
|
|
3
|
+
import { DEFAULT_PROPS, CLASSNAME, SelectButtonProps as UIProps } from '@lumx/core/js/components/SelectButton';
|
|
4
4
|
import { EmitsOf } from '../../utils/VueToJSX';
|
|
5
5
|
/**
|
|
6
6
|
* Props exposed to the `#button` scoped slot of `<SelectButton>`.
|
|
@@ -173,3 +173,4 @@ declare const SelectButton: import('vue').DefineSetupFnComponent<SelectButtonPro
|
|
|
173
173
|
}, PublicProps>;
|
|
174
174
|
declare const _default: SelectButtonConstructor & typeof SelectButton;
|
|
175
175
|
export default _default;
|
|
176
|
+
export { DEFAULT_PROPS, CLASSNAME };
|
|
@@ -25,7 +25,11 @@ export interface MultipleSelectTextFieldProps<O = any> extends BaseSelectTextFie
|
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* SelectTextField props — supports both single and multiple selection.
|
|
28
|
-
* Discriminated on `selectionType`:
|
|
28
|
+
* Discriminated on `selectionType`:
|
|
29
|
+
* - `'single'` → `value?: O`, emits `change` with `O | undefined`.
|
|
30
|
+
* - `'multiple'` → `value?: O[]`, emits `change` with `O[] | undefined`.
|
|
31
|
+
*
|
|
32
|
+
* @typeParam O - Option object type, inferred from `options` / `getOptionId`.
|
|
29
33
|
*/
|
|
30
34
|
export type SelectTextFieldProps<O = any> = SingleSelectTextFieldProps<O> | MultipleSelectTextFieldProps<O>;
|
|
31
35
|
/**
|