datatables.net-datetime 1.4.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/dataTables.dateTime.scss +123 -15
- package/datatables.net-datetime.1.5.0.nupkg +0 -0
- package/dist/dataTables.dateTime.css +92 -18
- package/dist/dataTables.dateTime.js +412 -377
- package/dist/dataTables.dateTime.min.css +1 -1
- package/dist/dataTables.dateTime.min.js +2 -2
- package/dist/dataTables.dateTime.min.mjs +2 -2
- package/dist/dataTables.dateTime.mjs +411 -376
- package/docs/api/DateTime.use().xml +0 -2
- package/docs/api/destroy().xml +0 -2
- package/docs/api/display().xml +29 -0
- package/docs/api/errorMsg().xml +2 -6
- package/docs/api/hide().xml +0 -4
- package/docs/api/max().xml +1 -3
- package/docs/api/min().xml +1 -3
- package/docs/api/owns().xml +2 -4
- package/docs/api/val().xml +2 -6
- package/docs/api/valFormat().xml +2 -6
- package/docs/option/buttons.clear.xml +0 -2
- package/docs/option/buttons.today.xml +0 -2
- package/docs/option/buttons.xml +0 -2
- package/docs/option/disableDays.xml +3 -3
- package/docs/option/format.xml +1 -3
- package/docs/option/hoursAvailable.xml +2 -2
- package/docs/option/i18n.amPm.xml +1 -1
- package/docs/option/i18n.clear.xml +1 -3
- package/docs/option/i18n.hours.xml +1 -1
- package/docs/option/i18n.minutes.xml +1 -1
- package/docs/option/i18n.months.xml +15 -2
- package/docs/option/i18n.next.xml +2 -2
- package/docs/option/i18n.previous.xml +2 -2
- package/docs/option/i18n.seconds.xml +1 -1
- package/docs/option/i18n.today.xml +1 -3
- package/docs/option/i18n.unknown.xml +1 -1
- package/docs/option/i18n.weekdays.xml +1 -1
- package/docs/option/i18n.xml +3 -5
- package/docs/option/locale.xml +0 -2
- package/docs/option/maxDate.xml +0 -4
- package/docs/option/minDate.xml +0 -4
- package/docs/option/minutesAvailable.xml +2 -2
- package/docs/option/onChange.xml +0 -2
- package/docs/option/secondsAvailable.xml +2 -2
- package/docs/option/showWeekNumber.xml +2 -2
- package/docs/option/yearRange.xml +2 -2
- package/examples/index.xml +1 -0
- package/examples/initialisation/buttons.xml +18 -7
- package/examples/initialisation/datetime.xml +12 -4
- package/examples/initialisation/dayjs.xml +16 -4
- package/examples/initialisation/hidden.xml +10 -4
- package/examples/initialisation/i18n.xml +48 -9
- package/examples/initialisation/index.xml +1 -0
- package/examples/initialisation/luxon.xml +13 -4
- package/examples/initialisation/moment.xml +12 -4
- package/examples/initialisation/simple.xml +10 -4
- package/examples/integration/datatables.xml +69 -34
- package/examples/integration/form.xml +56 -19
- package/js/dataTables.dateTime.js +411 -376
- package/nuget.nuspec +1 -1
- package/package.json +1 -1
- package/test/api/dateTime.destroy().js +4 -4
- package/test/api/dateTime.display().js +47 -0
- package/test/api/dateTime.hide().js +5 -5
- package/test/options/dateTime.buttons.js +71 -0
- package/test/options/dateTime.firstDay.js +2 -2
- package/test/options/dateTime.hoursAvailable.js +38 -0
- package/test/options/dateTime.init.js +4 -4
- package/test/options/dateTime.locale.js +31 -0
- package/test/options/dateTime.minutesAvailable.js +46 -0
- package/test/options/dateTime.secondsAvailable.js +46 -0
- package/datatables.net-datetime.1.4.0.nupkg +0 -0
- package/examples/initialisation/jquery.xml +0 -28
|
@@ -7,8 +7,9 @@ div.dt-datetime {
|
|
|
7
7
|
z-index: 2050;
|
|
8
8
|
border: 1px solid #ccc;
|
|
9
9
|
box-shadow: 0 5px 15px -5px rgba(0,0,0,.5);
|
|
10
|
-
padding:
|
|
10
|
+
padding: 6px 20px;
|
|
11
11
|
width: 275px;
|
|
12
|
+
border-radius: 5px;
|
|
12
13
|
|
|
13
14
|
&.inline {
|
|
14
15
|
position: relative;
|
|
@@ -195,9 +196,7 @@ div.dt-datetime {
|
|
|
195
196
|
|
|
196
197
|
|
|
197
198
|
div.dt-datetime-iconLeft,
|
|
198
|
-
div.dt-datetime-iconRight
|
|
199
|
-
div.dt-datetime-iconUp,
|
|
200
|
-
div.dt-datetime-iconDown {
|
|
199
|
+
div.dt-datetime-iconRight {
|
|
201
200
|
width: 30px;
|
|
202
201
|
height: 30px;
|
|
203
202
|
background-position: center;
|
|
@@ -205,6 +204,7 @@ div.dt-datetime {
|
|
|
205
204
|
opacity: 0.3;
|
|
206
205
|
overflow: hidden;
|
|
207
206
|
box-sizing: border-box;
|
|
207
|
+
border: 1px solid transparent;
|
|
208
208
|
|
|
209
209
|
&:hover {
|
|
210
210
|
border: 1px solid #ccc;
|
|
@@ -227,24 +227,44 @@ div.dt-datetime {
|
|
|
227
227
|
position: absolute;
|
|
228
228
|
top: 5px;
|
|
229
229
|
left: 5px;
|
|
230
|
-
|
|
230
|
+
|
|
231
|
+
button {
|
|
232
|
+
position: relative;
|
|
233
|
+
z-index: 1;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
&:after {
|
|
237
|
+
position: absolute;
|
|
238
|
+
top: 7px;
|
|
239
|
+
left: 10px;
|
|
240
|
+
display: block;
|
|
241
|
+
content: "";
|
|
242
|
+
border-top: 7px solid transparent;
|
|
243
|
+
border-right: 7px solid black;
|
|
244
|
+
border-bottom: 7px solid transparent;
|
|
245
|
+
}
|
|
231
246
|
}
|
|
232
247
|
|
|
233
248
|
div.dt-datetime-iconRight {
|
|
234
249
|
position: absolute;
|
|
235
250
|
top: 5px;
|
|
236
251
|
right: 5px;
|
|
237
|
-
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=');
|
|
238
|
-
}
|
|
239
252
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
253
|
+
button {
|
|
254
|
+
position: relative;
|
|
255
|
+
z-index: 1;
|
|
256
|
+
}
|
|
244
257
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
258
|
+
&:after {
|
|
259
|
+
position: absolute;
|
|
260
|
+
top: 7px;
|
|
261
|
+
left: 12px;
|
|
262
|
+
display: block;
|
|
263
|
+
content: "";
|
|
264
|
+
border-top: 7px solid transparent;
|
|
265
|
+
border-left: 7px solid black;
|
|
266
|
+
border-bottom: 7px solid transparent;
|
|
267
|
+
}
|
|
248
268
|
}
|
|
249
269
|
}
|
|
250
270
|
|
|
@@ -256,4 +276,92 @@ div.dt-datetime-error {
|
|
|
256
276
|
line-height: 1.25em;
|
|
257
277
|
text-align: center;
|
|
258
278
|
color: #b11f1f;
|
|
259
|
-
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
html.dark {
|
|
283
|
+
input.dt-datetime {
|
|
284
|
+
color-scheme: dark;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
div.dt-datetime {
|
|
288
|
+
border: 1px solid rgb(89, 91, 94);
|
|
289
|
+
background-color: rgb(33, 37, 41);
|
|
290
|
+
box-shadow: 3px 4px 10px 1px rgba(0, 0, 0, 0.8);
|
|
291
|
+
|
|
292
|
+
table {
|
|
293
|
+
th {
|
|
294
|
+
color: #ccc;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
td {
|
|
298
|
+
color: #eee;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
td.selectable {
|
|
302
|
+
background: rgb(55, 60, 65);
|
|
303
|
+
|
|
304
|
+
&.disabled {
|
|
305
|
+
color: #aaa;
|
|
306
|
+
background: rgb(23, 27, 31);
|
|
307
|
+
|
|
308
|
+
button:hover {
|
|
309
|
+
color: #aaa;
|
|
310
|
+
background: rgb(23, 27, 31);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
&.now {
|
|
315
|
+
background: rgb(75, 80, 85);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
&.selected button {
|
|
319
|
+
background: rgb(110, 168, 254);
|
|
320
|
+
color: black;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
button:hover {
|
|
324
|
+
background: #ff8000;
|
|
325
|
+
color: black;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
div.dt-datetime-label {
|
|
331
|
+
&:hover {
|
|
332
|
+
border: 1px solid transparent;
|
|
333
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
div.dt-datetime-iconLeft,
|
|
338
|
+
div.dt-datetime-iconRight,
|
|
339
|
+
div.dt-datetime-iconUp,
|
|
340
|
+
div.dt-datetime-iconDown {
|
|
341
|
+
&:hover {
|
|
342
|
+
border: 1px solid transparent;
|
|
343
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
div.dt-datetime-iconLeft {
|
|
348
|
+
&:after {
|
|
349
|
+
border-right-color: white;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
div.dt-datetime-iconRight {
|
|
354
|
+
&:after {
|
|
355
|
+
border-left-color: white;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
select {
|
|
360
|
+
color-scheme: dark;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
div.dt-datetime-error {
|
|
365
|
+
color: #b11f1f;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
Binary file
|
|
@@ -4,8 +4,9 @@ div.dt-datetime {
|
|
|
4
4
|
z-index: 2050;
|
|
5
5
|
border: 1px solid #ccc;
|
|
6
6
|
box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.5);
|
|
7
|
-
padding:
|
|
7
|
+
padding: 6px 20px;
|
|
8
8
|
width: 275px;
|
|
9
|
+
border-radius: 5px;
|
|
9
10
|
}
|
|
10
11
|
div.dt-datetime.inline {
|
|
11
12
|
position: relative;
|
|
@@ -155,9 +156,7 @@ div.dt-datetime div.dt-datetime-time div.dt-datetime-timeblock {
|
|
|
155
156
|
vertical-align: middle;
|
|
156
157
|
}
|
|
157
158
|
div.dt-datetime div.dt-datetime-iconLeft,
|
|
158
|
-
div.dt-datetime div.dt-datetime-iconRight
|
|
159
|
-
div.dt-datetime div.dt-datetime-iconUp,
|
|
160
|
-
div.dt-datetime div.dt-datetime-iconDown {
|
|
159
|
+
div.dt-datetime div.dt-datetime-iconRight {
|
|
161
160
|
width: 30px;
|
|
162
161
|
height: 30px;
|
|
163
162
|
background-position: center;
|
|
@@ -165,20 +164,17 @@ div.dt-datetime div.dt-datetime-iconDown {
|
|
|
165
164
|
opacity: 0.3;
|
|
166
165
|
overflow: hidden;
|
|
167
166
|
box-sizing: border-box;
|
|
167
|
+
border: 1px solid transparent;
|
|
168
168
|
}
|
|
169
169
|
div.dt-datetime div.dt-datetime-iconLeft:hover,
|
|
170
|
-
div.dt-datetime div.dt-datetime-iconRight:hover
|
|
171
|
-
div.dt-datetime div.dt-datetime-iconUp:hover,
|
|
172
|
-
div.dt-datetime div.dt-datetime-iconDown:hover {
|
|
170
|
+
div.dt-datetime div.dt-datetime-iconRight:hover {
|
|
173
171
|
border: 1px solid #ccc;
|
|
174
172
|
border-radius: 2px;
|
|
175
173
|
background-color: #f0f0f0;
|
|
176
174
|
opacity: 0.6;
|
|
177
175
|
}
|
|
178
176
|
div.dt-datetime div.dt-datetime-iconLeft button,
|
|
179
|
-
div.dt-datetime div.dt-datetime-iconRight button
|
|
180
|
-
div.dt-datetime div.dt-datetime-iconUp button,
|
|
181
|
-
div.dt-datetime div.dt-datetime-iconDown button {
|
|
177
|
+
div.dt-datetime div.dt-datetime-iconRight button {
|
|
182
178
|
border: none;
|
|
183
179
|
background: transparent;
|
|
184
180
|
text-indent: 30px;
|
|
@@ -190,21 +186,39 @@ div.dt-datetime div.dt-datetime-iconLeft {
|
|
|
190
186
|
position: absolute;
|
|
191
187
|
top: 5px;
|
|
192
188
|
left: 5px;
|
|
193
|
-
|
|
189
|
+
}
|
|
190
|
+
div.dt-datetime div.dt-datetime-iconLeft button {
|
|
191
|
+
position: relative;
|
|
192
|
+
z-index: 1;
|
|
193
|
+
}
|
|
194
|
+
div.dt-datetime div.dt-datetime-iconLeft:after {
|
|
195
|
+
position: absolute;
|
|
196
|
+
top: 7px;
|
|
197
|
+
left: 10px;
|
|
198
|
+
display: block;
|
|
199
|
+
content: "";
|
|
200
|
+
border-top: 7px solid transparent;
|
|
201
|
+
border-right: 7px solid black;
|
|
202
|
+
border-bottom: 7px solid transparent;
|
|
194
203
|
}
|
|
195
204
|
div.dt-datetime div.dt-datetime-iconRight {
|
|
196
205
|
position: absolute;
|
|
197
206
|
top: 5px;
|
|
198
207
|
right: 5px;
|
|
199
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=");
|
|
200
208
|
}
|
|
201
|
-
div.dt-datetime div.dt-datetime-
|
|
202
|
-
|
|
203
|
-
|
|
209
|
+
div.dt-datetime div.dt-datetime-iconRight button {
|
|
210
|
+
position: relative;
|
|
211
|
+
z-index: 1;
|
|
204
212
|
}
|
|
205
|
-
div.dt-datetime div.dt-datetime-
|
|
206
|
-
|
|
207
|
-
|
|
213
|
+
div.dt-datetime div.dt-datetime-iconRight:after {
|
|
214
|
+
position: absolute;
|
|
215
|
+
top: 7px;
|
|
216
|
+
left: 12px;
|
|
217
|
+
display: block;
|
|
218
|
+
content: "";
|
|
219
|
+
border-top: 7px solid transparent;
|
|
220
|
+
border-left: 7px solid black;
|
|
221
|
+
border-bottom: 7px solid transparent;
|
|
208
222
|
}
|
|
209
223
|
|
|
210
224
|
div.dt-datetime-error {
|
|
@@ -215,4 +229,64 @@ div.dt-datetime-error {
|
|
|
215
229
|
line-height: 1.25em;
|
|
216
230
|
text-align: center;
|
|
217
231
|
color: #b11f1f;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
html.dark input.dt-datetime {
|
|
235
|
+
color-scheme: dark;
|
|
236
|
+
}
|
|
237
|
+
html.dark div.dt-datetime {
|
|
238
|
+
border: 1px solid #595b5e;
|
|
239
|
+
background-color: #212529;
|
|
240
|
+
box-shadow: 3px 4px 10px 1px rgba(0, 0, 0, 0.8);
|
|
241
|
+
}
|
|
242
|
+
html.dark div.dt-datetime table th {
|
|
243
|
+
color: #ccc;
|
|
244
|
+
}
|
|
245
|
+
html.dark div.dt-datetime table td {
|
|
246
|
+
color: #eee;
|
|
247
|
+
}
|
|
248
|
+
html.dark div.dt-datetime table td.selectable {
|
|
249
|
+
background: #373c41;
|
|
250
|
+
}
|
|
251
|
+
html.dark div.dt-datetime table td.selectable.disabled {
|
|
252
|
+
color: #aaa;
|
|
253
|
+
background: #171b1f;
|
|
254
|
+
}
|
|
255
|
+
html.dark div.dt-datetime table td.selectable.disabled button:hover {
|
|
256
|
+
color: #aaa;
|
|
257
|
+
background: #171b1f;
|
|
258
|
+
}
|
|
259
|
+
html.dark div.dt-datetime table td.selectable.now {
|
|
260
|
+
background: #4b5055;
|
|
261
|
+
}
|
|
262
|
+
html.dark div.dt-datetime table td.selectable.selected button {
|
|
263
|
+
background: #6ea8fe;
|
|
264
|
+
color: black;
|
|
265
|
+
}
|
|
266
|
+
html.dark div.dt-datetime table td.selectable button:hover {
|
|
267
|
+
background: #ff8000;
|
|
268
|
+
color: black;
|
|
269
|
+
}
|
|
270
|
+
html.dark div.dt-datetime div.dt-datetime-label:hover {
|
|
271
|
+
border: 1px solid transparent;
|
|
272
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
273
|
+
}
|
|
274
|
+
html.dark div.dt-datetime div.dt-datetime-iconLeft:hover,
|
|
275
|
+
html.dark div.dt-datetime div.dt-datetime-iconRight:hover,
|
|
276
|
+
html.dark div.dt-datetime div.dt-datetime-iconUp:hover,
|
|
277
|
+
html.dark div.dt-datetime div.dt-datetime-iconDown:hover {
|
|
278
|
+
border: 1px solid transparent;
|
|
279
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
280
|
+
}
|
|
281
|
+
html.dark div.dt-datetime div.dt-datetime-iconLeft:after {
|
|
282
|
+
border-right-color: white;
|
|
283
|
+
}
|
|
284
|
+
html.dark div.dt-datetime div.dt-datetime-iconRight:after {
|
|
285
|
+
border-left-color: white;
|
|
286
|
+
}
|
|
287
|
+
html.dark div.dt-datetime select {
|
|
288
|
+
color-scheme: dark;
|
|
289
|
+
}
|
|
290
|
+
html.dark div.dt-datetime-error {
|
|
291
|
+
color: #b11f1f;
|
|
218
292
|
}
|