@sectile/vue 0.5.0 → 0.7.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.
Files changed (93) hide show
  1. package/README.md +5 -0
  2. package/dist/calendar.d.ts +13 -265
  3. package/dist/calendar.d.ts.map +1 -1
  4. package/dist/calendar.js +12 -12
  5. package/dist/calendar.js.map +1 -1
  6. package/dist/date-field.d.ts +1 -1
  7. package/dist/date-field.d.ts.map +1 -1
  8. package/dist/date-field.js.map +1 -1
  9. package/dist/date-picker.d.ts +17 -430
  10. package/dist/date-picker.d.ts.map +1 -1
  11. package/dist/date-picker.js +13 -13
  12. package/dist/date-picker.js.map +1 -1
  13. package/dist/date-range-picker.d.ts +19 -432
  14. package/dist/date-range-picker.d.ts.map +1 -1
  15. package/dist/date-range-picker.js +13 -13
  16. package/dist/date-range-picker.js.map +1 -1
  17. package/dist/date-time-field.d.ts +1 -1
  18. package/dist/date-time-field.d.ts.map +1 -1
  19. package/dist/date-time-field.js.map +1 -1
  20. package/dist/date-time-picker.d.ts +19 -432
  21. package/dist/date-time-picker.d.ts.map +1 -1
  22. package/dist/date-time-picker.js +13 -13
  23. package/dist/date-time-picker.js.map +1 -1
  24. package/dist/date-time-range-picker.d.ts +19 -432
  25. package/dist/date-time-range-picker.d.ts.map +1 -1
  26. package/dist/date-time-range-picker.js +13 -13
  27. package/dist/date-time-range-picker.js.map +1 -1
  28. package/dist/host-provider.d.ts +12 -0
  29. package/dist/host-provider.d.ts.map +1 -1
  30. package/dist/host-provider.js +16 -0
  31. package/dist/host-provider.js.map +1 -1
  32. package/dist/index.d.ts +2 -1
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +2 -1
  35. package/dist/index.js.map +1 -1
  36. package/dist/internal/date-picker.d.ts +37 -146
  37. package/dist/internal/date-picker.d.ts.map +1 -1
  38. package/dist/internal/date-picker.js +41 -24
  39. package/dist/internal/date-picker.js.map +1 -1
  40. package/dist/internal/native-field.d.ts +7 -7
  41. package/dist/internal/native-field.d.ts.map +1 -1
  42. package/dist/internal/native-field.js.map +1 -1
  43. package/dist/internal/popup.d.ts.map +1 -1
  44. package/dist/internal/popup.js +21 -17
  45. package/dist/internal/popup.js.map +1 -1
  46. package/dist/menu.d.ts +262 -316
  47. package/dist/menu.d.ts.map +1 -1
  48. package/dist/menu.js +29 -23
  49. package/dist/menu.js.map +1 -1
  50. package/dist/month-picker.d.ts +11 -262
  51. package/dist/month-picker.d.ts.map +1 -1
  52. package/dist/month-picker.js +6 -6
  53. package/dist/month-picker.js.map +1 -1
  54. package/dist/month-range-picker.d.ts +13 -264
  55. package/dist/month-range-picker.d.ts.map +1 -1
  56. package/dist/month-range-picker.js +6 -6
  57. package/dist/month-range-picker.js.map +1 -1
  58. package/dist/number-field.d.ts +2 -1
  59. package/dist/number-field.d.ts.map +1 -1
  60. package/dist/number-field.js +1 -1
  61. package/dist/number-field.js.map +1 -1
  62. package/dist/pin-input.d.ts.map +1 -1
  63. package/dist/pin-input.js +3 -1
  64. package/dist/pin-input.js.map +1 -1
  65. package/dist/primitive.d.ts.map +1 -1
  66. package/dist/primitive.js +5 -2
  67. package/dist/primitive.js.map +1 -1
  68. package/dist/range-calendar.d.ts +13 -286
  69. package/dist/range-calendar.d.ts.map +1 -1
  70. package/dist/range-calendar.js +7 -7
  71. package/dist/range-calendar.js.map +1 -1
  72. package/dist/select.d.ts +6 -6
  73. package/dist/select.d.ts.map +1 -1
  74. package/dist/select.js.map +1 -1
  75. package/dist/spin-button.d.ts +9 -6
  76. package/dist/spin-button.d.ts.map +1 -1
  77. package/dist/spin-button.js.map +1 -1
  78. package/dist/time-field.d.ts +1 -1
  79. package/dist/time-field.d.ts.map +1 -1
  80. package/dist/time-field.js.map +1 -1
  81. package/dist/virtual.d.ts +205 -0
  82. package/dist/virtual.d.ts.map +1 -0
  83. package/dist/virtual.js +299 -0
  84. package/dist/virtual.js.map +1 -0
  85. package/dist/year-picker.d.ts +11 -262
  86. package/dist/year-picker.d.ts.map +1 -1
  87. package/dist/year-picker.js +6 -6
  88. package/dist/year-picker.js.map +1 -1
  89. package/dist/year-range-picker.d.ts +11 -262
  90. package/dist/year-range-picker.d.ts.map +1 -1
  91. package/dist/year-range-picker.js +6 -6
  92. package/dist/year-range-picker.js.map +1 -1
  93. package/package.json +14 -4
