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