arthub-datepicker 1.1.5 → 1.1.6-beta

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.
@@ -0,0 +1,186 @@
1
+ const $schema = "https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/schema.json";
2
+ const $id = "https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/2023.json";
3
+ const year = 2023;
4
+ const papers = [
5
+ "http://www.gov.cn/zhengce/zhengceku/2022-12/08/content_5730844.htm"
6
+ ];
7
+ const days = [
8
+ {
9
+ name: "\u5143\u65E6",
10
+ date: "2022-12-31",
11
+ isOffDay: true
12
+ },
13
+ {
14
+ name: "\u5143\u65E6",
15
+ date: "2023-01-01",
16
+ isOffDay: true
17
+ },
18
+ {
19
+ name: "\u5143\u65E6",
20
+ date: "2023-01-02",
21
+ isOffDay: true
22
+ },
23
+ {
24
+ name: "\u6625\u8282",
25
+ date: "2023-01-21",
26
+ isOffDay: true
27
+ },
28
+ {
29
+ name: "\u6625\u8282",
30
+ date: "2023-01-22",
31
+ isOffDay: true
32
+ },
33
+ {
34
+ name: "\u6625\u8282",
35
+ date: "2023-01-23",
36
+ isOffDay: true
37
+ },
38
+ {
39
+ name: "\u6625\u8282",
40
+ date: "2023-01-24",
41
+ isOffDay: true
42
+ },
43
+ {
44
+ name: "\u6625\u8282",
45
+ date: "2023-01-25",
46
+ isOffDay: true
47
+ },
48
+ {
49
+ name: "\u6625\u8282",
50
+ date: "2023-01-26",
51
+ isOffDay: true
52
+ },
53
+ {
54
+ name: "\u6625\u8282",
55
+ date: "2023-01-27",
56
+ isOffDay: true
57
+ },
58
+ {
59
+ name: "\u6625\u8282",
60
+ date: "2023-01-28",
61
+ isOffDay: false
62
+ },
63
+ {
64
+ name: "\u6625\u8282",
65
+ date: "2023-01-29",
66
+ isOffDay: false
67
+ },
68
+ {
69
+ name: "\u6E05\u660E\u8282",
70
+ date: "2023-04-05",
71
+ isOffDay: true
72
+ },
73
+ {
74
+ name: "\u52B3\u52A8\u8282",
75
+ date: "2023-04-23",
76
+ isOffDay: false
77
+ },
78
+ {
79
+ name: "\u52B3\u52A8\u8282",
80
+ date: "2023-04-29",
81
+ isOffDay: true
82
+ },
83
+ {
84
+ name: "\u52B3\u52A8\u8282",
85
+ date: "2023-04-30",
86
+ isOffDay: true
87
+ },
88
+ {
89
+ name: "\u52B3\u52A8\u8282",
90
+ date: "2023-05-01",
91
+ isOffDay: true
92
+ },
93
+ {
94
+ name: "\u52B3\u52A8\u8282",
95
+ date: "2023-05-02",
96
+ isOffDay: true
97
+ },
98
+ {
99
+ name: "\u52B3\u52A8\u8282",
100
+ date: "2023-05-03",
101
+ isOffDay: true
102
+ },
103
+ {
104
+ name: "\u52B3\u52A8\u8282",
105
+ date: "2023-05-06",
106
+ isOffDay: false
107
+ },
108
+ {
109
+ name: "\u7AEF\u5348\u8282",
110
+ date: "2023-06-22",
111
+ isOffDay: true
112
+ },
113
+ {
114
+ name: "\u7AEF\u5348\u8282",
115
+ date: "2023-06-23",
116
+ isOffDay: true
117
+ },
118
+ {
119
+ name: "\u7AEF\u5348\u8282",
120
+ date: "2023-06-24",
121
+ isOffDay: true
122
+ },
123
+ {
124
+ name: "\u7AEF\u5348\u8282",
125
+ date: "2023-06-25",
126
+ isOffDay: false
127
+ },
128
+ {
129
+ name: "\u4E2D\u79CB\u8282\u3001\u56FD\u5E86\u8282",
130
+ date: "2023-09-29",
131
+ isOffDay: true
132
+ },
133
+ {
134
+ name: "\u4E2D\u79CB\u8282\u3001\u56FD\u5E86\u8282",
135
+ date: "2023-09-30",
136
+ isOffDay: true
137
+ },
138
+ {
139
+ name: "\u4E2D\u79CB\u8282\u3001\u56FD\u5E86\u8282",
140
+ date: "2023-10-01",
141
+ isOffDay: true
142
+ },
143
+ {
144
+ name: "\u4E2D\u79CB\u8282\u3001\u56FD\u5E86\u8282",
145
+ date: "2023-10-02",
146
+ isOffDay: true
147
+ },
148
+ {
149
+ name: "\u4E2D\u79CB\u8282\u3001\u56FD\u5E86\u8282",
150
+ date: "2023-10-03",
151
+ isOffDay: true
152
+ },
153
+ {
154
+ name: "\u4E2D\u79CB\u8282\u3001\u56FD\u5E86\u8282",
155
+ date: "2023-10-04",
156
+ isOffDay: true
157
+ },
158
+ {
159
+ name: "\u4E2D\u79CB\u8282\u3001\u56FD\u5E86\u8282",
160
+ date: "2023-10-05",
161
+ isOffDay: true
162
+ },
163
+ {
164
+ name: "\u4E2D\u79CB\u8282\u3001\u56FD\u5E86\u8282",
165
+ date: "2023-10-06",
166
+ isOffDay: true
167
+ },
168
+ {
169
+ name: "\u4E2D\u79CB\u8282\u3001\u56FD\u5E86\u8282",
170
+ date: "2023-10-07",
171
+ isOffDay: false
172
+ },
173
+ {
174
+ name: "\u4E2D\u79CB\u8282\u3001\u56FD\u5E86\u8282",
175
+ date: "2023-10-08",
176
+ isOffDay: false
177
+ }
178
+ ];
179
+ var _2023 = {
180
+ $schema,
181
+ $id,
182
+ year,
183
+ papers,
184
+ days
185
+ };
186
+ export { $id, $schema, days, _2023 as default, papers, year };
@@ -0,0 +1,196 @@
1
+ const $schema = "https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/schema.json";
2
+ const $id = "https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/2024.json";
3
+ const year = 2024;
4
+ const papers = [
5
+ "https://www.gov.cn/zhengce/zhengceku/202310/content_6911528.htm"
6
+ ];
7
+ const days = [
8
+ {
9
+ name: "\u5143\u65E6",
10
+ date: "2024-01-01",
11
+ isOffDay: true
12
+ },
13
+ {
14
+ name: "\u6625\u8282",
15
+ date: "2024-02-04",
16
+ isOffDay: false
17
+ },
18
+ {
19
+ name: "\u6625\u8282",
20
+ date: "2024-02-10",
21
+ isOffDay: true
22
+ },
23
+ {
24
+ name: "\u6625\u8282",
25
+ date: "2024-02-11",
26
+ isOffDay: true
27
+ },
28
+ {
29
+ name: "\u6625\u8282",
30
+ date: "2024-02-12",
31
+ isOffDay: true
32
+ },
33
+ {
34
+ name: "\u6625\u8282",
35
+ date: "2024-02-13",
36
+ isOffDay: true
37
+ },
38
+ {
39
+ name: "\u6625\u8282",
40
+ date: "2024-02-14",
41
+ isOffDay: true
42
+ },
43
+ {
44
+ name: "\u6625\u8282",
45
+ date: "2024-02-15",
46
+ isOffDay: true
47
+ },
48
+ {
49
+ name: "\u6625\u8282",
50
+ date: "2024-02-16",
51
+ isOffDay: true
52
+ },
53
+ {
54
+ name: "\u6625\u8282",
55
+ date: "2024-02-17",
56
+ isOffDay: true
57
+ },
58
+ {
59
+ name: "\u6625\u8282",
60
+ date: "2024-02-18",
61
+ isOffDay: false
62
+ },
63
+ {
64
+ name: "\u6E05\u660E\u8282",
65
+ date: "2024-04-04",
66
+ isOffDay: true
67
+ },
68
+ {
69
+ name: "\u6E05\u660E\u8282",
70
+ date: "2024-04-05",
71
+ isOffDay: true
72
+ },
73
+ {
74
+ name: "\u6E05\u660E\u8282",
75
+ date: "2024-04-06",
76
+ isOffDay: true
77
+ },
78
+ {
79
+ name: "\u6E05\u660E\u8282",
80
+ date: "2024-04-07",
81
+ isOffDay: false
82
+ },
83
+ {
84
+ name: "\u52B3\u52A8\u8282",
85
+ date: "2024-04-28",
86
+ isOffDay: false
87
+ },
88
+ {
89
+ name: "\u52B3\u52A8\u8282",
90
+ date: "2024-05-01",
91
+ isOffDay: true
92
+ },
93
+ {
94
+ name: "\u52B3\u52A8\u8282",
95
+ date: "2024-05-02",
96
+ isOffDay: true
97
+ },
98
+ {
99
+ name: "\u52B3\u52A8\u8282",
100
+ date: "2024-05-03",
101
+ isOffDay: true
102
+ },
103
+ {
104
+ name: "\u52B3\u52A8\u8282",
105
+ date: "2024-05-04",
106
+ isOffDay: true
107
+ },
108
+ {
109
+ name: "\u52B3\u52A8\u8282",
110
+ date: "2024-05-05",
111
+ isOffDay: true
112
+ },
113
+ {
114
+ name: "\u52B3\u52A8\u8282",
115
+ date: "2024-05-11",
116
+ isOffDay: false
117
+ },
118
+ {
119
+ name: "\u7AEF\u5348\u8282",
120
+ date: "2024-06-10",
121
+ isOffDay: true
122
+ },
123
+ {
124
+ name: "\u4E2D\u79CB\u8282",
125
+ date: "2024-09-14",
126
+ isOffDay: false
127
+ },
128
+ {
129
+ name: "\u4E2D\u79CB\u8282",
130
+ date: "2024-09-15",
131
+ isOffDay: true
132
+ },
133
+ {
134
+ name: "\u4E2D\u79CB\u8282",
135
+ date: "2024-09-16",
136
+ isOffDay: true
137
+ },
138
+ {
139
+ name: "\u4E2D\u79CB\u8282",
140
+ date: "2024-09-17",
141
+ isOffDay: true
142
+ },
143
+ {
144
+ name: "\u56FD\u5E86\u8282",
145
+ date: "2024-09-29",
146
+ isOffDay: false
147
+ },
148
+ {
149
+ name: "\u56FD\u5E86\u8282",
150
+ date: "2024-10-01",
151
+ isOffDay: true
152
+ },
153
+ {
154
+ name: "\u56FD\u5E86\u8282",
155
+ date: "2024-10-02",
156
+ isOffDay: true
157
+ },
158
+ {
159
+ name: "\u56FD\u5E86\u8282",
160
+ date: "2024-10-03",
161
+ isOffDay: true
162
+ },
163
+ {
164
+ name: "\u56FD\u5E86\u8282",
165
+ date: "2024-10-04",
166
+ isOffDay: true
167
+ },
168
+ {
169
+ name: "\u56FD\u5E86\u8282",
170
+ date: "2024-10-05",
171
+ isOffDay: true
172
+ },
173
+ {
174
+ name: "\u56FD\u5E86\u8282",
175
+ date: "2024-10-06",
176
+ isOffDay: true
177
+ },
178
+ {
179
+ name: "\u56FD\u5E86\u8282",
180
+ date: "2024-10-07",
181
+ isOffDay: true
182
+ },
183
+ {
184
+ name: "\u56FD\u5E86\u8282",
185
+ date: "2024-10-12",
186
+ isOffDay: false
187
+ }
188
+ ];
189
+ var _2024 = {
190
+ $schema,
191
+ $id,
192
+ year,
193
+ papers,
194
+ days
195
+ };
196
+ export { $id, $schema, days, _2024 as default, papers, year };
package/index.css CHANGED
@@ -1 +1 @@
1
- .mx-icon-left:before,.mx-icon-right:before,.mx-icon-double-left:before,.mx-icon-double-right:before,.mx-icon-double-left:after,.mx-icon-double-right:after{content:"";position:relative;top:-1px;display:inline-block;width:10px;height:10px;vertical-align:middle;border-style:solid;border-color:currentColor;border-width:2px 0 0 2px;border-radius:1px;box-sizing:border-box;transform-origin:center;transform:rotate(-45deg) scale(0.7)}.mx-icon-double-left:after{left:-4px}.mx-icon-double-right:before{left:4px}.mx-icon-right:before,.mx-icon-double-right:before,.mx-icon-double-right:after{transform:rotate(135deg) scale(0.7)}.mx-btn{box-sizing:border-box;line-height:1;font-size:14px;font-weight:500;padding:7px 15px;margin:0;cursor:pointer;background-color:transparent;outline:none;color:#c4c4c4;white-space:nowrap;transition:all .25s ease-in-out}.mx-btn:hover{color:#3f9eff}.mx-btn-text{border:0;padding:0 4px;text-align:left;line-height:inherit}.mx-scrollbar{height:100%}.mx-scrollbar:hover .mx-scrollbar-track{opacity:1}.mx-scrollbar-wrap{height:100%;overflow-x:hidden;overflow-y:auto}.mx-scrollbar-track{position:absolute;top:2px;right:2px;bottom:2px;width:6px;z-index:1;border-radius:4px;opacity:0;transition:opacity .24s ease-out}.mx-scrollbar-track .mx-scrollbar-thumb{position:absolute;width:100%;height:0;cursor:pointer;border-radius:inherit;background-color:rgba(144,147,153,.3);transition:background-color .3s}.mx-zoom-in-down-enter-active,.mx-zoom-in-down-leave-active{opacity:1;transform:scaleY(1);transition:transform .3s cubic-bezier(0.23, 1, 0.32, 1),opacity .3s cubic-bezier(0.23, 1, 0.32, 1);transform-origin:center top}.mx-zoom-in-down-enter,.mx-zoom-in-down-enter-from,.mx-zoom-in-down-leave-to{opacity:0;transform:scaleY(0)}.mx-datepicker{position:relative;display:inline-block;width:auto}.mx-datepicker svg{width:1em;height:1em;vertical-align:-0.15em;fill:currentColor;overflow:hidden}.mx-datepicker-range{width:320px}.mx-datepicker-inline{width:auto}.mx-input-wrapper{position:relative}.mx-input-wrapper .mx-icon-clear{display:none}.mx-input-wrapper:hover .mx-icon-clear{display:block}.mx-input-wrapper:hover .mx-icon-clear+.mx-icon-calendar{display:none}.mx-input{display:inline-block;box-sizing:border-box;width:100%;height:32px;padding:6px 30px;padding-left:10px;font-size:14px;color:#c4c4c4;background-color:#212121;border:1px solid #434343;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.mx-input:hover,.mx-input:focus{border-color:#434343}.mx-input:disabled,.mx-input.disabled{color:#ccc;background-color:#f3f3f3;border-color:#434343;cursor:not-allowed}.mx-input:focus{outline:none}.mx-input::-ms-clear{display:none}.mx-icon-calendar,.mx-icon-clear{position:absolute;top:50%;right:8px;transform:translateY(-50%);font-size:16px;line-height:1;color:#c4c4c4;vertical-align:middle}.mx-icon-clear{cursor:pointer}.mx-icon-clear:hover{color:#efefef}.mx-datepicker-main{font:14px/1.5 "Helvetica Neue",Helvetica,Arial,"Microsoft Yahei",sans-serif;color:#c4c4c4;border:1px solid #222;background:#222;box-shadow:0 4px 12px 0 #000;border-radius:4px}.mx-datepicker-popup{position:absolute;margin-top:1px;margin-bottom:1px;z-index:2001}.mx-datepicker-sidebar{float:left;box-sizing:border-box;width:100px;padding-top:16px;overflow:auto}.mx-datepicker-sidebar .mx-btn{transition:all .25s ease-in-out}.mx-datepicker-sidebar .mx-btn:hover{background:#333}.mx-datepicker-sidebar+.mx-datepicker-content{margin-left:100px;border-left:1px solid #363636}.mx-datepicker-body{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mx-btn-shortcut{width:100%;height:28px;padding:0 12px;background:transparent;font-size:12px;color:#c4c4c4}.mx-datepicker-header{padding:6px 8px;border-bottom:1px solid #e8e8e8}.mx-datepicker-footer{padding:6px 8px;text-align:right;border-top:1px solid #e8e8e8}.mx-calendar-range,.mx-time-range{display:flex}@media(max-width: 750px){.mx-calendar-range,.mx-time-range{flex-direction:column}}.mx-calendar{box-sizing:border-box;width:248px;padding:6px 12px}.mx-calendar+.mx-calendar{border-left:1px solid #1a1a1a}.mx-calendar-header,.mx-time-header{box-sizing:border-box;height:34px;line-height:34px;text-align:center;overflow:hidden}.mx-btn-icon-left,.mx-btn-icon-double-left{float:left}.mx-btn-icon-right,.mx-btn-icon-double-right{float:right}.mx-calendar-header-label{font-size:14px}.mx-calendar-decade-separator{margin:0 2px}.mx-calendar-decade-separator:after{content:"~"}.mx-calendar-content{position:relative;height:224px;box-sizing:border-box}.mx-calendar-content .mx-table-year .cell,.mx-calendar-content .mx-table-month .cell{border-radius:2px !important;transition:all .25s ease-in-out}.mx-calendar-content .mx-table-year .cell.active,.mx-calendar-content .mx-table-month .cell.active{color:#efefef;background-color:#333}.mx-calendar-content .mx-table-year .cell:not(.active):hover,.mx-calendar-content .mx-table-month .cell:not(.active):hover{color:#3f9eff;background:#222}.mx-calendar-content .cell{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.mx-calendar-content .cell:hover{border-radius:50%;color:#1a1a1a;background-color:#efefef;font-size:600}.mx-calendar-content .cell.active{border-radius:50%;color:#1a1a1a;background-color:#efefef}.mx-calendar-content .cell.active:not(.not-current-month).start::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#333;z-index:-1;border-radius:50% 0 0 50%}.mx-calendar-content .cell.active:not(.not-current-month).start:last-child::before{border-radius:50% 5px 5px 50%}.mx-calendar-content .cell.active:not(.not-current-month).end::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#333;z-index:-1;border-radius:0 50% 50% 0}.mx-calendar-content .cell.active:not(.not-current-month).end:first-child::before{border-radius:5px 50% 50% 5px}.mx-calendar-content .cell.in-range,.mx-calendar-content .cell.hover-in-range{color:#c4c4c4;background-color:#333;border-radius:0}.mx-calendar-content .cell.in-range:first-of-type,.mx-calendar-content .cell.hover-in-range:first-of-type{border-radius:5px 0 0 5px}.mx-calendar-content .cell.in-range:last-of-type,.mx-calendar-content .cell.hover-in-range:last-of-type{border-radius:0 5px 5px 0}.mx-calendar-content .cell.disabled{cursor:not-allowed;opacity:.2}.mx-calendar-week-mode .mx-date-row{cursor:pointer}.mx-calendar-week-mode .mx-date-row:hover{background-color:#efefef}.mx-calendar-week-mode .mx-date-row.mx-active-week{background-color:#333}.mx-calendar-week-mode .mx-date-row .cell{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mx-calendar-week-mode .mx-date-row .cell:hover{color:inherit;background-color:transparent}.mx-calendar-week-mode .mx-date-row .cell.active{color:inherit;background-color:transparent}.mx-week-number{opacity:.5}.mx-table{table-layout:fixed;border-collapse:separate;border-spacing:0;width:100%;height:100%;box-sizing:border-box;text-align:center}.mx-table th{padding:0;font-weight:500;vertical-align:middle;color:#a2a0ab}.mx-table td{padding:0;vertical-align:middle}.mx-table-date td,.mx-table-date th{height:32px;font-size:12px}.mx-table-date .today{color:#3f9eff}.mx-table-date .cell.not-current-month{color:#c4c4c4;opacity:.4;background:none}.mx-table-date .cell.not-current-month.disabled{opacity:.2}.mx-time{flex:1;width:224px;background:#fff}.mx-time+.mx-time{border-left:1px solid #e8e8e8}.mx-date-time-range-header{display:flex;align-items:center}.mx-date-time-header{display:flex;align-items:center;flex:1;padding:12px;font-size:13px}.mx-date-time-header .mx-date-time-input{position:relative;top:100%;flex:1;display:flex;align-items:center;justify-content:space-between;height:32px;background:#333;padding:0 8px;z-index:1;cursor:default}.mx-date-time-header .mx-date-time-input:first-of-type{border-radius:5px 0 0 5px}.mx-date-time-header .mx-date-time-input:last-of-type{border-radius:0 5px 5px 0}.mx-date-time-header .mx-date-time-input:not(:first-of-type){border-left:1px solid #222}.mx-date-time-header .mx-date-time-input.twice{flex:2}.mx-date-time-header .mx-date-time-input .mx-time{position:absolute;top:100%;left:0;width:100%}.mx-date-time-footer{display:flex;align-items:center;justify-content:flex-end;flex:1;padding:12px}.mx-date-time-footer>button{border:none;width:52px;line-height:28px;padding:0 5px;outline:none;font-size:12px;color:#c4c4c4;border-radius:2px;cursor:pointer;transition:all .25s ease-in-out}.mx-date-time-footer>button.cancel{color:#efefef;background:#363636}.mx-date-time-footer>button.cancel:hover{background:#333}.mx-date-time-footer>button.confirm{color:#efefef;background:#2569bf;margin-left:8px}.mx-date-time-footer>button.confirm:hover{background:#3886ea}.mx-date-time{position:relative;width:248px}.mx-date-time .mx-time{position:absolute;top:0;left:0;width:100%;height:100%}.mx-date-time-range{position:relative;width:496px}.mx-date-time-range .mx-time-range{position:absolute;top:0;left:0;width:100%;height:100%}.mx-time-header{border-bottom:1px solid #e8e8e8}.mx-time-content{height:224px;box-sizing:border-box;overflow:hidden;background-color:#303030}.mx-time-content.fixed{height:auto}.mx-time-footer{background-color:#303030;display:flex;justify-content:flex-end;border-top:1px solid #222}.mx-time-footer>button{border:none;line-height:28px;padding:0 5px;cursor:pointer;background-color:transparent;outline:none;font-size:12px;color:#c4c4c4}.mx-time-footer>button.confirm{color:#3f9eff;margin-left:4px}.mx-time-columns{display:flex;width:100%;height:100%;overflow:hidden}.mx-time-column{flex:1;position:relative;border-left:1px solid #222;text-align:center}.mx-time-column ::-webkit-scrollbar{width:0;background:transparent}.mx-time-column:first-child{border-left-color:transparent}.mx-time-column .mx-time-list{margin:0;padding:0;list-style:none}.mx-time-column .mx-time-list::after{content:"";display:block;height:192px}.mx-time-column .mx-time-item{cursor:pointer;font-size:12px;height:32px;line-height:32px}.mx-time-column .mx-time-item:hover{color:#efefef}.mx-time-column .mx-time-item.active{color:#3f9eff;background-color:transparent;font-weight:700}.mx-time-column .mx-time-item.disabled{cursor:not-allowed;opacity:.2}.mx-time-option{cursor:pointer;padding:8px 10px;font-size:12px;line-height:20px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mx-time-option:hover{background-color:#333}.mx-time-option.active{color:#3f9eff;font-weight:700}.mx-time-option.disabled{cursor:not-allowed;opacity:.4}.arrow-down{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid #c4c4c4}
1
+ .mx-icon-left:before,.mx-icon-right:before,.mx-icon-double-left:before,.mx-icon-double-right:before,.mx-icon-double-left:after,.mx-icon-double-right:after{content:"";position:relative;top:-1px;display:inline-block;width:10px;height:10px;vertical-align:middle;border-style:solid;border-color:currentColor;border-width:2px 0 0 2px;border-radius:1px;box-sizing:border-box;transform-origin:center;transform:rotate(-45deg) scale(0.7)}.mx-icon-double-left:after{left:-4px}.mx-icon-double-right:before{left:4px}.mx-icon-right:before,.mx-icon-double-right:before,.mx-icon-double-right:after{transform:rotate(135deg) scale(0.7)}.mx-btn{box-sizing:border-box;line-height:1;font-size:14px;font-weight:500;padding:7px 15px;margin:0;cursor:pointer;background-color:transparent;outline:none;color:#c4c4c4;white-space:nowrap;transition:all .25s ease-in-out}.mx-btn:hover{color:#3f9eff}.mx-btn-text{border:0;padding:0 4px;text-align:left;line-height:inherit}.mx-scrollbar{height:100%}.mx-scrollbar:hover .mx-scrollbar-track{opacity:1}.mx-scrollbar-wrap{height:100%;overflow-x:hidden;overflow-y:auto}.mx-scrollbar-track{position:absolute;top:2px;right:2px;bottom:2px;width:6px;z-index:1;border-radius:4px;opacity:0;transition:opacity .24s ease-out}.mx-scrollbar-track .mx-scrollbar-thumb{position:absolute;width:100%;height:0;cursor:pointer;border-radius:inherit;background-color:rgba(144,147,153,.3);transition:background-color .3s}.mx-zoom-in-down-enter-active,.mx-zoom-in-down-leave-active{opacity:1;transform:scaleY(1);transition:transform .3s cubic-bezier(0.23, 1, 0.32, 1),opacity .3s cubic-bezier(0.23, 1, 0.32, 1);transform-origin:center top}.mx-zoom-in-down-enter,.mx-zoom-in-down-enter-from,.mx-zoom-in-down-leave-to{opacity:0;transform:scaleY(0)}.mx-datepicker{position:relative;display:inline-block;width:auto}.mx-datepicker svg{width:1em;height:1em;vertical-align:-0.15em;fill:currentColor;overflow:hidden}.mx-datepicker-range{width:320px}.mx-datepicker-inline{width:auto}.mx-input-wrapper{position:relative}.mx-input-wrapper .mx-icon-clear{display:none}.mx-input-wrapper:hover .mx-icon-clear{display:block}.mx-input-wrapper:hover .mx-icon-clear+.mx-icon-calendar{display:none}.mx-input{display:inline-block;box-sizing:border-box;width:100%;height:32px;padding:6px 30px;padding-left:10px;font-size:14px;color:#c4c4c4;background-color:#212121;border:1px solid #434343;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.mx-input:hover,.mx-input:focus{border-color:#434343}.mx-input:disabled,.mx-input.disabled{color:#ccc;background-color:#f3f3f3;border-color:#434343;cursor:not-allowed}.mx-input:focus{outline:none}.mx-input::-ms-clear{display:none}.mx-icon-calendar,.mx-icon-clear{position:absolute;top:50%;right:8px;transform:translateY(-50%);font-size:16px;line-height:1;color:#c4c4c4;vertical-align:middle}.mx-icon-clear{cursor:pointer}.mx-icon-clear:hover{color:#efefef}.mx-datepicker-main{font:14px/1.5 "Helvetica Neue",Helvetica,Arial,"Microsoft Yahei",sans-serif;color:#c4c4c4;border:1px solid #222;background:#222;box-shadow:0 4px 12px 0 #000;border-radius:4px}.mx-datepicker-popup{position:absolute;margin-top:1px;margin-bottom:1px;z-index:2001}.mx-datepicker-sidebar{float:left;box-sizing:border-box;width:100px;padding-top:16px;overflow:auto}.mx-datepicker-sidebar .mx-btn{transition:all .25s ease-in-out}.mx-datepicker-sidebar .mx-btn:hover{background:#333}.mx-datepicker-sidebar+.mx-datepicker-content{margin-left:100px;border-left:1px solid #363636}.mx-datepicker-body{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mx-btn-shortcut{width:100%;height:28px;padding:0 12px;background:transparent;font-size:12px;color:#c4c4c4}.mx-datepicker-header{padding:6px 8px;border-bottom:1px solid #e8e8e8}.mx-datepicker-footer{padding:6px 8px;text-align:right;border-top:1px solid #e8e8e8}.mx-calendar-range,.mx-time-range{display:flex}@media(max-width: 750px){.mx-calendar-range,.mx-time-range{flex-direction:column}}.mx-calendar{box-sizing:border-box;width:248px;padding:6px 12px}.mx-calendar+.mx-calendar{border-left:1px solid #1a1a1a}.mx-calendar-header,.mx-time-header{box-sizing:border-box;height:34px;line-height:34px;text-align:center;overflow:hidden}.mx-btn-icon-left,.mx-btn-icon-double-left{float:left}.mx-btn-icon-right,.mx-btn-icon-double-right{float:right}.mx-calendar-header-label{font-size:14px}.mx-calendar-decade-separator{margin:0 2px}.mx-calendar-decade-separator:after{content:"~"}.mx-calendar-content{position:relative;height:224px;box-sizing:border-box}.mx-calendar-content .mx-table-year .cell,.mx-calendar-content .mx-table-month .cell{border-radius:2px !important;transition:all .25s ease-in-out}.mx-calendar-content .mx-table-year .cell.active,.mx-calendar-content .mx-table-month .cell.active{color:#efefef;background-color:#333}.mx-calendar-content .mx-table-year .cell:not(.active):hover,.mx-calendar-content .mx-table-month .cell:not(.active):hover{color:#3f9eff;background:#222}.mx-calendar-content .cell{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.mx-calendar-content .cell.disabled{cursor:not-allowed !important}.mx-calendar-content .cell.disabled *{opacity:.2 !important}.mx-calendar-content .cell.active{border-radius:50%;color:#1a1a1a !important;background-color:#efefef !important}.mx-calendar-content .cell.active:not(.not-current-month).start::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#333;z-index:-1;border-radius:50% 0 0 50%}.mx-calendar-content .cell.active:not(.not-current-month).start:last-child::before{border-radius:50% 5px 5px 50%}.mx-calendar-content .cell.active:not(.not-current-month).end::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#333;z-index:-1;border-radius:0 50% 50% 0}.mx-calendar-content .cell.active:not(.not-current-month).end:first-child::before{border-radius:5px 50% 50% 5px}.mx-calendar-content .cell.active.holiday-day-on .tag{background:#f8602e;color:#fff}.mx-calendar-content .cell.active.holiday-day-off .tag{background:#4ebfb2;color:#fff}.mx-calendar-content .cell.active *{opacity:1 !important}.mx-calendar-content .cell.today{color:#3f9eff}.mx-calendar-content .cell.holiday-day-on .tag,.mx-calendar-content .cell.holiday-day-off .tag{position:absolute;top:-2px;right:-2px;width:16px;height:16px;font-size:10px;font-weight:600;border-radius:50%;z-index:1;transition:background .15s ease-in-out,color .15s ease-in-out}.mx-calendar-content .cell.holiday-day-on .tag{color:#f8602e}.mx-calendar-content .cell.holiday-day-off .tag{color:#4ebfb2;opacity:1}.mx-calendar-content .cell.holiday-day-off *{opacity:.4}.mx-calendar-content .cell.weekend:not(.disabled):not(.holiday-day-on):not(.holiday-day-off):not(.not-current-month):not(.in-range):not(.hover-in-range){color:#c4c4c4;background:none}.mx-calendar-content .cell.weekend:not(.disabled):not(.holiday-day-on):not(.holiday-day-off):not(.not-current-month):not(.in-range):not(.hover-in-range):hover{color:#efefef;background-color:#3e3e3e}.mx-calendar-content .cell.weekend:not(.disabled):not(.holiday-day-on):not(.holiday-day-off):not(.not-current-month):not(.in-range):not(.hover-in-range):hover *{opacity:1}.mx-calendar-content .cell.weekend:not(.disabled):not(.holiday-day-on):not(.holiday-day-off):not(.not-current-month):not(.in-range):not(.hover-in-range) *{opacity:.4}.mx-calendar-content .cell:not(.disabled):not(.active):hover{border-radius:50%;color:#efefef;background-color:#3e3e3e;font-weight:600;transition:background .1s ease-in-out,color .1s ease-in-out}.mx-calendar-content .cell:not(.disabled):not(.active):hover.holiday-day-off .tag{background:#4ebfb2;color:#fff}.mx-calendar-content .cell:not(.disabled):not(.active):hover.holiday-day-on .tag{background:#f8602e;color:#fff}.mx-calendar-content .cell.not-current-month{color:#c4c4c4;background:none}.mx-calendar-content .cell.not-current-month *{opacity:.4}.mx-calendar-content .cell.in-range,.mx-calendar-content .cell.hover-in-range{color:#c4c4c4;background-color:#333;border-radius:0}.mx-calendar-content .cell.in-range:first-of-type,.mx-calendar-content .cell.hover-in-range:first-of-type{border-radius:5px 0 0 5px}.mx-calendar-content .cell.in-range:last-of-type,.mx-calendar-content .cell.hover-in-range:last-of-type{border-radius:0 5px 5px 0}.mx-calendar-content .cell.in-range:hover::before,.mx-calendar-content .cell.hover-in-range:hover::before{position:absolute;left:0;top:0;content:"";width:32px;height:32px;background-color:#333;z-index:-1}.mx-calendar-content .cell.in-range:hover:first-of-type,.mx-calendar-content .cell.in-range:hover:last-of-type,.mx-calendar-content .cell.hover-in-range:hover:first-of-type,.mx-calendar-content .cell.hover-in-range:hover:last-of-type{border-radius:50%}.mx-calendar-week-mode .mx-date-row{cursor:pointer}.mx-calendar-week-mode .mx-date-row:hover{background-color:#3e3e3e}.mx-calendar-week-mode .mx-date-row.mx-active-week{background-color:#333}.mx-calendar-week-mode .mx-date-row .cell{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mx-calendar-week-mode .mx-date-row .cell:hover{color:inherit;background-color:transparent}.mx-calendar-week-mode .mx-date-row .cell.active{color:inherit;background-color:transparent}.mx-week-number{opacity:.5}.mx-table{table-layout:fixed;border-collapse:separate;border-spacing:0;width:100%;height:100%;box-sizing:border-box;text-align:center}.mx-table th{padding:0;font-weight:500;vertical-align:middle;color:#a2a0ab}.mx-table td{padding:0;vertical-align:middle}.mx-table-date td,.mx-table-date th{height:32px;font-size:12px}.mx-time{flex:1;width:224px;background:#fff}.mx-time+.mx-time{border-left:1px solid #e8e8e8}.mx-date-time-range-header{display:flex;align-items:center}.mx-date-time-header{display:flex;align-items:center;flex:1;padding:12px;font-size:13px}.mx-date-time-header:has(.mx-date-quick-today) .mx-date-time-input:not(:first-child){border-radius:0 5px 5px 0}.mx-date-time-header .mx-date-time-input{position:relative;top:100%;flex:3;display:flex;align-items:center;justify-content:space-between;height:32px;background:#333;padding:0 8px;z-index:1;cursor:default}.mx-date-time-header .mx-date-time-input:first-of-type{border-radius:5px 0 0 5px}.mx-date-time-header .mx-date-time-input:last-of-type{border-radius:0 5px 5px 0}.mx-date-time-header .mx-date-time-input:not(:first-of-type){border-left:1px solid #222}.mx-date-time-header .mx-date-time-input.large{flex:5}.mx-date-time-header .mx-date-time-input .mx-time{position:absolute;top:100%;left:0;width:100%}.mx-date-time-header .mx-date-quick-today{height:32px;line-height:32px;text-align:center;padding:0 12px;border-radius:5px;margin-left:4px;background:#333;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.mx-date-time-footer{display:flex;align-items:center;justify-content:flex-end;flex:1;padding:12px}.mx-date-time-footer>button{border:none;width:52px;line-height:28px;padding:0 5px;outline:none;font-size:12px;color:#c4c4c4;border-radius:2px;cursor:pointer;transition:all .25s ease-in-out}.mx-date-time-footer>button.cancel{color:#efefef;background:#363636}.mx-date-time-footer>button.cancel:hover{background:#333}.mx-date-time-footer>button.confirm{color:#efefef;background:#2569bf;margin-left:8px}.mx-date-time-footer>button.confirm:hover{background:#3886ea}.mx-date-time{position:relative;width:248px}.mx-date-time .mx-time{position:absolute;top:0;left:0;width:100%;height:100%}.mx-date-time-range{position:relative;width:496px}.mx-date-time-range .mx-time-range{position:absolute;top:0;left:0;width:100%;height:100%}.mx-time-header{border-bottom:1px solid #e8e8e8}.mx-time-content{height:224px;box-sizing:border-box;overflow:hidden;background-color:#303030}.mx-time-content.fixed{height:auto}.mx-time-footer{background-color:#303030;display:flex;justify-content:flex-end;border-top:1px solid #222}.mx-time-footer>button{border:none;line-height:28px;padding:0 5px;cursor:pointer;background-color:transparent;outline:none;font-size:12px;color:#c4c4c4}.mx-time-footer>button.confirm{color:#3f9eff;margin-left:4px}.mx-time-columns{display:flex;width:100%;height:100%;overflow:hidden}.mx-time-column{flex:1;position:relative;border-left:1px solid #222;text-align:center}.mx-time-column ::-webkit-scrollbar{width:0;background:transparent}.mx-time-column:first-child{border-left-color:transparent}.mx-time-column .mx-time-list{margin:0;padding:0;list-style:none}.mx-time-column .mx-time-list::after{content:"";display:block;height:192px}.mx-time-column .mx-time-item{cursor:pointer;font-size:12px;height:32px;line-height:32px}.mx-time-column .mx-time-item:hover{color:#efefef}.mx-time-column .mx-time-item.active{color:#3f9eff;background-color:transparent;font-weight:700}.mx-time-column .mx-time-item.disabled{cursor:not-allowed;opacity:.2}.mx-time-option{cursor:pointer;padding:8px 10px;font-size:12px;line-height:20px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mx-time-option:hover{background-color:#333}.mx-time-option.active{color:#3f9eff;font-weight:700}.mx-time-option.disabled{cursor:not-allowed;opacity:.4}.arrow-down{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid #c4c4c4}
package/index.d.ts CHANGED
@@ -144,6 +144,7 @@ export interface DateTimeBaseProps {
144
144
  point?: "start" | "end";
145
145
  isDatePart?: boolean;
146
146
  showTimePanel?: boolean;
147
+ showQuickToday?: boolean;
147
148
  closePopup?: () => void;
148
149
  onShowTimePanelChange?: (v: boolean) => void;
149
150
  }
@@ -446,6 +447,7 @@ declare const _default: import("vue").FunctionalComponent<DatePickerComponentPro
446
447
  point?: "end" | "start" | undefined;
447
448
  isDatePart?: boolean | undefined;
448
449
  showTimePanel?: boolean | undefined;
450
+ showQuickToday?: boolean | undefined;
449
451
  closePopup?: (() => void) | undefined;
450
452
  onShowTimePanelChange?: ((v: boolean) => void) | undefined;
451
453
  type?: PickerType | undefined;
@@ -489,6 +491,7 @@ declare const _default: import("vue").FunctionalComponent<DatePickerComponentPro
489
491
  point?: unknown;
490
492
  isDatePart?: unknown;
491
493
  showTimePanel?: unknown;
494
+ showQuickToday?: unknown;
492
495
  closePopup?: unknown;
493
496
  onShowTimePanelChange?: unknown;
494
497
  type?: unknown;
@@ -569,6 +572,7 @@ declare const _default: import("vue").FunctionalComponent<DatePickerComponentPro
569
572
  handleTimePanelCancel?: (() => void) | undefined;
570
573
  handleTimePanelConfirm?: (() => void) | undefined;
571
574
  showTimePanel?: boolean | undefined;
575
+ showQuickToday?: boolean | undefined;
572
576
  closePopup?: (() => void) | undefined;
573
577
  onShowTimePanelChange?: ((v: boolean) => void) | undefined;
574
578
  }>, {}>;
@@ -576,6 +580,7 @@ declare const _default: import("vue").FunctionalComponent<DatePickerComponentPro
576
580
  point?: "end" | "start" | undefined;
577
581
  isDatePart?: boolean | undefined;
578
582
  showTimePanel?: boolean | undefined;
583
+ showQuickToday?: boolean | undefined;
579
584
  closePopup?: (() => void) | undefined;
580
585
  onShowTimePanelChange?: ((v: boolean) => void) | undefined;
581
586
  value?: Date[] | undefined;
@@ -619,6 +624,7 @@ declare const _default: import("vue").FunctionalComponent<DatePickerComponentPro
619
624
  point?: unknown;
620
625
  isDatePart?: unknown;
621
626
  showTimePanel?: unknown;
627
+ showQuickToday?: unknown;
622
628
  closePopup?: unknown;
623
629
  onShowTimePanelChange?: unknown;
624
630
  value?: unknown;
@@ -699,6 +705,7 @@ declare const _default: import("vue").FunctionalComponent<DatePickerComponentPro
699
705
  handleTimePanelCancel?: (() => void) | undefined;
700
706
  handleTimePanelConfirm?: (() => void) | undefined;
701
707
  showTimePanel?: boolean | undefined;
708
+ showQuickToday?: boolean | undefined;
702
709
  closePopup?: (() => void) | undefined;
703
710
  onShowTimePanelChange?: ((v: boolean) => void) | undefined;
704
711
  }>, {}>;