@@ -2,11 +2,12 @@ import type { DateTimeRangePickerOptions } from '@sectile/dom/date-time-range-pi
2
2
  import type { DateValue } from '@sectile/dom/date-field';
3
3
  import type { DateTimeRange } from '@sectile/dom/date-time-field';
4
4
  import { type PickerCellSlotProps, type PickerMonthCellSlotProps, type PickerPartProps, type PickerRootSlotProps } from './internal/date-picker.js';
5
- export interface DateTimeRangePickerRootProps {
5
+ export interface DateTimeRangePickerRootProps extends PickerPartProps {
6
6
  readonly modelValue?: DateTimeRange | null;
7
7
  readonly defaultValue?: DateTimeRange | null;
8
8
  readonly highlightedValue?: DateValue;
9
9
  readonly defaultHighlightedValue?: DateValue;
10
+ readonly referenceDate?: DateValue;
10
11
  readonly defaultView?: PickerRootSlotProps['viewMode'];
11
12
  readonly open?: boolean;
12
13
  readonly defaultOpen?: boolean;
@@ -16,221 +17,14 @@ export interface DateTimeRangePickerRootProps {
16
17
  readonly label?: string;
17
18
  readonly policies?: DateTimeRangePickerOptions['policies'];
18
19
  }
19
- export declare const DateTimeRangePickerRoot: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
20
- modelValue: {
21
- type: import("vue").PropType<import("./internal/date-picker.js").PickerValue>;
22
- default: undefined;
23
- };
24
- defaultValue: {
25
- type: import("vue").PropType<import("./internal/date-picker.js").PickerValue>;
26
- default: null;
27
- };
28
- open: {
29
- type: BooleanConstructor;
30
- default: undefined;
31
- };
32
- defaultOpen: {
33
- type: BooleanConstructor;
34
- default: boolean;
35
- };
36
- highlightedValue: {
37
- type: import("vue").PropType<DateValue>;
38
- default: undefined;
39
- };
40
- defaultHighlightedValue: {
41
- type: import("vue").PropType<DateValue>;
42
- default: undefined;
43
- };
44
- defaultView: {
45
- type: import("vue").PropType<import("@sectile/temporal/calendar").CalendarViewMode>;
46
- default: import("@sectile/temporal/calendar").CalendarViewMode;
47
- };
48
- disabled: {
49
- type: BooleanConstructor;
50
- default: boolean;
51
- };
52
- readonly: {
53
- type: BooleanConstructor;
54
- default: boolean;
55
- };
56
- required: {
57
- type: BooleanConstructor;
58
- default: boolean;
59
- };
60
- label: {
61
- type: StringConstructor;
62
- default: undefined;
63
- };
64
- policies: {
65
- type: import("vue").PropType<Readonly<Record<string, unknown>>>;
66
- default: undefined;
67
- };
68
- as: {
69
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
70
- default: string;
71
- };
72
- asChild: {
73
- type: BooleanConstructor;
74
- default: boolean;
75
- };
76
- }>, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
77
- 'update:modelValue': (_value: import("./internal/date-picker.js").PickerValue) => boolean;
78
- 'update:open': (_value: boolean) => boolean;
79
- 'update:highlightedValue': (_value: DateValue) => boolean;
80
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
81
- modelValue: {
82
- type: import("vue").PropType<import("./internal/date-picker.js").PickerValue>;
83
- default: undefined;
84
- };
85
- defaultValue: {
86
- type: import("vue").PropType<import("./internal/date-picker.js").PickerValue>;
87
- default: null;
88
- };
89
- open: {
90
- type: BooleanConstructor;
91
- default: undefined;
92
- };
93
- defaultOpen: {
94
- type: BooleanConstructor;
95
- default: boolean;
96
- };
97
- highlightedValue: {
98
- type: import("vue").PropType<DateValue>;
99
- default: undefined;
100
- };
101
- defaultHighlightedValue: {
102
- type: import("vue").PropType<DateValue>;
103
- default: undefined;
104
- };
105
- defaultView: {
106
- type: import("vue").PropType<import("@sectile/temporal/calendar").CalendarViewMode>;
107
- default: import("@sectile/temporal/calendar").CalendarViewMode;
108
- };
109
- disabled: {
110
- type: BooleanConstructor;
111
- default: boolean;
112
- };
113
- readonly: {
114
- type: BooleanConstructor;
115
- default: boolean;
116
- };
117
- required: {
118
- type: BooleanConstructor;
119
- default: boolean;
120
- };
121
- label: {
122
- type: StringConstructor;
123
- default: undefined;
124
- };
125
- policies: {
126
- type: import("vue").PropType<Readonly<Record<string, unknown>>>;
127
- default: undefined;
128
- };
129
- as: {
130
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
131
- default: string;
132
- };
133
- asChild: {
134
- type: BooleanConstructor;
135
- default: boolean;
136
- };
137
- }>> & Readonly<{
138
- "onUpdate:highlightedValue"?: (_value: DateValue) => any;
139
- "onUpdate:modelValue"?: (_value: import("./internal/date-picker.js").PickerValue) => any;
140
- "onUpdate:open"?: (_value: boolean) => any;
141
- }>, {
142
- modelValue: import("./internal/date-picker.js").PickerValue;
143
- defaultValue: import("./internal/date-picker.js").PickerValue;
144
- open: boolean;
145
- defaultOpen: boolean;
146
- highlightedValue: DateValue;
147
- defaultHighlightedValue: DateValue;
148
- defaultView: import("@sectile/temporal/calendar").CalendarViewMode;
149
- disabled: boolean;
150
- readonly: boolean;
151
- required: boolean;
152
- label: string;
153
- policies: Readonly<Record<string, unknown>>;
154
- as: import("./primitive.js").PrimitiveAs;
155
- asChild: boolean;
156
- }, import("vue").SlotsType<{
157
- default: (props: PickerRootSlotProps) => import("vue").VNodeChild;
158
- }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
20
+ export declare const DateTimeRangePickerRoot: import("./internal/date-picker.js").PickerRootComponent<"date-time-range">;
21
+ export type DateTimeRangePickerRootSlotProps = PickerRootSlotProps<DateTimeRange | null>;
159
22
  export type DateTimeRangePickerValueChangeHandler = NonNullable<InstanceType<typeof DateTimeRangePickerRoot>['$props']['onUpdate:modelValue']>;
