@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
|
@@ -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: {
|
|
@@ -49,12 +49,8 @@ declare function __VLS_template(): {
|
|
|
49
49
|
};
|
|
50
50
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
51
51
|
declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
52
|
-
focus: (e: FocusEvent) => any;
|
|
53
|
-
blur: (e: FocusEvent) => any;
|
|
54
52
|
click: (e: MouseEvent) => any;
|
|
55
53
|
}, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
56
|
-
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
57
|
-
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
58
54
|
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
59
55
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
60
56
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -9,12 +9,8 @@ declare function __VLS_template(): {
|
|
|
9
9
|
};
|
|
10
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
11
|
declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
12
|
-
focus: (e: FocusEvent) => any;
|
|
13
|
-
blur: (e: FocusEvent) => any;
|
|
14
12
|
click: (e: MouseEvent) => any;
|
|
15
13
|
}, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
16
|
-
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
17
|
-
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
18
14
|
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
19
15
|
}>, {
|
|
20
16
|
size: "sm" | "md" | "lg" | "xl" | "2xl";
|
|
@@ -25,12 +25,8 @@ declare function __VLS_template(): {
|
|
|
25
25
|
};
|
|
26
26
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
27
27
|
declare const __VLS_component: import('vue').DefineComponent<IconButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
28
|
-
focus: (e: FocusEvent) => any;
|
|
29
|
-
blur: (e: FocusEvent) => any;
|
|
30
28
|
click: (e: MouseEvent) => any;
|
|
31
29
|
}, string, import('vue').PublicProps, Readonly<IconButtonProps> & Readonly<{
|
|
32
|
-
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
33
|
-
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
34
30
|
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
35
31
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
36
32
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -9,12 +9,8 @@ declare function __VLS_template(): {
|
|
|
9
9
|
};
|
|
10
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
11
|
declare const __VLS_component: import('vue').DefineComponent<IconButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
12
|
-
focus: (e: FocusEvent) => any;
|
|
13
|
-
blur: (e: FocusEvent) => any;
|
|
14
12
|
click: (e: MouseEvent) => any;
|
|
15
13
|
}, string, import('vue').PublicProps, Readonly<IconButtonProps> & Readonly<{
|
|
16
|
-
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
17
|
-
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
18
14
|
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
19
15
|
}>, {
|
|
20
16
|
size: "sm" | "md" | "lg" | "xl" | "2xl";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AutoCloseToastConfig, ToastPosition } from '../toast/toast.composable';
|
|
2
|
+
import { HourCycle } from '../../types/hourCycle.type';
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
/**
|
|
4
5
|
* Whether the keyboard shortcut hints should be hidden.
|
|
@@ -17,6 +18,12 @@ type __VLS_Props = {
|
|
|
17
18
|
* @default null
|
|
18
19
|
*/
|
|
19
20
|
googleMapsApiKey?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The hour cycle to use for time-related components.
|
|
23
|
+
* Can be either 'h12' or 'h24'. If not provided, the system locale's default will be used.
|
|
24
|
+
* @default null
|
|
25
|
+
*/
|
|
26
|
+
hourCycle?: HourCycle;
|
|
20
27
|
/**
|
|
21
28
|
* The locale to use for localization.
|
|
22
29
|
*/
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
2
|
import { AutoCloseToastConfig, ToastPosition } from '../toast/toast.composable';
|
|
3
|
+
import { HourCycle } from '../../types/hourCycle.type';
|
|
3
4
|
interface ConfigContext {
|
|
4
5
|
areKeyboardShortcutHintsHidden: ComputedRef<boolean>;
|
|
5
6
|
autoCloseToast: ComputedRef<AutoCloseToastConfig | null>;
|
|
6
7
|
googleMapsApiKey: string | null;
|
|
8
|
+
hourCycle: ComputedRef<HourCycle | null>;
|
|
7
9
|
locale: ComputedRef<string>;
|
|
8
10
|
pagination?: {
|
|
9
11
|
limit?: number;
|
|
@@ -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;
|
|
@@ -4,5 +4,5 @@ export { default as VcDateField } from './DateField';
|
|
|
4
4
|
export { default as VcDateFieldIconLeft } from './parts/DateFieldIconLeft';
|
|
5
5
|
export { default as VcDateFieldInput } from './parts/DateFieldInput';
|
|
6
6
|
export { default as VcDateFieldLoader } from './parts/DateFieldLoader';
|
|
7
|
-
export { default as
|
|
7
|
+
export { default as VcDateFieldPopover } from './parts/DateFieldPopover';
|
|
8
8
|
export { default as VcDateFieldRoot } from './parts/DateFieldRoot';
|
|
@@ -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;
|