@mekari/pixel3-date-picker 0.1.6-dev.0 → 0.1.6-dev.2

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 (43) hide show
  1. package/dist/calendar-panel.d.mts +1 -0
  2. package/dist/calendar-panel.d.ts +1 -0
  3. package/dist/calendar-panel.mjs +5 -5
  4. package/dist/{chunk-I5U3YP2I.mjs → chunk-K4TP3SYJ.mjs} +3 -3
  5. package/dist/{chunk-P7JOEQIL.mjs → chunk-PJ5NBVPN.mjs} +2 -2
  6. package/dist/chunk-R7OV3NVO.mjs +0 -0
  7. package/dist/components/calendar/index.mjs +1 -1
  8. package/dist/components/calendar/table-date.mjs +1 -1
  9. package/dist/components/calendar/table-month.mjs +1 -1
  10. package/dist/components/calendar/table-year.mjs +1 -1
  11. package/dist/components/parts/index.mjs +3 -3
  12. package/dist/composables/useCalendar.d.mts +1 -0
  13. package/dist/composables/useCalendar.d.ts +1 -0
  14. package/dist/composables/useCalendarRange.d.mts +1 -0
  15. package/dist/composables/useCalendarRange.d.ts +1 -0
  16. package/dist/composables/useTime.d.mts +1 -0
  17. package/dist/composables/useTime.d.ts +1 -0
  18. package/dist/date-picker.d.mts +5 -319
  19. package/dist/date-picker.d.ts +5 -319
  20. package/dist/date-picker.js +2 -2
  21. package/dist/date-picker.mjs +8 -8
  22. package/dist/index.d.mts +320 -4
  23. package/dist/index.d.ts +320 -4
  24. package/dist/index.js +2 -2
  25. package/dist/index.mjs +9 -8
  26. package/dist/metafile-cjs.json +1 -1
  27. package/dist/metafile-esm.json +1 -1
  28. package/dist/modules/date-picker.context.d.mts +1 -0
  29. package/dist/modules/date-picker.context.d.ts +1 -0
  30. package/dist/modules/date-picker.hooks.d.mts +1 -0
  31. package/dist/modules/date-picker.hooks.d.ts +1 -0
  32. package/dist/modules/date-picker.hooks.js +2 -2
  33. package/dist/modules/date-picker.hooks.mjs +1 -1
  34. package/dist/modules/date-picker.props.d.mts +2 -1
  35. package/dist/modules/date-picker.props.d.ts +2 -1
  36. package/dist/modules/date-picker.types.d.mts +3 -0
  37. package/dist/modules/date-picker.types.d.ts +3 -0
  38. package/dist/modules/date-picker.types.js +18 -0
  39. package/dist/modules/date-picker.types.mjs +1 -0
  40. package/dist/time-panel.mjs +3 -3
  41. package/package.json +10 -9
  42. package/dist/{chunk-ARDAXR6E.mjs → chunk-73ITB7M5.mjs} +3 -3
  43. package/dist/{chunk-MO5D3TCF.mjs → chunk-AMVBN624.mjs} +3 -3
@@ -7,6 +7,7 @@ import '@mekari/pixel3-styled-system/css';
7
7
  import '@mekari/pixel3-styled-system/recipes';
8
8
  import './components/parts/month.mjs';
9
9
  import './components/parts/year.mjs';
10
+ import './modules/date-picker.types.mjs';
10
11
 