160
23
  export type DateTimeRangePickerOpenChangeHandler = NonNullable<InstanceType<typeof DateTimeRangePickerRoot>['$props']['onUpdate:open']>;
161
24
  export type DateTimeRangePickerHighlightedValueChangeHandler = NonNullable<InstanceType<typeof DateTimeRangePickerRoot>['$props']['onUpdate:highlightedValue']>;
162
- export declare const DateTimeRangePickerTrigger: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
163
- as: {
164
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
165
- default: string;
166
- };
167
- asChild: {
168
- type: BooleanConstructor;
169
- default: boolean;
170
- };
171
- }>, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
172
- as: {
173
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
174
- default: string;
175
- };
176
- asChild: {
177
- type: BooleanConstructor;
178
- default: boolean;
179
- };
180
- }>> & Readonly<{}>, {
181
- as: import("./primitive.js").PrimitiveAs;
182
- asChild: boolean;
183
- }, import("vue").SlotsType<{
184
- default: (props: PickerRootSlotProps) => import("vue").VNodeChild;
185
- }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
186
- export declare const DateTimeRangePickerContent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
187
- as: {
188
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
189
- default: string;
190
- };
191
- asChild: {
192
- type: BooleanConstructor;
193
- default: boolean;
194
- };
195
- }>, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
196
- as: {
197
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
198
- default: string;
199
- };
200
- asChild: {
201
- type: BooleanConstructor;
202
- default: boolean;
203
- };
204
- }>> & Readonly<{}>, {
205
- as: import("./primitive.js").PrimitiveAs;
206
- asChild: boolean;
207
- }, import("vue").SlotsType<{
208
- default: (props: PickerRootSlotProps) => import("vue").VNodeChild;
209
- }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
210
- export declare const DateTimeRangePickerGrid: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
211
- as: {
212
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
213
- default: string;
214
- };
215
- asChild: {
216
- type: BooleanConstructor;
217
- default: boolean;
218
- };
219
- }>, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
220
- as: {
221
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
222
- default: string;
223
- };
224
- asChild: {
225
- type: BooleanConstructor;
226
- default: boolean;
227
- };
228
- }>> & Readonly<{}>, {
229
- as: import("./primitive.js").PrimitiveAs;
230
- asChild: boolean;
231
- }, import("vue").SlotsType<{
232
- default: (props: PickerRootSlotProps) => import("vue").VNodeChild;
233
- }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
25
+ export declare const DateTimeRangePickerTrigger: import("./internal/date-picker.js").PickerRootPartComponent<"date-time-range">;
26
+ export declare const DateTimeRangePickerContent: import("./internal/date-picker.js").PickerRootPartComponent<"date-time-range">;
27
+ export declare const DateTimeRangePickerGrid: import("./internal/date-picker.js").PickerRootPartComponent<"date-time-range">;
234
28
  export declare const DateTimeRangePickerCell: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
235
29
  value: {
236
30
  type: import("vue").PropType<DateValue>;
@@ -265,7 +59,7 @@ export declare const DateTimeRangePickerCell: import("vue").DefineComponent<impo
265
59
  }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
