@lumx/vue 4.14.0-next.4 → 4.15.0-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.
@@ -0,0 +1,45 @@
1
+ import { TimePickerFieldWrapperProps, TimePickerFieldOwnedSelectProps } from '@lumx/core/js/components/TimePickerField';
2
+ import { ClassValue } from '../../utils/VueToJSX';
3
+ import { SingleSelectTextFieldProps } from '../select-text-field/SelectTextField';
4
+ /**
5
+ * Inherited SelectTextField props (less the parts owned by TimePickerField).
6
+ */
7
+ type InheritedSelectTextFieldProps = Omit<SingleSelectTextFieldProps<any>, TimePickerFieldOwnedSelectProps | 'class'>;
8
+ /**
9
+ * `TimePickerField` props.
10
+ */
11
+ export interface TimePickerFieldProps extends InheritedSelectTextFieldProps, TimePickerFieldWrapperProps {
12
+ /** CSS class. */
13
+ class?: ClassValue;
14
+ }
15
+ /**
16
+ * TimePickerField events schema.
17
+ */
18
+ export declare const emitSchema: {
19
+ /**
20
+ * Selection change. Payload is the new `Date` whose date part is inherited
21
+ * from the previous `value` (or today, if none) and whose time-of-day
22
+ * matches the user selection. May be `undefined` when the field is cleared.
23
+ */
24
+ change: (_newValue?: Date) => boolean;
25
+ };
26
+ /**
27
+ * A select-style picker for choosing a time of day. Wraps `SelectTextField`
28
+ * with a generated list of times built from `step`, `minTime`, and `maxTime`.
29
+ *
30
+ * Out-of-range options (strictly before `minTime` or after `maxTime`) remain
31
+ * visible in the dropdown but are rendered as disabled.
32
+ *
33
+ * Free-form typed input (e.g. `"10:30 PM"`, `"14"`, `"930"`) is parsed on blur.
34
+ */
35
+ declare const TimePickerField: import('vue').DefineSetupFnComponent<TimePickerFieldProps, {
36
+ /**
37
+ * Selection change. Payload is the new `Date` whose date part is inherited
38
+ * from the previous `value` (or today, if none) and whose time-of-day
39
+ * matches the user selection. May be `undefined` when the field is cleared.
40
+ */
41
+ change: (_newValue?: Date) => boolean;
42
+ }, {}, TimePickerFieldProps & {
43
+ onChange?: ((_newValue?: Date | undefined) => any) | undefined;
44
+ }, import('vue').PublicProps>;
45
+ export default TimePickerField;
@@ -0,0 +1,47 @@
1
+ declare const _default: {
2
+ component: any;
3
+ args: {
4
+ label: string;
5
+ locale: string;
6
+ translations: {
7
+ clearLabel: string;
8
+ showSuggestionsLabel: string;
9
+ };
10
+ };
11
+ decorators: ((story: any, context: any) => any)[];
12
+ title: string;
13
+ };
14
+ export default _default;
15
+ export declare const Default: {};
16
+ export declare const WithValue: {
17
+ args: {
18
+ value: Date;
19
+ };
20
+ };
21
+ export declare const Step15: {
22
+ args: {
23
+ step: number;
24
+ };
25
+ };
26
+ export declare const WithMinTime: {
27
+ args: {
28
+ minTime: Date;
29
+ };
30
+ };
31
+ export declare const WithMaxTime: {
32
+ args: {
33
+ maxTime: Date;
34
+ };
35
+ };
36
+ export declare const French: {
37
+ args: {
38
+ locale: string;
39
+ value: Date;
40
+ };
41
+ };
42
+ export declare const Disabled: {
43
+ args: {
44
+ value: Date;
45
+ };
46
+ decorators: ((story: any, context: any) => any)[];
47
+ };
@@ -0,0 +1,2 @@
1
+ export { default as TimePickerField, type TimePickerFieldProps } from './TimePickerField';
2
+ export type { TimePickerFieldTranslations } from '@lumx/core/js/components/TimePickerField';
package/index.d.ts CHANGED
@@ -44,3 +44,4 @@ export * from './components/tooltip';
44
44
  export * from './components/user-block';
45
45
  export * from './components/select-button';
46
46
  export * from './components/select-text-field';
47
+ export * from './components/time-picker-field';