@wisemen/vue-core-components 1.16.0 → 2.0.0-beta.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/dist/{AlertCircleIcon-DelrXF7c.js → AlertCircleIcon-D7CicIEs.js} +1 -1
- package/dist/{AlertTriangleIcon-CFrELJcW.js → AlertTriangleIcon-DzlLdT1q.js} +1 -1
- package/dist/{ArrowDownIcon-YUzB99vf.js → ArrowDownIcon-DZr01Sf6.js} +1 -1
- package/dist/{ArrowLeftIcon-DQOLkI3G.js → ArrowLeftIcon-CVU7B5Rv.js} +1 -1
- package/dist/{ArrowRightIcon-DPGsCuTm.js → ArrowRightIcon-A8_LzUxJ.js} +1 -1
- package/dist/{ArrowUpIcon-BYiLoeeM.js → ArrowUpIcon-c-BbbYHh.js} +1 -1
- package/dist/{CalendarIcon-CaXOeBIG.js → CalendarIcon-D2NvYthk.js} +1 -1
- package/dist/{CheckCircleIcon-4nD6B6qw.js → CheckCircleIcon-DKnYfS0a.js} +1 -1
- package/dist/{CheckIcon-GzostKdM.js → CheckIcon-BdFM_PWS.js} +1 -1
- package/dist/{ChevronLeftDoubleIcon-BJ0D12Dc.js → ChevronLeftDoubleIcon-BjIKgpkh.js} +1 -1
- package/dist/{ChevronLeftIcon-3rZM_Sqp.js → ChevronLeftIcon-DhUy0U_9.js} +1 -1
- package/dist/{ChevronRightDoubleIcon-DCEN8uqA.js → ChevronRightDoubleIcon-BF0prMpM.js} +1 -1
- package/dist/{ChevronRightIcon-neBbVEWj.js → ChevronRightIcon-5hSTA6TF.js} +1 -1
- package/dist/{CloseIcon-B_VHoSvl.js → CloseIcon-C0sSLkrm.js} +1 -1
- package/dist/{EyeIcon-YhMct6aT.js → EyeIcon-LaL5PkGR.js} +1 -1
- package/dist/{EyeOffIcon-z84NVCfW.js → EyeOffIcon-CG1ArkOt.js} +1 -1
- package/dist/{InfoCircleIcon-Do8jlre3.js → InfoCircleIcon-itEN2uGV.js} +1 -1
- package/dist/{MinusIcon-Cg7Y1Zzn.js → MinusIcon-Dm3It5EC.js} +1 -1
- package/dist/{PlusIcon-CGSS6aDj.js → PlusIcon-C71GCIJ1.js} +1 -1
- package/dist/{SearchIcon-DAeP3qTk.js → SearchIcon-DMDvaCjI.js} +1 -1
- package/dist/{SelectIconRight-DtGBKWnU.js → SelectIconRight-CpQjNlqt.js} +1 -1
- package/dist/{StarsIcon-CWbJpnyG.js → StarsIcon-CtRxOZ6l.js} +1 -1
- package/dist/{SwitchVerticalIcon-DuMoRd-N.js → SwitchVerticalIcon-BbFWYPhT.js} +1 -1
- package/dist/{TranslateIcon-CLNdq2P3.js → TranslateIcon-BWa8fOJh.js} +1 -1
- package/dist/class-variant/classVariant.type.d.ts +0 -7
- package/dist/components/button/default-button/Button.d.ts +0 -4
- package/dist/components/button/default-button/parts/ButtonRoot.d.ts +0 -4
- package/dist/components/button/icon-button/IconButton.d.ts +0 -4
- package/dist/components/button/icon-button/parts/IconButtonRoot.d.ts +0 -4
- package/dist/components/button/shared/sharedButton.props.d.ts +0 -2
- package/dist/components/config-provider/ConfigProvider.d.ts +7 -0
- package/dist/components/config-provider/config.context.d.ts +2 -0
- package/dist/components/config-provider/index.d.ts +1 -0
- package/dist/components/date-field/DateField.d.ts +29 -19
- package/dist/components/date-field/dateField.context.d.ts +3 -2
- package/dist/components/date-field/index.d.ts +1 -1
- package/dist/components/date-field/parts/DateFieldRoot.d.ts +51 -19
- package/dist/components/date-picker/range/DateRangePicker.d.ts +7 -6
- package/dist/components/date-picker/range/dateRangePicker.context.d.ts +3 -2
- package/dist/components/date-picker/range/parts/DateRangePickerRoot.d.ts +7 -6
- package/dist/components/date-picker/shared/datePicker.util.d.ts +3 -0
- package/dist/components/date-picker/single/DatePicker.d.ts +7 -6
- package/dist/components/date-picker/single/datePicker.context.d.ts +3 -2
- package/dist/components/date-picker/single/parts/DatePickerRoot.d.ts +7 -6
- package/dist/components/date-range-field/DateRangeField.d.ts +29 -19
- package/dist/components/date-range-field/dateRangeField.context.d.ts +3 -2
- package/dist/components/date-range-field/parts/DateRangeFieldRoot.d.ts +51 -19
- package/dist/components/dialog/Dialog.d.ts +2 -0
- package/dist/components/dialog/DialogContainer.d.ts +1 -5
- package/dist/components/dialog/dialog.composable.d.ts +12 -4
- package/dist/components/dialog/dialog.type.d.ts +5 -47
- package/dist/components/dialog/index.d.ts +1 -1
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +4 -0
- package/dist/components/dropdown-menu/dropdownMenu.context.d.ts +2 -0
- package/dist/components/dropdown-menu/parts/DropdownMenuRoot.d.ts +4 -0
- package/dist/components/index.d.ts +0 -1
- package/dist/components/table/index.d.ts +3 -7
- package/dist/components/table/parts/TableBody.d.ts +16 -1
- package/dist/components/table/parts/TableCell.d.ts +2 -4
- package/dist/components/table/parts/TableHeader.d.ts +16 -1
- package/dist/components/table/parts/TableHeaderCell.d.ts +15 -4
- package/dist/components/table/parts/TableHiddenResultsHint.d.ts +7 -1
- package/dist/components/table/parts/TableRoot.d.ts +22 -15
- package/dist/components/table/parts/TableRow.d.ts +20 -2
- package/dist/components/table/table.composable.d.ts +6 -15
- package/dist/components/table/table.context.d.ts +1 -5
- package/dist/components/table/table.props.d.ts +3 -36
- package/dist/components/table/table.style.d.ts +3 -0
- package/dist/components/table/table.type.d.ts +11 -43
- package/dist/components/theme-provider/ThemeProvider.d.ts +8 -2
- package/dist/components/time-field/TimeField.d.ts +26 -17
- package/dist/components/time-field/parts/TimeFieldRoot.d.ts +48 -17
- package/dist/components/time-field/timeField.context.d.ts +2 -1
- package/dist/components/toast/index.d.ts +1 -1
- package/dist/{index-DOv-oW06.js → index-B8ijWIxM.js} +4600 -5515
- package/dist/index.d.ts +1 -0
- package/dist/index.js +147 -159
- package/dist/index.umd +14 -14
- package/dist/style.css +1 -1
- package/dist/types/dateRange.type.d.ts +2 -1
- package/dist/types/hourCycle.type.d.ts +1 -0
- package/package.json +8 -6
- package/dist/components/internal/ProgressiveBlur.d.ts +0 -5
- package/dist/components/table/Table.d.ts +0 -24
- package/dist/components/table/parts/TableCellLayout.d.ts +0 -21
- package/dist/components/table/parts/TableEmptyOrLoadingState.d.ts +0 -19
- package/dist/components/table/parts/TableHeaderCellProvider.d.ts +0 -21
- package/dist/components/table/parts/TableInteractiveElement.d.ts +0 -17
- package/dist/components/table/parts/TableRowAction.d.ts +0 -6
- package/dist/components/table/table.emits.d.ts +0 -3
- package/dist/components/table/tableHeaderCell.context.d.ts +0 -7
- package/dist/components/table-next/index.d.ts +0 -11
- package/dist/components/table-next/parts/TableBody.d.ts +0 -17
- package/dist/components/table-next/parts/TableCell.d.ts +0 -24
- package/dist/components/table-next/parts/TableContent.d.ts +0 -17
- package/dist/components/table-next/parts/TableHeader.d.ts +0 -17
- package/dist/components/table-next/parts/TableHeaderCell.d.ts +0 -29
- package/dist/components/table-next/parts/TableHiddenResultsHint.d.ts +0 -8
- package/dist/components/table-next/parts/TableRoot.d.ts +0 -27
- package/dist/components/table-next/parts/TableRow.d.ts +0 -23
- package/dist/components/table-next/parts/TableScrollContainer.d.ts +0 -21
- package/dist/components/table-next/table.composable.d.ts +0 -7
- package/dist/components/table-next/table.context.d.ts +0 -15
- package/dist/components/table-next/table.props.d.ts +0 -21
- package/dist/components/table-next/table.style.d.ts +0 -37
- package/dist/components/table-next/table.type.d.ts +0 -12
- /package/dist/components/date-field/parts/{DatefieldPopover.d.ts → DateFieldPopover.d.ts} +0 -0
- /package/dist/components/{table-next → table}/parts/TableCellSkeleton.d.ts +0 -0
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
import { CustomizableElement, GetComponentProp } from '../../class-variant/classVariant.type';
|
|
2
|
-
|
|
3
|
-
import { BasePagination, PaginatedData, Pagination } from '../../composables/pagination/pagination.type';
|
|
4
|
-
import { Routes } from '../../types/routes.type';
|
|
5
|
-
interface LinkAction<TSchema> {
|
|
6
|
-
label: (data: TSchema) => string;
|
|
7
|
-
to: (data: TSchema) => Routes[number];
|
|
8
|
-
type: 'link';
|
|
9
|
-
}
|
|
10
|
-
interface ButtonAction<TSchema> {
|
|
11
|
-
label: (data: TSchema) => string;
|
|
12
|
-
type: 'button';
|
|
13
|
-
onClick: (data: TSchema) => void;
|
|
14
|
-
}
|
|
15
|
-
type RowAction<TSchema> = ButtonAction<TSchema> | LinkAction<TSchema>;
|
|
16
|
-
export interface TableProps<TSchema, TPagination extends BasePagination> extends CustomizableElement<'table'> {
|
|
2
|
+
export interface TableProps extends CustomizableElement<'table'> {
|
|
17
3
|
/**
|
|
18
4
|
* Makes the first column sticky (fixed) when horizontally scrolling.
|
|
19
5
|
* @default false
|
|
@@ -25,30 +11,11 @@ export interface TableProps<TSchema, TPagination extends BasePagination> extends
|
|
|
25
11
|
*/
|
|
26
12
|
isLastColumnSticky?: boolean;
|
|
27
13
|
/**
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
|
-
isLoading: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* An array of column definitions that describe how to render each column.
|
|
33
|
-
*/
|
|
34
|
-
columns: TableColumn<TSchema>[];
|
|
35
|
-
/**
|
|
36
|
-
* The paginated data to be displayed in the table.
|
|
37
|
-
*/
|
|
38
|
-
data: PaginatedData<TSchema> | null;
|
|
39
|
-
/**
|
|
40
|
-
* Pagination object
|
|
41
|
-
*/
|
|
42
|
-
pagination: Pagination<TPagination>;
|
|
43
|
-
/**
|
|
44
|
-
* Optional row-level action. When using other interactable elements inside cells,
|
|
45
|
-
* make sure to user the `TableInteractiveElement` component.
|
|
46
|
-
* @default null
|
|
14
|
+
* The grid template columns style for the table.
|
|
47
15
|
*/
|
|
48
|
-
|
|
16
|
+
gridTemplateColumns: string;
|
|
49
17
|
/**
|
|
50
18
|
* Defines the visual style of the table.
|
|
51
19
|
*/
|
|
52
20
|
variant?: GetComponentProp<'table', 'variant'> | null;
|
|
53
21
|
}
|
|
54
|
-
export {};
|
|
@@ -6,6 +6,7 @@ export declare const createTableStyle: import('tailwind-variants').TVReturnType<
|
|
|
6
6
|
cellSkeleton: string;
|
|
7
7
|
header: string;
|
|
8
8
|
headerCell: string;
|
|
9
|
+
headerCellLabel: string;
|
|
9
10
|
hiddenResultsHint: string;
|
|
10
11
|
root: string;
|
|
11
12
|
row: string;
|
|
@@ -16,6 +17,7 @@ export declare const createTableStyle: import('tailwind-variants').TVReturnType<
|
|
|
16
17
|
cellSkeleton: string;
|
|
17
18
|
header: string;
|
|
18
19
|
headerCell: string;
|
|
20
|
+
headerCellLabel: string;
|
|
19
21
|
hiddenResultsHint: string;
|
|
20
22
|
root: string;
|
|
21
23
|
row: string;
|
|
@@ -26,6 +28,7 @@ export declare const createTableStyle: import('tailwind-variants').TVReturnType<
|
|
|
26
28
|
cellSkeleton: string;
|
|
27
29
|
header: string;
|
|
28
30
|
headerCell: string;
|
|
31
|
+
headerCellLabel: string;
|
|
29
32
|
hiddenResultsHint: string;
|
|
30
33
|
root: string;
|
|
31
34
|
row: string;
|
|
@@ -1,44 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* @default null
|
|
6
|
-
*/
|
|
7
|
-
testId?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Whether the column is sortable
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
isSortable?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* The cell render function of the column
|
|
15
|
-
*/
|
|
16
|
-
cell: (row: TSchema) => VNode;
|
|
17
|
-
/**
|
|
18
|
-
* The header render function of the column
|
|
19
|
-
*/
|
|
20
|
-
header?: (column: TableColumn<TSchema>) => VNode;
|
|
21
|
-
/**
|
|
22
|
-
* The header label of the column
|
|
23
|
-
*/
|
|
24
|
-
headerLabel?: string;
|
|
25
|
-
/**
|
|
26
|
-
* The key of the column
|
|
27
|
-
*/
|
|
28
|
-
key: string;
|
|
29
|
-
/**
|
|
30
|
-
* The maximum width of the column. Be careful when using this property, as it can cause underflow issues
|
|
31
|
-
* where the width of the content is smaller than the width of the table.
|
|
32
|
-
* @default 'auto'
|
|
33
|
-
*/
|
|
34
|
-
maxWidth?: string;
|
|
35
|
-
/**
|
|
36
|
-
* The skeleton render function of the column
|
|
37
|
-
*/
|
|
38
|
-
skeleton?: (row: TSchema) => VNode;
|
|
39
|
-
/**
|
|
40
|
-
* The width of the column
|
|
41
|
-
* @default 'min-content'
|
|
42
|
-
*/
|
|
43
|
-
width?: string;
|
|
1
|
+
interface LinkAction {
|
|
2
|
+
label: string;
|
|
3
|
+
to: Routes[number];
|
|
4
|
+
type: 'link';
|
|
44
5
|
}
|
|
6
|
+
interface ButtonAction {
|
|
7
|
+
label: string;
|
|
8
|
+
type: 'button';
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
}
|
|
11
|
+
export type TableRowAction = ButtonAction | LinkAction;
|
|
12
|
+
export {};
|
|
@@ -5,6 +5,11 @@ type __VLS_Props = {
|
|
|
5
5
|
* @default false
|
|
6
6
|
*/
|
|
7
7
|
appearance?: Appearance | null;
|
|
8
|
+
/**
|
|
9
|
+
* Whether to render the child component directly without any wrapping element.
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
asChild?: boolean;
|
|
8
13
|
/**
|
|
9
14
|
* The chosen theme for the application.
|
|
10
15
|
* @default null
|
|
@@ -25,13 +30,14 @@ declare function __VLS_template(): {
|
|
|
25
30
|
default: () => void;
|
|
26
31
|
};
|
|
27
32
|
refs: {};
|
|
28
|
-
rootEl:
|
|
33
|
+
rootEl: any;
|
|
29
34
|
};
|
|
30
35
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
31
36
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
32
37
|
appearance: Appearance | null;
|
|
33
38
|
theme: (string & {}) | "default" | null;
|
|
34
|
-
|
|
39
|
+
asChild: boolean;
|
|
40
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
35
41
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
36
42
|
export default _default;
|
|
37
43
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,22 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Temporal } from 'temporal-polyfill';
|
|
2
2
|
import { TimeFieldProps } from './timeField.props';
|
|
3
3
|
import { TimeFieldSlots } from './timeField.slots';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
modelValue: TValue | null;
|
|
11
|
-
} & TimeFieldProps) & Partial<{}>> & import('vue').PublicProps;
|
|
12
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
13
|
-
attrs: any;
|
|
4
|
+
type __VLS_Props = TimeFieldProps;
|
|
5
|
+
type __VLS_PublicProps = {
|
|
6
|
+
modelValue: Temporal.PlainTime | null;
|
|
7
|
+
} & __VLS_Props;
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
14
10
|
slots: Readonly<TimeFieldSlots> & TimeFieldSlots;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: HTMLDivElement;
|
|
18
13
|
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
"update:modelValue": (value: Temporal.PlainTime | null) => any;
|
|
17
|
+
} & {
|
|
18
|
+
focus: (e: FocusEvent) => any;
|
|
19
|
+
blur: (e: FocusEvent) => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
|
+
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
22
|
+
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
23
|
+
"onUpdate:modelValue"?: ((value: Temporal.PlainTime | null) => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
26
|
export default _default;
|
|
20
|
-
type
|
|
21
|
-
|
|
22
|
-
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Temporal } from 'temporal-polyfill';
|
|
2
2
|
import { TimeFieldProps } from '../timeField.props';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
modelValue: TValue | null;
|
|
10
|
-
} & TimeFieldProps) & Partial<{}>> & import('vue').PublicProps;
|
|
11
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
12
|
-
attrs: any;
|
|
3
|
+
type __VLS_Props = TimeFieldProps;
|
|
4
|
+
type __VLS_PublicProps = {
|
|
5
|
+
modelValue: Temporal.PlainTime | null;
|
|
6
|
+
} & __VLS_Props;
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
13
9
|
slots: {
|
|
14
10
|
default?(_: {
|
|
15
11
|
segments: {
|
|
@@ -18,11 +14,46 @@ declare const _default: <TValue extends string>(__VLS_props: NonNullable<Awaited
|
|
|
18
14
|
}[];
|
|
19
15
|
}): any;
|
|
20
16
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
17
|
+
refs: {};
|
|
18
|
+
rootEl: any;
|
|
24
19
|
};
|
|
20
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
+
"update:modelValue": (value: Temporal.PlainTime | null) => any;
|
|
23
|
+
} & {
|
|
24
|
+
focus: (e: FocusEvent) => any;
|
|
25
|
+
blur: (e: FocusEvent) => any;
|
|
26
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
27
|
+
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
28
|
+
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
29
|
+
"onUpdate:modelValue"?: ((value: Temporal.PlainTime | null) => any) | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
variant: null;
|
|
32
|
+
iconLeft: import('../../..').Icon | null;
|
|
33
|
+
iconRight: import('../../..').Icon | null;
|
|
34
|
+
label: string | null;
|
|
35
|
+
hint: string | null;
|
|
36
|
+
isLoading: boolean;
|
|
37
|
+
testId: string | null;
|
|
38
|
+
isDisabled: boolean;
|
|
39
|
+
id: string | null;
|
|
40
|
+
isRequired: boolean;
|
|
41
|
+
isTouched: boolean;
|
|
42
|
+
errorMessage: string | null;
|
|
43
|
+
classConfig: {
|
|
44
|
+
iconLeft?: string | undefined;
|
|
45
|
+
iconRight?: string | undefined;
|
|
46
|
+
input?: string | undefined;
|
|
47
|
+
inputs?: string | undefined;
|
|
48
|
+
loader?: string | undefined;
|
|
49
|
+
root?: string | undefined;
|
|
50
|
+
} | null;
|
|
51
|
+
autocomplete: "off" | "on";
|
|
52
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
53
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
25
54
|
export default _default;
|
|
26
|
-
type
|
|
27
|
-
|
|
28
|
-
|
|
55
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Temporal } from 'temporal-polyfill';
|
|
1
2
|
import { ComputedRef, Ref } from 'vue';
|
|
2
3
|
import { ResolvedClassConfig } from '../../class-variant/classVariant.type';
|
|
3
4
|
import { TimeFieldProps } from './timeField.props';
|
|
@@ -5,7 +6,7 @@ import { CreateTimeFieldStyle } from './timeField.style';
|
|
|
5
6
|
import { PropsToComputed } from '../../utils/props.util';
|
|
6
7
|
interface TimeFieldContext extends PropsToComputed<TimeFieldProps> {
|
|
7
8
|
customClassConfig: ComputedRef<ResolvedClassConfig<'timeField'>>;
|
|
8
|
-
modelValue: Ref<
|
|
9
|
+
modelValue: Ref<Temporal.PlainTime | null>;
|
|
9
10
|
style: ComputedRef<CreateTimeFieldStyle>;
|
|
10
11
|
onBlur: (event: FocusEvent) => void;
|
|
11
12
|
onFocus: (event: FocusEvent) => void;
|