266
60
  export declare const DateTimeRangePickerMonthCell: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
267
61
  value: {
268
- type: import("vue").PropType<import("@sectile/dom").MonthPickerValue>;
62
+ type: import("vue").PropType<import("@sectile/temporal").CalendarMonthValue>;
269
63
  required: true;
270
64
  };
271
65
  as: {
@@ -278,7 +72,7 @@ export declare const DateTimeRangePickerMonthCell: import("vue").DefineComponent
278
72
  };
279
73
  }>, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
280
74
  value: {
281
- type: import("vue").PropType<import("@sectile/dom").MonthPickerValue>;
75
+ type: import("vue").PropType<import("@sectile/temporal").CalendarMonthValue>;
282
76
  required: true;
283
77
  };
284
78
  as: {
@@ -535,221 +329,14 @@ export declare const DateTimeRangePickerEndTimeInput: import("vue").DefineCompon
535
329
  as: import("./primitive.js").PrimitiveAs;
536
330
  asChild: boolean;
537
331
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
538
- export declare const DateTimeRangePickerPreviousWeek: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
539
- as: {
540
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
541
- default: string;
542
- };
543
- asChild: {
544
- type: BooleanConstructor;
545
- default: boolean;
546
- };
547
- }>, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
548
- as: {
549
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
550
- default: string;
551
- };
552
- asChild: {
553
- type: BooleanConstructor;
554
- default: boolean;
555
- };
556
- }>> & Readonly<{}>, {
557
- as: import("./primitive.js").PrimitiveAs;
558
- asChild: boolean;
559
- }, import("vue").SlotsType<{
560
- default: (props: PickerRootSlotProps) => import("vue").VNodeChild;
561
- }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
562
- export declare const DateTimeRangePickerNextWeek: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
563
- as: {
564
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
565
- default: string;
566
- };
567
- asChild: {
568
- type: BooleanConstructor;
569
- default: boolean;
570
- };
571
- }>, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
572
- as: {
573
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
574
- default: string;
575
- };
576
- asChild: {
577
- type: BooleanConstructor;
578
- default: boolean;
579
- };
580
- }>> & Readonly<{}>, {
581
- as: import("./primitive.js").PrimitiveAs;
582
- asChild: boolean;
583
- }, import("vue").SlotsType<{
584
- default: (props: PickerRootSlotProps) => import("vue").VNodeChild;
585
- }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
586
- export declare const DateTimeRangePickerPreviousMonth: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
587
- as: {
588
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
589
- default: string;
590
- };
591
- asChild: {
592
- type: BooleanConstructor;
593
- default: boolean;
594
- };
595
- }>, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
596
- as: {
597
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
598
- default: string;
599
- };
600
- asChild: {
601
- type: BooleanConstructor;
602
- default: boolean;
603
- };
604
- }>> & Readonly<{}>, {
605
- as: import("./primitive.js").PrimitiveAs;
606
- asChild: boolean;
607
- }, import("vue").SlotsType<{
608
- default: (props: PickerRootSlotProps) => import("vue").VNodeChild;
609
- }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
610
- export declare const DateTimeRangePickerNextMonth: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
611
- as: {
612
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
613
- default: string;
614
- };
615
- asChild: {
616
- type: BooleanConstructor;
617
- default: boolean;
618
- };
619
- }>, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
620
- as: {
621
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
622
- default: string;
623
- };
624
- asChild: {
625
- type: BooleanConstructor;
626
- default: boolean;
627
- };
628
- }>> & Readonly<{}>, {
629
- as: import("./primitive.js").PrimitiveAs;
630
- asChild: boolean;
631
- }, import("vue").SlotsType<{
632
- default: (props: PickerRootSlotProps) => import("vue").VNodeChild;
633
- }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
634
- export declare const DateTimeRangePickerPreviousYear: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
635
- as: {
636
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
637
- default: string;
638
- };
639
- asChild: {
640
- type: BooleanConstructor;
641
- default: boolean;
642
- };
643
- }>, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
644
- as: {
645
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
646
- default: string;
647
- };
648
- asChild: {
649
- type: BooleanConstructor;
650
- default: boolean;
651
- };
652
- }>> & Readonly<{}>, {
653
- as: import("./primitive.js").PrimitiveAs;
654
- asChild: boolean;
655
- }, import("vue").SlotsType<{
656
- default: (props: PickerRootSlotProps) => import("vue").VNodeChild;
657
- }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
658
- export declare const DateTimeRangePickerNextYear: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
659
- as: {
660
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
661
- default: string;
662
- };
663
- asChild: {
664
- type: BooleanConstructor;
665
- default: boolean;
666
- };
667
- }>, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
668
- as: {
669
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
670
- default: string;
671
- };
672
- asChild: {
673
- type: BooleanConstructor;
674
- default: boolean;
675
- };
676
- }>> & Readonly<{}>, {
677
- as: import("./primitive.js").PrimitiveAs;
678
- asChild: boolean;
679
- }, import("vue").SlotsType<{
680
- default: (props: PickerRootSlotProps) => import("vue").VNodeChild;
681
- }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
682
- export declare const DateTimeRangePickerWeekViewTrigger: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
683
- as: {
684
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
685
- default: string;
686
- };
687
- asChild: {
688
- type: BooleanConstructor;
689
- default: boolean;
690
- };
691
- }>, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
692
- as: {
693
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
694
- default: string;
695
- };
696
- asChild: {
697
- type: BooleanConstructor;
698
- default: boolean;
699
- };
700
- }>> & Readonly<{}>, {
701
- as: import("./primitive.js").PrimitiveAs;
702
- asChild: boolean;
703
- }, import("vue").SlotsType<{
704
- default: (props: PickerRootSlotProps) => import("vue").VNodeChild;
705
- }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
706
- export declare const DateTimeRangePickerMonthViewTrigger: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
707
- as: {
708
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
709
- default: string;
710
- };
711
- asChild: {
712
- type: BooleanConstructor;
713
- default: boolean;
714
- };
715
- }>, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
716
- as: {
717
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
718
- default: string;
719
- };
720
- asChild: {
721
- type: BooleanConstructor;
722
- default: boolean;
723
- };
724
- }>> & Readonly<{}>, {
725
- as: import("./primitive.js").PrimitiveAs;
726
- asChild: boolean;
727
- }, import("vue").SlotsType<{
728
- default: (props: PickerRootSlotProps) => import("vue").VNodeChild;
729
- }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
730
- export declare const DateTimeRangePickerYearViewTrigger: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
731
- as: {
732
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
733
- default: string;
734
- };
735
- asChild: {
736
- type: BooleanConstructor;
737
- default: boolean;
738
- };
739
- }>, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
740
- as: {
741
- type: import("vue").PropType<import("./primitive.js").PrimitiveAs>;
742
- default: string;
743
- };
744
- asChild: {
745
- type: BooleanConstructor;
746
- default: boolean;
747
- };
748
- }>> & Readonly<{}>, {
749
- as: import("./primitive.js").PrimitiveAs;
750
- asChild: boolean;
751
- }, import("vue").SlotsType<{
752
- default: (props: PickerRootSlotProps) => import("vue").VNodeChild;
753
- }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
754
- export type { DateTimeRange, DateValue, PickerCellSlotProps as DateTimeRangePickerCellSlotProps, PickerMonthCellSlotProps as DateTimeRangePickerMonthCellSlotProps, PickerPartProps as DateTimeRangePickerPartProps, PickerRootSlotProps as DateTimeRangePickerRootSlotProps };
332
+ export declare const DateTimeRangePickerPreviousWeek: import("./internal/date-picker.js").PickerRootPartComponent<"date-time-range">;
333
+ export declare const DateTimeRangePickerNextWeek: import("./internal/date-picker.js").PickerRootPartComponent<"date-time-range">;
334
+ export declare const DateTimeRangePickerPreviousMonth: import("./internal/date-picker.js").PickerRootPartComponent<"date-time-range">;
335
+ export declare const DateTimeRangePickerNextMonth: import("./internal/date-picker.js").PickerRootPartComponent<"date-time-range">;
336
+ export declare const DateTimeRangePickerPreviousYear: import("./internal/date-picker.js").PickerRootPartComponent<"date-time-range">;
337
+ export declare const DateTimeRangePickerNextYear: import("./internal/date-picker.js").PickerRootPartComponent<"date-time-range">;
338
+ export declare const DateTimeRangePickerWeekViewTrigger: import("./internal/date-picker.js").PickerRootPartComponent<"date-time-range">;
339
+ export declare const DateTimeRangePickerMonthViewTrigger: import("./internal/date-picker.js").PickerRootPartComponent<"date-time-range">;
340
+ export declare const DateTimeRangePickerYearViewTrigger: import("./internal/date-picker.js").PickerRootPartComponent<"date-time-range">;
341
+ export type { DateTimeRange, DateValue, PickerCellSlotProps as DateTimeRangePickerCellSlotProps, PickerMonthCellSlotProps as DateTimeRangePickerMonthCellSlotProps, PickerPartProps as DateTimeRangePickerPartProps };
755
342
  //# sourceMappingURL=date-time-range-picker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-time-range-picker.d.ts","sourceRoot":"","sources":["../src/date-time-range-picker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAEa,KAAK,mBAAmB,EAAE,KAAK,wBAAwB,EAAE,KAAK,eAAe,EAAE,KAAK,mBAAmB,EAC1H,MAAM,2BAA2B,CAAC;AAEnC,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,UAAU,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACzF,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,uBAAuB,CAAC,EAAE,SAAS,CAAC;IACpF,QAAQ,CAAC,WAAW,CAAC,EAAE,mBAAmB,CAAC,UAAU,CAAC,CAAC;IACvD,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IA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,CAAC;AAC7H,eAAO,MAAM,+BAA+B,gFAAsH,CAAC;AACnK,eAAO,MAAM,2BAA2B,gFAAiH,CAAC;AAC1J,eAAO,MAAM,gCAAgC,gFAAwH,CAAC;AACtK,eAAO,MAAM,4BAA4B,gFAAmH,CAAC;AAC7J,eAAO,MAAM,+BAA+B,gFAAsH,CAAC;AACnK,eAAO,MAAM,2BAA2B,gFAAiH,CAAC;AAC1J,eAAO,MAAM,kCAAkC,gFAA4H,CAAC;AAC5K,eAAO,MAAM,mCAAmC,gFAA8H,CAAC;AAC/K,eAAO,MAAM,kCAAkC,gFAA4H,CAAC;AAC5K,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,mBAAmB,IAAI,gCAAgC,EAAE,wBAAwB,IAAI,qCAAqC,EAAE,eAAe,IAAI,4BAA4B,EAAE,CAAC"}
