mirror of
https://github.com/koalyptus/TableFilter.git
synced 2026-03-16 15:45:45 +01:00
branch: master
SHA: 0f3f94239f
range SHA: 91cd6a88c543...0f3f94239fbb
build id: 93757322
build number: 131
16647 lines
No EOL
665 KiB
JSON
16647 lines
No EOL
665 KiB
JSON
[
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/array.js",
|
|
"memberof": null,
|
|
"longname": "src/array.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 5,
|
|
"content": "/**\n * Array utilities\n */\n\nimport Str from './string';\n\nexport default {\n has: function(arr, val, caseSensitive){\n let sCase = caseSensitive===undefined ? false : caseSensitive;\n for (var i=0; i<arr.length; i++){\n if(Str.matchCase(arr[i].toString(), sCase) == val){\n return true;\n }\n }\n return false;\n }\n};\n"
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/cookie.js",
|
|
"memberof": null,
|
|
"longname": "src/cookie.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 5,
|
|
"content": "/**\n * Cookie utilities\n */\n\nexport default {\n\n write(name, value, hours){\n let expire = '';\n if(hours){\n expire = new Date((new Date()).getTime() + hours * 3600000);\n expire = '; expires=' + expire.toGMTString();\n }\n document.cookie = name + '=' + escape(value) + expire;\n },\n\n read(name){\n let cookieValue = '',\n search = name + '=';\n if(document.cookie.length > 0){\n let cookie = document.cookie,\n offset = cookie.indexOf(search);\n if(offset !== -1){\n offset += search.length;\n let end = cookie.indexOf(';', offset);\n if(end === -1){\n end = cookie.length;\n }\n cookieValue = unescape(cookie.substring(offset, end));\n }\n }\n return cookieValue;\n },\n\n remove(name){\n this.write(name, '', -1);\n },\n\n valueToArray(name, separator){\n if(!separator){\n separator = ',';\n }\n //reads the cookie\n let val = this.read(name);\n //creates an array with filters' values\n let arr = val.split(separator);\n return arr;\n },\n\n getValueByIndex(name, index, separator){\n if(!separator){\n separator = ',';\n }\n //reads the cookie\n let val = this.valueToArray(name, separator);\n return val[index];\n }\n\n};\n"
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/date.js",
|
|
"memberof": null,
|
|
"longname": "src/date.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 5,
|
|
"content": "/**\n * Date utilities\n */\n\nexport default {\n isValid(dateStr, format){\n if(!format) {\n format = 'DMY';\n }\n format = format.toUpperCase();\n if(format.length != 3) {\n if(format==='DDMMMYYYY'){\n let d = this.format(dateStr, format);\n dateStr = d.getDate() +'/'+ (d.getMonth()+1) +'/'+\n d.getFullYear();\n format = 'DMY';\n }\n }\n if((format.indexOf('M') === -1) || (format.indexOf('D') === -1) ||\n (format.indexOf('Y') === -1)){\n format = 'DMY';\n }\n let reg1, reg2;\n // If the year is first\n if(format.substring(0, 1) == 'Y') {\n reg1 = /^\\d{2}(\\-|\\/|\\.)\\d{1,2}\\1\\d{1,2}$/;\n reg2 = /^\\d{4}(\\-|\\/|\\.)\\d{1,2}\\1\\d{1,2}$/;\n } else if(format.substring(1, 2) == 'Y') { // If the year is second\n reg1 = /^\\d{1,2}(\\-|\\/|\\.)\\d{2}\\1\\d{1,2}$/;\n reg2 = /^\\d{1,2}(\\-|\\/|\\.)\\d{4}\\1\\d{1,2}$/;\n } else { // The year must be third\n reg1 = /^\\d{1,2}(\\-|\\/|\\.)\\d{1,2}\\1\\d{2}$/;\n reg2 = /^\\d{1,2}(\\-|\\/|\\.)\\d{1,2}\\1\\d{4}$/;\n }\n // If it doesn't conform to the right format (with either a 2 digit year\n // or 4 digit year), fail\n if(reg1.test(dateStr) === false && reg2.test(dateStr) === false) {\n return false;\n }\n // Split into 3 parts based on what the divider was\n let parts = dateStr.split(RegExp.$1);\n let mm, dd, yy;\n // Check to see if the 3 parts end up making a valid date\n if(format.substring(0, 1) === 'M'){\n mm = parts[0];\n } else if(format.substring(1, 2) === 'M'){\n mm = parts[1];\n } else {\n mm = parts[2];\n }\n if(format.substring(0, 1) === 'D'){\n dd = parts[0];\n } else if(format.substring(1, 2) === 'D'){\n dd = parts[1];\n } else {\n dd = parts[2];\n }\n if(format.substring(0, 1) === 'Y'){\n yy = parts[0];\n } else if(format.substring(1, 2) === 'Y'){\n yy = parts[1];\n } else {\n yy = parts[2];\n }\n if(parseInt(yy, 10) <= 50){\n yy = (parseInt(yy, 10) + 2000).toString();\n }\n if(parseInt(yy, 10) <= 99){\n yy = (parseInt(yy, 10) + 1900).toString();\n }\n let dt = new Date(\n parseInt(yy, 10), parseInt(mm, 10)-1, parseInt(dd, 10),\n 0, 0, 0, 0);\n if(parseInt(dd, 10) != dt.getDate()){\n return false;\n }\n if(parseInt(mm, 10)-1 != dt.getMonth()){\n return false;\n }\n return true;\n },\n format(dateStr, formatStr) {\n if(!formatStr){\n formatStr = 'DMY';\n }\n if(!dateStr || dateStr === ''){\n return new Date(1001, 0, 1);\n }\n let oDate;\n let parts;\n\n switch(formatStr.toUpperCase()){\n case 'DDMMMYYYY':\n parts = dateStr.replace(/[- \\/.]/g,' ').split(' ');\n oDate = new Date(y2kDate(parts[2]),mmm2mm(parts[1])-1,parts[0]);\n break;\n case 'DMY':\n /* jshint ignore:start */\n parts = dateStr.replace(\n /^(0?[1-9]|[12][0-9]|3[01])([- \\/.])(0?[1-9]|1[012])([- \\/.])((\\d\\d)?\\d\\d)$/,'$1 $3 $5').split(' ');\n oDate = new Date(y2kDate(parts[2]),parts[1]-1,parts[0]);\n /* jshint ignore:end */\n break;\n case 'MDY':\n /* jshint ignore:start */\n parts = dateStr.replace(\n /^(0?[1-9]|1[012])([- \\/.])(0?[1-9]|[12][0-9]|3[01])([- \\/.])((\\d\\d)?\\d\\d)$/,'$1 $3 $5').split(' ');\n oDate = new Date(y2kDate(parts[2]),parts[0]-1,parts[1]);\n /* jshint ignore:end */\n break;\n case 'YMD':\n /* jshint ignore:start */\n parts = dateStr.replace(/^((\\d\\d)?\\d\\d)([- \\/.])(0?[1-9]|1[012])([- \\/.])(0?[1-9]|[12][0-9]|3[01])$/,'$1 $4 $6').split(' ');\n oDate = new Date(y2kDate(parts[0]),parts[1]-1,parts[2]);\n /* jshint ignore:end */\n break;\n default: //in case format is not correct\n /* jshint ignore:start */\n parts = dateStr.replace(/^(0?[1-9]|[12][0-9]|3[01])([- \\/.])(0?[1-9]|1[012])([- \\/.])((\\d\\d)?\\d\\d)$/,'$1 $3 $5').split(' ');\n oDate = new Date(y2kDate(parts[2]),parts[1]-1,parts[0]);\n /* jshint ignore:end */\n break;\n }\n return oDate;\n }\n};\n\nfunction y2kDate(yr){\n if(yr === undefined){\n return 0;\n }\n if(yr.length>2){\n return yr;\n }\n let y;\n //>50 belong to 1900\n if(yr <= 99 && yr>50){\n y = '19' + yr;\n }\n //<50 belong to 2000\n if(yr<50 || yr === '00'){\n y = '20' + yr;\n }\n return y;\n}\n\nfunction mmm2mm(mmm){\n if(mmm === undefined){\n return 0;\n }\n let mondigit;\n let MONTH_NAMES = [\n 'january','february','march','april','may','june','july',\n 'august','september','october','november','december',\n 'jan','feb','mar','apr','may','jun','jul','aug','sep','oct',\n 'nov','dec'\n ];\n for(let m_i=0; m_i < MONTH_NAMES.length; m_i++){\n let month_name = MONTH_NAMES[m_i];\n if (mmm.toLowerCase() === month_name){\n mondigit = m_i+1;\n break;\n }\n }\n if(mondigit > 11 || mondigit < 23){\n mondigit = mondigit - 12;\n }\n if(mondigit < 1 || mondigit > 12){\n return 0;\n }\n return mondigit;\n}\n"
|
|
},
|
|
{
|
|
"kind": "function",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "y2kDate",
|
|
"memberof": "src/date.js",
|
|
"longname": "src/date.js~y2kDate",
|
|
"access": null,
|
|
"export": false,
|
|
"importPath": "tablefilter/src/date.js",
|
|
"importStyle": null,
|
|
"description": null,
|
|
"lineNumber": 128,
|
|
"undocument": true,
|
|
"params": [
|
|
{
|
|
"name": "yr",
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
],
|
|
"return": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "function",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "mmm2mm",
|
|
"memberof": "src/date.js",
|
|
"longname": "src/date.js~mmm2mm",
|
|
"access": null,
|
|
"export": false,
|
|
"importPath": "tablefilter/src/date.js",
|
|
"importStyle": null,
|
|
"description": null,
|
|
"lineNumber": 147,
|
|
"undocument": true,
|
|
"params": [
|
|
{
|
|
"name": "mmm",
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
],
|
|
"return": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/dom.js",
|
|
"memberof": null,
|
|
"longname": "src/dom.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 5,
|
|
"content": "/**\n * DOM utilities\n */\n\nexport default {\n\n /**\n * Returns text + text of children of given node\n * @param {NodeElement} node\n * @return {String}\n */\n getText(node){\n let s = node.textContent || node.innerText ||\n node.innerHTML.replace(/<[^<>]+>/g, '');\n s = s.replace(/^\\s+/, '').replace(/\\s+$/, '');\n return s;\n },\n\n /**\n * Creates an html element with given collection of attributes\n * @param {String} tag a string of the html tag to create\n * @param {Array} an undetermined number of arrays containing the with 2\n * items, the attribute name and its value ['id','myId']\n * @return {Object} created element\n */\n create(tag){\n if(!tag || tag===''){\n return;\n }\n\n let el = document.createElement(tag),\n args = arguments;\n\n if(args.length > 1){\n for(let i=0; i<args.length; i++){\n let argtype = typeof args[i];\n if(argtype.toLowerCase() === 'object' && args[i].length === 2){\n el.setAttribute(args[i][0], args[i][1]);\n }\n }\n }\n return el;\n },\n\n /**\n * Returns a text node with given text\n * @param {String} txt\n * @return {Object}\n */\n text(txt){\n return document.createTextNode(txt);\n },\n\n hasClass(ele, cls){\n if(!ele){ return false; }\n\n if(supportsClassList()){\n return ele.classList.contains(cls);\n }\n return ele.className.match(new RegExp('(\\\\s|^)'+ cls +'(\\\\s|$)'));\n },\n\n addClass(ele, cls){\n if(!ele){ return; }\n\n if(supportsClassList()){\n ele.classList.add(cls);\n return;\n }\n\n if(ele.className === ''){\n ele.className = cls;\n }\n else if(!this.hasClass(ele, cls)){\n ele.className += ' ' + cls;\n }\n },\n\n removeClass(ele, cls){\n if(!ele){ return; }\n\n if(supportsClassList()){\n ele.classList.remove(cls);\n return;\n }\n let reg = new RegExp('(\\\\s|^)'+ cls +'(\\\\s|$)', 'g');\n ele.className = ele.className.replace(reg, '');\n },\n\n /**\n * Creates and returns an option element\n * @param {String} text option text\n * @param {String} value option value\n * @param {Boolean} isSel whether option is selected\n * @return {Object} option element\n */\n createOpt(text, value, isSel){\n let isSelected = isSel ? true : false,\n opt = isSelected ?\n this.create('option', ['value',value], ['selected','true']) :\n this.create('option', ['value',value]);\n opt.appendChild(this.text(text));\n return opt;\n },\n\n /**\n * Creates and returns a checklist item\n * @param {Number} chkIndex index of check item\n * @param {String} chkValue check item value\n * @param {String} labelText check item label text\n * @return {Object} li DOM element\n */\n createCheckItem(chkIndex, chkValue, labelText){\n let li = this.create('li'),\n label = this.create('label', ['for', chkIndex]),\n check = this.create('input',\n ['id', chkIndex],\n ['name', chkIndex],\n ['type', 'checkbox'],\n ['value', chkValue]\n );\n label.appendChild(check);\n label.appendChild(this.text(labelText));\n li.appendChild(label);\n li.label = label;\n li.check = check;\n return li;\n },\n\n id(_id){\n return document.getElementById(_id);\n },\n\n tag(o, tagname){\n return o.getElementsByTagName(tagname);\n }\n};\n\n// HTML5 classList API\nfunction supportsClassList(){\n return document.documentElement.classList;\n}\n"
|
|
},
|
|
{
|
|
"kind": "function",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "supportsClassList",
|
|
"memberof": "src/dom.js",
|
|
"longname": "src/dom.js~supportsClassList",
|
|
"access": null,
|
|
"export": false,
|
|
"importPath": "tablefilter/src/dom.js",
|
|
"importStyle": null,
|
|
"description": null,
|
|
"lineNumber": 140,
|
|
"undocument": true,
|
|
"params": [],
|
|
"return": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/event.js",
|
|
"memberof": null,
|
|
"longname": "src/event.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 5,
|
|
"content": "/**\n * DOM event utilities\n */\n\nexport default {\n add(obj, type, func, capture){\n if(obj.addEventListener){\n obj.addEventListener(type, func, capture);\n }\n else if(obj.attachEvent){\n obj.attachEvent('on'+type, func);\n } else {\n obj['on'+type] = func;\n }\n },\n remove(obj, type, func, capture){\n if(obj.detachEvent){\n obj.detachEvent('on'+type,func);\n }\n else if(obj.removeEventListener){\n obj.removeEventListener(type, func, capture);\n } else {\n obj['on'+type] = null;\n }\n },\n stop(evt){\n if(!evt){\n evt = window.event;\n }\n if(evt.stopPropagation){\n evt.stopPropagation();\n } else {\n evt.cancelBubble = true;\n }\n },\n cancel(evt){\n if(!evt){\n evt = window.event;\n }\n if(evt.preventDefault) {\n evt.preventDefault();\n } else {\n evt.returnValue = false;\n }\n },\n target(evt){\n return (evt && evt.target) || (window.event && window.event.srcElement);\n },\n keyCode(evt){\n return evt.charCode ? evt.charCode :\n (evt.keyCode ? evt.keyCode: (evt.which ? evt.which : 0));\n }\n};\n"
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/extensions/advancedGrid/adapterEzEditTable.js",
|
|
"memberof": null,
|
|
"longname": "src/extensions/advancedGrid/adapterEzEditTable.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1,
|
|
"content": "import Dom from '../../dom';\n\nexport default class AdapterEzEditTable {\n /**\n * Adapter module for ezEditTable, an external library providing advanced\n * grid features (selection and edition):\n * http://codecanyon.net/item/ezedittable-enhance-html-tables/2425123?ref=koalyptus\n *\n * @param {Object} tf TableFilter instance\n */\n constructor(tf, cfg){\n // ezEditTable config\n this.initialized = false;\n this.desc = cfg.description || 'ezEditTable adapter';\n this.filename = cfg.filename || 'ezEditTable.js';\n this.vendorPath = cfg.vendor_path;\n this.loadStylesheet = Boolean(cfg.load_stylesheet);\n this.stylesheet = cfg.stylesheet || this.vendorPath + 'ezEditTable.css';\n this.stylesheetName = cfg.stylesheet_name || 'ezEditTableCss';\n this.err = 'Failed to instantiate EditTable object.\\n\"ezEditTable\" ' +\n 'dependency not found.';\n // Enable the ezEditTable's scroll into view behaviour if grid layout on\n cfg.scroll_into_view = cfg.scroll_into_view===false ?\n false : tf.gridLayout;\n\n this._ezEditTable = null;\n this.cfg = cfg;\n this.tf = tf;\n }\n\n /**\n * Conditionally load ezEditTable library and set advanced grid\n * @return {[type]} [description]\n */\n init(){\n var tf = this.tf;\n if(window.EditTable){\n this._setAdvancedGrid();\n } else {\n var path = this.vendorPath + this.filename;\n tf.import(this.filename, path, ()=> { this._setAdvancedGrid(); });\n }\n if(this.loadStylesheet && !tf.isImported(this.stylesheet, 'link')){\n tf.import(this.stylesheetName, this.stylesheet, null, 'link');\n }\n }\n\n /**\n * Instantiate ezEditTable component for advanced grid features\n */\n _setAdvancedGrid(){\n var tf = this.tf;\n\n //start row for EditTable constructor needs to be calculated\n var startRow,\n cfg = this.cfg,\n thead = Dom.tag(tf.tbl, 'thead');\n\n //if thead exists and startRow not specified, startRow is calculated\n //automatically by EditTable\n if(thead.length > 0 && !cfg.startRow){\n startRow = undefined;\n }\n //otherwise startRow config property if any or TableFilter refRow\n else{\n startRow = cfg.startRow || tf.refRow;\n }\n\n cfg.base_path = cfg.base_path || tf.basePath + 'ezEditTable/';\n var editable = cfg.editable;\n var selectable = cfg.selection;\n\n if(selectable){\n cfg.default_selection = cfg.default_selection || 'row';\n }\n //CSS Styles\n cfg.active_cell_css = cfg.active_cell_css || 'ezETSelectedCell';\n\n var _lastValidRowIndex = 0;\n var _lastRowIndex = 0;\n\n if(selectable){\n //Row navigation needs to be calculated according to TableFilter's\n //validRowsIndex array\n var onAfterSelection = function(et, selectedElm, e){\n var slc = et.Selection;\n //Next valid filtered row needs to be selected\n var doSelect = function(nextRowIndex){\n if(et.defaultSelection === 'row'){\n slc.SelectRowByIndex(nextRowIndex);\n } else {\n et.ClearSelections();\n var cellIndex = selectedElm.cellIndex,\n row = tf.tbl.rows[nextRowIndex];\n if(et.defaultSelection === 'both'){\n slc.SelectRowByIndex(nextRowIndex);\n }\n if(row){\n slc.SelectCell(row.cells[cellIndex]);\n }\n }\n //Table is filtered\n if(tf.validRowsIndex.length !== tf.getRowsNb()){\n var r = tf.tbl.rows[nextRowIndex];\n if(r){\n r.scrollIntoView(false);\n }\n if(cell){\n if(cell.cellIndex === (tf.getCellsNb()-1) &&\n tf.gridLayout){\n tf.tblCont.scrollLeft = 100000000;\n }\n else if(cell.cellIndex===0 && tf.gridLayout){\n tf.tblCont.scrollLeft = 0;\n } else {\n cell.scrollIntoView(false);\n }\n }\n }\n };\n\n //table is not filtered\n if(!tf.validRowsIndex){\n return;\n }\n var validIndexes = tf.validRowsIndex,\n validIdxLen = validIndexes.length,\n row = et.defaultSelection !== 'row' ?\n selectedElm.parentNode : selectedElm,\n //cell for default_selection = 'both' or 'cell'\n cell = selectedElm.nodeName==='TD' ? selectedElm : null,\n keyCode = e !== undefined ? et.Event.GetKey(e) : 0,\n isRowValid = validIndexes.indexOf(row.rowIndex) !== -1,\n nextRowIndex,\n paging = tf.feature('paging'),\n //pgup/pgdown keys\n d = (keyCode === 34 || keyCode === 33 ?\n (paging && paging.pagingLength || et.nbRowsPerPage) :1);\n\n //If next row is not valid, next valid filtered row needs to be\n //calculated\n if(!isRowValid){\n //Selection direction up/down\n if(row.rowIndex>_lastRowIndex){\n //last row\n if(row.rowIndex >= validIndexes[validIdxLen-1]){\n nextRowIndex = validIndexes[validIdxLen-1];\n } else {\n var calcRowIndex = (_lastValidRowIndex + d);\n if(calcRowIndex > (validIdxLen-1)){\n nextRowIndex = validIndexes[validIdxLen-1];\n } else {\n nextRowIndex = validIndexes[calcRowIndex];\n }\n }\n } else{\n //first row\n if(row.rowIndex <= validIndexes[0]){\n nextRowIndex = validIndexes[0];\n } else {\n var v = validIndexes[_lastValidRowIndex - d];\n nextRowIndex = v ? v : validIndexes[0];\n }\n }\n _lastRowIndex = row.rowIndex;\n doSelect(nextRowIndex);\n } else {\n //If filtered row is valid, special calculation for\n //pgup/pgdown keys\n if(keyCode!==34 && keyCode!==33){\n _lastValidRowIndex = validIndexes.indexOf(row.rowIndex);\n _lastRowIndex = row.rowIndex;\n } else {\n if(keyCode === 34){ //pgdown\n //last row\n if((_lastValidRowIndex + d) <= (validIdxLen-1)){\n nextRowIndex = validIndexes[\n _lastValidRowIndex + d];\n } else {\n nextRowIndex = [validIdxLen-1];\n }\n } else { //pgup\n //first row\n if((_lastValidRowIndex - d) <= validIndexes[0]){\n nextRowIndex = validIndexes[0];\n } else {\n nextRowIndex = validIndexes[\n _lastValidRowIndex - d];\n }\n }\n _lastRowIndex = nextRowIndex;\n _lastValidRowIndex = validIndexes.indexOf(nextRowIndex);\n doSelect(nextRowIndex);\n }\n }\n };\n\n //Page navigation has to be enforced whenever selected row is out of\n //the current page range\n var onBeforeSelection = function(et, selectedElm){\n var row = et.defaultSelection !== 'row' ?\n selectedElm.parentNode : selectedElm;\n if(tf.paging){\n if(tf.feature('paging').nbPages > 1){\n var paging = tf.feature('paging');\n //page length is re-assigned in case it has changed\n et.nbRowsPerPage = paging.pagingLength;\n var validIndexes = tf.validRowsIndex,\n validIdxLen = validIndexes.length,\n pagingEndRow = parseInt(paging.startPagingRow, 10) +\n parseInt(paging.pagingLength, 10);\n var rowIndex = row.rowIndex;\n\n if((rowIndex === validIndexes[validIdxLen-1]) &&\n paging.currentPageNb!==paging.nbPages){\n paging.setPage('last');\n }\n else if((rowIndex == validIndexes[0]) &&\n paging.currentPageNb!==1){\n paging.setPage('first');\n }\n else if(rowIndex > validIndexes[pagingEndRow-1] &&\n rowIndex < validIndexes[validIdxLen-1]){\n paging.setPage('next');\n }\n else if(\n rowIndex < validIndexes[paging.startPagingRow] &&\n rowIndex > validIndexes[0]){\n paging.setPage('previous');\n }\n }\n }\n };\n\n //Selected row needs to be visible when paging is activated\n if(tf.paging){\n tf.feature('paging').onAfterChangePage = function(paging){\n var advGrid = paging.tf.extension('advancedGrid');\n var et = advGrid._ezEditTable;\n var slc = et.Selection;\n var row = slc.GetActiveRow();\n if(row){\n row.scrollIntoView(false);\n }\n var cell = slc.GetActiveCell();\n if(cell){\n cell.scrollIntoView(false);\n }\n };\n }\n\n //Rows navigation when rows are filtered is performed with the\n //EditTable row selection callback events\n if(cfg.default_selection==='row'){\n var fnB = cfg.on_before_selected_row;\n cfg.on_before_selected_row = function(){\n onBeforeSelection(arguments[0], arguments[1], arguments[2]);\n if(fnB){\n fnB.call(\n null, arguments[0], arguments[1], arguments[2]);\n }\n };\n var fnA = cfg.on_after_selected_row;\n cfg.on_after_selected_row = function(){\n onAfterSelection(arguments[0], arguments[1], arguments[2]);\n if(fnA){\n fnA.call(\n null, arguments[0], arguments[1], arguments[2]);\n }\n };\n } else {\n var fnD = cfg.on_before_selected_cell;\n cfg.on_before_selected_cell = function(){\n onBeforeSelection(arguments[0], arguments[1], arguments[2]);\n if(fnD){\n fnD.call(\n null, arguments[0], arguments[1], arguments[2]);\n }\n };\n var fnC = cfg.on_after_selected_cell;\n cfg.on_after_selected_cell = function(){\n onAfterSelection(arguments[0], arguments[1], arguments[2]);\n if(fnC){\n fnC.call(\n null, arguments[0], arguments[1], arguments[2]);\n }\n };\n }\n }\n if(editable){\n //Added or removed rows, TF rows number needs to be re-calculated\n var fnE = cfg.on_added_dom_row;\n cfg.on_added_dom_row = function(){\n tf.nbFilterableRows++;\n if(!tf.paging){\n tf.feature('rowsCounter').refresh();\n } else {\n tf.nbRows++;\n tf.nbVisibleRows++;\n tf.nbFilterableRows++;\n tf.paging=false;\n tf.feature('paging').destroy();\n tf.feature('paging').reset();\n }\n if(tf.alternateRows){\n tf.feature('alternateRows').init();\n }\n if(fnE){\n fnE.call(null, arguments[0], arguments[1], arguments[2]);\n }\n };\n if(cfg.actions && cfg.actions['delete']){\n var fnF = cfg.actions['delete'].on_after_submit;\n cfg.actions['delete'].on_after_submit = function(){\n tf.nbFilterableRows--;\n if(!tf.paging){\n tf.feature('rowsCounter').refresh();\n } else {\n tf.nbRows--;\n tf.nbVisibleRows--;\n tf.nbFilterableRows--;\n tf.paging=false;\n tf.feature('paging').destroy();\n tf.feature('paging').reset(false);\n }\n if(tf.alternateRows){\n tf.feature('alternateRows').init();\n }\n if(fnF){\n fnF.call(null, arguments[0], arguments[1]);\n }\n };\n }\n }\n\n try{\n this._ezEditTable = new EditTable(tf.id, cfg, startRow);\n this._ezEditTable.Init();\n } catch(e) { throw new Error(this.err); }\n\n this.initialized = true;\n }\n\n /**\n * Reset advanced grid when previously removed\n */\n reset(){\n var ezEditTable = this._ezEditTable;\n if(ezEditTable){\n if(this.cfg.selection){\n ezEditTable.Selection.Set();\n }\n if(this.cfg.editable){\n ezEditTable.Editable.Set();\n }\n }\n }\n\n /**\n * Remove advanced grid\n */\n destroy(){\n var ezEditTable = this._ezEditTable;\n if(ezEditTable){\n if(this.cfg.selection){\n ezEditTable.Selection.ClearSelections();\n ezEditTable.Selection.Remove();\n }\n if(this.cfg.editable){\n ezEditTable.Editable.Remove();\n }\n }\n this.initialized = false;\n }\n}\n"
|
|
},
|
|
{
|
|
"kind": "class",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "AdapterEzEditTable",
|
|
"memberof": "src/extensions/advancedGrid/adapterEzEditTable.js",
|
|
"longname": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable",
|
|
"access": null,
|
|
"export": true,
|
|
"importPath": "tablefilter/src/extensions/advancedGrid/adapterEzEditTable.js",
|
|
"importStyle": "AdapterEzEditTable",
|
|
"description": null,
|
|
"lineNumber": 3,
|
|
"undocument": true,
|
|
"interface": false
|
|
},
|
|
{
|
|
"kind": "constructor",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "constructor",
|
|
"memberof": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable",
|
|
"longname": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable#constructor",
|
|
"access": null,
|
|
"description": "Adapter module for ezEditTable, an external library providing advanced\ngrid features (selection and edition):\nhttp://codecanyon.net/item/ezedittable-enhance-html-tables/2425123?ref=koalyptus",
|
|
"lineNumber": 11,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "tf",
|
|
"description": "TableFilter instance"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable",
|
|
"longname": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 13,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "desc",
|
|
"memberof": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable",
|
|
"longname": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable#desc",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 14,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "filename",
|
|
"memberof": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable",
|
|
"longname": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable#filename",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 15,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "vendorPath",
|
|
"memberof": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable",
|
|
"longname": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable#vendorPath",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 16,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "loadStylesheet",
|
|
"memberof": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable",
|
|
"longname": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable#loadStylesheet",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 17,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "stylesheet",
|
|
"memberof": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable",
|
|
"longname": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable#stylesheet",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 18,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "stylesheetName",
|
|
"memberof": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable",
|
|
"longname": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable#stylesheetName",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 19,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "err",
|
|
"memberof": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable",
|
|
"longname": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable#err",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 20,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "_ezEditTable",
|
|
"memberof": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable",
|
|
"longname": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable#_ezEditTable",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 26,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "cfg",
|
|
"memberof": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable",
|
|
"longname": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable#cfg",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 27,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tf",
|
|
"memberof": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable",
|
|
"longname": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable#tf",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 28,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "init",
|
|
"memberof": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable",
|
|
"longname": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable#init",
|
|
"access": null,
|
|
"description": "Conditionally load ezEditTable library and set advanced grid",
|
|
"lineNumber": 35,
|
|
"params": [],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"[type]"
|
|
],
|
|
"spread": false,
|
|
"description": "[description]"
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "_setAdvancedGrid",
|
|
"memberof": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable",
|
|
"longname": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable#_setAdvancedGrid",
|
|
"access": null,
|
|
"description": "Instantiate ezEditTable component for advanced grid features",
|
|
"lineNumber": 51,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "_ezEditTable",
|
|
"memberof": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable",
|
|
"longname": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable#_ezEditTable",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 337,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable",
|
|
"longname": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 341,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "reset",
|
|
"memberof": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable",
|
|
"longname": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable#reset",
|
|
"access": null,
|
|
"description": "Reset advanced grid when previously removed",
|
|
"lineNumber": 347,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "destroy",
|
|
"memberof": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable",
|
|
"longname": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable#destroy",
|
|
"access": null,
|
|
"description": "Remove advanced grid",
|
|
"lineNumber": 362,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable",
|
|
"longname": "src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 373,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/extensions/advancedGrid/advancedGrid.js",
|
|
"memberof": null,
|
|
"longname": "src/extensions/advancedGrid/advancedGrid.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1,
|
|
"content": "import AdapterEzEditTable from './adapterEzEditTable';\n\nexport default AdapterEzEditTable;"
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/extensions/colOps/colOps.js",
|
|
"memberof": null,
|
|
"longname": "src/extensions/colOps/colOps.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1,
|
|
"content": "import Dom from '../../dom';\nimport Str from '../../string';\nimport Types from '../../types';\n\nexport default class ColOps{\n\n /**\n * Column calculations\n * @param {Object} tf TableFilter instance\n */\n constructor(tf, opts) {\n\n //calls function before col operation\n this.onBeforeOperation = Types.isFn(opts.on_before_operation) ?\n opts.on_before_operation : null;\n //calls function after col operation\n this.onAfterOperation = Types.isFn(opts.on_after_operation) ?\n opts.on_after_operation : null;\n\n this.opts = opts;\n this.tf = tf;\n }\n\n init(){\n this.calc();\n }\n\n /**\n * Calculates columns' values\n * Configuration options are stored in 'opts' property\n * - 'id' contains ids of elements showing result (array)\n * - 'col' contains the columns' indexes (array)\n * - 'operation' contains operation type (array, values: 'sum', 'mean',\n * 'min', 'max', 'median', 'q1', 'q3')\n * - 'write_method' array defines which method to use for displaying the\n * result (innerHTML, setValue, createTextNode) - default: 'innerHTML'\n * - 'tot_row_index' defines in which row results are displayed\n * (integers array)\n *\n * - changes made by Nuovella:\n * (1) optimized the routine (now it will only process each column once),\n * (2) added calculations for the median, lower and upper quartile.\n */\n calc() {\n var tf = this.tf;\n if(!tf.isFirstLoad && !tf.hasGrid()){\n return;\n }\n\n if(this.onBeforeOperation){\n this.onBeforeOperation.call(null, tf);\n }\n\n var opts = this.opts,\n labelId = opts.id,\n colIndex = opts.col,\n operation = opts.operation,\n outputType = opts.write_method,\n totRowIndex = opts.tot_row_index,\n excludeRow = opts.exclude_row,\n decimalPrecision = Types.isUndef(opts.decimal_precision) ?\n 2 : opts.decimal_precision;\n\n //nuovella: determine unique list of columns to operate on\n var ucolIndex = [],\n ucolMax = 0;\n ucolIndex[ucolMax] = colIndex[0];\n\n for(var ii=1; ii<colIndex.length; ii++){\n var saved = 0;\n //see if colIndex[ii] is already in the list of unique indexes\n for(var jj=0; jj<=ucolMax; jj++){\n if(ucolIndex[jj] === colIndex[ii]){\n saved = 1;\n }\n }\n //if not saved then, save the index;\n if (saved === 0){\n ucolMax++;\n ucolIndex[ucolMax] = colIndex[ii];\n }\n }\n\n if(Str.lower(typeof labelId)=='object' &&\n Str.lower(typeof colIndex)=='object' &&\n Str.lower(typeof operation)=='object'){\n var rows = tf.tbl.rows,\n colvalues = [];\n\n for(var ucol=0; ucol<=ucolMax; ucol++){\n //this retrieves col values\n //use ucolIndex because we only want to pass through this loop\n //once for each column get the values in this unique column\n colvalues.push(\n tf.getColValues(ucolIndex[ucol], false, true, excludeRow));\n\n //next: calculate all operations for this column\n var result,\n nbvalues=0,\n temp,\n meanValue=0,\n sumValue=0,\n minValue=null,\n maxValue=null,\n q1Value=null,\n medValue=null,\n q3Value=null,\n meanFlag=0,\n sumFlag=0,\n minFlag=0,\n maxFlag=0,\n q1Flag=0,\n medFlag=0,\n q3Flag=0,\n theList=[],\n opsThisCol=[],\n decThisCol=[],\n labThisCol=[],\n oTypeThisCol=[],\n mThisCol=-1;\n\n for(var k=0; k<colIndex.length; k++){\n if(colIndex[k] === ucolIndex[ucol]){\n mThisCol++;\n opsThisCol[mThisCol]=Str.lower(operation[k]);\n decThisCol[mThisCol]=decimalPrecision[k];\n labThisCol[mThisCol]=labelId[k];\n oTypeThisCol = outputType !== undefined &&\n Str.lower(typeof outputType)==='object' ?\n outputType[k] : null;\n\n switch(opsThisCol[mThisCol]){\n case 'mean':\n meanFlag=1;\n break;\n case 'sum':\n sumFlag=1;\n break;\n case 'min':\n minFlag=1;\n break;\n case 'max':\n maxFlag=1;\n break;\n case 'median':\n medFlag=1;\n break;\n case 'q1':\n q1Flag=1;\n break;\n case 'q3':\n q3Flag=1;\n break;\n }\n }\n }\n\n for(var j=0; j<colvalues[ucol].length; j++){\n //sort the list for calculation of median and quartiles\n if((q1Flag==1)|| (q3Flag==1) || (medFlag==1)){\n if (j<colvalues[ucol].length -1){\n for(k=j+1; k<colvalues[ucol].length; k++) {\n if(eval(colvalues[ucol][k]) <\n eval(colvalues[ucol][j])){\n temp = colvalues[ucol][j];\n colvalues[ucol][j] = colvalues[ucol][k];\n colvalues[ucol][k] = temp;\n }\n }\n }\n }\n var cvalue = parseFloat(colvalues[ucol][j]);\n theList[j] = parseFloat(cvalue);\n\n if(!isNaN(cvalue)){\n nbvalues++;\n if(sumFlag===1 || meanFlag===1){\n sumValue += parseFloat( cvalue );\n }\n if(minFlag===1){\n if(minValue===null){\n minValue = parseFloat( cvalue );\n } else{\n minValue = parseFloat( cvalue ) < minValue ?\n parseFloat( cvalue ): minValue;\n }\n }\n if(maxFlag===1){\n if (maxValue===null){\n maxValue = parseFloat( cvalue );\n } else {\n maxValue = parseFloat( cvalue ) > maxValue ?\n parseFloat( cvalue ): maxValue;\n }\n }\n }\n }//for j\n if(meanFlag===1){\n meanValue = sumValue/nbvalues;\n }\n if(medFlag===1){\n var aux = 0;\n if(nbvalues%2 === 1){\n aux = Math.floor(nbvalues/2);\n medValue = theList[aux];\n } else{\n medValue =\n (theList[nbvalues/2] + theList[((nbvalues/2)-1)])/2;\n }\n }\n var posa;\n if(q1Flag===1){\n posa=0.0;\n posa = Math.floor(nbvalues/4);\n if(4*posa == nbvalues){\n q1Value = (theList[posa-1] + theList[posa])/2;\n } else {\n q1Value = theList[posa];\n }\n }\n if (q3Flag===1){\n posa=0.0;\n var posb=0.0;\n posa = Math.floor(nbvalues/4);\n if (4*posa === nbvalues){\n posb = 3*posa;\n q3Value = (theList[posb] + theList[posb-1])/2;\n } else {\n q3Value = theList[nbvalues-posa-1];\n }\n }\n\n for(var i=0; i<=mThisCol; i++){\n switch( opsThisCol[i] ){\n case 'mean':\n result=meanValue;\n break;\n case 'sum':\n result=sumValue;\n break;\n case 'min':\n result=minValue;\n break;\n case 'max':\n result=maxValue;\n break;\n case 'median':\n result=medValue;\n break;\n case 'q1':\n result=q1Value;\n break;\n case 'q3':\n result=q3Value;\n break;\n }\n\n var precision = !isNaN(decThisCol[i]) ? decThisCol[i] : 2;\n\n //if outputType is defined\n if(oTypeThisCol && result){\n result = result.toFixed( precision );\n\n if(Dom.id(labThisCol[i])){\n switch( Str.lower(oTypeThisCol) ){\n case 'innerhtml':\n if (isNaN(result) || !isFinite(result) ||\n nbvalues===0){\n Dom.id(labThisCol[i]).innerHTML = '.';\n } else{\n Dom.id(labThisCol[i]).innerHTML= result;\n }\n break;\n case 'setvalue':\n Dom.id( labThisCol[i] ).value = result;\n break;\n case 'createtextnode':\n var oldnode = Dom.id(labThisCol[i])\n .firstChild;\n var txtnode = Dom.text(result);\n Dom.id(labThisCol[i])\n .replaceChild(txtnode, oldnode);\n break;\n }//switch\n }\n } else {\n try{\n if(isNaN(result) || !isFinite(result) ||\n nbvalues===0){\n Dom.id(labThisCol[i]).innerHTML = '.';\n } else {\n Dom.id(labThisCol[i]).innerHTML =\n result.toFixed(precision);\n }\n } catch(e) {}//catch\n }//else\n }//for i\n\n // row(s) with result are always visible\n var totRow = totRowIndex && totRowIndex[ucol] ?\n rows[totRowIndex[ucol]] : null;\n if(totRow){\n totRow.style.display = '';\n }\n }//for ucol\n }//if typeof\n\n if(this.onAfterOperation){\n this.onAfterOperation.call(null, tf);\n }\n }\n\n destroy(){}\n\n}\n"
|
|
},
|
|
{
|
|
"kind": "class",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "ColOps",
|
|
"memberof": "src/extensions/colOps/colOps.js",
|
|
"longname": "src/extensions/colOps/colOps.js~ColOps",
|
|
"access": null,
|
|
"export": true,
|
|
"importPath": "tablefilter/src/extensions/colOps/colOps.js",
|
|
"importStyle": "ColOps",
|
|
"description": null,
|
|
"lineNumber": 5,
|
|
"undocument": true,
|
|
"interface": false
|
|
},
|
|
{
|
|
"kind": "constructor",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "constructor",
|
|
"memberof": "src/extensions/colOps/colOps.js~ColOps",
|
|
"longname": "src/extensions/colOps/colOps.js~ColOps#constructor",
|
|
"access": null,
|
|
"description": "Column calculations",
|
|
"lineNumber": 11,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "tf",
|
|
"description": "TableFilter instance"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onBeforeOperation",
|
|
"memberof": "src/extensions/colOps/colOps.js~ColOps",
|
|
"longname": "src/extensions/colOps/colOps.js~ColOps#onBeforeOperation",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 14,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onAfterOperation",
|
|
"memberof": "src/extensions/colOps/colOps.js~ColOps",
|
|
"longname": "src/extensions/colOps/colOps.js~ColOps#onAfterOperation",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 17,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "opts",
|
|
"memberof": "src/extensions/colOps/colOps.js~ColOps",
|
|
"longname": "src/extensions/colOps/colOps.js~ColOps#opts",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 20,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tf",
|
|
"memberof": "src/extensions/colOps/colOps.js~ColOps",
|
|
"longname": "src/extensions/colOps/colOps.js~ColOps#tf",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 21,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "init",
|
|
"memberof": "src/extensions/colOps/colOps.js~ColOps",
|
|
"longname": "src/extensions/colOps/colOps.js~ColOps#init",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 24,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "calc",
|
|
"memberof": "src/extensions/colOps/colOps.js~ColOps",
|
|
"longname": "src/extensions/colOps/colOps.js~ColOps#calc",
|
|
"access": null,
|
|
"description": "Calculates columns' values\nConfiguration options are stored in 'opts' property\n- 'id' contains ids of elements showing result (array)\n- 'col' contains the columns' indexes (array)\n- 'operation' contains operation type (array, values: 'sum', 'mean',\n 'min', 'max', 'median', 'q1', 'q3')\n- 'write_method' array defines which method to use for displaying the\n result (innerHTML, setValue, createTextNode) - default: 'innerHTML'\n- 'tot_row_index' defines in which row results are displayed\n (integers array)\n\n- changes made by Nuovella:\n(1) optimized the routine (now it will only process each column once),\n(2) added calculations for the median, lower and upper quartile.",
|
|
"lineNumber": 44,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "destroy",
|
|
"memberof": "src/extensions/colOps/colOps.js~ColOps",
|
|
"longname": "src/extensions/colOps/colOps.js~ColOps#destroy",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 313,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/extensions/colsVisibility/colsVisibility.js",
|
|
"memberof": null,
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1,
|
|
"content": "import Dom from '../../dom';\nimport Types from '../../types';\nimport Event from '../../event';\n\nexport default class ColsVisibility{\n\n /**\n * Columns Visibility extension\n * @param {Object} tf TableFilter instance\n * @param {Object} f Config\n */\n constructor(tf, f){\n\n // Configuration object\n var cfg = tf.config();\n\n this.initialized = false;\n this.name = f.name;\n this.desc = f.description || 'Columns visibility manager';\n\n //show/hide cols span element\n this.spanEl = null;\n //show/hide cols button element\n this.btnEl = null;\n //show/hide cols container div element\n this.contEl = null;\n\n //tick to hide or show column\n this.tickToHide = f.tick_to_hide===false ? false : true;\n //enables/disables cols manager generation\n this.manager = f.manager===false ? false : true;\n //only if external headers\n this.headersTbl = f.headers_table || false;\n //only if external headers\n this.headersIndex = f.headers_index || 1;\n //id of container element\n this.contElTgtId = f.container_target_id || null;\n //alternative headers text\n this.headersText = f.headers_text || null;\n //id of button container element\n this.btnTgtId = f.btn_target_id || null;\n //defines show/hide cols text\n this.btnText = f.btn_text || 'Columns▼';\n //defines show/hide cols button innerHtml\n this.btnHtml = f.btn_html || null;\n //defines css class for show/hide cols button\n this.btnCssClass = f.btn_css_class || 'colVis';\n //defines close link text\n this.btnCloseText = f.btn_close_text || 'Close';\n //defines close button innerHtml\n this.btnCloseHtml = f.btn_close_html || null;\n //defines css class for close button\n this.btnCloseCssClass = f.btn_close_css_class || this.btnCssClass;\n this.stylesheet = f.stylesheet || 'colsVisibility.css';\n //span containing show/hide cols button\n this.prfx = 'colVis_';\n //defines css class span containing show/hide cols\n this.spanCssClass = f.span_css_class || 'colVisSpan';\n this.prfxCont = this.prfx + 'Cont_';\n //defines css class div containing show/hide cols\n this.contCssClass = f.cont_css_class || 'colVisCont';\n //defines css class for cols list (ul)\n this.listCssClass = cfg.list_css_class ||'cols_checklist';\n //defines css class for list item (li)\n this.listItemCssClass = cfg.checklist_item_css_class ||\n 'cols_checklist_item';\n //defines css class for selected list item (li)\n this.listSlcItemCssClass = cfg.checklist_selected_item_css_class ||\n 'cols_checklist_slc_item';\n //text preceding columns list\n this.text = f.text || (this.tickToHide ? 'Hide: ' : 'Show: ');\n this.atStart = f.at_start || null;\n this.enableHover = Boolean(f.enable_hover);\n //enables select all option\n this.enableTickAll = Boolean(f.enable_tick_all);\n //text preceding columns list\n this.tickAllText = f.tick_all_text || 'Select all:';\n\n //array containing hidden columns indexes\n this.hiddenCols = [];\n this.tblHasColTag = (Dom.tag(tf.tbl,'col').length > 0);\n\n //callback invoked just after cols manager is loaded\n this.onLoaded = Types.isFn(f.on_loaded) ? f.on_loaded : null;\n //calls function before cols manager is opened\n this.onBeforeOpen = Types.isFn(f.on_before_open) ?\n f.on_before_open : null;\n //calls function after cols manager is opened\n this.onAfterOpen = Types.isFn(f.on_after_open) ? f.on_after_open : null;\n //calls function before cols manager is closed\n this.onBeforeClose = Types.isFn(f.on_before_close) ?\n f.on_before_close : null;\n //calls function after cols manager is closed\n this.onAfterClose = Types.isFn(f.on_after_close) ?\n f.on_after_close : null;\n\n //callback before col is hidden\n this.onBeforeColHidden = Types.isFn(f.on_before_col_hidden) ?\n f.on_before_col_hidden : null;\n //callback after col is hidden\n this.onAfterColHidden = Types.isFn(f.on_after_col_hidden) ?\n f.on_after_col_hidden : null;\n //callback before col is displayed\n this.onBeforeColDisplayed = Types.isFn(f.on_before_col_displayed) ?\n f.on_before_col_displayed : null;\n //callback after col is displayed\n this.onAfterColDisplayed = Types.isFn(f.on_after_col_displayed) ?\n f.on_after_col_displayed : null;\n\n //Grid layout compatibility\n if(tf.gridLayout){\n this.headersTbl = tf.feature('gridLayout').headTbl; //headers table\n this.headersIndex = 0; //headers index\n this.onAfterColDisplayed = function(){};\n this.onAfterColHidden = function(){};\n }\n\n //Loads extension stylesheet\n tf.import(f.name+'Style', tf.stylePath + this.stylesheet, null, 'link');\n\n this.tf = tf;\n }\n\n toggle(){\n var contDisplay = this.contEl.style.display;\n var onBeforeOpen = this.onBeforeOpen;\n var onBeforeClose = this.onBeforeClose;\n var onAfterOpen = this.onAfterOpen;\n var onAfterClose = this.onAfterClose;\n\n if(onBeforeOpen && contDisplay !== 'inline'){\n onBeforeOpen.call(null, this);\n }\n if(onBeforeClose && contDisplay === 'inline'){\n onBeforeClose.call(null, this);\n }\n\n this.contEl.style.display = contDisplay === 'inline' ?\n 'none' : 'inline';\n\n if(onAfterOpen && contDisplay !== 'inline'){\n onAfterOpen.call(null, this);\n }\n if(onAfterClose && contDisplay === 'inline'){\n onAfterClose.call(null, this);\n }\n }\n\n checkItem(lbl){\n var li = lbl.parentNode;\n if(!li || !lbl){\n return;\n }\n var isChecked = lbl.firstChild.checked;\n var colIndex = lbl.firstChild.getAttribute('id').split('_')[1];\n colIndex = parseInt(colIndex, 10);\n if(isChecked){\n Dom.addClass(li, this.listSlcItemCssClass);\n } else {\n Dom.removeClass(li, this.listSlcItemCssClass);\n }\n\n var hide = false;\n if((this.tickToHide && isChecked) || (!this.tickToHide && !isChecked)){\n hide = true;\n }\n this.setHidden(colIndex, hide);\n }\n\n init(){\n if(!this.manager){\n return;\n }\n this.buildBtn();\n this.buildManager();\n\n this.initialized = true;\n }\n\n /**\n * Build main button UI\n */\n buildBtn(){\n if(this.btnEl){\n return;\n }\n var tf = this.tf;\n var span = Dom.create('span', ['id', this.prfx+tf.id]);\n span.className = this.spanCssClass;\n\n //Container element (rdiv or custom element)\n if(!this.btnTgtId){\n tf.setToolbar();\n }\n var targetEl = !this.btnTgtId ? tf.rDiv : Dom.id(this.btnTgtId);\n\n if(!this.btnTgtId){\n var firstChild = targetEl.firstChild;\n firstChild.parentNode.insertBefore(span, firstChild);\n } else {\n targetEl.appendChild(span);\n }\n\n if(!this.btnHtml){\n var btn = Dom.create('a', ['href','javascript:;']);\n btn.className = this.btnCssClass;\n btn.title = this.desc;\n\n btn.innerHTML = this.btnText;\n span.appendChild(btn);\n if(!this.enableHover){\n Event.add(btn, 'click', (evt)=> { this.toggle(evt); });\n } else {\n Event.add(btn, 'mouseover', (evt)=> { this.toggle(evt); });\n }\n } else { //Custom html\n span.innerHTML = this.btnHtml;\n var colVisEl = span.firstChild;\n if(!this.enableHover){\n Event.add(colVisEl, 'click', (evt)=> { this.toggle(evt); });\n } else {\n Event.add(colVisEl, 'mouseover', (evt)=> { this.toggle(evt); });\n }\n }\n\n this.spanEl = span;\n this.btnEl = this.spanEl.firstChild;\n\n if(this.onLoaded){\n this.onLoaded.call(null, this);\n }\n }\n\n /**\n * Build columns manager UI\n */\n buildManager(){\n var tf = this.tf;\n\n var container = !this.contElTgtId ?\n Dom.create('div', ['id', this.prfxCont+tf.id]) :\n Dom.id(this.contElTgtId);\n container.className = this.contCssClass;\n\n //Extension description\n var extNameLabel = Dom.create('p');\n extNameLabel.innerHTML = this.text;\n container.appendChild(extNameLabel);\n\n //Headers list\n var ul = Dom.create('ul' ,['id', 'ul'+this.name+'_'+tf.id]);\n ul.className = this.listCssClass;\n\n var tbl = this.headersTbl ? this.headersTbl : tf.tbl;\n var headerIndex = this.headersTbl ?\n this.headersIndex : tf.getHeadersRowIndex();\n var headerRow = tbl.rows[headerIndex];\n\n //Tick all option\n if(this.enableTickAll){\n var li = Dom.createCheckItem(\n 'col__'+tf.id, this.tickAllText, this.tickAllText);\n Dom.addClass(li, this.listItemCssClass);\n ul.appendChild(li);\n li.check.checked = !this.tickToHide;\n\n Event.add(li.check, 'click', ()=> {\n for(var h = 0; h < headerRow.cells.length; h++){\n var itm = Dom.id('col_'+h+'_'+tf.id);\n if(itm && li.check.checked !== itm.checked){\n itm.click();\n itm.checked = li.check.checked;\n }\n }\n });\n }\n\n for(var i = 0; i < headerRow.cells.length; i++){\n var cell = headerRow.cells[i];\n var cellText = this.headersText && this.headersText[i] ?\n this.headersText[i] : this._getHeaderText(cell);\n var liElm = Dom.createCheckItem(\n 'col_'+i+'_'+tf.id, cellText, cellText);\n Dom.addClass(liElm, this.listItemCssClass);\n if(!this.tickToHide){\n Dom.addClass(liElm, this.listSlcItemCssClass);\n }\n ul.appendChild(liElm);\n if(!this.tickToHide){\n liElm.check.checked = true;\n }\n\n Event.add(liElm.check, 'click', (evt)=> {\n var elm = Event.target(evt);\n var lbl = elm.parentNode;\n this.checkItem(lbl);\n });\n }\n\n //separator\n var p = Dom.create('p', ['align','center']);\n var btn;\n //Close link\n if(!this.btnCloseHtml){\n btn = Dom.create('a', ['href','javascript:;']);\n btn.className = this.btnCloseCssClass;\n btn.innerHTML = this.btnCloseText;\n Event.add(btn, 'click', (evt)=> { this.toggle(evt); });\n p.appendChild(btn);\n } else {\n p.innerHTML = this.btnCloseHtml;\n btn = p.firstChild;\n Event.add(btn, 'click', (evt)=> { this.toggle(evt); });\n }\n\n container.appendChild(ul);\n container.appendChild(p);\n\n this.btnEl.parentNode.insertBefore(container, this.btnEl);\n this.contEl = container;\n\n if(this.atStart){\n var a = this.atStart;\n for(var k=0; k<a.length; k++){\n var itm = Dom.id('col_'+a[k]+'_'+tf.id);\n if(itm){\n itm.click();\n }\n }\n }\n }\n\n /**\n * Hide or show specified columns\n * @param {Numner} colIndex Column index\n * @param {Boolean} hide hide column if true or show if false\n */\n setHidden(colIndex, hide){\n var tf = this.tf;\n var tbl = tf.tbl;\n\n if(this.onBeforeColHidden && hide){\n this.onBeforeColHidden.call(null, this, colIndex);\n }\n if(this.onBeforeColDisplayed && !hide){\n this.onBeforeColDisplayed.call(null, this, colIndex);\n }\n\n this._hideCells(tbl, colIndex, hide);\n if(this.headersTbl){\n this._hideCells(this.headersTbl, colIndex, hide);\n }\n\n var hiddenCols = this.hiddenCols;\n var itemIndex = hiddenCols.indexOf(colIndex);\n if(hide){\n if(itemIndex === -1){\n this.hiddenCols.push(colIndex);\n }\n } else {\n if(itemIndex !== -1){\n this.hiddenCols.splice(itemIndex, 1);\n }\n }\n\n var gridLayout;\n var headTbl;\n var gridColElms;\n if(this.onAfterColHidden && hide){\n //This event is fired just after a column is displayed for\n //grid_layout support\n //TODO: grid layout module should be responsible for those\n //calculations\n if(tf.gridLayout){\n gridLayout = tf.feature('gridLayout');\n headTbl = gridLayout.headTbl;\n gridColElms = gridLayout.gridColElms;\n var hiddenWidth = parseInt(\n gridColElms[colIndex].style.width, 10);\n\n var headTblW = parseInt(headTbl.style.width, 10);\n headTbl.style.width = headTblW - hiddenWidth + 'px';\n tbl.style.width = headTbl.style.width;\n }\n this.onAfterColHidden.call(null, this, colIndex);\n }\n\n if(this.onAfterColDisplayed && !hide){\n //This event is fired just after a column is displayed for\n //grid_layout support\n //TODO: grid layout module should be responsible for those\n //calculations\n if(tf.gridLayout){\n gridLayout = tf.feature('gridLayout');\n headTbl = gridLayout.headTbl;\n gridColElms = gridLayout.gridColElms;\n var width = parseInt(gridColElms[colIndex].style.width, 10);\n headTbl.style.width =\n (parseInt(headTbl.style.width, 10) + width) + 'px';\n tf.tbl.style.width = headTbl.style.width;\n }\n this.onAfterColDisplayed.call(null, this, colIndex);\n }\n }\n\n /**\n * Show specified column\n * @param {Number} colIndex Column index\n */\n showCol(colIndex){\n if(colIndex === undefined || !this.isColHidden(colIndex)){\n return;\n }\n if(this.manager && this.contEl){\n var itm = Dom.id('col_'+colIndex+'_'+this.tf.id);\n if(itm){ itm.click(); }\n } else {\n this.setHidden(colIndex, false);\n }\n }\n\n /**\n * Hide specified column\n * @param {Number} colIndex Column index\n */\n hideCol(colIndex){\n if(colIndex === undefined || this.isColHidden(colIndex)){\n return;\n }\n if(this.manager && this.contEl){\n var itm = Dom.id('col_'+colIndex+'_'+this.tf.id);\n if(itm){ itm.click(); }\n } else {\n this.setHidden(colIndex, true);\n }\n }\n\n /**\n * Determine if specified column is hidden\n * @param {Number} colIndex Column index\n */\n isColHidden(colIndex){\n if(this.hiddenCols.indexOf(colIndex) !== -1){\n return true;\n }\n return false;\n }\n\n /**\n * Toggle visibility of specified column\n * @param {Number} colIndex Column index\n */\n toggleCol(colIndex){\n if(colIndex === undefined || this.isColHidden(colIndex)){\n this.showCol(colIndex);\n } else {\n this.hideCol(colIndex);\n }\n }\n\n /**\n * Returns the indexes of the columns currently hidden\n * @return {Array} column indexes\n */\n getHiddenCols(){\n return this.hiddenCols;\n }\n\n /**\n * Remove the columns manager\n */\n destroy(){\n if(!this.btnEl && !this.contEl){\n return;\n }\n if(Dom.id(this.contElTgtId)){\n Dom.id(this.contElTgtId).innerHTML = '';\n } else {\n this.contEl.innerHTML = '';\n this.contEl.parentNode.removeChild(this.contEl);\n this.contEl = null;\n }\n this.btnEl.innerHTML = '';\n this.btnEl.parentNode.removeChild(this.btnEl);\n this.btnEl = null;\n this.initialized = false;\n }\n\n _getHeaderText(cell){\n if(!cell.hasChildNodes){\n return '';\n }\n\n for(var i=0; i<cell.childNodes.length; i++){\n var n = cell.childNodes[i];\n if(n.nodeType === 3){\n return n.nodeValue;\n } else if(n.nodeType === 1){\n if(n.id && n.id.indexOf('popUp') !== -1){\n continue;\n } else {\n return Dom.getText(n);\n }\n }\n continue;\n }\n return '';\n }\n\n _hideCells(tbl, colIndex, hide){\n for(var i=0; i<tbl.rows.length; i++){\n var row = tbl.rows[i];\n var cell = row.cells[colIndex];\n if(cell){\n cell.style.display = hide ? 'none' : '';\n }\n }\n }\n\n}\n"
|
|
},
|
|
{
|
|
"kind": "class",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "ColsVisibility",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"access": null,
|
|
"export": true,
|
|
"importPath": "tablefilter/src/extensions/colsVisibility/colsVisibility.js",
|
|
"importStyle": "ColsVisibility",
|
|
"description": null,
|
|
"lineNumber": 5,
|
|
"undocument": true,
|
|
"interface": false
|
|
},
|
|
{
|
|
"kind": "constructor",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "constructor",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#constructor",
|
|
"access": null,
|
|
"description": "Columns Visibility extension",
|
|
"lineNumber": 12,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "tf",
|
|
"description": "TableFilter instance"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "f",
|
|
"description": "Config"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 17,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "name",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#name",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 18,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "desc",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#desc",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 19,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "spanEl",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#spanEl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 22,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnEl",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#btnEl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 24,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "contEl",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#contEl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 26,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tickToHide",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#tickToHide",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 29,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "manager",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#manager",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 31,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "headersTbl",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#headersTbl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 33,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "headersIndex",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#headersIndex",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 35,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "contElTgtId",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#contElTgtId",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 37,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "headersText",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#headersText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 39,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnTgtId",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#btnTgtId",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 41,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnText",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#btnText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 43,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnHtml",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#btnHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 45,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnCssClass",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#btnCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 47,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnCloseText",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#btnCloseText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 49,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnCloseHtml",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#btnCloseHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 51,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnCloseCssClass",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#btnCloseCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 53,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "stylesheet",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#stylesheet",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 54,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfx",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#prfx",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 56,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "spanCssClass",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#spanCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 58,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxCont",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#prfxCont",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 59,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "contCssClass",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#contCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 61,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "listCssClass",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#listCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 63,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "listItemCssClass",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#listItemCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 65,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "listSlcItemCssClass",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#listSlcItemCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 68,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "text",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#text",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 71,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "atStart",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#atStart",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 72,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "enableHover",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#enableHover",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 73,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "enableTickAll",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#enableTickAll",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 75,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tickAllText",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#tickAllText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 77,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "hiddenCols",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#hiddenCols",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 80,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tblHasColTag",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#tblHasColTag",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 81,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onLoaded",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#onLoaded",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 84,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onBeforeOpen",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#onBeforeOpen",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 86,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onAfterOpen",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#onAfterOpen",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 89,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onBeforeClose",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#onBeforeClose",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 91,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onAfterClose",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#onAfterClose",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 94,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onBeforeColHidden",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#onBeforeColHidden",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 98,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onAfterColHidden",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#onAfterColHidden",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 101,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onBeforeColDisplayed",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#onBeforeColDisplayed",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 104,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onAfterColDisplayed",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#onAfterColDisplayed",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 107,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "headersTbl",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#headersTbl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 112,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "headersIndex",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#headersIndex",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 113,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"number"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tf",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#tf",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 121,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "toggle",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#toggle",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 124,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "checkItem",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#checkItem",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 149,
|
|
"undocument": true,
|
|
"params": [
|
|
{
|
|
"name": "lbl",
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "init",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#init",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 170,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 177,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "buildBtn",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#buildBtn",
|
|
"access": null,
|
|
"description": "Build main button UI",
|
|
"lineNumber": 183,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "spanEl",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#spanEl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 226,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnEl",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#btnEl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 227,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "buildManager",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#buildManager",
|
|
"access": null,
|
|
"description": "Build columns manager UI",
|
|
"lineNumber": 237,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "contEl",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#contEl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 320,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "setHidden",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#setHidden",
|
|
"access": null,
|
|
"description": "Hide or show specified columns",
|
|
"lineNumber": 338,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Numner"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "colIndex",
|
|
"description": "Column index"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "hide",
|
|
"description": "hide column if true or show if false"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "showCol",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#showCol",
|
|
"access": null,
|
|
"description": "Show specified column",
|
|
"lineNumber": 410,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "colIndex",
|
|
"description": "Column index"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "hideCol",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#hideCol",
|
|
"access": null,
|
|
"description": "Hide specified column",
|
|
"lineNumber": 426,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "colIndex",
|
|
"description": "Column index"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "isColHidden",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#isColHidden",
|
|
"access": null,
|
|
"description": "Determine if specified column is hidden",
|
|
"lineNumber": 442,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "colIndex",
|
|
"description": "Column index"
|
|
}
|
|
],
|
|
"return": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "toggleCol",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#toggleCol",
|
|
"access": null,
|
|
"description": "Toggle visibility of specified column",
|
|
"lineNumber": 453,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "colIndex",
|
|
"description": "Column index"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getHiddenCols",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#getHiddenCols",
|
|
"access": null,
|
|
"description": "Returns the indexes of the columns currently hidden",
|
|
"lineNumber": 465,
|
|
"params": [],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Array"
|
|
],
|
|
"spread": false,
|
|
"description": "column indexes"
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "destroy",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#destroy",
|
|
"access": null,
|
|
"description": "Remove the columns manager",
|
|
"lineNumber": 472,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "contEl",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#contEl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 481,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnEl",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#btnEl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 485,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 486,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "_getHeaderText",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#_getHeaderText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 489,
|
|
"undocument": true,
|
|
"params": [
|
|
{
|
|
"name": "cell",
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
],
|
|
"return": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "_hideCells",
|
|
"memberof": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility",
|
|
"longname": "src/extensions/colsVisibility/colsVisibility.js~ColsVisibility#_hideCells",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 510,
|
|
"undocument": true,
|
|
"params": [
|
|
{
|
|
"name": "tbl",
|
|
"types": [
|
|
"*"
|
|
]
|
|
},
|
|
{
|
|
"name": "colIndex",
|
|
"types": [
|
|
"*"
|
|
]
|
|
},
|
|
{
|
|
"name": "hide",
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/extensions/filtersVisibility/filtersVisibility.js",
|
|
"memberof": null,
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1,
|
|
"content": "import Dom from '../../dom';\nimport Types from '../../types';\nimport Event from '../../event';\n\nexport default class FiltersVisibility{\n\n /**\n * Filters Row Visibility extension\n * @param {Object} tf TableFilter instance\n * @param {Object} f Config\n */\n constructor(tf, f){\n\n this.initialized = false;\n this.name = f.name;\n this.desc = f.description || 'Filters row visibility manager';\n\n // Path and image filenames\n this.stylesheet = f.stylesheet || 'filtersVisibility.css';\n this.icnExpand = f.expand_icon_name || 'icn_exp.png';\n this.icnCollapse = f.collapse_icon_name || 'icn_clp.png';\n\n //expand/collapse filters span element\n this.contEl = null;\n //expand/collapse filters btn element\n this.btnEl = null;\n\n this.icnExpandHtml = '<img src=\"'+ tf.themesPath + this.icnExpand +\n '\" alt=\"Expand filters\" >';\n this.icnCollapseHtml = '<img src=\"'+ tf.themesPath + this.icnCollapse +\n '\" alt=\"Collapse filters\" >';\n this.defaultText = 'Toggle filters';\n\n //id of container element\n this.targetId = f.target_id || null;\n //enables/disables expand/collapse icon\n this.enableIcon = f.enable_icon===false ? false : true;\n this.btnText = f.btn_text || '';\n\n //defines expand/collapse filters text\n this.collapseBtnHtml = this.enableIcon ?\n this.icnCollapseHtml + this.btnText :\n this.btnText || this.defaultText;\n this.expandBtnHtml = this.enableIcon ?\n this.icnExpandHtml + this.btnText :\n this.btnText || this.defaultText;\n\n //defines expand/collapse filters button innerHtml\n this.btnHtml = f.btn_html || null;\n //defines css class for expand/collapse filters button\n this.btnCssClass = f.btn_css_class || 'btnExpClpFlt';\n //defines css class span containing expand/collapse filters\n this.contCssClass = f.cont_css_class || 'expClpFlt';\n this.filtersRowIndex = !Types.isUndef(f.filters_row_index) ?\n f.filters_row_index : tf.getFiltersRowIndex();\n\n this.visibleAtStart = !Types.isUndef(f.visible_at_start) ?\n Boolean(f.visible_at_start) : true;\n\n // Prefix\n this.prfx = 'fltsVis_';\n\n //callback before filters row is shown\n this.onBeforeShow = Types.isFn(f.on_before_show) ?\n f.on_before_show : null;\n //callback after filters row is shown\n this.onAfterShow = Types.isFn(f.on_after_show) ?\n f.on_after_show : null;\n //callback before filters row is hidden\n this.onBeforeHide = Types.isFn(f.on_before_hide) ?\n f.on_before_hide : null;\n //callback after filters row is hidden\n this.onAfterHide = Types.isFn(f.on_after_hide) ? f.on_after_hide : null;\n\n //Loads extension stylesheet\n tf.import(f.name+'Style', tf.stylePath + this.stylesheet, null, 'link');\n\n this.tf = tf;\n }\n\n /**\n * Initialise extension\n */\n init(){\n if(this.initialized){\n return;\n }\n\n this.buildUI();\n this.initialized = true;\n }\n\n /**\n * Build UI elements\n */\n buildUI(){\n let tf = this.tf;\n let span = Dom.create('span',['id', this.prfx+tf.id]);\n span.className = this.contCssClass;\n\n //Container element (rdiv or custom element)\n if(!this.targetId){\n tf.setToolbar();\n }\n let targetEl = !this.targetId ? tf.rDiv : Dom.id(this.targetId);\n\n if(!this.targetId){\n let firstChild = targetEl.firstChild;\n firstChild.parentNode.insertBefore(span, firstChild);\n } else {\n targetEl.appendChild(span);\n }\n\n let btn;\n if(!this.btnHtml){\n btn = Dom.create('a', ['href', 'javascript:void(0);']);\n btn.className = this.btnCssClass;\n btn.title = this.btnText || this.defaultText;\n btn.innerHTML = this.collapseBtnHtml;\n span.appendChild(btn);\n } else { //Custom html\n span.innerHTML = this.btnHtml;\n btn = span.firstChild;\n }\n\n Event.add(btn, 'click', ()=> this.toggle());\n\n this.contEl = span;\n this.btnEl = btn;\n\n if(!this.visibleAtStart){\n this.toggle();\n }\n }\n\n /**\n * Toggle filters visibility\n */\n toggle(){\n let tf = this.tf;\n let tbl = tf.gridLayout? tf.feature('gridLayout').headTbl : tf.tbl;\n let fltRow = tbl.rows[this.filtersRowIndex];\n let fltRowDisplay = fltRow.style.display;\n\n if(this.onBeforeShow && fltRowDisplay !== ''){\n this.onBeforeShow.call(this, this);\n }\n if(this.onBeforeHide && fltRowDisplay === ''){\n this.onBeforeHide.call(null, this);\n }\n\n fltRow.style.display = fltRowDisplay==='' ? 'none' : '';\n if(this.enableIcon && !this.btnHtml){\n this.btnEl.innerHTML = fltRowDisplay === '' ?\n this.expandBtnHtml : this.collapseBtnHtml;\n }\n\n if(this.onAfterShow && fltRowDisplay !== ''){\n this.onAfterShow.call(null, this);\n }\n if(this.onAfterHide && fltRowDisplay === ''){\n this.onAfterHide.call(null, this);\n }\n }\n\n /**\n * Destroy the UI\n */\n destroy(){\n if(!this.btnEl && !this.contEl){\n return;\n }\n\n this.btnEl.innerHTML = '';\n this.btnEl.parentNode.removeChild(this.btnEl);\n this.btnEl = null;\n\n this.contEl.innerHTML = '';\n this.contEl.parentNode.removeChild(this.contEl);\n this.contEl = null;\n this.initialized = false;\n }\n\n}\n"
|
|
},
|
|
{
|
|
"kind": "class",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "FiltersVisibility",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"access": null,
|
|
"export": true,
|
|
"importPath": "tablefilter/src/extensions/filtersVisibility/filtersVisibility.js",
|
|
"importStyle": "FiltersVisibility",
|
|
"description": null,
|
|
"lineNumber": 5,
|
|
"undocument": true,
|
|
"interface": false
|
|
},
|
|
{
|
|
"kind": "constructor",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "constructor",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#constructor",
|
|
"access": null,
|
|
"description": "Filters Row Visibility extension",
|
|
"lineNumber": 12,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "tf",
|
|
"description": "TableFilter instance"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "f",
|
|
"description": "Config"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 14,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "name",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#name",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 15,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "desc",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#desc",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 16,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "stylesheet",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#stylesheet",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 19,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "icnExpand",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#icnExpand",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 20,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "icnCollapse",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#icnCollapse",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 21,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "contEl",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#contEl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 24,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnEl",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#btnEl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 26,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "icnExpandHtml",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#icnExpandHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 28,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "icnCollapseHtml",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#icnCollapseHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 30,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "defaultText",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#defaultText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 32,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "targetId",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#targetId",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 35,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "enableIcon",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#enableIcon",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 37,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnText",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#btnText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 38,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "collapseBtnHtml",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#collapseBtnHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 41,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "expandBtnHtml",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#expandBtnHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 44,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnHtml",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#btnHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 49,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnCssClass",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#btnCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 51,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "contCssClass",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#contCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 53,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "filtersRowIndex",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#filtersRowIndex",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 54,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "visibleAtStart",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#visibleAtStart",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 57,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfx",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#prfx",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 61,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onBeforeShow",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#onBeforeShow",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 64,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onAfterShow",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#onAfterShow",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 67,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onBeforeHide",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#onBeforeHide",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 70,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onAfterHide",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#onAfterHide",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 73,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tf",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#tf",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 78,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "init",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#init",
|
|
"access": null,
|
|
"description": "Initialise extension",
|
|
"lineNumber": 84,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 90,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "buildUI",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#buildUI",
|
|
"access": null,
|
|
"description": "Build UI elements",
|
|
"lineNumber": 96,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "contEl",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#contEl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 128,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnEl",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#btnEl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 129,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "toggle",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#toggle",
|
|
"access": null,
|
|
"description": "Toggle filters visibility",
|
|
"lineNumber": 139,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "destroy",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#destroy",
|
|
"access": null,
|
|
"description": "Destroy the UI",
|
|
"lineNumber": 169,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnEl",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#btnEl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 176,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "contEl",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#contEl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 180,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility",
|
|
"longname": "src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 181,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/extensions/sort/adapterSortabletable.js",
|
|
"memberof": null,
|
|
"longname": "src/extensions/sort/adapterSortabletable.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1,
|
|
"content": "import Types from '../../types';\nimport Dom from '../../dom';\nimport Event from '../../event';\nimport DateHelper from '../../date';\nimport Helpers from '../../helpers';\n\nexport default class AdapterSortableTable{\n\n /**\n * SortableTable Adapter module\n * @param {Object} tf TableFilter instance\n */\n constructor(tf, opts){\n this.initialized = false;\n this.name = opts.name;\n this.desc = opts.description || 'Sortable table';\n\n //indicates if tables was sorted\n this.sorted = false;\n\n this.sortTypes = Types.isArray(opts.types) ? opts.types : [];\n this.sortColAtStart = Types.isArray(opts.sort_col_at_start) ?\n opts.sort_col_at_start : null;\n this.asyncSort = Boolean(opts.async_sort);\n this.triggerIds = Types.isArray(opts.trigger_ids) ?\n opts.trigger_ids : [];\n\n // edit .sort-arrow.descending / .sort-arrow.ascending in\n // tablefilter.css to reflect any path change\n this.imgPath = opts.images_path || tf.themesPath;\n this.imgBlank = opts.image_blank || 'blank.png';\n this.imgClassName = opts.image_class_name || 'sort-arrow';\n this.imgAscClassName = opts.image_asc_class_name || 'ascending';\n this.imgDescClassName = opts.image_desc_class_name ||'descending';\n //cell attribute storing custom key\n this.customKey = opts.custom_key || 'data-tf-sortKey';\n\n /*** TF additional events ***/\n //additional paging events for alternating background\n // o.Evt._Paging.nextEvt = function(){\n // if(o.sorted && o.alternateRows) o.Filter();\n // }\n // o.Evt._Paging.prevEvt = o.Evt._Paging.nextEvt;\n // o.Evt._Paging.firstEvt = o.Evt._Paging.nextEvt;\n // o.Evt._Paging.lastEvt = o.Evt._Paging.nextEvt;\n // o.Evt._OnSlcPagesChangeEvt = o.Evt._Paging.nextEvt;\n\n // callback invoked after sort is loaded and instanciated\n this.onSortLoaded = Types.isFn(opts.on_sort_loaded) ?\n opts.on_sort_loaded : null;\n // callback invoked before table is sorted\n this.onBeforeSort = Types.isFn(opts.on_before_sort) ?\n opts.on_before_sort : null;\n // callback invoked after table is sorted\n this.onAfterSort = Types.isFn(opts.on_after_sort) ?\n opts.on_after_sort : null;\n\n this.tf = tf;\n }\n\n init(){\n let tf = this.tf;\n let adpt = this;\n\n // SortableTable class sanity check (sortabletable.js)\n if(Types.isUndef(SortableTable)){\n throw new Error('SortableTable class not found.');\n }\n\n this.overrideSortableTable();\n this.setSortTypes();\n\n //Column sort at start\n let sortColAtStart = adpt.sortColAtStart;\n if(sortColAtStart){\n this.stt.sort(sortColAtStart[0], sortColAtStart[1]);\n }\n\n if(this.onSortLoaded){\n this.onSortLoaded.call(null, tf, this);\n }\n\n /*** SortableTable callbacks ***/\n this.stt.onbeforesort = function(){\n if(adpt.onBeforeSort){\n adpt.onBeforeSort.call(null, tf, adpt.stt.sortColumn);\n }\n\n /*** sort behaviour for paging ***/\n if(tf.paging){\n tf.feature('paging').disable();\n }\n };\n\n this.stt.onsort = function(){\n adpt.sorted = true;\n\n //rows alternating bg issue\n // TODO: move into AlternateRows component\n if(tf.alternateRows){\n let rows = tf.tbl.rows, c = 0;\n\n let setClass = function(row, i, removeOnly){\n if(Types.isUndef(removeOnly)){\n removeOnly = false;\n }\n let altRows = tf.feature('alternateRows'),\n oddCls = altRows.oddCss,\n evenCls = altRows.evenCss;\n Dom.removeClass(row, oddCls);\n Dom.removeClass(row, evenCls);\n\n if(!removeOnly){\n Dom.addClass(row, i % 2 ? oddCls : evenCls);\n }\n };\n\n for (let i = tf.refRow; i < tf.nbRows; i++){\n let isRowValid = rows[i].getAttribute('validRow');\n if(tf.paging && rows[i].style.display === ''){\n setClass(rows[i], c);\n c++;\n } else {\n if((isRowValid==='true' || isRowValid===null) &&\n rows[i].style.display === ''){\n setClass(rows[i], c);\n c++;\n } else {\n setClass(rows[i], c, true);\n }\n }\n }\n }\n //sort behaviour for paging\n if(tf.paging){\n let paginator = tf.feature('paging');\n paginator.enable();\n paginator.setPage(paginator.getPage());\n }\n\n if(adpt.onAfterSort){\n adpt.onAfterSort.call(null, tf, adpt.stt.sortColumn);\n }\n };\n\n this.initialized = true;\n }\n\n /**\n * Sort specified column\n * @param {Number} colIdx Column index\n * @param {Boolean} desc Optional: descending manner\n */\n sortByColumnIndex(colIdx, desc){\n this.stt.sort(colIdx, desc);\n }\n\n overrideSortableTable(){\n let adpt = this,\n tf = this.tf;\n\n /**\n * Overrides headerOnclick method in order to handle th event\n * @param {Object} e [description]\n */\n SortableTable.prototype.headerOnclick = function(evt){\n if(!adpt.initialized){\n return;\n }\n\n // find Header element\n let el = evt.target || evt.srcElement;\n\n while(el.tagName !== 'TD' && el.tagName !== 'TH'){\n el = el.parentNode;\n }\n\n this.sort(\n SortableTable.msie ?\n SortableTable.getCellIndex(el) : el.cellIndex\n );\n };\n\n /**\n * Overrides getCellIndex IE returns wrong cellIndex when columns are\n * hidden\n * @param {Object} oTd TD element\n * @return {Number} Cell index\n */\n SortableTable.getCellIndex = function(oTd){\n let cells = oTd.parentNode.cells,\n l = cells.length, i;\n for (i = 0; cells[i] != oTd && i < l; i++){}\n return i;\n };\n\n /**\n * Overrides initHeader in order to handle filters row position\n * @param {Array} oSortTypes\n */\n SortableTable.prototype.initHeader = function(oSortTypes){\n let stt = this;\n if (!stt.tHead){\n if(tf.gridLayout){\n stt.tHead = tf.feature('gridLayout').headTbl.tHead;\n } else {\n return;\n }\n }\n\n stt.headersRow = tf.headersRow;\n let cells = stt.tHead.rows[stt.headersRow].cells;\n stt.sortTypes = oSortTypes || [];\n let l = cells.length;\n let img, c;\n\n for (let i = 0; i < l; i++) {\n c = cells[i];\n if (stt.sortTypes[i] !== null && stt.sortTypes[i] !== 'None'){\n c.style.cursor = 'pointer';\n img = Dom.create('img',\n ['src', adpt.imgPath + adpt.imgBlank]);\n c.appendChild(img);\n if (stt.sortTypes[i] !== null){\n c.setAttribute( '_sortType', stt.sortTypes[i]);\n }\n Event.add(c, 'click', stt._headerOnclick);\n } else {\n c.setAttribute('_sortType', oSortTypes[i]);\n c._sortType = 'None';\n }\n }\n stt.updateHeaderArrows();\n };\n\n /**\n * Overrides updateHeaderArrows in order to handle arrows indicators\n */\n SortableTable.prototype.updateHeaderArrows = function(){\n let stt = this;\n let cells, l, img;\n\n // external headers\n if(adpt.asyncSort && adpt.triggerIds.length > 0){\n let triggers = adpt.triggerIds;\n cells = [];\n l = triggers.length;\n for(let j=0; j<triggers.length; j++){\n cells.push(Dom.id(triggers[j]));\n }\n } else {\n if(!this.tHead){\n return;\n }\n cells = stt.tHead.rows[stt.headersRow].cells;\n l = cells.length;\n }\n for(let i = 0; i < l; i++){\n let cellAttr = cells[i].getAttribute('_sortType');\n if(cellAttr !== null && cellAttr !== 'None'){\n img = cells[i].lastChild || cells[i];\n if(img.nodeName.toLowerCase() !== 'img'){\n img = Dom.create('img',\n ['src', adpt.imgPath + adpt.imgBlank]);\n cells[i].appendChild(img);\n }\n if (i === stt.sortColumn){\n img.className = adpt.imgClassName +' '+\n (this.descending ?\n adpt.imgDescClassName :\n adpt.imgAscClassName);\n } else{\n img.className = adpt.imgClassName;\n }\n }\n }\n };\n\n /**\n * Overrides getRowValue for custom key value feature\n * @param {Object} oRow Row element\n * @param {String} sType\n * @param {Number} nColumn\n * @return {String}\n */\n SortableTable.prototype.getRowValue = function(oRow, sType, nColumn){\n let stt = this;\n // if we have defined a custom getRowValue use that\n let sortTypeInfo = stt._sortTypeInfo[sType];\n if (sortTypeInfo && sortTypeInfo.getRowValue){\n return sortTypeInfo.getRowValue(oRow, nColumn);\n }\n let c = oRow.cells[nColumn];\n let s = SortableTable.getInnerText(c);\n return stt.getValueFromString(s, sType);\n };\n\n /**\n * Overrides getInnerText in order to avoid Firefox unexpected sorting\n * behaviour with untrimmed text elements\n * @param {Object} oNode DOM element\n * @return {String} DOM element inner text\n */\n SortableTable.getInnerText = function(oNode){\n if(!oNode){\n return;\n }\n if(oNode.getAttribute(adpt.customKey)){\n return oNode.getAttribute(adpt.customKey);\n } else {\n return Dom.getText(oNode);\n }\n };\n }\n\n addSortType(){\n var args = arguments;\n SortableTable.prototype.addSortType(args[0], args[1], args[2], args[3]);\n }\n\n setSortTypes(){\n let tf = this.tf,\n sortTypes = this.sortTypes,\n _sortTypes = [];\n\n for(let i=0; i<tf.nbCells; i++){\n let colType;\n\n if(sortTypes[i]){\n colType = sortTypes[i].toLowerCase();\n if(colType === 'none'){\n colType = 'None';\n }\n } else { // resolve column types\n if(tf.hasColNbFormat && tf.colNbFormat[i] !== null){\n colType = tf.colNbFormat[i].toLowerCase();\n } else if(tf.hasColDateType && tf.colDateType[i] !== null){\n colType = tf.colDateType[i].toLowerCase()+'date';\n } else {\n colType = 'String';\n }\n }\n _sortTypes.push(colType);\n }\n\n //Public TF method to add sort type\n\n //Custom sort types\n this.addSortType('number', Number);\n this.addSortType('caseinsensitivestring', SortableTable.toUpperCase);\n this.addSortType('date', SortableTable.toDate);\n this.addSortType('string');\n this.addSortType('us', usNumberConverter);\n this.addSortType('eu', euNumberConverter);\n this.addSortType('dmydate', dmyDateConverter );\n this.addSortType('ymddate', ymdDateConverter);\n this.addSortType('mdydate', mdyDateConverter);\n this.addSortType('ddmmmyyyydate', ddmmmyyyyDateConverter);\n this.addSortType('ipaddress', ipAddress, sortIP);\n\n this.stt = new SortableTable(tf.tbl, _sortTypes);\n\n /*** external table headers adapter ***/\n if(this.asyncSort && this.triggerIds.length > 0){\n let triggers = this.triggerIds;\n for(let j=0; j<triggers.length; j++){\n if(triggers[j] === null){\n continue;\n }\n let trigger = Dom.id(triggers[j]);\n if(trigger){\n trigger.style.cursor = 'pointer';\n\n Event.add(trigger, 'click', (evt) => {\n let elm = evt.target;\n if(!this.tf.sort){\n return;\n }\n this.stt.asyncSort(triggers.indexOf(elm.id));\n });\n trigger.setAttribute('_sortType', _sortTypes[j]);\n }\n }\n }\n }\n\n /**\n * Destroy sort\n */\n destroy(){\n let tf = this.tf;\n this.sorted = false;\n this.initialized = false;\n this.stt.destroy();\n\n let ids = tf.getFiltersId();\n for (let idx = 0; idx < ids.length; idx++){\n let header = tf.getHeaderElement(idx);\n let img = Dom.tag(header, 'img');\n\n if(img.length === 1){\n header.removeChild(img[0]);\n }\n }\n }\n\n}\n\n//Converters\nfunction usNumberConverter(s){\n return Helpers.removeNbFormat(s, 'us');\n}\nfunction euNumberConverter(s){\n return Helpers.removeNbFormat(s, 'eu');\n}\nfunction dateConverter(s, format){\n return DateHelper.format(s, format);\n}\nfunction dmyDateConverter(s){\n return dateConverter(s, 'DMY');\n}\nfunction mdyDateConverter(s){\n return dateConverter(s, 'MDY');\n}\nfunction ymdDateConverter(s){\n return dateConverter(s, 'YMD');\n}\nfunction ddmmmyyyyDateConverter(s){\n return dateConverter(s, 'DDMMMYYYY');\n}\n\nfunction ipAddress(value){\n let vals = value.split('.');\n for (let x in vals) {\n let val = vals[x];\n while (3 > val.length){\n val = '0'+val;\n }\n vals[x] = val;\n }\n return vals.join('.');\n}\n\nfunction sortIP(a,b){\n let aa = ipAddress(a.value.toLowerCase());\n let bb = ipAddress(b.value.toLowerCase());\n if (aa==bb){\n return 0;\n } else if (aa<bb){\n return -1;\n } else {\n return 1;\n }\n}\n"
|
|
},
|
|
{
|
|
"kind": "class",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "AdapterSortableTable",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"access": null,
|
|
"export": true,
|
|
"importPath": "tablefilter/src/extensions/sort/adapterSortabletable.js",
|
|
"importStyle": "AdapterSortableTable",
|
|
"description": null,
|
|
"lineNumber": 7,
|
|
"undocument": true,
|
|
"interface": false
|
|
},
|
|
{
|
|
"kind": "constructor",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "constructor",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#constructor",
|
|
"access": null,
|
|
"description": "SortableTable Adapter module",
|
|
"lineNumber": 13,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "tf",
|
|
"description": "TableFilter instance"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 14,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "name",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#name",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 15,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "desc",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#desc",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 16,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "sorted",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#sorted",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 19,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "sortTypes",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#sortTypes",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 21,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "sortColAtStart",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#sortColAtStart",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 22,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "asyncSort",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#asyncSort",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 24,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "triggerIds",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#triggerIds",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 25,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "imgPath",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#imgPath",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 30,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "imgBlank",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#imgBlank",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 31,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "imgClassName",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#imgClassName",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 32,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "imgAscClassName",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#imgAscClassName",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 33,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "imgDescClassName",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#imgDescClassName",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 34,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "customKey",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#customKey",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 36,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onSortLoaded",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#onSortLoaded",
|
|
"access": null,
|
|
"description": "TF additional events **",
|
|
"lineNumber": 49,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onBeforeSort",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#onBeforeSort",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 52,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onAfterSort",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#onAfterSort",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 55,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tf",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#tf",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 58,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "init",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#init",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 61,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 146,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "sortByColumnIndex",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#sortByColumnIndex",
|
|
"access": null,
|
|
"description": "Sort specified column",
|
|
"lineNumber": 154,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "colIdx",
|
|
"description": "Column index"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "desc",
|
|
"description": "Optional: descending manner"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "overrideSortableTable",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#overrideSortableTable",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 158,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "addSortType",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#addSortType",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 316,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "setSortTypes",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#setSortTypes",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 321,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "stt",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#stt",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 361,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "destroy",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#destroy",
|
|
"access": null,
|
|
"description": "Destroy sort",
|
|
"lineNumber": 390,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "sorted",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#sorted",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 392,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~AdapterSortableTable#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 393,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "function",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "usNumberConverter",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~usNumberConverter",
|
|
"access": null,
|
|
"export": false,
|
|
"importPath": "tablefilter/src/extensions/sort/adapterSortabletable.js",
|
|
"importStyle": null,
|
|
"description": null,
|
|
"lineNumber": 410,
|
|
"undocument": true,
|
|
"params": [
|
|
{
|
|
"name": "s",
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
],
|
|
"return": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "function",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "euNumberConverter",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~euNumberConverter",
|
|
"access": null,
|
|
"export": false,
|
|
"importPath": "tablefilter/src/extensions/sort/adapterSortabletable.js",
|
|
"importStyle": null,
|
|
"description": null,
|
|
"lineNumber": 413,
|
|
"undocument": true,
|
|
"params": [
|
|
{
|
|
"name": "s",
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
],
|
|
"return": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "function",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "dateConverter",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~dateConverter",
|
|
"access": null,
|
|
"export": false,
|
|
"importPath": "tablefilter/src/extensions/sort/adapterSortabletable.js",
|
|
"importStyle": null,
|
|
"description": null,
|
|
"lineNumber": 416,
|
|
"undocument": true,
|
|
"params": [
|
|
{
|
|
"name": "s",
|
|
"types": [
|
|
"*"
|
|
]
|
|
},
|
|
{
|
|
"name": "format",
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
],
|
|
"return": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "function",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "dmyDateConverter",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~dmyDateConverter",
|
|
"access": null,
|
|
"export": false,
|
|
"importPath": "tablefilter/src/extensions/sort/adapterSortabletable.js",
|
|
"importStyle": null,
|
|
"description": null,
|
|
"lineNumber": 419,
|
|
"undocument": true,
|
|
"params": [
|
|
{
|
|
"name": "s",
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
],
|
|
"return": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "function",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "mdyDateConverter",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~mdyDateConverter",
|
|
"access": null,
|
|
"export": false,
|
|
"importPath": "tablefilter/src/extensions/sort/adapterSortabletable.js",
|
|
"importStyle": null,
|
|
"description": null,
|
|
"lineNumber": 422,
|
|
"undocument": true,
|
|
"params": [
|
|
{
|
|
"name": "s",
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
],
|
|
"return": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "function",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "ymdDateConverter",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~ymdDateConverter",
|
|
"access": null,
|
|
"export": false,
|
|
"importPath": "tablefilter/src/extensions/sort/adapterSortabletable.js",
|
|
"importStyle": null,
|
|
"description": null,
|
|
"lineNumber": 425,
|
|
"undocument": true,
|
|
"params": [
|
|
{
|
|
"name": "s",
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
],
|
|
"return": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "function",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "ddmmmyyyyDateConverter",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~ddmmmyyyyDateConverter",
|
|
"access": null,
|
|
"export": false,
|
|
"importPath": "tablefilter/src/extensions/sort/adapterSortabletable.js",
|
|
"importStyle": null,
|
|
"description": null,
|
|
"lineNumber": 428,
|
|
"undocument": true,
|
|
"params": [
|
|
{
|
|
"name": "s",
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
],
|
|
"return": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "function",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "ipAddress",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~ipAddress",
|
|
"access": null,
|
|
"export": false,
|
|
"importPath": "tablefilter/src/extensions/sort/adapterSortabletable.js",
|
|
"importStyle": null,
|
|
"description": null,
|
|
"lineNumber": 432,
|
|
"undocument": true,
|
|
"params": [
|
|
{
|
|
"name": "value",
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
],
|
|
"return": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "function",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "sortIP",
|
|
"memberof": "src/extensions/sort/adapterSortabletable.js",
|
|
"longname": "src/extensions/sort/adapterSortabletable.js~sortIP",
|
|
"access": null,
|
|
"export": false,
|
|
"importPath": "tablefilter/src/extensions/sort/adapterSortabletable.js",
|
|
"importStyle": null,
|
|
"description": null,
|
|
"lineNumber": 444,
|
|
"undocument": true,
|
|
"params": [
|
|
{
|
|
"name": "a",
|
|
"types": [
|
|
"*"
|
|
]
|
|
},
|
|
{
|
|
"name": "b",
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
],
|
|
"return": {
|
|
"types": [
|
|
"number"
|
|
]
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/extensions/sort/sort.js",
|
|
"memberof": null,
|
|
"longname": "src/extensions/sort/sort.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 2,
|
|
"content": "// import 'script!sortabletable';\nimport AdapterSortableTable from './adapterSortabletable';\n\nif(!window.SortableTable){\n require('script!sortabletable');\n}\n\nexport default AdapterSortableTable;\n"
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/helpers.js",
|
|
"memberof": null,
|
|
"longname": "src/helpers.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 5,
|
|
"content": "/**\n * Misc helpers\n */\n\nimport Str from './string';\n\nexport default {\n removeNbFormat(data, format){\n if(!data){\n return;\n }\n if(!format){\n format = 'us';\n }\n let n = data;\n if(Str.lower(format) === 'us'){\n n =+ n.replace(/[^\\d\\.-]/g,'');\n } else {\n n =+ n.replace(/[^\\d\\,-]/g,'').replace(',','.');\n }\n return n;\n }\n};\n"
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/modules/alternateRows.js",
|
|
"memberof": null,
|
|
"longname": "src/modules/alternateRows.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1,
|
|
"content": "import {Feature} from './feature';\nimport Dom from '../dom';\n\nexport class AlternateRows extends Feature {\n\n /**\n * Alternating rows color\n * @param {Object} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'alternateRows');\n\n var config = this.config;\n //defines css class for even rows\n this.evenCss = config.even_row_css_class || 'even';\n //defines css class for odd rows\n this.oddCss = config.odd_row_css_class || 'odd';\n }\n\n /**\n * Sets alternating rows color\n */\n init() {\n if(this.initialized){\n return;\n }\n\n var tf = this.tf;\n var validRowsIndex = tf.validRowsIndex;\n var noValidRowsIndex = validRowsIndex===null;\n //1st index\n var beginIndex = noValidRowsIndex ? tf.refRow : 0;\n // nb indexes\n var indexLen = noValidRowsIndex ?\n tf.nbFilterableRows+beginIndex :\n validRowsIndex.length;\n var idx = 0;\n\n //alternates bg color\n for(var j=beginIndex; j<indexLen; j++){\n var rowIdx = noValidRowsIndex ? j : validRowsIndex[j];\n this.setRowBg(rowIdx, idx);\n idx++;\n }\n this.initialized = true;\n }\n\n /**\n * Sets row background color\n * @param {Number} rowIdx Row index\n * @param {Number} idx Valid rows collection index needed to calculate bg\n * color\n */\n setRowBg(rowIdx, idx) {\n if(!this.isEnabled() || isNaN(rowIdx)){\n return;\n }\n var rows = this.tf.tbl.rows;\n var i = isNaN(idx) ? rowIdx : idx;\n this.removeRowBg(rowIdx);\n\n Dom.addClass(\n rows[rowIdx],\n (i%2) ? this.evenCss : this.oddCss\n );\n }\n\n /**\n * Removes row background color\n * @param {Number} idx Row index\n */\n removeRowBg(idx) {\n if(isNaN(idx)){\n return;\n }\n var rows = this.tf.tbl.rows;\n Dom.removeClass(rows[idx], this.oddCss);\n Dom.removeClass(rows[idx], this.evenCss);\n }\n\n /**\n * Removes all alternating backgrounds\n */\n destroy() {\n if(!this.initialized){\n return;\n }\n for(var i=this.tf.refRow; i<this.tf.nbRows; i++){\n this.removeRowBg(i);\n }\n this.disable();\n this.initialized = false;\n }\n\n}\n"
|
|
},
|
|
{
|
|
"kind": "class",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "AlternateRows",
|
|
"memberof": "src/modules/alternateRows.js",
|
|
"longname": "src/modules/alternateRows.js~AlternateRows",
|
|
"access": null,
|
|
"export": true,
|
|
"importPath": "tablefilter/src/modules/alternateRows.js",
|
|
"importStyle": "{AlternateRows}",
|
|
"description": null,
|
|
"lineNumber": 4,
|
|
"undocument": true,
|
|
"interface": false,
|
|
"extends": [
|
|
"src/modules/feature~Feature"
|
|
]
|
|
},
|
|
{
|
|
"kind": "constructor",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "constructor",
|
|
"memberof": "src/modules/alternateRows.js~AlternateRows",
|
|
"longname": "src/modules/alternateRows.js~AlternateRows#constructor",
|
|
"access": null,
|
|
"description": "Alternating rows color",
|
|
"lineNumber": 10,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "tf",
|
|
"description": "TableFilter instance"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "evenCss",
|
|
"memberof": "src/modules/alternateRows.js~AlternateRows",
|
|
"longname": "src/modules/alternateRows.js~AlternateRows#evenCss",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 15,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "oddCss",
|
|
"memberof": "src/modules/alternateRows.js~AlternateRows",
|
|
"longname": "src/modules/alternateRows.js~AlternateRows#oddCss",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 17,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "init",
|
|
"memberof": "src/modules/alternateRows.js~AlternateRows",
|
|
"longname": "src/modules/alternateRows.js~AlternateRows#init",
|
|
"access": null,
|
|
"description": "Sets alternating rows color",
|
|
"lineNumber": 23,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/modules/alternateRows.js~AlternateRows",
|
|
"longname": "src/modules/alternateRows.js~AlternateRows#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 45,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "setRowBg",
|
|
"memberof": "src/modules/alternateRows.js~AlternateRows",
|
|
"longname": "src/modules/alternateRows.js~AlternateRows#setRowBg",
|
|
"access": null,
|
|
"description": "Sets row background color",
|
|
"lineNumber": 54,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "rowIdx",
|
|
"description": "Row index"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "idx",
|
|
"description": "Valid rows collection index needed to calculate bg\ncolor"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "removeRowBg",
|
|
"memberof": "src/modules/alternateRows.js~AlternateRows",
|
|
"longname": "src/modules/alternateRows.js~AlternateRows#removeRowBg",
|
|
"access": null,
|
|
"description": "Removes row background color",
|
|
"lineNumber": 72,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "idx",
|
|
"description": "Row index"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "destroy",
|
|
"memberof": "src/modules/alternateRows.js~AlternateRows",
|
|
"longname": "src/modules/alternateRows.js~AlternateRows#destroy",
|
|
"access": null,
|
|
"description": "Removes all alternating backgrounds",
|
|
"lineNumber": 84,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/modules/alternateRows.js~AlternateRows",
|
|
"longname": "src/modules/alternateRows.js~AlternateRows#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 92,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/modules/checkList.js",
|
|
"memberof": null,
|
|
"longname": "src/modules/checkList.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1,
|
|
"content": "import Dom from '../dom';\nimport Arr from '../array';\nimport Str from '../string';\nimport Sort from '../sort';\nimport Event from '../event';\n\nexport class CheckList{\n\n /**\n * Checklist UI component\n * @param {Object} tf TableFilter instance\n */\n constructor(tf){\n // Configuration object\n var f = tf.config();\n\n this.checkListDiv = []; //checklist container div\n //defines css class for div containing checklist filter\n this.checkListDivCssClass = f.div_checklist_css_class ||\n 'div_checklist';\n //defines css class for checklist filters\n this.checkListCssClass = f.checklist_css_class || 'flt_checklist';\n //defines css class for checklist item (li)\n this.checkListItemCssClass = f.checklist_item_css_class ||\n 'flt_checklist_item';\n //defines css class for selected checklist item (li)\n this.checkListSlcItemCssClass = f.checklist_selected_item_css_class ||\n 'flt_checklist_slc_item';\n //Load on demand text\n this.activateCheckListTxt = f.activate_checklist_text ||\n 'Click to load filter data';\n //defines css class for checklist filters\n this.checkListItemDisabledCssClass =\n f.checklist_item_disabled_css_class ||\n 'flt_checklist_item_disabled';\n this.enableCheckListResetFilter =\n f.enable_checklist_reset_filter===false ? false : true;\n //checklist filter container div\n this.prfxCheckListDiv = 'chkdiv_';\n\n this.isCustom = null;\n this.opts = null;\n this.optsTxt = null;\n this.excludedOpts = null;\n\n this.tf = tf;\n }\n\n // TODO: move event here\n onChange(evt){\n let elm = evt.target;\n this.tf.activeFilterId = elm.getAttribute('id');\n this.tf.activeFlt = Dom.id(this.tf.activeFilterId);\n this.tf.Evt.onSlcChange.call(this.tf, evt);\n }\n\n optionClick(evt){\n this.setCheckListValues(evt.target);\n this.onChange(evt);\n }\n\n /**\n * Build checklist UI asynchronously\n * @param {Number} colIndex Column index\n * @param {Boolean} isExternal Render in external container\n * @param {String} extFltId External container id\n */\n build(colIndex, isExternal, extFltId){\n var tf = this.tf;\n tf.EvtManager(\n tf.Evt.name.checklist,\n { slcIndex:colIndex, slcExternal:isExternal, slcId:extFltId }\n );\n }\n\n /**\n * Build checklist UI\n * @param {Number} colIndex Column index\n * @param {Boolean} isExternal Render in external container\n * @param {String} extFltId External container id\n */\n _build(colIndex, isExternal=false, extFltId=null){\n var tf = this.tf;\n colIndex = parseInt(colIndex, 10);\n\n this.opts = [];\n this.optsTxt = [];\n\n var divFltId = this.prfxCheckListDiv+colIndex+'_'+tf.id;\n if((!Dom.id(divFltId) && !isExternal) ||\n (!Dom.id(extFltId) && isExternal)){\n return;\n }\n\n var flt = !isExternal ? this.checkListDiv[colIndex] : Dom.id(extFltId);\n var ul = Dom.create(\n 'ul', ['id', tf.fltIds[colIndex]], ['colIndex', colIndex]);\n ul.className = this.checkListCssClass;\n Event.add(ul, 'change', (evt) => { this.onChange(evt); });\n\n var rows = tf.tbl.rows;\n this.isCustom = tf.isCustomOptions(colIndex);\n\n var activeFlt;\n if(tf.linkedFilters && tf.activeFilterId){\n activeFlt = tf.activeFilterId.split('_')[0];\n activeFlt = activeFlt.split(tf.prfxFlt)[1];\n }\n\n var filteredDataCol = [];\n if(tf.linkedFilters && tf.disableExcludedOptions){\n this.excludedOpts = [];\n }\n\n for(var k=tf.refRow; k<tf.nbRows; k++){\n // always visible rows don't need to appear on selects as always\n // valid\n if(tf.hasVisibleRows && tf.visibleRows.indexOf(k) !== -1){\n continue;\n }\n\n var cells = rows[k].cells;\n var ncells = cells.length;\n\n // checks if row has exact cell #\n if(ncells !== tf.nbCells || this.isCustom){\n continue;\n }\n\n // this loop retrieves cell data\n for(var j=0; j<ncells; j++){\n // WTF: cyclomatic complexity hell :)\n if((colIndex===j && (!tf.linkedFilters ||\n (tf.linkedFilters && tf.disableExcludedOptions)))||\n (colIndex===j && tf.linkedFilters &&\n ((rows[k].style.display === '' && !tf.paging) ||\n (tf.paging && ((!activeFlt || activeFlt===colIndex )||\n (activeFlt!=colIndex &&\n tf.validRowsIndex.indexOf(k) != -1)) )))){\n var cell_data = tf.getCellData(cells[j]);\n //Vary Peter's patch\n var cell_string = Str.matchCase(cell_data, tf.matchCase);\n // checks if celldata is already in array\n if(!Arr.has(this.opts, cell_string, tf.matchCase)){\n this.opts.push(cell_data);\n }\n var filteredCol = filteredDataCol[j];\n if(tf.linkedFilters && tf.disableExcludedOptions){\n if(!filteredCol){\n filteredCol = tf.getFilteredDataCol(j);\n }\n if(!Arr.has(filteredCol, cell_string, tf.matchCase) &&\n !Arr.has(this.excludedOpts,\n cell_string, tf.matchCase) &&\n !tf.isFirstLoad){\n this.excludedOpts.push(cell_data);\n }\n }\n }\n }\n }\n\n //Retrieves custom values\n if(this.isCustom){\n var customValues = tf.getCustomOptions(colIndex);\n this.opts = customValues[0];\n this.optsTxt = customValues[1];\n }\n\n if(tf.sortSlc && !this.isCustom){\n if (!tf.matchCase){\n this.opts.sort(Sort.ignoreCase);\n if(this.excludedOpts){\n this.excludedOpts.sort(Sort.ignoreCase);\n }\n } else {\n this.opts.sort();\n if(this.excludedOpts){\n this.excludedOpts.sort();\n }\n }\n }\n //asc sort\n if(tf.sortNumAsc && tf.sortNumAsc.indexOf(colIndex) != -1){\n try{\n this.opts.sort(numSortAsc);\n if(this.excludedOpts){\n this.excludedOpts.sort(numSortAsc);\n }\n if(this.isCustom){\n this.optsTxt.sort(numSortAsc);\n }\n } catch(e) {\n this.opts.sort();\n if(this.excludedOpts){\n this.excludedOpts.sort();\n }\n if(this.isCustom){\n this.optsTxt.sort();\n }\n }//in case there are alphanumeric values\n }\n //desc sort\n if(tf.sortNumDesc && tf.sortNumDesc.indexOf(colIndex) != -1){\n try{\n this.opts.sort(numSortDesc);\n if(this.excludedOpts){\n this.excludedOpts.sort(numSortDesc);\n }\n if(this.isCustom){\n this.optsTxt.sort(numSortDesc);\n }\n } catch(e) {\n this.opts.sort();\n if(this.excludedOpts){\n this.excludedOpts.sort(); }\n if(this.isCustom){\n this.optsTxt.sort();\n }\n }//in case there are alphanumeric values\n }\n\n this.addChecks(colIndex, ul, tf.separator);\n\n if(tf.loadFltOnDemand){\n flt.innerHTML = '';\n }\n flt.appendChild(ul);\n flt.setAttribute('filled', '1');\n }\n\n /**\n * Add checklist options\n * @param {Number} colIndex Column index\n * @param {Object} ul Ul element\n */\n addChecks(colIndex, ul){\n var tf = this.tf;\n var chkCt = this.addTChecks(colIndex, ul);\n var fltArr = []; //remember grid values\n var store = tf.feature('store');\n var tmpVal = store ?\n store.getFilterValues(tf.fltsValuesCookie)[colIndex] : null;\n if(tmpVal && Str.trim(tmpVal).length > 0){\n if(tf.hasCustomSlcOptions &&\n tf.customSlcOptions.cols.indexOf(colIndex) != -1){\n fltArr.push(tmpVal);\n } else {\n fltArr = tmpVal.split(' '+tf.orOperator+' ');\n }\n }\n\n for(var y=0; y<this.opts.length; y++){\n var val = this.opts[y]; //item value\n var lbl = this.isCustom ? this.optsTxt[y] : val; //item text\n var li = Dom.createCheckItem(\n tf.fltIds[colIndex]+'_'+(y+chkCt), val, lbl);\n li.className = this.checkListItemCssClass;\n if(tf.linkedFilters && tf.disableExcludedOptions &&\n Arr.has(this.excludedOpts,\n Str.matchCase(val, tf.matchCase), tf.matchCase)){\n Dom.addClass(li, this.checkListItemDisabledCssClass);\n li.check.disabled = true;\n li.disabled = true;\n } else {\n Event.add(li.check, 'click',\n (evt) => { this.optionClick(evt); });\n }\n ul.appendChild(li);\n\n if(val===''){\n //item is hidden\n li.style.display = 'none';\n }\n\n /*** remember grid values ***/\n if(tf.rememberGridValues){\n if((tf.hasCustomSlcOptions &&\n tf.customSlcOptions.cols.indexOf(colIndex) != -1 &&\n fltArr.toString().indexOf(val) != -1) ||\n Arr.has(fltArr,\n Str.matchCase(val, tf.matchCase), tf.matchCase)){\n li.check.checked = true;\n this.setCheckListValues(li.check);\n }\n }\n }\n }\n\n /**\n * Add checklist header option\n * @param {Number} colIndex Column index\n * @param {Object} ul Ul element\n */\n addTChecks(colIndex, ul){\n var tf = this.tf;\n var chkCt = 1;\n var li0 = Dom.createCheckItem(\n tf.fltIds[colIndex]+'_0', '', tf.displayAllText);\n li0.className = this.checkListItemCssClass;\n ul.appendChild(li0);\n\n Event.add(li0.check, 'click', (evt) => {\n this.optionClick(evt);\n });\n\n if(!this.enableCheckListResetFilter){\n li0.style.display = 'none';\n }\n\n if(tf.enableEmptyOption){\n var li1 = Dom.createCheckItem(\n tf.fltIds[colIndex]+'_1', tf.emOperator, tf.emptyText);\n li1.className = this.checkListItemCssClass;\n ul.appendChild(li1);\n Event.add(li1.check, 'click', (evt) => {\n this.optionClick(evt);\n });\n chkCt++;\n }\n\n if(tf.enableNonEmptyOption){\n var li2 = Dom.createCheckItem(\n tf.fltIds[colIndex]+'_2',\n tf.nmOperator,\n tf.nonEmptyText\n );\n li2.className = this.checkListItemCssClass;\n ul.appendChild(li2);\n Event.add(li2.check, 'click', (evt) => {\n this.optionClick(evt);\n });\n chkCt++;\n }\n return chkCt;\n }\n\n /**\n * Store checked options in DOM element attribute\n * @param {Object} o checklist option DOM element\n */\n setCheckListValues(o){\n if(!o){\n return;\n }\n var tf = this.tf;\n var chkValue = o.value; //checked item value\n var chkIndex = parseInt(o.id.split('_')[2], 10);\n var filterTag = 'ul', itemTag = 'li';\n var n = o;\n\n //ul tag search\n while(Str.lower(n.nodeName)!==filterTag){\n n = n.parentNode;\n }\n\n var li = n.childNodes[chkIndex];\n var colIndex = n.getAttribute('colIndex');\n var fltValue = n.getAttribute('value'); //filter value (ul tag)\n var fltIndexes = n.getAttribute('indexes'); //selected items (ul tag)\n\n if(o.checked){\n //show all item\n if(chkValue===''){\n if((fltIndexes && fltIndexes!=='')){\n //items indexes\n var indSplit = fltIndexes.split(tf.separator);\n //checked items loop\n for(var u=0; u<indSplit.length; u++){\n //checked item\n var cChk = Dom.id(tf.fltIds[colIndex]+'_'+indSplit[u]);\n if(cChk){\n cChk.checked = false;\n Dom.removeClass(\n n.childNodes[indSplit[u]],\n this.checkListSlcItemCssClass\n );\n }\n }\n }\n n.setAttribute('value', '');\n n.setAttribute('indexes', '');\n\n } else {\n fltValue = (fltValue) ? fltValue : '';\n chkValue = Str.trim(\n fltValue+' '+chkValue+' '+tf.orOperator);\n chkIndex = fltIndexes + chkIndex + tf.separator;\n n.setAttribute('value', chkValue );\n n.setAttribute('indexes', chkIndex);\n //1st option unchecked\n if(Dom.id(tf.fltIds[colIndex]+'_0')){\n Dom.id(tf.fltIds[colIndex]+'_0').checked = false;\n }\n }\n\n if(Str.lower(li.nodeName) === itemTag){\n Dom.removeClass(\n n.childNodes[0], this.checkListSlcItemCssClass);\n Dom.addClass(li, this.checkListSlcItemCssClass);\n }\n } else { //removes values and indexes\n if(chkValue!==''){\n var replaceValue = new RegExp(\n Str.rgxEsc(chkValue+' '+tf.orOperator));\n fltValue = fltValue.replace(replaceValue,'');\n n.setAttribute('value', Str.trim(fltValue));\n\n var replaceIndex = new RegExp(\n Str.rgxEsc(chkIndex + tf.separator));\n fltIndexes = fltIndexes.replace(replaceIndex, '');\n n.setAttribute('indexes', fltIndexes);\n }\n if(Str.lower(li.nodeName)===itemTag){\n Dom.removeClass(li, this.checkListSlcItemCssClass);\n }\n }\n }\n}\n"
|
|
},
|
|
{
|
|
"kind": "class",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "CheckList",
|
|
"memberof": "src/modules/checkList.js",
|
|
"longname": "src/modules/checkList.js~CheckList",
|
|
"access": null,
|
|
"export": true,
|
|
"importPath": "tablefilter/src/modules/checkList.js",
|
|
"importStyle": "{CheckList}",
|
|
"description": null,
|
|
"lineNumber": 7,
|
|
"undocument": true,
|
|
"interface": false
|
|
},
|
|
{
|
|
"kind": "constructor",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "constructor",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#constructor",
|
|
"access": null,
|
|
"description": "Checklist UI component",
|
|
"lineNumber": 13,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "tf",
|
|
"description": "TableFilter instance"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "checkListDiv",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#checkListDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 17,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "checkListDivCssClass",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#checkListDivCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 19,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "checkListCssClass",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#checkListCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 22,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "checkListItemCssClass",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#checkListItemCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 24,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "checkListSlcItemCssClass",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#checkListSlcItemCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 27,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "activateCheckListTxt",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#activateCheckListTxt",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 30,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "checkListItemDisabledCssClass",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#checkListItemDisabledCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 33,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "enableCheckListResetFilter",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#enableCheckListResetFilter",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 36,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxCheckListDiv",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#prfxCheckListDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 39,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "isCustom",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#isCustom",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 41,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "opts",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#opts",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 42,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "optsTxt",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#optsTxt",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 43,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "excludedOpts",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#excludedOpts",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 44,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tf",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#tf",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 46,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onChange",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#onChange",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 50,
|
|
"undocument": true,
|
|
"params": [
|
|
{
|
|
"name": "evt",
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "optionClick",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#optionClick",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 57,
|
|
"undocument": true,
|
|
"params": [
|
|
{
|
|
"name": "evt",
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "build",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#build",
|
|
"access": null,
|
|
"description": "Build checklist UI asynchronously",
|
|
"lineNumber": 68,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "colIndex",
|
|
"description": "Column index"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "isExternal",
|
|
"description": "Render in external container"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "extFltId",
|
|
"description": "External container id"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "_build",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#_build",
|
|
"access": null,
|
|
"description": "Build checklist UI",
|
|
"lineNumber": 82,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "colIndex",
|
|
"description": "Column index"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "isExternal",
|
|
"description": "Render in external container"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "extFltId",
|
|
"description": "External container id"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "opts",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#opts",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 86,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "optsTxt",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#optsTxt",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 87,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "isCustom",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#isCustom",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 102,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "excludedOpts",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#excludedOpts",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 112,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "opts",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#opts",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 166,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "optsTxt",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#optsTxt",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 167,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "addChecks",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#addChecks",
|
|
"access": null,
|
|
"description": "Add checklist options",
|
|
"lineNumber": 237,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "colIndex",
|
|
"description": "Column index"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "ul",
|
|
"description": "Ul element"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "addTChecks",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#addTChecks",
|
|
"access": null,
|
|
"description": "Add checklist header option",
|
|
"lineNumber": 295,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "colIndex",
|
|
"description": "Column index"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "ul",
|
|
"description": "Ul element"
|
|
}
|
|
],
|
|
"return": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "setCheckListValues",
|
|
"memberof": "src/modules/checkList.js~CheckList",
|
|
"longname": "src/modules/checkList.js~CheckList#setCheckListValues",
|
|
"access": null,
|
|
"description": "Store checked options in DOM element attribute",
|
|
"lineNumber": 342,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "o",
|
|
"description": "checklist option DOM element"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/modules/clearButton.js",
|
|
"memberof": null,
|
|
"longname": "src/modules/clearButton.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1,
|
|
"content": "import {Feature} from './feature';\nimport Dom from '../dom';\nimport Event from '../event';\n\nexport class ClearButton extends Feature{\n\n /**\n * Clear button component\n * @param {Object} tf TableFilter instance\n */\n constructor(tf){\n super(tf, 'btnReset');\n\n // Configuration object\n var f = this.config;\n\n //id of container element\n this.btnResetTgtId = f.btn_reset_target_id || null;\n //reset button element\n this.btnResetEl = null;\n //defines reset text\n this.btnResetText = f.btn_reset_text || 'Reset';\n //defines reset button tooltip\n this.btnResetTooltip = f.btn_reset_tooltip || 'Clear filters';\n //defines reset button innerHtml\n this.btnResetHtml = f.btn_reset_html ||\n (!tf.enableIcons ? null :\n '<input type=\"button\" value=\"\" class=\"'+tf.btnResetCssClass+'\" ' +\n 'title=\"'+this.btnResetTooltip+'\" />');\n //span containing reset button\n this.prfxResetSpan = 'resetspan_';\n }\n\n onClick(){\n if(!this.isEnabled()){\n return;\n }\n this.tf.clearFilters();\n }\n\n /**\n * Build DOM elements\n */\n init(){\n var tf = this.tf;\n\n if(this.initialized){\n return;\n }\n\n var resetspan = Dom.create('span', ['id', this.prfxResetSpan+tf.id]);\n\n // reset button is added to defined element\n if(!this.btnResetTgtId){\n tf.setToolbar();\n }\n var targetEl = !this.btnResetTgtId ?\n tf.rDiv : Dom.id(this.btnResetTgtId);\n targetEl.appendChild(resetspan);\n\n if(!this.btnResetHtml){\n var fltreset = Dom.create('a', ['href', 'javascript:void(0);']);\n fltreset.className = tf.btnResetCssClass;\n fltreset.appendChild(Dom.text(this.btnResetText));\n resetspan.appendChild(fltreset);\n Event.add(fltreset, 'click', ()=> { this.onClick(); });\n } else {\n resetspan.innerHTML = this.btnResetHtml;\n var resetEl = resetspan.firstChild;\n Event.add(resetEl, 'click', ()=> { this.onClick(); });\n }\n this.btnResetEl = resetspan.firstChild;\n\n this.initialized = true;\n }\n\n /**\n * Remove clear button UI\n */\n destroy(){\n var tf = this.tf;\n\n if(!this.initialized){\n return;\n }\n\n var resetspan = Dom.id(this.prfxResetSpan+tf.id);\n if(resetspan){\n resetspan.parentNode.removeChild(resetspan);\n }\n this.btnResetEl = null;\n this.disable();\n this.initialized = false;\n }\n}\n"
|
|
},
|
|
{
|
|
"kind": "class",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "ClearButton",
|
|
"memberof": "src/modules/clearButton.js",
|
|
"longname": "src/modules/clearButton.js~ClearButton",
|
|
"access": null,
|
|
"export": true,
|
|
"importPath": "tablefilter/src/modules/clearButton.js",
|
|
"importStyle": "{ClearButton}",
|
|
"description": null,
|
|
"lineNumber": 5,
|
|
"undocument": true,
|
|
"interface": false,
|
|
"extends": [
|
|
"src/modules/feature~Feature"
|
|
]
|
|
},
|
|
{
|
|
"kind": "constructor",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "constructor",
|
|
"memberof": "src/modules/clearButton.js~ClearButton",
|
|
"longname": "src/modules/clearButton.js~ClearButton#constructor",
|
|
"access": null,
|
|
"description": "Clear button component",
|
|
"lineNumber": 11,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "tf",
|
|
"description": "TableFilter instance"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnResetTgtId",
|
|
"memberof": "src/modules/clearButton.js~ClearButton",
|
|
"longname": "src/modules/clearButton.js~ClearButton#btnResetTgtId",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 18,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnResetEl",
|
|
"memberof": "src/modules/clearButton.js~ClearButton",
|
|
"longname": "src/modules/clearButton.js~ClearButton#btnResetEl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 20,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnResetText",
|
|
"memberof": "src/modules/clearButton.js~ClearButton",
|
|
"longname": "src/modules/clearButton.js~ClearButton#btnResetText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 22,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnResetTooltip",
|
|
"memberof": "src/modules/clearButton.js~ClearButton",
|
|
"longname": "src/modules/clearButton.js~ClearButton#btnResetTooltip",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 24,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnResetHtml",
|
|
"memberof": "src/modules/clearButton.js~ClearButton",
|
|
"longname": "src/modules/clearButton.js~ClearButton#btnResetHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 26,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxResetSpan",
|
|
"memberof": "src/modules/clearButton.js~ClearButton",
|
|
"longname": "src/modules/clearButton.js~ClearButton#prfxResetSpan",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 31,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onClick",
|
|
"memberof": "src/modules/clearButton.js~ClearButton",
|
|
"longname": "src/modules/clearButton.js~ClearButton#onClick",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 34,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "init",
|
|
"memberof": "src/modules/clearButton.js~ClearButton",
|
|
"longname": "src/modules/clearButton.js~ClearButton#init",
|
|
"access": null,
|
|
"description": "Build DOM elements",
|
|
"lineNumber": 44,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnResetEl",
|
|
"memberof": "src/modules/clearButton.js~ClearButton",
|
|
"longname": "src/modules/clearButton.js~ClearButton#btnResetEl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 72,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/modules/clearButton.js~ClearButton",
|
|
"longname": "src/modules/clearButton.js~ClearButton#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 74,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "destroy",
|
|
"memberof": "src/modules/clearButton.js~ClearButton",
|
|
"longname": "src/modules/clearButton.js~ClearButton#destroy",
|
|
"access": null,
|
|
"description": "Remove clear button UI",
|
|
"lineNumber": 80,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnResetEl",
|
|
"memberof": "src/modules/clearButton.js~ClearButton",
|
|
"longname": "src/modules/clearButton.js~ClearButton#btnResetEl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 91,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/modules/clearButton.js~ClearButton",
|
|
"longname": "src/modules/clearButton.js~ClearButton#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 93,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/modules/dropdown.js",
|
|
"memberof": null,
|
|
"longname": "src/modules/dropdown.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1,
|
|
"content": "import Dom from '../dom';\nimport Arr from '../array';\nimport Str from '../string';\nimport Sort from '../sort';\n\nexport class Dropdown{\n\n /**\n * Dropdown UI component\n * @param {Object} tf TableFilter instance\n */\n constructor(tf){\n // Configuration object\n var f = tf.config();\n\n this.enableSlcResetFilter = f.enable_slc_reset_filter===false ?\n false : true;\n //defines empty option text\n this.nonEmptyText = f.non_empty_text || '(Non empty)';\n //sets select filling method: 'innerHTML' or 'createElement'\n this.slcFillingMethod = f.slc_filling_method || 'createElement';\n //IE only, tooltip text appearing on select before it is populated\n this.activateSlcTooltip = f.activate_slc_tooltip ||\n 'Click to activate';\n //tooltip text appearing on multiple select\n this.multipleSlcTooltip = f.multiple_slc_tooltip ||\n 'Use Ctrl key for multiple selections';\n\n this.isCustom = null;\n this.opts = null;\n this.optsTxt = null;\n this.slcInnerHtml = null;\n\n this.tf = tf;\n }\n\n /**\n * Build drop-down filter UI asynchronously\n * @param {Number} colIndex Column index\n * @param {Boolean} isLinked Enable linked refresh behaviour\n * @param {Boolean} isExternal Render in external container\n * @param {String} extSlcId External container id\n */\n build(colIndex, isLinked, isExternal, extSlcId){\n var tf = this.tf;\n tf.EvtManager(\n tf.Evt.name.dropdown,\n {\n slcIndex: colIndex,\n slcRefreshed: isLinked,\n slcExternal: isExternal,\n slcId: extSlcId\n }\n );\n }\n\n /**\n * Build drop-down filter UI\n * @param {Number} colIndex Column index\n * @param {Boolean} isLinked Enable linked refresh behaviour\n * @param {Boolean} isExternal Render in external container\n * @param {String} extSlcId External container id\n */\n _build(colIndex, isLinked=false, isExternal=false, extSlcId=null){\n var tf = this.tf;\n colIndex = parseInt(colIndex, 10);\n\n this.opts = [];\n this.optsTxt = [];\n this.slcInnerHtml = '';\n\n var slcId = tf.fltIds[colIndex];\n if((!Dom.id(slcId) && !isExternal) ||\n (!Dom.id(extSlcId) && isExternal)){\n return;\n }\n var slc = !isExternal ? Dom.id(slcId) : Dom.id(extSlcId),\n rows = tf.tbl.rows,\n matchCase = tf.matchCase;\n\n //custom select test\n this.isCustom = tf.isCustomOptions(colIndex);\n\n //custom selects text\n var activeFlt;\n if(isLinked && tf.activeFilterId){\n activeFlt = tf.activeFilterId.split('_')[0];\n activeFlt = activeFlt.split(tf.prfxFlt)[1];\n }\n\n /*** remember grid values ***/\n var fltsValues = [], fltArr = [];\n if(tf.rememberGridValues){\n fltsValues =\n tf.feature('store').getFilterValues(tf.fltsValuesCookie);\n if(fltsValues && !Str.isEmpty(fltsValues.toString())){\n if(this.isCustom){\n fltArr.push(fltsValues[colIndex]);\n } else {\n fltArr = fltsValues[colIndex].split(' '+tf.orOperator+' ');\n }\n }\n }\n\n var excludedOpts = null,\n filteredDataCol = null;\n if(isLinked && tf.disableExcludedOptions){\n excludedOpts = [];\n filteredDataCol = [];\n }\n\n for(var k=tf.refRow; k<tf.nbRows; k++){\n // always visible rows don't need to appear on selects as always\n // valid\n if(tf.hasVisibleRows && tf.visibleRows.indexOf(k) !== -1){\n continue;\n }\n\n var cell = rows[k].cells,\n nchilds = cell.length;\n\n // checks if row has exact cell #\n if(nchilds !== tf.nbCells || this.isCustom){\n continue;\n }\n\n // this loop retrieves cell data\n for(var j=0; j<nchilds; j++){\n // WTF: cyclomatic complexity hell\n if((colIndex===j &&\n (!isLinked ||\n (isLinked && tf.disableExcludedOptions))) ||\n (colIndex==j && isLinked &&\n ((rows[k].style.display === '' && !tf.paging) ||\n (tf.paging && (!tf.validRowsIndex ||\n (tf.validRowsIndex &&\n tf.validRowsIndex.indexOf(k) != -1)) &&\n ((activeFlt===undefined || activeFlt==colIndex) ||\n (activeFlt!=colIndex &&\n tf.validRowsIndex.indexOf(k) != -1 ))) ))){\n var cell_data = tf.getCellData(cell[j]),\n //Vary Peter's patch\n cell_string = Str.matchCase(cell_data, matchCase);\n\n // checks if celldata is already in array\n if(!Arr.has(this.opts, cell_string, matchCase)){\n this.opts.push(cell_data);\n }\n\n if(isLinked && tf.disableExcludedOptions){\n var filteredCol = filteredDataCol[j];\n if(!filteredCol){\n filteredCol = tf.getFilteredDataCol(j);\n }\n if(!Arr.has(filteredCol, cell_string, matchCase) &&\n !Arr.has(\n excludedOpts, cell_string, matchCase) &&\n !this.isFirstLoad){\n excludedOpts.push(cell_data);\n }\n }\n }//if colIndex==j\n }//for j\n }//for k\n\n //Retrieves custom values\n if(this.isCustom){\n var customValues = tf.getCustomOptions(colIndex);\n this.opts = customValues[0];\n this.optsTxt = customValues[1];\n }\n\n if(tf.sortSlc && !this.isCustom){\n if (!matchCase){\n this.opts.sort(Sort.ignoreCase);\n if(excludedOpts){\n excludedOpts.sort(Sort.ignoreCase);\n }\n } else {\n this.opts.sort();\n if(excludedOpts){ excludedOpts.sort(); }\n }\n }\n\n //asc sort\n if(tf.sortNumAsc && tf.sortNumAsc.indexOf(colIndex) != -1){\n try{\n this.opts.sort( numSortAsc );\n if(excludedOpts){\n excludedOpts.sort(numSortAsc);\n }\n if(this.isCustom){\n this.optsTxt.sort(numSortAsc);\n }\n } catch(e) {\n this.opts.sort();\n if(excludedOpts){\n excludedOpts.sort();\n }\n if(this.isCustom){\n this.optsTxt.sort();\n }\n }//in case there are alphanumeric values\n }\n //desc sort\n if(tf.sortNumDesc && tf.sortNumDesc.indexOf(colIndex) != -1){\n try{\n this.opts.sort(numSortDesc);\n if(excludedOpts){\n excludedOpts.sort(numSortDesc);\n }\n if(this.isCustom){\n this.optsTxt.sort(numSortDesc);\n }\n } catch(e) {\n this.opts.sort();\n if(excludedOpts){\n excludedOpts.sort();\n }\n if(this.isCustom){\n this.optsTxt.sort();\n }\n }//in case there are alphanumeric values\n }\n\n //populates drop-down\n this.addOptions(\n colIndex, slc, isLinked, excludedOpts, fltsValues, fltArr);\n }\n\n /**\n * Add drop-down options\n * @param {Number} colIndex Column index\n * @param {Object} slc Select Dom element\n * @param {Boolean} isLinked Enable linked refresh behaviour\n * @param {Array} excludedOpts Array of excluded options\n * @param {Array} fltsValues Collection of persisted filter values\n * @param {Array} fltArr Collection of persisted filter values\n */\n addOptions(colIndex, slc, isLinked, excludedOpts, fltsValues, fltArr){\n var tf = this.tf,\n fillMethod = Str.lower(this.slcFillingMethod),\n slcValue = slc.value;\n\n slc.innerHTML = '';\n slc = this.addFirstOption(slc);\n\n for(var y=0; y<this.opts.length; y++){\n if(this.opts[y]===''){\n continue;\n }\n var val = this.opts[y]; //option value\n var lbl = this.isCustom ? this.optsTxt[y] : val; //option text\n var isDisabled = false;\n if(isLinked && tf.disableExcludedOptions &&\n Arr.has(\n excludedOpts,\n Str.matchCase(val, tf.matchCase),\n tf.matchCase\n )){\n isDisabled = true;\n }\n\n if(fillMethod === 'innerhtml'){\n var slcAttr = '';\n if(tf.loadFltOnDemand && slcValue===this.opts[y]){\n slcAttr = 'selected=\"selected\"';\n }\n this.slcInnerHtml += '<option value=\"'+val+'\" ' + slcAttr +\n (isDisabled ? 'disabled=\"disabled\"' : '')+ '>' +\n lbl+'</option>';\n } else {\n var opt;\n //fill select on demand\n if(tf.loadFltOnDemand && slcValue===this.opts[y] &&\n tf.getFilterType(colIndex) === tf.fltTypeSlc){\n opt = Dom.createOpt(lbl, val, true);\n } else {\n if(tf.getFilterType(colIndex) !== tf.fltTypeMulti){\n opt = Dom.createOpt(\n lbl,\n val,\n (fltsValues[colIndex]!==' ' &&\n val===fltsValues[colIndex]) ? true : false\n );\n } else {\n opt = Dom.createOpt(\n lbl,\n val,\n (Arr.has(fltArr,\n Str.matchCase(this.opts[y], tf.matchCase),\n tf.matchCase) ||\n fltArr.toString().indexOf(val)!== -1) ?\n true : false\n );\n }\n }\n if(isDisabled){\n opt.disabled = true;\n }\n slc.appendChild(opt);\n }\n }// for y\n\n if(fillMethod === 'innerhtml'){\n slc.innerHTML += this.slcInnerHtml;\n }\n slc.setAttribute('filled', '1');\n }\n\n /**\n * Add drop-down header option\n * @param {Object} slc Select DOM element\n */\n addFirstOption(slc){\n var tf = this.tf,\n fillMethod = Str.lower(this.slcFillingMethod);\n\n if(fillMethod === 'innerhtml'){\n this.slcInnerHtml += '<option value=\"\">'+ tf.displayAllText +\n '</option>';\n }\n else {\n var opt0 = Dom.createOpt(\n (!this.enableSlcResetFilter ? '' : tf.displayAllText),'');\n if(!this.enableSlcResetFilter){\n opt0.style.display = 'none';\n }\n slc.appendChild(opt0);\n if(tf.enableEmptyOption){\n var opt1 = Dom.createOpt(tf.emptyText, tf.emOperator);\n slc.appendChild(opt1);\n }\n if(tf.enableNonEmptyOption){\n var opt2 = Dom.createOpt(tf.nonEmptyText, tf.nmOperator);\n slc.appendChild(opt2);\n }\n }\n return slc;\n }\n\n}\n"
|
|
},
|
|
{
|
|
"kind": "class",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Dropdown",
|
|
"memberof": "src/modules/dropdown.js",
|
|
"longname": "src/modules/dropdown.js~Dropdown",
|
|
"access": null,
|
|
"export": true,
|
|
"importPath": "tablefilter/src/modules/dropdown.js",
|
|
"importStyle": "{Dropdown}",
|
|
"description": null,
|
|
"lineNumber": 6,
|
|
"undocument": true,
|
|
"interface": false
|
|
},
|
|
{
|
|
"kind": "constructor",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "constructor",
|
|
"memberof": "src/modules/dropdown.js~Dropdown",
|
|
"longname": "src/modules/dropdown.js~Dropdown#constructor",
|
|
"access": null,
|
|
"description": "Dropdown UI component",
|
|
"lineNumber": 12,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "tf",
|
|
"description": "TableFilter instance"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "enableSlcResetFilter",
|
|
"memberof": "src/modules/dropdown.js~Dropdown",
|
|
"longname": "src/modules/dropdown.js~Dropdown#enableSlcResetFilter",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 16,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nonEmptyText",
|
|
"memberof": "src/modules/dropdown.js~Dropdown",
|
|
"longname": "src/modules/dropdown.js~Dropdown#nonEmptyText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 19,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "slcFillingMethod",
|
|
"memberof": "src/modules/dropdown.js~Dropdown",
|
|
"longname": "src/modules/dropdown.js~Dropdown#slcFillingMethod",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 21,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "activateSlcTooltip",
|
|
"memberof": "src/modules/dropdown.js~Dropdown",
|
|
"longname": "src/modules/dropdown.js~Dropdown#activateSlcTooltip",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 23,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "multipleSlcTooltip",
|
|
"memberof": "src/modules/dropdown.js~Dropdown",
|
|
"longname": "src/modules/dropdown.js~Dropdown#multipleSlcTooltip",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 26,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "isCustom",
|
|
"memberof": "src/modules/dropdown.js~Dropdown",
|
|
"longname": "src/modules/dropdown.js~Dropdown#isCustom",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 29,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "opts",
|
|
"memberof": "src/modules/dropdown.js~Dropdown",
|
|
"longname": "src/modules/dropdown.js~Dropdown#opts",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 30,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "optsTxt",
|
|
"memberof": "src/modules/dropdown.js~Dropdown",
|
|
"longname": "src/modules/dropdown.js~Dropdown#optsTxt",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 31,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "slcInnerHtml",
|
|
"memberof": "src/modules/dropdown.js~Dropdown",
|
|
"longname": "src/modules/dropdown.js~Dropdown#slcInnerHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 32,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tf",
|
|
"memberof": "src/modules/dropdown.js~Dropdown",
|
|
"longname": "src/modules/dropdown.js~Dropdown#tf",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 34,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "build",
|
|
"memberof": "src/modules/dropdown.js~Dropdown",
|
|
"longname": "src/modules/dropdown.js~Dropdown#build",
|
|
"access": null,
|
|
"description": "Build drop-down filter UI asynchronously",
|
|
"lineNumber": 44,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "colIndex",
|
|
"description": "Column index"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "isLinked",
|
|
"description": "Enable linked refresh behaviour"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "isExternal",
|
|
"description": "Render in external container"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "extSlcId",
|
|
"description": "External container id"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "_build",
|
|
"memberof": "src/modules/dropdown.js~Dropdown",
|
|
"longname": "src/modules/dropdown.js~Dropdown#_build",
|
|
"access": null,
|
|
"description": "Build drop-down filter UI",
|
|
"lineNumber": 64,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "colIndex",
|
|
"description": "Column index"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "isLinked",
|
|
"description": "Enable linked refresh behaviour"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "isExternal",
|
|
"description": "Render in external container"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "extSlcId",
|
|
"description": "External container id"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "opts",
|
|
"memberof": "src/modules/dropdown.js~Dropdown",
|
|
"longname": "src/modules/dropdown.js~Dropdown#opts",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 68,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "optsTxt",
|
|
"memberof": "src/modules/dropdown.js~Dropdown",
|
|
"longname": "src/modules/dropdown.js~Dropdown#optsTxt",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 69,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "slcInnerHtml",
|
|
"memberof": "src/modules/dropdown.js~Dropdown",
|
|
"longname": "src/modules/dropdown.js~Dropdown#slcInnerHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 70,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "isCustom",
|
|
"memberof": "src/modules/dropdown.js~Dropdown",
|
|
"longname": "src/modules/dropdown.js~Dropdown#isCustom",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 82,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "opts",
|
|
"memberof": "src/modules/dropdown.js~Dropdown",
|
|
"longname": "src/modules/dropdown.js~Dropdown#opts",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 169,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "optsTxt",
|
|
"memberof": "src/modules/dropdown.js~Dropdown",
|
|
"longname": "src/modules/dropdown.js~Dropdown#optsTxt",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 170,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "addOptions",
|
|
"memberof": "src/modules/dropdown.js~Dropdown",
|
|
"longname": "src/modules/dropdown.js~Dropdown#addOptions",
|
|
"access": null,
|
|
"description": "Add drop-down options",
|
|
"lineNumber": 240,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "colIndex",
|
|
"description": "Column index"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "slc",
|
|
"description": "Select Dom element"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "isLinked",
|
|
"description": "Enable linked refresh behaviour"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Array"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "excludedOpts",
|
|
"description": "Array of excluded options"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Array"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "fltsValues",
|
|
"description": "Collection of persisted filter values"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Array"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "fltArr",
|
|
"description": "Collection of persisted filter values"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "slcInnerHtml",
|
|
"memberof": "src/modules/dropdown.js~Dropdown",
|
|
"longname": "src/modules/dropdown.js~Dropdown#slcInnerHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 269,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "addFirstOption",
|
|
"memberof": "src/modules/dropdown.js~Dropdown",
|
|
"longname": "src/modules/dropdown.js~Dropdown#addFirstOption",
|
|
"access": null,
|
|
"description": "Add drop-down header option",
|
|
"lineNumber": 315,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "slc",
|
|
"description": "Select DOM element"
|
|
}
|
|
],
|
|
"return": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "slcInnerHtml",
|
|
"memberof": "src/modules/dropdown.js~Dropdown",
|
|
"longname": "src/modules/dropdown.js~Dropdown#slcInnerHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 320,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/modules/feature.js",
|
|
"memberof": null,
|
|
"longname": "src/modules/feature.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 2,
|
|
"content": "\nconst NOTIMPLEMENTED = 'Not implemented.';\n\nexport class Feature {\n constructor(tf, feature) {\n this.tf = tf;\n this.feature = feature;\n this.enabled = tf[feature];\n this.config = tf.config();\n this.initialized = false;\n }\n\n init() {\n throw new Error(NOTIMPLEMENTED);\n }\n\n reset() {\n this.enable();\n this.init();\n }\n\n destroy() {\n throw new Error(NOTIMPLEMENTED);\n }\n\n enable() {\n this.enabled = true;\n }\n\n disable() {\n this.enabled = false;\n }\n\n isEnabled() {\n return this.enabled;\n }\n}\n"
|
|
},
|
|
{
|
|
"kind": "variable",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "NOTIMPLEMENTED",
|
|
"memberof": "src/modules/feature.js",
|
|
"longname": "src/modules/feature.js~NOTIMPLEMENTED",
|
|
"access": null,
|
|
"export": false,
|
|
"importPath": "tablefilter/src/modules/feature.js",
|
|
"importStyle": null,
|
|
"description": null,
|
|
"lineNumber": 2,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "class",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Feature",
|
|
"memberof": "src/modules/feature.js",
|
|
"longname": "src/modules/feature.js~Feature",
|
|
"access": null,
|
|
"export": true,
|
|
"importPath": "tablefilter/src/modules/feature.js",
|
|
"importStyle": "{Feature}",
|
|
"description": null,
|
|
"lineNumber": 4,
|
|
"undocument": true,
|
|
"interface": false
|
|
},
|
|
{
|
|
"kind": "constructor",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "constructor",
|
|
"memberof": "src/modules/feature.js~Feature",
|
|
"longname": "src/modules/feature.js~Feature#constructor",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 5,
|
|
"undocument": true,
|
|
"params": [
|
|
{
|
|
"name": "tf",
|
|
"types": [
|
|
"*"
|
|
]
|
|
},
|
|
{
|
|
"name": "feature",
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tf",
|
|
"memberof": "src/modules/feature.js~Feature",
|
|
"longname": "src/modules/feature.js~Feature#tf",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 6,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "feature",
|
|
"memberof": "src/modules/feature.js~Feature",
|
|
"longname": "src/modules/feature.js~Feature#feature",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 7,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "enabled",
|
|
"memberof": "src/modules/feature.js~Feature",
|
|
"longname": "src/modules/feature.js~Feature#enabled",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 8,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "config",
|
|
"memberof": "src/modules/feature.js~Feature",
|
|
"longname": "src/modules/feature.js~Feature#config",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 9,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/modules/feature.js~Feature",
|
|
"longname": "src/modules/feature.js~Feature#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 10,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "init",
|
|
"memberof": "src/modules/feature.js~Feature",
|
|
"longname": "src/modules/feature.js~Feature#init",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 13,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "reset",
|
|
"memberof": "src/modules/feature.js~Feature",
|
|
"longname": "src/modules/feature.js~Feature#reset",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 17,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "destroy",
|
|
"memberof": "src/modules/feature.js~Feature",
|
|
"longname": "src/modules/feature.js~Feature#destroy",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 22,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "enable",
|
|
"memberof": "src/modules/feature.js~Feature",
|
|
"longname": "src/modules/feature.js~Feature#enable",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 26,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "enabled",
|
|
"memberof": "src/modules/feature.js~Feature",
|
|
"longname": "src/modules/feature.js~Feature#enabled",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 27,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "disable",
|
|
"memberof": "src/modules/feature.js~Feature",
|
|
"longname": "src/modules/feature.js~Feature#disable",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 30,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "enabled",
|
|
"memberof": "src/modules/feature.js~Feature",
|
|
"longname": "src/modules/feature.js~Feature#enabled",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 31,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "isEnabled",
|
|
"memberof": "src/modules/feature.js~Feature",
|
|
"longname": "src/modules/feature.js~Feature#isEnabled",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 34,
|
|
"undocument": true,
|
|
"params": [],
|
|
"return": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/modules/gridLayout.js",
|
|
"memberof": null,
|
|
"longname": "src/modules/gridLayout.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1,
|
|
"content": "import {Feature} from './feature';\nimport Dom from '../dom';\nimport Types from '../types';\nimport Event from '../event';\n\nexport class GridLayout extends Feature{\n\n /**\n * Grid layout, table with fixed headers\n * @param {Object} tf TableFilter instance\n */\n constructor(tf){\n super(tf, 'gridLayout');\n\n var f = this.config;\n\n //defines grid width\n this.gridWidth = f.grid_width || null;\n //defines grid height\n this.gridHeight = f.grid_height || null;\n //defines css class for main container\n this.gridMainContCssClass = f.grid_cont_css_class || 'grd_Cont';\n //defines css class for div containing table\n this.gridContCssClass = f.grid_tbl_cont_css_class || 'grd_tblCont';\n //defines css class for div containing headers' table\n this.gridHeadContCssClass = f.grid_tblHead_cont_css_class ||\n 'grd_headTblCont';\n //defines css class for div containing rows counter, paging etc.\n this.gridInfDivCssClass = f.grid_inf_grid_css_class || 'grd_inf';\n //defines which row contains column headers\n this.gridHeadRowIndex = f.grid_headers_row_index || 0;\n //array of headers row indexes to be placed in header table\n this.gridHeadRows = f.grid_headers_rows || [0];\n //generate filters in table headers\n this.gridEnableFilters = f.grid_enable_default_filters!==undefined ?\n f.grid_enable_default_filters : true;\n //default col width\n this.gridDefaultColWidth = f.grid_default_col_width || '100px';\n\n this.gridColElms = [];\n\n //div containing grid elements if grid_layout true\n this.prfxMainTblCont = 'gridCont_';\n //div containing table if grid_layout true\n this.prfxTblCont = 'tblCont_';\n //div containing headers table if grid_layout true\n this.prfxHeadTblCont = 'tblHeadCont_';\n //headers' table if grid_layout true\n this.prfxHeadTbl = 'tblHead_';\n //id of td containing the filter if grid_layout true\n this.prfxGridFltTd = '_td_';\n //id of th containing column header if grid_layout true\n this.prfxGridTh = 'tblHeadTh_';\n\n this.sourceTblHtml = tf.tbl.outerHTML;\n }\n\n /**\n * Generates a grid with fixed headers\n */\n init(){\n var tf = this.tf;\n var f = this.config;\n var tbl = tf.tbl;\n\n if(this.initialized){\n return;\n }\n\n tf.isExternalFlt = true;\n\n // default width of 100px if column widths not set\n if(!tf.hasColWidths){\n tf.colWidths = [];\n for(var k=0; k<tf.nbCells; k++){\n var colW,\n cell = tbl.rows[this.gridHeadRowIndex].cells[k];\n if(cell.width !== ''){\n colW = cell.width;\n } else if(cell.style.width !== ''){\n colW = parseInt(cell.style.width, 10);\n } else {\n colW = this.gridDefaultColWidth;\n }\n tf.colWidths[k] = colW;\n }\n tf.hasColWidths = true;\n }\n tf.setColWidths(this.gridHeadRowIndex);\n\n var tblW;//initial table width\n if(tbl.width !== ''){\n tblW = tbl.width;\n }\n else if(tbl.style.width !== ''){\n tblW = parseInt(tbl.style.width, 10);\n } else {\n tblW = tbl.clientWidth;\n }\n\n //Main container: it will contain all the elements\n this.tblMainCont = Dom.create('div',\n ['id', this.prfxMainTblCont + tf.id]);\n this.tblMainCont.className = this.gridMainContCssClass;\n if(this.gridWidth){\n this.tblMainCont.style.width = this.gridWidth;\n }\n tbl.parentNode.insertBefore(this.tblMainCont, tbl);\n\n //Table container: div wrapping content table\n this.tblCont = Dom.create('div',['id', this.prfxTblCont + tf.id]);\n this.tblCont.className = this.gridContCssClass;\n if(this.gridWidth){\n if(this.gridWidth.indexOf('%') != -1){\n this.tblCont.style.width = '100%';\n } else {\n this.tblCont.style.width = this.gridWidth;\n }\n }\n if(this.gridHeight){\n this.tblCont.style.height = this.gridHeight;\n }\n tbl.parentNode.insertBefore(this.tblCont, tbl);\n var t = tbl.parentNode.removeChild(tbl);\n this.tblCont.appendChild(t);\n\n //In case table width is expressed in %\n if(tbl.style.width === ''){\n tbl.style.width = (tf._containsStr('%', tblW) ?\n tbl.clientWidth : tblW) + 'px';\n }\n\n var d = this.tblCont.parentNode.removeChild(this.tblCont);\n this.tblMainCont.appendChild(d);\n\n //Headers table container: div wrapping headers table\n this.headTblCont = Dom.create(\n 'div',['id', this.prfxHeadTblCont + tf.id]);\n this.headTblCont.className = this.gridHeadContCssClass;\n if(this.gridWidth){\n if(this.gridWidth.indexOf('%') != -1){\n this.headTblCont.style.width = '100%';\n } else {\n this.headTblCont.style.width = this.gridWidth;\n }\n }\n\n //Headers table\n this.headTbl = Dom.create('table', ['id', this.prfxHeadTbl + tf.id]);\n var tH = Dom.create('tHead');\n\n //1st row should be headers row, ids are added if not set\n //Those ids are used by the sort feature\n var hRow = tbl.rows[this.gridHeadRowIndex];\n var sortTriggers = [];\n for(var n=0; n<tf.nbCells; n++){\n var c = hRow.cells[n];\n var thId = c.getAttribute('id');\n if(!thId || thId===''){\n thId = this.prfxGridTh+n+'_'+tf.id;\n c.setAttribute('id', thId);\n }\n sortTriggers.push(thId);\n }\n\n //Filters row is created\n var filtersRow = Dom.create('tr');\n if(this.gridEnableFilters && tf.fltGrid){\n tf.externalFltTgtIds = [];\n for(var j=0; j<tf.nbCells; j++){\n var fltTdId = tf.prfxFlt+j+ this.prfxGridFltTd +tf.id;\n var cl = Dom.create(tf.fltCellTag, ['id', fltTdId]);\n filtersRow.appendChild(cl);\n tf.externalFltTgtIds[j] = fltTdId;\n }\n }\n //Headers row are moved from content table to headers table\n for(var i=0; i<this.gridHeadRows.length; i++){\n var headRow = tbl.rows[this.gridHeadRows[0]];\n tH.appendChild(headRow);\n }\n this.headTbl.appendChild(tH);\n if(tf.filtersRowIndex === 0){\n tH.insertBefore(filtersRow,hRow);\n } else {\n tH.appendChild(filtersRow);\n }\n\n this.headTblCont.appendChild(this.headTbl);\n this.tblCont.parentNode.insertBefore(this.headTblCont, this.tblCont);\n\n //THead needs to be removed in content table for sort feature\n var thead = Dom.tag(tbl, 'thead');\n if(thead.length>0){\n tbl.removeChild(thead[0]);\n }\n\n //Headers table style\n this.headTbl.style.tableLayout = 'fixed';\n tbl.style.tableLayout = 'fixed';\n this.headTbl.cellPadding = tbl.cellPadding;\n this.headTbl.cellSpacing = tbl.cellSpacing;\n // this.headTbl.style.width = tbl.style.width;\n\n //content table without headers needs col widths to be reset\n tf.setColWidths(0, this.headTbl);\n\n //Headers container width\n // this.headTblCont.style.width = this.tblCont.clientWidth+'px';\n\n tbl.style.width = '';\n //\n this.headTbl.style.width = tbl.clientWidth + 'px';\n //\n\n //scroll synchronisation\n Event.add(this.tblCont, 'scroll', (evt)=> {\n var elm = Event.target(evt);\n var scrollLeft = elm.scrollLeft;\n this.headTblCont.scrollLeft = scrollLeft;\n //New pointerX calc taking into account scrollLeft\n // if(!o.isPointerXOverwritten){\n // try{\n // o.Evt.pointerX = function(evt){\n // var e = evt || global.event;\n // var bdScrollLeft = tf_StandardBody().scrollLeft +\n // scrollLeft;\n // return (e.pageX + scrollLeft) ||\n // (e.clientX + bdScrollLeft);\n // };\n // o.isPointerXOverwritten = true;\n // } catch(err) {\n // o.isPointerXOverwritten = false;\n // }\n // }\n });\n\n //Configure sort extension if any\n var sort = (f.extensions || []).filter(function(itm){\n return itm.name === 'sort';\n });\n if(sort.length === 1){\n sort[0].async_sort = true;\n sort[0].trigger_ids = sortTriggers;\n }\n\n //Cols generation for all browsers excepted IE<=7\n this.tblHasColTag = Dom.tag(tbl, 'col').length > 0 ? true : false;\n\n //Col elements are enough to keep column widths after sorting and\n //filtering\n var createColTags = function(){\n for(var k=(tf.nbCells-1); k>=0; k--){\n var col = Dom.create('col', ['id', tf.id+'_col_'+k]);\n tbl.insertBefore(col, tbl.firstChild);\n col.style.width = tf.colWidths[k];\n this.gridColElms[k] = col;\n }\n this.tblHasColTag = true;\n };\n\n if(!this.tblHasColTag){\n createColTags.call(this);\n } else {\n var cols = Dom.tag(tbl, 'col');\n for(var ii=0; ii<tf.nbCells; ii++){\n cols[ii].setAttribute('id', tf.id+'_col_'+ii);\n cols[ii].style.width = tf.colWidths[ii];\n this.gridColElms.push(cols[ii]);\n }\n }\n\n var afterColResizedFn = Types.isFn(f.on_after_col_resized) ?\n f.on_after_col_resized : null;\n f.on_after_col_resized = function(o, colIndex){\n if(!colIndex){\n return;\n }\n var w = o.crWColsRow.cells[colIndex].style.width;\n var col = o.gridColElms[colIndex];\n col.style.width = w;\n\n var thCW = o.crWColsRow.cells[colIndex].clientWidth;\n var tdCW = o.crWRowDataTbl.cells[colIndex].clientWidth;\n\n if(thCW != tdCW){\n o.headTbl.style.width = tbl.clientWidth+'px';\n }\n\n if(afterColResizedFn){\n afterColResizedFn.call(null,o,colIndex);\n }\n };\n\n if(tf.popupFilters){\n filtersRow.style.display = 'none';\n }\n\n if(tbl.clientWidth !== this.headTbl.clientWidth){\n tbl.style.width = this.headTbl.clientWidth+'px';\n }\n\n this.initialized = true;\n }\n\n /**\n * Removes the grid layout\n */\n destroy(){\n var tf = this.tf;\n var tbl = tf.tbl;\n\n if(!this.initialized){\n return;\n }\n var t = tbl.parentNode.removeChild(tbl);\n this.tblMainCont.parentNode.insertBefore(t, this.tblMainCont);\n this.tblMainCont.parentNode.removeChild(this.tblMainCont);\n\n this.tblMainCont = null;\n this.headTblCont = null;\n this.headTbl = null;\n this.tblCont = null;\n\n tbl.outerHTML = this.sourceTblHtml;\n //needed to keep reference of table element\n this.tf.tbl = Dom.id(tf.id); // ???\n\n this.initialized = false;\n }\n}\n"
|
|
},
|
|
{
|
|
"kind": "class",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "GridLayout",
|
|
"memberof": "src/modules/gridLayout.js",
|
|
"longname": "src/modules/gridLayout.js~GridLayout",
|
|
"access": null,
|
|
"export": true,
|
|
"importPath": "tablefilter/src/modules/gridLayout.js",
|
|
"importStyle": "{GridLayout}",
|
|
"description": null,
|
|
"lineNumber": 6,
|
|
"undocument": true,
|
|
"interface": false,
|
|
"extends": [
|
|
"src/modules/feature~Feature"
|
|
]
|
|
},
|
|
{
|
|
"kind": "constructor",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "constructor",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#constructor",
|
|
"access": null,
|
|
"description": "Grid layout, table with fixed headers",
|
|
"lineNumber": 12,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "tf",
|
|
"description": "TableFilter instance"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "gridWidth",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#gridWidth",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 18,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "gridHeight",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#gridHeight",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 20,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "gridMainContCssClass",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#gridMainContCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 22,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "gridContCssClass",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#gridContCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 24,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "gridHeadContCssClass",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#gridHeadContCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 26,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "gridInfDivCssClass",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#gridInfDivCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 29,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "gridHeadRowIndex",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#gridHeadRowIndex",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 31,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "gridHeadRows",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#gridHeadRows",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 33,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "gridEnableFilters",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#gridEnableFilters",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 35,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "gridDefaultColWidth",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#gridDefaultColWidth",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 38,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "gridColElms",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#gridColElms",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 40,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxMainTblCont",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#prfxMainTblCont",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 43,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxTblCont",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#prfxTblCont",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 45,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxHeadTblCont",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#prfxHeadTblCont",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 47,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxHeadTbl",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#prfxHeadTbl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 49,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxGridFltTd",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#prfxGridFltTd",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 51,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxGridTh",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#prfxGridTh",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 53,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "sourceTblHtml",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#sourceTblHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 55,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "init",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#init",
|
|
"access": null,
|
|
"description": "Generates a grid with fixed headers",
|
|
"lineNumber": 61,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tblMainCont",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#tblMainCont",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 102,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tblCont",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#tblCont",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 111,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "headTblCont",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#headTblCont",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 137,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "headTbl",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#headTbl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 149,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tblHasColTag",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#tblHasColTag",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 248,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tblHasColTag",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#tblHasColTag",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 259,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 303,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "destroy",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#destroy",
|
|
"access": null,
|
|
"description": "Removes the grid layout",
|
|
"lineNumber": 309,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tblMainCont",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#tblMainCont",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 320,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "headTblCont",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#headTblCont",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 321,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "headTbl",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#headTbl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 322,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tblCont",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#tblCont",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 323,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/modules/gridLayout.js~GridLayout",
|
|
"longname": "src/modules/gridLayout.js~GridLayout#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 329,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/modules/help.js",
|
|
"memberof": null,
|
|
"longname": "src/modules/help.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1,
|
|
"content": "import {Feature} from './feature';\nimport Dom from '../dom';\nimport Event from '../event';\n\n\nconst WIKI_URL = 'https://github.com/koalyptus/TableFilter/wiki/' +\n '4.-Filter-operators';\nconst WEBSITE_URL = 'http://koalyptus.github.io/TableFilter/';\n\nexport class Help extends Feature{\n\n /**\n * Help UI component\n * @param {Object} tf TableFilter instance\n */\n constructor(tf){\n super(tf, 'help');\n\n var f = this.config;\n\n //id of custom container element for instructions\n this.tgtId = f.help_instructions_target_id || null;\n //id of custom container element for instructions\n this.contTgtId = f.help_instructions_container_target_id ||\n null;\n //defines help text\n this.instrText = f.help_instructions_text ?\n f.help_instructions_text :\n 'Use the filters above each column to filter and limit table ' +\n 'data. Advanced searches can be performed by using the following ' +\n 'operators: <br /><b><</b>, <b><=</b>, <b>></b>, ' +\n '<b>>=</b>, <b>=</b>, <b>*</b>, <b>!</b>, <b>{</b>, <b>}</b>, ' +\n '<b>||</b>,<b>&&</b>, <b>[empty]</b>, <b>[nonempty]</b>, ' +\n '<b>rgx:</b><br/><a href=\"'+ WIKI_URL +'\" target=\"_blank\">' +\n 'Learn more</a><hr/>';\n //defines help innerHtml\n this.instrHtml = f.help_instructions_html || null;\n //defines reset button text\n this.btnText = f.help_instructions_btn_text || '?';\n //defines reset button innerHtml\n this.btnHtml = f.help_instructions_btn_html || null;\n //defines css class for help button\n this.btnCssClass = f.help_instructions_btn_css_class || 'helpBtn';\n //defines css class for help container\n this.contCssClass = f.help_instructions_container_css_class ||\n 'helpCont';\n //help button element\n this.btn = null;\n //help content div\n this.cont = null;\n this.defaultHtml = '<div class=\"helpFooter\"><h4>TableFilter ' +\n 'v'+ tf.version +'</h4>' +\n '<a href=\"'+ WEBSITE_URL +'\" target=\"_blank\">'+ WEBSITE_URL +'</a>'+\n '<br/><span>©2015-'+ tf.year +' {AUTHOR}</span>' +\n '<div align=\"center\" style=\"margin-top:8px;\">' +\n '<a href=\"javascript:void(0);\" class=\"close\">Close</a></div></div>';\n\n //id prefix for help elements\n this.prfxHelpSpan = 'helpSpan_';\n //id prefix for help elements\n this.prfxHelpDiv = 'helpDiv_';\n }\n\n init(){\n if(this.initialized){\n return;\n }\n\n var tf = this.tf;\n\n var helpspan = Dom.create('span', ['id', this.prfxHelpSpan+tf.id]);\n var helpdiv = Dom.create('div', ['id', this.prfxHelpDiv+tf.id]);\n\n //help button is added to defined element\n if(!this.tgtId){\n tf.setToolbar();\n }\n var targetEl = !this.tgtId ? tf.rDiv : Dom.id(this.tgtId);\n targetEl.appendChild(helpspan);\n\n var divContainer = !this.contTgtId ? helpspan : Dom.id(this.contTgtId);\n\n if(!this.btnHtml){\n divContainer.appendChild(helpdiv);\n var helplink = Dom.create('a', ['href', 'javascript:void(0);']);\n helplink.className = this.btnCssClass;\n helplink.appendChild(Dom.text(this.btnText));\n helpspan.appendChild(helplink);\n Event.add(helplink, 'click', () => { this.toggle(); });\n } else {\n helpspan.innerHTML = this.btnHtml;\n var helpEl = helpspan.firstChild;\n Event.add(helpEl, 'click', () => { this.toggle(); });\n divContainer.appendChild(helpdiv);\n }\n\n if(!this.instrHtml){\n helpdiv.innerHTML = this.instrText;\n helpdiv.className = this.contCssClass;\n Event.add(helpdiv, 'dblclick', () => { this.toggle(); });\n } else {\n if(this.contTgtId){\n divContainer.appendChild(helpdiv);\n }\n helpdiv.innerHTML = this.instrHtml;\n if(!this.contTgtId){\n helpdiv.className = this.contCssClass;\n Event.add(helpdiv, 'dblclick', () => { this.toggle(); });\n }\n }\n helpdiv.innerHTML += this.defaultHtml;\n Event.add(helpdiv, 'click', () => { this.toggle(); });\n\n this.cont = helpdiv;\n this.btn = helpspan;\n this.initialized = true;\n }\n\n /**\n * Toggle help pop-up\n */\n toggle(){\n // check only if explicitily set to false as in this case undefined\n // signifies the help feature is enabled by default\n if(this.enabled === false){\n return;\n }\n var divDisplay = this.cont.style.display;\n if(divDisplay === '' || divDisplay === 'none'){\n this.cont.style.display = 'inline';\n } else {\n this.cont.style.display = 'none';\n }\n }\n\n /**\n * Remove help UI\n */\n destroy(){\n if(!this.initialized){\n return;\n }\n this.btn.parentNode.removeChild(this.btn);\n this.btn = null;\n if(!this.cont){\n return;\n }\n this.cont.parentNode.removeChild(this.cont);\n this.cont = null;\n\n this.disable();\n this.initialized = false;\n }\n\n}\n"
|
|
},
|
|
{
|
|
"kind": "variable",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "WIKI_URL",
|
|
"memberof": "src/modules/help.js",
|
|
"longname": "src/modules/help.js~WIKI_URL",
|
|
"access": null,
|
|
"export": false,
|
|
"importPath": "tablefilter/src/modules/help.js",
|
|
"importStyle": null,
|
|
"description": null,
|
|
"lineNumber": 6,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "variable",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "WEBSITE_URL",
|
|
"memberof": "src/modules/help.js",
|
|
"longname": "src/modules/help.js~WEBSITE_URL",
|
|
"access": null,
|
|
"export": false,
|
|
"importPath": "tablefilter/src/modules/help.js",
|
|
"importStyle": null,
|
|
"description": null,
|
|
"lineNumber": 8,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "class",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Help",
|
|
"memberof": "src/modules/help.js",
|
|
"longname": "src/modules/help.js~Help",
|
|
"access": null,
|
|
"export": true,
|
|
"importPath": "tablefilter/src/modules/help.js",
|
|
"importStyle": "{Help}",
|
|
"description": null,
|
|
"lineNumber": 10,
|
|
"undocument": true,
|
|
"interface": false,
|
|
"extends": [
|
|
"src/modules/feature~Feature"
|
|
]
|
|
},
|
|
{
|
|
"kind": "constructor",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "constructor",
|
|
"memberof": "src/modules/help.js~Help",
|
|
"longname": "src/modules/help.js~Help#constructor",
|
|
"access": null,
|
|
"description": "Help UI component",
|
|
"lineNumber": 16,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "tf",
|
|
"description": "TableFilter instance"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tgtId",
|
|
"memberof": "src/modules/help.js~Help",
|
|
"longname": "src/modules/help.js~Help#tgtId",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 22,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "contTgtId",
|
|
"memberof": "src/modules/help.js~Help",
|
|
"longname": "src/modules/help.js~Help#contTgtId",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 24,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "instrText",
|
|
"memberof": "src/modules/help.js~Help",
|
|
"longname": "src/modules/help.js~Help#instrText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 27,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "instrHtml",
|
|
"memberof": "src/modules/help.js~Help",
|
|
"longname": "src/modules/help.js~Help#instrHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 37,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnText",
|
|
"memberof": "src/modules/help.js~Help",
|
|
"longname": "src/modules/help.js~Help#btnText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 39,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnHtml",
|
|
"memberof": "src/modules/help.js~Help",
|
|
"longname": "src/modules/help.js~Help#btnHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 41,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnCssClass",
|
|
"memberof": "src/modules/help.js~Help",
|
|
"longname": "src/modules/help.js~Help#btnCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 43,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "contCssClass",
|
|
"memberof": "src/modules/help.js~Help",
|
|
"longname": "src/modules/help.js~Help#contCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 45,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btn",
|
|
"memberof": "src/modules/help.js~Help",
|
|
"longname": "src/modules/help.js~Help#btn",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 48,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "cont",
|
|
"memberof": "src/modules/help.js~Help",
|
|
"longname": "src/modules/help.js~Help#cont",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 50,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "defaultHtml",
|
|
"memberof": "src/modules/help.js~Help",
|
|
"longname": "src/modules/help.js~Help#defaultHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 51,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxHelpSpan",
|
|
"memberof": "src/modules/help.js~Help",
|
|
"longname": "src/modules/help.js~Help#prfxHelpSpan",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 59,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxHelpDiv",
|
|
"memberof": "src/modules/help.js~Help",
|
|
"longname": "src/modules/help.js~Help#prfxHelpDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 61,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "init",
|
|
"memberof": "src/modules/help.js~Help",
|
|
"longname": "src/modules/help.js~Help#init",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 64,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "cont",
|
|
"memberof": "src/modules/help.js~Help",
|
|
"longname": "src/modules/help.js~Help#cont",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 114,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btn",
|
|
"memberof": "src/modules/help.js~Help",
|
|
"longname": "src/modules/help.js~Help#btn",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 115,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/modules/help.js~Help",
|
|
"longname": "src/modules/help.js~Help#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 116,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "toggle",
|
|
"memberof": "src/modules/help.js~Help",
|
|
"longname": "src/modules/help.js~Help#toggle",
|
|
"access": null,
|
|
"description": "Toggle help pop-up",
|
|
"lineNumber": 122,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "destroy",
|
|
"memberof": "src/modules/help.js~Help",
|
|
"longname": "src/modules/help.js~Help#destroy",
|
|
"access": null,
|
|
"description": "Remove help UI",
|
|
"lineNumber": 139,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btn",
|
|
"memberof": "src/modules/help.js~Help",
|
|
"longname": "src/modules/help.js~Help#btn",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 144,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "cont",
|
|
"memberof": "src/modules/help.js~Help",
|
|
"longname": "src/modules/help.js~Help#cont",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 149,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/modules/help.js~Help",
|
|
"longname": "src/modules/help.js~Help#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 152,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/modules/highlightKeywords.js",
|
|
"memberof": null,
|
|
"longname": "src/modules/highlightKeywords.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1,
|
|
"content": "import Dom from '../dom';\nimport Str from '../string';\n\nexport class HighlightKeyword{\n\n /**\n * HighlightKeyword, highlight matched keyword\n * @param {Object} tf TableFilter instance\n */\n constructor(tf) {\n var f = tf.config();\n //defines css class for highlighting\n this.highlightCssClass = f.highlight_css_class || 'keyword';\n this.highlightedNodes = [];\n\n this.tf = tf;\n }\n\n /**\n * highlight occurences of searched term in passed node\n * @param {Node} node\n * @param {String} word Searched term\n * @param {String} cssClass Css class name\n */\n highlight(node, word, cssClass){\n // Iterate into this nodes childNodes\n if(node.hasChildNodes){\n var children = node.childNodes;\n for(var i=0; i<children.length; i++){\n this.highlight(children[i], word, cssClass);\n }\n }\n\n if(node.nodeType === 3){\n var tempNodeVal = Str.lower(node.nodeValue);\n var tempWordVal = Str.lower(word);\n if(tempNodeVal.indexOf(tempWordVal) != -1){\n var pn = node.parentNode;\n if(pn && pn.className != cssClass){\n // word not highlighted yet\n var nv = node.nodeValue,\n ni = tempNodeVal.indexOf(tempWordVal),\n // Create a load of replacement nodes\n before = Dom.text(nv.substr(0, ni)),\n docWordVal = nv.substr(ni,word.length),\n after = Dom.text(nv.substr(ni+word.length)),\n hiwordtext = Dom.text(docWordVal),\n hiword = Dom.create('span');\n hiword.className = cssClass;\n hiword.appendChild(hiwordtext);\n pn.insertBefore(before,node);\n pn.insertBefore(hiword,node);\n pn.insertBefore(after,node);\n pn.removeChild(node);\n this.highlightedNodes.push(hiword.firstChild);\n }\n }\n }\n }\n\n /**\n * Removes highlight to nodes matching passed string\n * @param {String} word\n * @param {String} cssClass Css class to remove\n */\n unhighlight(word, cssClass){\n var arrRemove = [];\n var highlightedNodes = this.highlightedNodes;\n for(var i=0; i<highlightedNodes.length; i++){\n var n = highlightedNodes[i];\n if(!n){\n continue;\n }\n var tempNodeVal = Str.lower(n.nodeValue),\n tempWordVal = Str.lower(word);\n if(tempNodeVal.indexOf(tempWordVal) !== -1){\n var pn = n.parentNode;\n if(pn && pn.className === cssClass){\n var prevSib = pn.previousSibling,\n nextSib = pn.nextSibling;\n if(!prevSib || !nextSib){ continue; }\n nextSib.nodeValue = prevSib.nodeValue + n.nodeValue +\n nextSib.nodeValue;\n prevSib.nodeValue = '';\n n.nodeValue = '';\n arrRemove.push(i);\n }\n }\n }\n for(var k=0; k<arrRemove.length; k++){\n highlightedNodes.splice(arrRemove[k], 1);\n }\n }\n\n /**\n * Clear all occurrences of highlighted nodes\n */\n unhighlightAll(){\n if(!this.tf.highlightKeywords || !this.tf.searchArgs){\n return;\n }\n for(var y=0; y<this.tf.searchArgs.length; y++){\n this.unhighlight(\n this.tf.searchArgs[y], this.highlightCssClass);\n }\n this.highlightedNodes = [];\n }\n}"
|
|
},
|
|
{
|
|
"kind": "class",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "HighlightKeyword",
|
|
"memberof": "src/modules/highlightKeywords.js",
|
|
"longname": "src/modules/highlightKeywords.js~HighlightKeyword",
|
|
"access": null,
|
|
"export": true,
|
|
"importPath": "tablefilter/src/modules/highlightKeywords.js",
|
|
"importStyle": "{HighlightKeyword}",
|
|
"description": null,
|
|
"lineNumber": 4,
|
|
"undocument": true,
|
|
"interface": false
|
|
},
|
|
{
|
|
"kind": "constructor",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "constructor",
|
|
"memberof": "src/modules/highlightKeywords.js~HighlightKeyword",
|
|
"longname": "src/modules/highlightKeywords.js~HighlightKeyword#constructor",
|
|
"access": null,
|
|
"description": "HighlightKeyword, highlight matched keyword",
|
|
"lineNumber": 10,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "tf",
|
|
"description": "TableFilter instance"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "highlightCssClass",
|
|
"memberof": "src/modules/highlightKeywords.js~HighlightKeyword",
|
|
"longname": "src/modules/highlightKeywords.js~HighlightKeyword#highlightCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 13,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "highlightedNodes",
|
|
"memberof": "src/modules/highlightKeywords.js~HighlightKeyword",
|
|
"longname": "src/modules/highlightKeywords.js~HighlightKeyword#highlightedNodes",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 14,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tf",
|
|
"memberof": "src/modules/highlightKeywords.js~HighlightKeyword",
|
|
"longname": "src/modules/highlightKeywords.js~HighlightKeyword#tf",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 16,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "highlight",
|
|
"memberof": "src/modules/highlightKeywords.js~HighlightKeyword",
|
|
"longname": "src/modules/highlightKeywords.js~HighlightKeyword#highlight",
|
|
"access": null,
|
|
"description": "highlight occurences of searched term in passed node",
|
|
"lineNumber": 25,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Node"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "node",
|
|
"description": ""
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "word",
|
|
"description": "Searched term"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "cssClass",
|
|
"description": "Css class name"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "unhighlight",
|
|
"memberof": "src/modules/highlightKeywords.js~HighlightKeyword",
|
|
"longname": "src/modules/highlightKeywords.js~HighlightKeyword#unhighlight",
|
|
"access": null,
|
|
"description": "Removes highlight to nodes matching passed string",
|
|
"lineNumber": 66,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "word",
|
|
"description": ""
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "cssClass",
|
|
"description": "Css class to remove"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "unhighlightAll",
|
|
"memberof": "src/modules/highlightKeywords.js~HighlightKeyword",
|
|
"longname": "src/modules/highlightKeywords.js~HighlightKeyword#unhighlightAll",
|
|
"access": null,
|
|
"description": "Clear all occurrences of highlighted nodes",
|
|
"lineNumber": 98,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "highlightedNodes",
|
|
"memberof": "src/modules/highlightKeywords.js~HighlightKeyword",
|
|
"longname": "src/modules/highlightKeywords.js~HighlightKeyword#highlightedNodes",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 106,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/modules/loader.js",
|
|
"memberof": null,
|
|
"longname": "src/modules/loader.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1,
|
|
"content": "import {Feature} from './feature';\nimport Dom from '../dom';\nimport Types from '../types';\n\nvar global = window;\n\nexport class Loader extends Feature{\n\n /**\n * Loading message/spinner\n * @param {Object} tf TableFilter instance\n */\n constructor(tf){\n super(tf, 'loader');\n\n // TableFilter configuration\n var f = this.config;\n\n //id of container element\n this.loaderTgtId = f.loader_target_id || null;\n //div containing loader\n this.loaderDiv = null;\n //defines loader text\n this.loaderText = f.loader_text || 'Loading...';\n //defines loader innerHtml\n this.loaderHtml = f.loader_html || null;\n //defines css class for loader div\n this.loaderCssClass = f.loader_css_class || 'loader';\n //delay for hiding loader\n this.loaderCloseDelay = 200;\n //callback function before loader is displayed\n this.onShowLoader = Types.isFn(f.on_show_loader) ?\n f.on_show_loader : null;\n //callback function after loader is closed\n this.onHideLoader = Types.isFn(f.on_hide_loader) ?\n f.on_hide_loader : null;\n //loader div\n this.prfxLoader = 'load_';\n }\n\n init() {\n if(this.initialized){\n return;\n }\n\n var tf = this.tf;\n\n var containerDiv = Dom.create('div', ['id', this.prfxLoader+tf.id]);\n containerDiv.className = this.loaderCssClass;\n\n var targetEl = !this.loaderTgtId ?\n tf.tbl.parentNode : Dom.id(this.loaderTgtId);\n if(!this.loaderTgtId){\n targetEl.insertBefore(containerDiv, tf.tbl);\n } else {\n targetEl.appendChild(containerDiv);\n }\n this.loaderDiv = containerDiv;\n if(!this.loaderHtml){\n this.loaderDiv.appendChild(Dom.text(this.loaderText));\n } else {\n this.loaderDiv.innerHTML = this.loaderHtml;\n }\n\n this.show('none');\n this.initialized = true;\n }\n\n show(p) {\n if(!this.isEnabled() || this.loaderDiv.style.display === p){\n return;\n }\n\n var displayLoader = () => {\n if(!this.loaderDiv){\n return;\n }\n if(this.onShowLoader && p !== 'none'){\n this.onShowLoader.call(null, this);\n }\n this.loaderDiv.style.display = p;\n if(this.onHideLoader && p === 'none'){\n this.onHideLoader.call(null, this);\n }\n };\n\n var t = p === 'none' ? this.loaderCloseDelay : 1;\n global.setTimeout(displayLoader, t);\n }\n\n destroy(){\n if(!this.initialized){\n return;\n }\n\n this.loaderDiv.parentNode.removeChild(this.loaderDiv);\n this.loaderDiv = null;\n\n this.disable();\n this.initialized = false;\n }\n}\n"
|
|
},
|
|
{
|
|
"kind": "variable",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "global",
|
|
"memberof": "src/modules/loader.js",
|
|
"longname": "src/modules/loader.js~global",
|
|
"access": null,
|
|
"export": false,
|
|
"importPath": "tablefilter/src/modules/loader.js",
|
|
"importStyle": null,
|
|
"description": null,
|
|
"lineNumber": 5,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "class",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Loader",
|
|
"memberof": "src/modules/loader.js",
|
|
"longname": "src/modules/loader.js~Loader",
|
|
"access": null,
|
|
"export": true,
|
|
"importPath": "tablefilter/src/modules/loader.js",
|
|
"importStyle": "{Loader}",
|
|
"description": null,
|
|
"lineNumber": 7,
|
|
"undocument": true,
|
|
"interface": false,
|
|
"extends": [
|
|
"src/modules/feature~Feature"
|
|
]
|
|
},
|
|
{
|
|
"kind": "constructor",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "constructor",
|
|
"memberof": "src/modules/loader.js~Loader",
|
|
"longname": "src/modules/loader.js~Loader#constructor",
|
|
"access": null,
|
|
"description": "Loading message/spinner",
|
|
"lineNumber": 13,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "tf",
|
|
"description": "TableFilter instance"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "loaderTgtId",
|
|
"memberof": "src/modules/loader.js~Loader",
|
|
"longname": "src/modules/loader.js~Loader#loaderTgtId",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 20,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "loaderDiv",
|
|
"memberof": "src/modules/loader.js~Loader",
|
|
"longname": "src/modules/loader.js~Loader#loaderDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 22,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "loaderText",
|
|
"memberof": "src/modules/loader.js~Loader",
|
|
"longname": "src/modules/loader.js~Loader#loaderText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 24,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "loaderHtml",
|
|
"memberof": "src/modules/loader.js~Loader",
|
|
"longname": "src/modules/loader.js~Loader#loaderHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 26,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "loaderCssClass",
|
|
"memberof": "src/modules/loader.js~Loader",
|
|
"longname": "src/modules/loader.js~Loader#loaderCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 28,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "loaderCloseDelay",
|
|
"memberof": "src/modules/loader.js~Loader",
|
|
"longname": "src/modules/loader.js~Loader#loaderCloseDelay",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 30,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"number"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onShowLoader",
|
|
"memberof": "src/modules/loader.js~Loader",
|
|
"longname": "src/modules/loader.js~Loader#onShowLoader",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 32,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onHideLoader",
|
|
"memberof": "src/modules/loader.js~Loader",
|
|
"longname": "src/modules/loader.js~Loader#onHideLoader",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 35,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxLoader",
|
|
"memberof": "src/modules/loader.js~Loader",
|
|
"longname": "src/modules/loader.js~Loader#prfxLoader",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 38,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "init",
|
|
"memberof": "src/modules/loader.js~Loader",
|
|
"longname": "src/modules/loader.js~Loader#init",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 41,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "loaderDiv",
|
|
"memberof": "src/modules/loader.js~Loader",
|
|
"longname": "src/modules/loader.js~Loader#loaderDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 58,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/modules/loader.js~Loader",
|
|
"longname": "src/modules/loader.js~Loader#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 66,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "show",
|
|
"memberof": "src/modules/loader.js~Loader",
|
|
"longname": "src/modules/loader.js~Loader#show",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 69,
|
|
"undocument": true,
|
|
"params": [
|
|
{
|
|
"name": "p",
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "destroy",
|
|
"memberof": "src/modules/loader.js~Loader",
|
|
"longname": "src/modules/loader.js~Loader#destroy",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 91,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "loaderDiv",
|
|
"memberof": "src/modules/loader.js~Loader",
|
|
"longname": "src/modules/loader.js~Loader#loaderDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 97,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/modules/loader.js~Loader",
|
|
"longname": "src/modules/loader.js~Loader#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 100,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/modules/paging.js",
|
|
"memberof": null,
|
|
"longname": "src/modules/paging.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1,
|
|
"content": "import {Feature} from './feature';\nimport Dom from '../dom';\nimport Types from '../types';\nimport Str from '../string';\nimport Event from '../event';\n\nexport class Paging extends Feature{\n\n /**\n * Pagination component\n * @param {Object} tf TableFilter instance\n */\n constructor(tf){\n super(tf, 'paging');\n\n // Configuration object\n var f = this.config;\n\n //css class for paging buttons (previous,next,etc.)\n this.btnPageCssClass = f.paging_btn_css_class || 'pgInp';\n //stores paging select element\n this.pagingSlc = null;\n //results per page select element\n this.resultsPerPageSlc = null;\n //id of container element\n this.pagingTgtId = f.paging_target_id || null;\n //defines table paging length\n this.pagingLength = !isNaN(f.paging_length) ? f.paging_length : 10;\n //id of container element\n this.resultsPerPageTgtId = f.results_per_page_target_id || null;\n //css class for paging select element\n this.pgSlcCssClass = f.paging_slc_css_class || 'pgSlc';\n //css class for paging input element\n this.pgInpCssClass = f.paging_inp_css_class || 'pgNbInp';\n //stores results per page text and values\n this.resultsPerPage = f.results_per_page || null;\n //enables/disables results per page drop-down\n this.hasResultsPerPage = Types.isArray(this.resultsPerPage);\n //defines css class for results per page select\n this.resultsSlcCssClass = f.results_slc_css_class || 'rspg';\n //css class for label preceding results per page select\n this.resultsSpanCssClass = f.results_span_css_class || 'rspgSpan';\n //1st row index of current page\n this.startPagingRow = 0;\n //total nb of pages\n this.nbPages = 0;\n //current page nb\n this.currentPageNb = 1;\n //defines next page button text\n this.btnNextPageText = f.btn_next_page_text || '>';\n //defines previous page button text\n this.btnPrevPageText = f.btn_prev_page_text || '<';\n //defines last page button text\n this.btnLastPageText = f.btn_last_page_text || '>|';\n //defines first page button text\n this.btnFirstPageText = f.btn_first_page_text || '|<';\n //defines next page button html\n this.btnNextPageHtml = f.btn_next_page_html ||\n (!tf.enableIcons ? null :\n '<input type=\"button\" value=\"\" class=\"'+this.btnPageCssClass +\n ' nextPage\" title=\"Next page\" />');\n //defines previous page button html\n this.btnPrevPageHtml = f.btn_prev_page_html ||\n (!tf.enableIcons ? null :\n '<input type=\"button\" value=\"\" class=\"'+this.btnPageCssClass +\n ' previousPage\" title=\"Previous page\" />');\n //defines last page button html\n this.btnFirstPageHtml = f.btn_first_page_html ||\n (!tf.enableIcons ? null :\n '<input type=\"button\" value=\"\" class=\"'+this.btnPageCssClass +\n ' firstPage\" title=\"First page\" />');\n //defines previous page button html\n this.btnLastPageHtml = f.btn_last_page_html ||\n (!tf.enableIcons ? null :\n '<input type=\"button\" value=\"\" class=\"'+this.btnPageCssClass +\n ' lastPage\" title=\"Last page\" />');\n //defines text preceeding page selector drop-down\n this.pageText = f.page_text || ' Page ';\n //defines text after page selector drop-down\n this.ofText = f.of_text || ' of ';\n //css class for span containing tot nb of pages\n this.nbPgSpanCssClass = f.nb_pages_css_class || 'nbpg';\n //enables/disables paging buttons\n this.hasPagingBtns = f.paging_btns===false ? false : true;\n //defines previous page button html\n this.pageSelectorType = f.page_selector_type || tf.fltTypeSlc;\n //calls function before page is changed\n this.onBeforeChangePage = Types.isFn(f.on_before_change_page) ?\n f.on_before_change_page : null;\n //calls function before page is changed\n this.onAfterChangePage = Types.isFn(f.on_after_change_page) ?\n f.on_after_change_page : null;\n\n //pages select\n this.prfxSlcPages = 'slcPages_';\n //results per page select\n this.prfxSlcResults = 'slcResults_';\n //label preciding results per page select\n this.prfxSlcResultsTxt = 'slcResultsTxt_';\n //span containing next page button\n this.prfxBtnNextSpan = 'btnNextSpan_';\n //span containing previous page button\n this.prfxBtnPrevSpan = 'btnPrevSpan_';\n //span containing last page button\n this.prfxBtnLastSpan = 'btnLastSpan_';\n //span containing first page button\n this.prfxBtnFirstSpan = 'btnFirstSpan_';\n //next button\n this.prfxBtnNext = 'btnNext_';\n //previous button\n this.prfxBtnPrev = 'btnPrev_';\n //last button\n this.prfxBtnLast = 'btnLast_';\n //first button\n this.prfxBtnFirst = 'btnFirst_';\n //span for tot nb pages\n this.prfxPgSpan = 'pgspan_';\n //span preceding pages select (contains 'Page')\n this.prfxPgBeforeSpan = 'pgbeforespan_';\n //span following pages select (contains ' of ')\n this.prfxPgAfterSpan = 'pgafterspan_';\n\n var start_row = this.refRow;\n var nrows = this.nbRows;\n //calculates page nb\n this.nbPages = Math.ceil((nrows-start_row)/this.pagingLength);\n\n //Paging elements events\n var o = this;\n // Paging DOM events\n this.evt = {\n slcIndex(){\n return (o.pageSelectorType===tf.fltTypeSlc) ?\n o.pagingSlc.options.selectedIndex :\n parseInt(o.pagingSlc.value, 10)-1;\n },\n nbOpts(){\n return (o.pageSelectorType===tf.fltTypeSlc) ?\n parseInt(o.pagingSlc.options.length, 10)-1 :\n (o.nbPages-1);\n },\n next(){\n var nextIndex = o.evt.slcIndex() < o.evt.nbOpts() ?\n o.evt.slcIndex()+1 : 0;\n o.changePage(nextIndex);\n },\n prev(){\n var prevIndex = o.evt.slcIndex()>0 ?\n o.evt.slcIndex()-1 : o.evt.nbOpts();\n o.changePage(prevIndex);\n },\n last(){\n o.changePage(o.evt.nbOpts());\n },\n first(){\n o.changePage(0);\n },\n _detectKey(e){\n var key = Event.keyCode(e);\n if(key===13){\n if(tf.sorted){\n tf.filter();\n o.changePage(o.evt.slcIndex());\n } else{\n o.changePage();\n }\n this.blur();\n }\n },\n slcPagesChange: null,\n nextEvt: null,\n prevEvt: null,\n lastEvt: null,\n firstEvt: null\n };\n }\n\n /**\n * Initialize DOM elements\n */\n init(){\n var slcPages;\n var tf = this.tf;\n var evt = this.evt;\n\n if(this.initialized){\n return;\n }\n\n // Check resultsPerPage is in expected format and initialise the\n // results per page component\n if(this.hasResultsPerPage){\n if(this.resultsPerPage.length<2){\n this.hasResultsPerPage = false;\n } else {\n this.pagingLength = this.resultsPerPage[1][0];\n this.setResultsPerPage();\n }\n }\n\n evt.slcPagesChange = (event) => {\n var slc = event.target;\n this.changePage(slc.selectedIndex);\n };\n\n // Paging drop-down list selector\n if(this.pageSelectorType === tf.fltTypeSlc){\n slcPages = Dom.create(\n tf.fltTypeSlc, ['id', this.prfxSlcPages+tf.id]);\n slcPages.className = this.pgSlcCssClass;\n Event.add(slcPages, 'change', evt.slcPagesChange);\n }\n\n // Paging input selector\n if(this.pageSelectorType === tf.fltTypeInp){\n slcPages = Dom.create(\n tf.fltTypeInp,\n ['id', this.prfxSlcPages+tf.id],\n ['value', this.currentPageNb]\n );\n slcPages.className = this.pgInpCssClass;\n Event.add(slcPages, 'keypress', evt._detectKey);\n }\n\n // btns containers\n var btnNextSpan = Dom.create(\n 'span',['id', this.prfxBtnNextSpan+tf.id]);\n var btnPrevSpan = Dom.create(\n 'span',['id', this.prfxBtnPrevSpan+tf.id]);\n var btnLastSpan = Dom.create(\n 'span',['id', this.prfxBtnLastSpan+tf.id]);\n var btnFirstSpan = Dom.create(\n 'span',['id', this.prfxBtnFirstSpan+tf.id]);\n\n if(this.hasPagingBtns){\n // Next button\n if(!this.btnNextPageHtml){\n var btn_next = Dom.create(\n tf.fltTypeInp,\n ['id', this.prfxBtnNext+tf.id],\n ['type', 'button'],\n ['value', this.btnNextPageText],\n ['title', 'Next']\n );\n btn_next.className = this.btnPageCssClass;\n Event.add(btn_next, 'click', evt.next);\n btnNextSpan.appendChild(btn_next);\n } else {\n btnNextSpan.innerHTML = this.btnNextPageHtml;\n Event.add(btnNextSpan, 'click', evt.next);\n }\n // Previous button\n if(!this.btnPrevPageHtml){\n var btn_prev = Dom.create(\n tf.fltTypeInp,\n ['id', this.prfxBtnPrev+tf.id],\n ['type', 'button'],\n ['value', this.btnPrevPageText],\n ['title', 'Previous']\n );\n btn_prev.className = this.btnPageCssClass;\n Event.add(btn_prev, 'click', evt.prev);\n btnPrevSpan.appendChild(btn_prev);\n } else {\n btnPrevSpan.innerHTML = this.btnPrevPageHtml;\n Event.add(btnPrevSpan, 'click', evt.prev);\n }\n // Last button\n if(!this.btnLastPageHtml){\n var btn_last = Dom.create(\n tf.fltTypeInp,\n ['id', this.prfxBtnLast+tf.id],\n ['type', 'button'],\n ['value', this.btnLastPageText],\n ['title', 'Last']\n );\n btn_last.className = this.btnPageCssClass;\n Event.add(btn_last, 'click', evt.last);\n btnLastSpan.appendChild(btn_last);\n } else {\n btnLastSpan.innerHTML = this.btnLastPageHtml;\n Event.add(btnLastSpan, 'click', evt.last);\n }\n // First button\n if(!this.btnFirstPageHtml){\n var btn_first = Dom.create(\n tf.fltTypeInp,\n ['id', this.prfxBtnFirst+tf.id],\n ['type', 'button'],\n ['value', this.btnFirstPageText],\n ['title', 'First']\n );\n btn_first.className = this.btnPageCssClass;\n Event.add(btn_first, 'click', evt.first);\n btnFirstSpan.appendChild(btn_first);\n } else {\n btnFirstSpan.innerHTML = this.btnFirstPageHtml;\n Event.add(btnFirstSpan, 'click', evt.first);\n }\n }\n\n // paging elements (buttons+drop-down list) are added to defined element\n if(!this.pagingTgtId){\n tf.setToolbar();\n }\n var targetEl = !this.pagingTgtId ? tf.mDiv : Dom.id(this.pagingTgtId);\n targetEl.appendChild(btnFirstSpan);\n targetEl.appendChild(btnPrevSpan);\n\n var pgBeforeSpan = Dom.create(\n 'span',['id', this.prfxPgBeforeSpan+tf.id] );\n pgBeforeSpan.appendChild( Dom.text(this.pageText) );\n pgBeforeSpan.className = this.nbPgSpanCssClass;\n targetEl.appendChild(pgBeforeSpan);\n targetEl.appendChild(slcPages);\n var pgAfterSpan = Dom.create(\n 'span',['id', this.prfxPgAfterSpan+tf.id]);\n pgAfterSpan.appendChild( Dom.text(this.ofText) );\n pgAfterSpan.className = this.nbPgSpanCssClass;\n targetEl.appendChild(pgAfterSpan);\n var pgspan = Dom.create( 'span',['id', this.prfxPgSpan+tf.id] );\n pgspan.className = this.nbPgSpanCssClass;\n pgspan.appendChild( Dom.text(' '+this.nbPages+' ') );\n targetEl.appendChild(pgspan);\n targetEl.appendChild(btnNextSpan);\n targetEl.appendChild(btnLastSpan);\n this.pagingSlc = Dom.id(this.prfxSlcPages+tf.id);\n\n if(!tf.rememberGridValues){\n this.setPagingInfo();\n }\n if(!tf.fltGrid){\n tf.validateAllRows();\n this.setPagingInfo(tf.validRowsIndex);\n }\n\n this.initialized = true;\n }\n\n /**\n * Reset paging when filters are already instantiated\n * @param {Boolean} filterTable Execute filtering once paging instanciated\n */\n reset(filterTable=false){\n var tf = this.tf;\n if(!tf.hasGrid() || this.isEnabled()){\n return;\n }\n this.enable();\n this.init();\n tf.resetValues();\n if(filterTable){\n tf.filter();\n }\n }\n\n /**\n * Calculate number of pages based on valid rows\n * Refresh paging select according to number of pages\n * @param {Array} validRows Collection of valid rows\n */\n setPagingInfo(validRows=[]){\n var tf = this.tf;\n var rows = tf.tbl.rows;\n var mdiv = !this.pagingTgtId ? tf.mDiv : Dom.id(this.pagingTgtId);\n var pgspan = Dom.id(this.prfxPgSpan+tf.id);\n\n //store valid rows indexes\n tf.validRowsIndex = validRows;\n\n if(validRows.length === 0){\n //counts rows to be grouped\n for(var j=tf.refRow; j<tf.nbRows; j++){\n var row = rows[j];\n if(!row){\n continue;\n }\n\n var isRowValid = row.getAttribute('validRow');\n if(Types.isNull(isRowValid) || Boolean(isRowValid==='true')){\n tf.validRowsIndex.push(j);\n }\n }\n }\n\n //calculate nb of pages\n this.nbPages = Math.ceil(tf.validRowsIndex.length/this.pagingLength);\n //refresh page nb span\n pgspan.innerHTML = this.nbPages;\n //select clearing shortcut\n if(this.pageSelectorType === tf.fltTypeSlc){\n this.pagingSlc.innerHTML = '';\n }\n\n if(this.nbPages>0){\n mdiv.style.visibility = 'visible';\n if(this.pageSelectorType === tf.fltTypeSlc){\n for(var z=0; z<this.nbPages; z++){\n var opt = Dom.createOpt(z+1, z*this.pagingLength, false);\n this.pagingSlc.options[z] = opt;\n }\n } else{\n //input type\n this.pagingSlc.value = this.currentPageNb;\n }\n\n } else {\n /*** if no results paging select and buttons are hidden ***/\n mdiv.style.visibility = 'hidden';\n }\n this.groupByPage(tf.validRowsIndex);\n }\n\n /**\n * Group table rows by page and display valid rows\n * @param {Array} validRows Collection of valid rows\n */\n groupByPage(validRows){\n var tf = this.tf;\n var alternateRows = tf.feature('alternateRows');\n var rows = tf.tbl.rows;\n var endPagingRow = parseInt(this.startPagingRow, 10) +\n parseInt(this.pagingLength, 10);\n\n //store valid rows indexes\n if(validRows){\n tf.validRowsIndex = validRows;\n }\n\n //this loop shows valid rows of current page\n for(var h=0, len=tf.validRowsIndex.length; h<len; h++){\n var validRowIdx = tf.validRowsIndex[h];\n var r = rows[validRowIdx];\n var isRowValid = r.getAttribute('validRow');\n\n if(h>=this.startPagingRow && h<endPagingRow){\n if(Types.isNull(isRowValid) || Boolean(isRowValid==='true')){\n r.style.display = '';\n }\n if(tf.alternateRows && alternateRows){\n alternateRows.setRowBg(validRowIdx, h);\n }\n } else {\n r.style.display = 'none';\n if(tf.alternateRows && alternateRows){\n alternateRows.removeRowBg(validRowIdx);\n }\n }\n }\n\n tf.nbVisibleRows = tf.validRowsIndex.length;\n //re-applies filter behaviours after filtering process\n tf.applyProps();\n }\n\n /**\n * Return the current page number\n * @return {Number} Page number\n */\n getPage(){\n return this.currentPageNb;\n }\n\n /**\n * Show page based on passed param value (string or number):\n * @param {String} or {Number} cmd possible string values: 'next',\n * 'previous', 'last', 'first' or page number as per param\n */\n setPage(cmd){\n var tf = this.tf;\n if(!tf.hasGrid() || !this.isEnabled()){\n return;\n }\n var btnEvt = this.evt,\n cmdtype = typeof cmd;\n if(cmdtype==='string'){\n switch(Str.lower(cmd)){\n case 'next':\n btnEvt.next();\n break;\n case 'previous':\n btnEvt.prev();\n break;\n case 'last':\n btnEvt.last();\n break;\n case 'first':\n btnEvt.first();\n break;\n default:\n btnEvt.next();\n break;\n }\n }\n else if(cmdtype==='number'){\n this.changePage(cmd-1);\n }\n }\n\n /**\n * Generates UI elements for the number of results per page drop-down\n */\n setResultsPerPage(){\n var tf = this.tf;\n var evt = this.evt;\n\n if(!tf.hasGrid() && !tf.isFirstLoad){\n return;\n }\n if(this.resultsPerPageSlc || !this.resultsPerPage){\n return;\n }\n\n evt.slcResultsChange = (ev) => {\n this.changeResultsPerPage();\n ev.target.blur();\n };\n\n var slcR = Dom.create(\n tf.fltTypeSlc, ['id', this.prfxSlcResults+tf.id]);\n slcR.className = this.resultsSlcCssClass;\n var slcRText = this.resultsPerPage[0],\n slcROpts = this.resultsPerPage[1];\n var slcRSpan = Dom.create(\n 'span',['id', this.prfxSlcResultsTxt+tf.id]);\n slcRSpan.className = this.resultsSpanCssClass;\n\n // results per page select is added to external element\n if(!this.resultsPerPageTgtId){\n tf.setToolbar();\n }\n var targetEl = !this.resultsPerPageTgtId ?\n tf.rDiv : Dom.id(this.resultsPerPageTgtId);\n slcRSpan.appendChild(Dom.text(slcRText));\n\n var help = tf.feature('help');\n if(help && help.btn){\n help.btn.parentNode.insertBefore(slcRSpan, help.btn);\n help.btn.parentNode.insertBefore(slcR, help.btn);\n } else {\n targetEl.appendChild(slcRSpan);\n targetEl.appendChild(slcR);\n }\n\n for(var r=0; r<slcROpts.length; r++){\n var currOpt = new Option(slcROpts[r], slcROpts[r], false, false);\n slcR.options[r] = currOpt;\n }\n Event.add(slcR, 'change', evt.slcResultsChange);\n this.resultsPerPageSlc = slcR;\n }\n\n /**\n * Remove number of results per page UI elements\n */\n removeResultsPerPage(){\n var tf = this.tf;\n if(!tf.hasGrid() || !this.resultsPerPageSlc || !this.resultsPerPage){\n return;\n }\n var slcR = this.resultsPerPageSlc,\n slcRSpan = Dom.id(this.prfxSlcResultsTxt+tf.id);\n if(slcR){\n slcR.parentNode.removeChild(slcR);\n }\n if(slcRSpan){\n slcRSpan.parentNode.removeChild(slcRSpan);\n }\n this.resultsPerPageSlc = null;\n }\n\n /**\n * Change the page asynchronously according to passed index\n * @param {Number} index Index of the page (0-n)\n */\n changePage(index){\n var tf = this.tf;\n var evt = tf.Evt;\n tf.EvtManager(evt.name.changepage, { pgIndex:index });\n }\n\n /**\n * Change rows asynchronously according to page results\n */\n changeResultsPerPage(){\n var tf = this.tf;\n var evt = tf.Evt;\n tf.EvtManager(evt.name.changeresultsperpage);\n }\n\n /**\n * Re-set asynchronously page nb at page re-load\n */\n resetPage(){\n var tf = this.tf;\n var evt = tf.Evt;\n tf.EvtManager(evt.name.resetpage);\n }\n\n /**\n * Re-set asynchronously page length at page re-load\n */\n resetPageLength(){\n var tf = this.tf;\n var evt = tf.Evt;\n tf.EvtManager(evt.name.resetpagelength);\n }\n\n /**\n * Change the page according to passed index\n * @param {Number} index Index of the page (0-n)\n */\n _changePage(index){\n var tf = this.tf;\n\n if(!this.isEnabled()){\n return;\n }\n if(index === null){\n index = this.pageSelectorType===tf.fltTypeSlc ?\n this.pagingSlc.options.selectedIndex : (this.pagingSlc.value-1);\n }\n if( index>=0 && index<=(this.nbPages-1) ){\n if(this.onBeforeChangePage){\n this.onBeforeChangePage.call(null, this, index);\n }\n this.currentPageNb = parseInt(index, 10)+1;\n if(this.pageSelectorType===tf.fltTypeSlc){\n this.pagingSlc.options[index].selected = true;\n } else {\n this.pagingSlc.value = this.currentPageNb;\n }\n\n if(tf.rememberPageNb){\n tf.feature('store').savePageNb(tf.pgNbCookie);\n }\n this.startPagingRow = (this.pageSelectorType===tf.fltTypeSlc) ?\n this.pagingSlc.value : (index*this.pagingLength);\n\n this.groupByPage();\n\n if(this.onAfterChangePage){\n this.onAfterChangePage.call(null, this, index);\n }\n }\n }\n\n /**\n * Change rows according to page results drop-down\n * TODO: accept a parameter setting the results per page length\n */\n _changeResultsPerPage(){\n var tf = this.tf;\n\n if(!this.isEnabled()){\n return;\n }\n var slcR = this.resultsPerPageSlc;\n var slcPagesSelIndex = (this.pageSelectorType===tf.fltTypeSlc) ?\n this.pagingSlc.selectedIndex :\n parseInt(this.pagingSlc.value-1, 10);\n this.pagingLength = parseInt(slcR.options[slcR.selectedIndex].value,10);\n this.startPagingRow = this.pagingLength*slcPagesSelIndex;\n\n if(!isNaN(this.pagingLength)){\n if(this.startPagingRow >= tf.nbFilterableRows){\n this.startPagingRow = (tf.nbFilterableRows-this.pagingLength);\n }\n this.setPagingInfo();\n\n if(this.pageSelectorType===tf.fltTypeSlc){\n var slcIndex =\n (this.pagingSlc.options.length-1<=slcPagesSelIndex ) ?\n (this.pagingSlc.options.length-1) : slcPagesSelIndex;\n this.pagingSlc.options[slcIndex].selected = true;\n }\n if(tf.rememberPageLen){\n tf.feature('store').savePageLength(tf.pgLenCookie);\n }\n }\n }\n\n /**\n * Re-set page nb at page re-load\n */\n _resetPage(name){\n var tf = this.tf;\n var pgnb = tf.feature('store').getPageNb(name);\n if(pgnb!==''){\n this.changePage((pgnb-1));\n }\n }\n\n /**\n * Re-set page length value at page re-load\n */\n _resetPageLength(name){\n var tf = this.tf;\n if(!this.isEnabled()){\n return;\n }\n var pglenIndex = tf.feature('store').getPageLength(name);\n\n if(pglenIndex!==''){\n this.resultsPerPageSlc.options[pglenIndex].selected = true;\n this.changeResultsPerPage();\n }\n }\n\n /**\n * Remove paging feature\n */\n destroy(){\n var tf = this.tf;\n\n if(!this.initialized){\n return;\n }\n // btns containers\n var btnNextSpan = Dom.id(this.prfxBtnNextSpan+tf.id);\n var btnPrevSpan = Dom.id(this.prfxBtnPrevSpan+tf.id);\n var btnLastSpan = Dom.id(this.prfxBtnLastSpan+tf.id);\n var btnFirstSpan = Dom.id(this.prfxBtnFirstSpan+tf.id);\n //span containing 'Page' text\n var pgBeforeSpan = Dom.id(this.prfxPgBeforeSpan+tf.id);\n //span containing 'of' text\n var pgAfterSpan = Dom.id(this.prfxPgAfterSpan+tf.id);\n //span containing nb of pages\n var pgspan = Dom.id(this.prfxPgSpan+tf.id);\n\n var evt = this.evt;\n\n if(this.pagingSlc){\n if(this.pageSelectorType === tf.fltTypeSlc){\n Event.remove(this.pagingSlc, 'change', evt.slcPagesChange);\n }\n else if(this.pageSelectorType === tf.fltTypeInp){\n Event.remove(this.pagingSlc, 'keypress', evt._detectKey);\n }\n this.pagingSlc.parentNode.removeChild(this.pagingSlc);\n }\n\n if(btnNextSpan){\n Event.remove(btnNextSpan, 'click', evt.next);\n btnNextSpan.parentNode.removeChild(btnNextSpan);\n }\n\n if(btnPrevSpan){\n Event.remove(btnPrevSpan, 'click', evt.prev);\n btnPrevSpan.parentNode.removeChild(btnPrevSpan);\n }\n\n if(btnLastSpan){\n Event.remove(btnLastSpan, 'click', evt.last);\n btnLastSpan.parentNode.removeChild(btnLastSpan);\n }\n\n if(btnFirstSpan){\n Event.remove(btnFirstSpan, 'click', evt.first);\n btnFirstSpan.parentNode.removeChild(btnFirstSpan);\n }\n\n if(pgBeforeSpan){\n pgBeforeSpan.parentNode.removeChild(pgBeforeSpan);\n }\n\n if(pgAfterSpan){\n pgAfterSpan.parentNode.removeChild(pgAfterSpan);\n }\n\n if(pgspan){\n pgspan.parentNode.removeChild(pgspan);\n }\n\n if(this.hasResultsPerPage){\n this.removeResultsPerPage();\n }\n\n this.pagingSlc = null;\n this.nbPages = 0;\n this.disable();\n this.initialized = false;\n }\n}\n"
|
|
},
|
|
{
|
|
"kind": "class",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Paging",
|
|
"memberof": "src/modules/paging.js",
|
|
"longname": "src/modules/paging.js~Paging",
|
|
"access": null,
|
|
"export": true,
|
|
"importPath": "tablefilter/src/modules/paging.js",
|
|
"importStyle": "{Paging}",
|
|
"description": null,
|
|
"lineNumber": 7,
|
|
"undocument": true,
|
|
"interface": false,
|
|
"extends": [
|
|
"src/modules/feature~Feature"
|
|
]
|
|
},
|
|
{
|
|
"kind": "constructor",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "constructor",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#constructor",
|
|
"access": null,
|
|
"description": "Pagination component",
|
|
"lineNumber": 13,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "tf",
|
|
"description": "TableFilter instance"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnPageCssClass",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#btnPageCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 20,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "pagingSlc",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#pagingSlc",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 22,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "resultsPerPageSlc",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#resultsPerPageSlc",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 24,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "pagingTgtId",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#pagingTgtId",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 26,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "pagingLength",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#pagingLength",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 28,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "resultsPerPageTgtId",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#resultsPerPageTgtId",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 30,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "pgSlcCssClass",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#pgSlcCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 32,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "pgInpCssClass",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#pgInpCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 34,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "resultsPerPage",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#resultsPerPage",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 36,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "hasResultsPerPage",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#hasResultsPerPage",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 38,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "resultsSlcCssClass",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#resultsSlcCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 40,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "resultsSpanCssClass",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#resultsSpanCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 42,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "startPagingRow",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#startPagingRow",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 44,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"number"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbPages",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#nbPages",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 46,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"number"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "currentPageNb",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#currentPageNb",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 48,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"number"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnNextPageText",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#btnNextPageText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 50,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnPrevPageText",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#btnPrevPageText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 52,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnLastPageText",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#btnLastPageText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 54,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnFirstPageText",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#btnFirstPageText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 56,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnNextPageHtml",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#btnNextPageHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 58,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnPrevPageHtml",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#btnPrevPageHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 63,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnFirstPageHtml",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#btnFirstPageHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 68,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnLastPageHtml",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#btnLastPageHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 73,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "pageText",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#pageText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 78,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "ofText",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#ofText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 80,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbPgSpanCssClass",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#nbPgSpanCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 82,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "hasPagingBtns",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#hasPagingBtns",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 84,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "pageSelectorType",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#pageSelectorType",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 86,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onBeforeChangePage",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#onBeforeChangePage",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 88,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onAfterChangePage",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#onAfterChangePage",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 91,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxSlcPages",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#prfxSlcPages",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 95,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxSlcResults",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#prfxSlcResults",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 97,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxSlcResultsTxt",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#prfxSlcResultsTxt",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 99,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxBtnNextSpan",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#prfxBtnNextSpan",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 101,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxBtnPrevSpan",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#prfxBtnPrevSpan",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 103,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxBtnLastSpan",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#prfxBtnLastSpan",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 105,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxBtnFirstSpan",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#prfxBtnFirstSpan",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 107,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxBtnNext",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#prfxBtnNext",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 109,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxBtnPrev",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#prfxBtnPrev",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 111,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxBtnLast",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#prfxBtnLast",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 113,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxBtnFirst",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#prfxBtnFirst",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 115,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxPgSpan",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#prfxPgSpan",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 117,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxPgBeforeSpan",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#prfxPgBeforeSpan",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 119,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxPgAfterSpan",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#prfxPgAfterSpan",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 121,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbPages",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#nbPages",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 126,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "evt",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#evt",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 131,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "init",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#init",
|
|
"access": null,
|
|
"description": "Initialize DOM elements",
|
|
"lineNumber": 181,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "hasResultsPerPage",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#hasResultsPerPage",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 194,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "pagingLength",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#pagingLength",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 196,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "pagingSlc",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#pagingSlc",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 327,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 337,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "reset",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#reset",
|
|
"access": null,
|
|
"description": "Reset paging when filters are already instantiated",
|
|
"lineNumber": 344,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "filterTable",
|
|
"description": "Execute filtering once paging instanciated"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "setPagingInfo",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#setPagingInfo",
|
|
"access": null,
|
|
"description": "Calculate number of pages based on valid rows\nRefresh paging select according to number of pages",
|
|
"lineNumber": 362,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Array"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "validRows",
|
|
"description": "Collection of valid rows"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbPages",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#nbPages",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 387,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "groupByPage",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#groupByPage",
|
|
"access": null,
|
|
"description": "Group table rows by page and display valid rows",
|
|
"lineNumber": 418,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Array"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "validRows",
|
|
"description": "Collection of valid rows"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getPage",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#getPage",
|
|
"access": null,
|
|
"description": "Return the current page number",
|
|
"lineNumber": 460,
|
|
"params": [],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"description": "Page number"
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "setPage",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#setPage",
|
|
"access": null,
|
|
"description": "Show page based on passed param value (string or number):",
|
|
"lineNumber": 469,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String} or {Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "cmd",
|
|
"description": "possible string values: 'next',\n'previous', 'last', 'first' or page number as per param"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "setResultsPerPage",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#setResultsPerPage",
|
|
"access": null,
|
|
"description": "Generates UI elements for the number of results per page drop-down",
|
|
"lineNumber": 503,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "resultsPerPageSlc",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#resultsPerPageSlc",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 550,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "removeResultsPerPage",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#removeResultsPerPage",
|
|
"access": null,
|
|
"description": "Remove number of results per page UI elements",
|
|
"lineNumber": 556,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "resultsPerPageSlc",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#resultsPerPageSlc",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 569,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "changePage",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#changePage",
|
|
"access": null,
|
|
"description": "Change the page asynchronously according to passed index",
|
|
"lineNumber": 576,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "index",
|
|
"description": "Index of the page (0-n)"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "changeResultsPerPage",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#changeResultsPerPage",
|
|
"access": null,
|
|
"description": "Change rows asynchronously according to page results",
|
|
"lineNumber": 585,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "resetPage",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#resetPage",
|
|
"access": null,
|
|
"description": "Re-set asynchronously page nb at page re-load",
|
|
"lineNumber": 594,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "resetPageLength",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#resetPageLength",
|
|
"access": null,
|
|
"description": "Re-set asynchronously page length at page re-load",
|
|
"lineNumber": 603,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "_changePage",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#_changePage",
|
|
"access": null,
|
|
"description": "Change the page according to passed index",
|
|
"lineNumber": 613,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "index",
|
|
"description": "Index of the page (0-n)"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "currentPageNb",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#currentPageNb",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 627,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "startPagingRow",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#startPagingRow",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 637,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "_changeResultsPerPage",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#_changeResultsPerPage",
|
|
"access": null,
|
|
"description": "Change rows according to page results drop-down\nTODO: accept a parameter setting the results per page length",
|
|
"lineNumber": 652,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "pagingLength",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#pagingLength",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 662,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "startPagingRow",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#startPagingRow",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 663,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "startPagingRow",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#startPagingRow",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 667,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "_resetPage",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#_resetPage",
|
|
"access": null,
|
|
"description": "Re-set page nb at page re-load",
|
|
"lineNumber": 686,
|
|
"params": [
|
|
{
|
|
"name": "name",
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "_resetPageLength",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#_resetPageLength",
|
|
"access": null,
|
|
"description": "Re-set page length value at page re-load",
|
|
"lineNumber": 697,
|
|
"params": [
|
|
{
|
|
"name": "name",
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "destroy",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#destroy",
|
|
"access": null,
|
|
"description": "Remove paging feature",
|
|
"lineNumber": 713,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "pagingSlc",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#pagingSlc",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 779,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbPages",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#nbPages",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 780,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"number"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/modules/paging.js~Paging",
|
|
"longname": "src/modules/paging.js~Paging#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 782,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/modules/popupFilter.js",
|
|
"memberof": null,
|
|
"longname": "src/modules/popupFilter.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1,
|
|
"content": "import {Feature} from './feature';\nimport Types from '../types';\nimport Dom from '../dom';\nimport Event from '../event';\n\nexport class PopupFilter extends Feature{\n\n /**\n * Pop-up filter component\n * @param {Object} tf TableFilter instance\n */\n constructor(tf){\n super(tf, 'popupFilters');\n\n // Configuration object\n var f = this.config;\n\n // Enable external filters behaviour\n tf.isExternalFlt = true;\n tf.externalFltTgtIds = [];\n\n //filter icon path\n this.popUpImgFlt = f.popup_filters_image ||\n tf.themesPath+'icn_filter.gif';\n //active filter icon path\n this.popUpImgFltActive = f.popup_filters_image_active ||\n tf.themesPath+'icn_filterActive.gif';\n this.popUpImgFltHtml = f.popup_filters_image_html ||\n '<img src=\"'+ this.popUpImgFlt +'\" alt=\"Column filter\" />';\n //defines css class for popup div containing filter\n this.popUpDivCssClass = f.popup_div_css_class || 'popUpFilter';\n //callback function before popup filtes is opened\n this.onBeforePopUpOpen = Types.isFn(f.on_before_popup_filter_open) ?\n f.on_before_popup_filter_open : null;\n //callback function after popup filtes is opened\n this.onAfterPopUpOpen = Types.isFn(f.on_after_popup_filter_open) ?\n f.on_after_popup_filter_open : null;\n //callback function before popup filtes is closed\n this.onBeforePopUpClose =\n Types.isFn(f.on_before_popup_filter_close) ?\n f.on_before_popup_filter_close : null;\n //callback function after popup filtes is closed\n this.onAfterPopUpClose = Types.isFn(f.on_after_popup_filter_close) ?\n f.on_after_popup_filter_close : null;\n\n //stores filters spans\n this.popUpFltSpans = [];\n //stores filters icons\n this.popUpFltImgs = [];\n //stores filters containers\n this.popUpFltElms = this.popUpFltElmCache || [];\n this.popUpFltAdjustToContainer = true;\n\n //id prefix for pop-up filter span\n this.prfxPopUpSpan = 'popUpSpan_';\n //id prefix for pop-up div containing filter\n this.prfxPopUpDiv = 'popUpDiv_';\n }\n\n onClick(e){\n var evt = e || global.event,\n elm = evt.target.parentNode,\n colIndex = parseInt(elm.getAttribute('ci'), 10);\n\n this.closeAll(colIndex);\n this.toggle(colIndex);\n\n if(this.popUpFltAdjustToContainer){\n var popUpDiv = this.popUpFltElms[colIndex],\n header = this.tf.getHeaderElement(colIndex),\n headerWidth = header.clientWidth * 0.95;\n popUpDiv.style.width = parseInt(headerWidth, 10) + 'px';\n }\n Event.cancel(evt);\n Event.stop(evt);\n }\n\n /**\n * Initialize DOM elements\n */\n init(){\n if(this.initialized){\n return;\n }\n\n var tf = this.tf;\n for(var i=0; i<tf.nbCells; i++){\n if(tf.getFilterType(i) === tf.fltTypeNone){\n continue;\n }\n var popUpSpan = Dom.create(\n 'span',\n ['id', this.prfxPopUpSpan+tf.id+'_'+i],\n ['ci', i]\n );\n popUpSpan.innerHTML = this.popUpImgFltHtml;\n var header = tf.getHeaderElement(i);\n header.appendChild(popUpSpan);\n Event.add(popUpSpan, 'click', (evt) => { this.onClick(evt); });\n this.popUpFltSpans[i] = popUpSpan;\n this.popUpFltImgs[i] = popUpSpan.firstChild;\n }\n\n this.initialized = true;\n }\n\n /**\n * Reset previously destroyed feature\n */\n reset(){\n this.enable();\n this.init();\n this.buildAll();\n }\n\n /**\n * Build all pop-up filters elements\n */\n buildAll(){\n for(var i=0; i<this.popUpFltElmCache.length; i++){\n this.build(i, this.popUpFltElmCache[i]);\n }\n }\n\n /**\n * Build a specified pop-up filter elements\n * @param {Number} colIndex Column index\n * @param {Object} div Optional container DOM element\n */\n build(colIndex, div){\n var tf = this.tf;\n var popUpDiv = !div ?\n Dom.create('div', ['id', this.prfxPopUpDiv+tf.id+'_'+colIndex]) :\n div;\n popUpDiv.className = this.popUpDivCssClass;\n tf.externalFltTgtIds.push(popUpDiv.id);\n var header = tf.getHeaderElement(colIndex);\n header.insertBefore(popUpDiv, header.firstChild);\n Event.add(popUpDiv, 'click', (evt) => { Event.stop(evt); });\n this.popUpFltElms[colIndex] = popUpDiv;\n }\n\n /**\n * Toogle visibility of specified filter\n * @param {Number} colIndex Column index\n */\n toggle(colIndex){\n var tf = this.tf,\n popUpFltElm = this.popUpFltElms[colIndex];\n\n if(popUpFltElm.style.display === 'none' ||\n popUpFltElm.style.display === ''){\n if(this.onBeforePopUpOpen){\n this.onBeforePopUpOpen.call(\n null, this, this.popUpFltElms[colIndex], colIndex);\n }\n popUpFltElm.style.display = 'block';\n if(tf.getFilterType(colIndex) === tf.fltTypeInp){\n var flt = tf.getFilterElement(colIndex);\n if(flt){\n flt.focus();\n }\n }\n if(this.onAfterPopUpOpen){\n this.onAfterPopUpOpen.call(\n null, this, this.popUpFltElms[colIndex], colIndex);\n }\n } else {\n if(this.onBeforePopUpClose){\n this.onBeforePopUpClose.call(\n null, this, this.popUpFltElms[colIndex], colIndex);\n }\n popUpFltElm.style.display = 'none';\n if(this.onAfterPopUpClose){\n this.onAfterPopUpClose.call(\n null, this, this.popUpFltElms[colIndex], colIndex);\n }\n }\n }\n\n /**\n * Close all filters excepted for the specified one if any\n * @param {Number} exceptIdx Column index of the filter to not close\n */\n closeAll(exceptIdx){\n for(var i=0; i<this.popUpFltElms.length; i++){\n if(i === exceptIdx){\n continue;\n }\n var popUpFltElm = this.popUpFltElms[i];\n if(popUpFltElm){\n popUpFltElm.style.display = 'none';\n }\n }\n }\n\n /**\n * Build all the icons representing the pop-up filters\n */\n buildIcons(){\n for(var i=0; i<this.popUpFltImgs.length; i++){\n this.buildIcon(i, false);\n }\n }\n\n /**\n * Build specified icon\n * @param {Number} colIndex Column index\n * @param {Boolean} active Apply active state\n */\n buildIcon(colIndex, active){\n if(this.popUpFltImgs[colIndex]){\n this.popUpFltImgs[colIndex].src = active ?\n this.popUpImgFltActive : this.popUpImgFlt;\n }\n }\n\n /**\n * Remove pop-up filters\n */\n destroy(){\n if(!this.initialized){\n return;\n }\n\n this.popUpFltElmCache = [];\n for(var i=0; i<this.popUpFltElms.length; i++){\n var popUpFltElm = this.popUpFltElms[i],\n popUpFltSpan = this.popUpFltSpans[i],\n popUpFltImg = this.popUpFltImgs[i];\n if(popUpFltElm){\n popUpFltElm.parentNode.removeChild(popUpFltElm);\n this.popUpFltElmCache[i] = popUpFltElm;\n }\n popUpFltElm = null;\n if(popUpFltSpan){\n popUpFltSpan.parentNode.removeChild(popUpFltSpan);\n }\n popUpFltSpan = null;\n if(popUpFltImg){\n popUpFltImg.parentNode.removeChild(popUpFltImg);\n }\n popUpFltImg = null;\n }\n this.popUpFltElms = [];\n this.popUpFltSpans = [];\n this.popUpFltImgs = [];\n\n this.disable();\n this.initialized = false;\n }\n\n}\n"
|
|
},
|
|
{
|
|
"kind": "class",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "PopupFilter",
|
|
"memberof": "src/modules/popupFilter.js",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter",
|
|
"access": null,
|
|
"export": true,
|
|
"importPath": "tablefilter/src/modules/popupFilter.js",
|
|
"importStyle": "{PopupFilter}",
|
|
"description": null,
|
|
"lineNumber": 6,
|
|
"undocument": true,
|
|
"interface": false,
|
|
"extends": [
|
|
"src/modules/feature~Feature"
|
|
]
|
|
},
|
|
{
|
|
"kind": "constructor",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "constructor",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#constructor",
|
|
"access": null,
|
|
"description": "Pop-up filter component",
|
|
"lineNumber": 12,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "tf",
|
|
"description": "TableFilter instance"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "popUpImgFlt",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#popUpImgFlt",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 23,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "popUpImgFltActive",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#popUpImgFltActive",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 26,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "popUpImgFltHtml",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#popUpImgFltHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 28,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "popUpDivCssClass",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#popUpDivCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 31,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onBeforePopUpOpen",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#onBeforePopUpOpen",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 33,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onAfterPopUpOpen",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#onAfterPopUpOpen",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 36,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onBeforePopUpClose",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#onBeforePopUpClose",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 39,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onAfterPopUpClose",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#onAfterPopUpClose",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 43,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "popUpFltSpans",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#popUpFltSpans",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 47,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "popUpFltImgs",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#popUpFltImgs",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 49,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "popUpFltElms",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#popUpFltElms",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 51,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "popUpFltAdjustToContainer",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#popUpFltAdjustToContainer",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 52,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxPopUpSpan",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#prfxPopUpSpan",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 55,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxPopUpDiv",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#prfxPopUpDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 57,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onClick",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#onClick",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 60,
|
|
"undocument": true,
|
|
"params": [
|
|
{
|
|
"name": "e",
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "init",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#init",
|
|
"access": null,
|
|
"description": "Initialize DOM elements",
|
|
"lineNumber": 81,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 104,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "reset",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#reset",
|
|
"access": null,
|
|
"description": "Reset previously destroyed feature",
|
|
"lineNumber": 110,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "buildAll",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#buildAll",
|
|
"access": null,
|
|
"description": "Build all pop-up filters elements",
|
|
"lineNumber": 119,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "build",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#build",
|
|
"access": null,
|
|
"description": "Build a specified pop-up filter elements",
|
|
"lineNumber": 130,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "colIndex",
|
|
"description": "Column index"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "div",
|
|
"description": "Optional container DOM element"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "toggle",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#toggle",
|
|
"access": null,
|
|
"description": "Toogle visibility of specified filter",
|
|
"lineNumber": 147,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "colIndex",
|
|
"description": "Column index"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "closeAll",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#closeAll",
|
|
"access": null,
|
|
"description": "Close all filters excepted for the specified one if any",
|
|
"lineNumber": 185,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "exceptIdx",
|
|
"description": "Column index of the filter to not close"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "buildIcons",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#buildIcons",
|
|
"access": null,
|
|
"description": "Build all the icons representing the pop-up filters",
|
|
"lineNumber": 200,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "buildIcon",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#buildIcon",
|
|
"access": null,
|
|
"description": "Build specified icon",
|
|
"lineNumber": 211,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "colIndex",
|
|
"description": "Column index"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "active",
|
|
"description": "Apply active state"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "destroy",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#destroy",
|
|
"access": null,
|
|
"description": "Remove pop-up filters",
|
|
"lineNumber": 221,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "popUpFltElmCache",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#popUpFltElmCache",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 226,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "popUpFltElms",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#popUpFltElms",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 245,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "popUpFltSpans",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#popUpFltSpans",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 246,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "popUpFltImgs",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#popUpFltImgs",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 247,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/modules/popupFilter.js~PopupFilter",
|
|
"longname": "src/modules/popupFilter.js~PopupFilter#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 250,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/modules/rowsCounter.js",
|
|
"memberof": null,
|
|
"longname": "src/modules/rowsCounter.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1,
|
|
"content": "import {Feature} from './feature';\nimport Dom from '../dom';\nimport Types from '../types';\n\nexport class RowsCounter extends Feature{\n\n /**\n * Rows counter\n * @param {Object} tf TableFilter instance\n */\n constructor(tf){\n super(tf, 'rowsCounter');\n\n // TableFilter configuration\n var f = this.config;\n\n //id of custom container element\n this.rowsCounterTgtId = f.rows_counter_target_id || null;\n //element containing tot nb rows\n this.rowsCounterDiv = null;\n //element containing tot nb rows label\n this.rowsCounterSpan = null;\n //defines rows counter text\n this.rowsCounterText = f.rows_counter_text || 'Rows: ';\n this.fromToTextSeparator = f.from_to_text_separator || '-';\n this.overText = f.over_text || ' / ';\n //defines css class rows counter\n this.totRowsCssClass = f.tot_rows_css_class || 'tot';\n //rows counter div\n this.prfxCounter = 'counter_';\n //nb displayed rows label\n this.prfxTotRows = 'totrows_span_';\n //label preceding nb rows label\n this.prfxTotRowsTxt = 'totRowsTextSpan_';\n //callback raised before counter is refreshed\n this.onBeforeRefreshCounter = Types.isFn(f.on_before_refresh_counter) ?\n f.on_before_refresh_counter : null;\n //callback raised after counter is refreshed\n this.onAfterRefreshCounter = Types.isFn(f.on_after_refresh_counter) ?\n f.on_after_refresh_counter : null;\n }\n\n init(){\n if(this.initialized){\n return;\n }\n\n var tf = this.tf;\n\n //rows counter container\n var countDiv = Dom.create('div', ['id', this.prfxCounter+tf.id]);\n countDiv.className = this.totRowsCssClass;\n //rows counter label\n var countSpan = Dom.create('span', ['id', this.prfxTotRows+tf.id]);\n var countText = Dom.create('span', ['id', this.prfxTotRowsTxt+tf.id]);\n countText.appendChild(Dom.text(this.rowsCounterText));\n\n // counter is added to defined element\n if(!this.rowsCounterTgtId){\n tf.setToolbar();\n }\n var targetEl = !this.rowsCounterTgtId ?\n tf.lDiv : Dom.id( this.rowsCounterTgtId );\n\n //default container: 'lDiv'\n if(!this.rowsCounterTgtId){\n countDiv.appendChild(countText);\n countDiv.appendChild(countSpan);\n targetEl.appendChild(countDiv);\n }\n else{\n //custom container, no need to append statusDiv\n targetEl.appendChild(countText);\n targetEl.appendChild(countSpan);\n }\n this.rowsCounterDiv = countDiv;\n this.rowsCounterSpan = countSpan;\n\n this.initialized = true;\n this.refresh();\n }\n\n refresh(p){\n if(!this.rowsCounterSpan){\n return;\n }\n\n var tf = this.tf;\n\n if(this.onBeforeRefreshCounter){\n this.onBeforeRefreshCounter.call(null, tf, this.rowsCounterSpan);\n }\n\n var totTxt;\n if(!tf.paging){\n if(p && p !== ''){\n totTxt = p;\n } else{\n totTxt = tf.nbFilterableRows - tf.nbHiddenRows;\n }\n } else {\n var paging = tf.feature('paging');\n if(paging){\n //paging start row\n var paging_start_row = parseInt(paging.startPagingRow, 10) +\n ((tf.nbVisibleRows>0) ? 1 : 0);\n var paging_end_row = (paging_start_row+paging.pagingLength)-1 <=\n tf.nbVisibleRows ?\n paging_start_row+paging.pagingLength-1 :\n tf.nbVisibleRows;\n totTxt = paging_start_row + this.fromToTextSeparator +\n paging_end_row + this.overText + tf.nbVisibleRows;\n }\n }\n\n this.rowsCounterSpan.innerHTML = totTxt;\n if(this.onAfterRefreshCounter){\n this.onAfterRefreshCounter.call(\n null, tf, this.rowsCounterSpan, totTxt);\n }\n }\n\n destroy(){\n if(!this.initialized){\n return;\n }\n\n if(!this.rowsCounterTgtId && this.rowsCounterDiv){\n this.rowsCounterDiv.parentNode.removeChild(this.rowsCounterDiv);\n } else {\n Dom.id(this.rowsCounterTgtId).innerHTML = '';\n }\n this.rowsCounterSpan = null;\n this.rowsCounterDiv = null;\n\n this.disable();\n this.initialized = false;\n }\n}\n"
|
|
},
|
|
{
|
|
"kind": "class",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "RowsCounter",
|
|
"memberof": "src/modules/rowsCounter.js",
|
|
"longname": "src/modules/rowsCounter.js~RowsCounter",
|
|
"access": null,
|
|
"export": true,
|
|
"importPath": "tablefilter/src/modules/rowsCounter.js",
|
|
"importStyle": "{RowsCounter}",
|
|
"description": null,
|
|
"lineNumber": 5,
|
|
"undocument": true,
|
|
"interface": false,
|
|
"extends": [
|
|
"src/modules/feature~Feature"
|
|
]
|
|
},
|
|
{
|
|
"kind": "constructor",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "constructor",
|
|
"memberof": "src/modules/rowsCounter.js~RowsCounter",
|
|
"longname": "src/modules/rowsCounter.js~RowsCounter#constructor",
|
|
"access": null,
|
|
"description": "Rows counter",
|
|
"lineNumber": 11,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "tf",
|
|
"description": "TableFilter instance"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "rowsCounterTgtId",
|
|
"memberof": "src/modules/rowsCounter.js~RowsCounter",
|
|
"longname": "src/modules/rowsCounter.js~RowsCounter#rowsCounterTgtId",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 18,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "rowsCounterDiv",
|
|
"memberof": "src/modules/rowsCounter.js~RowsCounter",
|
|
"longname": "src/modules/rowsCounter.js~RowsCounter#rowsCounterDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 20,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "rowsCounterSpan",
|
|
"memberof": "src/modules/rowsCounter.js~RowsCounter",
|
|
"longname": "src/modules/rowsCounter.js~RowsCounter#rowsCounterSpan",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 22,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "rowsCounterText",
|
|
"memberof": "src/modules/rowsCounter.js~RowsCounter",
|
|
"longname": "src/modules/rowsCounter.js~RowsCounter#rowsCounterText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 24,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "fromToTextSeparator",
|
|
"memberof": "src/modules/rowsCounter.js~RowsCounter",
|
|
"longname": "src/modules/rowsCounter.js~RowsCounter#fromToTextSeparator",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 25,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "overText",
|
|
"memberof": "src/modules/rowsCounter.js~RowsCounter",
|
|
"longname": "src/modules/rowsCounter.js~RowsCounter#overText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 26,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "totRowsCssClass",
|
|
"memberof": "src/modules/rowsCounter.js~RowsCounter",
|
|
"longname": "src/modules/rowsCounter.js~RowsCounter#totRowsCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 28,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxCounter",
|
|
"memberof": "src/modules/rowsCounter.js~RowsCounter",
|
|
"longname": "src/modules/rowsCounter.js~RowsCounter#prfxCounter",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 30,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxTotRows",
|
|
"memberof": "src/modules/rowsCounter.js~RowsCounter",
|
|
"longname": "src/modules/rowsCounter.js~RowsCounter#prfxTotRows",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 32,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxTotRowsTxt",
|
|
"memberof": "src/modules/rowsCounter.js~RowsCounter",
|
|
"longname": "src/modules/rowsCounter.js~RowsCounter#prfxTotRowsTxt",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 34,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onBeforeRefreshCounter",
|
|
"memberof": "src/modules/rowsCounter.js~RowsCounter",
|
|
"longname": "src/modules/rowsCounter.js~RowsCounter#onBeforeRefreshCounter",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 36,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onAfterRefreshCounter",
|
|
"memberof": "src/modules/rowsCounter.js~RowsCounter",
|
|
"longname": "src/modules/rowsCounter.js~RowsCounter#onAfterRefreshCounter",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 39,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "init",
|
|
"memberof": "src/modules/rowsCounter.js~RowsCounter",
|
|
"longname": "src/modules/rowsCounter.js~RowsCounter#init",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 43,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "rowsCounterDiv",
|
|
"memberof": "src/modules/rowsCounter.js~RowsCounter",
|
|
"longname": "src/modules/rowsCounter.js~RowsCounter#rowsCounterDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 76,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "rowsCounterSpan",
|
|
"memberof": "src/modules/rowsCounter.js~RowsCounter",
|
|
"longname": "src/modules/rowsCounter.js~RowsCounter#rowsCounterSpan",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 77,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/modules/rowsCounter.js~RowsCounter",
|
|
"longname": "src/modules/rowsCounter.js~RowsCounter#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 79,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "refresh",
|
|
"memberof": "src/modules/rowsCounter.js~RowsCounter",
|
|
"longname": "src/modules/rowsCounter.js~RowsCounter#refresh",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 83,
|
|
"undocument": true,
|
|
"params": [
|
|
{
|
|
"name": "p",
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "destroy",
|
|
"memberof": "src/modules/rowsCounter.js~RowsCounter",
|
|
"longname": "src/modules/rowsCounter.js~RowsCounter#destroy",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 123,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "rowsCounterSpan",
|
|
"memberof": "src/modules/rowsCounter.js~RowsCounter",
|
|
"longname": "src/modules/rowsCounter.js~RowsCounter#rowsCounterSpan",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 133,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "rowsCounterDiv",
|
|
"memberof": "src/modules/rowsCounter.js~RowsCounter",
|
|
"longname": "src/modules/rowsCounter.js~RowsCounter#rowsCounterDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 134,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/modules/rowsCounter.js~RowsCounter",
|
|
"longname": "src/modules/rowsCounter.js~RowsCounter#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 137,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/modules/statusBar.js",
|
|
"memberof": null,
|
|
"longname": "src/modules/statusBar.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1,
|
|
"content": "import {Feature} from './feature';\nimport Dom from '../dom';\nimport Types from '../types';\n\nvar global = window;\n\nexport class StatusBar extends Feature{\n\n /**\n * Status bar UI component\n * @param {Object} tf TableFilter instance\n */\n constructor(tf){\n super(tf, 'statusBar');\n\n // Configuration object\n var f = this.config;\n\n //id of custom container element\n this.statusBarTgtId = f.status_bar_target_id || null;\n //element containing status bar label\n this.statusBarDiv = null;\n //status bar\n this.statusBarSpan = null;\n //status bar label\n this.statusBarSpanText = null;\n //defines status bar text\n this.statusBarText = f.status_bar_text || '';\n //defines css class status bar\n this.statusBarCssClass = f.status_bar_css_class || 'status';\n //delay for status bar clearing\n this.statusBarCloseDelay = 250;\n\n //calls function before message is displayed\n this.onBeforeShowMsg = Types.isFn(f.on_before_show_msg) ?\n f.on_before_show_msg : null;\n //calls function after message is displayed\n this.onAfterShowMsg = Types.isFn(f.on_after_show_msg) ?\n f.on_after_show_msg : null;\n\n // status bar div\n this.prfxStatus = 'status_';\n // status bar label\n this.prfxStatusSpan = 'statusSpan_';\n // text preceding status bar label\n this.prfxStatusTxt = 'statusText_';\n }\n\n init(){\n if(this.initialized){\n return;\n }\n\n var tf = this.tf;\n\n //status bar container\n var statusDiv = Dom.create('div', ['id', this.prfxStatus+tf.id]);\n statusDiv.className = this.statusBarCssClass;\n\n //status bar label\n var statusSpan = Dom.create('span', ['id', this.prfxStatusSpan+tf.id]);\n //preceding text\n var statusSpanText = Dom.create('span',\n ['id', this.prfxStatusTxt+tf.id]);\n statusSpanText.appendChild(Dom.text(this.statusBarText));\n\n // target element container\n if(!this.statusBarTgtId){\n tf.setToolbar();\n }\n var targetEl = (!this.statusBarTgtId) ?\n tf.lDiv : Dom.id(this.statusBarTgtId);\n\n //default container: 'lDiv'\n if(!this.statusBarTgtId){\n statusDiv.appendChild(statusSpanText);\n statusDiv.appendChild(statusSpan);\n targetEl.appendChild(statusDiv);\n } else {\n // custom container, no need to append statusDiv\n targetEl.appendChild(statusSpanText);\n targetEl.appendChild(statusSpan);\n }\n\n this.statusBarDiv = statusDiv;\n this.statusBarSpan = statusSpan;\n this.statusBarSpanText = statusSpanText;\n\n this.initialized = true;\n }\n\n message(t=''){\n if(!this.isEnabled()){\n return;\n }\n\n if(this.onBeforeShowMsg){\n this.onBeforeShowMsg.call(null, this.tf, t);\n }\n\n var d = t==='' ? this.statusBarCloseDelay : 1;\n global.setTimeout(() => {\n this.statusBarSpan.innerHTML = t;\n if(this.onAfterShowMsg){\n this.onAfterShowMsg.call(null, this.tf, t);\n }\n }, d);\n }\n\n destroy(){\n if(!this.initialized){\n return;\n }\n\n this.statusBarDiv.innerHTML = '';\n this.statusBarDiv.parentNode.removeChild(this.statusBarDiv);\n this.statusBarSpan = null;\n this.statusBarSpanText = null;\n this.statusBarDiv = null;\n\n this.disable();\n this.initialized = false;\n }\n\n}\n"
|
|
},
|
|
{
|
|
"kind": "variable",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "global",
|
|
"memberof": "src/modules/statusBar.js",
|
|
"longname": "src/modules/statusBar.js~global",
|
|
"access": null,
|
|
"export": false,
|
|
"importPath": "tablefilter/src/modules/statusBar.js",
|
|
"importStyle": null,
|
|
"description": null,
|
|
"lineNumber": 5,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "class",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "StatusBar",
|
|
"memberof": "src/modules/statusBar.js",
|
|
"longname": "src/modules/statusBar.js~StatusBar",
|
|
"access": null,
|
|
"export": true,
|
|
"importPath": "tablefilter/src/modules/statusBar.js",
|
|
"importStyle": "{StatusBar}",
|
|
"description": null,
|
|
"lineNumber": 7,
|
|
"undocument": true,
|
|
"interface": false,
|
|
"extends": [
|
|
"src/modules/feature~Feature"
|
|
]
|
|
},
|
|
{
|
|
"kind": "constructor",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "constructor",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#constructor",
|
|
"access": null,
|
|
"description": "Status bar UI component",
|
|
"lineNumber": 13,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "tf",
|
|
"description": "TableFilter instance"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "statusBarTgtId",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#statusBarTgtId",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 20,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "statusBarDiv",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#statusBarDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 22,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "statusBarSpan",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#statusBarSpan",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 24,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "statusBarSpanText",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#statusBarSpanText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 26,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "statusBarText",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#statusBarText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 28,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "statusBarCssClass",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#statusBarCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 30,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "statusBarCloseDelay",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#statusBarCloseDelay",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 32,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"number"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onBeforeShowMsg",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#onBeforeShowMsg",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 35,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onAfterShowMsg",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#onAfterShowMsg",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 38,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxStatus",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#prfxStatus",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 42,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxStatusSpan",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#prfxStatusSpan",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 44,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxStatusTxt",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#prfxStatusTxt",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 46,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "init",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#init",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 49,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "statusBarDiv",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#statusBarDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 85,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "statusBarSpan",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#statusBarSpan",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 86,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "statusBarSpanText",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#statusBarSpanText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 87,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 89,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "message",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#message",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 92,
|
|
"undocument": true,
|
|
"params": [
|
|
{
|
|
"name": "t",
|
|
"optional": true,
|
|
"types": [
|
|
"string"
|
|
],
|
|
"defaultRaw": "",
|
|
"defaultValue": ""
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "destroy",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#destroy",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 110,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "statusBarSpan",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#statusBarSpan",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 117,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "statusBarSpanText",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#statusBarSpanText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 118,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "statusBarDiv",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#statusBarDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 119,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initialized",
|
|
"memberof": "src/modules/statusBar.js~StatusBar",
|
|
"longname": "src/modules/statusBar.js~StatusBar#initialized",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 122,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/modules/store.js",
|
|
"memberof": null,
|
|
"longname": "src/modules/store.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1,
|
|
"content": "import Cookie from '../cookie';\n\nexport class Store{\n\n /**\n * Store, persistence manager\n * @param {Object} tf TableFilter instance\n *\n * TODO: use localStorage and fallback to cookie persistence\n */\n constructor(tf) {\n var f = tf.config();\n\n this.duration = !isNaN(f.set_cookie_duration) ?\n parseInt(f.set_cookie_duration, 10) : 100000;\n\n this.tf = tf;\n }\n\n /**\n * Store filters' values in cookie\n * @param {String} cookie name\n */\n saveFilterValues(name){\n var tf = this.tf;\n var fltValues = [];\n //store filters' values\n for(var i=0; i<tf.fltIds.length; i++){\n var value = tf.getFilterValue(i);\n if (value === ''){\n value = ' ';\n }\n fltValues.push(value);\n }\n //adds array size\n fltValues.push(tf.fltIds.length);\n\n //writes cookie\n Cookie.write(\n name,\n fltValues.join(tf.separator),\n this.duration\n );\n }\n\n /**\n * Retrieve filters' values from cookie\n * @param {String} cookie name\n * @return {Array}\n */\n getFilterValues(name){\n var flts = Cookie.read(name);\n var rgx = new RegExp(this.tf.separator, 'g');\n // filters' values array\n return flts.split(rgx);\n }\n\n /**\n * Store page number in cookie\n * @param {String} cookie name\n */\n savePageNb(name){\n Cookie.write(\n name,\n this.tf.feature('paging').currentPageNb,\n this.duration\n );\n }\n\n /**\n * Retrieve page number from cookie\n * @param {String} cookie name\n * @return {String}\n */\n getPageNb(name){\n return Cookie.read(name);\n }\n\n /**\n * Store page length in cookie\n * @param {String} cookie name\n */\n savePageLength(name){\n Cookie.write(\n name,\n this.tf.feature('paging').resultsPerPageSlc.selectedIndex,\n this.duration\n );\n }\n\n /**\n * Retrieve page length from cookie\n * @param {String} cookie name\n * @return {String}\n */\n getPageLength(name){\n return Cookie.read(name);\n }\n\n}\n"
|
|
},
|
|
{
|
|
"kind": "class",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Store",
|
|
"memberof": "src/modules/store.js",
|
|
"longname": "src/modules/store.js~Store",
|
|
"access": null,
|
|
"export": true,
|
|
"importPath": "tablefilter/src/modules/store.js",
|
|
"importStyle": "{Store}",
|
|
"description": null,
|
|
"lineNumber": 3,
|
|
"undocument": true,
|
|
"interface": false
|
|
},
|
|
{
|
|
"kind": "constructor",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "constructor",
|
|
"memberof": "src/modules/store.js~Store",
|
|
"longname": "src/modules/store.js~Store#constructor",
|
|
"access": null,
|
|
"description": "Store, persistence manager",
|
|
"lineNumber": 11,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "tf",
|
|
"description": "TableFilter instance\n\nTODO: use localStorage and fallback to cookie persistence"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "duration",
|
|
"memberof": "src/modules/store.js~Store",
|
|
"longname": "src/modules/store.js~Store#duration",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 14,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tf",
|
|
"memberof": "src/modules/store.js~Store",
|
|
"longname": "src/modules/store.js~Store#tf",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 17,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "saveFilterValues",
|
|
"memberof": "src/modules/store.js~Store",
|
|
"longname": "src/modules/store.js~Store#saveFilterValues",
|
|
"access": null,
|
|
"description": "Store filters' values in cookie",
|
|
"lineNumber": 24,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "cookie",
|
|
"description": "name"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getFilterValues",
|
|
"memberof": "src/modules/store.js~Store",
|
|
"longname": "src/modules/store.js~Store#getFilterValues",
|
|
"access": null,
|
|
"description": "Retrieve filters' values from cookie",
|
|
"lineNumber": 51,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "cookie",
|
|
"description": "name"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Array"
|
|
],
|
|
"spread": false,
|
|
"description": ""
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "savePageNb",
|
|
"memberof": "src/modules/store.js~Store",
|
|
"longname": "src/modules/store.js~Store#savePageNb",
|
|
"access": null,
|
|
"description": "Store page number in cookie",
|
|
"lineNumber": 62,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "cookie",
|
|
"description": "name"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getPageNb",
|
|
"memberof": "src/modules/store.js~Store",
|
|
"longname": "src/modules/store.js~Store#getPageNb",
|
|
"access": null,
|
|
"description": "Retrieve page number from cookie",
|
|
"lineNumber": 75,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "cookie",
|
|
"description": "name"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"description": ""
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "savePageLength",
|
|
"memberof": "src/modules/store.js~Store",
|
|
"longname": "src/modules/store.js~Store#savePageLength",
|
|
"access": null,
|
|
"description": "Store page length in cookie",
|
|
"lineNumber": 83,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "cookie",
|
|
"description": "name"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getPageLength",
|
|
"memberof": "src/modules/store.js~Store",
|
|
"longname": "src/modules/store.js~Store#getPageLength",
|
|
"access": null,
|
|
"description": "Retrieve page length from cookie",
|
|
"lineNumber": 96,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "cookie",
|
|
"description": "name"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"description": ""
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/sort.js",
|
|
"memberof": null,
|
|
"longname": "src/sort.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1,
|
|
"content": "import Str from './string';\n\nexport default {\n ignoreCase(a, b){\n let x = Str.lower(a);\n let y = Str.lower(b);\n return ((x < y) ? -1 : ((x > y) ? 1 : 0));\n }\n};\n"
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/string.js",
|
|
"memberof": null,
|
|
"longname": "src/string.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 5,
|
|
"content": "/**\n * String utilities\n */\n\nexport default {\n\n lower(text){\n return text.toLowerCase();\n },\n\n upper(text){\n return text.toUpperCase();\n },\n\n trim(text){\n if (text.trim){\n return text.trim();\n }\n return text.replace(/^\\s*|\\s*$/g, '');\n },\n\n isEmpty(text){\n return this.trim(text) === '';\n },\n\n rgxEsc(text){\n let chars = /[-\\/\\\\^$*+?.()|[\\]{}]/g;\n let escMatch = '\\\\$&';\n return String(text).replace(chars, escMatch);\n },\n\n matchCase(text, mc){\n if(!mc){\n return this.lower(text);\n }\n return text;\n }\n\n};\n"
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/tablefilter.js",
|
|
"memberof": null,
|
|
"longname": "src/tablefilter.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1,
|
|
"content": "import Event from './event';\nimport Dom from './dom';\nimport Str from './string';\nimport Cookie from './cookie';\nimport Types from './types';\nimport Arr from './array';\nimport DateHelper from './date';\nimport Helpers from './helpers';\n\n// Features\nimport {Store} from './modules/store';\nimport {GridLayout} from './modules/gridLayout';\nimport {Loader} from './modules/loader';\nimport {HighlightKeyword} from './modules/highlightKeywords';\nimport {PopupFilter} from './modules/popupFilter';\nimport {Dropdown} from './modules/dropdown';\nimport {CheckList} from './modules/checkList';\nimport {RowsCounter} from './modules/rowsCounter';\nimport {StatusBar} from './modules/statusBar';\nimport {Paging} from './modules/paging';\nimport {ClearButton} from './modules/clearButton';\nimport {Help} from './modules/help';\nimport {AlternateRows} from './modules/alternateRows';\n\nvar global = window,\n isValidDate = DateHelper.isValid,\n formatDate = DateHelper.format,\n doc = global.document;\n\nexport class TableFilter{\n\n /**\n * TableFilter object constructor\n * requires `table` or `id` arguments, `row` and `configuration` optional\n * @param {DOMElement} table Table DOM element\n * @param {String} id Table id\n * @param {Number} row index indicating the 1st row\n * @param {Object} configuration object\n */\n constructor(...args) {\n if(args.length === 0){ return; }\n\n this.id = null;\n this.version = '{VERSION}';\n this.year = new Date().getFullYear();\n this.tbl = null;\n this.startRow = null;\n this.refRow = null;\n this.headersRow = null;\n this.cfg = {};\n this.nbFilterableRows = null;\n this.nbRows = null;\n this.nbCells = null;\n this._hasGrid = false;\n\n // TODO: use for-of with babel plug-in\n args.forEach((arg)=> {\n let argtype = typeof arg;\n if(argtype === 'object' && arg && arg.nodeName === 'TABLE'){\n this.tbl = arg;\n this.id = arg.id || `tf_${new Date().getTime()}_`;\n } else if(argtype === 'string'){\n this.id = arg;\n this.tbl = Dom.id(arg);\n } else if(argtype === 'number'){\n this.startRow = arg;\n } else if(argtype === 'object'){\n this.cfg = arg;\n }\n });\n\n if(!this.tbl || this.tbl.nodeName != 'TABLE' || this.getRowsNb() === 0){\n throw new Error(\n 'Could not instantiate TableFilter: HTML table not found.');\n }\n\n // configuration object\n let f = this.cfg;\n\n //Start row et cols nb\n this.refRow = this.startRow === null ? 2 : (this.startRow+1);\n try{ this.nbCells = this.getCellsNb(this.refRow); }\n catch(e){ this.nbCells = this.getCellsNb(0); }\n\n //default script base path\n this.basePath = f.base_path || 'tablefilter/';\n\n /*** filter types ***/\n this.fltTypeInp = 'input';\n this.fltTypeSlc = 'select';\n this.fltTypeMulti = 'multiple';\n this.fltTypeCheckList = 'checklist';\n this.fltTypeNone = 'none';\n\n /*** filters' grid properties ***/\n\n //enables/disables filter grid\n this.fltGrid = f.grid === false ? false : true;\n\n //enables/disables grid layout (fixed headers)\n this.gridLayout = Boolean(f.grid_layout);\n\n this.filtersRowIndex = isNaN(f.filters_row_index) ?\n 0 : f.filters_row_index;\n this.headersRow = isNaN(f.headers_row_index) ?\n (this.filtersRowIndex === 0 ? 1 : 0) : f.headers_row_index;\n\n if(this.gridLayout){\n if(this.headersRow > 1){\n this.filtersRowIndex = this.headersRow+1;\n } else {\n this.filtersRowIndex = 1;\n this.headersRow = 0;\n }\n }\n\n //defines tag of the cells containing filters (td/th)\n this.fltCellTag = f.filters_cell_tag!=='th' ||\n f.filters_cell_tag!=='td' ? 'td' : f.filters_cell_tag;\n\n //stores filters ids\n this.fltIds = [];\n //stores filters DOM elements\n this.fltElms = [];\n //stores filters values\n this.searchArgs = null;\n //stores valid rows indexes (rows visible upon filtering)\n this.validRowsIndex = null;\n //stores filters row element\n this.fltGridEl = null;\n //is first load boolean\n this.isFirstLoad = true;\n //container div for paging elements, reset btn etc.\n this.infDiv = null;\n //div for rows counter\n this.lDiv = null;\n //div for reset button and results per page select\n this.rDiv = null;\n //div for paging elements\n this.mDiv = null;\n\n //defines css class for div containing paging elements, rows counter etc\n this.infDivCssClass = f.inf_div_css_class || 'inf';\n //defines css class for left div\n this.lDivCssClass = f.left_div_css_class || 'ldiv';\n //defines css class for right div\n this.rDivCssClass = f.right_div_css_class || 'rdiv';\n //defines css class for mid div\n this.mDivCssClass = f.middle_div_css_class || 'mdiv';\n //table container div css class\n this.contDivCssClass = f.content_div_css_class || 'cont';\n\n /*** filters' grid appearance ***/\n //stylesheet file\n this.stylePath = f.style_path || this.basePath + 'style/';\n this.stylesheet = f.stylesheet || this.stylePath+'tablefilter.css';\n this.stylesheetId = this.id + '_style';\n //defines css class for filters row\n this.fltsRowCssClass = f.flts_row_css_class || 'fltrow';\n //enables/disables icons (paging, reset button)\n this.enableIcons = f.enable_icons===false ? false : true;\n //enables/disbles rows alternating bg colors\n this.alternateRows = Boolean(f.alternate_rows);\n //defines widths of columns\n this.hasColWidths = Types.isArray(f.col_widths);\n this.colWidths = this.hasColWidths ? f.col_widths : null;\n //defines css class for filters\n this.fltCssClass = f.flt_css_class || 'flt';\n //defines css class for multiple selects filters\n this.fltMultiCssClass = f.flt_multi_css_class || 'flt_multi';\n //defines css class for filters\n this.fltSmallCssClass = f.flt_small_css_class || 'flt_s';\n //defines css class for single-filter\n this.singleFltCssClass = f.single_flt_css_class || 'single_flt';\n\n /*** filters' grid behaviours ***/\n //enables/disables enter key\n this.enterKey = f.enter_key===false ? false : true;\n //calls function before filtering starts\n this.onBeforeFilter = Types.isFn(f.on_before_filter) ?\n f.on_before_filter : null;\n //calls function after filtering\n this.onAfterFilter = Types.isFn(f.on_after_filter) ?\n f.on_after_filter : null;\n //enables/disables case sensitivity\n this.caseSensitive = Boolean(f.case_sensitive);\n //has exact match per column\n this.hasExactMatchByCol = Types.isArray(f.columns_exact_match);\n this.exactMatchByCol = this.hasExactMatchByCol ?\n f.columns_exact_match : [];\n //enables/disbles exact match for search\n this.exactMatch = Boolean(f.exact_match);\n //refreshes drop-down lists upon validation\n this.linkedFilters = Boolean(f.linked_filters);\n //wheter excluded options are disabled\n this.disableExcludedOptions = Boolean(f.disable_excluded_options);\n //stores active filter element\n this.activeFlt = null;\n //id of active filter\n this.activeFilterId = null;\n //enables always visible rows\n this.hasVisibleRows = Boolean(f.rows_always_visible);\n //array containing always visible rows\n this.visibleRows = this.hasVisibleRows ? f.rows_always_visible : [];\n //enables/disables external filters generation\n this.isExternalFlt = Boolean(f.external_flt_grid);\n //array containing ids of external elements containing filters\n this.externalFltTgtIds = f.external_flt_grid_ids || null;\n //stores filters elements if isExternalFlt is true\n this.externalFltEls = [];\n //delays any filtering process if loader true\n this.execDelay = !isNaN(f.exec_delay) ? parseInt(f.exec_delay,10) : 100;\n //calls function when filters grid loaded\n this.onFiltersLoaded = Types.isFn(f.on_filters_loaded) ?\n f.on_filters_loaded : null;\n //enables/disables single filter search\n this.singleSearchFlt = Boolean(f.single_filter);\n //calls function after row is validated\n this.onRowValidated = Types.isFn(f.on_row_validated) ?\n f.on_row_validated : null;\n //array defining columns for customCellData event\n this.customCellDataCols = f.custom_cell_data_cols ?\n f.custom_cell_data_cols : [];\n //calls custom function for retrieving cell data\n this.customCellData = Types.isFn(f.custom_cell_data) ?\n f.custom_cell_data : null;\n //input watermark text array\n this.watermark = f.watermark || '';\n this.isWatermarkArray = Types.isArray(this.watermark);\n //id of toolbar container element\n this.toolBarTgtId = f.toolbar_target_id || null;\n //enables/disables help div\n this.help = Types.isUndef(f.help_instructions) ?\n undefined : Boolean(f.help_instructions);\n //popup filters\n this.popupFilters = Boolean(f.popup_filters);\n //active columns color\n this.markActiveColumns = Boolean(f.mark_active_columns);\n //defines css class for active column header\n this.activeColumnsCssClass = f.active_columns_css_class ||\n 'activeHeader';\n //calls function before active column header is marked\n this.onBeforeActiveColumn = Types.isFn(f.on_before_active_column) ?\n f.on_before_active_column : null;\n //calls function after active column header is marked\n this.onAfterActiveColumn = Types.isFn(f.on_after_active_column) ?\n f.on_after_active_column : null;\n\n /*** select filter's customisation and behaviours ***/\n //defines 1st option text\n this.displayAllText = f.display_all_text || 'Clear';\n //enables/disables empty option in combo-box filters\n this.enableEmptyOption = Boolean(f.enable_empty_option);\n //defines empty option text\n this.emptyText = f.empty_text || '(Empty)';\n //enables/disables non empty option in combo-box filters\n this.enableNonEmptyOption = Boolean(f.enable_non_empty_option);\n //defines empty option text\n this.nonEmptyText = f.non_empty_text || '(Non empty)';\n //enables/disables onChange event on combo-box\n this.onSlcChange = f.on_change===false ? false : true;\n //enables/disables select options sorting\n this.sortSlc = f.sort_select===false ? false : true;\n //enables/disables ascending numeric options sorting\n this.isSortNumAsc = Boolean(f.sort_num_asc);\n this.sortNumAsc = this.isSortNumAsc ? f.sort_num_asc : null;\n //enables/disables descending numeric options sorting\n this.isSortNumDesc = Boolean(f.sort_num_desc);\n this.sortNumDesc = this.isSortNumDesc ? f.sort_num_desc : null;\n //Select filters are populated on demand\n this.loadFltOnDemand = Boolean(f.load_filters_on_demand);\n this.hasCustomOptions = Types.isObj(f.custom_options);\n this.customOptions = f.custom_options;\n\n /*** Filter operators ***/\n this.rgxOperator = f.regexp_operator || 'rgx:';\n this.emOperator = f.empty_operator || '[empty]';\n this.nmOperator = f.nonempty_operator || '[nonempty]';\n this.orOperator = f.or_operator || '||';\n this.anOperator = f.and_operator || '&&';\n this.grOperator = f.greater_operator || '>';\n this.lwOperator = f.lower_operator || '<';\n this.leOperator = f.lower_equal_operator || '<=';\n this.geOperator = f.greater_equal_operator || '>=';\n this.dfOperator = f.different_operator || '!';\n this.lkOperator = f.like_operator || '*';\n this.eqOperator = f.equal_operator || '=';\n this.stOperator = f.start_with_operator || '{';\n this.enOperator = f.end_with_operator || '}';\n this.curExp = f.cur_exp || '^[¥£€$]';\n this.separator = f.separator || ',';\n\n /*** rows counter ***/\n //show/hides rows counter\n this.rowsCounter = Boolean(f.rows_counter);\n\n /*** status bar ***/\n //show/hides status bar\n this.statusBar = Boolean(f.status_bar);\n\n /*** loader ***/\n //enables/disables loader/spinner indicator\n this.loader = Boolean(f.loader);\n\n /*** validation - reset buttons/links ***/\n //show/hides filter's validation button\n this.displayBtn = Boolean(f.btn);\n //defines validation button text\n this.btnText = f.btn_text || (!this.enableIcons ? 'Go' : '');\n //defines css class for validation button\n this.btnCssClass = f.btn_css_class ||\n (!this.enableIcons ? 'btnflt' : 'btnflt_icon');\n //show/hides reset link\n this.btnReset = Boolean(f.btn_reset);\n //defines css class for reset button\n this.btnResetCssClass = f.btn_reset_css_class || 'reset';\n //callback function before filters are cleared\n this.onBeforeReset = Types.isFn(f.on_before_reset) ?\n f.on_before_reset : null;\n //callback function after filters are cleared\n this.onAfterReset = Types.isFn(f.on_after_reset) ?\n f.on_after_reset : null;\n\n /*** paging ***/\n //enables/disables table paging\n this.paging = Boolean(f.paging);\n this.nbVisibleRows = 0; //nb visible rows\n this.nbHiddenRows = 0; //nb hidden rows\n\n /*** autofilter on typing ***/\n //enables/disables auto filtering, table is filtered when user stops\n //typing\n this.autoFilter = Boolean(f.auto_filter);\n //onkeyup delay timer (msecs)\n this.autoFilterDelay = !isNaN(f.auto_filter_delay) ?\n f.auto_filter_delay : 900;\n //typing indicator\n this.isUserTyping = null;\n this.autoFilterTimer = null;\n\n /*** keyword highlighting ***/\n //enables/disables keyword highlighting\n this.highlightKeywords = Boolean(f.highlight_keywords);\n\n /*** data types ***/\n //defines default date type (european DMY)\n this.defaultDateType = f.default_date_type || 'DMY';\n //defines default thousands separator\n //US = ',' EU = '.'\n this.thousandsSeparator = f.thousands_separator || ',';\n //defines default decimal separator\n //US & javascript = '.' EU = ','\n this.decimalSeparator = f.decimal_separator || '.';\n //enables number format per column\n this.hasColNbFormat = Types.isArray(f.col_number_format);\n //array containing columns nb formats\n this.colNbFormat = this.hasColNbFormat ? f.col_number_format : null;\n //enables date type per column\n this.hasColDateType = Types.isArray(f.col_date_type);\n //array containing columns date type\n this.colDateType = this.hasColDateType ? f.col_date_type : null;\n\n /*** status messages ***/\n //filtering\n this.msgFilter = f.msg_filter || 'Filtering data...';\n //populating drop-downs\n this.msgPopulate = f.msg_populate || 'Populating filter...';\n //populating drop-downs\n this.msgPopulateCheckList = f.msg_populate_checklist ||\n 'Populating list...';\n //changing paging page\n this.msgChangePage = f.msg_change_page || 'Collecting paging data...';\n //clearing filters\n this.msgClear = f.msg_clear || 'Clearing filters...';\n //changing nb results/page\n this.msgChangeResults = f.msg_change_results ||\n 'Changing results per page...';\n //re-setting grid values\n this.msgResetValues = f.msg_reset_grid_values ||\n 'Re-setting filters values...';\n //re-setting page\n this.msgResetPage = f.msg_reset_page || 'Re-setting page...';\n //re-setting page length\n this.msgResetPageLength = f.msg_reset_page_length ||\n 'Re-setting page length...';\n //table sorting\n this.msgSort = f.msg_sort || 'Sorting data...';\n //extensions loading\n this.msgLoadExtensions = f.msg_load_extensions ||\n 'Loading extensions...';\n //themes loading\n this.msgLoadThemes = f.msg_load_themes || 'Loading theme(s)...';\n\n /*** ids prefixes ***/\n //css class name added to table\n this.prfxTf = 'TF';\n //filters (inputs - selects)\n this.prfxFlt = 'flt';\n //validation button\n this.prfxValButton = 'btn';\n //container div for paging elements, rows counter etc.\n this.prfxInfDiv = 'inf_';\n //left div\n this.prfxLDiv = 'ldiv_';\n //right div\n this.prfxRDiv = 'rdiv_';\n //middle div\n this.prfxMDiv = 'mdiv_';\n //filter values cookie\n this.prfxCookieFltsValues = 'tf_flts_';\n //page nb cookie\n this.prfxCookiePageNb = 'tf_pgnb_';\n //page length cookie\n this.prfxCookiePageLen = 'tf_pglen_';\n\n /*** cookies ***/\n this.hasStoredValues = false;\n //remembers filters values on page load\n this.rememberGridValues = Boolean(f.remember_grid_values);\n //cookie storing filter values\n this.fltsValuesCookie = this.prfxCookieFltsValues + this.id;\n //remembers page nb on page load\n this.rememberPageNb = this.paging && f.remember_page_number;\n //cookie storing page nb\n this.pgNbCookie = this.prfxCookiePageNb + this.id;\n //remembers page length on page load\n this.rememberPageLen = this.paging && f.remember_page_length;\n //cookie storing page length\n this.pgLenCookie = this.prfxCookiePageLen + this.id;\n\n /*** extensions ***/\n //imports external script\n this.extensions = f.extensions;\n this.hasExtensions = Types.isArray(this.extensions);\n\n /*** themes ***/\n this.enableDefaultTheme = Boolean(f.enable_default_theme);\n //imports themes\n this.hasThemes = (this.enableDefaultTheme || Types.isArray(f.themes));\n this.themes = f.themes || [];\n //themes path\n this.themesPath = f.themes_path || this.stylePath + 'themes/';\n\n // Features registry\n this.Mod = {};\n\n // Extensions registry\n this.ExtRegistry = {};\n\n /*** TF events ***/\n this.Evt = {\n name: {\n filter: 'Filter',\n dropdown: 'DropDown',\n checklist: 'CheckList',\n changepage: 'ChangePage',\n clear: 'Clear',\n changeresultsperpage: 'ChangeResults',\n resetvalues: 'ResetValues',\n resetpage: 'ResetPage',\n resetpagelength: 'ResetPageLength',\n loadextensions: 'LoadExtensions',\n loadthemes: 'LoadThemes'\n },\n\n // Detect <enter> key\n detectKey(e) {\n if(!this.enterKey){ return; }\n let _ev = e || global.event;\n if(_ev){\n let key = Event.keyCode(_ev);\n if(key===13){\n this.filter();\n Event.cancel(_ev);\n Event.stop(_ev);\n } else {\n this.isUserTyping = true;\n global.clearInterval(this.autoFilterTimer);\n this.autoFilterTimer = null;\n }\n }\n },\n // if auto-filter on, detect user is typing and filter columns\n onKeyUp(e) {\n if(!this.autoFilter){\n return;\n }\n let _ev = e || global.event;\n let key = Event.keyCode(_ev);\n this.isUserTyping = false;\n\n function filter() {\n /*jshint validthis:true */\n global.clearInterval(this.autoFilterTimer);\n this.autoFilterTimer = null;\n if(!this.isUserTyping){\n this.filter();\n this.isUserTyping = null;\n }\n }\n\n if(key!==13 && key!==9 && key!==27 && key!==38 && key!==40) {\n if(this.autoFilterTimer === null){\n this.autoFilterTimer = global.setInterval(\n filter.bind(this), this.autoFilterDelay);\n }\n } else {\n global.clearInterval(this.autoFilterTimer);\n this.autoFilterTimer = null;\n }\n },\n // if auto-filter on, detect user is typing\n onKeyDown() {\n if(!this.autoFilter) { return; }\n this.isUserTyping = true;\n },\n // if auto-filter on, clear interval on filter blur\n onInpBlur() {\n if(this.autoFilter){\n this.isUserTyping = false;\n global.clearInterval(this.autoFilterTimer);\n }\n // TODO: hack to prevent ezEditTable enter key event hijaking.\n // Needs to be fixed in the vendor's library\n if(this.hasExtension('advancedGrid')){\n var advGrid = this.extension('advancedGrid');\n var ezEditTable = advGrid._ezEditTable;\n if(advGrid.cfg.editable){\n ezEditTable.Editable.Set();\n }\n if(advGrid.cfg.selection){\n ezEditTable.Selection.Set();\n }\n }\n },\n // set focused text-box filter as active\n onInpFocus(e) {\n let _ev = e || global.event;\n let elm = Event.target(_ev);\n this.activeFilterId = elm.getAttribute('id');\n this.activeFlt = Dom.id(this.activeFilterId);\n if(this.popupFilters){\n Event.cancel(_ev);\n Event.stop(_ev);\n }\n // TODO: hack to prevent ezEditTable enter key event hijaking.\n // Needs to be fixed in the vendor's library\n if(this.hasExtension('advancedGrid')){\n var advGrid = this.extension('advancedGrid');\n var ezEditTable = advGrid._ezEditTable;\n if(advGrid.cfg.editable){\n ezEditTable.Editable.Remove();\n }\n if(advGrid.cfg.selection){\n ezEditTable.Selection.Remove();\n }\n }\n },\n // set focused drop-down filter as active\n onSlcFocus(e) {\n let _ev = e || global.event;\n let elm = Event.target(_ev);\n this.activeFilterId = elm.getAttribute('id');\n this.activeFlt = Dom.id(this.activeFilterId);\n // select is populated when element has focus\n if(this.loadFltOnDemand && elm.getAttribute('filled') === '0'){\n let ct = elm.getAttribute('ct');\n this.Mod.dropdown._build(ct);\n }\n if(this.popupFilters){\n Event.cancel(_ev);\n Event.stop(_ev);\n }\n },\n // filter columns on drop-down filter change\n onSlcChange(e) {\n if(!this.activeFlt){ return; }\n let _ev = e || global.event;\n if(this.popupFilters){ Event.stop(_ev); }\n if(this.onSlcChange){ this.filter(); }\n },\n // fill checklist filter on click if required\n onCheckListClick(e) {\n let _ev = e || global.event;\n let elm = Event.target(_ev);\n if(this.loadFltOnDemand && elm.getAttribute('filled') === '0'){\n let ct = elm.getAttribute('ct');\n this.Mod.checkList._build(ct);\n this.Mod.checkList.checkListDiv[ct].onclick = null;\n this.Mod.checkList.checkListDiv[ct].title = '';\n }\n }\n };\n }\n\n /**\n * Initialise filtering grid bar behaviours and layout\n *\n * TODO: decompose in smaller methods\n */\n init(){\n if(this._hasGrid){\n return;\n }\n if(!this.tbl){\n this.tbl = Dom.id(this.id);\n }\n if(this.gridLayout){\n this.refRow = this.startRow===null ? 0 : this.startRow;\n }\n if(this.popupFilters &&\n ((this.filtersRowIndex === 0 && this.headersRow === 1) ||\n this.gridLayout)){\n this.headersRow = 0;\n }\n\n let Mod = this.Mod;\n let n = this.singleSearchFlt ? 1 : this.nbCells,\n inpclass;\n\n //loads stylesheet if not imported\n this.import(this.stylesheetId, this.stylesheet, null, 'link');\n\n //loads theme\n if(this.hasThemes){ this._loadThemes(); }\n\n if(this.rememberGridValues || this.rememberPageNb ||\n this.rememberPageLen){\n Mod.store = new Store(this);\n }\n\n if(this.gridLayout){\n Mod.gridLayout = new GridLayout(this);\n Mod.gridLayout.init();\n }\n\n if(this.loader){\n if(!Mod.loader){\n Mod.loader = new Loader(this);\n Mod.loader.init();\n }\n }\n\n if(this.highlightKeywords){\n Mod.highlightKeyword = new HighlightKeyword(this);\n }\n\n if(this.popupFilters){\n if(!Mod.popupFilter){\n Mod.popupFilter = new PopupFilter(this);\n }\n Mod.popupFilter.init();\n }\n\n //filters grid is not generated\n if(!this.fltGrid){\n this.refRow = this.refRow-1;\n if(this.gridLayout){\n this.refRow = 0;\n }\n this.nbFilterableRows = this.getRowsNb();\n this.nbVisibleRows = this.nbFilterableRows;\n this.nbRows = this.nbFilterableRows + this.refRow;\n } else {\n if(this.isFirstLoad){\n let fltrow;\n if(!this.gridLayout){\n let thead = Dom.tag(this.tbl, 'thead');\n if(thead.length > 0){\n fltrow = thead[0].insertRow(this.filtersRowIndex);\n } else {\n fltrow = this.tbl.insertRow(this.filtersRowIndex);\n }\n\n if(this.headersRow > 1 &&\n this.filtersRowIndex <= this.headersRow &&\n !this.popupFilters){\n this.headersRow++;\n }\n if(this.popupFilters){\n this.headersRow++;\n }\n\n fltrow.className = this.fltsRowCssClass;\n\n if(this.isExternalFlt || this.popupFilters){\n fltrow.style.display = 'none';\n }\n }\n\n this.nbFilterableRows = this.getRowsNb();\n this.nbVisibleRows = this.nbFilterableRows;\n this.nbRows = this.tbl.rows.length;\n\n for(let i=0; i<n; i++){// this loop adds filters\n\n if(this.popupFilters){\n Mod.popupFilter.build(i);\n }\n\n let fltcell = Dom.create(this.fltCellTag),\n col = this.getFilterType(i),\n externalFltTgtId =\n this.isExternalFlt && this.externalFltTgtIds ?\n this.externalFltTgtIds[i] : null;\n\n if(this.singleSearchFlt){\n fltcell.colSpan = this.nbCells;\n }\n if(!this.gridLayout){\n fltrow.appendChild(fltcell);\n }\n inpclass = (i==n-1 && this.displayBtn) ?\n this.fltSmallCssClass : this.fltCssClass;\n\n //only 1 input for single search\n if(this.singleSearchFlt){\n col = this.fltTypeInp;\n inpclass = this.singleFltCssClass;\n }\n\n //drop-down filters\n if(col===this.fltTypeSlc || col===this.fltTypeMulti){\n if(!Mod.dropdown){\n Mod.dropdown = new Dropdown(this);\n }\n let dropdown = Mod.dropdown;\n\n let slc = Dom.create(this.fltTypeSlc,\n ['id', this.prfxFlt+i+'_'+this.id],\n ['ct', i], ['filled', '0']\n );\n\n if(col===this.fltTypeMulti){\n slc.multiple = this.fltTypeMulti;\n slc.title = dropdown.multipleSlcTooltip;\n }\n slc.className = Str.lower(col)===this.fltTypeSlc ?\n inpclass : this.fltMultiCssClass;// for ie<=6\n\n //filter is appended in desired external element\n if(externalFltTgtId){\n Dom.id(externalFltTgtId).appendChild(slc);\n this.externalFltEls.push(slc);\n } else {\n fltcell.appendChild(slc);\n }\n\n this.fltIds.push(this.prfxFlt+i+'_'+this.id);\n\n if(!this.loadFltOnDemand){\n dropdown._build(i);\n }\n\n Event.add(slc, 'keypress',\n this.Evt.detectKey.bind(this));\n Event.add(slc, 'change',\n this.Evt.onSlcChange.bind(this));\n Event.add(slc, 'focus', this.Evt.onSlcFocus.bind(this));\n\n //1st option is created here since dropdown.build isn't\n //invoked\n if(this.loadFltOnDemand){\n let opt0 = Dom.createOpt(this.displayAllText, '');\n slc.appendChild(opt0);\n }\n }\n // checklist\n else if(col===this.fltTypeCheckList){\n let checkList;\n Mod.checkList = new CheckList(this);\n checkList = Mod.checkList;\n\n let divCont = Dom.create('div',\n ['id', checkList.prfxCheckListDiv+i+'_'+this.id],\n ['ct', i], ['filled', '0']);\n divCont.className = checkList.checkListDivCssClass;\n\n //filter is appended in desired element\n if(externalFltTgtId){\n Dom.id(externalFltTgtId).appendChild(divCont);\n this.externalFltEls.push(divCont);\n } else {\n fltcell.appendChild(divCont);\n }\n\n checkList.checkListDiv[i] = divCont;\n this.fltIds.push(this.prfxFlt+i+'_'+this.id);\n if(!this.loadFltOnDemand){\n checkList._build(i);\n }\n\n if(this.loadFltOnDemand){\n Event.add(divCont, 'click',\n this.Evt.onCheckListClick.bind(this));\n divCont.appendChild(\n Dom.text(checkList.activateCheckListTxt));\n }\n }\n\n else{\n //show/hide input\n let inptype = col===this.fltTypeInp ? 'text' : 'hidden';\n let inp = Dom.create(this.fltTypeInp,\n ['id',this.prfxFlt+i+'_'+this.id],\n ['type',inptype], ['ct',i]);\n if(inptype!=='hidden' && this.watermark){\n inp.setAttribute(\n 'placeholder',\n this.isWatermarkArray ?\n (this.watermark[i] || '') : this.watermark\n );\n }\n inp.className = inpclass;\n Event.add(inp, 'focus', this.Evt.onInpFocus.bind(this));\n\n //filter is appended in desired element\n if(externalFltTgtId){\n Dom.id(externalFltTgtId).appendChild(inp);\n this.externalFltEls.push(inp);\n } else {\n fltcell.appendChild(inp);\n }\n\n this.fltIds.push(this.prfxFlt+i+'_'+this.id);\n\n Event.add(inp, 'keypress',\n this.Evt.detectKey.bind(this));\n Event.add(inp, 'keydown',\n this.Evt.onKeyDown.bind(this));\n Event.add(inp, 'keyup', this.Evt.onKeyUp.bind(this));\n Event.add(inp, 'blur', this.Evt.onInpBlur.bind(this));\n\n if(this.rememberGridValues){\n let flts_values = this.Mod.store.getFilterValues(\n this.fltsValuesCookie);\n if(flts_values[i]!=' '){\n this.setFilterValue(i, flts_values[i], false);\n }\n }\n }\n // this adds submit button\n if(i==n-1 && this.displayBtn){\n let btn = Dom.create(this.fltTypeInp,\n ['id', this.prfxValButton+i+'_'+this.id],\n ['type', 'button'], ['value', this.btnText]);\n btn.className = this.btnCssClass;\n\n //filter is appended in desired element\n if(externalFltTgtId){\n Dom.id(externalFltTgtId).appendChild(btn);\n } else{\n fltcell.appendChild(btn);\n }\n\n Event.add(btn, 'click', ()=> this.filter());\n }//if\n\n }// for i\n\n } else {\n this._resetGrid();\n }//if isFirstLoad\n\n }//if this.fltGrid\n\n /* Filter behaviours */\n if(this.hasVisibleRows){\n this.enforceVisibility();\n }\n if(this.rowsCounter){\n Mod.rowsCounter = new RowsCounter(this);\n Mod.rowsCounter.init();\n }\n if(this.statusBar){\n Mod.statusBar = new StatusBar(this);\n Mod.statusBar.init();\n }\n if(this.paging || Mod.paging){\n if(!Mod.paging){\n Mod.paging = new Paging(this);\n Mod.paging.init();\n }\n Mod.paging.reset();\n }\n if(this.btnReset){\n Mod.clearButton = new ClearButton(this);\n Mod.clearButton.init();\n }\n if(this.help){\n if(!Mod.help){\n Mod.help = new Help(this);\n }\n Mod.help.init();\n }\n if(this.hasColWidths && !this.gridLayout){\n this.setColWidths();\n }\n if(this.alternateRows){\n Mod.alternateRows = new AlternateRows(this);\n Mod.alternateRows.init();\n }\n\n this.isFirstLoad = false;\n this._hasGrid = true;\n\n if(this.rememberGridValues || this.rememberPageLen ||\n this.rememberPageNb){\n this.resetValues();\n }\n\n //TF css class is added to table\n if(!this.gridLayout){\n Dom.addClass(this.tbl, this.prfxTf);\n }\n\n if(this.loader){\n Mod.loader.show('none');\n }\n\n /* Loads extensions */\n if(this.hasExtensions){\n this.initExtensions();\n }\n\n if(this.onFiltersLoaded){\n this.onFiltersLoaded.call(null, this);\n }\n }\n\n /**\n * Manages state messages\n * @param {String} evt Event name\n * @param {Object} cfg Config object\n */\n EvtManager(evt,\n cfg={ slcIndex: null, slcExternal: false, slcId: null, pgIndex: null }){\n let slcIndex = cfg.slcIndex;\n let slcExternal = cfg.slcExternal;\n let slcId = cfg.slcId;\n let pgIndex = cfg.pgIndex;\n let cpt = this.Mod;\n\n function efx(){\n /*jshint validthis:true */\n let ev = this.Evt.name;\n\n switch(evt){\n case ev.filter:\n this._filter();\n break;\n case ev.dropdown:\n if(this.linkedFilters){\n cpt.dropdown._build(slcIndex, true);\n } else {\n cpt.dropdown._build(\n slcIndex, false, slcExternal, slcId);\n }\n break;\n case ev.checklist:\n cpt.checkList._build(slcIndex, slcExternal, slcId);\n break;\n case ev.changepage:\n cpt.paging._changePage(pgIndex);\n break;\n case ev.clear:\n this._clearFilters();\n this._filter();\n break;\n case ev.changeresultsperpage:\n cpt.paging._changeResultsPerPage();\n break;\n case ev.resetvalues:\n this._resetValues();\n this._filter();\n break;\n case ev.resetpage:\n cpt.paging._resetPage(this.pgNbCookie);\n break;\n case ev.resetpagelength:\n cpt.paging._resetPageLength(this.pgLenCookie);\n break;\n case ev.loadextensions:\n this._loadExtensions();\n break;\n case ev.loadthemes:\n this._loadThemes();\n break;\n }\n if(this.statusBar){\n cpt.statusBar.message('');\n }\n if(this.loader){\n cpt.loader.show('none');\n }\n }\n\n if(!this.loader && !this.statusBar && !this.linkedFilters) {\n efx.call(this);\n } else {\n if(this.loader){\n cpt.loader.show('');\n }\n if(this.statusBar){\n cpt.statusBar.message(this['msg'+evt]);\n }\n global.setTimeout(efx.bind(this), this.execDelay);\n }\n }\n\n /**\n * Return a feature instance for a given name\n * @param {String} name Name of the feature\n * @return {Object}\n */\n feature(name){\n return this.Mod[name];\n }\n\n /**\n * Initialise all the extensions defined in the configuration object\n */\n initExtensions(){\n let exts = this.extensions;\n\n for(let i=0, len=exts.length; i<len; i++){\n let ext = exts[i];\n if(!this.ExtRegistry[ext.name]){\n this.loadExtension(ext);\n }\n }\n }\n\n /**\n * Load an extension module\n * @param {Object} ext Extension config object\n */\n loadExtension(ext){\n if(!ext || !ext.name){\n return;\n }\n\n let name = ext.name;\n let path = ext.path;\n let modulePath;\n\n if(name && path){\n modulePath = ext.path + name;\n } else {\n name = name.replace('.js', '');\n modulePath = 'extensions/{}/{}'.replace(/{}/g, name);\n }\n\n // Trick to set config's publicPath dynamically for Webpack...\n __webpack_public_path__ = this.basePath;\n\n require(['./' + modulePath], (mod)=> {\n let inst = new mod(this, ext);\n inst.init();\n this.ExtRegistry[name] = inst;\n });\n }\n\n /**\n * Get an extension instance\n * @param {String} name Name of the extension\n * @return {Object} Extension instance\n */\n extension(name){\n return this.ExtRegistry[name];\n }\n\n /**\n * Check passed extension name exists\n * @param {String} name Name of the extension\n * @return {Boolean}\n */\n hasExtension(name){\n return !Types.isEmpty(this.ExtRegistry[name]);\n }\n\n /**\n * Destroy all the extensions defined in the configuration object\n */\n destroyExtensions(){\n let exts = this.extensions;\n\n for(let i=0, len=exts.length; i<len; i++){\n let ext = exts[i];\n let extInstance = this.ExtRegistry[ext.name];\n if(extInstance){\n extInstance.destroy();\n this.ExtRegistry[ext.name] = null;\n }\n }\n }\n\n loadThemes(){\n this.EvtManager(this.Evt.name.loadthemes);\n }\n\n /**\n * Load themes defined in the configuration object\n */\n _loadThemes(){\n let themes = this.themes;\n //Default theme config\n if(this.enableDefaultTheme){\n let defaultTheme = { name: 'default' };\n this.themes.push(defaultTheme);\n }\n if(Types.isArray(themes)){\n for(let i=0, len=themes.length; i<len; i++){\n let theme = themes[i];\n let name = theme.name;\n let path = theme.path;\n let styleId = this.prfxTf + name;\n if(name && !path){\n path = this.themesPath + name + '/' + name + '.css';\n }\n else if(!name && theme.path){\n name = 'theme{0}'.replace('{0}', i);\n }\n\n if(!this.isImported(path, 'link')){\n this.import(styleId, path, null, 'link');\n }\n }\n }\n\n //Some elements need to be overriden for default theme\n //Reset button\n this.btnResetText = null;\n this.btnResetHtml = '<input type=\"button\" value=\"\" class=\"' +\n this.btnResetCssClass+'\" title=\"Clear filters\" />';\n\n //Paging buttons\n this.btnPrevPageHtml = '<input type=\"button\" value=\"\" class=\"' +\n this.btnPageCssClass+' previousPage\" title=\"Previous page\" />';\n this.btnNextPageHtml = '<input type=\"button\" value=\"\" class=\"' +\n this.btnPageCssClass+' nextPage\" title=\"Next page\" />';\n this.btnFirstPageHtml = '<input type=\"button\" value=\"\" class=\"' +\n this.btnPageCssClass+' firstPage\" title=\"First page\" />';\n this.btnLastPageHtml = '<input type=\"button\" value=\"\" class=\"' +\n this.btnPageCssClass+' lastPage\" title=\"Last page\" />';\n\n //Loader\n this.loader = true;\n this.loaderHtml = '<div class=\"defaultLoader\"></div>';\n this.loaderText = null;\n }\n\n /**\n * Return stylesheet DOM element for a given theme name\n * @return {DOMElement} stylesheet element\n */\n getStylesheet(name='default'){\n return Dom.id(this.prfxTf + name);\n }\n\n /**\n * Destroy filter grid\n */\n destroy(){\n if(!this._hasGrid){\n return;\n }\n let rows = this.tbl.rows,\n Mod = this.Mod;\n\n this._clearFilters();\n\n if(this.isExternalFlt && !this.popupFilters){\n this.removeExternalFlts();\n }\n if(this.infDiv){\n this.removeToolbar();\n }\n if(this.highlightKeywords){\n Mod.highlightKeyword.unhighlightAll();\n }\n if(this.markActiveColumns){\n this.clearActiveColumns();\n }\n if(this.hasExtensions){\n this.destroyExtensions();\n }\n\n for(let j=this.refRow; j<this.nbRows; j++){\n // validate row\n this.validateRow(j, true);\n\n //removes alternating colors\n if(this.alternateRows){\n Mod.alternateRows.removeRowBg(j);\n }\n\n }//for j\n\n if(this.fltGrid && !this.gridLayout){\n this.fltGridEl = rows[this.filtersRowIndex];\n this.tbl.deleteRow(this.filtersRowIndex);\n }\n\n // Destroy modules\n Object.keys(Mod).forEach(function(key) {\n var feature = Mod[key];\n if(feature && Types.isFn(feature.destroy)){\n feature.destroy();\n }\n });\n\n Dom.removeClass(this.tbl, this.prfxTf);\n this.nbHiddenRows = 0;\n this.validRowsIndex = null;\n this.activeFlt = null;\n this._hasGrid = false;\n this.tbl = null;\n }\n\n /**\n * Generate container element for paging, reset button, rows counter etc.\n */\n setToolbar(){\n if(this.infDiv){\n return;\n }\n\n /*** container div ***/\n let infdiv = Dom.create('div', ['id', this.prfxInfDiv+this.id]);\n infdiv.className = this.infDivCssClass;\n\n //custom container\n if(this.toolBarTgtId){\n Dom.id(this.toolBarTgtId).appendChild(infdiv);\n }\n //grid-layout\n else if(this.gridLayout){\n let gridLayout = this.Mod.gridLayout;\n gridLayout.tblMainCont.appendChild(infdiv);\n infdiv.className = gridLayout.gridInfDivCssClass;\n }\n //default location: just above the table\n else{\n var cont = Dom.create('caption');\n cont.appendChild(infdiv);\n this.tbl.insertBefore(cont, this.tbl.firstChild);\n }\n this.infDiv = Dom.id(this.prfxInfDiv+this.id);\n\n /*** left div containing rows # displayer ***/\n let ldiv = Dom.create('div', ['id', this.prfxLDiv+this.id]);\n ldiv.className = this.lDivCssClass;\n infdiv.appendChild(ldiv);\n this.lDiv = Dom.id(this.prfxLDiv+this.id);\n\n /*** right div containing reset button\n + nb results per page select ***/\n let rdiv = Dom.create('div', ['id', this.prfxRDiv+this.id]);\n rdiv.className = this.rDivCssClass;\n infdiv.appendChild(rdiv);\n this.rDiv = Dom.id(this.prfxRDiv+this.id);\n\n /*** mid div containing paging elements ***/\n let mdiv = Dom.create('div', ['id', this.prfxMDiv+this.id]);\n mdiv.className = this.mDivCssClass;\n infdiv.appendChild(mdiv);\n this.mDiv = Dom.id(this.prfxMDiv+this.id);\n\n // Enable help instructions by default if topbar is generated and not\n // explicitely set to false\n if(Types.isUndef(this.help)){\n if(!this.Mod.help){\n this.Mod.help = new Help(this);\n }\n this.Mod.help.init();\n this.help = true;\n }\n }\n\n /**\n * Remove toolbar container element\n */\n removeToolbar(){\n if(!this.infDiv){\n return;\n }\n this.infDiv.parentNode.removeChild(this.infDiv);\n this.infDiv = null;\n\n let tbl = this.tbl;\n let captions = Dom.tag(tbl, 'caption');\n if(captions.length > 0){\n [].forEach.call(captions, function(elm) {\n tbl.removeChild(elm);\n });\n }\n }\n\n /**\n * Remove all the external column filters\n */\n removeExternalFlts(){\n if(!this.isExternalFlt || !this.externalFltTgtIds){\n return;\n }\n let ids = this.externalFltTgtIds,\n len = ids.length;\n for(let ct=0; ct<len; ct++){\n let externalFltTgtId = ids[ct],\n externalFlt = Dom.id(externalFltTgtId);\n if(externalFlt){\n externalFlt.innerHTML = '';\n }\n }\n }\n\n /**\n * Check if given column implements a filter with custom options\n * @param {Number} colIndex Column's index\n * @return {Boolean}\n */\n isCustomOptions(colIndex) {\n return this.hasCustomOptions &&\n this.customOptions.cols.indexOf(colIndex) != -1;\n }\n\n /**\n * Returns an array [[value0, value1 ...],[text0, text1 ...]] with the\n * custom options values and texts\n * @param {Number} colIndex Column's index\n * @return {Array}\n */\n getCustomOptions(colIndex){\n if(Types.isEmpty(colIndex) || !this.isCustomOptions(colIndex)){\n return;\n }\n\n let customOptions = this.customOptions;\n let cols = customOptions.cols;\n let optTxt = [], optArray = [];\n let index = cols.indexOf(colIndex);\n let slcValues = customOptions.values[index];\n let slcTexts = customOptions.texts[index];\n let slcSort = customOptions.sorts[index];\n\n for(let r=0, len=slcValues.length; r<len; r++){\n optArray.push(slcValues[r]);\n if(slcTexts[r]){\n optTxt.push(slcTexts[r]);\n } else {\n optTxt.push(slcValues[r]);\n }\n }\n if(slcSort){\n optArray.sort();\n optTxt.sort();\n }\n return [optArray, optTxt];\n }\n\n resetValues(){\n this.EvtManager(this.Evt.name.resetvalues);\n }\n\n /**\n * Reset persisted filter values\n */\n _resetValues(){\n //only loadFltOnDemand\n if(this.rememberGridValues && this.loadFltOnDemand){\n this._resetGridValues(this.fltsValuesCookie);\n }\n if(this.rememberPageLen && this.Mod.paging){\n this.Mod.paging.resetPageLength(this.pgLenCookie);\n }\n if(this.rememberPageNb && this.Mod.paging){\n this.Mod.paging.resetPage(this.pgNbCookie);\n }\n }\n\n /**\n * Reset persisted filter values when load filters on demand feature is\n * enabled\n * @param {String} name cookie name storing filter values\n */\n _resetGridValues(name){\n if(!this.loadFltOnDemand){\n return;\n }\n let fltsValues = this.Mod.store.getFilterValues(name),\n slcFltsIndex = this.getFiltersByType(this.fltTypeSlc, true),\n multiFltsIndex = this.getFiltersByType(this.fltTypeMulti, true);\n\n //if the number of columns is the same as before page reload\n if(Number(fltsValues[(fltsValues.length-1)]) === this.fltIds.length){\n for(let i=0; i<(fltsValues.length - 1); i++){\n if(fltsValues[i]===' '){\n continue;\n }\n let s, opt;\n let fltType = this.getFilterType(i);\n // if loadFltOnDemand, drop-down needs to contain stored\n // value(s) for filtering\n if(fltType===this.fltTypeSlc || fltType===this.fltTypeMulti){\n let slc = Dom.id( this.fltIds[i] );\n slc.options[0].selected = false;\n\n //selects\n if(slcFltsIndex.indexOf(i) != -1){\n opt = Dom.createOpt(fltsValues[i],fltsValues[i],true);\n slc.appendChild(opt);\n this.hasStoredValues = true;\n }\n //multiple select\n if(multiFltsIndex.indexOf(i) != -1){\n s = fltsValues[i].split(' '+this.orOperator+' ');\n for(let j=0, len=s.length; j<len; j++){\n if(s[j]===''){\n continue;\n }\n opt = Dom.createOpt(s[j],s[j],true);\n slc.appendChild(opt);\n this.hasStoredValues = true;\n }\n }// if multiFltsIndex\n }\n else if(fltType===this.fltTypeCheckList){\n let checkList = this.Mod.checkList;\n let divChk = checkList.checkListDiv[i];\n divChk.title = divChk.innerHTML;\n divChk.innerHTML = '';\n\n let ul = Dom.create(\n 'ul',['id',this.fltIds[i]],['colIndex',i]);\n ul.className = checkList.checkListCssClass;\n\n let li0 = Dom.createCheckItem(\n this.fltIds[i]+'_0', '', this.displayAllText);\n li0.className = checkList.checkListItemCssClass;\n ul.appendChild(li0);\n\n divChk.appendChild(ul);\n\n s = fltsValues[i].split(' '+this.orOperator+' ');\n for(let j=0, len=s.length; j<len; j++){\n if(s[j]===''){\n continue;\n }\n let li = Dom.createCheckItem(\n this.fltIds[i]+'_'+(j+1), s[j], s[j]);\n li.className = checkList.checkListItemCssClass;\n ul.appendChild(li);\n li.check.checked = true;\n checkList.setCheckListValues(li.check);\n this.hasStoredValues = true;\n }\n }\n }//end for\n\n if(!this.hasStoredValues && this.paging){\n this.Mod.paging.setPagingInfo();\n }\n }//end if\n }\n\n filter(){\n this.EvtManager(this.Evt.name.filter);\n }\n\n /**\n * Filter the table by retrieving the data from each cell in every single\n * row and comparing it to the search term for current column. A row is\n * hidden when all the search terms are not found in inspected row.\n *\n * TODO: Reduce complexity of this massive method\n */\n _filter(){\n if(!this.fltGrid || (!this._hasGrid && !this.isFirstLoad)){\n return;\n }\n //invoke onbefore callback\n if(this.onBeforeFilter){\n this.onBeforeFilter.call(null, this);\n }\n\n let row = this.tbl.rows,\n Mod = this.Mod,\n hiddenrows = 0;\n\n this.validRowsIndex = [];\n\n // removes keyword highlighting\n if(this.highlightKeywords){\n Mod.highlightKeyword.unhighlightAll();\n }\n //removes popup filters active icons\n if(this.popupFilters){\n Mod.popupFilter.buildIcons();\n }\n //removes active column header class\n if(this.markActiveColumns){\n this.clearActiveColumns();\n }\n // search args re-init\n this.searchArgs = this.getFiltersValue();\n\n var num_cell_data, nbFormat;\n var re_le = new RegExp(this.leOperator),\n re_ge = new RegExp(this.geOperator),\n re_l = new RegExp(this.lwOperator),\n re_g = new RegExp(this.grOperator),\n re_d = new RegExp(this.dfOperator),\n re_lk = new RegExp(Str.rgxEsc(this.lkOperator)),\n re_eq = new RegExp(this.eqOperator),\n re_st = new RegExp(this.stOperator),\n re_en = new RegExp(this.enOperator),\n // re_an = new RegExp(this.anOperator),\n // re_cr = new RegExp(this.curExp),\n re_em = this.emOperator,\n re_nm = this.nmOperator,\n re_re = new RegExp(Str.rgxEsc(this.rgxOperator));\n\n //keyword highlighting\n function highlight(str, ok, cell){\n /*jshint validthis:true */\n if(this.highlightKeywords && ok){\n str = str.replace(re_lk, '');\n str = str.replace(re_eq, '');\n str = str.replace(re_st, '');\n str = str.replace(re_en, '');\n let w = str;\n if(re_le.test(str) || re_ge.test(str) || re_l.test(str) ||\n re_g.test(str) || re_d.test(str)){\n w = Dom.getText(cell);\n }\n if(w !== ''){\n Mod.highlightKeyword.highlight(\n cell, w, Mod.highlightKeyword.highlightCssClass);\n }\n }\n }\n\n //looks for search argument in current row\n function hasArg(sA, cell_data, j){\n /*jshint validthis:true */\n let occurence,\n removeNbFormat = Helpers.removeNbFormat;\n //Search arg operator tests\n let hasLO = re_l.test(sA),\n hasLE = re_le.test(sA),\n hasGR = re_g.test(sA),\n hasGE = re_ge.test(sA),\n hasDF = re_d.test(sA),\n hasEQ = re_eq.test(sA),\n hasLK = re_lk.test(sA),\n // hasAN = re_an.test(sA),\n hasST = re_st.test(sA),\n hasEN = re_en.test(sA),\n hasEM = (re_em === sA),\n hasNM = (re_nm === sA),\n hasRE = re_re.test(sA);\n\n //Search arg dates tests\n let isLDate = hasLO && isValidDate(sA.replace(re_l,''), dtType);\n let isLEDate = hasLE && isValidDate(sA.replace(re_le,''), dtType);\n let isGDate = hasGR && isValidDate(sA.replace(re_g,''), dtType);\n let isGEDate = hasGE && isValidDate(sA.replace(re_ge,''), dtType);\n let isDFDate = hasDF && isValidDate(sA.replace(re_d,''), dtType);\n let isEQDate = hasEQ && isValidDate(sA.replace(re_eq,''), dtType);\n\n let dte1, dte2;\n //dates\n if(isValidDate(cell_data,dtType)){\n dte1 = formatDate(cell_data,dtType);\n // lower date\n if(isLDate){\n dte2 = formatDate(sA.replace(re_l,''), dtType);\n occurence = dte1 < dte2;\n }\n // lower equal date\n else if(isLEDate){\n dte2 = formatDate(sA.replace(re_le,''), dtType);\n occurence = dte1 <= dte2;\n }\n // greater equal date\n else if(isGEDate){\n dte2 = formatDate(sA.replace(re_ge,''), dtType);\n occurence = dte1 >= dte2;\n }\n // greater date\n else if(isGDate){\n dte2 = formatDate(sA.replace(re_g,''), dtType);\n occurence = dte1 > dte2;\n }\n // different date\n else if(isDFDate){\n dte2 = formatDate(sA.replace(re_d,''), dtType);\n occurence = dte1.toString() != dte2.toString();\n }\n // equal date\n else if(isEQDate){\n dte2 = formatDate(sA.replace(re_eq,''), dtType);\n occurence = dte1.toString() == dte2.toString();\n }\n // searched keyword with * operator doesn't have to be a date\n else if(re_lk.test(sA)){// like date\n occurence = this._containsStr(\n sA.replace(re_lk,''), cell_data, false);\n }\n else if(isValidDate(sA,dtType)){\n dte2 = formatDate(sA,dtType);\n occurence = dte1.toString() == dte2.toString();\n }\n //empty\n else if(hasEM){\n occurence = Str.isEmpty(cell_data);\n }\n //non-empty\n else if(hasNM){\n occurence = !Str.isEmpty(cell_data);\n }\n }\n\n else{\n //first numbers need to be formated\n if(this.hasColNbFormat && this.colNbFormat[j]){\n num_cell_data = removeNbFormat(\n cell_data, this.colNbFormat[j]);\n nbFormat = this.colNbFormat[j];\n } else {\n if(this.thousandsSeparator === ',' &&\n this.decimalSeparator === '.'){\n num_cell_data = removeNbFormat(cell_data, 'us');\n nbFormat = 'us';\n } else {\n num_cell_data = removeNbFormat(cell_data, 'eu');\n nbFormat = 'eu';\n }\n }\n\n // first checks if there is any operator (<,>,<=,>=,!,*,=,{,},\n // rgx:)\n // lower equal\n if(hasLE){\n occurence = num_cell_data <= removeNbFormat(\n sA.replace(re_le, ''), nbFormat);\n }\n //greater equal\n else if(hasGE){\n occurence = num_cell_data >= removeNbFormat(\n sA.replace(re_ge, ''), nbFormat);\n }\n //lower\n else if(hasLO){\n occurence = num_cell_data < removeNbFormat(\n sA.replace(re_l, ''), nbFormat);\n }\n //greater\n else if(hasGR){\n occurence = num_cell_data > removeNbFormat(\n sA.replace(re_g, ''), nbFormat);\n }\n //different\n else if(hasDF){\n occurence = this._containsStr(\n sA.replace(re_d, ''), cell_data) ? false : true;\n }\n //like\n else if(hasLK){\n occurence = this._containsStr(\n sA.replace(re_lk, ''), cell_data, false);\n }\n //equal\n else if(hasEQ){\n occurence = this._containsStr(\n sA.replace(re_eq, ''), cell_data, true);\n }\n //starts with\n else if(hasST){\n occurence = cell_data.indexOf(sA.replace(re_st, ''))===0 ?\n true : false;\n }\n //ends with\n else if(hasEN){\n let searchArg = sA.replace(re_en, '');\n occurence =\n cell_data.lastIndexOf(searchArg,cell_data.length-1) ===\n (cell_data.length-1)-(searchArg.length-1) &&\n cell_data.lastIndexOf(\n searchArg, cell_data.length-1) > -1 ? true : false;\n }\n //empty\n else if(hasEM){\n occurence = Str.isEmpty(cell_data);\n }\n //non-empty\n else if(hasNM){\n occurence = !Str.isEmpty(cell_data);\n }\n //regexp\n else if(hasRE){\n //in case regexp fires an exception\n try{\n //operator is removed\n let srchArg = sA.replace(re_re,'');\n let rgx = new RegExp(srchArg);\n occurence = rgx.test(cell_data);\n } catch(e) { occurence = false; }\n } else {\n occurence = this._containsStr(sA, cell_data,\n this.isExactMatch(j));\n }\n\n }//else\n return occurence;\n }//fn\n\n for(let k=this.refRow; k<this.nbRows; k++){\n /*** if table already filtered some rows are not visible ***/\n if(row[k].style.display === 'none'){\n row[k].style.display = '';\n }\n\n let cell = row[k].cells,\n nchilds = cell.length;\n\n // checks if row has exact cell #\n if(nchilds !== this.nbCells){\n continue;\n }\n\n let occurence = [],\n isRowValid = true,\n //only for single filter search\n singleFltRowValid = false;\n\n // this loop retrieves cell data\n for(let j=0; j<nchilds; j++){\n //searched keyword\n let sA = this.searchArgs[this.singleSearchFlt ? 0 : j];\n var dtType = this.hasColDateType ?\n this.colDateType[j] : this.defaultDateType;\n if(sA === ''){\n continue;\n }\n\n let cell_data = Str.matchCase(this.getCellData(cell[j]),\n this.caseSensitive);\n\n //multiple search parameter operator ||\n let sAOrSplit = sA.split(this.orOperator),\n //multiple search || parameter boolean\n hasMultiOrSA = (sAOrSplit.length>1) ? true : false,\n //multiple search parameter operator &&\n sAAndSplit = sA.split(this.anOperator),\n //multiple search && parameter boolean\n hasMultiAndSA = sAAndSplit.length>1 ? true : false;\n\n //multiple sarch parameters\n if(hasMultiOrSA || hasMultiAndSA){\n let cS,\n occur = false,\n s = hasMultiOrSA ? sAOrSplit : sAAndSplit;\n for(let w=0, len=s.length; w<len; w++){\n cS = Str.trim(s[w]);\n occur = hasArg.call(this, cS, cell_data, j);\n highlight.call(this, cS, occur, cell[j]);\n if(hasMultiOrSA && occur){\n break;\n }\n if(hasMultiAndSA && !occur){\n break;\n }\n }\n occurence[j] = occur;\n }\n //single search parameter\n else {\n occurence[j] =\n hasArg.call(this, Str.trim(sA), cell_data, j);\n highlight.call(this, sA, occurence[j], cell[j]);\n }//else single param\n\n if(!occurence[j]){\n isRowValid = false;\n }\n if(this.singleSearchFlt && occurence[j]){\n singleFltRowValid = true;\n }\n if(this.popupFilters){\n Mod.popupFilter.buildIcon(j, true);\n }\n if(this.markActiveColumns){\n if(k === this.refRow){\n if(this.onBeforeActiveColumn){\n this.onBeforeActiveColumn.call(null, this, j);\n }\n Dom.addClass(\n this.getHeaderElement(j),\n this.activeColumnsCssClass);\n if(this.onAfterActiveColumn){\n this.onAfterActiveColumn.call(null, this, j);\n }\n }\n }\n }//for j\n\n if(this.singleSearchFlt && singleFltRowValid){\n isRowValid = true;\n }\n\n if(!isRowValid){\n this.validateRow(k, false);\n if(Mod.alternateRows){\n Mod.alternateRows.removeRowBg(k);\n }\n // always visible rows need to be counted as valid\n if(this.hasVisibleRows && this.visibleRows.indexOf(k) !== -1){\n this.validRowsIndex.push(k);\n } else {\n hiddenrows++;\n }\n } else {\n this.validateRow(k, true);\n this.validRowsIndex.push(k);\n if(this.alternateRows){\n Mod.alternateRows.setRowBg(k, this.validRowsIndex.length);\n }\n if(this.onRowValidated){\n this.onRowValidated.call(null, this, k);\n }\n }\n }// for k\n\n this.nbVisibleRows = this.validRowsIndex.length;\n this.nbHiddenRows = hiddenrows;\n\n if(this.rememberGridValues){\n Mod.store.saveFilterValues(this.fltsValuesCookie);\n }\n //applies filter props after filtering process\n if(!this.paging){\n this.applyProps();\n } else {\n // Shouldn't need to care of that here...\n // TODO: provide a method in paging module\n Mod.paging.startPagingRow = 0;\n Mod.paging.currentPageNb = 1;\n //\n Mod.paging.setPagingInfo(this.validRowsIndex);\n }\n //invokes onafter callback\n if(this.onAfterFilter){\n this.onAfterFilter.call(null,this);\n }\n }\n\n /**\n * Re-apply the features/behaviour concerned by filtering/paging operation\n *\n * NOTE: this will disappear whenever custom events in place\n */\n applyProps(){\n let Mod = this.Mod;\n\n //shows rows always visible\n if(this.hasVisibleRows){\n this.enforceVisibility();\n }\n //columns operations\n if(this.hasExtension('colOps')){\n this.extension('colOps').calc();\n }\n\n //re-populates drop-down filters\n if(this.linkedFilters){\n this.linkFilters();\n }\n\n if(this.rowsCounter){\n Mod.rowsCounter.refresh(this.nbVisibleRows);\n }\n\n if(this.popupFilters){\n Mod.popupFilter.closeAll();\n }\n }\n\n /**\n * Return the data of a specified colum\n * @param {Number} colIndex Column index\n * @param {Boolean} includeHeaders Optional: include headers row\n * @param {Boolean} num Optional: return unformatted number\n * @param {Array} exclude Optional: list of row indexes to be excluded\n * @return {Array} Flat list of data for a column\n */\n getColValues(colIndex, includeHeaders=false, num=false, exclude=[]){\n if(!this.fltGrid){\n return;\n }\n let row = this.tbl.rows,\n colValues = [];\n\n if(includeHeaders){\n colValues.push(this.getHeadersText()[colIndex]);\n }\n\n for(let i=this.refRow; i<this.nbRows; i++){\n let isExludedRow = false;\n // checks if current row index appears in exclude array\n if(exclude.length > 0){\n isExludedRow = exclude.indexOf(i) != -1;\n }\n let cell = row[i].cells,\n nchilds = cell.length;\n\n // checks if row has exact cell # and is not excluded\n if(nchilds === this.nbCells && !isExludedRow){\n // this loop retrieves cell data\n for(let j=0; j<nchilds; j++){\n if(j != colIndex || row[i].style.display !== ''){\n continue;\n }\n let cell_data = this.getCellData(cell[j]),\n nbFormat = this.colNbFormat ?\n this.colNbFormat[colIndex] : null,\n data = num ?\n Helpers.removeNbFormat(cell_data, nbFormat) :\n cell_data;\n colValues.push(data);\n }\n }\n }\n return colValues;\n }\n\n /**\n * Return the filter's value of a specified column\n * @param {Number} index Column index\n * @return {String} Filter value\n */\n getFilterValue(index){\n if(!this.fltGrid){\n return;\n }\n let fltValue,\n flt = this.getFilterElement(index);\n if(!flt){\n return '';\n }\n\n let fltColType = this.getFilterType(index);\n if(fltColType !== this.fltTypeMulti &&\n fltColType !== this.fltTypeCheckList){\n fltValue = flt.value;\n }\n //mutiple select\n else if(fltColType === this.fltTypeMulti){\n fltValue = '';\n for(let j=0, len=flt.options.length; j<len; j++){\n if(flt.options[j].selected){\n fltValue = fltValue.concat(\n flt.options[j].value+' ' +\n this.orOperator + ' '\n );\n }\n }\n //removes last operator ||\n fltValue = fltValue.substr(0, fltValue.length-4);\n }\n //checklist\n else if(fltColType === this.fltTypeCheckList){\n if(flt.getAttribute('value') !== null){\n fltValue = flt.getAttribute('value');\n //removes last operator ||\n fltValue = fltValue.substr(0, fltValue.length-3);\n } else{\n fltValue = '';\n }\n }\n return fltValue;\n }\n\n /**\n * Return the filters' values\n * @return {Array} List of filters' values\n */\n getFiltersValue(){\n if(!this.fltGrid){\n return;\n }\n let searchArgs = [];\n for(let i=0, len=this.fltIds.length; i<len; i++){\n searchArgs.push(\n Str.trim(\n Str.matchCase(this.getFilterValue(i), this.caseSensitive))\n );\n }\n return searchArgs;\n }\n\n /**\n * Return the ID of the filter of a specified column\n * @param {Number} index Column's index\n * @return {String} ID of the filter element\n */\n getFilterId(index){\n if(!this.fltGrid){\n return;\n }\n return this.fltIds[index];\n }\n\n /**\n * Return the list of ids of filters matching a specified type.\n * Note: hidden filters are also returned\n *\n * @param {String} type Filter type string ('input', 'select', 'multiple',\n * 'checklist')\n * @param {Boolean} bool If true returns columns indexes instead of IDs\n * @return {[type]} List of element IDs or column indexes\n */\n getFiltersByType(type, bool){\n if(!this.fltGrid){\n return;\n }\n let arr = [];\n for(let i=0, len=this.fltIds.length; i<len; i++){\n let fltType = this.getFilterType(i);\n if(fltType === Str.lower(type)){\n let a = bool ? i : this.fltIds[i];\n arr.push(a);\n }\n }\n return arr;\n }\n\n /**\n * Return the filter's DOM element for a given column\n * @param {Number} index Column's index\n * @return {DOMElement}\n */\n getFilterElement(index){\n let fltId = this.fltIds[index];\n return Dom.id(fltId);\n }\n\n /**\n * Return the number of cells for a given row index\n * @param {Number} rowIndex Index of the row\n * @return {Number} Number of cells\n */\n getCellsNb(rowIndex=0){\n let tr = this.tbl.rows[rowIndex];\n return tr.cells.length;\n }\n\n /**\n * Return the number of filterable rows starting from reference row if\n * defined\n * @param {Boolean} includeHeaders Include the headers row\n * @return {Number} Number of filterable rows\n */\n getRowsNb(includeHeaders){\n let s = Types.isUndef(this.refRow) ? 0 : this.refRow,\n ntrs = this.tbl.rows.length;\n if(includeHeaders){ s = 0; }\n return parseInt(ntrs-s, 10);\n }\n\n /**\n * Return the data of a given cell\n * @param {DOMElement} cell Cell's DOM object\n * @return {String}\n */\n getCellData(cell){\n var idx = cell.cellIndex;\n //Check for customCellData callback\n if(this.customCellData && this.customCellDataCols.indexOf(idx) != -1){\n return this.customCellData.call(null, this, cell, idx);\n } else {\n return Dom.getText(cell);\n }\n }\n\n /**\n * Return the table data with following format:\n * [\n * [rowIndex, [value0, value1...]],\n * [rowIndex, [value0, value1...]]\n * ]\n * @param {Boolean} includeHeaders Optional: include headers row\n * @return {Array}\n *\n * TODO: provide an API returning data in JSON format\n */\n getTableData(includeHeaders=false){\n let rows = this.tbl.rows;\n let tblData = [];\n if(includeHeaders){\n tblData.push([this.getHeadersRowIndex(), this.getHeadersText()]);\n }\n for(let k=this.refRow; k<this.nbRows; k++){\n let rowData = [k, []];\n let cells = rows[k].cells;\n for(let j=0, len=cells.length; j<len; j++){\n let cellData = this.getCellData(cells[j]);\n rowData[1].push(cellData);\n }\n tblData.push(rowData);\n }\n return tblData;\n }\n\n /**\n * Return the filtered data with following format:\n * [\n * [rowIndex, [value0, value1...]],\n * [rowIndex, [value0, value1...]]\n * ]\n * @param {Boolean} includeHeaders Optional: include headers row\n * @return {Array}\n *\n * TODO: provide an API returning data in JSON format\n */\n getFilteredData(includeHeaders=false){\n if(!this.validRowsIndex){\n return [];\n }\n let rows = this.tbl.rows,\n filteredData = [];\n if(includeHeaders){\n filteredData.push([this.getHeadersRowIndex(),\n this.getHeadersText()]);\n }\n\n let validRows = this.getValidRows(true);\n for(let i=0; i<validRows.length; i++){\n let rData = [this.validRowsIndex[i], []],\n cells = rows[this.validRowsIndex[i]].cells;\n for(let k=0; k<cells.length; k++){\n let cellData = this.getCellData(cells[k]);\n rData[1].push(cellData);\n }\n filteredData.push(rData);\n }\n return filteredData;\n }\n\n /**\n * Return the filtered data for a given column index\n * @param {Number} colIndex Colmun's index\n * @param {Boolean} includeHeaders Optional: include headers row\n * @return {Array} Flat list of values ['val0','val1','val2'...]\n *\n * TODO: provide an API returning data in JSON format\n */\n getFilteredDataCol(colIndex, includeHeaders=false){\n if(Types.isUndef(colIndex)){\n return [];\n }\n let data = this.getFilteredData(),\n colData = [];\n if(includeHeaders){\n colData.push(this.getHeadersText()[colIndex]);\n }\n for(let i=0, len=data.length; i<len; i++){\n let r = data[i],\n //cols values of current row\n d = r[1],\n //data of searched column\n c = d[colIndex];\n colData.push(c);\n }\n return colData;\n }\n\n /**\n * Get the display value of a row\n * @param {RowElement} DOM element of the row\n * @return {String} Usually 'none' or ''\n */\n getRowDisplay(row){\n if(!Types.isObj(row)){\n return null;\n }\n return row.style.display;\n }\n\n /**\n * Validate/invalidate row by setting the 'validRow' attribute on the row\n * @param {Number} rowIndex Index of the row\n * @param {Boolean} isValid\n */\n validateRow(rowIndex, isValid){\n let row = this.tbl.rows[rowIndex];\n if(!row || typeof isValid !== 'boolean'){\n return;\n }\n\n // always visible rows are valid\n if(this.hasVisibleRows && this.visibleRows.indexOf(rowIndex) !== -1){\n isValid = true;\n }\n\n let displayFlag = isValid ? '' : 'none',\n validFlag = isValid ? 'true' : 'false';\n row.style.display = displayFlag;\n\n if(this.paging){\n row.setAttribute('validRow', validFlag);\n }\n }\n\n /**\n * Validate all filterable rows\n */\n validateAllRows(){\n if(!this._hasGrid){\n return;\n }\n this.validRowsIndex = [];\n for(let k=this.refRow; k<this.nbFilterableRows; k++){\n this.validateRow(k, true);\n this.validRowsIndex.push(k);\n }\n }\n\n /**\n * Set search value to a given filter\n * @param {Number} index Column's index\n * @param {String} searcharg Search term\n */\n setFilterValue(index, searcharg=''){\n if((!this.fltGrid && !this.isFirstLoad) ||\n !this.getFilterElement(index)){\n return;\n }\n let slc = this.getFilterElement(index),\n fltColType = this.getFilterType(index);\n\n if(fltColType !== this.fltTypeMulti &&\n fltColType != this.fltTypeCheckList){\n slc.value = searcharg;\n }\n //multiple selects\n else if(fltColType === this.fltTypeMulti){\n let s = searcharg.split(' '+this.orOperator+' ');\n // let ct = 0; //keywords counter\n for(let j=0, len=slc.options.length; j<len; j++){\n let option = slc.options[j];\n if(s==='' || s[0]===''){\n option.selected = false;\n }\n if(option.value===''){\n option.selected = false;\n }\n if(option.value!=='' &&\n Arr.has(s, option.value, true)){\n option.selected = true;\n }//if\n }//for j\n }\n //checklist\n else if(fltColType === this.fltTypeCheckList){\n searcharg = Str.matchCase(searcharg, this.caseSensitive);\n let sarg = searcharg.split(' '+this.orOperator+' ');\n let lisNb = Dom.tag(slc,'li').length;\n\n slc.setAttribute('value', '');\n slc.setAttribute('indexes', '');\n\n for(let k=0; k<lisNb; k++){\n let li = Dom.tag(slc,'li')[k],\n lbl = Dom.tag(li,'label')[0],\n chk = Dom.tag(li,'input')[0],\n lblTxt = Str.matchCase(\n Dom.getText(lbl), this.caseSensitive);\n if(lblTxt !== '' && Arr.has(sarg, lblTxt, true)){\n chk.checked = true;\n this.Mod.checkList.setCheckListValues(chk);\n }\n else{\n chk.checked = false;\n this.Mod.checkList.setCheckListValues(chk);\n }\n }\n }\n }\n\n /**\n * Set them columns' widths as per configuration\n * @param {Number} rowIndex Optional row index to apply the widths to\n * @param {Element} tbl DOM element\n */\n setColWidths(rowIndex, tbl){\n if(!this.fltGrid || !this.hasColWidths){\n return;\n }\n tbl = tbl || this.tbl;\n let rIndex;\n if(rowIndex===undefined){\n rIndex = tbl.rows[0].style.display!='none' ? 0 : 1;\n } else{\n rIndex = rowIndex;\n }\n\n setWidths.call(this);\n\n function setWidths(){\n /*jshint validthis:true */\n let nbCols = this.nbCells;\n let colWidths = this.colWidths;\n let colTags = Dom.tag(tbl, 'col');\n let tblHasColTag = colTags.length > 0;\n let frag = !tblHasColTag ? doc.createDocumentFragment() : null;\n for(let k=0; k<nbCols; k++){\n let col;\n if(tblHasColTag){\n col = colTags[k];\n } else {\n col = Dom.create('col', ['id', this.id+'_col_'+k]);\n frag.appendChild(col);\n }\n col.style.width = colWidths[k];\n }\n if(!tblHasColTag){\n tbl.insertBefore(frag, tbl.firstChild);\n }\n }\n }\n\n /**\n * Makes defined rows always visible\n */\n enforceVisibility(){\n if(!this.hasVisibleRows){\n return;\n }\n for(let i=0, len=this.visibleRows.length; i<len; i++){\n let row = this.visibleRows[i];\n //row index cannot be > nrows\n if(row <= this.nbRows){\n this.validateRow(row, true);\n }\n }\n }\n\n clearFilters(){\n this.EvtManager(this.Evt.name.clear);\n }\n\n /**\n * Clear all the filters' values\n */\n _clearFilters(){\n if(!this.fltGrid){\n return;\n }\n if(this.onBeforeReset){\n this.onBeforeReset.call(null, this, this.getFiltersValue());\n }\n for(let i=0, len=this.fltIds.length; i<len; i++){\n this.setFilterValue(i, '');\n }\n if(this.linkedFilters){\n this.linkFilters();\n }\n if(this.rememberPageLen){ Cookie.remove(this.pgLenCookie); }\n if(this.rememberPageNb){ Cookie.remove(this.pgNbCookie); }\n if(this.onAfterReset){ this.onAfterReset.call(null, this); }\n }\n\n /**\n * Clears filtered columns visual indicator (background color)\n */\n clearActiveColumns(){\n for(let i=0, len=this.getCellsNb(this.headersRow); i<len; i++){\n Dom.removeClass(\n this.getHeaderElement(i), this.activeColumnsCssClass);\n }\n }\n\n /**\n * Refresh the filters subject to linking ('select', 'multiple',\n * 'checklist' type)\n */\n linkFilters(){\n if(!this.activeFilterId){\n return;\n }\n let slcA1 = this.getFiltersByType(this.fltTypeSlc, true),\n slcA2 = this.getFiltersByType(this.fltTypeMulti, true),\n slcA3 = this.getFiltersByType(this.fltTypeCheckList, true),\n slcIndex = slcA1.concat(slcA2);\n slcIndex = slcIndex.concat(slcA3);\n\n let activeFlt = this.activeFilterId.split('_')[0];\n activeFlt = activeFlt.split(this.prfxFlt)[1];\n let slcSelectedValue;\n for(let i=0, len=slcIndex.length; i<len; i++){\n let curSlc = Dom.id(this.fltIds[slcIndex[i]]);\n slcSelectedValue = this.getFilterValue(slcIndex[i]);\n\n // Welcome to cyclomatic complexity hell :)\n // TODO: simplify/refactor if statement\n if(activeFlt!==slcIndex[i] ||\n (this.paging && slcA1.indexOf(slcIndex[i]) != -1 &&\n activeFlt === slcIndex[i] ) ||\n (!this.paging && (slcA3.indexOf(slcIndex[i]) != -1 ||\n slcA2.indexOf(slcIndex[i]) != -1)) ||\n slcSelectedValue === this.displayAllText ){\n\n if(slcA3.indexOf(slcIndex[i]) != -1){\n this.Mod.checkList.checkListDiv[slcIndex[i]].innerHTML = '';\n } else {\n curSlc.innerHTML = '';\n }\n\n //1st option needs to be inserted\n if(this.loadFltOnDemand) {\n let opt0 = Dom.createOpt(this.displayAllText, '');\n if(curSlc){\n curSlc.appendChild(opt0);\n }\n }\n\n if(slcA3.indexOf(slcIndex[i]) != -1){\n this.Mod.checkList._build(slcIndex[i]);\n } else {\n this.Mod.dropdown._build(slcIndex[i], true);\n }\n\n this.setFilterValue(slcIndex[i], slcSelectedValue);\n }\n }// for i\n }\n\n /**\n * Re-generate the filters grid bar when previously removed\n */\n _resetGrid(){\n if(this.isFirstLoad){\n return;\n }\n\n let Mod = this.Mod;\n let tbl = this.tbl;\n let rows = tbl.rows;\n let filtersRowIndex = this.filtersRowIndex;\n let filtersRow = rows[filtersRowIndex];\n\n // grid was removed, grid row element is stored in fltGridEl property\n if(!this.gridLayout){\n // If table has a thead ensure the filters row is appended in the\n // thead element\n if(tbl.tHead){\n var tempRow = tbl.tHead.insertRow(this.filtersRowIndex);\n tbl.tHead.replaceChild(this.fltGridEl, tempRow);\n } else {\n filtersRow.parentNode.insertBefore(this.fltGridEl, filtersRow);\n }\n }\n\n // filters are appended in external placeholders elements\n if(this.isExternalFlt){\n let externalFltTgtIds = this.externalFltTgtIds;\n for(let ct=0, len=externalFltTgtIds.length; ct<len; ct++){\n let extFlt = Dom.id(externalFltTgtIds[ct]);\n\n if(!extFlt){ continue; }\n\n let externalFltEl = this.externalFltEls[ct];\n extFlt.appendChild(externalFltEl);\n let colFltType = this.getFilterType(ct);\n //IE special treatment for gridLayout, appended filters are\n //empty\n if(this.gridLayout &&\n externalFltEl.innerHTML === '' &&\n colFltType !== this.fltTypeInp){\n if(colFltType === this.fltTypeSlc ||\n colFltType === this.fltTypeMulti){\n Mod.dropdown.build(ct);\n }\n if(colFltType === this.fltTypeCheckList){\n Mod.checkList.build(ct);\n }\n }\n }\n }\n\n this.nbFilterableRows = this.getRowsNb();\n this.nbVisibleRows = this.nbFilterableRows;\n this.nbRows = rows.length;\n\n if(this.popupFilters){\n this.headersRow++;\n Mod.popupFilter.reset();\n }\n\n if(!this.gridLayout){\n Dom.addClass(this.tbl, this.prfxTf);\n }\n this._hasGrid = true;\n }\n\n /**\n * Determines if passed filter column implements exact query match\n * @param {Number} colIndex [description]\n * @return {Boolean} [description]\n */\n isExactMatch(colIndex){\n let fltType = this.getFilterType(colIndex);\n return this.exactMatchByCol[colIndex] || this.exactMatch ||\n (fltType!==this.fltTypeInp);\n }\n\n /**\n * Checks if passed data contains the searched arg\n * @param {String} arg Search term\n * @param {String} data Data string\n * @param {Boolean} exactMatch Exact match\n * @return {Boolean]}\n *\n * TODO: move into string module, remove fltType in order to decouple it\n * from TableFilter module\n */\n _containsStr(arg, data, exactMatch){\n // Improved by Cedric Wartel (cwl)\n // automatic exact match for selects and special characters are now\n // filtered\n let regexp,\n modifier = this.caseSensitive ? 'g' : 'gi';\n if(exactMatch){\n regexp = new RegExp(\n '(^\\\\s*)'+ Str.rgxEsc(arg) +'(\\\\s*$)', modifier);\n } else {\n regexp = new RegExp(Str.rgxEsc(arg), modifier);\n }\n return regexp.test(data);\n }\n\n /**\n * Check if passed script or stylesheet is already imported\n * @param {String} filePath Ressource path\n * @param {String} type Possible values: 'script' or 'link'\n * @return {Boolean}\n */\n isImported(filePath, type){\n let imported = false,\n importType = !type ? 'script' : type,\n attr = importType == 'script' ? 'src' : 'href',\n files = Dom.tag(doc, importType);\n for (let i=0, len=files.length; i<len; i++){\n if(files[i][attr] === undefined){\n continue;\n }\n if(files[i][attr].match(filePath)){\n imported = true;\n break;\n }\n }\n return imported;\n }\n\n /**\n * Import script or stylesheet\n * @param {String} fileId Ressource ID\n * @param {String} filePath Ressource path\n * @param {Function} callback Callback\n * @param {String} type Possible values: 'script' or 'link'\n */\n import(fileId, filePath, callback, type){\n let ftype = !type ? 'script' : type,\n imported = this.isImported(filePath, ftype);\n if(imported){\n return;\n }\n let o = this,\n isLoaded = false,\n file,\n head = Dom.tag(doc, 'head')[0];\n\n if(Str.lower(ftype) === 'link'){\n file = Dom.create(\n 'link',\n ['id', fileId], ['type', 'text/css'],\n ['rel', 'stylesheet'], ['href', filePath]\n );\n } else {\n file = Dom.create(\n 'script', ['id', fileId],\n ['type', 'text/javascript'], ['src', filePath]\n );\n }\n\n //Browser <> IE onload event works only for scripts, not for stylesheets\n file.onload = file.onreadystatechange = function(){\n if(!isLoaded &&\n (!this.readyState || this.readyState === 'loaded' ||\n this.readyState === 'complete')){\n isLoaded = true;\n if(typeof callback === 'function'){\n callback.call(null, o);\n }\n }\n };\n file.onerror = function(){\n throw new Error('TF script could not load: ' + filePath);\n };\n head.appendChild(file);\n }\n\n /**\n * Check if table has filters grid\n * @return {Boolean}\n */\n hasGrid(){\n return this._hasGrid;\n }\n\n /**\n * Get list of filter IDs\n * @return {[type]} [description]\n */\n getFiltersId(){\n return this.fltIds || [];\n }\n\n /**\n * Get filtered (valid) rows indexes\n * @param {Boolean} reCalc Force calculation of filtered rows list\n * @return {Array} List of row indexes\n */\n getValidRows(reCalc){\n if(!reCalc){\n return this.validRowsIndex;\n }\n\n this.validRowsIndex = [];\n for(let k=this.refRow; k<this.getRowsNb(true); k++){\n let r = this.tbl.rows[k];\n if(!this.paging){\n if(this.getRowDisplay(r) !== 'none'){\n this.validRowsIndex.push(r.rowIndex);\n }\n } else {\n if(r.getAttribute('validRow') === 'true' ||\n r.getAttribute('validRow') === null){\n this.validRowsIndex.push(r.rowIndex);\n }\n }\n }\n return this.validRowsIndex;\n }\n\n /**\n * Get the index of the row containing the filters\n * @return {Number}\n */\n getFiltersRowIndex(){\n return this.filtersRowIndex;\n }\n\n /**\n * Get the index of the headers row\n * @return {Number}\n */\n getHeadersRowIndex(){\n return this.headersRow;\n }\n\n /**\n * Get the row index from where the filtering process start (1st filterable\n * row)\n * @return {Number}\n */\n getStartRowIndex(){\n return this.refRow;\n }\n\n /**\n * Get the index of the last row\n * @return {Number}\n */\n getLastRowIndex(){\n if(!this._hasGrid){\n return;\n }\n return (this.nbRows-1);\n }\n\n /**\n * Get the header DOM element for a given column index\n * @param {Number} colIndex Column index\n * @return {Object}\n */\n getHeaderElement(colIndex){\n let table = this.gridLayout ? this.Mod.gridLayout.headTbl : this.tbl;\n let tHead = Dom.tag(table, 'thead');\n let headersRow = this.headersRow;\n let header;\n for(let i=0; i<this.nbCells; i++){\n if(i !== colIndex){\n continue;\n }\n if(tHead.length === 0){\n header = table.rows[headersRow].cells[i];\n }\n if(tHead.length === 1){\n header = tHead[0].rows[headersRow].cells[i];\n }\n break;\n }\n return header;\n }\n\n /**\n * Return the list of headers' text\n * @return {Array} list of headers' text\n */\n getHeadersText(){\n let headers = [];\n for(let j=0; j<this.nbCells; j++){\n let header = this.getHeaderElement(j);\n let headerText = Dom.getText(header);\n headers.push(headerText);\n }\n return headers;\n }\n\n /**\n * Return the filter type for a specified column\n * @param {Number} colIndex Column's index\n * @return {String}\n */\n getFilterType(colIndex){\n let colType = this.cfg['col_'+colIndex];\n return !colType ? this.fltTypeInp : Str.lower(colType);\n }\n\n /**\n * Get the total number of filterable rows\n * @return {Number}\n */\n getFilterableRowsNb(){\n return this.getRowsNb(false);\n }\n\n /**\n * Get the configuration object (literal object)\n * @return {Object}\n */\n config(){\n return this.cfg;\n }\n}\n"
|
|
},
|
|
{
|
|
"kind": "variable",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "global",
|
|
"memberof": "src/tablefilter.js",
|
|
"longname": "src/tablefilter.js~global",
|
|
"access": null,
|
|
"export": false,
|
|
"importPath": "tablefilter/src/tablefilter.js",
|
|
"importStyle": null,
|
|
"description": null,
|
|
"lineNumber": 25,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "class",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "TableFilter",
|
|
"memberof": "src/tablefilter.js",
|
|
"longname": "src/tablefilter.js~TableFilter",
|
|
"access": null,
|
|
"export": true,
|
|
"importPath": "tablefilter/src/tablefilter.js",
|
|
"importStyle": "{TableFilter}",
|
|
"description": null,
|
|
"lineNumber": 30,
|
|
"undocument": true,
|
|
"interface": false
|
|
},
|
|
{
|
|
"kind": "constructor",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "constructor",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#constructor",
|
|
"access": null,
|
|
"description": "TableFilter object constructor\nrequires `table` or `id` arguments, `row` and `configuration` optional",
|
|
"lineNumber": 40,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"DOMElement"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "table",
|
|
"description": "Table DOM element"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "id",
|
|
"description": "Table id"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "row",
|
|
"description": "index indicating the 1st row"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "configuration",
|
|
"description": "object"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "id",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#id",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 43,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "version",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#version",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 44,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "year",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#year",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 45,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tbl",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#tbl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 46,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "startRow",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#startRow",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 47,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "refRow",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#refRow",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 48,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "headersRow",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#headersRow",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 49,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "cfg",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#cfg",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 50,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbFilterableRows",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#nbFilterableRows",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 51,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbRows",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#nbRows",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 52,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbCells",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#nbCells",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 53,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "_hasGrid",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#_hasGrid",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 54,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tbl",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#tbl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 60,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "id",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#id",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 61,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "id",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#id",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 63,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tbl",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#tbl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 64,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "startRow",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#startRow",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 66,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "cfg",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#cfg",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 68,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "refRow",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#refRow",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 81,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbCells",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#nbCells",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 82,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbCells",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#nbCells",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 83,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "basePath",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#basePath",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 86,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "fltTypeInp",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#fltTypeInp",
|
|
"access": null,
|
|
"description": "filter types **",
|
|
"lineNumber": 89,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "fltTypeSlc",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#fltTypeSlc",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 90,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "fltTypeMulti",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#fltTypeMulti",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 91,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "fltTypeCheckList",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#fltTypeCheckList",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 92,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "fltTypeNone",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#fltTypeNone",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 93,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "fltGrid",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#fltGrid",
|
|
"access": null,
|
|
"description": "filters' grid properties **",
|
|
"lineNumber": 98,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "gridLayout",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#gridLayout",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 101,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "filtersRowIndex",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#filtersRowIndex",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 103,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "headersRow",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#headersRow",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 105,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "filtersRowIndex",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#filtersRowIndex",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 110,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "filtersRowIndex",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#filtersRowIndex",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 112,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"number"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "headersRow",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#headersRow",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 113,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"number"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "fltCellTag",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#fltCellTag",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 118,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "fltIds",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#fltIds",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 122,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "fltElms",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#fltElms",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 124,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "searchArgs",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#searchArgs",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 126,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "validRowsIndex",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#validRowsIndex",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 128,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "fltGridEl",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#fltGridEl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 130,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "isFirstLoad",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#isFirstLoad",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 132,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "infDiv",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#infDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 134,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "lDiv",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#lDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 136,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "rDiv",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#rDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 138,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "mDiv",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#mDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 140,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "infDivCssClass",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#infDivCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 143,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "lDivCssClass",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#lDivCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 145,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "rDivCssClass",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#rDivCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 147,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "mDivCssClass",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#mDivCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 149,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "contDivCssClass",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#contDivCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 151,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "stylePath",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#stylePath",
|
|
"access": null,
|
|
"description": "filters' grid appearance **",
|
|
"lineNumber": 155,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "stylesheet",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#stylesheet",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 156,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "stylesheetId",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#stylesheetId",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 157,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "fltsRowCssClass",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#fltsRowCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 159,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "enableIcons",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#enableIcons",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 161,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "alternateRows",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#alternateRows",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 163,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "hasColWidths",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#hasColWidths",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 165,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "colWidths",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#colWidths",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 166,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "fltCssClass",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#fltCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 168,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "fltMultiCssClass",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#fltMultiCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 170,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "fltSmallCssClass",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#fltSmallCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 172,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "singleFltCssClass",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#singleFltCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 174,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "enterKey",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#enterKey",
|
|
"access": null,
|
|
"description": "filters' grid behaviours **",
|
|
"lineNumber": 178,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onBeforeFilter",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#onBeforeFilter",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 180,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onAfterFilter",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#onAfterFilter",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 183,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "caseSensitive",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#caseSensitive",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 186,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "hasExactMatchByCol",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#hasExactMatchByCol",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 188,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "exactMatchByCol",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#exactMatchByCol",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 189,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "exactMatch",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#exactMatch",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 192,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "linkedFilters",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#linkedFilters",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 194,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "disableExcludedOptions",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#disableExcludedOptions",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 196,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "activeFlt",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#activeFlt",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 198,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "activeFilterId",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#activeFilterId",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 200,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "hasVisibleRows",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#hasVisibleRows",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 202,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "visibleRows",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#visibleRows",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 204,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "isExternalFlt",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#isExternalFlt",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 206,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "externalFltTgtIds",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#externalFltTgtIds",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 208,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "externalFltEls",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#externalFltEls",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 210,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "execDelay",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#execDelay",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 212,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onFiltersLoaded",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#onFiltersLoaded",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 214,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "singleSearchFlt",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#singleSearchFlt",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 217,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onRowValidated",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#onRowValidated",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 219,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "customCellDataCols",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#customCellDataCols",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 222,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "customCellData",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#customCellData",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 225,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "watermark",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#watermark",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 228,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "isWatermarkArray",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#isWatermarkArray",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 229,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "toolBarTgtId",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#toolBarTgtId",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 231,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "help",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#help",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 233,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "popupFilters",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#popupFilters",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 236,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "markActiveColumns",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#markActiveColumns",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 238,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "activeColumnsCssClass",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#activeColumnsCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 240,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onBeforeActiveColumn",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#onBeforeActiveColumn",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 243,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onAfterActiveColumn",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#onAfterActiveColumn",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 246,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "displayAllText",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#displayAllText",
|
|
"access": null,
|
|
"description": "select filter's customisation and behaviours **",
|
|
"lineNumber": 251,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "enableEmptyOption",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#enableEmptyOption",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 253,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "emptyText",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#emptyText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 255,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "enableNonEmptyOption",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#enableNonEmptyOption",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 257,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nonEmptyText",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#nonEmptyText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 259,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onSlcChange",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#onSlcChange",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 261,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "sortSlc",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#sortSlc",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 263,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "isSortNumAsc",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#isSortNumAsc",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 265,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "sortNumAsc",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#sortNumAsc",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 266,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "isSortNumDesc",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#isSortNumDesc",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 268,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "sortNumDesc",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#sortNumDesc",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 269,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "loadFltOnDemand",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#loadFltOnDemand",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 271,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "hasCustomOptions",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#hasCustomOptions",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 272,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "customOptions",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#customOptions",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 273,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "rgxOperator",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#rgxOperator",
|
|
"access": null,
|
|
"description": "Filter operators **",
|
|
"lineNumber": 276,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "emOperator",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#emOperator",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 277,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nmOperator",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#nmOperator",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 278,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "orOperator",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#orOperator",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 279,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "anOperator",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#anOperator",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 280,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "grOperator",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#grOperator",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 281,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "lwOperator",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#lwOperator",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 282,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "leOperator",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#leOperator",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 283,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "geOperator",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#geOperator",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 284,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "dfOperator",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#dfOperator",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 285,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "lkOperator",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#lkOperator",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 286,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "eqOperator",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#eqOperator",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 287,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "stOperator",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#stOperator",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 288,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "enOperator",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#enOperator",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 289,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "curExp",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#curExp",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 290,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "separator",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#separator",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 291,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "rowsCounter",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#rowsCounter",
|
|
"access": null,
|
|
"description": "rows counter **",
|
|
"lineNumber": 295,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "statusBar",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#statusBar",
|
|
"access": null,
|
|
"description": "status bar **",
|
|
"lineNumber": 299,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "loader",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#loader",
|
|
"access": null,
|
|
"description": "loader **",
|
|
"lineNumber": 303,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "displayBtn",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#displayBtn",
|
|
"access": null,
|
|
"description": "validation - reset buttons/links **",
|
|
"lineNumber": 307,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnText",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#btnText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 309,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnCssClass",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#btnCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 311,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnReset",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#btnReset",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 314,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnResetCssClass",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#btnResetCssClass",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 316,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onBeforeReset",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#onBeforeReset",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 318,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "onAfterReset",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#onAfterReset",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 321,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "paging",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#paging",
|
|
"access": null,
|
|
"description": "paging **",
|
|
"lineNumber": 326,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbVisibleRows",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#nbVisibleRows",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 327,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"number"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbHiddenRows",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#nbHiddenRows",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 328,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"number"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "autoFilter",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#autoFilter",
|
|
"access": null,
|
|
"description": "autofilter on typing **",
|
|
"lineNumber": 333,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "autoFilterDelay",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#autoFilterDelay",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 335,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "isUserTyping",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#isUserTyping",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 338,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "autoFilterTimer",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#autoFilterTimer",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 339,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "highlightKeywords",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#highlightKeywords",
|
|
"access": null,
|
|
"description": "keyword highlighting **",
|
|
"lineNumber": 343,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "defaultDateType",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#defaultDateType",
|
|
"access": null,
|
|
"description": "data types **",
|
|
"lineNumber": 347,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "thousandsSeparator",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#thousandsSeparator",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 350,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "decimalSeparator",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#decimalSeparator",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 353,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "hasColNbFormat",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#hasColNbFormat",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 355,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "colNbFormat",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#colNbFormat",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 357,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "hasColDateType",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#hasColDateType",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 359,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "colDateType",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#colDateType",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 361,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "msgFilter",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#msgFilter",
|
|
"access": null,
|
|
"description": "status messages **",
|
|
"lineNumber": 365,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "msgPopulate",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#msgPopulate",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 367,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "msgPopulateCheckList",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#msgPopulateCheckList",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 369,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "msgChangePage",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#msgChangePage",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 372,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "msgClear",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#msgClear",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 374,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "msgChangeResults",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#msgChangeResults",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 376,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "msgResetValues",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#msgResetValues",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 379,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "msgResetPage",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#msgResetPage",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 382,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "msgResetPageLength",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#msgResetPageLength",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 384,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "msgSort",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#msgSort",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 387,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "msgLoadExtensions",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#msgLoadExtensions",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 389,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "msgLoadThemes",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#msgLoadThemes",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 392,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxTf",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#prfxTf",
|
|
"access": null,
|
|
"description": "ids prefixes **",
|
|
"lineNumber": 396,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxFlt",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#prfxFlt",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 398,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxValButton",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#prfxValButton",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 400,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxInfDiv",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#prfxInfDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 402,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxLDiv",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#prfxLDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 404,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxRDiv",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#prfxRDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 406,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxMDiv",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#prfxMDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 408,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxCookieFltsValues",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#prfxCookieFltsValues",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 410,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxCookiePageNb",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#prfxCookiePageNb",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 412,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "prfxCookiePageLen",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#prfxCookiePageLen",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 414,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "hasStoredValues",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#hasStoredValues",
|
|
"access": null,
|
|
"description": "cookies **",
|
|
"lineNumber": 417,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "rememberGridValues",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#rememberGridValues",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 419,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "fltsValuesCookie",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#fltsValuesCookie",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 421,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "rememberPageNb",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#rememberPageNb",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 423,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "pgNbCookie",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#pgNbCookie",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 425,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "rememberPageLen",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#rememberPageLen",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 427,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "pgLenCookie",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#pgLenCookie",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 429,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "extensions",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#extensions",
|
|
"access": null,
|
|
"description": "extensions **",
|
|
"lineNumber": 433,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "hasExtensions",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#hasExtensions",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 434,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "enableDefaultTheme",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#enableDefaultTheme",
|
|
"access": null,
|
|
"description": "themes **",
|
|
"lineNumber": 437,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "hasThemes",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#hasThemes",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 439,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "themes",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#themes",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 440,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "themesPath",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#themesPath",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 442,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "Mod",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#Mod",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 445,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "ExtRegistry",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#ExtRegistry",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 448,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "Evt",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#Evt",
|
|
"access": null,
|
|
"description": "TF events **",
|
|
"lineNumber": 451,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "isUserTyping",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#isUserTyping",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 477,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "autoFilterTimer",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#autoFilterTimer",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 479,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "isUserTyping",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#isUserTyping",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 490,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "autoFilterTimer",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#autoFilterTimer",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 495,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "isUserTyping",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#isUserTyping",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 498,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "autoFilterTimer",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#autoFilterTimer",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 504,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "autoFilterTimer",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#autoFilterTimer",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 509,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "isUserTyping",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#isUserTyping",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 515,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "isUserTyping",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#isUserTyping",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 520,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "activeFilterId",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#activeFilterId",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 540,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "activeFlt",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#activeFlt",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 541,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "activeFilterId",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#activeFilterId",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 563,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "activeFlt",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#activeFlt",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 564,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "init",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#init",
|
|
"access": null,
|
|
"description": "Initialise filtering grid bar behaviours and layout\n\nTODO: decompose in smaller methods",
|
|
"lineNumber": 601,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tbl",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#tbl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 606,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "refRow",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#refRow",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 609,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "headersRow",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#headersRow",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 614,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"number"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "refRow",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#refRow",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 657,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "refRow",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#refRow",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 659,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"number"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbFilterableRows",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#nbFilterableRows",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 661,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbVisibleRows",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#nbVisibleRows",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 662,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbRows",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#nbRows",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 663,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbFilterableRows",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#nbFilterableRows",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 691,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbVisibleRows",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#nbVisibleRows",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 692,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbRows",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#nbRows",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 693,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "isFirstLoad",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#isFirstLoad",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 904,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "_hasGrid",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#_hasGrid",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 905,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "EvtManager",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#EvtManager",
|
|
"access": null,
|
|
"description": "Manages state messages",
|
|
"lineNumber": 936,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "evt",
|
|
"description": "Event name"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "cfg",
|
|
"description": "Config object"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "feature",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#feature",
|
|
"access": null,
|
|
"description": "Return a feature instance for a given name",
|
|
"lineNumber": 1016,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "name",
|
|
"description": "Name of the feature"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"description": ""
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "initExtensions",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#initExtensions",
|
|
"access": null,
|
|
"description": "Initialise all the extensions defined in the configuration object",
|
|
"lineNumber": 1023,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "loadExtension",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#loadExtension",
|
|
"access": null,
|
|
"description": "Load an extension module",
|
|
"lineNumber": 1038,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "ext",
|
|
"description": "Extension config object"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "extension",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#extension",
|
|
"access": null,
|
|
"description": "Get an extension instance",
|
|
"lineNumber": 1069,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "name",
|
|
"description": "Name of the extension"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"description": "Extension instance"
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "hasExtension",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#hasExtension",
|
|
"access": null,
|
|
"description": "Check passed extension name exists",
|
|
"lineNumber": 1078,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "name",
|
|
"description": "Name of the extension"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"description": ""
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "destroyExtensions",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#destroyExtensions",
|
|
"access": null,
|
|
"description": "Destroy all the extensions defined in the configuration object",
|
|
"lineNumber": 1085,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "loadThemes",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#loadThemes",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1098,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "_loadThemes",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#_loadThemes",
|
|
"access": null,
|
|
"description": "Load themes defined in the configuration object",
|
|
"lineNumber": 1105,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnResetText",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#btnResetText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1133,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnResetHtml",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#btnResetHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1134,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnPrevPageHtml",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#btnPrevPageHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1138,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnNextPageHtml",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#btnNextPageHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1140,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnFirstPageHtml",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#btnFirstPageHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1142,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "btnLastPageHtml",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#btnLastPageHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1144,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "loader",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#loader",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1148,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "loaderHtml",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#loaderHtml",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1149,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "loaderText",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#loaderText",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1150,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getStylesheet",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getStylesheet",
|
|
"access": null,
|
|
"description": "Return stylesheet DOM element for a given theme name",
|
|
"lineNumber": 1157,
|
|
"params": [
|
|
{
|
|
"name": "name",
|
|
"optional": true,
|
|
"types": [
|
|
"string"
|
|
],
|
|
"defaultRaw": "default",
|
|
"defaultValue": "default"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"DOMElement"
|
|
],
|
|
"spread": false,
|
|
"description": "stylesheet element"
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "destroy",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#destroy",
|
|
"access": null,
|
|
"description": "Destroy filter grid",
|
|
"lineNumber": 1164,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "fltGridEl",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#fltGridEl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1201,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbHiddenRows",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#nbHiddenRows",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1214,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"number"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "validRowsIndex",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#validRowsIndex",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1215,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "activeFlt",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#activeFlt",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1216,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "_hasGrid",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#_hasGrid",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1217,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "tbl",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#tbl",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1218,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "setToolbar",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#setToolbar",
|
|
"access": null,
|
|
"description": "Generate container element for paging, reset button, rows counter etc.",
|
|
"lineNumber": 1224,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "infDiv",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#infDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1249,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "lDiv",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#lDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1255,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "rDiv",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#rDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1262,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "mDiv",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#mDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1268,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "help",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#help",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1277,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "removeToolbar",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#removeToolbar",
|
|
"access": null,
|
|
"description": "Remove toolbar container element",
|
|
"lineNumber": 1284,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "infDiv",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#infDiv",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1289,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "removeExternalFlts",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#removeExternalFlts",
|
|
"access": null,
|
|
"description": "Remove all the external column filters",
|
|
"lineNumber": 1303,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "isCustomOptions",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#isCustomOptions",
|
|
"access": null,
|
|
"description": "Check if given column implements a filter with custom options",
|
|
"lineNumber": 1323,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "colIndex",
|
|
"description": "Column's index"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"description": ""
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getCustomOptions",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getCustomOptions",
|
|
"access": null,
|
|
"description": "Returns an array [[value0, value1 ...],[text0, text1 ...]] with the\ncustom options values and texts",
|
|
"lineNumber": 1334,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "colIndex",
|
|
"description": "Column's index"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Array"
|
|
],
|
|
"spread": false,
|
|
"description": ""
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "resetValues",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#resetValues",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1362,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "_resetValues",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#_resetValues",
|
|
"access": null,
|
|
"description": "Reset persisted filter values",
|
|
"lineNumber": 1369,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "_resetGridValues",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#_resetGridValues",
|
|
"access": null,
|
|
"description": "Reset persisted filter values when load filters on demand feature is\nenabled",
|
|
"lineNumber": 1387,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "name",
|
|
"description": "cookie name storing filter values"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "hasStoredValues",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#hasStoredValues",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1413,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "hasStoredValues",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#hasStoredValues",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1424,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "hasStoredValues",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#hasStoredValues",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1456,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "filter",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#filter",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1467,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "_filter",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#_filter",
|
|
"access": null,
|
|
"description": "Filter the table by retrieving the data from each cell in every single\nrow and comparing it to the search term for current column. A row is\nhidden when all the search terms are not found in inspected row.\n\nTODO: Reduce complexity of this massive method",
|
|
"lineNumber": 1478,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "validRowsIndex",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#validRowsIndex",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1491,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "searchArgs",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#searchArgs",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1506,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbVisibleRows",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#nbVisibleRows",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1836,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbHiddenRows",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#nbHiddenRows",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 1837,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "applyProps",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#applyProps",
|
|
"access": null,
|
|
"description": "Re-apply the features/behaviour concerned by filtering/paging operation\n\nNOTE: this will disappear whenever custom events in place",
|
|
"lineNumber": 1864,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getColValues",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getColValues",
|
|
"access": null,
|
|
"description": "Return the data of a specified colum",
|
|
"lineNumber": 1898,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "colIndex",
|
|
"description": "Column index"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "includeHeaders",
|
|
"description": "Optional: include headers row"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "num",
|
|
"description": "Optional: return unformatted number"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Array"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "exclude",
|
|
"description": "Optional: list of row indexes to be excluded"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Array"
|
|
],
|
|
"spread": false,
|
|
"description": "Flat list of data for a column"
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getFilterValue",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getFilterValue",
|
|
"access": null,
|
|
"description": "Return the filter's value of a specified column",
|
|
"lineNumber": 1943,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "index",
|
|
"description": "Column index"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"description": "Filter value"
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getFiltersValue",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getFiltersValue",
|
|
"access": null,
|
|
"description": "Return the filters' values",
|
|
"lineNumber": 1989,
|
|
"params": [],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Array"
|
|
],
|
|
"spread": false,
|
|
"description": "List of filters' values"
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getFilterId",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getFilterId",
|
|
"access": null,
|
|
"description": "Return the ID of the filter of a specified column",
|
|
"lineNumber": 2008,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "index",
|
|
"description": "Column's index"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"description": "ID of the filter element"
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getFiltersByType",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getFiltersByType",
|
|
"access": null,
|
|
"description": "Return the list of ids of filters matching a specified type.\nNote: hidden filters are also returned",
|
|
"lineNumber": 2024,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "type",
|
|
"description": "Filter type string ('input', 'select', 'multiple',\n 'checklist')"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "bool",
|
|
"description": "If true returns columns indexes instead of IDs"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"[type]"
|
|
],
|
|
"spread": false,
|
|
"description": "List of element IDs or column indexes"
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getFilterElement",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getFilterElement",
|
|
"access": null,
|
|
"description": "Return the filter's DOM element for a given column",
|
|
"lineNumber": 2044,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "index",
|
|
"description": "Column's index"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"DOMElement"
|
|
],
|
|
"spread": false,
|
|
"description": ""
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getCellsNb",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getCellsNb",
|
|
"access": null,
|
|
"description": "Return the number of cells for a given row index",
|
|
"lineNumber": 2054,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "rowIndex",
|
|
"description": "Index of the row"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"description": "Number of cells"
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getRowsNb",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getRowsNb",
|
|
"access": null,
|
|
"description": "Return the number of filterable rows starting from reference row if\ndefined",
|
|
"lineNumber": 2065,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "includeHeaders",
|
|
"description": "Include the headers row"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"description": "Number of filterable rows"
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getCellData",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getCellData",
|
|
"access": null,
|
|
"description": "Return the data of a given cell",
|
|
"lineNumber": 2077,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"DOMElement"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "cell",
|
|
"description": "Cell's DOM object"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"description": ""
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getTableData",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getTableData",
|
|
"access": null,
|
|
"description": "Return the table data with following format:\n[\n [rowIndex, [value0, value1...]],\n [rowIndex, [value0, value1...]]\n]",
|
|
"lineNumber": 2098,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "includeHeaders",
|
|
"description": "Optional: include headers row"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Array"
|
|
],
|
|
"spread": false,
|
|
"description": "TODO: provide an API returning data in JSON format"
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getFilteredData",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getFilteredData",
|
|
"access": null,
|
|
"description": "Return the filtered data with following format:\n[\n [rowIndex, [value0, value1...]],\n [rowIndex, [value0, value1...]]\n]",
|
|
"lineNumber": 2127,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "includeHeaders",
|
|
"description": "Optional: include headers row"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Array"
|
|
],
|
|
"spread": false,
|
|
"description": "TODO: provide an API returning data in JSON format"
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getFilteredDataCol",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getFilteredDataCol",
|
|
"access": null,
|
|
"description": "Return the filtered data for a given column index",
|
|
"lineNumber": 2159,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "colIndex",
|
|
"description": "Colmun's index"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "includeHeaders",
|
|
"description": "Optional: include headers row"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Array"
|
|
],
|
|
"spread": false,
|
|
"description": "Flat list of values ['val0','val1','val2'...]\n\nTODO: provide an API returning data in JSON format"
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getRowDisplay",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getRowDisplay",
|
|
"access": null,
|
|
"description": "Get the display value of a row",
|
|
"lineNumber": 2184,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"RowElement"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "DOM",
|
|
"description": "element of the row"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"description": "Usually 'none' or ''"
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "validateRow",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#validateRow",
|
|
"access": null,
|
|
"description": "Validate/invalidate row by setting the 'validRow' attribute on the row",
|
|
"lineNumber": 2196,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "rowIndex",
|
|
"description": "Index of the row"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "isValid",
|
|
"description": ""
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "validateAllRows",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#validateAllRows",
|
|
"access": null,
|
|
"description": "Validate all filterable rows",
|
|
"lineNumber": 2219,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "validRowsIndex",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#validRowsIndex",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 2223,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "setFilterValue",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#setFilterValue",
|
|
"access": null,
|
|
"description": "Set search value to a given filter",
|
|
"lineNumber": 2235,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "index",
|
|
"description": "Column's index"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "searcharg",
|
|
"description": "Search term"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "setColWidths",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#setColWidths",
|
|
"access": null,
|
|
"description": "Set them columns' widths as per configuration",
|
|
"lineNumber": 2297,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "rowIndex",
|
|
"description": "Optional row index to apply the widths to"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Element"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "tbl",
|
|
"description": "DOM element"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "enforceVisibility",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#enforceVisibility",
|
|
"access": null,
|
|
"description": "Makes defined rows always visible",
|
|
"lineNumber": 2337,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "clearFilters",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#clearFilters",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 2350,
|
|
"undocument": true,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "_clearFilters",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#_clearFilters",
|
|
"access": null,
|
|
"description": "Clear all the filters' values",
|
|
"lineNumber": 2357,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "clearActiveColumns",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#clearActiveColumns",
|
|
"access": null,
|
|
"description": "Clears filtered columns visual indicator (background color)",
|
|
"lineNumber": 2378,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "linkFilters",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#linkFilters",
|
|
"access": null,
|
|
"description": "Refresh the filters subject to linking ('select', 'multiple',\n'checklist' type)",
|
|
"lineNumber": 2389,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "_resetGrid",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#_resetGrid",
|
|
"access": null,
|
|
"description": "Re-generate the filters grid bar when previously removed",
|
|
"lineNumber": 2443,
|
|
"params": [],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbFilterableRows",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#nbFilterableRows",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 2493,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbVisibleRows",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#nbVisibleRows",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 2494,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "nbRows",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#nbRows",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 2495,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "_hasGrid",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#_hasGrid",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 2505,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "isExactMatch",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#isExactMatch",
|
|
"access": null,
|
|
"description": "Determines if passed filter column implements exact query match",
|
|
"lineNumber": 2513,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "colIndex",
|
|
"description": "[description]"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"description": "[description]"
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "_containsStr",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#_containsStr",
|
|
"access": null,
|
|
"description": "Checks if passed data contains the searched arg",
|
|
"lineNumber": 2529,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "arg",
|
|
"description": "Search term"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "data",
|
|
"description": "Data string"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "exactMatch",
|
|
"description": "Exact match"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean]"
|
|
],
|
|
"spread": false,
|
|
"description": "TODO: move into string module, remove fltType in order to decouple it\nfrom TableFilter module"
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "isImported",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#isImported",
|
|
"access": null,
|
|
"description": "Check if passed script or stylesheet is already imported",
|
|
"lineNumber": 2550,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "filePath",
|
|
"description": "Ressource path"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "type",
|
|
"description": "Possible values: 'script' or 'link'"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"description": ""
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "import",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#import",
|
|
"access": null,
|
|
"description": "Import script or stylesheet",
|
|
"lineNumber": 2574,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "fileId",
|
|
"description": "Ressource ID"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "filePath",
|
|
"description": "Ressource path"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Function"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "callback",
|
|
"description": "Callback"
|
|
},
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "type",
|
|
"description": "Possible values: 'script' or 'link'"
|
|
}
|
|
],
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "hasGrid",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#hasGrid",
|
|
"access": null,
|
|
"description": "Check if table has filters grid",
|
|
"lineNumber": 2619,
|
|
"params": [],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"description": ""
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getFiltersId",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getFiltersId",
|
|
"access": null,
|
|
"description": "Get list of filter IDs",
|
|
"lineNumber": 2627,
|
|
"params": [],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"[type]"
|
|
],
|
|
"spread": false,
|
|
"description": "[description]"
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getValidRows",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getValidRows",
|
|
"access": null,
|
|
"description": "Get filtered (valid) rows indexes",
|
|
"lineNumber": 2636,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Boolean"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "reCalc",
|
|
"description": "Force calculation of filtered rows list"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Array"
|
|
],
|
|
"spread": false,
|
|
"description": "List of row indexes"
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "member",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "validRowsIndex",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#validRowsIndex",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 2641,
|
|
"undocument": true,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getFiltersRowIndex",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getFiltersRowIndex",
|
|
"access": null,
|
|
"description": "Get the index of the row containing the filters",
|
|
"lineNumber": 2662,
|
|
"params": [],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"description": ""
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getHeadersRowIndex",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getHeadersRowIndex",
|
|
"access": null,
|
|
"description": "Get the index of the headers row",
|
|
"lineNumber": 2670,
|
|
"params": [],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"description": ""
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getStartRowIndex",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getStartRowIndex",
|
|
"access": null,
|
|
"description": "Get the row index from where the filtering process start (1st filterable\nrow)",
|
|
"lineNumber": 2679,
|
|
"params": [],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"description": ""
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getLastRowIndex",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getLastRowIndex",
|
|
"access": null,
|
|
"description": "Get the index of the last row",
|
|
"lineNumber": 2687,
|
|
"params": [],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"description": ""
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getHeaderElement",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getHeaderElement",
|
|
"access": null,
|
|
"description": "Get the header DOM element for a given column index",
|
|
"lineNumber": 2699,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "colIndex",
|
|
"description": "Column index"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"description": ""
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getHeadersText",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getHeadersText",
|
|
"access": null,
|
|
"description": "Return the list of headers' text",
|
|
"lineNumber": 2723,
|
|
"params": [],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Array"
|
|
],
|
|
"spread": false,
|
|
"description": "list of headers' text"
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getFilterType",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getFilterType",
|
|
"access": null,
|
|
"description": "Return the filter type for a specified column",
|
|
"lineNumber": 2738,
|
|
"params": [
|
|
{
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"optional": false,
|
|
"name": "colIndex",
|
|
"description": "Column's index"
|
|
}
|
|
],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"String"
|
|
],
|
|
"spread": false,
|
|
"description": ""
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "getFilterableRowsNb",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#getFilterableRowsNb",
|
|
"access": null,
|
|
"description": "Get the total number of filterable rows",
|
|
"lineNumber": 2747,
|
|
"params": [],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Number"
|
|
],
|
|
"spread": false,
|
|
"description": ""
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "method",
|
|
"static": false,
|
|
"variation": null,
|
|
"name": "config",
|
|
"memberof": "src/tablefilter.js~TableFilter",
|
|
"longname": "src/tablefilter.js~TableFilter#config",
|
|
"access": null,
|
|
"description": "Get the configuration object (literal object)",
|
|
"lineNumber": 2755,
|
|
"params": [],
|
|
"return": {
|
|
"nullable": null,
|
|
"types": [
|
|
"Object"
|
|
],
|
|
"spread": false,
|
|
"description": ""
|
|
},
|
|
"generator": false
|
|
},
|
|
{
|
|
"kind": "file",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "src/types.js",
|
|
"memberof": null,
|
|
"longname": "src/types.js",
|
|
"access": null,
|
|
"description": null,
|
|
"lineNumber": 5,
|
|
"content": "/**\n * Types utilities\n */\n\nconst UNDEFINED = void 0;\n\nexport default {\n /**\n * Check if argument is an object or a global object\n * @param {String or Object} v\n * @return {Boolean}\n */\n isObj(v){\n let isO = false;\n if(typeof v === 'string'){\n if(window[v] && typeof window[v] === 'object'){\n isO = true;\n }\n } else {\n if(v && typeof v === 'object'){\n isO = true;\n }\n }\n return isO;\n },\n\n /**\n * Check if argument is a function\n * @param {Function} fn\n * @return {Boolean}\n */\n isFn(fn){\n return (fn && fn.constructor == Function);\n },\n\n /**\n * Check if argument is an array\n * @param {Array} obj\n * @return {Boolean}\n */\n isArray(obj){\n return (obj && obj.constructor == Array);\n },\n\n /**\n * Determine if argument is undefined\n * @param {Any} o\n * @return {Boolean}\n */\n isUndef(o){\n return o === UNDEFINED;\n },\n\n /**\n * Determine if argument is null\n * @param {Any} o\n * @return {Boolean}\n */\n isNull(o){\n return o === null;\n },\n\n /**\n * Determine if argument is empty (undefined, null or empty string)\n * @param {Any} o\n * @return {Boolean}\n */\n isEmpty(o){\n return this.isUndef(o) || this.isNull(o) || o.length===0;\n }\n};\n"
|
|
},
|
|
{
|
|
"kind": "variable",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "UNDEFINED",
|
|
"memberof": "src/types.js",
|
|
"longname": "src/types.js~UNDEFINED",
|
|
"access": null,
|
|
"export": false,
|
|
"importPath": "tablefilter/src/types.js",
|
|
"importStyle": null,
|
|
"description": "Types utilities",
|
|
"lineNumber": 5,
|
|
"type": {
|
|
"types": [
|
|
"*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Infinity",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Infinity",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "NaN",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~NaN",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "undefined",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~undefined",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "null",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~null",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Object",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Object",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "object",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~object",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Function",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Function",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "function",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~function",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Boolean",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Boolean",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "boolean",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~boolean",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Symbol",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Symbol",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Error",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Error",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "EvalError",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~EvalError",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "InternalError",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~InternalError",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "RangeError",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~RangeError",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "ReferenceError",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~ReferenceError",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "SyntaxError",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~SyntaxError",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "TypeError",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~TypeError",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "URIError",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~URIError",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Number",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Number",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "number",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~number",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Date",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Date",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "String",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~String",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "string",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~string",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "RegExp",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~RegExp",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Array",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Array",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Int8Array",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Int8Array",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Uint8Array",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8Array",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Uint8ClampedArray",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Int16Array",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Int16Array",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Uint16Array",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Uint16Array",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Int32Array",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Int32Array",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Uint32Array",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Uint32Array",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Float32Array",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Float32Array",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Float64Array",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Float64Array",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Map",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Map",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Set",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Set",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "WeakMap",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~WeakMap",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "WeakSet",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~WeakSet",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "ArrayBuffer",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "DataView",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~DataView",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "JSON",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~JSON",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Promise",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Promise",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Generator",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Generator",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "GeneratorFunction",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Reflect",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Reflect",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Proxy",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy",
|
|
"memberof": "BuiltinExternal/ECMAScriptExternal.js",
|
|
"longname": "BuiltinExternal/ECMAScriptExternal.js~Proxy",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "CanvasRenderingContext2D",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D",
|
|
"memberof": "BuiltinExternal/WebAPIExternal.js",
|
|
"longname": "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "DocumentFragment",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment",
|
|
"memberof": "BuiltinExternal/WebAPIExternal.js",
|
|
"longname": "BuiltinExternal/WebAPIExternal.js~DocumentFragment",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Element",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Element",
|
|
"memberof": "BuiltinExternal/WebAPIExternal.js",
|
|
"longname": "BuiltinExternal/WebAPIExternal.js~Element",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Event",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Event",
|
|
"memberof": "BuiltinExternal/WebAPIExternal.js",
|
|
"longname": "BuiltinExternal/WebAPIExternal.js~Event",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "Node",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Node",
|
|
"memberof": "BuiltinExternal/WebAPIExternal.js",
|
|
"longname": "BuiltinExternal/WebAPIExternal.js~Node",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "NodeList",
|
|
"externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/NodeList",
|
|
"memberof": "BuiltinExternal/WebAPIExternal.js",
|
|
"longname": "BuiltinExternal/WebAPIExternal.js~NodeList",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
},
|
|
{
|
|
"kind": "external",
|
|
"static": true,
|
|
"variation": null,
|
|
"name": "XMLHttpRequest",
|
|
"externalLink": "https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest",
|
|
"memberof": "BuiltinExternal/WebAPIExternal.js",
|
|
"longname": "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest",
|
|
"access": null,
|
|
"description": null,
|
|
"builtinExternal": true
|
|
}
|
|
] |