11
12
  declare const CalendarPanel: vue.DefineComponent<{
12
13
  modelValue: {
@@ -7,6 +7,7 @@ import '@mekari/pixel3-styled-system/css';
7
7
  import '@mekari/pixel3-styled-system/recipes';
8
8
  import './components/parts/month.js';
9
9
  import './components/parts/year.js';
10
+ import './modules/date-picker.types.js';
10
11
 
11
12
  declare const CalendarPanel: vue.DefineComponent<{
12
13
  modelValue: {
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  CalendarPanel,
3
3
  CalendarPanelRange
4
- } from "./chunk-ARDAXR6E.mjs";
5
- import "./chunk-7CLF67SP.mjs";
6
- import "./chunk-IZITNJFI.mjs";
4
+ } from "./chunk-73ITB7M5.mjs";
7
5
  import "./chunk-V6D6W7RO.mjs";
8
6
  import "./chunk-64EO4HV7.mjs";
9
7
  import "./chunk-5MFHZK63.mjs";
10
8
  import "./chunk-O43S64IA.mjs";
11
- import "./chunk-5VRVDIXN.mjs";
9
+ import "./chunk-7CLF67SP.mjs";
10
+ import "./chunk-IZITNJFI.mjs";
12
11
  import "./chunk-MRP3X6QP.mjs";
12
+ import "./chunk-KTYQJMW4.mjs";
13
13
  import "./chunk-EQWT6VDG.mjs";
14
14
  import "./chunk-J5BK7Z2U.mjs";
15
15
  import "./chunk-AGAA7XTC.mjs";
16
16
  import "./chunk-3VROFGJH.mjs";
17
- import "./chunk-KTYQJMW4.mjs";
17
+ import "./chunk-5VRVDIXN.mjs";
18
18
  import "./chunk-OMV7LXBW.mjs";
19
19
  import "./chunk-WK62QUOT.mjs";
20
20
  import "./chunk-E5BRVBZ2.mjs";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  useDatePicker
3
- } from "./chunk-P7JOEQIL.mjs";
3
+ } from "./chunk-PJ5NBVPN.mjs";
4
4
  import {
5
5
  CalendarPanel,
6
6
  CalendarPanelRange
7
- } from "./chunk-ARDAXR6E.mjs";
7
+ } from "./chunk-73ITB7M5.mjs";
8
8
  import {
9
9
  TimePanel
10
- } from "./chunk-MO5D3TCF.mjs";
10
+ } from "./chunk-AMVBN624.mjs";
11
11
  import {
12
12
  datePickerProps
13
13
  } from "./chunk-5VRVDIXN.mjs";