@@ -1,8 +1,8 @@
1
- import { PickerCell, PickerContent, PickerGrid, PickerMonthCell, PickerTrigger, createPickerInput, createPickerMove, createPickerViewTrigger, createPickerRoot, } from './internal/date-picker.js';
1
+ import { PickerCell, PickerContent, PickerGrid, PickerMonthCell, PickerTrigger, createPickerInput, createPickerMove, createPickerViewTrigger, specializePickerRootPart, createPickerRoot, } from './internal/date-picker.js';
2
2
  export const DateTimeRangePickerRoot = createPickerRoot('date-time-range', 'SectileDateTimeRangePickerRoot');
3
- export const DateTimeRangePickerTrigger = PickerTrigger;
4
- export const DateTimeRangePickerContent = PickerContent;
5
- export const DateTimeRangePickerGrid = PickerGrid;
3
+ export const DateTimeRangePickerTrigger = specializePickerRootPart('date-time-range', PickerTrigger);
4
+ export const DateTimeRangePickerContent = specializePickerRootPart('date-time-range', PickerContent);
5
+ export const DateTimeRangePickerGrid = specializePickerRootPart('date-time-range', PickerGrid);
6
6
  export const DateTimeRangePickerCell = PickerCell;
7
7
  export const DateTimeRangePickerMonthCell = PickerMonthCell;
