@ntlab/ntjs-assets 2.0.23 → 2.0.25
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/assets/js/bootstrap-datetimepicker/locales/pt-PT.js +1 -1
- package/assets/js/bootstrap-datetimepicker/locales/uk.js +47 -0
- package/assets/js/cdn.json +2 -2
- package/assets/js/jqGrid/js/grid.aria.js +22 -20
- package/assets/js/jqGrid/js/grid.base.js +61 -13
- package/assets/js/jqGrid/js/grid.grouping.js +16 -9
- package/assets/js/jqGrid/js/jquery.jqGrid.js +100 -43
- package/assets/js/jqGrid/js/jquery.jqGrid.min.js +2 -2
- package/assets/js/jqGrid/js/jquery.jqGrid.min.js.map +1 -1
- package/assets/js/jqGrid/js/minified/grid.aria.js +1 -1
- package/assets/js/jqGrid/js/minified/grid.base.js +1 -1
- package/assets/js/jqGrid/js/minified/grid.grouping.js +1 -1
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@ const localization = {
|
|
|
31
31
|
toggleMeridiem: 'Alterar AM/PM',
|
|
32
32
|
selectTime: 'Selecionar hora',
|
|
33
33
|
selectDate: 'Seleccionar data',
|
|
34
|
-
dayViewHeaderFormat: { month: '
|
|
34
|
+
dayViewHeaderFormat: { month: 'long', year: '2-digits' },
|
|
35
35
|
startOfTheWeek: 1,
|
|
36
36
|
locale: 'pt-PT',
|
|
37
37
|
dateFormats: {
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Tempus Dominus v6.9.4 (https://getdatepicker.com/)
|
|
3
|
+
* Copyright 2013-2024 Jonathan Peterson
|
|
4
|
+
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
|
|
5
|
+
*/
|
|
6
|
+
(function(g,f){typeof exports==='object'&&typeof module!=='undefined'?f(exports):typeof define==='function'&&define.amd?define(['exports'],f):(g=typeof globalThis!=='undefined'?globalThis:g||self,f((g.tempusDominus=g.tempusDominus||{},g.tempusDominus.locales=g.tempusDominus.locales||{},g.tempusDominus.locales.uk={})));})(this,(function(exports){'use strict';const name = 'uk';
|
|
7
|
+
const localization = {
|
|
8
|
+
today: 'Сьогодні',
|
|
9
|
+
clear: 'Очистити',
|
|
10
|
+
close: 'Закрити',
|
|
11
|
+
selectMonth: 'Обрати місяць',
|
|
12
|
+
previousMonth: 'Попередній місяць',
|
|
13
|
+
nextMonth: 'У наступному місяці',
|
|
14
|
+
selectYear: 'Обрати рік',
|
|
15
|
+
previousYear: 'Попередній рік',
|
|
16
|
+
nextYear: 'У наступному році',
|
|
17
|
+
selectDecade: 'Обрати десятиліття',
|
|
18
|
+
previousDecade: 'Попереднє десятиліття',
|
|
19
|
+
nextDecade: 'Наступне десятиліття',
|
|
20
|
+
previousCentury: 'Попереднє століття',
|
|
21
|
+
nextCentury: 'Наступне століття',
|
|
22
|
+
pickHour: 'Оберіть годину',
|
|
23
|
+
incrementHour: 'Час збільшення',
|
|
24
|
+
decrementHour: 'Зменшити годину',
|
|
25
|
+
pickMinute: 'Обрати хвилину',
|
|
26
|
+
incrementMinute: 'Хвилина приросту',
|
|
27
|
+
decrementMinute: 'Зменшити хвилину',
|
|
28
|
+
pickSecond: 'Обрати другий',
|
|
29
|
+
incrementSecond: 'Збільшення секунди',
|
|
30
|
+
decrementSecond: 'Зменшення секунди',
|
|
31
|
+
toggleMeridiem: 'Переключити період',
|
|
32
|
+
selectTime: 'Обрати час',
|
|
33
|
+
selectDate: 'Обрати дату',
|
|
34
|
+
dayViewHeaderFormat: { month: 'long', year: 'numeric' },
|
|
35
|
+
locale: 'uk',
|
|
36
|
+
startOfTheWeek: 1,
|
|
37
|
+
dateFormats: {
|
|
38
|
+
LT: 'H:mm',
|
|
39
|
+
LTS: 'H:mm:ss',
|
|
40
|
+
L: 'dd.MM.yyyy',
|
|
41
|
+
LL: 'd MMMM yyyy р.',
|
|
42
|
+
LLL: 'd MMMM yyyy р., H:mm',
|
|
43
|
+
LLLL: 'dddd, d MMMM yyyy р., H:mm',
|
|
44
|
+
},
|
|
45
|
+
ordinal: (n) => n,
|
|
46
|
+
format: 'L LT',
|
|
47
|
+
};exports.localization=localization;exports.name=name;Object.defineProperty(exports,'__esModule',{value:true});}));
|
package/assets/js/cdn.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"jsdelivr-dist": ""
|
|
23
23
|
},
|
|
24
24
|
"bootstrap-datetimepicker": {
|
|
25
|
-
"version": "6.9.
|
|
25
|
+
"version": "6.9.9",
|
|
26
26
|
"jsdelivr-dist": "@eonasdan/tempus-dominus"
|
|
27
27
|
},
|
|
28
28
|
"bootstrap-icons": {
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"cdnjs": "blueimp-JavaScript-Templates"
|
|
158
158
|
},
|
|
159
159
|
"jqGrid": {
|
|
160
|
-
"version": "5.8.
|
|
160
|
+
"version": "5.8.7",
|
|
161
161
|
"cdnjs": "jqgrid"
|
|
162
162
|
},
|
|
163
163
|
"jquery": {
|
|
@@ -302,7 +302,8 @@ $.jgrid.extend({
|
|
|
302
302
|
highlight = getstyle($t.p.styleUI+'.common','highlight', true);
|
|
303
303
|
$t.p.F2key = false;
|
|
304
304
|
// basic functions
|
|
305
|
-
|
|
305
|
+
var baseFunc = {
|
|
306
|
+
isValidCell : function (row, col) {
|
|
306
307
|
return (
|
|
307
308
|
!isNaN(row) &&
|
|
308
309
|
!isNaN(col) &&
|
|
@@ -312,8 +313,8 @@ $.jgrid.extend({
|
|
|
312
313
|
row < $t.rows.length &&
|
|
313
314
|
col < $t.p.colModel.length
|
|
314
315
|
);
|
|
315
|
-
|
|
316
|
-
|
|
316
|
+
},
|
|
317
|
+
getNextCell: function ( dirX, dirY) {
|
|
317
318
|
var row = $t.p.iRow + dirY; // set the default one when initialize grid
|
|
318
319
|
var col = $t.p.iCol + dirX; // set the default .................
|
|
319
320
|
var rowCount = $t.rows.length;
|
|
@@ -337,12 +338,12 @@ $.jgrid.extend({
|
|
|
337
338
|
row--;
|
|
338
339
|
}
|
|
339
340
|
}
|
|
340
|
-
|
|
341
|
+
if (this.isValidCell(row, col)) {
|
|
341
342
|
return {
|
|
342
343
|
row: row,
|
|
343
344
|
col: col
|
|
344
345
|
};
|
|
345
|
-
|
|
346
|
+
} else if (this.isValidCell($t.p.iRow, $t.p.iCol)) {
|
|
346
347
|
return {
|
|
347
348
|
row: $t.p.iRow,
|
|
348
349
|
col: $t.p.iCol
|
|
@@ -350,9 +351,9 @@ $.jgrid.extend({
|
|
|
350
351
|
} else {
|
|
351
352
|
return false;
|
|
352
353
|
}
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
354
|
+
},
|
|
355
|
+
getNextVisibleCell : function (dirX, dirY) {
|
|
356
|
+
var nextCell = this.getNextCell( dirX, dirY);
|
|
356
357
|
if (!nextCell) {
|
|
357
358
|
return false;
|
|
358
359
|
}
|
|
@@ -360,7 +361,7 @@ $.jgrid.extend({
|
|
|
360
361
|
while ( $($t.rows[nextCell.row].cells[nextCell.col]).is(":hidden") ) {
|
|
361
362
|
$t.p.iRow = nextCell.row;
|
|
362
363
|
$t.p.iCol = nextCell.col;
|
|
363
|
-
|
|
364
|
+
nextCell = this.getNextCell(dirX, dirY);
|
|
364
365
|
if ($t.p.iRow === nextCell.row && $t.p.iCol === nextCell.col) {
|
|
365
366
|
// There are no more cells to try if getNextCell returns the current cell
|
|
366
367
|
return false;
|
|
@@ -371,8 +372,8 @@ $.jgrid.extend({
|
|
|
371
372
|
}
|
|
372
373
|
|
|
373
374
|
return nextCell;
|
|
374
|
-
|
|
375
|
-
|
|
375
|
+
},
|
|
376
|
+
movePage : function ( dir ) {
|
|
376
377
|
var curpage = $t.p.page, last =$t.p.lastpage;
|
|
377
378
|
curpage = curpage + dir;
|
|
378
379
|
if( curpage <= 0) {
|
|
@@ -387,6 +388,7 @@ $.jgrid.extend({
|
|
|
387
388
|
$t.p.page = curpage;
|
|
388
389
|
$t.grid.populate();
|
|
389
390
|
}
|
|
391
|
+
};
|
|
390
392
|
var focusableElementsSelector = $.jgrid.focusableElementsList.join();
|
|
391
393
|
/*
|
|
392
394
|
function hasFocusableChild( el) {
|
|
@@ -438,7 +440,7 @@ $.jgrid.extend({
|
|
|
438
440
|
return;
|
|
439
441
|
}
|
|
440
442
|
if(onKeyCheck) {
|
|
441
|
-
if(!onKeyCheck.call($t, $t.rows[$t.p.iRow].id, $t.p.iRow, $t.p.iCol, e) ) {
|
|
443
|
+
if(!onKeyCheck.call($t, $t.rows[$t.p.iRow].id, $t.p.iRow, $t.p.iCol, e, baseFunc) ) {
|
|
442
444
|
return;
|
|
443
445
|
}
|
|
444
446
|
}
|
|
@@ -447,26 +449,26 @@ $.jgrid.extend({
|
|
|
447
449
|
|
|
448
450
|
switch(key) {
|
|
449
451
|
case (38) : // UP
|
|
450
|
-
nextCell = getNextVisibleCell(0, -1);
|
|
452
|
+
nextCell = baseFunc.getNextVisibleCell(0, -1);
|
|
451
453
|
focusRow = nextCell.row;
|
|
452
454
|
focusCol = nextCell.col;
|
|
453
455
|
e.preventDefault();
|
|
454
456
|
break;
|
|
455
457
|
case (40) : // DOWN
|
|
456
458
|
case 13 : // Enter
|
|
457
|
-
nextCell = getNextVisibleCell(0, 1);
|
|
459
|
+
nextCell = baseFunc.getNextVisibleCell(0, 1);
|
|
458
460
|
focusRow = nextCell.row;
|
|
459
461
|
focusCol = nextCell.col;
|
|
460
462
|
e.preventDefault();
|
|
461
463
|
break;
|
|
462
464
|
case (37) : // LEFT
|
|
463
|
-
nextCell = getNextVisibleCell(-1, 0);
|
|
465
|
+
nextCell = baseFunc.getNextVisibleCell(-1, 0);
|
|
464
466
|
focusRow = nextCell.row;
|
|
465
467
|
focusCol = nextCell.col;
|
|
466
468
|
e.preventDefault();
|
|
467
469
|
break;
|
|
468
470
|
case (39) : // RIGHT
|
|
469
|
-
nextCell = getNextVisibleCell(1, 0);
|
|
471
|
+
nextCell = baseFunc.getNextVisibleCell(1, 0);
|
|
470
472
|
focusRow = nextCell.row;
|
|
471
473
|
focusCol = nextCell.col;
|
|
472
474
|
e.preventDefault();
|
|
@@ -491,13 +493,13 @@ $.jgrid.extend({
|
|
|
491
493
|
break;
|
|
492
494
|
case 33 : // PAGEUP
|
|
493
495
|
|
|
494
|
-
movePage( -1 );
|
|
496
|
+
baseFunc.movePage( -1 );
|
|
495
497
|
focusCol = $t.p.iCol;
|
|
496
498
|
focusRow = $t.p.iRow;
|
|
497
499
|
e.preventDefault();
|
|
498
500
|
break;
|
|
499
501
|
case 34 : // PAGEDOWN
|
|
500
|
-
movePage( 1 );
|
|
502
|
+
baseFunc.movePage( 1 );
|
|
501
503
|
focusCol = $t.p.iCol;
|
|
502
504
|
focusRow = $t.p.iRow;
|
|
503
505
|
if(focusRow > $t.rows.length-1) {
|
|
@@ -508,9 +510,9 @@ $.jgrid.extend({
|
|
|
508
510
|
break;
|
|
509
511
|
case 9 : //TAB
|
|
510
512
|
if (e.shiftKey) {
|
|
511
|
-
nextCell = getNextVisibleCell(-1, 0);
|
|
513
|
+
nextCell = baseFunc.getNextVisibleCell(-1, 0);
|
|
512
514
|
} else {
|
|
513
|
-
nextCell = getNextVisibleCell(1, 0);
|
|
515
|
+
nextCell = baseFunc.getNextVisibleCell(1, 0);
|
|
514
516
|
|
|
515
517
|
}
|
|
516
518
|
focusRow = nextCell.row;
|
|
@@ -19,7 +19,7 @@ if(!$.jgrid.hasOwnProperty("defaults")) {
|
|
|
19
19
|
$.jgrid.defaults = {};
|
|
20
20
|
}
|
|
21
21
|
$.extend($.jgrid,{
|
|
22
|
-
version : "5.8.
|
|
22
|
+
version : "5.8.7",
|
|
23
23
|
isNull : function( p, strict_eq) {
|
|
24
24
|
if(strict_eq && strict_eq === true) {
|
|
25
25
|
return p === null;
|
|
@@ -3080,6 +3080,7 @@ $.fn.jqGrid = function( pin ) {
|
|
|
3080
3080
|
rnc = ni ? getstyle(stylemodule, 'rownumBox', false, 'jqgrid-rownum') :"",
|
|
3081
3081
|
scc = sc ? getstyle(stylemodule, 'searchBox', false, '') :"",
|
|
3082
3082
|
mlc = gi ? getstyle(stylemodule, 'multiBox', false, 'cbox'):"";
|
|
3083
|
+
|
|
3083
3084
|
while (j<gl) {
|
|
3084
3085
|
xmlr = gxml[j];
|
|
3085
3086
|
rid = getId(xmlr,br+j);
|
|
@@ -3095,16 +3096,16 @@ $.fn.jqGrid = function( pin ) {
|
|
|
3095
3096
|
var iStartTrTag = rowData.length;
|
|
3096
3097
|
rowData.push("");
|
|
3097
3098
|
if( ni ) {
|
|
3098
|
-
rowData.push( addRowNum(0, j
|
|
3099
|
+
rowData.push( addRowNum(0, j, ts.p.page, ts.p.rowNum, rnc ) );
|
|
3099
3100
|
}
|
|
3100
3101
|
if( gi ) {
|
|
3101
|
-
rowData.push( addMulti(rid, ni, j+
|
|
3102
|
+
rowData.push( addMulti(rid, ni, j + 1, selr, mlc, xmlr) );
|
|
3102
3103
|
}
|
|
3103
3104
|
if( sc ){
|
|
3104
|
-
rowData.push( addSearch(rid, gi+ni, j+
|
|
3105
|
+
rowData.push( addSearch(rid, gi+ni, j + 1, scc) );
|
|
3105
3106
|
}
|
|
3106
3107
|
if( si ) {
|
|
3107
|
-
rowData.push( addSubGridCell.call(self, gi+ni+sc, j+
|
|
3108
|
+
rowData.push( addSubGridCell.call(self, gi+ni+sc, j + 1) );
|
|
3108
3109
|
}
|
|
3109
3110
|
if(xmlRd.repeatitems){
|
|
3110
3111
|
if (!F) { F=orderedCols(gi+si+ni+sc); }
|
|
@@ -3288,7 +3289,7 @@ $.fn.jqGrid = function( pin ) {
|
|
|
3288
3289
|
ts.p.lastpage = intNum($.jgrid.getAccessor(data,dReader.total), 1);
|
|
3289
3290
|
ts.p.records = intNum($.jgrid.getAccessor(data,dReader.records));
|
|
3290
3291
|
ts.p.userData = $.jgrid.getAccessor(data,dReader.userdata) || {};
|
|
3291
|
-
|
|
3292
|
+
|
|
3292
3293
|
if(si) {
|
|
3293
3294
|
addSubGridCell = $.jgrid.getMethod("addSubGridCell");
|
|
3294
3295
|
}
|
|
@@ -3303,7 +3304,7 @@ $.fn.jqGrid = function( pin ) {
|
|
|
3303
3304
|
drows = $.jgrid.getAccessor(data,dReader.root);
|
|
3304
3305
|
if ( $.jgrid.isNull(drows) && Array.isArray(data)) { drows = data; }
|
|
3305
3306
|
if (!drows) { drows = []; }
|
|
3306
|
-
len = drows.length; i=0;
|
|
3307
|
+
len = drows.length; i = 0;
|
|
3307
3308
|
if (len > 0 && ts.p.page <= 0) { ts.p.page = 1; }
|
|
3308
3309
|
if (adjust) { rn *= adjust+1; }
|
|
3309
3310
|
if(ts.p.datatype === "local" && !ts.p.deselectAfterSort) {
|
|
@@ -3344,16 +3345,16 @@ $.fn.jqGrid = function( pin ) {
|
|
|
3344
3345
|
var iStartTrTag = rowData.length;
|
|
3345
3346
|
rowData.push("");
|
|
3346
3347
|
if( ni ) {
|
|
3347
|
-
rowData.push( addRowNum(0, i
|
|
3348
|
+
rowData.push( addRowNum(0, i, ts.p.page, ts.p.rowNum, rnc ) );
|
|
3348
3349
|
}
|
|
3349
3350
|
if( gi ){
|
|
3350
|
-
rowData.push( addMulti(idr, ni, i+
|
|
3351
|
+
rowData.push( addMulti(idr, ni, i + 1, selr, mlc, cur) );
|
|
3351
3352
|
}
|
|
3352
3353
|
if( sc ){
|
|
3353
|
-
rowData.push( addSearch(idr, gi+ni, i+
|
|
3354
|
+
rowData.push( addSearch(idr, gi+ni, i + 1, scc) );
|
|
3354
3355
|
}
|
|
3355
3356
|
if( si ) {
|
|
3356
|
-
rowData.push( addSubGridCell.call(self ,gi+ni+sc,i+
|
|
3357
|
+
rowData.push( addSubGridCell.call(self ,gi+ni+sc,i + 1) );
|
|
3357
3358
|
}
|
|
3358
3359
|
rowReader=objectReader;
|
|
3359
3360
|
if (dReader.repeatitems) {
|
|
@@ -5063,6 +5064,46 @@ $.fn.jqGrid = function( pin ) {
|
|
|
5063
5064
|
$(ts).jqGrid("remapColumns", cols, true);
|
|
5064
5065
|
$(ts).jqGrid("setFrozenColumns");
|
|
5065
5066
|
},
|
|
5067
|
+
buildSubmenuItems = function (top, left, parent, id, cname) {
|
|
5068
|
+
var cm = ts.p.colModel, i,
|
|
5069
|
+
common = $.jgrid.styleUI[(ts.p.styleUI || 'jQueryUI')].common,
|
|
5070
|
+
styles = $.jgrid.styleUI[(ts.p.styleUI || 'jQueryUI')].colmenu,
|
|
5071
|
+
items = ts.p.colMenuCustom[id].items,
|
|
5072
|
+
str1 = '<ul id="col_menu" class="ui-search-menu ui-col-menu modal-content ' + common.shadow + '" role="menu" tabindex="0" style="left:'+left+'px;">';
|
|
5073
|
+
items.forEach((item)=>{
|
|
5074
|
+
if(!item.icon) {
|
|
5075
|
+
item.icon = styles.icon_new_item;
|
|
5076
|
+
}
|
|
5077
|
+
if(item.id =="separator") {
|
|
5078
|
+
str1 += '<li class="ui-menu-item divider" role="separator"></li>';
|
|
5079
|
+
} else {
|
|
5080
|
+
str1 += '<li class="ui-menu-item" role="presentation"><a class="g-menu-item" tabindex="0" role="menuitem" data-value="' + item.id + '"><table class="ui-common-table"><tr><td class="menu_icon"><span class="'+iconbase+' '+item.icon+'"></span></td><td class="menu_text">'+item.title+'</td></tr></table></a></li>';
|
|
5081
|
+
}
|
|
5082
|
+
});
|
|
5083
|
+
str1 += "</ul>";
|
|
5084
|
+
$(parent).append(str1);
|
|
5085
|
+
$("#col_menu").addClass("ui-menu " + colmenustyle.menu_widget);
|
|
5086
|
+
if(!$.jgrid.isElementInViewport($("#col_menu")[0])){
|
|
5087
|
+
$("#col_menu").css("left", - parseInt($("#column_menu").innerWidth(),10) +"px");
|
|
5088
|
+
}
|
|
5089
|
+
$("#col_menu > li > a").on("click", function(e) {
|
|
5090
|
+
var v = $(this).attr("data-value");
|
|
5091
|
+
//sobj = ts.grid.headers[index].el;
|
|
5092
|
+
var itm = items.find( (exec) => exec.id===v);
|
|
5093
|
+
if(itm) {
|
|
5094
|
+
if($.jgrid.isFunction(itm.funcname)) {
|
|
5095
|
+
itm.funcname.call(ts, cname);
|
|
5096
|
+
if(itm.closeOnRun) {
|
|
5097
|
+
$(this).remove();
|
|
5098
|
+
}
|
|
5099
|
+
}
|
|
5100
|
+
}
|
|
5101
|
+
}).hover(function(){
|
|
5102
|
+
$(this).addClass(hover);
|
|
5103
|
+
},function(){
|
|
5104
|
+
$(this).removeClass(hover);
|
|
5105
|
+
});
|
|
5106
|
+
},
|
|
5066
5107
|
buildColMenu = function( index, left, top ){
|
|
5067
5108
|
var menu_offset = $(grid.hDiv).height();
|
|
5068
5109
|
if($(".ui-search-toolbar",grid.hDiv)[0] && !isNaN($(".ui-search-toolbar",grid.hDiv).height())) {
|
|
@@ -5134,8 +5175,9 @@ $.fn.jqGrid = function( pin ) {
|
|
|
5134
5175
|
var exclude = menuitem.exclude.split(",");
|
|
5135
5176
|
exclude = $.map(exclude, function(item){ return $.jgrid.trim(item);});
|
|
5136
5177
|
if( menuitem.colname === cname || (menuitem.colname === '_all_' && $.inArray(cname, exclude) === -1)) {
|
|
5178
|
+
var subid = menuitem.items.length ? "submenu": menuitem.id;
|
|
5137
5179
|
strl = '<li class="ui-menu-item divider" role="separator"></li>';
|
|
5138
|
-
str = '<li class="ui-menu-item" role="presentation"><a class="g-menu-item" tabindex="0" role="menuitem" data-value="'+
|
|
5180
|
+
str = '<li class="ui-menu-item" role="presentation"><a id="'+menuitem.id+'" class="g-menu-item" tabindex="0" role="menuitem" data-value="' + subid + '"><table class="ui-common-table"><tr><td class="menu_icon"><span class="'+iconbase+' '+menuitem.icon+'"></span></td><td class="menu_text">'+menuitem.title+'</td></tr></table></a></li>';
|
|
5139
5181
|
if(menuitem.position === 'last') {
|
|
5140
5182
|
if(menuitem.separator) {
|
|
5141
5183
|
menuData.push( strl );
|
|
@@ -5176,6 +5218,11 @@ $.fn.jqGrid = function( pin ) {
|
|
|
5176
5218
|
top1 = $(this).parent().position().top - 5;
|
|
5177
5219
|
buildSearchBox(index, top1, left1, $(this).parent());
|
|
5178
5220
|
}
|
|
5221
|
+
if($(this).attr("data-value") === 'submenu') {
|
|
5222
|
+
left1 = $(this).parent().width()+8;
|
|
5223
|
+
top1 = $(this).parent().position().top - 5;
|
|
5224
|
+
buildSubmenuItems(top1, left1, $(this).parent(), $(this).attr("id"), cname);
|
|
5225
|
+
}
|
|
5179
5226
|
$(this).addClass(hover);
|
|
5180
5227
|
},
|
|
5181
5228
|
function(){ $(this).removeClass(hover); }
|
|
@@ -8179,7 +8226,8 @@ $.jgrid.extend({
|
|
|
8179
8226
|
position : "last",
|
|
8180
8227
|
closeOnRun : true,
|
|
8181
8228
|
exclude : "",
|
|
8182
|
-
id : null
|
|
8229
|
+
id : null,
|
|
8230
|
+
items : []
|
|
8183
8231
|
}, options ||{});
|
|
8184
8232
|
return this.each(function(){
|
|
8185
8233
|
options.colname = colname === 'all' ? "_all_" : colname;
|
|
@@ -584,6 +584,7 @@ $.jgrid.extend({
|
|
|
584
584
|
//startColumnName,
|
|
585
585
|
numberOfColumns,
|
|
586
586
|
titleText,
|
|
587
|
+
toolTip,
|
|
587
588
|
cVisibleColumns,
|
|
588
589
|
className,
|
|
589
590
|
colModel = ts.p.colModel,
|
|
@@ -631,8 +632,9 @@ $.jgrid.extend({
|
|
|
631
632
|
if (iCol >= 0) {
|
|
632
633
|
cghi = ts.p.colSpanHeader[iCol];
|
|
633
634
|
numberOfColumns = cghi.numberOfColumns;
|
|
634
|
-
titleText = cghi.titleText;
|
|
635
|
+
titleText = cghi.titleText || "";
|
|
635
636
|
className = cghi.className || "";
|
|
637
|
+
toolTip = cghi.toolTip || "";
|
|
636
638
|
// caclulate the number of visible columns from the next numberOfColumns columns
|
|
637
639
|
for (cVisibleColumns = 0, iCol = 0; iCol < numberOfColumns && (i + iCol < cml); iCol++) {
|
|
638
640
|
if (!colModel[i + iCol].hidden) {
|
|
@@ -647,13 +649,14 @@ $.jgrid.extend({
|
|
|
647
649
|
$("tr",$thead).eq(k+1).find("th").eq(i).attr("colspan", String(cVisibleColumns));
|
|
648
650
|
}
|
|
649
651
|
}
|
|
650
|
-
|
|
651
652
|
}
|
|
652
653
|
if (titleText) {
|
|
653
|
-
var fl = $th.find("div.ui-th-div")[0]
|
|
654
|
-
cghi.savedLabel = fl.
|
|
655
|
-
fl.
|
|
656
|
-
if
|
|
654
|
+
var fl = $th.find("div.ui-th-div")[0];
|
|
655
|
+
cghi.savedLabel = fl.innerHTML;
|
|
656
|
+
fl.innerHTML = titleText;
|
|
657
|
+
if(typeof toolTip === "string" && toolTip !== "") {
|
|
658
|
+
$th.attr("title", toolTip);
|
|
659
|
+
} else if (ts.p.headertitles) {
|
|
657
660
|
$th.attr("title", titleText);
|
|
658
661
|
}
|
|
659
662
|
}
|
|
@@ -710,8 +713,8 @@ $.jgrid.extend({
|
|
|
710
713
|
}
|
|
711
714
|
$(itm).attr("colspan","").removeClass( itm.className );
|
|
712
715
|
if($(n).hasClass('ui-jqgrid-labels')) {
|
|
713
|
-
fl = itm.find("div.ui-th-div")[0]
|
|
714
|
-
fl.
|
|
716
|
+
fl = itm.find("div.ui-th-div")[0];
|
|
717
|
+
fl.innerHTML = clitem.savedLabel;
|
|
715
718
|
}
|
|
716
719
|
for(k=1;k<clitem.numberOfColumns;k++) {
|
|
717
720
|
$("th", n).eq(cellInd+k).show();
|
|
@@ -737,6 +740,7 @@ $.jgrid.extend({
|
|
|
737
740
|
//startColumnName,
|
|
738
741
|
numberOfColumns,
|
|
739
742
|
titleText,
|
|
743
|
+
toolTip,
|
|
740
744
|
cVisibleColumns,
|
|
741
745
|
className,
|
|
742
746
|
colModel = ts.p.colModel,
|
|
@@ -787,6 +791,7 @@ $.jgrid.extend({
|
|
|
787
791
|
cghi = o.groupHeaders[iCol];
|
|
788
792
|
numberOfColumns = cghi.numberOfColumns;
|
|
789
793
|
titleText = cghi.titleText;
|
|
794
|
+
toolTip = cghi.toolTip || "";
|
|
790
795
|
className = cghi.className || "";
|
|
791
796
|
// caclulate the number of visible columns from the next numberOfColumns columns
|
|
792
797
|
for (cVisibleColumns = 0, iCol = 0; iCol < numberOfColumns && (i + iCol < cml); iCol++) {
|
|
@@ -805,7 +810,9 @@ $.jgrid.extend({
|
|
|
805
810
|
if(cVisibleColumns > 0) {
|
|
806
811
|
$colHeader.attr("colspan", String(cVisibleColumns));
|
|
807
812
|
}
|
|
808
|
-
if
|
|
813
|
+
if(typeof toolTip === "string" && toolTip !== "") {
|
|
814
|
+
$colHeader.attr("title", toolTip);
|
|
815
|
+
} else if (ts.p.headertitles) {
|
|
809
816
|
$colHeader.attr("title", $colHeader.text());
|
|
810
817
|
}
|
|
811
818
|
// hide if not a visible cols
|