@sectile/vue 0.18.3 → 0.20.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/README.md +127 -14
- package/dist/accordion.js +1 -1
- package/dist/accordion.js.map +1 -1
- package/dist/carousel.d.ts +20 -0
- package/dist/carousel.js +1 -1
- package/dist/carousel.js.map +1 -1
- package/dist/cascade-list.js +1 -1
- package/dist/cascade-list.js.map +1 -1
- package/dist/cascade-select.js +1 -1
- package/dist/cascade-select.js.map +1 -1
- package/dist/chart.js +1 -1
- package/dist/chart.js.map +1 -1
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox-group.js.map +1 -1
- package/dist/checkbox-tree.d.ts +102 -0
- package/dist/checkbox-tree.js +2 -0
- package/dist/checkbox-tree.js.map +1 -0
- package/dist/checkbox.js +1 -1
- package/dist/checkbox.js.map +1 -1
- package/dist/color-picker.d.ts +24 -0
- package/dist/color-picker.js +1 -1
- package/dist/color-picker.js.map +1 -1
- package/dist/combobox.d.ts +47 -1
- package/dist/combobox.js +1 -1
- package/dist/combobox.js.map +1 -1
- package/dist/component-handle.d.ts +8 -0
- package/dist/component-handle.js +2 -0
- package/dist/component-handle.js.map +1 -0
- package/dist/context-menu.d.ts +1 -0
- package/dist/context-menu.js +2 -0
- package/dist/context-menu.js.map +1 -0
- package/dist/drag-drop.d.ts +23 -0
- package/dist/drag-drop.js +2 -0
- package/dist/drag-drop.js.map +1 -0
- package/dist/editable.d.ts +3 -0
- package/dist/editable.js +1 -1
- package/dist/editable.js.map +1 -1
- package/dist/form/context.d.ts +3 -0
- package/dist/form/context.js +1 -1
- package/dist/form/context.js.map +1 -1
- package/dist/form/contracts.d.ts +1 -0
- package/dist/form/control-inventory.d.ts +20 -0
- package/dist/form/control-inventory.js +1 -1
- package/dist/form/control-inventory.js.map +1 -1
- package/dist/form/control.d.ts +44 -1
- package/dist/form/control.js +1 -1
- package/dist/form/control.js.map +1 -1
- package/dist/form/field.d.ts +10 -0
- package/dist/form/field.js +1 -1
- package/dist/form/field.js.map +1 -1
- package/dist/form/file-input.d.ts +229 -0
- package/dist/form/file-input.js +2 -0
- package/dist/form/file-input.js.map +1 -0
- package/dist/form/file-upload/group.d.ts +28 -0
- package/dist/form/file-upload/group.js +2 -0
- package/dist/form/file-upload/group.js.map +1 -0
- package/dist/form/file-upload.d.ts +26 -0
- package/dist/form/file-upload.js +2 -0
- package/dist/form/file-upload.js.map +1 -0
- package/dist/form/root.js +1 -1
- package/dist/form/root.js.map +1 -1
- package/dist/form-boundary.d.ts +2 -0
- package/dist/form-boundary.js +2 -0
- package/dist/form-boundary.js.map +1 -0
- package/dist/fullscreen.d.ts +16 -0
- package/dist/fullscreen.js +2 -0
- package/dist/fullscreen.js.map +1 -0
- package/dist/host-provider.d.ts +99 -1
- package/dist/host-provider.js +1 -1
- package/dist/host-provider.js.map +1 -1
- package/dist/image.d.ts +24 -0
- package/dist/image.js +2 -0
- package/dist/image.js.map +1 -0
- package/dist/index.d.ts +6 -5
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/input/native-field.d.ts +33 -6
- package/dist/input/native-field.js +1 -1
- package/dist/input/native-field.js.map +1 -1
- package/dist/input/native-range-field.d.ts +16 -7
- package/dist/input/native-range-field.js +1 -1
- package/dist/input/native-range-field.js.map +1 -1
- package/dist/internal/cascade-choice.js +1 -1
- package/dist/internal/cascade-choice.js.map +1 -1
- package/dist/internal/connection-lifetime.d.ts +10 -0
- package/dist/internal/connection-lifetime.js +2 -0
- package/dist/internal/connection-lifetime.js.map +1 -0
- package/dist/internal/popup-presentation.d.ts +32 -0
- package/dist/internal/popup-presentation.js +2 -0
- package/dist/internal/popup-presentation.js.map +1 -0
- package/dist/internal/portal-move.d.ts +11 -0
- package/dist/internal/portal-move.js +2 -0
- package/dist/internal/portal-move.js.map +1 -0
- package/dist/internal/scheduled-task.js +1 -1
- package/dist/internal/scheduled-task.js.map +1 -1
- package/dist/internal/tabs-context.d.ts +11 -0
- package/dist/internal/tabs-context.js +1 -1
- package/dist/internal/tabs-context.js.map +1 -1
- package/dist/internal/tree-parts.d.ts +142 -0
- package/dist/internal/tree-parts.js +2 -0
- package/dist/internal/tree-parts.js.map +1 -0
- package/dist/listbox.d.ts +11 -0
- package/dist/listbox.js +1 -1
- package/dist/listbox.js.map +1 -1
- package/dist/media-gesture.d.ts +20 -0
- package/dist/media-gesture.js +2 -0
- package/dist/media-gesture.js.map +1 -0
- package/dist/menu.d.ts +239 -0
- package/dist/menu.js +1 -1
- package/dist/menu.js.map +1 -1
- package/dist/meter-group.js +1 -1
- package/dist/meter-group.js.map +1 -1
- package/dist/multi-thumb-slider.js +1 -1
- package/dist/multi-thumb-slider.js.map +1 -1
- package/dist/number-field.d.ts +18 -1
- package/dist/number-field.js +1 -1
- package/dist/number-field.js.map +1 -1
- package/dist/overlay/dialog.d.ts +1 -0
- package/dist/overlay/dialog.js.map +1 -1
- package/dist/overlay/drawer.d.ts +33 -4
- package/dist/overlay/drawer.js +1 -1
- package/dist/overlay/drawer.js.map +1 -1
- package/dist/overlay/popover.d.ts +2 -1
- package/dist/overlay/popover.js.map +1 -1
- package/dist/overlay/popup.d.ts +50 -2
- package/dist/overlay/popup.js +1 -1
- package/dist/overlay/popup.js.map +1 -1
- package/dist/overlay/tooltip.d.ts +38 -3
- package/dist/overlay/tooltip.js +1 -1
- package/dist/overlay/tooltip.js.map +1 -1
- package/dist/pagination.js +1 -1
- package/dist/pagination.js.map +1 -1
- package/dist/pin-input.js +1 -1
- package/dist/pin-input.js.map +1 -1
- package/dist/presence/presence.d.ts +1 -1
- package/dist/presence/presence.js +1 -1
- package/dist/presence/presence.js.map +1 -1
- package/dist/primitive.d.ts +37 -3
- package/dist/primitive.js +1 -1
- package/dist/primitive.js.map +1 -1
- package/dist/quantity-field.js +1 -1
- package/dist/quantity-field.js.map +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/radio-group.js.map +1 -1
- package/dist/rating.js +1 -1
- package/dist/rating.js.map +1 -1
- package/dist/reorder.d.ts +169 -77
- package/dist/reorder.js +1 -1
- package/dist/reorder.js.map +1 -1
- package/dist/select.d.ts +21 -0
- package/dist/select.js +1 -1
- package/dist/select.js.map +1 -1
- package/dist/slider.js +1 -1
- package/dist/slider.js.map +1 -1
- package/dist/spin-button.d.ts +19 -0
- package/dist/spin-button.js +1 -1
- package/dist/spin-button.js.map +1 -1
- package/dist/stepper.js +1 -1
- package/dist/stepper.js.map +1 -1
- package/dist/switch.js +1 -1
- package/dist/switch.js.map +1 -1
- package/dist/tabs.d.ts +2 -0
- package/dist/tabs.js +1 -1
- package/dist/tabs.js.map +1 -1
- package/dist/tabular/components.d.ts +5 -0
- package/dist/tabular/components.js.map +1 -1
- package/dist/tabular/controller.d.ts +1 -0
- package/dist/tabular/controller.js +1 -1
- package/dist/tabular/controller.js.map +1 -1
- package/dist/tabular/data-grid.d.ts +4 -4
- package/dist/tabular/data-grid.js +1 -1
- package/dist/tabular/data-grid.js.map +1 -1
- package/dist/tabular/data-table.d.ts +4 -4
- package/dist/tabular/data-table.js +1 -1
- package/dist/tabular/data-table.js.map +1 -1
- package/dist/tabular/data-tree-grid.d.ts +4 -4
- package/dist/tabular/data-tree-grid.js +1 -1
- package/dist/tabular/data-tree-grid.js.map +1 -1
- package/dist/tabular/parts.d.ts +11 -1
- package/dist/tabular/parts.js +1 -1
- package/dist/tabular/parts.js.map +1 -1
- package/dist/tags-input.d.ts +12 -1
- package/dist/tags-input.js +1 -1
- package/dist/tags-input.js.map +1 -1
- package/dist/temporal/calendar.d.ts +15 -111
- package/dist/temporal/calendar.js +1 -1
- package/dist/temporal/calendar.js.map +1 -1
- package/dist/temporal/capabilities/date-picker.js +1 -1
- package/dist/temporal/capabilities/date-picker.js.map +1 -1
- package/dist/temporal/capabilities/date-time-picker.js +1 -1
- package/dist/temporal/capabilities/date-time-picker.js.map +1 -1
- package/dist/temporal/capabilities/date-time-range-picker.js +1 -1
- package/dist/temporal/capabilities/date-time-range-picker.js.map +1 -1
- package/dist/temporal/capability.d.ts +13 -1
- package/dist/temporal/capability.js.map +1 -1
- package/dist/temporal/date-field.d.ts +1 -1
- package/dist/temporal/date-field.js +1 -1
- package/dist/temporal/date-field.js.map +1 -1
- package/dist/temporal/date-picker.d.ts +3 -1
- package/dist/temporal/date-picker.js.map +1 -1
- package/dist/temporal/date-range-field.d.ts +20 -0
- package/dist/temporal/date-range-field.js +1 -1
- package/dist/temporal/date-range-field.js.map +1 -1
- package/dist/temporal/date-range-picker.d.ts +3 -1
- package/dist/temporal/date-range-picker.js.map +1 -1
- package/dist/temporal/date-time-field.d.ts +4 -1
- package/dist/temporal/date-time-field.js +1 -1
- package/dist/temporal/date-time-field.js.map +1 -1
- package/dist/temporal/date-time-picker.d.ts +3 -1
- package/dist/temporal/date-time-picker.js +1 -1
- package/dist/temporal/date-time-picker.js.map +1 -1
- package/dist/temporal/date-time-range-field.d.ts +158 -0
- package/dist/temporal/date-time-range-field.js +2 -0
- package/dist/temporal/date-time-range-field.js.map +1 -0
- package/dist/temporal/date-time-range-picker.d.ts +3 -1
- package/dist/temporal/date-time-range-picker.js +1 -1
- package/dist/temporal/date-time-range-picker.js.map +1 -1
- package/dist/temporal/internal/time-presentation.d.ts +15 -0
- package/dist/temporal/internal/time-presentation.js +2 -0
- package/dist/temporal/internal/time-presentation.js.map +1 -0
- package/dist/temporal/month-picker.d.ts +3 -1
- package/dist/temporal/month-picker.js.map +1 -1
- package/dist/temporal/month-range-picker.d.ts +3 -1
- package/dist/temporal/month-range-picker.js.map +1 -1
- package/dist/temporal/picker.d.ts +23 -1
- package/dist/temporal/picker.js +1 -1
- package/dist/temporal/picker.js.map +1 -1
- package/dist/temporal/range-calendar.d.ts +119 -2
- package/dist/temporal/range-calendar.js +1 -1
- package/dist/temporal/range-calendar.js.map +1 -1
- package/dist/temporal/temporal-provider.d.ts +23 -0
- package/dist/temporal/temporal-provider.js +1 -1
- package/dist/temporal/temporal-provider.js.map +1 -1
- package/dist/temporal/time-field.d.ts +4 -1
- package/dist/temporal/time-field.js +1 -1
- package/dist/temporal/time-field.js.map +1 -1
- package/dist/temporal/time-picker.d.ts +112 -0
- package/dist/temporal/time-picker.js +2 -0
- package/dist/temporal/time-picker.js.map +1 -0
- package/dist/temporal/time-range-field.d.ts +32 -1
- package/dist/temporal/time-range-field.js +1 -1
- package/dist/temporal/time-range-field.js.map +1 -1
- package/dist/temporal/year-picker.d.ts +3 -1
- package/dist/temporal/year-picker.js.map +1 -1
- package/dist/temporal/year-range-picker.d.ts +3 -1
- package/dist/temporal/year-range-picker.js.map +1 -1
- package/dist/text.d.ts +43 -1
- package/dist/text.js +1 -1
- package/dist/text.js.map +1 -1
- package/dist/timer.d.ts +16 -5
- package/dist/timer.js +1 -1
- package/dist/timer.js.map +1 -1
- package/dist/toast.js +1 -1
- package/dist/toast.js.map +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/toggle-group.js.map +1 -1
- package/dist/toolbar.js +1 -1
- package/dist/toolbar.js.map +1 -1
- package/dist/transfer.d.ts +191 -0
- package/dist/transfer.js +2 -0
- package/dist/transfer.js.map +1 -0
- package/dist/tree-grid.d.ts +122 -0
- package/dist/tree-grid.js +1 -1
- package/dist/tree-grid.js.map +1 -1
- package/dist/tree-select.d.ts +186 -0
- package/dist/tree-select.js +2 -0
- package/dist/tree-select.js.map +1 -0
- package/dist/tree-view.js +1 -1
- package/dist/tree-view.js.map +1 -1
- package/dist/virtual/virtual-collection.d.ts +2 -0
- package/dist/virtual/virtual-collection.js.map +1 -1
- package/dist/virtual/virtual-grid.d.ts +12 -2
- package/dist/virtual/virtual-grid.js +1 -1
- package/dist/virtual/virtual-grid.js.map +1 -1
- package/dist/virtual/virtual-list.d.ts +12 -3
- package/dist/virtual/virtual-list.js +1 -1
- package/dist/virtual/virtual-list.js.map +1 -1
- package/dist/virtual/virtual-masonry.d.ts +12 -2
- package/dist/virtual/virtual-masonry.js +1 -1
- package/dist/virtual/virtual-masonry.js.map +1 -1
- package/dist/virtual/virtual-spatial.d.ts +12 -2
- package/dist/virtual/virtual-spatial.js +1 -1
- package/dist/virtual/virtual-spatial.js.map +1 -1
- package/dist/window-splitter.js +1 -1
- package/dist/window-splitter.js.map +1 -1
- package/package.json +88 -17
package/dist/tags-input.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/tags-input.ts"],"mappings":"AAAA,OACE,SAAU,gBAAiB,EAAG,OAAQ,WAAY,SAAU,gBAAiB,UAAW,QACxF,WAAY,UACP,MACP,OAAS,
|
|
1
|
+
{"version":3,"sources":["../src/tags-input.ts"],"mappings":"AAAA,OACE,SAAU,gBAAiB,EAAG,OAAQ,WAAY,SAAU,gBAAiB,UAAW,QACxF,WAAY,UACP,MACP,OAAS,oBAA4G,0BAErH,OAAS,cAAmC,iBAC5C,OAAS,6BAAgC,0BACzC,OAAS,4BAA+B,oBACxC,OACE,kCACA,wBACA,uBACA,wBACK,oBACP,OAAS,qBAAwB,qBAkCjC,MAAM,QAAU,OAAO,sBAAsB,EAC7C,MAAM,QAAU,OAAO,sBAAsB,EAC7C,MAAM,UAAY,CAChB,GAAI,CAAE,KAAM,CAAC,OAAQ,OAAQ,QAAQ,EAA4B,QAAS,MAAM,EAAI,QAAS,CAAE,KAAM,QAAS,QAAS,KAAK,GAGvH,MAAM,cAAgB,gBAAgB,CAC3C,uBAAwB,aACxB,KAAM,uBAAwB,aAAc,MAC5C,MAAO,CACL,WAAY,CAAE,KAAM,MAAsC,QAAS,MAAS,EAC5E,aAAc,CAAE,KAAM,MAAsC,QAAS,IAAM,CAAA,CAAE,EAC7E,WAAY,CAAE,KAAM,OAAQ,QAAS,MAAS,EAAI,kBAAmB,CAAE,KAAM,OAAQ,QAAS,EAAE,EAChG,SAAU,CAAE,KAAM,QAAS,QAAS,KAAK,EAAI,SAAU,CAAE,KAAM,QAAS,QAAS,KAAK,EACtF,MAAO,CAAE,KAAM,OAAQ,QAAS,MAAM,EAAI,KAAM,CAAE,KAAM,O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|
|
1
1
|
import type { CalendarMonthValue, CalendarPolicies, CalendarViewMode } from '@sectile/dom/temporal/calendar';
|
|
2
2
|
import type { DateValue } from '@sectile/dom/temporal/calendar';
|
|
3
|
-
import {
|
|
3
|
+
import type { DefineSetupFnComponent, SlotsType, VNodeChild } from 'vue';
|
|
4
4
|
import { type PickerRootPartComponent, type PickerCellSlotProps, type PickerMonthCellSlotProps, type PickerPartProps, type PickerRootSlotProps } from './picker.js';
|
|
5
5
|
export interface CalendarRootProps {
|
|
6
6
|
readonly modelValue?: DateValue | null;
|
|
@@ -24,119 +24,23 @@ export interface CalendarCellProps extends PickerPartProps {
|
|
|
24
24
|
export interface CalendarMonthCellProps extends PickerPartProps {
|
|
25
25
|
readonly value: CalendarMonthValue;
|
|
26
26
|
}
|
|
27
|
-
export declare const CalendarRoot:
|
|
28
|
-
modelValue:
|
|
29
|
-
|
|
30
|
-
default: undefined;
|
|
31
|
-
};
|
|
32
|
-
defaultValue: {
|
|
33
|
-
type: PropType<DateValue | null>;
|
|
34
|
-
default: null;
|
|
35
|
-
};
|
|
36
|
-
highlightedValue: {
|
|
37
|
-
type: PropType<DateValue>;
|
|
38
|
-
default: undefined;
|
|
39
|
-
};
|
|
40
|
-
defaultHighlightedValue: {
|
|
41
|
-
type: PropType<DateValue>;
|
|
42
|
-
default: undefined;
|
|
43
|
-
};
|
|
44
|
-
defaultView: {
|
|
45
|
-
type: PropType<CalendarViewMode>;
|
|
46
|
-
default: string;
|
|
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: PropType<CalendarPolicies>;
|
|
66
|
-
default: undefined;
|
|
67
|
-
};
|
|
68
|
-
}>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
69
|
-
'update:modelValue': (_value: DateValue | null) => boolean;
|
|
70
|
-
'update:highlightedValue': (_value: DateValue) => boolean;
|
|
71
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
72
|
-
modelValue: {
|
|
73
|
-
type: PropType<DateValue | null>;
|
|
74
|
-
default: undefined;
|
|
75
|
-
};
|
|
76
|
-
defaultValue: {
|
|
77
|
-
type: PropType<DateValue | null>;
|
|
78
|
-
default: null;
|
|
79
|
-
};
|
|
80
|
-
highlightedValue: {
|
|
81
|
-
type: PropType<DateValue>;
|
|
82
|
-
default: undefined;
|
|
83
|
-
};
|
|
84
|
-
defaultHighlightedValue: {
|
|
85
|
-
type: PropType<DateValue>;
|
|
86
|
-
default: undefined;
|
|
87
|
-
};
|
|
88
|
-
defaultView: {
|
|
89
|
-
type: PropType<CalendarViewMode>;
|
|
90
|
-
default: string;
|
|
91
|
-
};
|
|
92
|
-
disabled: {
|
|
93
|
-
type: BooleanConstructor;
|
|
94
|
-
default: boolean;
|
|
95
|
-
};
|
|
96
|
-
readonly: {
|
|
97
|
-
type: BooleanConstructor;
|
|
98
|
-
default: boolean;
|
|
99
|
-
};
|
|
100
|
-
required: {
|
|
101
|
-
type: BooleanConstructor;
|
|
102
|
-
default: boolean;
|
|
103
|
-
};
|
|
104
|
-
label: {
|
|
105
|
-
type: StringConstructor;
|
|
106
|
-
default: undefined;
|
|
107
|
-
};
|
|
108
|
-
policies: {
|
|
109
|
-
type: PropType<CalendarPolicies>;
|
|
110
|
-
default: undefined;
|
|
111
|
-
};
|
|
112
|
-
}>> & Readonly<{
|
|
113
|
-
"onUpdate:highlightedValue"?: (_value: DateValue) => any;
|
|
114
|
-
"onUpdate:modelValue"?: (_value: DateValue | null) => any;
|
|
115
|
-
}>, {
|
|
116
|
-
modelValue: DateValue | null;
|
|
117
|
-
defaultValue: DateValue | null;
|
|
118
|
-
highlightedValue: DateValue;
|
|
119
|
-
defaultHighlightedValue: DateValue;
|
|
120
|
-
defaultView: CalendarViewMode;
|
|
121
|
-
disabled: boolean;
|
|
122
|
-
readonly: boolean;
|
|
123
|
-
required: boolean;
|
|
124
|
-
label: string;
|
|
125
|
-
policies: CalendarPolicies;
|
|
27
|
+
export declare const CalendarRoot: DefineSetupFnComponent<CalendarRootProps, {
|
|
28
|
+
'update:modelValue': (value: DateValue | null) => boolean;
|
|
29
|
+
'update:highlightedValue': (value: DateValue) => boolean;
|
|
126
30
|
}, SlotsType<{
|
|
127
31
|
default: (props: CalendarRootSlotProps) => VNodeChild;
|
|
128
|
-
}
|
|
32
|
+
}>>;
|
|
129
33
|
export type CalendarValueChangeHandler = NonNullable<InstanceType<typeof CalendarRoot>['$props']['onUpdate:modelValue']>;
|
|
130
34
|
export type CalendarHighlightedValueChangeHandler = NonNullable<InstanceType<typeof CalendarRoot>['$props']['onUpdate:highlightedValue']>;
|
|
131
35
|
export declare const CalendarContent: PickerRootPartComponent<'calendar'>;
|
|
132
36
|
export declare const CalendarGrid: PickerRootPartComponent<'calendar'>;
|
|
133
37
|
export declare const CalendarCell: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
134
38
|
value: {
|
|
135
|
-
type: PropType<DateValue>;
|
|
39
|
+
type: import("vue").PropType<DateValue>;
|
|
136
40
|
required: true;
|
|
137
41
|
};
|
|
138
42
|
as: {
|
|
139
|
-
type: PropType<import("../primitive.js").PrimitiveAs>;
|
|
43
|
+
type: import("vue").PropType<import("../primitive.js").PrimitiveAs>;
|
|
140
44
|
default: string;
|
|
141
45
|
};
|
|
142
46
|
asChild: {
|
|
@@ -145,11 +49,11 @@ export declare const CalendarCell: import("vue").DefineComponent<import("vue").E
|
|
|
145
49
|
};
|
|
146
50
|
}>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
147
51
|
value: {
|
|
148
|
-
type: PropType<DateValue>;
|
|
52
|
+
type: import("vue").PropType<DateValue>;
|
|
149
53
|
required: true;
|
|
150
54
|
};
|
|
151
55
|
as: {
|
|
152
|
-
type: PropType<import("../primitive.js").PrimitiveAs>;
|
|
56
|
+
type: import("vue").PropType<import("../primitive.js").PrimitiveAs>;
|
|
153
57
|
default: string;
|
|
154
58
|
};
|
|
155
59
|
asChild: {
|
|
@@ -164,11 +68,11 @@ export declare const CalendarCell: import("vue").DefineComponent<import("vue").E
|
|
|
164
68
|
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
165
69
|
export declare const CalendarMonthCell: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
166
70
|
value: {
|
|
167
|
-
type: PropType<CalendarMonthValue>;
|
|
71
|
+
type: import("vue").PropType<CalendarMonthValue>;
|
|
168
72
|
required: true;
|
|
169
73
|
};
|
|
170
74
|
as: {
|
|
171
|
-
type: PropType<import("../primitive.js").PrimitiveAs>;
|
|
75
|
+
type: import("vue").PropType<import("../primitive.js").PrimitiveAs>;
|
|
172
76
|
default: string;
|
|
173
77
|
};
|
|
174
78
|
asChild: {
|
|
@@ -177,11 +81,11 @@ export declare const CalendarMonthCell: import("vue").DefineComponent<import("vu
|
|
|
177
81
|
};
|
|
178
82
|
}>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
179
83
|
value: {
|
|
180
|
-
type: PropType<CalendarMonthValue>;
|
|
84
|
+
type: import("vue").PropType<CalendarMonthValue>;
|
|
181
85
|
required: true;
|
|
182
86
|
};
|
|
183
87
|
as: {
|
|
184
|
-
type: PropType<import("../primitive.js").PrimitiveAs>;
|
|
88
|
+
type: import("vue").PropType<import("../primitive.js").PrimitiveAs>;
|
|
185
89
|
default: string;
|
|
186
90
|
};
|
|
187
91
|
asChild: {
|
|
@@ -204,7 +108,7 @@ export declare const CalendarInput: import("vue").DefineComponent<import("vue").
|
|
|
204
108
|
default: undefined;
|
|
205
109
|
};
|
|
206
110
|
as: {
|
|
207
|
-
type: PropType<import("../primitive.js").PrimitiveAs>;
|
|
111
|
+
type: import("vue").PropType<import("../primitive.js").PrimitiveAs>;
|
|
208
112
|
default: string;
|
|
209
113
|
};
|
|
210
114
|
asChild: {
|
|
@@ -221,7 +125,7 @@ export declare const CalendarInput: import("vue").DefineComponent<import("vue").
|
|
|
221
125
|
default: undefined;
|
|
222
126
|
};
|
|
223
127
|
as: {
|
|
224
|
-
type: PropType<import("../primitive.js").PrimitiveAs>;
|
|
128
|
+
type: import("vue").PropType<import("../primitive.js").PrimitiveAs>;
|
|
225
129
|
default: string;
|
|
226
130
|
};
|
|
227
131
|
asChild: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{PickerCell,PickerContent,PickerGrid,PickerMonthCell,createPickerInput,createPickerMove,createPickerRoot,createPickerViewTrigger}from'./picker.js';import{calendarCapability}from'./capabilities/calendar.js';export const CalendarRoot=/* @__PURE__ */createPickerRoot(calendarCapability,'SectileCalendarRoot',{scope:'calendar',defaultOpen:true,defaultView:'month',inline:true});export const CalendarContent=PickerContent;export const CalendarGrid=PickerGrid;export const CalendarCell=PickerCell;export const CalendarMonthCell=PickerMonthCell;export const CalendarInput=/* @__PURE__ */createPickerInput('input','SectileCalendarInput','hidden');export const CalendarPreviousWeek=/* @__PURE__ */createPickerMove('week',-1,'SectileCalendarPreviousWeek');export const CalendarNextWeek=/* @__PURE__ */createPickerMove('week',1,'SectileCalendarNextWeek');export const CalendarPreviousMonth=/* @__PURE__ */createPickerMove('month',-1,'SectileCalendarPreviousMonth');export const CalendarNextMonth=/* @__PURE__ */createPickerMove('month',1,'SectileCalendarNextMonth');export const CalendarPreviousYear=/* @__PURE__ */createPickerMove('year',-1,'SectileCalendarPreviousYear');export const CalendarNextYear=/* @__PURE__ */createPickerMove('year',1,'SectileCalendarNextYear');export const CalendarWeekViewTrigger=/* @__PURE__ */createPickerViewTrigger('week','SectileCalendarWeekViewTrigger');export const CalendarMonthViewTrigger=/* @__PURE__ */createPickerViewTrigger('month','SectileCalendarMonthViewTrigger');export const CalendarYearViewTrigger=/* @__PURE__ */createPickerViewTrigger('year','SectileCalendarYearViewTrigger');
|
|
2
2
|
//# sourceMappingURL=calendar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.js","names":["
|
|
1
|
+
{"version":3,"file":"calendar.js","names":["PickerCell","PickerContent","PickerGrid","PickerMonthCell","createPickerInput","createPickerMove","createPickerRoot","createPickerViewTrigger","calendarCapability","CalendarRoot","scope","defaultOpen","defaultView","inline","CalendarContent","CalendarGrid","CalendarCell","CalendarMonthCell","CalendarInput","CalendarPreviousWeek","CalendarNextWeek","CalendarPreviousMonth","CalendarNextMonth","CalendarPreviousYear","CalendarNextYear","CalendarWeekViewTrigger","CalendarMonthViewTrigger","CalendarYearViewTrigger"],"sources":["../../src/temporal/calendar.ts"],"mappings":"OAQEA,WACAC,cACAC,WACAC,gBACAC,kBACAC,iBACAC,iBACAC,4BAMK,qBACEC,uBAA0B,oCA2B5B,MAAMC,4BAA+BH,iBAAiBE,mBAAoB,sBAAuB,CACtGE,MAAO,WACPC,YAAa,KACbC,YAAa,QACbC,OAAQ,cAOH,MAAMC,gBAAkBb,qBACxB,MAAMc,aAAeb,kBACrB,MAAMc,aAAehB,kBACrB,MAAMiB,kBAAoBd,uBAC1B,MAAMe,6BAAgCd,kBAAkB,QAAS,uBAAwB,iBACzF,MAAMe,oCAAuCd,iBAAiB,QAAS,EAAG,sCAC1E,MAAMe,gCAAmCf,iBAAiB,OAAQ,EAAG,kCACrE,MAAMgB,qCAAwChB,iBAAiB,SAAU,EAAG,uCAC5E,MAAMiB,iCAAoCjB,iBAAiB,QAAS,EAAG,mCACvE,MAAMkB,oCAAuClB,iBAAiB,QAAS,EAAG,sCAC1E,MAAMmB,gCAAmCnB,iBAAiB,OAAQ,EAAG,kCACrE,MAAMoB,uCAA0ClB,wBAAwB,OAAQ,yCAChF,MAAMmB,wCAA2CnB,wBAAwB,QAAS,0CAClF,MAAMoB,uCAA0CpB,wBAAwB,OAAQ","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createDatePicker}from"@sectile/dom/temporal/date-picker";import{formatDateValue}from"@sectile/dom/temporal/date-field";import{definePickerFamilyCapability}from"../capability.js";const datePickerCapability=definePickerFamilyCapability({kind:"date",connect:options=>createDatePicker(options),formatInput:(granularity,_part,value)=>formatPeriod(value,granularity)});function formatPeriod(value,granularity){return granularity==="year"?String(value.year):granularity==="month"?`${String(value.year).padStart(4,"0")}-${String(value.month).padStart(2,"0")}`:formatDateValue(value)}export{datePickerCapability};
|
|
1
|
+
import{createDatePicker}from"@sectile/dom/temporal/date-picker";import{formatDateValue,getDateFieldPlaceholder}from"@sectile/dom/temporal/date-field";import{formatDateFieldValue}from"@sectile/temporal/date-field";import{unwrap}from"@sectile/core/result";import{definePickerFamilyCapability}from"../capability.js";const datePickerCapability=definePickerFamilyCapability({kind:"date",connect:options=>createDatePicker(options),presentation:formatter=>{const format=formatter===void 0?void 0:unwrap(formatter.dateFieldFormat());return{options:{format},attributes:{input:{placeholder:getDateFieldPlaceholder(format),inputmode:"numeric"}},formatInput:(part,value)=>part==="input"&&format!==void 0?formatDateFieldValue(value,format):void 0}},formatInput:(granularity,_part,value)=>formatPeriod(value,granularity)});function formatPeriod(value,granularity){return granularity==="year"?String(value.year):granularity==="month"?`${String(value.year).padStart(4,"0")}-${String(value.month).padStart(2,"0")}`:formatDateValue(value)}export{datePickerCapability};
|
|
2
2
|
//# sourceMappingURL=date-picker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/temporal/capabilities/date-picker.ts"],"mappings":"AAAA,OAAS,qBAAwB,oCACjC,OAAS,
|
|
1
|
+
{"version":3,"sources":["../../../src/temporal/capabilities/date-picker.ts"],"mappings":"AAAA,OAAS,qBAAwB,oCACjC,OAAS,gBAAiB,4BAA+C,mCACzE,OAAS,yBAA4B,+BACrC,OAAS,WAAc,uBACvB,OAAS,iCAAsE,mBAExE,MAAM,qBAAuB,6BAA6B,CAC/D,KAAM,OACN,QAAU,SAAY,iBAAiB,OAAgB,EACvD,aAAc,WAAY,CACxB,MAAM,OAAS,YAAc,OAAY,OAAY,OAAO,UAAU,gBAAe,CAAE,EACvF,MAAO,CAAE,QAAS,CAAE,MAAM,EAAI,WAAY,CAAE,MAAO,CAAE,YAAa,wBAAwB,MAAM,EAAG,UAAW,SAAS,CAAE,EACvH,YAAa,CAAC,KAAM,QAAU,OAAS,SAAW,SAAW,OAAY,qBAAqB,MAAoB,MAAM,EAAI,MAAS,CACzI,EACA,YAAa,CAAC,YAAa,MAAO,QAAU,aAAa,MAAoB,WAAW,EACzF,EAED,SAAS,aAAa,MAAkB,YAAwC,CAC9E,OAAO,cAAgB,OACnB,OAAO,MAAM,IAAI,EACjB,cAAgB,QACd,GAAG,OAAO,MAAM,IAAI,EAAE,SAAS,EAAG,GAAG,CAAC,IAAI,OAAO,MAAM,KAAK,EAAE,SAAS,EAAG,GAAG,CAAC,GAC9E,gBAAgB,KAAK,CAC7B","names":[],"file":"date-picker.js"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createDateTimePicker}from"@sectile/dom/temporal/date-time-picker";import{formatDateValue}from"@sectile/dom/temporal/date-field";import{formatDateTimeValue}from"@sectile/dom/temporal/date-time-field";import{formatTimeValue}from"@sectile/dom/temporal/time-field";import{definePickerFamilyCapability}from"../capability.js";const dateTimePickerCapability=definePickerFamilyCapability({kind:"date-time",connect:options=>createDateTimePicker(options),formatInput:(_granularity,part,value)=>{const dateTime=value;return part==="time-input"?formatTimeValue(dateTime.time):part==="date-input"?formatDateValue(dateTime.date):formatDateTimeValue(dateTime)}});export{dateTimePickerCapability};
|
|
1
|
+
import{createDateTimePicker}from"@sectile/dom/temporal/date-time-picker";import{formatDateValue,getDateFieldPlaceholder}from"@sectile/dom/temporal/date-field";import{formatDateTimeValue,getDateTimeFieldPlaceholder}from"@sectile/dom/temporal/date-time-field";import{formatTimeValue,getTimeFieldPlaceholder}from"@sectile/dom/temporal/time-field";import{formatDateFieldValue}from"@sectile/temporal/date-field";import{formatTimeFieldValue}from"@sectile/temporal/time-field";import{formatDateTimeFieldValue}from"@sectile/temporal/date-time-field";import{unwrap}from"@sectile/core/result";import{createDateTimePickerState}from"@sectile/temporal/date-time-picker";import{definePickerFamilyCapability}from"../capability.js";const dateTimePickerCapability=definePickerFamilyCapability({kind:"date-time",connect:options=>createDateTimePicker(options),presentation:formatter=>{const format=formatter===void 0?void 0:unwrap(formatter.dateTimeFieldFormat("millisecond"));const dateFormat=format?.date,timeFormat=format?.time;return{options:{format,dateFormat,timeFormat},attributes:{"date-time-input":{placeholder:getDateTimeFieldPlaceholder(format),inputmode:"text"},"date-input":{placeholder:getDateFieldPlaceholder(dateFormat),inputmode:"numeric"},"time-input":{placeholder:getTimeFieldPlaceholder(timeFormat),inputmode:timeFormat?.dayPeriods===void 0?"numeric":"text"}},formatInput:(part,value)=>{const dateTime=value;return format===void 0?void 0:part==="time-input"?formatTimeFieldValue(dateTime.time,timeFormat):part==="date-input"?formatDateFieldValue(dateTime.date,dateFormat):formatDateTimeFieldValue(dateTime,format)}}},initialInputValues:(referenceDate,policies,formatter)=>{const time=policies?.defaultTime;const state=createDateTimePickerState({referenceDate,...time===void 0?{}:{time}});return Object.freeze({"time-input":formatter===void 0?formatTimeValue(state.time):formatTimeFieldValue(state.time,unwrap(formatter.dateTimeFieldFormat("millisecond")).time)})},formatInput:(_granularity,part,value)=>{const dateTime=value;return part==="time-input"?formatTimeValue(dateTime.time):part==="date-input"?formatDateValue(dateTime.date):formatDateTimeValue(dateTime)}});export{dateTimePickerCapability};
|
|
2
2
|
//# sourceMappingURL=date-time-picker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/temporal/capabilities/date-time-picker.ts"],"mappings":"AAAA,OAAS,yBAA4B,yCACrC,OAAS,
|
|
1
|
+
{"version":3,"sources":["../../../src/temporal/capabilities/date-time-picker.ts"],"mappings":"AAAA,OAAS,yBAA4B,yCACrC,OAAS,gBAAiB,4BAA+B,mCACzD,OAAS,oBAAqB,gCAAuD,wCACrF,OAAS,gBAAiB,4BAA+B,mCACzD,OAAS,yBAA4B,+BACrC,OAAS,yBAA4B,+BACrC,OAAS,6BAAgC,oCACzC,OAAS,WAAc,uBACvB,OAAS,8BAA8D,qCACvE,OAAS,iCAAoC,mBAEtC,MAAM,yBAA2B,6BAA6B,CACnE,KAAM,YACN,QAAU,SAAY,qBAAqB,OAAgB,EAC3D,aAAc,WAAY,CACxB,MAAM,OAAS,YAAc,OAAY,OAAY,OAAO,UAAU,oBAAoB,aAAa,CAAC,EACxG,MAAM,WAAa,QAAQ,KAAM,WAAa,QAAQ,KACtD,MAAO,CAAE,QAAS,CAAE,OAAQ,WAAY,UAAU,EAAI,WAAY,CAChE,kBAAmB,CAAE,YAAa,4BAA4B,MAAM,EAAG,UAAW,MAAM,EACxF,aAAc,CAAE,YAAa,wBAAwB,UAAU,EAAG,UAAW,SAAS,EACtF,aAAc,CAAE,YAAa,wBAAwB,UAAU,EAAG,UAAW,YAAY,aAAe,OAAY,UAAY,MAAM,GACrI,YAAa,CAAC,KAAM,QAAS,CAC9B,MAAM,SAAW,MACjB,OAAO,SAAW,OAAY,OAAY,OAAS,aAAe,qBAAqB,SAAS,KAAM,UAAU,EAC5G,OAAS,aAAe,qBAAqB,SAAS,KAAM,UAAU,EAAI,yBAAyB,SAAU,MAAM,CACzH,CAAC,CACH,EACA,mBAAoB,CAAC,cAAe,SAAU,YAAa,CACzD,MAAM,KAAQ,UAAiD,YAC/D,MAAM,MAAQ,0BAA0B,CAAE,cAAe,GAAI,OAAS,OAAY,CAAA,EAAK,CAAE,IAAI,CAAG,CAAE,EAClG,OAAO,OAAO,OAAO,CAAE,aAAc,YAAc,OAAY,gBAAgB,MAAM,IAAI,EAAI,qBAAqB,MAAM,KAAM,OAAO,UAAU,oBAAoB,aAAa,CAAC,EAAE,IAAI,CAAC,CAAE,CAC5L,EACA,YAAa,CAAC,aAAc,KAAM,QAAS,CACzC,MAAM,SAAW,MACjB,OAAO,OAAS,aACZ,gBAAgB,SAAS,IAAI,EAC7B,OAAS,aACP,gBAAgB,SAAS,IAAI,EAC7B,oBAAoB,QAAQ,CACpC,EACD","names":[],"file":"date-time-picker.js"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createDateTimeRangePicker}from"@sectile/dom/temporal/date-time-range-picker";import{formatDateValue}from"@sectile/dom/temporal/date-field";import{formatDateTimeValue}from"@sectile/dom/temporal/date-time-field";import{formatTimeValue}from"@sectile/dom/temporal/time-field";import{definePickerFamilyCapability}from"../capability.js";const dateTimeRangePickerCapability=definePickerFamilyCapability({kind:"date-time-range",connect:options=>createDateTimeRangePicker(options),formatInput:(_granularity,part,value)=>{const range=value;const endpoint=part.startsWith("start")?range.start:range.end;return part.endsWith("time-input")&&!part.includes("date-time")?formatTimeValue(endpoint.time):part.endsWith("date-input")?formatDateValue(endpoint.date):formatDateTimeValue(endpoint)}});export{dateTimeRangePickerCapability};
|
|
1
|
+
import{createDateTimeRangePicker}from"@sectile/dom/temporal/date-time-range-picker";import{formatDateValue,getDateFieldPlaceholder}from"@sectile/dom/temporal/date-field";import{formatDateTimeValue}from"@sectile/dom/temporal/date-time-field";import{formatTimeValue,getTimeFieldPlaceholder}from"@sectile/dom/temporal/time-field";import{formatDateFieldValue}from"@sectile/temporal/date-field";import{formatTimeFieldValue}from"@sectile/temporal/time-field";import{unwrap}from"@sectile/core/result";import{createDateTimeRangePickerState}from"@sectile/temporal/date-time-range-picker";import{definePickerFamilyCapability}from"../capability.js";const dateTimeRangePickerCapability=definePickerFamilyCapability({kind:"date-time-range",connect:options=>createDateTimeRangePicker(options),presentation:formatter=>{const dateFormat=formatter===void 0?void 0:unwrap(formatter.dateFieldFormat());const timeFormat=formatter===void 0?void 0:unwrap(formatter.timeFieldFormat("millisecond"));const date={placeholder:getDateFieldPlaceholder(dateFormat),inputmode:"numeric"};const time={placeholder:getTimeFieldPlaceholder(timeFormat),inputmode:timeFormat?.dayPeriods===void 0?"numeric":"text"};return{options:{dateFormat,timeFormat},attributes:{"start-date-input":date,"end-date-input":date,"start-time-input":time,"end-time-input":time},formatInput:(part,value)=>{const endpoint=part.startsWith("start")?value.start:value.end;return part==="start-time-input"||part==="end-time-input"?timeFormat===void 0?void 0:formatTimeFieldValue(endpoint.time,timeFormat):part==="start-date-input"||part==="end-date-input"?dateFormat===void 0?void 0:formatDateFieldValue(endpoint.date,dateFormat):void 0}}},initialInputValues:(referenceDate,_policies,formatter)=>{const state=createDateTimeRangePickerState({referenceDate});const format=formatter===void 0?void 0:unwrap(formatter.timeFieldFormat("millisecond"));return Object.freeze({"start-time-input":formatTimeFieldValue(state.startTime,format),"end-time-input":formatTimeFieldValue(state.endTime,format)})},formatInput:(_granularity,part,value)=>{const range=value;const endpoint=part.startsWith("start")?range.start:range.end;return part.endsWith("time-input")&&!part.includes("date-time")?formatTimeValue(endpoint.time):part.endsWith("date-input")?formatDateValue(endpoint.date):formatDateTimeValue(endpoint)}});export{dateTimeRangePickerCapability};
|
|
2
2
|
//# sourceMappingURL=date-time-range-picker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/temporal/capabilities/date-time-range-picker.ts"],"mappings":"AAAA,OAAS,8BAAiC,+CAC1C,OAAS,
|
|
1
|
+
{"version":3,"sources":["../../../src/temporal/capabilities/date-time-range-picker.ts"],"mappings":"AAAA,OAAS,8BAAiC,+CAC1C,OAAS,gBAAiB,4BAA+B,mCACzD,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AAc,KAAM,QAAS,CACzC,MAAM,MAAQ,MACd,MAAM,SAAW,KAAK,WAAW,OAAO,EAAI,MAAM,MAAQ,MAAM,IAChE,OAAO,KAAK,SAAS,YAAY,GAAK,CAAC,KAAK,SAAS,WAAW,EAC5D,gBAAgB,SAAS,IAAI,EAC7B,KAAK,SAAS,YAAY,EACxB,gBAAgB,SAAS,IAAI,EAC7B,oBAAoB,QAAQ,CACpC,EACD","names":[],"file":"date-time-range-picker.js"}
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
+
import type { TemporalFormatter } from '@sectile/dom/temporal/format';
|
|
1
2
|
export type PickerCapabilityGranularity = 'day' | 'month' | 'year';
|
|
2
|
-
export interface
|
|
3
|
+
export interface PickerInputPresentation {
|
|
4
|
+
readonly options: Readonly<Record<string, unknown>>;
|
|
5
|
+
readonly attributes: Readonly<Record<string, Readonly<{
|
|
6
|
+
placeholder: string;
|
|
7
|
+
inputmode: 'text' | 'numeric';
|
|
8
|
+
}>>>;
|
|
9
|
+
formatInput(part: string, value: unknown): string | undefined;
|
|
10
|
+
}
|
|
11
|
+
export interface PickerCapabilityConnection extends Pick<import('@sectile/dom/temporal/calendar').CalendarConnection, 'getActive' | 'suspend' | 'resume'>, Partial<Pick<import('@sectile/dom/temporal/date-picker').DatePickerConnection, 'getLayerOrder' | 'subscribeLayerPresentation' | 'syncLayerParent'>> {
|
|
3
12
|
getSnapshot(): {
|
|
4
13
|
readonly state: unknown;
|
|
5
14
|
};
|
|
15
|
+
getFieldStates?(): unknown;
|
|
6
16
|
getMonth(): readonly (readonly DateValue[])[];
|
|
7
17
|
getWeek(): readonly DateValue[];
|
|
8
18
|
getYear(): readonly (readonly CalendarMonthValue[])[];
|
|
@@ -21,6 +31,8 @@ export interface PickerFamilyCapability<Kind extends string> {
|
|
|
21
31
|
readonly kind: Kind;
|
|
22
32
|
connect(options: Record<string, unknown>): PickerCapabilityConnection;
|
|
23
33
|
formatInput(granularity: PickerCapabilityGranularity, part: string, value: unknown): string;
|
|
34
|
+
presentation?(formatter: TemporalFormatter | undefined): PickerInputPresentation;
|
|
35
|
+
initialInputValues?(referenceDate: DateValue, policies: unknown, formatter?: TemporalFormatter): Readonly<Record<string, string>>;
|
|
24
36
|
}
|
|
25
37
|
export declare function definePickerFamilyCapability<Kind extends string>(capability: PickerFamilyCapability<Kind>): PickerFamilyCapability<Kind>;
|
|
26
38
|
import type { CalendarMonthValue } from '@sectile/dom/temporal/calendar';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/temporal/capability.ts"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/temporal/capability.ts"],"mappings":"AA+BM,SAAU,6BACd,WAAwC,CAExC,OAAO,OAAO,OAAO,CAAE,GAAG,UAAU,CAAE,CACxC","names":[],"file":"capability.js"}
|
|
@@ -10,5 +10,5 @@ export interface DateFieldProps {
|
|
|
10
10
|
readonly label?: string;
|
|
11
11
|
readonly native?: boolean;
|
|
12
12
|
}
|
|
13
|
-
export declare const DateField: import("vue").DefineComponent<import("../input/native-field.js").NativeFieldPublicProps<import("@sectile/
|
|
13
|
+
export declare const DateField: import("vue").DefineComponent<import("../input/native-field.js").NativeFieldPublicProps<import("@sectile/temporal/date-field").DateValue, import("@sectile/temporal/date-field").DateFieldPolicies>>;
|
|
14
14
|
export type DateFieldValueChangeHandler = (value: DateValue | null) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{}from
|
|
1
|
+
import{computed}from'vue';import{unwrap}from'@sectile/core/result';import{createDateFieldState,formatDateFieldValue,reformatDateFieldState}from'@sectile/temporal/date-field';import{createDateField,formatDateValue,getDateFieldPlaceholder}from'@sectile/dom/temporal/date-field';import{createNativeFieldComponent}from'../input/native-field.js';import{useTemporalFormatter}from'./temporal-provider.js';function rebase(value,inputState,previousFormat,format){return unwrap(reformatDateFieldState(createDateFieldState(value,inputState,previousFormat),format)).inputState}export const DateField=/* @__PURE__ */createNativeFieldComponent({name:'SectileDateField',scope:'date-field',inputMode:'numeric',nativeInputType:'date',placeholder:'YYYY-MM-DD',formatValue:formatDateValue,valueType:Object,create:createDateField,rebase:(value,inputState,previousFormat)=>rebase(value,inputState,previousFormat),usePresentation(props){const formatter=useTemporalFormatter();return computed(()=>{if(props.native===true||formatter.value===undefined)return undefined;const format=unwrap(formatter.value.dateFieldFormat());return{format,placeholder:getDateFieldPlaceholder(format),formatValue:value=>formatDateFieldValue(value,format),create:options=>createDateField({...options,format}),rebase:(value,inputState,previousFormat)=>rebase(value,inputState,previousFormat,format)}})}});
|
|
2
2
|
//# sourceMappingURL=date-field.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/temporal/date-field.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"date-field.js","names":["computed","unwrap","createDateFieldState","formatDateFieldValue","reformatDateFieldState","createDateField","formatDateValue","getDateFieldPlaceholder","createNativeFieldComponent","useTemporalFormatter","rebase","value","inputState","previousFormat","format","DateField","name","scope","inputMode","nativeInputType","placeholder","formatValue","valueType","Object","create","usePresentation","props","formatter","native","undefined","dateFieldFormat","options"],"sources":["../../src/temporal/date-field.ts"],"mappings":"OAASA,aAA+B,aAC/BC,WAAc,8BACdC,qBAAsBC,qBAAsBC,2BAAoD,sCAEvGC,gBACAC,gBACAC,4BAEK,0CACEC,+BAAgE,kCAChEC,yBAA4B,yBAgBrC,SAASC,OAAOC,MAAyBC,WAAwDC,eAA6CC,QAC5I,OAAOb,OAAOG,uBAAuBF,qBAAqBS,MAAOC,WAAYC,gBAAiBC,SAASF,UACzG,QAEO,MAAMG,yBAA4BP,2BAA0E,CACjHQ,KAAM,mBACNC,MAAO,aACPC,UAAW,UACXC,gBAAiB,OACjBC,YAAa,aACbC,YAAaf,gBACbgB,UAAWC,OACXC,OAAQnB,gBACRK,OAAQ,CAACC,MAAOC,WAAYC,iBAAmBH,OAAOC,MAAOC,WAAYC,gBACzE,eAAAY,CAAgBC,OACd,MAAMC,UAAYlB,uBAClB,OAAOT,SAA6F,KAClG,GAAI0B,MAAME,SAAW,MAAQD,UAAUhB,QAAUkB,UAAW,OAAOA,UACnE,MAAMf,OAASb,OAAO0B,UAAUhB,MAAMmB,mBACtC,MAAO,CAAEhB,OAAQM,YAAab,wBAAwBO,QAASO,YAAcV,OAAqBR,qBAAqBQ,MAAOG,QAC5HU,OAAQO,SAAW1B,gBAAgB,IAAK0B,QAASjB,SACjDJ,OAAQ,CAACC,MAAOC,WAAYC,iBAAmBH,OAAOC,MAAOC,WAAYC,eAAgBC,UAE/F","ignoreList":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DatePickerOptions } from '@sectile/dom/temporal/date-picker';
|
|
2
2
|
import type { DateValue } from '@sectile/dom/temporal/date-field';
|
|
3
3
|
import { type PickerRootPartComponent, type PickerCellSlotProps, type PickerMonthCellSlotProps, type PickerPartProps, type PickerPortalProps, type PickerPositionProps, type PickerRootSlotProps } from './picker.js';
|
|
4
|
+
import type { PickerContentPartComponent, PickerContentSlotProps } from './picker.js';
|
|
4
5
|
export interface DatePickerRootProps extends PickerPartProps, PickerPositionProps {
|
|
5
6
|
readonly modelValue?: DateValue | null;
|
|
6
7
|
readonly defaultValue?: DateValue | null;
|
|
@@ -18,6 +19,7 @@ export interface DatePickerRootProps extends PickerPartProps, PickerPositionProp
|
|
|
18
19
|
}
|
|
19
20
|
export declare const DatePickerRoot: import("./picker.js").PickerRootComponent<"date">;
|
|
20
21
|
export type DatePickerRootSlotProps = PickerRootSlotProps<DateValue | null>;
|
|
22
|
+
export type DatePickerContentSlotProps = PickerContentSlotProps<DateValue | null>;
|
|
21
23
|
export type DatePickerValueChangeHandler = NonNullable<InstanceType<typeof DatePickerRoot>['$props']['onUpdate:modelValue']>;
|
|
22
24
|
export type DatePickerOpenChangeHandler = NonNullable<InstanceType<typeof DatePickerRoot>['$props']['onUpdate:open']>;
|
|
23
25
|
export type DatePickerHighlightedValueChangeHandler = NonNullable<InstanceType<typeof DatePickerRoot>['$props']['onUpdate:highlightedValue']>;
|
|
@@ -54,7 +56,7 @@ export declare const DatePickerPortal: import("vue").DefineComponent<import("vue
|
|
|
54
56
|
disabled: boolean;
|
|
55
57
|
defer: boolean;
|
|
56
58
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
57
|
-
export declare const DatePickerContent:
|
|
59
|
+
export declare const DatePickerContent: PickerContentPartComponent<'date'>;
|
|
58
60
|
export declare const DatePickerGrid: PickerRootPartComponent<'date'>;
|
|
59
61
|
export declare const DatePickerCell: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
60
62
|
value: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker.js","names":["PickerAnchor","PickerCell","PickerContent","PickerGrid","PickerMonthCell","PickerPortal","PickerTrigger","createPickerInput","createPickerMove","createPickerViewTrigger","createPickerRoot","datePickerCapability","DatePickerRoot","DatePickerTrigger","DatePickerAnchor","DatePickerPortal","DatePickerContent","DatePickerGrid","DatePickerCell","DatePickerMonthCell","DatePickerInput","DatePickerPreviousWeek","DatePickerNextWeek","DatePickerPreviousMonth","DatePickerNextMonth","DatePickerPreviousYear","DatePickerNextYear","DatePickerWeekViewTrigger","DatePickerMonthViewTrigger","DatePickerYearViewTrigger"],"sources":["../../src/temporal/date-picker.ts"],"mappings":"OAGEA,aAAcC,WAAYC,cAAeC,WAAYC,gBAAiBC,aAAcC,cAAeC,kBAAmBC,iBAAkBC,wBACxIC,qBACK,qBACEC,yBAA4B,
|
|
1
|
+
{"version":3,"file":"date-picker.js","names":["PickerAnchor","PickerCell","PickerContent","PickerGrid","PickerMonthCell","PickerPortal","PickerTrigger","createPickerInput","createPickerMove","createPickerViewTrigger","createPickerRoot","datePickerCapability","DatePickerRoot","DatePickerTrigger","DatePickerAnchor","DatePickerPortal","DatePickerContent","DatePickerGrid","DatePickerCell","DatePickerMonthCell","DatePickerInput","DatePickerPreviousWeek","DatePickerNextWeek","DatePickerPreviousMonth","DatePickerNextMonth","DatePickerPreviousYear","DatePickerNextYear","DatePickerWeekViewTrigger","DatePickerMonthViewTrigger","DatePickerYearViewTrigger"],"sources":["../../src/temporal/date-picker.ts"],"mappings":"OAGEA,aAAcC,WAAYC,cAAeC,WAAYC,gBAAiBC,aAAcC,cAAeC,kBAAmBC,iBAAkBC,wBACxIC,qBACK,qBACEC,yBAA4B,uCAU9B,MAAMC,8BAAiCF,iBAAiBC,qBAAsB,gCAM9E,MAAME,kBAAoBP,qBAC1B,MAAMQ,iBAAmBd,oBACzB,MAAMe,iBAAmBV,oBACzB,MAAMW,kBAAoBd,qBAC1B,MAAMe,eAAiBd,kBACvB,MAAMe,eAAiBjB,kBACvB,MAAMkB,oBAAsBf,uBAC5B,MAAMgB,+BAAkCb,kBAAkB,QAAS,iCACnE,MAAMc,sCAAyCb,iBAAiB,QAAS,EAAG,wCAC5E,MAAMc,kCAAqCd,iBAAiB,OAAQ,EAAG,oCACvE,MAAMe,uCAA0Cf,iBAAiB,SAAU,EAAG,yCAC9E,MAAMgB,mCAAsChB,iBAAiB,QAAS,EAAG,qCACzE,MAAMiB,sCAAyCjB,iBAAiB,QAAS,EAAG,wCAC5E,MAAMkB,kCAAqClB,iBAAiB,OAAQ,EAAG,oCACvE,MAAMmB,yCAA4ClB,wBAAwB,OAAQ,2CAClF,MAAMmB,0CAA6CnB,wBAAwB,QAAS,4CACpF,MAAMoB,yCAA4CpB,wBAAwB,OAAQ","ignoreList":[]}
|
|
@@ -3,6 +3,8 @@ import { type DateRangeFieldPolicies } from '@sectile/dom/temporal/date-range-fi
|
|
|
3
3
|
import type { DateRange } from '@sectile/dom/temporal/date-field';
|
|
4
4
|
import type { PrimitiveAs } from '../primitive.js';
|
|
5
5
|
export interface DateRangeFieldRootProps {
|
|
6
|
+
readonly name?: string | undefined;
|
|
7
|
+
readonly form?: string | undefined;
|
|
6
8
|
readonly modelValue?: DateRange | null;
|
|
7
9
|
readonly defaultValue?: DateRange | null;
|
|
8
10
|
readonly policies?: DateRangeFieldPolicies;
|
|
@@ -23,6 +25,14 @@ export interface DateRangeFieldRootSlotProps {
|
|
|
23
25
|
readonly: boolean;
|
|
24
26
|
}
|
|
25
27
|
export declare const DateRangeFieldRoot: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
28
|
+
name: {
|
|
29
|
+
type: PropType<string | undefined>;
|
|
30
|
+
default: undefined;
|
|
31
|
+
};
|
|
32
|
+
form: {
|
|
33
|
+
type: PropType<string | undefined>;
|
|
34
|
+
default: undefined;
|
|
35
|
+
};
|
|
26
36
|
modelValue: {
|
|
27
37
|
type: PropType<DateRange | null>;
|
|
28
38
|
default: undefined;
|
|
@@ -66,6 +76,14 @@ export declare const DateRangeFieldRoot: import("vue").DefineComponent<import("v
|
|
|
66
76
|
}>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
67
77
|
'update:modelValue': (_value: DateRange | null) => boolean;
|
|
68
78
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
79
|
+
name: {
|
|
80
|
+
type: PropType<string | undefined>;
|
|
81
|
+
default: undefined;
|
|
82
|
+
};
|
|
83
|
+
form: {
|
|
84
|
+
type: PropType<string | undefined>;
|
|
85
|
+
default: undefined;
|
|
86
|
+
};
|
|
69
87
|
modelValue: {
|
|
70
88
|
type: PropType<DateRange | null>;
|
|
71
89
|
default: undefined;
|
|
@@ -109,6 +127,8 @@ export declare const DateRangeFieldRoot: import("vue").DefineComponent<import("v
|
|
|
109
127
|
}>> & Readonly<{
|
|
110
128
|
"onUpdate:modelValue"?: (_value: DateRange | null) => any;
|
|
111
129
|
}>, {
|
|
130
|
+
name: string | undefined;
|
|
131
|
+
form: string | undefined;
|
|
112
132
|
modelValue: DateRange | null;
|
|
113
133
|
defaultValue: DateRange | null;
|
|
114
134
|
policies: DateRangeFieldPolicies;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{defineComponent}from'vue';import{createDateRangeField,tryCreateDateRangeFieldState}from'@sectile/dom/temporal/date-range-field';import{setupNativeRangeField,createNativeRangeFieldInput}from'../input/native-range-field.js';const contextKey=Symbol('SectileDateRangeField');const config={name:'DateRangeFieldRoot',scope:'date-range-field',contextKey,reset:true,initial:tryCreateDateRangeFieldState,create:createDateRangeField};export const DateRangeFieldRoot=/* @__PURE__ */defineComponent({name:'SectileDateRangeFieldRoot',inheritAttrs:false,props:{modelValue:{type:Object,default:undefined},defaultValue:{type:Object,default:null},policies:{type:Object,default:undefined},disabled:{type:Boolean,default:false},readonly:{type:Boolean,default:false},required:{type:Boolean,default:false},startLabel:{type:String,default:undefined},endLabel:{type:String,default:undefined},as:{type:[String,Object,Function],default:'div'},asChild:{type:Boolean,default:false}},emits:{'update:modelValue':_value=>true},slots:Object,setup(props,context){return setupNativeRangeField(config,props,context)}});export const DateRangeFieldStartInput=/* @__PURE__ */createNativeRangeFieldInput(contextKey,'date-range-field','YYYY-MM-DD','start','SectileDateRangeFieldStartInput','DateRangeFieldRoot');export const DateRangeFieldEndInput=/* @__PURE__ */createNativeRangeFieldInput(contextKey,'date-range-field','YYYY-MM-DD','end','SectileDateRangeFieldEndInput','DateRangeFieldRoot');
|
|
1
|
+
import{computed,defineComponent}from'vue';import{unwrap}from'@sectile/core/result';import{reformatDateRangeFieldState}from'@sectile/temporal/date-range-field';import{getDateFieldPlaceholder}from'@sectile/dom/temporal/date-field';import{createDateRangeField,tryCreateDateRangeFieldState}from'@sectile/dom/temporal/date-range-field';import{setupNativeRangeField,createNativeRangeFieldInput}from'../input/native-range-field.js';import{useTemporalFormatter}from'./temporal-provider.js';const contextKey=Symbol('SectileDateRangeField');const config={name:'DateRangeFieldRoot',scope:'date-range-field',contextKey,reset:true,initial:tryCreateDateRangeFieldState,create:createDateRangeField,rebase:(state,start,end)=>reformatDateRangeFieldState({...state,start:{...state.start,inputState:start},end:{...state.end,inputState:end}}),usePresentation(){const formatter=useTemporalFormatter();return computed(()=>{if(formatter.value===undefined)return undefined;const format=unwrap(formatter.value.dateFieldFormat());return{placeholder:getDateFieldPlaceholder(format),initial:options=>tryCreateDateRangeFieldState({...options,startFormat:format,endFormat:format}),create:options=>createDateRangeField({...options,format}),rebase:(state,start,end)=>reformatDateRangeFieldState({...state,start:{...state.start,inputState:start},end:{...state.end,inputState:end}},format)}})}};export const DateRangeFieldRoot=/* @__PURE__ */defineComponent({__sectileFormLabelMode:'labelledby',name:'SectileDateRangeFieldRoot',inheritAttrs:false,props:{name:{type:String,default:undefined},form:{type:String,default:undefined},modelValue:{type:Object,default:undefined},defaultValue:{type:Object,default:null},policies:{type:Object,default:undefined},disabled:{type:Boolean,default:false},readonly:{type:Boolean,default:false},required:{type:Boolean,default:false},startLabel:{type:String,default:undefined},endLabel:{type:String,default:undefined},as:{type:[String,Object,Function],default:'div'},asChild:{type:Boolean,default:false}},emits:{'update:modelValue':_value=>true},slots:Object,setup(props,context){return setupNativeRangeField(config,props,context)}});export const DateRangeFieldStartInput=/* @__PURE__ */createNativeRangeFieldInput(contextKey,'date-range-field','YYYY-MM-DD','start','SectileDateRangeFieldStartInput','DateRangeFieldRoot');export const DateRangeFieldEndInput=/* @__PURE__ */createNativeRangeFieldInput(contextKey,'date-range-field','YYYY-MM-DD','end','SectileDateRangeFieldEndInput','DateRangeFieldRoot');
|
|
2
2
|
//# sourceMappingURL=date-range-field.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-range-field.js","names":["defineComponent","createDateRangeField","tryCreateDateRangeFieldState","setupNativeRangeField","createNativeRangeFieldInput","contextKey","Symbol","config","name","scope","reset","initial","create","DateRangeFieldRoot","
|
|
1
|
+
{"version":3,"file":"date-range-field.js","names":["computed","defineComponent","unwrap","reformatDateRangeFieldState","getDateFieldPlaceholder","createDateRangeField","tryCreateDateRangeFieldState","setupNativeRangeField","createNativeRangeFieldInput","useTemporalFormatter","contextKey","Symbol","config","name","scope","reset","initial","create","rebase","state","start","end","inputState","usePresentation","formatter","value","undefined","format","dateFieldFormat","placeholder","options","startFormat","endFormat","DateRangeFieldRoot","__sectileFormLabelMode","inheritAttrs","props","type","String","default","form","modelValue","Object","defaultValue","policies","disabled","Boolean","readonly","required","startLabel","endLabel","as","Function","asChild","emits","_value","slots","setup","context","DateRangeFieldStartInput","DateRangeFieldEndInput"],"sources":["../../src/temporal/date-range-field.ts"],"mappings":"OAASA,SAAUC,oBAAuE,aACjFC,WAAc,8BACdC,gCAAmC,4CACnCC,4BAA+B,0CAC/BC,qBAAsBC,iCAA2F,gDAEjHC,sBAAuBC,gCAA8F,wCACrHC,yBAA4B,yBA2BrC,MAAMC,WAAaC,OAAO,yBAE1B,MAAMC,OAAyF,CAC7FC,KAAM,qBAAsBC,MAAO,mBAAoBJ,WACvDK,MAAO,KACPC,QAASV,6BAA8BW,OAAQZ,qBAC/Ca,OAAQ,CAACC,MAAOC,MAAOC,MAAQlB,4BAA4B,IAAKgB,MAAOC,MAAO,IAAKD,MAAMC,MAAOE,WAAYF,OAASC,IAAK,IAAKF,MAAME,IAAKC,WAAYD,OACtJ,eAAAE,GACE,MAAMC,UAAYf,uBAClB,OAAOT,SAAsG,KAC3G,GAAIwB,UAAUC,QAAUC,UAAW,OAAOA,UAC1C,MAAMC,OAASzB,OAAOsB,UAAUC,MAAMG,mBACtC,MAAO,CAAEC,YAAazB,wBAAwBuB,QAASX,QAASc,SAAWxB,6BAA6B,IAAKwB,QAASC,YAAaJ,OAAQK,UAAWL,SACpJV,OAAQa,SAAWzB,qBAAqB,IAAKyB,QAASH,SACtDT,OAAQ,CAACC,MAAOC,MAAOC,MAAQlB,4BAA4B,IAAKgB,MAAOC,MAAO,IAAKD,MAAMC,MAAOE,WAAYF,OAASC,IAAK,IAAKF,MAAME,IAAKC,WAAYD,MAASM,UAErK,UAGK,MAAMM,kCAAqChC,gBAAgB,CAChEiC,uBAAwB,aACxBrB,KAAM,4BACNsB,aAAc,MACdC,MAAO,CACLvB,KAAM,CAAEwB,KAAMC,OAAwCC,QAASb,WAAac,KAAM,CAAEH,KAAMC,OAAwCC,QAASb,WAC3Ie,WAAY,CAAEJ,KAAMK,OAAsCH,QAASb,WACnEiB,aAAc,CAAEN,KAAMK,OAAsCH,QAAS,MACrEK,SAAU,CAAEP,KAAMK,OAA4CH,QAASb,WACvEmB,SAAU,CAAER,KAAMS,QAASP,QAAS,OACpCQ,SAAU,CAAEV,KAAMS,QAASP,QAAS,OACpCS,SAAU,CAAEX,KAAMS,QAASP,QAAS,OACpCU,WAAY,CAAEZ,KAAMC,OAAQC,QAASb,WACrCwB,SAAU,CAAEb,KAAMC,OAAQC,QAASb,WACnCyB,GAAI,CAAEd,KAAM,CAACC,OAAQI,OAAQU,UAAoCb,QAAS,OAC1Ec,QAAS,CAAEhB,KAAMS,QAASP,QAAS,QAErCe,MAAO,CAAE,oBAAsBC,QAAsC,MACrEC,MAAOd,OACP,KAAAe,CAAMrB,MAAOsB,SAAW,OAAOnD,sBAAsBK,OAAQwB,MAAOsB,QAAU,WAKzE,MAAMC,wCAA2CnD,4BAA4BE,WAAY,mBAAoB,aAAc,QAAS,kCAAmC,6BACvK,MAAMkD,sCAAyCpD,4BAA4BE,WAAY,mBAAoB,aAAc,MAAO,gCAAiC","ignoreList":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DateRangePickerOptions } from '@sectile/dom/temporal/date-range-picker';
|
|
2
2
|
import type { DateRange, DateValue } from '@sectile/dom/temporal/date-field';
|
|
3
3
|
import { type PickerRootPartComponent, type PickerCellSlotProps, type PickerMonthCellSlotProps, type PickerPartProps, type PickerPortalProps, type PickerPositionProps, type PickerRootSlotProps } from './picker.js';
|
|
4
|
+
import type { PickerContentPartComponent, PickerContentSlotProps } from './picker.js';
|
|
4
5
|
export interface DateRangePickerRootProps extends PickerPartProps, PickerPositionProps {
|
|
5
6
|
readonly modelValue?: DateRange | null;
|
|
6
7
|
readonly defaultValue?: DateRange | null;
|
|
@@ -18,6 +19,7 @@ export interface DateRangePickerRootProps extends PickerPartProps, PickerPositio
|
|
|
18
19
|
}
|
|
19
20
|
export declare const DateRangePickerRoot: import("./picker.js").PickerRootComponent<"date-range">;
|
|
20
21
|
export type DateRangePickerRootSlotProps = PickerRootSlotProps<DateRange | null>;
|
|
22
|
+
export type DateRangePickerContentSlotProps = PickerContentSlotProps<DateRange | null>;
|
|
21
23
|
export type DateRangePickerValueChangeHandler = NonNullable<InstanceType<typeof DateRangePickerRoot>['$props']['onUpdate:modelValue']>;
|
|
22
24
|
export type DateRangePickerOpenChangeHandler = NonNullable<InstanceType<typeof DateRangePickerRoot>['$props']['onUpdate:open']>;
|
|
23
25
|
export type DateRangePickerHighlightedValueChangeHandler = NonNullable<InstanceType<typeof DateRangePickerRoot>['$props']['onUpdate:highlightedValue']>;
|
|
@@ -54,7 +56,7 @@ export declare const DateRangePickerPortal: import("vue").DefineComponent<import
|
|
|
54
56
|
disabled: boolean;
|
|
55
57
|
defer: boolean;
|
|
56
58
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
57
|
-
export declare const DateRangePickerContent:
|
|
59
|
+
export declare const DateRangePickerContent: PickerContentPartComponent<'date-range'>;
|
|
58
60
|
export declare const DateRangePickerGrid: PickerRootPartComponent<'date-range'>;
|
|
59
61
|
export declare const DateRangePickerCell: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
60
62
|
value: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-range-picker.js","names":["PickerAnchor","PickerCell","PickerContent","PickerGrid","PickerMonthCell","PickerPortal","PickerTrigger","createPickerInput","createPickerMove","createPickerViewTrigger","createPickerRoot","dateRangePickerCapability","DateRangePickerRoot","DateRangePickerTrigger","DateRangePickerAnchor","DateRangePickerPortal","DateRangePickerContent","DateRangePickerGrid","DateRangePickerCell","DateRangePickerMonthCell","DateRangePickerStartInput","DateRangePickerEndInput","DateRangePickerPreviousWeek","DateRangePickerNextWeek","DateRangePickerPreviousMonth","DateRangePickerNextMonth","DateRangePickerPreviousYear","DateRangePickerNextYear","DateRangePickerWeekViewTrigger","DateRangePickerMonthViewTrigger","DateRangePickerYearViewTrigger"],"sources":["../../src/temporal/date-range-picker.ts"],"mappings":"OAGEA,aAAcC,WAAYC,cAAeC,WAAYC,gBAAiBC,aAAcC,cAAeC,kBAAmBC,iBAAkBC,wBACxIC,qBACK,qBACEC,8BAAiC,
|
|
1
|
+
{"version":3,"file":"date-range-picker.js","names":["PickerAnchor","PickerCell","PickerContent","PickerGrid","PickerMonthCell","PickerPortal","PickerTrigger","createPickerInput","createPickerMove","createPickerViewTrigger","createPickerRoot","dateRangePickerCapability","DateRangePickerRoot","DateRangePickerTrigger","DateRangePickerAnchor","DateRangePickerPortal","DateRangePickerContent","DateRangePickerGrid","DateRangePickerCell","DateRangePickerMonthCell","DateRangePickerStartInput","DateRangePickerEndInput","DateRangePickerPreviousWeek","DateRangePickerNextWeek","DateRangePickerPreviousMonth","DateRangePickerNextMonth","DateRangePickerPreviousYear","DateRangePickerNextYear","DateRangePickerWeekViewTrigger","DateRangePickerMonthViewTrigger","DateRangePickerYearViewTrigger"],"sources":["../../src/temporal/date-range-picker.ts"],"mappings":"OAGEA,aAAcC,WAAYC,cAAeC,WAAYC,gBAAiBC,aAAcC,cAAeC,kBAAmBC,iBAAkBC,wBACxIC,qBACK,qBACEC,8BAAiC,6CAUnC,MAAMC,mCAAsCF,iBAAiBC,0BAA2B,qCAMxF,MAAME,uBAAyBP,qBAC/B,MAAMQ,sBAAwBd,oBAC9B,MAAMe,sBAAwBV,oBAC9B,MAAMW,uBAAyBd,qBAC/B,MAAMe,oBAAsBd,kBAC5B,MAAMe,oBAAsBjB,kBAC5B,MAAMkB,yBAA2Bf,uBACjC,MAAMgB,yCAA4Cb,kBAAkB,cAAe,2CACnF,MAAMc,uCAA0Cd,kBAAkB,YAAa,yCAC/E,MAAMe,2CAA8Cd,iBAAiB,QAAS,EAAG,6CACjF,MAAMe,uCAA0Cf,iBAAiB,OAAQ,EAAG,yCAC5E,MAAMgB,4CAA+ChB,iBAAiB,SAAU,EAAG,8CACnF,MAAMiB,wCAA2CjB,iBAAiB,QAAS,EAAG,0CAC9E,MAAMkB,2CAA8ClB,iBAAiB,QAAS,EAAG,6CACjF,MAAMmB,uCAA0CnB,iBAAiB,OAAQ,EAAG,yCAC5E,MAAMoB,8CAAiDnB,wBAAwB,OAAQ,gDACvF,MAAMoB,+CAAkDpB,wBAAwB,QAAS,iDACzF,MAAMqB,8CAAiDrB,wBAAwB,OAAQ","ignoreList":[]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TimeFieldPrecision } from '@sectile/temporal/time-field';
|
|
1
2
|
import { type DateTimeFieldOptions } from '@sectile/dom/temporal/date-time-field';
|
|
2
3
|
export type DateTimeValue = NonNullable<DateTimeFieldOptions['value']>;
|
|
3
4
|
export interface DateTimeFieldProps {
|
|
@@ -9,6 +10,8 @@ export interface DateTimeFieldProps {
|
|
|
9
10
|
readonly required?: boolean;
|
|
10
11
|
readonly label?: string;
|
|
11
12
|
readonly native?: boolean;
|
|
13
|
+
/** Custom editing precision; Provider defaults to lossless milliseconds. Native mode retains ISO behavior. */
|
|
14
|
+
readonly precision?: TimeFieldPrecision;
|
|
12
15
|
}
|
|
13
|
-
export declare const DateTimeField: import("vue").DefineComponent<import("../input/native-field.js").NativeFieldPublicProps<import("@sectile/
|
|
16
|
+
export declare const DateTimeField: import("vue").DefineComponent<import("../input/native-field.js").NativeFieldPublicProps<import("@sectile/temporal/date-time-field").DateTimeValue, import("@sectile/temporal/date-time-field").DateTimeFieldPolicies> & Pick<DateTimeFieldProps, "precision">>;
|
|
14
17
|
export type DateTimeFieldValueChangeHandler = (value: DateTimeValue | null) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{}from
|
|
1
|
+
import{}from'vue';import{unwrap}from'@sectile/core/result';import{createDateTimeFieldState,reformatDateTimeFieldState,formatDateTimeFieldValue}from'@sectile/temporal/date-time-field';import{createDateTimeField,formatDateTimeValue,getDateTimeFieldPlaceholder}from'@sectile/dom/temporal/date-time-field';import{createNativeFieldComponent}from'../input/native-field.js';import{useDateTimePresentation}from'./internal/time-presentation.js';function rebase(value,inputState,previousFormat,format){return unwrap(reformatDateTimeFieldState(createDateTimeFieldState(value,inputState,previousFormat),format)).inputState}export const DateTimeField=/* @__PURE__ */createNativeFieldComponent({name:'SectileDateTimeField',scope:'date-time-field',inputMode:'text',nativeInputType:'datetime-local',placeholder:'YYYY-MM-DDTHH:mm',formatValue:formatDateTimeValue,valueType:Object,create:createDateTimeField,presentationProps:{precision:{type:String,default:undefined}},rebase:(value,inputState,previousFormat)=>rebase(value,inputState,previousFormat),usePresentation(props){return useDateTimePresentation(props,format=>({format,inputMode:'text',placeholder:getDateTimeFieldPlaceholder(format),formatValue:value=>formatDateTimeFieldValue(value,format),create:options=>createDateTimeField({...options,format}),rebase:(value,inputState,previousFormat)=>rebase(value,inputState,previousFormat,format)}))}});
|
|
2
2
|
//# sourceMappingURL=date-time-field.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/temporal/date-time-field.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"date-time-field.js","names":["unwrap","createDateTimeFieldState","reformatDateTimeFieldState","formatDateTimeFieldValue","createDateTimeField","formatDateTimeValue","getDateTimeFieldPlaceholder","createNativeFieldComponent","useDateTimePresentation","rebase","value","inputState","previousFormat","format","DateTimeField","name","scope","inputMode","nativeInputType","placeholder","formatValue","valueType","Object","create","presentationProps","precision","type","String","default","undefined","usePresentation","props","options"],"sources":["../../src/temporal/date-time-field.ts"],"mappings":"YAA8B,aACrBA,WAAc,8BAEdC,yBAA0BC,2BAA4BC,6BAA0D,2CAEvHC,oBACAC,oBACAC,gCAEK,+CACEC,+BAAgE,kCAChEC,4BAA+B,kCAkBxC,SAASC,OAAOC,MAA6BC,WAA4DC,eAAiDC,QACxJ,OAAOb,OAAOE,2BAA2BD,yBAAyBS,MAAOC,WAAYC,gBAAiBC,SAASF,UACjH,QAEO,MAAMG,6BAAgCP,2BAA6H,CACxKQ,KAAM,uBACNC,MAAO,kBACPC,UAAW,OACXC,gBAAiB,iBACjBC,YAAa,mBACbC,YAAaf,oBACbgB,UAAWC,OACXC,OAAQnB,oBACRoB,kBAAmB,CAAEC,UAAW,CAAEC,KAAMC,OAAwCC,QAASC,YACzFpB,OAAQ,CAACC,MAAOC,WAAYC,iBAAmBH,OAAOC,MAAOC,WAAYC,gBACzE,eAAAkB,CAAgBC,OACd,OAAOvB,wBAA4GuB,MACjHlB,SAAU,CAAGA,OAAQI,UAAW,OAAQE,YAAab,4BAA4BO,QAC/EO,YAAaV,OAASP,yBAAyBO,MAAOG,QAASU,OAAQS,SAAW5B,oBAAoB,IAAK4B,QAASnB,SACpHJ,OAAQ,CAACC,MAAOC,WAAYC,iBAAmBH,OAAOC,MAAOC,WAAYC,eAAgBC,UAC/F","ignoreList":[]}
|
|
@@ -2,6 +2,7 @@ import type { DateTimePickerOptions } from '@sectile/dom/temporal/date-time-pick
|
|
|
2
2
|
import type { DateValue } from '@sectile/dom/temporal/date-field';
|
|
3
3
|
import type { DateTimeValue } from '@sectile/dom/temporal/date-time-field';
|
|
4
4
|
import { type PickerRootPartComponent, type PickerCellSlotProps, type PickerMonthCellSlotProps, type PickerPartProps, type PickerPortalProps, type PickerPositionProps, type PickerRootSlotProps } from './picker.js';
|
|
5
|
+
import type { PickerContentPartComponent, PickerContentSlotProps } from './picker.js';
|
|
5
6
|
export interface DateTimePickerRootProps extends PickerPartProps, PickerPositionProps {
|
|
6
7
|
readonly modelValue?: DateTimeValue | null;
|
|
7
8
|
readonly defaultValue?: DateTimeValue | null;
|
|
@@ -19,6 +20,7 @@ export interface DateTimePickerRootProps extends PickerPartProps, PickerPosition
|
|
|
19
20
|
}
|
|
20
21
|
export declare const DateTimePickerRoot: import("./picker.js").PickerRootComponent<"date-time">;
|
|
21
22
|
export type DateTimePickerRootSlotProps = PickerRootSlotProps<DateTimeValue | null>;
|
|
23
|
+
export type DateTimePickerContentSlotProps = PickerContentSlotProps<DateTimeValue | null>;
|
|
22
24
|
export type DateTimePickerValueChangeHandler = NonNullable<InstanceType<typeof DateTimePickerRoot>['$props']['onUpdate:modelValue']>;
|
|
23
25
|
export type DateTimePickerOpenChangeHandler = NonNullable<InstanceType<typeof DateTimePickerRoot>['$props']['onUpdate:open']>;
|
|
24
26
|
export type DateTimePickerHighlightedValueChangeHandler = NonNullable<InstanceType<typeof DateTimePickerRoot>['$props']['onUpdate:highlightedValue']>;
|
|
@@ -55,7 +57,7 @@ export declare const DateTimePickerPortal: import("vue").DefineComponent<import(
|
|
|
55
57
|
disabled: boolean;
|
|
56
58
|
defer: boolean;
|
|
57
59
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
58
|
-
export declare const DateTimePickerContent:
|
|
60
|
+
export declare const DateTimePickerContent: PickerContentPartComponent<'date-time'>;
|
|
59
61
|
export declare const DateTimePickerGrid: PickerRootPartComponent<'date-time'>;
|
|
60
62
|
export declare const DateTimePickerCell: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
61
63
|
value: {
|