8
8
  export const DateTimeRangePickerStartDateTimeInput = createPickerInput('start-date-time-input', 'SectileDateTimeRangePickerStartDateTimeInput');
@@ -11,13 +11,13 @@ export const DateTimeRangePickerStartDateInput = createPickerInput('start-date-i
11
11
  export const DateTimeRangePickerEndDateInput = createPickerInput('end-date-input', 'SectileDateTimeRangePickerEndDateInput');
12
12
  export const DateTimeRangePickerStartTimeInput = createPickerInput('start-time-input', 'SectileDateTimeRangePickerStartTimeInput');
13
13
  export const DateTimeRangePickerEndTimeInput = createPickerInput('end-time-input', 'SectileDateTimeRangePickerEndTimeInput');
14
- export const DateTimeRangePickerPreviousWeek = createPickerMove('week', -1, 'SectileDateTimeRangePickerPreviousWeek');
15
- export const DateTimeRangePickerNextWeek = createPickerMove('week', 1, 'SectileDateTimeRangePickerNextWeek');
16
- export const DateTimeRangePickerPreviousMonth = createPickerMove('month', -1, 'SectileDateTimeRangePickerPreviousMonth');
17
- export const DateTimeRangePickerNextMonth = createPickerMove('month', 1, 'SectileDateTimeRangePickerNextMonth');
18
- export const DateTimeRangePickerPreviousYear = createPickerMove('year', -1, 'SectileDateTimeRangePickerPreviousYear');
19
- export const DateTimeRangePickerNextYear = createPickerMove('year', 1, 'SectileDateTimeRangePickerNextYear');
20
- export const DateTimeRangePickerWeekViewTrigger = createPickerViewTrigger('week', 'SectileDateTimeRangePickerWeekViewTrigger');
21
- export const DateTimeRangePickerMonthViewTrigger = createPickerViewTrigger('month', 'SectileDateTimeRangePickerMonthViewTrigger');
22
- export const DateTimeRangePickerYearViewTrigger = createPickerViewTrigger('year', 'SectileDateTimeRangePickerYearViewTrigger');
14
+ export const DateTimeRangePickerPreviousWeek = specializePickerRootPart('date-time-range', createPickerMove('week', -1, 'SectileDateTimeRangePickerPreviousWeek'));
15
+ export const DateTimeRangePickerNextWeek = specializePickerRootPart('date-time-range', createPickerMove('week', 1, 'SectileDateTimeRangePickerNextWeek'));
16
+ export const DateTimeRangePickerPreviousMonth = specializePickerRootPart('date-time-range', createPickerMove('month', -1, 'SectileDateTimeRangePickerPreviousMonth'));
17
+ export const DateTimeRangePickerNextMonth = specializePickerRootPart('date-time-range', createPickerMove('month', 1, 'SectileDateTimeRangePickerNextMonth'));
18
+ export const DateTimeRangePickerPreviousYear = specializePickerRootPart('date-time-range', createPickerMove('year', -1, 'SectileDateTimeRangePickerPreviousYear'));
19
+ export const DateTimeRangePickerNextYear = specializePickerRootPart('date-time-range', createPickerMove('year', 1, 'SectileDateTimeRangePickerNextYear'));
20
+ export const DateTimeRangePickerWeekViewTrigger = specializePickerRootPart('date-time-range', createPickerViewTrigger('week', 'SectileDateTimeRangePickerWeekViewTrigger'));
21
+ export const DateTimeRangePickerMonthViewTrigger = specializePickerRootPart('date-time-range', createPickerViewTrigger('month', 'SectileDateTimeRangePickerMonthViewTrigger'));
22
+ export const DateTimeRangePickerYearViewTrigger = specializePickerRootPart('date-time-range', createPickerViewTrigger('year', 'SectileDateTimeRangePickerYearViewTrigger'));
23
23
  //# sourceMappingURL=date-time-range-picker.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-time-range-picker.js","sourceRoot":"","sources":["../src/date-time-range-picker.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,eAAe,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,uBAAuB,EACnI,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AASnC,MAAM,CAAC,MAAM,uBAAuB,GAAG,gBAAgB,CAAC,iBAAiB,EAAE,gCAAgC,CAAC,CAAC;AAI7G,MAAM,CAAC,MAAM,0BAA0B,GAAG,aAAa,CAAC;AACxD,MAAM,CAAC,MAAM,0BAA0B,GAAG,aAAa,CAAC;AACxD,MAAM,CAAC,MAAM,uBAAuB,GAAG,UAAU,CAAC;AAClD,MAAM,CAAC,MAAM,uBAAuB,GAAG,UAAU,CAAC;AAClD,MAAM,CAAC,MAAM,4BAA4B,GAAG,eAAe,CAAC;AAC5D,MAAM,CAAC,MAAM,qCAAqC,GAAG,iBAAiB,CAAC,uBAAuB,EAAE,8CAA8C,CAAC,CAAC;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2C,CAAC,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { type ComputedRef, type PropType, type SlotsType, type VNodeChild } from 'vue';
2
+ import type { DateValue } from '@sectile/dom/date-field';
2
3
  export type HostDirection = 'ltr' | 'rtl';
3
4
  export type HostPortalTarget = string | HTMLElement;
4
5
  export type HostIdGenerator = () => string;
@@ -6,6 +7,7 @@ export interface HostProviderProps {
6
7
  readonly direction?: HostDirection;
7
8
  readonly portalTarget?: HostPortalTarget;
8
9
  readonly createId?: HostIdGenerator;
10
+ readonly referenceDate?: DateValue;
9
11
  }
10
12
  export declare const HostProvider: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
11
13
  direction: {
@@ -20,6 +22,10 @@ export declare const HostProvider: import("vue").DefineComponent<import("vue").E
20
22
  type: PropType<HostIdGenerator>;
21
23
  default: undefined;
22
24
  };
25
+ referenceDate: {
26
+ type: PropType<DateValue>;
27
+ default: undefined;
28
+ };
23
29
  }>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
