@wisemen/vue-core-components 1.17.0 → 2.0.0-beta.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/dist/{AlertCircleIcon-DVsVCSLr.js → AlertCircleIcon-BLbtEUH-.js} +3 -3
- package/dist/{AlertTriangleIcon-C7yedJDj.js → AlertTriangleIcon-kJw_T9e-.js} +3 -3
- package/dist/{ArrowDownIcon-CTqY9yih.js → ArrowDownIcon-CkVQsEvv.js} +3 -3
- package/dist/{ArrowLeftIcon-CMBqMcN8.js → ArrowLeftIcon-CP9_-qnd.js} +3 -3
- package/dist/{ArrowRightIcon-BYaugluP.js → ArrowRightIcon-w5fVDFiq.js} +3 -3
- package/dist/{ArrowUpIcon-Ci3lRZK5.js → ArrowUpIcon-DKZjRlmj.js} +3 -3
- package/dist/{CalendarIcon-AHt2ALJb.js → CalendarIcon-7fprEqFc.js} +3 -3
- package/dist/{CheckCircleIcon-BSCXFP22.js → CheckCircleIcon-HbJLgOw9.js} +3 -3
- package/dist/{CheckIcon-BcSj6qzw.js → CheckIcon-BBFmLGuv.js} +3 -3
- package/dist/{ChevronLeftDoubleIcon-DhecHeTI.js → ChevronLeftDoubleIcon-Drc444v-.js} +3 -3
- package/dist/{ChevronLeftIcon-DkH4rff3.js → ChevronLeftIcon-B4KT0JAn.js} +3 -3
- package/dist/{ChevronRightDoubleIcon-CELq3EDE.js → ChevronRightDoubleIcon-CQvmF4I2.js} +3 -3
- package/dist/{ChevronRightIcon-Xk2hDdj0.js → ChevronRightIcon-0XgcagRL.js} +3 -3
- package/dist/{CloseIcon-BXmDw2ST.js → CloseIcon-BHMSev8x.js} +3 -3
- package/dist/{EyeIcon-SRgflOZ4.js → EyeIcon-B6T7aYfu.js} +3 -3
- package/dist/{EyeOffIcon-DaacPXpf.js → EyeOffIcon-Ct16b1Ad.js} +3 -3
- package/dist/{InfoCircleIcon-BO5xoT5y.js → InfoCircleIcon-BmWDjIZI.js} +3 -3
- package/dist/{MinusIcon-Dhrr9qOB.js → MinusIcon-uRMLJl9L.js} +3 -3
- package/dist/{PlusIcon-BEfwXUnE.js → PlusIcon-ClWc-DVk.js} +3 -3
- package/dist/{SearchIcon-CMyCjH4B.js → SearchIcon-CbBNTlci.js} +3 -3
- package/dist/{SelectIconRight-d8i-3c2D.js → SelectIconRight-DjElyeZe.js} +3 -3
- package/dist/{StarsIcon-5kBm7r6u.js → StarsIcon-C7prwd5n.js} +3 -3
- package/dist/{SwitchVerticalIcon-CooLQOrG.js → SwitchVerticalIcon-Dps8uK3y.js} +3 -3
- package/dist/{TranslateIcon-CCaXc-R1.js → TranslateIcon-OYD9gTka.js} +3 -3
- package/dist/class-variant/classVariant.type.d.ts +0 -7
- 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/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 +11 -10
- 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 +11 -10
- 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-B--cIpg_.js → index-Dj_duNG8.js} +4891 -5549
- package/dist/index.js +140 -152
- package/dist/index.umd +14 -14
- package/dist/style.css +1 -1
- package/dist/types/dateRange.type.d.ts +2 -1
- package/dist/types/shareDateProps.type.d.ts +5 -4
- package/package.json +26 -24
- 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/{table-next → table}/parts/TableCellSkeleton.d.ts +0 -0
|
@@ -1,24 +1,34 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Temporal } from 'temporal-polyfill';
|
|
2
2
|
import { DateFieldProps } from './dateField.props';
|
|
3
3
|
import { DateFieldSlots } from './dateField.slots';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
modelValue: TValue | null;
|
|
12
|
-
placeholderValue?: TValue | null;
|
|
13
|
-
} & DateFieldProps) & Partial<{}>> & import('vue').PublicProps;
|
|
14
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
15
|
-
attrs: any;
|
|
4
|
+
type __VLS_Props = DateFieldProps;
|
|
5
|
+
type __VLS_PublicProps = {
|
|
6
|
+
modelValue: Temporal.PlainDate | null;
|
|
7
|
+
'placeholderValue'?: Temporal.PlainDate | null;
|
|
8
|
+
} & __VLS_Props;
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
16
11
|
slots: Readonly<DateFieldSlots> & DateFieldSlots;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: HTMLDivElement;
|
|
20
14
|
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (value: Temporal.PlainDate | null) => any;
|
|
18
|
+
"update:placeholderValue": (value: Temporal.PlainDate | null) => any;
|
|
19
|
+
} & {
|
|
20
|
+
focus: (e: FocusEvent) => any;
|
|
21
|
+
blur: (e: FocusEvent) => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
+
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
24
|
+
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
25
|
+
"onUpdate:modelValue"?: ((value: Temporal.PlainDate | null) => any) | undefined;
|
|
26
|
+
"onUpdate:placeholderValue"?: ((value: Temporal.PlainDate | null) => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
28
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
29
|
export default _default;
|
|
22
|
-
type
|
|
23
|
-
|
|
24
|
-
|
|
30
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -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 { DateFieldProps } from './dateField.props';
|
|
@@ -5,8 +6,8 @@ import { CreateDateFieldStyle } from './dateField.style';
|
|
|
5
6
|
import { PropsToComputed } from '../../utils/props.util';
|
|
6
7
|
interface DateFieldContext extends PropsToComputed<DateFieldProps> {
|
|
7
8
|
customClassConfig: ComputedRef<ResolvedClassConfig<'dateField'>>;
|
|
8
|
-
modelValue: Ref<
|
|
9
|
-
placeholderValue: Ref<
|
|
9
|
+
modelValue: Ref<Temporal.PlainDate | null>;
|
|
10
|
+
placeholderValue: Ref<Temporal.PlainDate>;
|
|
10
11
|
style: ComputedRef<CreateDateFieldStyle>;
|
|
11
12
|
onBlur: (event: FocusEvent) => void;
|
|
12
13
|
onFocus: (event: FocusEvent) => void;
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Temporal } from 'temporal-polyfill';
|
|
2
|
+
import { ResolvedClassConfig } from '../../../class-variant/classVariant.type';
|
|
2
3
|
import { DateFieldProps } from '../dateField.props';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
modelValue: TValue | null;
|
|
11
|
-
placeholderValue?: TValue | null;
|
|
12
|
-
} & DateFieldProps) & Partial<{}>> & import('vue').PublicProps;
|
|
13
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
14
|
-
attrs: any;
|
|
4
|
+
type __VLS_Props = DateFieldProps;
|
|
5
|
+
type __VLS_PublicProps = {
|
|
6
|
+
modelValue: Temporal.PlainDate | null;
|
|
7
|
+
'placeholderValue'?: Temporal.PlainDate | null;
|
|
8
|
+
} & __VLS_Props;
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
15
11
|
slots: {
|
|
16
12
|
default?(_: {
|
|
17
13
|
segments: {
|
|
@@ -20,11 +16,47 @@ declare const _default: <TValue extends Date>(__VLS_props: NonNullable<Awaited<t
|
|
|
20
16
|
}[];
|
|
21
17
|
}): any;
|
|
22
18
|
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
19
|
+
refs: {};
|
|
20
|
+
rootEl: any;
|
|
26
21
|
};
|
|
22
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
+
"update:modelValue": (value: Temporal.PlainDate | null) => any;
|
|
25
|
+
"update:placeholderValue": (value: Temporal.PlainDate | null) => any;
|
|
26
|
+
} & {
|
|
27
|
+
focus: (e: FocusEvent) => any;
|
|
28
|
+
blur: (e: FocusEvent) => any;
|
|
29
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
30
|
+
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
31
|
+
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
32
|
+
"onUpdate:modelValue"?: ((value: Temporal.PlainDate | null) => any) | undefined;
|
|
33
|
+
"onUpdate:placeholderValue"?: ((value: Temporal.PlainDate | null) => any) | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
variant: null;
|
|
36
|
+
iconLeft: import('../../..').Icon | null;
|
|
37
|
+
label: string | null;
|
|
38
|
+
hint: string | null;
|
|
39
|
+
isLoading: boolean;
|
|
40
|
+
testId: string | null;
|
|
41
|
+
isDisabled: boolean;
|
|
42
|
+
id: string | null;
|
|
43
|
+
isRequired: boolean;
|
|
44
|
+
isTouched: boolean;
|
|
45
|
+
errorMessage: string | null;
|
|
46
|
+
classConfig: ResolvedClassConfig<"dateField"> | null;
|
|
47
|
+
autocomplete: "off" | "on";
|
|
48
|
+
hideDatePicker: boolean;
|
|
49
|
+
maxDate: Temporal.PlainDate | null;
|
|
50
|
+
minDate: Temporal.PlainDate | null;
|
|
51
|
+
isDateDisabled: (date: Temporal.PlainDate) => boolean;
|
|
52
|
+
isDateUnavailable: (date: Temporal.PlainDate) => boolean;
|
|
53
|
+
allowDeselect: boolean;
|
|
54
|
+
showTwoMonths: boolean;
|
|
55
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
56
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
57
|
export default _default;
|
|
28
|
-
type
|
|
29
|
-
|
|
30
|
-
|
|
58
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
59
|
+
new (): {
|
|
60
|
+
$slots: S;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { Temporal } from 'temporal-polyfill';
|
|
1
2
|
import { DateRangePickerProps } from './dateRangePicker.props';
|
|
2
3
|
import { DateRange } from '../../../types/dateRange.type';
|
|
3
4
|
type __VLS_Props = DateRangePickerProps;
|
|
4
5
|
type __VLS_PublicProps = {
|
|
5
|
-
modelValue: DateRange
|
|
6
|
-
'placeholderValue'?:
|
|
6
|
+
modelValue: DateRange<Temporal.PlainDate>;
|
|
7
|
+
'placeholderValue'?: Temporal.PlainDate;
|
|
7
8
|
} & __VLS_Props;
|
|
8
9
|
declare function __VLS_template(): {
|
|
9
10
|
attrs: Partial<{}>;
|
|
@@ -17,11 +18,11 @@ declare function __VLS_template(): {
|
|
|
17
18
|
};
|
|
18
19
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
20
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
-
"update:modelValue": (value: DateRange<
|
|
21
|
-
"update:placeholderValue": (value:
|
|
21
|
+
"update:modelValue": (value: DateRange<Temporal.PlainDate>) => any;
|
|
22
|
+
"update:placeholderValue": (value: Temporal.PlainDate) => any;
|
|
22
23
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
-
"onUpdate:modelValue"?: ((value: DateRange<
|
|
24
|
-
"onUpdate:placeholderValue"?: ((value:
|
|
24
|
+
"onUpdate:modelValue"?: ((value: DateRange<Temporal.PlainDate>) => any) | undefined;
|
|
25
|
+
"onUpdate:placeholderValue"?: ((value: Temporal.PlainDate) => any) | undefined;
|
|
25
26
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
27
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
28
|
export default _default;
|
|
@@ -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 { DateRangePickerProps } from './dateRangePicker.props';
|
|
@@ -6,8 +7,8 @@ import { DateRange } from '../../../types/dateRange.type';
|
|
|
6
7
|
import { PropsToComputed } from '../../../utils/props.util';
|
|
7
8
|
interface DateRangePickerContext extends PropsToComputed<DateRangePickerProps> {
|
|
8
9
|
customClassConfig: ComputedRef<ResolvedClassConfig<'dateRangePicker'>>;
|
|
9
|
-
modelValue: Ref<DateRange
|
|
10
|
-
placeholderValue: Ref<
|
|
10
|
+
modelValue: Ref<DateRange<Temporal.PlainDate>>;
|
|
11
|
+
placeholderValue: Ref<Temporal.PlainDate>;
|
|
11
12
|
style: ComputedRef<CreateDateRangePickerStyle>;
|
|
12
13
|
}
|
|
13
14
|
export declare const useProvideDateRangePickerContext: (context: DateRangePickerContext) => DateRangePickerContext, useInjectDateRangePickerContext: <TFallback extends DateRangePickerContext | null = DateRangePickerContext>(fallback?: TFallback | undefined) => TFallback extends null ? DateRangePickerContext | null : DateRangePickerContext;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { DateValue } from 'reka-ui';
|
|
2
|
+
import { Temporal } from 'temporal-polyfill';
|
|
2
3
|
import { DateRangePickerProps } from '../dateRangePicker.props';
|
|
3
4
|
import { Grid } from '../../shared/datePicker.type';
|
|
4
5
|
import { DateRange } from '../../../../types/dateRange.type';
|
|
5
6
|
type __VLS_Props = DateRangePickerProps;
|
|
6
7
|
type __VLS_PublicProps = {
|
|
7
|
-
modelValue: DateRange
|
|
8
|
-
'placeholderValue'?:
|
|
8
|
+
modelValue: DateRange<Temporal.PlainDate>;
|
|
9
|
+
'placeholderValue'?: Temporal.PlainDate;
|
|
9
10
|
} & __VLS_Props;
|
|
10
11
|
declare function __VLS_template(): {
|
|
11
12
|
attrs: Partial<{}>;
|
|
@@ -20,19 +21,19 @@ declare function __VLS_template(): {
|
|
|
20
21
|
};
|
|
21
22
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
23
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
|
-
"update:modelValue": (value: DateRange<
|
|
24
|
-
"update:placeholderValue": (value:
|
|
24
|
+
"update:modelValue": (value: DateRange<Temporal.PlainDate>) => any;
|
|
25
|
+
"update:placeholderValue": (value: Temporal.PlainDate) => any;
|
|
25
26
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
26
|
-
"onUpdate:modelValue"?: ((value: DateRange<
|
|
27
|
-
"onUpdate:placeholderValue"?: ((value:
|
|
27
|
+
"onUpdate:modelValue"?: ((value: DateRange<Temporal.PlainDate>) => any) | undefined;
|
|
28
|
+
"onUpdate:placeholderValue"?: ((value: Temporal.PlainDate) => any) | undefined;
|
|
28
29
|
}>, {
|
|
29
30
|
variant: null;
|
|
30
31
|
testId: string | null;
|
|
31
32
|
isDisabled: boolean;
|
|
32
|
-
maxDate:
|
|
33
|
-
minDate:
|
|
34
|
-
isDateDisabled: (date:
|
|
35
|
-
isDateUnavailable: (date:
|
|
33
|
+
maxDate: Temporal.PlainDate | null;
|
|
34
|
+
minDate: Temporal.PlainDate | null;
|
|
35
|
+
isDateDisabled: (date: Temporal.PlainDate) => boolean;
|
|
36
|
+
isDateUnavailable: (date: Temporal.PlainDate) => boolean;
|
|
36
37
|
allowDeselect: boolean;
|
|
37
38
|
showTwoMonths: boolean;
|
|
38
39
|
focusOnMount: boolean;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { DateValue } from 'reka-ui';
|
|
2
|
+
import { Temporal } from 'temporal-polyfill';
|
|
2
3
|
export declare function dateToDateValue(date: Date): DateValue;
|
|
4
|
+
export declare function dateValueToPlainDate(value: DateValue): Temporal.PlainDate;
|
|
5
|
+
export declare function plainDateToDateValue(plainDate: Temporal.PlainDate): DateValue;
|
|
3
6
|
export declare function dateValueToDate(value: DateValue): Date;
|
|
4
7
|
export declare function getMonthName(month: number, locale: string, format: 'long' | 'short'): string;
|
|
5
8
|
export declare function getDaysInMonth(month: number, year: number): number;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { Temporal } from 'temporal-polyfill';
|
|
1
2
|
import { DatePickerProps } from './datePicker.props';
|
|
2
3
|
type __VLS_Props = DatePickerProps;
|
|
3
4
|
type __VLS_PublicProps = {
|
|
4
|
-
modelValue:
|
|
5
|
-
'placeholderValue'?:
|
|
5
|
+
modelValue: Temporal.PlainDate | null;
|
|
6
|
+
'placeholderValue'?: Temporal.PlainDate;
|
|
6
7
|
} & __VLS_Props;
|
|
7
8
|
declare function __VLS_template(): {
|
|
8
9
|
attrs: Partial<{}>;
|
|
@@ -16,11 +17,11 @@ declare function __VLS_template(): {
|
|
|
16
17
|
};
|
|
17
18
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
19
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
-
"update:modelValue": (value:
|
|
20
|
-
"update:placeholderValue": (value:
|
|
20
|
+
"update:modelValue": (value: Temporal.PlainDate | null) => any;
|
|
21
|
+
"update:placeholderValue": (value: Temporal.PlainDate) => any;
|
|
21
22
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
-
"onUpdate:modelValue"?: ((value:
|
|
23
|
-
"onUpdate:placeholderValue"?: ((value:
|
|
23
|
+
"onUpdate:modelValue"?: ((value: Temporal.PlainDate | null) => any) | undefined;
|
|
24
|
+
"onUpdate:placeholderValue"?: ((value: Temporal.PlainDate) => any) | undefined;
|
|
24
25
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
26
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
27
|
export default _default;
|
|
@@ -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 { DatePickerProps } from './datePicker.props';
|
|
@@ -5,8 +6,8 @@ import { CreateDatePickerStyle } from './datePicker.style';
|
|
|
5
6
|
import { PropsToComputed } from '../../../utils/props.util';
|
|
6
7
|
interface DatePickerContext extends PropsToComputed<DatePickerProps> {
|
|
7
8
|
customClassConfig: ComputedRef<ResolvedClassConfig<'datePicker'>>;
|
|
8
|
-
modelValue: Ref<
|
|
9
|
-
placeholderValue: Ref<
|
|
9
|
+
modelValue: Ref<Temporal.PlainDate | null>;
|
|
10
|
+
placeholderValue: Ref<Temporal.PlainDate>;
|
|
10
11
|
style: ComputedRef<CreateDatePickerStyle>;
|
|
11
12
|
}
|
|
12
13
|
export declare const useProvideDatePickerContext: (context: DatePickerContext) => DatePickerContext, useInjectDatePickerContext: <TFallback extends DatePickerContext | null = DatePickerContext>(fallback?: TFallback | undefined) => TFallback extends null ? DatePickerContext | null : DatePickerContext;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { DateValue } from 'reka-ui';
|
|
2
|
+
import { Temporal } from 'temporal-polyfill';
|
|
2
3
|
import { Grid } from '../../shared/datePicker.type';
|
|
3
4
|
import { DatePickerProps } from '../datePicker.props';
|
|
4
5
|
type __VLS_Props = DatePickerProps;
|
|
5
6
|
type __VLS_PublicProps = {
|
|
6
|
-
modelValue:
|
|
7
|
-
'placeholderValue'?:
|
|
7
|
+
modelValue: Temporal.PlainDate | null;
|
|
8
|
+
'placeholderValue'?: Temporal.PlainDate;
|
|
8
9
|
} & __VLS_Props;
|
|
9
10
|
declare function __VLS_template(): {
|
|
10
11
|
attrs: Partial<{}>;
|
|
@@ -19,19 +20,19 @@ declare function __VLS_template(): {
|
|
|
19
20
|
};
|
|
20
21
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
22
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
-
"update:modelValue": (value:
|
|
23
|
-
"update:placeholderValue": (value:
|
|
23
|
+
"update:modelValue": (value: Temporal.PlainDate | null) => any;
|
|
24
|
+
"update:placeholderValue": (value: Temporal.PlainDate) => any;
|
|
24
25
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
25
|
-
"onUpdate:modelValue"?: ((value:
|
|
26
|
-
"onUpdate:placeholderValue"?: ((value:
|
|
26
|
+
"onUpdate:modelValue"?: ((value: Temporal.PlainDate | null) => any) | undefined;
|
|
27
|
+
"onUpdate:placeholderValue"?: ((value: Temporal.PlainDate) => any) | undefined;
|
|
27
28
|
}>, {
|
|
28
29
|
variant: null;
|
|
29
30
|
testId: string | null;
|
|
30
31
|
isDisabled: boolean;
|
|
31
|
-
maxDate:
|
|
32
|
-
minDate:
|
|
33
|
-
isDateDisabled: (date:
|
|
34
|
-
isDateUnavailable: (date:
|
|
32
|
+
maxDate: Temporal.PlainDate | null;
|
|
33
|
+
minDate: Temporal.PlainDate | null;
|
|
34
|
+
isDateDisabled: (date: Temporal.PlainDate) => boolean;
|
|
35
|
+
isDateUnavailable: (date: Temporal.PlainDate) => boolean;
|
|
35
36
|
allowDeselect: boolean;
|
|
36
37
|
showTwoMonths: boolean;
|
|
37
38
|
focusOnMount: boolean;
|
|
@@ -1,25 +1,35 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Temporal } from 'temporal-polyfill';
|
|
2
2
|
import { DateRangeFieldProps } from './dateRangeField.props';
|
|
3
3
|
import { DateRangeFieldSlots } from './dateRangeField.slots';
|
|
4
4
|
import { DateRange } from '../../types/dateRange.type';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
modelValue: DateRange<TValue>;
|
|
13
|
-
placeholderValue?: Date;
|
|
14
|
-
} & DateRangeFieldProps) & Partial<{}>> & import('vue').PublicProps;
|
|
15
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
16
|
-
attrs: any;
|
|
5
|
+
type __VLS_Props = DateRangeFieldProps;
|
|
6
|
+
type __VLS_PublicProps = {
|
|
7
|
+
modelValue: DateRange<Temporal.PlainDate>;
|
|
8
|
+
'placeholderValue'?: Temporal.PlainDate;
|
|
9
|
+
} & __VLS_Props;
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
17
12
|
slots: Readonly<DateRangeFieldSlots> & DateRangeFieldSlots;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: HTMLDivElement;
|
|
21
15
|
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
"update:modelValue": (value: DateRange<Temporal.PlainDate>) => any;
|
|
19
|
+
"update:placeholderValue": (value: Temporal.PlainDate) => any;
|
|
20
|
+
} & {
|
|
21
|
+
focus: (e: FocusEvent) => any;
|
|
22
|
+
blur: (e: FocusEvent) => any;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
|
+
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
25
|
+
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
26
|
+
"onUpdate:modelValue"?: ((value: DateRange<Temporal.PlainDate>) => any) | undefined;
|
|
27
|
+
"onUpdate:placeholderValue"?: ((value: Temporal.PlainDate) => any) | undefined;
|
|
28
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
29
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
30
|
export default _default;
|
|
23
|
-
type
|
|
24
|
-
|
|
25
|
-
|
|
31
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -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 { DateRangeFieldProps } from './dateRangeField.props';
|
|
@@ -6,8 +7,8 @@ import { DateRange } from '../../types/dateRange.type';
|
|
|
6
7
|
import { PropsToComputed } from '../../utils/props.util';
|
|
7
8
|
interface DateRangeFieldContext extends PropsToComputed<DateRangeFieldProps> {
|
|
8
9
|
customClassConfig: ComputedRef<ResolvedClassConfig<'dateRangeField'>>;
|
|
9
|
-
modelValue: Ref<DateRange
|
|
10
|
-
placeholderValue: Ref<
|
|
10
|
+
modelValue: Ref<DateRange<Temporal.PlainDate>>;
|
|
11
|
+
placeholderValue: Ref<Temporal.PlainDate>;
|
|
11
12
|
style: ComputedRef<CreateDateRangeFieldStyle>;
|
|
12
13
|
onBlur: (event: FocusEvent) => void;
|
|
13
14
|
onFocus: (event: FocusEvent) => void;
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Temporal } from 'temporal-polyfill';
|
|
2
|
+
import { ResolvedClassConfig } from '../../../class-variant/classVariant.type';
|
|
2
3
|
import { DateRangeFieldProps } from '../dateRangeField.props';
|
|
3
4
|
import { DateRange } from '../../../types/dateRange.type';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
modelValue: DateRange<TValue>;
|
|
12
|
-
placeholderValue?: Date;
|
|
13
|
-
} & DateRangeFieldProps) & Partial<{}>> & import('vue').PublicProps;
|
|
14
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
15
|
-
attrs: any;
|
|
5
|
+
type __VLS_Props = DateRangeFieldProps;
|
|
6
|
+
type __VLS_PublicProps = {
|
|
7
|
+
modelValue: DateRange<Temporal.PlainDate>;
|
|
8
|
+
'placeholderValue'?: Temporal.PlainDate;
|
|
9
|
+
} & __VLS_Props;
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
16
12
|
slots: {
|
|
17
13
|
default?(_: {
|
|
18
14
|
segments: {
|
|
@@ -27,11 +23,47 @@ declare const _default: <TValue extends Date>(__VLS_props: NonNullable<Awaited<t
|
|
|
27
23
|
};
|
|
28
24
|
}): any;
|
|
29
25
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
26
|
+
refs: {};
|
|
27
|
+
rootEl: any;
|
|
33
28
|
};
|
|
29
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
30
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
|
+
"update:modelValue": (value: DateRange<Temporal.PlainDate>) => any;
|
|
32
|
+
"update:placeholderValue": (value: Temporal.PlainDate) => any;
|
|
33
|
+
} & {
|
|
34
|
+
focus: (e: FocusEvent) => any;
|
|
35
|
+
blur: (e: FocusEvent) => any;
|
|
36
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
37
|
+
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
38
|
+
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
39
|
+
"onUpdate:modelValue"?: ((value: DateRange<Temporal.PlainDate>) => any) | undefined;
|
|
40
|
+
"onUpdate:placeholderValue"?: ((value: Temporal.PlainDate) => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
variant: null;
|
|
43
|
+
iconLeft: import('../../..').Icon | null;
|
|
44
|
+
label: string | null;
|
|
45
|
+
hint: string | null;
|
|
46
|
+
isLoading: boolean;
|
|
47
|
+
testId: string | null;
|
|
48
|
+
isDisabled: boolean;
|
|
49
|
+
id: string | null;
|
|
50
|
+
isRequired: boolean;
|
|
51
|
+
isTouched: boolean;
|
|
52
|
+
errorMessage: string | null;
|
|
53
|
+
classConfig: ResolvedClassConfig<"dateRangeField"> | null;
|
|
54
|
+
autocomplete: "off" | "on";
|
|
55
|
+
hideDatePicker: boolean;
|
|
56
|
+
maxDate: Temporal.PlainDate | null;
|
|
57
|
+
minDate: Temporal.PlainDate | null;
|
|
58
|
+
isDateDisabled: (date: Temporal.PlainDate) => boolean;
|
|
59
|
+
isDateUnavailable: (date: Temporal.PlainDate) => boolean;
|
|
60
|
+
allowDeselect: boolean;
|
|
61
|
+
showTwoMonths: boolean;
|
|
62
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
63
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
34
64
|
export default _default;
|
|
35
|
-
type
|
|
36
|
-
|
|
37
|
-
|
|
65
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
66
|
+
new (): {
|
|
67
|
+
$slots: S;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
@@ -23,9 +23,11 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
23
23
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
24
|
close: () => any;
|
|
25
25
|
"update:isOpen": (value: boolean) => any;
|
|
26
|
+
close_: () => any;
|
|
26
27
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
27
28
|
onClose?: (() => any) | undefined;
|
|
28
29
|
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
30
|
+
onClose_?: (() => any) | undefined;
|
|
29
31
|
}>, {
|
|
30
32
|
testId: string | null;
|
|
31
33
|
classConfig: import('../../class-variant/classVariant.type').ResolvedClassConfig<"dialog"> | null;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
-
"update:activeDialogCount": (count: number) => any;
|
|
3
|
-
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
-
"onUpdate:activeDialogCount"?: ((count: number) => any) | undefined;
|
|
5
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
2
|
export default _default;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Dialog,
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { Dialog, DialogTriggerProps, GetComponentProps, OpenDialog } from './dialog.type';
|
|
3
3
|
export declare const dialogs: Ref<Dialog[]>;
|
|
4
|
-
export declare function useDialogContainer():
|
|
5
|
-
|
|
4
|
+
export declare function useDialogContainer(): {
|
|
5
|
+
dialogs: Ref<Dialog[], Dialog[]>;
|
|
6
|
+
};
|
|
7
|
+
export declare function removeDialogFromContainer(id: string): void;
|
|
8
|
+
export declare function useDialog<TComponent extends abstract new (...args: any) => any>(component: TComponent): {
|
|
9
|
+
isOpen: import('vue').ComputedRef<boolean>;
|
|
10
|
+
close: () => void;
|
|
11
|
+
open: OpenDialog<GetComponentProps<TComponent>>;
|
|
12
|
+
triggerProps: import('vue').ComputedRef<DialogTriggerProps>;
|
|
13
|
+
};
|
|
@@ -1,64 +1,22 @@
|
|
|
1
|
-
import { Component
|
|
1
|
+
import { Component } from 'vue';
|
|
2
2
|
export interface DialogTriggerProps {
|
|
3
3
|
'id': string;
|
|
4
|
+
'aria-controls'?: string;
|
|
4
5
|
'aria-expanded': boolean;
|
|
5
6
|
'aria-haspopup': 'dialog';
|
|
6
7
|
'data-state': boolean;
|
|
7
8
|
}
|
|
8
|
-
export type
|
|
9
|
+
export type IgnoredProps = '__v_isVNode' | 'class' | 'key' | 'onVnodeBeforeMount' | 'onVnodeBeforeUnmount' | 'onVnodeBeforeUpdate' | 'onVnodeMounted' | 'onVnodeUnmounted' | 'onVnodeUpdated' | 'ref' | 'ref_for' | 'ref_key' | 'style';
|
|
9
10
|
type PickKeys<T extends object, TValue extends null | undefined> = NonNullable<{
|
|
10
11
|
[K in keyof T]: TValue extends T[K] ? K : never;
|
|
11
12
|
}[keyof T]>;
|
|
12
13
|
type OptionalKeys<T extends object> = PickKeys<T, undefined>;
|
|
13
14
|
type RequiredKeys<T extends object> = Exclude<keyof T, OptionalKeys<T>>;
|
|
14
|
-
export
|
|
15
|
-
|
|
16
|
-
__isSuspense?: never;
|
|
17
|
-
__isTeleport?: never;
|
|
18
|
-
new (...args: never[]): {
|
|
19
|
-
$props: P;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export type Attrs<TComponent> = Omit<{
|
|
23
|
-
[K in keyof TComponent]: Ref<TComponent[K]> | TComponent[K];
|
|
24
|
-
}, 'isOpen'>;
|
|
25
|
-
export interface UseDialogOptions<TComponent extends Component> {
|
|
26
|
-
/**
|
|
27
|
-
* The component to render. Must be a component of which the root is `AppDialog`
|
|
28
|
-
*/
|
|
29
|
-
component: () => Promise<{
|
|
30
|
-
default: Constructor<TComponent>;
|
|
31
|
-
}>;
|
|
32
|
-
}
|
|
33
|
-
export interface UseDialogReturnType<TComponent extends Component> {
|
|
34
|
-
isOpen: (id?: string) => boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Close the dialog
|
|
37
|
-
*/
|
|
38
|
-
close: (id?: string) => void;
|
|
39
|
-
/**
|
|
40
|
-
* The props to pass to the trigger
|
|
41
|
-
* @param id The id of the dialog
|
|
42
|
-
*/
|
|
43
|
-
getTriggerProps: (id?: string) => DialogTriggerProps;
|
|
44
|
-
/**
|
|
45
|
-
* Open the dialog
|
|
46
|
-
* @param attrs The props to pass to the dialog - optional
|
|
47
|
-
*/
|
|
48
|
-
open: Omit<Attrs<TComponent>, 'Symbol'> extends Record<string, never> ? (attrs?: {
|
|
49
|
-
id?: string;
|
|
50
|
-
}) => Promise<void> : RequiredKeys<Omit<Attrs<TComponent>, 'Symbol'>> extends Record<string, never> ? (attrs?: Omit<Attrs<TComponent>, IgnoredKeys> & {
|
|
51
|
-
id?: string;
|
|
52
|
-
}) => Promise<void> : (attrs: Omit<Attrs<TComponent>, IgnoredKeys> & {
|
|
53
|
-
id?: string;
|
|
54
|
-
}) => Promise<void>;
|
|
55
|
-
}
|
|
15
|
+
export type GetComponentProps<TComponent extends abstract new (...args: any) => any> = Omit<InstanceType<TComponent>['$props'], IgnoredProps>;
|
|
16
|
+
export type OpenDialog<TProps extends Record<string, any>> = TProps extends Record<string, never> ? () => Promise<void> : RequiredKeys<Omit<TProps, IgnoredProps>> extends Record<string, never> ? (attrs?: Omit<TProps, IgnoredProps>) => Promise<void> : (attrs: Omit<TProps, IgnoredProps>) => Promise<void>;
|
|
56
17
|
export interface Dialog {
|
|
57
18
|
id: string;
|
|
58
19
|
isOpen: boolean;
|
|
59
20
|
component: Component;
|
|
60
21
|
}
|
|
61
|
-
export interface UseDialogContainerReturnType {
|
|
62
|
-
dialogs: Ref<Dialog[]>;
|
|
63
|
-
}
|
|
64
22
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { useDialog
|
|
1
|
+
export { useDialog } from './dialog.composable';
|
|
2
2
|
export type { DialogProps as VcDialogProps } from './dialog.props';
|
|
3
3
|
export { createDialogStyle } from './dialog.style';
|
|
4
4
|
export type { DialogTriggerProps as VcDialogTriggerProps } from './dialog.type';
|