@@ -87,12 +87,12 @@ function useDatePicker(props, emit) {
87
87
  __name(onClosePopover, "onClosePopover");
88
88
  function onBlur() {
89
89
  onClosePopover();
90
- const inputEl = document.getElementById(`${getId}-control`);
90
+ const inputEl = document.getElementById(`${getId}`);
91
91
  inputEl == null ? void 0 : inputEl.blur();
92
92
  }
93
93
  __name(onBlur, "onBlur");
94
94
  function handleForceFocusToInput() {
95
- const inputEl = document.getElementById(`${getId}-control`);
95
+ const inputEl = document.getElementById(`${getId}`);
96
96
  inputEl == null ? void 0 : inputEl.focus();
97
97
  }
98
98
  __name(handleForceFocusToInput, "handleForceFocusToInput");
File without changes
@@ -9,11 +9,11 @@ import {
9
9
  TableYear
10
10
  } from "../../chunk-O43S64IA.mjs";
11
11
  import "../../chunk-MRP3X6QP.mjs";
12
+ import "../../chunk-KTYQJMW4.mjs";
12
13
  import "../../chunk-EQWT6VDG.mjs";
13
14
  import "../../chunk-J5BK7Z2U.mjs";
14
15
  import "../../chunk-AGAA7XTC.mjs";
15
16
  import "../../chunk-3VROFGJH.mjs";
16
- import "../../chunk-KTYQJMW4.mjs";
17
17
  import "../../chunk-E5BRVBZ2.mjs";
18
18
  import "../../chunk-U7O52D6B.mjs";
19
19
  import "../../chunk-QZ7VFGWC.mjs";
@@ -2,11 +2,11 @@ import {
2
2
  TableDate
3
3
  } from "../../chunk-64EO4HV7.mjs";
4
4
  import "../../chunk-MRP3X6QP.mjs";
5
+ import "../../chunk-KTYQJMW4.mjs";
5
6
  import "../../chunk-EQWT6VDG.mjs";
6
7
  import "../../chunk-J5BK7Z2U.mjs";
7
8
  import "../../chunk-AGAA7XTC.mjs";
8
9
  import "../../chunk-3VROFGJH.mjs";
9
- import "../../chunk-KTYQJMW4.mjs";
10
10
  import "../../chunk-E5BRVBZ2.mjs";
11
11
  import "../../chunk-QZ7VFGWC.mjs";
12
12
  export {
@@ -2,11 +2,11 @@ import {
2
2
  TableMonth
3
3
  } from "../../chunk-5MFHZK63.mjs";
4
4
  import "../../chunk-MRP3X6QP.mjs";
5
+ import "../../chunk-KTYQJMW4.mjs";
5
6
  import "../../chunk-EQWT6VDG.mjs";
6
7
  import "../../chunk-J5BK7Z2U.mjs";
7
8
  import "../../chunk-AGAA7XTC.mjs";
8
9
  import "../../chunk-3VROFGJH.mjs";
9
- import "../../chunk-KTYQJMW4.mjs";
10
10
  import "../../chunk-E5BRVBZ2.mjs";
11
11
  import "../../chunk-U7O52D6B.mjs";
12
12
  import "../../chunk-QZ7VFGWC.mjs";
@@ -2,11 +2,11 @@ import {
2
2
  TableYear
3
3
  } from "../../chunk-O43S64IA.mjs";
4
4
  import "../../chunk-MRP3X6QP.mjs";
5
+ import "../../chunk-KTYQJMW4.mjs";
5
6
  import "../../chunk-EQWT6VDG.mjs";
6
7
  import "../../chunk-J5BK7Z2U.mjs";
7
8
  import "../../chunk-AGAA7XTC.mjs";
8
9
  import "../../chunk-3VROFGJH.mjs";
9
- import "../../chunk-KTYQJMW4.mjs";
10
10
  import "../../chunk-E5BRVBZ2.mjs";
11
11
  import "../../chunk-U7O52D6B.mjs";
12
12
  import "../../chunk-QZ7VFGWC.mjs";
@@ -1,4 +1,7 @@
1
1
  import "../../chunk-MRP3X6QP.mjs";
2
+ import {
3
+ TimeItem
4
+ } from "../../chunk-KTYQJMW4.mjs";
2
5
  import {
3
6
  YearItem
4
7
  } from "../../chunk-EQWT6VDG.mjs";
@@ -11,9 +14,6 @@ import {
11
14
  import {
12
15
  Month
13
16
  } from "../../chunk-3VROFGJH.mjs";
14
- import {
15
- TimeItem
16
- } from "../../chunk-KTYQJMW4.mjs";
17
17
  import "../../chunk-QZ7VFGWC.mjs";
18
18
  export {
19
19
  Date,
@@ -8,6 +8,7 @@ import '@mekari/pixel3-styled-system/css';
8
8
  import '@mekari/pixel3-styled-system/recipes';
9
9
  import '../components/parts/month.mjs';
10
10
  import '../components/parts/year.mjs';
11
+ import '../modules/date-picker.types.mjs';
11
12
 
12
13
  declare function useCalendar(date: Date, locale: ComputedRef): {
13
14
  currentDate: vue.Ref<{
@@ -8,6 +8,7 @@ import '@mekari/pixel3-styled-system/css';
8
8
  import '@mekari/pixel3-styled-system/recipes';
9
9
  import '../components/parts/month.js';
10
10
  import '../components/parts/year.js';
11
+ import '../modules/date-picker.types.js';
11
12
 
12
13
  declare function useCalendar(date: Date, locale: ComputedRef): {
13
14
  currentDate: vue.Ref<{
@@ -7,6 +7,7 @@ import '@mekari/pixel3-styled-system/css';
7
7
  import '@mekari/pixel3-styled-system/recipes';
8
8
  import '../components/parts/month.mjs';
9
9
  import '../components/parts/year.mjs';
10
+ import '../modules/date-picker.types.mjs';
10
11
 
11
12
  declare function useCalendarRange(props: CalendarPanelRangeProps): {
12
13
  startDate: vue.Ref<{
@@ -7,6 +7,7 @@ import '@mekari/pixel3-styled-system/css';
7
7
  import '@mekari/pixel3-styled-system/recipes';
8
8
  import '../components/parts/month.js';
9
9
  import '../components/parts/year.js';
10
+ import '../modules/date-picker.types.js';
10
11
 
11
12
  declare function useCalendarRange(props: CalendarPanelRangeProps): {
12
13
  startDate: vue.Ref<{
@@ -7,6 +7,7 @@ import '@mekari/pixel3-styled-system/css';
7
7
  import '@mekari/pixel3-styled-system/recipes';
8
8
  import '../components/parts/month.mjs';
9
9
  import '../components/parts/year.mjs';
10
+ import '../modules/date-picker.types.mjs';
10
11
 
11
12
  type ColumnType = 'hour' | 'minute' | 'second' | 'ampm';
12
13
  type ColumnList = {
@@ -7,6 +7,7 @@ import '@mekari/pixel3-styled-system/css';
7
7
  import '@mekari/pixel3-styled-system/recipes';
8
8
  import '../components/parts/month.js';
9
9
  import '../components/parts/year.js';
10
+ import '../modules/date-picker.types.js';
10
11
 
11
12
  type ColumnType = 'hour' | 'minute' | 'second' | 'ampm';
12
13
  type ColumnList = {
@@ -1,325 +1,11 @@
1
- import * as vue_jsx_runtime from 'vue/jsx-runtime';
2
- import { CalendarPanel } from './modules/date-picker.props.mjs';
3
- import * as vue from 'vue';
1
+ import 'vue/jsx-runtime';
2
+ export { MpDatePicker } from './index.mjs';
3
+ import './modules/date-picker.types.mjs';
4
+ import './modules/date-picker.props.mjs';
5
+ import 'vue';
4
6
  import './components/parts/date.mjs';
5
7
  import '@mekari/pixel3-styled-system/types';
6
8
  import '@mekari/pixel3-styled-system/css';
7
9
  import '@mekari/pixel3-styled-system/recipes';
8
10
  import './components/parts/month.mjs';
9
11
  import './components/parts/year.mjs';
10
-
11
- declare const MpDatePicker: vue.DefineComponent<{
12
- id: {
13
- type: vue.PropType<string>;
14
- };
15
- modelValue: {
16
- type: vue.PropType<string | number | Date | Date[] | string[] | number[]>;
17
- };
18
- type: {
19
- type: vue.PropType<CalendarPanel>;
20
- default: string;
21
- };
22
- valueType: {
23
- type: vue.PropType<"string" | "date" | "timestamp">;
24
- default: string;
25
- };
26
- format: {
27
- type: vue.PropType<string>;
28
- };
29
- rangeSeparator: {
30
- type: vue.PropType<string>;
31
- default: string;
32
- };
33
- placeholder: {
34
- type: vue.PropType<string>;
35
- default: string;
36
- };
37
- errorMessage: {
38
- type: vue.PropType<string>;
39
- default: string;
40
- };
41
- disabledMessage: {
42
- type: vue.PropType<string>;
43
- default: string;
44
- };
45
- lang: {
46
- type: ObjectConstructor;
47
- default: () => void;
48
- };
49
- inputAttr: {
50
- type: ObjectConstructor;
51
- default: () => {};
52
- };
53
- contentAttr: {
54
- type: ObjectConstructor;
55
- default: () => {};
56
- };
57
- isRange: {
58
- type: vue.PropType<boolean>;
59
- default: boolean;
60
- };
61
- isReadOnly: {
62
- type: vue.PropType<boolean>;
63
- default: boolean;
64
- };
65
- isDisabled: {
66
- type: vue.PropType<boolean>;
67
- default: boolean;
68
- };
69
- isClearable: {
70
- type: vue.PropType<boolean>;
71
- default: boolean;
72
- };
73
- isInvalid: {
74
- type: vue.PropType<boolean>;
75
- default: boolean;
76
- };
77
- usePortal: {
78
- type: vue.PropType<boolean>;
79
- default: boolean;
80
- };
81
- isKeepAlive: {
82
- type: vue.PropType<boolean>;
83
- default: boolean;
84
- };
85
- isInline: {
86
- type: vue.PropType<boolean>;
87
- default: boolean;
88
- };
89
- isNotClickable: {
90
- type: vue.PropType<boolean>;
91
- default: boolean;
92
- };
93
- isDisableHeader: {
94
- type: vue.PropType<boolean>;
95
- default: boolean;
96
- };
97
- isShowShortcut: {
98
- type: vue.PropType<boolean>;
99
- default: boolean;
100
- };
101
- disabledDate: {
102
- type: vue.PropType<(date: Date) => boolean>;
103
- default: () => void;
104
- };
105
- disabledMonth: {
106
- type: vue.PropType<(month: number, year: number) => boolean>;
107
- default: () => void;
108
- };
109
- disabledYear: {
110
- type: vue.PropType<(year: number) => boolean>;
111
- default: () => void;
112
- };
113
- defaultDate: {
114
- type: DateConstructor;
115
- default(): Date;
116
- };
117
- isShowHour: {
118
- type: vue.PropType<boolean>;
119
- default: boolean;
120
- };
121
- isShowMinute: {
122
- type: vue.PropType<boolean>;
123
- default: boolean;
124
- };
125
- isShowSecond: {
126
- type: vue.PropType<boolean>;
127
- default: boolean;
128
- };
129
- hourStep: {
130
- type: vue.PropType<number>;
131
- default: number;
132
- };
133
- minuteStep: {
134
- type: vue.PropType<number>;
135
- default: number;
136
- };
137
- secondStep: {
138
- type: vue.PropType<number>;
139
- default: number;
140
- };
141
- isUse12h: {
142
- type: vue.PropType<boolean>;
143
- default: boolean;
144
- };
145
- disabledTime: {
146
- type: FunctionConstructor;
147
- default: () => boolean;
148
- };
149
- }, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("update:modelValue" | "error")[], "update:modelValue" | "error", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
150
- id: {
151
- type: vue.PropType<string>;
152
- };
153
- modelValue: {
154
- type: vue.PropType<string | number | Date | Date[] | string[] | number[]>;
155
- };
156
- type: {
157
- type: vue.PropType<CalendarPanel>;
158
- default: string;
159
- };
160
- valueType: {
161
- type: vue.PropType<"string" | "date" | "timestamp">;
162
- default: string;
163
- };
164
- format: {
165
- type: vue.PropType<string>;
166
- };
167
- rangeSeparator: {
168
- type: vue.PropType<string>;
169
- default: string;
170
- };
171
- placeholder: {
172
- type: vue.PropType<string>;
173
- default: string;
174
- };
175
- errorMessage: {
176
- type: vue.PropType<string>;
177
- default: string;
178
- };
179
- disabledMessage: {
180
- type: vue.PropType<string>;
181
- default: string;
182
- };
183
- lang: {
184
- type: ObjectConstructor;
185
- default: () => void;
186
- };
187
- inputAttr: {
188
- type: ObjectConstructor;
189
- default: () => {};
190
- };
191
- contentAttr: {
192
- type: ObjectConstructor;
193
- default: () => {};
194
- };
195
- isRange: {
196
- type: vue.PropType<boolean>;
197
- default: boolean;
198
- };
199
- isReadOnly: {
200
- type: vue.PropType<boolean>;
201
- default: boolean;
202
- };
203
- isDisabled: {
204
- type: vue.PropType<boolean>;
205
- default: boolean;
206
- };
207
- isClearable: {
208
- type: vue.PropType<boolean>;
209
- default: boolean;
210
- };
211
- isInvalid: {
212
- type: vue.PropType<boolean>;
213
- default: boolean;
214
- };
215
- usePortal: {
216
- type: vue.PropType<boolean>;
217
- default: boolean;
218
- };
219
- isKeepAlive: {
220
- type: vue.PropType<boolean>;
221
- default: boolean;
222
- };
223
- isInline: {
224
- type: vue.PropType<boolean>;
225
- default: boolean;
226
- };
227
- isNotClickable: {
228
- type: vue.PropType<boolean>;
229
- default: boolean;
230
- };
231
- isDisableHeader: {
232
- type: vue.PropType<boolean>;
233
- default: boolean;
234
- };
235
- isShowShortcut: {
236
- type: vue.PropType<boolean>;
237
- default: boolean;
238
- };
239
- disabledDate: {
240
- type: vue.PropType<(date: Date) => boolean>;
241
- default: () => void;
242
- };
243
- disabledMonth: {
244
- type: vue.PropType<(month: number, year: number) => boolean>;
245
- default: () => void;
246
- };
247
- disabledYear: {
248
- type: vue.PropType<(year: number) => boolean>;
249
- default: () => void;
250
- };
251
- defaultDate: {
252
- type: DateConstructor;
253
- default(): Date;
254
- };
255
- isShowHour: {
256
- type: vue.PropType<boolean>;
257
- default: boolean;
258
- };
259
- isShowMinute: {
260
- type: vue.PropType<boolean>;
261
- default: boolean;
262
- };
263
- isShowSecond: {
264
- type: vue.PropType<boolean>;
265
- default: boolean;
266
- };
267
- hourStep: {
268
- type: vue.PropType<number>;
269
- default: number;
270
- };
271
- minuteStep: {
272
- type: vue.PropType<number>;
273
- default: number;
274
- };
275
- secondStep: {
276
- type: vue.PropType<number>;
277
- default: number;
278
- };
279
- isUse12h: {
280
- type: vue.PropType<boolean>;
281
- default: boolean;
282
- };
283
- disabledTime: {
284
- type: FunctionConstructor;
285
- default: () => boolean;
286
- };
287
- }>> & {
288
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
289
- onError?: ((...args: any[]) => any) | undefined;
290
- }, {
291
- type: CalendarPanel;
292
- valueType: "string" | "date" | "timestamp";
293
- rangeSeparator: string;
294
- placeholder: string;
295
- errorMessage: string;
296
- disabledMessage: string;
297
- lang: Record<string, any>;
298
- inputAttr: Record<string, any>;
299
- contentAttr: Record<string, any>;
300
- isRange: boolean;
301
- isReadOnly: boolean;
302
- isDisabled: boolean;
303
- isClearable: boolean;
304
- isInvalid: boolean;
305
- usePortal: boolean;
306
- isKeepAlive: boolean;
307
- isInline: boolean;
308
- isNotClickable: boolean;
309
- isDisableHeader: boolean;
310
- isShowShortcut: boolean;
311
- disabledDate: (date: Date) => boolean;
312
- disabledMonth: (month: number, year: number) => boolean;
313
- disabledYear: (year: number) => boolean;
314
- defaultDate: Date;
315
- isShowHour: boolean;
316
- isShowMinute: boolean;
317
- isShowSecond: boolean;
318
- hourStep: number;
319
- minuteStep: number;
320
- secondStep: number;
321
- isUse12h: boolean;
322
- disabledTime: Function;
323
- }, {}>;
324
-
325
- export { MpDatePicker };