24
30
  direction: {
25
31
  type: PropType<HostDirection>;
@@ -33,14 +39,20 @@ export declare const HostProvider: import("vue").DefineComponent<import("vue").E
33
39
  type: PropType<HostIdGenerator>;
34
40
  default: undefined;
35
41
  };
42
+ referenceDate: {
43
+ type: PropType<DateValue>;
44
+ default: undefined;
45
+ };
36
46
  }>> & Readonly<{}>, {
37
47
  direction: HostDirection;
38
48
  portalTarget: HostPortalTarget;
39
49
  createId: HostIdGenerator;
50
+ referenceDate: DateValue;
40
51
  }, SlotsType<{
41
52
  default: () => VNodeChild;
42
53
  }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
43
54
  export declare function useHostDirection(): ComputedRef<HostDirection>;
44
55
  export declare function useHostPortalTarget(): ComputedRef<HostPortalTarget | undefined>;
56
+ export declare function useHostReferenceDate(): ComputedRef<DateValue>;
45
57
  export declare function useHostId(): string;
46
58
  //# sourceMappingURL=host-provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"host-provider.d.ts","sourceRoot":"","sources":["../src/host-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,UAAU,EAChB,MAAM,KAAK,CAAC;AAEb,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,KAAK,CAAC;AAC1C,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,WAAW,CAAC;AACpD,MAAM,MAAM,eAAe,GAAG,MAAM,MAAM,CAAC;AAE3C,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,aAAa,CAAC;IACnC,QAAQ,CAAC,YAAY,CAAC,EAAE,gBAAgB,CAAC;IACzC,QAAQ,CAAC,QAAQ,CAAC,EAAE,eAAe,CAAC;CACrC;AAUD,eAAO,MAAM,YAAY;;QAIR,IAAI,EAAY,QAAQ,CAAC,aAAa,CAAC;QAAE,OAAO;;;QAE3D,IAAI,EAAsB,QAAQ,CAAC,gBAAgB,CAAC;QACpD,OAAO;;;QAEG,IAAI,EAAc,QAAQ,CAAC,eAAe,CAAC;QAAE,OAAO;;UAYrD,UAAU;;;;;;;;;;;;;;;;;;aAVe,MAAM,UAAU;yEAYtD,CAAC;AAEH,wBAAgB,gBAAgB,IAAI,WAAW,CAAC,aAAa,CAAC,CAG7D;AAED,wBAAgB,mBAAmB,IAAI,WAAW,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAG/E;AAED,wBAAgB,SAAS,IAAI,MAAM,CAGlC"}
