@mekari/pixel3-date-picker 0.1.16 → 0.1.17-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calendar-panel.js +30 -14
- package/dist/calendar-panel.mjs +3 -3
- package/dist/{chunk-FXURPQON.mjs → chunk-36NAZ7Z3.mjs} +4 -3
- package/dist/{chunk-NUOKAJQW.mjs → chunk-BPYJZ5OJ.mjs} +1 -1
- package/dist/{chunk-DBA3YCBS.mjs → chunk-HBD7MX4E.mjs} +2 -2
- package/dist/{chunk-VEMADQUL.mjs → chunk-S6NR6SWI.mjs} +30 -11
- package/dist/{chunk-3MYU3TVD.mjs → chunk-XS7W5IS6.mjs} +1 -4
- package/dist/components/calendar/index.js +29 -10
- package/dist/components/calendar/index.mjs +1 -1
- package/dist/components/calendar/table-date.js +29 -10
- package/dist/components/calendar/table-date.mjs +1 -1
- package/dist/date-picker.js +31 -14
- package/dist/date-picker.mjs +5 -5
- package/dist/index.d.mts +16 -16
- package/dist/index.d.ts +16 -16
- package/dist/index.js +31 -14
- package/dist/index.mjs +5 -5
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/modules/date-picker.props.js +1 -4
- package/dist/modules/date-picker.props.mjs +1 -1
- package/dist/time-panel.js +1 -4
- package/dist/time-panel.mjs +2 -2
- package/package.json +5 -5
package/dist/calendar-panel.js
CHANGED
|
@@ -305,7 +305,10 @@ var TableDate = (0, import_vue12.defineComponent)({
|
|
|
305
305
|
__name(onSelectDate, "onSelectDate");
|
|
306
306
|
function onSelectToday() {
|
|
307
307
|
const today = /* @__PURE__ */ new Date();
|
|
308
|
-
|
|
308
|
+
const todayStatus = props.getDateStatus(today);
|
|
309
|
+
if (!todayStatus.isDisabled) {
|
|
310
|
+
onSelectDate(today);
|
|
311
|
+
}
|
|
309
312
|
}
|
|
310
313
|
__name(onSelectToday, "onSelectToday");
|
|
311
314
|
function getDateAttrs(date) {
|
|
@@ -332,6 +335,15 @@ var TableDate = (0, import_vue12.defineComponent)({
|
|
|
332
335
|
};
|
|
333
336
|
}
|
|
334
337
|
__name(getDateAttrs, "getDateAttrs");
|
|
338
|
+
function getTodayDisabledStatus() {
|
|
339
|
+
const today = /* @__PURE__ */ new Date();
|
|
340
|
+
const todayStatus = props.getDateStatus(today);
|
|
341
|
+
return {
|
|
342
|
+
isDisabled: todayStatus.isDisabled,
|
|
343
|
+
disabledMessage: todayStatus.isDisabled ? props.disabledMessage : ""
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
__name(getTodayDisabledStatus, "getTodayDisabledStatus");
|
|
335
347
|
return () => {
|
|
336
348
|
return (0, import_vue11.createVNode)("div", null, [(0, import_vue11.createVNode)("div", {
|
|
337
349
|
"data-pixel-parts": "Header",
|
|
@@ -362,15 +374,22 @@ var TableDate = (0, import_vue12.defineComponent)({
|
|
|
362
374
|
"data-row-index": index
|
|
363
375
|
}, [dates.map((date) => (0, import_vue11.createVNode)(Date2, getDateAttrs(date), {
|
|
364
376
|
default: () => [(0, import_vue11.createTextVNode)(" "), date.getDate(), (0, import_vue11.createTextVNode)(" ")]
|
|
365
|
-
}))]))]), props.isShowShortcut && (
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
"
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
377
|
+
}))]))]), props.isShowShortcut && (() => {
|
|
378
|
+
const {
|
|
379
|
+
isDisabled,
|
|
380
|
+
disabledMessage
|
|
381
|
+
} = getTodayDisabledStatus();
|
|
382
|
+
return (0, import_vue11.createVNode)("div", {
|
|
383
|
+
"data-pixel-parts": "Shortcut",
|
|
384
|
+
"class": shortcutLabelWrapper
|
|
385
|
+
}, [(0, import_vue11.withDirectives)((0, import_vue11.createVNode)(import_pixel3_button.MpButton, {
|
|
386
|
+
"variant": "ghost",
|
|
387
|
+
"onClick": onSelectToday,
|
|
388
|
+
"isDisabled": isDisabled
|
|
389
|
+
}, {
|
|
390
|
+
default: () => [props.shortcutLabel]
|
|
391
|
+
}), [[(0, import_vue11.resolveDirective)("tooltip"), isDisabled ? disabledMessage : ""]])]);
|
|
392
|
+
})()]);
|
|
374
393
|
};
|
|
375
394
|
}
|
|
376
395
|
});
|
|
@@ -1113,10 +1132,7 @@ var datePickerProps = {
|
|
|
1113
1132
|
type: Boolean,
|
|
1114
1133
|
default: false
|
|
1115
1134
|
},
|
|
1116
|
-
isShowShortcut:
|
|
1117
|
-
type: Boolean,
|
|
1118
|
-
default: false
|
|
1119
|
-
},
|
|
1135
|
+
isShowShortcut: calendarPanelProps.isShowShortcut,
|
|
1120
1136
|
disabledDate: calendarPanelProps.disabledDate,
|
|
1121
1137
|
disabledMonth: calendarPanelProps.disabledMonth,
|
|
1122
1138
|
disabledYear: calendarPanelProps.disabledYear,
|
package/dist/calendar-panel.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CalendarPanel,
|
|
3
3
|
CalendarPanelRange
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HBD7MX4E.mjs";
|
|
5
5
|
import "./chunk-V6D6W7RO.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-S6NR6SWI.mjs";
|
|
7
7
|
import "./chunk-AWUURDAF.mjs";
|
|
8
8
|
import "./chunk-URMDAKTH.mjs";
|
|
9
9
|
import "./chunk-7CLF67SP.mjs";
|
|
@@ -14,7 +14,7 @@ import "./chunk-4IRDHXCX.mjs";
|
|
|
14
14
|
import "./chunk-QNZUHNKN.mjs";
|
|
15
15
|
import "./chunk-AGAA7XTC.mjs";
|
|
16
16
|
import "./chunk-2Z2S3UVF.mjs";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-XS7W5IS6.mjs";
|
|
18
18
|
import "./chunk-OMV7LXBW.mjs";
|
|
19
19
|
import "./chunk-PQQUCLMC.mjs";
|
|
20
20
|
import "./chunk-E5BRVBZ2.mjs";
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
CalendarPanel,
|
|
6
6
|
CalendarPanelRange
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HBD7MX4E.mjs";
|
|
8
8
|
import {
|
|
9
9
|
TimePanel
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BPYJZ5OJ.mjs";
|
|
11
11
|
import {
|
|
12
12
|
datePickerProps
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XS7W5IS6.mjs";
|
|
14
14
|
import {
|
|
15
15
|
DatePickerProvider
|
|
16
16
|
} from "./chunk-VACMCDOZ.mjs";
|
|
@@ -103,6 +103,7 @@ var MpDatePicker = defineComponent({
|
|
|
103
103
|
const calendarPanelAttrs = {
|
|
104
104
|
type: props.type,
|
|
105
105
|
isInline: props.isInline,
|
|
106
|
+
isShowShortcut: props.isShowShortcut,
|
|
106
107
|
"onUpdate:modelValue": onEmitModelValue,
|
|
107
108
|
disabledDate: props.disabledDate,
|
|
108
109
|
disabledMonth: props.disabledMonth,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TableDate
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-S6NR6SWI.mjs";
|
|
4
4
|
import {
|
|
5
5
|
TableMonth
|
|
6
6
|
} from "./chunk-AWUURDAF.mjs";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
calendarPanelProps,
|
|
15
15
|
calendarPanelRangeProps
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XS7W5IS6.mjs";
|
|
17
17
|
import {
|
|
18
18
|
useCalendar
|
|
19
19
|
} from "./chunk-OMV7LXBW.mjs";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-QZ7VFGWC.mjs";
|
|
13
13
|
|
|
14
14
|
// src/components/calendar/table-date.tsx
|
|
15
|
-
import { createTextVNode as _createTextVNode, createVNode as _createVNode } from "vue";
|
|
15
|
+
import { withDirectives as _withDirectives, resolveDirective as _resolveDirective, createTextVNode as _createTextVNode, createVNode as _createVNode } from "vue";
|
|
16
16
|
import { defineComponent, computed } from "vue";
|
|
17
17
|
import { MpButton } from "@mekari/pixel3-button";
|
|
18
18
|
import { tableDateSlotRecipe } from "@mekari/pixel3-styled-system/recipes";
|
|
@@ -82,7 +82,10 @@ var TableDate = defineComponent({
|
|
|
82
82
|
__name(onSelectDate, "onSelectDate");
|
|
83
83
|
function onSelectToday() {
|
|
84
84
|
const today = /* @__PURE__ */ new Date();
|
|
85
|
-
|
|
85
|
+
const todayStatus = props.getDateStatus(today);
|
|
86
|
+
if (!todayStatus.isDisabled) {
|
|
87
|
+
onSelectDate(today);
|
|
88
|
+
}
|
|
86
89
|
}
|
|
87
90
|
__name(onSelectToday, "onSelectToday");
|
|
88
91
|
function getDateAttrs(date) {
|
|
@@ -109,6 +112,15 @@ var TableDate = defineComponent({
|
|
|
109
112
|
};
|
|
110
113
|
}
|
|
111
114
|
__name(getDateAttrs, "getDateAttrs");
|
|
115
|
+
function getTodayDisabledStatus() {
|
|
116
|
+
const today = /* @__PURE__ */ new Date();
|
|
117
|
+
const todayStatus = props.getDateStatus(today);
|
|
118
|
+
return {
|
|
119
|
+
isDisabled: todayStatus.isDisabled,
|
|
120
|
+
disabledMessage: todayStatus.isDisabled ? props.disabledMessage : ""
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
__name(getTodayDisabledStatus, "getTodayDisabledStatus");
|
|
112
124
|
return () => {
|
|
113
125
|
return _createVNode("div", null, [_createVNode("div", {
|
|
114
126
|
"data-pixel-parts": "Header",
|
|
@@ -139,15 +151,22 @@ var TableDate = defineComponent({
|
|
|
139
151
|
"data-row-index": index
|
|
140
152
|
}, [dates.map((date) => _createVNode(Date2, getDateAttrs(date), {
|
|
141
153
|
default: () => [_createTextVNode(" "), date.getDate(), _createTextVNode(" ")]
|
|
142
|
-
}))]))]), props.isShowShortcut &&
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
"
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
154
|
+
}))]))]), props.isShowShortcut && (() => {
|
|
155
|
+
const {
|
|
156
|
+
isDisabled,
|
|
157
|
+
disabledMessage
|
|
158
|
+
} = getTodayDisabledStatus();
|
|
159
|
+
return _createVNode("div", {
|
|
160
|
+
"data-pixel-parts": "Shortcut",
|
|
161
|
+
"class": shortcutLabelWrapper
|
|
162
|
+
}, [_withDirectives(_createVNode(MpButton, {
|
|
163
|
+
"variant": "ghost",
|
|
164
|
+
"onClick": onSelectToday,
|
|
165
|
+
"isDisabled": isDisabled
|
|
166
|
+
}, {
|
|
167
|
+
default: () => [props.shortcutLabel]
|
|
168
|
+
}), [[_resolveDirective("tooltip"), isDisabled ? disabledMessage : ""]])]);
|
|
169
|
+
})()]);
|
|
151
170
|
};
|
|
152
171
|
}
|
|
153
172
|
});
|
|
@@ -196,10 +196,7 @@ var datePickerProps = {
|
|
|
196
196
|
type: Boolean,
|
|
197
197
|
default: false
|
|
198
198
|
},
|
|
199
|
-
isShowShortcut:
|
|
200
|
-
type: Boolean,
|
|
201
|
-
default: false
|
|
202
|
-
},
|
|
199
|
+
isShowShortcut: calendarPanelProps.isShowShortcut,
|
|
203
200
|
disabledDate: calendarPanelProps.disabledDate,
|
|
204
201
|
disabledMonth: calendarPanelProps.disabledMonth,
|
|
205
202
|
disabledYear: calendarPanelProps.disabledYear,
|
|
@@ -283,7 +283,10 @@ var TableDate = (0, import_vue12.defineComponent)({
|
|
|
283
283
|
__name(onSelectDate, "onSelectDate");
|
|
284
284
|
function onSelectToday() {
|
|
285
285
|
const today = /* @__PURE__ */ new Date();
|
|
286
|
-
|
|
286
|
+
const todayStatus = props.getDateStatus(today);
|
|
287
|
+
if (!todayStatus.isDisabled) {
|
|
288
|
+
onSelectDate(today);
|
|
289
|
+
}
|
|
287
290
|
}
|
|
288
291
|
__name(onSelectToday, "onSelectToday");
|
|
289
292
|
function getDateAttrs(date) {
|
|
@@ -310,6 +313,15 @@ var TableDate = (0, import_vue12.defineComponent)({
|
|
|
310
313
|
};
|
|
311
314
|
}
|
|
312
315
|
__name(getDateAttrs, "getDateAttrs");
|
|
316
|
+
function getTodayDisabledStatus() {
|
|
317
|
+
const today = /* @__PURE__ */ new Date();
|
|
318
|
+
const todayStatus = props.getDateStatus(today);
|
|
319
|
+
return {
|
|
320
|
+
isDisabled: todayStatus.isDisabled,
|
|
321
|
+
disabledMessage: todayStatus.isDisabled ? props.disabledMessage : ""
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
__name(getTodayDisabledStatus, "getTodayDisabledStatus");
|
|
313
325
|
return () => {
|
|
314
326
|
return (0, import_vue11.createVNode)("div", null, [(0, import_vue11.createVNode)("div", {
|
|
315
327
|
"data-pixel-parts": "Header",
|
|
@@ -340,15 +352,22 @@ var TableDate = (0, import_vue12.defineComponent)({
|
|
|
340
352
|
"data-row-index": index
|
|
341
353
|
}, [dates.map((date) => (0, import_vue11.createVNode)(Date2, getDateAttrs(date), {
|
|
342
354
|
default: () => [(0, import_vue11.createTextVNode)(" "), date.getDate(), (0, import_vue11.createTextVNode)(" ")]
|
|
343
|
-
}))]))]), props.isShowShortcut && (
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
"
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
355
|
+
}))]))]), props.isShowShortcut && (() => {
|
|
356
|
+
const {
|
|
357
|
+
isDisabled,
|
|
358
|
+
disabledMessage
|
|
359
|
+
} = getTodayDisabledStatus();
|
|
360
|
+
return (0, import_vue11.createVNode)("div", {
|
|
361
|
+
"data-pixel-parts": "Shortcut",
|
|
362
|
+
"class": shortcutLabelWrapper
|
|
363
|
+
}, [(0, import_vue11.withDirectives)((0, import_vue11.createVNode)(import_pixel3_button.MpButton, {
|
|
364
|
+
"variant": "ghost",
|
|
365
|
+
"onClick": onSelectToday,
|
|
366
|
+
"isDisabled": isDisabled
|
|
367
|
+
}, {
|
|
368
|
+
default: () => [props.shortcutLabel]
|
|
369
|
+
}), [[(0, import_vue11.resolveDirective)("tooltip"), isDisabled ? disabledMessage : ""]])]);
|
|
370
|
+
})()]);
|
|
352
371
|
};
|
|
353
372
|
}
|
|
354
373
|
});
|
|
@@ -279,7 +279,10 @@ var TableDate = (0, import_vue12.defineComponent)({
|
|
|
279
279
|
__name(onSelectDate, "onSelectDate");
|
|
280
280
|
function onSelectToday() {
|
|
281
281
|
const today = /* @__PURE__ */ new Date();
|
|
282
|
-
|
|
282
|
+
const todayStatus = props.getDateStatus(today);
|
|
283
|
+
if (!todayStatus.isDisabled) {
|
|
284
|
+
onSelectDate(today);
|
|
285
|
+
}
|
|
283
286
|
}
|
|
284
287
|
__name(onSelectToday, "onSelectToday");
|
|
285
288
|
function getDateAttrs(date) {
|
|
@@ -306,6 +309,15 @@ var TableDate = (0, import_vue12.defineComponent)({
|
|
|
306
309
|
};
|
|
307
310
|
}
|
|
308
311
|
__name(getDateAttrs, "getDateAttrs");
|
|
312
|
+
function getTodayDisabledStatus() {
|
|
313
|
+
const today = /* @__PURE__ */ new Date();
|
|
314
|
+
const todayStatus = props.getDateStatus(today);
|
|
315
|
+
return {
|
|
316
|
+
isDisabled: todayStatus.isDisabled,
|
|
317
|
+
disabledMessage: todayStatus.isDisabled ? props.disabledMessage : ""
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
__name(getTodayDisabledStatus, "getTodayDisabledStatus");
|
|
309
321
|
return () => {
|
|
310
322
|
return (0, import_vue11.createVNode)("div", null, [(0, import_vue11.createVNode)("div", {
|
|
311
323
|
"data-pixel-parts": "Header",
|
|
@@ -336,15 +348,22 @@ var TableDate = (0, import_vue12.defineComponent)({
|
|
|
336
348
|
"data-row-index": index
|
|
337
349
|
}, [dates.map((date) => (0, import_vue11.createVNode)(Date2, getDateAttrs(date), {
|
|
338
350
|
default: () => [(0, import_vue11.createTextVNode)(" "), date.getDate(), (0, import_vue11.createTextVNode)(" ")]
|
|
339
|
-
}))]))]), props.isShowShortcut && (
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
"
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
351
|
+
}))]))]), props.isShowShortcut && (() => {
|
|
352
|
+
const {
|
|
353
|
+
isDisabled,
|
|
354
|
+
disabledMessage
|
|
355
|
+
} = getTodayDisabledStatus();
|
|
356
|
+
return (0, import_vue11.createVNode)("div", {
|
|
357
|
+
"data-pixel-parts": "Shortcut",
|
|
358
|
+
"class": shortcutLabelWrapper
|
|
359
|
+
}, [(0, import_vue11.withDirectives)((0, import_vue11.createVNode)(import_pixel3_button.MpButton, {
|
|
360
|
+
"variant": "ghost",
|
|
361
|
+
"onClick": onSelectToday,
|
|
362
|
+
"isDisabled": isDisabled
|
|
363
|
+
}, {
|
|
364
|
+
default: () => [props.shortcutLabel]
|
|
365
|
+
}), [[(0, import_vue11.resolveDirective)("tooltip"), isDisabled ? disabledMessage : ""]])]);
|
|
366
|
+
})()]);
|
|
348
367
|
};
|
|
349
368
|
}
|
|
350
369
|
});
|
package/dist/date-picker.js
CHANGED
|
@@ -327,7 +327,10 @@ var TableDate = (0, import_vue12.defineComponent)({
|
|
|
327
327
|
__name(onSelectDate, "onSelectDate");
|
|
328
328
|
function onSelectToday() {
|
|
329
329
|
const today = /* @__PURE__ */ new Date();
|
|
330
|
-
|
|
330
|
+
const todayStatus = props.getDateStatus(today);
|
|
331
|
+
if (!todayStatus.isDisabled) {
|
|
332
|
+
onSelectDate(today);
|
|
333
|
+
}
|
|
331
334
|
}
|
|
332
335
|
__name(onSelectToday, "onSelectToday");
|
|
333
336
|
function getDateAttrs(date) {
|
|
@@ -354,6 +357,15 @@ var TableDate = (0, import_vue12.defineComponent)({
|
|
|
354
357
|
};
|
|
355
358
|
}
|
|
356
359
|
__name(getDateAttrs, "getDateAttrs");
|
|
360
|
+
function getTodayDisabledStatus() {
|
|
361
|
+
const today = /* @__PURE__ */ new Date();
|
|
362
|
+
const todayStatus = props.getDateStatus(today);
|
|
363
|
+
return {
|
|
364
|
+
isDisabled: todayStatus.isDisabled,
|
|
365
|
+
disabledMessage: todayStatus.isDisabled ? props.disabledMessage : ""
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
__name(getTodayDisabledStatus, "getTodayDisabledStatus");
|
|
357
369
|
return () => {
|
|
358
370
|
return (0, import_vue11.createVNode)("div", null, [(0, import_vue11.createVNode)("div", {
|
|
359
371
|
"data-pixel-parts": "Header",
|
|
@@ -384,15 +396,22 @@ var TableDate = (0, import_vue12.defineComponent)({
|
|
|
384
396
|
"data-row-index": index
|
|
385
397
|
}, [dates.map((date) => (0, import_vue11.createVNode)(Date2, getDateAttrs(date), {
|
|
386
398
|
default: () => [(0, import_vue11.createTextVNode)(" "), date.getDate(), (0, import_vue11.createTextVNode)(" ")]
|
|
387
|
-
}))]))]), props.isShowShortcut && (
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
"
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
399
|
+
}))]))]), props.isShowShortcut && (() => {
|
|
400
|
+
const {
|
|
401
|
+
isDisabled,
|
|
402
|
+
disabledMessage
|
|
403
|
+
} = getTodayDisabledStatus();
|
|
404
|
+
return (0, import_vue11.createVNode)("div", {
|
|
405
|
+
"data-pixel-parts": "Shortcut",
|
|
406
|
+
"class": shortcutLabelWrapper
|
|
407
|
+
}, [(0, import_vue11.withDirectives)((0, import_vue11.createVNode)(import_pixel3_button.MpButton, {
|
|
408
|
+
"variant": "ghost",
|
|
409
|
+
"onClick": onSelectToday,
|
|
410
|
+
"isDisabled": isDisabled
|
|
411
|
+
}, {
|
|
412
|
+
default: () => [props.shortcutLabel]
|
|
413
|
+
}), [[(0, import_vue11.resolveDirective)("tooltip"), isDisabled ? disabledMessage : ""]])]);
|
|
414
|
+
})()]);
|
|
396
415
|
};
|
|
397
416
|
}
|
|
398
417
|
});
|
|
@@ -1139,10 +1158,7 @@ var datePickerProps = {
|
|
|
1139
1158
|
type: Boolean,
|
|
1140
1159
|
default: false
|
|
1141
1160
|
},
|
|
1142
|
-
isShowShortcut:
|
|
1143
|
-
type: Boolean,
|
|
1144
|
-
default: false
|
|
1145
|
-
},
|
|
1161
|
+
isShowShortcut: calendarPanelProps.isShowShortcut,
|
|
1146
1162
|
disabledDate: calendarPanelProps.disabledDate,
|
|
1147
1163
|
disabledMonth: calendarPanelProps.disabledMonth,
|
|
1148
1164
|
disabledYear: calendarPanelProps.disabledYear,
|
|
@@ -2230,6 +2246,7 @@ var MpDatePicker = (0, import_vue26.defineComponent)({
|
|
|
2230
2246
|
const calendarPanelAttrs = {
|
|
2231
2247
|
type: props.type,
|
|
2232
2248
|
isInline: props.isInline,
|
|
2249
|
+
isShowShortcut: props.isShowShortcut,
|
|
2233
2250
|
"onUpdate:modelValue": onEmitModelValue,
|
|
2234
2251
|
disabledDate: props.disabledDate,
|
|
2235
2252
|
disabledMonth: props.disabledMonth,
|
package/dist/date-picker.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MpDatePicker
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-36NAZ7Z3.mjs";
|
|
4
4
|
import "./chunk-PJ5NBVPN.mjs";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-HBD7MX4E.mjs";
|
|
6
6
|
import "./chunk-V6D6W7RO.mjs";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-S6NR6SWI.mjs";
|
|
8
8
|
import "./chunk-AWUURDAF.mjs";
|
|
9
9
|
import "./chunk-URMDAKTH.mjs";
|
|
10
10
|
import "./chunk-7CLF67SP.mjs";
|
|
11
11
|
import "./chunk-IZITNJFI.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-BPYJZ5OJ.mjs";
|
|
13
13
|
import "./chunk-OYJNIILC.mjs";
|
|
14
14
|
import "./chunk-MRP3X6QP.mjs";
|
|
15
15
|
import "./chunk-TA57NJ6O.mjs";
|
|
@@ -17,7 +17,7 @@ import "./chunk-4IRDHXCX.mjs";
|
|
|
17
17
|
import "./chunk-QNZUHNKN.mjs";
|
|
18
18
|
import "./chunk-AGAA7XTC.mjs";
|
|
19
19
|
import "./chunk-2Z2S3UVF.mjs";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-XS7W5IS6.mjs";
|
|
21
21
|
import "./chunk-OMV7LXBW.mjs";
|
|
22
22
|
import "./chunk-PQQUCLMC.mjs";
|
|
23
23
|
import "./chunk-IRNTTSB7.mjs";
|
package/dist/index.d.mts
CHANGED
|
@@ -15,7 +15,7 @@ declare const MpDatePicker: vue.DefineComponent<{
|
|
|
15
15
|
type: vue.PropType<string>;
|
|
16
16
|
};
|
|
17
17
|
modelValue: {
|
|
18
|
-
type: vue.PropType<string | number |
|
|
18
|
+
type: vue.PropType<string | number | Date | Date[] | string[] | number[]>;
|
|
19
19
|
};
|
|
20
20
|
type: {
|
|
21
21
|
type: vue.PropType<CalendarPanel>;
|
|
@@ -152,12 +152,12 @@ declare const MpDatePicker: vue.DefineComponent<{
|
|
|
152
152
|
type: FunctionConstructor;
|
|
153
153
|
default: () => boolean;
|
|
154
154
|
};
|
|
155
|
-
}, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("
|
|
155
|
+
}, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("update:modelValue" | "error")[], "update:modelValue" | "error", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
156
156
|
id: {
|
|
157
157
|
type: vue.PropType<string>;
|
|
158
158
|
};
|
|
159
159
|
modelValue: {
|
|
160
|
-
type: vue.PropType<string | number |
|
|
160
|
+
type: vue.PropType<string | number | Date | Date[] | string[] | number[]>;
|
|
161
161
|
};
|
|
162
162
|
type: {
|
|
163
163
|
type: vue.PropType<CalendarPanel>;
|
|
@@ -295,32 +295,32 @@ declare const MpDatePicker: vue.DefineComponent<{
|
|
|
295
295
|
default: () => boolean;
|
|
296
296
|
};
|
|
297
297
|
}>> & {
|
|
298
|
-
onError?: ((...args: any[]) => any) | undefined;
|
|
299
298
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
299
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
300
300
|
}, {
|
|
301
301
|
type: CalendarPanel;
|
|
302
|
+
valueType: DatePickerValueType;
|
|
303
|
+
rangeSeparator: string;
|
|
302
304
|
placeholder: string;
|
|
305
|
+
errorMessage: string;
|
|
306
|
+
disabledMessage: string;
|
|
307
|
+
lang: Record<string, any>;
|
|
308
|
+
inputAttr: Record<string, any>;
|
|
309
|
+
contentAttr: Record<string, any>;
|
|
310
|
+
isRange: boolean;
|
|
303
311
|
isReadOnly: boolean;
|
|
304
312
|
isDisabled: boolean;
|
|
305
|
-
isInvalid: boolean;
|
|
306
313
|
isClearable: boolean;
|
|
307
|
-
|
|
314
|
+
isInvalid: boolean;
|
|
308
315
|
usePortal: boolean;
|
|
309
316
|
isKeepAlive: boolean;
|
|
310
|
-
disabledMessage: string;
|
|
311
|
-
isShowShortcut: boolean;
|
|
312
|
-
isRange: boolean;
|
|
313
317
|
isInline: boolean;
|
|
318
|
+
isNotClickable: boolean;
|
|
319
|
+
isDisableHeader: boolean;
|
|
320
|
+
isShowShortcut: boolean;
|
|
314
321
|
disabledDate: (date: Date) => boolean;
|
|
315
322
|
disabledMonth: (month: number, year: number) => boolean;
|
|
316
323
|
disabledYear: (year: number) => boolean;
|
|
317
|
-
valueType: DatePickerValueType;
|
|
318
|
-
rangeSeparator: string;
|
|
319
|
-
lang: Record<string, any>;
|
|
320
|
-
inputAttr: Record<string, any>;
|
|
321
|
-
contentAttr: Record<string, any>;
|
|
322
|
-
isNotClickable: boolean;
|
|
323
|
-
isDisableHeader: boolean;
|
|
324
324
|
inputVariant: _mekari_pixel3_input.InputVariant;
|
|
325
325
|
defaultDate: Date;
|
|
326
326
|
isShowHour: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ declare const MpDatePicker: vue.DefineComponent<{
|
|
|
15
15
|
type: vue.PropType<string>;
|
|
16
16
|
};
|
|
17
17
|
modelValue: {
|
|
18
|
-
type: vue.PropType<string | number |
|
|
18
|
+
type: vue.PropType<string | number | Date | Date[] | string[] | number[]>;
|
|
19
19
|
};
|
|
20
20
|
type: {
|
|
21
21
|
type: vue.PropType<CalendarPanel>;
|
|
@@ -152,12 +152,12 @@ declare const MpDatePicker: vue.DefineComponent<{
|
|
|
152
152
|
type: FunctionConstructor;
|
|
153
153
|
default: () => boolean;
|
|
154
154
|
};
|
|
155
|
-
}, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("
|
|
155
|
+
}, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("update:modelValue" | "error")[], "update:modelValue" | "error", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
156
156
|
id: {
|
|
157
157
|
type: vue.PropType<string>;
|
|
158
158
|
};
|
|
159
159
|
modelValue: {
|
|
160
|
-
type: vue.PropType<string | number |
|
|
160
|
+
type: vue.PropType<string | number | Date | Date[] | string[] | number[]>;
|
|
161
161
|
};
|
|
162
162
|
type: {
|
|
163
163
|
type: vue.PropType<CalendarPanel>;
|
|
@@ -295,32 +295,32 @@ declare const MpDatePicker: vue.DefineComponent<{
|
|
|
295
295
|
default: () => boolean;
|
|
296
296
|
};
|
|
297
297
|
}>> & {
|
|
298
|
-
onError?: ((...args: any[]) => any) | undefined;
|
|
299
298
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
299
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
300
300
|
}, {
|
|
301
301
|
type: CalendarPanel;
|
|
302
|
+
valueType: DatePickerValueType;
|
|
303
|
+
rangeSeparator: string;
|
|
302
304
|
placeholder: string;
|
|
305
|
+
errorMessage: string;
|
|
306
|
+
disabledMessage: string;
|
|
307
|
+
lang: Record<string, any>;
|
|
308
|
+
inputAttr: Record<string, any>;
|
|
309
|
+
contentAttr: Record<string, any>;
|
|
310
|
+
isRange: boolean;
|
|
303
311
|
isReadOnly: boolean;
|
|
304
312
|
isDisabled: boolean;
|
|
305
|
-
isInvalid: boolean;
|
|
306
313
|
isClearable: boolean;
|
|
307
|
-
|
|
314
|
+
isInvalid: boolean;
|
|
308
315
|
usePortal: boolean;
|
|
309
316
|
isKeepAlive: boolean;
|
|
310
|
-
disabledMessage: string;
|
|
311
|
-
isShowShortcut: boolean;
|
|
312
|
-
isRange: boolean;
|
|
313
317
|
isInline: boolean;
|
|
318
|
+
isNotClickable: boolean;
|
|
319
|
+
isDisableHeader: boolean;
|
|
320
|
+
isShowShortcut: boolean;
|
|
314
321
|
disabledDate: (date: Date) => boolean;
|
|
315
322
|
disabledMonth: (month: number, year: number) => boolean;
|
|
316
323
|
disabledYear: (year: number) => boolean;
|
|
317
|
-
valueType: DatePickerValueType;
|
|
318
|
-
rangeSeparator: string;
|
|
319
|
-
lang: Record<string, any>;
|
|
320
|
-
inputAttr: Record<string, any>;
|
|
321
|
-
contentAttr: Record<string, any>;
|
|
322
|
-
isNotClickable: boolean;
|
|
323
|
-
isDisableHeader: boolean;
|
|
324
324
|
inputVariant: _mekari_pixel3_input.InputVariant;
|
|
325
325
|
defaultDate: Date;
|
|
326
326
|
isShowHour: boolean;
|