@lumx/vue 4.17.0-next.3 → 4.17.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/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 +4438 -4372
- package/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -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
|
/**
|