@wisemen/vue-core-components 1.17.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-DVsVCSLr.js → AlertCircleIcon-D7CicIEs.js} +1 -1
- package/dist/{AlertTriangleIcon-C7yedJDj.js → AlertTriangleIcon-DzlLdT1q.js} +1 -1
- package/dist/{ArrowDownIcon-CTqY9yih.js → ArrowDownIcon-DZr01Sf6.js} +1 -1
- package/dist/{ArrowLeftIcon-CMBqMcN8.js → ArrowLeftIcon-CVU7B5Rv.js} +1 -1
- package/dist/{ArrowRightIcon-BYaugluP.js → ArrowRightIcon-A8_LzUxJ.js} +1 -1
- package/dist/{ArrowUpIcon-Ci3lRZK5.js → ArrowUpIcon-c-BbbYHh.js} +1 -1
- package/dist/{CalendarIcon-AHt2ALJb.js → CalendarIcon-D2NvYthk.js} +1 -1
- package/dist/{CheckCircleIcon-BSCXFP22.js → CheckCircleIcon-DKnYfS0a.js} +1 -1
- package/dist/{CheckIcon-BcSj6qzw.js → CheckIcon-BdFM_PWS.js} +1 -1
- package/dist/{ChevronLeftDoubleIcon-DhecHeTI.js → ChevronLeftDoubleIcon-BjIKgpkh.js} +1 -1
- package/dist/{ChevronLeftIcon-DkH4rff3.js → ChevronLeftIcon-DhUy0U_9.js} +1 -1
- package/dist/{ChevronRightDoubleIcon-CELq3EDE.js → ChevronRightDoubleIcon-BF0prMpM.js} +1 -1
- package/dist/{ChevronRightIcon-Xk2hDdj0.js → ChevronRightIcon-5hSTA6TF.js} +1 -1
- package/dist/{CloseIcon-BXmDw2ST.js → CloseIcon-C0sSLkrm.js} +1 -1
- package/dist/{EyeIcon-SRgflOZ4.js → EyeIcon-LaL5PkGR.js} +1 -1
- package/dist/{EyeOffIcon-DaacPXpf.js → EyeOffIcon-CG1ArkOt.js} +1 -1
- package/dist/{InfoCircleIcon-BO5xoT5y.js → InfoCircleIcon-itEN2uGV.js} +1 -1
- package/dist/{MinusIcon-Dhrr9qOB.js → MinusIcon-Dm3It5EC.js} +1 -1
- package/dist/{PlusIcon-BEfwXUnE.js → PlusIcon-C71GCIJ1.js} +1 -1
- package/dist/{SearchIcon-CMyCjH4B.js → SearchIcon-DMDvaCjI.js} +1 -1
- package/dist/{SelectIconRight-d8i-3c2D.js → SelectIconRight-CpQjNlqt.js} +1 -1
- package/dist/{StarsIcon-5kBm7r6u.js → StarsIcon-CtRxOZ6l.js} +1 -1
- package/dist/{SwitchVerticalIcon-CooLQOrG.js → SwitchVerticalIcon-BbFWYPhT.js} +1 -1
- package/dist/{TranslateIcon-CCaXc-R1.js → TranslateIcon-BWa8fOJh.js} +1 -1
- 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 +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-B--cIpg_.js → index-B8ijWIxM.js} +4623 -5542
- 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/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/{table-next → table}/parts/TableCellSkeleton.d.ts +0 -0
|
@@ -21,7 +21,6 @@ import { createRadioGroupItemStyle } from '../components/radio-group-item/radioG
|
|
|
21
21
|
import { createSelectStyle } from '../components/select/style/select.style';
|
|
22
22
|
import { createSwitchStyle } from '../components/switch/switch.style';
|
|
23
23
|
import { createTableStyle } from '../components/table/table.style';
|
|
24
|
-
import { createTableNextStyle } from '../components/table-next/table.style';
|
|
25
24
|
import { createTabsStyle } from '../components/tabs/shared/tabs.style';
|
|
26
25
|
import { createTextFieldStyle } from '../components/text-field/textField.style';
|
|
27
26
|
import { createTextareaStyle } from '../components/textarea/textarea.style';
|
|
@@ -140,12 +139,6 @@ export interface ComponentMap {
|
|
|
140
139
|
headerCellButton: 'button';
|
|
141
140
|
};
|
|
142
141
|
};
|
|
143
|
-
tableNext: {
|
|
144
|
-
style: typeof createTableNextStyle;
|
|
145
|
-
children: {
|
|
146
|
-
headerCellButton: 'button';
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
142
|
tabs: {
|
|
150
143
|
style: typeof createTabsStyle;
|
|
151
144
|
children: {
|
|
@@ -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: Date | null;
|
|
50
|
+
minDate: Date | null;
|
|
51
|
+
isDateDisabled: (date: Date) => boolean;
|
|
52
|
+
isDateUnavailable: (date: Date) => 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,11 +21,11 @@ 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;
|
|
@@ -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,11 +20,11 @@ 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;
|
|
@@ -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;
|