definicao de layout
This commit is contained in:
25
public/assets/js/datepicker/date-picker/datepicker.custom.js
Normal file
25
public/assets/js/datepicker/date-picker/datepicker.custom.js
Normal file
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
(function($) {
|
||||
"use strict";
|
||||
//Minimum and Maxium Date
|
||||
$('#minMaxExample').datepicker({
|
||||
language: 'en',
|
||||
minDate: new Date() // Now can select only dates, which goes after today
|
||||
})
|
||||
|
||||
//Disable Days of week
|
||||
var disabledDays = [0, 6];
|
||||
|
||||
$('#disabled-days').datepicker({
|
||||
language: 'en',
|
||||
onRenderCell: function (date, cellType) {
|
||||
if (cellType == 'day') {
|
||||
var day = date.getDay(),
|
||||
isDisabled = disabledDays.indexOf(day) != -1;
|
||||
return {
|
||||
disabled: isDisabled
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
})(jQuery);
|
||||
13
public/assets/js/datepicker/date-picker/datepicker.en.js
Normal file
13
public/assets/js/datepicker/date-picker/datepicker.en.js
Normal file
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
;(function ($) { $.fn.datepicker.language['en'] = {
|
||||
days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
||||
daysShort: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
|
||||
daysMin: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
|
||||
months: ['January','February','March','April','May','June', 'July','August','September','October','November','December'],
|
||||
monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
||||
today: 'Today',
|
||||
clear: 'Clear',
|
||||
dateFormat: 'mm/dd/yyyy',
|
||||
timeFormat: 'hh:ii aa',
|
||||
firstDay: 0
|
||||
}; })(jQuery);
|
||||
2237
public/assets/js/datepicker/date-picker/datepicker.js
Normal file
2237
public/assets/js/datepicker/date-picker/datepicker.js
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,55 @@
|
||||
(function($) {
|
||||
"use strict";
|
||||
|
||||
//Minimum Setup
|
||||
$(function () {
|
||||
$('#dt-minimum').datetimepicker();
|
||||
});
|
||||
|
||||
//Using Locales
|
||||
$(function () {
|
||||
$('#dt-local').datetimepicker({
|
||||
locale: 'ru'
|
||||
});
|
||||
});
|
||||
// Time only
|
||||
$(function () {
|
||||
$('#dt-time').datetimepicker({
|
||||
format: 'LT'
|
||||
});
|
||||
});
|
||||
//Date only
|
||||
$(function () {
|
||||
$('#dt-date').datetimepicker({
|
||||
format: 'L'
|
||||
});
|
||||
});
|
||||
//No Icon
|
||||
$(function () {
|
||||
$('#dt-noicon').datetimepicker();
|
||||
});
|
||||
//Enabled/Disabled Dates
|
||||
$(function () {
|
||||
$('#dt-enab-disab-date').datetimepicker({
|
||||
defaultDate: "11/1/2013",
|
||||
disabledDates: [
|
||||
moment("12/25/2013"),
|
||||
new Date(2013, 11 - 1, 21),
|
||||
"11/22/2013 00:53"
|
||||
]
|
||||
});
|
||||
});
|
||||
//view mode
|
||||
$(function () {
|
||||
$('#dt-view').datetimepicker({
|
||||
viewMode: 'years'
|
||||
});
|
||||
});
|
||||
//Disabled Days of the Week
|
||||
$(function () {
|
||||
$('#dt-disab-days').datetimepicker({
|
||||
daysOfWeekDisabled: [0, 6]
|
||||
});
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
1
public/assets/js/datepicker/date-time-picker/moment.min.js
vendored
Normal file
1
public/assets/js/datepicker/date-time-picker/moment.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
7
public/assets/js/datepicker/date-time-picker/tempusdominus-bootstrap-4.min.js
vendored
Normal file
7
public/assets/js/datepicker/date-time-picker/tempusdominus-bootstrap-4.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,77 @@
|
||||
|
||||
//DateRange Picker
|
||||
(function($) {
|
||||
"use strict";
|
||||
$(function() {
|
||||
$('input[name="daterange"]').daterangepicker();
|
||||
});
|
||||
//Date and Time
|
||||
$(function() {
|
||||
$('input[name="daterange2"]').daterangepicker({
|
||||
timePicker: true,
|
||||
timePickerIncrement: 30,
|
||||
locale: {
|
||||
format: 'MM/DD/YYYY h:mm A'
|
||||
}
|
||||
});
|
||||
});
|
||||
// Single Date Picker
|
||||
$(function() {
|
||||
$('input[name="birthdate"]').daterangepicker({
|
||||
singleDatePicker: true,
|
||||
showDropdowns: true
|
||||
},
|
||||
function(start, end, label) {
|
||||
var years = moment().diff(start, 'years');
|
||||
alert("You are " + years + " years old.");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
//Predefined Ranges
|
||||
$(function() {
|
||||
|
||||
var start = moment().subtract(29, 'days');
|
||||
var end = moment();
|
||||
|
||||
function cb(start, end) {
|
||||
$('#reportrange span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY'));
|
||||
}
|
||||
|
||||
$('#reportrange').daterangepicker({
|
||||
startDate: start,
|
||||
endDate: end,
|
||||
ranges: {
|
||||
'Today': [moment(), moment()],
|
||||
'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
|
||||
'Last 7 Days': [moment().subtract(6, 'days'), moment()],
|
||||
'Last 30 Days': [moment().subtract(29, 'days'), moment()],
|
||||
'This Month': [moment().startOf('month'), moment().endOf('month')],
|
||||
'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]
|
||||
}
|
||||
}, cb);
|
||||
|
||||
cb(start, end);
|
||||
|
||||
});
|
||||
//Input Initially Empty
|
||||
$(function() {
|
||||
|
||||
$('input[name="datefilter"]').daterangepicker({
|
||||
autoUpdateInput: false,
|
||||
locale: {
|
||||
cancelLabel: 'Clear'
|
||||
}
|
||||
});
|
||||
|
||||
$('input[name="datefilter"]').on('apply.daterangepicker', function(ev, picker) {
|
||||
$(this).val(picker.startDate.format('MM/DD/YYYY') + ' - ' + picker.endDate.format('MM/DD/YYYY'));
|
||||
});
|
||||
|
||||
$('input[name="datefilter"]').on('cancel.daterangepicker', function(ev, picker) {
|
||||
$(this).val('');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
1646
public/assets/js/datepicker/daterange-picker/daterangepicker.js
Normal file
1646
public/assets/js/datepicker/daterange-picker/daterangepicker.js
Normal file
File diff suppressed because it is too large
Load Diff
7
public/assets/js/datepicker/daterange-picker/moment.min.js
vendored
Normal file
7
public/assets/js/datepicker/daterange-picker/moment.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user