definicao de layout

This commit is contained in:
2026-02-06 14:37:54 +00:00
parent 872a5bb3ea
commit a4f80c85c2
2686 changed files with 640668 additions and 294 deletions

View 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);

View 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);

File diff suppressed because it is too large Load Diff

View File

@@ -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);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -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);

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long