1
+ {"version":3,"file":"host-provider.d.ts","sourceRoot":"","sources":["../src/host-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,UAAU,EAChB,MAAM,KAAK,CAAC;AACb,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,KAAK,CAAC;AAC1C,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,WAAW,CAAC;AACpD,MAAM,MAAM,eAAe,GAAG,MAAM,MAAM,CAAC;AAE3C,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,aAAa,CAAC;IACnC,QAAQ,CAAC,YAAY,CAAC,EAAE,gBAAgB,CAAC;IACzC,QAAQ,CAAC,QAAQ,CAAC,EAAE,eAAe,CAAC;IACpC,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS,CAAC;CACpC;AAWD,eAAO,MAAM,YAAY;;QAIR,IAAI,EAAY,QAAQ,CAAC,aAAa,CAAC;QAAE,OAAO;;;QAE3D,IAAI,EAAsB,QAAQ,CAAC,gBAAgB,CAAC;QACpD,OAAO;;;QAEG,IAAI,EAAc,QAAQ,CAAC,eAAe,CAAC;QAAE,OAAO;;;QAC/C,IAAI,EAAY,QAAQ,CAAC,SAAS,CAAC;QAAE,OAAO;;UAiBlD,UAAU;;;;;;;;;;;;;;;;;;;;;;;aAfe,MAAM,UAAU;yEAiBtD,CAAC;AAEH,wBAAgB,gBAAgB,IAAI,WAAW,CAAC,aAAa,CAAC,CAG7D;AAED,wBAAgB,mBAAmB,IAAI,WAAW,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAG/E;AAED,wBAAgB,oBAAoB,IAAI,WAAW,CAAC,SAAS,CAAC,CAI7D;AAED,wBAAgB,SAAS,IAAI,MAAM,CAGlC"}
@@ -10,15 +10,19 @@ export const HostProvider = defineComponent({
10
10
  default: undefined,
11
11
  },
12
12
  createId: { type: Function, default: undefined },
13
+ referenceDate: { type: Object, default: undefined },
13
14
  },
14
15
  slots: Object,
15
16
  setup(props, { slots }) {
16
17
  const parent = inject(hostContextKey, undefined);
17
18
  const direction = computed(() => props.direction ?? parent?.direction.value ?? 'ltr');
18
19
  const portalTarget = computed(() => props.portalTarget ?? parent?.portalTarget.value);
20
+ const fallbackReferenceDate = currentReferenceDate();
21
+ const referenceDate = computed(() => props.referenceDate ?? parent?.referenceDate.value ?? fallbackReferenceDate);
19
22
  provide(hostContextKey, {
20
23
  direction,
21
24
  portalTarget,
25
+ referenceDate,
22
26
  createId: () => props.createId?.() ?? parent?.createId() ?? useId(),
23
27
  });
24
28
  return () => h(Fragment, null, slots['default']?.() ?? []);
@@ -32,8 +36,20 @@ export function useHostPortalTarget() {
32
36
  const context = inject(hostContextKey, undefined);
33
37
  return context?.portalTarget ?? computed(() => undefined);
34
38
  }
39
+ export function useHostReferenceDate() {
40
+ const context = inject(hostContextKey, undefined);
41
+ const fallback = currentReferenceDate();
42
+ return context?.referenceDate ?? computed(() => fallback);
43
+ }
35
44
  export function useHostId() {
36
45
  const context = inject(hostContextKey, undefined);
37
46
  return context?.createId() ?? useId();
38
47
  }
48
+ function currentReferenceDate(now = new Date()) {
49
+ return Object.freeze({
50
+ year: now.getFullYear(),
51
+ month: now.getMonth() + 1,
52
+ day: now.getDate(),
53
+ });
54
+ }
39
55
  //# sourceMappingURL=host-provider.js.map