- |
- public
-
-
-
-
- |
-
-
-
-
-
-
+ ID of main custom container element
+
|
@@ -961,18 +923,18 @@
- constructor(tf: Object)
+ constructor(tf: TableFilter)
- source
+ source
- Help UI component
+ Creates an instance of Help.
@@ -987,7 +949,7 @@
| tf |
- Object |
+ TableFilter |
|
TableFilter instance
|
@@ -1022,18 +984,19 @@
- btn: *
+ btn: DOMElement
- source
+ source
-
+ Stores button DOM element
+
@@ -1062,18 +1025,19 @@
- btnCssClass: *
+ btnCssClass: String
- source
+ source
-
+ Css class for help button
+
@@ -1102,18 +1066,19 @@
- btnHtml: *
+ btnHtml: String
- source
+ source
-
+ Custom help button HTML
+
@@ -1142,18 +1107,19 @@
- btnText: *
+ btnText: String
- source
+ source
-
+
@@ -1182,18 +1148,19 @@
- cont: *
+ cont: DOMElement
- source
+ source
-
+ Stores help container DOM element
+
@@ -1222,18 +1189,19 @@
- contCssClass: *
+ contCssClass: String
- source
+ source
-
+ Css class for help container element
+
@@ -1262,18 +1230,19 @@
- contTgtId: *
+ contTgtId: String
- source
+ source
-
+ ID of custom container element for instructions
+
@@ -1302,18 +1271,19 @@
- defaultHtml: *
+ defaultHtml: String
- source
+ source
-
+ Default HTML appended to instructions text
+
@@ -1346,7 +1316,7 @@
- source
+ source
@@ -1382,18 +1352,19 @@
- instrHtml: *
+ instrHtml: String
- source
+ source
-
+
@@ -1422,101 +1393,22 @@
- instrText: *
+ instrText: String
- source
+ source
-
-
-
-
-
+ Instructions text (accepts HTML)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- public
-
-
-
-
- prfxHelpDiv: string
-
-
-
- source
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- public
-
-
-
-
- prfxHelpSpan: string
-
-
-
- source
-
-
-
-
-
-
-
-
-
-
@@ -1542,18 +1434,19 @@
- tgtId: *
+ tgtId: String
- source
+ source
-
+ ID of main custom container element
+
@@ -1589,7 +1482,7 @@
- source
+ source
@@ -1630,7 +1523,7 @@
- source
+ source
@@ -1682,7 +1575,7 @@
- source
+ source
diff --git a/docs/class/src/modules/highlightKeywords.js~HighlightKeyword.html b/docs/class/src/modules/highlightKeywords.js~HighlightKeyword.html
index 746ad178..8f35c8ab 100644
--- a/docs/class/src/modules/highlightKeywords.js~HighlightKeyword.html
+++ b/docs/class/src/modules/highlightKeywords.js~HighlightKeyword.html
@@ -3,7 +3,7 @@
- HighlightKeyword | tablefilter v0.2.43 API Document
+ HighlightKeyword | tablefilter v0.2.44 API Document
diff --git a/docs/class/src/modules/loader.js~Loader.html b/docs/class/src/modules/loader.js~Loader.html
index e4ad87f6..857fc0fa 100644
--- a/docs/class/src/modules/loader.js~Loader.html
+++ b/docs/class/src/modules/loader.js~Loader.html
@@ -3,7 +3,7 @@
- Loader | tablefilter v0.2.43 API Document
+ Loader | tablefilter v0.2.44 API Document
diff --git a/docs/class/src/modules/noResults.js~NoResults.html b/docs/class/src/modules/noResults.js~NoResults.html
index 2b827c27..39b39b6c 100644
--- a/docs/class/src/modules/noResults.js~NoResults.html
+++ b/docs/class/src/modules/noResults.js~NoResults.html
@@ -3,7 +3,7 @@
- NoResults | tablefilter v0.2.43 API Document
+ NoResults | tablefilter v0.2.44 API Document
diff --git a/docs/class/src/modules/paging.js~Paging.html b/docs/class/src/modules/paging.js~Paging.html
index bad52a5f..86e783f9 100644
--- a/docs/class/src/modules/paging.js~Paging.html
+++ b/docs/class/src/modules/paging.js~Paging.html
@@ -3,7 +3,7 @@
- Paging | tablefilter v0.2.43 API Document
+ Paging | tablefilter v0.2.44 API Document
diff --git a/docs/class/src/modules/popupFilter.js~PopupFilter.html b/docs/class/src/modules/popupFilter.js~PopupFilter.html
index 047a1637..76adecfe 100644
--- a/docs/class/src/modules/popupFilter.js~PopupFilter.html
+++ b/docs/class/src/modules/popupFilter.js~PopupFilter.html
@@ -3,7 +3,7 @@
- PopupFilter | tablefilter v0.2.43 API Document
+ PopupFilter | tablefilter v0.2.44 API Document
diff --git a/docs/class/src/modules/rowsCounter.js~RowsCounter.html b/docs/class/src/modules/rowsCounter.js~RowsCounter.html
index 952819df..2bf07df0 100644
--- a/docs/class/src/modules/rowsCounter.js~RowsCounter.html
+++ b/docs/class/src/modules/rowsCounter.js~RowsCounter.html
@@ -3,7 +3,7 @@
- RowsCounter | tablefilter v0.2.43 API Document
+ RowsCounter | tablefilter v0.2.44 API Document
diff --git a/docs/class/src/modules/state.js~State.html b/docs/class/src/modules/state.js~State.html
index e3709b70..b86dc938 100644
--- a/docs/class/src/modules/state.js~State.html
+++ b/docs/class/src/modules/state.js~State.html
@@ -3,7 +3,7 @@
- State | tablefilter v0.2.43 API Document
+ State | tablefilter v0.2.44 API Document
@@ -115,13 +115,13 @@
@@ -141,8 +141,7 @@
- Reflects the state of features to be persisted via hash, localStorage or
-cookie
+ State persistence via hash, localStorage or cookie
@@ -1425,7 +1424,7 @@ cookie
- source
+ source
@@ -1486,7 +1485,7 @@ cookie
- source
+ source
@@ -1526,7 +1525,7 @@ cookie
- source
+ source
@@ -1566,7 +1565,7 @@ cookie
- source
+ source
@@ -1606,7 +1605,7 @@ cookie
- source
+ source
@@ -1646,7 +1645,7 @@ cookie
- source
+ source
@@ -1686,7 +1685,7 @@ cookie
- source
+ source
@@ -1726,7 +1725,7 @@ cookie
- source
+ source
@@ -1766,7 +1765,7 @@ cookie
- source
+ source
@@ -1806,7 +1805,7 @@ cookie
- source
+ source
@@ -1846,7 +1845,7 @@ cookie
- source
+ source
@@ -1886,7 +1885,7 @@ cookie
- source
+ source
@@ -1926,7 +1925,7 @@ cookie
- source
+ source
@@ -1966,7 +1965,7 @@ cookie
- source
+ source
@@ -2006,7 +2005,7 @@ cookie
- source
+ source
@@ -2046,7 +2045,7 @@ cookie
- source
+ source
@@ -2086,7 +2085,7 @@ cookie
- source
+ source
@@ -2126,7 +2125,7 @@ cookie
- source
+ source
@@ -2166,7 +2165,7 @@ cookie
- source
+ source
@@ -2206,7 +2205,7 @@ cookie
- source
+ source
@@ -2246,7 +2245,7 @@ cookie
- source
+ source
@@ -2286,7 +2285,7 @@ cookie
- source
+ source
@@ -2326,7 +2325,7 @@ cookie
- source
+ source
@@ -2366,7 +2365,7 @@ cookie
- source
+ source
@@ -2406,7 +2405,7 @@ cookie
- source
+ source
@@ -2449,7 +2448,7 @@ cookie
- source
+ source
@@ -2490,7 +2489,7 @@ cookie
- source
+ source
@@ -2531,7 +2530,7 @@ cookie
- source
+ source
@@ -2589,7 +2588,7 @@ cookie
- source
+ source
@@ -2647,7 +2646,7 @@ cookie
- source
+ source
@@ -2688,7 +2687,7 @@ cookie
- source
+ source
@@ -2729,7 +2728,7 @@ cookie
- source
+ source
@@ -2787,7 +2786,7 @@ cookie
- source
+ source
@@ -2845,7 +2844,7 @@ cookie
- source
+ source
@@ -2903,7 +2902,7 @@ cookie
- source
+ source
@@ -2961,7 +2960,7 @@ cookie
- source
+ source
diff --git a/docs/class/src/modules/statusBar.js~StatusBar.html b/docs/class/src/modules/statusBar.js~StatusBar.html
index 8a675b96..fea14c02 100644
--- a/docs/class/src/modules/statusBar.js~StatusBar.html
+++ b/docs/class/src/modules/statusBar.js~StatusBar.html
@@ -3,7 +3,7 @@
- StatusBar | tablefilter v0.2.43 API Document
+ StatusBar | tablefilter v0.2.44 API Document
diff --git a/docs/class/src/modules/storage.js~Storage.html b/docs/class/src/modules/storage.js~Storage.html
index ecc5aa16..9e77a25a 100644
--- a/docs/class/src/modules/storage.js~Storage.html
+++ b/docs/class/src/modules/storage.js~Storage.html
@@ -3,7 +3,7 @@
- Storage | tablefilter v0.2.43 API Document
+ Storage | tablefilter v0.2.44 API Document
diff --git a/docs/class/src/tablefilter.js~TableFilter.html b/docs/class/src/tablefilter.js~TableFilter.html
index dd3a6326..8cf82b95 100644
--- a/docs/class/src/tablefilter.js~TableFilter.html
+++ b/docs/class/src/tablefilter.js~TableFilter.html
@@ -3,7 +3,7 @@
- TableFilter | tablefilter v0.2.43 API Document
+ TableFilter | tablefilter v0.2.44 API Document
diff --git a/docs/coverage.json b/docs/coverage.json
index dc5bfcc7..33c2298d 100644
--- a/docs/coverage.json
+++ b/docs/coverage.json
@@ -1,7 +1,7 @@
{
- "coverage": "40%",
- "expectCount": 765,
- "actualCount": 306,
+ "coverage": "42.31%",
+ "expectCount": 761,
+ "actualCount": 322,
"files": {
"src/const.js": {
"expectCount": 13,
@@ -343,36 +343,14 @@
]
},
"src/modules/hash.js": {
- "expectCount": 12,
- "actualCount": 7,
- "undocumentLines": [
- 42,
- 29,
- 8,
- 28,
- 27
- ]
+ "expectCount": 10,
+ "actualCount": 10,
+ "undocumentLines": []
},
"src/modules/help.js": {
- "expectCount": 19,
- "actualCount": 4,
- "undocumentLines": [
- 10,
- 48,
- 43,
- 41,
- 39,
- 50,
- 45,
- 24,
- 51,
- 123,
- 37,
- 27,
- 61,
- 59,
- 22
- ]
+ "expectCount": 17,
+ "actualCount": 17,
+ "undocumentLines": []
},
"src/modules/highlightKeywords.js": {
"expectCount": 10,
@@ -536,30 +514,30 @@
"expectCount": 37,
"actualCount": 13,
"undocumentLines": [
- 39,
- 31,
- 27,
- 29,
- 42,
- 54,
- 48,
- 43,
- 47,
- 90,
- 45,
+ 38,
+ 30,
+ 26,
+ 28,
+ 41,
53,
+ 47,
+ 42,
+ 46,
+ 89,
44,
52,
- 37,
- 33,
- 38,
- 35,
- 34,
- 36,
+ 43,
51,
- 46,
+ 36,
+ 32,
+ 37,
+ 34,
+ 33,
+ 35,
50,
- 87
+ 45,
+ 49,
+ 86
]
},
"src/modules/statusBar.js": {
diff --git a/docs/dump.json b/docs/dump.json
index b5664703..3300c57d 100644
--- a/docs/dump.json
+++ b/docs/dump.json
@@ -8453,7 +8453,7 @@
"access": null,
"description": null,
"lineNumber": 1,
- "content": "import {addEvt, removeEvt} from '../event';\nimport {root} from '../root';\n\nconst JSON = root.JSON;\nconst location = root.location;\nconst decodeURIComponent = root.decodeURIComponent;\n\nexport const hasHashChange = () => {\n let docMode = root.documentMode;\n return ('onhashchange' in root) && (docMode === undefined || docMode > 7);\n};\n\n/**\n * Manages the URL hash reflecting the features state to be persisted\n *\n * @export\n * @class Hash\n */\nexport class Hash {\n\n /**\n * Creates an instance of Hash\n *\n * @param {State} state Instance of State\n */\n constructor(state) {\n this.state = state;\n this.lastHash = null;\n this.emitter = state.emitter;\n }\n\n /**\n * Initializes the Hash object\n */\n init() {\n if (!hasHashChange()) {\n return;\n }\n\n this.lastHash = location.hash;\n //Store a bound sync wrapper for future use.\n this.boundSync = this.sync.bind(this);\n this.emitter.on(['state-changed'], (tf, state) => this.update(state));\n this.emitter.on(['initialized'], this.boundSync);\n addEvt(root, 'hashchange', this.boundSync);\n }\n\n /**\n * Updates the URL hash based on a state change\n *\n * @param {State} state Instance of State\n */\n update(state) {\n let hash = `#${JSON.stringify(state)}`;\n if (this.lastHash === hash) {\n return;\n }\n\n location.hash = hash;\n this.lastHash = hash;\n }\n\n /**\n * Converts a URL hash into a state JSON object\n *\n * @param {String} hash URL hash fragment\n * @returns {Object} JSON object\n */\n parse(hash) {\n if (hash.indexOf('#') === -1) {\n return null;\n }\n hash = hash.substr(1);\n return JSON.parse(decodeURIComponent(hash));\n }\n\n /**\n * Applies current hash state to features\n */\n sync() {\n let state = this.parse(location.hash);\n if (!state) {\n return;\n }\n // override current state with persisted one and sync features\n this.state.overrideAndSync(state);\n }\n\n /**\n * Release Hash event subscriptions and clear fields\n */\n destroy() {\n this.emitter.off(['state-changed'], (tf, state) => this.update(state));\n this.emitter.off(['initialized'], this.boundSync);\n removeEvt(root, 'hashchange', this.boundSync);\n\n this.state = null;\n this.lastHash = null;\n this.emitter = null;\n }\n}\n"
+ "content": "import {addEvt, removeEvt} from '../event';\nimport {root} from '../root';\n\nconst JSON = root.JSON;\nconst location = root.location;\nconst decodeURIComponent = root.decodeURIComponent;\n\n/**\n * Checks if browser has onhashchange event\n */\nexport const hasHashChange = () => {\n let docMode = root.documentMode;\n return ('onhashchange' in root) && (docMode === undefined || docMode > 7);\n};\n\n/**\n * Manages state via URL hash changes\n *\n * @export\n * @class Hash\n */\nexport class Hash {\n\n /**\n * Creates an instance of Hash\n *\n * @param {State} state Instance of State\n */\n constructor(state) {\n /**\n * State object\n * @type {State} State\n */\n this.state = state;\n\n /**\n * Cached URL hash\n * @type {String} Hash string\n * @private\n */\n this.lastHash = null;\n\n /**\n * Application event emitter instance\n * @type {Emitter}\n */\n this.emitter = state.emitter;\n\n /**\n * Bound sync wrapper for future use\n * @private\n */\n this.boundSync = null;\n }\n\n /**\n * Initializes the Hash object\n */\n init() {\n if (!hasHashChange()) {\n return;\n }\n\n this.lastHash = location.hash;\n //Store a bound sync wrapper\n this.boundSync = this.sync.bind(this);\n this.emitter.on(['state-changed'], (tf, state) => this.update(state));\n this.emitter.on(['initialized'], this.boundSync);\n addEvt(root, 'hashchange', this.boundSync);\n }\n\n /**\n * Updates the URL hash based on a state change\n *\n * @param {State} state Instance of State\n */\n update(state) {\n let hash = `#${JSON.stringify(state)}`;\n if (this.lastHash === hash) {\n return;\n }\n\n location.hash = hash;\n this.lastHash = hash;\n }\n\n /**\n * Converts a URL hash into a state JSON object\n *\n * @param {String} hash URL hash fragment\n * @returns {Object} JSON object\n */\n parse(hash) {\n if (hash.indexOf('#') === -1) {\n return null;\n }\n hash = hash.substr(1);\n return JSON.parse(decodeURIComponent(hash));\n }\n\n /**\n * Applies current hash state to features\n */\n sync() {\n let state = this.parse(location.hash);\n if (!state) {\n return;\n }\n // override current state with persisted one and sync features\n this.state.overrideAndSync(state);\n }\n\n /**\n * Release Hash event subscriptions and clear fields\n */\n destroy() {\n this.emitter.off(['state-changed'], (tf, state) => this.update(state));\n this.emitter.off(['initialized'], this.boundSync);\n removeEvt(root, 'hashchange', this.boundSync);\n\n this.state = null;\n this.lastHash = null;\n this.emitter = null;\n }\n}\n"
},
{
"__docId__": 391,
@@ -8530,9 +8530,8 @@
"export": true,
"importPath": "tablefilter/src/modules/hash.js",
"importStyle": "{hasHashChange}",
- "description": null,
- "lineNumber": 8,
- "undocument": true,
+ "description": "Checks if browser has onhashchange event",
+ "lineNumber": 11,
"type": {
"types": [
"*"
@@ -8551,8 +8550,8 @@
"export": true,
"importPath": "tablefilter/src/modules/hash.js",
"importStyle": "{Hash}",
- "description": "Manages the URL hash reflecting the features state to be persisted",
- "lineNumber": 19,
+ "description": "Manages state via URL hash changes",
+ "lineNumber": 22,
"unknown": [
{
"tagName": "@export",
@@ -8575,7 +8574,7 @@
"longname": "src/modules/hash.js~Hash#constructor",
"access": null,
"description": "Creates an instance of Hash",
- "lineNumber": 26,
+ "lineNumber": 29,
"params": [
{
"nullable": null,
@@ -8599,13 +8598,15 @@
"memberof": "src/modules/hash.js~Hash",
"longname": "src/modules/hash.js~Hash#state",
"access": null,
- "description": null,
- "lineNumber": 27,
- "undocument": true,
+ "description": "State object",
+ "lineNumber": 34,
"type": {
+ "nullable": null,
"types": [
- "*"
- ]
+ "State"
+ ],
+ "spread": false,
+ "description": null
}
},
{
@@ -8616,14 +8617,16 @@
"name": "lastHash",
"memberof": "src/modules/hash.js~Hash",
"longname": "src/modules/hash.js~Hash#lastHash",
- "access": null,
- "description": null,
- "lineNumber": 28,
- "undocument": true,
+ "access": "private",
+ "description": "Cached URL hash",
+ "lineNumber": 41,
"type": {
+ "nullable": null,
"types": [
- "*"
- ]
+ "String"
+ ],
+ "spread": false,
+ "description": null
}
},
{
@@ -8635,9 +8638,28 @@
"memberof": "src/modules/hash.js~Hash",
"longname": "src/modules/hash.js~Hash#emitter",
"access": null,
- "description": null,
- "lineNumber": 29,
- "undocument": true,
+ "description": "Application event emitter instance",
+ "lineNumber": 47,
+ "type": {
+ "nullable": null,
+ "types": [
+ "Emitter"
+ ],
+ "spread": false,
+ "description": null
+ }
+ },
+ {
+ "__docId__": 400,
+ "kind": "member",
+ "static": false,
+ "variation": null,
+ "name": "boundSync",
+ "memberof": "src/modules/hash.js~Hash",
+ "longname": "src/modules/hash.js~Hash#boundSync",
+ "access": "private",
+ "description": "Bound sync wrapper for future use",
+ "lineNumber": 53,
"type": {
"types": [
"*"
@@ -8645,7 +8667,7 @@
}
},
{
- "__docId__": 400,
+ "__docId__": 401,
"kind": "method",
"static": false,
"variation": null,
@@ -8654,12 +8676,12 @@
"longname": "src/modules/hash.js~Hash#init",
"access": null,
"description": "Initializes the Hash object",
- "lineNumber": 35,
+ "lineNumber": 59,
"params": [],
"generator": false
},
{
- "__docId__": 401,
+ "__docId__": 402,
"kind": "member",
"static": false,
"variation": null,
@@ -8668,25 +8690,7 @@
"longname": "src/modules/hash.js~Hash#lastHash",
"access": null,
"description": null,
- "lineNumber": 40,
- "undocument": true,
- "type": {
- "types": [
- "*"
- ]
- }
- },
- {
- "__docId__": 402,
- "kind": "member",
- "static": false,
- "variation": null,
- "name": "boundSync",
- "memberof": "src/modules/hash.js~Hash",
- "longname": "src/modules/hash.js~Hash#boundSync",
- "access": null,
- "description": null,
- "lineNumber": 42,
+ "lineNumber": 64,
"undocument": true,
"type": {
"types": [
@@ -8696,6 +8700,24 @@
},
{
"__docId__": 403,
+ "kind": "member",
+ "static": false,
+ "variation": null,
+ "name": "boundSync",
+ "memberof": "src/modules/hash.js~Hash",
+ "longname": "src/modules/hash.js~Hash#boundSync",
+ "access": null,
+ "description": null,
+ "lineNumber": 66,
+ "undocument": true,
+ "type": {
+ "types": [
+ "*"
+ ]
+ }
+ },
+ {
+ "__docId__": 404,
"kind": "method",
"static": false,
"variation": null,
@@ -8704,7 +8726,7 @@
"longname": "src/modules/hash.js~Hash#update",
"access": null,
"description": "Updates the URL hash based on a state change",
- "lineNumber": 53,
+ "lineNumber": 77,
"params": [
{
"nullable": null,
@@ -8720,7 +8742,7 @@
"generator": false
},
{
- "__docId__": 404,
+ "__docId__": 405,
"kind": "member",
"static": false,
"variation": null,
@@ -8729,7 +8751,7 @@
"longname": "src/modules/hash.js~Hash#lastHash",
"access": null,
"description": null,
- "lineNumber": 60,
+ "lineNumber": 84,
"undocument": true,
"type": {
"types": [
@@ -8738,7 +8760,7 @@
}
},
{
- "__docId__": 405,
+ "__docId__": 406,
"kind": "method",
"static": false,
"variation": null,
@@ -8747,7 +8769,7 @@
"longname": "src/modules/hash.js~Hash#parse",
"access": null,
"description": "Converts a URL hash into a state JSON object",
- "lineNumber": 69,
+ "lineNumber": 93,
"unknown": [
{
"tagName": "@returns",
@@ -8777,7 +8799,7 @@
"generator": false
},
{
- "__docId__": 406,
+ "__docId__": 407,
"kind": "method",
"static": false,
"variation": null,
@@ -8786,12 +8808,12 @@
"longname": "src/modules/hash.js~Hash#sync",
"access": null,
"description": "Applies current hash state to features",
- "lineNumber": 80,
+ "lineNumber": 104,
"params": [],
"generator": false
},
{
- "__docId__": 407,
+ "__docId__": 408,
"kind": "method",
"static": false,
"variation": null,
@@ -8800,12 +8822,12 @@
"longname": "src/modules/hash.js~Hash#destroy",
"access": null,
"description": "Release Hash event subscriptions and clear fields",
- "lineNumber": 92,
+ "lineNumber": 116,
"params": [],
"generator": false
},
{
- "__docId__": 408,
+ "__docId__": 409,
"kind": "member",
"static": false,
"variation": null,
@@ -8814,25 +8836,7 @@
"longname": "src/modules/hash.js~Hash#state",
"access": null,
"description": null,
- "lineNumber": 97,
- "undocument": true,
- "type": {
- "types": [
- "*"
- ]
- }
- },
- {
- "__docId__": 409,
- "kind": "member",
- "static": false,
- "variation": null,
- "name": "lastHash",
- "memberof": "src/modules/hash.js~Hash",
- "longname": "src/modules/hash.js~Hash#lastHash",
- "access": null,
- "description": null,
- "lineNumber": 98,
+ "lineNumber": 121,
"undocument": true,
"type": {
"types": [
@@ -8845,12 +8849,12 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "emitter",
+ "name": "lastHash",
"memberof": "src/modules/hash.js~Hash",
- "longname": "src/modules/hash.js~Hash#emitter",
+ "longname": "src/modules/hash.js~Hash#lastHash",
"access": null,
"description": null,
- "lineNumber": 99,
+ "lineNumber": 122,
"undocument": true,
"type": {
"types": [
@@ -8860,6 +8864,24 @@
},
{
"__docId__": 411,
+ "kind": "member",
+ "static": false,
+ "variation": null,
+ "name": "emitter",
+ "memberof": "src/modules/hash.js~Hash",
+ "longname": "src/modules/hash.js~Hash#emitter",
+ "access": null,
+ "description": null,
+ "lineNumber": 123,
+ "undocument": true,
+ "type": {
+ "types": [
+ "*"
+ ]
+ }
+ },
+ {
+ "__docId__": 412,
"kind": "file",
"static": true,
"variation": null,
@@ -8869,10 +8891,10 @@
"access": null,
"description": null,
"lineNumber": 1,
- "content": "import {Feature} from '../feature';\nimport {createElm, createText, elm, removeElm} from '../dom';\nimport {addEvt} from '../event';\nimport {NONE} from '../const';\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: <, <=, >, ' +\n ' >=, =, *, !, {, }, ' +\n ' ||, &&, [empty], [nonempty], ' +\n ' rgx:' +\n 'Learn more
';\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 = '';\n\n //id prefix for help elements\n this.prfxHelpSpan = 'helpSpan_';\n //id prefix for help elements\n this.prfxHelpDiv = 'helpDiv_';\n\n this.emitter.on(['init-help'], () => this.init());\n }\n\n /**\n * Initialise Help instance\n *\n * @returns (description)\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n var tf = this.tf;\n\n var helpspan = createElm('span', ['id', this.prfxHelpSpan + tf.id]);\n var helpdiv = createElm('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 : elm(this.tgtId);\n targetEl.appendChild(helpspan);\n\n var divContainer = !this.contTgtId ? helpspan : elm(this.contTgtId);\n\n if (!this.btnHtml) {\n divContainer.appendChild(helpdiv);\n var helplink = createElm('a', ['href', 'javascript:void(0);']);\n helplink.className = this.btnCssClass;\n helplink.appendChild(createText(this.btnText));\n helpspan.appendChild(helplink);\n addEvt(helplink, 'click', () => this.toggle());\n } else {\n helpspan.innerHTML = this.btnHtml;\n var helpEl = helpspan.firstChild;\n addEvt(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 addEvt(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 addEvt(helpdiv, 'dblclick', () => this.toggle());\n }\n }\n helpdiv.innerHTML += this.defaultHtml;\n addEvt(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 removeElm(this.btn);\n this.btn = null;\n if (!this.cont) {\n return;\n }\n removeElm(this.cont);\n this.cont = null;\n this.initialized = false;\n }\n\n}\n"
+ "content": "import {Feature} from '../feature';\nimport {createElm, createText, elm, removeElm} from '../dom';\nimport {addEvt} from '../event';\nimport {NONE} from '../const';\n\nconst WIKI_URL = 'https://github.com/koalyptus/TableFilter/wiki/' +\n '4.-Filter-operators';\nconst WEBSITE_URL = 'http://koalyptus.github.io/TableFilter/';\n\n/**\n * Help UI component\n */\nexport class Help extends Feature {\n\n /**\n * Creates an instance of Help.\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'help');\n\n var f = this.config;\n\n /**\n * ID of main custom container element\n * @type {String}\n */\n this.tgtId = f.help_instructions_target_id || null;\n\n /**\n * ID of custom container element for instructions\n * @type {String}\n */\n this.contTgtId = f.help_instructions_container_target_id ||\n null;\n\n /**\n * Instructions text (accepts HTML)\n * @type {String}\n */\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: <, <=, >, ' +\n ' >=, =, *, !, {, }, ' +\n ' ||, &&, [empty], [nonempty], ' +\n ' rgx:' +\n 'Learn more
';\n\n /**\n * Instructions HTML\n * @type {String}\n */\n this.instrHtml = f.help_instructions_html || null;\n\n /**\n * Help button text ('?')\n * @type {String}\n */\n this.btnText = f.help_instructions_btn_text || '?';\n\n /**\n * Custom help button HTML\n * @type {String}\n */\n this.btnHtml = f.help_instructions_btn_html || null;\n\n /**\n * Css class for help button\n * @type {String}\n */\n this.btnCssClass = f.help_instructions_btn_css_class || 'helpBtn';\n\n /**\n * Css class for help container element\n * @type {String}\n */\n this.contCssClass = f.help_instructions_container_css_class ||\n 'helpCont';\n\n /**\n * Stores button DOM element\n * @type {DOMElement}\n */\n this.btn = null;\n\n /**\n * Stores help container DOM element\n * @type {DOMElement}\n */\n this.cont = null;\n\n /**\n * Default HTML appended to instructions text\n * @type {String}\n */\n this.defaultHtml = '';\n\n /**\n * Prefix for help main container ID\n * @type {String}\n * @private\n */\n this.prfxHelpSpan = 'helpSpan_';\n\n /**\n * Prefix for help instructions container ID\n * @type {String}\n * @private\n */\n this.prfxHelpDiv = 'helpDiv_';\n\n this.emitter.on(['init-help'], () => this.init());\n }\n\n /**\n * Initialise Help instance\n * @returns (description)\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n var tf = this.tf;\n\n var helpspan = createElm('span', ['id', this.prfxHelpSpan + tf.id]);\n var helpdiv = createElm('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 : elm(this.tgtId);\n targetEl.appendChild(helpspan);\n\n var divContainer = !this.contTgtId ? helpspan : elm(this.contTgtId);\n\n if (!this.btnHtml) {\n divContainer.appendChild(helpdiv);\n var helplink = createElm('a', ['href', 'javascript:void(0);']);\n helplink.className = this.btnCssClass;\n helplink.appendChild(createText(this.btnText));\n helpspan.appendChild(helplink);\n addEvt(helplink, 'click', () => this.toggle());\n } else {\n helpspan.innerHTML = this.btnHtml;\n var helpEl = helpspan.firstChild;\n addEvt(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 addEvt(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 addEvt(helpdiv, 'dblclick', () => this.toggle());\n }\n }\n helpdiv.innerHTML += this.defaultHtml;\n addEvt(helpdiv, 'click', () => this.toggle());\n\n this.cont = helpdiv;\n this.btn = helpspan;\n /**\n * @inherited\n */\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 removeElm(this.btn);\n this.btn = null;\n if (!this.cont) {\n return;\n }\n removeElm(this.cont);\n this.cont = null;\n this.initialized = false;\n }\n\n}\n"
},
{
- "__docId__": 412,
+ "__docId__": 413,
"kind": "variable",
"static": true,
"variation": null,
@@ -8893,7 +8915,7 @@
}
},
{
- "__docId__": 413,
+ "__docId__": 414,
"kind": "variable",
"static": true,
"variation": null,
@@ -8914,7 +8936,7 @@
}
},
{
- "__docId__": 414,
+ "__docId__": 415,
"kind": "class",
"static": true,
"variation": null,
@@ -8925,16 +8947,15 @@
"export": true,
"importPath": "tablefilter/src/modules/help.js",
"importStyle": "{Help}",
- "description": null,
- "lineNumber": 10,
- "undocument": true,
+ "description": "Help UI component",
+ "lineNumber": 13,
"interface": false,
"extends": [
"src/feature.js~Feature"
]
},
{
- "__docId__": 415,
+ "__docId__": 416,
"kind": "constructor",
"static": false,
"variation": null,
@@ -8942,13 +8963,13 @@
"memberof": "src/modules/help.js~Help",
"longname": "src/modules/help.js~Help#constructor",
"access": null,
- "description": "Help UI component",
- "lineNumber": 16,
+ "description": "Creates an instance of Help.",
+ "lineNumber": 19,
"params": [
{
"nullable": null,
"types": [
- "Object"
+ "TableFilter"
],
"spread": false,
"optional": false,
@@ -8959,7 +8980,7 @@
"generator": false
},
{
- "__docId__": 416,
+ "__docId__": 417,
"kind": "member",
"static": false,
"variation": null,
@@ -8967,31 +8988,15 @@
"memberof": "src/modules/help.js~Help",
"longname": "src/modules/help.js~Help#tgtId",
"access": null,
- "description": null,
- "lineNumber": 22,
- "undocument": true,
+ "description": "ID of main custom container element",
+ "lineNumber": 28,
"type": {
+ "nullable": null,
"types": [
- "*"
- ]
- }
- },
- {
- "__docId__": 417,
- "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": [
- "*"
- ]
+ "String"
+ ],
+ "spread": false,
+ "description": null
}
},
{
@@ -8999,17 +9004,19 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "instrText",
+ "name": "contTgtId",
"memberof": "src/modules/help.js~Help",
- "longname": "src/modules/help.js~Help#instrText",
+ "longname": "src/modules/help.js~Help#contTgtId",
"access": null,
- "description": null,
- "lineNumber": 27,
- "undocument": true,
+ "description": "ID of custom container element for instructions",
+ "lineNumber": 34,
"type": {
+ "nullable": null,
"types": [
- "*"
- ]
+ "String"
+ ],
+ "spread": false,
+ "description": null
}
},
{
@@ -9017,17 +9024,19 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "instrHtml",
+ "name": "instrText",
"memberof": "src/modules/help.js~Help",
- "longname": "src/modules/help.js~Help#instrHtml",
+ "longname": "src/modules/help.js~Help#instrText",
"access": null,
- "description": null,
- "lineNumber": 37,
- "undocument": true,
+ "description": "Instructions text (accepts HTML)",
+ "lineNumber": 41,
"type": {
+ "nullable": null,
"types": [
- "*"
- ]
+ "String"
+ ],
+ "spread": false,
+ "description": null
}
},
{
@@ -9035,17 +9044,19 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "btnText",
+ "name": "instrHtml",
"memberof": "src/modules/help.js~Help",
- "longname": "src/modules/help.js~Help#btnText",
+ "longname": "src/modules/help.js~Help#instrHtml",
"access": null,
- "description": null,
- "lineNumber": 39,
- "undocument": true,
+ "description": "Instructions HTML",
+ "lineNumber": 55,
"type": {
+ "nullable": null,
"types": [
- "*"
- ]
+ "String"
+ ],
+ "spread": false,
+ "description": null
}
},
{
@@ -9053,17 +9064,19 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "btnHtml",
+ "name": "btnText",
"memberof": "src/modules/help.js~Help",
- "longname": "src/modules/help.js~Help#btnHtml",
+ "longname": "src/modules/help.js~Help#btnText",
"access": null,
- "description": null,
- "lineNumber": 41,
- "undocument": true,
+ "description": "Help button text ('?')",
+ "lineNumber": 61,
"type": {
+ "nullable": null,
"types": [
- "*"
- ]
+ "String"
+ ],
+ "spread": false,
+ "description": null
}
},
{
@@ -9071,17 +9084,19 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "btnCssClass",
+ "name": "btnHtml",
"memberof": "src/modules/help.js~Help",
- "longname": "src/modules/help.js~Help#btnCssClass",
+ "longname": "src/modules/help.js~Help#btnHtml",
"access": null,
- "description": null,
- "lineNumber": 43,
- "undocument": true,
+ "description": "Custom help button HTML",
+ "lineNumber": 67,
"type": {
+ "nullable": null,
"types": [
- "*"
- ]
+ "String"
+ ],
+ "spread": false,
+ "description": null
}
},
{
@@ -9089,17 +9104,19 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "contCssClass",
+ "name": "btnCssClass",
"memberof": "src/modules/help.js~Help",
- "longname": "src/modules/help.js~Help#contCssClass",
+ "longname": "src/modules/help.js~Help#btnCssClass",
"access": null,
- "description": null,
- "lineNumber": 45,
- "undocument": true,
+ "description": "Css class for help button",
+ "lineNumber": 73,
"type": {
+ "nullable": null,
"types": [
- "*"
- ]
+ "String"
+ ],
+ "spread": false,
+ "description": null
}
},
{
@@ -9107,17 +9124,19 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "btn",
+ "name": "contCssClass",
"memberof": "src/modules/help.js~Help",
- "longname": "src/modules/help.js~Help#btn",
+ "longname": "src/modules/help.js~Help#contCssClass",
"access": null,
- "description": null,
- "lineNumber": 48,
- "undocument": true,
+ "description": "Css class for help container element",
+ "lineNumber": 79,
"type": {
+ "nullable": null,
"types": [
- "*"
- ]
+ "String"
+ ],
+ "spread": false,
+ "description": null
}
},
{
@@ -9125,17 +9144,19 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "cont",
+ "name": "btn",
"memberof": "src/modules/help.js~Help",
- "longname": "src/modules/help.js~Help#cont",
+ "longname": "src/modules/help.js~Help#btn",
"access": null,
- "description": null,
- "lineNumber": 50,
- "undocument": true,
+ "description": "Stores button DOM element",
+ "lineNumber": 86,
"type": {
+ "nullable": null,
"types": [
- "*"
- ]
+ "DOMElement"
+ ],
+ "spread": false,
+ "description": null
}
},
{
@@ -9143,17 +9164,19 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "defaultHtml",
+ "name": "cont",
"memberof": "src/modules/help.js~Help",
- "longname": "src/modules/help.js~Help#defaultHtml",
+ "longname": "src/modules/help.js~Help#cont",
"access": null,
- "description": null,
- "lineNumber": 51,
- "undocument": true,
+ "description": "Stores help container DOM element",
+ "lineNumber": 92,
"type": {
+ "nullable": null,
"types": [
- "*"
- ]
+ "DOMElement"
+ ],
+ "spread": false,
+ "description": null
}
},
{
@@ -9161,17 +9184,19 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "prfxHelpSpan",
+ "name": "defaultHtml",
"memberof": "src/modules/help.js~Help",
- "longname": "src/modules/help.js~Help#prfxHelpSpan",
+ "longname": "src/modules/help.js~Help#defaultHtml",
"access": null,
- "description": null,
- "lineNumber": 59,
- "undocument": true,
+ "description": "Default HTML appended to instructions text",
+ "lineNumber": 98,
"type": {
+ "nullable": null,
"types": [
- "string"
- ]
+ "String"
+ ],
+ "spread": false,
+ "description": null
}
},
{
@@ -9179,21 +9204,43 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "prfxHelpDiv",
+ "name": "prfxHelpSpan",
"memberof": "src/modules/help.js~Help",
- "longname": "src/modules/help.js~Help#prfxHelpDiv",
- "access": null,
- "description": null,
- "lineNumber": 61,
- "undocument": true,
+ "longname": "src/modules/help.js~Help#prfxHelpSpan",
+ "access": "private",
+ "description": "Prefix for help main container ID",
+ "lineNumber": 110,
"type": {
+ "nullable": null,
"types": [
- "string"
- ]
+ "String"
+ ],
+ "spread": false,
+ "description": null
}
},
{
"__docId__": 429,
+ "kind": "member",
+ "static": false,
+ "variation": null,
+ "name": "prfxHelpDiv",
+ "memberof": "src/modules/help.js~Help",
+ "longname": "src/modules/help.js~Help#prfxHelpDiv",
+ "access": "private",
+ "description": "Prefix for help instructions container ID",
+ "lineNumber": 117,
+ "type": {
+ "nullable": null,
+ "types": [
+ "String"
+ ],
+ "spread": false,
+ "description": null
+ }
+ },
+ {
+ "__docId__": 430,
"kind": "method",
"static": false,
"variation": null,
@@ -9202,7 +9249,7 @@
"longname": "src/modules/help.js~Help#init",
"access": null,
"description": "Initialise Help instance",
- "lineNumber": 71,
+ "lineNumber": 126,
"unknown": [
{
"tagName": "@returns",
@@ -9221,7 +9268,7 @@
"generator": false
},
{
- "__docId__": 430,
+ "__docId__": 431,
"kind": "member",
"static": false,
"variation": null,
@@ -9230,25 +9277,7 @@
"longname": "src/modules/help.js~Help#cont",
"access": null,
"description": null,
- "lineNumber": 121,
- "undocument": true,
- "type": {
- "types": [
- "*"
- ]
- }
- },
- {
- "__docId__": 431,
- "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": 122,
+ "lineNumber": 176,
"undocument": true,
"type": {
"types": [
@@ -9261,58 +9290,12 @@
"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": 123,
- "undocument": true,
- "type": {
- "types": [
- "boolean"
- ]
- }
- },
- {
- "__docId__": 433,
- "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": 129,
- "params": [],
- "generator": false
- },
- {
- "__docId__": 434,
- "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": 146,
- "params": [],
- "generator": false
- },
- {
- "__docId__": 435,
- "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": 151,
+ "lineNumber": 177,
"undocument": true,
"type": {
"types": [
@@ -9320,17 +9303,68 @@
]
}
},
+ {
+ "__docId__": 433,
+ "kind": "member",
+ "static": false,
+ "variation": null,
+ "name": "initialized",
+ "memberof": "src/modules/help.js~Help",
+ "longname": "src/modules/help.js~Help#initialized",
+ "access": null,
+ "description": "",
+ "lineNumber": 181,
+ "unknown": [
+ {
+ "tagName": "@inherited",
+ "tagValue": ""
+ }
+ ],
+ "type": {
+ "types": [
+ "boolean"
+ ]
+ }
+ },
+ {
+ "__docId__": 434,
+ "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": 187,
+ "params": [],
+ "generator": false
+ },
+ {
+ "__docId__": 435,
+ "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": 204,
+ "params": [],
+ "generator": false
+ },
{
"__docId__": 436,
"kind": "member",
"static": false,
"variation": null,
- "name": "cont",
+ "name": "btn",
"memberof": "src/modules/help.js~Help",
- "longname": "src/modules/help.js~Help#cont",
+ "longname": "src/modules/help.js~Help#btn",
"access": null,
"description": null,
- "lineNumber": 156,
+ "lineNumber": 209,
"undocument": true,
"type": {
"types": [
@@ -9343,12 +9377,30 @@
"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": 214,
+ "undocument": true,
+ "type": {
+ "types": [
+ "*"
+ ]
+ }
+ },
+ {
+ "__docId__": 438,
+ "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": 157,
+ "lineNumber": 215,
"undocument": true,
"type": {
"types": [
@@ -9357,7 +9409,7 @@
}
},
{
- "__docId__": 438,
+ "__docId__": 439,
"kind": "file",
"static": true,
"variation": null,
@@ -9370,7 +9422,7 @@
"content": "import {createText, createElm, getText} from '../dom';\nimport {isArray} from '../types';\n\nexport class HighlightKeyword {\n\n /**\n * HighlightKeyword, highlight matched keyword\n * @param {Object} tf TableFilter instance\n */\n constructor(tf) {\n let f = tf.config();\n //defines css class for highlighting\n this.highlightCssClass = f.highlight_css_class || 'keyword';\n\n this.tf = tf;\n this.emitter = tf.emitter;\n }\n\n init() {\n this.emitter.on(\n ['before-filtering', 'destroy'],\n () => this.unhighlightAll()\n );\n this.emitter.on(\n ['highlight-keyword'],\n (tf, cell, word) =>\n this.highlight(cell, word, this.highlightCssClass)\n );\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 * TODO: refactor this method\n */\n highlight(node, word, cssClass) {\n // Iterate into this nodes childNodes\n if (node.hasChildNodes) {\n let children = node.childNodes;\n for (let i = 0; i < children.length; i++) {\n this.highlight(children[i], word, cssClass);\n }\n }\n\n if (node.nodeType === 3) {\n let tempNodeVal = node.nodeValue.toLowerCase();\n let tempWordVal = word.toLowerCase();\n if (tempNodeVal.indexOf(tempWordVal) !== -1) {\n let pn = node.parentNode;\n if (pn && pn.className !== cssClass) {\n // word not highlighted yet\n let nv = node.nodeValue,\n ni = tempNodeVal.indexOf(tempWordVal),\n // Create a load of replacement nodes\n before = createText(nv.substr(0, ni)),\n docWordVal = nv.substr(ni, word.length),\n after = createText(nv.substr(ni + word.length)),\n hiwordtext = createText(docWordVal),\n hiword = createElm('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 }\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 let highlightedNodes = this.tf.tbl.querySelectorAll(`.${cssClass}`);\n for (let i = 0; i < highlightedNodes.length; i++) {\n let n = highlightedNodes[i];\n let nodeVal = getText(n),\n tempNodeVal = nodeVal.toLowerCase(),\n tempWordVal = word.toLowerCase();\n\n if (tempNodeVal.indexOf(tempWordVal) !== -1) {\n n.parentNode.replaceChild(createText(nodeVal), n);\n }\n }\n }\n\n /**\n * Clear all occurrences of highlighted nodes\n */\n unhighlightAll() {\n if (!this.tf.highlightKeywords) {\n return;\n }\n // iterate filters values to unhighlight all values\n this.tf.getFiltersValue().forEach((val) => {\n if (isArray(val)) {\n val.forEach((item) =>\n this.unhighlight(item, this.highlightCssClass));\n } else {\n this.unhighlight(val, this.highlightCssClass);\n }\n });\n }\n\n destroy() {\n this.emitter.off(\n ['before-filtering', 'destroy'],\n () => this.unhighlightAll()\n );\n this.emitter.off(\n ['highlight-keyword'],\n (tf, cell, word) =>\n this.highlight(cell, word, this.highlightCssClass)\n );\n }\n}\n"
},
{
- "__docId__": 439,
+ "__docId__": 440,
"kind": "class",
"static": true,
"variation": null,
@@ -9387,7 +9439,7 @@
"interface": false
},
{
- "__docId__": 440,
+ "__docId__": 441,
"kind": "constructor",
"static": false,
"variation": null,
@@ -9412,7 +9464,7 @@
"generator": false
},
{
- "__docId__": 441,
+ "__docId__": 442,
"kind": "member",
"static": false,
"variation": null,
@@ -9430,7 +9482,7 @@
}
},
{
- "__docId__": 442,
+ "__docId__": 443,
"kind": "member",
"static": false,
"variation": null,
@@ -9448,7 +9500,7 @@
}
},
{
- "__docId__": 443,
+ "__docId__": 444,
"kind": "member",
"static": false,
"variation": null,
@@ -9466,7 +9518,7 @@
}
},
{
- "__docId__": 444,
+ "__docId__": 445,
"kind": "method",
"static": false,
"variation": null,
@@ -9481,7 +9533,7 @@
"generator": false
},
{
- "__docId__": 445,
+ "__docId__": 446,
"kind": "method",
"static": false,
"variation": null,
@@ -9526,7 +9578,7 @@
"generator": false
},
{
- "__docId__": 446,
+ "__docId__": 447,
"kind": "method",
"static": false,
"variation": null,
@@ -9561,7 +9613,7 @@
"generator": false
},
{
- "__docId__": 447,
+ "__docId__": 448,
"kind": "method",
"static": false,
"variation": null,
@@ -9575,7 +9627,7 @@
"generator": false
},
{
- "__docId__": 448,
+ "__docId__": 449,
"kind": "method",
"static": false,
"variation": null,
@@ -9590,7 +9642,7 @@
"generator": false
},
{
- "__docId__": 449,
+ "__docId__": 450,
"kind": "file",
"static": true,
"variation": null,
@@ -9603,7 +9655,7 @@
"content": "import {Feature} from '../feature';\nimport {createElm, createText, elm, removeElm} from '../dom';\nimport {isFn} from '../types';\nimport {root} from '../root';\nimport {NONE} from '../const';\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 let 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 = 250;\n //callback function before loader is displayed\n this.onShowLoader = isFn(f.on_show_loader) ? f.on_show_loader : null;\n //callback function after loader is closed\n this.onHideLoader = isFn(f.on_hide_loader) ? 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 let tf = this.tf;\n let emitter = this.emitter;\n\n let containerDiv = createElm('div', ['id', this.prfxLoader + tf.id]);\n containerDiv.className = this.loaderCssClass;\n\n let targetEl = !this.loaderTgtId ?\n tf.tbl.parentNode : elm(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(createText(this.loaderText));\n } else {\n this.loaderDiv.innerHTML = this.loaderHtml;\n }\n\n this.show(NONE);\n\n // Subscribe to events\n emitter.on([\n 'before-filtering',\n 'before-populating-filter',\n 'before-page-change',\n 'before-clearing-filters',\n 'before-page-length-change',\n 'before-reset-page',\n 'before-reset-page-length',\n 'before-loading-extensions',\n 'before-loading-themes'],\n () => this.show('')\n );\n emitter.on([\n 'after-filtering',\n 'after-populating-filter',\n 'after-page-change',\n 'after-clearing-filters',\n 'after-page-length-change',\n 'after-reset-page',\n 'after-reset-page-length',\n 'after-loading-extensions',\n 'after-loading-themes'],\n () => this.show(NONE)\n );\n\n this.initialized = true;\n }\n\n show(p) {\n if (!this.isEnabled()) {\n return;\n }\n\n let 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 let t = p === NONE ? this.loaderCloseDelay : 1;\n root.setTimeout(displayLoader, t);\n }\n\n destroy() {\n if (!this.initialized) {\n return;\n }\n\n let emitter = this.emitter;\n\n removeElm(this.loaderDiv);\n this.loaderDiv = null;\n\n // Unsubscribe to events\n emitter.off([\n 'before-filtering',\n 'before-populating-filter',\n 'before-page-change',\n 'before-clearing-filters',\n 'before-page-length-change',\n 'before-reset-page',\n 'before-reset-page-length',\n 'before-loading-extensions',\n 'before-loading-themes'],\n () => this.show('')\n );\n emitter.off([\n 'after-filtering',\n 'after-populating-filter',\n 'after-page-change',\n 'after-clearing-filters',\n 'after-page-length-change',\n 'after-reset-page',\n 'after-reset-page-length',\n 'after-loading-extensions',\n 'after-loading-themes'],\n () => this.show(NONE)\n );\n\n this.initialized = false;\n }\n}\n"
},
{
- "__docId__": 450,
+ "__docId__": 451,
"kind": "class",
"static": true,
"variation": null,
@@ -9623,7 +9675,7 @@
]
},
{
- "__docId__": 451,
+ "__docId__": 452,
"kind": "constructor",
"static": false,
"variation": null,
@@ -9648,7 +9700,7 @@
"generator": false
},
{
- "__docId__": 452,
+ "__docId__": 453,
"kind": "member",
"static": false,
"variation": null,
@@ -9666,7 +9718,7 @@
}
},
{
- "__docId__": 453,
+ "__docId__": 454,
"kind": "member",
"static": false,
"variation": null,
@@ -9684,7 +9736,7 @@
}
},
{
- "__docId__": 454,
+ "__docId__": 455,
"kind": "member",
"static": false,
"variation": null,
@@ -9702,7 +9754,7 @@
}
},
{
- "__docId__": 455,
+ "__docId__": 456,
"kind": "member",
"static": false,
"variation": null,
@@ -9720,7 +9772,7 @@
}
},
{
- "__docId__": 456,
+ "__docId__": 457,
"kind": "member",
"static": false,
"variation": null,
@@ -9738,7 +9790,7 @@
}
},
{
- "__docId__": 457,
+ "__docId__": 458,
"kind": "member",
"static": false,
"variation": null,
@@ -9756,7 +9808,7 @@
}
},
{
- "__docId__": 458,
+ "__docId__": 459,
"kind": "member",
"static": false,
"variation": null,
@@ -9774,7 +9826,7 @@
}
},
{
- "__docId__": 459,
+ "__docId__": 460,
"kind": "member",
"static": false,
"variation": null,
@@ -9792,7 +9844,7 @@
}
},
{
- "__docId__": 460,
+ "__docId__": 461,
"kind": "member",
"static": false,
"variation": null,
@@ -9810,7 +9862,7 @@
}
},
{
- "__docId__": 461,
+ "__docId__": 462,
"kind": "method",
"static": false,
"variation": null,
@@ -9825,7 +9877,7 @@
"generator": false
},
{
- "__docId__": 462,
+ "__docId__": 463,
"kind": "member",
"static": false,
"variation": null,
@@ -9843,7 +9895,7 @@
}
},
{
- "__docId__": 463,
+ "__docId__": 464,
"kind": "member",
"static": false,
"variation": null,
@@ -9861,7 +9913,7 @@
}
},
{
- "__docId__": 464,
+ "__docId__": 465,
"kind": "method",
"static": false,
"variation": null,
@@ -9883,7 +9935,7 @@
"generator": false
},
{
- "__docId__": 465,
+ "__docId__": 466,
"kind": "method",
"static": false,
"variation": null,
@@ -9898,7 +9950,7 @@
"generator": false
},
{
- "__docId__": 466,
+ "__docId__": 467,
"kind": "member",
"static": false,
"variation": null,
@@ -9916,7 +9968,7 @@
}
},
{
- "__docId__": 467,
+ "__docId__": 468,
"kind": "member",
"static": false,
"variation": null,
@@ -9934,7 +9986,7 @@
}
},
{
- "__docId__": 468,
+ "__docId__": 469,
"kind": "file",
"static": true,
"variation": null,
@@ -9947,7 +9999,7 @@
"content": "import {Feature} from '../feature';\nimport {createElm, elm, removeElm} from '../dom';\nimport {isEmpty, isFn} from '../types';\nimport {NONE} from '../const';\n\nexport class NoResults extends Feature {\n\n /**\n * No results message UI component\n * @param {Object} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'noResults');\n\n //configuration object\n let f = this.config.no_results_message;\n\n this.content = f.content || 'No results';\n this.customContainer = f.custom_container || null;\n this.customContainerId = f.custom_container_id || null;\n this.isExternal = !isEmpty(this.customContainer) ||\n !isEmpty(this.customContainerId);\n this.cssClass = f.css_class || 'no-results';\n\n this.cont = null;\n\n //callback before message is displayed\n this.onBeforeShowMsg = isFn(f.on_before_show_msg) ?\n f.on_before_show_msg : null;\n //callback after message is displayed\n this.onAfterShowMsg = isFn(f.on_after_show_msg) ?\n f.on_after_show_msg : null;\n //callback before message is hidden\n this.onBeforeHideMsg = isFn(f.on_before_hide_msg) ?\n f.on_before_hide_msg : null;\n //callback after message is hidden\n this.onAfterHideMsg = isFn(f.on_after_hide_msg) ?\n f.on_after_hide_msg : null;\n\n this.prfxNoResults = 'nores_';\n }\n\n init() {\n if (this.initialized) {\n return;\n }\n let tf = this.tf;\n let target = this.customContainer || elm(this.customContainerId) ||\n tf.tbl;\n\n //container\n let cont = createElm('div', ['id', this.prfxNoResults + tf.id]);\n cont.className = this.cssClass;\n cont.innerHTML = this.content;\n\n if (this.isExternal) {\n target.appendChild(cont);\n } else {\n target.parentNode.insertBefore(cont, target.nextSibling);\n }\n\n this.cont = cont;\n\n // subscribe to after-filtering event\n this.emitter.on(['after-filtering'], () => this.toggle());\n\n this.initialized = true;\n this.hide();\n }\n\n toggle() {\n if (this.tf.getValidRowsNb() > 0) {\n this.hide();\n } else {\n this.show();\n }\n }\n\n show() {\n if (!this.initialized || !this.isEnabled()) {\n return;\n }\n\n if (this.onBeforeShowMsg) {\n this.onBeforeShowMsg.call(null, this.tf, this);\n }\n\n this.setWidth();\n this.cont.style.display = 'block';\n\n if (this.onAfterShowMsg) {\n this.onAfterShowMsg.call(null, this.tf, this);\n }\n }\n\n hide() {\n if (!this.initialized || !this.isEnabled()) {\n return;\n }\n\n if (this.onBeforeHideMsg) {\n this.onBeforeHideMsg.call(null, this.tf, this);\n }\n\n this.cont.style.display = NONE;\n\n if (this.onBeforeHideMsg) {\n this.onBeforeHideMsg.call(null, this.tf, this);\n }\n }\n\n setWidth() {\n if (!this.initialized || this.isExternal || !this.isEnabled()) {\n return;\n }\n if (this.tf.gridLayout) {\n let gridLayout = this.tf.feature('gridLayout');\n this.cont.style.width = gridLayout.tblCont.clientWidth + 'px';\n } else {\n this.cont.style.width = this.tf.tbl.clientWidth + 'px';\n }\n\n }\n\n destroy() {\n if (!this.initialized) {\n return;\n }\n removeElm(this.cont);\n this.cont = null;\n // unsubscribe to after-filtering event\n this.emitter.off(['after-filtering'], () => this.toggle());\n\n this.initialized = false;\n }\n}\n"
},
{
- "__docId__": 469,
+ "__docId__": 470,
"kind": "class",
"static": true,
"variation": null,
@@ -9967,7 +10019,7 @@
]
},
{
- "__docId__": 470,
+ "__docId__": 471,
"kind": "constructor",
"static": false,
"variation": null,
@@ -9992,7 +10044,7 @@
"generator": false
},
{
- "__docId__": 471,
+ "__docId__": 472,
"kind": "member",
"static": false,
"variation": null,
@@ -10010,7 +10062,7 @@
}
},
{
- "__docId__": 472,
+ "__docId__": 473,
"kind": "member",
"static": false,
"variation": null,
@@ -10028,7 +10080,7 @@
}
},
{
- "__docId__": 473,
+ "__docId__": 474,
"kind": "member",
"static": false,
"variation": null,
@@ -10046,7 +10098,7 @@
}
},
{
- "__docId__": 474,
+ "__docId__": 475,
"kind": "member",
"static": false,
"variation": null,
@@ -10064,7 +10116,7 @@
}
},
{
- "__docId__": 475,
+ "__docId__": 476,
"kind": "member",
"static": false,
"variation": null,
@@ -10082,7 +10134,7 @@
}
},
{
- "__docId__": 476,
+ "__docId__": 477,
"kind": "member",
"static": false,
"variation": null,
@@ -10100,7 +10152,7 @@
}
},
{
- "__docId__": 477,
+ "__docId__": 478,
"kind": "member",
"static": false,
"variation": null,
@@ -10118,7 +10170,7 @@
}
},
{
- "__docId__": 478,
+ "__docId__": 479,
"kind": "member",
"static": false,
"variation": null,
@@ -10136,7 +10188,7 @@
}
},
{
- "__docId__": 479,
+ "__docId__": 480,
"kind": "member",
"static": false,
"variation": null,
@@ -10154,7 +10206,7 @@
}
},
{
- "__docId__": 480,
+ "__docId__": 481,
"kind": "member",
"static": false,
"variation": null,
@@ -10172,7 +10224,7 @@
}
},
{
- "__docId__": 481,
+ "__docId__": 482,
"kind": "member",
"static": false,
"variation": null,
@@ -10190,7 +10242,7 @@
}
},
{
- "__docId__": 482,
+ "__docId__": 483,
"kind": "method",
"static": false,
"variation": null,
@@ -10205,7 +10257,7 @@
"generator": false
},
{
- "__docId__": 483,
+ "__docId__": 484,
"kind": "member",
"static": false,
"variation": null,
@@ -10223,7 +10275,7 @@
}
},
{
- "__docId__": 484,
+ "__docId__": 485,
"kind": "member",
"static": false,
"variation": null,
@@ -10241,7 +10293,7 @@
}
},
{
- "__docId__": 485,
+ "__docId__": 486,
"kind": "method",
"static": false,
"variation": null,
@@ -10256,7 +10308,7 @@
"generator": false
},
{
- "__docId__": 486,
+ "__docId__": 487,
"kind": "method",
"static": false,
"variation": null,
@@ -10271,7 +10323,7 @@
"generator": false
},
{
- "__docId__": 487,
+ "__docId__": 488,
"kind": "method",
"static": false,
"variation": null,
@@ -10286,7 +10338,7 @@
"generator": false
},
{
- "__docId__": 488,
+ "__docId__": 489,
"kind": "method",
"static": false,
"variation": null,
@@ -10301,7 +10353,7 @@
"generator": false
},
{
- "__docId__": 489,
+ "__docId__": 490,
"kind": "method",
"static": false,
"variation": null,
@@ -10316,7 +10368,7 @@
"generator": false
},
{
- "__docId__": 490,
+ "__docId__": 491,
"kind": "member",
"static": false,
"variation": null,
@@ -10334,7 +10386,7 @@
}
},
{
- "__docId__": 491,
+ "__docId__": 492,
"kind": "member",
"static": false,
"variation": null,
@@ -10352,7 +10404,7 @@
}
},
{
- "__docId__": 492,
+ "__docId__": 493,
"kind": "file",
"static": true,
"variation": null,
@@ -10365,7 +10417,7 @@
"content": "import {Feature} from '../feature';\nimport {createElm, createOpt, createText, elm, removeElm} from '../dom';\nimport {isArray, isFn, isNull} from '../types';\nimport {addEvt, keyCode, removeEvt} from '../event';\nimport {INPUT, SELECT, NONE, ENTER_KEY} from '../const';\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 = 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 ' ');\n //defines previous page button html\n this.btnPrevPageHtml = f.btn_prev_page_html ||\n (!tf.enableIcons ? null :\n ' ');\n //defines last page button html\n this.btnFirstPageHtml = f.btn_first_page_html ||\n (!tf.enableIcons ? null :\n ' ');\n //defines previous page button html\n this.btnLastPageHtml = f.btn_last_page_html ||\n (!tf.enableIcons ? null :\n ' ');\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 || SELECT;\n //calls function before page is changed\n this.onBeforeChangePage = isFn(f.on_before_change_page) ?\n f.on_before_change_page : null;\n //calls function before page is changed\n this.onAfterChangePage = 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 = tf.refRow;\n var nrows = tf.getRowsNb(true);\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 === SELECT) ?\n o.pagingSlc.options.selectedIndex :\n parseInt(o.pagingSlc.value, 10) - 1;\n },\n nbOpts() {\n return (o.pageSelectorType === SELECT) ?\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 = keyCode(e);\n if (key === ENTER_KEY) {\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 === SELECT) {\n slcPages = createElm(SELECT, ['id', this.prfxSlcPages + tf.id]);\n slcPages.className = this.pgSlcCssClass;\n addEvt(slcPages, 'change', evt.slcPagesChange);\n }\n\n // Paging input selector\n if (this.pageSelectorType === INPUT) {\n slcPages = createElm(INPUT,\n ['id', this.prfxSlcPages + tf.id],\n ['value', this.currentPageNb]\n );\n slcPages.className = this.pgInpCssClass;\n addEvt(slcPages, 'keypress', evt._detectKey);\n }\n\n // btns containers\n var btnNextSpan = createElm(\n 'span', ['id', this.prfxBtnNextSpan + tf.id]);\n var btnPrevSpan = createElm(\n 'span', ['id', this.prfxBtnPrevSpan + tf.id]);\n var btnLastSpan = createElm(\n 'span', ['id', this.prfxBtnLastSpan + tf.id]);\n var btnFirstSpan = createElm(\n 'span', ['id', this.prfxBtnFirstSpan + tf.id]);\n\n if (this.hasPagingBtns) {\n // Next button\n if (!this.btnNextPageHtml) {\n var btn_next = createElm(INPUT,\n ['id', this.prfxBtnNext + tf.id],\n ['type', 'button'],\n ['value', this.btnNextPageText],\n ['title', 'Next']\n );\n btn_next.className = this.btnPageCssClass;\n addEvt(btn_next, 'click', evt.next);\n btnNextSpan.appendChild(btn_next);\n } else {\n btnNextSpan.innerHTML = this.btnNextPageHtml;\n addEvt(btnNextSpan, 'click', evt.next);\n }\n // Previous button\n if (!this.btnPrevPageHtml) {\n var btn_prev = createElm(INPUT,\n ['id', this.prfxBtnPrev + tf.id],\n ['type', 'button'],\n ['value', this.btnPrevPageText],\n ['title', 'Previous']\n );\n btn_prev.className = this.btnPageCssClass;\n addEvt(btn_prev, 'click', evt.prev);\n btnPrevSpan.appendChild(btn_prev);\n } else {\n btnPrevSpan.innerHTML = this.btnPrevPageHtml;\n addEvt(btnPrevSpan, 'click', evt.prev);\n }\n // Last button\n if (!this.btnLastPageHtml) {\n var btn_last = createElm(INPUT,\n ['id', this.prfxBtnLast + tf.id],\n ['type', 'button'],\n ['value', this.btnLastPageText],\n ['title', 'Last']\n );\n btn_last.className = this.btnPageCssClass;\n addEvt(btn_last, 'click', evt.last);\n btnLastSpan.appendChild(btn_last);\n } else {\n btnLastSpan.innerHTML = this.btnLastPageHtml;\n addEvt(btnLastSpan, 'click', evt.last);\n }\n // First button\n if (!this.btnFirstPageHtml) {\n var btn_first = createElm(INPUT,\n ['id', this.prfxBtnFirst + tf.id],\n ['type', 'button'],\n ['value', this.btnFirstPageText],\n ['title', 'First']\n );\n btn_first.className = this.btnPageCssClass;\n addEvt(btn_first, 'click', evt.first);\n btnFirstSpan.appendChild(btn_first);\n } else {\n btnFirstSpan.innerHTML = this.btnFirstPageHtml;\n addEvt(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 : elm(this.pagingTgtId);\n targetEl.appendChild(btnFirstSpan);\n targetEl.appendChild(btnPrevSpan);\n\n var pgBeforeSpan = createElm(\n 'span', ['id', this.prfxPgBeforeSpan + tf.id]);\n pgBeforeSpan.appendChild(createText(this.pageText));\n pgBeforeSpan.className = this.nbPgSpanCssClass;\n targetEl.appendChild(pgBeforeSpan);\n targetEl.appendChild(slcPages);\n var pgAfterSpan = createElm(\n 'span', ['id', this.prfxPgAfterSpan + tf.id]);\n pgAfterSpan.appendChild(createText(this.ofText));\n pgAfterSpan.className = this.nbPgSpanCssClass;\n targetEl.appendChild(pgAfterSpan);\n var pgspan = createElm('span', ['id', this.prfxPgSpan + tf.id]);\n pgspan.className = this.nbPgSpanCssClass;\n pgspan.appendChild(createText(' ' + this.nbPages + ' '));\n targetEl.appendChild(pgspan);\n targetEl.appendChild(btnNextSpan);\n targetEl.appendChild(btnLastSpan);\n this.pagingSlc = elm(this.prfxSlcPages + tf.id);\n\n this.setPagingInfo();\n\n if (!tf.fltGrid) {\n tf.validateAllRows();\n this.setPagingInfo(tf.validRowsIndex);\n }\n\n this.emitter.on(['after-filtering'], () => this.resetPagingInfo());\n this.emitter.on(['change-page'],\n (tf, pageNumber) => this.setPage(pageNumber));\n this.emitter.on(['change-page-results'],\n (tf, pageLength) => this.changeResultsPerPage(pageLength));\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 (this.isEnabled()) {\n return;\n }\n this.enable();\n this.init();\n\n if (filterTable) {\n tf.filter();\n }\n }\n\n /**\n * Reset paging info from scratch after a filtering process\n */\n resetPagingInfo() {\n this.startPagingRow = 0;\n this.currentPageNb = 1;\n this.setPagingInfo(this.tf.validRowsIndex);\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 mdiv = !this.pagingTgtId ? tf.mDiv : elm(this.pagingTgtId);\n var pgspan = elm(this.prfxPgSpan + tf.id);\n\n //store valid rows indexes\n tf.validRowsIndex = validRows || tf.getValidRows(true);\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 === SELECT) {\n this.pagingSlc.innerHTML = '';\n }\n\n if (this.nbPages > 0) {\n mdiv.style.visibility = 'visible';\n if (this.pageSelectorType === SELECT) {\n for (var z = 0; z < this.nbPages; z++) {\n var opt = 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 rows = tf.tbl.rows;\n var startPagingRow = parseInt(this.startPagingRow, 10);\n var endPagingRow = startPagingRow + 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.getValidRowsNb(true); h < len; h++) {\n var validRowIdx = tf.validRowsIndex[h];\n var r = rows[validRowIdx];\n var isRowValid = r.getAttribute('validRow');\n var rowDisplayed = false;\n\n if (h >= startPagingRow && h < endPagingRow) {\n if (isNull(isRowValid) || Boolean(isRowValid === 'true')) {\n r.style.display = '';\n rowDisplayed = true;\n }\n } else {\n r.style.display = NONE;\n }\n this.emitter.emit('row-paged', tf, validRowIdx, h, rowDisplayed);\n }\n\n // broadcast grouping by page\n this.emitter.emit('grouped-by-page', tf, this);\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 defined by passed argument (string or number):\n * @param {String}/{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.isInitialized() || !this.isEnabled()) {\n return;\n }\n var btnEvt = this.evt,\n cmdtype = typeof cmd;\n if (cmdtype === 'string') {\n switch (cmd.toLowerCase()) {\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 (this.resultsPerPageSlc || !this.resultsPerPage) {\n return;\n }\n\n evt.slcResultsChange = (ev) => {\n this.onChangeResultsPerPage();\n ev.target.blur();\n };\n\n var slcR = createElm(SELECT, ['id', this.prfxSlcResults + tf.id]);\n slcR.className = this.resultsSlcCssClass;\n var slcRText = this.resultsPerPage[0],\n slcROpts = this.resultsPerPage[1];\n var slcRSpan = createElm(\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 : elm(this.resultsPerPageTgtId);\n slcRSpan.appendChild(createText(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 addEvt(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.isInitialized() || !this.resultsPerPageSlc ||\n !this.resultsPerPage) {\n return;\n }\n var slcR = this.resultsPerPageSlc,\n slcRSpan = elm(this.prfxSlcResultsTxt + tf.id);\n if (slcR) {\n removeElm(slcR);\n }\n if (slcRSpan) {\n removeElm(slcRSpan);\n }\n this.resultsPerPageSlc = null;\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\n this.emitter.emit('before-page-change', tf, (index + 1));\n\n if (index === null) {\n index = this.pageSelectorType === SELECT ?\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 + 1));\n }\n this.currentPageNb = parseInt(index, 10) + 1;\n if (this.pageSelectorType === SELECT) {\n this.pagingSlc.options[index].selected = true;\n } else {\n this.pagingSlc.value = this.currentPageNb;\n }\n\n this.startPagingRow = (this.pageSelectorType === SELECT) ?\n this.pagingSlc.value : (index * this.pagingLength);\n\n this.groupByPage();\n\n if (this.onAfterChangePage) {\n this.onAfterChangePage.call(null, this, (index + 1));\n }\n }\n\n this.emitter.emit('after-page-change', tf, (index + 1));\n }\n\n changeResultsPerPage(val) {\n if (!this.isEnabled() || isNaN(val)) {\n return;\n }\n\n this.resultsPerPageSlc.value = val;\n this.onChangeResultsPerPage();\n }\n\n /**\n * Change rows according to page results drop-down\n */\n onChangeResultsPerPage() {\n var tf = this.tf;\n\n if (!this.isEnabled()) {\n return;\n }\n\n this.emitter.emit('before-page-length-change', tf);\n\n var slcR = this.resultsPerPageSlc;\n var slcIndex = slcR.selectedIndex;\n var slcPagesSelIndex = (this.pageSelectorType === SELECT) ?\n this.pagingSlc.selectedIndex :\n parseInt(this.pagingSlc.value - 1, 10);\n this.pagingLength = parseInt(slcR.options[slcIndex].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 === SELECT) {\n var slcIdx =\n (this.pagingSlc.options.length - 1 <= slcPagesSelIndex) ?\n (this.pagingSlc.options.length - 1) : slcPagesSelIndex;\n this.pagingSlc.options[slcIdx].selected = true;\n }\n }\n\n this.emitter.emit('after-page-length-change', tf, this.pagingLength);\n }\n\n /**\n * Re-set page nb at page re-load\n */\n resetPage() {\n var tf = this.tf;\n if (!this.isEnabled()) {\n return;\n }\n this.emitter.emit('before-reset-page', tf);\n var pgNb = tf.feature('store').getPageNb();\n if (pgNb !== '') {\n this.changePage((pgNb - 1));\n }\n this.emitter.emit('after-reset-page', tf, pgNb);\n }\n\n /**\n * Re-set page length value at page re-load\n */\n resetPageLength() {\n var tf = this.tf;\n if (!this.isEnabled()) {\n return;\n }\n this.emitter.emit('before-reset-page-length', tf);\n var pglenIndex = tf.feature('store').getPageLength();\n\n if (pglenIndex !== '') {\n this.resultsPerPageSlc.options[pglenIndex].selected = true;\n this.changeResultsPerPage();\n }\n this.emitter.emit('after-reset-page-length', tf, pglenIndex);\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 = elm(this.prfxBtnNextSpan + tf.id);\n var btnPrevSpan = elm(this.prfxBtnPrevSpan + tf.id);\n var btnLastSpan = elm(this.prfxBtnLastSpan + tf.id);\n var btnFirstSpan = elm(this.prfxBtnFirstSpan + tf.id);\n //span containing 'Page' text\n var pgBeforeSpan = elm(this.prfxPgBeforeSpan + tf.id);\n //span containing 'of' text\n var pgAfterSpan = elm(this.prfxPgAfterSpan + tf.id);\n //span containing nb of pages\n var pgspan = elm(this.prfxPgSpan + tf.id);\n\n var evt = this.evt;\n\n if (this.pagingSlc) {\n if (this.pageSelectorType === SELECT) {\n removeEvt(this.pagingSlc, 'change', evt.slcPagesChange);\n }\n else if (this.pageSelectorType === INPUT) {\n removeEvt(this.pagingSlc, 'keypress', evt._detectKey);\n }\n removeElm(this.pagingSlc);\n }\n\n if (btnNextSpan) {\n removeEvt(btnNextSpan, 'click', evt.next);\n removeElm(btnNextSpan);\n }\n\n if (btnPrevSpan) {\n removeEvt(btnPrevSpan, 'click', evt.prev);\n removeElm(btnPrevSpan);\n }\n\n if (btnLastSpan) {\n removeEvt(btnLastSpan, 'click', evt.last);\n removeElm(btnLastSpan);\n }\n\n if (btnFirstSpan) {\n removeEvt(btnFirstSpan, 'click', evt.first);\n removeElm(btnFirstSpan);\n }\n\n if (pgBeforeSpan) {\n removeElm(pgBeforeSpan);\n }\n\n if (pgAfterSpan) {\n removeElm(pgAfterSpan);\n }\n\n if (pgspan) {\n removeElm(pgspan);\n }\n\n if (this.hasResultsPerPage) {\n this.removeResultsPerPage();\n }\n\n this.emitter.off(['after-filtering'], () => this.resetPagingInfo());\n this.emitter.off(['change-page'],\n (tf, pageNumber) => this.setPage(pageNumber));\n this.emitter.off(['change-page-results'],\n (tf, pageLength) => this.changeResultsPerPage(pageLength));\n\n this.pagingSlc = null;\n this.nbPages = 0;\n this.disable();\n this.initialized = false;\n }\n}\n"
},
{
- "__docId__": 493,
+ "__docId__": 494,
"kind": "class",
"static": true,
"variation": null,
@@ -10385,7 +10437,7 @@
]
},
{
- "__docId__": 494,
+ "__docId__": 495,
"kind": "constructor",
"static": false,
"variation": null,
@@ -10410,7 +10462,7 @@
"generator": false
},
{
- "__docId__": 495,
+ "__docId__": 496,
"kind": "member",
"static": false,
"variation": null,
@@ -10428,7 +10480,7 @@
}
},
{
- "__docId__": 496,
+ "__docId__": 497,
"kind": "member",
"static": false,
"variation": null,
@@ -10446,7 +10498,7 @@
}
},
{
- "__docId__": 497,
+ "__docId__": 498,
"kind": "member",
"static": false,
"variation": null,
@@ -10464,7 +10516,7 @@
}
},
{
- "__docId__": 498,
+ "__docId__": 499,
"kind": "member",
"static": false,
"variation": null,
@@ -10482,7 +10534,7 @@
}
},
{
- "__docId__": 499,
+ "__docId__": 500,
"kind": "member",
"static": false,
"variation": null,
@@ -10500,7 +10552,7 @@
}
},
{
- "__docId__": 500,
+ "__docId__": 501,
"kind": "member",
"static": false,
"variation": null,
@@ -10518,7 +10570,7 @@
}
},
{
- "__docId__": 501,
+ "__docId__": 502,
"kind": "member",
"static": false,
"variation": null,
@@ -10536,7 +10588,7 @@
}
},
{
- "__docId__": 502,
+ "__docId__": 503,
"kind": "member",
"static": false,
"variation": null,
@@ -10554,7 +10606,7 @@
}
},
{
- "__docId__": 503,
+ "__docId__": 504,
"kind": "member",
"static": false,
"variation": null,
@@ -10572,7 +10624,7 @@
}
},
{
- "__docId__": 504,
+ "__docId__": 505,
"kind": "member",
"static": false,
"variation": null,
@@ -10590,7 +10642,7 @@
}
},
{
- "__docId__": 505,
+ "__docId__": 506,
"kind": "member",
"static": false,
"variation": null,
@@ -10608,7 +10660,7 @@
}
},
{
- "__docId__": 506,
+ "__docId__": 507,
"kind": "member",
"static": false,
"variation": null,
@@ -10626,7 +10678,7 @@
}
},
{
- "__docId__": 507,
+ "__docId__": 508,
"kind": "member",
"static": false,
"variation": null,
@@ -10644,7 +10696,7 @@
}
},
{
- "__docId__": 508,
+ "__docId__": 509,
"kind": "member",
"static": false,
"variation": null,
@@ -10662,7 +10714,7 @@
}
},
{
- "__docId__": 509,
+ "__docId__": 510,
"kind": "member",
"static": false,
"variation": null,
@@ -10680,7 +10732,7 @@
}
},
{
- "__docId__": 510,
+ "__docId__": 511,
"kind": "member",
"static": false,
"variation": null,
@@ -10698,7 +10750,7 @@
}
},
{
- "__docId__": 511,
+ "__docId__": 512,
"kind": "member",
"static": false,
"variation": null,
@@ -10716,7 +10768,7 @@
}
},
{
- "__docId__": 512,
+ "__docId__": 513,
"kind": "member",
"static": false,
"variation": null,
@@ -10734,7 +10786,7 @@
}
},
{
- "__docId__": 513,
+ "__docId__": 514,
"kind": "member",
"static": false,
"variation": null,
@@ -10752,7 +10804,7 @@
}
},
{
- "__docId__": 514,
+ "__docId__": 515,
"kind": "member",
"static": false,
"variation": null,
@@ -10770,7 +10822,7 @@
}
},
{
- "__docId__": 515,
+ "__docId__": 516,
"kind": "member",
"static": false,
"variation": null,
@@ -10788,7 +10840,7 @@
}
},
{
- "__docId__": 516,
+ "__docId__": 517,
"kind": "member",
"static": false,
"variation": null,
@@ -10806,7 +10858,7 @@
}
},
{
- "__docId__": 517,
+ "__docId__": 518,
"kind": "member",
"static": false,
"variation": null,
@@ -10824,7 +10876,7 @@
}
},
{
- "__docId__": 518,
+ "__docId__": 519,
"kind": "member",
"static": false,
"variation": null,
@@ -10842,7 +10894,7 @@
}
},
{
- "__docId__": 519,
+ "__docId__": 520,
"kind": "member",
"static": false,
"variation": null,
@@ -10860,7 +10912,7 @@
}
},
{
- "__docId__": 520,
+ "__docId__": 521,
"kind": "member",
"static": false,
"variation": null,
@@ -10878,7 +10930,7 @@
}
},
{
- "__docId__": 521,
+ "__docId__": 522,
"kind": "member",
"static": false,
"variation": null,
@@ -10896,7 +10948,7 @@
}
},
{
- "__docId__": 522,
+ "__docId__": 523,
"kind": "member",
"static": false,
"variation": null,
@@ -10914,7 +10966,7 @@
}
},
{
- "__docId__": 523,
+ "__docId__": 524,
"kind": "member",
"static": false,
"variation": null,
@@ -10932,7 +10984,7 @@
}
},
{
- "__docId__": 524,
+ "__docId__": 525,
"kind": "member",
"static": false,
"variation": null,
@@ -10950,7 +11002,7 @@
}
},
{
- "__docId__": 525,
+ "__docId__": 526,
"kind": "member",
"static": false,
"variation": null,
@@ -10968,7 +11020,7 @@
}
},
{
- "__docId__": 526,
+ "__docId__": 527,
"kind": "member",
"static": false,
"variation": null,
@@ -10986,7 +11038,7 @@
}
},
{
- "__docId__": 527,
+ "__docId__": 528,
"kind": "member",
"static": false,
"variation": null,
@@ -11004,7 +11056,7 @@
}
},
{
- "__docId__": 528,
+ "__docId__": 529,
"kind": "member",
"static": false,
"variation": null,
@@ -11022,7 +11074,7 @@
}
},
{
- "__docId__": 529,
+ "__docId__": 530,
"kind": "member",
"static": false,
"variation": null,
@@ -11040,7 +11092,7 @@
}
},
{
- "__docId__": 530,
+ "__docId__": 531,
"kind": "member",
"static": false,
"variation": null,
@@ -11058,7 +11110,7 @@
}
},
{
- "__docId__": 531,
+ "__docId__": 532,
"kind": "member",
"static": false,
"variation": null,
@@ -11076,7 +11128,7 @@
}
},
{
- "__docId__": 532,
+ "__docId__": 533,
"kind": "member",
"static": false,
"variation": null,
@@ -11094,7 +11146,7 @@
}
},
{
- "__docId__": 533,
+ "__docId__": 534,
"kind": "member",
"static": false,
"variation": null,
@@ -11112,7 +11164,7 @@
}
},
{
- "__docId__": 534,
+ "__docId__": 535,
"kind": "member",
"static": false,
"variation": null,
@@ -11130,7 +11182,7 @@
}
},
{
- "__docId__": 535,
+ "__docId__": 536,
"kind": "member",
"static": false,
"variation": null,
@@ -11148,7 +11200,7 @@
}
},
{
- "__docId__": 536,
+ "__docId__": 537,
"kind": "member",
"static": false,
"variation": null,
@@ -11166,7 +11218,7 @@
}
},
{
- "__docId__": 537,
+ "__docId__": 538,
"kind": "member",
"static": false,
"variation": null,
@@ -11184,7 +11236,7 @@
}
},
{
- "__docId__": 538,
+ "__docId__": 539,
"kind": "member",
"static": false,
"variation": null,
@@ -11202,7 +11254,7 @@
}
},
{
- "__docId__": 539,
+ "__docId__": 540,
"kind": "member",
"static": false,
"variation": null,
@@ -11220,7 +11272,7 @@
}
},
{
- "__docId__": 540,
+ "__docId__": 541,
"kind": "member",
"static": false,
"variation": null,
@@ -11238,7 +11290,7 @@
}
},
{
- "__docId__": 541,
+ "__docId__": 542,
"kind": "method",
"static": false,
"variation": null,
@@ -11252,7 +11304,7 @@
"generator": false
},
{
- "__docId__": 542,
+ "__docId__": 543,
"kind": "member",
"static": false,
"variation": null,
@@ -11270,7 +11322,7 @@
}
},
{
- "__docId__": 543,
+ "__docId__": 544,
"kind": "member",
"static": false,
"variation": null,
@@ -11288,7 +11340,7 @@
}
},
{
- "__docId__": 544,
+ "__docId__": 545,
"kind": "member",
"static": false,
"variation": null,
@@ -11306,7 +11358,7 @@
}
},
{
- "__docId__": 545,
+ "__docId__": 546,
"kind": "member",
"static": false,
"variation": null,
@@ -11324,7 +11376,7 @@
}
},
{
- "__docId__": 546,
+ "__docId__": 547,
"kind": "method",
"static": false,
"variation": null,
@@ -11349,7 +11401,7 @@
"generator": false
},
{
- "__docId__": 547,
+ "__docId__": 548,
"kind": "method",
"static": false,
"variation": null,
@@ -11363,7 +11415,7 @@
"generator": false
},
{
- "__docId__": 548,
+ "__docId__": 549,
"kind": "member",
"static": false,
"variation": null,
@@ -11381,7 +11433,7 @@
}
},
{
- "__docId__": 549,
+ "__docId__": 550,
"kind": "member",
"static": false,
"variation": null,
@@ -11399,7 +11451,7 @@
}
},
{
- "__docId__": 550,
+ "__docId__": 551,
"kind": "method",
"static": false,
"variation": null,
@@ -11424,7 +11476,7 @@
"generator": false
},
{
- "__docId__": 551,
+ "__docId__": 552,
"kind": "member",
"static": false,
"variation": null,
@@ -11442,7 +11494,7 @@
}
},
{
- "__docId__": 552,
+ "__docId__": 553,
"kind": "method",
"static": false,
"variation": null,
@@ -11467,7 +11519,7 @@
"generator": false
},
{
- "__docId__": 553,
+ "__docId__": 554,
"kind": "method",
"static": false,
"variation": null,
@@ -11489,7 +11541,7 @@
"generator": false
},
{
- "__docId__": 554,
+ "__docId__": 555,
"kind": "method",
"static": false,
"variation": null,
@@ -11514,7 +11566,7 @@
"generator": false
},
{
- "__docId__": 555,
+ "__docId__": 556,
"kind": "method",
"static": false,
"variation": null,
@@ -11528,7 +11580,7 @@
"generator": false
},
{
- "__docId__": 556,
+ "__docId__": 557,
"kind": "member",
"static": false,
"variation": null,
@@ -11546,7 +11598,7 @@
}
},
{
- "__docId__": 557,
+ "__docId__": 558,
"kind": "method",
"static": false,
"variation": null,
@@ -11560,7 +11612,7 @@
"generator": false
},
{
- "__docId__": 558,
+ "__docId__": 559,
"kind": "member",
"static": false,
"variation": null,
@@ -11578,7 +11630,7 @@
}
},
{
- "__docId__": 559,
+ "__docId__": 560,
"kind": "method",
"static": false,
"variation": null,
@@ -11603,7 +11655,7 @@
"generator": false
},
{
- "__docId__": 560,
+ "__docId__": 561,
"kind": "member",
"static": false,
"variation": null,
@@ -11621,7 +11673,7 @@
}
},
{
- "__docId__": 561,
+ "__docId__": 562,
"kind": "member",
"static": false,
"variation": null,
@@ -11639,7 +11691,7 @@
}
},
{
- "__docId__": 562,
+ "__docId__": 563,
"kind": "method",
"static": false,
"variation": null,
@@ -11661,7 +11713,7 @@
"generator": false
},
{
- "__docId__": 563,
+ "__docId__": 564,
"kind": "method",
"static": false,
"variation": null,
@@ -11675,7 +11727,7 @@
"generator": false
},
{
- "__docId__": 564,
+ "__docId__": 565,
"kind": "member",
"static": false,
"variation": null,
@@ -11693,7 +11745,7 @@
}
},
{
- "__docId__": 565,
+ "__docId__": 566,
"kind": "member",
"static": false,
"variation": null,
@@ -11711,7 +11763,7 @@
}
},
{
- "__docId__": 566,
+ "__docId__": 567,
"kind": "member",
"static": false,
"variation": null,
@@ -11729,7 +11781,7 @@
}
},
{
- "__docId__": 567,
+ "__docId__": 568,
"kind": "method",
"static": false,
"variation": null,
@@ -11743,7 +11795,7 @@
"generator": false
},
{
- "__docId__": 568,
+ "__docId__": 569,
"kind": "method",
"static": false,
"variation": null,
@@ -11757,7 +11809,7 @@
"generator": false
},
{
- "__docId__": 569,
+ "__docId__": 570,
"kind": "method",
"static": false,
"variation": null,
@@ -11771,7 +11823,7 @@
"generator": false
},
{
- "__docId__": 570,
+ "__docId__": 571,
"kind": "member",
"static": false,
"variation": null,
@@ -11789,7 +11841,7 @@
}
},
{
- "__docId__": 571,
+ "__docId__": 572,
"kind": "member",
"static": false,
"variation": null,
@@ -11807,7 +11859,7 @@
}
},
{
- "__docId__": 572,
+ "__docId__": 573,
"kind": "member",
"static": false,
"variation": null,
@@ -11825,7 +11877,7 @@
}
},
{
- "__docId__": 573,
+ "__docId__": 574,
"kind": "file",
"static": true,
"variation": null,
@@ -11838,7 +11890,7 @@
"content": "import {Feature} from '../feature';\nimport {isFn} from '../types';\nimport {createElm, removeElm} from '../dom';\nimport {addEvt, cancelEvt, stopEvt, targetEvt} from '../event';\nimport {INPUT, NONE} from '../const';\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 let f = this.config;\n\n // Enable external filters\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 '  ';\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 = 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 = 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 = 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 = 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(evt) {\n let elm = targetEvt(evt).parentNode,\n colIndex = parseInt(elm.getAttribute('ci'), 10);\n\n this.closeAll(colIndex);\n this.toggle(colIndex);\n\n if (this.popUpFltAdjustToContainer) {\n let 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 cancelEvt(evt);\n stopEvt(evt);\n }\n\n /**\n * Initialize DOM elements\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n let tf = this.tf;\n\n // Override headers row index if no grouped headers\n if (tf.headersRow <= 1) {\n tf.headersRow = 0;\n }\n\n for (let i = 0; i < tf.nbCells; i++) {\n if (tf.getFilterType(i) === NONE) {\n continue;\n }\n let popUpSpan = createElm(\n 'span',\n ['id', this.prfxPopUpSpan + tf.id + '_' + i],\n ['ci', i]\n );\n popUpSpan.innerHTML = this.popUpImgFltHtml;\n let header = tf.getHeaderElement(i);\n header.appendChild(popUpSpan);\n addEvt(popUpSpan, 'click', (evt) => this.onClick(evt));\n this.popUpFltSpans[i] = popUpSpan;\n this.popUpFltImgs[i] = popUpSpan.firstChild;\n }\n\n // subscribe to events\n this.emitter.on(['before-filtering'], () => this.buildIcons());\n this.emitter.on(['after-filtering'], () => this.closeAll());\n this.emitter.on(['cell-processed'],\n (tf, cellIndex) => this.buildIcon(cellIndex, true));\n this.emitter.on(['filters-row-inserted'], () => this.tf.headersRow++);\n this.emitter.on(['before-filter-init'],\n (tf, colIndex) => this.build(colIndex));\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 (let 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 let tf = this.tf;\n let popUpDiv = !div ?\n createElm('div',\n ['id', this.prfxPopUpDiv + tf.id + '_' + colIndex]) :\n div;\n popUpDiv.className = this.popUpDivCssClass;\n tf.externalFltTgtIds.push(popUpDiv.id);\n let header = tf.getHeaderElement(colIndex);\n header.insertBefore(popUpDiv, header.firstChild);\n addEvt(popUpDiv, 'click', (evt) => stopEvt(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 let 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) === INPUT) {\n let 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 (let i = 0; i < this.popUpFltElms.length; i++) {\n if (i === exceptIdx) {\n continue;\n }\n let 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 (let i = 0; i < this.popUpFltImgs.length; i++) {\n this.buildIcon(i, false);\n }\n }\n\n /**\n * Apply specified icon state\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 (let i = 0; i < this.popUpFltElms.length; i++) {\n let popUpFltElm = this.popUpFltElms[i],\n popUpFltSpan = this.popUpFltSpans[i],\n popUpFltImg = this.popUpFltImgs[i];\n if (popUpFltElm) {\n removeElm(popUpFltElm);\n this.popUpFltElmCache[i] = popUpFltElm;\n }\n popUpFltElm = null;\n if (popUpFltSpan) {\n removeElm(popUpFltSpan);\n }\n popUpFltSpan = null;\n if (popUpFltImg) {\n removeElm(popUpFltImg);\n }\n popUpFltImg = null;\n }\n this.popUpFltElms = [];\n this.popUpFltSpans = [];\n this.popUpFltImgs = [];\n\n // unsubscribe to events\n this.emitter.off(['before-filtering'], () => this.buildIcons());\n this.emitter.off(['after-filtering'], () => this.closeAll());\n this.emitter.off(['cell-processed'],\n (tf, cellIndex) => this.buildIcon(cellIndex, true));\n this.emitter.off(['filters-row-inserted'], () => this.tf.headersRow++);\n this.emitter.off(['before-filter-init'],\n (tf, colIndex) => this.build(colIndex));\n\n this.initialized = false;\n }\n\n}\n"
},
{
- "__docId__": 574,
+ "__docId__": 575,
"kind": "class",
"static": true,
"variation": null,
@@ -11858,7 +11910,7 @@
]
},
{
- "__docId__": 575,
+ "__docId__": 576,
"kind": "constructor",
"static": false,
"variation": null,
@@ -11883,7 +11935,7 @@
"generator": false
},
{
- "__docId__": 576,
+ "__docId__": 577,
"kind": "member",
"static": false,
"variation": null,
@@ -11901,7 +11953,7 @@
}
},
{
- "__docId__": 577,
+ "__docId__": 578,
"kind": "member",
"static": false,
"variation": null,
@@ -11919,7 +11971,7 @@
}
},
{
- "__docId__": 578,
+ "__docId__": 579,
"kind": "member",
"static": false,
"variation": null,
@@ -11937,7 +11989,7 @@
}
},
{
- "__docId__": 579,
+ "__docId__": 580,
"kind": "member",
"static": false,
"variation": null,
@@ -11955,7 +12007,7 @@
}
},
{
- "__docId__": 580,
+ "__docId__": 581,
"kind": "member",
"static": false,
"variation": null,
@@ -11973,7 +12025,7 @@
}
},
{
- "__docId__": 581,
+ "__docId__": 582,
"kind": "member",
"static": false,
"variation": null,
@@ -11991,7 +12043,7 @@
}
},
{
- "__docId__": 582,
+ "__docId__": 583,
"kind": "member",
"static": false,
"variation": null,
@@ -12009,7 +12061,7 @@
}
},
{
- "__docId__": 583,
+ "__docId__": 584,
"kind": "member",
"static": false,
"variation": null,
@@ -12027,7 +12079,7 @@
}
},
{
- "__docId__": 584,
+ "__docId__": 585,
"kind": "member",
"static": false,
"variation": null,
@@ -12045,7 +12097,7 @@
}
},
{
- "__docId__": 585,
+ "__docId__": 586,
"kind": "member",
"static": false,
"variation": null,
@@ -12063,7 +12115,7 @@
}
},
{
- "__docId__": 586,
+ "__docId__": 587,
"kind": "member",
"static": false,
"variation": null,
@@ -12081,7 +12133,7 @@
}
},
{
- "__docId__": 587,
+ "__docId__": 588,
"kind": "member",
"static": false,
"variation": null,
@@ -12099,7 +12151,7 @@
}
},
{
- "__docId__": 588,
+ "__docId__": 589,
"kind": "member",
"static": false,
"variation": null,
@@ -12117,7 +12169,7 @@
}
},
{
- "__docId__": 589,
+ "__docId__": 590,
"kind": "member",
"static": false,
"variation": null,
@@ -12135,7 +12187,7 @@
}
},
{
- "__docId__": 590,
+ "__docId__": 591,
"kind": "method",
"static": false,
"variation": null,
@@ -12157,7 +12209,7 @@
"generator": false
},
{
- "__docId__": 591,
+ "__docId__": 592,
"kind": "method",
"static": false,
"variation": null,
@@ -12171,7 +12223,7 @@
"generator": false
},
{
- "__docId__": 592,
+ "__docId__": 593,
"kind": "member",
"static": false,
"variation": null,
@@ -12189,7 +12241,7 @@
}
},
{
- "__docId__": 593,
+ "__docId__": 594,
"kind": "method",
"static": false,
"variation": null,
@@ -12203,7 +12255,7 @@
"generator": false
},
{
- "__docId__": 594,
+ "__docId__": 595,
"kind": "method",
"static": false,
"variation": null,
@@ -12217,7 +12269,7 @@
"generator": false
},
{
- "__docId__": 595,
+ "__docId__": 596,
"kind": "method",
"static": false,
"variation": null,
@@ -12252,7 +12304,7 @@
"generator": false
},
{
- "__docId__": 596,
+ "__docId__": 597,
"kind": "method",
"static": false,
"variation": null,
@@ -12277,7 +12329,7 @@
"generator": false
},
{
- "__docId__": 597,
+ "__docId__": 598,
"kind": "method",
"static": false,
"variation": null,
@@ -12302,7 +12354,7 @@
"generator": false
},
{
- "__docId__": 598,
+ "__docId__": 599,
"kind": "method",
"static": false,
"variation": null,
@@ -12316,7 +12368,7 @@
"generator": false
},
{
- "__docId__": 599,
+ "__docId__": 600,
"kind": "method",
"static": false,
"variation": null,
@@ -12351,7 +12403,7 @@
"generator": false
},
{
- "__docId__": 600,
+ "__docId__": 601,
"kind": "method",
"static": false,
"variation": null,
@@ -12365,7 +12417,7 @@
"generator": false
},
{
- "__docId__": 601,
+ "__docId__": 602,
"kind": "member",
"static": false,
"variation": null,
@@ -12383,7 +12435,7 @@
}
},
{
- "__docId__": 602,
+ "__docId__": 603,
"kind": "member",
"static": false,
"variation": null,
@@ -12401,7 +12453,7 @@
}
},
{
- "__docId__": 603,
+ "__docId__": 604,
"kind": "member",
"static": false,
"variation": null,
@@ -12419,7 +12471,7 @@
}
},
{
- "__docId__": 604,
+ "__docId__": 605,
"kind": "member",
"static": false,
"variation": null,
@@ -12437,7 +12489,7 @@
}
},
{
- "__docId__": 605,
+ "__docId__": 606,
"kind": "member",
"static": false,
"variation": null,
@@ -12455,7 +12507,7 @@
}
},
{
- "__docId__": 606,
+ "__docId__": 607,
"kind": "file",
"static": true,
"variation": null,
@@ -12468,7 +12520,7 @@
"content": "import {Feature} from '../feature';\nimport {createElm, createText, elm, removeElm} from '../dom';\nimport {isFn} 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 = isFn(f.on_before_refresh_counter) ?\n f.on_before_refresh_counter : null;\n //callback raised after counter is refreshed\n this.onAfterRefreshCounter = 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 = createElm('div', ['id', this.prfxCounter + tf.id]);\n countDiv.className = this.totRowsCssClass;\n //rows counter label\n var countSpan = createElm('span', ['id', this.prfxTotRows + tf.id]);\n var countText = createElm('span', ['id', this.prfxTotRowsTxt + tf.id]);\n countText.appendChild(createText(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 : elm(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 // subscribe to events\n this.emitter.on(['after-filtering', 'grouped-by-page'],\n () => this.refresh(tf.getValidRowsNb()));\n this.emitter.on(['rows-changed'], () => this.refresh());\n\n this.initialized = true;\n this.refresh();\n }\n\n refresh(p) {\n if (!this.initialized || !this.isEnabled()) {\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.getFilterableRowsNb() - tf.nbHiddenRows;\n }\n } else {\n var paging = tf.feature('paging');\n if (paging) {\n //paging start row\n var pagingStartRow = parseInt(paging.startPagingRow, 10) +\n ((tf.getValidRowsNb() > 0) ? 1 : 0);\n var pagingEndRow =\n (pagingStartRow + paging.pagingLength) - 1 <=\n tf.getValidRowsNb() ?\n pagingStartRow + paging.pagingLength - 1 :\n tf.getValidRowsNb();\n totTxt = pagingStartRow + this.fromToTextSeparator +\n pagingEndRow + this.overText + tf.getValidRowsNb();\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 removeElm(this.rowsCounterDiv);\n } else {\n elm(this.rowsCounterTgtId).innerHTML = '';\n }\n this.rowsCounterSpan = null;\n this.rowsCounterDiv = null;\n\n // unsubscribe to events\n this.emitter.off(['after-filtering', 'grouped-by-page'],\n () => this.refresh(tf.getValidRowsNb()));\n this.emitter.off(['rows-changed'], () => this.refresh());\n\n this.initialized = false;\n }\n}\n"
},
{
- "__docId__": 607,
+ "__docId__": 608,
"kind": "class",
"static": true,
"variation": null,
@@ -12488,7 +12540,7 @@
]
},
{
- "__docId__": 608,
+ "__docId__": 609,
"kind": "constructor",
"static": false,
"variation": null,
@@ -12513,7 +12565,7 @@
"generator": false
},
{
- "__docId__": 609,
+ "__docId__": 610,
"kind": "member",
"static": false,
"variation": null,
@@ -12531,7 +12583,7 @@
}
},
{
- "__docId__": 610,
+ "__docId__": 611,
"kind": "member",
"static": false,
"variation": null,
@@ -12549,7 +12601,7 @@
}
},
{
- "__docId__": 611,
+ "__docId__": 612,
"kind": "member",
"static": false,
"variation": null,
@@ -12567,7 +12619,7 @@
}
},
{
- "__docId__": 612,
+ "__docId__": 613,
"kind": "member",
"static": false,
"variation": null,
@@ -12585,7 +12637,7 @@
}
},
{
- "__docId__": 613,
+ "__docId__": 614,
"kind": "member",
"static": false,
"variation": null,
@@ -12603,7 +12655,7 @@
}
},
{
- "__docId__": 614,
+ "__docId__": 615,
"kind": "member",
"static": false,
"variation": null,
@@ -12621,7 +12673,7 @@
}
},
{
- "__docId__": 615,
+ "__docId__": 616,
"kind": "member",
"static": false,
"variation": null,
@@ -12639,7 +12691,7 @@
}
},
{
- "__docId__": 616,
+ "__docId__": 617,
"kind": "member",
"static": false,
"variation": null,
@@ -12657,7 +12709,7 @@
}
},
{
- "__docId__": 617,
+ "__docId__": 618,
"kind": "member",
"static": false,
"variation": null,
@@ -12675,7 +12727,7 @@
}
},
{
- "__docId__": 618,
+ "__docId__": 619,
"kind": "member",
"static": false,
"variation": null,
@@ -12693,7 +12745,7 @@
}
},
{
- "__docId__": 619,
+ "__docId__": 620,
"kind": "member",
"static": false,
"variation": null,
@@ -12711,7 +12763,7 @@
}
},
{
- "__docId__": 620,
+ "__docId__": 621,
"kind": "member",
"static": false,
"variation": null,
@@ -12729,7 +12781,7 @@
}
},
{
- "__docId__": 621,
+ "__docId__": 622,
"kind": "method",
"static": false,
"variation": null,
@@ -12744,7 +12796,7 @@
"generator": false
},
{
- "__docId__": 622,
+ "__docId__": 623,
"kind": "member",
"static": false,
"variation": null,
@@ -12762,7 +12814,7 @@
}
},
{
- "__docId__": 623,
+ "__docId__": 624,
"kind": "member",
"static": false,
"variation": null,
@@ -12780,7 +12832,7 @@
}
},
{
- "__docId__": 624,
+ "__docId__": 625,
"kind": "member",
"static": false,
"variation": null,
@@ -12798,7 +12850,7 @@
}
},
{
- "__docId__": 625,
+ "__docId__": 626,
"kind": "method",
"static": false,
"variation": null,
@@ -12820,7 +12872,7 @@
"generator": false
},
{
- "__docId__": 626,
+ "__docId__": 627,
"kind": "method",
"static": false,
"variation": null,
@@ -12835,7 +12887,7 @@
"generator": false
},
{
- "__docId__": 627,
+ "__docId__": 628,
"kind": "member",
"static": false,
"variation": null,
@@ -12853,7 +12905,7 @@
}
},
{
- "__docId__": 628,
+ "__docId__": 629,
"kind": "member",
"static": false,
"variation": null,
@@ -12871,7 +12923,7 @@
}
},
{
- "__docId__": 629,
+ "__docId__": 630,
"kind": "member",
"static": false,
"variation": null,
@@ -12889,7 +12941,7 @@
}
},
{
- "__docId__": 630,
+ "__docId__": 631,
"kind": "file",
"static": true,
"variation": null,
@@ -12899,10 +12951,10 @@
"access": null,
"description": null,
"lineNumber": 1,
- "content": "import {Feature} from '../feature';\nimport {Hash} from './hash';\nimport {Storage} from './storage';\nimport {isEmpty} from '../string';\nimport {isArray, isNull, isString, isUndef} from '../types';\n\n/**\n * Reflects the state of features to be persisted via hash, localStorage or\n * cookie\n *\n * @export\n * @class State\n * @extends {Feature}\n */\nexport class State extends Feature {\n\n /**\n * Creates an instance of State\n *\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'state');\n\n let cfg = this.config.state;\n\n this.enableHash = cfg === true ||\n (isArray(cfg.types) && cfg.types.indexOf('hash') !== -1);\n this.enableLocalStorage = isArray(cfg.types) &&\n cfg.types.indexOf('local_storage') !== -1;\n this.enableCookie = isArray(cfg.types) &&\n cfg.types.indexOf('cookie') !== -1;\n this.persistFilters = cfg.filters === false ? false : true;\n this.persistPageNumber = Boolean(cfg.page_number);\n this.persistPageLength = Boolean(cfg.page_length);\n this.persistSort = Boolean(cfg.sort);\n this.persistColsVisibility = Boolean(cfg.columns_visibility);\n this.persistFiltersVisibility = Boolean(cfg.filters_visibility);\n this.cookieDuration = !isNaN(cfg.cookie_duration) ?\n parseInt(cfg.cookie_duration, 10) : 87600;\n\n this.enableStorage = this.enableLocalStorage || this.enableCookie;\n this.hash = null;\n this.pageNb = null;\n this.pageLength = null;\n this.sort = null;\n this.hiddenCols = null;\n this.filtersVisibility = null;\n\n this.state = {};\n this.prfxCol = 'col_';\n this.pageNbKey = 'page';\n this.pageLengthKey = 'page_length';\n this.filtersVisKey = 'filters_visibility';\n }\n\n /**\n * Initializes the State object\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n this.emitter.on(['after-filtering'], () => this.update());\n this.emitter.on(['after-page-change', 'after-clearing-filters'],\n (tf, pageNb) => this.updatePage(pageNb));\n this.emitter.on(['after-page-length-change'],\n (tf, pageLength) => this.updatePageLength(pageLength));\n this.emitter.on(['column-sorted'],\n (tf, index, descending) => this.updateSort(index, descending));\n this.emitter.on(['sort-initialized'], () => this._syncSort());\n this.emitter.on(['columns-visibility-initialized'],\n () => this._syncColsVisibility());\n this.emitter.on(['column-shown', 'column-hidden'], (tf, feature,\n colIndex, hiddenCols) => this.updateColsVisibility(hiddenCols));\n this.emitter.on(['filters-visibility-initialized'],\n () => this._syncFiltersVisibility());\n this.emitter.on(['filters-toggled'],\n (tf, extension, visible) => this.updateFiltersVisibility(visible));\n\n if (this.enableHash) {\n this.hash = new Hash(this);\n this.hash.init();\n }\n if (this.enableStorage) {\n this.storage = new Storage(this);\n this.storage.init();\n }\n this.initialized = true;\n }\n\n\n /**\n * Update state object based on current features state\n */\n update() {\n if (!this.isEnabled()) {\n return;\n }\n let state = this.state;\n let tf = this.tf;\n\n if (this.persistFilters) {\n let filterValues = tf.getFiltersValue();\n\n filterValues.forEach((val, idx) => {\n let key = `${this.prfxCol}${idx}`;\n\n if (isString(val) && isEmpty(val)) {\n if (state.hasOwnProperty(key)) {\n state[key].flt = undefined;\n }\n } else {\n state[key] = state[key] || {};\n state[key].flt = val;\n }\n });\n }\n\n if (this.persistPageNumber) {\n if (isNull(this.pageNb)) {\n state[this.pageNbKey] = undefined;\n } else {\n state[this.pageNbKey] = this.pageNb;\n }\n }\n\n if (this.persistPageLength) {\n if (isNull(this.pageLength)) {\n state[this.pageLengthKey] = undefined;\n } else {\n state[this.pageLengthKey] = this.pageLength;\n }\n }\n\n if (this.persistSort) {\n if (!isNull(this.sort)) {\n // Remove previuosly sorted column\n Object.keys(state).forEach((key) => {\n if (key.indexOf(this.prfxCol) !== -1 && state[key]) {\n state[key].sort = undefined;\n }\n });\n\n let key = `${this.prfxCol}${this.sort.column}`;\n state[key] = state[key] || {};\n state[key].sort = { descending: this.sort.descending };\n }\n }\n\n if (this.persistColsVisibility) {\n if (!isNull(this.hiddenCols)) {\n // Clear previuosly hidden columns\n Object.keys(state).forEach((key) => {\n if (key.indexOf(this.prfxCol) !== -1 && state[key]) {\n state[key].hidden = undefined;\n }\n });\n\n this.hiddenCols.forEach((colIdx) => {\n let key = `${this.prfxCol}${colIdx}`;\n state[key] = state[key] || {};\n state[key].hidden = true;\n });\n }\n }\n\n if (this.persistFiltersVisibility) {\n if (isNull(this.filtersVisibility)) {\n state[this.filtersVisKey] = undefined;\n } else {\n state[this.filtersVisKey] = this.filtersVisibility;\n }\n }\n\n this.emitter.emit('state-changed', tf, state);\n }\n\n /**\n * Refresh page number field on page number changes\n *\n * @param {Number} pageNb Current page number\n */\n updatePage(pageNb) {\n this.pageNb = pageNb;\n this.update();\n }\n\n /**\n * Refresh page length field on page length changes\n *\n * @param {Number} pageLength Current page length value\n */\n updatePageLength(pageLength) {\n this.pageLength = pageLength;\n this.update();\n }\n\n /**\n * Refresh column sorting information on sort changes\n *\n * @param index {Number} Column index\n * @param {Boolean} descending Descending manner\n */\n updateSort(index, descending) {\n this.sort = {\n column: index,\n descending: descending\n };\n this.update();\n }\n\n /**\n * Refresh hidden columns information on columns visibility changes\n *\n * @param {Array} hiddenCols Columns indexes\n */\n updateColsVisibility(hiddenCols) {\n this.hiddenCols = hiddenCols;\n this.update();\n }\n\n /**\n * Refresh filters visibility on filters visibility change\n *\n * @param {Boolean} visible Visibility flad\n */\n updateFiltersVisibility(visible) {\n this.filtersVisibility = visible;\n this.update();\n }\n\n /**\n * Override state field\n *\n * @param state State object\n */\n override(state) {\n this.state = state;\n }\n\n /**\n * Sync stored features state\n */\n sync() {\n let state = this.state;\n let tf = this.tf;\n\n this._syncFilters();\n\n if (this.persistPageNumber) {\n let pageNumber = state[this.pageNbKey];\n this.emitter.emit('change-page', tf, pageNumber);\n }\n\n if (this.persistPageLength) {\n let pageLength = state[this.pageLengthKey];\n this.emitter.emit('change-page-results', tf, pageLength);\n }\n\n this._syncSort();\n this._syncColsVisibility();\n this._syncFiltersVisibility();\n }\n\n /**\n * Override current state with passed one and sync features\n *\n * @param {Object} state State object\n */\n overrideAndSync(state) {\n // To prevent state to react to features changes, state is temporarily\n // disabled\n this.disable();\n // State is overriden with passed state object\n this.override(state);\n // New hash state is applied to features\n this.sync();\n // State is re-enabled\n this.enable();\n }\n\n /**\n * Sync filters with stored values and filter table\n *\n * @private\n */\n _syncFilters() {\n if (!this.persistFilters) {\n return;\n }\n let state = this.state;\n let tf = this.tf;\n\n Object.keys(state).forEach((key) => {\n if (key.indexOf(this.prfxCol) !== -1) {\n let colIdx = parseInt(key.replace(this.prfxCol, ''), 10);\n let val = state[key].flt;\n tf.setFilterValue(colIdx, val);\n }\n });\n\n tf.filter();\n }\n\n /**\n * Sync sorted column with stored sorting information and sort table\n *\n * @private\n */\n _syncSort() {\n if (!this.persistSort) {\n return;\n }\n let state = this.state;\n let tf = this.tf;\n\n Object.keys(state).forEach((key) => {\n if (key.indexOf(this.prfxCol) !== -1) {\n let colIdx = parseInt(key.replace(this.prfxCol, ''), 10);\n if (!isUndef(state[key].sort)) {\n let sort = state[key].sort;\n this.emitter.emit('sort', tf, colIdx, sort.descending);\n }\n }\n });\n }\n\n /**\n * Sync hidden columns with stored information\n *\n * @private\n */\n _syncColsVisibility() {\n if (!this.persistColsVisibility) {\n return;\n }\n let state = this.state;\n let tf = this.tf;\n let hiddenCols = [];\n\n Object.keys(state).forEach((key) => {\n if (key.indexOf(this.prfxCol) !== -1) {\n let colIdx = parseInt(key.replace(this.prfxCol, ''), 10);\n if (!isUndef(state[key].hidden)) {\n hiddenCols.push(colIdx);\n }\n }\n });\n\n hiddenCols.forEach((colIdx) => {\n this.emitter.emit('hide-column', tf, colIdx);\n });\n }\n\n /**\n * Sync filters visibility with stored information\n *\n * @private\n */\n _syncFiltersVisibility() {\n if (!this.persistFiltersVisibility) {\n return;\n }\n let state = this.state;\n let tf = this.tf;\n let filtersVisibility = state[this.filtersVisKey];\n\n this.filtersVisibility = filtersVisibility;\n this.emitter.emit('show-filters', tf, filtersVisibility);\n }\n\n /**\n * Destroy State instance\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n\n this.state = {};\n\n this.emitter.off(['after-filtering'], () => this.update());\n this.emitter.off(['after-page-change', 'after-clearing-filters'],\n (tf, pageNb) => this.updatePage(pageNb));\n this.emitter.off(['after-page-length-change'],\n (tf, index) => this.updatePageLength(index));\n this.emitter.off(['column-sorted'],\n (tf, index, descending) => this.updateSort(index, descending));\n this.emitter.off(['sort-initialized'], () => this._syncSort());\n this.emitter.off(['columns-visibility-initialized'],\n () => this._syncColsVisibility());\n this.emitter.off(['column-shown', 'column-hidden'], (tf, feature,\n colIndex, hiddenCols) => this.updateColsVisibility(hiddenCols));\n this.emitter.off(['filters-visibility-initialized'],\n () => this._syncFiltersVisibility());\n this.emitter.off(['filters-toggled'],\n (tf, extension, visible) => this.updateFiltersVisibility(visible));\n\n if (this.enableHash) {\n this.hash.destroy();\n this.hash = null;\n }\n\n if (this.enableStorage) {\n this.storage.destroy();\n this.storage = null;\n }\n\n this.initialized = false;\n }\n}\n"
+ "content": "import {Feature} from '../feature';\nimport {Hash} from './hash';\nimport {Storage} from './storage';\nimport {isEmpty} from '../string';\nimport {isArray, isNull, isString, isUndef} from '../types';\n\n/**\n * State persistence via hash, localStorage or cookie\n *\n * @export\n * @class State\n * @extends {Feature}\n */\nexport class State extends Feature {\n\n /**\n * Creates an instance of State\n *\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'state');\n\n let cfg = this.config.state;\n\n this.enableHash = cfg === true ||\n (isArray(cfg.types) && cfg.types.indexOf('hash') !== -1);\n this.enableLocalStorage = isArray(cfg.types) &&\n cfg.types.indexOf('local_storage') !== -1;\n this.enableCookie = isArray(cfg.types) &&\n cfg.types.indexOf('cookie') !== -1;\n this.persistFilters = cfg.filters === false ? false : true;\n this.persistPageNumber = Boolean(cfg.page_number);\n this.persistPageLength = Boolean(cfg.page_length);\n this.persistSort = Boolean(cfg.sort);\n this.persistColsVisibility = Boolean(cfg.columns_visibility);\n this.persistFiltersVisibility = Boolean(cfg.filters_visibility);\n this.cookieDuration = !isNaN(cfg.cookie_duration) ?\n parseInt(cfg.cookie_duration, 10) : 87600;\n\n this.enableStorage = this.enableLocalStorage || this.enableCookie;\n this.hash = null;\n this.pageNb = null;\n this.pageLength = null;\n this.sort = null;\n this.hiddenCols = null;\n this.filtersVisibility = null;\n\n this.state = {};\n this.prfxCol = 'col_';\n this.pageNbKey = 'page';\n this.pageLengthKey = 'page_length';\n this.filtersVisKey = 'filters_visibility';\n }\n\n /**\n * Initializes the State object\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n this.emitter.on(['after-filtering'], () => this.update());\n this.emitter.on(['after-page-change', 'after-clearing-filters'],\n (tf, pageNb) => this.updatePage(pageNb));\n this.emitter.on(['after-page-length-change'],\n (tf, pageLength) => this.updatePageLength(pageLength));\n this.emitter.on(['column-sorted'],\n (tf, index, descending) => this.updateSort(index, descending));\n this.emitter.on(['sort-initialized'], () => this._syncSort());\n this.emitter.on(['columns-visibility-initialized'],\n () => this._syncColsVisibility());\n this.emitter.on(['column-shown', 'column-hidden'], (tf, feature,\n colIndex, hiddenCols) => this.updateColsVisibility(hiddenCols));\n this.emitter.on(['filters-visibility-initialized'],\n () => this._syncFiltersVisibility());\n this.emitter.on(['filters-toggled'],\n (tf, extension, visible) => this.updateFiltersVisibility(visible));\n\n if (this.enableHash) {\n this.hash = new Hash(this);\n this.hash.init();\n }\n if (this.enableStorage) {\n this.storage = new Storage(this);\n this.storage.init();\n }\n this.initialized = true;\n }\n\n\n /**\n * Update state object based on current features state\n */\n update() {\n if (!this.isEnabled()) {\n return;\n }\n let state = this.state;\n let tf = this.tf;\n\n if (this.persistFilters) {\n let filterValues = tf.getFiltersValue();\n\n filterValues.forEach((val, idx) => {\n let key = `${this.prfxCol}${idx}`;\n\n if (isString(val) && isEmpty(val)) {\n if (state.hasOwnProperty(key)) {\n state[key].flt = undefined;\n }\n } else {\n state[key] = state[key] || {};\n state[key].flt = val;\n }\n });\n }\n\n if (this.persistPageNumber) {\n if (isNull(this.pageNb)) {\n state[this.pageNbKey] = undefined;\n } else {\n state[this.pageNbKey] = this.pageNb;\n }\n }\n\n if (this.persistPageLength) {\n if (isNull(this.pageLength)) {\n state[this.pageLengthKey] = undefined;\n } else {\n state[this.pageLengthKey] = this.pageLength;\n }\n }\n\n if (this.persistSort) {\n if (!isNull(this.sort)) {\n // Remove previuosly sorted column\n Object.keys(state).forEach((key) => {\n if (key.indexOf(this.prfxCol) !== -1 && state[key]) {\n state[key].sort = undefined;\n }\n });\n\n let key = `${this.prfxCol}${this.sort.column}`;\n state[key] = state[key] || {};\n state[key].sort = { descending: this.sort.descending };\n }\n }\n\n if (this.persistColsVisibility) {\n if (!isNull(this.hiddenCols)) {\n // Clear previuosly hidden columns\n Object.keys(state).forEach((key) => {\n if (key.indexOf(this.prfxCol) !== -1 && state[key]) {\n state[key].hidden = undefined;\n }\n });\n\n this.hiddenCols.forEach((colIdx) => {\n let key = `${this.prfxCol}${colIdx}`;\n state[key] = state[key] || {};\n state[key].hidden = true;\n });\n }\n }\n\n if (this.persistFiltersVisibility) {\n if (isNull(this.filtersVisibility)) {\n state[this.filtersVisKey] = undefined;\n } else {\n state[this.filtersVisKey] = this.filtersVisibility;\n }\n }\n\n this.emitter.emit('state-changed', tf, state);\n }\n\n /**\n * Refresh page number field on page number changes\n *\n * @param {Number} pageNb Current page number\n */\n updatePage(pageNb) {\n this.pageNb = pageNb;\n this.update();\n }\n\n /**\n * Refresh page length field on page length changes\n *\n * @param {Number} pageLength Current page length value\n */\n updatePageLength(pageLength) {\n this.pageLength = pageLength;\n this.update();\n }\n\n /**\n * Refresh column sorting information on sort changes\n *\n * @param index {Number} Column index\n * @param {Boolean} descending Descending manner\n */\n updateSort(index, descending) {\n this.sort = {\n column: index,\n descending: descending\n };\n this.update();\n }\n\n /**\n * Refresh hidden columns information on columns visibility changes\n *\n * @param {Array} hiddenCols Columns indexes\n */\n updateColsVisibility(hiddenCols) {\n this.hiddenCols = hiddenCols;\n this.update();\n }\n\n /**\n * Refresh filters visibility on filters visibility change\n *\n * @param {Boolean} visible Visibility flad\n */\n updateFiltersVisibility(visible) {\n this.filtersVisibility = visible;\n this.update();\n }\n\n /**\n * Override state field\n *\n * @param state State object\n */\n override(state) {\n this.state = state;\n }\n\n /**\n * Sync stored features state\n */\n sync() {\n let state = this.state;\n let tf = this.tf;\n\n this._syncFilters();\n\n if (this.persistPageNumber) {\n let pageNumber = state[this.pageNbKey];\n this.emitter.emit('change-page', tf, pageNumber);\n }\n\n if (this.persistPageLength) {\n let pageLength = state[this.pageLengthKey];\n this.emitter.emit('change-page-results', tf, pageLength);\n }\n\n this._syncSort();\n this._syncColsVisibility();\n this._syncFiltersVisibility();\n }\n\n /**\n * Override current state with passed one and sync features\n *\n * @param {Object} state State object\n */\n overrideAndSync(state) {\n // To prevent state to react to features changes, state is temporarily\n // disabled\n this.disable();\n // State is overriden with passed state object\n this.override(state);\n // New hash state is applied to features\n this.sync();\n // State is re-enabled\n this.enable();\n }\n\n /**\n * Sync filters with stored values and filter table\n *\n * @private\n */\n _syncFilters() {\n if (!this.persistFilters) {\n return;\n }\n let state = this.state;\n let tf = this.tf;\n\n Object.keys(state).forEach((key) => {\n if (key.indexOf(this.prfxCol) !== -1) {\n let colIdx = parseInt(key.replace(this.prfxCol, ''), 10);\n let val = state[key].flt;\n tf.setFilterValue(colIdx, val);\n }\n });\n\n tf.filter();\n }\n\n /**\n * Sync sorted column with stored sorting information and sort table\n *\n * @private\n */\n _syncSort() {\n if (!this.persistSort) {\n return;\n }\n let state = this.state;\n let tf = this.tf;\n\n Object.keys(state).forEach((key) => {\n if (key.indexOf(this.prfxCol) !== -1) {\n let colIdx = parseInt(key.replace(this.prfxCol, ''), 10);\n if (!isUndef(state[key].sort)) {\n let sort = state[key].sort;\n this.emitter.emit('sort', tf, colIdx, sort.descending);\n }\n }\n });\n }\n\n /**\n * Sync hidden columns with stored information\n *\n * @private\n */\n _syncColsVisibility() {\n if (!this.persistColsVisibility) {\n return;\n }\n let state = this.state;\n let tf = this.tf;\n let hiddenCols = [];\n\n Object.keys(state).forEach((key) => {\n if (key.indexOf(this.prfxCol) !== -1) {\n let colIdx = parseInt(key.replace(this.prfxCol, ''), 10);\n if (!isUndef(state[key].hidden)) {\n hiddenCols.push(colIdx);\n }\n }\n });\n\n hiddenCols.forEach((colIdx) => {\n this.emitter.emit('hide-column', tf, colIdx);\n });\n }\n\n /**\n * Sync filters visibility with stored information\n *\n * @private\n */\n _syncFiltersVisibility() {\n if (!this.persistFiltersVisibility) {\n return;\n }\n let state = this.state;\n let tf = this.tf;\n let filtersVisibility = state[this.filtersVisKey];\n\n this.filtersVisibility = filtersVisibility;\n this.emitter.emit('show-filters', tf, filtersVisibility);\n }\n\n /**\n * Destroy State instance\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n\n this.state = {};\n\n this.emitter.off(['after-filtering'], () => this.update());\n this.emitter.off(['after-page-change', 'after-clearing-filters'],\n (tf, pageNb) => this.updatePage(pageNb));\n this.emitter.off(['after-page-length-change'],\n (tf, index) => this.updatePageLength(index));\n this.emitter.off(['column-sorted'],\n (tf, index, descending) => this.updateSort(index, descending));\n this.emitter.off(['sort-initialized'], () => this._syncSort());\n this.emitter.off(['columns-visibility-initialized'],\n () => this._syncColsVisibility());\n this.emitter.off(['column-shown', 'column-hidden'], (tf, feature,\n colIndex, hiddenCols) => this.updateColsVisibility(hiddenCols));\n this.emitter.off(['filters-visibility-initialized'],\n () => this._syncFiltersVisibility());\n this.emitter.off(['filters-toggled'],\n (tf, extension, visible) => this.updateFiltersVisibility(visible));\n\n if (this.enableHash) {\n this.hash.destroy();\n this.hash = null;\n }\n\n if (this.enableStorage) {\n this.storage.destroy();\n this.storage = null;\n }\n\n this.initialized = false;\n }\n}\n"
},
{
- "__docId__": 631,
+ "__docId__": 632,
"kind": "class",
"static": true,
"variation": null,
@@ -12913,8 +12965,8 @@
"export": true,
"importPath": "tablefilter/src/modules/state.js",
"importStyle": "{State}",
- "description": "Reflects the state of features to be persisted via hash, localStorage or\ncookie",
- "lineNumber": 15,
+ "description": "State persistence via hash, localStorage or cookie",
+ "lineNumber": 14,
"unknown": [
{
"tagName": "@export",
@@ -12931,7 +12983,7 @@
]
},
{
- "__docId__": 632,
+ "__docId__": 633,
"kind": "constructor",
"static": false,
"variation": null,
@@ -12940,7 +12992,7 @@
"longname": "src/modules/state.js~State#constructor",
"access": null,
"description": "Creates an instance of State",
- "lineNumber": 22,
+ "lineNumber": 21,
"params": [
{
"nullable": null,
@@ -12956,7 +13008,7 @@
"generator": false
},
{
- "__docId__": 633,
+ "__docId__": 634,
"kind": "member",
"static": false,
"variation": null,
@@ -12965,25 +13017,7 @@
"longname": "src/modules/state.js~State#enableHash",
"access": null,
"description": null,
- "lineNumber": 27,
- "undocument": true,
- "type": {
- "types": [
- "*"
- ]
- }
- },
- {
- "__docId__": 634,
- "kind": "member",
- "static": false,
- "variation": null,
- "name": "enableLocalStorage",
- "memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#enableLocalStorage",
- "access": null,
- "description": null,
- "lineNumber": 29,
+ "lineNumber": 26,
"undocument": true,
"type": {
"types": [
@@ -12996,12 +13030,12 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "enableCookie",
+ "name": "enableLocalStorage",
"memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#enableCookie",
+ "longname": "src/modules/state.js~State#enableLocalStorage",
"access": null,
"description": null,
- "lineNumber": 31,
+ "lineNumber": 28,
"undocument": true,
"type": {
"types": [
@@ -13014,12 +13048,12 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "persistFilters",
+ "name": "enableCookie",
"memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#persistFilters",
+ "longname": "src/modules/state.js~State#enableCookie",
"access": null,
"description": null,
- "lineNumber": 33,
+ "lineNumber": 30,
"undocument": true,
"type": {
"types": [
@@ -13032,12 +13066,12 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "persistPageNumber",
+ "name": "persistFilters",
"memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#persistPageNumber",
+ "longname": "src/modules/state.js~State#persistFilters",
"access": null,
"description": null,
- "lineNumber": 34,
+ "lineNumber": 32,
"undocument": true,
"type": {
"types": [
@@ -13050,12 +13084,12 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "persistPageLength",
+ "name": "persistPageNumber",
"memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#persistPageLength",
+ "longname": "src/modules/state.js~State#persistPageNumber",
"access": null,
"description": null,
- "lineNumber": 35,
+ "lineNumber": 33,
"undocument": true,
"type": {
"types": [
@@ -13068,12 +13102,12 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "persistSort",
+ "name": "persistPageLength",
"memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#persistSort",
+ "longname": "src/modules/state.js~State#persistPageLength",
"access": null,
"description": null,
- "lineNumber": 36,
+ "lineNumber": 34,
"undocument": true,
"type": {
"types": [
@@ -13086,12 +13120,12 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "persistColsVisibility",
+ "name": "persistSort",
"memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#persistColsVisibility",
+ "longname": "src/modules/state.js~State#persistSort",
"access": null,
"description": null,
- "lineNumber": 37,
+ "lineNumber": 35,
"undocument": true,
"type": {
"types": [
@@ -13104,12 +13138,12 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "persistFiltersVisibility",
+ "name": "persistColsVisibility",
"memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#persistFiltersVisibility",
+ "longname": "src/modules/state.js~State#persistColsVisibility",
"access": null,
"description": null,
- "lineNumber": 38,
+ "lineNumber": 36,
"undocument": true,
"type": {
"types": [
@@ -13122,12 +13156,12 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "cookieDuration",
+ "name": "persistFiltersVisibility",
"memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#cookieDuration",
+ "longname": "src/modules/state.js~State#persistFiltersVisibility",
"access": null,
"description": null,
- "lineNumber": 39,
+ "lineNumber": 37,
"undocument": true,
"type": {
"types": [
@@ -13140,12 +13174,12 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "enableStorage",
+ "name": "cookieDuration",
"memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#enableStorage",
+ "longname": "src/modules/state.js~State#cookieDuration",
"access": null,
"description": null,
- "lineNumber": 42,
+ "lineNumber": 38,
"undocument": true,
"type": {
"types": [
@@ -13158,12 +13192,12 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "hash",
+ "name": "enableStorage",
"memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#hash",
+ "longname": "src/modules/state.js~State#enableStorage",
"access": null,
"description": null,
- "lineNumber": 43,
+ "lineNumber": 41,
"undocument": true,
"type": {
"types": [
@@ -13176,12 +13210,12 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "pageNb",
+ "name": "hash",
"memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#pageNb",
+ "longname": "src/modules/state.js~State#hash",
"access": null,
"description": null,
- "lineNumber": 44,
+ "lineNumber": 42,
"undocument": true,
"type": {
"types": [
@@ -13194,12 +13228,12 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "pageLength",
+ "name": "pageNb",
"memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#pageLength",
+ "longname": "src/modules/state.js~State#pageNb",
"access": null,
"description": null,
- "lineNumber": 45,
+ "lineNumber": 43,
"undocument": true,
"type": {
"types": [
@@ -13212,12 +13246,12 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "sort",
+ "name": "pageLength",
"memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#sort",
+ "longname": "src/modules/state.js~State#pageLength",
"access": null,
"description": null,
- "lineNumber": 46,
+ "lineNumber": 44,
"undocument": true,
"type": {
"types": [
@@ -13230,12 +13264,12 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "hiddenCols",
+ "name": "sort",
"memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#hiddenCols",
+ "longname": "src/modules/state.js~State#sort",
"access": null,
"description": null,
- "lineNumber": 47,
+ "lineNumber": 45,
"undocument": true,
"type": {
"types": [
@@ -13248,12 +13282,12 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "filtersVisibility",
+ "name": "hiddenCols",
"memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#filtersVisibility",
+ "longname": "src/modules/state.js~State#hiddenCols",
"access": null,
"description": null,
- "lineNumber": 48,
+ "lineNumber": 46,
"undocument": true,
"type": {
"types": [
@@ -13266,12 +13300,12 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "state",
+ "name": "filtersVisibility",
"memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#state",
+ "longname": "src/modules/state.js~State#filtersVisibility",
"access": null,
"description": null,
- "lineNumber": 50,
+ "lineNumber": 47,
"undocument": true,
"type": {
"types": [
@@ -13284,16 +13318,16 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "prfxCol",
+ "name": "state",
"memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#prfxCol",
+ "longname": "src/modules/state.js~State#state",
"access": null,
"description": null,
- "lineNumber": 51,
+ "lineNumber": 49,
"undocument": true,
"type": {
"types": [
- "string"
+ "*"
]
}
},
@@ -13302,12 +13336,12 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "pageNbKey",
+ "name": "prfxCol",
"memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#pageNbKey",
+ "longname": "src/modules/state.js~State#prfxCol",
"access": null,
"description": null,
- "lineNumber": 52,
+ "lineNumber": 50,
"undocument": true,
"type": {
"types": [
@@ -13320,12 +13354,12 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "pageLengthKey",
+ "name": "pageNbKey",
"memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#pageLengthKey",
+ "longname": "src/modules/state.js~State#pageNbKey",
"access": null,
"description": null,
- "lineNumber": 53,
+ "lineNumber": 51,
"undocument": true,
"type": {
"types": [
@@ -13338,12 +13372,12 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "filtersVisKey",
+ "name": "pageLengthKey",
"memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#filtersVisKey",
+ "longname": "src/modules/state.js~State#pageLengthKey",
"access": null,
"description": null,
- "lineNumber": 54,
+ "lineNumber": 52,
"undocument": true,
"type": {
"types": [
@@ -13353,6 +13387,24 @@
},
{
"__docId__": 655,
+ "kind": "member",
+ "static": false,
+ "variation": null,
+ "name": "filtersVisKey",
+ "memberof": "src/modules/state.js~State",
+ "longname": "src/modules/state.js~State#filtersVisKey",
+ "access": null,
+ "description": null,
+ "lineNumber": 53,
+ "undocument": true,
+ "type": {
+ "types": [
+ "string"
+ ]
+ }
+ },
+ {
+ "__docId__": 656,
"kind": "method",
"static": false,
"variation": null,
@@ -13361,12 +13413,12 @@
"longname": "src/modules/state.js~State#init",
"access": null,
"description": "Initializes the State object",
- "lineNumber": 60,
+ "lineNumber": 59,
"params": [],
"generator": false
},
{
- "__docId__": 656,
+ "__docId__": 657,
"kind": "member",
"static": false,
"variation": null,
@@ -13375,25 +13427,7 @@
"longname": "src/modules/state.js~State#hash",
"access": null,
"description": null,
- "lineNumber": 83,
- "undocument": true,
- "type": {
- "types": [
- "*"
- ]
- }
- },
- {
- "__docId__": 657,
- "kind": "member",
- "static": false,
- "variation": null,
- "name": "storage",
- "memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#storage",
- "access": null,
- "description": null,
- "lineNumber": 87,
+ "lineNumber": 82,
"undocument": true,
"type": {
"types": [
@@ -13406,12 +13440,30 @@
"kind": "member",
"static": false,
"variation": null,
+ "name": "storage",
+ "memberof": "src/modules/state.js~State",
+ "longname": "src/modules/state.js~State#storage",
+ "access": null,
+ "description": null,
+ "lineNumber": 86,
+ "undocument": true,
+ "type": {
+ "types": [
+ "*"
+ ]
+ }
+ },
+ {
+ "__docId__": 659,
+ "kind": "member",
+ "static": false,
+ "variation": null,
"name": "initialized",
"memberof": "src/modules/state.js~State",
"longname": "src/modules/state.js~State#initialized",
"access": null,
"description": null,
- "lineNumber": 90,
+ "lineNumber": 89,
"undocument": true,
"type": {
"types": [
@@ -13420,7 +13472,7 @@
}
},
{
- "__docId__": 659,
+ "__docId__": 660,
"kind": "method",
"static": false,
"variation": null,
@@ -13429,12 +13481,12 @@
"longname": "src/modules/state.js~State#update",
"access": null,
"description": "Update state object based on current features state",
- "lineNumber": 97,
+ "lineNumber": 96,
"params": [],
"generator": false
},
{
- "__docId__": 660,
+ "__docId__": 661,
"kind": "method",
"static": false,
"variation": null,
@@ -13443,7 +13495,7 @@
"longname": "src/modules/state.js~State#updatePage",
"access": null,
"description": "Refresh page number field on page number changes",
- "lineNumber": 185,
+ "lineNumber": 184,
"params": [
{
"nullable": null,
@@ -13459,7 +13511,7 @@
"generator": false
},
{
- "__docId__": 661,
+ "__docId__": 662,
"kind": "member",
"static": false,
"variation": null,
@@ -13468,7 +13520,7 @@
"longname": "src/modules/state.js~State#pageNb",
"access": null,
"description": null,
- "lineNumber": 186,
+ "lineNumber": 185,
"undocument": true,
"type": {
"types": [
@@ -13477,7 +13529,7 @@
}
},
{
- "__docId__": 662,
+ "__docId__": 663,
"kind": "method",
"static": false,
"variation": null,
@@ -13486,7 +13538,7 @@
"longname": "src/modules/state.js~State#updatePageLength",
"access": null,
"description": "Refresh page length field on page length changes",
- "lineNumber": 195,
+ "lineNumber": 194,
"params": [
{
"nullable": null,
@@ -13502,7 +13554,7 @@
"generator": false
},
{
- "__docId__": 663,
+ "__docId__": 664,
"kind": "member",
"static": false,
"variation": null,
@@ -13511,7 +13563,7 @@
"longname": "src/modules/state.js~State#pageLength",
"access": null,
"description": null,
- "lineNumber": 196,
+ "lineNumber": 195,
"undocument": true,
"type": {
"types": [
@@ -13520,7 +13572,7 @@
}
},
{
- "__docId__": 664,
+ "__docId__": 665,
"kind": "method",
"static": false,
"variation": null,
@@ -13529,7 +13581,7 @@
"longname": "src/modules/state.js~State#updateSort",
"access": null,
"description": "Refresh column sorting information on sort changes",
- "lineNumber": 206,
+ "lineNumber": 205,
"params": [
{
"nullable": null,
@@ -13555,7 +13607,7 @@
"generator": false
},
{
- "__docId__": 665,
+ "__docId__": 666,
"kind": "member",
"static": false,
"variation": null,
@@ -13564,7 +13616,7 @@
"longname": "src/modules/state.js~State#sort",
"access": null,
"description": null,
- "lineNumber": 207,
+ "lineNumber": 206,
"undocument": true,
"type": {
"types": [
@@ -13573,7 +13625,7 @@
}
},
{
- "__docId__": 666,
+ "__docId__": 667,
"kind": "method",
"static": false,
"variation": null,
@@ -13582,7 +13634,7 @@
"longname": "src/modules/state.js~State#updateColsVisibility",
"access": null,
"description": "Refresh hidden columns information on columns visibility changes",
- "lineNumber": 219,
+ "lineNumber": 218,
"params": [
{
"nullable": null,
@@ -13598,7 +13650,7 @@
"generator": false
},
{
- "__docId__": 667,
+ "__docId__": 668,
"kind": "member",
"static": false,
"variation": null,
@@ -13607,7 +13659,7 @@
"longname": "src/modules/state.js~State#hiddenCols",
"access": null,
"description": null,
- "lineNumber": 220,
+ "lineNumber": 219,
"undocument": true,
"type": {
"types": [
@@ -13616,7 +13668,7 @@
}
},
{
- "__docId__": 668,
+ "__docId__": 669,
"kind": "method",
"static": false,
"variation": null,
@@ -13625,7 +13677,7 @@
"longname": "src/modules/state.js~State#updateFiltersVisibility",
"access": null,
"description": "Refresh filters visibility on filters visibility change",
- "lineNumber": 229,
+ "lineNumber": 228,
"params": [
{
"nullable": null,
@@ -13641,7 +13693,7 @@
"generator": false
},
{
- "__docId__": 669,
+ "__docId__": 670,
"kind": "member",
"static": false,
"variation": null,
@@ -13650,7 +13702,7 @@
"longname": "src/modules/state.js~State#filtersVisibility",
"access": null,
"description": null,
- "lineNumber": 230,
+ "lineNumber": 229,
"undocument": true,
"type": {
"types": [
@@ -13659,7 +13711,7 @@
}
},
{
- "__docId__": 670,
+ "__docId__": 671,
"kind": "method",
"static": false,
"variation": null,
@@ -13668,7 +13720,7 @@
"longname": "src/modules/state.js~State#override",
"access": null,
"description": "Override state field",
- "lineNumber": 239,
+ "lineNumber": 238,
"params": [
{
"nullable": null,
@@ -13684,7 +13736,7 @@
"generator": false
},
{
- "__docId__": 671,
+ "__docId__": 672,
"kind": "member",
"static": false,
"variation": null,
@@ -13693,7 +13745,7 @@
"longname": "src/modules/state.js~State#state",
"access": null,
"description": null,
- "lineNumber": 240,
+ "lineNumber": 239,
"undocument": true,
"type": {
"types": [
@@ -13702,7 +13754,7 @@
}
},
{
- "__docId__": 672,
+ "__docId__": 673,
"kind": "method",
"static": false,
"variation": null,
@@ -13711,12 +13763,12 @@
"longname": "src/modules/state.js~State#sync",
"access": null,
"description": "Sync stored features state",
- "lineNumber": 246,
+ "lineNumber": 245,
"params": [],
"generator": false
},
{
- "__docId__": 673,
+ "__docId__": 674,
"kind": "method",
"static": false,
"variation": null,
@@ -13725,7 +13777,7 @@
"longname": "src/modules/state.js~State#overrideAndSync",
"access": null,
"description": "Override current state with passed one and sync features",
- "lineNumber": 272,
+ "lineNumber": 271,
"params": [
{
"nullable": null,
@@ -13741,7 +13793,7 @@
"generator": false
},
{
- "__docId__": 674,
+ "__docId__": 675,
"kind": "method",
"static": false,
"variation": null,
@@ -13750,21 +13802,7 @@
"longname": "src/modules/state.js~State#_syncFilters",
"access": "private",
"description": "Sync filters with stored values and filter table",
- "lineNumber": 289,
- "params": [],
- "generator": false
- },
- {
- "__docId__": 675,
- "kind": "method",
- "static": false,
- "variation": null,
- "name": "_syncSort",
- "memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#_syncSort",
- "access": "private",
- "description": "Sync sorted column with stored sorting information and sort table",
- "lineNumber": 312,
+ "lineNumber": 288,
"params": [],
"generator": false
},
@@ -13773,12 +13811,12 @@
"kind": "method",
"static": false,
"variation": null,
- "name": "_syncColsVisibility",
+ "name": "_syncSort",
"memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#_syncColsVisibility",
+ "longname": "src/modules/state.js~State#_syncSort",
"access": "private",
- "description": "Sync hidden columns with stored information",
- "lineNumber": 335,
+ "description": "Sync sorted column with stored sorting information and sort table",
+ "lineNumber": 311,
"params": [],
"generator": false
},
@@ -13787,17 +13825,31 @@
"kind": "method",
"static": false,
"variation": null,
- "name": "_syncFiltersVisibility",
+ "name": "_syncColsVisibility",
"memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#_syncFiltersVisibility",
+ "longname": "src/modules/state.js~State#_syncColsVisibility",
"access": "private",
- "description": "Sync filters visibility with stored information",
- "lineNumber": 362,
+ "description": "Sync hidden columns with stored information",
+ "lineNumber": 334,
"params": [],
"generator": false
},
{
"__docId__": 678,
+ "kind": "method",
+ "static": false,
+ "variation": null,
+ "name": "_syncFiltersVisibility",
+ "memberof": "src/modules/state.js~State",
+ "longname": "src/modules/state.js~State#_syncFiltersVisibility",
+ "access": "private",
+ "description": "Sync filters visibility with stored information",
+ "lineNumber": 361,
+ "params": [],
+ "generator": false
+ },
+ {
+ "__docId__": 679,
"kind": "member",
"static": false,
"variation": null,
@@ -13806,7 +13858,7 @@
"longname": "src/modules/state.js~State#filtersVisibility",
"access": null,
"description": null,
- "lineNumber": 370,
+ "lineNumber": 369,
"undocument": true,
"type": {
"types": [
@@ -13815,7 +13867,7 @@
}
},
{
- "__docId__": 679,
+ "__docId__": 680,
"kind": "method",
"static": false,
"variation": null,
@@ -13824,12 +13876,12 @@
"longname": "src/modules/state.js~State#destroy",
"access": null,
"description": "Destroy State instance",
- "lineNumber": 377,
+ "lineNumber": 376,
"params": [],
"generator": false
},
{
- "__docId__": 680,
+ "__docId__": 681,
"kind": "member",
"static": false,
"variation": null,
@@ -13838,25 +13890,7 @@
"longname": "src/modules/state.js~State#state",
"access": null,
"description": null,
- "lineNumber": 382,
- "undocument": true,
- "type": {
- "types": [
- "*"
- ]
- }
- },
- {
- "__docId__": 681,
- "kind": "member",
- "static": false,
- "variation": null,
- "name": "hash",
- "memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#hash",
- "access": null,
- "description": null,
- "lineNumber": 403,
+ "lineNumber": 381,
"undocument": true,
"type": {
"types": [
@@ -13869,12 +13903,12 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "storage",
+ "name": "hash",
"memberof": "src/modules/state.js~State",
- "longname": "src/modules/state.js~State#storage",
+ "longname": "src/modules/state.js~State#hash",
"access": null,
"description": null,
- "lineNumber": 408,
+ "lineNumber": 402,
"undocument": true,
"type": {
"types": [
@@ -13887,12 +13921,30 @@
"kind": "member",
"static": false,
"variation": null,
+ "name": "storage",
+ "memberof": "src/modules/state.js~State",
+ "longname": "src/modules/state.js~State#storage",
+ "access": null,
+ "description": null,
+ "lineNumber": 407,
+ "undocument": true,
+ "type": {
+ "types": [
+ "*"
+ ]
+ }
+ },
+ {
+ "__docId__": 684,
+ "kind": "member",
+ "static": false,
+ "variation": null,
"name": "initialized",
"memberof": "src/modules/state.js~State",
"longname": "src/modules/state.js~State#initialized",
"access": null,
"description": null,
- "lineNumber": 411,
+ "lineNumber": 410,
"undocument": true,
"type": {
"types": [
@@ -13901,7 +13953,7 @@
}
},
{
- "__docId__": 684,
+ "__docId__": 685,
"kind": "file",
"static": true,
"variation": null,
@@ -13914,7 +13966,7 @@
"content": "import {Feature} from '../feature';\nimport {root} from '../root';\nimport {createElm, createText, elm, removeElm} from '../dom';\nimport {isFn} from '../types';\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 let 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 = isFn(f.on_before_show_msg) ?\n f.on_before_show_msg : null;\n //calls function after message is displayed\n this.onAfterShowMsg = isFn(f.on_after_show_msg) ?\n f.on_after_show_msg : null;\n\n //status messages\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 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 // 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 let tf = this.tf;\n let emitter = this.emitter;\n\n //status bar container\n let statusDiv = createElm('div', ['id', this.prfxStatus + tf.id]);\n statusDiv.className = this.statusBarCssClass;\n\n //status bar label\n let statusSpan = createElm('span', ['id', this.prfxStatusSpan + tf.id]);\n //preceding text\n let statusSpanText = createElm('span',\n ['id', this.prfxStatusTxt + tf.id]);\n statusSpanText.appendChild(createText(this.statusBarText));\n\n // target element container\n if (!this.statusBarTgtId) {\n tf.setToolbar();\n }\n let targetEl = (!this.statusBarTgtId) ?\n tf.lDiv : elm(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 // Subscribe to events\n emitter.on(['before-filtering'], () => this.message(this.msgFilter));\n emitter.on(['before-populating-filter'],\n () => this.message(this.msgPopulate));\n emitter.on(['before-page-change'],\n () => this.message(this.msgChangePage));\n emitter.on(['before-clearing-filters'], () =>\n this.message(this.msgClear));\n emitter.on(['before-page-length-change'],\n () => this.message(this.msgChangeResults));\n emitter.on(['before-reset-page'],\n () => this.message(this.msgResetPage));\n emitter.on(['before-reset-page-length'],\n () => this.message(this.msgResetPageLength));\n emitter.on(['before-loading-extensions'],\n () => this.message(this.msgLoadExtensions));\n emitter.on(['before-loading-themes'],\n () => this.message(this.msgLoadThemes));\n\n emitter.on([\n 'after-filtering',\n 'after-populating-filter',\n 'after-page-change',\n 'after-clearing-filters',\n 'after-page-length-change',\n 'after-reset-page',\n 'after-reset-page-length',\n 'after-loading-extensions',\n 'after-loading-themes'],\n () => this.message('')\n );\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 let d = t === '' ? this.statusBarCloseDelay : 1;\n root.setTimeout(() => {\n if (!this.initialized) {\n return;\n }\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 let emitter = this.emitter;\n\n this.statusBarDiv.innerHTML = '';\n if (!this.statusBarTgtId) {\n removeElm(this.statusBarDiv);\n }\n this.statusBarSpan = null;\n this.statusBarSpanText = null;\n this.statusBarDiv = null;\n\n // Unsubscribe to events\n emitter.off(['before-filtering'], () => this.message(this.msgFilter));\n emitter.off(['before-populating-filter'],\n () => this.message(this.msgPopulate));\n emitter.off(['before-page-change'],\n () => this.message(this.msgChangePage));\n emitter.off(['before-clearing-filters'],\n () => this.message(this.msgClear));\n emitter.off(['before-page-length-change'],\n () => this.message(this.msgChangeResults));\n emitter.off(['before-reset-page'], () =>\n this.message(this.msgResetPage));\n emitter.off(['before-reset-page-length'],\n () => this.message(this.msgResetPageLength));\n emitter.off(['before-loading-extensions'],\n () => this.message(this.msgLoadExtensions));\n emitter.off(['before-loading-themes'],\n () => this.message(this.msgLoadThemes));\n\n emitter.off([\n 'after-filtering',\n 'after-populating-filter',\n 'after-page-change',\n 'after-clearing-filters',\n 'after-page-length-change',\n 'after-reset-page',\n 'after-reset-page-length',\n 'after-loading-extensions',\n 'after-loading-themes'],\n () => this.message('')\n );\n\n this.initialized = false;\n }\n\n}\n"
},
{
- "__docId__": 685,
+ "__docId__": 686,
"kind": "class",
"static": true,
"variation": null,
@@ -13934,7 +13986,7 @@
]
},
{
- "__docId__": 686,
+ "__docId__": 687,
"kind": "constructor",
"static": false,
"variation": null,
@@ -13959,7 +14011,7 @@
"generator": false
},
{
- "__docId__": 687,
+ "__docId__": 688,
"kind": "member",
"static": false,
"variation": null,
@@ -13977,7 +14029,7 @@
}
},
{
- "__docId__": 688,
+ "__docId__": 689,
"kind": "member",
"static": false,
"variation": null,
@@ -13995,7 +14047,7 @@
}
},
{
- "__docId__": 689,
+ "__docId__": 690,
"kind": "member",
"static": false,
"variation": null,
@@ -14013,7 +14065,7 @@
}
},
{
- "__docId__": 690,
+ "__docId__": 691,
"kind": "member",
"static": false,
"variation": null,
@@ -14031,7 +14083,7 @@
}
},
{
- "__docId__": 691,
+ "__docId__": 692,
"kind": "member",
"static": false,
"variation": null,
@@ -14049,7 +14101,7 @@
}
},
{
- "__docId__": 692,
+ "__docId__": 693,
"kind": "member",
"static": false,
"variation": null,
@@ -14067,7 +14119,7 @@
}
},
{
- "__docId__": 693,
+ "__docId__": 694,
"kind": "member",
"static": false,
"variation": null,
@@ -14085,7 +14137,7 @@
}
},
{
- "__docId__": 694,
+ "__docId__": 695,
"kind": "member",
"static": false,
"variation": null,
@@ -14103,7 +14155,7 @@
}
},
{
- "__docId__": 695,
+ "__docId__": 696,
"kind": "member",
"static": false,
"variation": null,
@@ -14121,7 +14173,7 @@
}
},
{
- "__docId__": 696,
+ "__docId__": 697,
"kind": "member",
"static": false,
"variation": null,
@@ -14139,7 +14191,7 @@
}
},
{
- "__docId__": 697,
+ "__docId__": 698,
"kind": "member",
"static": false,
"variation": null,
@@ -14157,7 +14209,7 @@
}
},
{
- "__docId__": 698,
+ "__docId__": 699,
"kind": "member",
"static": false,
"variation": null,
@@ -14175,7 +14227,7 @@
}
},
{
- "__docId__": 699,
+ "__docId__": 700,
"kind": "member",
"static": false,
"variation": null,
@@ -14193,7 +14245,7 @@
}
},
{
- "__docId__": 700,
+ "__docId__": 701,
"kind": "member",
"static": false,
"variation": null,
@@ -14211,7 +14263,7 @@
}
},
{
- "__docId__": 701,
+ "__docId__": 702,
"kind": "member",
"static": false,
"variation": null,
@@ -14229,7 +14281,7 @@
}
},
{
- "__docId__": 702,
+ "__docId__": 703,
"kind": "member",
"static": false,
"variation": null,
@@ -14247,7 +14299,7 @@
}
},
{
- "__docId__": 703,
+ "__docId__": 704,
"kind": "member",
"static": false,
"variation": null,
@@ -14265,7 +14317,7 @@
}
},
{
- "__docId__": 704,
+ "__docId__": 705,
"kind": "member",
"static": false,
"variation": null,
@@ -14283,7 +14335,7 @@
}
},
{
- "__docId__": 705,
+ "__docId__": 706,
"kind": "member",
"static": false,
"variation": null,
@@ -14301,7 +14353,7 @@
}
},
{
- "__docId__": 706,
+ "__docId__": 707,
"kind": "member",
"static": false,
"variation": null,
@@ -14319,7 +14371,7 @@
}
},
{
- "__docId__": 707,
+ "__docId__": 708,
"kind": "member",
"static": false,
"variation": null,
@@ -14337,7 +14389,7 @@
}
},
{
- "__docId__": 708,
+ "__docId__": 709,
"kind": "member",
"static": false,
"variation": null,
@@ -14355,7 +14407,7 @@
}
},
{
- "__docId__": 709,
+ "__docId__": 710,
"kind": "member",
"static": false,
"variation": null,
@@ -14373,7 +14425,7 @@
}
},
{
- "__docId__": 710,
+ "__docId__": 711,
"kind": "method",
"static": false,
"variation": null,
@@ -14388,7 +14440,7 @@
"generator": false
},
{
- "__docId__": 711,
+ "__docId__": 712,
"kind": "member",
"static": false,
"variation": null,
@@ -14406,7 +14458,7 @@
}
},
{
- "__docId__": 712,
+ "__docId__": 713,
"kind": "member",
"static": false,
"variation": null,
@@ -14424,7 +14476,7 @@
}
},
{
- "__docId__": 713,
+ "__docId__": 714,
"kind": "member",
"static": false,
"variation": null,
@@ -14442,7 +14494,7 @@
}
},
{
- "__docId__": 714,
+ "__docId__": 715,
"kind": "member",
"static": false,
"variation": null,
@@ -14460,7 +14512,7 @@
}
},
{
- "__docId__": 715,
+ "__docId__": 716,
"kind": "method",
"static": false,
"variation": null,
@@ -14485,7 +14537,7 @@
"generator": false
},
{
- "__docId__": 716,
+ "__docId__": 717,
"kind": "method",
"static": false,
"variation": null,
@@ -14500,7 +14552,7 @@
"generator": false
},
{
- "__docId__": 717,
+ "__docId__": 718,
"kind": "member",
"static": false,
"variation": null,
@@ -14518,7 +14570,7 @@
}
},
{
- "__docId__": 718,
+ "__docId__": 719,
"kind": "member",
"static": false,
"variation": null,
@@ -14536,7 +14588,7 @@
}
},
{
- "__docId__": 719,
+ "__docId__": 720,
"kind": "member",
"static": false,
"variation": null,
@@ -14554,7 +14606,7 @@
}
},
{
- "__docId__": 720,
+ "__docId__": 721,
"kind": "member",
"static": false,
"variation": null,
@@ -14572,7 +14624,7 @@
}
},
{
- "__docId__": 721,
+ "__docId__": 722,
"kind": "file",
"static": true,
"variation": null,
@@ -14585,7 +14637,7 @@
"content": "\nimport Cookie from '../cookie';\nimport {root} from '../root';\n\nconst JSON = root.JSON;\nconst localStorage = root.localStorage;\nconst location = root.location;\n\nexport const hasStorage = () => {\n return 'Storage' in root;\n};\n\n/**\n * Stores the features state in browser's local storage or cookie\n *\n * @export\n * @class Storage\n */\nexport class Storage {\n\n /**\n * Creates an instance of Storage\n *\n * @param {State} state Instance of State\n */\n constructor(state) {\n this.state = state;\n this.tf = state.tf;\n this.enableLocalStorage = state.enableLocalStorage && hasStorage();\n this.enableCookie = state.enableCookie && !this.enableLocalStorage;\n this.emitter = state.emitter;\n this.duration = state.cookieDuration;\n }\n\n\n /**\n * Initializes the Storage object\n */\n init() {\n this.emitter.on(['state-changed'], (tf, state) => this.save(state));\n this.emitter.on(['initialized'], () => this.sync());\n }\n\n /**\n * Persists the features state on state changes\n *\n * @param {State} state Instance of State\n */\n save(state) {\n if (this.enableLocalStorage) {\n localStorage[this.getKey()] = JSON.stringify(state);\n } else {\n Cookie.write(this.getKey(), JSON.stringify(state), this.duration);\n }\n }\n\n /**\n * Turns stored string into a State JSON object\n *\n * @returns {Object} JSON object\n */\n retrieve() {\n let state = null;\n if (this.enableLocalStorage) {\n state = localStorage[this.getKey()];\n } else {\n state = Cookie.read(this.getKey());\n }\n\n if (!state) {\n return null;\n }\n return JSON.parse(state);\n }\n\n /**\n * Removes persisted state from storage\n */\n remove() {\n if (this.enableLocalStorage) {\n localStorage.removeItem(this.getKey());\n } else {\n Cookie.remove(this.getKey());\n }\n }\n\n /**\n * Applies persisted state to features\n */\n sync() {\n let state = this.retrieve();\n if (!state) {\n return;\n }\n // override current state with persisted one and sync features\n this.state.overrideAndSync(state);\n }\n\n /**\n * Returns the storage key\n *\n * @returns {String} Key\n */\n getKey() {\n return JSON.stringify({\n key: `${this.tf.prfxTf}_${this.tf.id}`,\n path: location.pathname\n });\n }\n\n /**\n * Release Storage event subscriptions and clear fields\n */\n destroy() {\n this.emitter.off(['state-changed'], (tf, state) => this.save(state));\n this.emitter.off(['initialized'], () => this.sync());\n\n this.remove();\n\n this.state = null;\n this.emitter = null;\n }\n}\n"
},
{
- "__docId__": 722,
+ "__docId__": 723,
"kind": "variable",
"static": true,
"variation": null,
@@ -14606,7 +14658,7 @@
}
},
{
- "__docId__": 723,
+ "__docId__": 724,
"kind": "variable",
"static": true,
"variation": null,
@@ -14627,7 +14679,7 @@
}
},
{
- "__docId__": 724,
+ "__docId__": 725,
"kind": "variable",
"static": true,
"variation": null,
@@ -14648,7 +14700,7 @@
}
},
{
- "__docId__": 725,
+ "__docId__": 726,
"kind": "variable",
"static": true,
"variation": null,
@@ -14669,7 +14721,7 @@
}
},
{
- "__docId__": 726,
+ "__docId__": 727,
"kind": "class",
"static": true,
"variation": null,
@@ -14695,7 +14747,7 @@
"interface": false
},
{
- "__docId__": 727,
+ "__docId__": 728,
"kind": "constructor",
"static": false,
"variation": null,
@@ -14720,7 +14772,7 @@
"generator": false
},
{
- "__docId__": 728,
+ "__docId__": 729,
"kind": "member",
"static": false,
"variation": null,
@@ -14738,7 +14790,7 @@
}
},
{
- "__docId__": 729,
+ "__docId__": 730,
"kind": "member",
"static": false,
"variation": null,
@@ -14756,7 +14808,7 @@
}
},
{
- "__docId__": 730,
+ "__docId__": 731,
"kind": "member",
"static": false,
"variation": null,
@@ -14774,7 +14826,7 @@
}
},
{
- "__docId__": 731,
+ "__docId__": 732,
"kind": "member",
"static": false,
"variation": null,
@@ -14792,7 +14844,7 @@
}
},
{
- "__docId__": 732,
+ "__docId__": 733,
"kind": "member",
"static": false,
"variation": null,
@@ -14810,7 +14862,7 @@
}
},
{
- "__docId__": 733,
+ "__docId__": 734,
"kind": "member",
"static": false,
"variation": null,
@@ -14828,7 +14880,7 @@
}
},
{
- "__docId__": 734,
+ "__docId__": 735,
"kind": "method",
"static": false,
"variation": null,
@@ -14842,7 +14894,7 @@
"generator": false
},
{
- "__docId__": 735,
+ "__docId__": 736,
"kind": "method",
"static": false,
"variation": null,
@@ -14867,7 +14919,7 @@
"generator": false
},
{
- "__docId__": 736,
+ "__docId__": 737,
"kind": "method",
"static": false,
"variation": null,
@@ -14895,7 +14947,7 @@
"generator": false
},
{
- "__docId__": 737,
+ "__docId__": 738,
"kind": "method",
"static": false,
"variation": null,
@@ -14909,7 +14961,7 @@
"generator": false
},
{
- "__docId__": 738,
+ "__docId__": 739,
"kind": "method",
"static": false,
"variation": null,
@@ -14923,7 +14975,7 @@
"generator": false
},
{
- "__docId__": 739,
+ "__docId__": 740,
"kind": "method",
"static": false,
"variation": null,
@@ -14951,7 +15003,7 @@
"generator": false
},
{
- "__docId__": 740,
+ "__docId__": 741,
"kind": "method",
"static": false,
"variation": null,
@@ -14965,7 +15017,7 @@
"generator": false
},
{
- "__docId__": 741,
+ "__docId__": 742,
"kind": "member",
"static": false,
"variation": null,
@@ -14983,7 +15035,7 @@
}
},
{
- "__docId__": 742,
+ "__docId__": 743,
"kind": "member",
"static": false,
"variation": null,
@@ -15001,7 +15053,7 @@
}
},
{
- "__docId__": 743,
+ "__docId__": 744,
"kind": "file",
"static": true,
"variation": null,
@@ -15014,7 +15066,7 @@
"content": "/**\n * Export window or global object depending on the environment\n */\nexport const root = (typeof self === 'object' && self.self === self && self) ||\n (typeof global === 'object' && global.global === global && global) ||\n this;\n"
},
{
- "__docId__": 744,
+ "__docId__": 745,
"kind": "variable",
"static": true,
"variation": null,
@@ -15034,7 +15086,7 @@
}
},
{
- "__docId__": 745,
+ "__docId__": 746,
"kind": "file",
"static": true,
"variation": null,
@@ -15047,7 +15099,7 @@
"content": "/**\n * Sorting utilities\n */\n\n/**\n * Case insensitive compare function for passed strings\n * @param {String} First string\n * @param {String} Second string\n * @return {Number} -1 if first string lower than second one\n * 0 if first string same order as second one\n * 1 if first string greater than second one\n */\nexport const ignoreCase = (a, b) => {\n let x = a.toLowerCase();\n let y = b.toLowerCase();\n return ((x < y) ? -1 : ((x > y) ? 1 : 0));\n}\n\n/**\n * Sorts passed numbers in a ascending manner\n * @param {Number} First number\n * @param {Number} Second number\n * @param {Number} Negative, zero or positive number\n */\nexport const numSortAsc = (a, b) => (a - b);\n\n/**\n * Sorts passed numbers in a descending manner\n * @param {Number} First number\n * @param {Number} Second number\n * @param {Number} Negative, zero or positive number\n */\nexport const numSortDesc = (a, b) => (b - a);\n"
},
{
- "__docId__": 746,
+ "__docId__": 747,
"kind": "variable",
"static": true,
"variation": null,
@@ -15097,7 +15149,7 @@
}
},
{
- "__docId__": 747,
+ "__docId__": 748,
"kind": "variable",
"static": true,
"variation": null,
@@ -15149,7 +15201,7 @@
}
},
{
- "__docId__": 748,
+ "__docId__": 749,
"kind": "variable",
"static": true,
"variation": null,
@@ -15201,7 +15253,7 @@
}
},
{
- "__docId__": 749,
+ "__docId__": 750,
"kind": "file",
"static": true,
"variation": null,
@@ -15214,7 +15266,7 @@
"content": "/**\n * String utilities\n */\n\n/**\n * Removes whitespace from both sides of passed string\n * @param {String} text\n * @return {String}\n */\nexport const trim = text => {\n if (text.trim) {\n return text.trim();\n }\n return text.replace(/^\\s*|\\s*$/g, '');\n}\n\n/**\n * Checks if passed string is empty\n * @param {String} text\n * @return {Boolean}\n */\nexport const isEmpty = (text) => trim(text) === '';\n\n/**\n * Makes regex safe string by escaping special characters from passed string\n * @param {String} text\n * @return {String} escaped string\n */\nexport const rgxEsc = text => {\n let chars = /[-\\/\\\\^$*+?.()|[\\]{}]/g;\n let escMatch = '\\\\$&';\n return String(text).replace(chars, escMatch);\n}\n\n/**\n * Returns passed string as lowercase if caseSensitive flag set false. By\n * default it returns the string with no casing changes.\n * @param {String} text\n * @return {String} string\n */\nexport const matchCase = (text, caseSensitive = false) => {\n if (!caseSensitive) {\n return text.toLowerCase();\n }\n return text;\n}\n\n/**\n * Checks if passed data contains the searched term\n * @param {String} term Searched term\n * @param {String} data Data string\n * @param {Boolean} exactMatch Exact match\n * @param {Boolean} caseSensitive Case sensitive\n * @return {Boolean}\n */\nexport const contains =\n (term, data, exactMatch = false, caseSensitive = false) => {\n // Improved by Cedric Wartel (cwl) automatic exact match for selects and\n // special characters are now filtered\n let regexp;\n let modifier = caseSensitive ? 'g' : 'gi';\n if (exactMatch) {\n regexp = new RegExp('(^\\\\s*)' + rgxEsc(term) + '(\\\\s*$)',\n modifier);\n } else {\n regexp = new RegExp(rgxEsc(term), modifier);\n }\n return regexp.test(data);\n }\n"
},
{
- "__docId__": 750,
+ "__docId__": 751,
"kind": "variable",
"static": true,
"variation": null,
@@ -15254,7 +15306,7 @@
}
},
{
- "__docId__": 751,
+ "__docId__": 752,
"kind": "variable",
"static": true,
"variation": null,
@@ -15294,7 +15346,7 @@
}
},
{
- "__docId__": 752,
+ "__docId__": 753,
"kind": "variable",
"static": true,
"variation": null,
@@ -15334,7 +15386,7 @@
}
},
{
- "__docId__": 753,
+ "__docId__": 754,
"kind": "variable",
"static": true,
"variation": null,
@@ -15374,7 +15426,7 @@
}
},
{
- "__docId__": 754,
+ "__docId__": 755,
"kind": "variable",
"static": true,
"variation": null,
@@ -15444,7 +15496,7 @@
}
},
{
- "__docId__": 755,
+ "__docId__": 756,
"kind": "file",
"static": true,
"variation": null,
@@ -15457,7 +15509,7 @@
"content": "import {addEvt, cancelEvt, stopEvt, targetEvt, keyCode} from './event';\nimport {\n addClass, createElm, createOpt, elm, getText, getFirstTextNode, hasClass,\n removeClass, removeElm, tag\n} from './dom';\nimport {contains, matchCase, rgxEsc, trim} from './string';\nimport {isEmpty as isEmptyString} from './string';\nimport {isArray, isEmpty, isFn, isNumber, isObj, isString, isUndef}\nfrom './types';\nimport {formatDate, isValidDate} from './date';\nimport {removeNbFormat} from './helpers';\n\nimport {root} from './root';\nimport {Emitter} from './emitter';\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';\nimport {NoResults} from './modules/noResults';\nimport {State} from './modules/state';\n\nimport {\n INPUT, SELECT, MULTIPLE, CHECKLIST, NONE,\n ENTER_KEY, TAB_KEY, ESC_KEY, UP_ARROW_KEY, DOWN_ARROW_KEY,\n CELL_TAG, AUTO_FILTER_DELAY\n} from './const';\n\nlet doc = root.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 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 = 0;\n this.nbCells = null;\n\n // TODO: use for-of\n args.forEach((arg) => {\n if (typeof arg === 'object' && arg.nodeName === 'TABLE') {\n this.tbl = arg;\n this.id = arg.id || `tf_${new Date().getTime()}_`;\n } else if (isString(arg)) {\n this.id = arg;\n this.tbl = elm(arg);\n } else if (isNumber(arg)) {\n this.startRow = arg;\n } else if (isObj(arg)) {\n this.cfg = arg;\n }\n });\n\n if (!this.tbl || this.tbl.nodeName !== 'TABLE' ||\n this.getRowsNb() === 0) {\n throw new Error(`Could not instantiate TableFilter: HTML table\n DOM element not found.`);\n }\n\n // configuration object\n let f = this.cfg;\n\n /**\n * Event emitter instance\n * @type {Emitter}\n */\n this.emitter = new Emitter();\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 /*** filters' grid properties ***/\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 //defines tag of the cells containing filters (td/th)\n this.fltCellTag = isString(f.filters_cell_tag) ?\n f.filters_cell_tag : CELL_TAG;\n\n //stores filters ids\n this.fltIds = [];\n //stores valid rows indexes (rows visible upon filtering)\n this.validRowsIndex = [];\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 = isArray(f.col_widths);\n this.colWidths = this.hasColWidths ? f.col_widths : [];\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 = isFn(f.on_before_filter) ?\n f.on_before_filter : null;\n //calls function after filtering\n this.onAfterFilter = isFn(f.on_after_filter) ? 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 = 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 //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 || [];\n //stores filters elements if isExternalFlt is true\n this.externalFltEls = [];\n //calls function when filters grid loaded\n this.onFiltersLoaded = 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 = 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 = isFn(f.custom_cell_data) ?\n f.custom_cell_data : null;\n //input watermark text array\n this.watermark = f.watermark || '';\n this.isWatermarkArray = 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 = 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 = 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 = 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 : [];\n //enables/disables descending numeric options sorting\n this.isSortNumDesc = Boolean(f.sort_num_desc);\n this.sortNumDesc = this.isSortNumDesc ? f.sort_num_desc : [];\n //Select filters are populated on demand\n this.loadFltOnDemand = Boolean(f.load_filters_on_demand);\n this.hasCustomOptions = 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 //show/hides rows counter\n this.rowsCounter = Boolean(f.rows_counter);\n\n //show/hides status bar\n this.statusBar = Boolean(f.status_bar);\n\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 = isFn(f.on_before_reset) ?\n f.on_before_reset : null;\n //callback function after filters are cleared\n this.onAfterReset = isFn(f.on_after_reset) ? f.on_after_reset : null;\n\n /*** paging ***/\n //enables/disables table paging\n this.paging = Boolean(f.paging);\n this.nbHiddenRows = 0; //nb hidden rows\n\n /*** autofilter on typing ***/\n //Auto filtering, table is filtered when user stops 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 : AUTO_FILTER_DELAY;\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 /*** No results feature ***/\n this.noResults = isObj(f.no_results_message) ||\n Boolean(f.no_results_message);\n\n // state persisstence\n this.state = isObj(f.state) || Boolean(f.state);\n\n /*** data types ***/\n //defines default date type (european DMY)\n this.defaultDateType = f.default_date_type || 'DMY';\n //defines default thousands separator 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 = 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 = isArray(f.col_date_type);\n //array containing columns date type\n this.colDateType = this.hasColDateType ? f.col_date_type : null;\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 //responsive table css class\n this.prfxResponsive = 'resp';\n\n /*** extensions ***/\n //imports external script\n this.extensions = f.extensions;\n this.hasExtensions = isArray(this.extensions);\n\n /*** themes ***/\n this.enableDefaultTheme = Boolean(f.enable_default_theme);\n //imports themes\n this.hasThemes = (this.enableDefaultTheme || isArray(f.themes));\n this.themes = f.themes || [];\n //themes path\n this.themesPath = f.themes_path || this.stylePath + 'themes/';\n\n //responsive table\n this.responsive = Boolean(f.responsive);\n\n // Features registry\n this.Mod = {};\n\n // Extensions registry\n this.ExtRegistry = {};\n }\n\n /**\n * Initialise features and layout\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n let Mod = this.Mod;\n let n = this.singleSearchFlt ? 1 : this.nbCells;\n let 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) {\n this.loadThemes();\n }\n\n // Instantiate help feature and initialise only if set true\n if (!Mod.help) {\n Mod.help = new Help(this);\n }\n if (this.help) {\n Mod.help.init();\n }\n\n if (this.state) {\n if (!Mod.state) {\n Mod.state = new State(this);\n }\n Mod.state.init();\n }\n\n if (this.gridLayout) {\n if (!Mod.gridLayout) {\n Mod.gridLayout = new GridLayout(this);\n }\n Mod.gridLayout.init();\n }\n\n if (this.loader) {\n if (!Mod.loader) {\n Mod.loader = new Loader(this);\n }\n Mod.loader.init();\n }\n\n if (this.highlightKeywords) {\n Mod.highlightKeyword = new HighlightKeyword(this);\n Mod.highlightKeyword.init();\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._initNoFilters();\n } else {\n let fltrow = this._insertFiltersRow();\n\n this.nbFilterableRows = this.getRowsNb();\n\n // Generate filters\n for (let i = 0; i < n; i++) {\n this.emitter.emit('before-filter-init', this, i);\n\n let fltcell = createElm(this.fltCellTag),\n col = this.getFilterType(i);\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 = INPUT;\n inpclass = this.singleFltCssClass;\n }\n\n //drop-down filters\n if (col === SELECT || col === MULTIPLE) {\n if (!Mod.dropdown) {\n Mod.dropdown = new Dropdown(this);\n }\n Mod.dropdown.init(i, this.isExternalFlt, fltcell);\n }\n // checklist\n else if (col === CHECKLIST) {\n if (!Mod.checkList) {\n Mod.checkList = new CheckList(this);\n }\n Mod.checkList.init(i, this.isExternalFlt, fltcell);\n } else {\n this._buildInputFilter(i, inpclass, fltcell);\n }\n\n // this adds submit button\n if (i === n - 1 && this.displayBtn) {\n this._buildSubmitButton(i, fltcell);\n }\n\n this.emitter.emit('after-filter-init', this, i);\n }\n\n this.emitter.on(['filter-focus'],\n (tf, filter) => this.setActiveFilterId(filter.id));\n\n }//if this.fltGrid\n\n /* Features */\n if (this.hasVisibleRows) {\n this.emitter.on(['after-filtering'],\n () => this.enforceVisibility());\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) {\n if (!Mod.paging) {\n Mod.paging = new Paging(this);\n Mod.paging.init();\n } else {\n Mod.paging.reset();\n }\n }\n if (this.btnReset) {\n Mod.clearButton = new ClearButton(this);\n Mod.clearButton.init();\n }\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 if (this.noResults) {\n if (!Mod.noResults) {\n Mod.noResults = new NoResults(this);\n }\n Mod.noResults.init();\n }\n\n //TF css class is added to table\n if (!this.gridLayout) {\n addClass(this.tbl, this.prfxTf);\n if (this.responsive) {\n addClass(this.tbl, this.prfxResponsive);\n }\n }\n\n /* Loads extensions */\n if (this.hasExtensions) {\n this.initExtensions();\n }\n\n // Subscribe to events\n if (this.markActiveColumns) {\n this.emitter.on(['before-filtering'],\n () => this.clearActiveColumns());\n this.emitter.on(['cell-processed'],\n (tf, colIndex) => this.markActiveColumn(colIndex));\n }\n if (this.linkedFilters) {\n this.emitter.on(['after-filtering'], () => this.linkFilters());\n }\n\n this.initialized = true;\n\n if (this.onFiltersLoaded) {\n this.onFiltersLoaded.call(null, this);\n }\n this.emitter.emit('initialized', this);\n }\n\n /**\n * Detect key\n * @param {Event} evt\n */\n detectKey(evt) {\n if (!this.enterKey) {\n return;\n }\n if (evt) {\n let key = keyCode(evt);\n if (key === ENTER_KEY) {\n this.filter();\n cancelEvt(evt);\n stopEvt(evt);\n } else {\n this.isUserTyping = true;\n root.clearInterval(this.autoFilterTimer);\n this.autoFilterTimer = null;\n }\n }\n }\n\n /**\n * Filter's keyup event: if auto-filter on, detect user is typing and filter\n * columns\n * @param {Event} evt\n */\n onKeyUp(evt) {\n if (!this.autoFilter) {\n return;\n }\n let key = keyCode(evt);\n this.isUserTyping = false;\n\n function filter() {\n root.clearInterval(this.autoFilterTimer);\n this.autoFilterTimer = null;\n if (!this.isUserTyping) {\n this.filter();\n this.isUserTyping = null;\n }\n }\n\n if (key !== ENTER_KEY && key !== TAB_KEY && key !== ESC_KEY &&\n key !== UP_ARROW_KEY && key !== DOWN_ARROW_KEY) {\n if (this.autoFilterTimer === null) {\n this.autoFilterTimer = root.setInterval(filter.bind(this),\n this.autoFilterDelay);\n }\n } else {\n root.clearInterval(this.autoFilterTimer);\n this.autoFilterTimer = null;\n }\n }\n\n /**\n * Filter's keydown event: if auto-filter on, detect user is typing\n */\n onKeyDown() {\n if (this.autoFilter) {\n this.isUserTyping = true;\n }\n }\n\n /**\n * Filter's focus event\n * @param {Event} evt\n */\n onInpFocus(evt) {\n let elm = targetEvt(evt);\n this.emitter.emit('filter-focus', this, elm);\n }\n\n /**\n * Filter's blur event: if auto-filter on, clear interval on filter blur\n */\n onInpBlur() {\n if (this.autoFilter) {\n this.isUserTyping = false;\n root.clearInterval(this.autoFilterTimer);\n }\n this.emitter.emit('filter-blur', this);\n }\n\n /**\n * Insert filters row at initialization\n */\n _insertFiltersRow() {\n if (this.gridLayout) {\n return;\n }\n let fltrow;\n\n let thead = 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 fltrow.className = this.fltsRowCssClass;\n\n if (this.isExternalFlt) {\n fltrow.style.display = NONE;\n }\n\n this.emitter.emit('filters-row-inserted', this, fltrow);\n return fltrow;\n }\n\n /**\n * Initialize filtersless table\n */\n _initNoFilters() {\n if (this.fltGrid) {\n return;\n }\n this.refRow = this.refRow > 0 ? this.refRow - 1 : 0;\n this.nbFilterableRows = this.getRowsNb();\n }\n\n /**\n * Build input filter type\n * @param {Number} colIndex Column index\n * @param {String} cssClass Css class applied to filter\n * @param {DOMElement} container Container DOM element\n */\n _buildInputFilter(colIndex, cssClass, container) {\n let col = this.getFilterType(colIndex);\n let externalFltTgtId = this.isExternalFlt ?\n this.externalFltTgtIds[colIndex] : null;\n let inptype = col === INPUT ? 'text' : 'hidden';\n let inp = createElm(INPUT,\n ['id', this.prfxFlt + colIndex + '_' + this.id],\n ['type', inptype], ['ct', colIndex]);\n\n if (inptype !== 'hidden' && this.watermark) {\n inp.setAttribute('placeholder',\n this.isWatermarkArray ? (this.watermark[colIndex] || '') :\n this.watermark\n );\n }\n inp.className = cssClass || this.fltCssClass;\n addEvt(inp, 'focus', (evt) => this.onInpFocus(evt));\n\n //filter is appended in custom element\n if (externalFltTgtId) {\n elm(externalFltTgtId).appendChild(inp);\n this.externalFltEls.push(inp);\n } else {\n container.appendChild(inp);\n }\n\n this.fltIds.push(inp.id);\n\n addEvt(inp, 'keypress', (evt) => this.detectKey(evt));\n addEvt(inp, 'keydown', () => this.onKeyDown());\n addEvt(inp, 'keyup', (evt) => this.onKeyUp(evt));\n addEvt(inp, 'blur', () => this.onInpBlur());\n }\n\n /**\n * Build submit button\n * @param {Number} colIndex Column index\n * @param {DOMElement} container Container DOM element\n */\n _buildSubmitButton(colIndex, container) {\n let externalFltTgtId = this.isExternalFlt ?\n this.externalFltTgtIds[colIndex] : null;\n let btn = createElm(INPUT,\n ['id', this.prfxValButton + colIndex + '_' + this.id],\n ['type', 'button'], ['value', this.btnText]);\n btn.className = this.btnCssClass;\n\n //filter is appended in custom element\n if (externalFltTgtId) {\n elm(externalFltTgtId).appendChild(btn);\n } else {\n container.appendChild(btn);\n }\n\n addEvt(btn, 'click', () => this.filter());\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 // Set config's publicPath dynamically for Webpack...\n __webpack_public_path__ = this.basePath;\n\n this.emitter.emit('before-loading-extensions', this);\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 this.emitter.emit('after-loading-extensions', this);\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 // Require pattern for Webpack\n require(['./' + modulePath], (mod) => {\n /* eslint-disable */\n let inst = new mod.default(this, ext);\n /* eslint-enable */\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 !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] = undefined;\n }\n }\n }\n\n /**\n * Load themes defined in the configuration object\n */\n loadThemes() {\n let themes = this.themes;\n this.emitter.emit('before-loading-themes', this);\n\n //Default theme config\n if (this.enableDefaultTheme) {\n let defaultTheme = { name: 'default' };\n this.themes.push(defaultTheme);\n }\n if (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 = '';\n\n //Paging buttons\n this.btnPrevPageHtml = '';\n this.btnNextPageHtml = '';\n this.btnFirstPageHtml = '';\n this.btnLastPageHtml = '';\n\n //Loader\n this.loader = true;\n this.loaderHtml = '';\n this.loaderText = null;\n\n this.emitter.emit('after-loading-themes', this);\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 elm(this.prfxTf + name);\n }\n\n /**\n * Destroy filter grid\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n\n let Mod = this.Mod;\n let emitter = this.emitter;\n\n if (this.isExternalFlt && !this.popupFilters) {\n this.removeExternalFlts();\n }\n if (this.infDiv) {\n this.removeToolbar();\n }\n if (this.markActiveColumns) {\n this.clearActiveColumns();\n emitter.off(['before-filtering'], () => this.clearActiveColumns());\n emitter.off(['cell-processed'],\n (tf, colIndex) => this.markActiveColumn(colIndex));\n }\n if (this.hasExtensions) {\n this.destroyExtensions();\n }\n\n this.validateAllRows();\n\n if (this.fltGrid && !this.gridLayout) {\n this.tbl.deleteRow(this.filtersRowIndex);\n }\n\n // broadcast destroy event\n emitter.emit('destroy', this);\n\n // Destroy modules\n // TODO: subcribe modules to destroy event instead\n Object.keys(Mod).forEach(function (key) {\n let feature = Mod[key];\n if (feature && isFn(feature.destroy)) {\n feature.destroy();\n }\n });\n\n // unsubscribe to events\n if (this.hasVisibleRows) {\n emitter.off(['after-filtering'], () => this.enforceVisibility());\n }\n if (this.linkedFilters) {\n emitter.off(['after-filtering'], () => this.linkFilters());\n }\n this.emitter.off(['filter-focus'],\n (tf, filter) => this.setActiveFilterId(filter.id));\n\n removeClass(this.tbl, this.prfxTf);\n removeClass(this.tbl, this.prfxResponsive);\n\n this.nbHiddenRows = 0;\n this.validRowsIndex = [];\n this.fltIds = [];\n this.initialized = false;\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 = createElm('div', ['id', this.prfxInfDiv + this.id]);\n infdiv.className = this.infDivCssClass;\n\n //custom container\n if (this.toolBarTgtId) {\n elm(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.infDivCssClass;\n }\n //default location: just above the table\n else {\n let cont = createElm('caption');\n cont.appendChild(infdiv);\n this.tbl.insertBefore(cont, this.tbl.firstChild);\n }\n this.infDiv = elm(this.prfxInfDiv + this.id);\n\n /*** left div containing rows # displayer ***/\n let ldiv = createElm('div', ['id', this.prfxLDiv + this.id]);\n ldiv.className = this.lDivCssClass;\n infdiv.appendChild(ldiv);\n this.lDiv = elm(this.prfxLDiv + this.id);\n\n /*** right div containing reset button\n + nb results per page select ***/\n let rdiv = createElm('div', ['id', this.prfxRDiv + this.id]);\n rdiv.className = this.rDivCssClass;\n infdiv.appendChild(rdiv);\n this.rDiv = elm(this.prfxRDiv + this.id);\n\n /*** mid div containing paging elements ***/\n let mdiv = createElm('div', ['id', this.prfxMDiv + this.id]);\n mdiv.className = this.mDivCssClass;\n infdiv.appendChild(mdiv);\n this.mDiv = elm(this.prfxMDiv + this.id);\n\n // emit help initialisation only if undefined\n if (isUndef(this.help)) {\n // explicitily set enabled field to true to initialise help by\n // default, only if setting is undefined\n this.Mod.help.enabled = true;\n this.emitter.emit('init-help', this);\n }\n }\n\n /**\n * Remove toolbar container element\n */\n removeToolbar() {\n if (!this.infDiv) {\n return;\n }\n removeElm(this.infDiv);\n this.infDiv = null;\n\n let tbl = this.tbl;\n let captions = tag(tbl, 'caption');\n if (captions.length > 0) {\n [].forEach.call(captions, (elm) => tbl.removeChild(elm));\n }\n }\n\n /**\n * Remove all the external column filters\n */\n removeExternalFlts() {\n if (!this.isExternalFlt) {\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 = elm(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 (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 /**\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 filter() {\n if (!this.fltGrid || !this.initialized) {\n return;\n }\n //invoke onbefore callback\n if (this.onBeforeFilter) {\n this.onBeforeFilter.call(null, this);\n }\n this.emitter.emit('before-filtering', this);\n\n let row = this.tbl.rows,\n nbRows = this.getRowsNb(true),\n hiddenRows = 0;\n\n this.validRowsIndex = [];\n // search args re-init\n let searchArgs = this.getFiltersValue();\n\n let numCellData;\n let nbFormat;\n let 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(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(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 = getText(cell);\n }\n if (w !== '') {\n this.emitter.emit('highlight-keyword', this, cell, w);\n }\n }\n }\n\n //looks for search argument in current row\n function hasArg(sA, cellData, j) {\n sA = matchCase(sA, this.caseSensitive);\n\n let occurence;\n let dtType = this.hasColDateType ?\n this.colDateType[j] : this.defaultDateType;\n\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(cellData, dtType)) {\n dte1 = formatDate(cellData, 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 = contains(sA.replace(re_lk, ''), cellData,\n false, this.caseSensitive);\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 = isEmptyString(cellData);\n }\n //non-empty\n else if (hasNM) {\n occurence = !isEmptyString(cellData);\n } else {\n occurence = contains(sA, cellData, this.isExactMatch(j),\n this.caseSensitive);\n }\n }\n\n else {\n //first numbers need to be formated\n if (this.hasColNbFormat && this.colNbFormat[j]) {\n numCellData = removeNbFormat(cellData, this.colNbFormat[j]);\n nbFormat = this.colNbFormat[j];\n } else {\n if (this.thousandsSeparator === ',' &&\n this.decimalSeparator === '.') {\n numCellData = removeNbFormat(cellData, 'us');\n nbFormat = 'us';\n } else {\n numCellData = removeNbFormat(cellData, '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 = numCellData <= removeNbFormat(\n sA.replace(re_le, ''), nbFormat);\n }\n //greater equal\n else if (hasGE) {\n occurence = numCellData >= removeNbFormat(\n sA.replace(re_ge, ''), nbFormat);\n }\n //lower\n else if (hasLO) {\n occurence = numCellData < removeNbFormat(\n sA.replace(re_l, ''), nbFormat);\n }\n //greater\n else if (hasGR) {\n occurence = numCellData > removeNbFormat(\n sA.replace(re_g, ''), nbFormat);\n }\n //different\n else if (hasDF) {\n occurence = contains(sA.replace(re_d, ''), cellData,\n false, this.caseSensitive) ? false : true;\n }\n //like\n else if (hasLK) {\n occurence = contains(sA.replace(re_lk, ''), cellData,\n false, this.caseSensitive);\n }\n //equal\n else if (hasEQ) {\n occurence = contains(sA.replace(re_eq, ''), cellData,\n true, this.caseSensitive);\n }\n //starts with\n else if (hasST) {\n occurence = cellData.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 cellData.lastIndexOf(searchArg, cellData.length - 1) ===\n (cellData.length - 1) - (searchArg.length - 1) &&\n cellData.lastIndexOf(searchArg, cellData.length - 1)\n > -1 ? true : false;\n }\n //empty\n else if (hasEM) {\n occurence = isEmptyString(cellData);\n }\n //non-empty\n else if (hasNM) {\n occurence = !isEmptyString(cellData);\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(cellData);\n } catch (ex) {\n occurence = false;\n }\n } else {\n // If numeric type data, perform a strict equality test and\n // fallback to unformatted number string comparison\n if (numCellData && this.hasColNbFormat &&\n this.colNbFormat[j] && !this.singleSearchFlt) {\n sA = removeNbFormat(sA, nbFormat);\n occurence = numCellData === sA ||\n contains(sA.toString(), numCellData.toString(),\n this.isExactMatch(j), this.caseSensitive);\n } else {\n // Finally test search term is contained in cell data\n occurence = contains(sA, cellData, this.isExactMatch(j),\n this.caseSensitive);\n }\n }\n\n }//else\n return occurence;\n }//fn\n\n for (let k = this.refRow; k < nbRows; k++) {\n // already filtered rows display re-init\n row[k].style.display = '';\n\n let cells = row[k].cells;\n let nchilds = cells.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 = searchArgs[this.singleSearchFlt ? 0 : j];\n\n if (sA === '') {\n continue;\n }\n\n let cellData = matchCase(this.getCellData(cells[j]),\n this.caseSensitive);\n\n //multiple search parameter operator ||\n let sAOrSplit = sA.toString().split(this.orOperator),\n //multiple search || parameter boolean\n hasMultiOrSA = sAOrSplit.length > 1,\n //multiple search parameter operator &&\n sAAndSplit = sA.toString().split(this.anOperator),\n //multiple search && parameter boolean\n hasMultiAndSA = sAAndSplit.length > 1;\n\n //detect operators or array query\n if (isArray(sA) || hasMultiOrSA || hasMultiAndSA) {\n let cS,\n s,\n occur = false;\n if (isArray(sA)) {\n s = sA;\n } else {\n s = hasMultiOrSA ? sAOrSplit : sAAndSplit;\n }\n // TODO: improve clarity/readability of this block\n for (let w = 0, len = s.length; w < len; w++) {\n cS = trim(s[w]);\n occur = hasArg.call(this, cS, cellData, j);\n highlight.call(this, cS, occur, cells[j]);\n if ((hasMultiOrSA && occur) ||\n (hasMultiAndSA && !occur)) {\n break;\n }\n if (isArray(sA) && occur) {\n break;\n }\n }\n occurence[j] = occur;\n\n }\n //single search parameter\n else {\n occurence[j] = hasArg.call(this, trim(sA), cellData, j);\n highlight.call(this, sA, occurence[j], cells[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\n this.emitter.emit('cell-processed', this, j, cells[j]);\n }//for j\n\n if (this.singleSearchFlt && singleFltRowValid) {\n isRowValid = true;\n }\n\n if (!isRowValid) {\n this.validateRow(k, false);\n hiddenRows++;\n } else {\n this.validateRow(k, true);\n }\n\n this.emitter.emit('row-processed', this, k,\n this.validRowsIndex.length, isRowValid);\n }// for k\n\n this.nbHiddenRows = hiddenRows;\n\n //invokes onafterfilter callback\n if (this.onAfterFilter) {\n this.onAfterFilter.call(null, this);\n }\n\n this.emitter.emit('after-filtering', this, searchArgs);\n }\n\n /**\n * Return the data of a specified column\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 let nbRows = this.getRowsNb(true);\n let colValues = [];\n\n if (includeHeaders) {\n colValues.push(this.getHeadersText()[colIndex]);\n }\n\n for (let i = this.refRow; i < 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 cellData = this.getCellData(cell[j]),\n nbFormat = this.colNbFormat ?\n this.colNbFormat[colIndex] : undefined,\n data = num ? removeNbFormat(cellData, nbFormat) :\n cellData;\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 let flt = this.getFilterElement(index);\n if (!flt) {\n return fltValue;\n }\n\n let fltColType = this.getFilterType(index);\n if (fltColType !== MULTIPLE && fltColType !== CHECKLIST) {\n fltValue = flt.value;\n }\n //mutiple select\n else if (fltColType === MULTIPLE) {\n fltValue = this.feature('dropdown').getValues(index);\n }\n //checklist\n else if (fltColType === CHECKLIST) {\n fltValue = this.feature('checkList').getValues(index);\n }\n //return an empty string if collection is empty or contains a single\n //empty string\n if (isArray(fltValue) && fltValue.length === 0 ||\n (fltValue.length === 1 && fltValue[0] === '')) {\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 let fltValue = this.getFilterValue(i);\n if (isArray(fltValue)) {\n searchArgs.push(fltValue);\n } else {\n searchArgs.push(trim(fltValue));\n }\n }\n return searchArgs;\n }\n\n /**\n * Return the ID of a specified column's filter\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 === type.toLowerCase()) {\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 elm(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 = isUndef(this.refRow) ? 0 : this.refRow;\n let ntrs = this.tbl.rows.length;\n if (includeHeaders) {\n s = 0;\n }\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 let idx = cell.cellIndex;\n //Check for customCellData callback\n if (this.customCellData &&\n this.customCellDataCols.indexOf(idx) !== -1) {\n return this.customCellData.call(null, this, cell, idx);\n } else {\n return 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 * @param {Boolean} excludeHiddenCols Optional: exclude hidden columns\n * @return {Array}\n *\n * TODO: provide an API returning data in JSON format\n */\n getTableData(includeHeaders = false, excludeHiddenCols = false) {\n let rows = this.tbl.rows;\n let nbRows = this.getRowsNb(true);\n let tblData = [];\n if (includeHeaders) {\n let headers = this.getHeadersText(excludeHiddenCols);\n tblData.push([this.getHeadersRowIndex(), headers]);\n }\n for (let k = this.refRow; k < nbRows; k++) {\n let rowData = [k, []];\n let cells = rows[k].cells;\n for (let j = 0, len = cells.length; j < len; j++) {\n if (excludeHiddenCols && this.hasExtension('colsVisibility')) {\n if (this.extension('colsVisibility').isColHidden(j)) {\n continue;\n }\n }\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 * @param {Boolean} excludeHiddenCols Optional: exclude hidden columns\n * @return {Array}\n *\n * TODO: provide an API returning data in JSON format\n */\n getFilteredData(includeHeaders = false, excludeHiddenCols = false) {\n if (!this.validRowsIndex) {\n return [];\n }\n let rows = this.tbl.rows,\n filteredData = [];\n if (includeHeaders) {\n let headers = this.getHeadersText(excludeHiddenCols);\n filteredData.push([this.getHeadersRowIndex(), headers]);\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 if (excludeHiddenCols && this.hasExtension('colsVisibility')) {\n if (this.extension('colsVisibility').isColHidden(k)) {\n continue;\n }\n }\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 (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 {HTMLTableRowElement} row DOM element of the row\n * @return {String} Usually 'none' or ''\n */\n getRowDisplay(row) {\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 if (isValid) {\n if (this.validRowsIndex.indexOf(rowIndex) === -1) {\n this.validRowsIndex.push(rowIndex);\n }\n\n if (this.onRowValidated) {\n this.onRowValidated.call(null, this, rowIndex);\n }\n\n this.emitter.emit('row-validated', this, rowIndex);\n }\n }\n\n /**\n * Validate all filterable rows\n */\n validateAllRows() {\n if (!this.initialized) {\n return;\n }\n this.validRowsIndex = [];\n for (let k = this.refRow; k < this.nbFilterableRows; k++) {\n this.validateRow(k, true);\n }\n }\n\n /**\n * Set search value to a given filter\n * @param {Number} index Column's index\n * @param {String or Array} query searcharg Search term\n */\n setFilterValue(index, query = '') {\n if (!this.fltGrid) {\n return;\n }\n let slc = this.getFilterElement(index),\n fltColType = this.getFilterType(index);\n\n if (fltColType !== MULTIPLE && fltColType !== CHECKLIST) {\n if (this.loadFltOnDemand && !this.initialized) {\n this.emitter.emit('build-select-filter', this, index,\n this.linkedFilters, this.isExternalFlt);\n }\n slc.value = query;\n }\n //multiple selects\n else if (fltColType === MULTIPLE) {\n let values = isArray(query) ? query :\n query.split(' ' + this.orOperator + ' ');\n\n if (this.loadFltOnDemand && !this.initialized) {\n this.emitter.emit('build-select-filter', this, index,\n this.linkedFilters, this.isExternalFlt);\n }\n\n this.emitter.emit('select-options', this, index, values);\n }\n //checklist\n else if (fltColType === CHECKLIST) {\n let values = [];\n if (this.loadFltOnDemand && !this.initialized) {\n this.emitter.emit('build-checklist-filter', this, index,\n this.isExternalFlt);\n }\n if (isArray(query)) {\n values = query;\n } else {\n query = matchCase(query, this.caseSensitive);\n values = query.split(' ' + this.orOperator + ' ');\n }\n\n this.emitter.emit('select-checklist-options', this, index, values);\n }\n }\n\n /**\n * Set them columns' widths as per configuration\n * @param {Element} tbl DOM element\n */\n setColWidths(tbl) {\n if (!this.hasColWidths) {\n return;\n }\n tbl = tbl || this.tbl;\n\n let nbCols = this.nbCells;\n let colWidths = this.colWidths;\n let colTags = 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 = createElm('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 * Makes defined rows always visible\n */\n enforceVisibility() {\n if (!this.hasVisibleRows) {\n return;\n }\n let nbRows = this.getRowsNb(true);\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 <= nbRows) {\n this.validateRow(row, true);\n }\n }\n }\n\n /**\n * Clear all the filters' values\n */\n clearFilters() {\n if (!this.fltGrid) {\n return;\n }\n\n this.emitter.emit('before-clearing-filters', this);\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\n this.filter();\n\n if (this.onAfterReset) {\n this.onAfterReset.call(null, this);\n }\n this.emitter.emit('after-clearing-filters', 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 removeClass(this.getHeaderElement(i), this.activeColumnsCssClass);\n }\n }\n\n /**\n * Mark currently filtered column\n * @param {Number} colIndex Column index\n */\n markActiveColumn(colIndex) {\n let header = this.getHeaderElement(colIndex);\n if (hasClass(header, this.activeColumnsCssClass)) {\n return;\n }\n if (this.onBeforeActiveColumn) {\n this.onBeforeActiveColumn.call(null, this, colIndex);\n }\n addClass(header, this.activeColumnsCssClass);\n if (this.onAfterActiveColumn) {\n this.onAfterActiveColumn.call(null, this, colIndex);\n }\n }\n\n /**\n * Return the ID of the current active filter\n * @returns {String}\n */\n getActiveFilterId() {\n return this.activeFilterId;\n }\n\n /**\n * Set the ID of the current active filter\n * @param {String} filterId Element ID\n */\n setActiveFilterId(filterId) {\n this.activeFilterId = filterId;\n }\n\n /**\n * Return the column index for a given filter ID\n * @param {string} [filterId=''] Filter ID\n * @returns {Number} Column index\n */\n getColumnIndexFromFilterId(filterId = '') {\n let idx = filterId.split('_')[0];\n idx = idx.split(this.prfxFlt)[1];\n return parseInt(idx, 10);\n }\n\n /**\n * Make specified column's filter active\n * @param colIndex Index of a column\n */\n activateFilter(colIndex) {\n if (isUndef(colIndex)) {\n return;\n }\n this.setActiveFilterId(this.getFilterId(colIndex));\n }\n\n /**\n * Refresh the filters subject to linking ('select', 'multiple',\n * 'checklist' type)\n */\n linkFilters() {\n if (!this.linkedFilters || !this.activeFilterId) {\n return;\n }\n let slcA1 = this.getFiltersByType(SELECT, true),\n slcA2 = this.getFiltersByType(MULTIPLE, true),\n slcA3 = this.getFiltersByType(CHECKLIST, true),\n slcIndex = slcA1.concat(slcA2);\n slcIndex = slcIndex.concat(slcA3);\n\n let activeIdx = this.getColumnIndexFromFilterId(this.activeFilterId);\n\n for (let i = 0, len = slcIndex.length; i < len; i++) {\n let curSlc = elm(this.fltIds[slcIndex[i]]);\n let slcSelectedValue = this.getFilterValue(slcIndex[i]);\n\n // Welcome to cyclomatic complexity hell :)\n // TODO: simplify/refactor if statement\n if (activeIdx !== slcIndex[i] ||\n (this.paging && slcA1.indexOf(slcIndex[i]) !== -1 &&\n activeIdx === slcIndex[i]) ||\n (!this.paging && (slcA3.indexOf(slcIndex[i]) !== -1 ||\n slcA2.indexOf(slcIndex[i]) !== -1)) ||\n slcSelectedValue === this.displayAllText) {\n\n //1st option needs to be inserted\n if (this.loadFltOnDemand) {\n let opt0 = createOpt(this.displayAllText, '');\n curSlc.innerHTML = '';\n curSlc.appendChild(opt0);\n }\n\n if (slcA3.indexOf(slcIndex[i]) !== -1) {\n this.emitter.emit('build-checklist-filter', this,\n slcIndex[i]);\n } else {\n this.emitter.emit('build-select-filter', this, slcIndex[i],\n true);\n }\n\n this.setFilterValue(slcIndex[i], slcSelectedValue);\n }\n }\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 !== INPUT;\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 = 'script') {\n let imported = false,\n attr = type === 'script' ? 'src' : 'href',\n files = tag(doc, type);\n for (let i = 0, len = files.length; i < len; i++) {\n if (isUndef(files[i][attr])) {\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 = 'script') {\n if (this.isImported(filePath, type)) {\n return;\n }\n let o = this,\n isLoaded = false,\n file,\n head = tag(doc, 'head')[0];\n\n if (type.toLowerCase() === 'link') {\n file = createElm('link',\n ['id', fileId], ['type', 'text/css'],\n ['rel', 'stylesheet'], ['href', filePath]\n );\n } else {\n file = createElm('script',\n ['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 = () => {\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(`TableFilter could not load: ${filePath}`);\n };\n head.appendChild(file);\n }\n\n /**\n * Check if table has filters grid\n * @return {Boolean}\n */\n isInitialized() {\n return this.initialized;\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 let nbRows = this.getRowsNb(true);\n this.validRowsIndex = [];\n for (let k = this.refRow; k < nbRows; 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 let nbRows = this.getRowsNb(true);\n return (nbRows - 1);\n }\n\n /**\n * Get the header DOM element for a given column index\n * @param {Number} colIndex Column index\n * @return {Element}\n */\n getHeaderElement(colIndex) {\n let table = this.gridLayout ? this.Mod.gridLayout.headTbl : this.tbl;\n let tHead = 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 * @param {Boolean} excludeHiddenCols Optional: exclude hidden columns\n * @return {Array} list of headers' text\n */\n getHeadersText(excludeHiddenCols = false) {\n let headers = [];\n for (let j = 0; j < this.nbCells; j++) {\n if (excludeHiddenCols && this.hasExtension('colsVisibility')) {\n if (this.extension('colsVisibility').isColHidden(j)) {\n continue;\n }\n }\n let header = this.getHeaderElement(j);\n let headerText = getFirstTextNode(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 ? INPUT : colType.toLowerCase();\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 * Return the total number of valid rows\n * @param {Boolean} [reCalc=false] Forces calculation of filtered rows\n * @returns {Number}\n */\n getValidRowsNb(reCalc = false) {\n return this.getValidRows(reCalc).length;\n }\n\n /**\n * Get the configuration object (literal object)\n * @return {Object}\n */\n config() {\n return this.cfg;\n }\n}\n"
},
{
- "__docId__": 756,
+ "__docId__": 757,
"kind": "variable",
"static": true,
"variation": null,
@@ -15478,7 +15530,7 @@
}
},
{
- "__docId__": 757,
+ "__docId__": 758,
"kind": "class",
"static": true,
"variation": null,
@@ -15495,7 +15547,7 @@
"interface": false
},
{
- "__docId__": 758,
+ "__docId__": 759,
"kind": "constructor",
"static": false,
"variation": null,
@@ -15550,7 +15602,7 @@
"generator": false
},
{
- "__docId__": 759,
+ "__docId__": 760,
"kind": "member",
"static": false,
"variation": null,
@@ -15568,7 +15620,7 @@
}
},
{
- "__docId__": 760,
+ "__docId__": 761,
"kind": "member",
"static": false,
"variation": null,
@@ -15586,7 +15638,7 @@
}
},
{
- "__docId__": 761,
+ "__docId__": 762,
"kind": "member",
"static": false,
"variation": null,
@@ -15604,7 +15656,7 @@
}
},
{
- "__docId__": 762,
+ "__docId__": 763,
"kind": "member",
"static": false,
"variation": null,
@@ -15622,7 +15674,7 @@
}
},
{
- "__docId__": 763,
+ "__docId__": 764,
"kind": "member",
"static": false,
"variation": null,
@@ -15640,7 +15692,7 @@
}
},
{
- "__docId__": 764,
+ "__docId__": 765,
"kind": "member",
"static": false,
"variation": null,
@@ -15658,7 +15710,7 @@
}
},
{
- "__docId__": 765,
+ "__docId__": 766,
"kind": "member",
"static": false,
"variation": null,
@@ -15676,7 +15728,7 @@
}
},
{
- "__docId__": 766,
+ "__docId__": 767,
"kind": "member",
"static": false,
"variation": null,
@@ -15694,7 +15746,7 @@
}
},
{
- "__docId__": 767,
+ "__docId__": 768,
"kind": "member",
"static": false,
"variation": null,
@@ -15712,7 +15764,7 @@
}
},
{
- "__docId__": 768,
+ "__docId__": 769,
"kind": "member",
"static": false,
"variation": null,
@@ -15730,7 +15782,7 @@
}
},
{
- "__docId__": 769,
+ "__docId__": 770,
"kind": "member",
"static": false,
"variation": null,
@@ -15748,7 +15800,7 @@
}
},
{
- "__docId__": 770,
+ "__docId__": 771,
"kind": "member",
"static": false,
"variation": null,
@@ -15766,7 +15818,7 @@
}
},
{
- "__docId__": 771,
+ "__docId__": 772,
"kind": "member",
"static": false,
"variation": null,
@@ -15784,7 +15836,7 @@
}
},
{
- "__docId__": 772,
+ "__docId__": 773,
"kind": "member",
"static": false,
"variation": null,
@@ -15802,7 +15854,7 @@
}
},
{
- "__docId__": 773,
+ "__docId__": 774,
"kind": "member",
"static": false,
"variation": null,
@@ -15820,7 +15872,7 @@
}
},
{
- "__docId__": 774,
+ "__docId__": 775,
"kind": "member",
"static": false,
"variation": null,
@@ -15838,7 +15890,7 @@
}
},
{
- "__docId__": 775,
+ "__docId__": 776,
"kind": "member",
"static": false,
"variation": null,
@@ -15858,7 +15910,7 @@
}
},
{
- "__docId__": 776,
+ "__docId__": 777,
"kind": "member",
"static": false,
"variation": null,
@@ -15876,7 +15928,7 @@
}
},
{
- "__docId__": 777,
+ "__docId__": 778,
"kind": "member",
"static": false,
"variation": null,
@@ -15894,7 +15946,7 @@
}
},
{
- "__docId__": 778,
+ "__docId__": 779,
"kind": "member",
"static": false,
"variation": null,
@@ -15912,7 +15964,7 @@
}
},
{
- "__docId__": 779,
+ "__docId__": 780,
"kind": "member",
"static": false,
"variation": null,
@@ -15930,7 +15982,7 @@
}
},
{
- "__docId__": 780,
+ "__docId__": 781,
"kind": "member",
"static": false,
"variation": null,
@@ -15947,7 +15999,7 @@
}
},
{
- "__docId__": 781,
+ "__docId__": 782,
"kind": "member",
"static": false,
"variation": null,
@@ -15965,7 +16017,7 @@
}
},
{
- "__docId__": 782,
+ "__docId__": 783,
"kind": "member",
"static": false,
"variation": null,
@@ -15983,7 +16035,7 @@
}
},
{
- "__docId__": 783,
+ "__docId__": 784,
"kind": "member",
"static": false,
"variation": null,
@@ -16001,7 +16053,7 @@
}
},
{
- "__docId__": 784,
+ "__docId__": 785,
"kind": "member",
"static": false,
"variation": null,
@@ -16019,7 +16071,7 @@
}
},
{
- "__docId__": 785,
+ "__docId__": 786,
"kind": "member",
"static": false,
"variation": null,
@@ -16037,7 +16089,7 @@
}
},
{
- "__docId__": 786,
+ "__docId__": 787,
"kind": "member",
"static": false,
"variation": null,
@@ -16055,7 +16107,7 @@
}
},
{
- "__docId__": 787,
+ "__docId__": 788,
"kind": "member",
"static": false,
"variation": null,
@@ -16073,7 +16125,7 @@
}
},
{
- "__docId__": 788,
+ "__docId__": 789,
"kind": "member",
"static": false,
"variation": null,
@@ -16091,7 +16143,7 @@
}
},
{
- "__docId__": 789,
+ "__docId__": 790,
"kind": "member",
"static": false,
"variation": null,
@@ -16109,7 +16161,7 @@
}
},
{
- "__docId__": 790,
+ "__docId__": 791,
"kind": "member",
"static": false,
"variation": null,
@@ -16127,7 +16179,7 @@
}
},
{
- "__docId__": 791,
+ "__docId__": 792,
"kind": "member",
"static": false,
"variation": null,
@@ -16145,7 +16197,7 @@
}
},
{
- "__docId__": 792,
+ "__docId__": 793,
"kind": "member",
"static": false,
"variation": null,
@@ -16163,7 +16215,7 @@
}
},
{
- "__docId__": 793,
+ "__docId__": 794,
"kind": "member",
"static": false,
"variation": null,
@@ -16181,7 +16233,7 @@
}
},
{
- "__docId__": 794,
+ "__docId__": 795,
"kind": "member",
"static": false,
"variation": null,
@@ -16199,7 +16251,7 @@
}
},
{
- "__docId__": 795,
+ "__docId__": 796,
"kind": "member",
"static": false,
"variation": null,
@@ -16217,7 +16269,7 @@
}
},
{
- "__docId__": 796,
+ "__docId__": 797,
"kind": "member",
"static": false,
"variation": null,
@@ -16234,7 +16286,7 @@
}
},
{
- "__docId__": 797,
+ "__docId__": 798,
"kind": "member",
"static": false,
"variation": null,
@@ -16252,7 +16304,7 @@
}
},
{
- "__docId__": 798,
+ "__docId__": 799,
"kind": "member",
"static": false,
"variation": null,
@@ -16270,7 +16322,7 @@
}
},
{
- "__docId__": 799,
+ "__docId__": 800,
"kind": "member",
"static": false,
"variation": null,
@@ -16288,7 +16340,7 @@
}
},
{
- "__docId__": 800,
+ "__docId__": 801,
"kind": "member",
"static": false,
"variation": null,
@@ -16306,7 +16358,7 @@
}
},
{
- "__docId__": 801,
+ "__docId__": 802,
"kind": "member",
"static": false,
"variation": null,
@@ -16324,7 +16376,7 @@
}
},
{
- "__docId__": 802,
+ "__docId__": 803,
"kind": "member",
"static": false,
"variation": null,
@@ -16342,7 +16394,7 @@
}
},
{
- "__docId__": 803,
+ "__docId__": 804,
"kind": "member",
"static": false,
"variation": null,
@@ -16360,7 +16412,7 @@
}
},
{
- "__docId__": 804,
+ "__docId__": 805,
"kind": "member",
"static": false,
"variation": null,
@@ -16378,7 +16430,7 @@
}
},
{
- "__docId__": 805,
+ "__docId__": 806,
"kind": "member",
"static": false,
"variation": null,
@@ -16396,7 +16448,7 @@
}
},
{
- "__docId__": 806,
+ "__docId__": 807,
"kind": "member",
"static": false,
"variation": null,
@@ -16414,7 +16466,7 @@
}
},
{
- "__docId__": 807,
+ "__docId__": 808,
"kind": "member",
"static": false,
"variation": null,
@@ -16432,7 +16484,7 @@
}
},
{
- "__docId__": 808,
+ "__docId__": 809,
"kind": "member",
"static": false,
"variation": null,
@@ -16449,7 +16501,7 @@
}
},
{
- "__docId__": 809,
+ "__docId__": 810,
"kind": "member",
"static": false,
"variation": null,
@@ -16467,7 +16519,7 @@
}
},
{
- "__docId__": 810,
+ "__docId__": 811,
"kind": "member",
"static": false,
"variation": null,
@@ -16485,7 +16537,7 @@
}
},
{
- "__docId__": 811,
+ "__docId__": 812,
"kind": "member",
"static": false,
"variation": null,
@@ -16503,7 +16555,7 @@
}
},
{
- "__docId__": 812,
+ "__docId__": 813,
"kind": "member",
"static": false,
"variation": null,
@@ -16521,7 +16573,7 @@
}
},
{
- "__docId__": 813,
+ "__docId__": 814,
"kind": "member",
"static": false,
"variation": null,
@@ -16539,7 +16591,7 @@
}
},
{
- "__docId__": 814,
+ "__docId__": 815,
"kind": "member",
"static": false,
"variation": null,
@@ -16557,7 +16609,7 @@
}
},
{
- "__docId__": 815,
+ "__docId__": 816,
"kind": "member",
"static": false,
"variation": null,
@@ -16575,7 +16627,7 @@
}
},
{
- "__docId__": 816,
+ "__docId__": 817,
"kind": "member",
"static": false,
"variation": null,
@@ -16593,7 +16645,7 @@
}
},
{
- "__docId__": 817,
+ "__docId__": 818,
"kind": "member",
"static": false,
"variation": null,
@@ -16611,7 +16663,7 @@
}
},
{
- "__docId__": 818,
+ "__docId__": 819,
"kind": "member",
"static": false,
"variation": null,
@@ -16629,7 +16681,7 @@
}
},
{
- "__docId__": 819,
+ "__docId__": 820,
"kind": "member",
"static": false,
"variation": null,
@@ -16647,7 +16699,7 @@
}
},
{
- "__docId__": 820,
+ "__docId__": 821,
"kind": "member",
"static": false,
"variation": null,
@@ -16665,7 +16717,7 @@
}
},
{
- "__docId__": 821,
+ "__docId__": 822,
"kind": "member",
"static": false,
"variation": null,
@@ -16683,7 +16735,7 @@
}
},
{
- "__docId__": 822,
+ "__docId__": 823,
"kind": "member",
"static": false,
"variation": null,
@@ -16701,7 +16753,7 @@
}
},
{
- "__docId__": 823,
+ "__docId__": 824,
"kind": "member",
"static": false,
"variation": null,
@@ -16719,7 +16771,7 @@
}
},
{
- "__docId__": 824,
+ "__docId__": 825,
"kind": "member",
"static": false,
"variation": null,
@@ -16737,7 +16789,7 @@
}
},
{
- "__docId__": 825,
+ "__docId__": 826,
"kind": "member",
"static": false,
"variation": null,
@@ -16755,7 +16807,7 @@
}
},
{
- "__docId__": 826,
+ "__docId__": 827,
"kind": "member",
"static": false,
"variation": null,
@@ -16773,7 +16825,7 @@
}
},
{
- "__docId__": 827,
+ "__docId__": 828,
"kind": "member",
"static": false,
"variation": null,
@@ -16791,7 +16843,7 @@
}
},
{
- "__docId__": 828,
+ "__docId__": 829,
"kind": "member",
"static": false,
"variation": null,
@@ -16809,7 +16861,7 @@
}
},
{
- "__docId__": 829,
+ "__docId__": 830,
"kind": "member",
"static": false,
"variation": null,
@@ -16827,7 +16879,7 @@
}
},
{
- "__docId__": 830,
+ "__docId__": 831,
"kind": "member",
"static": false,
"variation": null,
@@ -16845,7 +16897,7 @@
}
},
{
- "__docId__": 831,
+ "__docId__": 832,
"kind": "member",
"static": false,
"variation": null,
@@ -16863,7 +16915,7 @@
}
},
{
- "__docId__": 832,
+ "__docId__": 833,
"kind": "member",
"static": false,
"variation": null,
@@ -16881,7 +16933,7 @@
}
},
{
- "__docId__": 833,
+ "__docId__": 834,
"kind": "member",
"static": false,
"variation": null,
@@ -16899,7 +16951,7 @@
}
},
{
- "__docId__": 834,
+ "__docId__": 835,
"kind": "member",
"static": false,
"variation": null,
@@ -16917,7 +16969,7 @@
}
},
{
- "__docId__": 835,
+ "__docId__": 836,
"kind": "member",
"static": false,
"variation": null,
@@ -16935,7 +16987,7 @@
}
},
{
- "__docId__": 836,
+ "__docId__": 837,
"kind": "member",
"static": false,
"variation": null,
@@ -16953,7 +17005,7 @@
}
},
{
- "__docId__": 837,
+ "__docId__": 838,
"kind": "member",
"static": false,
"variation": null,
@@ -16970,7 +17022,7 @@
}
},
{
- "__docId__": 838,
+ "__docId__": 839,
"kind": "member",
"static": false,
"variation": null,
@@ -16988,7 +17040,7 @@
}
},
{
- "__docId__": 839,
+ "__docId__": 840,
"kind": "member",
"static": false,
"variation": null,
@@ -17006,7 +17058,7 @@
}
},
{
- "__docId__": 840,
+ "__docId__": 841,
"kind": "member",
"static": false,
"variation": null,
@@ -17024,7 +17076,7 @@
}
},
{
- "__docId__": 841,
+ "__docId__": 842,
"kind": "member",
"static": false,
"variation": null,
@@ -17042,7 +17094,7 @@
}
},
{
- "__docId__": 842,
+ "__docId__": 843,
"kind": "member",
"static": false,
"variation": null,
@@ -17060,7 +17112,7 @@
}
},
{
- "__docId__": 843,
+ "__docId__": 844,
"kind": "member",
"static": false,
"variation": null,
@@ -17078,7 +17130,7 @@
}
},
{
- "__docId__": 844,
+ "__docId__": 845,
"kind": "member",
"static": false,
"variation": null,
@@ -17096,7 +17148,7 @@
}
},
{
- "__docId__": 845,
+ "__docId__": 846,
"kind": "member",
"static": false,
"variation": null,
@@ -17114,7 +17166,7 @@
}
},
{
- "__docId__": 846,
+ "__docId__": 847,
"kind": "member",
"static": false,
"variation": null,
@@ -17132,7 +17184,7 @@
}
},
{
- "__docId__": 847,
+ "__docId__": 848,
"kind": "member",
"static": false,
"variation": null,
@@ -17150,7 +17202,7 @@
}
},
{
- "__docId__": 848,
+ "__docId__": 849,
"kind": "member",
"static": false,
"variation": null,
@@ -17168,7 +17220,7 @@
}
},
{
- "__docId__": 849,
+ "__docId__": 850,
"kind": "member",
"static": false,
"variation": null,
@@ -17186,7 +17238,7 @@
}
},
{
- "__docId__": 850,
+ "__docId__": 851,
"kind": "member",
"static": false,
"variation": null,
@@ -17204,7 +17256,7 @@
}
},
{
- "__docId__": 851,
+ "__docId__": 852,
"kind": "member",
"static": false,
"variation": null,
@@ -17221,7 +17273,7 @@
}
},
{
- "__docId__": 852,
+ "__docId__": 853,
"kind": "member",
"static": false,
"variation": null,
@@ -17239,7 +17291,7 @@
}
},
{
- "__docId__": 853,
+ "__docId__": 854,
"kind": "member",
"static": false,
"variation": null,
@@ -17257,7 +17309,7 @@
}
},
{
- "__docId__": 854,
+ "__docId__": 855,
"kind": "member",
"static": false,
"variation": null,
@@ -17275,7 +17327,7 @@
}
},
{
- "__docId__": 855,
+ "__docId__": 856,
"kind": "member",
"static": false,
"variation": null,
@@ -17293,7 +17345,7 @@
}
},
{
- "__docId__": 856,
+ "__docId__": 857,
"kind": "member",
"static": false,
"variation": null,
@@ -17311,7 +17363,7 @@
}
},
{
- "__docId__": 857,
+ "__docId__": 858,
"kind": "member",
"static": false,
"variation": null,
@@ -17329,7 +17381,7 @@
}
},
{
- "__docId__": 858,
+ "__docId__": 859,
"kind": "member",
"static": false,
"variation": null,
@@ -17347,7 +17399,7 @@
}
},
{
- "__docId__": 859,
+ "__docId__": 860,
"kind": "member",
"static": false,
"variation": null,
@@ -17365,7 +17417,7 @@
}
},
{
- "__docId__": 860,
+ "__docId__": 861,
"kind": "member",
"static": false,
"variation": null,
@@ -17383,7 +17435,7 @@
}
},
{
- "__docId__": 861,
+ "__docId__": 862,
"kind": "member",
"static": false,
"variation": null,
@@ -17401,7 +17453,7 @@
}
},
{
- "__docId__": 862,
+ "__docId__": 863,
"kind": "member",
"static": false,
"variation": null,
@@ -17419,7 +17471,7 @@
}
},
{
- "__docId__": 863,
+ "__docId__": 864,
"kind": "member",
"static": false,
"variation": null,
@@ -17437,7 +17489,7 @@
}
},
{
- "__docId__": 864,
+ "__docId__": 865,
"kind": "member",
"static": false,
"variation": null,
@@ -17455,7 +17507,7 @@
}
},
{
- "__docId__": 865,
+ "__docId__": 866,
"kind": "member",
"static": false,
"variation": null,
@@ -17473,7 +17525,7 @@
}
},
{
- "__docId__": 866,
+ "__docId__": 867,
"kind": "member",
"static": false,
"variation": null,
@@ -17491,7 +17543,7 @@
}
},
{
- "__docId__": 867,
+ "__docId__": 868,
"kind": "member",
"static": false,
"variation": null,
@@ -17509,7 +17561,7 @@
}
},
{
- "__docId__": 868,
+ "__docId__": 869,
"kind": "member",
"static": false,
"variation": null,
@@ -17527,7 +17579,7 @@
}
},
{
- "__docId__": 869,
+ "__docId__": 870,
"kind": "member",
"static": false,
"variation": null,
@@ -17545,7 +17597,7 @@
}
},
{
- "__docId__": 870,
+ "__docId__": 871,
"kind": "member",
"static": false,
"variation": null,
@@ -17562,7 +17614,7 @@
}
},
{
- "__docId__": 871,
+ "__docId__": 872,
"kind": "member",
"static": false,
"variation": null,
@@ -17580,7 +17632,7 @@
}
},
{
- "__docId__": 872,
+ "__docId__": 873,
"kind": "member",
"static": false,
"variation": null,
@@ -17598,7 +17650,7 @@
}
},
{
- "__docId__": 873,
+ "__docId__": 874,
"kind": "member",
"static": false,
"variation": null,
@@ -17616,7 +17668,7 @@
}
},
{
- "__docId__": 874,
+ "__docId__": 875,
"kind": "member",
"static": false,
"variation": null,
@@ -17634,7 +17686,7 @@
}
},
{
- "__docId__": 875,
+ "__docId__": 876,
"kind": "member",
"static": false,
"variation": null,
@@ -17652,7 +17704,7 @@
}
},
{
- "__docId__": 876,
+ "__docId__": 877,
"kind": "member",
"static": false,
"variation": null,
@@ -17670,7 +17722,7 @@
}
},
{
- "__docId__": 877,
+ "__docId__": 878,
"kind": "member",
"static": false,
"variation": null,
@@ -17687,7 +17739,7 @@
}
},
{
- "__docId__": 878,
+ "__docId__": 879,
"kind": "member",
"static": false,
"variation": null,
@@ -17705,7 +17757,7 @@
}
},
{
- "__docId__": 879,
+ "__docId__": 880,
"kind": "member",
"static": false,
"variation": null,
@@ -17722,7 +17774,7 @@
}
},
{
- "__docId__": 880,
+ "__docId__": 881,
"kind": "member",
"static": false,
"variation": null,
@@ -17740,7 +17792,7 @@
}
},
{
- "__docId__": 881,
+ "__docId__": 882,
"kind": "member",
"static": false,
"variation": null,
@@ -17758,7 +17810,7 @@
}
},
{
- "__docId__": 882,
+ "__docId__": 883,
"kind": "member",
"static": false,
"variation": null,
@@ -17776,7 +17828,7 @@
}
},
{
- "__docId__": 883,
+ "__docId__": 884,
"kind": "member",
"static": false,
"variation": null,
@@ -17793,7 +17845,7 @@
}
},
{
- "__docId__": 884,
+ "__docId__": 885,
"kind": "member",
"static": false,
"variation": null,
@@ -17810,7 +17862,7 @@
}
},
{
- "__docId__": 885,
+ "__docId__": 886,
"kind": "member",
"static": false,
"variation": null,
@@ -17828,7 +17880,7 @@
}
},
{
- "__docId__": 886,
+ "__docId__": 887,
"kind": "member",
"static": false,
"variation": null,
@@ -17845,7 +17897,7 @@
}
},
{
- "__docId__": 887,
+ "__docId__": 888,
"kind": "member",
"static": false,
"variation": null,
@@ -17863,7 +17915,7 @@
}
},
{
- "__docId__": 888,
+ "__docId__": 889,
"kind": "member",
"static": false,
"variation": null,
@@ -17881,7 +17933,7 @@
}
},
{
- "__docId__": 889,
+ "__docId__": 890,
"kind": "member",
"static": false,
"variation": null,
@@ -17899,7 +17951,7 @@
}
},
{
- "__docId__": 890,
+ "__docId__": 891,
"kind": "member",
"static": false,
"variation": null,
@@ -17917,7 +17969,7 @@
}
},
{
- "__docId__": 891,
+ "__docId__": 892,
"kind": "member",
"static": false,
"variation": null,
@@ -17935,7 +17987,7 @@
}
},
{
- "__docId__": 892,
+ "__docId__": 893,
"kind": "member",
"static": false,
"variation": null,
@@ -17953,7 +18005,7 @@
}
},
{
- "__docId__": 893,
+ "__docId__": 894,
"kind": "member",
"static": false,
"variation": null,
@@ -17970,7 +18022,7 @@
}
},
{
- "__docId__": 894,
+ "__docId__": 895,
"kind": "member",
"static": false,
"variation": null,
@@ -17988,7 +18040,7 @@
}
},
{
- "__docId__": 895,
+ "__docId__": 896,
"kind": "member",
"static": false,
"variation": null,
@@ -18006,7 +18058,7 @@
}
},
{
- "__docId__": 896,
+ "__docId__": 897,
"kind": "member",
"static": false,
"variation": null,
@@ -18024,7 +18076,7 @@
}
},
{
- "__docId__": 897,
+ "__docId__": 898,
"kind": "member",
"static": false,
"variation": null,
@@ -18042,7 +18094,7 @@
}
},
{
- "__docId__": 898,
+ "__docId__": 899,
"kind": "member",
"static": false,
"variation": null,
@@ -18060,7 +18112,7 @@
}
},
{
- "__docId__": 899,
+ "__docId__": 900,
"kind": "member",
"static": false,
"variation": null,
@@ -18078,7 +18130,7 @@
}
},
{
- "__docId__": 900,
+ "__docId__": 901,
"kind": "member",
"static": false,
"variation": null,
@@ -18096,7 +18148,7 @@
}
},
{
- "__docId__": 901,
+ "__docId__": 902,
"kind": "member",
"static": false,
"variation": null,
@@ -18113,7 +18165,7 @@
}
},
{
- "__docId__": 902,
+ "__docId__": 903,
"kind": "member",
"static": false,
"variation": null,
@@ -18131,7 +18183,7 @@
}
},
{
- "__docId__": 903,
+ "__docId__": 904,
"kind": "member",
"static": false,
"variation": null,
@@ -18148,7 +18200,7 @@
}
},
{
- "__docId__": 904,
+ "__docId__": 905,
"kind": "member",
"static": false,
"variation": null,
@@ -18166,7 +18218,7 @@
}
},
{
- "__docId__": 905,
+ "__docId__": 906,
"kind": "member",
"static": false,
"variation": null,
@@ -18184,7 +18236,7 @@
}
},
{
- "__docId__": 906,
+ "__docId__": 907,
"kind": "member",
"static": false,
"variation": null,
@@ -18202,7 +18254,7 @@
}
},
{
- "__docId__": 907,
+ "__docId__": 908,
"kind": "member",
"static": false,
"variation": null,
@@ -18220,7 +18272,7 @@
}
},
{
- "__docId__": 908,
+ "__docId__": 909,
"kind": "member",
"static": false,
"variation": null,
@@ -18238,7 +18290,7 @@
}
},
{
- "__docId__": 909,
+ "__docId__": 910,
"kind": "member",
"static": false,
"variation": null,
@@ -18256,7 +18308,7 @@
}
},
{
- "__docId__": 910,
+ "__docId__": 911,
"kind": "method",
"static": false,
"variation": null,
@@ -18270,7 +18322,7 @@
"generator": false
},
{
- "__docId__": 911,
+ "__docId__": 912,
"kind": "member",
"static": false,
"variation": null,
@@ -18288,7 +18340,7 @@
}
},
{
- "__docId__": 912,
+ "__docId__": 913,
"kind": "member",
"static": false,
"variation": null,
@@ -18306,7 +18358,7 @@
}
},
{
- "__docId__": 913,
+ "__docId__": 914,
"kind": "method",
"static": false,
"variation": null,
@@ -18331,7 +18383,7 @@
"generator": false
},
{
- "__docId__": 914,
+ "__docId__": 915,
"kind": "member",
"static": false,
"variation": null,
@@ -18349,7 +18401,7 @@
}
},
{
- "__docId__": 915,
+ "__docId__": 916,
"kind": "member",
"static": false,
"variation": null,
@@ -18367,7 +18419,7 @@
}
},
{
- "__docId__": 916,
+ "__docId__": 917,
"kind": "method",
"static": false,
"variation": null,
@@ -18392,7 +18444,7 @@
"generator": false
},
{
- "__docId__": 917,
+ "__docId__": 918,
"kind": "member",
"static": false,
"variation": null,
@@ -18410,7 +18462,7 @@
}
},
{
- "__docId__": 918,
+ "__docId__": 919,
"kind": "member",
"static": false,
"variation": null,
@@ -18428,7 +18480,7 @@
}
},
{
- "__docId__": 919,
+ "__docId__": 920,
"kind": "member",
"static": false,
"variation": null,
@@ -18446,7 +18498,7 @@
}
},
{
- "__docId__": 920,
+ "__docId__": 921,
"kind": "member",
"static": false,
"variation": null,
@@ -18464,7 +18516,7 @@
}
},
{
- "__docId__": 921,
+ "__docId__": 922,
"kind": "member",
"static": false,
"variation": null,
@@ -18482,7 +18534,7 @@
}
},
{
- "__docId__": 922,
+ "__docId__": 923,
"kind": "method",
"static": false,
"variation": null,
@@ -18496,7 +18548,7 @@
"generator": false
},
{
- "__docId__": 923,
+ "__docId__": 924,
"kind": "member",
"static": false,
"variation": null,
@@ -18514,7 +18566,7 @@
}
},
{
- "__docId__": 924,
+ "__docId__": 925,
"kind": "method",
"static": false,
"variation": null,
@@ -18539,7 +18591,7 @@
"generator": false
},
{
- "__docId__": 925,
+ "__docId__": 926,
"kind": "method",
"static": false,
"variation": null,
@@ -18553,7 +18605,7 @@
"generator": false
},
{
- "__docId__": 926,
+ "__docId__": 927,
"kind": "member",
"static": false,
"variation": null,
@@ -18571,7 +18623,7 @@
}
},
{
- "__docId__": 927,
+ "__docId__": 928,
"kind": "method",
"static": false,
"variation": null,
@@ -18590,7 +18642,7 @@
"generator": false
},
{
- "__docId__": 928,
+ "__docId__": 929,
"kind": "method",
"static": false,
"variation": null,
@@ -18604,7 +18656,7 @@
"generator": false
},
{
- "__docId__": 929,
+ "__docId__": 930,
"kind": "member",
"static": false,
"variation": null,
@@ -18622,7 +18674,7 @@
}
},
{
- "__docId__": 930,
+ "__docId__": 931,
"kind": "member",
"static": false,
"variation": null,
@@ -18640,7 +18692,7 @@
}
},
{
- "__docId__": 931,
+ "__docId__": 932,
"kind": "method",
"static": false,
"variation": null,
@@ -18685,7 +18737,7 @@
"generator": false
},
{
- "__docId__": 932,
+ "__docId__": 933,
"kind": "method",
"static": false,
"variation": null,
@@ -18720,7 +18772,7 @@
"generator": false
},
{
- "__docId__": 933,
+ "__docId__": 934,
"kind": "method",
"static": false,
"variation": null,
@@ -18753,7 +18805,7 @@
"generator": false
},
{
- "__docId__": 934,
+ "__docId__": 935,
"kind": "method",
"static": false,
"variation": null,
@@ -18767,7 +18819,7 @@
"generator": false
},
{
- "__docId__": 935,
+ "__docId__": 936,
"kind": "method",
"static": false,
"variation": null,
@@ -18792,7 +18844,7 @@
"generator": false
},
{
- "__docId__": 936,
+ "__docId__": 937,
"kind": "method",
"static": false,
"variation": null,
@@ -18825,7 +18877,7 @@
"generator": false
},
{
- "__docId__": 937,
+ "__docId__": 938,
"kind": "method",
"static": false,
"variation": null,
@@ -18858,7 +18910,7 @@
"generator": false
},
{
- "__docId__": 938,
+ "__docId__": 939,
"kind": "method",
"static": false,
"variation": null,
@@ -18872,7 +18924,7 @@
"generator": false
},
{
- "__docId__": 939,
+ "__docId__": 940,
"kind": "method",
"static": false,
"variation": null,
@@ -18886,7 +18938,7 @@
"generator": false
},
{
- "__docId__": 940,
+ "__docId__": 941,
"kind": "member",
"static": false,
"variation": null,
@@ -18904,7 +18956,7 @@
}
},
{
- "__docId__": 941,
+ "__docId__": 942,
"kind": "member",
"static": false,
"variation": null,
@@ -18922,7 +18974,7 @@
}
},
{
- "__docId__": 942,
+ "__docId__": 943,
"kind": "member",
"static": false,
"variation": null,
@@ -18940,7 +18992,7 @@
}
},
{
- "__docId__": 943,
+ "__docId__": 944,
"kind": "member",
"static": false,
"variation": null,
@@ -18958,7 +19010,7 @@
}
},
{
- "__docId__": 944,
+ "__docId__": 945,
"kind": "member",
"static": false,
"variation": null,
@@ -18976,7 +19028,7 @@
}
},
{
- "__docId__": 945,
+ "__docId__": 946,
"kind": "member",
"static": false,
"variation": null,
@@ -18994,7 +19046,7 @@
}
},
{
- "__docId__": 946,
+ "__docId__": 947,
"kind": "member",
"static": false,
"variation": null,
@@ -19012,7 +19064,7 @@
}
},
{
- "__docId__": 947,
+ "__docId__": 948,
"kind": "member",
"static": false,
"variation": null,
@@ -19030,7 +19082,7 @@
}
},
{
- "__docId__": 948,
+ "__docId__": 949,
"kind": "member",
"static": false,
"variation": null,
@@ -19048,7 +19100,7 @@
}
},
{
- "__docId__": 949,
+ "__docId__": 950,
"kind": "method",
"static": false,
"variation": null,
@@ -19080,7 +19132,7 @@
"generator": false
},
{
- "__docId__": 950,
+ "__docId__": 951,
"kind": "method",
"static": false,
"variation": null,
@@ -19094,7 +19146,7 @@
"generator": false
},
{
- "__docId__": 951,
+ "__docId__": 952,
"kind": "member",
"static": false,
"variation": null,
@@ -19112,7 +19164,7 @@
}
},
{
- "__docId__": 952,
+ "__docId__": 953,
"kind": "member",
"static": false,
"variation": null,
@@ -19130,7 +19182,7 @@
}
},
{
- "__docId__": 953,
+ "__docId__": 954,
"kind": "member",
"static": false,
"variation": null,
@@ -19148,7 +19200,7 @@
}
},
{
- "__docId__": 954,
+ "__docId__": 955,
"kind": "member",
"static": false,
"variation": null,
@@ -19166,7 +19218,7 @@
}
},
{
- "__docId__": 955,
+ "__docId__": 956,
"kind": "method",
"static": false,
"variation": null,
@@ -19180,7 +19232,7 @@
"generator": false
},
{
- "__docId__": 956,
+ "__docId__": 957,
"kind": "member",
"static": false,
"variation": null,
@@ -19198,7 +19250,7 @@
}
},
{
- "__docId__": 957,
+ "__docId__": 958,
"kind": "member",
"static": false,
"variation": null,
@@ -19216,7 +19268,7 @@
}
},
{
- "__docId__": 958,
+ "__docId__": 959,
"kind": "member",
"static": false,
"variation": null,
@@ -19234,7 +19286,7 @@
}
},
{
- "__docId__": 959,
+ "__docId__": 960,
"kind": "member",
"static": false,
"variation": null,
@@ -19252,7 +19304,7 @@
}
},
{
- "__docId__": 960,
+ "__docId__": 961,
"kind": "method",
"static": false,
"variation": null,
@@ -19266,7 +19318,7 @@
"generator": false
},
{
- "__docId__": 961,
+ "__docId__": 962,
"kind": "member",
"static": false,
"variation": null,
@@ -19284,7 +19336,7 @@
}
},
{
- "__docId__": 962,
+ "__docId__": 963,
"kind": "method",
"static": false,
"variation": null,
@@ -19298,7 +19350,7 @@
"generator": false
},
{
- "__docId__": 963,
+ "__docId__": 964,
"kind": "method",
"static": false,
"variation": null,
@@ -19331,7 +19383,7 @@
"generator": false
},
{
- "__docId__": 964,
+ "__docId__": 965,
"kind": "method",
"static": false,
"variation": null,
@@ -19364,7 +19416,7 @@
"generator": false
},
{
- "__docId__": 965,
+ "__docId__": 966,
"kind": "method",
"static": false,
"variation": null,
@@ -19378,7 +19430,7 @@
"generator": false
},
{
- "__docId__": 966,
+ "__docId__": 967,
"kind": "member",
"static": false,
"variation": null,
@@ -19396,7 +19448,7 @@
}
},
{
- "__docId__": 967,
+ "__docId__": 968,
"kind": "member",
"static": false,
"variation": null,
@@ -19414,7 +19466,7 @@
}
},
{
- "__docId__": 968,
+ "__docId__": 969,
"kind": "method",
"static": false,
"variation": null,
@@ -19477,7 +19529,7 @@
"generator": false
},
{
- "__docId__": 969,
+ "__docId__": 970,
"kind": "method",
"static": false,
"variation": null,
@@ -19510,7 +19562,7 @@
"generator": false
},
{
- "__docId__": 970,
+ "__docId__": 971,
"kind": "method",
"static": false,
"variation": null,
@@ -19532,7 +19584,7 @@
"generator": false
},
{
- "__docId__": 971,
+ "__docId__": 972,
"kind": "method",
"static": false,
"variation": null,
@@ -19565,7 +19617,7 @@
"generator": false
},
{
- "__docId__": 972,
+ "__docId__": 973,
"kind": "method",
"static": false,
"variation": null,
@@ -19608,7 +19660,7 @@
"generator": false
},
{
- "__docId__": 973,
+ "__docId__": 974,
"kind": "method",
"static": false,
"variation": null,
@@ -19641,7 +19693,7 @@
"generator": false
},
{
- "__docId__": 974,
+ "__docId__": 975,
"kind": "method",
"static": false,
"variation": null,
@@ -19674,7 +19726,7 @@
"generator": false
},
{
- "__docId__": 975,
+ "__docId__": 976,
"kind": "method",
"static": false,
"variation": null,
@@ -19707,7 +19759,7 @@
"generator": false
},
{
- "__docId__": 976,
+ "__docId__": 977,
"kind": "method",
"static": false,
"variation": null,
@@ -19740,7 +19792,7 @@
"generator": false
},
{
- "__docId__": 977,
+ "__docId__": 978,
"kind": "method",
"static": false,
"variation": null,
@@ -19783,7 +19835,7 @@
"generator": false
},
{
- "__docId__": 978,
+ "__docId__": 979,
"kind": "method",
"static": false,
"variation": null,
@@ -19826,7 +19878,7 @@
"generator": false
},
{
- "__docId__": 979,
+ "__docId__": 980,
"kind": "method",
"static": false,
"variation": null,
@@ -19869,7 +19921,7 @@
"generator": false
},
{
- "__docId__": 980,
+ "__docId__": 981,
"kind": "method",
"static": false,
"variation": null,
@@ -19902,7 +19954,7 @@
"generator": false
},
{
- "__docId__": 981,
+ "__docId__": 982,
"kind": "method",
"static": false,
"variation": null,
@@ -19937,7 +19989,7 @@
"generator": false
},
{
- "__docId__": 982,
+ "__docId__": 983,
"kind": "method",
"static": false,
"variation": null,
@@ -19951,7 +20003,7 @@
"generator": false
},
{
- "__docId__": 983,
+ "__docId__": 984,
"kind": "member",
"static": false,
"variation": null,
@@ -19969,7 +20021,7 @@
}
},
{
- "__docId__": 984,
+ "__docId__": 985,
"kind": "method",
"static": false,
"variation": null,
@@ -20004,7 +20056,7 @@
"generator": false
},
{
- "__docId__": 985,
+ "__docId__": 986,
"kind": "method",
"static": false,
"variation": null,
@@ -20029,7 +20081,7 @@
"generator": false
},
{
- "__docId__": 986,
+ "__docId__": 987,
"kind": "method",
"static": false,
"variation": null,
@@ -20043,7 +20095,7 @@
"generator": false
},
{
- "__docId__": 987,
+ "__docId__": 988,
"kind": "method",
"static": false,
"variation": null,
@@ -20057,7 +20109,7 @@
"generator": false
},
{
- "__docId__": 988,
+ "__docId__": 989,
"kind": "method",
"static": false,
"variation": null,
@@ -20071,7 +20123,7 @@
"generator": false
},
{
- "__docId__": 989,
+ "__docId__": 990,
"kind": "method",
"static": false,
"variation": null,
@@ -20096,7 +20148,7 @@
"generator": false
},
{
- "__docId__": 990,
+ "__docId__": 991,
"kind": "method",
"static": false,
"variation": null,
@@ -20124,7 +20176,7 @@
"generator": false
},
{
- "__docId__": 991,
+ "__docId__": 992,
"kind": "method",
"static": false,
"variation": null,
@@ -20149,7 +20201,7 @@
"generator": false
},
{
- "__docId__": 992,
+ "__docId__": 993,
"kind": "member",
"static": false,
"variation": null,
@@ -20167,7 +20219,7 @@
}
},
{
- "__docId__": 993,
+ "__docId__": 994,
"kind": "method",
"static": false,
"variation": null,
@@ -20208,7 +20260,7 @@
"generator": false
},
{
- "__docId__": 994,
+ "__docId__": 995,
"kind": "method",
"static": false,
"variation": null,
@@ -20233,7 +20285,7 @@
"generator": false
},
{
- "__docId__": 995,
+ "__docId__": 996,
"kind": "method",
"static": false,
"variation": null,
@@ -20247,7 +20299,7 @@
"generator": false
},
{
- "__docId__": 996,
+ "__docId__": 997,
"kind": "method",
"static": false,
"variation": null,
@@ -20280,7 +20332,7 @@
"generator": false
},
{
- "__docId__": 997,
+ "__docId__": 998,
"kind": "method",
"static": false,
"variation": null,
@@ -20323,7 +20375,7 @@
"generator": false
},
{
- "__docId__": 998,
+ "__docId__": 999,
"kind": "method",
"static": false,
"variation": null,
@@ -20378,7 +20430,7 @@
"generator": false
},
{
- "__docId__": 999,
+ "__docId__": 1000,
"kind": "method",
"static": false,
"variation": null,
@@ -20400,7 +20452,7 @@
"generator": false
},
{
- "__docId__": 1000,
+ "__docId__": 1001,
"kind": "method",
"static": false,
"variation": null,
@@ -20422,7 +20474,7 @@
"generator": false
},
{
- "__docId__": 1001,
+ "__docId__": 1002,
"kind": "method",
"static": false,
"variation": null,
@@ -20455,7 +20507,7 @@
"generator": false
},
{
- "__docId__": 1002,
+ "__docId__": 1003,
"kind": "member",
"static": false,
"variation": null,
@@ -20473,7 +20525,7 @@
}
},
{
- "__docId__": 1003,
+ "__docId__": 1004,
"kind": "method",
"static": false,
"variation": null,
@@ -20495,7 +20547,7 @@
"generator": false
},
{
- "__docId__": 1004,
+ "__docId__": 1005,
"kind": "method",
"static": false,
"variation": null,
@@ -20517,7 +20569,7 @@
"generator": false
},
{
- "__docId__": 1005,
+ "__docId__": 1006,
"kind": "method",
"static": false,
"variation": null,
@@ -20539,7 +20591,7 @@
"generator": false
},
{
- "__docId__": 1006,
+ "__docId__": 1007,
"kind": "method",
"static": false,
"variation": null,
@@ -20561,7 +20613,7 @@
"generator": false
},
{
- "__docId__": 1007,
+ "__docId__": 1008,
"kind": "method",
"static": false,
"variation": null,
@@ -20594,7 +20646,7 @@
"generator": false
},
{
- "__docId__": 1008,
+ "__docId__": 1009,
"kind": "method",
"static": false,
"variation": null,
@@ -20627,7 +20679,7 @@
"generator": false
},
{
- "__docId__": 1009,
+ "__docId__": 1010,
"kind": "method",
"static": false,
"variation": null,
@@ -20660,7 +20712,7 @@
"generator": false
},
{
- "__docId__": 1010,
+ "__docId__": 1011,
"kind": "method",
"static": false,
"variation": null,
@@ -20682,7 +20734,7 @@
"generator": false
},
{
- "__docId__": 1011,
+ "__docId__": 1012,
"kind": "method",
"static": false,
"variation": null,
@@ -20723,7 +20775,7 @@
"generator": false
},
{
- "__docId__": 1012,
+ "__docId__": 1013,
"kind": "method",
"static": false,
"variation": null,
@@ -20745,7 +20797,7 @@
"generator": false
},
{
- "__docId__": 1013,
+ "__docId__": 1014,
"kind": "file",
"static": true,
"variation": null,
@@ -20758,7 +20810,7 @@
"content": "\n/**\n * Types utilities\n */\n\nconst UNDEFINED = void 0;\n\n/**\n * Check passed argument is an object\n * @param {Object} obj\n * @return {Boolean}\n */\nexport const isObj =\n obj => Object.prototype.toString.call(obj) === '[object Object]';\n\n/**\n * Check passed argument is a function\n * @param {Function} obj\n * @return {Boolean}\n */\nexport const isFn =\n obj => Object.prototype.toString.call(obj) === '[object Function]';\n\n/**\n * Check passed argument is an array\n * @param {Array} obj\n * @return {Boolean}\n */\nexport const isArray =\n obj => Object.prototype.toString.call(obj) === '[object Array]';\n\n/**\n * Check passed argument is a string\n * @param {String} obj objue\n * @returns {Boolean}\n */\nexport const isString =\n obj => Object.prototype.toString.call(obj) === '[object String]';\n\n/**\n * Check passed argument is a number\n * @param {Number} obj\n * @returns {Boolean}\n */\nexport const isNumber =\n obj => Object.prototype.toString.call(obj) === '[object Number]';\n\n/**\n * Check passed argument is undefined\n * @param {Any} obj\n * @return {Boolean}\n */\nexport const isUndef = obj => obj === UNDEFINED;\n\n/**\n * Check passed argument is null\n * @param {Any} obj\n * @return {Boolean}\n */\nexport const isNull = obj => obj === null;\n\n/**\n * Check passed argument is empty (undefined, null or empty string)\n * @param {Any} obj\n * @return {Boolean}\n */\nexport const isEmpty = obj => isUndef(obj) || isNull(obj) || obj.length === 0;\n"
},
{
- "__docId__": 1014,
+ "__docId__": 1015,
"kind": "variable",
"static": true,
"variation": null,
@@ -20778,7 +20830,7 @@
}
},
{
- "__docId__": 1015,
+ "__docId__": 1016,
"kind": "variable",
"static": true,
"variation": null,
@@ -20818,7 +20870,7 @@
}
},
{
- "__docId__": 1016,
+ "__docId__": 1017,
"kind": "variable",
"static": true,
"variation": null,
@@ -20858,7 +20910,7 @@
}
},
{
- "__docId__": 1017,
+ "__docId__": 1018,
"kind": "variable",
"static": true,
"variation": null,
@@ -20898,7 +20950,7 @@
}
},
{
- "__docId__": 1018,
+ "__docId__": 1019,
"kind": "variable",
"static": true,
"variation": null,
@@ -20944,7 +20996,7 @@
}
},
{
- "__docId__": 1019,
+ "__docId__": 1020,
"kind": "variable",
"static": true,
"variation": null,
@@ -20990,7 +21042,7 @@
}
},
{
- "__docId__": 1020,
+ "__docId__": 1021,
"kind": "variable",
"static": true,
"variation": null,
@@ -21030,7 +21082,7 @@
}
},
{
- "__docId__": 1021,
+ "__docId__": 1022,
"kind": "variable",
"static": true,
"variation": null,
@@ -21070,7 +21122,7 @@
}
},
{
- "__docId__": 1022,
+ "__docId__": 1023,
"kind": "variable",
"static": true,
"variation": null,
@@ -21110,7 +21162,7 @@
}
},
{
- "__docId__": 1024,
+ "__docId__": 1025,
"kind": "external",
"static": true,
"variation": null,
@@ -21123,7 +21175,7 @@
"builtinExternal": true
},
{
- "__docId__": 1025,
+ "__docId__": 1026,
"kind": "external",
"static": true,
"variation": null,
@@ -21136,7 +21188,7 @@
"builtinExternal": true
},
{
- "__docId__": 1026,
+ "__docId__": 1027,
"kind": "external",
"static": true,
"variation": null,
@@ -21149,7 +21201,7 @@
"builtinExternal": true
},
{
- "__docId__": 1027,
+ "__docId__": 1028,
"kind": "external",
"static": true,
"variation": null,
@@ -21162,7 +21214,7 @@
"builtinExternal": true
},
{
- "__docId__": 1028,
+ "__docId__": 1029,
"kind": "external",
"static": true,
"variation": null,
@@ -21175,7 +21227,7 @@
"builtinExternal": true
},
{
- "__docId__": 1029,
+ "__docId__": 1030,
"kind": "external",
"static": true,
"variation": null,
@@ -21188,7 +21240,7 @@
"builtinExternal": true
},
{
- "__docId__": 1030,
+ "__docId__": 1031,
"kind": "external",
"static": true,
"variation": null,
@@ -21201,7 +21253,7 @@
"builtinExternal": true
},
{
- "__docId__": 1031,
+ "__docId__": 1032,
"kind": "external",
"static": true,
"variation": null,
@@ -21214,7 +21266,7 @@
"builtinExternal": true
},
{
- "__docId__": 1032,
+ "__docId__": 1033,
"kind": "external",
"static": true,
"variation": null,
@@ -21227,7 +21279,7 @@
"builtinExternal": true
},
{
- "__docId__": 1033,
+ "__docId__": 1034,
"kind": "external",
"static": true,
"variation": null,
@@ -21240,7 +21292,7 @@
"builtinExternal": true
},
{
- "__docId__": 1034,
+ "__docId__": 1035,
"kind": "external",
"static": true,
"variation": null,
@@ -21253,7 +21305,7 @@
"builtinExternal": true
},
{
- "__docId__": 1035,
+ "__docId__": 1036,
"kind": "external",
"static": true,
"variation": null,
@@ -21266,7 +21318,7 @@
"builtinExternal": true
},
{
- "__docId__": 1036,
+ "__docId__": 1037,
"kind": "external",
"static": true,
"variation": null,
@@ -21279,7 +21331,7 @@
"builtinExternal": true
},
{
- "__docId__": 1037,
+ "__docId__": 1038,
"kind": "external",
"static": true,
"variation": null,
@@ -21292,7 +21344,7 @@
"builtinExternal": true
},
{
- "__docId__": 1038,
+ "__docId__": 1039,
"kind": "external",
"static": true,
"variation": null,
@@ -21305,7 +21357,7 @@
"builtinExternal": true
},
{
- "__docId__": 1039,
+ "__docId__": 1040,
"kind": "external",
"static": true,
"variation": null,
@@ -21318,7 +21370,7 @@
"builtinExternal": true
},
{
- "__docId__": 1040,
+ "__docId__": 1041,
"kind": "external",
"static": true,
"variation": null,
@@ -21331,7 +21383,7 @@
"builtinExternal": true
},
{
- "__docId__": 1041,
+ "__docId__": 1042,
"kind": "external",
"static": true,
"variation": null,
@@ -21344,7 +21396,7 @@
"builtinExternal": true
},
{
- "__docId__": 1042,
+ "__docId__": 1043,
"kind": "external",
"static": true,
"variation": null,
@@ -21357,7 +21409,7 @@
"builtinExternal": true
},
{
- "__docId__": 1043,
+ "__docId__": 1044,
"kind": "external",
"static": true,
"variation": null,
@@ -21370,7 +21422,7 @@
"builtinExternal": true
},
{
- "__docId__": 1044,
+ "__docId__": 1045,
"kind": "external",
"static": true,
"variation": null,
@@ -21383,7 +21435,7 @@
"builtinExternal": true
},
{
- "__docId__": 1045,
+ "__docId__": 1046,
"kind": "external",
"static": true,
"variation": null,
@@ -21396,7 +21448,7 @@
"builtinExternal": true
},
{
- "__docId__": 1046,
+ "__docId__": 1047,
"kind": "external",
"static": true,
"variation": null,
@@ -21409,7 +21461,7 @@
"builtinExternal": true
},
{
- "__docId__": 1047,
+ "__docId__": 1048,
"kind": "external",
"static": true,
"variation": null,
@@ -21422,7 +21474,7 @@
"builtinExternal": true
},
{
- "__docId__": 1048,
+ "__docId__": 1049,
"kind": "external",
"static": true,
"variation": null,
@@ -21435,7 +21487,7 @@
"builtinExternal": true
},
{
- "__docId__": 1049,
+ "__docId__": 1050,
"kind": "external",
"static": true,
"variation": null,
@@ -21448,7 +21500,7 @@
"builtinExternal": true
},
{
- "__docId__": 1050,
+ "__docId__": 1051,
"kind": "external",
"static": true,
"variation": null,
@@ -21461,7 +21513,7 @@
"builtinExternal": true
},
{
- "__docId__": 1051,
+ "__docId__": 1052,
"kind": "external",
"static": true,
"variation": null,
@@ -21474,7 +21526,7 @@
"builtinExternal": true
},
{
- "__docId__": 1052,
+ "__docId__": 1053,
"kind": "external",
"static": true,
"variation": null,
@@ -21487,7 +21539,7 @@
"builtinExternal": true
},
{
- "__docId__": 1053,
+ "__docId__": 1054,
"kind": "external",
"static": true,
"variation": null,
@@ -21500,7 +21552,7 @@
"builtinExternal": true
},
{
- "__docId__": 1054,
+ "__docId__": 1055,
"kind": "external",
"static": true,
"variation": null,
@@ -21513,7 +21565,7 @@
"builtinExternal": true
},
{
- "__docId__": 1055,
+ "__docId__": 1056,
"kind": "external",
"static": true,
"variation": null,
@@ -21526,7 +21578,7 @@
"builtinExternal": true
},
{
- "__docId__": 1056,
+ "__docId__": 1057,
"kind": "external",
"static": true,
"variation": null,
@@ -21539,7 +21591,7 @@
"builtinExternal": true
},
{
- "__docId__": 1057,
+ "__docId__": 1058,
"kind": "external",
"static": true,
"variation": null,
@@ -21552,7 +21604,7 @@
"builtinExternal": true
},
{
- "__docId__": 1058,
+ "__docId__": 1059,
"kind": "external",
"static": true,
"variation": null,
@@ -21565,7 +21617,7 @@
"builtinExternal": true
},
{
- "__docId__": 1059,
+ "__docId__": 1060,
"kind": "external",
"static": true,
"variation": null,
@@ -21578,7 +21630,7 @@
"builtinExternal": true
},
{
- "__docId__": 1060,
+ "__docId__": 1061,
"kind": "external",
"static": true,
"variation": null,
@@ -21591,7 +21643,7 @@
"builtinExternal": true
},
{
- "__docId__": 1061,
+ "__docId__": 1062,
"kind": "external",
"static": true,
"variation": null,
@@ -21604,7 +21656,7 @@
"builtinExternal": true
},
{
- "__docId__": 1062,
+ "__docId__": 1063,
"kind": "external",
"static": true,
"variation": null,
@@ -21617,7 +21669,7 @@
"builtinExternal": true
},
{
- "__docId__": 1063,
+ "__docId__": 1064,
"kind": "external",
"static": true,
"variation": null,
@@ -21630,7 +21682,7 @@
"builtinExternal": true
},
{
- "__docId__": 1064,
+ "__docId__": 1065,
"kind": "external",
"static": true,
"variation": null,
@@ -21643,7 +21695,7 @@
"builtinExternal": true
},
{
- "__docId__": 1065,
+ "__docId__": 1066,
"kind": "external",
"static": true,
"variation": null,
@@ -21656,7 +21708,7 @@
"builtinExternal": true
},
{
- "__docId__": 1066,
+ "__docId__": 1067,
"kind": "external",
"static": true,
"variation": null,
@@ -21669,7 +21721,7 @@
"builtinExternal": true
},
{
- "__docId__": 1067,
+ "__docId__": 1068,
"kind": "external",
"static": true,
"variation": null,
@@ -21682,7 +21734,7 @@
"builtinExternal": true
},
{
- "__docId__": 1068,
+ "__docId__": 1069,
"kind": "external",
"static": true,
"variation": null,
@@ -21695,7 +21747,7 @@
"builtinExternal": true
},
{
- "__docId__": 1069,
+ "__docId__": 1070,
"kind": "external",
"static": true,
"variation": null,
@@ -21708,7 +21760,7 @@
"builtinExternal": true
},
{
- "__docId__": 1070,
+ "__docId__": 1071,
"kind": "external",
"static": true,
"variation": null,
@@ -21721,7 +21773,7 @@
"builtinExternal": true
},
{
- "__docId__": 1072,
+ "__docId__": 1073,
"kind": "external",
"static": true,
"variation": null,
@@ -21734,7 +21786,7 @@
"builtinExternal": true
},
{
- "__docId__": 1073,
+ "__docId__": 1074,
"kind": "external",
"static": true,
"variation": null,
@@ -21747,7 +21799,7 @@
"builtinExternal": true
},
{
- "__docId__": 1074,
+ "__docId__": 1075,
"kind": "external",
"static": true,
"variation": null,
@@ -21760,7 +21812,7 @@
"builtinExternal": true
},
{
- "__docId__": 1075,
+ "__docId__": 1076,
"kind": "external",
"static": true,
"variation": null,
@@ -21773,7 +21825,7 @@
"builtinExternal": true
},
{
- "__docId__": 1076,
+ "__docId__": 1077,
"kind": "external",
"static": true,
"variation": null,
@@ -21786,7 +21838,7 @@
"builtinExternal": true
},
{
- "__docId__": 1077,
+ "__docId__": 1078,
"kind": "external",
"static": true,
"variation": null,
@@ -21799,7 +21851,7 @@
"builtinExternal": true
},
{
- "__docId__": 1078,
+ "__docId__": 1079,
"kind": "external",
"static": true,
"variation": null,
@@ -21812,7 +21864,7 @@
"builtinExternal": true
},
{
- "__docId__": 1079,
+ "__docId__": 1080,
"kind": "external",
"static": true,
"variation": null,
diff --git a/docs/file/src/array.js.html b/docs/file/src/array.js.html
index d8990315..2f77fce8 100644
--- a/docs/file/src/array.js.html
+++ b/docs/file/src/array.js.html
@@ -3,7 +3,7 @@
- src/array.js | tablefilter v0.2.43 API Document
+ src/array.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/const.js.html b/docs/file/src/const.js.html
index 7f6f21b4..683a61ca 100644
--- a/docs/file/src/const.js.html
+++ b/docs/file/src/const.js.html
@@ -3,7 +3,7 @@
- src/const.js | tablefilter v0.2.43 API Document
+ src/const.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/cookie.js.html b/docs/file/src/cookie.js.html
index f3c5248f..3197c6fc 100644
--- a/docs/file/src/cookie.js.html
+++ b/docs/file/src/cookie.js.html
@@ -3,7 +3,7 @@
- src/cookie.js | tablefilter v0.2.43 API Document
+ src/cookie.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/date.js.html b/docs/file/src/date.js.html
index 4452d0b1..95aaa19f 100644
--- a/docs/file/src/date.js.html
+++ b/docs/file/src/date.js.html
@@ -3,7 +3,7 @@
- src/date.js | tablefilter v0.2.43 API Document
+ src/date.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/dom.js.html b/docs/file/src/dom.js.html
index edf0fbaa..b3a7082b 100644
--- a/docs/file/src/dom.js.html
+++ b/docs/file/src/dom.js.html
@@ -3,7 +3,7 @@
- src/dom.js | tablefilter v0.2.43 API Document
+ src/dom.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/emitter.js.html b/docs/file/src/emitter.js.html
index 3f4ce39d..c01432e0 100644
--- a/docs/file/src/emitter.js.html
+++ b/docs/file/src/emitter.js.html
@@ -3,7 +3,7 @@
- src/emitter.js | tablefilter v0.2.43 API Document
+ src/emitter.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/event.js.html b/docs/file/src/event.js.html
index dc0fdf94..240fe1e0 100644
--- a/docs/file/src/event.js.html
+++ b/docs/file/src/event.js.html
@@ -3,7 +3,7 @@
- src/event.js | tablefilter v0.2.43 API Document
+ src/event.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/extensions/advancedGrid/adapterEzEditTable.js.html b/docs/file/src/extensions/advancedGrid/adapterEzEditTable.js.html
index fec68127..b498f09e 100644
--- a/docs/file/src/extensions/advancedGrid/adapterEzEditTable.js.html
+++ b/docs/file/src/extensions/advancedGrid/adapterEzEditTable.js.html
@@ -3,7 +3,7 @@
- src/extensions/advancedGrid/adapterEzEditTable.js | tablefilter v0.2.43 API Document
+ src/extensions/advancedGrid/adapterEzEditTable.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/extensions/advancedGrid/advancedGrid.js.html b/docs/file/src/extensions/advancedGrid/advancedGrid.js.html
index f3878a29..6fdef30f 100644
--- a/docs/file/src/extensions/advancedGrid/advancedGrid.js.html
+++ b/docs/file/src/extensions/advancedGrid/advancedGrid.js.html
@@ -3,7 +3,7 @@
- src/extensions/advancedGrid/advancedGrid.js | tablefilter v0.2.43 API Document
+ src/extensions/advancedGrid/advancedGrid.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/extensions/colOps/colOps.js.html b/docs/file/src/extensions/colOps/colOps.js.html
index eb5968a3..5de8b18b 100644
--- a/docs/file/src/extensions/colOps/colOps.js.html
+++ b/docs/file/src/extensions/colOps/colOps.js.html
@@ -3,7 +3,7 @@
- src/extensions/colOps/colOps.js | tablefilter v0.2.43 API Document
+ src/extensions/colOps/colOps.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/extensions/colsVisibility/colsVisibility.js.html b/docs/file/src/extensions/colsVisibility/colsVisibility.js.html
index 1a67b9a5..e967354b 100644
--- a/docs/file/src/extensions/colsVisibility/colsVisibility.js.html
+++ b/docs/file/src/extensions/colsVisibility/colsVisibility.js.html
@@ -3,7 +3,7 @@
- src/extensions/colsVisibility/colsVisibility.js | tablefilter v0.2.43 API Document
+ src/extensions/colsVisibility/colsVisibility.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/extensions/filtersVisibility/filtersVisibility.js.html b/docs/file/src/extensions/filtersVisibility/filtersVisibility.js.html
index 5f90d35a..0afc3394 100644
--- a/docs/file/src/extensions/filtersVisibility/filtersVisibility.js.html
+++ b/docs/file/src/extensions/filtersVisibility/filtersVisibility.js.html
@@ -3,7 +3,7 @@
- src/extensions/filtersVisibility/filtersVisibility.js | tablefilter v0.2.43 API Document
+ src/extensions/filtersVisibility/filtersVisibility.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/extensions/sort/adapterSortabletable.js.html b/docs/file/src/extensions/sort/adapterSortabletable.js.html
index 050dee00..506eb67f 100644
--- a/docs/file/src/extensions/sort/adapterSortabletable.js.html
+++ b/docs/file/src/extensions/sort/adapterSortabletable.js.html
@@ -3,7 +3,7 @@
- src/extensions/sort/adapterSortabletable.js | tablefilter v0.2.43 API Document
+ src/extensions/sort/adapterSortabletable.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/extensions/sort/sort.js.html b/docs/file/src/extensions/sort/sort.js.html
index b2ffd966..fdd2f60a 100644
--- a/docs/file/src/extensions/sort/sort.js.html
+++ b/docs/file/src/extensions/sort/sort.js.html
@@ -3,7 +3,7 @@
- src/extensions/sort/sort.js | tablefilter v0.2.43 API Document
+ src/extensions/sort/sort.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/feature.js.html b/docs/file/src/feature.js.html
index 15b2b12f..c74b9410 100644
--- a/docs/file/src/feature.js.html
+++ b/docs/file/src/feature.js.html
@@ -3,7 +3,7 @@
- src/feature.js | tablefilter v0.2.43 API Document
+ src/feature.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/helpers.js.html b/docs/file/src/helpers.js.html
index ddd57880..6251297d 100644
--- a/docs/file/src/helpers.js.html
+++ b/docs/file/src/helpers.js.html
@@ -3,7 +3,7 @@
- src/helpers.js | tablefilter v0.2.43 API Document
+ src/helpers.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/modules/alternateRows.js.html b/docs/file/src/modules/alternateRows.js.html
index aa746d27..d2e11a12 100644
--- a/docs/file/src/modules/alternateRows.js.html
+++ b/docs/file/src/modules/alternateRows.js.html
@@ -3,7 +3,7 @@
- src/modules/alternateRows.js | tablefilter v0.2.43 API Document
+ src/modules/alternateRows.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/modules/checkList.js.html b/docs/file/src/modules/checkList.js.html
index 115669d5..38653345 100644
--- a/docs/file/src/modules/checkList.js.html
+++ b/docs/file/src/modules/checkList.js.html
@@ -3,7 +3,7 @@
- src/modules/checkList.js | tablefilter v0.2.43 API Document
+ src/modules/checkList.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/modules/clearButton.js.html b/docs/file/src/modules/clearButton.js.html
index d85b23d1..bc2730d2 100644
--- a/docs/file/src/modules/clearButton.js.html
+++ b/docs/file/src/modules/clearButton.js.html
@@ -3,7 +3,7 @@
- src/modules/clearButton.js | tablefilter v0.2.43 API Document
+ src/modules/clearButton.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/modules/dropdown.js.html b/docs/file/src/modules/dropdown.js.html
index b1c48db2..3cbce8af 100644
--- a/docs/file/src/modules/dropdown.js.html
+++ b/docs/file/src/modules/dropdown.js.html
@@ -3,7 +3,7 @@
- src/modules/dropdown.js | tablefilter v0.2.43 API Document
+ src/modules/dropdown.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/modules/gridLayout.js.html b/docs/file/src/modules/gridLayout.js.html
index dd911401..1585d4a0 100644
--- a/docs/file/src/modules/gridLayout.js.html
+++ b/docs/file/src/modules/gridLayout.js.html
@@ -3,7 +3,7 @@
- src/modules/gridLayout.js | tablefilter v0.2.43 API Document
+ src/modules/gridLayout.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/modules/hash.js.html b/docs/file/src/modules/hash.js.html
index 3bc6e965..8d7bdf9e 100644
--- a/docs/file/src/modules/hash.js.html
+++ b/docs/file/src/modules/hash.js.html
@@ -3,7 +3,7 @@
- src/modules/hash.js | tablefilter v0.2.43 API Document
+ src/modules/hash.js | tablefilter v0.2.44 API Document
@@ -122,13 +122,16 @@ const JSON = root.JSON;
const location = root.location;
const decodeURIComponent = root.decodeURIComponent;
+/**
+ * Checks if browser has onhashchange event
+ */
export const hasHashChange = () => {
let docMode = root.documentMode;
return ('onhashchange' in root) && (docMode === undefined || docMode > 7);
};
/**
- * Manages the URL hash reflecting the features state to be persisted
+ * Manages state via URL hash changes
*
* @export
* @class Hash
@@ -141,9 +144,30 @@ export class Hash {
* @param {State} state Instance of State
*/
constructor(state) {
+ /**
+ * State object
+ * @type {State} State
+ */
this.state = state;
+
+ /**
+ * Cached URL hash
+ * @type {String} Hash string
+ * @private
+ */
this.lastHash = null;
+
+ /**
+ * Application event emitter instance
+ * @type {Emitter}
+ */
this.emitter = state.emitter;
+
+ /**
+ * Bound sync wrapper for future use
+ * @private
+ */
+ this.boundSync = null;
}
/**
@@ -155,7 +179,7 @@ export class Hash {
}
this.lastHash = location.hash;
- //Store a bound sync wrapper for future use.
+ //Store a bound sync wrapper
this.boundSync = this.sync.bind(this);
this.emitter.on(['state-changed'], (tf, state) => this.update(state));
this.emitter.on(['initialized'], this.boundSync);
diff --git a/docs/file/src/modules/help.js.html b/docs/file/src/modules/help.js.html
index f77f712c..074c43b8 100644
--- a/docs/file/src/modules/help.js.html
+++ b/docs/file/src/modules/help.js.html
@@ -3,7 +3,7 @@
- src/modules/help.js | tablefilter v0.2.43 API Document
+ src/modules/help.js | tablefilter v0.2.44 API Document
@@ -124,23 +124,37 @@ const WIKI_URL = 'https://github.com/koalyptus/TableFilter/wiki/' +
'4.-Filter-operators';
const WEBSITE_URL = 'http://koalyptus.github.io/TableFilter/';
+/**
+ * Help UI component
+ */
export class Help extends Feature {
/**
- * Help UI component
- * @param {Object} tf TableFilter instance
+ * Creates an instance of Help.
+ * @param {TableFilter} tf TableFilter instance
*/
constructor(tf) {
super(tf, 'help');
var f = this.config;
- //id of custom container element for instructions
+ /**
+ * ID of main custom container element
+ * @type {String}
+ */
this.tgtId = f.help_instructions_target_id || null;
- //id of custom container element for instructions
+
+ /**
+ * ID of custom container element for instructions
+ * @type {String}
+ */
this.contTgtId = f.help_instructions_container_target_id ||
null;
- //defines help text
+
+ /**
+ * Instructions text (accepts HTML)
+ * @type {String}
+ */
this.instrText = f.help_instructions_text ?
f.help_instructions_text :
'Use the filters above each column to filter and limit table ' +
@@ -150,21 +164,54 @@ export class Help extends Feature {
'<b>||</b>,<b>&&</b>, <b>[empty]</b>, <b>[nonempty]</b>, ' +
'<b>rgx:</b><br/><a href="' + WIKI_URL + '" target="_blank">' +
'Learn more</a><hr/>';
- //defines help innerHtml
+
+ /**
+ * Instructions HTML
+ * @type {String}
+ */
this.instrHtml = f.help_instructions_html || null;
- //defines reset button text
+
+ /**
+ * Help button text ('?')
+ * @type {String}
+ */
this.btnText = f.help_instructions_btn_text || '?';
- //defines reset button innerHtml
+
+ /**
+ * Custom help button HTML
+ * @type {String}
+ */
this.btnHtml = f.help_instructions_btn_html || null;
- //defines css class for help button
+
+ /**
+ * Css class for help button
+ * @type {String}
+ */
this.btnCssClass = f.help_instructions_btn_css_class || 'helpBtn';
- //defines css class for help container
+
+ /**
+ * Css class for help container element
+ * @type {String}
+ */
this.contCssClass = f.help_instructions_container_css_class ||
'helpCont';
- //help button element
+
+ /**
+ * Stores button DOM element
+ * @type {DOMElement}
+ */
this.btn = null;
- //help content div
+
+ /**
+ * Stores help container DOM element
+ * @type {DOMElement}
+ */
this.cont = null;
+
+ /**
+ * Default HTML appended to instructions text
+ * @type {String}
+ */
this.defaultHtml = '<div class="helpFooter"><h4>TableFilter ' +
'v' + tf.version + '</h4>' + '<a href="' + WEBSITE_URL +
'" target="_blank">' + WEBSITE_URL + '</a>' +
@@ -172,9 +219,18 @@ export class Help extends Feature {
'<div align="center" style="margin-top:8px;">' +
'<a href="javascript:void(0);" class="close">Close</a></div></div>';
- //id prefix for help elements
+ /**
+ * Prefix for help main container ID
+ * @type {String}
+ * @private
+ */
this.prfxHelpSpan = 'helpSpan_';
- //id prefix for help elements
+
+ /**
+ * Prefix for help instructions container ID
+ * @type {String}
+ * @private
+ */
this.prfxHelpDiv = 'helpDiv_';
this.emitter.on(['init-help'], () => this.init());
@@ -182,7 +238,6 @@ export class Help extends Feature {
/**
* Initialise Help instance
- *
* @returns (description)
*/
init() {
@@ -237,6 +292,9 @@ export class Help extends Feature {
this.cont = helpdiv;
this.btn = helpspan;
+ /**
+ * @inherited
+ */
this.initialized = true;
}
diff --git a/docs/file/src/modules/highlightKeywords.js.html b/docs/file/src/modules/highlightKeywords.js.html
index c9f16749..97cf7e8a 100644
--- a/docs/file/src/modules/highlightKeywords.js.html
+++ b/docs/file/src/modules/highlightKeywords.js.html
@@ -3,7 +3,7 @@
- src/modules/highlightKeywords.js | tablefilter v0.2.43 API Document
+ src/modules/highlightKeywords.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/modules/loader.js.html b/docs/file/src/modules/loader.js.html
index d6aac9c9..8ce44f5b 100644
--- a/docs/file/src/modules/loader.js.html
+++ b/docs/file/src/modules/loader.js.html
@@ -3,7 +3,7 @@
- src/modules/loader.js | tablefilter v0.2.43 API Document
+ src/modules/loader.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/modules/noResults.js.html b/docs/file/src/modules/noResults.js.html
index 2e2f68fe..572633e5 100644
--- a/docs/file/src/modules/noResults.js.html
+++ b/docs/file/src/modules/noResults.js.html
@@ -3,7 +3,7 @@
- src/modules/noResults.js | tablefilter v0.2.43 API Document
+ src/modules/noResults.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/modules/paging.js.html b/docs/file/src/modules/paging.js.html
index 395d1485..3b0cec44 100644
--- a/docs/file/src/modules/paging.js.html
+++ b/docs/file/src/modules/paging.js.html
@@ -3,7 +3,7 @@
- src/modules/paging.js | tablefilter v0.2.43 API Document
+ src/modules/paging.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/modules/popupFilter.js.html b/docs/file/src/modules/popupFilter.js.html
index 4cbe1e8f..6b57c748 100644
--- a/docs/file/src/modules/popupFilter.js.html
+++ b/docs/file/src/modules/popupFilter.js.html
@@ -3,7 +3,7 @@
- src/modules/popupFilter.js | tablefilter v0.2.43 API Document
+ src/modules/popupFilter.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/modules/rowsCounter.js.html b/docs/file/src/modules/rowsCounter.js.html
index 16798b5f..4f096069 100644
--- a/docs/file/src/modules/rowsCounter.js.html
+++ b/docs/file/src/modules/rowsCounter.js.html
@@ -3,7 +3,7 @@
- src/modules/rowsCounter.js | tablefilter v0.2.43 API Document
+ src/modules/rowsCounter.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/modules/state.js.html b/docs/file/src/modules/state.js.html
index 84e9e44c..3c751130 100644
--- a/docs/file/src/modules/state.js.html
+++ b/docs/file/src/modules/state.js.html
@@ -3,7 +3,7 @@
- src/modules/state.js | tablefilter v0.2.43 API Document
+ src/modules/state.js | tablefilter v0.2.44 API Document
@@ -122,8 +122,7 @@ import {isEmpty} from '../string';
import {isArray, isNull, isString, isUndef} from '../types';
/**
- * Reflects the state of features to be persisted via hash, localStorage or
- * cookie
+ * State persistence via hash, localStorage or cookie
*
* @export
* @class State
diff --git a/docs/file/src/modules/statusBar.js.html b/docs/file/src/modules/statusBar.js.html
index dc29df29..c8e8cf2e 100644
--- a/docs/file/src/modules/statusBar.js.html
+++ b/docs/file/src/modules/statusBar.js.html
@@ -3,7 +3,7 @@
- src/modules/statusBar.js | tablefilter v0.2.43 API Document
+ src/modules/statusBar.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/modules/storage.js.html b/docs/file/src/modules/storage.js.html
index 3bd768a3..4cc41416 100644
--- a/docs/file/src/modules/storage.js.html
+++ b/docs/file/src/modules/storage.js.html
@@ -3,7 +3,7 @@
- src/modules/storage.js | tablefilter v0.2.43 API Document
+ src/modules/storage.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/root.js.html b/docs/file/src/root.js.html
index 90024b66..7f6b6a2b 100644
--- a/docs/file/src/root.js.html
+++ b/docs/file/src/root.js.html
@@ -3,7 +3,7 @@
- src/root.js | tablefilter v0.2.43 API Document
+ src/root.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/sort.js.html b/docs/file/src/sort.js.html
index 09212e35..e879e58d 100644
--- a/docs/file/src/sort.js.html
+++ b/docs/file/src/sort.js.html
@@ -3,7 +3,7 @@
- src/sort.js | tablefilter v0.2.43 API Document
+ src/sort.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/string.js.html b/docs/file/src/string.js.html
index 9b35c0eb..7167f499 100644
--- a/docs/file/src/string.js.html
+++ b/docs/file/src/string.js.html
@@ -3,7 +3,7 @@
- src/string.js | tablefilter v0.2.43 API Document
+ src/string.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/tablefilter.js.html b/docs/file/src/tablefilter.js.html
index aaaafa40..80cdb42a 100644
--- a/docs/file/src/tablefilter.js.html
+++ b/docs/file/src/tablefilter.js.html
@@ -3,7 +3,7 @@
- src/tablefilter.js | tablefilter v0.2.43 API Document
+ src/tablefilter.js | tablefilter v0.2.44 API Document
diff --git a/docs/file/src/types.js.html b/docs/file/src/types.js.html
index 23bb6c5b..e06a6e69 100644
--- a/docs/file/src/types.js.html
+++ b/docs/file/src/types.js.html
@@ -3,7 +3,7 @@
- src/types.js | tablefilter v0.2.43 API Document
+ src/types.js | tablefilter v0.2.44 API Document
diff --git a/docs/identifiers.html b/docs/identifiers.html
index e1b2b97d..a7774312 100644
--- a/docs/identifiers.html
+++ b/docs/identifiers.html
@@ -3,7 +3,7 @@
- Index | tablefilter v0.2.43 API Document
+ Index | tablefilter v0.2.44 API Document
@@ -443,7 +443,7 @@
- Manages the URL hash reflecting the features state to be persisted
+ Manages state via URL hash changes
@@ -469,7 +469,8 @@
@@ -644,8 +645,7 @@
- Reflects the state of features to be persisted via hash, localStorage or
-cookie
+ State persistence via hash, localStorage or cookie
|
@@ -1459,7 +1459,8 @@ propagation of the event.
-
+ Checks if browser has onhashchange event
+
diff --git a/docs/index.html b/docs/index.html
index e716d527..38b35b6c 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -3,7 +3,7 @@
- tablefilter v0.2.43 API Document
+ tablefilter v0.2.44 API Document
diff --git a/docs/package.json b/docs/package.json
index ca270a6a..8501edc2 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -1,6 +1,6 @@
{
"name": "tablefilter",
- "version": "0.2.43",
+ "version": "0.2.44",
"description": "A Javascript library making HTML tables filterable and a bit more",
"license": "MIT",
"author": {
@@ -28,7 +28,7 @@
"tag": "next"
},
"devDependencies": {
- "babel-core": "^6.10.4",
+ "babel-core": "^6.11.4",
"babel-eslint": "6.1.2",
"babel-loader": "^6.0.1",
"babel-preset-es2015": "^6.9.0",
diff --git a/docs/script/search_index.js b/docs/script/search_index.js
index dc0165fa..81246cdc 100644
--- a/docs/script/search_index.js
+++ b/docs/script/search_index.js
@@ -2243,12 +2243,6 @@ window.esdocSearchIndex = [
"src/modules/hash.js",
"file"
],
- [
- "src/modules/hash.js~hash#boundsync",
- "class/src/modules/hash.js~Hash.html#instance-member-boundSync",
- "src/modules/hash.js~Hash#boundSync",
- "member"
- ],
[
"src/modules/hash.js~hash#constructor",
"class/src/modules/hash.js~Hash.html#instance-constructor-constructor",
@@ -2273,12 +2267,6 @@ window.esdocSearchIndex = [
"src/modules/hash.js~Hash#init",
"method"
],
- [
- "src/modules/hash.js~hash#lasthash",
- "class/src/modules/hash.js~Hash.html#instance-member-lastHash",
- "src/modules/hash.js~Hash#lastHash",
- "member"
- ],
[
"src/modules/hash.js~hash#parse",
"class/src/modules/hash.js~Hash.html#instance-method-parse",
@@ -2393,18 +2381,6 @@ window.esdocSearchIndex = [
"src/modules/help.js~Help#instrText",
"member"
],
- [
- "src/modules/help.js~help#prfxhelpdiv",
- "class/src/modules/help.js~Help.html#instance-member-prfxHelpDiv",
- "src/modules/help.js~Help#prfxHelpDiv",
- "member"
- ],
- [
- "src/modules/help.js~help#prfxhelpspan",
- "class/src/modules/help.js~Help.html#instance-member-prfxHelpSpan",
- "src/modules/help.js~Help#prfxHelpSpan",
- "member"
- ],
[
"src/modules/help.js~help#tgtid",
"class/src/modules/help.js~Help.html#instance-member-tgtId",
diff --git a/docs/source.html b/docs/source.html
index 5cb613a7..7efd5027 100644
--- a/docs/source.html
+++ b/docs/source.html
@@ -3,7 +3,7 @@
- Source | tablefilter v0.2.43 API Document
+ Source | tablefilter v0.2.44 API Document
@@ -114,7 +114,7 @@
-Source 306/765
+ Source 322/761
@@ -135,7 +135,7 @@
| 100 %1/1 |
545 byte |
22 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/const.js |
@@ -155,7 +155,7 @@
100 %13/13 |
1133 byte |
84 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/cookie.js |
@@ -163,7 +163,7 @@
- |
1412 byte |
57 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/date.js |
@@ -172,7 +172,7 @@
100 %2/2 |
5770 byte |
183 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/dom.js |
@@ -191,7 +191,7 @@
100 %12/12 |
4787 byte |
191 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/emitter.js |
@@ -199,7 +199,7 @@
100 %6/6 |
1323 byte |
53 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/event.js |
@@ -212,7 +212,7 @@
100 %6/6 |
2378 byte |
102 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/extensions/advancedGrid/adapterEzEditTable.js |
@@ -220,7 +220,7 @@
35 %5/14 |
18245 byte |
459 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/extensions/advancedGrid/advancedGrid.js |
@@ -228,7 +228,7 @@
- |
90 byte |
2 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/extensions/colOps/colOps.js |
@@ -236,7 +236,7 @@
22 %2/9 |
12868 byte |
329 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/extensions/colsVisibility/colsVisibility.js |
@@ -244,7 +244,7 @@
17 %10/57 |
18064 byte |
546 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/extensions/filtersVisibility/filtersVisibility.js |
@@ -252,7 +252,7 @@
18 %6/33 |
6337 byte |
202 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/extensions/sort/adapterSortabletable.js |
@@ -260,7 +260,7 @@
11 %3/26 |
14150 byte |
432 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/extensions/sort/sort.js |
@@ -268,7 +268,7 @@
- |
197 byte |
8 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/feature.js |
@@ -276,7 +276,7 @@
100 %14/14 |
1761 byte |
94 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/helpers.js |
@@ -284,7 +284,7 @@
100 %1/1 |
488 byte |
23 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/modules/alternateRows.js |
@@ -292,7 +292,7 @@
88 %8/9 |
3481 byte |
137 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/modules/checkList.js |
@@ -300,7 +300,7 @@
95 %20/21 |
18566 byte |
565 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/modules/clearButton.js |
@@ -308,7 +308,7 @@
88 %8/9 |
3055 byte |
124 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/modules/dropdown.js |
@@ -316,7 +316,7 @@
92 %12/13 |
13674 byte |
431 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/modules/gridLayout.js |
@@ -324,24 +324,24 @@
75 %15/20 |
14613 byte |
502 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
- | src/modules/hash.js |
+ src/modules/hash.js |
Hash
hasHashChange |
- 58 %7/12 |
- 2503 byte |
- 101 |
- 2016-07-06 04:16:32 (UTC) |
+ 100 %10/10 |
+ 2915 byte |
+ 125 |
+ 2016-07-07 09:00:43 (UTC) |
- | src/modules/help.js |
+ src/modules/help.js |
Help |
- 21 %4/19 |
- 5495 byte |
- 160 |
- 2016-07-06 04:16:32 (UTC) |
+ 100 %17/17 |
+ 6377 byte |
+ 218 |
+ 2016-07-07 09:00:43 (UTC) |
| src/modules/highlightKeywords.js |
@@ -349,7 +349,7 @@
40 %4/10 |
4011 byte |
122 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/modules/loader.js |
@@ -357,7 +357,7 @@
6 %1/15 |
4565 byte |
155 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/modules/noResults.js |
@@ -365,7 +365,7 @@
5 %1/20 |
3735 byte |
136 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/modules/paging.js |
@@ -373,7 +373,7 @@
23 %15/63 |
26227 byte |
757 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/modules/popupFilter.js |
@@ -381,7 +381,7 @@
35 %10/28 |
9098 byte |
276 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/modules/rowsCounter.js |
@@ -389,15 +389,15 @@
5 %1/18 |
5009 byte |
149 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
- | src/modules/state.js |
+ src/modules/state.js |
State |
35 %13/37 |
- 12252 byte |
- 413 |
- 2016-07-06 04:16:32 (UTC) |
+ 12220 byte |
+ 412 |
+ 2016-07-07 09:00:43 (UTC) |
| src/modules/statusBar.js |
@@ -405,7 +405,7 @@
3 %1/29 |
7663 byte |
222 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/modules/storage.js |
@@ -414,7 +414,7 @@
56 %9/16 |
2860 byte |
123 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/root.js |
@@ -422,7 +422,7 @@
100 %1/1 |
235 byte |
6 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/sort.js |
@@ -432,7 +432,7 @@
100 %3/3 |
930 byte |
33 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/string.js |
@@ -444,7 +444,7 @@
100 %5/5 |
1854 byte |
69 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/tablefilter.js |
@@ -452,7 +452,7 @@
36 %79/215 |
77868 byte |
2301 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
| src/types.js |
@@ -467,7 +467,7 @@
100 %8/8 |
1451 byte |
67 |
- 2016-07-06 04:16:32 (UTC) |
+ 2016-07-07 09:00:43 (UTC) |
diff --git a/docs/variable/index.html b/docs/variable/index.html
index 4e0bf160..b162e3ad 100644
--- a/docs/variable/index.html
+++ b/docs/variable/index.html
@@ -3,7 +3,7 @@
- Variable | tablefilter v0.2.43 API Document
+ Variable | tablefilter v0.2.44 API Document
@@ -839,7 +839,8 @@ propagation of the event.
-
+ Checks if browser has onhashchange event
+
|
@@ -2760,14 +2761,15 @@ propagation of the event.
- source
+ source
-
-
+
+ Checks if browser has onhashchange event
+
| |