@mekari/pixel3-date-picker 0.0.1-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.d.mts +231 -0
- package/dist/calendar-panel.d.ts +231 -0
- package/dist/calendar-panel.js +1498 -0
- package/dist/calendar-panel.mjs +25 -0
- package/dist/chunk-26Y3AVJW.mjs +115 -0
- package/dist/chunk-3VROFGJH.mjs +34 -0
- package/dist/chunk-3YYRUEIF.mjs +257 -0
- package/dist/chunk-5PISTT2K.mjs +131 -0
- package/dist/chunk-AGAA7XTC.mjs +20 -0
- package/dist/chunk-EJCSF5VR.mjs +492 -0
- package/dist/chunk-EQWT6VDG.mjs +34 -0
- package/dist/chunk-FTR7OMCT.mjs +0 -0
- package/dist/chunk-HJ4V3PM6.mjs +125 -0
- package/dist/chunk-J5BK7Z2U.mjs +46 -0
- package/dist/chunk-JZ2KFYWF.mjs +127 -0
- package/dist/chunk-LVCRFE25.mjs +153 -0
- package/dist/chunk-NIUQXHGQ.mjs +56 -0
- package/dist/chunk-NVULZQVI.mjs +119 -0
- package/dist/chunk-OY5PVQH5.mjs +31 -0
- package/dist/chunk-Q3Z5ZITX.mjs +155 -0
- package/dist/chunk-QZ7VFGWC.mjs +6 -0
- package/dist/chunk-V36XV4LV.mjs +129 -0
- package/dist/chunk-V6D6W7RO.mjs +0 -0
- package/dist/chunk-VACMCDOZ.mjs +8 -0
- package/dist/components/calendar/index.d.mts +11 -0
- package/dist/components/calendar/index.d.ts +11 -0
- package/dist/components/calendar/index.js +548 -0
- package/dist/components/calendar/index.mjs +23 -0
- package/dist/components/calendar/table-date.d.mts +97 -0
- package/dist/components/calendar/table-date.d.ts +97 -0
- package/dist/components/calendar/table-date.js +305 -0
- package/dist/components/calendar/table-date.mjs +13 -0
- package/dist/components/calendar/table-month.d.mts +90 -0
- package/dist/components/calendar/table-month.d.ts +90 -0
- package/dist/components/calendar/table-month.js +294 -0
- package/dist/components/calendar/table-month.mjs +14 -0
- package/dist/components/calendar/table-year.d.mts +71 -0
- package/dist/components/calendar/table-year.d.ts +71 -0
- package/dist/components/calendar/table-year.js +288 -0
- package/dist/components/calendar/table-year.mjs +14 -0
- package/dist/components/parts/date.d.mts +38 -0
- package/dist/components/parts/date.d.ts +38 -0
- package/dist/components/parts/date.js +70 -0
- package/dist/components/parts/date.mjs +7 -0
- package/dist/components/parts/day.d.mts +6 -0
- package/dist/components/parts/day.d.ts +6 -0
- package/dist/components/parts/day.js +44 -0
- package/dist/components/parts/day.mjs +7 -0
- package/dist/components/parts/index.d.mts +9 -0
- package/dist/components/parts/index.d.ts +9 -0
- package/dist/components/parts/index.js +157 -0
- package/dist/components/parts/index.mjs +20 -0
- package/dist/components/parts/month.d.mts +29 -0
- package/dist/components/parts/month.d.ts +29 -0
- package/dist/components/parts/month.js +58 -0
- package/dist/components/parts/month.mjs +7 -0
- package/dist/components/parts/year.d.mts +29 -0
- package/dist/components/parts/year.d.ts +29 -0
- package/dist/components/parts/year.js +58 -0
- package/dist/components/parts/year.mjs +7 -0
- package/dist/composables/useCalendar.d.mts +90 -0
- package/dist/composables/useCalendar.d.ts +90 -0
- package/dist/composables/useCalendar.js +184 -0
- package/dist/composables/useCalendar.mjs +8 -0
- package/dist/composables/useCalendarRange.d.mts +277 -0
- package/dist/composables/useCalendarRange.d.ts +277 -0
- package/dist/composables/useCalendarRange.js +160 -0
- package/dist/composables/useCalendarRange.mjs +8 -0
- package/dist/date-picker.d.mts +237 -0
- package/dist/date-picker.d.ts +237 -0
- package/dist/date-picker.js +1851 -0
- package/dist/date-picker.mjs +25 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1853 -0
- package/dist/index.mjs +25 -0
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -0
- package/dist/modules/date-picker.context.d.mts +20 -0
- package/dist/modules/date-picker.context.d.ts +20 -0
- package/dist/modules/date-picker.context.js +33 -0
- package/dist/modules/date-picker.context.mjs +9 -0
- package/dist/modules/date-picker.hooks.d.mts +53 -0
- package/dist/modules/date-picker.hooks.d.ts +53 -0
- package/dist/modules/date-picker.hooks.js +337 -0
- package/dist/modules/date-picker.hooks.mjs +10 -0
- package/dist/modules/date-picker.locales.d.mts +27 -0
- package/dist/modules/date-picker.locales.d.ts +27 -0
- package/dist/modules/date-picker.locales.js +84 -0
- package/dist/modules/date-picker.locales.mjs +8 -0
- package/dist/modules/date-picker.props.d.mts +217 -0
- package/dist/modules/date-picker.props.d.ts +217 -0
- package/dist/modules/date-picker.props.js +181 -0
- package/dist/modules/date-picker.props.mjs +11 -0
- package/dist/utils/base.d.mts +20 -0
- package/dist/utils/base.d.ts +20 -0
- package/dist/utils/base.js +80 -0
- package/dist/utils/base.mjs +13 -0
- package/dist/utils/date.d.mts +19 -0
- package/dist/utils/date.d.ts +19 -0
- package/dist/utils/date.js +147 -0
- package/dist/utils/date.mjs +29 -0
- package/package.json +49 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
+
import { DateVariants } from '../components/parts/date.mjs';
|
|
3
|
+
import { MonthVariants } from '../components/parts/month.mjs';
|
|
4
|
+
import { YearVariants } from '../components/parts/year.mjs';
|
|
5
|
+
import 'vue/jsx-runtime';
|
|
6
|
+
import '@mekari/pixel3-styled-system/types';
|
|
7
|
+
import '@mekari/pixel3-styled-system/css';
|
|
8
|
+
import '@mekari/pixel3-styled-system/recipes';
|
|
9
|
+
|
|
10
|
+
declare const calendarPanelProps: {
|
|
11
|
+
modelValue: {
|
|
12
|
+
type: PropType<Date>;
|
|
13
|
+
};
|
|
14
|
+
defaultValue: {
|
|
15
|
+
type: PropType<Date>;
|
|
16
|
+
};
|
|
17
|
+
type: {
|
|
18
|
+
type: PropType<"date" | "month" | "year" | "week" | "biweek">;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
calendar: {
|
|
22
|
+
type: PropType<Date>;
|
|
23
|
+
};
|
|
24
|
+
isRange: {
|
|
25
|
+
type: PropType<boolean>;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
isShowShortcut: {
|
|
29
|
+
type: PropType<boolean>;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
disabledDate: {
|
|
33
|
+
type: PropType<(date: Date) => boolean>;
|
|
34
|
+
default: () => void;
|
|
35
|
+
};
|
|
36
|
+
disabledMonth: {
|
|
37
|
+
type: PropType<(month: number, year: number) => boolean>;
|
|
38
|
+
default: () => void;
|
|
39
|
+
};
|
|
40
|
+
disabledYear: {
|
|
41
|
+
type: PropType<(year: number) => boolean>;
|
|
42
|
+
default: () => void;
|
|
43
|
+
};
|
|
44
|
+
getDateStatus: {
|
|
45
|
+
type: PropType<(date: Date) => DateVariants['status']>;
|
|
46
|
+
default: undefined;
|
|
47
|
+
};
|
|
48
|
+
getMonthStatus: {
|
|
49
|
+
type: PropType<(month: number, year: number) => MonthVariants['status']>;
|
|
50
|
+
default: undefined;
|
|
51
|
+
};
|
|
52
|
+
getYearStatus: {
|
|
53
|
+
type: PropType<(year: number) => YearVariants['status']>;
|
|
54
|
+
default: undefined;
|
|
55
|
+
};
|
|
56
|
+
isHideNotThisMonthDate: {
|
|
57
|
+
type: PropType<boolean>;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
declare const calendarPanelRangeProps: {
|
|
61
|
+
modelValue: {
|
|
62
|
+
type: PropType<Date[]>;
|
|
63
|
+
};
|
|
64
|
+
defaultValue: {
|
|
65
|
+
type: PropType<Date>;
|
|
66
|
+
};
|
|
67
|
+
type: {
|
|
68
|
+
type: PropType<"date" | "month" | "year" | "week" | "biweek">;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
calendar: {
|
|
72
|
+
type: PropType<Date>;
|
|
73
|
+
};
|
|
74
|
+
isRange: {
|
|
75
|
+
type: PropType<boolean>;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
isShowShortcut: {
|
|
79
|
+
type: PropType<boolean>;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
disabledDate: {
|
|
83
|
+
type: PropType<(date: Date) => boolean>;
|
|
84
|
+
default: () => void;
|
|
85
|
+
};
|
|
86
|
+
disabledMonth: {
|
|
87
|
+
type: PropType<(month: number, year: number) => boolean>;
|
|
88
|
+
default: () => void;
|
|
89
|
+
};
|
|
90
|
+
disabledYear: {
|
|
91
|
+
type: PropType<(year: number) => boolean>;
|
|
92
|
+
default: () => void;
|
|
93
|
+
};
|
|
94
|
+
getDateStatus: {
|
|
95
|
+
type: PropType<(date: Date) => DateVariants['status']>;
|
|
96
|
+
default: undefined;
|
|
97
|
+
};
|
|
98
|
+
getMonthStatus: {
|
|
99
|
+
type: PropType<(month: number, year: number) => MonthVariants['status']>;
|
|
100
|
+
default: undefined;
|
|
101
|
+
};
|
|
102
|
+
getYearStatus: {
|
|
103
|
+
type: PropType<(year: number) => YearVariants['status']>;
|
|
104
|
+
default: undefined;
|
|
105
|
+
};
|
|
106
|
+
isHideNotThisMonthDate: {
|
|
107
|
+
type: PropType<boolean>;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
declare const datePickerProps: {
|
|
111
|
+
id: {
|
|
112
|
+
type: PropType<string>;
|
|
113
|
+
};
|
|
114
|
+
modelValue: {
|
|
115
|
+
type: PropType<string | number | Date | string[] | Date[] | number[]>;
|
|
116
|
+
};
|
|
117
|
+
type: {
|
|
118
|
+
type: PropType<"date" | "month" | "year" | "week" | "biweek">;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
valueType: {
|
|
122
|
+
type: PropType<"string" | "date" | "timestamp">;
|
|
123
|
+
default: string;
|
|
124
|
+
};
|
|
125
|
+
format: {
|
|
126
|
+
type: PropType<string>;
|
|
127
|
+
};
|
|
128
|
+
rangeSeparator: {
|
|
129
|
+
type: PropType<string>;
|
|
130
|
+
default: string;
|
|
131
|
+
};
|
|
132
|
+
placeholder: {
|
|
133
|
+
type: PropType<string>;
|
|
134
|
+
default: string;
|
|
135
|
+
};
|
|
136
|
+
errorMessage: {
|
|
137
|
+
type: PropType<string>;
|
|
138
|
+
default: string;
|
|
139
|
+
};
|
|
140
|
+
disabledMessage: {
|
|
141
|
+
type: PropType<string>;
|
|
142
|
+
default: string;
|
|
143
|
+
};
|
|
144
|
+
lang: {
|
|
145
|
+
type: ObjectConstructor;
|
|
146
|
+
default: () => void;
|
|
147
|
+
};
|
|
148
|
+
inputAttr: {
|
|
149
|
+
type: ObjectConstructor;
|
|
150
|
+
default: () => {};
|
|
151
|
+
};
|
|
152
|
+
contentAttr: {
|
|
153
|
+
type: ObjectConstructor;
|
|
154
|
+
default: () => {};
|
|
155
|
+
};
|
|
156
|
+
isRange: {
|
|
157
|
+
type: PropType<boolean>;
|
|
158
|
+
default: boolean;
|
|
159
|
+
};
|
|
160
|
+
isReadOnly: {
|
|
161
|
+
type: PropType<boolean>;
|
|
162
|
+
default: boolean;
|
|
163
|
+
};
|
|
164
|
+
isDisabled: {
|
|
165
|
+
type: PropType<boolean>;
|
|
166
|
+
default: boolean;
|
|
167
|
+
};
|
|
168
|
+
isClearable: {
|
|
169
|
+
type: PropType<boolean>;
|
|
170
|
+
default: boolean;
|
|
171
|
+
};
|
|
172
|
+
isInvalid: {
|
|
173
|
+
type: PropType<boolean>;
|
|
174
|
+
default: boolean;
|
|
175
|
+
};
|
|
176
|
+
usePortal: {
|
|
177
|
+
type: PropType<boolean>;
|
|
178
|
+
default: boolean;
|
|
179
|
+
};
|
|
180
|
+
isKeepAlive: {
|
|
181
|
+
type: PropType<boolean>;
|
|
182
|
+
default: boolean;
|
|
183
|
+
};
|
|
184
|
+
isInline: {
|
|
185
|
+
type: PropType<boolean>;
|
|
186
|
+
default: boolean;
|
|
187
|
+
};
|
|
188
|
+
isNotClickable: {
|
|
189
|
+
type: PropType<boolean>;
|
|
190
|
+
default: boolean;
|
|
191
|
+
};
|
|
192
|
+
isDisableHeader: {
|
|
193
|
+
type: PropType<boolean>;
|
|
194
|
+
default: boolean;
|
|
195
|
+
};
|
|
196
|
+
isShowShortcut: {
|
|
197
|
+
type: PropType<boolean>;
|
|
198
|
+
default: boolean;
|
|
199
|
+
};
|
|
200
|
+
disabledDate: {
|
|
201
|
+
type: PropType<(date: Date) => boolean>;
|
|
202
|
+
default: () => void;
|
|
203
|
+
};
|
|
204
|
+
disabledMonth: {
|
|
205
|
+
type: PropType<(month: number, year: number) => boolean>;
|
|
206
|
+
default: () => void;
|
|
207
|
+
};
|
|
208
|
+
disabledYear: {
|
|
209
|
+
type: PropType<(year: number) => boolean>;
|
|
210
|
+
default: () => void;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
type CalendarPanelProps = ExtractPropTypes<typeof calendarPanelProps>;
|
|
214
|
+
type CalendarPanelRangeProps = ExtractPropTypes<typeof calendarPanelRangeProps>;
|
|
215
|
+
type DatePickerProps = ExtractPropTypes<typeof datePickerProps>;
|
|
216
|
+
|
|
217
|
+
export { CalendarPanelProps, CalendarPanelRangeProps, DatePickerProps, calendarPanelProps, calendarPanelRangeProps, datePickerProps };
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
+
import { DateVariants } from '../components/parts/date.js';
|
|
3
|
+
import { MonthVariants } from '../components/parts/month.js';
|
|
4
|
+
import { YearVariants } from '../components/parts/year.js';
|
|
5
|
+
import 'vue/jsx-runtime';
|
|
6
|
+
import '@mekari/pixel3-styled-system/types';
|
|
7
|
+
import '@mekari/pixel3-styled-system/css';
|
|
8
|
+
import '@mekari/pixel3-styled-system/recipes';
|
|
9
|
+
|
|
10
|
+
declare const calendarPanelProps: {
|
|
11
|
+
modelValue: {
|
|
12
|
+
type: PropType<Date>;
|
|
13
|
+
};
|
|
14
|
+
defaultValue: {
|
|
15
|
+
type: PropType<Date>;
|
|
16
|
+
};
|
|
17
|
+
type: {
|
|
18
|
+
type: PropType<"date" | "month" | "year" | "week" | "biweek">;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
calendar: {
|
|
22
|
+
type: PropType<Date>;
|
|
23
|
+
};
|
|
24
|
+
isRange: {
|
|
25
|
+
type: PropType<boolean>;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
isShowShortcut: {
|
|
29
|
+
type: PropType<boolean>;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
disabledDate: {
|
|
33
|
+
type: PropType<(date: Date) => boolean>;
|
|
34
|
+
default: () => void;
|
|
35
|
+
};
|
|
36
|
+
disabledMonth: {
|
|
37
|
+
type: PropType<(month: number, year: number) => boolean>;
|
|
38
|
+
default: () => void;
|
|
39
|
+
};
|
|
40
|
+
disabledYear: {
|
|
41
|
+
type: PropType<(year: number) => boolean>;
|
|
42
|
+
default: () => void;
|
|
43
|
+
};
|
|
44
|
+
getDateStatus: {
|
|
45
|
+
type: PropType<(date: Date) => DateVariants['status']>;
|
|
46
|
+
default: undefined;
|
|
47
|
+
};
|
|
48
|
+
getMonthStatus: {
|
|
49
|
+
type: PropType<(month: number, year: number) => MonthVariants['status']>;
|
|
50
|
+
default: undefined;
|
|
51
|
+
};
|
|
52
|
+
getYearStatus: {
|
|
53
|
+
type: PropType<(year: number) => YearVariants['status']>;
|
|
54
|
+
default: undefined;
|
|
55
|
+
};
|
|
56
|
+
isHideNotThisMonthDate: {
|
|
57
|
+
type: PropType<boolean>;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
declare const calendarPanelRangeProps: {
|
|
61
|
+
modelValue: {
|
|
62
|
+
type: PropType<Date[]>;
|
|
63
|
+
};
|
|
64
|
+
defaultValue: {
|
|
65
|
+
type: PropType<Date>;
|
|
66
|
+
};
|
|
67
|
+
type: {
|
|
68
|
+
type: PropType<"date" | "month" | "year" | "week" | "biweek">;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
calendar: {
|
|
72
|
+
type: PropType<Date>;
|
|
73
|
+
};
|
|
74
|
+
isRange: {
|
|
75
|
+
type: PropType<boolean>;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
isShowShortcut: {
|
|
79
|
+
type: PropType<boolean>;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
disabledDate: {
|
|
83
|
+
type: PropType<(date: Date) => boolean>;
|
|
84
|
+
default: () => void;
|
|
85
|
+
};
|
|
86
|
+
disabledMonth: {
|
|
87
|
+
type: PropType<(month: number, year: number) => boolean>;
|
|
88
|
+
default: () => void;
|
|
89
|
+
};
|
|
90
|
+
disabledYear: {
|
|
91
|
+
type: PropType<(year: number) => boolean>;
|
|
92
|
+
default: () => void;
|
|
93
|
+
};
|
|
94
|
+
getDateStatus: {
|
|
95
|
+
type: PropType<(date: Date) => DateVariants['status']>;
|
|
96
|
+
default: undefined;
|
|
97
|
+
};
|
|
98
|
+
getMonthStatus: {
|
|
99
|
+
type: PropType<(month: number, year: number) => MonthVariants['status']>;
|
|
100
|
+
default: undefined;
|
|
101
|
+
};
|
|
102
|
+
getYearStatus: {
|
|
103
|
+
type: PropType<(year: number) => YearVariants['status']>;
|
|
104
|
+
default: undefined;
|
|
105
|
+
};
|
|
106
|
+
isHideNotThisMonthDate: {
|
|
107
|
+
type: PropType<boolean>;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
declare const datePickerProps: {
|
|
111
|
+
id: {
|
|
112
|
+
type: PropType<string>;
|
|
113
|
+
};
|
|
114
|
+
modelValue: {
|
|
115
|
+
type: PropType<string | number | Date | string[] | Date[] | number[]>;
|
|
116
|
+
};
|
|
117
|
+
type: {
|
|
118
|
+
type: PropType<"date" | "month" | "year" | "week" | "biweek">;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
valueType: {
|
|
122
|
+
type: PropType<"string" | "date" | "timestamp">;
|
|
123
|
+
default: string;
|
|
124
|
+
};
|
|
125
|
+
format: {
|
|
126
|
+
type: PropType<string>;
|
|
127
|
+
};
|
|
128
|
+
rangeSeparator: {
|
|
129
|
+
type: PropType<string>;
|
|
130
|
+
default: string;
|
|
131
|
+
};
|
|
132
|
+
placeholder: {
|
|
133
|
+
type: PropType<string>;
|
|
134
|
+
default: string;
|
|
135
|
+
};
|
|
136
|
+
errorMessage: {
|
|
137
|
+
type: PropType<string>;
|
|
138
|
+
default: string;
|
|
139
|
+
};
|
|
140
|
+
disabledMessage: {
|
|
141
|
+
type: PropType<string>;
|
|
142
|
+
default: string;
|
|
143
|
+
};
|
|
144
|
+
lang: {
|
|
145
|
+
type: ObjectConstructor;
|
|
146
|
+
default: () => void;
|
|
147
|
+
};
|
|
148
|
+
inputAttr: {
|
|
149
|
+
type: ObjectConstructor;
|
|
150
|
+
default: () => {};
|
|
151
|
+
};
|
|
152
|
+
contentAttr: {
|
|
153
|
+
type: ObjectConstructor;
|
|
154
|
+
default: () => {};
|
|
155
|
+
};
|
|
156
|
+
isRange: {
|
|
157
|
+
type: PropType<boolean>;
|
|
158
|
+
default: boolean;
|
|
159
|
+
};
|
|
160
|
+
isReadOnly: {
|
|
161
|
+
type: PropType<boolean>;
|
|
162
|
+
default: boolean;
|
|
163
|
+
};
|
|
164
|
+
isDisabled: {
|
|
165
|
+
type: PropType<boolean>;
|
|
166
|
+
default: boolean;
|
|
167
|
+
};
|
|
168
|
+
isClearable: {
|
|
169
|
+
type: PropType<boolean>;
|
|
170
|
+
default: boolean;
|
|
171
|
+
};
|
|
172
|
+
isInvalid: {
|
|
173
|
+
type: PropType<boolean>;
|
|
174
|
+
default: boolean;
|
|
175
|
+
};
|
|
176
|
+
usePortal: {
|
|
177
|
+
type: PropType<boolean>;
|
|
178
|
+
default: boolean;
|
|
179
|
+
};
|
|
180
|
+
isKeepAlive: {
|
|
181
|
+
type: PropType<boolean>;
|
|
182
|
+
default: boolean;
|
|
183
|
+
};
|
|
184
|
+
isInline: {
|
|
185
|
+
type: PropType<boolean>;
|
|
186
|
+
default: boolean;
|
|
187
|
+
};
|
|
188
|
+
isNotClickable: {
|
|
189
|
+
type: PropType<boolean>;
|
|
190
|
+
default: boolean;
|
|
191
|
+
};
|
|
192
|
+
isDisableHeader: {
|
|
193
|
+
type: PropType<boolean>;
|
|
194
|
+
default: boolean;
|
|
195
|
+
};
|
|
196
|
+
isShowShortcut: {
|
|
197
|
+
type: PropType<boolean>;
|
|
198
|
+
default: boolean;
|
|
199
|
+
};
|
|
200
|
+
disabledDate: {
|
|
201
|
+
type: PropType<(date: Date) => boolean>;
|
|
202
|
+
default: () => void;
|
|
203
|
+
};
|
|
204
|
+
disabledMonth: {
|
|
205
|
+
type: PropType<(month: number, year: number) => boolean>;
|
|
206
|
+
default: () => void;
|
|
207
|
+
};
|
|
208
|
+
disabledYear: {
|
|
209
|
+
type: PropType<(year: number) => boolean>;
|
|
210
|
+
default: () => void;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
type CalendarPanelProps = ExtractPropTypes<typeof calendarPanelProps>;
|
|
214
|
+
type CalendarPanelRangeProps = ExtractPropTypes<typeof calendarPanelRangeProps>;
|
|
215
|
+
type DatePickerProps = ExtractPropTypes<typeof datePickerProps>;
|
|
216
|
+
|
|
217
|
+
export { CalendarPanelProps, CalendarPanelRangeProps, DatePickerProps, calendarPanelProps, calendarPanelRangeProps, datePickerProps };
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/modules/date-picker.props.ts
|
|
21
|
+
var date_picker_props_exports = {};
|
|
22
|
+
__export(date_picker_props_exports, {
|
|
23
|
+
calendarPanelProps: () => calendarPanelProps,
|
|
24
|
+
calendarPanelRangeProps: () => calendarPanelRangeProps,
|
|
25
|
+
datePickerProps: () => datePickerProps
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(date_picker_props_exports);
|
|
28
|
+
var calendarPanelProps = {
|
|
29
|
+
modelValue: {
|
|
30
|
+
type: Date
|
|
31
|
+
},
|
|
32
|
+
defaultValue: {
|
|
33
|
+
type: Date
|
|
34
|
+
},
|
|
35
|
+
type: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: "date"
|
|
38
|
+
},
|
|
39
|
+
calendar: {
|
|
40
|
+
type: Date
|
|
41
|
+
},
|
|
42
|
+
isRange: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: false
|
|
45
|
+
},
|
|
46
|
+
isShowShortcut: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: true
|
|
49
|
+
},
|
|
50
|
+
disabledDate: {
|
|
51
|
+
type: Function,
|
|
52
|
+
default: () => {
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
disabledMonth: {
|
|
56
|
+
type: Function,
|
|
57
|
+
default: () => {
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
disabledYear: {
|
|
61
|
+
type: Function,
|
|
62
|
+
default: () => {
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
getDateStatus: {
|
|
66
|
+
type: Function,
|
|
67
|
+
default: void 0
|
|
68
|
+
},
|
|
69
|
+
getMonthStatus: {
|
|
70
|
+
type: Function,
|
|
71
|
+
default: void 0
|
|
72
|
+
},
|
|
73
|
+
getYearStatus: {
|
|
74
|
+
type: Function,
|
|
75
|
+
default: void 0
|
|
76
|
+
},
|
|
77
|
+
isHideNotThisMonthDate: {
|
|
78
|
+
type: Boolean
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
var calendarPanelRangeProps = {
|
|
82
|
+
...calendarPanelProps,
|
|
83
|
+
modelValue: {
|
|
84
|
+
type: Array
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
var datePickerProps = {
|
|
88
|
+
id: {
|
|
89
|
+
type: String
|
|
90
|
+
},
|
|
91
|
+
modelValue: {
|
|
92
|
+
type: [String, Number, Date, Array]
|
|
93
|
+
},
|
|
94
|
+
type: calendarPanelProps.type,
|
|
95
|
+
valueType: {
|
|
96
|
+
type: String,
|
|
97
|
+
default: "date"
|
|
98
|
+
},
|
|
99
|
+
format: {
|
|
100
|
+
type: String
|
|
101
|
+
},
|
|
102
|
+
rangeSeparator: {
|
|
103
|
+
type: String,
|
|
104
|
+
default: " - "
|
|
105
|
+
},
|
|
106
|
+
placeholder: {
|
|
107
|
+
type: String,
|
|
108
|
+
default: ""
|
|
109
|
+
},
|
|
110
|
+
errorMessage: {
|
|
111
|
+
type: String,
|
|
112
|
+
default: "Format tanggal/waktu salah"
|
|
113
|
+
},
|
|
114
|
+
disabledMessage: {
|
|
115
|
+
type: String,
|
|
116
|
+
default: ""
|
|
117
|
+
},
|
|
118
|
+
lang: {
|
|
119
|
+
type: Object,
|
|
120
|
+
default: () => {
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
inputAttr: {
|
|
124
|
+
type: Object,
|
|
125
|
+
default: () => ({})
|
|
126
|
+
},
|
|
127
|
+
contentAttr: {
|
|
128
|
+
type: Object,
|
|
129
|
+
default: () => ({})
|
|
130
|
+
},
|
|
131
|
+
isRange: calendarPanelProps.isRange,
|
|
132
|
+
isReadOnly: {
|
|
133
|
+
type: Boolean,
|
|
134
|
+
default: false
|
|
135
|
+
},
|
|
136
|
+
isDisabled: {
|
|
137
|
+
type: Boolean,
|
|
138
|
+
default: false
|
|
139
|
+
},
|
|
140
|
+
isClearable: {
|
|
141
|
+
type: Boolean,
|
|
142
|
+
default: true
|
|
143
|
+
},
|
|
144
|
+
isInvalid: {
|
|
145
|
+
type: Boolean,
|
|
146
|
+
default: false
|
|
147
|
+
},
|
|
148
|
+
usePortal: {
|
|
149
|
+
type: Boolean,
|
|
150
|
+
default: false
|
|
151
|
+
},
|
|
152
|
+
isKeepAlive: {
|
|
153
|
+
type: Boolean,
|
|
154
|
+
default: false
|
|
155
|
+
},
|
|
156
|
+
isInline: {
|
|
157
|
+
type: Boolean,
|
|
158
|
+
default: false
|
|
159
|
+
},
|
|
160
|
+
isNotClickable: {
|
|
161
|
+
type: Boolean,
|
|
162
|
+
default: false
|
|
163
|
+
},
|
|
164
|
+
isDisableHeader: {
|
|
165
|
+
type: Boolean,
|
|
166
|
+
default: false
|
|
167
|
+
},
|
|
168
|
+
isShowShortcut: {
|
|
169
|
+
type: Boolean,
|
|
170
|
+
default: false
|
|
171
|
+
},
|
|
172
|
+
disabledDate: calendarPanelProps.disabledDate,
|
|
173
|
+
disabledMonth: calendarPanelProps.disabledMonth,
|
|
174
|
+
disabledYear: calendarPanelProps.disabledYear
|
|
175
|
+
};
|
|
176
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
177
|
+
0 && (module.exports = {
|
|
178
|
+
calendarPanelProps,
|
|
179
|
+
calendarPanelRangeProps,
|
|
180
|
+
datePickerProps
|
|
181
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* chunk the array
|
|
3
|
+
* @param {Array} arr
|
|
4
|
+
* @param {Number} size
|
|
5
|
+
*/
|
|
6
|
+
declare function chunk(arr: unknown[], size: number): unknown[][];
|
|
7
|
+
declare const isObject: (value: unknown) => value is object;
|
|
8
|
+
/**
|
|
9
|
+
* Pick a list of properties from an object
|
|
10
|
+
* into a new object
|
|
11
|
+
*/
|
|
12
|
+
declare const pick: <T extends object, TKeys extends keyof T>(obj: T, keys: TKeys[]) => Pick<T, TKeys>;
|
|
13
|
+
/**
|
|
14
|
+
* Merges two objects together recursivly into a new
|
|
15
|
+
* object applying values from right to left.
|
|
16
|
+
* Recursion only applies to child object properties.
|
|
17
|
+
*/
|
|
18
|
+
declare const assign: <X extends Record<string | number | symbol, any>>(initial: X, override: unknown) => X;
|
|
19
|
+
|
|
20
|
+
export { assign, chunk, isObject, pick };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* chunk the array
|
|
3
|
+
* @param {Array} arr
|
|
4
|
+
* @param {Number} size
|
|
5
|
+
*/
|
|
6
|
+
declare function chunk(arr: unknown[], size: number): unknown[][];
|
|
7
|
+
declare const isObject: (value: unknown) => value is object;
|
|
8
|
+
/**
|
|
9
|
+
* Pick a list of properties from an object
|
|
10
|
+
* into a new object
|
|
11
|
+
*/
|
|
12
|
+
declare const pick: <T extends object, TKeys extends keyof T>(obj: T, keys: TKeys[]) => Pick<T, TKeys>;
|
|
13
|
+
/**
|
|
14
|
+
* Merges two objects together recursivly into a new
|
|
15
|
+
* object applying values from right to left.
|
|
16
|
+
* Recursion only applies to child object properties.
|
|
17
|
+
*/
|
|
18
|
+
declare const assign: <X extends Record<string | number | symbol, any>>(initial: X, override: unknown) => X;
|
|
19
|
+
|
|
20
|
+
export { assign, chunk, isObject, pick };
|