From 765d3bccd9cc4c2eb857669379f6e747b38737b2 Mon Sep 17 00:00:00 2001 From: koalyptus Date: Sun, 15 Jan 2017 06:56:55 +0000 Subject: [PATCH] publish Docs to gh-pages (auto) branch: master SHA: 47d350470c434635e95cbacc55eddd49cbb79a7e range SHA: b4a1d207b789...47d350470c43 build id: 192057943 build number: 542 --- .../source/extensions/colOps/colOps.js.json | 36255 ++++++++-------- docs/ast/source/tablefilter.js.json | 23880 +++++----- docs/ast/source/types.js.json | 146 +- docs/class/src/emitter.js~Emitter.html | 2 +- ...pterEzEditTable.js~AdapterEzEditTable.html | 2 +- .../extensions/colOps/colOps.js~ColOps.html | 1383 +- .../colsVisibility.js~ColsVisibility.html | 2 +- ...iltersVisibility.js~FiltersVisibility.html | 2 +- ...Sortabletable.js~AdapterSortableTable.html | 2 +- docs/class/src/feature.js~Feature.html | 2 +- .../alternateRows.js~AlternateRows.html | 2 +- .../src/modules/checkList.js~CheckList.html | 2 +- .../modules/clearButton.js~ClearButton.html | 2 +- .../src/modules/dateType.js~DateType.html | 2 +- .../src/modules/dropdown.js~Dropdown.html | 2 +- .../src/modules/gridLayout.js~GridLayout.html | 2 +- docs/class/src/modules/hash.js~Hash.html | 2 +- docs/class/src/modules/help.js~Help.html | 2 +- ...highlightKeywords.js~HighlightKeyword.html | 2 +- docs/class/src/modules/loader.js~Loader.html | 2 +- .../src/modules/noResults.js~NoResults.html | 2 +- docs/class/src/modules/paging.js~Paging.html | 2 +- .../modules/popupFilter.js~PopupFilter.html | 2 +- .../modules/rowsCounter.js~RowsCounter.html | 2 +- docs/class/src/modules/state.js~State.html | 2 +- .../src/modules/statusBar.js~StatusBar.html | 2 +- .../class/src/modules/storage.js~Storage.html | 2 +- .../class/src/tablefilter.js~TableFilter.html | 100 +- docs/coverage.json | 8 +- docs/dump.json | 3004 +- docs/file/src/array.js.html | 2 +- docs/file/src/const.js.html | 2 +- docs/file/src/cookie.js.html | 2 +- docs/file/src/dom.js.html | 2 +- docs/file/src/emitter.js.html | 2 +- docs/file/src/event.js.html | 2 +- .../advancedGrid/adapterEzEditTable.js.html | 2 +- .../advancedGrid/advancedGrid.js.html | 2 +- .../file/src/extensions/colOps/colOps.js.html | 592 +- .../colsVisibility/colsVisibility.js.html | 2 +- .../filtersVisibility.js.html | 2 +- .../sort/adapterSortabletable.js.html | 2 +- docs/file/src/extensions/sort/sort.js.html | 2 +- docs/file/src/feature.js.html | 2 +- docs/file/src/modules/alternateRows.js.html | 2 +- docs/file/src/modules/checkList.js.html | 2 +- docs/file/src/modules/clearButton.js.html | 2 +- docs/file/src/modules/dateType.js.html | 2 +- docs/file/src/modules/dropdown.js.html | 2 +- docs/file/src/modules/gridLayout.js.html | 2 +- docs/file/src/modules/hash.js.html | 2 +- docs/file/src/modules/help.js.html | 2 +- .../src/modules/highlightKeywords.js.html | 2 +- docs/file/src/modules/loader.js.html | 2 +- docs/file/src/modules/noResults.js.html | 2 +- docs/file/src/modules/paging.js.html | 2 +- docs/file/src/modules/popupFilter.js.html | 2 +- docs/file/src/modules/rowsCounter.js.html | 2 +- docs/file/src/modules/state.js.html | 2 +- docs/file/src/modules/statusBar.js.html | 2 +- docs/file/src/modules/storage.js.html | 2 +- docs/file/src/number.js.html | 2 +- docs/file/src/root.js.html | 2 +- docs/file/src/sort.js.html | 2 +- docs/file/src/string.js.html | 2 +- docs/file/src/tablefilter.js.html | 57 +- docs/file/src/types.js.html | 4 +- docs/function/index.html | 2 +- docs/identifiers.html | 2 +- docs/index.html | 2 +- docs/package.json | 2 +- docs/script/search_index.js | 102 +- docs/source.html | 90 +- docs/variable/index.html | 2 +- 74 files changed, 34782 insertions(+), 30963 deletions(-) diff --git a/docs/ast/source/extensions/colOps/colOps.js.json b/docs/ast/source/extensions/colOps/colOps.js.json index 288080b3..49b67937 100644 --- a/docs/ast/source/extensions/colOps/colOps.js.json +++ b/docs/ast/source/extensions/colOps/colOps.js.json @@ -402,10 +402,10 @@ "type": "ImportSpecifier", "local": { "type": "Identifier", - "name": "EMPTY_FN", + "name": "isEmpty", "range": [ 114, - 122 + 121 ], "loc": { "start": { @@ -414,16 +414,16 @@ }, "end": { "line": 3, - "column": 40 + "column": 39 } } }, "imported": { "type": "Identifier", - "name": "EMPTY_FN", + "name": "isEmpty", "range": [ 114, - 122 + 121 ], "loc": { "start": { @@ -432,13 +432,13 @@ }, "end": { "line": 3, - "column": 40 + "column": 39 } } }, "range": [ 114, - 122 + 121 ], "loc": { "start": { @@ -447,7 +447,60 @@ }, "end": { "line": 3, - "column": 40 + "column": 39 + } + } + }, + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "EMPTY_FN", + "range": [ + 123, + 131 + ], + "loc": { + "start": { + "line": 3, + "column": 41 + }, + "end": { + "line": 3, + "column": 49 + } + } + }, + "imported": { + "type": "Identifier", + "name": "EMPTY_FN", + "range": [ + 123, + 131 + ], + "loc": { + "start": { + "line": 3, + "column": 41 + }, + "end": { + "line": 3, + "column": 49 + } + } + }, + "range": [ + 123, + 131 + ], + "loc": { + "start": { + "line": 3, + "column": 41 + }, + "end": { + "line": 3, + "column": 49 } } } @@ -457,23 +510,23 @@ "value": "../../types", "raw": "'../../types'", "range": [ - 129, - 142 + 138, + 151 ], "loc": { "start": { "line": 3, - "column": 47 + "column": 56 }, "end": { "line": 3, - "column": 60 + "column": 69 } } }, "range": [ 82, - 143 + 152 ], "loc": { "start": { @@ -482,7 +535,98 @@ }, "end": { "line": 3, - "column": 61 + "column": 70 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "numSortAsc", + "range": [ + 161, + 171 + ], + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 18 + } + } + }, + "imported": { + "type": "Identifier", + "name": "numSortAsc", + "range": [ + 161, + 171 + ], + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 18 + } + } + }, + "range": [ + 161, + 171 + ], + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 18 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../../sort", + "raw": "'../../sort'", + "range": [ + 178, + 190 + ], + "loc": { + "start": { + "line": 4, + "column": 25 + }, + "end": { + "line": 4, + "column": 37 + } + } + }, + "range": [ + 153, + 191 + ], + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 38 } } }, @@ -495,16 +639,16 @@ "type": "Identifier", "name": "EVENTS", "range": [ - 151, - 157 + 199, + 205 ], "loc": { "start": { - "line": 5, + "line": 6, "column": 6 }, "end": { - "line": 5, + "line": 6, "column": 12 } } @@ -517,16 +661,16 @@ "value": "after-filtering", "raw": "'after-filtering'", "range": [ - 166, - 183 + 214, + 231 ], "loc": { "start": { - "line": 6, + "line": 7, "column": 4 }, "end": { - "line": 6, + "line": 7, "column": 21 } } @@ -536,16 +680,16 @@ "value": "after-page-change", "raw": "'after-page-change'", "range": [ - 189, - 208 + 237, + 256 ], "loc": { "start": { - "line": 7, + "line": 8, "column": 4 }, "end": { - "line": 7, + "line": 8, "column": 23 } } @@ -555,47 +699,47 @@ "value": "after-page-length-change", "raw": "'after-page-length-change'", "range": [ - 214, - 240 + 262, + 288 ], "loc": { "start": { - "line": 8, + "line": 9, "column": 4 }, "end": { - "line": 8, + "line": 9, "column": 30 } } } ], "range": [ - 160, - 242 + 208, + 290 ], "loc": { "start": { - "line": 5, + "line": 6, "column": 15 }, "end": { - "line": 9, + "line": 10, "column": 1 } } }, "range": [ - 151, - 242 + 199, + 290 ], "loc": { "start": { - "line": 5, + "line": 6, "column": 6 }, "end": { - "line": 9, + "line": 10, "column": 1 } } @@ -603,34 +747,552 @@ ], "kind": "const", "range": [ - 145, - 243 + 193, + 291 ], "loc": { "start": { - "line": 5, + "line": 6, "column": 0 }, "end": { - "line": 9, + "line": 10, "column": 2 } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "SUM", + "range": [ + 299, + 302 + ], + "loc": { + "start": { + "line": 12, + "column": 6 + }, + "end": { + "line": 12, + "column": 9 + } + } + }, + "init": { + "type": "Literal", + "value": "sum", + "raw": "'sum'", + "range": [ + 305, + 310 + ], + "loc": { + "start": { + "line": 12, + "column": 12 + }, + "end": { + "line": 12, + "column": 17 + } + } + }, + "range": [ + 299, + 310 + ], + "loc": { + "start": { + "line": 12, + "column": 6 + }, + "end": { + "line": 12, + "column": 17 + } + } + } + ], + "kind": "const", + "range": [ + 293, + 311 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 12, + "column": 18 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "MEAN", + "range": [ + 318, + 322 + ], + "loc": { + "start": { + "line": 13, + "column": 6 + }, + "end": { + "line": 13, + "column": 10 + } + } + }, + "init": { + "type": "Literal", + "value": "mean", + "raw": "'mean'", + "range": [ + 325, + 331 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 19 + } + } + }, + "range": [ + 318, + 331 + ], + "loc": { + "start": { + "line": 13, + "column": 6 + }, + "end": { + "line": 13, + "column": 19 + } + } + } + ], + "kind": "const", + "range": [ + 312, + 332 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 13, + "column": 20 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "MIN", + "range": [ + 339, + 342 + ], + "loc": { + "start": { + "line": 14, + "column": 6 + }, + "end": { + "line": 14, + "column": 9 + } + } + }, + "init": { + "type": "Literal", + "value": "min", + "raw": "'min'", + "range": [ + 345, + 350 + ], + "loc": { + "start": { + "line": 14, + "column": 12 + }, + "end": { + "line": 14, + "column": 17 + } + } + }, + "range": [ + 339, + 350 + ], + "loc": { + "start": { + "line": 14, + "column": 6 + }, + "end": { + "line": 14, + "column": 17 + } + } + } + ], + "kind": "const", + "range": [ + 333, + 351 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 14, + "column": 18 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "MAX", + "range": [ + 358, + 361 + ], + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 9 + } + } + }, + "init": { + "type": "Literal", + "value": "max", + "raw": "'max'", + "range": [ + 364, + 369 + ], + "loc": { + "start": { + "line": 15, + "column": 12 + }, + "end": { + "line": 15, + "column": 17 + } + } + }, + "range": [ + 358, + 369 + ], + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 17 + } + } + } + ], + "kind": "const", + "range": [ + 352, + 370 + ], + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 18 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "MEDIAN", + "range": [ + 377, + 383 + ], + "loc": { + "start": { + "line": 16, + "column": 6 + }, + "end": { + "line": 16, + "column": 12 + } + } + }, + "init": { + "type": "Literal", + "value": "median", + "raw": "'median'", + "range": [ + 386, + 394 + ], + "loc": { + "start": { + "line": 16, + "column": 15 + }, + "end": { + "line": 16, + "column": 23 + } + } + }, + "range": [ + 377, + 394 + ], + "loc": { + "start": { + "line": 16, + "column": 6 + }, + "end": { + "line": 16, + "column": 23 + } + } + } + ], + "kind": "const", + "range": [ + 371, + 395 + ], + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 16, + "column": 24 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "Q1", + "range": [ + 402, + 404 + ], + "loc": { + "start": { + "line": 17, + "column": 6 + }, + "end": { + "line": 17, + "column": 8 + } + } + }, + "init": { + "type": "Literal", + "value": "q1", + "raw": "'q1'", + "range": [ + 407, + 411 + ], + "loc": { + "start": { + "line": 17, + "column": 11 + }, + "end": { + "line": 17, + "column": 15 + } + } + }, + "range": [ + 402, + 411 + ], + "loc": { + "start": { + "line": 17, + "column": 6 + }, + "end": { + "line": 17, + "column": 15 + } + } + } + ], + "kind": "const", + "range": [ + 396, + 412 + ], + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 17, + "column": 16 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "Q3", + "range": [ + 419, + 421 + ], + "loc": { + "start": { + "line": 18, + "column": 6 + }, + "end": { + "line": 18, + "column": 8 + } + } + }, + "init": { + "type": "Literal", + "value": "q3", + "raw": "'q3'", + "range": [ + 424, + 428 + ], + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 15 + } + } + }, + "range": [ + 419, + 428 + ], + "loc": { + "start": { + "line": 18, + "column": 6 + }, + "end": { + "line": 18, + "column": 15 + } + } + } + ], + "kind": "const", + "range": [ + 413, + 429 + ], + "loc": { + "start": { + "line": 18, + "column": 0 + }, + "end": { + "line": 18, + "column": 16 + } }, "trailingComments": [ { "type": "Block", "value": "*\n * Column calculations extension\n ", "range": [ - 245, - 285 + 431, + 471 ], "loc": { "start": { - "line": 11, + "line": 20, "column": 0 }, "end": { - "line": 13, + "line": 22, "column": 3 } } @@ -645,16 +1307,16 @@ "type": "Identifier", "name": "ColOps", "range": [ - 307, - 313 + 493, + 499 ], "loc": { "start": { - "line": 14, + "line": 23, "column": 21 }, "end": { - "line": 14, + "line": 23, "column": 27 } } @@ -663,16 +1325,16 @@ "type": "Identifier", "name": "Feature", "range": [ - 322, - 329 + 508, + 515 ], "loc": { "start": { - "line": 14, + "line": 23, "column": 36 }, "end": { - "line": 14, + "line": 23, "column": 43 } } @@ -686,16 +1348,16 @@ "type": "Identifier", "name": "constructor", "range": [ - 498, - 509 + 684, + 695 ], "loc": { "start": { - "line": 22, + "line": 31, "column": 4 }, "end": { - "line": 22, + "line": 31, "column": 15 } } @@ -708,16 +1370,16 @@ "type": "Identifier", "name": "tf", "range": [ - 510, - 512 + 696, + 698 ], "loc": { "start": { - "line": 22, + "line": 31, "column": 16 }, "end": { - "line": 22, + "line": 31, "column": 18 } } @@ -726,16 +1388,16 @@ "type": "Identifier", "name": "opts", "range": [ - 514, - 518 + 700, + 704 ], "loc": { "start": { - "line": 22, + "line": 31, "column": 20 }, "end": { - "line": 22, + "line": 31, "column": 24 } } @@ -751,16 +1413,16 @@ "callee": { "type": "Super", "range": [ - 530, - 535 + 716, + 721 ], "loc": { "start": { - "line": 23, + "line": 32, "column": 8 }, "end": { - "line": 23, + "line": 32, "column": 13 } } @@ -770,16 +1432,16 @@ "type": "Identifier", "name": "tf", "range": [ - 536, - 538 + 722, + 724 ], "loc": { "start": { - "line": 23, + "line": 32, "column": 14 }, "end": { - "line": 23, + "line": 32, "column": 16 } } @@ -791,16 +1453,16 @@ "type": "Identifier", "name": "opts", "range": [ - 540, - 544 + 726, + 730 ], "loc": { "start": { - "line": 23, + "line": 32, "column": 18 }, "end": { - "line": 23, + "line": 32, "column": 22 } } @@ -809,62 +1471,62 @@ "type": "Identifier", "name": "name", "range": [ - 545, - 549 + 731, + 735 ], "loc": { "start": { - "line": 23, + "line": 32, "column": 23 }, "end": { - "line": 23, + "line": 32, "column": 27 } } }, "range": [ - 540, - 549 + 726, + 735 ], "loc": { "start": { - "line": 23, + "line": 32, "column": 18 }, "end": { - "line": 23, + "line": 32, "column": 27 } } } ], "range": [ - 530, - 550 + 716, + 736 ], "loc": { "start": { - "line": 23, + "line": 32, "column": 8 }, "end": { - "line": 23, + "line": 32, "column": 28 } } }, "range": [ - 530, - 551 + 716, + 737 ], "loc": { "start": { - "line": 23, + "line": 32, "column": 8 }, "end": { - "line": 23, + "line": 32, "column": 29 } }, @@ -873,16 +1535,16 @@ "type": "Block", "value": "*\n * Callback fired before columns operations start\n * @type {Function}\n ", "range": [ - 561, - 662 + 747, + 848 ], "loc": { "start": { - "line": 25, + "line": 34, "column": 8 }, "end": { - "line": 28, + "line": 37, "column": 11 } } @@ -900,16 +1562,16 @@ "object": { "type": "ThisExpression", "range": [ - 671, - 675 + 857, + 861 ], "loc": { "start": { - "line": 29, + "line": 38, "column": 8 }, "end": { - "line": 29, + "line": 38, "column": 12 } } @@ -918,31 +1580,31 @@ "type": "Identifier", "name": "onBeforeOperation", "range": [ - 676, - 693 + 862, + 879 ], "loc": { "start": { - "line": 29, + "line": 38, "column": 13 }, "end": { - "line": 29, + "line": 38, "column": 30 } } }, "range": [ - 671, - 693 + 857, + 879 ], "loc": { "start": { - "line": 29, + "line": 38, "column": 8 }, "end": { - "line": 29, + "line": 38, "column": 30 } } @@ -955,16 +1617,16 @@ "type": "Identifier", "name": "isFn", "range": [ - 696, - 700 + 882, + 886 ], "loc": { "start": { - "line": 29, + "line": 38, "column": 33 }, "end": { - "line": 29, + "line": 38, "column": 37 } } @@ -977,16 +1639,16 @@ "type": "Identifier", "name": "opts", "range": [ - 701, - 705 + 887, + 891 ], "loc": { "start": { - "line": 29, + "line": 38, "column": 38 }, "end": { - "line": 29, + "line": 38, "column": 42 } } @@ -995,47 +1657,47 @@ "type": "Identifier", "name": "on_before_operation", "range": [ - 706, - 725 + 892, + 911 ], "loc": { "start": { - "line": 29, + "line": 38, "column": 43 }, "end": { - "line": 29, + "line": 38, "column": 62 } } }, "range": [ - 701, - 725 + 887, + 911 ], "loc": { "start": { - "line": 29, + "line": 38, "column": 38 }, "end": { - "line": 29, + "line": 38, "column": 62 } } } ], "range": [ - 696, - 726 + 882, + 912 ], "loc": { "start": { - "line": 29, + "line": 38, "column": 33 }, "end": { - "line": 29, + "line": 38, "column": 63 } } @@ -1047,16 +1709,16 @@ "type": "Identifier", "name": "opts", "range": [ - 741, - 745 + 927, + 931 ], "loc": { "start": { - "line": 30, + "line": 39, "column": 12 }, "end": { - "line": 30, + "line": 39, "column": 16 } } @@ -1065,31 +1727,31 @@ "type": "Identifier", "name": "on_before_operation", "range": [ - 746, - 765 + 932, + 951 ], "loc": { "start": { - "line": 30, + "line": 39, "column": 17 }, "end": { - "line": 30, + "line": 39, "column": 36 } } }, "range": [ - 741, - 765 + 927, + 951 ], "loc": { "start": { - "line": 30, + "line": 39, "column": 12 }, "end": { - "line": 30, + "line": 39, "column": 36 } } @@ -1098,61 +1760,61 @@ "type": "Identifier", "name": "EMPTY_FN", "range": [ - 768, - 776 + 954, + 962 ], "loc": { "start": { - "line": 30, + "line": 39, "column": 39 }, "end": { - "line": 30, + "line": 39, "column": 47 } } }, "range": [ - 696, - 776 + 882, + 962 ], "loc": { "start": { - "line": 29, + "line": 38, "column": 33 }, "end": { - "line": 30, + "line": 39, "column": 47 } } }, "range": [ - 671, - 776 + 857, + 962 ], "loc": { "start": { - "line": 29, + "line": 38, "column": 8 }, "end": { - "line": 30, + "line": 39, "column": 47 } } }, "range": [ - 671, - 777 + 857, + 963 ], "loc": { "start": { - "line": 29, + "line": 38, "column": 8 }, "end": { - "line": 30, + "line": 39, "column": 48 } }, @@ -1161,16 +1823,16 @@ "type": "Block", "value": "*\n * Callback fired before columns operations start\n * @type {Function}\n ", "range": [ - 561, - 662 + 747, + 848 ], "loc": { "start": { - "line": 25, + "line": 34, "column": 8 }, "end": { - "line": 28, + "line": 37, "column": 11 } } @@ -1181,16 +1843,16 @@ "type": "Block", "value": "*\n * Callback fired after columns operations are completed\n * @type {Function}\n ", "range": [ - 787, - 895 + 973, + 1081 ], "loc": { "start": { - "line": 32, + "line": 41, "column": 8 }, "end": { - "line": 35, + "line": 44, "column": 11 } } @@ -1208,16 +1870,16 @@ "object": { "type": "ThisExpression", "range": [ - 904, - 908 + 1090, + 1094 ], "loc": { "start": { - "line": 36, + "line": 45, "column": 8 }, "end": { - "line": 36, + "line": 45, "column": 12 } } @@ -1226,31 +1888,31 @@ "type": "Identifier", "name": "onAfterOperation", "range": [ - 909, - 925 + 1095, + 1111 ], "loc": { "start": { - "line": 36, + "line": 45, "column": 13 }, "end": { - "line": 36, + "line": 45, "column": 29 } } }, "range": [ - 904, - 925 + 1090, + 1111 ], "loc": { "start": { - "line": 36, + "line": 45, "column": 8 }, "end": { - "line": 36, + "line": 45, "column": 29 } } @@ -1263,16 +1925,16 @@ "type": "Identifier", "name": "isFn", "range": [ - 928, - 932 + 1114, + 1118 ], "loc": { "start": { - "line": 36, + "line": 45, "column": 32 }, "end": { - "line": 36, + "line": 45, "column": 36 } } @@ -1285,16 +1947,16 @@ "type": "Identifier", "name": "opts", "range": [ - 933, - 937 + 1119, + 1123 ], "loc": { "start": { - "line": 36, + "line": 45, "column": 37 }, "end": { - "line": 36, + "line": 45, "column": 41 } } @@ -1303,47 +1965,47 @@ "type": "Identifier", "name": "on_after_operation", "range": [ - 938, - 956 + 1124, + 1142 ], "loc": { "start": { - "line": 36, + "line": 45, "column": 42 }, "end": { - "line": 36, + "line": 45, "column": 60 } } }, "range": [ - 933, - 956 + 1119, + 1142 ], "loc": { "start": { - "line": 36, + "line": 45, "column": 37 }, "end": { - "line": 36, + "line": 45, "column": 60 } } } ], "range": [ - 928, - 957 + 1114, + 1143 ], "loc": { "start": { - "line": 36, + "line": 45, "column": 32 }, "end": { - "line": 36, + "line": 45, "column": 61 } } @@ -1355,16 +2017,16 @@ "type": "Identifier", "name": "opts", "range": [ - 972, - 976 + 1158, + 1162 ], "loc": { "start": { - "line": 37, + "line": 46, "column": 12 }, "end": { - "line": 37, + "line": 46, "column": 16 } } @@ -1373,31 +2035,31 @@ "type": "Identifier", "name": "on_after_operation", "range": [ - 977, - 995 + 1163, + 1181 ], "loc": { "start": { - "line": 37, + "line": 46, "column": 17 }, "end": { - "line": 37, + "line": 46, "column": 35 } } }, "range": [ - 972, - 995 + 1158, + 1181 ], "loc": { "start": { - "line": 37, + "line": 46, "column": 12 }, "end": { - "line": 37, + "line": 46, "column": 35 } } @@ -1406,61 +2068,61 @@ "type": "Identifier", "name": "EMPTY_FN", "range": [ - 998, - 1006 + 1184, + 1192 ], "loc": { "start": { - "line": 37, + "line": 46, "column": 38 }, "end": { - "line": 37, + "line": 46, "column": 46 } } }, "range": [ - 928, - 1006 + 1114, + 1192 ], "loc": { "start": { - "line": 36, + "line": 45, "column": 32 }, "end": { - "line": 37, + "line": 46, "column": 46 } } }, "range": [ - 904, - 1006 + 1090, + 1192 ], "loc": { "start": { - "line": 36, + "line": 45, "column": 8 }, "end": { - "line": 37, + "line": 46, "column": 46 } } }, "range": [ - 904, - 1007 + 1090, + 1193 ], "loc": { "start": { - "line": 36, + "line": 45, "column": 8 }, "end": { - "line": 37, + "line": 46, "column": 47 } }, @@ -1469,16 +2131,16 @@ "type": "Block", "value": "*\n * Callback fired after columns operations are completed\n * @type {Function}\n ", "range": [ - 787, - 895 + 973, + 1081 ], "loc": { "start": { - "line": 32, + "line": 41, "column": 8 }, "end": { - "line": 35, + "line": 44, "column": 11 } } @@ -1489,16 +2151,16 @@ "type": "Block", "value": "*\n * Configuration options\n * @type {Object}\n ", "range": [ - 1017, - 1091 + 1203, + 1277 ], "loc": { "start": { - "line": 39, + "line": 48, "column": 8 }, "end": { - "line": 42, + "line": 51, "column": 11 } } @@ -1516,16 +2178,16 @@ "object": { "type": "ThisExpression", "range": [ - 1100, - 1104 + 1286, + 1290 ], "loc": { "start": { - "line": 43, + "line": 52, "column": 8 }, "end": { - "line": 43, + "line": 52, "column": 12 } } @@ -1534,31 +2196,31 @@ "type": "Identifier", "name": "opts", "range": [ - 1105, - 1109 + 1291, + 1295 ], "loc": { "start": { - "line": 43, + "line": 52, "column": 13 }, "end": { - "line": 43, + "line": 52, "column": 17 } } }, "range": [ - 1100, - 1109 + 1286, + 1295 ], "loc": { "start": { - "line": 43, + "line": 52, "column": 8 }, "end": { - "line": 43, + "line": 52, "column": 17 } } @@ -1567,46 +2229,46 @@ "type": "Identifier", "name": "opts", "range": [ - 1112, - 1116 + 1298, + 1302 ], "loc": { "start": { - "line": 43, + "line": 52, "column": 20 }, "end": { - "line": 43, + "line": 52, "column": 24 } } }, "range": [ - 1100, - 1116 + 1286, + 1302 ], "loc": { "start": { - "line": 43, + "line": 52, "column": 8 }, "end": { - "line": 43, + "line": 52, "column": 24 } } }, "range": [ - 1100, - 1117 + 1286, + 1303 ], "loc": { "start": { - "line": 43, + "line": 52, "column": 8 }, "end": { - "line": 43, + "line": 52, "column": 25 } }, @@ -1615,16 +2277,1633 @@ "type": "Block", "value": "*\n * Configuration options\n * @type {Object}\n ", "range": [ - 1017, - 1091 + 1203, + 1277 ], "loc": { "start": { - "line": 39, + "line": 48, "column": 8 }, "end": { - "line": 42, + "line": 51, + "column": 11 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * List of DOM element IDs containing column's calculation result\n * @type {Array}\n ", + "range": [ + 1313, + 1427 + ], + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 57, + "column": 11 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1436, + 1440 + ], + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 58, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "labelIds", + "range": [ + 1441, + 1449 + ], + "loc": { + "start": { + "line": 58, + "column": 13 + }, + "end": { + "line": 58, + "column": 21 + } + } + }, + "range": [ + 1436, + 1449 + ], + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 58, + "column": 21 + } + } + }, + "right": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "opts", + "range": [ + 1452, + 1456 + ], + "loc": { + "start": { + "line": 58, + "column": 24 + }, + "end": { + "line": 58, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "id", + "range": [ + 1457, + 1459 + ], + "loc": { + "start": { + "line": 58, + "column": 29 + }, + "end": { + "line": 58, + "column": 31 + } + } + }, + "range": [ + 1452, + 1459 + ], + "loc": { + "start": { + "line": 58, + "column": 24 + }, + "end": { + "line": 58, + "column": 31 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 1463, + 1465 + ], + "loc": { + "start": { + "line": 58, + "column": 35 + }, + "end": { + "line": 58, + "column": 37 + } + } + }, + "range": [ + 1452, + 1465 + ], + "loc": { + "start": { + "line": 58, + "column": 24 + }, + "end": { + "line": 58, + "column": 37 + } + } + }, + "range": [ + 1436, + 1465 + ], + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 58, + "column": 37 + } + } + }, + "range": [ + 1436, + 1466 + ], + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 58, + "column": 38 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * List of DOM element IDs containing column's calculation result\n * @type {Array}\n ", + "range": [ + 1313, + 1427 + ], + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 57, + "column": 11 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * List of columns' indexes for calculations\n * @type {Array}\n ", + "range": [ + 1476, + 1569 + ], + "loc": { + "start": { + "line": 60, + "column": 8 + }, + "end": { + "line": 63, + "column": 11 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1578, + 1582 + ], + "loc": { + "start": { + "line": 64, + "column": 8 + }, + "end": { + "line": 64, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "colIndexes", + "range": [ + 1583, + 1593 + ], + "loc": { + "start": { + "line": 64, + "column": 13 + }, + "end": { + "line": 64, + "column": 23 + } + } + }, + "range": [ + 1578, + 1593 + ], + "loc": { + "start": { + "line": 64, + "column": 8 + }, + "end": { + "line": 64, + "column": 23 + } + } + }, + "right": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "opts", + "range": [ + 1596, + 1600 + ], + "loc": { + "start": { + "line": 64, + "column": 26 + }, + "end": { + "line": 64, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "col", + "range": [ + 1601, + 1604 + ], + "loc": { + "start": { + "line": 64, + "column": 31 + }, + "end": { + "line": 64, + "column": 34 + } + } + }, + "range": [ + 1596, + 1604 + ], + "loc": { + "start": { + "line": 64, + "column": 26 + }, + "end": { + "line": 64, + "column": 34 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 1608, + 1610 + ], + "loc": { + "start": { + "line": 64, + "column": 38 + }, + "end": { + "line": 64, + "column": 40 + } + } + }, + "range": [ + 1596, + 1610 + ], + "loc": { + "start": { + "line": 64, + "column": 26 + }, + "end": { + "line": 64, + "column": 40 + } + } + }, + "range": [ + 1578, + 1610 + ], + "loc": { + "start": { + "line": 64, + "column": 8 + }, + "end": { + "line": 64, + "column": 40 + } + } + }, + "range": [ + 1578, + 1611 + ], + "loc": { + "start": { + "line": 64, + "column": 8 + }, + "end": { + "line": 64, + "column": 41 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * List of columns' indexes for calculations\n * @type {Array}\n ", + "range": [ + 1476, + 1569 + ], + "loc": { + "start": { + "line": 60, + "column": 8 + }, + "end": { + "line": 63, + "column": 11 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * List of operations - possible values: 'sum', 'mean', 'min', 'max',\n * 'median', 'q1', 'q3'\n * @type {Array}\n ", + "range": [ + 1621, + 1771 + ], + "loc": { + "start": { + "line": 66, + "column": 8 + }, + "end": { + "line": 70, + "column": 11 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1780, + 1784 + ], + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "operations", + "range": [ + 1785, + 1795 + ], + "loc": { + "start": { + "line": 71, + "column": 13 + }, + "end": { + "line": 71, + "column": 23 + } + } + }, + "range": [ + 1780, + 1795 + ], + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 23 + } + } + }, + "right": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "opts", + "range": [ + 1798, + 1802 + ], + "loc": { + "start": { + "line": 71, + "column": 26 + }, + "end": { + "line": 71, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "operation", + "range": [ + 1803, + 1812 + ], + "loc": { + "start": { + "line": 71, + "column": 31 + }, + "end": { + "line": 71, + "column": 40 + } + } + }, + "range": [ + 1798, + 1812 + ], + "loc": { + "start": { + "line": 71, + "column": 26 + }, + "end": { + "line": 71, + "column": 40 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 1816, + 1818 + ], + "loc": { + "start": { + "line": 71, + "column": 44 + }, + "end": { + "line": 71, + "column": 46 + } + } + }, + "range": [ + 1798, + 1818 + ], + "loc": { + "start": { + "line": 71, + "column": 26 + }, + "end": { + "line": 71, + "column": 46 + } + } + }, + "range": [ + 1780, + 1818 + ], + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 46 + } + } + }, + "range": [ + 1780, + 1819 + ], + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 47 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * List of operations - possible values: 'sum', 'mean', 'min', 'max',\n * 'median', 'q1', 'q3'\n * @type {Array}\n ", + "range": [ + 1621, + 1771 + ], + "loc": { + "start": { + "line": 66, + "column": 8 + }, + "end": { + "line": 70, + "column": 11 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * List of write methods used to write the result - possible values:\n * 'innerHTML', 'setValue', 'createTextNode'\n * @type {Array}\n ", + "range": [ + 1829, + 1999 + ], + "loc": { + "start": { + "line": 73, + "column": 8 + }, + "end": { + "line": 77, + "column": 11 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2008, + 2012 + ], + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "outputTypes", + "range": [ + 2013, + 2024 + ], + "loc": { + "start": { + "line": 78, + "column": 13 + }, + "end": { + "line": 78, + "column": 24 + } + } + }, + "range": [ + 2008, + 2024 + ], + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 24 + } + } + }, + "right": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "opts", + "range": [ + 2027, + 2031 + ], + "loc": { + "start": { + "line": 78, + "column": 27 + }, + "end": { + "line": 78, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "write_method", + "range": [ + 2032, + 2044 + ], + "loc": { + "start": { + "line": 78, + "column": 32 + }, + "end": { + "line": 78, + "column": 44 + } + } + }, + "range": [ + 2027, + 2044 + ], + "loc": { + "start": { + "line": 78, + "column": 27 + }, + "end": { + "line": 78, + "column": 44 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 2048, + 2050 + ], + "loc": { + "start": { + "line": 78, + "column": 48 + }, + "end": { + "line": 78, + "column": 50 + } + } + }, + "range": [ + 2027, + 2050 + ], + "loc": { + "start": { + "line": 78, + "column": 27 + }, + "end": { + "line": 78, + "column": 50 + } + } + }, + "range": [ + 2008, + 2050 + ], + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 50 + } + } + }, + "range": [ + 2008, + 2051 + ], + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 51 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * List of write methods used to write the result - possible values:\n * 'innerHTML', 'setValue', 'createTextNode'\n * @type {Array}\n ", + "range": [ + 1829, + 1999 + ], + "loc": { + "start": { + "line": 73, + "column": 8 + }, + "end": { + "line": 77, + "column": 11 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * List of row indexes displaying the results\n * @type {Array}\n ", + "range": [ + 2061, + 2155 + ], + "loc": { + "start": { + "line": 80, + "column": 8 + }, + "end": { + "line": 83, + "column": 11 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2164, + 2168 + ], + "loc": { + "start": { + "line": 84, + "column": 8 + }, + "end": { + "line": 84, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "totRowIndexes", + "range": [ + 2169, + 2182 + ], + "loc": { + "start": { + "line": 84, + "column": 13 + }, + "end": { + "line": 84, + "column": 26 + } + } + }, + "range": [ + 2164, + 2182 + ], + "loc": { + "start": { + "line": 84, + "column": 8 + }, + "end": { + "line": 84, + "column": 26 + } + } + }, + "right": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "opts", + "range": [ + 2185, + 2189 + ], + "loc": { + "start": { + "line": 84, + "column": 29 + }, + "end": { + "line": 84, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "name": "tot_row_index", + "range": [ + 2190, + 2203 + ], + "loc": { + "start": { + "line": 84, + "column": 34 + }, + "end": { + "line": 84, + "column": 47 + } + } + }, + "range": [ + 2185, + 2203 + ], + "loc": { + "start": { + "line": 84, + "column": 29 + }, + "end": { + "line": 84, + "column": 47 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 2207, + 2209 + ], + "loc": { + "start": { + "line": 84, + "column": 51 + }, + "end": { + "line": 84, + "column": 53 + } + } + }, + "range": [ + 2185, + 2209 + ], + "loc": { + "start": { + "line": 84, + "column": 29 + }, + "end": { + "line": 84, + "column": 53 + } + } + }, + "range": [ + 2164, + 2209 + ], + "loc": { + "start": { + "line": 84, + "column": 8 + }, + "end": { + "line": 84, + "column": 53 + } + } + }, + "range": [ + 2164, + 2210 + ], + "loc": { + "start": { + "line": 84, + "column": 8 + }, + "end": { + "line": 84, + "column": 54 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * List of row indexes displaying the results\n * @type {Array}\n ", + "range": [ + 2061, + 2155 + ], + "loc": { + "start": { + "line": 80, + "column": 8 + }, + "end": { + "line": 83, + "column": 11 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * List of row indexes excluded from calculations\n * @type {Array}\n ", + "range": [ + 2220, + 2318 + ], + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 89, + "column": 11 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2327, + 2331 + ], + "loc": { + "start": { + "line": 90, + "column": 8 + }, + "end": { + "line": 90, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "excludeRows", + "range": [ + 2332, + 2343 + ], + "loc": { + "start": { + "line": 90, + "column": 13 + }, + "end": { + "line": 90, + "column": 24 + } + } + }, + "range": [ + 2327, + 2343 + ], + "loc": { + "start": { + "line": 90, + "column": 8 + }, + "end": { + "line": 90, + "column": 24 + } + } + }, + "right": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "opts", + "range": [ + 2346, + 2350 + ], + "loc": { + "start": { + "line": 90, + "column": 27 + }, + "end": { + "line": 90, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "exclude_row", + "range": [ + 2351, + 2362 + ], + "loc": { + "start": { + "line": 90, + "column": 32 + }, + "end": { + "line": 90, + "column": 43 + } + } + }, + "range": [ + 2346, + 2362 + ], + "loc": { + "start": { + "line": 90, + "column": 27 + }, + "end": { + "line": 90, + "column": 43 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 2366, + 2368 + ], + "loc": { + "start": { + "line": 90, + "column": 47 + }, + "end": { + "line": 90, + "column": 49 + } + } + }, + "range": [ + 2346, + 2368 + ], + "loc": { + "start": { + "line": 90, + "column": 27 + }, + "end": { + "line": 90, + "column": 49 + } + } + }, + "range": [ + 2327, + 2368 + ], + "loc": { + "start": { + "line": 90, + "column": 8 + }, + "end": { + "line": 90, + "column": 49 + } + } + }, + "range": [ + 2327, + 2369 + ], + "loc": { + "start": { + "line": 90, + "column": 8 + }, + "end": { + "line": 90, + "column": 50 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * List of row indexes excluded from calculations\n * @type {Array}\n ", + "range": [ + 2220, + 2318 + ], + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 89, + "column": 11 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * List of decimal precision for calculation results\n * @type {Array}\n ", + "range": [ + 2379, + 2480 + ], + "loc": { + "start": { + "line": 92, + "column": 8 + }, + "end": { + "line": 95, + "column": 11 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2489, + 2493 + ], + "loc": { + "start": { + "line": 96, + "column": 8 + }, + "end": { + "line": 96, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "decimalPrecisions", + "range": [ + 2494, + 2511 + ], + "loc": { + "start": { + "line": 96, + "column": 13 + }, + "end": { + "line": 96, + "column": 30 + } + } + }, + "range": [ + 2489, + 2511 + ], + "loc": { + "start": { + "line": 96, + "column": 8 + }, + "end": { + "line": 96, + "column": 30 + } + } + }, + "right": { + "type": "ConditionalExpression", + "test": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "isUndef", + "range": [ + 2514, + 2521 + ], + "loc": { + "start": { + "line": 96, + "column": 33 + }, + "end": { + "line": 96, + "column": 40 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "opts", + "range": [ + 2522, + 2526 + ], + "loc": { + "start": { + "line": 96, + "column": 41 + }, + "end": { + "line": 96, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "decimal_precision", + "range": [ + 2527, + 2544 + ], + "loc": { + "start": { + "line": 96, + "column": 46 + }, + "end": { + "line": 96, + "column": 63 + } + } + }, + "range": [ + 2522, + 2544 + ], + "loc": { + "start": { + "line": 96, + "column": 41 + }, + "end": { + "line": 96, + "column": 63 + } + } + } + ], + "range": [ + 2514, + 2545 + ], + "loc": { + "start": { + "line": 96, + "column": 33 + }, + "end": { + "line": 96, + "column": 64 + } + } + }, + "consequent": { + "type": "Literal", + "value": 2, + "raw": "2", + "range": [ + 2564, + 2565 + ], + "loc": { + "start": { + "line": 97, + "column": 16 + }, + "end": { + "line": 97, + "column": 17 + } + } + }, + "alternate": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "opts", + "range": [ + 2568, + 2572 + ], + "loc": { + "start": { + "line": 97, + "column": 20 + }, + "end": { + "line": 97, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "decimal_precision", + "range": [ + 2573, + 2590 + ], + "loc": { + "start": { + "line": 97, + "column": 25 + }, + "end": { + "line": 97, + "column": 42 + } + } + }, + "range": [ + 2568, + 2590 + ], + "loc": { + "start": { + "line": 97, + "column": 20 + }, + "end": { + "line": 97, + "column": 42 + } + } + }, + "range": [ + 2514, + 2590 + ], + "loc": { + "start": { + "line": 96, + "column": 33 + }, + "end": { + "line": 97, + "column": 42 + } + } + }, + "range": [ + 2489, + 2590 + ], + "loc": { + "start": { + "line": 96, + "column": 8 + }, + "end": { + "line": 97, + "column": 42 + } + } + }, + "range": [ + 2489, + 2591 + ], + "loc": { + "start": { + "line": 96, + "column": 8 + }, + "end": { + "line": 97, + "column": 43 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * List of decimal precision for calculation results\n * @type {Array}\n ", + "range": [ + 2379, + 2480 + ], + "loc": { + "start": { + "line": 92, + "column": 8 + }, + "end": { + "line": 95, "column": 11 } } @@ -1641,16 +3920,16 @@ "object": { "type": "ThisExpression", "range": [ - 1127, - 1131 + 2601, + 2605 ], "loc": { "start": { - "line": 45, + "line": 99, "column": 8 }, "end": { - "line": 45, + "line": 99, "column": 12 } } @@ -1659,78 +3938,78 @@ "type": "Identifier", "name": "enable", "range": [ - 1132, - 1138 + 2606, + 2612 ], "loc": { "start": { - "line": 45, + "line": 99, "column": 13 }, "end": { - "line": 45, + "line": 99, "column": 19 } } }, "range": [ - 1127, - 1138 + 2601, + 2612 ], "loc": { "start": { - "line": 45, + "line": 99, "column": 8 }, "end": { - "line": 45, + "line": 99, "column": 19 } } }, "arguments": [], "range": [ - 1127, - 1140 + 2601, + 2614 ], "loc": { "start": { - "line": 45, + "line": 99, "column": 8 }, "end": { - "line": 45, + "line": 99, "column": 21 } } }, "range": [ - 1127, - 1141 + 2601, + 2615 ], "loc": { "start": { - "line": 45, + "line": 99, "column": 8 }, "end": { - "line": 45, + "line": 99, "column": 22 } } } ], "range": [ - 520, - 1147 + 706, + 2621 ], "loc": { "start": { - "line": 22, + "line": 31, "column": 26 }, "end": { - "line": 46, + "line": 100, "column": 5 } } @@ -1738,16 +4017,16 @@ "generator": false, "expression": false, "range": [ - 509, - 1147 + 695, + 2621 ], "loc": { "start": { - "line": 22, + "line": 31, "column": 15 }, "end": { - "line": 46, + "line": 100, "column": 5 } } @@ -1755,16 +4034,16 @@ "kind": "constructor", "computed": false, "range": [ - 498, - 1147 + 684, + 2621 ], "loc": { "start": { - "line": 22, + "line": 31, "column": 4 }, "end": { - "line": 46, + "line": 100, "column": 5 } }, @@ -1773,16 +4052,16 @@ "type": "Block", "value": "*\n * Creates an instance of ColOps\n *\n * @param {TableFilter} tf TableFilter instance\n * @param {Object} opts Configuration object\n ", "range": [ - 337, - 493 + 523, + 679 ], "loc": { "start": { - "line": 16, + "line": 25, "column": 4 }, "end": { - "line": 21, + "line": 30, "column": 7 } } @@ -1793,16 +4072,16 @@ "type": "Block", "value": "*\n * Initializes ColOps instance\n ", "range": [ - 1153, - 1199 + 2627, + 2673 ], "loc": { "start": { - "line": 48, + "line": 102, "column": 4 }, "end": { - "line": 50, + "line": 104, "column": 7 } } @@ -1816,16 +4095,16 @@ "type": "Identifier", "name": "init", "range": [ - 1204, - 1208 + 2678, + 2682 ], "loc": { "start": { - "line": 51, + "line": 105, "column": 4 }, "end": { - "line": 51, + "line": 105, "column": 8 } } @@ -1845,16 +4124,16 @@ "object": { "type": "ThisExpression", "range": [ - 1225, - 1229 + 2699, + 2703 ], "loc": { "start": { - "line": 52, + "line": 106, "column": 12 }, "end": { - "line": 52, + "line": 106, "column": 16 } } @@ -1863,31 +4142,31 @@ "type": "Identifier", "name": "initialized", "range": [ - 1230, - 1241 + 2704, + 2715 ], "loc": { "start": { - "line": 52, + "line": 106, "column": 17 }, "end": { - "line": 52, + "line": 106, "column": 28 } } }, "range": [ - 1225, - 1241 + 2699, + 2715 ], "loc": { "start": { - "line": 52, + "line": 106, "column": 12 }, "end": { - "line": 52, + "line": 106, "column": 28 } } @@ -1899,48 +4178,48 @@ "type": "ReturnStatement", "argument": null, "range": [ - 1257, - 1264 + 2731, + 2738 ], "loc": { "start": { - "line": 53, + "line": 107, "column": 12 }, "end": { - "line": 53, + "line": 107, "column": 19 } } } ], "range": [ - 1243, - 1274 + 2717, + 2748 ], "loc": { "start": { - "line": 52, + "line": 106, "column": 30 }, "end": { - "line": 54, + "line": 108, "column": 9 } } }, "alternate": null, "range": [ - 1221, - 1274 + 2695, + 2748 ], "loc": { "start": { - "line": 52, + "line": 106, "column": 8 }, "end": { - "line": 54, + "line": 108, "column": 9 } }, @@ -1949,16 +4228,16 @@ "type": "Line", "value": " subscribe to events", "range": [ - 1283, - 1305 + 2757, + 2779 ], "loc": { "start": { - "line": 55, + "line": 109, "column": 8 }, "end": { - "line": 55, + "line": 109, "column": 30 } } @@ -1978,16 +4257,16 @@ "object": { "type": "ThisExpression", "range": [ - 1314, - 1318 + 2788, + 2792 ], "loc": { "start": { - "line": 56, + "line": 110, "column": 8 }, "end": { - "line": 56, + "line": 110, "column": 12 } } @@ -1996,31 +4275,31 @@ "type": "Identifier", "name": "emitter", "range": [ - 1319, - 1326 + 2793, + 2800 ], "loc": { "start": { - "line": 56, + "line": 110, "column": 13 }, "end": { - "line": 56, + "line": 110, "column": 20 } } }, "range": [ - 1314, - 1326 + 2788, + 2800 ], "loc": { "start": { - "line": 56, + "line": 110, "column": 8 }, "end": { - "line": 56, + "line": 110, "column": 20 } } @@ -2029,31 +4308,31 @@ "type": "Identifier", "name": "on", "range": [ - 1327, - 1329 + 2801, + 2803 ], "loc": { "start": { - "line": 56, + "line": 110, "column": 21 }, "end": { - "line": 56, + "line": 110, "column": 23 } } }, "range": [ - 1314, - 1329 + 2788, + 2803 ], "loc": { "start": { - "line": 56, + "line": 110, "column": 8 }, "end": { - "line": 56, + "line": 110, "column": 23 } } @@ -2063,16 +4342,16 @@ "type": "Identifier", "name": "EVENTS", "range": [ - 1330, - 1336 + 2804, + 2810 ], "loc": { "start": { - "line": 56, + "line": 110, "column": 24 }, "end": { - "line": 56, + "line": 110, "column": 30 } } @@ -2089,114 +4368,114 @@ "object": { "type": "ThisExpression", "range": [ - 1344, - 1348 + 2818, + 2822 ], "loc": { "start": { - "line": 56, + "line": 110, "column": 38 }, "end": { - "line": 56, + "line": 110, "column": 42 } } }, "property": { "type": "Identifier", - "name": "calc", + "name": "calcAll", "range": [ - 1349, - 1353 + 2823, + 2830 ], "loc": { "start": { - "line": 56, + "line": 110, "column": 43 }, "end": { - "line": 56, - "column": 47 + "line": 110, + "column": 50 } } }, "range": [ - 1344, - 1353 + 2818, + 2830 ], "loc": { "start": { - "line": 56, + "line": 110, "column": 38 }, "end": { - "line": 56, - "column": 47 + "line": 110, + "column": 50 } } }, "arguments": [], "range": [ - 1344, - 1355 + 2818, + 2832 ], "loc": { "start": { - "line": 56, + "line": 110, "column": 38 }, "end": { - "line": 56, - "column": 49 + "line": 110, + "column": 52 } } }, "generator": false, "expression": true, "range": [ - 1338, - 1355 + 2812, + 2832 ], "loc": { "start": { - "line": 56, + "line": 110, "column": 32 }, "end": { - "line": 56, - "column": 49 + "line": 110, + "column": 52 } } } ], "range": [ - 1314, - 1356 + 2788, + 2833 ], "loc": { "start": { - "line": 56, + "line": 110, "column": 8 }, "end": { - "line": 56, - "column": 50 + "line": 110, + "column": 53 } } }, "range": [ - 1314, - 1357 + 2788, + 2834 ], "loc": { "start": { - "line": 56, + "line": 110, "column": 8 }, "end": { - "line": 56, - "column": 51 + "line": 110, + "column": 54 } }, "leadingComments": [ @@ -2204,16 +4483,16 @@ "type": "Line", "value": " subscribe to events", "range": [ - 1283, - 1305 + 2757, + 2779 ], "loc": { "start": { - "line": 55, + "line": 109, "column": 8 }, "end": { - "line": 55, + "line": 109, "column": 30 } } @@ -2230,99 +4509,99 @@ "object": { "type": "ThisExpression", "range": [ - 1367, - 1371 + 2844, + 2848 ], "loc": { "start": { - "line": 58, + "line": 112, "column": 8 }, "end": { - "line": 58, + "line": 112, "column": 12 } } }, "property": { "type": "Identifier", - "name": "calc", + "name": "calcAll", "range": [ - 1372, - 1376 + 2849, + 2856 ], "loc": { "start": { - "line": 58, + "line": 112, "column": 13 }, "end": { - "line": 58, - "column": 17 + "line": 112, + "column": 20 } } }, "range": [ - 1367, - 1376 + 2844, + 2856 ], "loc": { "start": { - "line": 58, + "line": 112, "column": 8 }, "end": { - "line": 58, - "column": 17 + "line": 112, + "column": 20 } } }, "arguments": [], "range": [ - 1367, - 1378 + 2844, + 2858 ], "loc": { "start": { - "line": 58, + "line": 112, "column": 8 }, "end": { - "line": 58, - "column": 19 + "line": 112, + "column": 22 } } }, "range": [ - 1367, - 1379 + 2844, + 2859 ], "loc": { "start": { - "line": 58, + "line": 112, "column": 8 }, "end": { - "line": 58, - "column": 20 + "line": 112, + "column": 23 } }, "trailingComments": [ { "type": "Block", - "value": "*\n * @inherited\n ", + "value": "* @inherited ", "range": [ - 1389, - 1426 + 2869, + 2886 ], "loc": { "start": { - "line": 60, + "line": 114, "column": 8 }, "end": { - "line": 62, - "column": 11 + "line": 114, + "column": 25 } } } @@ -2339,16 +4618,16 @@ "object": { "type": "ThisExpression", "range": [ - 1435, - 1439 + 2895, + 2899 ], "loc": { "start": { - "line": 63, + "line": 115, "column": 8 }, "end": { - "line": 63, + "line": 115, "column": 12 } } @@ -2357,31 +4636,31 @@ "type": "Identifier", "name": "initialized", "range": [ - 1440, - 1451 + 2900, + 2911 ], "loc": { "start": { - "line": 63, + "line": 115, "column": 13 }, "end": { - "line": 63, + "line": 115, "column": 24 } } }, "range": [ - 1435, - 1451 + 2895, + 2911 ], "loc": { "start": { - "line": 63, + "line": 115, "column": 8 }, "end": { - "line": 63, + "line": 115, "column": 24 } } @@ -2391,65 +4670,65 @@ "value": true, "raw": "true", "range": [ - 1454, - 1458 + 2914, + 2918 ], "loc": { "start": { - "line": 63, + "line": 115, "column": 27 }, "end": { - "line": 63, + "line": 115, "column": 31 } } }, "range": [ - 1435, - 1458 + 2895, + 2918 ], "loc": { "start": { - "line": 63, + "line": 115, "column": 8 }, "end": { - "line": 63, + "line": 115, "column": 31 } } }, "range": [ - 1435, - 1459 + 2895, + 2919 ], "loc": { "start": { - "line": 63, + "line": 115, "column": 8 }, "end": { - "line": 63, + "line": 115, "column": 32 } }, "leadingComments": [ { "type": "Block", - "value": "*\n * @inherited\n ", + "value": "* @inherited ", "range": [ - 1389, - 1426 + 2869, + 2886 ], "loc": { "start": { - "line": 60, + "line": 114, "column": 8 }, "end": { - "line": 62, - "column": 11 + "line": 114, + "column": 25 } } } @@ -2457,16 +4736,16 @@ } ], "range": [ - 1211, - 1465 + 2685, + 2925 ], "loc": { "start": { - "line": 51, + "line": 105, "column": 11 }, "end": { - "line": 64, + "line": 116, "column": 5 } } @@ -2474,16 +4753,16 @@ "generator": false, "expression": false, "range": [ - 1208, - 1465 + 2682, + 2925 ], "loc": { "start": { - "line": 51, + "line": 105, "column": 8 }, "end": { - "line": 64, + "line": 116, "column": 5 } } @@ -2491,16 +4770,16 @@ "kind": "method", "computed": false, "range": [ - 1204, - 1465 + 2678, + 2925 ], "loc": { "start": { - "line": 51, + "line": 105, "column": 4 }, "end": { - "line": 64, + "line": 116, "column": 5 } }, @@ -2509,16 +4788,16 @@ "type": "Block", "value": "*\n * Initializes ColOps instance\n ", "range": [ - 1153, - 1199 + 2627, + 2673 ], "loc": { "start": { - "line": 48, + "line": 102, "column": 4 }, "end": { - "line": 50, + "line": 104, "column": 7 } } @@ -2529,16 +4808,16 @@ "type": "Block", "value": "*\n * Calculates columns' values\n * Configuration options are stored in 'opts' property\n * - 'id' contains ids of elements showing result (array)\n * - 'col' contains the columns' indexes (array)\n * - 'operation' contains operation type (array, values: 'sum', 'mean',\n * 'min', 'max', 'median', 'q1', 'q3')\n * - 'write_method' array defines which method to use for displaying the\n * result (innerHTML, setValue, createTextNode) - default: 'innerHTML'\n * - 'tot_row_index' defines in which row results are displayed\n * (integers array)\n *\n * - changes made by Nuovella:\n * (1) optimized the routine (now it will only process each column once),\n * (2) added calculations for the median, lower and upper quartile.\n ", "range": [ - 1471, - 2252 + 2931, + 3712 ], "loc": { "start": { - "line": 66, + "line": 118, "column": 4 }, "end": { - "line": 81, + "line": 133, "column": 7 } } @@ -2550,19 +4829,19 @@ "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "calc", + "name": "calcAll", "range": [ - 2257, - 2261 + 3717, + 3724 ], "loc": { "start": { - "line": 82, + "line": 134, "column": 4 }, "end": { - "line": 82, - "column": 8 + "line": 134, + "column": 11 } } }, @@ -2582,16 +4861,16 @@ "type": "Identifier", "name": "tf", "range": [ - 2278, - 2280 + 3741, + 3743 ], "loc": { "start": { - "line": 83, + "line": 135, "column": 12 }, "end": { - "line": 83, + "line": 135, "column": 14 } } @@ -2602,16 +4881,16 @@ "object": { "type": "ThisExpression", "range": [ - 2283, - 2287 + 3746, + 3750 ], "loc": { "start": { - "line": 83, + "line": 135, "column": 17 }, "end": { - "line": 83, + "line": 135, "column": 21 } } @@ -2620,46 +4899,46 @@ "type": "Identifier", "name": "tf", "range": [ - 2288, - 2290 + 3751, + 3753 ], "loc": { "start": { - "line": 83, + "line": 135, "column": 22 }, "end": { - "line": 83, + "line": 135, "column": 24 } } }, "range": [ - 2283, - 2290 + 3746, + 3753 ], "loc": { "start": { - "line": 83, + "line": 135, "column": 17 }, "end": { - "line": 83, + "line": 135, "column": 24 } } }, "range": [ - 2278, - 2290 + 3741, + 3753 ], "loc": { "start": { - "line": 83, + "line": 135, "column": 12 }, "end": { - "line": 83, + "line": 135, "column": 24 } } @@ -2667,16 +4946,16 @@ ], "kind": "let", "range": [ - 2274, - 2291 + 3737, + 3754 ], "loc": { "start": { - "line": 83, + "line": 135, "column": 8 }, "end": { - "line": 83, + "line": 135, "column": 25 } } @@ -2695,16 +4974,16 @@ "type": "Identifier", "name": "tf", "range": [ - 2305, - 2307 + 3768, + 3770 ], "loc": { "start": { - "line": 84, + "line": 136, "column": 13 }, "end": { - "line": 84, + "line": 136, "column": 15 } } @@ -2713,63 +4992,63 @@ "type": "Identifier", "name": "isInitialized", "range": [ - 2308, - 2321 + 3771, + 3784 ], "loc": { "start": { - "line": 84, + "line": 136, "column": 16 }, "end": { - "line": 84, + "line": 136, "column": 29 } } }, "range": [ - 2305, - 2321 + 3768, + 3784 ], "loc": { "start": { - "line": 84, + "line": 136, "column": 13 }, "end": { - "line": 84, + "line": 136, "column": 29 } } }, "arguments": [], "range": [ - 2305, - 2323 + 3768, + 3786 ], "loc": { "start": { - "line": 84, + "line": 136, "column": 13 }, "end": { - "line": 84, + "line": 136, "column": 31 } } }, "prefix": true, "range": [ - 2304, - 2323 + 3767, + 3786 ], "loc": { "start": { - "line": 84, + "line": 136, "column": 12 }, "end": { - "line": 84, + "line": 136, "column": 31 } } @@ -2781,48 +5060,48 @@ "type": "ReturnStatement", "argument": null, "range": [ - 2339, - 2346 + 3802, + 3809 ], "loc": { "start": { - "line": 85, + "line": 137, "column": 12 }, "end": { - "line": 85, + "line": 137, "column": 19 } } } ], "range": [ - 2325, - 2356 + 3788, + 3819 ], "loc": { "start": { - "line": 84, + "line": 136, "column": 33 }, "end": { - "line": 86, + "line": 138, "column": 9 } } }, "alternate": null, "range": [ - 2300, - 2356 + 3763, + 3819 ], "loc": { "start": { - "line": 84, + "line": 136, "column": 8 }, "end": { - "line": 86, + "line": 138, "column": 9 } } @@ -2837,16 +5116,16 @@ "object": { "type": "ThisExpression", "range": [ - 2366, - 2370 + 3829, + 3833 ], "loc": { "start": { - "line": 88, + "line": 140, "column": 8 }, "end": { - "line": 88, + "line": 140, "column": 12 } } @@ -2855,31 +5134,31 @@ "type": "Identifier", "name": "onBeforeOperation", "range": [ - 2371, - 2388 + 3834, + 3851 ], "loc": { "start": { - "line": 88, + "line": 140, "column": 13 }, "end": { - "line": 88, + "line": 140, "column": 30 } } }, "range": [ - 2366, - 2388 + 3829, + 3851 ], "loc": { "start": { - "line": 88, + "line": 140, "column": 8 }, "end": { - "line": 88, + "line": 140, "column": 30 } } @@ -2889,16 +5168,16 @@ "type": "Identifier", "name": "tf", "range": [ - 2389, - 2391 + 3852, + 3854 ], "loc": { "start": { - "line": 88, + "line": 140, "column": 31 }, "end": { - "line": 88, + "line": 140, "column": 33 } } @@ -2906,47 +5185,47 @@ { "type": "ThisExpression", "range": [ - 2393, - 2397 + 3856, + 3860 ], "loc": { "start": { - "line": 88, + "line": 140, "column": 35 }, "end": { - "line": 88, + "line": 140, "column": 39 } } } ], "range": [ - 2366, - 2398 + 3829, + 3861 ], "loc": { "start": { - "line": 88, + "line": 140, "column": 8 }, "end": { - "line": 88, + "line": 140, "column": 40 } } }, "range": [ - 2366, - 2399 + 3829, + 3862 ], "loc": { "start": { - "line": 88, + "line": 140, "column": 8 }, "end": { - "line": 88, + "line": 140, "column": 41 } } @@ -2964,16 +5243,16 @@ "object": { "type": "ThisExpression", "range": [ - 2408, - 2412 + 3871, + 3875 ], "loc": { "start": { - "line": 89, + "line": 141, "column": 8 }, "end": { - "line": 89, + "line": 141, "column": 12 } } @@ -2982,31 +5261,31 @@ "type": "Identifier", "name": "emitter", "range": [ - 2413, - 2420 + 3876, + 3883 ], "loc": { "start": { - "line": 89, + "line": 141, "column": 13 }, "end": { - "line": 89, + "line": 141, "column": 20 } } }, "range": [ - 2408, - 2420 + 3871, + 3883 ], "loc": { "start": { - "line": 89, + "line": 141, "column": 8 }, "end": { - "line": 89, + "line": 141, "column": 20 } } @@ -3015,31 +5294,31 @@ "type": "Identifier", "name": "emit", "range": [ - 2421, - 2425 + 3884, + 3888 ], "loc": { "start": { - "line": 89, + "line": 141, "column": 21 }, "end": { - "line": 89, + "line": 141, "column": 25 } } }, "range": [ - 2408, - 2425 + 3871, + 3888 ], "loc": { "start": { - "line": 89, + "line": 141, "column": 8 }, "end": { - "line": 89, + "line": 141, "column": 25 } } @@ -3050,16 +5329,16 @@ "value": "before-column-operation", "raw": "'before-column-operation'", "range": [ - 2426, - 2451 + 3889, + 3914 ], "loc": { "start": { - "line": 89, + "line": 141, "column": 26 }, "end": { - "line": 89, + "line": 141, "column": 51 } } @@ -3068,16 +5347,16 @@ "type": "Identifier", "name": "tf", "range": [ - 2453, - 2455 + 3916, + 3918 ], "loc": { "start": { - "line": 89, + "line": 141, "column": 53 }, "end": { - "line": 89, + "line": 141, "column": 55 } } @@ -3085,47 +5364,47 @@ { "type": "ThisExpression", "range": [ - 2457, - 2461 + 3920, + 3924 ], "loc": { "start": { - "line": 89, + "line": 141, "column": 57 }, "end": { - "line": 89, + "line": 141, "column": 61 } } } ], "range": [ - 2408, - 2462 + 3871, + 3925 ], "loc": { "start": { - "line": 89, + "line": 141, "column": 8 }, "end": { - "line": 89, + "line": 141, "column": 62 } } }, "range": [ - 2408, - 2463 + 3871, + 3926 ], "loc": { "start": { - "line": 89, + "line": 141, "column": 8 }, "end": { - "line": 89, + "line": 141, "column": 63 } } @@ -3137,19 +5416,19 @@ "type": "VariableDeclarator", "id": { "type": "Identifier", - "name": "opts", + "name": "colIndexes", "range": [ - 2477, - 2481 + 3940, + 3950 ], "loc": { "start": { - "line": 91, + "line": 143, "column": 12 }, "end": { - "line": 91, - "column": 16 + "line": 143, + "column": 22 } } }, @@ -3159,420 +5438,240 @@ "object": { "type": "ThisExpression", "range": [ - 2484, - 2488 + 3953, + 3957 ], "loc": { "start": { - "line": 91, - "column": 19 - }, - "end": { - "line": 91, - "column": 23 - } - } - }, - "property": { - "type": "Identifier", - "name": "opts", - "range": [ - 2489, - 2493 - ], - "loc": { - "start": { - "line": 91, - "column": 24 - }, - "end": { - "line": 91, - "column": 28 - } - } - }, - "range": [ - 2484, - 2493 - ], - "loc": { - "start": { - "line": 91, - "column": 19 - }, - "end": { - "line": 91, - "column": 28 - } - } - }, - "range": [ - 2477, - 2493 - ], - "loc": { - "start": { - "line": 91, - "column": 12 - }, - "end": { - "line": 91, - "column": 28 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "labelId", - "range": [ - 2507, - 2514 - ], - "loc": { - "start": { - "line": 92, - "column": 12 - }, - "end": { - "line": 92, - "column": 19 - } - } - }, - "init": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "opts", - "range": [ - 2517, - 2521 - ], - "loc": { - "start": { - "line": 92, - "column": 22 - }, - "end": { - "line": 92, - "column": 26 - } - } - }, - "property": { - "type": "Identifier", - "name": "id", - "range": [ - 2522, - 2524 - ], - "loc": { - "start": { - "line": 92, - "column": 27 - }, - "end": { - "line": 92, - "column": 29 - } - } - }, - "range": [ - 2517, - 2524 - ], - "loc": { - "start": { - "line": 92, - "column": 22 - }, - "end": { - "line": 92, - "column": 29 - } - } - }, - "range": [ - 2507, - 2524 - ], - "loc": { - "start": { - "line": 92, - "column": 12 - }, - "end": { - "line": 92, - "column": 29 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "colIndex", - "range": [ - 2538, - 2546 - ], - "loc": { - "start": { - "line": 93, - "column": 12 - }, - "end": { - "line": 93, - "column": 20 - } - } - }, - "init": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "opts", - "range": [ - 2549, - 2553 - ], - "loc": { - "start": { - "line": 93, - "column": 23 - }, - "end": { - "line": 93, - "column": 27 - } - } - }, - "property": { - "type": "Identifier", - "name": "col", - "range": [ - 2554, - 2557 - ], - "loc": { - "start": { - "line": 93, - "column": 28 - }, - "end": { - "line": 93, - "column": 31 - } - } - }, - "range": [ - 2549, - 2557 - ], - "loc": { - "start": { - "line": 93, - "column": 23 - }, - "end": { - "line": 93, - "column": 31 - } - } - }, - "range": [ - 2538, - 2557 - ], - "loc": { - "start": { - "line": 93, - "column": 12 - }, - "end": { - "line": 93, - "column": 31 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "operation", - "range": [ - 2571, - 2580 - ], - "loc": { - "start": { - "line": 94, - "column": 12 - }, - "end": { - "line": 94, - "column": 21 - } - } - }, - "init": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "opts", - "range": [ - 2583, - 2587 - ], - "loc": { - "start": { - "line": 94, - "column": 24 - }, - "end": { - "line": 94, - "column": 28 - } - } - }, - "property": { - "type": "Identifier", - "name": "operation", - "range": [ - 2588, - 2597 - ], - "loc": { - "start": { - "line": 94, - "column": 29 - }, - "end": { - "line": 94, - "column": 38 - } - } - }, - "range": [ - 2583, - 2597 - ], - "loc": { - "start": { - "line": 94, - "column": 24 - }, - "end": { - "line": 94, - "column": 38 - } - } - }, - "range": [ - 2571, - 2597 - ], - "loc": { - "start": { - "line": 94, - "column": 12 - }, - "end": { - "line": 94, - "column": 38 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "outputType", - "range": [ - 2611, - 2621 - ], - "loc": { - "start": { - "line": 95, - "column": 12 - }, - "end": { - "line": 95, - "column": 22 - } - } - }, - "init": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "opts", - "range": [ - 2624, - 2628 - ], - "loc": { - "start": { - "line": 95, + "line": 143, "column": 25 }, "end": { - "line": 95, + "line": 143, "column": 29 } } }, "property": { "type": "Identifier", - "name": "write_method", + "name": "colIndexes", "range": [ - 2629, - 2641 + 3958, + 3968 ], "loc": { "start": { - "line": 95, + "line": 143, "column": 30 }, "end": { - "line": 95, + "line": 143, + "column": 40 + } + } + }, + "range": [ + 3953, + 3968 + ], + "loc": { + "start": { + "line": 143, + "column": 25 + }, + "end": { + "line": 143, + "column": 40 + } + } + }, + "range": [ + 3940, + 3968 + ], + "loc": { + "start": { + "line": 143, + "column": 12 + }, + "end": { + "line": 143, + "column": 40 + } + } + }, + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "colOperations", + "range": [ + 3982, + 3995 + ], + "loc": { + "start": { + "line": 144, + "column": 12 + }, + "end": { + "line": 144, + "column": 25 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3998, + 4002 + ], + "loc": { + "start": { + "line": 144, + "column": 28 + }, + "end": { + "line": 144, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "operations", + "range": [ + 4003, + 4013 + ], + "loc": { + "start": { + "line": 144, + "column": 33 + }, + "end": { + "line": 144, + "column": 43 + } + } + }, + "range": [ + 3998, + 4013 + ], + "loc": { + "start": { + "line": 144, + "column": 28 + }, + "end": { + "line": 144, + "column": 43 + } + } + }, + "range": [ + 3982, + 4013 + ], + "loc": { + "start": { + "line": 144, + "column": 12 + }, + "end": { + "line": 144, + "column": 43 + } + } + }, + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "outputTypes", + "range": [ + 4027, + 4038 + ], + "loc": { + "start": { + "line": 145, + "column": 12 + }, + "end": { + "line": 145, + "column": 23 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4041, + 4045 + ], + "loc": { + "start": { + "line": 145, + "column": 26 + }, + "end": { + "line": 145, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "outputTypes", + "range": [ + 4046, + 4057 + ], + "loc": { + "start": { + "line": 145, + "column": 31 + }, + "end": { + "line": 145, "column": 42 } } }, "range": [ - 2624, - 2641 + 4041, + 4057 ], "loc": { "start": { - "line": 95, - "column": 25 + "line": 145, + "column": 26 }, "end": { - "line": 95, + "line": 145, "column": 42 } } }, "range": [ - 2611, - 2641 + 4027, + 4057 ], "loc": { "start": { - "line": 95, + "line": 145, "column": 12 }, "end": { - "line": 95, + "line": 145, "column": 42 } } @@ -3581,18 +5680,106 @@ "type": "VariableDeclarator", "id": { "type": "Identifier", - "name": "totRowIndex", + "name": "totRowIndexes", "range": [ - 2655, - 2666 + 4071, + 4084 ], "loc": { "start": { - "line": 96, + "line": 146, "column": 12 }, "end": { - "line": 96, + "line": 146, + "column": 25 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4087, + 4091 + ], + "loc": { + "start": { + "line": 146, + "column": 28 + }, + "end": { + "line": 146, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "totRowIndexes", + "range": [ + 4092, + 4105 + ], + "loc": { + "start": { + "line": 146, + "column": 33 + }, + "end": { + "line": 146, + "column": 46 + } + } + }, + "range": [ + 4087, + 4105 + ], + "loc": { + "start": { + "line": 146, + "column": 28 + }, + "end": { + "line": 146, + "column": 46 + } + } + }, + "range": [ + 4071, + 4105 + ], + "loc": { + "start": { + "line": 146, + "column": 12 + }, + "end": { + "line": 146, + "column": 46 + } + } + }, + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "excludeRows", + "range": [ + 4119, + 4130 + ], + "loc": { + "start": { + "line": 147, + "column": 12 + }, + "end": { + "line": 147, "column": 23 } } @@ -3601,68 +5788,67 @@ "type": "MemberExpression", "computed": false, "object": { - "type": "Identifier", - "name": "opts", + "type": "ThisExpression", "range": [ - 2669, - 2673 + 4133, + 4137 ], "loc": { "start": { - "line": 96, + "line": 147, "column": 26 }, "end": { - "line": 96, + "line": 147, "column": 30 } } }, "property": { "type": "Identifier", - "name": "tot_row_index", + "name": "excludeRows", "range": [ - 2674, - 2687 + 4138, + 4149 ], "loc": { "start": { - "line": 96, + "line": 147, "column": 31 }, "end": { - "line": 96, - "column": 44 + "line": 147, + "column": 42 } } }, "range": [ - 2669, - 2687 + 4133, + 4149 ], "loc": { "start": { - "line": 96, + "line": 147, "column": 26 }, "end": { - "line": 96, - "column": 44 + "line": 147, + "column": 42 } } }, "range": [ - 2655, - 2687 + 4119, + 4149 ], "loc": { "start": { - "line": 96, + "line": 147, "column": 12 }, "end": { - "line": 96, - "column": 44 + "line": 147, + "column": 42 } } }, @@ -3670,108 +5856,19 @@ "type": "VariableDeclarator", "id": { "type": "Identifier", - "name": "excludeRow", + "name": "decimalPrecisions", "range": [ - 2701, - 2711 + 4163, + 4180 ], "loc": { "start": { - "line": 97, + "line": 148, "column": 12 }, "end": { - "line": 97, - "column": 22 - } - } - }, - "init": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "opts", - "range": [ - 2714, - 2718 - ], - "loc": { - "start": { - "line": 97, - "column": 25 - }, - "end": { - "line": 97, - "column": 29 - } - } - }, - "property": { - "type": "Identifier", - "name": "exclude_row", - "range": [ - 2719, - 2730 - ], - "loc": { - "start": { - "line": 97, - "column": 30 - }, - "end": { - "line": 97, - "column": 41 - } - } - }, - "range": [ - 2714, - 2730 - ], - "loc": { - "start": { - "line": 97, - "column": 25 - }, - "end": { - "line": 97, - "column": 41 - } - } - }, - "range": [ - 2701, - 2730 - ], - "loc": { - "start": { - "line": 97, - "column": 12 - }, - "end": { - "line": 97, - "column": 41 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "decimalPrecision", - "range": [ - 2744, - 2760 - ], - "loc": { - "start": { - "line": 98, - "column": 12 - }, - "end": { - "line": 98, - "column": 28 + "line": 148, + "column": 29 } } }, @@ -3783,17 +5880,17 @@ "type": "Identifier", "name": "isUndef", "range": [ - 2763, - 2770 + 4183, + 4190 ], "loc": { "start": { - "line": 98, - "column": 31 + "line": 148, + "column": 32 }, "end": { - "line": 98, - "column": 38 + "line": 148, + "column": 39 } } }, @@ -3802,69 +5899,68 @@ "type": "MemberExpression", "computed": false, "object": { - "type": "Identifier", - "name": "opts", + "type": "ThisExpression", "range": [ - 2771, - 2775 + 4191, + 4195 ], "loc": { "start": { - "line": 98, - "column": 39 + "line": 148, + "column": 40 }, "end": { - "line": 98, - "column": 43 + "line": 148, + "column": 44 } } }, "property": { "type": "Identifier", - "name": "decimal_precision", + "name": "decimalPrecisions", "range": [ - 2776, - 2793 + 4196, + 4213 ], "loc": { "start": { - "line": 98, - "column": 44 + "line": 148, + "column": 45 }, "end": { - "line": 98, - "column": 61 + "line": 148, + "column": 62 } } }, "range": [ - 2771, - 2793 + 4191, + 4213 ], "loc": { "start": { - "line": 98, - "column": 39 + "line": 148, + "column": 40 }, "end": { - "line": 98, - "column": 61 + "line": 148, + "column": 62 } } } ], "range": [ - 2763, - 2794 + 4183, + 4214 ], "loc": { "start": { - "line": 98, - "column": 31 + "line": 148, + "column": 32 }, "end": { - "line": 98, - "column": 62 + "line": 148, + "column": 63 } } }, @@ -3873,16 +5969,16 @@ "value": 2, "raw": "2", "range": [ - 2813, - 2814 + 4233, + 4234 ], "loc": { "start": { - "line": 99, + "line": 149, "column": 16 }, "end": { - "line": 99, + "line": 149, "column": 17 } } @@ -3891,82 +5987,81 @@ "type": "MemberExpression", "computed": false, "object": { - "type": "Identifier", - "name": "opts", + "type": "ThisExpression", "range": [ - 2817, - 2821 + 4237, + 4241 ], "loc": { "start": { - "line": 99, + "line": 149, "column": 20 }, "end": { - "line": 99, + "line": 149, "column": 24 } } }, "property": { "type": "Identifier", - "name": "decimal_precision", + "name": "decimalPrecisions", "range": [ - 2822, - 2839 + 4242, + 4259 ], "loc": { "start": { - "line": 99, + "line": 149, "column": 25 }, "end": { - "line": 99, + "line": 149, "column": 42 } } }, "range": [ - 2817, - 2839 + 4237, + 4259 ], "loc": { "start": { - "line": 99, + "line": 149, "column": 20 }, "end": { - "line": 99, + "line": 149, "column": 42 } } }, "range": [ - 2763, - 2839 + 4183, + 4259 ], "loc": { "start": { - "line": 98, - "column": 31 + "line": 148, + "column": 32 }, "end": { - "line": 99, + "line": 149, "column": 42 } } }, "range": [ - 2744, - 2839 + 4163, + 4259 ], "loc": { "start": { - "line": 98, + "line": 148, "column": 12 }, "end": { - "line": 99, + "line": 149, "column": 42 } } @@ -3974,16 +6069,16 @@ ], "kind": "let", "range": [ - 2473, - 2840 + 3936, + 4260 ], "loc": { "start": { - "line": 91, + "line": 143, "column": 8 }, "end": { - "line": 99, + "line": 149, "column": 43 } }, @@ -3992,16 +6087,16 @@ "type": "Line", "value": "nuovella: determine unique list of columns to operate on", "range": [ - 2850, - 2908 + 4270, + 4328 ], "loc": { "start": { - "line": 101, + "line": 151, "column": 8 }, "end": { - "line": 101, + "line": 151, "column": 66 } } @@ -4015,19 +6110,19 @@ "type": "VariableDeclarator", "id": { "type": "Identifier", - "name": "ucolIndex", + "name": "uIndexes", "range": [ - 2921, - 2930 + 4341, + 4349 ], "loc": { "start": { - "line": 102, + "line": 152, "column": 12 }, "end": { - "line": 102, - "column": 21 + "line": 152, + "column": 20 } } }, @@ -4035,103 +6130,49 @@ "type": "ArrayExpression", "elements": [], "range": [ - 2933, - 2935 + 4352, + 4354 ], "loc": { "start": { - "line": 102, - "column": 24 - }, - "end": { - "line": 102, - "column": 26 - } - } - }, - "range": [ - 2921, - 2935 - ], - "loc": { - "start": { - "line": 102, - "column": 12 - }, - "end": { - "line": 102, - "column": 26 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "ucolMax", - "range": [ - 2949, - 2956 - ], - "loc": { - "start": { - "line": 103, - "column": 12 - }, - "end": { - "line": 103, - "column": 19 - } - } - }, - "init": { - "type": "Literal", - "value": 0, - "raw": "0", - "range": [ - 2959, - 2960 - ], - "loc": { - "start": { - "line": 103, - "column": 22 - }, - "end": { - "line": 103, + "line": 152, "column": 23 + }, + "end": { + "line": 152, + "column": 25 } } }, "range": [ - 2949, - 2960 + 4341, + 4354 ], "loc": { "start": { - "line": 103, + "line": 152, "column": 12 }, "end": { - "line": 103, - "column": 23 + "line": 152, + "column": 25 } } } ], "kind": "let", "range": [ - 2917, - 2961 + 4337, + 4355 ], "loc": { "start": { - "line": 102, + "line": 152, "column": 8 }, "end": { - "line": 103, - "column": 24 + "line": 152, + "column": 26 } }, "leadingComments": [ @@ -4139,16 +6180,16 @@ "type": "Line", "value": "nuovella: determine unique list of columns to operate on", "range": [ - 2850, - 2908 + 4270, + 4328 ], "loc": { "start": { - "line": 101, + "line": 151, "column": 8 }, "end": { - "line": 101, + "line": 151, "column": 66 } } @@ -4158,144 +6199,765 @@ { "type": "ExpressionStatement", "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { + "type": "CallExpression", + "callee": { "type": "MemberExpression", - "computed": true, + "computed": false, "object": { "type": "Identifier", - "name": "ucolIndex", + "name": "colIndexes", "range": [ - 2970, - 2979 + 4364, + 4374 ], "loc": { "start": { - "line": 104, + "line": 153, "column": 8 }, "end": { - "line": 104, - "column": 17 + "line": 153, + "column": 18 } } }, "property": { "type": "Identifier", - "name": "ucolMax", + "name": "forEach", "range": [ - 2980, - 2987 + 4375, + 4382 ], "loc": { "start": { - "line": 104, - "column": 18 + "line": 153, + "column": 19 }, "end": { - "line": 104, - "column": 25 + "line": 153, + "column": 26 } } }, "range": [ - 2970, - 2988 + 4364, + 4382 ], "loc": { "start": { - "line": 104, + "line": 153, "column": 8 }, "end": { - "line": 104, + "line": 153, "column": 26 } } }, - "right": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "colIndex", - "range": [ - 2991, - 2999 - ], - "loc": { - "start": { - "line": 104, - "column": 29 - }, - "end": { - "line": 104, - "column": 37 + "arguments": [ + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "val", + "range": [ + 4384, + 4387 + ], + "loc": { + "start": { + "line": 153, + "column": 28 + }, + "end": { + "line": 153, + "column": 31 + } + } } - } - }, - "property": { - "type": "Literal", - "value": 0, - "raw": "0", - "range": [ - 3000, - 3001 ], - "loc": { - "start": { - "line": 104, - "column": 38 - }, - "end": { - "line": 104, - "column": 39 + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "uIndexes", + "range": [ + 4410, + 4418 + ], + "loc": { + "start": { + "line": 154, + "column": 16 + }, + "end": { + "line": 154, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "indexOf", + "range": [ + 4419, + 4426 + ], + "loc": { + "start": { + "line": 154, + "column": 25 + }, + "end": { + "line": 154, + "column": 32 + } + } + }, + "range": [ + 4410, + 4426 + ], + "loc": { + "start": { + "line": 154, + "column": 16 + }, + "end": { + "line": 154, + "column": 32 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "val", + "range": [ + 4427, + 4430 + ], + "loc": { + "start": { + "line": 154, + "column": 33 + }, + "end": { + "line": 154, + "column": 36 + } + } + } + ], + "range": [ + 4410, + 4431 + ], + "loc": { + "start": { + "line": 154, + "column": 16 + }, + "end": { + "line": 154, + "column": 37 + } + } + }, + "right": { + "type": "UnaryExpression", + "operator": "-", + "argument": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 4437, + 4438 + ], + "loc": { + "start": { + "line": 154, + "column": 43 + }, + "end": { + "line": 154, + "column": 44 + } + } + }, + "prefix": true, + "range": [ + 4436, + 4438 + ], + "loc": { + "start": { + "line": 154, + "column": 42 + }, + "end": { + "line": 154, + "column": 44 + } + } + }, + "range": [ + 4410, + 4438 + ], + "loc": { + "start": { + "line": 154, + "column": 16 + }, + "end": { + "line": 154, + "column": 44 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "uIndexes", + "range": [ + 4458, + 4466 + ], + "loc": { + "start": { + "line": 155, + "column": 16 + }, + "end": { + "line": 155, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "push", + "range": [ + 4467, + 4471 + ], + "loc": { + "start": { + "line": 155, + "column": 25 + }, + "end": { + "line": 155, + "column": 29 + } + } + }, + "range": [ + 4458, + 4471 + ], + "loc": { + "start": { + "line": 155, + "column": 16 + }, + "end": { + "line": 155, + "column": 29 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "val", + "range": [ + 4472, + 4475 + ], + "loc": { + "start": { + "line": 155, + "column": 30 + }, + "end": { + "line": 155, + "column": 33 + } + } + } + ], + "range": [ + 4458, + 4476 + ], + "loc": { + "start": { + "line": 155, + "column": 16 + }, + "end": { + "line": 155, + "column": 34 + } + } + }, + "range": [ + 4458, + 4477 + ], + "loc": { + "start": { + "line": 155, + "column": 16 + }, + "end": { + "line": 155, + "column": 35 + } + } + } + ], + "range": [ + 4440, + 4491 + ], + "loc": { + "start": { + "line": 154, + "column": 46 + }, + "end": { + "line": 156, + "column": 13 + } + } + }, + "alternate": null, + "range": [ + 4406, + 4491 + ], + "loc": { + "start": { + "line": 154, + "column": 12 + }, + "end": { + "line": 156, + "column": 13 + } + } + } + ], + "range": [ + 4392, + 4501 + ], + "loc": { + "start": { + "line": 153, + "column": 36 + }, + "end": { + "line": 157, + "column": 9 + } } - } - }, - "range": [ - 2991, - 3002 - ], - "loc": { - "start": { - "line": 104, - "column": 29 }, - "end": { - "line": 104, - "column": 40 + "generator": false, + "expression": false, + "range": [ + 4383, + 4501 + ], + "loc": { + "start": { + "line": 153, + "column": 27 + }, + "end": { + "line": 157, + "column": 9 + } } } - }, + ], "range": [ - 2970, - 3002 + 4364, + 4502 ], "loc": { "start": { - "line": 104, + "line": 153, "column": 8 }, "end": { - "line": 104, - "column": 40 + "line": 157, + "column": 10 } } }, "range": [ - 2970, - 3003 + 4364, + 4503 ], "loc": { "start": { - "line": 104, + "line": 153, "column": 8 }, "end": { - "line": 104, - "column": 41 + "line": 157, + "column": 11 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "nbCols", + "range": [ + 4517, + 4523 + ], + "loc": { + "start": { + "line": 159, + "column": 12 + }, + "end": { + "line": 159, + "column": 18 + } + } + }, + "init": { + "type": "BinaryExpression", + "operator": "-", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "uIndexes", + "range": [ + 4526, + 4534 + ], + "loc": { + "start": { + "line": 159, + "column": 21 + }, + "end": { + "line": 159, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "length", + "range": [ + 4535, + 4541 + ], + "loc": { + "start": { + "line": 159, + "column": 30 + }, + "end": { + "line": 159, + "column": 36 + } + } + }, + "range": [ + 4526, + 4541 + ], + "loc": { + "start": { + "line": 159, + "column": 21 + }, + "end": { + "line": 159, + "column": 36 + } + } + }, + "right": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 4544, + 4545 + ], + "loc": { + "start": { + "line": 159, + "column": 39 + }, + "end": { + "line": 159, + "column": 40 + } + } + }, + "range": [ + 4526, + 4545 + ], + "loc": { + "start": { + "line": 159, + "column": 21 + }, + "end": { + "line": 159, + "column": 40 + } + } + }, + "range": [ + 4517, + 4545 + ], + "loc": { + "start": { + "line": 159, + "column": 12 + }, + "end": { + "line": 159, + "column": 40 + } + } + }, + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "rows", + "range": [ + 4559, + 4563 + ], + "loc": { + "start": { + "line": 160, + "column": 12 + }, + "end": { + "line": 160, + "column": 16 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "tf", + "range": [ + 4566, + 4568 + ], + "loc": { + "start": { + "line": 160, + "column": 19 + }, + "end": { + "line": 160, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "tbl", + "range": [ + 4569, + 4572 + ], + "loc": { + "start": { + "line": 160, + "column": 22 + }, + "end": { + "line": 160, + "column": 25 + } + } + }, + "range": [ + 4566, + 4572 + ], + "loc": { + "start": { + "line": 160, + "column": 19 + }, + "end": { + "line": 160, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "rows", + "range": [ + 4573, + 4577 + ], + "loc": { + "start": { + "line": 160, + "column": 26 + }, + "end": { + "line": 160, + "column": 30 + } + } + }, + "range": [ + 4566, + 4577 + ], + "loc": { + "start": { + "line": 160, + "column": 19 + }, + "end": { + "line": 160, + "column": 30 + } + } + }, + "range": [ + 4559, + 4577 + ], + "loc": { + "start": { + "line": 160, + "column": 12 + }, + "end": { + "line": 160, + "column": 30 + } + } + }, + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "colValues", + "range": [ + 4591, + 4600 + ], + "loc": { + "start": { + "line": 161, + "column": 12 + }, + "end": { + "line": 161, + "column": 21 + } + } + }, + "init": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 4603, + 4605 + ], + "loc": { + "start": { + "line": 161, + "column": 24 + }, + "end": { + "line": 161, + "column": 26 + } + } + }, + "range": [ + 4591, + 4605 + ], + "loc": { + "start": { + "line": 161, + "column": 12 + }, + "end": { + "line": 161, + "column": 26 + } + } + } + ], + "kind": "let", + "range": [ + 4513, + 4606 + ], + "loc": { + "start": { + "line": 159, + "column": 8 + }, + "end": { + "line": 161, + "column": 27 } } }, @@ -4308,160 +6970,124 @@ "type": "VariableDeclarator", "id": { "type": "Identifier", - "name": "ii", + "name": "u", "range": [ - 3022, - 3024 + 4625, + 4626 ], "loc": { "start": { - "line": 106, + "line": 163, "column": 17 }, "end": { - "line": 106, - "column": 19 + "line": 163, + "column": 18 } } }, "init": { "type": "Literal", - "value": 1, - "raw": "1", + "value": 0, + "raw": "0", "range": [ - 3027, - 3028 + 4629, + 4630 ], "loc": { "start": { - "line": 106, - "column": 22 + "line": 163, + "column": 21 }, "end": { - "line": 106, - "column": 23 + "line": 163, + "column": 22 } } }, "range": [ - 3022, - 3028 + 4625, + 4630 ], "loc": { "start": { - "line": 106, + "line": 163, "column": 17 }, "end": { - "line": 106, - "column": 23 + "line": 163, + "column": 22 } } } ], "kind": "let", "range": [ - 3018, - 3028 + 4621, + 4630 ], "loc": { "start": { - "line": 106, + "line": 163, "column": 13 }, "end": { - "line": 106, - "column": 23 + "line": 163, + "column": 22 } } }, "test": { "type": "BinaryExpression", - "operator": "<", + "operator": "<=", "left": { "type": "Identifier", - "name": "ii", + "name": "u", "range": [ - 3030, - 3032 + 4632, + 4633 ], "loc": { "start": { - "line": 106, - "column": 25 + "line": 163, + "column": 24 }, "end": { - "line": 106, - "column": 27 + "line": 163, + "column": 25 } } }, "right": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "colIndex", - "range": [ - 3035, - 3043 - ], - "loc": { - "start": { - "line": 106, - "column": 30 - }, - "end": { - "line": 106, - "column": 38 - } - } - }, - "property": { - "type": "Identifier", - "name": "length", - "range": [ - 3044, - 3050 - ], - "loc": { - "start": { - "line": 106, - "column": 39 - }, - "end": { - "line": 106, - "column": 45 - } - } - }, + "type": "Identifier", + "name": "nbCols", "range": [ - 3035, - 3050 + 4637, + 4643 ], "loc": { "start": { - "line": 106, - "column": 30 + "line": 163, + "column": 29 }, "end": { - "line": 106, - "column": 45 + "line": 163, + "column": 35 } } }, "range": [ - 3030, - 3050 + 4632, + 4643 ], "loc": { "start": { - "line": 106, - "column": 25 + "line": 163, + "column": 24 }, "end": { - "line": 106, - "column": 45 + "line": 163, + "column": 35 } } }, @@ -4470,41 +7096,370 @@ "operator": "++", "argument": { "type": "Identifier", - "name": "ii", + "name": "u", "range": [ - 3052, - 3054 + 4645, + 4646 ], "loc": { "start": { - "line": 106, - "column": 47 + "line": 163, + "column": 37 }, "end": { - "line": 106, - "column": 49 + "line": 163, + "column": 38 } } }, "prefix": false, "range": [ - 3052, - 3056 + 4645, + 4648 ], "loc": { "start": { - "line": 106, - "column": 47 + "line": 163, + "column": 37 }, "end": { - "line": 106, - "column": 51 + "line": 163, + "column": 40 } } }, "body": { "type": "BlockStatement", "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "colValues", + "range": [ + 4850, + 4859 + ], + "loc": { + "start": { + "line": 167, + "column": 12 + }, + "end": { + "line": 167, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "push", + "range": [ + 4860, + 4864 + ], + "loc": { + "start": { + "line": 167, + "column": 22 + }, + "end": { + "line": 167, + "column": 26 + } + } + }, + "range": [ + 4850, + 4864 + ], + "loc": { + "start": { + "line": 167, + "column": 12 + }, + "end": { + "line": 167, + "column": 26 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "tf", + "range": [ + 4882, + 4884 + ], + "loc": { + "start": { + "line": 168, + "column": 16 + }, + "end": { + "line": 168, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "getFilteredDataCol", + "range": [ + 4885, + 4903 + ], + "loc": { + "start": { + "line": 168, + "column": 19 + }, + "end": { + "line": 168, + "column": 37 + } + } + }, + "range": [ + 4882, + 4903 + ], + "loc": { + "start": { + "line": 168, + "column": 16 + }, + "end": { + "line": 168, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "uIndexes", + "range": [ + 4904, + 4912 + ], + "loc": { + "start": { + "line": 168, + "column": 38 + }, + "end": { + "line": 168, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "name": "u", + "range": [ + 4913, + 4914 + ], + "loc": { + "start": { + "line": 168, + "column": 47 + }, + "end": { + "line": 168, + "column": 48 + } + } + }, + "range": [ + 4904, + 4915 + ], + "loc": { + "start": { + "line": 168, + "column": 38 + }, + "end": { + "line": 168, + "column": 49 + } + } + }, + { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 4917, + 4922 + ], + "loc": { + "start": { + "line": 168, + "column": 51 + }, + "end": { + "line": 168, + "column": 56 + } + } + }, + { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 4924, + 4928 + ], + "loc": { + "start": { + "line": 168, + "column": 58 + }, + "end": { + "line": 168, + "column": 62 + } + } + }, + { + "type": "Identifier", + "name": "excludeRows", + "range": [ + 4930, + 4941 + ], + "loc": { + "start": { + "line": 168, + "column": 64 + }, + "end": { + "line": 168, + "column": 75 + } + } + } + ], + "range": [ + 4882, + 4942 + ], + "loc": { + "start": { + "line": 168, + "column": 16 + }, + "end": { + "line": 168, + "column": 76 + } + } + } + ], + "range": [ + 4850, + 4956 + ], + "loc": { + "start": { + "line": 167, + "column": 12 + }, + "end": { + "line": 169, + "column": 13 + } + } + }, + "range": [ + 4850, + 4957 + ], + "loc": { + "start": { + "line": 167, + "column": 12 + }, + "end": { + "line": 169, + "column": 14 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": "this retrieves col values", + "range": [ + 4664, + 4691 + ], + "loc": { + "start": { + "line": 164, + "column": 12 + }, + "end": { + "line": 164, + "column": 39 + } + } + }, + { + "type": "Line", + "value": "use uIndexes because we only want to pass through this loop", + "range": [ + 4704, + 4765 + ], + "loc": { + "start": { + "line": 165, + "column": 12 + }, + "end": { + "line": 165, + "column": 73 + } + } + }, + { + "type": "Line", + "value": "once for each column get the values in this unique column", + "range": [ + 4778, + 4837 + ], + "loc": { + "start": { + "line": 166, + "column": 12 + }, + "end": { + "line": 166, + "column": 71 + } + } + } + ] + }, { "type": "VariableDeclaration", "declarations": [ @@ -4512,19 +7467,148 @@ "type": "VariableDeclarator", "id": { "type": "Identifier", - "name": "saved", + "name": "curValues", "range": [ - 3076, - 3081 + 4975, + 4984 ], "loc": { "start": { - "line": 107, + "line": 171, "column": 16 }, "end": { - "line": 107, - "column": 21 + "line": 171, + "column": 25 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "colValues", + "range": [ + 4987, + 4996 + ], + "loc": { + "start": { + "line": 171, + "column": 28 + }, + "end": { + "line": 171, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "name": "u", + "range": [ + 4997, + 4998 + ], + "loc": { + "start": { + "line": 171, + "column": 38 + }, + "end": { + "line": 171, + "column": 39 + } + } + }, + "range": [ + 4987, + 4999 + ], + "loc": { + "start": { + "line": 171, + "column": 28 + }, + "end": { + "line": 171, + "column": 40 + } + } + }, + "range": [ + 4975, + 4999 + ], + "loc": { + "start": { + "line": 171, + "column": 16 + }, + "end": { + "line": 171, + "column": 40 + } + } + } + ], + "kind": "let", + "range": [ + 4971, + 5000 + ], + "loc": { + "start": { + "line": 171, + "column": 12 + }, + "end": { + "line": 171, + "column": 41 + } + }, + "trailingComments": [ + { + "type": "Line", + "value": "next: calculate all operations for this column", + "range": [ + 5014, + 5062 + ], + "loc": { + "start": { + "line": 173, + "column": 12 + }, + "end": { + "line": 173, + "column": 60 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "result", + "range": [ + 5079, + 5085 + ], + "loc": { + "start": { + "line": 174, + "column": 16 + }, + "end": { + "line": 174, + "column": 22 } } }, @@ -4533,67 +7617,316 @@ "value": 0, "raw": "0", "range": [ - 3084, - 3085 + 5088, + 5089 ], "loc": { "start": { - "line": 107, - "column": 24 + "line": 174, + "column": 25 }, "end": { - "line": 107, - "column": 25 + "line": 174, + "column": 26 } } }, "range": [ - 3076, - 3085 + 5079, + 5089 ], "loc": { "start": { - "line": 107, + "line": 174, "column": 16 }, "end": { - "line": 107, + "line": 174, + "column": 26 + } + } + }, + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "operations", + "range": [ + 5107, + 5117 + ], + "loc": { + "start": { + "line": 175, + "column": 16 + }, + "end": { + "line": 175, + "column": 26 + } + } + }, + "init": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 5120, + 5122 + ], + "loc": { + "start": { + "line": 175, + "column": 29 + }, + "end": { + "line": 175, + "column": 31 + } + } + }, + "range": [ + 5107, + 5122 + ], + "loc": { + "start": { + "line": 175, + "column": 16 + }, + "end": { + "line": 175, + "column": 31 + } + } + }, + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "precisions", + "range": [ + 5140, + 5150 + ], + "loc": { + "start": { + "line": 176, + "column": 16 + }, + "end": { + "line": 176, + "column": 26 + } + } + }, + "init": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 5153, + 5155 + ], + "loc": { + "start": { + "line": 176, + "column": 29 + }, + "end": { + "line": 176, + "column": 31 + } + } + }, + "range": [ + 5140, + 5155 + ], + "loc": { + "start": { + "line": 176, + "column": 16 + }, + "end": { + "line": 176, + "column": 31 + } + } + }, + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "labels", + "range": [ + 5173, + 5179 + ], + "loc": { + "start": { + "line": 177, + "column": 16 + }, + "end": { + "line": 177, + "column": 22 + } + } + }, + "init": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 5182, + 5184 + ], + "loc": { + "start": { + "line": 177, + "column": 25 + }, + "end": { + "line": 177, + "column": 27 + } + } + }, + "range": [ + 5173, + 5184 + ], + "loc": { + "start": { + "line": 177, + "column": 16 + }, + "end": { + "line": 177, + "column": 27 + } + } + }, + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "writeType", + "range": [ + 5202, + 5211 + ], + "loc": { + "start": { + "line": 178, + "column": 16 + }, + "end": { + "line": 178, + "column": 25 + } + } + }, + "init": null, + "range": [ + 5202, + 5211 + ], + "loc": { + "start": { + "line": 178, + "column": 16 + }, + "end": { + "line": 178, "column": 25 } } + }, + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "idx", + "range": [ + 5229, + 5232 + ], + "loc": { + "start": { + "line": 179, + "column": 16 + }, + "end": { + "line": 179, + "column": 19 + } + } + }, + "init": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 5235, + 5236 + ], + "loc": { + "start": { + "line": 179, + "column": 22 + }, + "end": { + "line": 179, + "column": 23 + } + } + }, + "range": [ + 5229, + 5236 + ], + "loc": { + "start": { + "line": 179, + "column": 16 + }, + "end": { + "line": 179, + "column": 23 + } + } } ], "kind": "let", "range": [ - 3072, - 3086 + 5075, + 5237 ], "loc": { "start": { - "line": 107, + "line": 174, "column": 12 }, "end": { - "line": 107, - "column": 26 + "line": 179, + "column": 24 } }, - "trailingComments": [ + "leadingComments": [ { "type": "Line", - "value": "see if colIndex[ii] is already in the list of unique indexes", + "value": "next: calculate all operations for this column", "range": [ - 3099, - 3161 + 5014, + 5062 ], "loc": { "start": { - "line": 108, + "line": 173, "column": 12 }, "end": { - "line": 108, - "column": 74 + "line": 173, + "column": 60 } } } @@ -4608,19 +7941,19 @@ "type": "VariableDeclarator", "id": { "type": "Identifier", - "name": "jj", + "name": "k", "range": [ - 3183, - 3185 + 5260, + 5261 ], "loc": { "start": { - "line": 109, + "line": 181, "column": 21 }, "end": { - "line": 109, - "column": 23 + "line": 181, + "column": 22 } } }, @@ -4629,103 +7962,139 @@ "value": 0, "raw": "0", "range": [ - 3188, - 3189 + 5264, + 5265 ], "loc": { "start": { - "line": 109, - "column": 26 + "line": 181, + "column": 25 }, "end": { - "line": 109, - "column": 27 + "line": 181, + "column": 26 } } }, "range": [ - 3183, - 3189 + 5260, + 5265 ], "loc": { "start": { - "line": 109, + "line": 181, "column": 21 }, "end": { - "line": 109, - "column": 27 + "line": 181, + "column": 26 } } } ], "kind": "let", "range": [ - 3179, - 3189 + 5256, + 5265 ], "loc": { "start": { - "line": 109, + "line": 181, "column": 17 }, "end": { - "line": 109, - "column": 27 + "line": 181, + "column": 26 } } }, "test": { "type": "BinaryExpression", - "operator": "<=", + "operator": "<", "left": { "type": "Identifier", - "name": "jj", + "name": "k", "range": [ - 3191, - 3193 + 5267, + 5268 ], "loc": { "start": { - "line": 109, - "column": 29 + "line": 181, + "column": 28 }, "end": { - "line": 109, - "column": 31 + "line": 181, + "column": 29 } } }, "right": { - "type": "Identifier", - "name": "ucolMax", + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "colIndexes", + "range": [ + 5271, + 5281 + ], + "loc": { + "start": { + "line": 181, + "column": 32 + }, + "end": { + "line": 181, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "name": "length", + "range": [ + 5282, + 5288 + ], + "loc": { + "start": { + "line": 181, + "column": 43 + }, + "end": { + "line": 181, + "column": 49 + } + } + }, "range": [ - 3197, - 3204 + 5271, + 5288 ], "loc": { "start": { - "line": 109, - "column": 35 + "line": 181, + "column": 32 }, "end": { - "line": 109, - "column": 42 + "line": 181, + "column": 49 } } }, "range": [ - 3191, - 3204 + 5267, + 5288 ], "loc": { "start": { - "line": 109, - "column": 29 + "line": 181, + "column": 28 }, "end": { - "line": 109, - "column": 42 + "line": 181, + "column": 49 } } }, @@ -4734,35 +8103,35 @@ "operator": "++", "argument": { "type": "Identifier", - "name": "jj", + "name": "k", "range": [ - 3206, - 3208 + 5290, + 5291 ], "loc": { "start": { - "line": 109, - "column": 44 + "line": 181, + "column": 51 }, "end": { - "line": 109, - "column": 46 + "line": 181, + "column": 52 } } }, "prefix": false, "range": [ - 3206, - 3210 + 5290, + 5293 ], "loc": { "start": { - "line": 109, - "column": 44 + "line": 181, + "column": 51 }, "end": { - "line": 109, - "column": 48 + "line": 181, + "column": 54 } } }, @@ -4773,57 +8142,57 @@ "type": "IfStatement", "test": { "type": "BinaryExpression", - "operator": "===", + "operator": "!==", "left": { "type": "MemberExpression", "computed": true, "object": { "type": "Identifier", - "name": "ucolIndex", + "name": "colIndexes", "range": [ - 3234, - 3243 + 5317, + 5327 ], "loc": { "start": { - "line": 110, + "line": 182, "column": 20 }, "end": { - "line": 110, - "column": 29 + "line": 182, + "column": 30 } } }, "property": { "type": "Identifier", - "name": "jj", + "name": "k", "range": [ - 3244, - 3246 + 5328, + 5329 ], "loc": { "start": { - "line": 110, - "column": 30 + "line": 182, + "column": 31 }, "end": { - "line": 110, + "line": 182, "column": 32 } } }, "range": [ - 3234, - 3247 + 5317, + 5330 ], "loc": { "start": { - "line": 110, + "line": 182, "column": 20 }, "end": { - "line": 110, + "line": 182, "column": 33 } } @@ -4833,67 +8202,67 @@ "computed": true, "object": { "type": "Identifier", - "name": "colIndex", + "name": "uIndexes", "range": [ - 3252, - 3260 + 5335, + 5343 ], "loc": { "start": { - "line": 110, + "line": 182, "column": 38 }, "end": { - "line": 110, + "line": 182, "column": 46 } } }, "property": { "type": "Identifier", - "name": "ii", + "name": "u", "range": [ - 3261, - 3263 + 5344, + 5345 ], "loc": { "start": { - "line": 110, + "line": 182, "column": 47 }, "end": { - "line": 110, - "column": 49 + "line": 182, + "column": 48 } } }, "range": [ - 3252, - 3264 + 5335, + 5346 ], "loc": { "start": { - "line": 110, + "line": 182, "column": 38 }, "end": { - "line": 110, - "column": 50 + "line": 182, + "column": 49 } } }, "range": [ - 3234, - 3264 + 5317, + 5346 ], "loc": { "start": { - "line": 110, + "line": 182, "column": 20 }, "end": { - "line": 110, - "column": 50 + "line": 182, + "column": 49 } } }, @@ -4901,293 +8270,54 @@ "type": "BlockStatement", "body": [ { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "saved", - "range": [ - 3288, - 3293 - ], - "loc": { - "start": { - "line": 111, - "column": 20 - }, - "end": { - "line": 111, - "column": 25 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 3296, - 3297 - ], - "loc": { - "start": { - "line": 111, - "column": 28 - }, - "end": { - "line": 111, - "column": 29 - } - } - }, - "range": [ - 3288, - 3297 - ], - "loc": { - "start": { - "line": 111, - "column": 20 - }, - "end": { - "line": 111, - "column": 29 - } - } - }, + "type": "ContinueStatement", + "label": null, "range": [ - 3288, - 3298 + 5370, + 5379 ], "loc": { "start": { - "line": 111, + "line": 183, "column": 20 }, "end": { - "line": 111, - "column": 30 + "line": 183, + "column": 29 } } } ], "range": [ - 3266, - 3316 + 5348, + 5397 ], "loc": { "start": { - "line": 110, - "column": 52 + "line": 182, + "column": 51 }, "end": { - "line": 112, + "line": 184, "column": 17 } } }, "alternate": null, "range": [ - 3230, - 3316 + 5313, + 5397 ], "loc": { "start": { - "line": 110, + "line": 182, "column": 16 }, "end": { - "line": 112, + "line": 184, "column": 17 } } - } - ], - "range": [ - 3212, - 3330 - ], - "loc": { - "start": { - "line": 109, - "column": 50 - }, - "end": { - "line": 113, - "column": 13 - } - } - }, - "range": [ - 3174, - 3330 - ], - "loc": { - "start": { - "line": 109, - "column": 12 - }, - "end": { - "line": 113, - "column": 13 - } - }, - "leadingComments": [ - { - "type": "Line", - "value": "see if colIndex[ii] is already in the list of unique indexes", - "range": [ - 3099, - 3161 - ], - "loc": { - "start": { - "line": 108, - "column": 12 - }, - "end": { - "line": 108, - "column": 74 - } - } - } - ], - "trailingComments": [ - { - "type": "Line", - "value": "if not saved then, save the index;", - "range": [ - 3343, - 3379 - ], - "loc": { - "start": { - "line": 114, - "column": 12 - }, - "end": { - "line": 114, - "column": 48 - } - } - } - ] - }, - { - "type": "IfStatement", - "test": { - "type": "BinaryExpression", - "operator": "===", - "left": { - "type": "Identifier", - "name": "saved", - "range": [ - 3396, - 3401 - ], - "loc": { - "start": { - "line": 115, - "column": 16 - }, - "end": { - "line": 115, - "column": 21 - } - } - }, - "right": { - "type": "Literal", - "value": 0, - "raw": "0", - "range": [ - 3406, - 3407 - ], - "loc": { - "start": { - "line": 115, - "column": 26 - }, - "end": { - "line": 115, - "column": 27 - } - } - }, - "range": [ - 3396, - 3407 - ], - "loc": { - "start": { - "line": 115, - "column": 16 - }, - "end": { - "line": 115, - "column": 27 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "UpdateExpression", - "operator": "++", - "argument": { - "type": "Identifier", - "name": "ucolMax", - "range": [ - 3427, - 3434 - ], - "loc": { - "start": { - "line": 116, - "column": 16 - }, - "end": { - "line": 116, - "column": 23 - } - } - }, - "prefix": false, - "range": [ - 3427, - 3436 - ], - "loc": { - "start": { - "line": 116, - "column": 16 - }, - "end": { - "line": 116, - "column": 25 - } - } - }, - "range": [ - 3427, - 3437 - ], - "loc": { - "start": { - "line": 116, - "column": 16 - }, - "end": { - "line": 116, - "column": 26 - } - } }, { "type": "ExpressionStatement", @@ -5199,52 +8329,249 @@ "computed": true, "object": { "type": "Identifier", - "name": "ucolIndex", + "name": "operations", "range": [ - 3454, - 3463 + 5414, + 5424 ], "loc": { "start": { - "line": 117, + "line": 185, "column": 16 }, "end": { - "line": 117, - "column": 25 + "line": 185, + "column": 26 } } }, "property": { "type": "Identifier", - "name": "ucolMax", + "name": "idx", "range": [ - 3464, - 3471 + 5425, + 5428 ], "loc": { "start": { - "line": 117, - "column": 26 + "line": 185, + "column": 27 }, "end": { - "line": 117, - "column": 33 + "line": 185, + "column": 30 } } }, "range": [ - 3454, - 3472 + 5414, + 5429 ], "loc": { "start": { - "line": 117, + "line": 185, "column": 16 }, "end": { - "line": 117, + "line": 185, + "column": 31 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "colOperations", + "range": [ + 5432, + 5445 + ], + "loc": { + "start": { + "line": 185, + "column": 34 + }, + "end": { + "line": 185, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "name": "k", + "range": [ + 5446, + 5447 + ], + "loc": { + "start": { + "line": 185, + "column": 48 + }, + "end": { + "line": 185, + "column": 49 + } + } + }, + "range": [ + 5432, + 5448 + ], + "loc": { + "start": { + "line": 185, + "column": 34 + }, + "end": { + "line": 185, + "column": 50 + } + } + }, + "property": { + "type": "Identifier", + "name": "toLowerCase", + "range": [ + 5449, + 5460 + ], + "loc": { + "start": { + "line": 185, + "column": 51 + }, + "end": { + "line": 185, + "column": 62 + } + } + }, + "range": [ + 5432, + 5460 + ], + "loc": { + "start": { + "line": 185, + "column": 34 + }, + "end": { + "line": 185, + "column": 62 + } + } + }, + "arguments": [], + "range": [ + 5432, + 5462 + ], + "loc": { + "start": { + "line": 185, "column": 34 + }, + "end": { + "line": 185, + "column": 64 + } + } + }, + "range": [ + 5414, + 5462 + ], + "loc": { + "start": { + "line": 185, + "column": 16 + }, + "end": { + "line": 185, + "column": 64 + } + } + }, + "range": [ + 5414, + 5463 + ], + "loc": { + "start": { + "line": 185, + "column": 16 + }, + "end": { + "line": 185, + "column": 65 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "precisions", + "range": [ + 5480, + 5490 + ], + "loc": { + "start": { + "line": 186, + "column": 16 + }, + "end": { + "line": 186, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "idx", + "range": [ + 5491, + 5494 + ], + "loc": { + "start": { + "line": 186, + "column": 27 + }, + "end": { + "line": 186, + "column": 30 + } + } + }, + "range": [ + 5480, + 5495 + ], + "loc": { + "start": { + "line": 186, + "column": 16 + }, + "end": { + "line": 186, + "column": 31 } } }, @@ -5253,680 +8580,673 @@ "computed": true, "object": { "type": "Identifier", - "name": "colIndex", + "name": "decimalPrecisions", "range": [ - 3475, - 3483 + 5498, + 5515 ], "loc": { "start": { - "line": 117, - "column": 37 + "line": 186, + "column": 34 }, "end": { - "line": 117, - "column": 45 + "line": 186, + "column": 51 } } }, "property": { "type": "Identifier", - "name": "ii", + "name": "k", "range": [ - 3484, - 3486 + 5516, + 5517 ], "loc": { "start": { - "line": 117, - "column": 46 + "line": 186, + "column": 52 }, "end": { - "line": 117, - "column": 48 + "line": 186, + "column": 53 } } }, "range": [ - 3475, - 3487 + 5498, + 5518 ], "loc": { "start": { - "line": 117, - "column": 37 + "line": 186, + "column": 34 }, "end": { - "line": 117, - "column": 49 + "line": 186, + "column": 54 } } }, "range": [ - 3454, - 3487 + 5480, + 5518 ], "loc": { "start": { - "line": 117, + "line": 186, "column": 16 }, "end": { - "line": 117, - "column": 49 + "line": 186, + "column": 54 } } }, "range": [ - 3454, - 3488 + 5480, + 5519 ], "loc": { "start": { - "line": 117, + "line": 186, "column": 16 }, "end": { - "line": 117, - "column": 50 - } - } - } - ], - "range": [ - 3409, - 3502 - ], - "loc": { - "start": { - "line": 115, - "column": 29 - }, - "end": { - "line": 118, - "column": 13 - } - } - }, - "alternate": null, - "range": [ - 3392, - 3502 - ], - "loc": { - "start": { - "line": 115, - "column": 12 - }, - "end": { - "line": 118, - "column": 13 - } - }, - "leadingComments": [ - { - "type": "Line", - "value": "if not saved then, save the index;", - "range": [ - 3343, - 3379 - ], - "loc": { - "start": { - "line": 114, - "column": 12 - }, - "end": { - "line": 114, - "column": 48 - } - } - } - ] - } - ], - "range": [ - 3058, - 3512 - ], - "loc": { - "start": { - "line": 106, - "column": 53 - }, - "end": { - "line": 119, - "column": 9 - } - } - }, - "range": [ - 3013, - 3512 - ], - "loc": { - "start": { - "line": 106, - "column": 8 - }, - "end": { - "line": 119, - "column": 9 - } - } - }, - { - "type": "IfStatement", - "test": { - "type": "LogicalExpression", - "operator": "&&", - "left": { - "type": "LogicalExpression", - "operator": "&&", - "left": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "isArray", - "range": [ - 3526, - 3533 - ], - "loc": { - "start": { - "line": 121, - "column": 12 - }, - "end": { - "line": 121, - "column": 19 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "labelId", - "range": [ - 3534, - 3541 - ], - "loc": { - "start": { - "line": 121, - "column": 20 - }, - "end": { - "line": 121, - "column": 27 - } - } - } - ], - "range": [ - 3526, - 3542 - ], - "loc": { - "start": { - "line": 121, - "column": 12 - }, - "end": { - "line": 121, - "column": 28 - } - } - }, - "right": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "isArray", - "range": [ - 3546, - 3553 - ], - "loc": { - "start": { - "line": 121, - "column": 32 - }, - "end": { - "line": 121, - "column": 39 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "colIndex", - "range": [ - 3554, - 3562 - ], - "loc": { - "start": { - "line": 121, - "column": 40 - }, - "end": { - "line": 121, - "column": 48 - } - } - } - ], - "range": [ - 3546, - 3563 - ], - "loc": { - "start": { - "line": 121, - "column": 32 - }, - "end": { - "line": 121, - "column": 49 - } - } - }, - "range": [ - 3526, - 3563 - ], - "loc": { - "start": { - "line": 121, - "column": 12 - }, - "end": { - "line": 121, - "column": 49 - } - } - }, - "right": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "isArray", - "range": [ - 3567, - 3574 - ], - "loc": { - "start": { - "line": 121, - "column": 53 - }, - "end": { - "line": 121, - "column": 60 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "operation", - "range": [ - 3575, - 3584 - ], - "loc": { - "start": { - "line": 121, - "column": 61 - }, - "end": { - "line": 121, - "column": 70 - } - } - } - ], - "range": [ - 3567, - 3585 - ], - "loc": { - "start": { - "line": 121, - "column": 53 - }, - "end": { - "line": 121, - "column": 71 - } - } - }, - "range": [ - 3526, - 3585 - ], - "loc": { - "start": { - "line": 121, - "column": 12 - }, - "end": { - "line": 121, - "column": 71 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "rows", - "range": [ - 3605, - 3609 - ], - "loc": { - "start": { - "line": 122, - "column": 16 - }, - "end": { - "line": 122, - "column": 20 + "line": 186, + "column": 55 } } }, - "init": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "tf", + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "labels", + "range": [ + 5536, + 5542 + ], + "loc": { + "start": { + "line": 187, + "column": 16 + }, + "end": { + "line": 187, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "idx", + "range": [ + 5543, + 5546 + ], + "loc": { + "start": { + "line": 187, + "column": 23 + }, + "end": { + "line": 187, + "column": 26 + } + } + }, "range": [ - 3612, - 3614 + 5536, + 5547 ], "loc": { "start": { - "line": 122, - "column": 23 + "line": 187, + "column": 16 }, "end": { - "line": 122, + "line": 187, + "column": 27 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5550, + 5554 + ], + "loc": { + "start": { + "line": 187, + "column": 30 + }, + "end": { + "line": 187, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "labelIds", + "range": [ + 5555, + 5563 + ], + "loc": { + "start": { + "line": 187, + "column": 35 + }, + "end": { + "line": 187, + "column": 43 + } + } + }, + "range": [ + 5550, + 5563 + ], + "loc": { + "start": { + "line": 187, + "column": 30 + }, + "end": { + "line": 187, + "column": 43 + } + } + }, + "property": { + "type": "Identifier", + "name": "k", + "range": [ + 5564, + 5565 + ], + "loc": { + "start": { + "line": 187, + "column": 44 + }, + "end": { + "line": 187, + "column": 45 + } + } + }, + "range": [ + 5550, + 5566 + ], + "loc": { + "start": { + "line": 187, + "column": 30 + }, + "end": { + "line": 187, + "column": 46 + } + } + }, + "range": [ + 5536, + 5566 + ], + "loc": { + "start": { + "line": 187, + "column": 16 + }, + "end": { + "line": 187, + "column": 46 + } + } + }, + "range": [ + 5536, + 5567 + ], + "loc": { + "start": { + "line": 187, + "column": 16 + }, + "end": { + "line": 187, + "column": 47 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "writeType", + "range": [ + 5584, + 5593 + ], + "loc": { + "start": { + "line": 188, + "column": 16 + }, + "end": { + "line": 188, "column": 25 } } }, - "property": { - "type": "Identifier", - "name": "tbl", + "right": { + "type": "ConditionalExpression", + "test": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "isArray", + "range": [ + 5596, + 5603 + ], + "loc": { + "start": { + "line": 188, + "column": 28 + }, + "end": { + "line": 188, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "outputTypes", + "range": [ + 5604, + 5615 + ], + "loc": { + "start": { + "line": 188, + "column": 36 + }, + "end": { + "line": 188, + "column": 47 + } + } + } + ], + "range": [ + 5596, + 5616 + ], + "loc": { + "start": { + "line": 188, + "column": 28 + }, + "end": { + "line": 188, + "column": 48 + } + } + }, + "consequent": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "outputTypes", + "range": [ + 5619, + 5630 + ], + "loc": { + "start": { + "line": 188, + "column": 51 + }, + "end": { + "line": 188, + "column": 62 + } + } + }, + "property": { + "type": "Identifier", + "name": "k", + "range": [ + 5631, + 5632 + ], + "loc": { + "start": { + "line": 188, + "column": 63 + }, + "end": { + "line": 188, + "column": 64 + } + } + }, + "range": [ + 5619, + 5633 + ], + "loc": { + "start": { + "line": 188, + "column": 51 + }, + "end": { + "line": 188, + "column": 65 + } + } + }, + "alternate": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 5636, + 5640 + ], + "loc": { + "start": { + "line": 188, + "column": 68 + }, + "end": { + "line": 188, + "column": 72 + } + } + }, "range": [ - 3615, - 3618 + 5596, + 5640 ], "loc": { "start": { - "line": 122, - "column": 26 + "line": 188, + "column": 28 }, "end": { - "line": 122, - "column": 29 + "line": 188, + "column": 72 } } }, "range": [ - 3612, - 3618 + 5584, + 5640 ], "loc": { "start": { - "line": 122, - "column": 23 + "line": 188, + "column": 16 }, "end": { - "line": 122, - "column": 29 + "line": 188, + "column": 72 } } }, - "property": { - "type": "Identifier", - "name": "rows", + "range": [ + 5584, + 5641 + ], + "loc": { + "start": { + "line": 188, + "column": 16 + }, + "end": { + "line": 188, + "column": 73 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "UpdateExpression", + "operator": "++", + "argument": { + "type": "Identifier", + "name": "idx", + "range": [ + 5658, + 5661 + ], + "loc": { + "start": { + "line": 189, + "column": 16 + }, + "end": { + "line": 189, + "column": 19 + } + } + }, + "prefix": false, "range": [ - 3619, - 3623 + 5658, + 5663 ], "loc": { "start": { - "line": 122, - "column": 30 + "line": 189, + "column": 16 }, "end": { - "line": 122, - "column": 34 + "line": 189, + "column": 21 } } }, "range": [ - 3612, - 3623 + 5658, + 5664 ], "loc": { "start": { - "line": 122, - "column": 23 - }, - "end": { - "line": 122, - "column": 34 - } - } - }, - "range": [ - 3605, - 3623 - ], - "loc": { - "start": { - "line": 122, - "column": 16 - }, - "end": { - "line": 122, - "column": 34 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "colvalues", - "range": [ - 3641, - 3650 - ], - "loc": { - "start": { - "line": 123, + "line": 189, "column": 16 }, "end": { - "line": 123, - "column": 25 + "line": 189, + "column": 22 } } - }, - "init": { - "type": "ArrayExpression", - "elements": [], - "range": [ - 3653, - 3655 - ], - "loc": { - "start": { - "line": 123, - "column": 28 - }, - "end": { - "line": 123, - "column": 30 - } - } - }, - "range": [ - 3641, - 3655 - ], - "loc": { - "start": { - "line": 123, - "column": 16 - }, - "end": { - "line": 123, - "column": 30 - } } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "ucol", - "range": [ - 3673, - 3677 - ], - "loc": { - "start": { - "line": 124, - "column": 16 - }, - "end": { - "line": 124, - "column": 20 - } - } + ], + "range": [ + 5295, + 5678 + ], + "loc": { + "start": { + "line": 181, + "column": 56 }, - "init": { - "type": "Literal", - "value": 0, - "raw": "0", - "range": [ - 3680, - 3681 - ], - "loc": { - "start": { - "line": 124, - "column": 23 - }, - "end": { - "line": 124, - "column": 24 - } - } - }, - "range": [ - 3673, - 3681 - ], - "loc": { - "start": { - "line": 124, - "column": 16 - }, - "end": { - "line": 124, - "column": 24 - } + "end": { + "line": 190, + "column": 13 } } - ], - "kind": "let", + }, "range": [ - 3601, - 3682 + 5251, + 5678 ], "loc": { "start": { - "line": 122, + "line": 181, "column": 12 }, "end": { - "line": 124, - "column": 25 + "line": 190, + "column": 13 } } }, { "type": "ForStatement", - "init": null, + "init": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "i", + "range": [ + 5701, + 5702 + ], + "loc": { + "start": { + "line": 192, + "column": 21 + }, + "end": { + "line": 192, + "column": 22 + } + } + }, + "init": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 5705, + 5706 + ], + "loc": { + "start": { + "line": 192, + "column": 25 + }, + "end": { + "line": 192, + "column": 26 + } + } + }, + "range": [ + 5701, + 5706 + ], + "loc": { + "start": { + "line": 192, + "column": 21 + }, + "end": { + "line": 192, + "column": 26 + } + } + } + ], + "kind": "let", + "range": [ + 5697, + 5706 + ], + "loc": { + "start": { + "line": 192, + "column": 17 + }, + "end": { + "line": 192, + "column": 26 + } + } + }, "test": { "type": "BinaryExpression", "operator": "<=", "left": { "type": "Identifier", - "name": "ucol", + "name": "i", "range": [ - 3703, - 3707 + 5708, + 5709 ], "loc": { "start": { - "line": 126, - "column": 19 + "line": 192, + "column": 28 }, "end": { - "line": 126, - "column": 23 + "line": 192, + "column": 29 } } }, "right": { "type": "Identifier", - "name": "ucolMax", + "name": "idx", "range": [ - 3711, - 3718 + 5713, + 5716 ], "loc": { "start": { - "line": 126, - "column": 27 + "line": 192, + "column": 33 }, "end": { - "line": 126, - "column": 34 + "line": 192, + "column": 36 } } }, "range": [ - 3703, - 3718 + 5708, + 5716 ], "loc": { "start": { - "line": 126, - "column": 19 + "line": 192, + "column": 28 }, "end": { - "line": 126, - "column": 34 + "line": 192, + "column": 36 } } }, @@ -5935,35 +9255,35 @@ "operator": "++", "argument": { "type": "Identifier", - "name": "ucol", + "name": "i", "range": [ - 3720, - 3724 + 5718, + 5719 ], "loc": { "start": { - "line": 126, - "column": 36 + "line": 192, + "column": 38 }, "end": { - "line": 126, - "column": 40 + "line": 192, + "column": 39 } } }, "prefix": false, "range": [ - 3720, - 3726 + 5718, + 5721 ], "loc": { "start": { - "line": 126, - "column": 36 + "line": 192, + "column": 38 }, "end": { - "line": 126, - "column": 42 + "line": 192, + "column": 41 } } }, @@ -5978,5535 +9298,206 @@ "type": "MemberExpression", "computed": false, "object": { - "type": "Identifier", - "name": "colvalues", - "range": [ - 3945, - 3954 - ], - "loc": { - "start": { - "line": 130, - "column": 16 - }, - "end": { - "line": 130, - "column": 25 - } - } - }, - "property": { - "type": "Identifier", - "name": "push", - "range": [ - 3955, - 3959 - ], - "loc": { - "start": { - "line": 130, - "column": 26 - }, - "end": { - "line": 130, - "column": 30 - } - } - }, - "range": [ - 3945, - 3959 - ], - "loc": { - "start": { - "line": 130, - "column": 16 - }, - "end": { - "line": 130, - "column": 30 - } - } - }, - "arguments": [ - { - "type": "CallExpression", - "callee": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "tf", - "range": [ - 3981, - 3983 - ], - "loc": { - "start": { - "line": 131, - "column": 20 - }, - "end": { - "line": 131, - "column": 22 - } - } - }, - "property": { - "type": "Identifier", - "name": "getColValues", - "range": [ - 3984, - 3996 - ], - "loc": { - "start": { - "line": 131, - "column": 23 - }, - "end": { - "line": 131, - "column": 35 - } - } - }, + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", "range": [ - 3981, - 3996 + 5798, + 5802 ], "loc": { "start": { - "line": 131, - "column": 20 - }, - "end": { - "line": 131, - "column": 35 - } - } - }, - "arguments": [ - { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "ucolIndex", - "range": [ - 3997, - 4006 - ], - "loc": { - "start": { - "line": 131, - "column": 36 - }, - "end": { - "line": 131, - "column": 45 - } - } - }, - "property": { - "type": "Identifier", - "name": "ucol", - "range": [ - 4007, - 4011 - ], - "loc": { - "start": { - "line": 131, - "column": 46 - }, - "end": { - "line": 131, - "column": 50 - } - } - }, - "range": [ - 3997, - 4012 - ], - "loc": { - "start": { - "line": 131, - "column": 36 - }, - "end": { - "line": 131, - "column": 51 - } - } - }, - { - "type": "Literal", - "value": false, - "raw": "false", - "range": [ - 4014, - 4019 - ], - "loc": { - "start": { - "line": 131, - "column": 53 - }, - "end": { - "line": 131, - "column": 58 - } - } - }, - { - "type": "Literal", - "value": true, - "raw": "true", - "range": [ - 4021, - 4025 - ], - "loc": { - "start": { - "line": 131, - "column": 60 - }, - "end": { - "line": 131, - "column": 64 - } - } - }, - { - "type": "Identifier", - "name": "excludeRow", - "range": [ - 4027, - 4037 - ], - "loc": { - "start": { - "line": 131, - "column": 66 - }, - "end": { - "line": 131, - "column": 76 - } - } - } - ], - "range": [ - 3981, - 4038 - ], - "loc": { - "start": { - "line": 131, - "column": 20 - }, - "end": { - "line": 131, - "column": 77 - } - } - } - ], - "range": [ - 3945, - 4056 - ], - "loc": { - "start": { - "line": 130, - "column": 16 - }, - "end": { - "line": 132, - "column": 17 - } - } - }, - "range": [ - 3945, - 4057 - ], - "loc": { - "start": { - "line": 130, - "column": 16 - }, - "end": { - "line": 132, - "column": 18 - } - }, - "leadingComments": [ - { - "type": "Line", - "value": "this retrieves col values", - "range": [ - 3746, - 3773 - ], - "loc": { - "start": { - "line": 127, - "column": 16 - }, - "end": { - "line": 127, - "column": 43 - } - } - }, - { - "type": "Line", - "value": "use ucolIndex because we only want to pass through this loop", - "range": [ - 3790, - 3852 - ], - "loc": { - "start": { - "line": 128, - "column": 16 - }, - "end": { - "line": 128, - "column": 78 - } - } - }, - { - "type": "Line", - "value": "once for each column get the values in this unique column", - "range": [ - 3869, - 3928 - ], - "loc": { - "start": { - "line": 129, - "column": 16 - }, - "end": { - "line": 129, - "column": 75 - } - } - } - ], - "trailingComments": [ - { - "type": "Line", - "value": "next: calculate all operations for this column", - "range": [ - 4075, - 4123 - ], - "loc": { - "start": { - "line": 134, - "column": 16 - }, - "end": { - "line": 134, - "column": 64 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "result", - "range": [ - 4144, - 4150 - ], - "loc": { - "start": { - "line": 135, - "column": 20 - }, - "end": { - "line": 135, - "column": 26 - } - } - }, - "init": null, - "range": [ - 4144, - 4150 - ], - "loc": { - "start": { - "line": 135, - "column": 20 - }, - "end": { - "line": 135, - "column": 26 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "nbvalues", - "range": [ - 4172, - 4180 - ], - "loc": { - "start": { - "line": 136, - "column": 20 - }, - "end": { - "line": 136, - "column": 28 - } - } - }, - "init": { - "type": "Literal", - "value": 0, - "raw": "0", - "range": [ - 4183, - 4184 - ], - "loc": { - "start": { - "line": 136, - "column": 31 - }, - "end": { - "line": 136, - "column": 32 - } - } - }, - "range": [ - 4172, - 4184 - ], - "loc": { - "start": { - "line": 136, - "column": 20 - }, - "end": { - "line": 136, - "column": 32 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "temp", - "range": [ - 4206, - 4210 - ], - "loc": { - "start": { - "line": 137, - "column": 20 - }, - "end": { - "line": 137, - "column": 24 - } - } - }, - "init": null, - "range": [ - 4206, - 4210 - ], - "loc": { - "start": { - "line": 137, - "column": 20 - }, - "end": { - "line": 137, - "column": 24 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "meanValue", - "range": [ - 4232, - 4241 - ], - "loc": { - "start": { - "line": 138, - "column": 20 - }, - "end": { - "line": 138, - "column": 29 - } - } - }, - "init": { - "type": "Literal", - "value": 0, - "raw": "0", - "range": [ - 4244, - 4245 - ], - "loc": { - "start": { - "line": 138, - "column": 32 - }, - "end": { - "line": 138, - "column": 33 - } - } - }, - "range": [ - 4232, - 4245 - ], - "loc": { - "start": { - "line": 138, - "column": 20 - }, - "end": { - "line": 138, - "column": 33 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "sumValue", - "range": [ - 4267, - 4275 - ], - "loc": { - "start": { - "line": 139, - "column": 20 - }, - "end": { - "line": 139, - "column": 28 - } - } - }, - "init": { - "type": "Literal", - "value": 0, - "raw": "0", - "range": [ - 4278, - 4279 - ], - "loc": { - "start": { - "line": 139, - "column": 31 - }, - "end": { - "line": 139, - "column": 32 - } - } - }, - "range": [ - 4267, - 4279 - ], - "loc": { - "start": { - "line": 139, - "column": 20 - }, - "end": { - "line": 139, - "column": 32 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "minValue", - "range": [ - 4301, - 4309 - ], - "loc": { - "start": { - "line": 140, - "column": 20 - }, - "end": { - "line": 140, - "column": 28 - } - } - }, - "init": { - "type": "Literal", - "value": null, - "raw": "null", - "range": [ - 4312, - 4316 - ], - "loc": { - "start": { - "line": 140, - "column": 31 - }, - "end": { - "line": 140, - "column": 35 - } - } - }, - "range": [ - 4301, - 4316 - ], - "loc": { - "start": { - "line": 140, - "column": 20 - }, - "end": { - "line": 140, - "column": 35 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "maxValue", - "range": [ - 4338, - 4346 - ], - "loc": { - "start": { - "line": 141, - "column": 20 - }, - "end": { - "line": 141, - "column": 28 - } - } - }, - "init": { - "type": "Literal", - "value": null, - "raw": "null", - "range": [ - 4349, - 4353 - ], - "loc": { - "start": { - "line": 141, - "column": 31 - }, - "end": { - "line": 141, - "column": 35 - } - } - }, - "range": [ - 4338, - 4353 - ], - "loc": { - "start": { - "line": 141, - "column": 20 - }, - "end": { - "line": 141, - "column": 35 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "q1Value", - "range": [ - 4375, - 4382 - ], - "loc": { - "start": { - "line": 142, - "column": 20 - }, - "end": { - "line": 142, - "column": 27 - } - } - }, - "init": { - "type": "Literal", - "value": null, - "raw": "null", - "range": [ - 4385, - 4389 - ], - "loc": { - "start": { - "line": 142, - "column": 30 - }, - "end": { - "line": 142, - "column": 34 - } - } - }, - "range": [ - 4375, - 4389 - ], - "loc": { - "start": { - "line": 142, - "column": 20 - }, - "end": { - "line": 142, - "column": 34 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "medValue", - "range": [ - 4411, - 4419 - ], - "loc": { - "start": { - "line": 143, - "column": 20 - }, - "end": { - "line": 143, - "column": 28 - } - } - }, - "init": { - "type": "Literal", - "value": null, - "raw": "null", - "range": [ - 4422, - 4426 - ], - "loc": { - "start": { - "line": 143, - "column": 31 - }, - "end": { - "line": 143, - "column": 35 - } - } - }, - "range": [ - 4411, - 4426 - ], - "loc": { - "start": { - "line": 143, - "column": 20 - }, - "end": { - "line": 143, - "column": 35 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "q3Value", - "range": [ - 4448, - 4455 - ], - "loc": { - "start": { - "line": 144, - "column": 20 - }, - "end": { - "line": 144, - "column": 27 - } - } - }, - "init": { - "type": "Literal", - "value": null, - "raw": "null", - "range": [ - 4458, - 4462 - ], - "loc": { - "start": { - "line": 144, - "column": 30 - }, - "end": { - "line": 144, - "column": 34 - } - } - }, - "range": [ - 4448, - 4462 - ], - "loc": { - "start": { - "line": 144, - "column": 20 - }, - "end": { - "line": 144, - "column": 34 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "meanFlag", - "range": [ - 4484, - 4492 - ], - "loc": { - "start": { - "line": 145, - "column": 20 - }, - "end": { - "line": 145, - "column": 28 - } - } - }, - "init": { - "type": "Literal", - "value": 0, - "raw": "0", - "range": [ - 4495, - 4496 - ], - "loc": { - "start": { - "line": 145, - "column": 31 - }, - "end": { - "line": 145, - "column": 32 - } - } - }, - "range": [ - 4484, - 4496 - ], - "loc": { - "start": { - "line": 145, - "column": 20 - }, - "end": { - "line": 145, - "column": 32 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "sumFlag", - "range": [ - 4518, - 4525 - ], - "loc": { - "start": { - "line": 146, - "column": 20 - }, - "end": { - "line": 146, - "column": 27 - } - } - }, - "init": { - "type": "Literal", - "value": 0, - "raw": "0", - "range": [ - 4528, - 4529 - ], - "loc": { - "start": { - "line": 146, - "column": 30 - }, - "end": { - "line": 146, - "column": 31 - } - } - }, - "range": [ - 4518, - 4529 - ], - "loc": { - "start": { - "line": 146, - "column": 20 - }, - "end": { - "line": 146, - "column": 31 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "minFlag", - "range": [ - 4551, - 4558 - ], - "loc": { - "start": { - "line": 147, - "column": 20 - }, - "end": { - "line": 147, - "column": 27 - } - } - }, - "init": { - "type": "Literal", - "value": 0, - "raw": "0", - "range": [ - 4561, - 4562 - ], - "loc": { - "start": { - "line": 147, - "column": 30 - }, - "end": { - "line": 147, - "column": 31 - } - } - }, - "range": [ - 4551, - 4562 - ], - "loc": { - "start": { - "line": 147, - "column": 20 - }, - "end": { - "line": 147, - "column": 31 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "maxFlag", - "range": [ - 4584, - 4591 - ], - "loc": { - "start": { - "line": 148, - "column": 20 - }, - "end": { - "line": 148, - "column": 27 - } - } - }, - "init": { - "type": "Literal", - "value": 0, - "raw": "0", - "range": [ - 4594, - 4595 - ], - "loc": { - "start": { - "line": 148, - "column": 30 - }, - "end": { - "line": 148, - "column": 31 - } - } - }, - "range": [ - 4584, - 4595 - ], - "loc": { - "start": { - "line": 148, - "column": 20 - }, - "end": { - "line": 148, - "column": 31 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "q1Flag", - "range": [ - 4617, - 4623 - ], - "loc": { - "start": { - "line": 149, - "column": 20 - }, - "end": { - "line": 149, - "column": 26 - } - } - }, - "init": { - "type": "Literal", - "value": 0, - "raw": "0", - "range": [ - 4626, - 4627 - ], - "loc": { - "start": { - "line": 149, - "column": 29 - }, - "end": { - "line": 149, - "column": 30 - } - } - }, - "range": [ - 4617, - 4627 - ], - "loc": { - "start": { - "line": 149, - "column": 20 - }, - "end": { - "line": 149, - "column": 30 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "medFlag", - "range": [ - 4649, - 4656 - ], - "loc": { - "start": { - "line": 150, - "column": 20 - }, - "end": { - "line": 150, - "column": 27 - } - } - }, - "init": { - "type": "Literal", - "value": 0, - "raw": "0", - "range": [ - 4659, - 4660 - ], - "loc": { - "start": { - "line": 150, - "column": 30 - }, - "end": { - "line": 150, - "column": 31 - } - } - }, - "range": [ - 4649, - 4660 - ], - "loc": { - "start": { - "line": 150, - "column": 20 - }, - "end": { - "line": 150, - "column": 31 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "q3Flag", - "range": [ - 4682, - 4688 - ], - "loc": { - "start": { - "line": 151, - "column": 20 - }, - "end": { - "line": 151, - "column": 26 - } - } - }, - "init": { - "type": "Literal", - "value": 0, - "raw": "0", - "range": [ - 4691, - 4692 - ], - "loc": { - "start": { - "line": 151, - "column": 29 - }, - "end": { - "line": 151, - "column": 30 - } - } - }, - "range": [ - 4682, - 4692 - ], - "loc": { - "start": { - "line": 151, - "column": 20 - }, - "end": { - "line": 151, - "column": 30 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "theList", - "range": [ - 4714, - 4721 - ], - "loc": { - "start": { - "line": 152, - "column": 20 - }, - "end": { - "line": 152, - "column": 27 - } - } - }, - "init": { - "type": "ArrayExpression", - "elements": [], - "range": [ - 4724, - 4726 - ], - "loc": { - "start": { - "line": 152, - "column": 30 - }, - "end": { - "line": 152, - "column": 32 - } - } - }, - "range": [ - 4714, - 4726 - ], - "loc": { - "start": { - "line": 152, - "column": 20 - }, - "end": { - "line": 152, - "column": 32 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "opsThisCol", - "range": [ - 4748, - 4758 - ], - "loc": { - "start": { - "line": 153, - "column": 20 - }, - "end": { - "line": 153, - "column": 30 - } - } - }, - "init": { - "type": "ArrayExpression", - "elements": [], - "range": [ - 4761, - 4763 - ], - "loc": { - "start": { - "line": 153, - "column": 33 - }, - "end": { - "line": 153, - "column": 35 - } - } - }, - "range": [ - 4748, - 4763 - ], - "loc": { - "start": { - "line": 153, - "column": 20 - }, - "end": { - "line": 153, - "column": 35 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "decThisCol", - "range": [ - 4785, - 4795 - ], - "loc": { - "start": { - "line": 154, - "column": 20 - }, - "end": { - "line": 154, - "column": 30 - } - } - }, - "init": { - "type": "ArrayExpression", - "elements": [], - "range": [ - 4798, - 4800 - ], - "loc": { - "start": { - "line": 154, - "column": 33 - }, - "end": { - "line": 154, - "column": 35 - } - } - }, - "range": [ - 4785, - 4800 - ], - "loc": { - "start": { - "line": 154, - "column": 20 - }, - "end": { - "line": 154, - "column": 35 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "labThisCol", - "range": [ - 4822, - 4832 - ], - "loc": { - "start": { - "line": 155, - "column": 20 - }, - "end": { - "line": 155, - "column": 30 - } - } - }, - "init": { - "type": "ArrayExpression", - "elements": [], - "range": [ - 4835, - 4837 - ], - "loc": { - "start": { - "line": 155, - "column": 33 - }, - "end": { - "line": 155, - "column": 35 - } - } - }, - "range": [ - 4822, - 4837 - ], - "loc": { - "start": { - "line": 155, - "column": 20 - }, - "end": { - "line": 155, - "column": 35 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "oTypeThisCol", - "range": [ - 4859, - 4871 - ], - "loc": { - "start": { - "line": 156, - "column": 20 - }, - "end": { - "line": 156, - "column": 32 - } - } - }, - "init": { - "type": "ArrayExpression", - "elements": [], - "range": [ - 4874, - 4876 - ], - "loc": { - "start": { - "line": 156, - "column": 35 - }, - "end": { - "line": 156, - "column": 37 - } - } - }, - "range": [ - 4859, - 4876 - ], - "loc": { - "start": { - "line": 156, - "column": 20 - }, - "end": { - "line": 156, - "column": 37 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "mThisCol", - "range": [ - 4898, - 4906 - ], - "loc": { - "start": { - "line": 157, - "column": 20 - }, - "end": { - "line": 157, - "column": 28 - } - } - }, - "init": { - "type": "UnaryExpression", - "operator": "-", - "argument": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 4910, - 4911 - ], - "loc": { - "start": { - "line": 157, - "column": 32 - }, - "end": { - "line": 157, - "column": 33 - } - } - }, - "prefix": true, - "range": [ - 4909, - 4911 - ], - "loc": { - "start": { - "line": 157, - "column": 31 - }, - "end": { - "line": 157, - "column": 33 - } - } - }, - "range": [ - 4898, - 4911 - ], - "loc": { - "start": { - "line": 157, - "column": 20 - }, - "end": { - "line": 157, - "column": 33 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "k", - "range": [ - 4933, - 4934 - ], - "loc": { - "start": { - "line": 158, - "column": 20 - }, - "end": { - "line": 158, - "column": 21 - } - } - }, - "init": { - "type": "Literal", - "value": 0, - "raw": "0", - "range": [ - 4937, - 4938 - ], - "loc": { - "start": { - "line": 158, - "column": 24 - }, - "end": { - "line": 158, - "column": 25 - } - } - }, - "range": [ - 4933, - 4938 - ], - "loc": { - "start": { - "line": 158, - "column": 20 - }, - "end": { - "line": 158, - "column": 25 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "j", - "range": [ - 4960, - 4961 - ], - "loc": { - "start": { - "line": 159, - "column": 20 - }, - "end": { - "line": 159, - "column": 21 - } - } - }, - "init": { - "type": "Literal", - "value": 0, - "raw": "0", - "range": [ - 4964, - 4965 - ], - "loc": { - "start": { - "line": 159, - "column": 24 - }, - "end": { - "line": 159, - "column": 25 - } - } - }, - "range": [ - 4960, - 4965 - ], - "loc": { - "start": { - "line": 159, - "column": 20 - }, - "end": { - "line": 159, - "column": 25 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "i", - "range": [ - 4987, - 4988 - ], - "loc": { - "start": { - "line": 160, - "column": 20 - }, - "end": { - "line": 160, - "column": 21 - } - } - }, - "init": { - "type": "Literal", - "value": 0, - "raw": "0", - "range": [ - 4991, - 4992 - ], - "loc": { - "start": { - "line": 160, - "column": 24 - }, - "end": { - "line": 160, - "column": 25 - } - } - }, - "range": [ - 4987, - 4992 - ], - "loc": { - "start": { - "line": 160, - "column": 20 - }, - "end": { - "line": 160, - "column": 25 - } - } - } - ], - "kind": "let", - "range": [ - 4140, - 4993 - ], - "loc": { - "start": { - "line": 135, - "column": 16 - }, - "end": { - "line": 160, - "column": 26 - } - }, - "leadingComments": [ - { - "type": "Line", - "value": "next: calculate all operations for this column", - "range": [ - 4075, - 4123 - ], - "loc": { - "start": { - "line": 134, - "column": 16 - }, - "end": { - "line": 134, - "column": 64 - } - } - } - ] - }, - { - "type": "ForStatement", - "init": null, - "test": { - "type": "BinaryExpression", - "operator": "<", - "left": { - "type": "Identifier", - "name": "k", - "range": [ - 5018, - 5019 - ], - "loc": { - "start": { - "line": 162, - "column": 23 - }, - "end": { - "line": 162, - "column": 24 - } - } - }, - "right": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "colIndex", - "range": [ - 5022, - 5030 - ], - "loc": { - "start": { - "line": 162, - "column": 27 - }, - "end": { - "line": 162, - "column": 35 - } - } - }, - "property": { - "type": "Identifier", - "name": "length", - "range": [ - 5031, - 5037 - ], - "loc": { - "start": { - "line": 162, - "column": 36 - }, - "end": { - "line": 162, - "column": 42 - } - } - }, - "range": [ - 5022, - 5037 - ], - "loc": { - "start": { - "line": 162, - "column": 27 - }, - "end": { - "line": 162, - "column": 42 - } - } - }, - "range": [ - 5018, - 5037 - ], - "loc": { - "start": { - "line": 162, - "column": 23 - }, - "end": { - "line": 162, - "column": 42 - } - } - }, - "update": { - "type": "UpdateExpression", - "operator": "++", - "argument": { - "type": "Identifier", - "name": "k", - "range": [ - 5039, - 5040 - ], - "loc": { - "start": { - "line": 162, - "column": 44 - }, - "end": { - "line": 162, - "column": 45 - } - } - }, - "prefix": false, - "range": [ - 5039, - 5042 - ], - "loc": { - "start": { - "line": 162, - "column": 44 - }, - "end": { - "line": 162, - "column": 47 - } - } - }, - "body": { - "type": "BlockStatement", - "body": [ - { - "type": "IfStatement", - "test": { - "type": "BinaryExpression", - "operator": "===", - "left": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "colIndex", - "range": [ - 5070, - 5078 - ], - "loc": { - "start": { - "line": 163, - "column": 24 - }, - "end": { - "line": 163, - "column": 32 - } - } - }, - "property": { - "type": "Identifier", - "name": "k", - "range": [ - 5079, - 5080 - ], - "loc": { - "start": { - "line": 163, - "column": 33 - }, - "end": { - "line": 163, - "column": 34 - } - } - }, - "range": [ - 5070, - 5081 - ], - "loc": { - "start": { - "line": 163, - "column": 24 - }, - "end": { - "line": 163, - "column": 35 - } - } - }, - "right": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "ucolIndex", - "range": [ - 5086, - 5095 - ], - "loc": { - "start": { - "line": 163, - "column": 40 - }, - "end": { - "line": 163, - "column": 49 - } - } - }, - "property": { - "type": "Identifier", - "name": "ucol", - "range": [ - 5096, - 5100 - ], - "loc": { - "start": { - "line": 163, - "column": 50 - }, - "end": { - "line": 163, - "column": 54 - } - } - }, - "range": [ - 5086, - 5101 - ], - "loc": { - "start": { - "line": 163, - "column": 40 - }, - "end": { - "line": 163, - "column": 55 - } - } - }, - "range": [ - 5070, - 5101 - ], - "loc": { - "start": { - "line": 163, - "column": 24 - }, - "end": { - "line": 163, - "column": 55 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "UpdateExpression", - "operator": "++", - "argument": { - "type": "Identifier", - "name": "mThisCol", - "range": [ - 5129, - 5137 - ], - "loc": { - "start": { - "line": 164, - "column": 24 - }, - "end": { - "line": 164, - "column": 32 - } - } - }, - "prefix": false, - "range": [ - 5129, - 5139 - ], - "loc": { - "start": { - "line": 164, - "column": 24 - }, - "end": { - "line": 164, - "column": 34 - } - } - }, - "range": [ - 5129, - 5140 - ], - "loc": { - "start": { - "line": 164, - "column": 24 - }, - "end": { - "line": 164, - "column": 35 - } - } - }, - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "opsThisCol", - "range": [ - 5165, - 5175 - ], - "loc": { - "start": { - "line": 165, - "column": 24 - }, - "end": { - "line": 165, - "column": 34 - } - } - }, - "property": { - "type": "Identifier", - "name": "mThisCol", - "range": [ - 5176, - 5184 - ], - "loc": { - "start": { - "line": 165, - "column": 35 - }, - "end": { - "line": 165, - "column": 43 - } - } - }, - "range": [ - 5165, - 5185 - ], - "loc": { - "start": { - "line": 165, - "column": 24 - }, - "end": { - "line": 165, - "column": 44 - } - } - }, - "right": { - "type": "CallExpression", - "callee": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "operation", - "range": [ - 5188, - 5197 - ], - "loc": { - "start": { - "line": 165, - "column": 47 - }, - "end": { - "line": 165, - "column": 56 - } - } - }, - "property": { - "type": "Identifier", - "name": "k", - "range": [ - 5198, - 5199 - ], - "loc": { - "start": { - "line": 165, - "column": 57 - }, - "end": { - "line": 165, - "column": 58 - } - } - }, - "range": [ - 5188, - 5200 - ], - "loc": { - "start": { - "line": 165, - "column": 47 - }, - "end": { - "line": 165, - "column": 59 - } - } - }, - "property": { - "type": "Identifier", - "name": "toLowerCase", - "range": [ - 5201, - 5212 - ], - "loc": { - "start": { - "line": 165, - "column": 60 - }, - "end": { - "line": 165, - "column": 71 - } - } - }, - "range": [ - 5188, - 5212 - ], - "loc": { - "start": { - "line": 165, - "column": 47 - }, - "end": { - "line": 165, - "column": 71 - } - } - }, - "arguments": [], - "range": [ - 5188, - 5214 - ], - "loc": { - "start": { - "line": 165, - "column": 47 - }, - "end": { - "line": 165, - "column": 73 - } - } - }, - "range": [ - 5165, - 5214 - ], - "loc": { - "start": { - "line": 165, - "column": 24 - }, - "end": { - "line": 165, - "column": 73 - } - } - }, - "range": [ - 5165, - 5215 - ], - "loc": { - "start": { - "line": 165, - "column": 24 - }, - "end": { - "line": 165, - "column": 74 - } - } - }, - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "decThisCol", - "range": [ - 5240, - 5250 - ], - "loc": { - "start": { - "line": 166, - "column": 24 - }, - "end": { - "line": 166, - "column": 34 - } - } - }, - "property": { - "type": "Identifier", - "name": "mThisCol", - "range": [ - 5251, - 5259 - ], - "loc": { - "start": { - "line": 166, - "column": 35 - }, - "end": { - "line": 166, - "column": 43 - } - } - }, - "range": [ - 5240, - 5260 - ], - "loc": { - "start": { - "line": 166, - "column": 24 - }, - "end": { - "line": 166, - "column": 44 - } - } - }, - "right": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "decimalPrecision", - "range": [ - 5263, - 5279 - ], - "loc": { - "start": { - "line": 166, - "column": 47 - }, - "end": { - "line": 166, - "column": 63 - } - } - }, - "property": { - "type": "Identifier", - "name": "k", - "range": [ - 5280, - 5281 - ], - "loc": { - "start": { - "line": 166, - "column": 64 - }, - "end": { - "line": 166, - "column": 65 - } - } - }, - "range": [ - 5263, - 5282 - ], - "loc": { - "start": { - "line": 166, - "column": 47 - }, - "end": { - "line": 166, - "column": 66 - } - } - }, - "range": [ - 5240, - 5282 - ], - "loc": { - "start": { - "line": 166, - "column": 24 - }, - "end": { - "line": 166, - "column": 66 - } - } - }, - "range": [ - 5240, - 5283 - ], - "loc": { - "start": { - "line": 166, - "column": 24 - }, - "end": { - "line": 166, - "column": 67 - } - } - }, - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "labThisCol", - "range": [ - 5308, - 5318 - ], - "loc": { - "start": { - "line": 167, - "column": 24 - }, - "end": { - "line": 167, - "column": 34 - } - } - }, - "property": { - "type": "Identifier", - "name": "mThisCol", - "range": [ - 5319, - 5327 - ], - "loc": { - "start": { - "line": 167, - "column": 35 - }, - "end": { - "line": 167, - "column": 43 - } - } - }, - "range": [ - 5308, - 5328 - ], - "loc": { - "start": { - "line": 167, - "column": 24 - }, - "end": { - "line": 167, - "column": 44 - } - } - }, - "right": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "labelId", - "range": [ - 5331, - 5338 - ], - "loc": { - "start": { - "line": 167, - "column": 47 - }, - "end": { - "line": 167, - "column": 54 - } - } - }, - "property": { - "type": "Identifier", - "name": "k", - "range": [ - 5339, - 5340 - ], - "loc": { - "start": { - "line": 167, - "column": 55 - }, - "end": { - "line": 167, - "column": 56 - } - } - }, - "range": [ - 5331, - 5341 - ], - "loc": { - "start": { - "line": 167, - "column": 47 - }, - "end": { - "line": 167, - "column": 57 - } - } - }, - "range": [ - 5308, - 5341 - ], - "loc": { - "start": { - "line": 167, - "column": 24 - }, - "end": { - "line": 167, - "column": 57 - } - } - }, - "range": [ - 5308, - 5342 - ], - "loc": { - "start": { - "line": 167, - "column": 24 - }, - "end": { - "line": 167, - "column": 58 - } - } - }, - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "oTypeThisCol", - "range": [ - 5367, - 5379 - ], - "loc": { - "start": { - "line": 168, - "column": 24 - }, - "end": { - "line": 168, - "column": 36 - } - } - }, - "right": { - "type": "ConditionalExpression", - "test": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "isArray", - "range": [ - 5382, - 5389 - ], - "loc": { - "start": { - "line": 168, - "column": 39 - }, - "end": { - "line": 168, - "column": 46 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "outputType", - "range": [ - 5390, - 5400 - ], - "loc": { - "start": { - "line": 168, - "column": 47 - }, - "end": { - "line": 168, - "column": 57 - } - } - } - ], - "range": [ - 5382, - 5401 - ], - "loc": { - "start": { - "line": 168, - "column": 39 - }, - "end": { - "line": 168, - "column": 58 - } - } - }, - "consequent": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "outputType", - "range": [ - 5432, - 5442 - ], - "loc": { - "start": { - "line": 169, - "column": 28 - }, - "end": { - "line": 169, - "column": 38 - } - } - }, - "property": { - "type": "Identifier", - "name": "k", - "range": [ - 5443, - 5444 - ], - "loc": { - "start": { - "line": 169, - "column": 39 - }, - "end": { - "line": 169, - "column": 40 - } - } - }, - "range": [ - 5432, - 5445 - ], - "loc": { - "start": { - "line": 169, - "column": 28 - }, - "end": { - "line": 169, - "column": 41 - } - } - }, - "alternate": { - "type": "Literal", - "value": null, - "raw": "null", - "range": [ - 5448, - 5452 - ], - "loc": { - "start": { - "line": 169, - "column": 44 - }, - "end": { - "line": 169, - "column": 48 - } - } - }, - "range": [ - 5382, - 5452 - ], - "loc": { - "start": { - "line": 168, - "column": 39 - }, - "end": { - "line": 169, - "column": 48 - } - } - }, - "range": [ - 5367, - 5452 - ], - "loc": { - "start": { - "line": 168, - "column": 24 - }, - "end": { - "line": 169, - "column": 48 - } - } - }, - "range": [ - 5367, - 5453 - ], - "loc": { - "start": { - "line": 168, - "column": 24 - }, - "end": { - "line": 169, - "column": 49 - } - } - }, - { - "type": "SwitchStatement", - "discriminant": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "opsThisCol", - "range": [ - 5487, - 5497 - ], - "loc": { - "start": { - "line": 171, - "column": 32 - }, - "end": { - "line": 171, - "column": 42 - } - } - }, - "property": { - "type": "Identifier", - "name": "mThisCol", - "range": [ - 5498, - 5506 - ], - "loc": { - "start": { - "line": 171, - "column": 43 - }, - "end": { - "line": 171, - "column": 51 - } - } - }, - "range": [ - 5487, - 5507 - ], - "loc": { - "start": { - "line": 171, - "column": 32 - }, - "end": { - "line": 171, - "column": 52 - } - } - }, - "cases": [ - { - "type": "SwitchCase", - "test": { - "type": "Literal", - "value": "mean", - "raw": "'mean'", - "range": [ - 5544, - 5550 - ], - "loc": { - "start": { - "line": 172, - "column": 33 - }, - "end": { - "line": 172, - "column": 39 - } - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "meanFlag", - "range": [ - 5584, - 5592 - ], - "loc": { - "start": { - "line": 173, - "column": 32 - }, - "end": { - "line": 173, - "column": 40 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 5595, - 5596 - ], - "loc": { - "start": { - "line": 173, - "column": 43 - }, - "end": { - "line": 173, - "column": 44 - } - } - }, - "range": [ - 5584, - 5596 - ], - "loc": { - "start": { - "line": 173, - "column": 32 - }, - "end": { - "line": 173, - "column": 44 - } - } - }, - "range": [ - 5584, - 5597 - ], - "loc": { - "start": { - "line": 173, - "column": 32 - }, - "end": { - "line": 173, - "column": 45 - } - } - }, - { - "type": "BreakStatement", - "label": null, - "range": [ - 5630, - 5636 - ], - "loc": { - "start": { - "line": 174, - "column": 32 - }, - "end": { - "line": 174, - "column": 38 - } - } - } - ], - "range": [ - 5539, - 5636 - ], - "loc": { - "start": { - "line": 172, - "column": 28 - }, - "end": { - "line": 174, - "column": 38 - } - } - }, - { - "type": "SwitchCase", - "test": { - "type": "Literal", - "value": "sum", - "raw": "'sum'", - "range": [ - 5670, - 5675 - ], - "loc": { - "start": { - "line": 175, - "column": 33 - }, - "end": { - "line": 175, - "column": 38 - } - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "sumFlag", - "range": [ - 5709, - 5716 - ], - "loc": { - "start": { - "line": 176, - "column": 32 - }, - "end": { - "line": 176, - "column": 39 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 5719, - 5720 - ], - "loc": { - "start": { - "line": 176, - "column": 42 - }, - "end": { - "line": 176, - "column": 43 - } - } - }, - "range": [ - 5709, - 5720 - ], - "loc": { - "start": { - "line": 176, - "column": 32 - }, - "end": { - "line": 176, - "column": 43 - } - } - }, - "range": [ - 5709, - 5721 - ], - "loc": { - "start": { - "line": 176, - "column": 32 - }, - "end": { - "line": 176, - "column": 44 - } - } - }, - { - "type": "BreakStatement", - "label": null, - "range": [ - 5754, - 5760 - ], - "loc": { - "start": { - "line": 177, - "column": 32 - }, - "end": { - "line": 177, - "column": 38 - } - } - } - ], - "range": [ - 5665, - 5760 - ], - "loc": { - "start": { - "line": 175, - "column": 28 - }, - "end": { - "line": 177, - "column": 38 - } - } - }, - { - "type": "SwitchCase", - "test": { - "type": "Literal", - "value": "min", - "raw": "'min'", - "range": [ - 5794, - 5799 - ], - "loc": { - "start": { - "line": 178, - "column": 33 - }, - "end": { - "line": 178, - "column": 38 - } - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "minFlag", - "range": [ - 5833, - 5840 - ], - "loc": { - "start": { - "line": 179, - "column": 32 - }, - "end": { - "line": 179, - "column": 39 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 5843, - 5844 - ], - "loc": { - "start": { - "line": 179, - "column": 42 - }, - "end": { - "line": 179, - "column": 43 - } - } - }, - "range": [ - 5833, - 5844 - ], - "loc": { - "start": { - "line": 179, - "column": 32 - }, - "end": { - "line": 179, - "column": 43 - } - } - }, - "range": [ - 5833, - 5845 - ], - "loc": { - "start": { - "line": 179, - "column": 32 - }, - "end": { - "line": 179, - "column": 44 - } - } - }, - { - "type": "BreakStatement", - "label": null, - "range": [ - 5878, - 5884 - ], - "loc": { - "start": { - "line": 180, - "column": 32 - }, - "end": { - "line": 180, - "column": 38 - } - } - } - ], - "range": [ - 5789, - 5884 - ], - "loc": { - "start": { - "line": 178, - "column": 28 - }, - "end": { - "line": 180, - "column": 38 - } - } - }, - { - "type": "SwitchCase", - "test": { - "type": "Literal", - "value": "max", - "raw": "'max'", - "range": [ - 5918, - 5923 - ], - "loc": { - "start": { - "line": 181, - "column": 33 - }, - "end": { - "line": 181, - "column": 38 - } - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "maxFlag", - "range": [ - 5957, - 5964 - ], - "loc": { - "start": { - "line": 182, - "column": 32 - }, - "end": { - "line": 182, - "column": 39 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 5967, - 5968 - ], - "loc": { - "start": { - "line": 182, - "column": 42 - }, - "end": { - "line": 182, - "column": 43 - } - } - }, - "range": [ - 5957, - 5968 - ], - "loc": { - "start": { - "line": 182, - "column": 32 - }, - "end": { - "line": 182, - "column": 43 - } - } - }, - "range": [ - 5957, - 5969 - ], - "loc": { - "start": { - "line": 182, - "column": 32 - }, - "end": { - "line": 182, - "column": 44 - } - } - }, - { - "type": "BreakStatement", - "label": null, - "range": [ - 6002, - 6008 - ], - "loc": { - "start": { - "line": 183, - "column": 32 - }, - "end": { - "line": 183, - "column": 38 - } - } - } - ], - "range": [ - 5913, - 6008 - ], - "loc": { - "start": { - "line": 181, - "column": 28 - }, - "end": { - "line": 183, - "column": 38 - } - } - }, - { - "type": "SwitchCase", - "test": { - "type": "Literal", - "value": "median", - "raw": "'median'", - "range": [ - 6042, - 6050 - ], - "loc": { - "start": { - "line": 184, - "column": 33 - }, - "end": { - "line": 184, - "column": 41 - } - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "medFlag", - "range": [ - 6084, - 6091 - ], - "loc": { - "start": { - "line": 185, - "column": 32 - }, - "end": { - "line": 185, - "column": 39 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 6094, - 6095 - ], - "loc": { - "start": { - "line": 185, - "column": 42 - }, - "end": { - "line": 185, - "column": 43 - } - } - }, - "range": [ - 6084, - 6095 - ], - "loc": { - "start": { - "line": 185, - "column": 32 - }, - "end": { - "line": 185, - "column": 43 - } - } - }, - "range": [ - 6084, - 6096 - ], - "loc": { - "start": { - "line": 185, - "column": 32 - }, - "end": { - "line": 185, - "column": 44 - } - } - }, - { - "type": "BreakStatement", - "label": null, - "range": [ - 6129, - 6135 - ], - "loc": { - "start": { - "line": 186, - "column": 32 - }, - "end": { - "line": 186, - "column": 38 - } - } - } - ], - "range": [ - 6037, - 6135 - ], - "loc": { - "start": { - "line": 184, - "column": 28 - }, - "end": { - "line": 186, - "column": 38 - } - } - }, - { - "type": "SwitchCase", - "test": { - "type": "Literal", - "value": "q1", - "raw": "'q1'", - "range": [ - 6169, - 6173 - ], - "loc": { - "start": { - "line": 187, - "column": 33 - }, - "end": { - "line": 187, - "column": 37 - } - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "q1Flag", - "range": [ - 6207, - 6213 - ], - "loc": { - "start": { - "line": 188, - "column": 32 - }, - "end": { - "line": 188, - "column": 38 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 6216, - 6217 - ], - "loc": { - "start": { - "line": 188, - "column": 41 - }, - "end": { - "line": 188, - "column": 42 - } - } - }, - "range": [ - 6207, - 6217 - ], - "loc": { - "start": { - "line": 188, - "column": 32 - }, - "end": { - "line": 188, - "column": 42 - } - } - }, - "range": [ - 6207, - 6218 - ], - "loc": { - "start": { - "line": 188, - "column": 32 - }, - "end": { - "line": 188, - "column": 43 - } - } - }, - { - "type": "BreakStatement", - "label": null, - "range": [ - 6251, - 6257 - ], - "loc": { - "start": { - "line": 189, - "column": 32 - }, - "end": { - "line": 189, - "column": 38 - } - } - } - ], - "range": [ - 6164, - 6257 - ], - "loc": { - "start": { - "line": 187, - "column": 28 - }, - "end": { - "line": 189, - "column": 38 - } - } - }, - { - "type": "SwitchCase", - "test": { - "type": "Literal", - "value": "q3", - "raw": "'q3'", - "range": [ - 6291, - 6295 - ], - "loc": { - "start": { - "line": 190, - "column": 33 - }, - "end": { - "line": 190, - "column": 37 - } - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "q3Flag", - "range": [ - 6329, - 6335 - ], - "loc": { - "start": { - "line": 191, - "column": 32 - }, - "end": { - "line": 191, - "column": 38 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 6338, - 6339 - ], - "loc": { - "start": { - "line": 191, - "column": 41 - }, - "end": { - "line": 191, - "column": 42 - } - } - }, - "range": [ - 6329, - 6339 - ], - "loc": { - "start": { - "line": 191, - "column": 32 - }, - "end": { - "line": 191, - "column": 42 - } - } - }, - "range": [ - 6329, - 6340 - ], - "loc": { - "start": { - "line": 191, - "column": 32 - }, - "end": { - "line": 191, - "column": 43 - } - } - }, - { - "type": "BreakStatement", - "label": null, - "range": [ - 6373, - 6379 - ], - "loc": { - "start": { - "line": 192, - "column": 32 - }, - "end": { - "line": 192, - "column": 38 - } - } - } - ], - "range": [ - 6286, - 6379 - ], - "loc": { - "start": { - "line": 190, - "column": 28 - }, - "end": { - "line": 192, - "column": 38 - } - } - } - ], - "range": [ - 5479, - 6405 - ], - "loc": { - "start": { - "line": 171, - "column": 24 - }, - "end": { - "line": 193, - "column": 25 - } - } - } - ], - "range": [ - 5103, - 6427 - ], - "loc": { - "start": { - "line": 163, - "column": 57 + "line": 194, + "column": 16 }, "end": { "line": 194, - "column": 21 - } - } - }, - "alternate": null, - "range": [ - 5066, - 6427 - ], - "loc": { - "start": { - "line": 163, - "column": 20 - }, - "end": { - "line": 194, - "column": 21 - } - } - } - ], - "range": [ - 5044, - 6445 - ], - "loc": { - "start": { - "line": 162, - "column": 49 - }, - "end": { - "line": 195, - "column": 17 - } - } - }, - "range": [ - 5011, - 6445 - ], - "loc": { - "start": { - "line": 162, - "column": 16 - }, - "end": { - "line": 195, - "column": 17 - } - } - }, - { - "type": "ForStatement", - "init": null, - "test": { - "type": "BinaryExpression", - "operator": "<", - "left": { - "type": "Identifier", - "name": "j", - "range": [ - 6470, - 6471 - ], - "loc": { - "start": { - "line": 197, - "column": 23 - }, - "end": { - "line": 197, - "column": 24 - } - } - }, - "right": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "colvalues", - "range": [ - 6474, - 6483 - ], - "loc": { - "start": { - "line": 197, - "column": 27 - }, - "end": { - "line": 197, - "column": 36 + "column": 20 } } }, "property": { "type": "Identifier", - "name": "ucol", + "name": "emitter", "range": [ - 6484, - 6488 + 5803, + 5810 ], "loc": { "start": { - "line": 197, - "column": 37 + "line": 194, + "column": 21 }, "end": { - "line": 197, - "column": 41 + "line": 194, + "column": 28 } } }, "range": [ - 6474, - 6489 + 5798, + 5810 ], "loc": { "start": { - "line": 197, - "column": 27 + "line": 194, + "column": 16 }, "end": { - "line": 197, - "column": 42 + "line": 194, + "column": 28 } } }, "property": { "type": "Identifier", - "name": "length", + "name": "emit", "range": [ - 6490, - 6496 + 5811, + 5815 + ], + "loc": { + "start": { + "line": 194, + "column": 29 + }, + "end": { + "line": 194, + "column": 33 + } + } + }, + "range": [ + 5798, + 5815 + ], + "loc": { + "start": { + "line": 194, + "column": 16 + }, + "end": { + "line": 194, + "column": 33 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "before-column-calc", + "raw": "'before-column-calc'", + "range": [ + 5837, + 5857 + ], + "loc": { + "start": { + "line": 195, + "column": 20 + }, + "end": { + "line": 195, + "column": 40 + } + } + }, + { + "type": "Identifier", + "name": "tf", + "range": [ + 5879, + 5881 + ], + "loc": { + "start": { + "line": 196, + "column": 20 + }, + "end": { + "line": 196, + "column": 22 + } + } + }, + { + "type": "ThisExpression", + "range": [ + 5903, + 5907 ], "loc": { "start": { "line": 197, - "column": 43 + "column": 20 }, "end": { "line": 197, - "column": 49 + "column": 24 } } }, - "range": [ - 6474, - 6496 - ], - "loc": { - "start": { - "line": 197, - "column": 27 - }, - "end": { - "line": 197, - "column": 49 - } - } - }, - "range": [ - 6470, - 6496 - ], - "loc": { - "start": { - "line": 197, - "column": 23 - }, - "end": { - "line": 197, - "column": 49 - } - } - }, - "update": { - "type": "UpdateExpression", - "operator": "++", - "argument": { - "type": "Identifier", - "name": "j", - "range": [ - 6498, - 6499 - ], - "loc": { - "start": { - "line": 197, - "column": 51 - }, - "end": { - "line": 197, - "column": 52 - } - } - }, - "prefix": false, - "range": [ - 6498, - 6501 - ], - "loc": { - "start": { - "line": 197, - "column": 51 - }, - "end": { - "line": 197, - "column": 54 - } - } - }, - "body": { - "type": "BlockStatement", - "body": [ { - "type": "IfStatement", - "test": { - "type": "LogicalExpression", - "operator": "||", - "left": { - "type": "LogicalExpression", - "operator": "||", - "left": { - "type": "BinaryExpression", - "operator": "===", - "left": { - "type": "Identifier", - "name": "q1Flag", - "range": [ - 6606, - 6612 - ], - "loc": { - "start": { - "line": 199, - "column": 25 - }, - "end": { - "line": 199, - "column": 31 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 6617, - 6618 - ], - "loc": { - "start": { - "line": 199, - "column": 36 - }, - "end": { - "line": 199, - "column": 37 - } - } - }, - "range": [ - 6606, - 6618 - ], - "loc": { - "start": { - "line": 199, - "column": 25 - }, - "end": { - "line": 199, - "column": 37 - } - } - }, - "right": { - "type": "BinaryExpression", - "operator": "===", - "left": { - "type": "Identifier", - "name": "q3Flag", - "range": [ - 6624, - 6630 - ], - "loc": { - "start": { - "line": 199, - "column": 43 - }, - "end": { - "line": 199, - "column": 49 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 6635, - 6636 - ], - "loc": { - "start": { - "line": 199, - "column": 54 - }, - "end": { - "line": 199, - "column": 55 - } - } - }, - "range": [ - 6624, - 6636 - ], - "loc": { - "start": { - "line": 199, - "column": 43 - }, - "end": { - "line": 199, - "column": 55 - } - } - }, - "range": [ - 6605, - 6637 - ], - "loc": { - "start": { - "line": 199, - "column": 24 - }, - "end": { - "line": 199, - "column": 56 - } - } - }, - "right": { - "type": "BinaryExpression", - "operator": "===", - "left": { - "type": "Identifier", - "name": "medFlag", - "range": [ - 6642, - 6649 - ], - "loc": { - "start": { - "line": 199, - "column": 61 - }, - "end": { - "line": 199, - "column": 68 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 6654, - 6655 - ], - "loc": { - "start": { - "line": 199, - "column": 73 - }, - "end": { - "line": 199, - "column": 74 - } - } - }, - "range": [ - 6642, - 6655 - ], - "loc": { - "start": { - "line": 199, - "column": 61 - }, - "end": { - "line": 199, - "column": 74 - } - } - }, + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "uIndexes", "range": [ - 6605, - 6656 + 5929, + 5937 ], "loc": { "start": { - "line": 199, - "column": 24 + "line": 198, + "column": 20 }, "end": { - "line": 199, - "column": 75 + "line": 198, + "column": 28 } } }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "IfStatement", - "test": { - "type": "BinaryExpression", - "operator": "<", - "left": { - "type": "Identifier", - "name": "j", - "range": [ - 6688, - 6689 - ], - "loc": { - "start": { - "line": 200, - "column": 28 - }, - "end": { - "line": 200, - "column": 29 - } - } - }, - "right": { - "type": "BinaryExpression", - "operator": "-", - "left": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "colvalues", - "range": [ - 6692, - 6701 - ], - "loc": { - "start": { - "line": 200, - "column": 32 - }, - "end": { - "line": 200, - "column": 41 - } - } - }, - "property": { - "type": "Identifier", - "name": "ucol", - "range": [ - 6702, - 6706 - ], - "loc": { - "start": { - "line": 200, - "column": 42 - }, - "end": { - "line": 200, - "column": 46 - } - } - }, - "range": [ - 6692, - 6707 - ], - "loc": { - "start": { - "line": 200, - "column": 32 - }, - "end": { - "line": 200, - "column": 47 - } - } - }, - "property": { - "type": "Identifier", - "name": "length", - "range": [ - 6708, - 6714 - ], - "loc": { - "start": { - "line": 200, - "column": 48 - }, - "end": { - "line": 200, - "column": 54 - } - } - }, - "range": [ - 6692, - 6714 - ], - "loc": { - "start": { - "line": 200, - "column": 32 - }, - "end": { - "line": 200, - "column": 54 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 6717, - 6718 - ], - "loc": { - "start": { - "line": 200, - "column": 57 - }, - "end": { - "line": 200, - "column": 58 - } - } - }, - "range": [ - 6692, - 6718 - ], - "loc": { - "start": { - "line": 200, - "column": 32 - }, - "end": { - "line": 200, - "column": 58 - } - } - }, - "range": [ - 6688, - 6718 - ], - "loc": { - "start": { - "line": 200, - "column": 28 - }, - "end": { - "line": 200, - "column": 58 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ForStatement", - "init": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "k", - "range": [ - 6755, - 6756 - ], - "loc": { - "start": { - "line": 201, - "column": 33 - }, - "end": { - "line": 201, - "column": 34 - } - } - }, - "right": { - "type": "BinaryExpression", - "operator": "+", - "left": { - "type": "Identifier", - "name": "j", - "range": [ - 6759, - 6760 - ], - "loc": { - "start": { - "line": 201, - "column": 37 - }, - "end": { - "line": 201, - "column": 38 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 6763, - 6764 - ], - "loc": { - "start": { - "line": 201, - "column": 41 - }, - "end": { - "line": 201, - "column": 42 - } - } - }, - "range": [ - 6759, - 6764 - ], - "loc": { - "start": { - "line": 201, - "column": 37 - }, - "end": { - "line": 201, - "column": 42 - } - } - }, - "range": [ - 6755, - 6764 - ], - "loc": { - "start": { - "line": 201, - "column": 33 - }, - "end": { - "line": 201, - "column": 42 - } - } - }, - "test": { - "type": "BinaryExpression", - "operator": "<", - "left": { - "type": "Identifier", - "name": "k", - "range": [ - 6766, - 6767 - ], - "loc": { - "start": { - "line": 201, - "column": 44 - }, - "end": { - "line": 201, - "column": 45 - } - } - }, - "right": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "colvalues", - "range": [ - 6770, - 6779 - ], - "loc": { - "start": { - "line": 201, - "column": 48 - }, - "end": { - "line": 201, - "column": 57 - } - } - }, - "property": { - "type": "Identifier", - "name": "ucol", - "range": [ - 6780, - 6784 - ], - "loc": { - "start": { - "line": 201, - "column": 58 - }, - "end": { - "line": 201, - "column": 62 - } - } - }, - "range": [ - 6770, - 6785 - ], - "loc": { - "start": { - "line": 201, - "column": 48 - }, - "end": { - "line": 201, - "column": 63 - } - } - }, - "property": { - "type": "Identifier", - "name": "length", - "range": [ - 6786, - 6792 - ], - "loc": { - "start": { - "line": 201, - "column": 64 - }, - "end": { - "line": 201, - "column": 70 - } - } - }, - "range": [ - 6770, - 6792 - ], - "loc": { - "start": { - "line": 201, - "column": 48 - }, - "end": { - "line": 201, - "column": 70 - } - } - }, - "range": [ - 6766, - 6792 - ], - "loc": { - "start": { - "line": 201, - "column": 44 - }, - "end": { - "line": 201, - "column": 70 - } - } - }, - "update": { - "type": "UpdateExpression", - "operator": "++", - "argument": { - "type": "Identifier", - "name": "k", - "range": [ - 6794, - 6795 - ], - "loc": { - "start": { - "line": 201, - "column": 72 - }, - "end": { - "line": 201, - "column": 73 - } - } - }, - "prefix": false, - "range": [ - 6794, - 6797 - ], - "loc": { - "start": { - "line": 201, - "column": 72 - }, - "end": { - "line": 201, - "column": 75 - } - } - }, - "body": { - "type": "BlockStatement", - "body": [ - { - "type": "IfStatement", - "test": { - "type": "BinaryExpression", - "operator": "<", - "left": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "eval", - "range": [ - 6890, - 6894 - ], - "loc": { - "start": { - "line": 203, - "column": 36 - }, - "end": { - "line": 203, - "column": 40 - } - } - }, - "arguments": [ - { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "colvalues", - "range": [ - 6895, - 6904 - ], - "loc": { - "start": { - "line": 203, - "column": 41 - }, - "end": { - "line": 203, - "column": 50 - } - } - }, - "property": { - "type": "Identifier", - "name": "ucol", - "range": [ - 6905, - 6909 - ], - "loc": { - "start": { - "line": 203, - "column": 51 - }, - "end": { - "line": 203, - "column": 55 - } - } - }, - "range": [ - 6895, - 6910 - ], - "loc": { - "start": { - "line": 203, - "column": 41 - }, - "end": { - "line": 203, - "column": 56 - } - } - }, - "property": { - "type": "Identifier", - "name": "k", - "range": [ - 6911, - 6912 - ], - "loc": { - "start": { - "line": 203, - "column": 57 - }, - "end": { - "line": 203, - "column": 58 - } - } - }, - "range": [ - 6895, - 6913 - ], - "loc": { - "start": { - "line": 203, - "column": 41 - }, - "end": { - "line": 203, - "column": 59 - } - } - } - ], - "range": [ - 6890, - 6914 - ], - "loc": { - "start": { - "line": 203, - "column": 36 - }, - "end": { - "line": 203, - "column": 60 - } - } - }, - "right": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "eval", - "range": [ - 6953, - 6957 - ], - "loc": { - "start": { - "line": 204, - "column": 36 - }, - "end": { - "line": 204, - "column": 40 - } - } - }, - "arguments": [ - { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "colvalues", - "range": [ - 6958, - 6967 - ], - "loc": { - "start": { - "line": 204, - "column": 41 - }, - "end": { - "line": 204, - "column": 50 - } - } - }, - "property": { - "type": "Identifier", - "name": "ucol", - "range": [ - 6968, - 6972 - ], - "loc": { - "start": { - "line": 204, - "column": 51 - }, - "end": { - "line": 204, - "column": 55 - } - } - }, - "range": [ - 6958, - 6973 - ], - "loc": { - "start": { - "line": 204, - "column": 41 - }, - "end": { - "line": 204, - "column": 56 - } - } - }, - "property": { - "type": "Identifier", - "name": "j", - "range": [ - 6974, - 6975 - ], - "loc": { - "start": { - "line": 204, - "column": 57 - }, - "end": { - "line": 204, - "column": 58 - } - } - }, - "range": [ - 6958, - 6976 - ], - "loc": { - "start": { - "line": 204, - "column": 41 - }, - "end": { - "line": 204, - "column": 59 - } - } - } - ], - "range": [ - 6953, - 6977 - ], - "loc": { - "start": { - "line": 204, - "column": 36 - }, - "end": { - "line": 204, - "column": 60 - } - } - }, - "range": [ - 6890, - 6977 - ], - "loc": { - "start": { - "line": 203, - "column": 36 - }, - "end": { - "line": 204, - "column": 60 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "temp", - "range": [ - 7073, - 7077 - ], - "loc": { - "start": { - "line": 206, - "column": 36 - }, - "end": { - "line": 206, - "column": 40 - } - } - }, - "right": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "colvalues", - "range": [ - 7080, - 7089 - ], - "loc": { - "start": { - "line": 206, - "column": 43 - }, - "end": { - "line": 206, - "column": 52 - } - } - }, - "property": { - "type": "Identifier", - "name": "ucol", - "range": [ - 7090, - 7094 - ], - "loc": { - "start": { - "line": 206, - "column": 53 - }, - "end": { - "line": 206, - "column": 57 - } - } - }, - "range": [ - 7080, - 7095 - ], - "loc": { - "start": { - "line": 206, - "column": 43 - }, - "end": { - "line": 206, - "column": 58 - } - } - }, - "property": { - "type": "Identifier", - "name": "j", - "range": [ - 7096, - 7097 - ], - "loc": { - "start": { - "line": 206, - "column": 59 - }, - "end": { - "line": 206, - "column": 60 - } - } - }, - "range": [ - 7080, - 7098 - ], - "loc": { - "start": { - "line": 206, - "column": 43 - }, - "end": { - "line": 206, - "column": 61 - } - } - }, - "range": [ - 7073, - 7098 - ], - "loc": { - "start": { - "line": 206, - "column": 36 - }, - "end": { - "line": 206, - "column": 61 - } - } - }, - "range": [ - 7073, - 7099 - ], - "loc": { - "start": { - "line": 206, - "column": 36 - }, - "end": { - "line": 206, - "column": 62 - } - }, - "leadingComments": [ - { - "type": "Block", - "value": " eslint-enable ", - "range": [ - 7017, - 7036 - ], - "loc": { - "start": { - "line": 205, - "column": 36 - }, - "end": { - "line": 205, - "column": 55 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "colvalues", - "range": [ - 7136, - 7145 - ], - "loc": { - "start": { - "line": 207, - "column": 36 - }, - "end": { - "line": 207, - "column": 45 - } - } - }, - "property": { - "type": "Identifier", - "name": "ucol", - "range": [ - 7146, - 7150 - ], - "loc": { - "start": { - "line": 207, - "column": 46 - }, - "end": { - "line": 207, - "column": 50 - } - } - }, - "range": [ - 7136, - 7151 - ], - "loc": { - "start": { - "line": 207, - "column": 36 - }, - "end": { - "line": 207, - "column": 51 - } - } - }, - "property": { - "type": "Identifier", - "name": "j", - "range": [ - 7152, - 7153 - ], - "loc": { - "start": { - "line": 207, - "column": 52 - }, - "end": { - "line": 207, - "column": 53 - } - } - }, - "range": [ - 7136, - 7154 - ], - "loc": { - "start": { - "line": 207, - "column": 36 - }, - "end": { - "line": 207, - "column": 54 - } - } - }, - "right": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "colvalues", - "range": [ - 7157, - 7166 - ], - "loc": { - "start": { - "line": 207, - "column": 57 - }, - "end": { - "line": 207, - "column": 66 - } - } - }, - "property": { - "type": "Identifier", - "name": "ucol", - "range": [ - 7167, - 7171 - ], - "loc": { - "start": { - "line": 207, - "column": 67 - }, - "end": { - "line": 207, - "column": 71 - } - } - }, - "range": [ - 7157, - 7172 - ], - "loc": { - "start": { - "line": 207, - "column": 57 - }, - "end": { - "line": 207, - "column": 72 - } - } - }, - "property": { - "type": "Identifier", - "name": "k", - "range": [ - 7173, - 7174 - ], - "loc": { - "start": { - "line": 207, - "column": 73 - }, - "end": { - "line": 207, - "column": 74 - } - } - }, - "range": [ - 7157, - 7175 - ], - "loc": { - "start": { - "line": 207, - "column": 57 - }, - "end": { - "line": 207, - "column": 75 - } - } - }, - "range": [ - 7136, - 7175 - ], - "loc": { - "start": { - "line": 207, - "column": 36 - }, - "end": { - "line": 207, - "column": 75 - } - } - }, - "range": [ - 7136, - 7176 - ], - "loc": { - "start": { - "line": 207, - "column": 36 - }, - "end": { - "line": 207, - "column": 76 - } - } - }, - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "colvalues", - "range": [ - 7213, - 7222 - ], - "loc": { - "start": { - "line": 208, - "column": 36 - }, - "end": { - "line": 208, - "column": 45 - } - } - }, - "property": { - "type": "Identifier", - "name": "ucol", - "range": [ - 7223, - 7227 - ], - "loc": { - "start": { - "line": 208, - "column": 46 - }, - "end": { - "line": 208, - "column": 50 - } - } - }, - "range": [ - 7213, - 7228 - ], - "loc": { - "start": { - "line": 208, - "column": 36 - }, - "end": { - "line": 208, - "column": 51 - } - } - }, - "property": { - "type": "Identifier", - "name": "k", - "range": [ - 7229, - 7230 - ], - "loc": { - "start": { - "line": 208, - "column": 52 - }, - "end": { - "line": 208, - "column": 53 - } - } - }, - "range": [ - 7213, - 7231 - ], - "loc": { - "start": { - "line": 208, - "column": 36 - }, - "end": { - "line": 208, - "column": 54 - } - } - }, - "right": { - "type": "Identifier", - "name": "temp", - "range": [ - 7234, - 7238 - ], - "loc": { - "start": { - "line": 208, - "column": 57 - }, - "end": { - "line": 208, - "column": 61 - } - } - }, - "range": [ - 7213, - 7238 - ], - "loc": { - "start": { - "line": 208, - "column": 36 - }, - "end": { - "line": 208, - "column": 61 - } - } - }, - "range": [ - 7213, - 7239 - ], - "loc": { - "start": { - "line": 208, - "column": 36 - }, - "end": { - "line": 208, - "column": 62 - } - } - } - ], - "range": [ - 6979, - 7273 - ], - "loc": { - "start": { - "line": 204, - "column": 62 - }, - "end": { - "line": 209, - "column": 33 - } - } - }, - "alternate": null, - "range": [ - 6886, - 7273 - ], - "loc": { - "start": { - "line": 203, - "column": 32 - }, - "end": { - "line": 209, - "column": 33 - } - }, - "leadingComments": [ - { - "type": "Block", - "value": " eslint-disable ", - "range": [ - 6833, - 6853 - ], - "loc": { - "start": { - "line": 202, - "column": 32 - }, - "end": { - "line": 202, - "column": 52 - } - } - } - ] - } - ], - "range": [ - 6799, - 7303 - ], - "loc": { - "start": { - "line": 201, - "column": 77 - }, - "end": { - "line": 210, - "column": 29 - } - } - }, - "range": [ - 6750, - 7303 - ], - "loc": { - "start": { - "line": 201, - "column": 28 - }, - "end": { - "line": 210, - "column": 29 - } - } - } - ], - "range": [ - 6720, - 7329 - ], - "loc": { - "start": { - "line": 200, - "column": 60 - }, - "end": { - "line": 211, - "column": 25 - } - } - }, - "alternate": null, - "range": [ - 6684, - 7329 - ], - "loc": { - "start": { - "line": 200, - "column": 24 - }, - "end": { - "line": 211, - "column": 25 - } - } - } - ], + "property": { + "type": "Identifier", + "name": "u", "range": [ - 6658, - 7351 + 5938, + 5939 ], "loc": { "start": { - "line": 199, - "column": 77 + "line": 198, + "column": 29 }, "end": { - "line": 212, - "column": 21 + "line": 198, + "column": 30 } } }, - "alternate": null, "range": [ - 6601, - 7351 + 5929, + 5940 + ], + "loc": { + "start": { + "line": 198, + "column": 20 + }, + "end": { + "line": 198, + "column": 31 + } + } + }, + { + "type": "Identifier", + "name": "curValues", + "range": [ + 5962, + 5971 ], "loc": { "start": { @@ -11514,9337 +9505,164 @@ "column": 20 }, "end": { - "line": 212, - "column": 21 - } - }, - "leadingComments": [ - { - "type": "Line", - "value": "sort the list for calculation of median and quartiles", - "range": [ - 6525, - 6580 - ], - "loc": { - "start": { - "line": 198, - "column": 20 - }, - "end": { - "line": 198, - "column": 75 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "cvalue", - "range": [ - 7376, - 7382 - ], - "loc": { - "start": { - "line": 213, - "column": 24 - }, - "end": { - "line": 213, - "column": 30 - } - } - }, - "init": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "parseFloat", - "range": [ - 7385, - 7395 - ], - "loc": { - "start": { - "line": 213, - "column": 33 - }, - "end": { - "line": 213, - "column": 43 - } - } - }, - "arguments": [ - { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "colvalues", - "range": [ - 7396, - 7405 - ], - "loc": { - "start": { - "line": 213, - "column": 44 - }, - "end": { - "line": 213, - "column": 53 - } - } - }, - "property": { - "type": "Identifier", - "name": "ucol", - "range": [ - 7406, - 7410 - ], - "loc": { - "start": { - "line": 213, - "column": 54 - }, - "end": { - "line": 213, - "column": 58 - } - } - }, - "range": [ - 7396, - 7411 - ], - "loc": { - "start": { - "line": 213, - "column": 44 - }, - "end": { - "line": 213, - "column": 59 - } - } - }, - "property": { - "type": "Identifier", - "name": "j", - "range": [ - 7412, - 7413 - ], - "loc": { - "start": { - "line": 213, - "column": 60 - }, - "end": { - "line": 213, - "column": 61 - } - } - }, - "range": [ - 7396, - 7414 - ], - "loc": { - "start": { - "line": 213, - "column": 44 - }, - "end": { - "line": 213, - "column": 62 - } - } - } - ], - "range": [ - 7385, - 7415 - ], - "loc": { - "start": { - "line": 213, - "column": 33 - }, - "end": { - "line": 213, - "column": 63 - } - } - }, - "range": [ - 7376, - 7415 - ], - "loc": { - "start": { - "line": 213, - "column": 24 - }, - "end": { - "line": 213, - "column": 63 - } - } - } - ], - "kind": "let", - "range": [ - 7372, - 7416 - ], - "loc": { - "start": { - "line": 213, - "column": 20 - }, - "end": { - "line": 213, - "column": 64 + "line": 199, + "column": 29 } } }, { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "theList", - "range": [ - 7437, - 7444 - ], - "loc": { - "start": { - "line": 214, - "column": 20 - }, - "end": { - "line": 214, - "column": 27 - } - } - }, - "property": { - "type": "Identifier", - "name": "j", - "range": [ - 7445, - 7446 - ], - "loc": { - "start": { - "line": 214, - "column": 28 - }, - "end": { - "line": 214, - "column": 29 - } - } - }, - "range": [ - 7437, - 7447 - ], - "loc": { - "start": { - "line": 214, - "column": 20 - }, - "end": { - "line": 214, - "column": 30 - } - } - }, - "right": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "parseFloat", - "range": [ - 7450, - 7460 - ], - "loc": { - "start": { - "line": 214, - "column": 33 - }, - "end": { - "line": 214, - "column": 43 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "cvalue", - "range": [ - 7461, - 7467 - ], - "loc": { - "start": { - "line": 214, - "column": 44 - }, - "end": { - "line": 214, - "column": 50 - } - } - } - ], - "range": [ - 7450, - 7468 - ], - "loc": { - "start": { - "line": 214, - "column": 33 - }, - "end": { - "line": 214, - "column": 51 - } - } - }, + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "operations", "range": [ - 7437, - 7468 + 5993, + 6003 ], "loc": { "start": { - "line": 214, + "line": 200, "column": 20 }, "end": { - "line": 214, - "column": 51 + "line": 200, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "i", + "range": [ + 6004, + 6005 + ], + "loc": { + "start": { + "line": 200, + "column": 31 + }, + "end": { + "line": 200, + "column": 32 } } }, "range": [ - 7437, - 7469 + 5993, + 6006 ], "loc": { "start": { - "line": 214, + "line": 200, "column": 20 }, "end": { - "line": 214, - "column": 52 + "line": 200, + "column": 33 } } }, { - "type": "IfStatement", - "test": { - "type": "UnaryExpression", - "operator": "!", - "argument": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "isNaN", - "range": [ - 7496, - 7501 - ], - "loc": { - "start": { - "line": 216, - "column": 25 - }, - "end": { - "line": 216, - "column": 30 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "cvalue", - "range": [ - 7502, - 7508 - ], - "loc": { - "start": { - "line": 216, - "column": 31 - }, - "end": { - "line": 216, - "column": 37 - } - } - } - ], - "range": [ - 7496, - 7509 - ], - "loc": { - "start": { - "line": 216, - "column": 25 - }, - "end": { - "line": 216, - "column": 38 - } - } - }, - "prefix": true, + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "precisions", "range": [ - 7495, - 7509 + 6028, + 6038 ], "loc": { "start": { - "line": 216, - "column": 24 + "line": 201, + "column": 20 }, "end": { - "line": 216, - "column": 38 + "line": 201, + "column": 30 } } }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "UpdateExpression", - "operator": "++", - "argument": { - "type": "Identifier", - "name": "nbvalues", - "range": [ - 7537, - 7545 - ], - "loc": { - "start": { - "line": 217, - "column": 24 - }, - "end": { - "line": 217, - "column": 32 - } - } - }, - "prefix": false, - "range": [ - 7537, - 7547 - ], - "loc": { - "start": { - "line": 217, - "column": 24 - }, - "end": { - "line": 217, - "column": 34 - } - } - }, - "range": [ - 7537, - 7548 - ], - "loc": { - "start": { - "line": 217, - "column": 24 - }, - "end": { - "line": 217, - "column": 35 - } - } - }, - { - "type": "IfStatement", - "test": { - "type": "LogicalExpression", - "operator": "||", - "left": { - "type": "BinaryExpression", - "operator": "===", - "left": { - "type": "Identifier", - "name": "sumFlag", - "range": [ - 7577, - 7584 - ], - "loc": { - "start": { - "line": 218, - "column": 28 - }, - "end": { - "line": 218, - "column": 35 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 7589, - 7590 - ], - "loc": { - "start": { - "line": 218, - "column": 40 - }, - "end": { - "line": 218, - "column": 41 - } - } - }, - "range": [ - 7577, - 7590 - ], - "loc": { - "start": { - "line": 218, - "column": 28 - }, - "end": { - "line": 218, - "column": 41 - } - } - }, - "right": { - "type": "BinaryExpression", - "operator": "===", - "left": { - "type": "Identifier", - "name": "meanFlag", - "range": [ - 7594, - 7602 - ], - "loc": { - "start": { - "line": 218, - "column": 45 - }, - "end": { - "line": 218, - "column": 53 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 7607, - 7608 - ], - "loc": { - "start": { - "line": 218, - "column": 58 - }, - "end": { - "line": 218, - "column": 59 - } - } - }, - "range": [ - 7594, - 7608 - ], - "loc": { - "start": { - "line": 218, - "column": 45 - }, - "end": { - "line": 218, - "column": 59 - } - } - }, - "range": [ - 7577, - 7608 - ], - "loc": { - "start": { - "line": 218, - "column": 28 - }, - "end": { - "line": 218, - "column": 59 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "+=", - "left": { - "type": "Identifier", - "name": "sumValue", - "range": [ - 7640, - 7648 - ], - "loc": { - "start": { - "line": 219, - "column": 28 - }, - "end": { - "line": 219, - "column": 36 - } - } - }, - "right": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "parseFloat", - "range": [ - 7652, - 7662 - ], - "loc": { - "start": { - "line": 219, - "column": 40 - }, - "end": { - "line": 219, - "column": 50 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "cvalue", - "range": [ - 7663, - 7669 - ], - "loc": { - "start": { - "line": 219, - "column": 51 - }, - "end": { - "line": 219, - "column": 57 - } - } - } - ], - "range": [ - 7652, - 7670 - ], - "loc": { - "start": { - "line": 219, - "column": 40 - }, - "end": { - "line": 219, - "column": 58 - } - } - }, - "range": [ - 7640, - 7670 - ], - "loc": { - "start": { - "line": 219, - "column": 28 - }, - "end": { - "line": 219, - "column": 58 - } - } - }, - "range": [ - 7640, - 7671 - ], - "loc": { - "start": { - "line": 219, - "column": 28 - }, - "end": { - "line": 219, - "column": 59 - } - } - } - ], - "range": [ - 7610, - 7697 - ], - "loc": { - "start": { - "line": 218, - "column": 61 - }, - "end": { - "line": 220, - "column": 25 - } - } - }, - "alternate": null, - "range": [ - 7573, - 7697 - ], - "loc": { - "start": { - "line": 218, - "column": 24 - }, - "end": { - "line": 220, - "column": 25 - } - } - }, - { - "type": "IfStatement", - "test": { - "type": "BinaryExpression", - "operator": "===", - "left": { - "type": "Identifier", - "name": "minFlag", - "range": [ - 7726, - 7733 - ], - "loc": { - "start": { - "line": 221, - "column": 28 - }, - "end": { - "line": 221, - "column": 35 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 7738, - 7739 - ], - "loc": { - "start": { - "line": 221, - "column": 40 - }, - "end": { - "line": 221, - "column": 41 - } - } - }, - "range": [ - 7726, - 7739 - ], - "loc": { - "start": { - "line": 221, - "column": 28 - }, - "end": { - "line": 221, - "column": 41 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "IfStatement", - "test": { - "type": "BinaryExpression", - "operator": "===", - "left": { - "type": "Identifier", - "name": "minValue", - "range": [ - 7775, - 7783 - ], - "loc": { - "start": { - "line": 222, - "column": 32 - }, - "end": { - "line": 222, - "column": 40 - } - } - }, - "right": { - "type": "Literal", - "value": null, - "raw": "null", - "range": [ - 7788, - 7792 - ], - "loc": { - "start": { - "line": 222, - "column": 45 - }, - "end": { - "line": 222, - "column": 49 - } - } - }, - "range": [ - 7775, - 7792 - ], - "loc": { - "start": { - "line": 222, - "column": 32 - }, - "end": { - "line": 222, - "column": 49 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "minValue", - "range": [ - 7828, - 7836 - ], - "loc": { - "start": { - "line": 223, - "column": 32 - }, - "end": { - "line": 223, - "column": 40 - } - } - }, - "right": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "parseFloat", - "range": [ - 7839, - 7849 - ], - "loc": { - "start": { - "line": 223, - "column": 43 - }, - "end": { - "line": 223, - "column": 53 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "cvalue", - "range": [ - 7850, - 7856 - ], - "loc": { - "start": { - "line": 223, - "column": 54 - }, - "end": { - "line": 223, - "column": 60 - } - } - } - ], - "range": [ - 7839, - 7857 - ], - "loc": { - "start": { - "line": 223, - "column": 43 - }, - "end": { - "line": 223, - "column": 61 - } - } - }, - "range": [ - 7828, - 7857 - ], - "loc": { - "start": { - "line": 223, - "column": 32 - }, - "end": { - "line": 223, - "column": 61 - } - } - }, - "range": [ - 7828, - 7858 - ], - "loc": { - "start": { - "line": 223, - "column": 32 - }, - "end": { - "line": 223, - "column": 62 - } - } - } - ], - "range": [ - 7794, - 7888 - ], - "loc": { - "start": { - "line": 222, - "column": 51 - }, - "end": { - "line": 224, - "column": 29 - } - } - }, - "alternate": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "minValue", - "range": [ - 7928, - 7936 - ], - "loc": { - "start": { - "line": 225, - "column": 32 - }, - "end": { - "line": 225, - "column": 40 - } - } - }, - "right": { - "type": "ConditionalExpression", - "test": { - "type": "BinaryExpression", - "operator": "<", - "left": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "parseFloat", - "range": [ - 7939, - 7949 - ], - "loc": { - "start": { - "line": 225, - "column": 43 - }, - "end": { - "line": 225, - "column": 53 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "cvalue", - "range": [ - 7950, - 7956 - ], - "loc": { - "start": { - "line": 225, - "column": 54 - }, - "end": { - "line": 225, - "column": 60 - } - } - } - ], - "range": [ - 7939, - 7957 - ], - "loc": { - "start": { - "line": 225, - "column": 43 - }, - "end": { - "line": 225, - "column": 61 - } - } - }, - "right": { - "type": "Identifier", - "name": "minValue", - "range": [ - 7960, - 7968 - ], - "loc": { - "start": { - "line": 225, - "column": 64 - }, - "end": { - "line": 225, - "column": 72 - } - } - }, - "range": [ - 7939, - 7968 - ], - "loc": { - "start": { - "line": 225, - "column": 43 - }, - "end": { - "line": 225, - "column": 72 - } - } - }, - "consequent": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "parseFloat", - "range": [ - 8007, - 8017 - ], - "loc": { - "start": { - "line": 226, - "column": 36 - }, - "end": { - "line": 226, - "column": 46 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "cvalue", - "range": [ - 8018, - 8024 - ], - "loc": { - "start": { - "line": 226, - "column": 47 - }, - "end": { - "line": 226, - "column": 53 - } - } - } - ], - "range": [ - 8007, - 8025 - ], - "loc": { - "start": { - "line": 226, - "column": 36 - }, - "end": { - "line": 226, - "column": 54 - } - } - }, - "alternate": { - "type": "Identifier", - "name": "minValue", - "range": [ - 8028, - 8036 - ], - "loc": { - "start": { - "line": 226, - "column": 57 - }, - "end": { - "line": 226, - "column": 65 - } - } - }, - "range": [ - 7939, - 8036 - ], - "loc": { - "start": { - "line": 225, - "column": 43 - }, - "end": { - "line": 226, - "column": 65 - } - } - }, - "range": [ - 7928, - 8036 - ], - "loc": { - "start": { - "line": 225, - "column": 32 - }, - "end": { - "line": 226, - "column": 65 - } - } - }, - "range": [ - 7928, - 8037 - ], - "loc": { - "start": { - "line": 225, - "column": 32 - }, - "end": { - "line": 226, - "column": 66 - } - } - } - ], - "range": [ - 7894, - 8067 - ], - "loc": { - "start": { - "line": 224, - "column": 35 - }, - "end": { - "line": 227, - "column": 29 - } - } - }, - "range": [ - 7771, - 8067 - ], - "loc": { - "start": { - "line": 222, - "column": 28 - }, - "end": { - "line": 227, - "column": 29 - } - } - } - ], - "range": [ - 7741, - 8093 - ], - "loc": { - "start": { - "line": 221, - "column": 43 - }, - "end": { - "line": 228, - "column": 25 - } - } - }, - "alternate": null, - "range": [ - 7722, - 8093 - ], - "loc": { - "start": { - "line": 221, - "column": 24 - }, - "end": { - "line": 228, - "column": 25 - } - } - }, - { - "type": "IfStatement", - "test": { - "type": "BinaryExpression", - "operator": "===", - "left": { - "type": "Identifier", - "name": "maxFlag", - "range": [ - 8122, - 8129 - ], - "loc": { - "start": { - "line": 229, - "column": 28 - }, - "end": { - "line": 229, - "column": 35 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 8134, - 8135 - ], - "loc": { - "start": { - "line": 229, - "column": 40 - }, - "end": { - "line": 229, - "column": 41 - } - } - }, - "range": [ - 8122, - 8135 - ], - "loc": { - "start": { - "line": 229, - "column": 28 - }, - "end": { - "line": 229, - "column": 41 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "IfStatement", - "test": { - "type": "BinaryExpression", - "operator": "===", - "left": { - "type": "Identifier", - "name": "maxValue", - "range": [ - 8171, - 8179 - ], - "loc": { - "start": { - "line": 230, - "column": 32 - }, - "end": { - "line": 230, - "column": 40 - } - } - }, - "right": { - "type": "Literal", - "value": null, - "raw": "null", - "range": [ - 8184, - 8188 - ], - "loc": { - "start": { - "line": 230, - "column": 45 - }, - "end": { - "line": 230, - "column": 49 - } - } - }, - "range": [ - 8171, - 8188 - ], - "loc": { - "start": { - "line": 230, - "column": 32 - }, - "end": { - "line": 230, - "column": 49 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "maxValue", - "range": [ - 8224, - 8232 - ], - "loc": { - "start": { - "line": 231, - "column": 32 - }, - "end": { - "line": 231, - "column": 40 - } - } - }, - "right": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "parseFloat", - "range": [ - 8235, - 8245 - ], - "loc": { - "start": { - "line": 231, - "column": 43 - }, - "end": { - "line": 231, - "column": 53 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "cvalue", - "range": [ - 8246, - 8252 - ], - "loc": { - "start": { - "line": 231, - "column": 54 - }, - "end": { - "line": 231, - "column": 60 - } - } - } - ], - "range": [ - 8235, - 8253 - ], - "loc": { - "start": { - "line": 231, - "column": 43 - }, - "end": { - "line": 231, - "column": 61 - } - } - }, - "range": [ - 8224, - 8253 - ], - "loc": { - "start": { - "line": 231, - "column": 32 - }, - "end": { - "line": 231, - "column": 61 - } - } - }, - "range": [ - 8224, - 8254 - ], - "loc": { - "start": { - "line": 231, - "column": 32 - }, - "end": { - "line": 231, - "column": 62 - } - } - } - ], - "range": [ - 8190, - 8284 - ], - "loc": { - "start": { - "line": 230, - "column": 51 - }, - "end": { - "line": 232, - "column": 29 - } - } - }, - "alternate": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "maxValue", - "range": [ - 8324, - 8332 - ], - "loc": { - "start": { - "line": 233, - "column": 32 - }, - "end": { - "line": 233, - "column": 40 - } - } - }, - "right": { - "type": "ConditionalExpression", - "test": { - "type": "BinaryExpression", - "operator": ">", - "left": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "parseFloat", - "range": [ - 8335, - 8345 - ], - "loc": { - "start": { - "line": 233, - "column": 43 - }, - "end": { - "line": 233, - "column": 53 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "cvalue", - "range": [ - 8346, - 8352 - ], - "loc": { - "start": { - "line": 233, - "column": 54 - }, - "end": { - "line": 233, - "column": 60 - } - } - } - ], - "range": [ - 8335, - 8353 - ], - "loc": { - "start": { - "line": 233, - "column": 43 - }, - "end": { - "line": 233, - "column": 61 - } - } - }, - "right": { - "type": "Identifier", - "name": "maxValue", - "range": [ - 8356, - 8364 - ], - "loc": { - "start": { - "line": 233, - "column": 64 - }, - "end": { - "line": 233, - "column": 72 - } - } - }, - "range": [ - 8335, - 8364 - ], - "loc": { - "start": { - "line": 233, - "column": 43 - }, - "end": { - "line": 233, - "column": 72 - } - } - }, - "consequent": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "parseFloat", - "range": [ - 8403, - 8413 - ], - "loc": { - "start": { - "line": 234, - "column": 36 - }, - "end": { - "line": 234, - "column": 46 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "cvalue", - "range": [ - 8414, - 8420 - ], - "loc": { - "start": { - "line": 234, - "column": 47 - }, - "end": { - "line": 234, - "column": 53 - } - } - } - ], - "range": [ - 8403, - 8421 - ], - "loc": { - "start": { - "line": 234, - "column": 36 - }, - "end": { - "line": 234, - "column": 54 - } - } - }, - "alternate": { - "type": "Identifier", - "name": "maxValue", - "range": [ - 8424, - 8432 - ], - "loc": { - "start": { - "line": 234, - "column": 57 - }, - "end": { - "line": 234, - "column": 65 - } - } - }, - "range": [ - 8335, - 8432 - ], - "loc": { - "start": { - "line": 233, - "column": 43 - }, - "end": { - "line": 234, - "column": 65 - } - } - }, - "range": [ - 8324, - 8432 - ], - "loc": { - "start": { - "line": 233, - "column": 32 - }, - "end": { - "line": 234, - "column": 65 - } - } - }, - "range": [ - 8324, - 8433 - ], - "loc": { - "start": { - "line": 233, - "column": 32 - }, - "end": { - "line": 234, - "column": 66 - } - } - } - ], - "range": [ - 8290, - 8463 - ], - "loc": { - "start": { - "line": 232, - "column": 35 - }, - "end": { - "line": 235, - "column": 29 - } - } - }, - "range": [ - 8167, - 8463 - ], - "loc": { - "start": { - "line": 230, - "column": 28 - }, - "end": { - "line": 235, - "column": 29 - } - } - } - ], - "range": [ - 8137, - 8489 - ], - "loc": { - "start": { - "line": 229, - "column": 43 - }, - "end": { - "line": 236, - "column": 25 - } - } - }, - "alternate": null, - "range": [ - 8118, - 8489 - ], - "loc": { - "start": { - "line": 229, - "column": 24 - }, - "end": { - "line": 236, - "column": 25 - } - } - } - ], + "property": { + "type": "Identifier", + "name": "i", "range": [ - 7511, - 8511 + 6039, + 6040 ], "loc": { "start": { - "line": 216, - "column": 40 + "line": 201, + "column": 31 }, "end": { - "line": 237, - "column": 21 + "line": 201, + "column": 32 } } }, - "alternate": null, "range": [ - 7491, - 8511 + 6028, + 6041 ], "loc": { "start": { - "line": 216, + "line": 201, "column": 20 }, "end": { - "line": 237, - "column": 21 + "line": 201, + "column": 33 } } } ], "range": [ - 6503, - 8529 + 5798, + 6059 ], "loc": { "start": { - "line": 197, - "column": 56 + "line": 194, + "column": 16 }, "end": { - "line": 238, + "line": 202, "column": 17 } } }, "range": [ - 6463, - 8529 + 5798, + 6060 ], "loc": { "start": { - "line": 197, + "line": 194, "column": 16 }, "end": { - "line": 238, - "column": 17 - } - }, - "trailingComments": [ - { - "type": "Line", - "value": "for j", - "range": [ - 8529, - 8536 - ], - "loc": { - "start": { - "line": 238, - "column": 17 - }, - "end": { - "line": 238, - "column": 24 - } - } - } - ] - }, - { - "type": "IfStatement", - "test": { - "type": "BinaryExpression", - "operator": "===", - "left": { - "type": "Identifier", - "name": "meanFlag", - "range": [ - 8557, - 8565 - ], - "loc": { - "start": { - "line": 239, - "column": 20 - }, - "end": { - "line": 239, - "column": 28 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 8570, - 8571 - ], - "loc": { - "start": { - "line": 239, - "column": 33 - }, - "end": { - "line": 239, - "column": 34 - } - } - }, - "range": [ - 8557, - 8571 - ], - "loc": { - "start": { - "line": 239, - "column": 20 - }, - "end": { - "line": 239, - "column": 34 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "meanValue", - "range": [ - 8595, - 8604 - ], - "loc": { - "start": { - "line": 240, - "column": 20 - }, - "end": { - "line": 240, - "column": 29 - } - } - }, - "right": { - "type": "BinaryExpression", - "operator": "/", - "left": { - "type": "Identifier", - "name": "sumValue", - "range": [ - 8607, - 8615 - ], - "loc": { - "start": { - "line": 240, - "column": 32 - }, - "end": { - "line": 240, - "column": 40 - } - } - }, - "right": { - "type": "Identifier", - "name": "nbvalues", - "range": [ - 8618, - 8626 - ], - "loc": { - "start": { - "line": 240, - "column": 43 - }, - "end": { - "line": 240, - "column": 51 - } - } - }, - "range": [ - 8607, - 8626 - ], - "loc": { - "start": { - "line": 240, - "column": 32 - }, - "end": { - "line": 240, - "column": 51 - } - } - }, - "range": [ - 8595, - 8626 - ], - "loc": { - "start": { - "line": 240, - "column": 20 - }, - "end": { - "line": 240, - "column": 51 - } - } - }, - "range": [ - 8595, - 8627 - ], - "loc": { - "start": { - "line": 240, - "column": 20 - }, - "end": { - "line": 240, - "column": 52 - } - } - } - ], - "range": [ - 8573, - 8645 - ], - "loc": { - "start": { - "line": 239, - "column": 36 - }, - "end": { - "line": 241, - "column": 17 - } - } - }, - "alternate": null, - "range": [ - 8553, - 8645 - ], - "loc": { - "start": { - "line": 239, - "column": 16 - }, - "end": { - "line": 241, - "column": 17 + "line": 202, + "column": 18 } }, "leadingComments": [ { "type": "Line", - "value": "for j", + "value": " emit values before column calculation", "range": [ - 8529, - 8536 + 5741, + 5781 ], "loc": { "start": { - "line": 238, - "column": 17 - }, - "end": { - "line": 238, - "column": 24 - } - } - } - ] - }, - { - "type": "IfStatement", - "test": { - "type": "BinaryExpression", - "operator": "===", - "left": { - "type": "Identifier", - "name": "medFlag", - "range": [ - 8666, - 8673 - ], - "loc": { - "start": { - "line": 242, - "column": 20 - }, - "end": { - "line": 242, - "column": 27 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 8678, - 8679 - ], - "loc": { - "start": { - "line": 242, - "column": 32 - }, - "end": { - "line": 242, - "column": 33 - } - } - }, - "range": [ - 8666, - 8679 - ], - "loc": { - "start": { - "line": 242, - "column": 20 - }, - "end": { - "line": 242, - "column": 33 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "aux", - "range": [ - 8707, - 8710 - ], - "loc": { - "start": { - "line": 243, - "column": 24 - }, - "end": { - "line": 243, - "column": 27 - } - } - }, - "init": { - "type": "Literal", - "value": 0, - "raw": "0", - "range": [ - 8713, - 8714 - ], - "loc": { - "start": { - "line": 243, - "column": 30 - }, - "end": { - "line": 243, - "column": 31 - } - } - }, - "range": [ - 8707, - 8714 - ], - "loc": { - "start": { - "line": 243, - "column": 24 - }, - "end": { - "line": 243, - "column": 31 - } - } - } - ], - "kind": "let", - "range": [ - 8703, - 8715 - ], - "loc": { - "start": { - "line": 243, - "column": 20 - }, - "end": { - "line": 243, - "column": 32 - } - } - }, - { - "type": "IfStatement", - "test": { - "type": "BinaryExpression", - "operator": "===", - "left": { - "type": "BinaryExpression", - "operator": "%", - "left": { - "type": "Identifier", - "name": "nbvalues", - "range": [ - 8740, - 8748 - ], - "loc": { - "start": { - "line": 244, - "column": 24 - }, - "end": { - "line": 244, - "column": 32 - } - } - }, - "right": { - "type": "Literal", - "value": 2, - "raw": "2", - "range": [ - 8751, - 8752 - ], - "loc": { - "start": { - "line": 244, - "column": 35 - }, - "end": { - "line": 244, - "column": 36 - } - } - }, - "range": [ - 8740, - 8752 - ], - "loc": { - "start": { - "line": 244, - "column": 24 - }, - "end": { - "line": 244, - "column": 36 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 8757, - 8758 - ], - "loc": { - "start": { - "line": 244, - "column": 41 - }, - "end": { - "line": 244, - "column": 42 - } - } - }, - "range": [ - 8740, - 8758 - ], - "loc": { - "start": { - "line": 244, - "column": 24 - }, - "end": { - "line": 244, - "column": 42 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "aux", - "range": [ - 8786, - 8789 - ], - "loc": { - "start": { - "line": 245, - "column": 24 - }, - "end": { - "line": 245, - "column": 27 - } - } - }, - "right": { - "type": "CallExpression", - "callee": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "Math", - "range": [ - 8792, - 8796 - ], - "loc": { - "start": { - "line": 245, - "column": 30 - }, - "end": { - "line": 245, - "column": 34 - } - } - }, - "property": { - "type": "Identifier", - "name": "floor", - "range": [ - 8797, - 8802 - ], - "loc": { - "start": { - "line": 245, - "column": 35 - }, - "end": { - "line": 245, - "column": 40 - } - } - }, - "range": [ - 8792, - 8802 - ], - "loc": { - "start": { - "line": 245, - "column": 30 - }, - "end": { - "line": 245, - "column": 40 - } - } - }, - "arguments": [ - { - "type": "BinaryExpression", - "operator": "/", - "left": { - "type": "Identifier", - "name": "nbvalues", - "range": [ - 8803, - 8811 - ], - "loc": { - "start": { - "line": 245, - "column": 41 - }, - "end": { - "line": 245, - "column": 49 - } - } - }, - "right": { - "type": "Literal", - "value": 2, - "raw": "2", - "range": [ - 8814, - 8815 - ], - "loc": { - "start": { - "line": 245, - "column": 52 - }, - "end": { - "line": 245, - "column": 53 - } - } - }, - "range": [ - 8803, - 8815 - ], - "loc": { - "start": { - "line": 245, - "column": 41 - }, - "end": { - "line": 245, - "column": 53 - } - } - } - ], - "range": [ - 8792, - 8816 - ], - "loc": { - "start": { - "line": 245, - "column": 30 - }, - "end": { - "line": 245, - "column": 54 - } - } - }, - "range": [ - 8786, - 8816 - ], - "loc": { - "start": { - "line": 245, - "column": 24 - }, - "end": { - "line": 245, - "column": 54 - } - } - }, - "range": [ - 8786, - 8817 - ], - "loc": { - "start": { - "line": 245, - "column": 24 - }, - "end": { - "line": 245, - "column": 55 - } - } - }, - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "medValue", - "range": [ - 8842, - 8850 - ], - "loc": { - "start": { - "line": 246, - "column": 24 - }, - "end": { - "line": 246, - "column": 32 - } - } - }, - "right": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "theList", - "range": [ - 8853, - 8860 - ], - "loc": { - "start": { - "line": 246, - "column": 35 - }, - "end": { - "line": 246, - "column": 42 - } - } - }, - "property": { - "type": "Identifier", - "name": "aux", - "range": [ - 8861, - 8864 - ], - "loc": { - "start": { - "line": 246, - "column": 43 - }, - "end": { - "line": 246, - "column": 46 - } - } - }, - "range": [ - 8853, - 8865 - ], - "loc": { - "start": { - "line": 246, - "column": 35 - }, - "end": { - "line": 246, - "column": 47 - } - } - }, - "range": [ - 8842, - 8865 - ], - "loc": { - "start": { - "line": 246, - "column": 24 - }, - "end": { - "line": 246, - "column": 47 - } - } - }, - "range": [ - 8842, - 8866 - ], - "loc": { - "start": { - "line": 246, - "column": 24 - }, - "end": { - "line": 246, - "column": 48 - } - } - } - ], - "range": [ - 8760, - 8888 - ], - "loc": { - "start": { - "line": 244, - "column": 44 - }, - "end": { - "line": 247, - "column": 21 - } - } - }, - "alternate": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "medValue", - "range": [ - 8920, - 8928 - ], - "loc": { - "start": { - "line": 248, - "column": 24 - }, - "end": { - "line": 248, - "column": 32 - } - } - }, - "right": { - "type": "BinaryExpression", - "operator": "/", - "left": { - "type": "BinaryExpression", - "operator": "+", - "left": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "theList", - "range": [ - 8932, - 8939 - ], - "loc": { - "start": { - "line": 248, - "column": 36 - }, - "end": { - "line": 248, - "column": 43 - } - } - }, - "property": { - "type": "BinaryExpression", - "operator": "/", - "left": { - "type": "Identifier", - "name": "nbvalues", - "range": [ - 8940, - 8948 - ], - "loc": { - "start": { - "line": 248, - "column": 44 - }, - "end": { - "line": 248, - "column": 52 - } - } - }, - "right": { - "type": "Literal", - "value": 2, - "raw": "2", - "range": [ - 8951, - 8952 - ], - "loc": { - "start": { - "line": 248, - "column": 55 - }, - "end": { - "line": 248, - "column": 56 - } - } - }, - "range": [ - 8940, - 8952 - ], - "loc": { - "start": { - "line": 248, - "column": 44 - }, - "end": { - "line": 248, - "column": 56 - } - } - }, - "range": [ - 8932, - 8953 - ], - "loc": { - "start": { - "line": 248, - "column": 36 - }, - "end": { - "line": 248, - "column": 57 - } - } - }, - "right": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "theList", - "range": [ - 8984, - 8991 - ], - "loc": { - "start": { - "line": 249, - "column": 28 - }, - "end": { - "line": 249, - "column": 35 - } - } - }, - "property": { - "type": "BinaryExpression", - "operator": "-", - "left": { - "type": "BinaryExpression", - "operator": "/", - "left": { - "type": "Identifier", - "name": "nbvalues", - "range": [ - 8994, - 9002 - ], - "loc": { - "start": { - "line": 249, - "column": 38 - }, - "end": { - "line": 249, - "column": 46 - } - } - }, - "right": { - "type": "Literal", - "value": 2, - "raw": "2", - "range": [ - 9005, - 9006 - ], - "loc": { - "start": { - "line": 249, - "column": 49 - }, - "end": { - "line": 249, - "column": 50 - } - } - }, - "range": [ - 8994, - 9006 - ], - "loc": { - "start": { - "line": 249, - "column": 38 - }, - "end": { - "line": 249, - "column": 50 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 9010, - 9011 - ], - "loc": { - "start": { - "line": 249, - "column": 54 - }, - "end": { - "line": 249, - "column": 55 - } - } - }, - "range": [ - 8993, - 9011 - ], - "loc": { - "start": { - "line": 249, - "column": 37 - }, - "end": { - "line": 249, - "column": 55 - } - } - }, - "range": [ - 8984, - 9013 - ], - "loc": { - "start": { - "line": 249, - "column": 28 - }, - "end": { - "line": 249, - "column": 57 - } - } - }, - "range": [ - 8932, - 9013 - ], - "loc": { - "start": { - "line": 248, - "column": 36 - }, - "end": { - "line": 249, - "column": 57 - } - } - }, - "right": { - "type": "Literal", - "value": 2, - "raw": "2", - "range": [ - 9017, - 9018 - ], - "loc": { - "start": { - "line": 249, - "column": 61 - }, - "end": { - "line": 249, - "column": 62 - } - } - }, - "range": [ - 8931, - 9018 - ], - "loc": { - "start": { - "line": 248, - "column": 35 - }, - "end": { - "line": 249, - "column": 62 - } - } - }, - "range": [ - 8920, - 9018 - ], - "loc": { - "start": { - "line": 248, - "column": 24 - }, - "end": { - "line": 249, - "column": 62 - } - } - }, - "range": [ - 8920, - 9019 - ], - "loc": { - "start": { - "line": 248, - "column": 24 - }, - "end": { - "line": 249, - "column": 63 - } - } - } - ], - "range": [ - 8894, - 9041 - ], - "loc": { - "start": { - "line": 247, - "column": 27 - }, - "end": { - "line": 250, - "column": 21 - } - } - }, - "range": [ - 8736, - 9041 - ], - "loc": { - "start": { - "line": 244, - "column": 20 - }, - "end": { - "line": 250, - "column": 21 - } - } - } - ], - "range": [ - 8681, - 9059 - ], - "loc": { - "start": { - "line": 242, - "column": 35 - }, - "end": { - "line": 251, - "column": 17 - } - } - }, - "alternate": null, - "range": [ - 8662, - 9059 - ], - "loc": { - "start": { - "line": 242, - "column": 16 - }, - "end": { - "line": 251, - "column": 17 - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "posa", - "range": [ - 9080, - 9084 - ], - "loc": { - "start": { - "line": 252, - "column": 20 - }, - "end": { - "line": 252, - "column": 24 - } - } - }, - "init": null, - "range": [ - 9080, - 9084 - ], - "loc": { - "start": { - "line": 252, - "column": 20 - }, - "end": { - "line": 252, - "column": 24 - } - } - } - ], - "kind": "let", - "range": [ - 9076, - 9085 - ], - "loc": { - "start": { - "line": 252, - "column": 16 - }, - "end": { - "line": 252, - "column": 25 - } - } - }, - { - "type": "IfStatement", - "test": { - "type": "BinaryExpression", - "operator": "===", - "left": { - "type": "Identifier", - "name": "q1Flag", - "range": [ - 9106, - 9112 - ], - "loc": { - "start": { - "line": 253, - "column": 20 - }, - "end": { - "line": 253, - "column": 26 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 9117, - 9118 - ], - "loc": { - "start": { - "line": 253, - "column": 31 - }, - "end": { - "line": 253, - "column": 32 - } - } - }, - "range": [ - 9106, - 9118 - ], - "loc": { - "start": { - "line": 253, - "column": 20 - }, - "end": { - "line": 253, - "column": 32 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "posa", - "range": [ - 9142, - 9146 - ], - "loc": { - "start": { - "line": 254, - "column": 20 - }, - "end": { - "line": 254, - "column": 24 - } - } - }, - "right": { - "type": "Literal", - "value": 0, - "raw": "0.0", - "range": [ - 9149, - 9152 - ], - "loc": { - "start": { - "line": 254, - "column": 27 - }, - "end": { - "line": 254, - "column": 30 - } - } - }, - "range": [ - 9142, - 9152 - ], - "loc": { - "start": { - "line": 254, - "column": 20 - }, - "end": { - "line": 254, - "column": 30 - } - } - }, - "range": [ - 9142, - 9153 - ], - "loc": { - "start": { - "line": 254, - "column": 20 - }, - "end": { - "line": 254, - "column": 31 - } - } - }, - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "posa", - "range": [ - 9174, - 9178 - ], - "loc": { - "start": { - "line": 255, - "column": 20 - }, - "end": { - "line": 255, - "column": 24 - } - } - }, - "right": { - "type": "CallExpression", - "callee": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "Math", - "range": [ - 9181, - 9185 - ], - "loc": { - "start": { - "line": 255, - "column": 27 - }, - "end": { - "line": 255, - "column": 31 - } - } - }, - "property": { - "type": "Identifier", - "name": "floor", - "range": [ - 9186, - 9191 - ], - "loc": { - "start": { - "line": 255, - "column": 32 - }, - "end": { - "line": 255, - "column": 37 - } - } - }, - "range": [ - 9181, - 9191 - ], - "loc": { - "start": { - "line": 255, - "column": 27 - }, - "end": { - "line": 255, - "column": 37 - } - } - }, - "arguments": [ - { - "type": "BinaryExpression", - "operator": "/", - "left": { - "type": "Identifier", - "name": "nbvalues", - "range": [ - 9192, - 9200 - ], - "loc": { - "start": { - "line": 255, - "column": 38 - }, - "end": { - "line": 255, - "column": 46 - } - } - }, - "right": { - "type": "Literal", - "value": 4, - "raw": "4", - "range": [ - 9203, - 9204 - ], - "loc": { - "start": { - "line": 255, - "column": 49 - }, - "end": { - "line": 255, - "column": 50 - } - } - }, - "range": [ - 9192, - 9204 - ], - "loc": { - "start": { - "line": 255, - "column": 38 - }, - "end": { - "line": 255, - "column": 50 - } - } - } - ], - "range": [ - 9181, - 9205 - ], - "loc": { - "start": { - "line": 255, - "column": 27 - }, - "end": { - "line": 255, - "column": 51 - } - } - }, - "range": [ - 9174, - 9205 - ], - "loc": { - "start": { - "line": 255, - "column": 20 - }, - "end": { - "line": 255, - "column": 51 - } - } - }, - "range": [ - 9174, - 9206 - ], - "loc": { - "start": { - "line": 255, - "column": 20 - }, - "end": { - "line": 255, - "column": 52 - } - } - }, - { - "type": "IfStatement", - "test": { - "type": "BinaryExpression", - "operator": "===", - "left": { - "type": "BinaryExpression", - "operator": "*", - "left": { - "type": "Literal", - "value": 4, - "raw": "4", - "range": [ - 9231, - 9232 - ], - "loc": { - "start": { - "line": 256, - "column": 24 - }, - "end": { - "line": 256, - "column": 25 - } - } - }, - "right": { - "type": "Identifier", - "name": "posa", - "range": [ - 9235, - 9239 - ], - "loc": { - "start": { - "line": 256, - "column": 28 - }, - "end": { - "line": 256, - "column": 32 - } - } - }, - "range": [ - 9231, - 9239 - ], - "loc": { - "start": { - "line": 256, - "column": 24 - }, - "end": { - "line": 256, - "column": 32 - } - } - }, - "right": { - "type": "Identifier", - "name": "nbvalues", - "range": [ - 9244, - 9252 - ], - "loc": { - "start": { - "line": 256, - "column": 37 - }, - "end": { - "line": 256, - "column": 45 - } - } - }, - "range": [ - 9231, - 9252 - ], - "loc": { - "start": { - "line": 256, - "column": 24 - }, - "end": { - "line": 256, - "column": 45 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "q1Value", - "range": [ - 9280, - 9287 - ], - "loc": { - "start": { - "line": 257, - "column": 24 - }, - "end": { - "line": 257, - "column": 31 - } - } - }, - "right": { - "type": "BinaryExpression", - "operator": "/", - "left": { - "type": "BinaryExpression", - "operator": "+", - "left": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "theList", - "range": [ - 9291, - 9298 - ], - "loc": { - "start": { - "line": 257, - "column": 35 - }, - "end": { - "line": 257, - "column": 42 - } - } - }, - "property": { - "type": "BinaryExpression", - "operator": "-", - "left": { - "type": "Identifier", - "name": "posa", - "range": [ - 9299, - 9303 - ], - "loc": { - "start": { - "line": 257, - "column": 43 - }, - "end": { - "line": 257, - "column": 47 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 9306, - 9307 - ], - "loc": { - "start": { - "line": 257, - "column": 50 - }, - "end": { - "line": 257, - "column": 51 - } - } - }, - "range": [ - 9299, - 9307 - ], - "loc": { - "start": { - "line": 257, - "column": 43 - }, - "end": { - "line": 257, - "column": 51 - } - } - }, - "range": [ - 9291, - 9308 - ], - "loc": { - "start": { - "line": 257, - "column": 35 - }, - "end": { - "line": 257, - "column": 52 - } - } - }, - "right": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "theList", - "range": [ - 9311, - 9318 - ], - "loc": { - "start": { - "line": 257, - "column": 55 - }, - "end": { - "line": 257, - "column": 62 - } - } - }, - "property": { - "type": "Identifier", - "name": "posa", - "range": [ - 9319, - 9323 - ], - "loc": { - "start": { - "line": 257, - "column": 63 - }, - "end": { - "line": 257, - "column": 67 - } - } - }, - "range": [ - 9311, - 9324 - ], - "loc": { - "start": { - "line": 257, - "column": 55 - }, - "end": { - "line": 257, - "column": 68 - } - } - }, - "range": [ - 9291, - 9324 - ], - "loc": { - "start": { - "line": 257, - "column": 35 - }, - "end": { - "line": 257, - "column": 68 - } - } - }, - "right": { - "type": "Literal", - "value": 2, - "raw": "2", - "range": [ - 9328, - 9329 - ], - "loc": { - "start": { - "line": 257, - "column": 72 - }, - "end": { - "line": 257, - "column": 73 - } - } - }, - "range": [ - 9290, - 9329 - ], - "loc": { - "start": { - "line": 257, - "column": 34 - }, - "end": { - "line": 257, - "column": 73 - } - } - }, - "range": [ - 9280, - 9329 - ], - "loc": { - "start": { - "line": 257, - "column": 24 - }, - "end": { - "line": 257, - "column": 73 - } - } - }, - "range": [ - 9280, - 9330 - ], - "loc": { - "start": { - "line": 257, - "column": 24 - }, - "end": { - "line": 257, - "column": 74 - } - } - } - ], - "range": [ - 9254, - 9352 - ], - "loc": { - "start": { - "line": 256, - "column": 47 - }, - "end": { - "line": 258, - "column": 21 - } - } - }, - "alternate": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "q1Value", - "range": [ - 9384, - 9391 - ], - "loc": { - "start": { - "line": 259, - "column": 24 - }, - "end": { - "line": 259, - "column": 31 - } - } - }, - "right": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "theList", - "range": [ - 9394, - 9401 - ], - "loc": { - "start": { - "line": 259, - "column": 34 - }, - "end": { - "line": 259, - "column": 41 - } - } - }, - "property": { - "type": "Identifier", - "name": "posa", - "range": [ - 9402, - 9406 - ], - "loc": { - "start": { - "line": 259, - "column": 42 - }, - "end": { - "line": 259, - "column": 46 - } - } - }, - "range": [ - 9394, - 9407 - ], - "loc": { - "start": { - "line": 259, - "column": 34 - }, - "end": { - "line": 259, - "column": 47 - } - } - }, - "range": [ - 9384, - 9407 - ], - "loc": { - "start": { - "line": 259, - "column": 24 - }, - "end": { - "line": 259, - "column": 47 - } - } - }, - "range": [ - 9384, - 9408 - ], - "loc": { - "start": { - "line": 259, - "column": 24 - }, - "end": { - "line": 259, - "column": 48 - } - } - } - ], - "range": [ - 9358, - 9430 - ], - "loc": { - "start": { - "line": 258, - "column": 27 - }, - "end": { - "line": 260, - "column": 21 - } - } - }, - "range": [ - 9227, - 9430 - ], - "loc": { - "start": { - "line": 256, - "column": 20 - }, - "end": { - "line": 260, - "column": 21 - } - } - } - ], - "range": [ - 9120, - 9448 - ], - "loc": { - "start": { - "line": 253, - "column": 34 - }, - "end": { - "line": 261, - "column": 17 - } - } - }, - "alternate": null, - "range": [ - 9102, - 9448 - ], - "loc": { - "start": { - "line": 253, - "column": 16 - }, - "end": { - "line": 261, - "column": 17 - } - } - }, - { - "type": "IfStatement", - "test": { - "type": "BinaryExpression", - "operator": "===", - "left": { - "type": "Identifier", - "name": "q3Flag", - "range": [ - 9469, - 9475 - ], - "loc": { - "start": { - "line": 262, - "column": 20 - }, - "end": { - "line": 262, - "column": 26 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 9480, - 9481 - ], - "loc": { - "start": { - "line": 262, - "column": 31 - }, - "end": { - "line": 262, - "column": 32 - } - } - }, - "range": [ - 9469, - 9481 - ], - "loc": { - "start": { - "line": 262, - "column": 20 - }, - "end": { - "line": 262, - "column": 32 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "posa", - "range": [ - 9505, - 9509 - ], - "loc": { - "start": { - "line": 263, - "column": 20 - }, - "end": { - "line": 263, - "column": 24 - } - } - }, - "right": { - "type": "Literal", - "value": 0, - "raw": "0.0", - "range": [ - 9512, - 9515 - ], - "loc": { - "start": { - "line": 263, - "column": 27 - }, - "end": { - "line": 263, - "column": 30 - } - } - }, - "range": [ - 9505, - 9515 - ], - "loc": { - "start": { - "line": 263, - "column": 20 - }, - "end": { - "line": 263, - "column": 30 - } - } - }, - "range": [ - 9505, - 9516 - ], - "loc": { - "start": { - "line": 263, - "column": 20 - }, - "end": { - "line": 263, - "column": 31 - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "posb", - "range": [ - 9541, - 9545 - ], - "loc": { - "start": { - "line": 264, - "column": 24 - }, - "end": { - "line": 264, - "column": 28 - } - } - }, - "init": { - "type": "Literal", - "value": 0, - "raw": "0.0", - "range": [ - 9548, - 9551 - ], - "loc": { - "start": { - "line": 264, - "column": 31 - }, - "end": { - "line": 264, - "column": 34 - } - } - }, - "range": [ - 9541, - 9551 - ], - "loc": { - "start": { - "line": 264, - "column": 24 - }, - "end": { - "line": 264, - "column": 34 - } - } - } - ], - "kind": "let", - "range": [ - 9537, - 9552 - ], - "loc": { - "start": { - "line": 264, - "column": 20 - }, - "end": { - "line": 264, - "column": 35 - } - } - }, - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "posa", - "range": [ - 9573, - 9577 - ], - "loc": { - "start": { - "line": 265, - "column": 20 - }, - "end": { - "line": 265, - "column": 24 - } - } - }, - "right": { - "type": "CallExpression", - "callee": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "Math", - "range": [ - 9580, - 9584 - ], - "loc": { - "start": { - "line": 265, - "column": 27 - }, - "end": { - "line": 265, - "column": 31 - } - } - }, - "property": { - "type": "Identifier", - "name": "floor", - "range": [ - 9585, - 9590 - ], - "loc": { - "start": { - "line": 265, - "column": 32 - }, - "end": { - "line": 265, - "column": 37 - } - } - }, - "range": [ - 9580, - 9590 - ], - "loc": { - "start": { - "line": 265, - "column": 27 - }, - "end": { - "line": 265, - "column": 37 - } - } - }, - "arguments": [ - { - "type": "BinaryExpression", - "operator": "/", - "left": { - "type": "Identifier", - "name": "nbvalues", - "range": [ - 9591, - 9599 - ], - "loc": { - "start": { - "line": 265, - "column": 38 - }, - "end": { - "line": 265, - "column": 46 - } - } - }, - "right": { - "type": "Literal", - "value": 4, - "raw": "4", - "range": [ - 9602, - 9603 - ], - "loc": { - "start": { - "line": 265, - "column": 49 - }, - "end": { - "line": 265, - "column": 50 - } - } - }, - "range": [ - 9591, - 9603 - ], - "loc": { - "start": { - "line": 265, - "column": 38 - }, - "end": { - "line": 265, - "column": 50 - } - } - } - ], - "range": [ - 9580, - 9604 - ], - "loc": { - "start": { - "line": 265, - "column": 27 - }, - "end": { - "line": 265, - "column": 51 - } - } - }, - "range": [ - 9573, - 9604 - ], - "loc": { - "start": { - "line": 265, - "column": 20 - }, - "end": { - "line": 265, - "column": 51 - } - } - }, - "range": [ - 9573, - 9605 - ], - "loc": { - "start": { - "line": 265, - "column": 20 - }, - "end": { - "line": 265, - "column": 52 - } - } - }, - { - "type": "IfStatement", - "test": { - "type": "BinaryExpression", - "operator": "===", - "left": { - "type": "BinaryExpression", - "operator": "*", - "left": { - "type": "Literal", - "value": 4, - "raw": "4", - "range": [ - 9630, - 9631 - ], - "loc": { - "start": { - "line": 266, - "column": 24 - }, - "end": { - "line": 266, - "column": 25 - } - } - }, - "right": { - "type": "Identifier", - "name": "posa", - "range": [ - 9634, - 9638 - ], - "loc": { - "start": { - "line": 266, - "column": 28 - }, - "end": { - "line": 266, - "column": 32 - } - } - }, - "range": [ - 9630, - 9638 - ], - "loc": { - "start": { - "line": 266, - "column": 24 - }, - "end": { - "line": 266, - "column": 32 - } - } - }, - "right": { - "type": "Identifier", - "name": "nbvalues", - "range": [ - 9643, - 9651 - ], - "loc": { - "start": { - "line": 266, - "column": 37 - }, - "end": { - "line": 266, - "column": 45 - } - } - }, - "range": [ - 9630, - 9651 - ], - "loc": { - "start": { - "line": 266, - "column": 24 - }, - "end": { - "line": 266, - "column": 45 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "posb", - "range": [ - 9679, - 9683 - ], - "loc": { - "start": { - "line": 267, - "column": 24 - }, - "end": { - "line": 267, - "column": 28 - } - } - }, - "right": { - "type": "BinaryExpression", - "operator": "*", - "left": { - "type": "Literal", - "value": 3, - "raw": "3", - "range": [ - 9686, - 9687 - ], - "loc": { - "start": { - "line": 267, - "column": 31 - }, - "end": { - "line": 267, - "column": 32 - } - } - }, - "right": { - "type": "Identifier", - "name": "posa", - "range": [ - 9690, - 9694 - ], - "loc": { - "start": { - "line": 267, - "column": 35 - }, - "end": { - "line": 267, - "column": 39 - } - } - }, - "range": [ - 9686, - 9694 - ], - "loc": { - "start": { - "line": 267, - "column": 31 - }, - "end": { - "line": 267, - "column": 39 - } - } - }, - "range": [ - 9679, - 9694 - ], - "loc": { - "start": { - "line": 267, - "column": 24 - }, - "end": { - "line": 267, - "column": 39 - } - } - }, - "range": [ - 9679, - 9695 - ], - "loc": { - "start": { - "line": 267, - "column": 24 - }, - "end": { - "line": 267, - "column": 40 - } - } - }, - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "q3Value", - "range": [ - 9720, - 9727 - ], - "loc": { - "start": { - "line": 268, - "column": 24 - }, - "end": { - "line": 268, - "column": 31 - } - } - }, - "right": { - "type": "BinaryExpression", - "operator": "/", - "left": { - "type": "BinaryExpression", - "operator": "+", - "left": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "theList", - "range": [ - 9731, - 9738 - ], - "loc": { - "start": { - "line": 268, - "column": 35 - }, - "end": { - "line": 268, - "column": 42 - } - } - }, - "property": { - "type": "Identifier", - "name": "posb", - "range": [ - 9739, - 9743 - ], - "loc": { - "start": { - "line": 268, - "column": 43 - }, - "end": { - "line": 268, - "column": 47 - } - } - }, - "range": [ - 9731, - 9744 - ], - "loc": { - "start": { - "line": 268, - "column": 35 - }, - "end": { - "line": 268, - "column": 48 - } - } - }, - "right": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "theList", - "range": [ - 9747, - 9754 - ], - "loc": { - "start": { - "line": 268, - "column": 51 - }, - "end": { - "line": 268, - "column": 58 - } - } - }, - "property": { - "type": "BinaryExpression", - "operator": "-", - "left": { - "type": "Identifier", - "name": "posb", - "range": [ - 9755, - 9759 - ], - "loc": { - "start": { - "line": 268, - "column": 59 - }, - "end": { - "line": 268, - "column": 63 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 9762, - 9763 - ], - "loc": { - "start": { - "line": 268, - "column": 66 - }, - "end": { - "line": 268, - "column": 67 - } - } - }, - "range": [ - 9755, - 9763 - ], - "loc": { - "start": { - "line": 268, - "column": 59 - }, - "end": { - "line": 268, - "column": 67 - } - } - }, - "range": [ - 9747, - 9764 - ], - "loc": { - "start": { - "line": 268, - "column": 51 - }, - "end": { - "line": 268, - "column": 68 - } - } - }, - "range": [ - 9731, - 9764 - ], - "loc": { - "start": { - "line": 268, - "column": 35 - }, - "end": { - "line": 268, - "column": 68 - } - } - }, - "right": { - "type": "Literal", - "value": 2, - "raw": "2", - "range": [ - 9768, - 9769 - ], - "loc": { - "start": { - "line": 268, - "column": 72 - }, - "end": { - "line": 268, - "column": 73 - } - } - }, - "range": [ - 9730, - 9769 - ], - "loc": { - "start": { - "line": 268, - "column": 34 - }, - "end": { - "line": 268, - "column": 73 - } - } - }, - "range": [ - 9720, - 9769 - ], - "loc": { - "start": { - "line": 268, - "column": 24 - }, - "end": { - "line": 268, - "column": 73 - } - } - }, - "range": [ - 9720, - 9770 - ], - "loc": { - "start": { - "line": 268, - "column": 24 - }, - "end": { - "line": 268, - "column": 74 - } - } - } - ], - "range": [ - 9653, - 9792 - ], - "loc": { - "start": { - "line": 266, - "column": 47 - }, - "end": { - "line": 269, - "column": 21 - } - } - }, - "alternate": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "q3Value", - "range": [ - 9824, - 9831 - ], - "loc": { - "start": { - "line": 270, - "column": 24 - }, - "end": { - "line": 270, - "column": 31 - } - } - }, - "right": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "theList", - "range": [ - 9834, - 9841 - ], - "loc": { - "start": { - "line": 270, - "column": 34 - }, - "end": { - "line": 270, - "column": 41 - } - } - }, - "property": { - "type": "BinaryExpression", - "operator": "-", - "left": { - "type": "BinaryExpression", - "operator": "-", - "left": { - "type": "Identifier", - "name": "nbvalues", - "range": [ - 9842, - 9850 - ], - "loc": { - "start": { - "line": 270, - "column": 42 - }, - "end": { - "line": 270, - "column": 50 - } - } - }, - "right": { - "type": "Identifier", - "name": "posa", - "range": [ - 9853, - 9857 - ], - "loc": { - "start": { - "line": 270, - "column": 53 - }, - "end": { - "line": 270, - "column": 57 - } - } - }, - "range": [ - 9842, - 9857 - ], - "loc": { - "start": { - "line": 270, - "column": 42 - }, - "end": { - "line": 270, - "column": 57 - } - } - }, - "right": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 9860, - 9861 - ], - "loc": { - "start": { - "line": 270, - "column": 60 - }, - "end": { - "line": 270, - "column": 61 - } - } - }, - "range": [ - 9842, - 9861 - ], - "loc": { - "start": { - "line": 270, - "column": 42 - }, - "end": { - "line": 270, - "column": 61 - } - } - }, - "range": [ - 9834, - 9862 - ], - "loc": { - "start": { - "line": 270, - "column": 34 - }, - "end": { - "line": 270, - "column": 62 - } - } - }, - "range": [ - 9824, - 9862 - ], - "loc": { - "start": { - "line": 270, - "column": 24 - }, - "end": { - "line": 270, - "column": 62 - } - } - }, - "range": [ - 9824, - 9863 - ], - "loc": { - "start": { - "line": 270, - "column": 24 - }, - "end": { - "line": 270, - "column": 63 - } - } - } - ], - "range": [ - 9798, - 9885 - ], - "loc": { - "start": { - "line": 269, - "column": 27 - }, - "end": { - "line": 271, - "column": 21 - } - } - }, - "range": [ - 9626, - 9885 - ], - "loc": { - "start": { - "line": 266, - "column": 20 - }, - "end": { - "line": 271, - "column": 21 - } - } - } - ], - "range": [ - 9483, - 9903 - ], - "loc": { - "start": { - "line": 262, - "column": 34 - }, - "end": { - "line": 272, - "column": 17 - } - } - }, - "alternate": null, - "range": [ - 9465, - 9903 - ], - "loc": { - "start": { - "line": 262, - "column": 16 - }, - "end": { - "line": 272, - "column": 17 - } - } - }, - { - "type": "ForStatement", - "init": null, - "test": { - "type": "BinaryExpression", - "operator": "<=", - "left": { - "type": "Identifier", - "name": "i", - "range": [ - 9928, - 9929 - ], - "loc": { - "start": { - "line": 274, - "column": 23 - }, - "end": { - "line": 274, - "column": 24 - } - } - }, - "right": { - "type": "Identifier", - "name": "mThisCol", - "range": [ - 9933, - 9941 - ], - "loc": { - "start": { - "line": 274, - "column": 28 - }, - "end": { - "line": 274, - "column": 36 - } - } - }, - "range": [ - 9928, - 9941 - ], - "loc": { - "start": { - "line": 274, - "column": 23 - }, - "end": { - "line": 274, - "column": 36 - } - } - }, - "update": { - "type": "UpdateExpression", - "operator": "++", - "argument": { - "type": "Identifier", - "name": "i", - "range": [ - 9943, - 9944 - ], - "loc": { - "start": { - "line": 274, - "column": 38 - }, - "end": { - "line": 274, - "column": 39 - } - } - }, - "prefix": false, - "range": [ - 9943, - 9946 - ], - "loc": { - "start": { - "line": 274, - "column": 38 - }, - "end": { - "line": 274, - "column": 41 - } - } - }, - "body": { - "type": "BlockStatement", - "body": [ - { - "type": "SwitchStatement", - "discriminant": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "opsThisCol", - "range": [ - 9978, - 9988 - ], - "loc": { - "start": { - "line": 275, - "column": 28 - }, - "end": { - "line": 275, - "column": 38 - } - } - }, - "property": { - "type": "Identifier", - "name": "i", - "range": [ - 9989, - 9990 - ], - "loc": { - "start": { - "line": 275, - "column": 39 - }, - "end": { - "line": 275, - "column": 40 - } - } - }, - "range": [ - 9978, - 9991 - ], - "loc": { - "start": { - "line": 275, - "column": 28 - }, - "end": { - "line": 275, - "column": 41 - } - } - }, - "cases": [ - { - "type": "SwitchCase", - "test": { - "type": "Literal", - "value": "mean", - "raw": "'mean'", - "range": [ - 10024, - 10030 - ], - "loc": { - "start": { - "line": 276, - "column": 29 - }, - "end": { - "line": 276, - "column": 35 - } - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "result", - "range": [ - 10060, - 10066 - ], - "loc": { - "start": { - "line": 277, - "column": 28 - }, - "end": { - "line": 277, - "column": 34 - } - } - }, - "right": { - "type": "Identifier", - "name": "meanValue", - "range": [ - 10069, - 10078 - ], - "loc": { - "start": { - "line": 277, - "column": 37 - }, - "end": { - "line": 277, - "column": 46 - } - } - }, - "range": [ - 10060, - 10078 - ], - "loc": { - "start": { - "line": 277, - "column": 28 - }, - "end": { - "line": 277, - "column": 46 - } - } - }, - "range": [ - 10060, - 10079 - ], - "loc": { - "start": { - "line": 277, - "column": 28 - }, - "end": { - "line": 277, - "column": 47 - } - } - }, - { - "type": "BreakStatement", - "label": null, - "range": [ - 10108, - 10114 - ], - "loc": { - "start": { - "line": 278, - "column": 28 - }, - "end": { - "line": 278, - "column": 34 - } - } - } - ], - "range": [ - 10019, - 10114 - ], - "loc": { - "start": { - "line": 276, - "column": 24 - }, - "end": { - "line": 278, - "column": 34 - } - } - }, - { - "type": "SwitchCase", - "test": { - "type": "Literal", - "value": "sum", - "raw": "'sum'", - "range": [ - 10144, - 10149 - ], - "loc": { - "start": { - "line": 279, - "column": 29 - }, - "end": { - "line": 279, - "column": 34 - } - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "result", - "range": [ - 10179, - 10185 - ], - "loc": { - "start": { - "line": 280, - "column": 28 - }, - "end": { - "line": 280, - "column": 34 - } - } - }, - "right": { - "type": "Identifier", - "name": "sumValue", - "range": [ - 10188, - 10196 - ], - "loc": { - "start": { - "line": 280, - "column": 37 - }, - "end": { - "line": 280, - "column": 45 - } - } - }, - "range": [ - 10179, - 10196 - ], - "loc": { - "start": { - "line": 280, - "column": 28 - }, - "end": { - "line": 280, - "column": 45 - } - } - }, - "range": [ - 10179, - 10197 - ], - "loc": { - "start": { - "line": 280, - "column": 28 - }, - "end": { - "line": 280, - "column": 46 - } - } - }, - { - "type": "BreakStatement", - "label": null, - "range": [ - 10226, - 10232 - ], - "loc": { - "start": { - "line": 281, - "column": 28 - }, - "end": { - "line": 281, - "column": 34 - } - } - } - ], - "range": [ - 10139, - 10232 - ], - "loc": { - "start": { - "line": 279, - "column": 24 - }, - "end": { - "line": 281, - "column": 34 - } - } - }, - { - "type": "SwitchCase", - "test": { - "type": "Literal", - "value": "min", - "raw": "'min'", - "range": [ - 10262, - 10267 - ], - "loc": { - "start": { - "line": 282, - "column": 29 - }, - "end": { - "line": 282, - "column": 34 - } - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "result", - "range": [ - 10297, - 10303 - ], - "loc": { - "start": { - "line": 283, - "column": 28 - }, - "end": { - "line": 283, - "column": 34 - } - } - }, - "right": { - "type": "Identifier", - "name": "minValue", - "range": [ - 10306, - 10314 - ], - "loc": { - "start": { - "line": 283, - "column": 37 - }, - "end": { - "line": 283, - "column": 45 - } - } - }, - "range": [ - 10297, - 10314 - ], - "loc": { - "start": { - "line": 283, - "column": 28 - }, - "end": { - "line": 283, - "column": 45 - } - } - }, - "range": [ - 10297, - 10315 - ], - "loc": { - "start": { - "line": 283, - "column": 28 - }, - "end": { - "line": 283, - "column": 46 - } - } - }, - { - "type": "BreakStatement", - "label": null, - "range": [ - 10344, - 10350 - ], - "loc": { - "start": { - "line": 284, - "column": 28 - }, - "end": { - "line": 284, - "column": 34 - } - } - } - ], - "range": [ - 10257, - 10350 - ], - "loc": { - "start": { - "line": 282, - "column": 24 - }, - "end": { - "line": 284, - "column": 34 - } - } - }, - { - "type": "SwitchCase", - "test": { - "type": "Literal", - "value": "max", - "raw": "'max'", - "range": [ - 10380, - 10385 - ], - "loc": { - "start": { - "line": 285, - "column": 29 - }, - "end": { - "line": 285, - "column": 34 - } - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "result", - "range": [ - 10415, - 10421 - ], - "loc": { - "start": { - "line": 286, - "column": 28 - }, - "end": { - "line": 286, - "column": 34 - } - } - }, - "right": { - "type": "Identifier", - "name": "maxValue", - "range": [ - 10424, - 10432 - ], - "loc": { - "start": { - "line": 286, - "column": 37 - }, - "end": { - "line": 286, - "column": 45 - } - } - }, - "range": [ - 10415, - 10432 - ], - "loc": { - "start": { - "line": 286, - "column": 28 - }, - "end": { - "line": 286, - "column": 45 - } - } - }, - "range": [ - 10415, - 10433 - ], - "loc": { - "start": { - "line": 286, - "column": 28 - }, - "end": { - "line": 286, - "column": 46 - } - } - }, - { - "type": "BreakStatement", - "label": null, - "range": [ - 10462, - 10468 - ], - "loc": { - "start": { - "line": 287, - "column": 28 - }, - "end": { - "line": 287, - "column": 34 - } - } - } - ], - "range": [ - 10375, - 10468 - ], - "loc": { - "start": { - "line": 285, - "column": 24 - }, - "end": { - "line": 287, - "column": 34 - } - } - }, - { - "type": "SwitchCase", - "test": { - "type": "Literal", - "value": "median", - "raw": "'median'", - "range": [ - 10498, - 10506 - ], - "loc": { - "start": { - "line": 288, - "column": 29 - }, - "end": { - "line": 288, - "column": 37 - } - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "result", - "range": [ - 10536, - 10542 - ], - "loc": { - "start": { - "line": 289, - "column": 28 - }, - "end": { - "line": 289, - "column": 34 - } - } - }, - "right": { - "type": "Identifier", - "name": "medValue", - "range": [ - 10545, - 10553 - ], - "loc": { - "start": { - "line": 289, - "column": 37 - }, - "end": { - "line": 289, - "column": 45 - } - } - }, - "range": [ - 10536, - 10553 - ], - "loc": { - "start": { - "line": 289, - "column": 28 - }, - "end": { - "line": 289, - "column": 45 - } - } - }, - "range": [ - 10536, - 10554 - ], - "loc": { - "start": { - "line": 289, - "column": 28 - }, - "end": { - "line": 289, - "column": 46 - } - } - }, - { - "type": "BreakStatement", - "label": null, - "range": [ - 10583, - 10589 - ], - "loc": { - "start": { - "line": 290, - "column": 28 - }, - "end": { - "line": 290, - "column": 34 - } - } - } - ], - "range": [ - 10493, - 10589 - ], - "loc": { - "start": { - "line": 288, - "column": 24 - }, - "end": { - "line": 290, - "column": 34 - } - } - }, - { - "type": "SwitchCase", - "test": { - "type": "Literal", - "value": "q1", - "raw": "'q1'", - "range": [ - 10619, - 10623 - ], - "loc": { - "start": { - "line": 291, - "column": 29 - }, - "end": { - "line": 291, - "column": 33 - } - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "result", - "range": [ - 10653, - 10659 - ], - "loc": { - "start": { - "line": 292, - "column": 28 - }, - "end": { - "line": 292, - "column": 34 - } - } - }, - "right": { - "type": "Identifier", - "name": "q1Value", - "range": [ - 10662, - 10669 - ], - "loc": { - "start": { - "line": 292, - "column": 37 - }, - "end": { - "line": 292, - "column": 44 - } - } - }, - "range": [ - 10653, - 10669 - ], - "loc": { - "start": { - "line": 292, - "column": 28 - }, - "end": { - "line": 292, - "column": 44 - } - } - }, - "range": [ - 10653, - 10670 - ], - "loc": { - "start": { - "line": 292, - "column": 28 - }, - "end": { - "line": 292, - "column": 45 - } - } - }, - { - "type": "BreakStatement", - "label": null, - "range": [ - 10699, - 10705 - ], - "loc": { - "start": { - "line": 293, - "column": 28 - }, - "end": { - "line": 293, - "column": 34 - } - } - } - ], - "range": [ - 10614, - 10705 - ], - "loc": { - "start": { - "line": 291, - "column": 24 - }, - "end": { - "line": 293, - "column": 34 - } - } - }, - { - "type": "SwitchCase", - "test": { - "type": "Literal", - "value": "q3", - "raw": "'q3'", - "range": [ - 10735, - 10739 - ], - "loc": { - "start": { - "line": 294, - "column": 29 - }, - "end": { - "line": 294, - "column": 33 - } - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "result", - "range": [ - 10769, - 10775 - ], - "loc": { - "start": { - "line": 295, - "column": 28 - }, - "end": { - "line": 295, - "column": 34 - } - } - }, - "right": { - "type": "Identifier", - "name": "q3Value", - "range": [ - 10778, - 10785 - ], - "loc": { - "start": { - "line": 295, - "column": 37 - }, - "end": { - "line": 295, - "column": 44 - } - } - }, - "range": [ - 10769, - 10785 - ], - "loc": { - "start": { - "line": 295, - "column": 28 - }, - "end": { - "line": 295, - "column": 44 - } - } - }, - "range": [ - 10769, - 10786 - ], - "loc": { - "start": { - "line": 295, - "column": 28 - }, - "end": { - "line": 295, - "column": 45 - } - } - }, - { - "type": "BreakStatement", - "label": null, - "range": [ - 10815, - 10821 - ], - "loc": { - "start": { - "line": 296, - "column": 28 - }, - "end": { - "line": 296, - "column": 34 - } - } - } - ], - "range": [ - 10730, - 10821 - ], - "loc": { - "start": { - "line": 294, - "column": 24 - }, - "end": { - "line": 296, - "column": 34 - } - } - } - ], - "range": [ - 9970, - 10843 - ], - "loc": { - "start": { - "line": 275, - "column": 20 - }, - "end": { - "line": 297, - "column": 21 - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "precision", - "range": [ - 10869, - 10878 - ], - "loc": { - "start": { - "line": 299, - "column": 24 - }, - "end": { - "line": 299, - "column": 33 - } - } - }, - "init": { - "type": "ConditionalExpression", - "test": { - "type": "UnaryExpression", - "operator": "!", - "argument": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "isNaN", - "range": [ - 10882, - 10887 - ], - "loc": { - "start": { - "line": 299, - "column": 37 - }, - "end": { - "line": 299, - "column": 42 - } - } - }, - "arguments": [ - { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "decThisCol", - "range": [ - 10888, - 10898 - ], - "loc": { - "start": { - "line": 299, - "column": 43 - }, - "end": { - "line": 299, - "column": 53 - } - } - }, - "property": { - "type": "Identifier", - "name": "i", - "range": [ - 10899, - 10900 - ], - "loc": { - "start": { - "line": 299, - "column": 54 - }, - "end": { - "line": 299, - "column": 55 - } - } - }, - "range": [ - 10888, - 10901 - ], - "loc": { - "start": { - "line": 299, - "column": 43 - }, - "end": { - "line": 299, - "column": 56 - } - } - } - ], - "range": [ - 10882, - 10902 - ], - "loc": { - "start": { - "line": 299, - "column": 37 - }, - "end": { - "line": 299, - "column": 57 - } - } - }, - "prefix": true, - "range": [ - 10881, - 10902 - ], - "loc": { - "start": { - "line": 299, - "column": 36 - }, - "end": { - "line": 299, - "column": 57 - } - } - }, - "consequent": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "decThisCol", - "range": [ - 10905, - 10915 - ], - "loc": { - "start": { - "line": 299, - "column": 60 - }, - "end": { - "line": 299, - "column": 70 - } - } - }, - "property": { - "type": "Identifier", - "name": "i", - "range": [ - 10916, - 10917 - ], - "loc": { - "start": { - "line": 299, - "column": 71 - }, - "end": { - "line": 299, - "column": 72 - } - } - }, - "range": [ - 10905, - 10918 - ], - "loc": { - "start": { - "line": 299, - "column": 60 - }, - "end": { - "line": 299, - "column": 73 - } - } - }, - "alternate": { - "type": "Literal", - "value": 2, - "raw": "2", - "range": [ - 10921, - 10922 - ], - "loc": { - "start": { - "line": 299, - "column": 76 - }, - "end": { - "line": 299, - "column": 77 - } - } - }, - "range": [ - 10881, - 10922 - ], - "loc": { - "start": { - "line": 299, - "column": 36 - }, - "end": { - "line": 299, - "column": 77 - } - } - }, - "range": [ - 10869, - 10922 - ], - "loc": { - "start": { - "line": 299, - "column": 24 - }, - "end": { - "line": 299, - "column": 77 - } - } - } - ], - "kind": "let", - "range": [ - 10865, - 10923 - ], - "loc": { - "start": { - "line": 299, - "column": 20 - }, - "end": { - "line": 299, - "column": 78 - } - }, - "trailingComments": [ - { - "type": "Line", - "value": "if outputType is defined", - "range": [ - 10945, - 10971 - ], - "loc": { - "start": { - "line": 301, - "column": 20 - }, - "end": { - "line": 301, - "column": 46 - } - } - } - ] - }, - { - "type": "IfStatement", - "test": { - "type": "LogicalExpression", - "operator": "&&", - "left": { - "type": "Identifier", - "name": "oTypeThisCol", - "range": [ - 10996, - 11008 - ], - "loc": { - "start": { - "line": 302, - "column": 24 - }, - "end": { - "line": 302, - "column": 36 - } - } - }, - "right": { - "type": "Identifier", - "name": "result", - "range": [ - 11012, - 11018 - ], - "loc": { - "start": { - "line": 302, - "column": 40 - }, - "end": { - "line": 302, - "column": 46 - } - } - }, - "range": [ - 10996, - 11018 - ], - "loc": { - "start": { - "line": 302, - "column": 24 - }, - "end": { - "line": 302, - "column": 46 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "Identifier", - "name": "result", - "range": [ - 11046, - 11052 - ], - "loc": { - "start": { - "line": 303, - "column": 24 - }, - "end": { - "line": 303, - "column": 30 - } - } - }, - "right": { - "type": "CallExpression", - "callee": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "result", - "range": [ - 11055, - 11061 - ], - "loc": { - "start": { - "line": 303, - "column": 33 - }, - "end": { - "line": 303, - "column": 39 - } - } - }, - "property": { - "type": "Identifier", - "name": "toFixed", - "range": [ - 11062, - 11069 - ], - "loc": { - "start": { - "line": 303, - "column": 40 - }, - "end": { - "line": 303, - "column": 47 - } - } - }, - "range": [ - 11055, - 11069 - ], - "loc": { - "start": { - "line": 303, - "column": 33 - }, - "end": { - "line": 303, - "column": 47 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "precision", - "range": [ - 11070, - 11079 - ], - "loc": { - "start": { - "line": 303, - "column": 48 - }, - "end": { - "line": 303, - "column": 57 - } - } - } - ], - "range": [ - 11055, - 11080 - ], - "loc": { - "start": { - "line": 303, - "column": 33 - }, - "end": { - "line": 303, - "column": 58 - } - } - }, - "range": [ - 11046, - 11080 - ], - "loc": { - "start": { - "line": 303, - "column": 24 - }, - "end": { - "line": 303, - "column": 58 - } - } - }, - "range": [ - 11046, - 11081 - ], - "loc": { - "start": { - "line": 303, - "column": 24 - }, - "end": { - "line": 303, - "column": 59 - } - } - }, - { - "type": "IfStatement", - "test": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "elm", - "range": [ - 11111, - 11114 - ], - "loc": { - "start": { - "line": 305, - "column": 28 - }, - "end": { - "line": 305, - "column": 31 - } - } - }, - "arguments": [ - { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "labThisCol", - "range": [ - 11115, - 11125 - ], - "loc": { - "start": { - "line": 305, - "column": 32 - }, - "end": { - "line": 305, - "column": 42 - } - } - }, - "property": { - "type": "Identifier", - "name": "i", - "range": [ - 11126, - 11127 - ], - "loc": { - "start": { - "line": 305, - "column": 43 - }, - "end": { - "line": 305, - "column": 44 - } - } - }, - "range": [ - 11115, - 11128 - ], - "loc": { - "start": { - "line": 305, - "column": 32 - }, - "end": { - "line": 305, - "column": 45 - } - } - } - ], - "range": [ - 11111, - 11129 - ], - "loc": { - "start": { - "line": 305, - "column": 28 - }, - "end": { - "line": 305, - "column": 46 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "SwitchStatement", - "discriminant": { - "type": "CallExpression", - "callee": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "oTypeThisCol", - "range": [ - 11169, - 11181 - ], - "loc": { - "start": { - "line": 306, - "column": 36 - }, - "end": { - "line": 306, - "column": 48 - } - } - }, - "property": { - "type": "Identifier", - "name": "toLowerCase", - "range": [ - 11182, - 11193 - ], - "loc": { - "start": { - "line": 306, - "column": 49 - }, - "end": { - "line": 306, - "column": 60 - } - } - }, - "range": [ - 11169, - 11193 - ], - "loc": { - "start": { - "line": 306, - "column": 36 - }, - "end": { - "line": 306, - "column": 60 - } - } - }, - "arguments": [], - "range": [ - 11169, - 11195 - ], - "loc": { - "start": { - "line": 306, - "column": 36 - }, - "end": { - "line": 306, - "column": 62 - } - } - }, - "cases": [ - { - "type": "SwitchCase", - "test": { - "type": "Literal", - "value": "innerhtml", - "raw": "'innerhtml'", - "range": [ - 11236, - 11247 - ], - "loc": { - "start": { - "line": 307, - "column": 37 - }, - "end": { - "line": 307, - "column": 48 - } - } - }, - "consequent": [ - { - "type": "IfStatement", - "test": { - "type": "LogicalExpression", - "operator": "||", - "left": { - "type": "LogicalExpression", - "operator": "||", - "left": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "isNaN", - "range": [ - 11289, - 11294 - ], - "loc": { - "start": { - "line": 308, - "column": 40 - }, - "end": { - "line": 308, - "column": 45 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "result", - "range": [ - 11295, - 11301 - ], - "loc": { - "start": { - "line": 308, - "column": 46 - }, - "end": { - "line": 308, - "column": 52 - } - } - } - ], - "range": [ - 11289, - 11302 - ], - "loc": { - "start": { - "line": 308, - "column": 40 - }, - "end": { - "line": 308, - "column": 53 - } - } - }, - "right": { - "type": "UnaryExpression", - "operator": "!", - "argument": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "isFinite", - "range": [ - 11307, - 11315 - ], - "loc": { - "start": { - "line": 308, - "column": 58 - }, - "end": { - "line": 308, - "column": 66 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "result", - "range": [ - 11316, - 11322 - ], - "loc": { - "start": { - "line": 308, - "column": 67 - }, - "end": { - "line": 308, - "column": 73 - } - } - } - ], - "range": [ - 11307, - 11323 - ], - "loc": { - "start": { - "line": 308, - "column": 58 - }, - "end": { - "line": 308, - "column": 74 - } - } - }, - "prefix": true, - "range": [ - 11306, - 11323 - ], - "loc": { - "start": { - "line": 308, - "column": 57 - }, - "end": { - "line": 308, - "column": 74 - } - } - }, - "range": [ - 11289, - 11323 - ], - "loc": { - "start": { - "line": 308, - "column": 40 - }, - "end": { - "line": 308, - "column": 74 - } - } - }, - "right": { - "type": "BinaryExpression", - "operator": "===", - "left": { - "type": "Identifier", - "name": "nbvalues", - "range": [ - 11367, - 11375 - ], - "loc": { - "start": { - "line": 309, - "column": 40 - }, - "end": { - "line": 309, - "column": 48 - } - } - }, - "right": { - "type": "Literal", - "value": 0, - "raw": "0", - "range": [ - 11380, - 11381 - ], - "loc": { - "start": { - "line": 309, - "column": 53 - }, - "end": { - "line": 309, - "column": 54 - } - } - }, - "range": [ - 11367, - 11381 - ], - "loc": { - "start": { - "line": 309, - "column": 40 - }, - "end": { - "line": 309, - "column": 54 - } - } - }, - "range": [ - 11289, - 11381 - ], - "loc": { - "start": { - "line": 308, - "column": 40 - }, - "end": { - "line": 309, - "column": 54 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "elm", - "range": [ - 11425, - 11428 - ], - "loc": { - "start": { - "line": 310, - "column": 40 - }, - "end": { - "line": 310, - "column": 43 - } - } - }, - "arguments": [ - { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "labThisCol", - "range": [ - 11429, - 11439 - ], - "loc": { - "start": { - "line": 310, - "column": 44 - }, - "end": { - "line": 310, - "column": 54 - } - } - }, - "property": { - "type": "Identifier", - "name": "i", - "range": [ - 11440, - 11441 - ], - "loc": { - "start": { - "line": 310, - "column": 55 - }, - "end": { - "line": 310, - "column": 56 - } - } - }, - "range": [ - 11429, - 11442 - ], - "loc": { - "start": { - "line": 310, - "column": 44 - }, - "end": { - "line": 310, - "column": 57 - } - } - } - ], - "range": [ - 11425, - 11443 - ], - "loc": { - "start": { - "line": 310, - "column": 40 - }, - "end": { - "line": 310, - "column": 58 - } - } - }, - "property": { - "type": "Identifier", - "name": "innerHTML", - "range": [ - 11444, - 11453 - ], - "loc": { - "start": { - "line": 310, - "column": 59 - }, - "end": { - "line": 310, - "column": 68 - } - } - }, - "range": [ - 11425, - 11453 - ], - "loc": { - "start": { - "line": 310, - "column": 40 - }, - "end": { - "line": 310, - "column": 68 - } - } - }, - "right": { - "type": "Literal", - "value": ".", - "raw": "'.'", - "range": [ - 11456, - 11459 - ], - "loc": { - "start": { - "line": 310, - "column": 71 - }, - "end": { - "line": 310, - "column": 74 - } - } - }, - "range": [ - 11425, - 11459 - ], - "loc": { - "start": { - "line": 310, - "column": 40 - }, - "end": { - "line": 310, - "column": 74 - } - } - }, - "range": [ - 11425, - 11460 - ], - "loc": { - "start": { - "line": 310, - "column": 40 - }, - "end": { - "line": 310, - "column": 75 - } - } - } - ], - "range": [ - 11383, - 11498 - ], - "loc": { - "start": { - "line": 309, - "column": 56 - }, - "end": { - "line": 311, - "column": 37 - } - } - }, - "alternate": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "elm", - "range": [ - 11546, - 11549 - ], - "loc": { - "start": { - "line": 312, - "column": 40 - }, - "end": { - "line": 312, - "column": 43 - } - } - }, - "arguments": [ - { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "labThisCol", - "range": [ - 11550, - 11560 - ], - "loc": { - "start": { - "line": 312, - "column": 44 - }, - "end": { - "line": 312, - "column": 54 - } - } - }, - "property": { - "type": "Identifier", - "name": "i", - "range": [ - 11561, - 11562 - ], - "loc": { - "start": { - "line": 312, - "column": 55 - }, - "end": { - "line": 312, - "column": 56 - } - } - }, - "range": [ - 11550, - 11563 - ], - "loc": { - "start": { - "line": 312, - "column": 44 - }, - "end": { - "line": 312, - "column": 57 - } - } - } - ], - "range": [ - 11546, - 11564 - ], - "loc": { - "start": { - "line": 312, - "column": 40 - }, - "end": { - "line": 312, - "column": 58 - } - } - }, - "property": { - "type": "Identifier", - "name": "innerHTML", - "range": [ - 11565, - 11574 - ], - "loc": { - "start": { - "line": 312, - "column": 59 - }, - "end": { - "line": 312, - "column": 68 - } - } - }, - "range": [ - 11546, - 11574 - ], - "loc": { - "start": { - "line": 312, - "column": 40 - }, - "end": { - "line": 312, - "column": 68 - } - } - }, - "right": { - "type": "Identifier", - "name": "result", - "range": [ - 11577, - 11583 - ], - "loc": { - "start": { - "line": 312, - "column": 71 - }, - "end": { - "line": 312, - "column": 77 - } - } - }, - "range": [ - 11546, - 11583 - ], - "loc": { - "start": { - "line": 312, - "column": 40 - }, - "end": { - "line": 312, - "column": 77 - } - } - }, - "range": [ - 11546, - 11584 - ], - "loc": { - "start": { - "line": 312, - "column": 40 - }, - "end": { - "line": 312, - "column": 78 - } - } - } - ], - "range": [ - 11504, - 11622 - ], - "loc": { - "start": { - "line": 311, - "column": 43 - }, - "end": { - "line": 313, - "column": 37 - } - } - }, - "range": [ - 11285, - 11622 - ], - "loc": { - "start": { - "line": 308, - "column": 36 - }, - "end": { - "line": 313, - "column": 37 - } - } - }, - { - "type": "BreakStatement", - "label": null, - "range": [ - 11659, - 11665 - ], - "loc": { - "start": { - "line": 314, - "column": 36 - }, - "end": { - "line": 314, - "column": 42 - } - } - } - ], - "range": [ - 11231, - 11665 - ], - "loc": { - "start": { - "line": 307, - "column": 32 - }, - "end": { - "line": 314, - "column": 42 - } - } - }, - { - "type": "SwitchCase", - "test": { - "type": "Literal", - "value": "setvalue", - "raw": "'setvalue'", - "range": [ - 11703, - 11713 - ], - "loc": { - "start": { - "line": 315, - "column": 37 - }, - "end": { - "line": 315, - "column": 47 - } - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "elm", - "range": [ - 11751, - 11754 - ], - "loc": { - "start": { - "line": 316, - "column": 36 - }, - "end": { - "line": 316, - "column": 39 - } - } - }, - "arguments": [ - { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "labThisCol", - "range": [ - 11755, - 11765 - ], - "loc": { - "start": { - "line": 316, - "column": 40 - }, - "end": { - "line": 316, - "column": 50 - } - } - }, - "property": { - "type": "Identifier", - "name": "i", - "range": [ - 11766, - 11767 - ], - "loc": { - "start": { - "line": 316, - "column": 51 - }, - "end": { - "line": 316, - "column": 52 - } - } - }, - "range": [ - 11755, - 11768 - ], - "loc": { - "start": { - "line": 316, - "column": 40 - }, - "end": { - "line": 316, - "column": 53 - } - } - } - ], - "range": [ - 11751, - 11769 - ], - "loc": { - "start": { - "line": 316, - "column": 36 - }, - "end": { - "line": 316, - "column": 54 - } - } - }, - "property": { - "type": "Identifier", - "name": "value", - "range": [ - 11770, - 11775 - ], - "loc": { - "start": { - "line": 316, - "column": 55 - }, - "end": { - "line": 316, - "column": 60 - } - } - }, - "range": [ - 11751, - 11775 - ], - "loc": { - "start": { - "line": 316, - "column": 36 - }, - "end": { - "line": 316, - "column": 60 - } - } - }, - "right": { - "type": "Identifier", - "name": "result", - "range": [ - 11778, - 11784 - ], - "loc": { - "start": { - "line": 316, - "column": 63 - }, - "end": { - "line": 316, - "column": 69 - } - } - }, - "range": [ - 11751, - 11784 - ], - "loc": { - "start": { - "line": 316, - "column": 36 - }, - "end": { - "line": 316, - "column": 69 - } - } - }, - "range": [ - 11751, - 11785 - ], - "loc": { - "start": { - "line": 316, - "column": 36 - }, - "end": { - "line": 316, - "column": 70 - } - } - }, - { - "type": "BreakStatement", - "label": null, - "range": [ - 11822, - 11828 - ], - "loc": { - "start": { - "line": 317, - "column": 36 - }, - "end": { - "line": 317, - "column": 42 - } - } - } - ], - "range": [ - 11698, - 11828 - ], - "loc": { - "start": { - "line": 315, - "column": 32 - }, - "end": { - "line": 317, - "column": 42 - } - } - }, - { - "type": "SwitchCase", - "test": { - "type": "Literal", - "value": "createtextnode", - "raw": "'createtextnode'", - "range": [ - 11866, - 11882 - ], - "loc": { - "start": { - "line": 318, - "column": 37 - }, - "end": { - "line": 318, - "column": 53 - } - } - }, - "consequent": [ - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "oldnode", - "range": [ - 11924, - 11931 - ], - "loc": { - "start": { - "line": 319, - "column": 40 - }, - "end": { - "line": 319, - "column": 47 - } - } - }, - "init": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "elm", - "range": [ - 11974, - 11977 - ], - "loc": { - "start": { - "line": 320, - "column": 40 - }, - "end": { - "line": 320, - "column": 43 - } - } - }, - "arguments": [ - { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "labThisCol", - "range": [ - 11978, - 11988 - ], - "loc": { - "start": { - "line": 320, - "column": 44 - }, - "end": { - "line": 320, - "column": 54 - } - } - }, - "property": { - "type": "Identifier", - "name": "i", - "range": [ - 11989, - 11990 - ], - "loc": { - "start": { - "line": 320, - "column": 55 - }, - "end": { - "line": 320, - "column": 56 - } - } - }, - "range": [ - 11978, - 11991 - ], - "loc": { - "start": { - "line": 320, - "column": 44 - }, - "end": { - "line": 320, - "column": 57 - } - } - } - ], - "range": [ - 11974, - 11992 - ], - "loc": { - "start": { - "line": 320, - "column": 40 - }, - "end": { - "line": 320, - "column": 58 - } - } - }, - "property": { - "type": "Identifier", - "name": "firstChild", - "range": [ - 11993, - 12003 - ], - "loc": { - "start": { - "line": 320, - "column": 59 - }, - "end": { - "line": 320, - "column": 69 - } - } - }, - "range": [ - 11974, - 12003 - ], - "loc": { - "start": { - "line": 320, - "column": 40 - }, - "end": { - "line": 320, - "column": 69 - } - } - }, - "range": [ - 11924, - 12003 - ], - "loc": { - "start": { - "line": 319, - "column": 40 - }, - "end": { - "line": 320, - "column": 69 - } - } - } - ], - "kind": "let", - "range": [ - 11920, - 12004 - ], - "loc": { - "start": { - "line": 319, - "column": 36 - }, - "end": { - "line": 320, - "column": 70 - } - } - }, - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "txtnode", - "range": [ - 12045, - 12052 - ], - "loc": { - "start": { - "line": 321, - "column": 40 - }, - "end": { - "line": 321, - "column": 47 - } - } - }, - "init": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "createText", - "range": [ - 12055, - 12065 - ], - "loc": { - "start": { - "line": 321, - "column": 50 - }, - "end": { - "line": 321, - "column": 60 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "result", - "range": [ - 12066, - 12072 - ], - "loc": { - "start": { - "line": 321, - "column": 61 - }, - "end": { - "line": 321, - "column": 67 - } - } - } - ], - "range": [ - 12055, - 12073 - ], - "loc": { - "start": { - "line": 321, - "column": 50 - }, - "end": { - "line": 321, - "column": 68 - } - } - }, - "range": [ - 12045, - 12073 - ], - "loc": { - "start": { - "line": 321, - "column": 40 - }, - "end": { - "line": 321, - "column": 68 - } - } - } - ], - "kind": "let", - "range": [ - 12041, - 12074 - ], - "loc": { - "start": { - "line": 321, - "column": 36 - }, - "end": { - "line": 321, - "column": 69 - } - } - }, - { - "type": "ExpressionStatement", - "expression": { - "type": "CallExpression", - "callee": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "elm", - "range": [ - 12111, - 12114 - ], - "loc": { - "start": { - "line": 322, - "column": 36 - }, - "end": { - "line": 322, - "column": 39 - } - } - }, - "arguments": [ - { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "labThisCol", - "range": [ - 12115, - 12125 - ], - "loc": { - "start": { - "line": 322, - "column": 40 - }, - "end": { - "line": 322, - "column": 50 - } - } - }, - "property": { - "type": "Identifier", - "name": "i", - "range": [ - 12126, - 12127 - ], - "loc": { - "start": { - "line": 322, - "column": 51 - }, - "end": { - "line": 322, - "column": 52 - } - } - }, - "range": [ - 12115, - 12128 - ], - "loc": { - "start": { - "line": 322, - "column": 40 - }, - "end": { - "line": 322, - "column": 53 - } - } - } - ], - "range": [ - 12111, - 12129 - ], - "loc": { - "start": { - "line": 322, - "column": 36 - }, - "end": { - "line": 322, - "column": 54 - } - } - }, - "property": { - "type": "Identifier", - "name": "replaceChild", - "range": [ - 12171, - 12183 - ], - "loc": { - "start": { - "line": 323, - "column": 41 - }, - "end": { - "line": 323, - "column": 53 - } - } - }, - "range": [ - 12111, - 12183 - ], - "loc": { - "start": { - "line": 322, - "column": 36 - }, - "end": { - "line": 323, - "column": 53 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "txtnode", - "range": [ - 12184, - 12191 - ], - "loc": { - "start": { - "line": 323, - "column": 54 - }, - "end": { - "line": 323, - "column": 61 - } - } - }, - { - "type": "Identifier", - "name": "oldnode", - "range": [ - 12193, - 12200 - ], - "loc": { - "start": { - "line": 323, - "column": 63 - }, - "end": { - "line": 323, - "column": 70 - } - } - } - ], - "range": [ - 12111, - 12201 - ], - "loc": { - "start": { - "line": 322, - "column": 36 - }, - "end": { - "line": 323, - "column": 71 - } - } - }, - "range": [ - 12111, - 12202 - ], - "loc": { - "start": { - "line": 322, - "column": 36 - }, - "end": { - "line": 323, - "column": 72 - } - } - }, - { - "type": "BreakStatement", - "label": null, - "range": [ - 12239, - 12245 - ], - "loc": { - "start": { - "line": 324, - "column": 36 - }, - "end": { - "line": 324, - "column": 42 - } - } - } - ], - "range": [ - 11861, - 12245 - ], - "loc": { - "start": { - "line": 318, - "column": 32 - }, - "end": { - "line": 324, - "column": 42 - } - } - } - ], - "range": [ - 11161, - 12275 - ], - "loc": { - "start": { - "line": 306, - "column": 28 - }, - "end": { - "line": 325, - "column": 29 - } - }, - "trailingComments": [ - { - "type": "Line", - "value": "switch", - "range": [ - 12275, - 12283 - ], - "loc": { - "start": { - "line": 325, - "column": 29 - }, - "end": { - "line": 325, - "column": 37 - } - } - } - ] - } - ], - "range": [ - 11131, - 12309 - ], - "loc": { - "start": { - "line": 305, - "column": 48 - }, - "end": { - "line": 326, - "column": 25 - } - } - }, - "alternate": null, - "range": [ - 11107, - 12309 - ], - "loc": { - "start": { - "line": 305, - "column": 24 - }, - "end": { - "line": 326, - "column": 25 - } - } - } - ], - "range": [ - 11020, - 12331 - ], - "loc": { - "start": { - "line": 302, - "column": 48 - }, - "end": { - "line": 327, - "column": 21 - } - } - }, - "alternate": { - "type": "BlockStatement", - "body": [ - { - "type": "TryStatement", - "block": { - "type": "BlockStatement", - "body": [ - { - "type": "IfStatement", - "test": { - "type": "LogicalExpression", - "operator": "||", - "left": { - "type": "LogicalExpression", - "operator": "||", - "left": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "isNaN", - "range": [ - 12401, - 12406 - ], - "loc": { - "start": { - "line": 329, - "column": 32 - }, - "end": { - "line": 329, - "column": 37 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "result", - "range": [ - 12407, - 12413 - ], - "loc": { - "start": { - "line": 329, - "column": 38 - }, - "end": { - "line": 329, - "column": 44 - } - } - } - ], - "range": [ - 12401, - 12414 - ], - "loc": { - "start": { - "line": 329, - "column": 32 - }, - "end": { - "line": 329, - "column": 45 - } - } - }, - "right": { - "type": "UnaryExpression", - "operator": "!", - "argument": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "isFinite", - "range": [ - 12419, - 12427 - ], - "loc": { - "start": { - "line": 329, - "column": 50 - }, - "end": { - "line": 329, - "column": 58 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "result", - "range": [ - 12428, - 12434 - ], - "loc": { - "start": { - "line": 329, - "column": 59 - }, - "end": { - "line": 329, - "column": 65 - } - } - } - ], - "range": [ - 12419, - 12435 - ], - "loc": { - "start": { - "line": 329, - "column": 50 - }, - "end": { - "line": 329, - "column": 66 - } - } - }, - "prefix": true, - "range": [ - 12418, - 12435 - ], - "loc": { - "start": { - "line": 329, - "column": 49 - }, - "end": { - "line": 329, - "column": 66 - } - } - }, - "range": [ - 12401, - 12435 - ], - "loc": { - "start": { - "line": 329, - "column": 32 - }, - "end": { - "line": 329, - "column": 66 - } - } - }, - "right": { - "type": "BinaryExpression", - "operator": "===", - "left": { - "type": "Identifier", - "name": "nbvalues", - "range": [ - 12471, - 12479 - ], - "loc": { - "start": { - "line": 330, - "column": 32 - }, - "end": { - "line": 330, - "column": 40 - } - } - }, - "right": { - "type": "Literal", - "value": 0, - "raw": "0", - "range": [ - 12484, - 12485 - ], - "loc": { - "start": { - "line": 330, - "column": 45 - }, - "end": { - "line": 330, - "column": 46 - } - } - }, - "range": [ - 12471, - 12485 - ], - "loc": { - "start": { - "line": 330, - "column": 32 - }, - "end": { - "line": 330, - "column": 46 - } - } - }, - "range": [ - 12401, - 12485 - ], - "loc": { - "start": { - "line": 329, - "column": 32 - }, - "end": { - "line": 330, - "column": 46 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "elm", - "range": [ - 12521, - 12524 - ], - "loc": { - "start": { - "line": 331, - "column": 32 - }, - "end": { - "line": 331, - "column": 35 - } - } - }, - "arguments": [ - { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "labThisCol", - "range": [ - 12525, - 12535 - ], - "loc": { - "start": { - "line": 331, - "column": 36 - }, - "end": { - "line": 331, - "column": 46 - } - } - }, - "property": { - "type": "Identifier", - "name": "i", - "range": [ - 12536, - 12537 - ], - "loc": { - "start": { - "line": 331, - "column": 47 - }, - "end": { - "line": 331, - "column": 48 - } - } - }, - "range": [ - 12525, - 12538 - ], - "loc": { - "start": { - "line": 331, - "column": 36 - }, - "end": { - "line": 331, - "column": 49 - } - } - } - ], - "range": [ - 12521, - 12539 - ], - "loc": { - "start": { - "line": 331, - "column": 32 - }, - "end": { - "line": 331, - "column": 50 - } - } - }, - "property": { - "type": "Identifier", - "name": "innerHTML", - "range": [ - 12540, - 12549 - ], - "loc": { - "start": { - "line": 331, - "column": 51 - }, - "end": { - "line": 331, - "column": 60 - } - } - }, - "range": [ - 12521, - 12549 - ], - "loc": { - "start": { - "line": 331, - "column": 32 - }, - "end": { - "line": 331, - "column": 60 - } - } - }, - "right": { - "type": "Literal", - "value": ".", - "raw": "'.'", - "range": [ - 12552, - 12555 - ], - "loc": { - "start": { - "line": 331, - "column": 63 - }, - "end": { - "line": 331, - "column": 66 - } - } - }, - "range": [ - 12521, - 12555 - ], - "loc": { - "start": { - "line": 331, - "column": 32 - }, - "end": { - "line": 331, - "column": 66 - } - } - }, - "range": [ - 12521, - 12556 - ], - "loc": { - "start": { - "line": 331, - "column": 32 - }, - "end": { - "line": 331, - "column": 67 - } - } - } - ], - "range": [ - 12487, - 12586 - ], - "loc": { - "start": { - "line": 330, - "column": 48 - }, - "end": { - "line": 332, - "column": 29 - } - } - }, - "alternate": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "elm", - "range": [ - 12626, - 12629 - ], - "loc": { - "start": { - "line": 333, - "column": 32 - }, - "end": { - "line": 333, - "column": 35 - } - } - }, - "arguments": [ - { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "labThisCol", - "range": [ - 12630, - 12640 - ], - "loc": { - "start": { - "line": 333, - "column": 36 - }, - "end": { - "line": 333, - "column": 46 - } - } - }, - "property": { - "type": "Identifier", - "name": "i", - "range": [ - 12641, - 12642 - ], - "loc": { - "start": { - "line": 333, - "column": 47 - }, - "end": { - "line": 333, - "column": 48 - } - } - }, - "range": [ - 12630, - 12643 - ], - "loc": { - "start": { - "line": 333, - "column": 36 - }, - "end": { - "line": 333, - "column": 49 - } - } - } - ], - "range": [ - 12626, - 12644 - ], - "loc": { - "start": { - "line": 333, - "column": 32 - }, - "end": { - "line": 333, - "column": 50 - } - } - }, - "property": { - "type": "Identifier", - "name": "innerHTML", - "range": [ - 12645, - 12654 - ], - "loc": { - "start": { - "line": 333, - "column": 51 - }, - "end": { - "line": 333, - "column": 60 - } - } - }, - "range": [ - 12626, - 12654 - ], - "loc": { - "start": { - "line": 333, - "column": 32 - }, - "end": { - "line": 333, - "column": 60 - } - } - }, - "right": { - "type": "CallExpression", - "callee": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "result", - "range": [ - 12693, - 12699 - ], - "loc": { - "start": { - "line": 334, - "column": 36 - }, - "end": { - "line": 334, - "column": 42 - } - } - }, - "property": { - "type": "Identifier", - "name": "toFixed", - "range": [ - 12700, - 12707 - ], - "loc": { - "start": { - "line": 334, - "column": 43 - }, - "end": { - "line": 334, - "column": 50 - } - } - }, - "range": [ - 12693, - 12707 - ], - "loc": { - "start": { - "line": 334, - "column": 36 - }, - "end": { - "line": 334, - "column": 50 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "precision", - "range": [ - 12708, - 12717 - ], - "loc": { - "start": { - "line": 334, - "column": 51 - }, - "end": { - "line": 334, - "column": 60 - } - } - } - ], - "range": [ - 12693, - 12718 - ], - "loc": { - "start": { - "line": 334, - "column": 36 - }, - "end": { - "line": 334, - "column": 61 - } - } - }, - "range": [ - 12626, - 12718 - ], - "loc": { - "start": { - "line": 333, - "column": 32 - }, - "end": { - "line": 334, - "column": 61 - } - } - }, - "range": [ - 12626, - 12719 - ], - "loc": { - "start": { - "line": 333, - "column": 32 - }, - "end": { - "line": 334, - "column": 62 - } - } - } - ], - "range": [ - 12592, - 12749 - ], - "loc": { - "start": { - "line": 332, - "column": 35 - }, - "end": { - "line": 335, - "column": 29 - } - } - }, - "range": [ - 12397, - 12749 - ], - "loc": { - "start": { - "line": 329, - "column": 28 - }, - "end": { - "line": 335, - "column": 29 - } - } - } - ], - "range": [ - 12367, - 12775 - ], - "loc": { - "start": { - "line": 328, - "column": 28 - }, - "end": { - "line": 336, - "column": 25 - } - } - }, - "handler": { - "type": "CatchClause", - "param": { - "type": "Identifier", - "name": "e", - "range": [ - 12783, - 12784 - ], - "loc": { - "start": { - "line": 336, - "column": 33 - }, - "end": { - "line": 336, - "column": 34 - } - } - }, - "body": { - "type": "BlockStatement", - "body": [], - "range": [ - 12786, - 12789 - ], - "loc": { - "start": { - "line": 336, - "column": 36 - }, - "end": { - "line": 336, - "column": 39 - } - } - }, - "range": [ - 12776, - 12789 - ], - "loc": { - "start": { - "line": 336, - "column": 26 - }, - "end": { - "line": 336, - "column": 39 - } - } - }, - "finalizer": null, - "range": [ - 12363, - 12789 - ], - "loc": { - "start": { - "line": 328, - "column": 24 - }, - "end": { - "line": 336, - "column": 39 - } - }, - "trailingComments": [ - { - "type": "Line", - "value": "catch", - "range": [ - 12789, - 12796 - ], - "loc": { - "start": { - "line": 336, - "column": 39 - }, - "end": { - "line": 336, - "column": 46 - } - } - } - ] - } - ], - "range": [ - 12337, - 12818 - ], - "loc": { - "start": { - "line": 327, - "column": 27 - }, - "end": { - "line": 337, - "column": 21 - } - }, - "leadingComments": [ - { - "type": "Line", - "value": "switch", - "range": [ - 12275, - 12283 - ], - "loc": { - "start": { - "line": 325, - "column": 29 - }, - "end": { - "line": 325, - "column": 37 - } - } - } - ] - }, - "range": [ - 10992, - 12818 - ], - "loc": { - "start": { - "line": 302, - "column": 20 - }, - "end": { - "line": 337, - "column": 21 - } - }, - "leadingComments": [ - { - "type": "Line", - "value": "if outputType is defined", - "range": [ - 10945, - 10971 - ], - "loc": { - "start": { - "line": 301, - "column": 20 - }, - "end": { - "line": 301, - "column": 46 - } - } - } - ], - "trailingComments": [ - { - "type": "Line", - "value": "else", - "range": [ - 12818, - 12824 - ], - "loc": { - "start": { - "line": 337, - "column": 21 - }, - "end": { - "line": 337, - "column": 27 - } - } - } - ] - } - ], - "range": [ - 9948, - 12842 - ], - "loc": { - "start": { - "line": 274, - "column": 43 - }, - "end": { - "line": 338, - "column": 17 - } - } - }, - "range": [ - 9921, - 12842 - ], - "loc": { - "start": { - "line": 274, - "column": 16 - }, - "end": { - "line": 338, - "column": 17 - } - }, - "trailingComments": [ - { - "type": "Line", - "value": "for i", - "range": [ - 12842, - 12849 - ], - "loc": { - "start": { - "line": 338, - "column": 17 - }, - "end": { - "line": 338, - "column": 24 - } - } - }, - { - "type": "Line", - "value": " row(s) with result are always visible", - "range": [ - 12867, - 12907 - ], - "loc": { - "start": { - "line": 340, + "line": 193, "column": 16 }, "end": { - "line": 340, + "line": 193, "column": 56 } } @@ -20852,647 +9670,1553 @@ ] }, { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "result", + "range": [ + 6078, + 6084 + ], + "loc": { + "start": { + "line": 204, + "column": 16 + }, + "end": { + "line": 204, + "column": 22 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { "type": "Identifier", - "name": "totRow", + "name": "Number", "range": [ - 12928, - 12934 + 6087, + 6093 ], "loc": { "start": { - "line": 341, - "column": 20 + "line": 204, + "column": 25 }, "end": { - "line": 341, - "column": 26 + "line": 204, + "column": 31 } } }, - "init": { - "type": "ConditionalExpression", - "test": { - "type": "LogicalExpression", - "operator": "&&", - "left": { - "type": "Identifier", - "name": "totRowIndex", - "range": [ - 12937, - 12948 - ], - "loc": { - "start": { - "line": 341, - "column": 29 - }, - "end": { - "line": 341, - "column": 40 - } - } - }, - "right": { + "arguments": [ + { + "type": "CallExpression", + "callee": { "type": "MemberExpression", - "computed": true, + "computed": false, "object": { - "type": "Identifier", - "name": "totRowIndex", + "type": "ThisExpression", "range": [ - 12952, - 12963 + 6094, + 6098 ], "loc": { "start": { - "line": 341, - "column": 44 + "line": 204, + "column": 32 }, "end": { - "line": 341, - "column": 55 - } - } - }, - "property": { - "type": "Identifier", - "name": "ucol", - "range": [ - 12964, - 12968 - ], - "loc": { - "start": { - "line": 341, - "column": 56 - }, - "end": { - "line": 341, - "column": 60 - } - } - }, - "range": [ - 12952, - 12969 - ], - "loc": { - "start": { - "line": 341, - "column": 44 - }, - "end": { - "line": 341, - "column": 61 - } - } - }, - "range": [ - 12937, - 12969 - ], - "loc": { - "start": { - "line": 341, - "column": 29 - }, - "end": { - "line": 341, - "column": 61 - } - } - }, - "consequent": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "rows", - "range": [ - 12992, - 12996 - ], - "loc": { - "start": { - "line": 342, - "column": 20 - }, - "end": { - "line": 342, - "column": 24 - } - } - }, - "property": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "totRowIndex", - "range": [ - 12997, - 13008 - ], - "loc": { - "start": { - "line": 342, - "column": 25 - }, - "end": { - "line": 342, + "line": 204, "column": 36 } } }, "property": { "type": "Identifier", - "name": "ucol", + "name": "calc", "range": [ - 13009, - 13013 + 6099, + 6103 ], "loc": { "start": { - "line": 342, + "line": 204, "column": 37 }, "end": { - "line": 342, + "line": 204, "column": 41 } } }, "range": [ - 12997, - 13014 + 6094, + 6103 ], "loc": { "start": { - "line": 342, - "column": 25 + "line": 204, + "column": 32 }, "end": { - "line": 342, - "column": 42 + "line": 204, + "column": 41 } } }, + "arguments": [ + { + "type": "Identifier", + "name": "curValues", + "range": [ + 6104, + 6113 + ], + "loc": { + "start": { + "line": 204, + "column": 42 + }, + "end": { + "line": 204, + "column": 51 + } + } + }, + { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "operations", + "range": [ + 6115, + 6125 + ], + "loc": { + "start": { + "line": 204, + "column": 53 + }, + "end": { + "line": 204, + "column": 63 + } + } + }, + "property": { + "type": "Identifier", + "name": "i", + "range": [ + 6126, + 6127 + ], + "loc": { + "start": { + "line": 204, + "column": 64 + }, + "end": { + "line": 204, + "column": 65 + } + } + }, + "range": [ + 6115, + 6128 + ], + "loc": { + "start": { + "line": 204, + "column": 53 + }, + "end": { + "line": 204, + "column": 66 + } + } + }, + { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 6130, + 6134 + ], + "loc": { + "start": { + "line": 204, + "column": 68 + }, + "end": { + "line": 204, + "column": 72 + } + } + } + ], "range": [ - 12992, - 13015 + 6094, + 6135 ], "loc": { "start": { - "line": 342, - "column": 20 + "line": 204, + "column": 32 }, "end": { - "line": 342, - "column": 43 + "line": 204, + "column": 73 } } - }, - "alternate": { - "type": "Literal", - "value": null, - "raw": "null", - "range": [ - 13018, - 13022 - ], - "loc": { - "start": { - "line": 342, - "column": 46 - }, - "end": { - "line": 342, - "column": 50 - } - } - }, - "range": [ - 12937, - 13022 - ], - "loc": { - "start": { - "line": 341, - "column": 29 - }, - "end": { - "line": 342, - "column": 50 - } } - }, + ], "range": [ - 12928, - 13022 + 6087, + 6136 ], "loc": { "start": { - "line": 341, - "column": 20 + "line": 204, + "column": 25 }, "end": { - "line": 342, - "column": 50 + "line": 204, + "column": 74 } } + }, + "range": [ + 6078, + 6136 + ], + "loc": { + "start": { + "line": 204, + "column": 16 + }, + "end": { + "line": 204, + "column": 74 + } } - ], - "kind": "let", + }, "range": [ - 12924, - 13023 + 6078, + 6137 ], "loc": { "start": { - "line": 341, + "line": 204, "column": 16 }, "end": { - "line": 342, - "column": 51 + "line": 204, + "column": 75 } }, - "leadingComments": [ + "trailingComments": [ { "type": "Line", - "value": "catch", + "value": " emit column calculation result", "range": [ - 12789, - 12796 + 6155, + 6188 ], "loc": { "start": { - "line": 336, - "column": 39 - }, - "end": { - "line": 336, - "column": 46 - } - } - }, - { - "type": "Line", - "value": "else", - "range": [ - 12818, - 12824 - ], - "loc": { - "start": { - "line": 337, - "column": 21 - }, - "end": { - "line": 337, - "column": 27 - } - } - }, - { - "type": "Line", - "value": "for i", - "range": [ - 12842, - 12849 - ], - "loc": { - "start": { - "line": 338, - "column": 17 - }, - "end": { - "line": 338, - "column": 24 - } - } - }, - { - "type": "Line", - "value": " row(s) with result are always visible", - "range": [ - 12867, - 12907 - ], - "loc": { - "start": { - "line": 340, + "line": 206, "column": 16 }, "end": { - "line": 340, - "column": 56 + "line": 206, + "column": 49 } } } ] }, { - "type": "IfStatement", - "test": { - "type": "Identifier", - "name": "totRow", - "range": [ - 13044, - 13050 - ], - "loc": { - "start": { - "line": 343, - "column": 20 - }, - "end": { - "line": 343, - "column": 26 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "totRow", - "range": [ - 13074, - 13080 - ], - "loc": { - "start": { - "line": 344, - "column": 20 - }, - "end": { - "line": 344, - "column": 26 - } - } - }, - "property": { - "type": "Identifier", - "name": "style", - "range": [ - 13081, - 13086 - ], - "loc": { - "start": { - "line": 344, - "column": 27 - }, - "end": { - "line": 344, - "column": 32 - } - } - }, - "range": [ - 13074, - 13086 - ], - "loc": { - "start": { - "line": 344, - "column": 20 - }, - "end": { - "line": 344, - "column": 32 - } - } - }, - "property": { - "type": "Identifier", - "name": "display", - "range": [ - 13087, - 13094 - ], - "loc": { - "start": { - "line": 344, - "column": 33 - }, - "end": { - "line": 344, - "column": 40 - } - } - }, - "range": [ - 13074, - 13094 - ], - "loc": { - "start": { - "line": 344, - "column": 20 - }, - "end": { - "line": 344, - "column": 40 - } - } - }, - "right": { - "type": "Literal", - "value": "", - "raw": "''", - "range": [ - 13097, - 13099 - ], - "loc": { - "start": { - "line": 344, - "column": 43 - }, - "end": { - "line": 344, - "column": 45 - } - } - }, + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", "range": [ - 13074, - 13099 + 6205, + 6209 ], "loc": { "start": { - "line": 344, - "column": 20 + "line": 207, + "column": 16 }, "end": { - "line": 344, - "column": 45 + "line": 207, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "emitter", + "range": [ + 6210, + 6217 + ], + "loc": { + "start": { + "line": 207, + "column": 21 + }, + "end": { + "line": 207, + "column": 28 } } }, "range": [ - 13074, - 13100 + 6205, + 6217 ], "loc": { "start": { - "line": 344, + "line": 207, + "column": 16 + }, + "end": { + "line": 207, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "emit", + "range": [ + 6218, + 6222 + ], + "loc": { + "start": { + "line": 207, + "column": 29 + }, + "end": { + "line": 207, + "column": 33 + } + } + }, + "range": [ + 6205, + 6222 + ], + "loc": { + "start": { + "line": 207, + "column": 16 + }, + "end": { + "line": 207, + "column": 33 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "column-calc", + "raw": "'column-calc'", + "range": [ + 6244, + 6257 + ], + "loc": { + "start": { + "line": 208, "column": 20 }, "end": { - "line": 344, - "column": 46 + "line": 208, + "column": 33 + } + } + }, + { + "type": "Identifier", + "name": "tf", + "range": [ + 6279, + 6281 + ], + "loc": { + "start": { + "line": 209, + "column": 20 + }, + "end": { + "line": 209, + "column": 22 + } + } + }, + { + "type": "ThisExpression", + "range": [ + 6303, + 6307 + ], + "loc": { + "start": { + "line": 210, + "column": 20 + }, + "end": { + "line": 210, + "column": 24 + } + } + }, + { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "uIndexes", + "range": [ + 6329, + 6337 + ], + "loc": { + "start": { + "line": 211, + "column": 20 + }, + "end": { + "line": 211, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "u", + "range": [ + 6338, + 6339 + ], + "loc": { + "start": { + "line": 211, + "column": 29 + }, + "end": { + "line": 211, + "column": 30 + } + } + }, + "range": [ + 6329, + 6340 + ], + "loc": { + "start": { + "line": 211, + "column": 20 + }, + "end": { + "line": 211, + "column": 31 + } + } + }, + { + "type": "Identifier", + "name": "result", + "range": [ + 6362, + 6368 + ], + "loc": { + "start": { + "line": 212, + "column": 20 + }, + "end": { + "line": 212, + "column": 26 + } + } + }, + { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "operations", + "range": [ + 6390, + 6400 + ], + "loc": { + "start": { + "line": 213, + "column": 20 + }, + "end": { + "line": 213, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "i", + "range": [ + 6401, + 6402 + ], + "loc": { + "start": { + "line": 213, + "column": 31 + }, + "end": { + "line": 213, + "column": 32 + } + } + }, + "range": [ + 6390, + 6403 + ], + "loc": { + "start": { + "line": 213, + "column": 20 + }, + "end": { + "line": 213, + "column": 33 + } + } + }, + { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "precisions", + "range": [ + 6425, + 6435 + ], + "loc": { + "start": { + "line": 214, + "column": 20 + }, + "end": { + "line": 214, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "i", + "range": [ + 6436, + 6437 + ], + "loc": { + "start": { + "line": 214, + "column": 31 + }, + "end": { + "line": 214, + "column": 32 + } + } + }, + "range": [ + 6425, + 6438 + ], + "loc": { + "start": { + "line": 214, + "column": 20 + }, + "end": { + "line": 214, + "column": 33 } } } ], "range": [ - 13052, - 13118 + 6205, + 6456 ], "loc": { "start": { - "line": 343, - "column": 28 + "line": 207, + "column": 16 }, "end": { - "line": 345, + "line": 215, "column": 17 } } }, - "alternate": null, "range": [ - 13040, - 13118 + 6205, + 6457 ], "loc": { "start": { - "line": 343, + "line": 207, "column": 16 }, "end": { - "line": 345, - "column": 17 + "line": 215, + "column": 18 } - } + }, + "leadingComments": [ + { + "type": "Line", + "value": " emit column calculation result", + "range": [ + 6155, + 6188 + ], + "loc": { + "start": { + "line": 206, + "column": 16 + }, + "end": { + "line": 206, + "column": 49 + } + } + } + ], + "trailingComments": [ + { + "type": "Line", + "value": " write result in expected DOM element", + "range": [ + 6475, + 6514 + ], + "loc": { + "start": { + "line": 217, + "column": 16 + }, + "end": { + "line": 217, + "column": 55 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 6531, + 6535 + ], + "loc": { + "start": { + "line": 218, + "column": 16 + }, + "end": { + "line": 218, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "writeResult", + "range": [ + 6536, + 6547 + ], + "loc": { + "start": { + "line": 218, + "column": 21 + }, + "end": { + "line": 218, + "column": 32 + } + } + }, + "range": [ + 6531, + 6547 + ], + "loc": { + "start": { + "line": 218, + "column": 16 + }, + "end": { + "line": 218, + "column": 32 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "result", + "range": [ + 6569, + 6575 + ], + "loc": { + "start": { + "line": 219, + "column": 20 + }, + "end": { + "line": 219, + "column": 26 + } + } + }, + { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "labels", + "range": [ + 6597, + 6603 + ], + "loc": { + "start": { + "line": 220, + "column": 20 + }, + "end": { + "line": 220, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "i", + "range": [ + 6604, + 6605 + ], + "loc": { + "start": { + "line": 220, + "column": 27 + }, + "end": { + "line": 220, + "column": 28 + } + } + }, + "range": [ + 6597, + 6606 + ], + "loc": { + "start": { + "line": 220, + "column": 20 + }, + "end": { + "line": 220, + "column": 29 + } + } + }, + { + "type": "Identifier", + "name": "writeType", + "range": [ + 6628, + 6637 + ], + "loc": { + "start": { + "line": 221, + "column": 20 + }, + "end": { + "line": 221, + "column": 29 + } + } + }, + { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "precisions", + "range": [ + 6659, + 6669 + ], + "loc": { + "start": { + "line": 222, + "column": 20 + }, + "end": { + "line": 222, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "i", + "range": [ + 6670, + 6671 + ], + "loc": { + "start": { + "line": 222, + "column": 31 + }, + "end": { + "line": 222, + "column": 32 + } + } + }, + "range": [ + 6659, + 6672 + ], + "loc": { + "start": { + "line": 222, + "column": 20 + }, + "end": { + "line": 222, + "column": 33 + } + } + } + ], + "range": [ + 6531, + 6690 + ], + "loc": { + "start": { + "line": 218, + "column": 16 + }, + "end": { + "line": 223, + "column": 17 + } + } + }, + "range": [ + 6531, + 6691 + ], + "loc": { + "start": { + "line": 218, + "column": 16 + }, + "end": { + "line": 223, + "column": 18 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " write result in expected DOM element", + "range": [ + 6475, + 6514 + ], + "loc": { + "start": { + "line": 217, + "column": 16 + }, + "end": { + "line": 217, + "column": 55 + } + } + } + ] } ], "range": [ - 3728, - 13132 + 5723, + 6706 ], "loc": { "start": { - "line": 126, - "column": 44 + "line": 192, + "column": 43 }, "end": { - "line": 346, + "line": 225, "column": 13 } } }, "range": [ - 3696, - 13132 + 5692, + 6706 ], "loc": { "start": { - "line": 126, + "line": 192, "column": 12 }, "end": { - "line": 346, + "line": 225, "column": 13 } }, "trailingComments": [ { "type": "Line", - "value": "for ucol", + "value": "for i", "range": [ - 13132, - 13142 + 6706, + 6713 ], "loc": { "start": { - "line": 346, + "line": 225, "column": 13 }, "end": { - "line": 346, - "column": 23 + "line": 225, + "column": 20 + } + } + }, + { + "type": "Line", + "value": " row(s) with result are always visible", + "range": [ + 6727, + 6767 + ], + "loc": { + "start": { + "line": 227, + "column": 12 + }, + "end": { + "line": 227, + "column": 52 } } } ] + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "totRow", + "range": [ + 6784, + 6790 + ], + "loc": { + "start": { + "line": 228, + "column": 16 + }, + "end": { + "line": 228, + "column": 22 + } + } + }, + "init": { + "type": "ConditionalExpression", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "Identifier", + "name": "totRowIndexes", + "range": [ + 6793, + 6806 + ], + "loc": { + "start": { + "line": 228, + "column": 25 + }, + "end": { + "line": 228, + "column": 38 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "totRowIndexes", + "range": [ + 6810, + 6823 + ], + "loc": { + "start": { + "line": 228, + "column": 42 + }, + "end": { + "line": 228, + "column": 55 + } + } + }, + "property": { + "type": "Identifier", + "name": "u", + "range": [ + 6824, + 6825 + ], + "loc": { + "start": { + "line": 228, + "column": 56 + }, + "end": { + "line": 228, + "column": 57 + } + } + }, + "range": [ + 6810, + 6826 + ], + "loc": { + "start": { + "line": 228, + "column": 42 + }, + "end": { + "line": 228, + "column": 58 + } + } + }, + "range": [ + 6793, + 6826 + ], + "loc": { + "start": { + "line": 228, + "column": 25 + }, + "end": { + "line": 228, + "column": 58 + } + } + }, + "consequent": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "rows", + "range": [ + 6845, + 6849 + ], + "loc": { + "start": { + "line": 229, + "column": 16 + }, + "end": { + "line": 229, + "column": 20 + } + } + }, + "property": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "totRowIndexes", + "range": [ + 6850, + 6863 + ], + "loc": { + "start": { + "line": 229, + "column": 21 + }, + "end": { + "line": 229, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "u", + "range": [ + 6864, + 6865 + ], + "loc": { + "start": { + "line": 229, + "column": 35 + }, + "end": { + "line": 229, + "column": 36 + } + } + }, + "range": [ + 6850, + 6866 + ], + "loc": { + "start": { + "line": 229, + "column": 21 + }, + "end": { + "line": 229, + "column": 37 + } + } + }, + "range": [ + 6845, + 6867 + ], + "loc": { + "start": { + "line": 229, + "column": 16 + }, + "end": { + "line": 229, + "column": 38 + } + } + }, + "alternate": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 6870, + 6874 + ], + "loc": { + "start": { + "line": 229, + "column": 41 + }, + "end": { + "line": 229, + "column": 45 + } + } + }, + "range": [ + 6793, + 6874 + ], + "loc": { + "start": { + "line": 228, + "column": 25 + }, + "end": { + "line": 229, + "column": 45 + } + } + }, + "range": [ + 6784, + 6874 + ], + "loc": { + "start": { + "line": 228, + "column": 16 + }, + "end": { + "line": 229, + "column": 45 + } + } + } + ], + "kind": "let", + "range": [ + 6780, + 6875 + ], + "loc": { + "start": { + "line": 228, + "column": 12 + }, + "end": { + "line": 229, + "column": 46 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": "for i", + "range": [ + 6706, + 6713 + ], + "loc": { + "start": { + "line": 225, + "column": 13 + }, + "end": { + "line": 225, + "column": 20 + } + } + }, + { + "type": "Line", + "value": " row(s) with result are always visible", + "range": [ + 6727, + 6767 + ], + "loc": { + "start": { + "line": 227, + "column": 12 + }, + "end": { + "line": 227, + "column": 52 + } + } + } + ] + }, + { + "type": "IfStatement", + "test": { + "type": "Identifier", + "name": "totRow", + "range": [ + 6892, + 6898 + ], + "loc": { + "start": { + "line": 230, + "column": 16 + }, + "end": { + "line": 230, + "column": 22 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "totRow", + "range": [ + 6918, + 6924 + ], + "loc": { + "start": { + "line": 231, + "column": 16 + }, + "end": { + "line": 231, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "style", + "range": [ + 6925, + 6930 + ], + "loc": { + "start": { + "line": 231, + "column": 23 + }, + "end": { + "line": 231, + "column": 28 + } + } + }, + "range": [ + 6918, + 6930 + ], + "loc": { + "start": { + "line": 231, + "column": 16 + }, + "end": { + "line": 231, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "display", + "range": [ + 6931, + 6938 + ], + "loc": { + "start": { + "line": 231, + "column": 29 + }, + "end": { + "line": 231, + "column": 36 + } + } + }, + "range": [ + 6918, + 6938 + ], + "loc": { + "start": { + "line": 231, + "column": 16 + }, + "end": { + "line": 231, + "column": 36 + } + } + }, + "right": { + "type": "Literal", + "value": "", + "raw": "''", + "range": [ + 6941, + 6943 + ], + "loc": { + "start": { + "line": 231, + "column": 39 + }, + "end": { + "line": 231, + "column": 41 + } + } + }, + "range": [ + 6918, + 6943 + ], + "loc": { + "start": { + "line": 231, + "column": 16 + }, + "end": { + "line": 231, + "column": 41 + } + } + }, + "range": [ + 6918, + 6944 + ], + "loc": { + "start": { + "line": 231, + "column": 16 + }, + "end": { + "line": 231, + "column": 42 + } + } + } + ], + "range": [ + 6900, + 6958 + ], + "loc": { + "start": { + "line": 230, + "column": 24 + }, + "end": { + "line": 232, + "column": 13 + } + } + }, + "alternate": null, + "range": [ + 6888, + 6958 + ], + "loc": { + "start": { + "line": 230, + "column": 12 + }, + "end": { + "line": 232, + "column": 13 + } + } } ], "range": [ - 3587, - 13152 + 4650, + 6968 ], "loc": { "start": { - "line": 121, - "column": 73 + "line": 163, + "column": 42 }, "end": { - "line": 347, + "line": 233, "column": 9 } } }, - "alternate": null, "range": [ - 3522, - 13152 + 4616, + 6968 ], "loc": { "start": { - "line": 121, + "line": 163, "column": 8 }, "end": { - "line": 347, + "line": 233, "column": 9 } }, "trailingComments": [ { "type": "Line", - "value": "if typeof", + "value": "for u", "range": [ - 13152, - 13163 + 6968, + 6975 ], "loc": { "start": { - "line": 347, + "line": 233, "column": 9 }, "end": { - "line": 347, - "column": 20 + "line": 233, + "column": 16 } } } @@ -21508,16 +11232,16 @@ "object": { "type": "ThisExpression", "range": [ - 13173, - 13177 + 6985, + 6989 ], "loc": { "start": { - "line": 349, + "line": 235, "column": 8 }, "end": { - "line": 349, + "line": 235, "column": 12 } } @@ -21526,31 +11250,31 @@ "type": "Identifier", "name": "onAfterOperation", "range": [ - 13178, - 13194 + 6990, + 7006 ], "loc": { "start": { - "line": 349, + "line": 235, "column": 13 }, "end": { - "line": 349, + "line": 235, "column": 29 } } }, "range": [ - 13173, - 13194 + 6985, + 7006 ], "loc": { "start": { - "line": 349, + "line": 235, "column": 8 }, "end": { - "line": 349, + "line": 235, "column": 29 } } @@ -21560,16 +11284,16 @@ "type": "Identifier", "name": "tf", "range": [ - 13195, - 13197 + 7007, + 7009 ], "loc": { "start": { - "line": 349, + "line": 235, "column": 30 }, "end": { - "line": 349, + "line": 235, "column": 32 } } @@ -21577,84 +11301,66 @@ { "type": "ThisExpression", "range": [ - 13199, - 13203 + 7011, + 7015 ], "loc": { "start": { - "line": 349, + "line": 235, "column": 34 }, "end": { - "line": 349, + "line": 235, "column": 38 } } } ], "range": [ - 13173, - 13204 + 6985, + 7016 ], "loc": { "start": { - "line": 349, + "line": 235, "column": 8 }, "end": { - "line": 349, + "line": 235, "column": 39 } } }, "range": [ - 13173, - 13205 + 6985, + 7017 ], "loc": { "start": { - "line": 349, + "line": 235, "column": 8 }, "end": { - "line": 349, + "line": 235, "column": 40 } }, "leadingComments": [ { "type": "Line", - "value": "for ucol", + "value": "for u", "range": [ - 13132, - 13142 + 6968, + 6975 ], "loc": { "start": { - "line": 346, - "column": 13 - }, - "end": { - "line": 346, - "column": 23 - } - } - }, - { - "type": "Line", - "value": "if typeof", - "range": [ - 13152, - 13163 - ], - "loc": { - "start": { - "line": 347, + "line": 233, "column": 9 }, "end": { - "line": 347, - "column": 20 + "line": 233, + "column": 16 } } } @@ -21673,16 +11379,16 @@ "object": { "type": "ThisExpression", "range": [ - 13214, - 13218 + 7026, + 7030 ], "loc": { "start": { - "line": 350, + "line": 236, "column": 8 }, "end": { - "line": 350, + "line": 236, "column": 12 } } @@ -21691,31 +11397,31 @@ "type": "Identifier", "name": "emitter", "range": [ - 13219, - 13226 + 7031, + 7038 ], "loc": { "start": { - "line": 350, + "line": 236, "column": 13 }, "end": { - "line": 350, + "line": 236, "column": 20 } } }, "range": [ - 13214, - 13226 + 7026, + 7038 ], "loc": { "start": { - "line": 350, + "line": 236, "column": 8 }, "end": { - "line": 350, + "line": 236, "column": 20 } } @@ -21724,31 +11430,31 @@ "type": "Identifier", "name": "emit", "range": [ - 13227, - 13231 + 7039, + 7043 ], "loc": { "start": { - "line": 350, + "line": 236, "column": 21 }, "end": { - "line": 350, + "line": 236, "column": 25 } } }, "range": [ - 13214, - 13231 + 7026, + 7043 ], "loc": { "start": { - "line": 350, + "line": 236, "column": 8 }, "end": { - "line": 350, + "line": 236, "column": 25 } } @@ -21759,16 +11465,16 @@ "value": "after-column-operation", "raw": "'after-column-operation'", "range": [ - 13232, - 13256 + 7044, + 7068 ], "loc": { "start": { - "line": 350, + "line": 236, "column": 26 }, "end": { - "line": 350, + "line": 236, "column": 50 } } @@ -21777,16 +11483,16 @@ "type": "Identifier", "name": "tf", "range": [ - 13258, - 13260 + 7070, + 7072 ], "loc": { "start": { - "line": 350, + "line": 236, "column": 52 }, "end": { - "line": 350, + "line": 236, "column": 54 } } @@ -21794,63 +11500,63 @@ { "type": "ThisExpression", "range": [ - 13262, - 13266 + 7074, + 7078 ], "loc": { "start": { - "line": 350, + "line": 236, "column": 56 }, "end": { - "line": 350, + "line": 236, "column": 60 } } } ], "range": [ - 13214, - 13267 + 7026, + 7079 ], "loc": { "start": { - "line": 350, + "line": 236, "column": 8 }, "end": { - "line": 350, + "line": 236, "column": 61 } } }, "range": [ - 13214, - 13268 + 7026, + 7080 ], "loc": { "start": { - "line": 350, + "line": 236, "column": 8 }, "end": { - "line": 350, + "line": 236, "column": 62 } } } ], "range": [ - 2264, - 13274 + 3727, + 7086 ], "loc": { "start": { - "line": 82, - "column": 11 + "line": 134, + "column": 14 }, "end": { - "line": 351, + "line": 237, "column": 5 } } @@ -21858,16 +11564,16 @@ "generator": false, "expression": false, "range": [ - 2261, - 13274 + 3724, + 7086 ], "loc": { "start": { - "line": 82, - "column": 8 + "line": 134, + "column": 11 }, "end": { - "line": 351, + "line": 237, "column": 5 } } @@ -21875,16 +11581,16 @@ "kind": "method", "computed": false, "range": [ - 2257, - 13274 + 3717, + 7086 ], "loc": { "start": { - "line": 82, + "line": 134, "column": 4 }, "end": { - "line": 351, + "line": 237, "column": 5 } }, @@ -21893,16 +11599,16 @@ "type": "Block", "value": "*\n * Calculates columns' values\n * Configuration options are stored in 'opts' property\n * - 'id' contains ids of elements showing result (array)\n * - 'col' contains the columns' indexes (array)\n * - 'operation' contains operation type (array, values: 'sum', 'mean',\n * 'min', 'max', 'median', 'q1', 'q3')\n * - 'write_method' array defines which method to use for displaying the\n * result (innerHTML, setValue, createTextNode) - default: 'innerHTML'\n * - 'tot_row_index' defines in which row results are displayed\n * (integers array)\n *\n * - changes made by Nuovella:\n * (1) optimized the routine (now it will only process each column once),\n * (2) added calculations for the median, lower and upper quartile.\n ", "range": [ - 1471, - 2252 + 2931, + 3712 ], "loc": { "start": { - "line": 66, + "line": 118, "column": 4 }, "end": { - "line": 81, + "line": 133, "column": 7 } } @@ -21911,18 +11617,18 @@ "trailingComments": [ { "type": "Block", - "value": "*\n * Remove extension\n ", + "value": "*\n * Make desired calculation on specified column.\n * @param {Number} colIndex Column index\n * @param {any} [operation=SUM] Operation type\n * @param {any} precision Decimal precision\n * @returns {Number}\n ", "range": [ - 13280, - 13315 + 7092, + 7325 ], "loc": { "start": { - "line": 353, + "line": 239, "column": 4 }, "end": { - "line": 355, + "line": 245, "column": 7 } } @@ -21930,22 +11636,10221 @@ ], "static": false }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "columnCalc", + "range": [ + 7330, + 7340 + ], + "loc": { + "start": { + "line": 246, + "column": 4 + }, + "end": { + "line": 246, + "column": 14 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "colIndex", + "range": [ + 7341, + 7349 + ], + "loc": { + "start": { + "line": 246, + "column": 15 + }, + "end": { + "line": 246, + "column": 23 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "operation", + "range": [ + 7351, + 7360 + ], + "loc": { + "start": { + "line": 246, + "column": 25 + }, + "end": { + "line": 246, + "column": 34 + } + } + }, + "right": { + "type": "Identifier", + "name": "SUM", + "range": [ + 7363, + 7366 + ], + "loc": { + "start": { + "line": 246, + "column": 37 + }, + "end": { + "line": 246, + "column": 40 + } + } + }, + "range": [ + 7351, + 7366 + ], + "loc": { + "start": { + "line": 246, + "column": 25 + }, + "end": { + "line": 246, + "column": 40 + } + } + }, + { + "type": "Identifier", + "name": "precision", + "range": [ + 7368, + 7377 + ], + "loc": { + "start": { + "line": 246, + "column": 42 + }, + "end": { + "line": 246, + "column": 51 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "excludeRows", + "range": [ + 7393, + 7404 + ], + "loc": { + "start": { + "line": 247, + "column": 12 + }, + "end": { + "line": 247, + "column": 23 + } + } + }, + "init": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 7407, + 7411 + ], + "loc": { + "start": { + "line": 247, + "column": 26 + }, + "end": { + "line": 247, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "excludeRows", + "range": [ + 7412, + 7423 + ], + "loc": { + "start": { + "line": 247, + "column": 31 + }, + "end": { + "line": 247, + "column": 42 + } + } + }, + "range": [ + 7407, + 7423 + ], + "loc": { + "start": { + "line": 247, + "column": 26 + }, + "end": { + "line": 247, + "column": 42 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 7427, + 7429 + ], + "loc": { + "start": { + "line": 247, + "column": 46 + }, + "end": { + "line": 247, + "column": 48 + } + } + }, + "range": [ + 7407, + 7429 + ], + "loc": { + "start": { + "line": 247, + "column": 26 + }, + "end": { + "line": 247, + "column": 48 + } + } + }, + "range": [ + 7393, + 7429 + ], + "loc": { + "start": { + "line": 247, + "column": 12 + }, + "end": { + "line": 247, + "column": 48 + } + } + } + ], + "kind": "let", + "range": [ + 7389, + 7430 + ], + "loc": { + "start": { + "line": 247, + "column": 8 + }, + "end": { + "line": 247, + "column": 49 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "colValues", + "range": [ + 7443, + 7452 + ], + "loc": { + "start": { + "line": 248, + "column": 12 + }, + "end": { + "line": 248, + "column": 21 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 7467, + 7471 + ], + "loc": { + "start": { + "line": 249, + "column": 12 + }, + "end": { + "line": 249, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "tf", + "range": [ + 7472, + 7474 + ], + "loc": { + "start": { + "line": 249, + "column": 17 + }, + "end": { + "line": 249, + "column": 19 + } + } + }, + "range": [ + 7467, + 7474 + ], + "loc": { + "start": { + "line": 249, + "column": 12 + }, + "end": { + "line": 249, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "getFilteredDataCol", + "range": [ + 7475, + 7493 + ], + "loc": { + "start": { + "line": 249, + "column": 20 + }, + "end": { + "line": 249, + "column": 38 + } + } + }, + "range": [ + 7467, + 7493 + ], + "loc": { + "start": { + "line": 249, + "column": 12 + }, + "end": { + "line": 249, + "column": 38 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "colIndex", + "range": [ + 7494, + 7502 + ], + "loc": { + "start": { + "line": 249, + "column": 39 + }, + "end": { + "line": 249, + "column": 47 + } + } + }, + { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 7504, + 7509 + ], + "loc": { + "start": { + "line": 249, + "column": 49 + }, + "end": { + "line": 249, + "column": 54 + } + } + }, + { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 7511, + 7515 + ], + "loc": { + "start": { + "line": 249, + "column": 56 + }, + "end": { + "line": 249, + "column": 60 + } + } + }, + { + "type": "Identifier", + "name": "excludeRows", + "range": [ + 7517, + 7528 + ], + "loc": { + "start": { + "line": 249, + "column": 62 + }, + "end": { + "line": 249, + "column": 73 + } + } + } + ], + "range": [ + 7467, + 7529 + ], + "loc": { + "start": { + "line": 249, + "column": 12 + }, + "end": { + "line": 249, + "column": 74 + } + } + }, + "range": [ + 7443, + 7529 + ], + "loc": { + "start": { + "line": 248, + "column": 12 + }, + "end": { + "line": 249, + "column": 74 + } + } + } + ], + "kind": "let", + "range": [ + 7439, + 7530 + ], + "loc": { + "start": { + "line": 248, + "column": 8 + }, + "end": { + "line": 249, + "column": 75 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 7547, + 7551 + ], + "loc": { + "start": { + "line": 251, + "column": 15 + }, + "end": { + "line": 251, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "calc", + "range": [ + 7552, + 7556 + ], + "loc": { + "start": { + "line": 251, + "column": 20 + }, + "end": { + "line": 251, + "column": 24 + } + } + }, + "range": [ + 7547, + 7556 + ], + "loc": { + "start": { + "line": 251, + "column": 15 + }, + "end": { + "line": 251, + "column": 24 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "colValues", + "range": [ + 7557, + 7566 + ], + "loc": { + "start": { + "line": 251, + "column": 25 + }, + "end": { + "line": 251, + "column": 34 + } + } + }, + { + "type": "Identifier", + "name": "operation", + "range": [ + 7568, + 7577 + ], + "loc": { + "start": { + "line": 251, + "column": 36 + }, + "end": { + "line": 251, + "column": 45 + } + } + }, + { + "type": "Identifier", + "name": "precision", + "range": [ + 7579, + 7588 + ], + "loc": { + "start": { + "line": 251, + "column": 47 + }, + "end": { + "line": 251, + "column": 56 + } + } + } + ], + "range": [ + 7547, + 7589 + ], + "loc": { + "start": { + "line": 251, + "column": 15 + }, + "end": { + "line": 251, + "column": 57 + } + } + }, + "range": [ + 7540, + 7590 + ], + "loc": { + "start": { + "line": 251, + "column": 8 + }, + "end": { + "line": 251, + "column": 58 + } + } + } + ], + "range": [ + 7379, + 7596 + ], + "loc": { + "start": { + "line": 246, + "column": 53 + }, + "end": { + "line": 252, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 7340, + 7596 + ], + "loc": { + "start": { + "line": 246, + "column": 14 + }, + "end": { + "line": 252, + "column": 5 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 7330, + 7596 + ], + "loc": { + "start": { + "line": 246, + "column": 4 + }, + "end": { + "line": 252, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Make desired calculation on specified column.\n * @param {Number} colIndex Column index\n * @param {any} [operation=SUM] Operation type\n * @param {any} precision Decimal precision\n * @returns {Number}\n ", + "range": [ + 7092, + 7325 + ], + "loc": { + "start": { + "line": 239, + "column": 4 + }, + "end": { + "line": 245, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Make calculation on passed values.\n * @param {Array} values List of values\n * @param {String} [operation=SUM] Optional operation type\n * @param {Number} precision Optional result precision\n * @returns {Number}\n * @private\n ", + "range": [ + 7602, + 7862 + ], + "loc": { + "start": { + "line": 254, + "column": 4 + }, + "end": { + "line": 261, + "column": 7 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "calc", + "range": [ + 7867, + 7871 + ], + "loc": { + "start": { + "line": 262, + "column": 4 + }, + "end": { + "line": 262, + "column": 8 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "colValues", + "range": [ + 7872, + 7881 + ], + "loc": { + "start": { + "line": 262, + "column": 9 + }, + "end": { + "line": 262, + "column": 18 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "operation", + "range": [ + 7883, + 7892 + ], + "loc": { + "start": { + "line": 262, + "column": 20 + }, + "end": { + "line": 262, + "column": 29 + } + } + }, + "right": { + "type": "Identifier", + "name": "SUM", + "range": [ + 7895, + 7898 + ], + "loc": { + "start": { + "line": 262, + "column": 32 + }, + "end": { + "line": 262, + "column": 35 + } + } + }, + "range": [ + 7883, + 7898 + ], + "loc": { + "start": { + "line": 262, + "column": 20 + }, + "end": { + "line": 262, + "column": 35 + } + } + }, + { + "type": "Identifier", + "name": "precision", + "range": [ + 7900, + 7909 + ], + "loc": { + "start": { + "line": 262, + "column": 37 + }, + "end": { + "line": 262, + "column": 46 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "result", + "range": [ + 7925, + 7931 + ], + "loc": { + "start": { + "line": 263, + "column": 12 + }, + "end": { + "line": 263, + "column": 18 + } + } + }, + "init": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 7934, + 7935 + ], + "loc": { + "start": { + "line": 263, + "column": 21 + }, + "end": { + "line": 263, + "column": 22 + } + } + }, + "range": [ + 7925, + 7935 + ], + "loc": { + "start": { + "line": 263, + "column": 12 + }, + "end": { + "line": 263, + "column": 22 + } + } + } + ], + "kind": "let", + "range": [ + 7921, + 7936 + ], + "loc": { + "start": { + "line": 263, + "column": 8 + }, + "end": { + "line": 263, + "column": 23 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "Identifier", + "name": "operation", + "range": [ + 7950, + 7959 + ], + "loc": { + "start": { + "line": 265, + "column": 12 + }, + "end": { + "line": 265, + "column": 21 + } + } + }, + "right": { + "type": "Identifier", + "name": "Q1", + "range": [ + 7964, + 7966 + ], + "loc": { + "start": { + "line": 265, + "column": 26 + }, + "end": { + "line": 265, + "column": 28 + } + } + }, + "range": [ + 7950, + 7966 + ], + "loc": { + "start": { + "line": 265, + "column": 12 + }, + "end": { + "line": 265, + "column": 28 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "Identifier", + "name": "operation", + "range": [ + 7970, + 7979 + ], + "loc": { + "start": { + "line": 265, + "column": 32 + }, + "end": { + "line": 265, + "column": 41 + } + } + }, + "right": { + "type": "Identifier", + "name": "Q3", + "range": [ + 7984, + 7986 + ], + "loc": { + "start": { + "line": 265, + "column": 46 + }, + "end": { + "line": 265, + "column": 48 + } + } + }, + "range": [ + 7970, + 7986 + ], + "loc": { + "start": { + "line": 265, + "column": 32 + }, + "end": { + "line": 265, + "column": 48 + } + } + }, + "range": [ + 7950, + 7986 + ], + "loc": { + "start": { + "line": 265, + "column": 12 + }, + "end": { + "line": 265, + "column": 48 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "Identifier", + "name": "operation", + "range": [ + 7990, + 7999 + ], + "loc": { + "start": { + "line": 265, + "column": 52 + }, + "end": { + "line": 265, + "column": 61 + } + } + }, + "right": { + "type": "Identifier", + "name": "MEDIAN", + "range": [ + 8004, + 8010 + ], + "loc": { + "start": { + "line": 265, + "column": 66 + }, + "end": { + "line": 265, + "column": 72 + } + } + }, + "range": [ + 7990, + 8010 + ], + "loc": { + "start": { + "line": 265, + "column": 52 + }, + "end": { + "line": 265, + "column": 72 + } + } + }, + "range": [ + 7950, + 8010 + ], + "loc": { + "start": { + "line": 265, + "column": 12 + }, + "end": { + "line": 265, + "column": 72 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "colValues", + "range": [ + 8026, + 8035 + ], + "loc": { + "start": { + "line": 266, + "column": 12 + }, + "end": { + "line": 266, + "column": 21 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 8038, + 8042 + ], + "loc": { + "start": { + "line": 266, + "column": 24 + }, + "end": { + "line": 266, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "sortColumnValues", + "range": [ + 8043, + 8059 + ], + "loc": { + "start": { + "line": 266, + "column": 29 + }, + "end": { + "line": 266, + "column": 45 + } + } + }, + "range": [ + 8038, + 8059 + ], + "loc": { + "start": { + "line": 266, + "column": 24 + }, + "end": { + "line": 266, + "column": 45 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "colValues", + "range": [ + 8060, + 8069 + ], + "loc": { + "start": { + "line": 266, + "column": 46 + }, + "end": { + "line": 266, + "column": 55 + } + } + }, + { + "type": "Identifier", + "name": "numSortAsc", + "range": [ + 8071, + 8081 + ], + "loc": { + "start": { + "line": 266, + "column": 57 + }, + "end": { + "line": 266, + "column": 67 + } + } + } + ], + "range": [ + 8038, + 8082 + ], + "loc": { + "start": { + "line": 266, + "column": 24 + }, + "end": { + "line": 266, + "column": 68 + } + } + }, + "range": [ + 8026, + 8082 + ], + "loc": { + "start": { + "line": 266, + "column": 12 + }, + "end": { + "line": 266, + "column": 68 + } + } + }, + "range": [ + 8026, + 8083 + ], + "loc": { + "start": { + "line": 266, + "column": 12 + }, + "end": { + "line": 266, + "column": 69 + } + } + } + ], + "range": [ + 8012, + 8093 + ], + "loc": { + "start": { + "line": 265, + "column": 74 + }, + "end": { + "line": 267, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 7946, + 8093 + ], + "loc": { + "start": { + "line": 265, + "column": 8 + }, + "end": { + "line": 267, + "column": 9 + } + } + }, + { + "type": "SwitchStatement", + "discriminant": { + "type": "Identifier", + "name": "operation", + "range": [ + 8111, + 8120 + ], + "loc": { + "start": { + "line": 269, + "column": 16 + }, + "end": { + "line": 269, + "column": 25 + } + } + }, + "cases": [ + { + "type": "SwitchCase", + "test": { + "type": "Identifier", + "name": "MEAN", + "range": [ + 8141, + 8145 + ], + "loc": { + "start": { + "line": 270, + "column": 17 + }, + "end": { + "line": 270, + "column": 21 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "result", + "range": [ + 8163, + 8169 + ], + "loc": { + "start": { + "line": 271, + "column": 16 + }, + "end": { + "line": 271, + "column": 22 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 8172, + 8176 + ], + "loc": { + "start": { + "line": 271, + "column": 25 + }, + "end": { + "line": 271, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "calcMean", + "range": [ + 8177, + 8185 + ], + "loc": { + "start": { + "line": 271, + "column": 30 + }, + "end": { + "line": 271, + "column": 38 + } + } + }, + "range": [ + 8172, + 8185 + ], + "loc": { + "start": { + "line": 271, + "column": 25 + }, + "end": { + "line": 271, + "column": 38 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "colValues", + "range": [ + 8186, + 8195 + ], + "loc": { + "start": { + "line": 271, + "column": 39 + }, + "end": { + "line": 271, + "column": 48 + } + } + } + ], + "range": [ + 8172, + 8196 + ], + "loc": { + "start": { + "line": 271, + "column": 25 + }, + "end": { + "line": 271, + "column": 49 + } + } + }, + "range": [ + 8163, + 8196 + ], + "loc": { + "start": { + "line": 271, + "column": 16 + }, + "end": { + "line": 271, + "column": 49 + } + } + }, + "range": [ + 8163, + 8197 + ], + "loc": { + "start": { + "line": 271, + "column": 16 + }, + "end": { + "line": 271, + "column": 50 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 8214, + 8220 + ], + "loc": { + "start": { + "line": 272, + "column": 16 + }, + "end": { + "line": 272, + "column": 22 + } + } + } + ], + "range": [ + 8136, + 8220 + ], + "loc": { + "start": { + "line": 270, + "column": 12 + }, + "end": { + "line": 272, + "column": 22 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "Identifier", + "name": "SUM", + "range": [ + 8238, + 8241 + ], + "loc": { + "start": { + "line": 273, + "column": 17 + }, + "end": { + "line": 273, + "column": 20 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "result", + "range": [ + 8259, + 8265 + ], + "loc": { + "start": { + "line": 274, + "column": 16 + }, + "end": { + "line": 274, + "column": 22 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 8268, + 8272 + ], + "loc": { + "start": { + "line": 274, + "column": 25 + }, + "end": { + "line": 274, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "calcSum", + "range": [ + 8273, + 8280 + ], + "loc": { + "start": { + "line": 274, + "column": 30 + }, + "end": { + "line": 274, + "column": 37 + } + } + }, + "range": [ + 8268, + 8280 + ], + "loc": { + "start": { + "line": 274, + "column": 25 + }, + "end": { + "line": 274, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "colValues", + "range": [ + 8281, + 8290 + ], + "loc": { + "start": { + "line": 274, + "column": 38 + }, + "end": { + "line": 274, + "column": 47 + } + } + } + ], + "range": [ + 8268, + 8291 + ], + "loc": { + "start": { + "line": 274, + "column": 25 + }, + "end": { + "line": 274, + "column": 48 + } + } + }, + "range": [ + 8259, + 8291 + ], + "loc": { + "start": { + "line": 274, + "column": 16 + }, + "end": { + "line": 274, + "column": 48 + } + } + }, + "range": [ + 8259, + 8292 + ], + "loc": { + "start": { + "line": 274, + "column": 16 + }, + "end": { + "line": 274, + "column": 49 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 8309, + 8315 + ], + "loc": { + "start": { + "line": 275, + "column": 16 + }, + "end": { + "line": 275, + "column": 22 + } + } + } + ], + "range": [ + 8233, + 8315 + ], + "loc": { + "start": { + "line": 273, + "column": 12 + }, + "end": { + "line": 275, + "column": 22 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "Identifier", + "name": "MIN", + "range": [ + 8333, + 8336 + ], + "loc": { + "start": { + "line": 276, + "column": 17 + }, + "end": { + "line": 276, + "column": 20 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "result", + "range": [ + 8354, + 8360 + ], + "loc": { + "start": { + "line": 277, + "column": 16 + }, + "end": { + "line": 277, + "column": 22 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 8363, + 8367 + ], + "loc": { + "start": { + "line": 277, + "column": 25 + }, + "end": { + "line": 277, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "calcMin", + "range": [ + 8368, + 8375 + ], + "loc": { + "start": { + "line": 277, + "column": 30 + }, + "end": { + "line": 277, + "column": 37 + } + } + }, + "range": [ + 8363, + 8375 + ], + "loc": { + "start": { + "line": 277, + "column": 25 + }, + "end": { + "line": 277, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "colValues", + "range": [ + 8376, + 8385 + ], + "loc": { + "start": { + "line": 277, + "column": 38 + }, + "end": { + "line": 277, + "column": 47 + } + } + } + ], + "range": [ + 8363, + 8386 + ], + "loc": { + "start": { + "line": 277, + "column": 25 + }, + "end": { + "line": 277, + "column": 48 + } + } + }, + "range": [ + 8354, + 8386 + ], + "loc": { + "start": { + "line": 277, + "column": 16 + }, + "end": { + "line": 277, + "column": 48 + } + } + }, + "range": [ + 8354, + 8387 + ], + "loc": { + "start": { + "line": 277, + "column": 16 + }, + "end": { + "line": 277, + "column": 49 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 8404, + 8410 + ], + "loc": { + "start": { + "line": 278, + "column": 16 + }, + "end": { + "line": 278, + "column": 22 + } + } + } + ], + "range": [ + 8328, + 8410 + ], + "loc": { + "start": { + "line": 276, + "column": 12 + }, + "end": { + "line": 278, + "column": 22 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "Identifier", + "name": "MAX", + "range": [ + 8428, + 8431 + ], + "loc": { + "start": { + "line": 279, + "column": 17 + }, + "end": { + "line": 279, + "column": 20 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "result", + "range": [ + 8449, + 8455 + ], + "loc": { + "start": { + "line": 280, + "column": 16 + }, + "end": { + "line": 280, + "column": 22 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 8458, + 8462 + ], + "loc": { + "start": { + "line": 280, + "column": 25 + }, + "end": { + "line": 280, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "calcMax", + "range": [ + 8463, + 8470 + ], + "loc": { + "start": { + "line": 280, + "column": 30 + }, + "end": { + "line": 280, + "column": 37 + } + } + }, + "range": [ + 8458, + 8470 + ], + "loc": { + "start": { + "line": 280, + "column": 25 + }, + "end": { + "line": 280, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "colValues", + "range": [ + 8471, + 8480 + ], + "loc": { + "start": { + "line": 280, + "column": 38 + }, + "end": { + "line": 280, + "column": 47 + } + } + } + ], + "range": [ + 8458, + 8481 + ], + "loc": { + "start": { + "line": 280, + "column": 25 + }, + "end": { + "line": 280, + "column": 48 + } + } + }, + "range": [ + 8449, + 8481 + ], + "loc": { + "start": { + "line": 280, + "column": 16 + }, + "end": { + "line": 280, + "column": 48 + } + } + }, + "range": [ + 8449, + 8482 + ], + "loc": { + "start": { + "line": 280, + "column": 16 + }, + "end": { + "line": 280, + "column": 49 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 8499, + 8505 + ], + "loc": { + "start": { + "line": 281, + "column": 16 + }, + "end": { + "line": 281, + "column": 22 + } + } + } + ], + "range": [ + 8423, + 8505 + ], + "loc": { + "start": { + "line": 279, + "column": 12 + }, + "end": { + "line": 281, + "column": 22 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "Identifier", + "name": "MEDIAN", + "range": [ + 8523, + 8529 + ], + "loc": { + "start": { + "line": 282, + "column": 17 + }, + "end": { + "line": 282, + "column": 23 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "result", + "range": [ + 8547, + 8553 + ], + "loc": { + "start": { + "line": 283, + "column": 16 + }, + "end": { + "line": 283, + "column": 22 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 8556, + 8560 + ], + "loc": { + "start": { + "line": 283, + "column": 25 + }, + "end": { + "line": 283, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "calcMedian", + "range": [ + 8561, + 8571 + ], + "loc": { + "start": { + "line": 283, + "column": 30 + }, + "end": { + "line": 283, + "column": 40 + } + } + }, + "range": [ + 8556, + 8571 + ], + "loc": { + "start": { + "line": 283, + "column": 25 + }, + "end": { + "line": 283, + "column": 40 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "colValues", + "range": [ + 8572, + 8581 + ], + "loc": { + "start": { + "line": 283, + "column": 41 + }, + "end": { + "line": 283, + "column": 50 + } + } + } + ], + "range": [ + 8556, + 8582 + ], + "loc": { + "start": { + "line": 283, + "column": 25 + }, + "end": { + "line": 283, + "column": 51 + } + } + }, + "range": [ + 8547, + 8582 + ], + "loc": { + "start": { + "line": 283, + "column": 16 + }, + "end": { + "line": 283, + "column": 51 + } + } + }, + "range": [ + 8547, + 8583 + ], + "loc": { + "start": { + "line": 283, + "column": 16 + }, + "end": { + "line": 283, + "column": 52 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 8600, + 8606 + ], + "loc": { + "start": { + "line": 284, + "column": 16 + }, + "end": { + "line": 284, + "column": 22 + } + } + } + ], + "range": [ + 8518, + 8606 + ], + "loc": { + "start": { + "line": 282, + "column": 12 + }, + "end": { + "line": 284, + "column": 22 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "Identifier", + "name": "Q1", + "range": [ + 8624, + 8626 + ], + "loc": { + "start": { + "line": 285, + "column": 17 + }, + "end": { + "line": 285, + "column": 19 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "result", + "range": [ + 8644, + 8650 + ], + "loc": { + "start": { + "line": 286, + "column": 16 + }, + "end": { + "line": 286, + "column": 22 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 8653, + 8657 + ], + "loc": { + "start": { + "line": 286, + "column": 25 + }, + "end": { + "line": 286, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "calcQ1", + "range": [ + 8658, + 8664 + ], + "loc": { + "start": { + "line": 286, + "column": 30 + }, + "end": { + "line": 286, + "column": 36 + } + } + }, + "range": [ + 8653, + 8664 + ], + "loc": { + "start": { + "line": 286, + "column": 25 + }, + "end": { + "line": 286, + "column": 36 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "colValues", + "range": [ + 8665, + 8674 + ], + "loc": { + "start": { + "line": 286, + "column": 37 + }, + "end": { + "line": 286, + "column": 46 + } + } + } + ], + "range": [ + 8653, + 8675 + ], + "loc": { + "start": { + "line": 286, + "column": 25 + }, + "end": { + "line": 286, + "column": 47 + } + } + }, + "range": [ + 8644, + 8675 + ], + "loc": { + "start": { + "line": 286, + "column": 16 + }, + "end": { + "line": 286, + "column": 47 + } + } + }, + "range": [ + 8644, + 8676 + ], + "loc": { + "start": { + "line": 286, + "column": 16 + }, + "end": { + "line": 286, + "column": 48 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 8693, + 8699 + ], + "loc": { + "start": { + "line": 287, + "column": 16 + }, + "end": { + "line": 287, + "column": 22 + } + } + } + ], + "range": [ + 8619, + 8699 + ], + "loc": { + "start": { + "line": 285, + "column": 12 + }, + "end": { + "line": 287, + "column": 22 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "Identifier", + "name": "Q3", + "range": [ + 8717, + 8719 + ], + "loc": { + "start": { + "line": 288, + "column": 17 + }, + "end": { + "line": 288, + "column": 19 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "result", + "range": [ + 8737, + 8743 + ], + "loc": { + "start": { + "line": 289, + "column": 16 + }, + "end": { + "line": 289, + "column": 22 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 8746, + 8750 + ], + "loc": { + "start": { + "line": 289, + "column": 25 + }, + "end": { + "line": 289, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "calcQ3", + "range": [ + 8751, + 8757 + ], + "loc": { + "start": { + "line": 289, + "column": 30 + }, + "end": { + "line": 289, + "column": 36 + } + } + }, + "range": [ + 8746, + 8757 + ], + "loc": { + "start": { + "line": 289, + "column": 25 + }, + "end": { + "line": 289, + "column": 36 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "colValues", + "range": [ + 8758, + 8767 + ], + "loc": { + "start": { + "line": 289, + "column": 37 + }, + "end": { + "line": 289, + "column": 46 + } + } + } + ], + "range": [ + 8746, + 8768 + ], + "loc": { + "start": { + "line": 289, + "column": 25 + }, + "end": { + "line": 289, + "column": 47 + } + } + }, + "range": [ + 8737, + 8768 + ], + "loc": { + "start": { + "line": 289, + "column": 16 + }, + "end": { + "line": 289, + "column": 47 + } + } + }, + "range": [ + 8737, + 8769 + ], + "loc": { + "start": { + "line": 289, + "column": 16 + }, + "end": { + "line": 289, + "column": 48 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 8786, + 8792 + ], + "loc": { + "start": { + "line": 290, + "column": 16 + }, + "end": { + "line": 290, + "column": 22 + } + } + } + ], + "range": [ + 8712, + 8792 + ], + "loc": { + "start": { + "line": 288, + "column": 12 + }, + "end": { + "line": 290, + "column": 22 + } + } + } + ], + "range": [ + 8103, + 8802 + ], + "loc": { + "start": { + "line": 269, + "column": 8 + }, + "end": { + "line": 291, + "column": 9 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ConditionalExpression", + "test": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "isEmpty", + "range": [ + 8819, + 8826 + ], + "loc": { + "start": { + "line": 293, + "column": 15 + }, + "end": { + "line": 293, + "column": 22 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "precision", + "range": [ + 8827, + 8836 + ], + "loc": { + "start": { + "line": 293, + "column": 23 + }, + "end": { + "line": 293, + "column": 32 + } + } + } + ], + "range": [ + 8819, + 8837 + ], + "loc": { + "start": { + "line": 293, + "column": 15 + }, + "end": { + "line": 293, + "column": 33 + } + } + }, + "consequent": { + "type": "Identifier", + "name": "result", + "range": [ + 8840, + 8846 + ], + "loc": { + "start": { + "line": 293, + "column": 36 + }, + "end": { + "line": 293, + "column": 42 + } + } + }, + "alternate": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "result", + "range": [ + 8849, + 8855 + ], + "loc": { + "start": { + "line": 293, + "column": 45 + }, + "end": { + "line": 293, + "column": 51 + } + } + }, + "property": { + "type": "Identifier", + "name": "toFixed", + "range": [ + 8856, + 8863 + ], + "loc": { + "start": { + "line": 293, + "column": 52 + }, + "end": { + "line": 293, + "column": 59 + } + } + }, + "range": [ + 8849, + 8863 + ], + "loc": { + "start": { + "line": 293, + "column": 45 + }, + "end": { + "line": 293, + "column": 59 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "precision", + "range": [ + 8864, + 8873 + ], + "loc": { + "start": { + "line": 293, + "column": 60 + }, + "end": { + "line": 293, + "column": 69 + } + } + } + ], + "range": [ + 8849, + 8874 + ], + "loc": { + "start": { + "line": 293, + "column": 45 + }, + "end": { + "line": 293, + "column": 70 + } + } + }, + "range": [ + 8819, + 8874 + ], + "loc": { + "start": { + "line": 293, + "column": 15 + }, + "end": { + "line": 293, + "column": 70 + } + } + }, + "range": [ + 8812, + 8875 + ], + "loc": { + "start": { + "line": 293, + "column": 8 + }, + "end": { + "line": 293, + "column": 71 + } + } + } + ], + "range": [ + 7911, + 8881 + ], + "loc": { + "start": { + "line": 262, + "column": 48 + }, + "end": { + "line": 294, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 7871, + 8881 + ], + "loc": { + "start": { + "line": 262, + "column": 8 + }, + "end": { + "line": 294, + "column": 5 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 7867, + 8881 + ], + "loc": { + "start": { + "line": 262, + "column": 4 + }, + "end": { + "line": 294, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Make calculation on passed values.\n * @param {Array} values List of values\n * @param {String} [operation=SUM] Optional operation type\n * @param {Number} precision Optional result precision\n * @returns {Number}\n * @private\n ", + "range": [ + 7602, + 7862 + ], + "loc": { + "start": { + "line": 254, + "column": 4 + }, + "end": { + "line": 261, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Calculate the sum of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n ", + "range": [ + 8887, + 9015 + ], + "loc": { + "start": { + "line": 296, + "column": 4 + }, + "end": { + "line": 300, + "column": 7 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "calcSum", + "range": [ + 9020, + 9027 + ], + "loc": { + "start": { + "line": 301, + "column": 4 + }, + "end": { + "line": 301, + "column": 11 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "values", + "range": [ + 9028, + 9034 + ], + "loc": { + "start": { + "line": 301, + "column": 12 + }, + "end": { + "line": 301, + "column": 18 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 9037, + 9039 + ], + "loc": { + "start": { + "line": 301, + "column": 21 + }, + "end": { + "line": 301, + "column": 23 + } + } + }, + "range": [ + 9028, + 9039 + ], + "loc": { + "start": { + "line": 301, + "column": 12 + }, + "end": { + "line": 301, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "isEmpty", + "range": [ + 9055, + 9062 + ], + "loc": { + "start": { + "line": 302, + "column": 12 + }, + "end": { + "line": 302, + "column": 19 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "values", + "range": [ + 9063, + 9069 + ], + "loc": { + "start": { + "line": 302, + "column": 20 + }, + "end": { + "line": 302, + "column": 26 + } + } + } + ], + "range": [ + 9055, + 9070 + ], + "loc": { + "start": { + "line": 302, + "column": 12 + }, + "end": { + "line": 302, + "column": 27 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 9093, + 9094 + ], + "loc": { + "start": { + "line": 303, + "column": 19 + }, + "end": { + "line": 303, + "column": 20 + } + } + }, + "range": [ + 9086, + 9095 + ], + "loc": { + "start": { + "line": 303, + "column": 12 + }, + "end": { + "line": 303, + "column": 21 + } + } + } + ], + "range": [ + 9072, + 9105 + ], + "loc": { + "start": { + "line": 302, + "column": 29 + }, + "end": { + "line": 304, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 9051, + 9105 + ], + "loc": { + "start": { + "line": 302, + "column": 8 + }, + "end": { + "line": 304, + "column": 9 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "result", + "range": [ + 9118, + 9124 + ], + "loc": { + "start": { + "line": 305, + "column": 12 + }, + "end": { + "line": 305, + "column": 18 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "values", + "range": [ + 9127, + 9133 + ], + "loc": { + "start": { + "line": 305, + "column": 21 + }, + "end": { + "line": 305, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "reduce", + "range": [ + 9134, + 9140 + ], + "loc": { + "start": { + "line": 305, + "column": 28 + }, + "end": { + "line": 305, + "column": 34 + } + } + }, + "range": [ + 9127, + 9140 + ], + "loc": { + "start": { + "line": 305, + "column": 21 + }, + "end": { + "line": 305, + "column": 34 + } + } + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "x", + "range": [ + 9142, + 9143 + ], + "loc": { + "start": { + "line": 305, + "column": 36 + }, + "end": { + "line": 305, + "column": 37 + } + } + }, + { + "type": "Identifier", + "name": "y", + "range": [ + 9145, + 9146 + ], + "loc": { + "start": { + "line": 305, + "column": 39 + }, + "end": { + "line": 305, + "column": 40 + } + } + } + ], + "body": { + "type": "BinaryExpression", + "operator": "+", + "left": { + "type": "Identifier", + "name": "x", + "range": [ + 9151, + 9152 + ], + "loc": { + "start": { + "line": 305, + "column": 45 + }, + "end": { + "line": 305, + "column": 46 + } + } + }, + "right": { + "type": "Identifier", + "name": "y", + "range": [ + 9155, + 9156 + ], + "loc": { + "start": { + "line": 305, + "column": 49 + }, + "end": { + "line": 305, + "column": 50 + } + } + }, + "range": [ + 9151, + 9156 + ], + "loc": { + "start": { + "line": 305, + "column": 45 + }, + "end": { + "line": 305, + "column": 50 + } + } + }, + "generator": false, + "expression": true, + "range": [ + 9141, + 9156 + ], + "loc": { + "start": { + "line": 305, + "column": 35 + }, + "end": { + "line": 305, + "column": 50 + } + } + } + ], + "range": [ + 9127, + 9157 + ], + "loc": { + "start": { + "line": 305, + "column": 21 + }, + "end": { + "line": 305, + "column": 51 + } + } + }, + "range": [ + 9118, + 9157 + ], + "loc": { + "start": { + "line": 305, + "column": 12 + }, + "end": { + "line": 305, + "column": 51 + } + } + } + ], + "kind": "let", + "range": [ + 9114, + 9158 + ], + "loc": { + "start": { + "line": 305, + "column": 8 + }, + "end": { + "line": 305, + "column": 52 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "Number", + "range": [ + 9174, + 9180 + ], + "loc": { + "start": { + "line": 306, + "column": 15 + }, + "end": { + "line": 306, + "column": 21 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "result", + "range": [ + 9181, + 9187 + ], + "loc": { + "start": { + "line": 306, + "column": 22 + }, + "end": { + "line": 306, + "column": 28 + } + } + } + ], + "range": [ + 9174, + 9188 + ], + "loc": { + "start": { + "line": 306, + "column": 15 + }, + "end": { + "line": 306, + "column": 29 + } + } + }, + "range": [ + 9167, + 9189 + ], + "loc": { + "start": { + "line": 306, + "column": 8 + }, + "end": { + "line": 306, + "column": 30 + } + } + } + ], + "range": [ + 9041, + 9195 + ], + "loc": { + "start": { + "line": 301, + "column": 25 + }, + "end": { + "line": 307, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 9027, + 9195 + ], + "loc": { + "start": { + "line": 301, + "column": 11 + }, + "end": { + "line": 307, + "column": 5 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 9020, + 9195 + ], + "loc": { + "start": { + "line": 301, + "column": 4 + }, + "end": { + "line": 307, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Calculate the sum of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n ", + "range": [ + 8887, + 9015 + ], + "loc": { + "start": { + "line": 296, + "column": 4 + }, + "end": { + "line": 300, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Calculate the mean of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n ", + "range": [ + 9201, + 9330 + ], + "loc": { + "start": { + "line": 309, + "column": 4 + }, + "end": { + "line": 313, + "column": 7 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "calcMean", + "range": [ + 9335, + 9343 + ], + "loc": { + "start": { + "line": 314, + "column": 4 + }, + "end": { + "line": 314, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "values", + "range": [ + 9344, + 9350 + ], + "loc": { + "start": { + "line": 314, + "column": 13 + }, + "end": { + "line": 314, + "column": 19 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 9353, + 9355 + ], + "loc": { + "start": { + "line": 314, + "column": 22 + }, + "end": { + "line": 314, + "column": 24 + } + } + }, + "range": [ + 9344, + 9355 + ], + "loc": { + "start": { + "line": 314, + "column": 13 + }, + "end": { + "line": 314, + "column": 24 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "result", + "range": [ + 9371, + 9377 + ], + "loc": { + "start": { + "line": 315, + "column": 12 + }, + "end": { + "line": 315, + "column": 18 + } + } + }, + "init": { + "type": "BinaryExpression", + "operator": "/", + "left": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 9380, + 9384 + ], + "loc": { + "start": { + "line": 315, + "column": 21 + }, + "end": { + "line": 315, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "calcSum", + "range": [ + 9385, + 9392 + ], + "loc": { + "start": { + "line": 315, + "column": 26 + }, + "end": { + "line": 315, + "column": 33 + } + } + }, + "range": [ + 9380, + 9392 + ], + "loc": { + "start": { + "line": 315, + "column": 21 + }, + "end": { + "line": 315, + "column": 33 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "values", + "range": [ + 9393, + 9399 + ], + "loc": { + "start": { + "line": 315, + "column": 34 + }, + "end": { + "line": 315, + "column": 40 + } + } + } + ], + "range": [ + 9380, + 9400 + ], + "loc": { + "start": { + "line": 315, + "column": 21 + }, + "end": { + "line": 315, + "column": 41 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "values", + "range": [ + 9403, + 9409 + ], + "loc": { + "start": { + "line": 315, + "column": 44 + }, + "end": { + "line": 315, + "column": 50 + } + } + }, + "property": { + "type": "Identifier", + "name": "length", + "range": [ + 9410, + 9416 + ], + "loc": { + "start": { + "line": 315, + "column": 51 + }, + "end": { + "line": 315, + "column": 57 + } + } + }, + "range": [ + 9403, + 9416 + ], + "loc": { + "start": { + "line": 315, + "column": 44 + }, + "end": { + "line": 315, + "column": 57 + } + } + }, + "range": [ + 9380, + 9416 + ], + "loc": { + "start": { + "line": 315, + "column": 21 + }, + "end": { + "line": 315, + "column": 57 + } + } + }, + "range": [ + 9371, + 9416 + ], + "loc": { + "start": { + "line": 315, + "column": 12 + }, + "end": { + "line": 315, + "column": 57 + } + } + } + ], + "kind": "let", + "range": [ + 9367, + 9417 + ], + "loc": { + "start": { + "line": 315, + "column": 8 + }, + "end": { + "line": 315, + "column": 58 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "Number", + "range": [ + 9433, + 9439 + ], + "loc": { + "start": { + "line": 316, + "column": 15 + }, + "end": { + "line": 316, + "column": 21 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "result", + "range": [ + 9440, + 9446 + ], + "loc": { + "start": { + "line": 316, + "column": 22 + }, + "end": { + "line": 316, + "column": 28 + } + } + } + ], + "range": [ + 9433, + 9447 + ], + "loc": { + "start": { + "line": 316, + "column": 15 + }, + "end": { + "line": 316, + "column": 29 + } + } + }, + "range": [ + 9426, + 9448 + ], + "loc": { + "start": { + "line": 316, + "column": 8 + }, + "end": { + "line": 316, + "column": 30 + } + } + } + ], + "range": [ + 9357, + 9454 + ], + "loc": { + "start": { + "line": 314, + "column": 26 + }, + "end": { + "line": 317, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 9343, + 9454 + ], + "loc": { + "start": { + "line": 314, + "column": 12 + }, + "end": { + "line": 317, + "column": 5 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 9335, + 9454 + ], + "loc": { + "start": { + "line": 314, + "column": 4 + }, + "end": { + "line": 317, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Calculate the mean of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n ", + "range": [ + 9201, + 9330 + ], + "loc": { + "start": { + "line": 309, + "column": 4 + }, + "end": { + "line": 313, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Calculate the max value of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n ", + "range": [ + 9460, + 9594 + ], + "loc": { + "start": { + "line": 319, + "column": 4 + }, + "end": { + "line": 323, + "column": 7 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "calcMax", + "range": [ + 9599, + 9606 + ], + "loc": { + "start": { + "line": 324, + "column": 4 + }, + "end": { + "line": 324, + "column": 11 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "values", + "range": [ + 9607, + 9613 + ], + "loc": { + "start": { + "line": 324, + "column": 12 + }, + "end": { + "line": 324, + "column": 18 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 9616, + 9618 + ], + "loc": { + "start": { + "line": 324, + "column": 21 + }, + "end": { + "line": 324, + "column": 23 + } + } + }, + "range": [ + 9607, + 9618 + ], + "loc": { + "start": { + "line": 324, + "column": 12 + }, + "end": { + "line": 324, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Math", + "range": [ + 9637, + 9641 + ], + "loc": { + "start": { + "line": 325, + "column": 15 + }, + "end": { + "line": 325, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "max", + "range": [ + 9642, + 9645 + ], + "loc": { + "start": { + "line": 325, + "column": 20 + }, + "end": { + "line": 325, + "column": 23 + } + } + }, + "range": [ + 9637, + 9645 + ], + "loc": { + "start": { + "line": 325, + "column": 15 + }, + "end": { + "line": 325, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "apply", + "range": [ + 9646, + 9651 + ], + "loc": { + "start": { + "line": 325, + "column": 24 + }, + "end": { + "line": 325, + "column": 29 + } + } + }, + "range": [ + 9637, + 9651 + ], + "loc": { + "start": { + "line": 325, + "column": 15 + }, + "end": { + "line": 325, + "column": 29 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 9652, + 9656 + ], + "loc": { + "start": { + "line": 325, + "column": 30 + }, + "end": { + "line": 325, + "column": 34 + } + } + }, + { + "type": "Identifier", + "name": "values", + "range": [ + 9658, + 9664 + ], + "loc": { + "start": { + "line": 325, + "column": 36 + }, + "end": { + "line": 325, + "column": 42 + } + } + } + ], + "range": [ + 9637, + 9665 + ], + "loc": { + "start": { + "line": 325, + "column": 15 + }, + "end": { + "line": 325, + "column": 43 + } + } + }, + "range": [ + 9630, + 9666 + ], + "loc": { + "start": { + "line": 325, + "column": 8 + }, + "end": { + "line": 325, + "column": 44 + } + } + } + ], + "range": [ + 9620, + 9672 + ], + "loc": { + "start": { + "line": 324, + "column": 25 + }, + "end": { + "line": 326, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 9606, + 9672 + ], + "loc": { + "start": { + "line": 324, + "column": 11 + }, + "end": { + "line": 326, + "column": 5 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 9599, + 9672 + ], + "loc": { + "start": { + "line": 324, + "column": 4 + }, + "end": { + "line": 326, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Calculate the max value of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n ", + "range": [ + 9460, + 9594 + ], + "loc": { + "start": { + "line": 319, + "column": 4 + }, + "end": { + "line": 323, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Calculate the min value of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n ", + "range": [ + 9678, + 9812 + ], + "loc": { + "start": { + "line": 328, + "column": 4 + }, + "end": { + "line": 332, + "column": 7 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "calcMin", + "range": [ + 9817, + 9824 + ], + "loc": { + "start": { + "line": 333, + "column": 4 + }, + "end": { + "line": 333, + "column": 11 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "values", + "range": [ + 9825, + 9831 + ], + "loc": { + "start": { + "line": 333, + "column": 12 + }, + "end": { + "line": 333, + "column": 18 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 9834, + 9836 + ], + "loc": { + "start": { + "line": 333, + "column": 21 + }, + "end": { + "line": 333, + "column": 23 + } + } + }, + "range": [ + 9825, + 9836 + ], + "loc": { + "start": { + "line": 333, + "column": 12 + }, + "end": { + "line": 333, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Math", + "range": [ + 9855, + 9859 + ], + "loc": { + "start": { + "line": 334, + "column": 15 + }, + "end": { + "line": 334, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "min", + "range": [ + 9860, + 9863 + ], + "loc": { + "start": { + "line": 334, + "column": 20 + }, + "end": { + "line": 334, + "column": 23 + } + } + }, + "range": [ + 9855, + 9863 + ], + "loc": { + "start": { + "line": 334, + "column": 15 + }, + "end": { + "line": 334, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "apply", + "range": [ + 9864, + 9869 + ], + "loc": { + "start": { + "line": 334, + "column": 24 + }, + "end": { + "line": 334, + "column": 29 + } + } + }, + "range": [ + 9855, + 9869 + ], + "loc": { + "start": { + "line": 334, + "column": 15 + }, + "end": { + "line": 334, + "column": 29 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 9870, + 9874 + ], + "loc": { + "start": { + "line": 334, + "column": 30 + }, + "end": { + "line": 334, + "column": 34 + } + } + }, + { + "type": "Identifier", + "name": "values", + "range": [ + 9876, + 9882 + ], + "loc": { + "start": { + "line": 334, + "column": 36 + }, + "end": { + "line": 334, + "column": 42 + } + } + } + ], + "range": [ + 9855, + 9883 + ], + "loc": { + "start": { + "line": 334, + "column": 15 + }, + "end": { + "line": 334, + "column": 43 + } + } + }, + "range": [ + 9848, + 9884 + ], + "loc": { + "start": { + "line": 334, + "column": 8 + }, + "end": { + "line": 334, + "column": 44 + } + } + } + ], + "range": [ + 9838, + 9890 + ], + "loc": { + "start": { + "line": 333, + "column": 25 + }, + "end": { + "line": 335, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 9824, + 9890 + ], + "loc": { + "start": { + "line": 333, + "column": 11 + }, + "end": { + "line": 335, + "column": 5 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 9817, + 9890 + ], + "loc": { + "start": { + "line": 333, + "column": 4 + }, + "end": { + "line": 335, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Calculate the min value of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n ", + "range": [ + 9678, + 9812 + ], + "loc": { + "start": { + "line": 328, + "column": 4 + }, + "end": { + "line": 332, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Calculate the median of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n ", + "range": [ + 9896, + 10027 + ], + "loc": { + "start": { + "line": 337, + "column": 4 + }, + "end": { + "line": 341, + "column": 7 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "calcMedian", + "range": [ + 10032, + 10042 + ], + "loc": { + "start": { + "line": 342, + "column": 4 + }, + "end": { + "line": 342, + "column": 14 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "values", + "range": [ + 10043, + 10049 + ], + "loc": { + "start": { + "line": 342, + "column": 15 + }, + "end": { + "line": 342, + "column": 21 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 10052, + 10054 + ], + "loc": { + "start": { + "line": 342, + "column": 24 + }, + "end": { + "line": 342, + "column": 26 + } + } + }, + "range": [ + 10043, + 10054 + ], + "loc": { + "start": { + "line": 342, + "column": 15 + }, + "end": { + "line": 342, + "column": 26 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "nbValues", + "range": [ + 10070, + 10078 + ], + "loc": { + "start": { + "line": 343, + "column": 12 + }, + "end": { + "line": 343, + "column": 20 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "values", + "range": [ + 10081, + 10087 + ], + "loc": { + "start": { + "line": 343, + "column": 23 + }, + "end": { + "line": 343, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "length", + "range": [ + 10088, + 10094 + ], + "loc": { + "start": { + "line": 343, + "column": 30 + }, + "end": { + "line": 343, + "column": 36 + } + } + }, + "range": [ + 10081, + 10094 + ], + "loc": { + "start": { + "line": 343, + "column": 23 + }, + "end": { + "line": 343, + "column": 36 + } + } + }, + "range": [ + 10070, + 10094 + ], + "loc": { + "start": { + "line": 343, + "column": 12 + }, + "end": { + "line": 343, + "column": 36 + } + } + } + ], + "kind": "let", + "range": [ + 10066, + 10095 + ], + "loc": { + "start": { + "line": 343, + "column": 8 + }, + "end": { + "line": 343, + "column": 37 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "aux", + "range": [ + 10108, + 10111 + ], + "loc": { + "start": { + "line": 344, + "column": 12 + }, + "end": { + "line": 344, + "column": 15 + } + } + }, + "init": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 10114, + 10115 + ], + "loc": { + "start": { + "line": 344, + "column": 18 + }, + "end": { + "line": 344, + "column": 19 + } + } + }, + "range": [ + 10108, + 10115 + ], + "loc": { + "start": { + "line": 344, + "column": 12 + }, + "end": { + "line": 344, + "column": 19 + } + } + } + ], + "kind": "let", + "range": [ + 10104, + 10116 + ], + "loc": { + "start": { + "line": 344, + "column": 8 + }, + "end": { + "line": 344, + "column": 20 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "BinaryExpression", + "operator": "%", + "left": { + "type": "Identifier", + "name": "nbValues", + "range": [ + 10129, + 10137 + ], + "loc": { + "start": { + "line": 345, + "column": 12 + }, + "end": { + "line": 345, + "column": 20 + } + } + }, + "right": { + "type": "Literal", + "value": 2, + "raw": "2", + "range": [ + 10140, + 10141 + ], + "loc": { + "start": { + "line": 345, + "column": 23 + }, + "end": { + "line": 345, + "column": 24 + } + } + }, + "range": [ + 10129, + 10141 + ], + "loc": { + "start": { + "line": 345, + "column": 12 + }, + "end": { + "line": 345, + "column": 24 + } + } + }, + "right": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 10146, + 10147 + ], + "loc": { + "start": { + "line": 345, + "column": 29 + }, + "end": { + "line": 345, + "column": 30 + } + } + }, + "range": [ + 10129, + 10147 + ], + "loc": { + "start": { + "line": 345, + "column": 12 + }, + "end": { + "line": 345, + "column": 30 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "aux", + "range": [ + 10163, + 10166 + ], + "loc": { + "start": { + "line": 346, + "column": 12 + }, + "end": { + "line": 346, + "column": 15 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Math", + "range": [ + 10169, + 10173 + ], + "loc": { + "start": { + "line": 346, + "column": 18 + }, + "end": { + "line": 346, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "floor", + "range": [ + 10174, + 10179 + ], + "loc": { + "start": { + "line": 346, + "column": 23 + }, + "end": { + "line": 346, + "column": 28 + } + } + }, + "range": [ + 10169, + 10179 + ], + "loc": { + "start": { + "line": 346, + "column": 18 + }, + "end": { + "line": 346, + "column": 28 + } + } + }, + "arguments": [ + { + "type": "BinaryExpression", + "operator": "/", + "left": { + "type": "Identifier", + "name": "nbValues", + "range": [ + 10180, + 10188 + ], + "loc": { + "start": { + "line": 346, + "column": 29 + }, + "end": { + "line": 346, + "column": 37 + } + } + }, + "right": { + "type": "Literal", + "value": 2, + "raw": "2", + "range": [ + 10191, + 10192 + ], + "loc": { + "start": { + "line": 346, + "column": 40 + }, + "end": { + "line": 346, + "column": 41 + } + } + }, + "range": [ + 10180, + 10192 + ], + "loc": { + "start": { + "line": 346, + "column": 29 + }, + "end": { + "line": 346, + "column": 41 + } + } + } + ], + "range": [ + 10169, + 10193 + ], + "loc": { + "start": { + "line": 346, + "column": 18 + }, + "end": { + "line": 346, + "column": 42 + } + } + }, + "range": [ + 10163, + 10193 + ], + "loc": { + "start": { + "line": 346, + "column": 12 + }, + "end": { + "line": 346, + "column": 42 + } + } + }, + "range": [ + 10163, + 10194 + ], + "loc": { + "start": { + "line": 346, + "column": 12 + }, + "end": { + "line": 346, + "column": 43 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "Number", + "range": [ + 10214, + 10220 + ], + "loc": { + "start": { + "line": 347, + "column": 19 + }, + "end": { + "line": 347, + "column": 25 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "values", + "range": [ + 10221, + 10227 + ], + "loc": { + "start": { + "line": 347, + "column": 26 + }, + "end": { + "line": 347, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "aux", + "range": [ + 10228, + 10231 + ], + "loc": { + "start": { + "line": 347, + "column": 33 + }, + "end": { + "line": 347, + "column": 36 + } + } + }, + "range": [ + 10221, + 10232 + ], + "loc": { + "start": { + "line": 347, + "column": 26 + }, + "end": { + "line": 347, + "column": 37 + } + } + } + ], + "range": [ + 10214, + 10233 + ], + "loc": { + "start": { + "line": 347, + "column": 19 + }, + "end": { + "line": 347, + "column": 38 + } + } + }, + "range": [ + 10207, + 10234 + ], + "loc": { + "start": { + "line": 347, + "column": 12 + }, + "end": { + "line": 347, + "column": 39 + } + } + } + ], + "range": [ + 10149, + 10244 + ], + "loc": { + "start": { + "line": 345, + "column": 32 + }, + "end": { + "line": 348, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 10125, + 10244 + ], + "loc": { + "start": { + "line": 345, + "column": 8 + }, + "end": { + "line": 348, + "column": 9 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "Number", + "range": [ + 10260, + 10266 + ], + "loc": { + "start": { + "line": 349, + "column": 15 + }, + "end": { + "line": 349, + "column": 21 + } + } + }, + "arguments": [ + { + "type": "BinaryExpression", + "operator": "/", + "left": { + "type": "BinaryExpression", + "operator": "+", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "values", + "range": [ + 10281, + 10287 + ], + "loc": { + "start": { + "line": 350, + "column": 13 + }, + "end": { + "line": 350, + "column": 19 + } + } + }, + "property": { + "type": "BinaryExpression", + "operator": "/", + "left": { + "type": "Identifier", + "name": "nbValues", + "range": [ + 10288, + 10296 + ], + "loc": { + "start": { + "line": 350, + "column": 20 + }, + "end": { + "line": 350, + "column": 28 + } + } + }, + "right": { + "type": "Literal", + "value": 2, + "raw": "2", + "range": [ + 10299, + 10300 + ], + "loc": { + "start": { + "line": 350, + "column": 31 + }, + "end": { + "line": 350, + "column": 32 + } + } + }, + "range": [ + 10288, + 10300 + ], + "loc": { + "start": { + "line": 350, + "column": 20 + }, + "end": { + "line": 350, + "column": 32 + } + } + }, + "range": [ + 10281, + 10301 + ], + "loc": { + "start": { + "line": 350, + "column": 13 + }, + "end": { + "line": 350, + "column": 33 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "values", + "range": [ + 10316, + 10322 + ], + "loc": { + "start": { + "line": 351, + "column": 12 + }, + "end": { + "line": 351, + "column": 18 + } + } + }, + "property": { + "type": "BinaryExpression", + "operator": "-", + "left": { + "type": "BinaryExpression", + "operator": "/", + "left": { + "type": "Identifier", + "name": "nbValues", + "range": [ + 10325, + 10333 + ], + "loc": { + "start": { + "line": 351, + "column": 21 + }, + "end": { + "line": 351, + "column": 29 + } + } + }, + "right": { + "type": "Literal", + "value": 2, + "raw": "2", + "range": [ + 10336, + 10337 + ], + "loc": { + "start": { + "line": 351, + "column": 32 + }, + "end": { + "line": 351, + "column": 33 + } + } + }, + "range": [ + 10325, + 10337 + ], + "loc": { + "start": { + "line": 351, + "column": 21 + }, + "end": { + "line": 351, + "column": 33 + } + } + }, + "right": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 10341, + 10342 + ], + "loc": { + "start": { + "line": 351, + "column": 37 + }, + "end": { + "line": 351, + "column": 38 + } + } + }, + "range": [ + 10324, + 10342 + ], + "loc": { + "start": { + "line": 351, + "column": 20 + }, + "end": { + "line": 351, + "column": 38 + } + } + }, + "range": [ + 10316, + 10344 + ], + "loc": { + "start": { + "line": 351, + "column": 12 + }, + "end": { + "line": 351, + "column": 40 + } + } + }, + "range": [ + 10281, + 10344 + ], + "loc": { + "start": { + "line": 350, + "column": 13 + }, + "end": { + "line": 351, + "column": 40 + } + } + }, + "right": { + "type": "Literal", + "value": 2, + "raw": "2", + "range": [ + 10348, + 10349 + ], + "loc": { + "start": { + "line": 351, + "column": 44 + }, + "end": { + "line": 351, + "column": 45 + } + } + }, + "range": [ + 10280, + 10349 + ], + "loc": { + "start": { + "line": 350, + "column": 12 + }, + "end": { + "line": 351, + "column": 45 + } + } + } + ], + "range": [ + 10260, + 10359 + ], + "loc": { + "start": { + "line": 349, + "column": 15 + }, + "end": { + "line": 352, + "column": 9 + } + } + }, + "range": [ + 10253, + 10360 + ], + "loc": { + "start": { + "line": 349, + "column": 8 + }, + "end": { + "line": 352, + "column": 10 + } + } + } + ], + "range": [ + 10056, + 10366 + ], + "loc": { + "start": { + "line": 342, + "column": 28 + }, + "end": { + "line": 353, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 10042, + 10366 + ], + "loc": { + "start": { + "line": 342, + "column": 14 + }, + "end": { + "line": 353, + "column": 5 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 10032, + 10366 + ], + "loc": { + "start": { + "line": 342, + "column": 4 + }, + "end": { + "line": 353, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Calculate the median of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n ", + "range": [ + 9896, + 10027 + ], + "loc": { + "start": { + "line": 337, + "column": 4 + }, + "end": { + "line": 341, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Calculate the lower quartile of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n ", + "range": [ + 10372, + 10511 + ], + "loc": { + "start": { + "line": 355, + "column": 4 + }, + "end": { + "line": 359, + "column": 7 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "calcQ1", + "range": [ + 10516, + 10522 + ], + "loc": { + "start": { + "line": 360, + "column": 4 + }, + "end": { + "line": 360, + "column": 10 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "values", + "range": [ + 10523, + 10529 + ], + "loc": { + "start": { + "line": 360, + "column": 11 + }, + "end": { + "line": 360, + "column": 17 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 10532, + 10534 + ], + "loc": { + "start": { + "line": 360, + "column": 20 + }, + "end": { + "line": 360, + "column": 22 + } + } + }, + "range": [ + 10523, + 10534 + ], + "loc": { + "start": { + "line": 360, + "column": 11 + }, + "end": { + "line": 360, + "column": 22 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "nbValues", + "range": [ + 10550, + 10558 + ], + "loc": { + "start": { + "line": 361, + "column": 12 + }, + "end": { + "line": 361, + "column": 20 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "values", + "range": [ + 10561, + 10567 + ], + "loc": { + "start": { + "line": 361, + "column": 23 + }, + "end": { + "line": 361, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "length", + "range": [ + 10568, + 10574 + ], + "loc": { + "start": { + "line": 361, + "column": 30 + }, + "end": { + "line": 361, + "column": 36 + } + } + }, + "range": [ + 10561, + 10574 + ], + "loc": { + "start": { + "line": 361, + "column": 23 + }, + "end": { + "line": 361, + "column": 36 + } + } + }, + "range": [ + 10550, + 10574 + ], + "loc": { + "start": { + "line": 361, + "column": 12 + }, + "end": { + "line": 361, + "column": 36 + } + } + } + ], + "kind": "let", + "range": [ + 10546, + 10575 + ], + "loc": { + "start": { + "line": 361, + "column": 8 + }, + "end": { + "line": 361, + "column": 37 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "posa", + "range": [ + 10588, + 10592 + ], + "loc": { + "start": { + "line": 362, + "column": 12 + }, + "end": { + "line": 362, + "column": 16 + } + } + }, + "init": { + "type": "Literal", + "value": 0, + "raw": "0.0", + "range": [ + 10595, + 10598 + ], + "loc": { + "start": { + "line": 362, + "column": 19 + }, + "end": { + "line": 362, + "column": 22 + } + } + }, + "range": [ + 10588, + 10598 + ], + "loc": { + "start": { + "line": 362, + "column": 12 + }, + "end": { + "line": 362, + "column": 22 + } + } + } + ], + "kind": "let", + "range": [ + 10584, + 10599 + ], + "loc": { + "start": { + "line": 362, + "column": 8 + }, + "end": { + "line": 362, + "column": 23 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "posa", + "range": [ + 10608, + 10612 + ], + "loc": { + "start": { + "line": 363, + "column": 8 + }, + "end": { + "line": 363, + "column": 12 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Math", + "range": [ + 10615, + 10619 + ], + "loc": { + "start": { + "line": 363, + "column": 15 + }, + "end": { + "line": 363, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "floor", + "range": [ + 10620, + 10625 + ], + "loc": { + "start": { + "line": 363, + "column": 20 + }, + "end": { + "line": 363, + "column": 25 + } + } + }, + "range": [ + 10615, + 10625 + ], + "loc": { + "start": { + "line": 363, + "column": 15 + }, + "end": { + "line": 363, + "column": 25 + } + } + }, + "arguments": [ + { + "type": "BinaryExpression", + "operator": "/", + "left": { + "type": "Identifier", + "name": "nbValues", + "range": [ + 10626, + 10634 + ], + "loc": { + "start": { + "line": 363, + "column": 26 + }, + "end": { + "line": 363, + "column": 34 + } + } + }, + "right": { + "type": "Literal", + "value": 4, + "raw": "4", + "range": [ + 10637, + 10638 + ], + "loc": { + "start": { + "line": 363, + "column": 37 + }, + "end": { + "line": 363, + "column": 38 + } + } + }, + "range": [ + 10626, + 10638 + ], + "loc": { + "start": { + "line": 363, + "column": 26 + }, + "end": { + "line": 363, + "column": 38 + } + } + } + ], + "range": [ + 10615, + 10639 + ], + "loc": { + "start": { + "line": 363, + "column": 15 + }, + "end": { + "line": 363, + "column": 39 + } + } + }, + "range": [ + 10608, + 10639 + ], + "loc": { + "start": { + "line": 363, + "column": 8 + }, + "end": { + "line": 363, + "column": 39 + } + } + }, + "range": [ + 10608, + 10640 + ], + "loc": { + "start": { + "line": 363, + "column": 8 + }, + "end": { + "line": 363, + "column": 40 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "BinaryExpression", + "operator": "*", + "left": { + "type": "Literal", + "value": 4, + "raw": "4", + "range": [ + 10653, + 10654 + ], + "loc": { + "start": { + "line": 364, + "column": 12 + }, + "end": { + "line": 364, + "column": 13 + } + } + }, + "right": { + "type": "Identifier", + "name": "posa", + "range": [ + 10657, + 10661 + ], + "loc": { + "start": { + "line": 364, + "column": 16 + }, + "end": { + "line": 364, + "column": 20 + } + } + }, + "range": [ + 10653, + 10661 + ], + "loc": { + "start": { + "line": 364, + "column": 12 + }, + "end": { + "line": 364, + "column": 20 + } + } + }, + "right": { + "type": "Identifier", + "name": "nbValues", + "range": [ + 10666, + 10674 + ], + "loc": { + "start": { + "line": 364, + "column": 25 + }, + "end": { + "line": 364, + "column": 33 + } + } + }, + "range": [ + 10653, + 10674 + ], + "loc": { + "start": { + "line": 364, + "column": 12 + }, + "end": { + "line": 364, + "column": 33 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "Number", + "range": [ + 10697, + 10703 + ], + "loc": { + "start": { + "line": 365, + "column": 19 + }, + "end": { + "line": 365, + "column": 25 + } + } + }, + "arguments": [ + { + "type": "BinaryExpression", + "operator": "/", + "left": { + "type": "BinaryExpression", + "operator": "+", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "values", + "range": [ + 10722, + 10728 + ], + "loc": { + "start": { + "line": 366, + "column": 17 + }, + "end": { + "line": 366, + "column": 23 + } + } + }, + "property": { + "type": "BinaryExpression", + "operator": "-", + "left": { + "type": "Identifier", + "name": "posa", + "range": [ + 10729, + 10733 + ], + "loc": { + "start": { + "line": 366, + "column": 24 + }, + "end": { + "line": 366, + "column": 28 + } + } + }, + "right": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 10736, + 10737 + ], + "loc": { + "start": { + "line": 366, + "column": 31 + }, + "end": { + "line": 366, + "column": 32 + } + } + }, + "range": [ + 10729, + 10737 + ], + "loc": { + "start": { + "line": 366, + "column": 24 + }, + "end": { + "line": 366, + "column": 32 + } + } + }, + "range": [ + 10722, + 10738 + ], + "loc": { + "start": { + "line": 366, + "column": 17 + }, + "end": { + "line": 366, + "column": 33 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "values", + "range": [ + 10741, + 10747 + ], + "loc": { + "start": { + "line": 366, + "column": 36 + }, + "end": { + "line": 366, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "name": "posa", + "range": [ + 10748, + 10752 + ], + "loc": { + "start": { + "line": 366, + "column": 43 + }, + "end": { + "line": 366, + "column": 47 + } + } + }, + "range": [ + 10741, + 10753 + ], + "loc": { + "start": { + "line": 366, + "column": 36 + }, + "end": { + "line": 366, + "column": 48 + } + } + }, + "range": [ + 10722, + 10753 + ], + "loc": { + "start": { + "line": 366, + "column": 17 + }, + "end": { + "line": 366, + "column": 48 + } + } + }, + "right": { + "type": "Literal", + "value": 2, + "raw": "2", + "range": [ + 10757, + 10758 + ], + "loc": { + "start": { + "line": 366, + "column": 52 + }, + "end": { + "line": 366, + "column": 53 + } + } + }, + "range": [ + 10721, + 10758 + ], + "loc": { + "start": { + "line": 366, + "column": 16 + }, + "end": { + "line": 366, + "column": 53 + } + } + } + ], + "range": [ + 10697, + 10772 + ], + "loc": { + "start": { + "line": 365, + "column": 19 + }, + "end": { + "line": 367, + "column": 13 + } + } + }, + "range": [ + 10690, + 10773 + ], + "loc": { + "start": { + "line": 365, + "column": 12 + }, + "end": { + "line": 367, + "column": 14 + } + } + } + ], + "range": [ + 10676, + 10783 + ], + "loc": { + "start": { + "line": 364, + "column": 35 + }, + "end": { + "line": 368, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 10649, + 10783 + ], + "loc": { + "start": { + "line": 364, + "column": 8 + }, + "end": { + "line": 368, + "column": 9 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "Number", + "range": [ + 10799, + 10805 + ], + "loc": { + "start": { + "line": 369, + "column": 15 + }, + "end": { + "line": 369, + "column": 21 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "values", + "range": [ + 10806, + 10812 + ], + "loc": { + "start": { + "line": 369, + "column": 22 + }, + "end": { + "line": 369, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "posa", + "range": [ + 10813, + 10817 + ], + "loc": { + "start": { + "line": 369, + "column": 29 + }, + "end": { + "line": 369, + "column": 33 + } + } + }, + "range": [ + 10806, + 10818 + ], + "loc": { + "start": { + "line": 369, + "column": 22 + }, + "end": { + "line": 369, + "column": 34 + } + } + } + ], + "range": [ + 10799, + 10819 + ], + "loc": { + "start": { + "line": 369, + "column": 15 + }, + "end": { + "line": 369, + "column": 35 + } + } + }, + "range": [ + 10792, + 10820 + ], + "loc": { + "start": { + "line": 369, + "column": 8 + }, + "end": { + "line": 369, + "column": 36 + } + } + } + ], + "range": [ + 10536, + 10826 + ], + "loc": { + "start": { + "line": 360, + "column": 24 + }, + "end": { + "line": 370, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 10522, + 10826 + ], + "loc": { + "start": { + "line": 360, + "column": 10 + }, + "end": { + "line": 370, + "column": 5 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 10516, + 10826 + ], + "loc": { + "start": { + "line": 360, + "column": 4 + }, + "end": { + "line": 370, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Calculate the lower quartile of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n ", + "range": [ + 10372, + 10511 + ], + "loc": { + "start": { + "line": 355, + "column": 4 + }, + "end": { + "line": 359, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Calculate the upper quartile of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n ", + "range": [ + 10832, + 10971 + ], + "loc": { + "start": { + "line": 372, + "column": 4 + }, + "end": { + "line": 376, + "column": 7 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "calcQ3", + "range": [ + 10976, + 10982 + ], + "loc": { + "start": { + "line": 377, + "column": 4 + }, + "end": { + "line": 377, + "column": 10 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "values", + "range": [ + 10983, + 10989 + ], + "loc": { + "start": { + "line": 377, + "column": 11 + }, + "end": { + "line": 377, + "column": 17 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 10992, + 10994 + ], + "loc": { + "start": { + "line": 377, + "column": 20 + }, + "end": { + "line": 377, + "column": 22 + } + } + }, + "range": [ + 10983, + 10994 + ], + "loc": { + "start": { + "line": 377, + "column": 11 + }, + "end": { + "line": 377, + "column": 22 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "nbValues", + "range": [ + 11010, + 11018 + ], + "loc": { + "start": { + "line": 378, + "column": 12 + }, + "end": { + "line": 378, + "column": 20 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "values", + "range": [ + 11021, + 11027 + ], + "loc": { + "start": { + "line": 378, + "column": 23 + }, + "end": { + "line": 378, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "length", + "range": [ + 11028, + 11034 + ], + "loc": { + "start": { + "line": 378, + "column": 30 + }, + "end": { + "line": 378, + "column": 36 + } + } + }, + "range": [ + 11021, + 11034 + ], + "loc": { + "start": { + "line": 378, + "column": 23 + }, + "end": { + "line": 378, + "column": 36 + } + } + }, + "range": [ + 11010, + 11034 + ], + "loc": { + "start": { + "line": 378, + "column": 12 + }, + "end": { + "line": 378, + "column": 36 + } + } + } + ], + "kind": "let", + "range": [ + 11006, + 11035 + ], + "loc": { + "start": { + "line": 378, + "column": 8 + }, + "end": { + "line": 378, + "column": 37 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "posa", + "range": [ + 11048, + 11052 + ], + "loc": { + "start": { + "line": 379, + "column": 12 + }, + "end": { + "line": 379, + "column": 16 + } + } + }, + "init": { + "type": "Literal", + "value": 0, + "raw": "0.0", + "range": [ + 11055, + 11058 + ], + "loc": { + "start": { + "line": 379, + "column": 19 + }, + "end": { + "line": 379, + "column": 22 + } + } + }, + "range": [ + 11048, + 11058 + ], + "loc": { + "start": { + "line": 379, + "column": 12 + }, + "end": { + "line": 379, + "column": 22 + } + } + } + ], + "kind": "let", + "range": [ + 11044, + 11059 + ], + "loc": { + "start": { + "line": 379, + "column": 8 + }, + "end": { + "line": 379, + "column": 23 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "posb", + "range": [ + 11072, + 11076 + ], + "loc": { + "start": { + "line": 380, + "column": 12 + }, + "end": { + "line": 380, + "column": 16 + } + } + }, + "init": { + "type": "Literal", + "value": 0, + "raw": "0.0", + "range": [ + 11079, + 11082 + ], + "loc": { + "start": { + "line": 380, + "column": 19 + }, + "end": { + "line": 380, + "column": 22 + } + } + }, + "range": [ + 11072, + 11082 + ], + "loc": { + "start": { + "line": 380, + "column": 12 + }, + "end": { + "line": 380, + "column": 22 + } + } + } + ], + "kind": "let", + "range": [ + 11068, + 11083 + ], + "loc": { + "start": { + "line": 380, + "column": 8 + }, + "end": { + "line": 380, + "column": 23 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "posa", + "range": [ + 11092, + 11096 + ], + "loc": { + "start": { + "line": 381, + "column": 8 + }, + "end": { + "line": 381, + "column": 12 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Math", + "range": [ + 11099, + 11103 + ], + "loc": { + "start": { + "line": 381, + "column": 15 + }, + "end": { + "line": 381, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "floor", + "range": [ + 11104, + 11109 + ], + "loc": { + "start": { + "line": 381, + "column": 20 + }, + "end": { + "line": 381, + "column": 25 + } + } + }, + "range": [ + 11099, + 11109 + ], + "loc": { + "start": { + "line": 381, + "column": 15 + }, + "end": { + "line": 381, + "column": 25 + } + } + }, + "arguments": [ + { + "type": "BinaryExpression", + "operator": "/", + "left": { + "type": "Identifier", + "name": "nbValues", + "range": [ + 11110, + 11118 + ], + "loc": { + "start": { + "line": 381, + "column": 26 + }, + "end": { + "line": 381, + "column": 34 + } + } + }, + "right": { + "type": "Literal", + "value": 4, + "raw": "4", + "range": [ + 11121, + 11122 + ], + "loc": { + "start": { + "line": 381, + "column": 37 + }, + "end": { + "line": 381, + "column": 38 + } + } + }, + "range": [ + 11110, + 11122 + ], + "loc": { + "start": { + "line": 381, + "column": 26 + }, + "end": { + "line": 381, + "column": 38 + } + } + } + ], + "range": [ + 11099, + 11123 + ], + "loc": { + "start": { + "line": 381, + "column": 15 + }, + "end": { + "line": 381, + "column": 39 + } + } + }, + "range": [ + 11092, + 11123 + ], + "loc": { + "start": { + "line": 381, + "column": 8 + }, + "end": { + "line": 381, + "column": 39 + } + } + }, + "range": [ + 11092, + 11124 + ], + "loc": { + "start": { + "line": 381, + "column": 8 + }, + "end": { + "line": 381, + "column": 40 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "BinaryExpression", + "operator": "*", + "left": { + "type": "Literal", + "value": 4, + "raw": "4", + "range": [ + 11137, + 11138 + ], + "loc": { + "start": { + "line": 382, + "column": 12 + }, + "end": { + "line": 382, + "column": 13 + } + } + }, + "right": { + "type": "Identifier", + "name": "posa", + "range": [ + 11141, + 11145 + ], + "loc": { + "start": { + "line": 382, + "column": 16 + }, + "end": { + "line": 382, + "column": 20 + } + } + }, + "range": [ + 11137, + 11145 + ], + "loc": { + "start": { + "line": 382, + "column": 12 + }, + "end": { + "line": 382, + "column": 20 + } + } + }, + "right": { + "type": "Identifier", + "name": "nbValues", + "range": [ + 11150, + 11158 + ], + "loc": { + "start": { + "line": 382, + "column": 25 + }, + "end": { + "line": 382, + "column": 33 + } + } + }, + "range": [ + 11137, + 11158 + ], + "loc": { + "start": { + "line": 382, + "column": 12 + }, + "end": { + "line": 382, + "column": 33 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "posb", + "range": [ + 11174, + 11178 + ], + "loc": { + "start": { + "line": 383, + "column": 12 + }, + "end": { + "line": 383, + "column": 16 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "*", + "left": { + "type": "Literal", + "value": 3, + "raw": "3", + "range": [ + 11181, + 11182 + ], + "loc": { + "start": { + "line": 383, + "column": 19 + }, + "end": { + "line": 383, + "column": 20 + } + } + }, + "right": { + "type": "Identifier", + "name": "posa", + "range": [ + 11185, + 11189 + ], + "loc": { + "start": { + "line": 383, + "column": 23 + }, + "end": { + "line": 383, + "column": 27 + } + } + }, + "range": [ + 11181, + 11189 + ], + "loc": { + "start": { + "line": 383, + "column": 19 + }, + "end": { + "line": 383, + "column": 27 + } + } + }, + "range": [ + 11174, + 11189 + ], + "loc": { + "start": { + "line": 383, + "column": 12 + }, + "end": { + "line": 383, + "column": 27 + } + } + }, + "range": [ + 11174, + 11190 + ], + "loc": { + "start": { + "line": 383, + "column": 12 + }, + "end": { + "line": 383, + "column": 28 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "Number", + "range": [ + 11210, + 11216 + ], + "loc": { + "start": { + "line": 384, + "column": 19 + }, + "end": { + "line": 384, + "column": 25 + } + } + }, + "arguments": [ + { + "type": "BinaryExpression", + "operator": "/", + "left": { + "type": "BinaryExpression", + "operator": "+", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "values", + "range": [ + 11235, + 11241 + ], + "loc": { + "start": { + "line": 385, + "column": 17 + }, + "end": { + "line": 385, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "posb", + "range": [ + 11242, + 11246 + ], + "loc": { + "start": { + "line": 385, + "column": 24 + }, + "end": { + "line": 385, + "column": 28 + } + } + }, + "range": [ + 11235, + 11247 + ], + "loc": { + "start": { + "line": 385, + "column": 17 + }, + "end": { + "line": 385, + "column": 29 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "values", + "range": [ + 11250, + 11256 + ], + "loc": { + "start": { + "line": 385, + "column": 32 + }, + "end": { + "line": 385, + "column": 38 + } + } + }, + "property": { + "type": "BinaryExpression", + "operator": "-", + "left": { + "type": "Identifier", + "name": "posb", + "range": [ + 11257, + 11261 + ], + "loc": { + "start": { + "line": 385, + "column": 39 + }, + "end": { + "line": 385, + "column": 43 + } + } + }, + "right": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 11264, + 11265 + ], + "loc": { + "start": { + "line": 385, + "column": 46 + }, + "end": { + "line": 385, + "column": 47 + } + } + }, + "range": [ + 11257, + 11265 + ], + "loc": { + "start": { + "line": 385, + "column": 39 + }, + "end": { + "line": 385, + "column": 47 + } + } + }, + "range": [ + 11250, + 11266 + ], + "loc": { + "start": { + "line": 385, + "column": 32 + }, + "end": { + "line": 385, + "column": 48 + } + } + }, + "range": [ + 11235, + 11266 + ], + "loc": { + "start": { + "line": 385, + "column": 17 + }, + "end": { + "line": 385, + "column": 48 + } + } + }, + "right": { + "type": "Literal", + "value": 2, + "raw": "2", + "range": [ + 11270, + 11271 + ], + "loc": { + "start": { + "line": 385, + "column": 52 + }, + "end": { + "line": 385, + "column": 53 + } + } + }, + "range": [ + 11234, + 11271 + ], + "loc": { + "start": { + "line": 385, + "column": 16 + }, + "end": { + "line": 385, + "column": 53 + } + } + } + ], + "range": [ + 11210, + 11285 + ], + "loc": { + "start": { + "line": 384, + "column": 19 + }, + "end": { + "line": 386, + "column": 13 + } + } + }, + "range": [ + 11203, + 11286 + ], + "loc": { + "start": { + "line": 384, + "column": 12 + }, + "end": { + "line": 386, + "column": 14 + } + } + } + ], + "range": [ + 11160, + 11296 + ], + "loc": { + "start": { + "line": 382, + "column": 35 + }, + "end": { + "line": 387, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 11133, + 11296 + ], + "loc": { + "start": { + "line": 382, + "column": 8 + }, + "end": { + "line": 387, + "column": 9 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "Number", + "range": [ + 11312, + 11318 + ], + "loc": { + "start": { + "line": 388, + "column": 15 + }, + "end": { + "line": 388, + "column": 21 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "values", + "range": [ + 11319, + 11325 + ], + "loc": { + "start": { + "line": 388, + "column": 22 + }, + "end": { + "line": 388, + "column": 28 + } + } + }, + "property": { + "type": "BinaryExpression", + "operator": "-", + "left": { + "type": "BinaryExpression", + "operator": "-", + "left": { + "type": "Identifier", + "name": "nbValues", + "range": [ + 11326, + 11334 + ], + "loc": { + "start": { + "line": 388, + "column": 29 + }, + "end": { + "line": 388, + "column": 37 + } + } + }, + "right": { + "type": "Identifier", + "name": "posa", + "range": [ + 11337, + 11341 + ], + "loc": { + "start": { + "line": 388, + "column": 40 + }, + "end": { + "line": 388, + "column": 44 + } + } + }, + "range": [ + 11326, + 11341 + ], + "loc": { + "start": { + "line": 388, + "column": 29 + }, + "end": { + "line": 388, + "column": 44 + } + } + }, + "right": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 11344, + 11345 + ], + "loc": { + "start": { + "line": 388, + "column": 47 + }, + "end": { + "line": 388, + "column": 48 + } + } + }, + "range": [ + 11326, + 11345 + ], + "loc": { + "start": { + "line": 388, + "column": 29 + }, + "end": { + "line": 388, + "column": 48 + } + } + }, + "range": [ + 11319, + 11346 + ], + "loc": { + "start": { + "line": 388, + "column": 22 + }, + "end": { + "line": 388, + "column": 49 + } + } + } + ], + "range": [ + 11312, + 11347 + ], + "loc": { + "start": { + "line": 388, + "column": 15 + }, + "end": { + "line": 388, + "column": 50 + } + } + }, + "range": [ + 11305, + 11348 + ], + "loc": { + "start": { + "line": 388, + "column": 8 + }, + "end": { + "line": 388, + "column": 51 + } + } + } + ], + "range": [ + 10996, + 11354 + ], + "loc": { + "start": { + "line": 377, + "column": 24 + }, + "end": { + "line": 389, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 10982, + 11354 + ], + "loc": { + "start": { + "line": 377, + "column": 10 + }, + "end": { + "line": 389, + "column": 5 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 10976, + 11354 + ], + "loc": { + "start": { + "line": 377, + "column": 4 + }, + "end": { + "line": 389, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Calculate the upper quartile of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n ", + "range": [ + 10832, + 10971 + ], + "loc": { + "start": { + "line": 372, + "column": 4 + }, + "end": { + "line": 376, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Sort passed values with supplied sorter function.\n * @param {Array} [values=[]] List of values to be sorted\n * @param {Function} sorter Sorter function\n * @returns {Array}\n ", + "range": [ + 11360, + 11562 + ], + "loc": { + "start": { + "line": 391, + "column": 4 + }, + "end": { + "line": 396, + "column": 7 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "sortColumnValues", + "range": [ + 11567, + 11583 + ], + "loc": { + "start": { + "line": 397, + "column": 4 + }, + "end": { + "line": 397, + "column": 20 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "values", + "range": [ + 11584, + 11590 + ], + "loc": { + "start": { + "line": 397, + "column": 21 + }, + "end": { + "line": 397, + "column": 27 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 11593, + 11595 + ], + "loc": { + "start": { + "line": 397, + "column": 30 + }, + "end": { + "line": 397, + "column": 32 + } + } + }, + "range": [ + 11584, + 11595 + ], + "loc": { + "start": { + "line": 397, + "column": 21 + }, + "end": { + "line": 397, + "column": 32 + } + } + }, + { + "type": "Identifier", + "name": "sorter", + "range": [ + 11597, + 11603 + ], + "loc": { + "start": { + "line": 397, + "column": 34 + }, + "end": { + "line": 397, + "column": 40 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "values", + "range": [ + 11622, + 11628 + ], + "loc": { + "start": { + "line": 398, + "column": 15 + }, + "end": { + "line": 398, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "sort", + "range": [ + 11629, + 11633 + ], + "loc": { + "start": { + "line": 398, + "column": 22 + }, + "end": { + "line": 398, + "column": 26 + } + } + }, + "range": [ + 11622, + 11633 + ], + "loc": { + "start": { + "line": 398, + "column": 15 + }, + "end": { + "line": 398, + "column": 26 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "sorter", + "range": [ + 11634, + 11640 + ], + "loc": { + "start": { + "line": 398, + "column": 27 + }, + "end": { + "line": 398, + "column": 33 + } + } + } + ], + "range": [ + 11622, + 11641 + ], + "loc": { + "start": { + "line": 398, + "column": 15 + }, + "end": { + "line": 398, + "column": 34 + } + } + }, + "range": [ + 11615, + 11642 + ], + "loc": { + "start": { + "line": 398, + "column": 8 + }, + "end": { + "line": 398, + "column": 35 + } + } + } + ], + "range": [ + 11605, + 11648 + ], + "loc": { + "start": { + "line": 397, + "column": 42 + }, + "end": { + "line": 399, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 11583, + 11648 + ], + "loc": { + "start": { + "line": 397, + "column": 20 + }, + "end": { + "line": 399, + "column": 5 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 11567, + 11648 + ], + "loc": { + "start": { + "line": 397, + "column": 4 + }, + "end": { + "line": 399, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Sort passed values with supplied sorter function.\n * @param {Array} [values=[]] List of values to be sorted\n * @param {Function} sorter Sorter function\n * @returns {Array}\n ", + "range": [ + 11360, + 11562 + ], + "loc": { + "start": { + "line": 391, + "column": 4 + }, + "end": { + "line": 396, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Write calculation result in passed DOM element with supplied write method\n * and decimal precision.\n * @param {Number} [result=0] Calculation result\n * @param {DOMElement} label DOM element\n * @param {String} [writeType='innerhtml'] Write method\n * @param {Number} [precision=2] Applied decimal precision\n * @private\n ", + "range": [ + 11654, + 12013 + ], + "loc": { + "start": { + "line": 401, + "column": 4 + }, + "end": { + "line": 409, + "column": 7 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "writeResult", + "range": [ + 12018, + 12029 + ], + "loc": { + "start": { + "line": 410, + "column": 4 + }, + "end": { + "line": 410, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "result", + "range": [ + 12030, + 12036 + ], + "loc": { + "start": { + "line": 410, + "column": 16 + }, + "end": { + "line": 410, + "column": 22 + } + } + }, + "right": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 12039, + 12040 + ], + "loc": { + "start": { + "line": 410, + "column": 25 + }, + "end": { + "line": 410, + "column": 26 + } + } + }, + "range": [ + 12030, + 12040 + ], + "loc": { + "start": { + "line": 410, + "column": 16 + }, + "end": { + "line": 410, + "column": 26 + } + } + }, + { + "type": "Identifier", + "name": "label", + "range": [ + 12042, + 12047 + ], + "loc": { + "start": { + "line": 410, + "column": 28 + }, + "end": { + "line": 410, + "column": 33 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "writeType", + "range": [ + 12049, + 12058 + ], + "loc": { + "start": { + "line": 410, + "column": 35 + }, + "end": { + "line": 410, + "column": 44 + } + } + }, + "right": { + "type": "Literal", + "value": "innerhtml", + "raw": "'innerhtml'", + "range": [ + 12061, + 12072 + ], + "loc": { + "start": { + "line": 410, + "column": 47 + }, + "end": { + "line": 410, + "column": 58 + } + } + }, + "range": [ + 12049, + 12072 + ], + "loc": { + "start": { + "line": 410, + "column": 35 + }, + "end": { + "line": 410, + "column": 58 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "precision", + "range": [ + 12074, + 12083 + ], + "loc": { + "start": { + "line": 410, + "column": 60 + }, + "end": { + "line": 410, + "column": 69 + } + } + }, + "right": { + "type": "Literal", + "value": 2, + "raw": "2", + "range": [ + 12086, + 12087 + ], + "loc": { + "start": { + "line": 410, + "column": 72 + }, + "end": { + "line": 410, + "column": 73 + } + } + }, + "range": [ + 12074, + 12087 + ], + "loc": { + "start": { + "line": 410, + "column": 60 + }, + "end": { + "line": 410, + "column": 73 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "labelElm", + "range": [ + 12103, + 12111 + ], + "loc": { + "start": { + "line": 411, + "column": 12 + }, + "end": { + "line": 411, + "column": 20 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "elm", + "range": [ + 12114, + 12117 + ], + "loc": { + "start": { + "line": 411, + "column": 23 + }, + "end": { + "line": 411, + "column": 26 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "label", + "range": [ + 12118, + 12123 + ], + "loc": { + "start": { + "line": 411, + "column": 27 + }, + "end": { + "line": 411, + "column": 32 + } + } + } + ], + "range": [ + 12114, + 12124 + ], + "loc": { + "start": { + "line": 411, + "column": 23 + }, + "end": { + "line": 411, + "column": 33 + } + } + }, + "range": [ + 12103, + 12124 + ], + "loc": { + "start": { + "line": 411, + "column": 12 + }, + "end": { + "line": 411, + "column": 33 + } + } + } + ], + "kind": "let", + "range": [ + 12099, + 12125 + ], + "loc": { + "start": { + "line": 411, + "column": 8 + }, + "end": { + "line": 411, + "column": 34 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "Identifier", + "name": "labelElm", + "range": [ + 12140, + 12148 + ], + "loc": { + "start": { + "line": 413, + "column": 13 + }, + "end": { + "line": 413, + "column": 21 + } + } + }, + "prefix": true, + "range": [ + 12139, + 12148 + ], + "loc": { + "start": { + "line": 413, + "column": 12 + }, + "end": { + "line": 413, + "column": 21 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": null, + "range": [ + 12164, + 12171 + ], + "loc": { + "start": { + "line": 414, + "column": 12 + }, + "end": { + "line": 414, + "column": 19 + } + } + } + ], + "range": [ + 12150, + 12181 + ], + "loc": { + "start": { + "line": 413, + "column": 23 + }, + "end": { + "line": 415, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 12135, + 12181 + ], + "loc": { + "start": { + "line": 413, + "column": 8 + }, + "end": { + "line": 415, + "column": 9 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "result", + "range": [ + 12191, + 12197 + ], + "loc": { + "start": { + "line": 417, + "column": 8 + }, + "end": { + "line": 417, + "column": 14 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "result", + "range": [ + 12200, + 12206 + ], + "loc": { + "start": { + "line": 417, + "column": 17 + }, + "end": { + "line": 417, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "toFixed", + "range": [ + 12207, + 12214 + ], + "loc": { + "start": { + "line": 417, + "column": 24 + }, + "end": { + "line": 417, + "column": 31 + } + } + }, + "range": [ + 12200, + 12214 + ], + "loc": { + "start": { + "line": 417, + "column": 17 + }, + "end": { + "line": 417, + "column": 31 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "precision", + "range": [ + 12215, + 12224 + ], + "loc": { + "start": { + "line": 417, + "column": 32 + }, + "end": { + "line": 417, + "column": 41 + } + } + } + ], + "range": [ + 12200, + 12225 + ], + "loc": { + "start": { + "line": 417, + "column": 17 + }, + "end": { + "line": 417, + "column": 42 + } + } + }, + "range": [ + 12191, + 12225 + ], + "loc": { + "start": { + "line": 417, + "column": 8 + }, + "end": { + "line": 417, + "column": 42 + } + } + }, + "range": [ + 12191, + 12226 + ], + "loc": { + "start": { + "line": 417, + "column": 8 + }, + "end": { + "line": 417, + "column": 43 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "isNaN", + "range": [ + 12239, + 12244 + ], + "loc": { + "start": { + "line": 418, + "column": 12 + }, + "end": { + "line": 418, + "column": 17 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "result", + "range": [ + 12245, + 12251 + ], + "loc": { + "start": { + "line": 418, + "column": 18 + }, + "end": { + "line": 418, + "column": 24 + } + } + } + ], + "range": [ + 12239, + 12252 + ], + "loc": { + "start": { + "line": 418, + "column": 12 + }, + "end": { + "line": 418, + "column": 25 + } + } + }, + "right": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "isFinite", + "range": [ + 12257, + 12265 + ], + "loc": { + "start": { + "line": 418, + "column": 30 + }, + "end": { + "line": 418, + "column": 38 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "result", + "range": [ + 12266, + 12272 + ], + "loc": { + "start": { + "line": 418, + "column": 39 + }, + "end": { + "line": 418, + "column": 45 + } + } + } + ], + "range": [ + 12257, + 12273 + ], + "loc": { + "start": { + "line": 418, + "column": 30 + }, + "end": { + "line": 418, + "column": 46 + } + } + }, + "prefix": true, + "range": [ + 12256, + 12273 + ], + "loc": { + "start": { + "line": 418, + "column": 29 + }, + "end": { + "line": 418, + "column": 46 + } + } + }, + "range": [ + 12239, + 12273 + ], + "loc": { + "start": { + "line": 418, + "column": 12 + }, + "end": { + "line": 418, + "column": 46 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "result", + "range": [ + 12289, + 12295 + ], + "loc": { + "start": { + "line": 419, + "column": 12 + }, + "end": { + "line": 419, + "column": 18 + } + } + }, + "right": { + "type": "Literal", + "value": "", + "raw": "''", + "range": [ + 12298, + 12300 + ], + "loc": { + "start": { + "line": 419, + "column": 21 + }, + "end": { + "line": 419, + "column": 23 + } + } + }, + "range": [ + 12289, + 12300 + ], + "loc": { + "start": { + "line": 419, + "column": 12 + }, + "end": { + "line": 419, + "column": 23 + } + } + }, + "range": [ + 12289, + 12301 + ], + "loc": { + "start": { + "line": 419, + "column": 12 + }, + "end": { + "line": 419, + "column": 24 + } + } + } + ], + "range": [ + 12275, + 12311 + ], + "loc": { + "start": { + "line": 418, + "column": 48 + }, + "end": { + "line": 420, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 12235, + 12311 + ], + "loc": { + "start": { + "line": 418, + "column": 8 + }, + "end": { + "line": 420, + "column": 9 + } + } + }, + { + "type": "SwitchStatement", + "discriminant": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "writeType", + "range": [ + 12329, + 12338 + ], + "loc": { + "start": { + "line": 422, + "column": 16 + }, + "end": { + "line": 422, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "toLowerCase", + "range": [ + 12339, + 12350 + ], + "loc": { + "start": { + "line": 422, + "column": 26 + }, + "end": { + "line": 422, + "column": 37 + } + } + }, + "range": [ + 12329, + 12350 + ], + "loc": { + "start": { + "line": 422, + "column": 16 + }, + "end": { + "line": 422, + "column": 37 + } + } + }, + "arguments": [], + "range": [ + 12329, + 12352 + ], + "loc": { + "start": { + "line": 422, + "column": 16 + }, + "end": { + "line": 422, + "column": 39 + } + } + }, + "cases": [ + { + "type": "SwitchCase", + "test": { + "type": "Literal", + "value": "innerhtml", + "raw": "'innerhtml'", + "range": [ + 12373, + 12384 + ], + "loc": { + "start": { + "line": 423, + "column": 17 + }, + "end": { + "line": 423, + "column": 28 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "labelElm", + "range": [ + 12402, + 12410 + ], + "loc": { + "start": { + "line": 424, + "column": 16 + }, + "end": { + "line": 424, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "innerHTML", + "range": [ + 12411, + 12420 + ], + "loc": { + "start": { + "line": 424, + "column": 25 + }, + "end": { + "line": 424, + "column": 34 + } + } + }, + "range": [ + 12402, + 12420 + ], + "loc": { + "start": { + "line": 424, + "column": 16 + }, + "end": { + "line": 424, + "column": 34 + } + } + }, + "right": { + "type": "Identifier", + "name": "result", + "range": [ + 12423, + 12429 + ], + "loc": { + "start": { + "line": 424, + "column": 37 + }, + "end": { + "line": 424, + "column": 43 + } + } + }, + "range": [ + 12402, + 12429 + ], + "loc": { + "start": { + "line": 424, + "column": 16 + }, + "end": { + "line": 424, + "column": 43 + } + } + }, + "range": [ + 12402, + 12430 + ], + "loc": { + "start": { + "line": 424, + "column": 16 + }, + "end": { + "line": 424, + "column": 44 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 12447, + 12453 + ], + "loc": { + "start": { + "line": 425, + "column": 16 + }, + "end": { + "line": 425, + "column": 22 + } + } + } + ], + "range": [ + 12368, + 12453 + ], + "loc": { + "start": { + "line": 423, + "column": 12 + }, + "end": { + "line": 425, + "column": 22 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "Literal", + "value": "setvalue", + "raw": "'setvalue'", + "range": [ + 12471, + 12481 + ], + "loc": { + "start": { + "line": 426, + "column": 17 + }, + "end": { + "line": 426, + "column": 27 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "labelElm", + "range": [ + 12499, + 12507 + ], + "loc": { + "start": { + "line": 427, + "column": 16 + }, + "end": { + "line": 427, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "value", + "range": [ + 12508, + 12513 + ], + "loc": { + "start": { + "line": 427, + "column": 25 + }, + "end": { + "line": 427, + "column": 30 + } + } + }, + "range": [ + 12499, + 12513 + ], + "loc": { + "start": { + "line": 427, + "column": 16 + }, + "end": { + "line": 427, + "column": 30 + } + } + }, + "right": { + "type": "Identifier", + "name": "result", + "range": [ + 12516, + 12522 + ], + "loc": { + "start": { + "line": 427, + "column": 33 + }, + "end": { + "line": 427, + "column": 39 + } + } + }, + "range": [ + 12499, + 12522 + ], + "loc": { + "start": { + "line": 427, + "column": 16 + }, + "end": { + "line": 427, + "column": 39 + } + } + }, + "range": [ + 12499, + 12523 + ], + "loc": { + "start": { + "line": 427, + "column": 16 + }, + "end": { + "line": 427, + "column": 40 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 12540, + 12546 + ], + "loc": { + "start": { + "line": 428, + "column": 16 + }, + "end": { + "line": 428, + "column": 22 + } + } + } + ], + "range": [ + 12466, + 12546 + ], + "loc": { + "start": { + "line": 426, + "column": 12 + }, + "end": { + "line": 428, + "column": 22 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "Literal", + "value": "createtextnode", + "raw": "'createtextnode'", + "range": [ + 12564, + 12580 + ], + "loc": { + "start": { + "line": 429, + "column": 17 + }, + "end": { + "line": 429, + "column": 33 + } + } + }, + "consequent": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "oldNode", + "range": [ + 12602, + 12609 + ], + "loc": { + "start": { + "line": 430, + "column": 20 + }, + "end": { + "line": 430, + "column": 27 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "labelElm", + "range": [ + 12612, + 12620 + ], + "loc": { + "start": { + "line": 430, + "column": 30 + }, + "end": { + "line": 430, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "name": "firstChild", + "range": [ + 12621, + 12631 + ], + "loc": { + "start": { + "line": 430, + "column": 39 + }, + "end": { + "line": 430, + "column": 49 + } + } + }, + "range": [ + 12612, + 12631 + ], + "loc": { + "start": { + "line": 430, + "column": 30 + }, + "end": { + "line": 430, + "column": 49 + } + } + }, + "range": [ + 12602, + 12631 + ], + "loc": { + "start": { + "line": 430, + "column": 20 + }, + "end": { + "line": 430, + "column": 49 + } + } + } + ], + "kind": "let", + "range": [ + 12598, + 12632 + ], + "loc": { + "start": { + "line": 430, + "column": 16 + }, + "end": { + "line": 430, + "column": 50 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "txtNode", + "range": [ + 12653, + 12660 + ], + "loc": { + "start": { + "line": 431, + "column": 20 + }, + "end": { + "line": 431, + "column": 27 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "createText", + "range": [ + 12663, + 12673 + ], + "loc": { + "start": { + "line": 431, + "column": 30 + }, + "end": { + "line": 431, + "column": 40 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "result", + "range": [ + 12674, + 12680 + ], + "loc": { + "start": { + "line": 431, + "column": 41 + }, + "end": { + "line": 431, + "column": 47 + } + } + } + ], + "range": [ + 12663, + 12681 + ], + "loc": { + "start": { + "line": 431, + "column": 30 + }, + "end": { + "line": 431, + "column": 48 + } + } + }, + "range": [ + 12653, + 12681 + ], + "loc": { + "start": { + "line": 431, + "column": 20 + }, + "end": { + "line": 431, + "column": 48 + } + } + } + ], + "kind": "let", + "range": [ + 12649, + 12682 + ], + "loc": { + "start": { + "line": 431, + "column": 16 + }, + "end": { + "line": 431, + "column": 49 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "labelElm", + "range": [ + 12699, + 12707 + ], + "loc": { + "start": { + "line": 432, + "column": 16 + }, + "end": { + "line": 432, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "replaceChild", + "range": [ + 12708, + 12720 + ], + "loc": { + "start": { + "line": 432, + "column": 25 + }, + "end": { + "line": 432, + "column": 37 + } + } + }, + "range": [ + 12699, + 12720 + ], + "loc": { + "start": { + "line": 432, + "column": 16 + }, + "end": { + "line": 432, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "txtNode", + "range": [ + 12721, + 12728 + ], + "loc": { + "start": { + "line": 432, + "column": 38 + }, + "end": { + "line": 432, + "column": 45 + } + } + }, + { + "type": "Identifier", + "name": "oldNode", + "range": [ + 12730, + 12737 + ], + "loc": { + "start": { + "line": 432, + "column": 47 + }, + "end": { + "line": 432, + "column": 54 + } + } + } + ], + "range": [ + 12699, + 12738 + ], + "loc": { + "start": { + "line": 432, + "column": 16 + }, + "end": { + "line": 432, + "column": 55 + } + } + }, + "range": [ + 12699, + 12739 + ], + "loc": { + "start": { + "line": 432, + "column": 16 + }, + "end": { + "line": 432, + "column": 56 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 12756, + 12762 + ], + "loc": { + "start": { + "line": 433, + "column": 16 + }, + "end": { + "line": 433, + "column": 22 + } + } + } + ], + "range": [ + 12559, + 12762 + ], + "loc": { + "start": { + "line": 429, + "column": 12 + }, + "end": { + "line": 433, + "column": 22 + } + } + } + ], + "range": [ + 12321, + 12772 + ], + "loc": { + "start": { + "line": 422, + "column": 8 + }, + "end": { + "line": 434, + "column": 9 + } + } + } + ], + "range": [ + 12089, + 12778 + ], + "loc": { + "start": { + "line": 410, + "column": 75 + }, + "end": { + "line": 435, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 12029, + 12778 + ], + "loc": { + "start": { + "line": 410, + "column": 15 + }, + "end": { + "line": 435, + "column": 5 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 12018, + 12778 + ], + "loc": { + "start": { + "line": 410, + "column": 4 + }, + "end": { + "line": 435, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Write calculation result in passed DOM element with supplied write method\n * and decimal precision.\n * @param {Number} [result=0] Calculation result\n * @param {DOMElement} label DOM element\n * @param {String} [writeType='innerhtml'] Write method\n * @param {Number} [precision=2] Applied decimal precision\n * @private\n ", + "range": [ + 11654, + 12013 + ], + "loc": { + "start": { + "line": 401, + "column": 4 + }, + "end": { + "line": 409, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "* Remove extension ", + "range": [ + 12784, + 12807 + ], + "loc": { + "start": { + "line": 437, + "column": 4 + }, + "end": { + "line": 437, + "column": 27 + } + } + } + ], + "static": false + }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "destroy", "range": [ - 13320, - 13327 + 12812, + 12819 ], "loc": { "start": { - "line": 356, + "line": 438, "column": 4 }, "end": { - "line": 356, + "line": 438, "column": 11 } } @@ -21968,16 +21873,16 @@ "object": { "type": "ThisExpression", "range": [ - 13345, - 13349 + 12837, + 12841 ], "loc": { "start": { - "line": 357, + "line": 439, "column": 13 }, "end": { - "line": 357, + "line": 439, "column": 17 } } @@ -21986,47 +21891,47 @@ "type": "Identifier", "name": "initialized", "range": [ - 13350, - 13361 + 12842, + 12853 ], "loc": { "start": { - "line": 357, + "line": 439, "column": 18 }, "end": { - "line": 357, + "line": 439, "column": 29 } } }, "range": [ - 13345, - 13361 + 12837, + 12853 ], "loc": { "start": { - "line": 357, + "line": 439, "column": 13 }, "end": { - "line": 357, + "line": 439, "column": 29 } } }, "prefix": true, "range": [ - 13344, - 13361 + 12836, + 12853 ], "loc": { "start": { - "line": 357, + "line": 439, "column": 12 }, "end": { - "line": 357, + "line": 439, "column": 29 } } @@ -22038,48 +21943,48 @@ "type": "ReturnStatement", "argument": null, "range": [ - 13377, - 13384 + 12869, + 12876 ], "loc": { "start": { - "line": 358, + "line": 440, "column": 12 }, "end": { - "line": 358, + "line": 440, "column": 19 } } } ], "range": [ - 13363, - 13394 + 12855, + 12886 ], "loc": { "start": { - "line": 357, + "line": 439, "column": 31 }, "end": { - "line": 359, + "line": 441, "column": 9 } } }, "alternate": null, "range": [ - 13340, - 13394 + 12832, + 12886 ], "loc": { "start": { - "line": 357, + "line": 439, "column": 8 }, "end": { - "line": 359, + "line": 441, "column": 9 } }, @@ -22088,16 +21993,16 @@ "type": "Line", "value": " unsubscribe to events", "range": [ - 13403, - 13427 + 12895, + 12919 ], "loc": { "start": { - "line": 360, + "line": 442, "column": 8 }, "end": { - "line": 360, + "line": 442, "column": 32 } } @@ -22117,16 +22022,16 @@ "object": { "type": "ThisExpression", "range": [ - 13436, - 13440 + 12928, + 12932 ], "loc": { "start": { - "line": 361, + "line": 443, "column": 8 }, "end": { - "line": 361, + "line": 443, "column": 12 } } @@ -22135,31 +22040,31 @@ "type": "Identifier", "name": "emitter", "range": [ - 13441, - 13448 + 12933, + 12940 ], "loc": { "start": { - "line": 361, + "line": 443, "column": 13 }, "end": { - "line": 361, + "line": 443, "column": 20 } } }, "range": [ - 13436, - 13448 + 12928, + 12940 ], "loc": { "start": { - "line": 361, + "line": 443, "column": 8 }, "end": { - "line": 361, + "line": 443, "column": 20 } } @@ -22168,31 +22073,31 @@ "type": "Identifier", "name": "off", "range": [ - 13449, - 13452 + 12941, + 12944 ], "loc": { "start": { - "line": 361, + "line": 443, "column": 21 }, "end": { - "line": 361, + "line": 443, "column": 24 } } }, "range": [ - 13436, - 13452 + 12928, + 12944 ], "loc": { "start": { - "line": 361, + "line": 443, "column": 8 }, "end": { - "line": 361, + "line": 443, "column": 24 } } @@ -22202,16 +22107,16 @@ "type": "Identifier", "name": "EVENTS", "range": [ - 13453, - 13459 + 12945, + 12951 ], "loc": { "start": { - "line": 361, + "line": 443, "column": 25 }, "end": { - "line": 361, + "line": 443, "column": 31 } } @@ -22228,114 +22133,114 @@ "object": { "type": "ThisExpression", "range": [ - 13467, - 13471 + 12959, + 12963 ], "loc": { "start": { - "line": 361, + "line": 443, "column": 39 }, "end": { - "line": 361, + "line": 443, "column": 43 } } }, "property": { "type": "Identifier", - "name": "calc", + "name": "calcAll", "range": [ - 13472, - 13476 + 12964, + 12971 ], "loc": { "start": { - "line": 361, + "line": 443, "column": 44 }, "end": { - "line": 361, - "column": 48 + "line": 443, + "column": 51 } } }, "range": [ - 13467, - 13476 + 12959, + 12971 ], "loc": { "start": { - "line": 361, + "line": 443, "column": 39 }, "end": { - "line": 361, - "column": 48 + "line": 443, + "column": 51 } } }, "arguments": [], "range": [ - 13467, - 13478 + 12959, + 12973 ], "loc": { "start": { - "line": 361, + "line": 443, "column": 39 }, "end": { - "line": 361, - "column": 50 + "line": 443, + "column": 53 } } }, "generator": false, "expression": true, "range": [ - 13461, - 13478 + 12953, + 12973 ], "loc": { "start": { - "line": 361, + "line": 443, "column": 33 }, "end": { - "line": 361, - "column": 50 + "line": 443, + "column": 53 } } } ], "range": [ - 13436, - 13479 + 12928, + 12974 ], "loc": { "start": { - "line": 361, + "line": 443, "column": 8 }, "end": { - "line": 361, - "column": 51 + "line": 443, + "column": 54 } } }, "range": [ - 13436, - 13480 + 12928, + 12975 ], "loc": { "start": { - "line": 361, + "line": 443, "column": 8 }, "end": { - "line": 361, - "column": 52 + "line": 443, + "column": 55 } }, "leadingComments": [ @@ -22343,16 +22248,16 @@ "type": "Line", "value": " unsubscribe to events", "range": [ - 13403, - 13427 + 12895, + 12919 ], "loc": { "start": { - "line": 360, + "line": 442, "column": 8 }, "end": { - "line": 360, + "line": 442, "column": 32 } } @@ -22370,16 +22275,16 @@ "object": { "type": "ThisExpression", "range": [ - 13490, - 13494 + 12985, + 12989 ], "loc": { "start": { - "line": 363, + "line": 445, "column": 8 }, "end": { - "line": 363, + "line": 445, "column": 12 } } @@ -22388,31 +22293,31 @@ "type": "Identifier", "name": "initialized", "range": [ - 13495, - 13506 + 12990, + 13001 ], "loc": { "start": { - "line": 363, + "line": 445, "column": 13 }, "end": { - "line": 363, + "line": 445, "column": 24 } } }, "range": [ - 13490, - 13506 + 12985, + 13001 ], "loc": { "start": { - "line": 363, + "line": 445, "column": 8 }, "end": { - "line": 363, + "line": 445, "column": 24 } } @@ -22422,62 +22327,62 @@ "value": false, "raw": "false", "range": [ - 13509, - 13514 + 13004, + 13009 ], "loc": { "start": { - "line": 363, + "line": 445, "column": 27 }, "end": { - "line": 363, + "line": 445, "column": 32 } } }, "range": [ - 13490, - 13514 + 12985, + 13009 ], "loc": { "start": { - "line": 363, + "line": 445, "column": 8 }, "end": { - "line": 363, + "line": 445, "column": 32 } } }, "range": [ - 13490, - 13515 + 12985, + 13010 ], "loc": { "start": { - "line": 363, + "line": 445, "column": 8 }, "end": { - "line": 363, + "line": 445, "column": 33 } } } ], "range": [ - 13330, - 13521 + 12822, + 13016 ], "loc": { "start": { - "line": 356, + "line": 438, "column": 14 }, "end": { - "line": 364, + "line": 446, "column": 5 } } @@ -22485,16 +22390,16 @@ "generator": false, "expression": false, "range": [ - 13327, - 13521 + 12819, + 13016 ], "loc": { "start": { - "line": 356, + "line": 438, "column": 11 }, "end": { - "line": 364, + "line": 446, "column": 5 } } @@ -22502,35 +22407,35 @@ "kind": "method", "computed": false, "range": [ - 13320, - 13521 + 12812, + 13016 ], "loc": { "start": { - "line": 356, + "line": 438, "column": 4 }, "end": { - "line": 364, + "line": 446, "column": 5 } }, "leadingComments": [ { "type": "Block", - "value": "*\n * Remove extension\n ", + "value": "* Remove extension ", "range": [ - 13280, - 13315 + 12784, + 12807 ], "loc": { "start": { - "line": 353, + "line": 437, "column": 4 }, "end": { - "line": 355, - "column": 7 + "line": 437, + "column": 27 } } } @@ -22539,31 +22444,31 @@ } ], "range": [ - 330, - 13524 + 516, + 13019 ], "loc": { "start": { - "line": 14, + "line": 23, "column": 44 }, "end": { - "line": 366, + "line": 448, "column": 1 } } }, "range": [ - 301, - 13524 + 487, + 13019 ], "loc": { "start": { - "line": 14, + "line": 23, "column": 15 }, "end": { - "line": 366, + "line": 448, "column": 1 } }, @@ -22572,16 +22477,16 @@ "type": "Block", "value": "*\n * Column calculations extension\n ", "range": [ - 245, - 285 + 431, + 471 ], "loc": { "start": { - "line": 11, + "line": 20, "column": 0 }, "end": { - "line": 13, + "line": 22, "column": 3 } } @@ -22590,16 +22495,16 @@ "trailingComments": [] }, "range": [ - 286, - 13524 + 472, + 13019 ], "loc": { "start": { - "line": 14, + "line": 23, "column": 0 }, "end": { - "line": 366, + "line": 448, "column": 1 } }, @@ -22608,16 +22513,16 @@ "type": "Block", "value": "*\n * Column calculations extension\n ", "range": [ - 245, - 285 + 431, + 471 ], "loc": { "start": { - "line": 11, + "line": 20, "column": 0 }, "end": { - "line": 13, + "line": 22, "column": 3 } } @@ -22628,7 +22533,7 @@ "sourceType": "module", "range": [ 0, - 13524 + 13019 ], "loc": { "start": { @@ -22636,7 +22541,7 @@ "column": 0 }, "end": { - "line": 366, + "line": 448, "column": 1 } }, @@ -22645,16 +22550,16 @@ "type": "Block", "value": "*\n * Column calculations extension\n ", "range": [ - 245, - 285 + 431, + 471 ], "loc": { "start": { - "line": 11, + "line": 20, "column": 0 }, "end": { - "line": 13, + "line": 22, "column": 3 } } @@ -22663,16 +22568,16 @@ "type": "Block", "value": "*\n * Creates an instance of ColOps\n *\n * @param {TableFilter} tf TableFilter instance\n * @param {Object} opts Configuration object\n ", "range": [ - 337, - 493 + 523, + 679 ], "loc": { "start": { - "line": 16, + "line": 25, "column": 4 }, "end": { - "line": 21, + "line": 30, "column": 7 } } @@ -22681,16 +22586,16 @@ "type": "Block", "value": "*\n * Callback fired before columns operations start\n * @type {Function}\n ", "range": [ - 561, - 662 + 747, + 848 ], "loc": { "start": { - "line": 25, + "line": 34, "column": 8 }, "end": { - "line": 28, + "line": 37, "column": 11 } } @@ -22699,16 +22604,16 @@ "type": "Block", "value": "*\n * Callback fired after columns operations are completed\n * @type {Function}\n ", "range": [ - 787, - 895 + 973, + 1081 ], "loc": { "start": { - "line": 32, + "line": 41, "column": 8 }, "end": { - "line": 35, + "line": 44, "column": 11 } } @@ -22717,16 +22622,142 @@ "type": "Block", "value": "*\n * Configuration options\n * @type {Object}\n ", "range": [ - 1017, - 1091 + 1203, + 1277 ], "loc": { "start": { - "line": 39, + "line": 48, "column": 8 }, "end": { - "line": 42, + "line": 51, + "column": 11 + } + } + }, + { + "type": "Block", + "value": "*\n * List of DOM element IDs containing column's calculation result\n * @type {Array}\n ", + "range": [ + 1313, + 1427 + ], + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 57, + "column": 11 + } + } + }, + { + "type": "Block", + "value": "*\n * List of columns' indexes for calculations\n * @type {Array}\n ", + "range": [ + 1476, + 1569 + ], + "loc": { + "start": { + "line": 60, + "column": 8 + }, + "end": { + "line": 63, + "column": 11 + } + } + }, + { + "type": "Block", + "value": "*\n * List of operations - possible values: 'sum', 'mean', 'min', 'max',\n * 'median', 'q1', 'q3'\n * @type {Array}\n ", + "range": [ + 1621, + 1771 + ], + "loc": { + "start": { + "line": 66, + "column": 8 + }, + "end": { + "line": 70, + "column": 11 + } + } + }, + { + "type": "Block", + "value": "*\n * List of write methods used to write the result - possible values:\n * 'innerHTML', 'setValue', 'createTextNode'\n * @type {Array}\n ", + "range": [ + 1829, + 1999 + ], + "loc": { + "start": { + "line": 73, + "column": 8 + }, + "end": { + "line": 77, + "column": 11 + } + } + }, + { + "type": "Block", + "value": "*\n * List of row indexes displaying the results\n * @type {Array}\n ", + "range": [ + 2061, + 2155 + ], + "loc": { + "start": { + "line": 80, + "column": 8 + }, + "end": { + "line": 83, + "column": 11 + } + } + }, + { + "type": "Block", + "value": "*\n * List of row indexes excluded from calculations\n * @type {Array}\n ", + "range": [ + 2220, + 2318 + ], + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 89, + "column": 11 + } + } + }, + { + "type": "Block", + "value": "*\n * List of decimal precision for calculation results\n * @type {Array}\n ", + "range": [ + 2379, + 2480 + ], + "loc": { + "start": { + "line": 92, + "column": 8 + }, + "end": { + "line": 95, "column": 11 } } @@ -22735,16 +22766,16 @@ "type": "Block", "value": "*\n * Initializes ColOps instance\n ", "range": [ - 1153, - 1199 + 2627, + 2673 ], "loc": { "start": { - "line": 48, + "line": 102, "column": 4 }, "end": { - "line": 50, + "line": 104, "column": 7 } } @@ -22753,35 +22784,35 @@ "type": "Line", "value": " subscribe to events", "range": [ - 1283, - 1305 + 2757, + 2779 ], "loc": { "start": { - "line": 55, + "line": 109, "column": 8 }, "end": { - "line": 55, + "line": 109, "column": 30 } } }, { "type": "Block", - "value": "*\n * @inherited\n ", + "value": "* @inherited ", "range": [ - 1389, - 1426 + 2869, + 2886 ], "loc": { "start": { - "line": 60, + "line": 114, "column": 8 }, "end": { - "line": 62, - "column": 11 + "line": 114, + "column": 25 } } }, @@ -22789,16 +22820,16 @@ "type": "Block", "value": "*\n * Calculates columns' values\n * Configuration options are stored in 'opts' property\n * - 'id' contains ids of elements showing result (array)\n * - 'col' contains the columns' indexes (array)\n * - 'operation' contains operation type (array, values: 'sum', 'mean',\n * 'min', 'max', 'median', 'q1', 'q3')\n * - 'write_method' array defines which method to use for displaying the\n * result (innerHTML, setValue, createTextNode) - default: 'innerHTML'\n * - 'tot_row_index' defines in which row results are displayed\n * (integers array)\n *\n * - changes made by Nuovella:\n * (1) optimized the routine (now it will only process each column once),\n * (2) added calculations for the median, lower and upper quartile.\n ", "range": [ - 1471, - 2252 + 2931, + 3712 ], "loc": { "start": { - "line": 66, + "line": 118, "column": 4 }, "end": { - "line": 81, + "line": 133, "column": 7 } } @@ -22807,89 +22838,53 @@ "type": "Line", "value": "nuovella: determine unique list of columns to operate on", "range": [ - 2850, - 2908 + 4270, + 4328 ], "loc": { "start": { - "line": 101, + "line": 151, "column": 8 }, "end": { - "line": 101, + "line": 151, "column": 66 } } }, - { - "type": "Line", - "value": "see if colIndex[ii] is already in the list of unique indexes", - "range": [ - 3099, - 3161 - ], - "loc": { - "start": { - "line": 108, - "column": 12 - }, - "end": { - "line": 108, - "column": 74 - } - } - }, - { - "type": "Line", - "value": "if not saved then, save the index;", - "range": [ - 3343, - 3379 - ], - "loc": { - "start": { - "line": 114, - "column": 12 - }, - "end": { - "line": 114, - "column": 48 - } - } - }, { "type": "Line", "value": "this retrieves col values", "range": [ - 3746, - 3773 + 4664, + 4691 ], "loc": { "start": { - "line": 127, - "column": 16 + "line": 164, + "column": 12 }, "end": { - "line": 127, - "column": 43 + "line": 164, + "column": 39 } } }, { "type": "Line", - "value": "use ucolIndex because we only want to pass through this loop", + "value": "use uIndexes because we only want to pass through this loop", "range": [ - 3790, - 3852 + 4704, + 4765 ], "loc": { "start": { - "line": 128, - "column": 16 + "line": 165, + "column": 12 }, "end": { - "line": 128, - "column": 78 + "line": 165, + "column": 73 } } }, @@ -22897,17 +22892,17 @@ "type": "Line", "value": "once for each column get the values in this unique column", "range": [ - 3869, - 3928 + 4778, + 4837 ], "loc": { "start": { - "line": 129, - "column": 16 + "line": 166, + "column": 12 }, "end": { - "line": 129, - "column": 75 + "line": 166, + "column": 71 } } }, @@ -22915,179 +22910,89 @@ "type": "Line", "value": "next: calculate all operations for this column", "range": [ - 4075, - 4123 + 5014, + 5062 ], "loc": { "start": { - "line": 134, + "line": 173, + "column": 12 + }, + "end": { + "line": 173, + "column": 60 + } + } + }, + { + "type": "Line", + "value": " emit values before column calculation", + "range": [ + 5741, + 5781 + ], + "loc": { + "start": { + "line": 193, "column": 16 }, "end": { - "line": 134, - "column": 64 + "line": 193, + "column": 56 } } }, { "type": "Line", - "value": "sort the list for calculation of median and quartiles", + "value": " emit column calculation result", "range": [ - 6525, - 6580 + 6155, + 6188 ], "loc": { "start": { - "line": 198, - "column": 20 + "line": 206, + "column": 16 }, "end": { - "line": 198, - "column": 75 + "line": 206, + "column": 49 } } }, { - "type": "Block", - "value": " eslint-disable ", + "type": "Line", + "value": " write result in expected DOM element", "range": [ - 6833, - 6853 + 6475, + 6514 ], "loc": { "start": { - "line": 202, - "column": 32 + "line": 217, + "column": 16 }, "end": { - "line": 202, - "column": 52 - } - } - }, - { - "type": "Block", - "value": " eslint-enable ", - "range": [ - 7017, - 7036 - ], - "loc": { - "start": { - "line": 205, - "column": 36 - }, - "end": { - "line": 205, + "line": 217, "column": 55 } } }, - { - "type": "Line", - "value": "for j", - "range": [ - 8529, - 8536 - ], - "loc": { - "start": { - "line": 238, - "column": 17 - }, - "end": { - "line": 238, - "column": 24 - } - } - }, - { - "type": "Line", - "value": "if outputType is defined", - "range": [ - 10945, - 10971 - ], - "loc": { - "start": { - "line": 301, - "column": 20 - }, - "end": { - "line": 301, - "column": 46 - } - } - }, - { - "type": "Line", - "value": "switch", - "range": [ - 12275, - 12283 - ], - "loc": { - "start": { - "line": 325, - "column": 29 - }, - "end": { - "line": 325, - "column": 37 - } - } - }, - { - "type": "Line", - "value": "catch", - "range": [ - 12789, - 12796 - ], - "loc": { - "start": { - "line": 336, - "column": 39 - }, - "end": { - "line": 336, - "column": 46 - } - } - }, - { - "type": "Line", - "value": "else", - "range": [ - 12818, - 12824 - ], - "loc": { - "start": { - "line": 337, - "column": 21 - }, - "end": { - "line": 337, - "column": 27 - } - } - }, { "type": "Line", "value": "for i", "range": [ - 12842, - 12849 + 6706, + 6713 ], "loc": { "start": { - "line": 338, - "column": 17 + "line": 225, + "column": 13 }, "end": { - "line": 338, - "column": 24 + "line": 225, + "column": 20 } } }, @@ -23095,88 +23000,268 @@ "type": "Line", "value": " row(s) with result are always visible", "range": [ - 12867, - 12907 + 6727, + 6767 ], "loc": { "start": { - "line": 340, - "column": 16 + "line": 227, + "column": 12 }, "end": { - "line": 340, - "column": 56 + "line": 227, + "column": 52 } } }, { "type": "Line", - "value": "for ucol", + "value": "for u", "range": [ - 13132, - 13142 + 6968, + 6975 ], "loc": { "start": { - "line": 346, - "column": 13 - }, - "end": { - "line": 346, - "column": 23 - } - } - }, - { - "type": "Line", - "value": "if typeof", - "range": [ - 13152, - 13163 - ], - "loc": { - "start": { - "line": 347, + "line": 233, "column": 9 }, "end": { - "line": 347, - "column": 20 + "line": 233, + "column": 16 } } }, { "type": "Block", - "value": "*\n * Remove extension\n ", + "value": "*\n * Make desired calculation on specified column.\n * @param {Number} colIndex Column index\n * @param {any} [operation=SUM] Operation type\n * @param {any} precision Decimal precision\n * @returns {Number}\n ", "range": [ - 13280, - 13315 + 7092, + 7325 ], "loc": { "start": { - "line": 353, + "line": 239, "column": 4 }, "end": { - "line": 355, + "line": 245, "column": 7 } } }, + { + "type": "Block", + "value": "*\n * Make calculation on passed values.\n * @param {Array} values List of values\n * @param {String} [operation=SUM] Optional operation type\n * @param {Number} precision Optional result precision\n * @returns {Number}\n * @private\n ", + "range": [ + 7602, + 7862 + ], + "loc": { + "start": { + "line": 254, + "column": 4 + }, + "end": { + "line": 261, + "column": 7 + } + } + }, + { + "type": "Block", + "value": "*\n * Calculate the sum of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n ", + "range": [ + 8887, + 9015 + ], + "loc": { + "start": { + "line": 296, + "column": 4 + }, + "end": { + "line": 300, + "column": 7 + } + } + }, + { + "type": "Block", + "value": "*\n * Calculate the mean of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n ", + "range": [ + 9201, + 9330 + ], + "loc": { + "start": { + "line": 309, + "column": 4 + }, + "end": { + "line": 313, + "column": 7 + } + } + }, + { + "type": "Block", + "value": "*\n * Calculate the max value of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n ", + "range": [ + 9460, + 9594 + ], + "loc": { + "start": { + "line": 319, + "column": 4 + }, + "end": { + "line": 323, + "column": 7 + } + } + }, + { + "type": "Block", + "value": "*\n * Calculate the min value of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n ", + "range": [ + 9678, + 9812 + ], + "loc": { + "start": { + "line": 328, + "column": 4 + }, + "end": { + "line": 332, + "column": 7 + } + } + }, + { + "type": "Block", + "value": "*\n * Calculate the median of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n ", + "range": [ + 9896, + 10027 + ], + "loc": { + "start": { + "line": 337, + "column": 4 + }, + "end": { + "line": 341, + "column": 7 + } + } + }, + { + "type": "Block", + "value": "*\n * Calculate the lower quartile of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n ", + "range": [ + 10372, + 10511 + ], + "loc": { + "start": { + "line": 355, + "column": 4 + }, + "end": { + "line": 359, + "column": 7 + } + } + }, + { + "type": "Block", + "value": "*\n * Calculate the upper quartile of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n ", + "range": [ + 10832, + 10971 + ], + "loc": { + "start": { + "line": 372, + "column": 4 + }, + "end": { + "line": 376, + "column": 7 + } + } + }, + { + "type": "Block", + "value": "*\n * Sort passed values with supplied sorter function.\n * @param {Array} [values=[]] List of values to be sorted\n * @param {Function} sorter Sorter function\n * @returns {Array}\n ", + "range": [ + 11360, + 11562 + ], + "loc": { + "start": { + "line": 391, + "column": 4 + }, + "end": { + "line": 396, + "column": 7 + } + } + }, + { + "type": "Block", + "value": "*\n * Write calculation result in passed DOM element with supplied write method\n * and decimal precision.\n * @param {Number} [result=0] Calculation result\n * @param {DOMElement} label DOM element\n * @param {String} [writeType='innerhtml'] Write method\n * @param {Number} [precision=2] Applied decimal precision\n * @private\n ", + "range": [ + 11654, + 12013 + ], + "loc": { + "start": { + "line": 401, + "column": 4 + }, + "end": { + "line": 409, + "column": 7 + } + } + }, + { + "type": "Block", + "value": "* Remove extension ", + "range": [ + 12784, + 12807 + ], + "loc": { + "start": { + "line": 437, + "column": 4 + }, + "end": { + "line": 437, + "column": 27 + } + } + }, { "type": "Line", "value": " unsubscribe to events", "range": [ - 13403, - 13427 + 12895, + 12919 ], "loc": { "start": { - "line": 360, + "line": 442, "column": 8 }, "end": { - "line": 360, + "line": 442, "column": 32 } } diff --git a/docs/ast/source/tablefilter.js.json b/docs/ast/source/tablefilter.js.json index 060571c7..339c7e0b 100644 --- a/docs/ast/source/tablefilter.js.json +++ b/docs/ast/source/tablefilter.js.json @@ -114418,50 +114418,14 @@ { "type": "IfStatement", "test": { - "type": "LogicalExpression", - "operator": "||", + "type": "BinaryExpression", + "operator": "!==", "left": { - "type": "BinaryExpression", - "operator": "!==", - "left": { - "type": "Identifier", - "name": "j", - "range": [ - 63043, - 63044 - ], - "loc": { - "start": { - "line": 2110, - "column": 24 - }, - "end": { - "line": 2110, - "column": 25 - } - } - }, - "right": { - "type": "Identifier", - "name": "colIndex", - "range": [ - 63049, - 63057 - ], - "loc": { - "start": { - "line": 2110, - "column": 30 - }, - "end": { - "line": 2110, - "column": 38 - } - } - }, + "type": "Identifier", + "name": "j", "range": [ 63043, - 63057 + 63044 ], "loc": { "start": { @@ -114470,176 +114434,31 @@ }, "end": { "line": 2110, - "column": 38 + "column": 25 } } }, "right": { - "type": "BinaryExpression", - "operator": "!==", - "left": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "row", - "range": [ - 63061, - 63064 - ], - "loc": { - "start": { - "line": 2110, - "column": 42 - }, - "end": { - "line": 2110, - "column": 45 - } - } - }, - "property": { - "type": "Identifier", - "name": "i", - "range": [ - 63065, - 63066 - ], - "loc": { - "start": { - "line": 2110, - "column": 46 - }, - "end": { - "line": 2110, - "column": 47 - } - } - }, - "range": [ - 63061, - 63067 - ], - "loc": { - "start": { - "line": 2110, - "column": 42 - }, - "end": { - "line": 2110, - "column": 48 - } - } - }, - "property": { - "type": "Identifier", - "name": "style", - "range": [ - 63068, - 63073 - ], - "loc": { - "start": { - "line": 2110, - "column": 49 - }, - "end": { - "line": 2110, - "column": 54 - } - } - }, - "range": [ - 63061, - 63073 - ], - "loc": { - "start": { - "line": 2110, - "column": 42 - }, - "end": { - "line": 2110, - "column": 54 - } - } - }, - "property": { - "type": "Identifier", - "name": "display", - "range": [ - 63074, - 63081 - ], - "loc": { - "start": { - "line": 2110, - "column": 55 - }, - "end": { - "line": 2110, - "column": 62 - } - } - }, - "range": [ - 63061, - 63081 - ], - "loc": { - "start": { - "line": 2110, - "column": 42 - }, - "end": { - "line": 2110, - "column": 62 - } - } - }, - "right": { - "type": "Literal", - "value": "", - "raw": "''", - "range": [ - 63086, - 63088 - ], - "loc": { - "start": { - "line": 2110, - "column": 67 - }, - "end": { - "line": 2110, - "column": 69 - } - } - }, + "type": "Identifier", + "name": "colIndex", "range": [ - 63061, - 63088 + 63049, + 63057 ], "loc": { "start": { "line": 2110, - "column": 42 + "column": 30 }, "end": { "line": 2110, - "column": 69 + "column": 38 } } }, "range": [ 63043, - 63088 + 63057 ], "loc": { "start": { @@ -114648,7 +114467,7 @@ }, "end": { "line": 2110, - "column": 69 + "column": 38 } } }, @@ -114659,8 +114478,8 @@ "type": "ContinueStatement", "label": null, "range": [ - 63116, - 63125 + 63085, + 63094 ], "loc": { "start": { @@ -114675,13 +114494,13 @@ } ], "range": [ - 63090, - 63147 + 63059, + 63116 ], "loc": { "start": { "line": 2110, - "column": 71 + "column": 40 }, "end": { "line": 2112, @@ -114692,7 +114511,7 @@ "alternate": null, "range": [ 63039, - 63147 + 63116 ], "loc": { "start": { @@ -114714,8 +114533,8 @@ "type": "Identifier", "name": "cellData", "range": [ - 63172, - 63180 + 63141, + 63149 ], "loc": { "start": { @@ -114736,8 +114555,8 @@ "object": { "type": "ThisExpression", "range": [ - 63183, - 63187 + 63152, + 63156 ], "loc": { "start": { @@ -114754,8 +114573,8 @@ "type": "Identifier", "name": "getCellData", "range": [ - 63188, - 63199 + 63157, + 63168 ], "loc": { "start": { @@ -114769,8 +114588,8 @@ } }, "range": [ - 63183, - 63199 + 63152, + 63168 ], "loc": { "start": { @@ -114791,8 +114610,8 @@ "type": "Identifier", "name": "cell", "range": [ - 63200, - 63204 + 63169, + 63173 ], "loc": { "start": { @@ -114809,8 +114628,8 @@ "type": "Identifier", "name": "j", "range": [ - 63205, - 63206 + 63174, + 63175 ], "loc": { "start": { @@ -114824,8 +114643,8 @@ } }, "range": [ - 63200, - 63207 + 63169, + 63176 ], "loc": { "start": { @@ -114840,8 +114659,8 @@ } ], "range": [ - 63183, - 63208 + 63152, + 63177 ], "loc": { "start": { @@ -114855,8 +114674,8 @@ } }, "range": [ - 63172, - 63208 + 63141, + 63177 ], "loc": { "start": { @@ -114872,8 +114691,8 @@ ], "kind": "let", "range": [ - 63168, - 63209 + 63137, + 63178 ], "loc": { "start": { @@ -114895,8 +114714,8 @@ "type": "Identifier", "name": "decimal", "range": [ - 63234, - 63241 + 63203, + 63210 ], "loc": { "start": { @@ -114915,8 +114734,8 @@ "object": { "type": "ThisExpression", "range": [ - 63244, - 63248 + 63213, + 63217 ], "loc": { "start": { @@ -114933,8 +114752,8 @@ "type": "Identifier", "name": "decimalSeparator", "range": [ - 63249, - 63265 + 63218, + 63234 ], "loc": { "start": { @@ -114948,8 +114767,8 @@ } }, "range": [ - 63244, - 63265 + 63213, + 63234 ], "loc": { "start": { @@ -114963,8 +114782,8 @@ } }, "range": [ - 63234, - 63265 + 63203, + 63234 ], "loc": { "start": { @@ -114980,8 +114799,8 @@ ], "kind": "let", "range": [ - 63230, - 63266 + 63199, + 63235 ], "loc": { "start": { @@ -115004,8 +114823,8 @@ "object": { "type": "ThisExpression", "range": [ - 63291, - 63295 + 63260, + 63264 ], "loc": { "start": { @@ -115022,8 +114841,8 @@ "type": "Identifier", "name": "hasType", "range": [ - 63296, - 63303 + 63265, + 63272 ], "loc": { "start": { @@ -115037,8 +114856,8 @@ } }, "range": [ - 63291, - 63303 + 63260, + 63272 ], "loc": { "start": { @@ -115056,8 +114875,8 @@ "type": "Identifier", "name": "colIndex", "range": [ - 63304, - 63312 + 63273, + 63281 ], "loc": { "start": { @@ -115077,8 +114896,8 @@ "type": "Identifier", "name": "FORMATTED_NUMBER", "range": [ - 63315, - 63331 + 63284, + 63300 ], "loc": { "start": { @@ -115093,8 +114912,8 @@ } ], "range": [ - 63314, - 63332 + 63283, + 63301 ], "loc": { "start": { @@ -115109,8 +114928,8 @@ } ], "range": [ - 63291, - 63333 + 63260, + 63302 ], "loc": { "start": { @@ -115135,8 +114954,8 @@ "type": "Identifier", "name": "colType", "range": [ - 63365, - 63372 + 63334, + 63341 ], "loc": { "start": { @@ -115158,8 +114977,8 @@ "object": { "type": "ThisExpression", "range": [ - 63375, - 63379 + 63344, + 63348 ], "loc": { "start": { @@ -115176,8 +114995,8 @@ "type": "Identifier", "name": "colTypes", "range": [ - 63380, - 63388 + 63349, + 63357 ], "loc": { "start": { @@ -115191,8 +115010,8 @@ } }, "range": [ - 63375, - 63388 + 63344, + 63357 ], "loc": { "start": { @@ -115209,8 +115028,8 @@ "type": "Identifier", "name": "colIndex", "range": [ - 63389, - 63397 + 63358, + 63366 ], "loc": { "start": { @@ -115224,8 +115043,8 @@ } }, "range": [ - 63375, - 63398 + 63344, + 63367 ], "loc": { "start": { @@ -115239,8 +115058,8 @@ } }, "range": [ - 63365, - 63398 + 63334, + 63367 ], "loc": { "start": { @@ -115256,8 +115075,8 @@ ], "kind": "let", "range": [ - 63361, - 63399 + 63330, + 63368 ], "loc": { "start": { @@ -115281,8 +115100,8 @@ "type": "Identifier", "name": "colType", "range": [ - 63428, - 63435 + 63397, + 63404 ], "loc": { "start": { @@ -115299,8 +115118,8 @@ "type": "Identifier", "name": "hasOwnProperty", "range": [ - 63436, - 63450 + 63405, + 63419 ], "loc": { "start": { @@ -115314,8 +115133,8 @@ } }, "range": [ - 63428, - 63450 + 63397, + 63419 ], "loc": { "start": { @@ -115334,8 +115153,8 @@ "value": "decimal", "raw": "'decimal'", "range": [ - 63451, - 63460 + 63420, + 63429 ], "loc": { "start": { @@ -115350,8 +115169,8 @@ } ], "range": [ - 63428, - 63461 + 63397, + 63430 ], "loc": { "start": { @@ -115376,8 +115195,8 @@ "type": "Identifier", "name": "decimal", "range": [ - 63493, - 63500 + 63462, + 63469 ], "loc": { "start": { @@ -115397,8 +115216,8 @@ "type": "Identifier", "name": "colType", "range": [ - 63503, - 63510 + 63472, + 63479 ], "loc": { "start": { @@ -115415,8 +115234,8 @@ "type": "Identifier", "name": "decimal", "range": [ - 63511, - 63518 + 63480, + 63487 ], "loc": { "start": { @@ -115430,8 +115249,8 @@ } }, "range": [ - 63503, - 63518 + 63472, + 63487 ], "loc": { "start": { @@ -115445,8 +115264,8 @@ } }, "range": [ - 63493, - 63518 + 63462, + 63487 ], "loc": { "start": { @@ -115460,8 +115279,8 @@ } }, "range": [ - 63493, - 63519 + 63462, + 63488 ], "loc": { "start": { @@ -115476,8 +115295,8 @@ } ], "range": [ - 63463, - 63545 + 63432, + 63514 ], "loc": { "start": { @@ -115492,8 +115311,8 @@ }, "alternate": null, "range": [ - 63424, - 63545 + 63393, + 63514 ], "loc": { "start": { @@ -115508,8 +115327,8 @@ } ], "range": [ - 63335, - 63567 + 63304, + 63536 ], "loc": { "start": { @@ -115524,8 +115343,8 @@ }, "alternate": null, "range": [ - 63287, - 63567 + 63256, + 63536 ], "loc": { "start": { @@ -115547,8 +115366,8 @@ "type": "Identifier", "name": "data", "range": [ - 63592, - 63596 + 63561, + 63565 ], "loc": { "start": { @@ -115567,8 +115386,8 @@ "type": "Identifier", "name": "num", "range": [ - 63599, - 63602 + 63568, + 63571 ], "loc": { "start": { @@ -115590,8 +115409,8 @@ "type": "Identifier", "name": "Number", "range": [ - 63629, - 63635 + 63598, + 63604 ], "loc": { "start": { @@ -115609,8 +115428,8 @@ "type": "Identifier", "name": "cellData", "range": [ - 63636, - 63644 + 63605, + 63613 ], "loc": { "start": { @@ -115625,8 +115444,8 @@ } ], "range": [ - 63629, - 63645 + 63598, + 63614 ], "loc": { "start": { @@ -115645,8 +115464,8 @@ "type": "Identifier", "name": "parseNb", "range": [ - 63649, - 63656 + 63618, + 63625 ], "loc": { "start": { @@ -115664,8 +115483,8 @@ "type": "Identifier", "name": "cellData", "range": [ - 63657, - 63665 + 63626, + 63634 ], "loc": { "start": { @@ -115682,8 +115501,8 @@ "type": "Identifier", "name": "decimal", "range": [ - 63667, - 63674 + 63636, + 63643 ], "loc": { "start": { @@ -115698,8 +115517,8 @@ } ], "range": [ - 63649, - 63675 + 63618, + 63644 ], "loc": { "start": { @@ -115713,8 +115532,8 @@ } }, "range": [ - 63629, - 63675 + 63598, + 63644 ], "loc": { "start": { @@ -115731,8 +115550,8 @@ "type": "Identifier", "name": "cellData", "range": [ - 63702, - 63710 + 63671, + 63679 ], "loc": { "start": { @@ -115746,8 +115565,8 @@ } }, "range": [ - 63599, - 63710 + 63568, + 63679 ], "loc": { "start": { @@ -115761,8 +115580,8 @@ } }, "range": [ - 63592, - 63710 + 63561, + 63679 ], "loc": { "start": { @@ -115778,8 +115597,8 @@ ], "kind": "let", "range": [ - 63588, - 63711 + 63557, + 63680 ], "loc": { "start": { @@ -115803,8 +115622,8 @@ "type": "Identifier", "name": "colValues", "range": [ - 63732, - 63741 + 63701, + 63710 ], "loc": { "start": { @@ -115821,8 +115640,8 @@ "type": "Identifier", "name": "push", "range": [ - 63742, - 63746 + 63711, + 63715 ], "loc": { "start": { @@ -115836,8 +115655,8 @@ } }, "range": [ - 63732, - 63746 + 63701, + 63715 ], "loc": { "start": { @@ -115855,8 +115674,8 @@ "type": "Identifier", "name": "data", "range": [ - 63747, - 63751 + 63716, + 63720 ], "loc": { "start": { @@ -115871,8 +115690,8 @@ } ], "range": [ - 63732, - 63752 + 63701, + 63721 ], "loc": { "start": { @@ -115886,8 +115705,8 @@ } }, "range": [ - 63732, - 63753 + 63701, + 63722 ], "loc": { "start": { @@ -115903,7 +115722,7 @@ ], "range": [ 63017, - 63771 + 63740 ], "loc": { "start": { @@ -115918,7 +115737,7 @@ }, "range": [ 62983, - 63771 + 63740 ], "loc": { "start": { @@ -115954,7 +115773,7 @@ ], "range": [ 62916, - 63785 + 63754 ], "loc": { "start": { @@ -115970,7 +115789,7 @@ "alternate": null, "range": [ 62869, - 63785 + 63754 ], "loc": { "start": { @@ -116006,7 +115825,7 @@ ], "range": [ 62496, - 63795 + 63764 ], "loc": { "start": { @@ -116021,7 +115840,7 @@ }, "range": [ 62453, - 63795 + 63764 ], "loc": { "start": { @@ -116040,8 +115859,8 @@ "type": "Identifier", "name": "colValues", "range": [ - 63811, - 63820 + 63780, + 63789 ], "loc": { "start": { @@ -116055,8 +115874,8 @@ } }, "range": [ - 63804, - 63821 + 63773, + 63790 ], "loc": { "start": { @@ -116072,7 +115891,7 @@ ], "range": [ 62177, - 63827 + 63796 ], "loc": { "start": { @@ -116089,7 +115908,7 @@ "expression": false, "range": [ 62115, - 63827 + 63796 ], "loc": { "start": { @@ -116106,7 +115925,7 @@ "computed": false, "range": [ 62103, - 63827 + 63796 ], "loc": { "start": { @@ -116143,8 +115962,8 @@ "type": "Block", "value": "*\n * Return the filter's value of a specified column\n * @param {Number} index Column index\n * @return {String} Filter value\n ", "range": [ - 63833, - 63985 + 63802, + 63954 ], "loc": { "start": { @@ -116166,8 +115985,8 @@ "type": "Identifier", "name": "getFilterValue", "range": [ - 63990, - 64004 + 63959, + 63973 ], "loc": { "start": { @@ -116188,8 +116007,8 @@ "type": "Identifier", "name": "index", "range": [ - 64005, - 64010 + 63974, + 63979 ], "loc": { "start": { @@ -116217,8 +116036,8 @@ "object": { "type": "ThisExpression", "range": [ - 64027, - 64031 + 63996, + 64000 ], "loc": { "start": { @@ -116235,8 +116054,8 @@ "type": "Identifier", "name": "fltGrid", "range": [ - 64032, - 64039 + 64001, + 64008 ], "loc": { "start": { @@ -116250,8 +116069,8 @@ } }, "range": [ - 64027, - 64039 + 63996, + 64008 ], "loc": { "start": { @@ -116266,8 +116085,8 @@ }, "prefix": true, "range": [ - 64026, - 64039 + 63995, + 64008 ], "loc": { "start": { @@ -116287,8 +116106,8 @@ "type": "ReturnStatement", "argument": null, "range": [ - 64055, - 64062 + 64024, + 64031 ], "loc": { "start": { @@ -116303,8 +116122,8 @@ } ], "range": [ - 64041, - 64072 + 64010, + 64041 ], "loc": { "start": { @@ -116319,8 +116138,8 @@ }, "alternate": null, "range": [ - 64022, - 64072 + 63991, + 64041 ], "loc": { "start": { @@ -116342,8 +116161,8 @@ "type": "Identifier", "name": "fltValue", "range": [ - 64085, - 64093 + 64054, + 64062 ], "loc": { "start": { @@ -116361,8 +116180,8 @@ "value": "", "raw": "''", "range": [ - 64096, - 64098 + 64065, + 64067 ], "loc": { "start": { @@ -116376,8 +116195,8 @@ } }, "range": [ - 64085, - 64098 + 64054, + 64067 ], "loc": { "start": { @@ -116393,8 +116212,8 @@ ], "kind": "let", "range": [ - 64081, - 64099 + 64050, + 64068 ], "loc": { "start": { @@ -116416,8 +116235,8 @@ "type": "Identifier", "name": "flt", "range": [ - 64112, - 64115 + 64081, + 64084 ], "loc": { "start": { @@ -116438,8 +116257,8 @@ "object": { "type": "ThisExpression", "range": [ - 64118, - 64122 + 64087, + 64091 ], "loc": { "start": { @@ -116456,8 +116275,8 @@ "type": "Identifier", "name": "getFilterElement", "range": [ - 64123, - 64139 + 64092, + 64108 ], "loc": { "start": { @@ -116471,8 +116290,8 @@ } }, "range": [ - 64118, - 64139 + 64087, + 64108 ], "loc": { "start": { @@ -116490,8 +116309,8 @@ "type": "Identifier", "name": "index", "range": [ - 64140, - 64145 + 64109, + 64114 ], "loc": { "start": { @@ -116506,8 +116325,8 @@ } ], "range": [ - 64118, - 64146 + 64087, + 64115 ], "loc": { "start": { @@ -116521,8 +116340,8 @@ } }, "range": [ - 64112, - 64146 + 64081, + 64115 ], "loc": { "start": { @@ -116538,8 +116357,8 @@ ], "kind": "let", "range": [ - 64108, - 64147 + 64077, + 64116 ], "loc": { "start": { @@ -116561,8 +116380,8 @@ "type": "Identifier", "name": "flt", "range": [ - 64161, - 64164 + 64130, + 64133 ], "loc": { "start": { @@ -116577,8 +116396,8 @@ }, "prefix": true, "range": [ - 64160, - 64164 + 64129, + 64133 ], "loc": { "start": { @@ -116600,8 +116419,8 @@ "type": "Identifier", "name": "fltValue", "range": [ - 64187, - 64195 + 64156, + 64164 ], "loc": { "start": { @@ -116615,8 +116434,8 @@ } }, "range": [ - 64180, - 64196 + 64149, + 64165 ], "loc": { "start": { @@ -116631,8 +116450,8 @@ } ], "range": [ - 64166, - 64206 + 64135, + 64175 ], "loc": { "start": { @@ -116647,8 +116466,8 @@ }, "alternate": null, "range": [ - 64156, - 64206 + 64125, + 64175 ], "loc": { "start": { @@ -116670,8 +116489,8 @@ "type": "Identifier", "name": "fltColType", "range": [ - 64220, - 64230 + 64189, + 64199 ], "loc": { "start": { @@ -116692,8 +116511,8 @@ "object": { "type": "ThisExpression", "range": [ - 64233, - 64237 + 64202, + 64206 ], "loc": { "start": { @@ -116710,8 +116529,8 @@ "type": "Identifier", "name": "getFilterType", "range": [ - 64238, - 64251 + 64207, + 64220 ], "loc": { "start": { @@ -116725,8 +116544,8 @@ } }, "range": [ - 64233, - 64251 + 64202, + 64220 ], "loc": { "start": { @@ -116744,8 +116563,8 @@ "type": "Identifier", "name": "index", "range": [ - 64252, - 64257 + 64221, + 64226 ], "loc": { "start": { @@ -116760,8 +116579,8 @@ } ], "range": [ - 64233, - 64258 + 64202, + 64227 ], "loc": { "start": { @@ -116775,8 +116594,8 @@ } }, "range": [ - 64220, - 64258 + 64189, + 64227 ], "loc": { "start": { @@ -116792,8 +116611,8 @@ ], "kind": "let", "range": [ - 64216, - 64259 + 64185, + 64228 ], "loc": { "start": { @@ -116818,8 +116637,8 @@ "type": "Identifier", "name": "fltColType", "range": [ - 64272, - 64282 + 64241, + 64251 ], "loc": { "start": { @@ -116836,8 +116655,8 @@ "type": "Identifier", "name": "MULTIPLE", "range": [ - 64287, - 64295 + 64256, + 64264 ], "loc": { "start": { @@ -116851,8 +116670,8 @@ } }, "range": [ - 64272, - 64295 + 64241, + 64264 ], "loc": { "start": { @@ -116872,8 +116691,8 @@ "type": "Identifier", "name": "fltColType", "range": [ - 64299, - 64309 + 64268, + 64278 ], "loc": { "start": { @@ -116890,8 +116709,8 @@ "type": "Identifier", "name": "CHECKLIST", "range": [ - 64314, - 64323 + 64283, + 64292 ], "loc": { "start": { @@ -116905,8 +116724,8 @@ } }, "range": [ - 64299, - 64323 + 64268, + 64292 ], "loc": { "start": { @@ -116920,8 +116739,8 @@ } }, "range": [ - 64272, - 64323 + 64241, + 64292 ], "loc": { "start": { @@ -116946,8 +116765,8 @@ "type": "Identifier", "name": "fltValue", "range": [ - 64339, - 64347 + 64308, + 64316 ], "loc": { "start": { @@ -116967,8 +116786,8 @@ "type": "Identifier", "name": "flt", "range": [ - 64350, - 64353 + 64319, + 64322 ], "loc": { "start": { @@ -116985,8 +116804,8 @@ "type": "Identifier", "name": "value", "range": [ - 64354, - 64359 + 64323, + 64328 ], "loc": { "start": { @@ -117000,8 +116819,8 @@ } }, "range": [ - 64350, - 64359 + 64319, + 64328 ], "loc": { "start": { @@ -117015,8 +116834,8 @@ } }, "range": [ - 64339, - 64359 + 64308, + 64328 ], "loc": { "start": { @@ -117030,8 +116849,8 @@ } }, "range": [ - 64339, - 64360 + 64308, + 64329 ], "loc": { "start": { @@ -117046,8 +116865,8 @@ } ], "range": [ - 64325, - 64370 + 64294, + 64339 ], "loc": { "start": { @@ -117064,8 +116883,8 @@ "type": "Line", "value": "mutiple select", "range": [ - 64379, - 64395 + 64348, + 64364 ], "loc": { "start": { @@ -117089,8 +116908,8 @@ "type": "Identifier", "name": "fltColType", "range": [ - 64413, - 64423 + 64382, + 64392 ], "loc": { "start": { @@ -117107,8 +116926,8 @@ "type": "Identifier", "name": "MULTIPLE", "range": [ - 64428, - 64436 + 64397, + 64405 ], "loc": { "start": { @@ -117122,8 +116941,8 @@ } }, "range": [ - 64413, - 64436 + 64382, + 64405 ], "loc": { "start": { @@ -117148,8 +116967,8 @@ "type": "Identifier", "name": "fltValue", "range": [ - 64452, - 64460 + 64421, + 64429 ], "loc": { "start": { @@ -117175,8 +116994,8 @@ "object": { "type": "ThisExpression", "range": [ - 64463, - 64467 + 64432, + 64436 ], "loc": { "start": { @@ -117193,8 +117012,8 @@ "type": "Identifier", "name": "feature", "range": [ - 64468, - 64475 + 64437, + 64444 ], "loc": { "start": { @@ -117208,8 +117027,8 @@ } }, "range": [ - 64463, - 64475 + 64432, + 64444 ], "loc": { "start": { @@ -117228,8 +117047,8 @@ "value": "dropdown", "raw": "'dropdown'", "range": [ - 64476, - 64486 + 64445, + 64455 ], "loc": { "start": { @@ -117244,8 +117063,8 @@ } ], "range": [ - 64463, - 64487 + 64432, + 64456 ], "loc": { "start": { @@ -117262,8 +117081,8 @@ "type": "Identifier", "name": "getValues", "range": [ - 64488, - 64497 + 64457, + 64466 ], "loc": { "start": { @@ -117277,8 +117096,8 @@ } }, "range": [ - 64463, - 64497 + 64432, + 64466 ], "loc": { "start": { @@ -117296,8 +117115,8 @@ "type": "Identifier", "name": "index", "range": [ - 64498, - 64503 + 64467, + 64472 ], "loc": { "start": { @@ -117312,8 +117131,8 @@ } ], "range": [ - 64463, - 64504 + 64432, + 64473 ], "loc": { "start": { @@ -117327,8 +117146,8 @@ } }, "range": [ - 64452, - 64504 + 64421, + 64473 ], "loc": { "start": { @@ -117342,8 +117161,8 @@ } }, "range": [ - 64452, - 64505 + 64421, + 64474 ], "loc": { "start": { @@ -117358,8 +117177,8 @@ } ], "range": [ - 64438, - 64515 + 64407, + 64484 ], "loc": { "start": { @@ -117376,8 +117195,8 @@ "type": "Line", "value": "checklist", "range": [ - 64524, - 64535 + 64493, + 64504 ], "loc": { "start": { @@ -117401,8 +117220,8 @@ "type": "Identifier", "name": "fltColType", "range": [ - 64553, - 64563 + 64522, + 64532 ], "loc": { "start": { @@ -117419,8 +117238,8 @@ "type": "Identifier", "name": "CHECKLIST", "range": [ - 64568, - 64577 + 64537, + 64546 ], "loc": { "start": { @@ -117434,8 +117253,8 @@ } }, "range": [ - 64553, - 64577 + 64522, + 64546 ], "loc": { "start": { @@ -117460,8 +117279,8 @@ "type": "Identifier", "name": "fltValue", "range": [ - 64593, - 64601 + 64562, + 64570 ], "loc": { "start": { @@ -117487,8 +117306,8 @@ "object": { "type": "ThisExpression", "range": [ - 64604, - 64608 + 64573, + 64577 ], "loc": { "start": { @@ -117505,8 +117324,8 @@ "type": "Identifier", "name": "feature", "range": [ - 64609, - 64616 + 64578, + 64585 ], "loc": { "start": { @@ -117520,8 +117339,8 @@ } }, "range": [ - 64604, - 64616 + 64573, + 64585 ], "loc": { "start": { @@ -117540,8 +117359,8 @@ "value": "checkList", "raw": "'checkList'", "range": [ - 64617, - 64628 + 64586, + 64597 ], "loc": { "start": { @@ -117556,8 +117375,8 @@ } ], "range": [ - 64604, - 64629 + 64573, + 64598 ], "loc": { "start": { @@ -117574,8 +117393,8 @@ "type": "Identifier", "name": "getValues", "range": [ - 64630, - 64639 + 64599, + 64608 ], "loc": { "start": { @@ -117589,8 +117408,8 @@ } }, "range": [ - 64604, - 64639 + 64573, + 64608 ], "loc": { "start": { @@ -117608,8 +117427,8 @@ "type": "Identifier", "name": "index", "range": [ - 64640, - 64645 + 64609, + 64614 ], "loc": { "start": { @@ -117624,8 +117443,8 @@ } ], "range": [ - 64604, - 64646 + 64573, + 64615 ], "loc": { "start": { @@ -117639,8 +117458,8 @@ } }, "range": [ - 64593, - 64646 + 64562, + 64615 ], "loc": { "start": { @@ -117654,8 +117473,8 @@ } }, "range": [ - 64593, - 64647 + 64562, + 64616 ], "loc": { "start": { @@ -117670,8 +117489,8 @@ } ], "range": [ - 64579, - 64657 + 64548, + 64626 ], "loc": { "start": { @@ -117686,8 +117505,8 @@ }, "alternate": null, "range": [ - 64549, - 64657 + 64518, + 64626 ], "loc": { "start": { @@ -117704,8 +117523,8 @@ "type": "Line", "value": "checklist", "range": [ - 64524, - 64535 + 64493, + 64504 ], "loc": { "start": { @@ -117721,8 +117540,8 @@ ] }, "range": [ - 64409, - 64657 + 64378, + 64626 ], "loc": { "start": { @@ -117739,8 +117558,8 @@ "type": "Line", "value": "mutiple select", "range": [ - 64379, - 64395 + 64348, + 64364 ], "loc": { "start": { @@ -117756,8 +117575,8 @@ ] }, "range": [ - 64268, - 64657 + 64237, + 64626 ], "loc": { "start": { @@ -117774,8 +117593,8 @@ "type": "Line", "value": "return an empty string if collection is empty or contains a single", "range": [ - 64666, - 64734 + 64635, + 64703 ], "loc": { "start": { @@ -117792,8 +117611,8 @@ "type": "Line", "value": "empty string", "range": [ - 64743, - 64757 + 64712, + 64726 ], "loc": { "start": { @@ -117822,8 +117641,8 @@ "type": "Identifier", "name": "isArray", "range": [ - 64770, - 64777 + 64739, + 64746 ], "loc": { "start": { @@ -117841,8 +117660,8 @@ "type": "Identifier", "name": "fltValue", "range": [ - 64778, - 64786 + 64747, + 64755 ], "loc": { "start": { @@ -117857,8 +117676,8 @@ } ], "range": [ - 64770, - 64787 + 64739, + 64756 ], "loc": { "start": { @@ -117881,8 +117700,8 @@ "type": "Identifier", "name": "fltValue", "range": [ - 64791, - 64799 + 64760, + 64768 ], "loc": { "start": { @@ -117899,8 +117718,8 @@ "type": "Identifier", "name": "length", "range": [ - 64800, - 64806 + 64769, + 64775 ], "loc": { "start": { @@ -117914,8 +117733,8 @@ } }, "range": [ - 64791, - 64806 + 64760, + 64775 ], "loc": { "start": { @@ -117933,8 +117752,8 @@ "value": 0, "raw": "0", "range": [ - 64811, - 64812 + 64780, + 64781 ], "loc": { "start": { @@ -117948,8 +117767,8 @@ } }, "range": [ - 64791, - 64812 + 64760, + 64781 ], "loc": { "start": { @@ -117963,8 +117782,8 @@ } }, "range": [ - 64770, - 64812 + 64739, + 64781 ], "loc": { "start": { @@ -117990,8 +117809,8 @@ "type": "Identifier", "name": "fltValue", "range": [ - 64829, - 64837 + 64798, + 64806 ], "loc": { "start": { @@ -118008,8 +117827,8 @@ "type": "Identifier", "name": "length", "range": [ - 64838, - 64844 + 64807, + 64813 ], "loc": { "start": { @@ -118023,8 +117842,8 @@ } }, "range": [ - 64829, - 64844 + 64798, + 64813 ], "loc": { "start": { @@ -118042,8 +117861,8 @@ "value": 1, "raw": "1", "range": [ - 64849, - 64850 + 64818, + 64819 ], "loc": { "start": { @@ -118057,8 +117876,8 @@ } }, "range": [ - 64829, - 64850 + 64798, + 64819 ], "loc": { "start": { @@ -118081,8 +117900,8 @@ "type": "Identifier", "name": "fltValue", "range": [ - 64854, - 64862 + 64823, + 64831 ], "loc": { "start": { @@ -118100,8 +117919,8 @@ "value": 0, "raw": "0", "range": [ - 64863, - 64864 + 64832, + 64833 ], "loc": { "start": { @@ -118115,8 +117934,8 @@ } }, "range": [ - 64854, - 64865 + 64823, + 64834 ], "loc": { "start": { @@ -118134,8 +117953,8 @@ "value": "", "raw": "''", "range": [ - 64870, - 64872 + 64839, + 64841 ], "loc": { "start": { @@ -118149,8 +117968,8 @@ } }, "range": [ - 64854, - 64872 + 64823, + 64841 ], "loc": { "start": { @@ -118164,8 +117983,8 @@ } }, "range": [ - 64829, - 64872 + 64798, + 64841 ], "loc": { "start": { @@ -118179,8 +117998,8 @@ } }, "range": [ - 64770, - 64873 + 64739, + 64842 ], "loc": { "start": { @@ -118205,8 +118024,8 @@ "type": "Identifier", "name": "fltValue", "range": [ - 64889, - 64897 + 64858, + 64866 ], "loc": { "start": { @@ -118224,8 +118043,8 @@ "value": "", "raw": "''", "range": [ - 64900, - 64902 + 64869, + 64871 ], "loc": { "start": { @@ -118239,8 +118058,8 @@ } }, "range": [ - 64889, - 64902 + 64858, + 64871 ], "loc": { "start": { @@ -118254,8 +118073,8 @@ } }, "range": [ - 64889, - 64903 + 64858, + 64872 ], "loc": { "start": { @@ -118270,8 +118089,8 @@ } ], "range": [ - 64875, - 64913 + 64844, + 64882 ], "loc": { "start": { @@ -118286,8 +118105,8 @@ }, "alternate": null, "range": [ - 64766, - 64913 + 64735, + 64882 ], "loc": { "start": { @@ -118304,8 +118123,8 @@ "type": "Line", "value": "return an empty string if collection is empty or contains a single", "range": [ - 64666, - 64734 + 64635, + 64703 ], "loc": { "start": { @@ -118322,8 +118141,8 @@ "type": "Line", "value": "empty string", "range": [ - 64743, - 64757 + 64712, + 64726 ], "loc": { "start": { @@ -118344,8 +118163,8 @@ "type": "Identifier", "name": "fltValue", "range": [ - 64930, - 64938 + 64899, + 64907 ], "loc": { "start": { @@ -118359,8 +118178,8 @@ } }, "range": [ - 64923, - 64939 + 64892, + 64908 ], "loc": { "start": { @@ -118375,8 +118194,8 @@ } ], "range": [ - 64012, - 64945 + 63981, + 64914 ], "loc": { "start": { @@ -118392,8 +118211,8 @@ "generator": false, "expression": false, "range": [ - 64004, - 64945 + 63973, + 64914 ], "loc": { "start": { @@ -118409,8 +118228,8 @@ "kind": "method", "computed": false, "range": [ - 63990, - 64945 + 63959, + 64914 ], "loc": { "start": { @@ -118427,8 +118246,8 @@ "type": "Block", "value": "*\n * Return the filter's value of a specified column\n * @param {Number} index Column index\n * @return {String} Filter value\n ", "range": [ - 63833, - 63985 + 63802, + 63954 ], "loc": { "start": { @@ -118447,8 +118266,8 @@ "type": "Block", "value": "*\n * Return the filters' values\n * @return {Array} List of filters' values\n ", "range": [ - 64951, - 65043 + 64920, + 65012 ], "loc": { "start": { @@ -118470,8 +118289,8 @@ "type": "Identifier", "name": "getFiltersValue", "range": [ - 65048, - 65063 + 65017, + 65032 ], "loc": { "start": { @@ -118502,8 +118321,8 @@ "object": { "type": "ThisExpression", "range": [ - 65081, - 65085 + 65050, + 65054 ], "loc": { "start": { @@ -118520,8 +118339,8 @@ "type": "Identifier", "name": "fltGrid", "range": [ - 65086, - 65093 + 65055, + 65062 ], "loc": { "start": { @@ -118535,8 +118354,8 @@ } }, "range": [ - 65081, - 65093 + 65050, + 65062 ], "loc": { "start": { @@ -118551,8 +118370,8 @@ }, "prefix": true, "range": [ - 65080, - 65093 + 65049, + 65062 ], "loc": { "start": { @@ -118572,8 +118391,8 @@ "type": "ReturnStatement", "argument": null, "range": [ - 65109, - 65116 + 65078, + 65085 ], "loc": { "start": { @@ -118588,8 +118407,8 @@ } ], "range": [ - 65095, - 65126 + 65064, + 65095 ], "loc": { "start": { @@ -118604,8 +118423,8 @@ }, "alternate": null, "range": [ - 65076, - 65126 + 65045, + 65095 ], "loc": { "start": { @@ -118627,8 +118446,8 @@ "type": "Identifier", "name": "searchArgs", "range": [ - 65139, - 65149 + 65108, + 65118 ], "loc": { "start": { @@ -118645,8 +118464,8 @@ "type": "ArrayExpression", "elements": [], "range": [ - 65152, - 65154 + 65121, + 65123 ], "loc": { "start": { @@ -118660,8 +118479,8 @@ } }, "range": [ - 65139, - 65154 + 65108, + 65123 ], "loc": { "start": { @@ -118677,8 +118496,8 @@ ], "kind": "let", "range": [ - 65135, - 65155 + 65104, + 65124 ], "loc": { "start": { @@ -118702,8 +118521,8 @@ "type": "Identifier", "name": "i", "range": [ - 65173, - 65174 + 65142, + 65143 ], "loc": { "start": { @@ -118721,8 +118540,8 @@ "value": 0, "raw": "0", "range": [ - 65177, - 65178 + 65146, + 65147 ], "loc": { "start": { @@ -118736,8 +118555,8 @@ } }, "range": [ - 65173, - 65178 + 65142, + 65147 ], "loc": { "start": { @@ -118756,8 +118575,8 @@ "type": "Identifier", "name": "len", "range": [ - 65180, - 65183 + 65149, + 65152 ], "loc": { "start": { @@ -118779,8 +118598,8 @@ "object": { "type": "ThisExpression", "range": [ - 65186, - 65190 + 65155, + 65159 ], "loc": { "start": { @@ -118797,8 +118616,8 @@ "type": "Identifier", "name": "fltIds", "range": [ - 65191, - 65197 + 65160, + 65166 ], "loc": { "start": { @@ -118812,8 +118631,8 @@ } }, "range": [ - 65186, - 65197 + 65155, + 65166 ], "loc": { "start": { @@ -118830,8 +118649,8 @@ "type": "Identifier", "name": "length", "range": [ - 65198, - 65204 + 65167, + 65173 ], "loc": { "start": { @@ -118845,8 +118664,8 @@ } }, "range": [ - 65186, - 65204 + 65155, + 65173 ], "loc": { "start": { @@ -118860,8 +118679,8 @@ } }, "range": [ - 65180, - 65204 + 65149, + 65173 ], "loc": { "start": { @@ -118877,8 +118696,8 @@ ], "kind": "let", "range": [ - 65169, - 65204 + 65138, + 65173 ], "loc": { "start": { @@ -118898,8 +118717,8 @@ "type": "Identifier", "name": "i", "range": [ - 65206, - 65207 + 65175, + 65176 ], "loc": { "start": { @@ -118916,8 +118735,8 @@ "type": "Identifier", "name": "len", "range": [ - 65210, - 65213 + 65179, + 65182 ], "loc": { "start": { @@ -118931,8 +118750,8 @@ } }, "range": [ - 65206, - 65213 + 65175, + 65182 ], "loc": { "start": { @@ -118952,8 +118771,8 @@ "type": "Identifier", "name": "i", "range": [ - 65215, - 65216 + 65184, + 65185 ], "loc": { "start": { @@ -118968,8 +118787,8 @@ }, "prefix": false, "range": [ - 65215, - 65218 + 65184, + 65187 ], "loc": { "start": { @@ -118994,8 +118813,8 @@ "type": "Identifier", "name": "fltValue", "range": [ - 65238, - 65246 + 65207, + 65215 ], "loc": { "start": { @@ -119016,8 +118835,8 @@ "object": { "type": "ThisExpression", "range": [ - 65249, - 65253 + 65218, + 65222 ], "loc": { "start": { @@ -119034,8 +118853,8 @@ "type": "Identifier", "name": "getFilterValue", "range": [ - 65254, - 65268 + 65223, + 65237 ], "loc": { "start": { @@ -119049,8 +118868,8 @@ } }, "range": [ - 65249, - 65268 + 65218, + 65237 ], "loc": { "start": { @@ -119068,8 +118887,8 @@ "type": "Identifier", "name": "i", "range": [ - 65269, - 65270 + 65238, + 65239 ], "loc": { "start": { @@ -119084,8 +118903,8 @@ } ], "range": [ - 65249, - 65271 + 65218, + 65240 ], "loc": { "start": { @@ -119099,8 +118918,8 @@ } }, "range": [ - 65238, - 65271 + 65207, + 65240 ], "loc": { "start": { @@ -119116,8 +118935,8 @@ ], "kind": "let", "range": [ - 65234, - 65272 + 65203, + 65241 ], "loc": { "start": { @@ -119138,8 +118957,8 @@ "type": "Identifier", "name": "isArray", "range": [ - 65289, - 65296 + 65258, + 65265 ], "loc": { "start": { @@ -119157,8 +118976,8 @@ "type": "Identifier", "name": "fltValue", "range": [ - 65297, - 65305 + 65266, + 65274 ], "loc": { "start": { @@ -119173,8 +118992,8 @@ } ], "range": [ - 65289, - 65306 + 65258, + 65275 ], "loc": { "start": { @@ -119201,8 +119020,8 @@ "type": "Identifier", "name": "searchArgs", "range": [ - 65326, - 65336 + 65295, + 65305 ], "loc": { "start": { @@ -119219,8 +119038,8 @@ "type": "Identifier", "name": "push", "range": [ - 65337, - 65341 + 65306, + 65310 ], "loc": { "start": { @@ -119234,8 +119053,8 @@ } }, "range": [ - 65326, - 65341 + 65295, + 65310 ], "loc": { "start": { @@ -119253,8 +119072,8 @@ "type": "Identifier", "name": "fltValue", "range": [ - 65342, - 65350 + 65311, + 65319 ], "loc": { "start": { @@ -119269,8 +119088,8 @@ } ], "range": [ - 65326, - 65351 + 65295, + 65320 ], "loc": { "start": { @@ -119284,8 +119103,8 @@ } }, "range": [ - 65326, - 65352 + 65295, + 65321 ], "loc": { "start": { @@ -119300,8 +119119,8 @@ } ], "range": [ - 65308, - 65366 + 65277, + 65335 ], "loc": { "start": { @@ -119328,8 +119147,8 @@ "type": "Identifier", "name": "searchArgs", "range": [ - 65390, - 65400 + 65359, + 65369 ], "loc": { "start": { @@ -119346,8 +119165,8 @@ "type": "Identifier", "name": "push", "range": [ - 65401, - 65405 + 65370, + 65374 ], "loc": { "start": { @@ -119361,8 +119180,8 @@ } }, "range": [ - 65390, - 65405 + 65359, + 65374 ], "loc": { "start": { @@ -119382,8 +119201,8 @@ "type": "Identifier", "name": "trim", "range": [ - 65406, - 65410 + 65375, + 65379 ], "loc": { "start": { @@ -119401,8 +119220,8 @@ "type": "Identifier", "name": "fltValue", "range": [ - 65411, - 65419 + 65380, + 65388 ], "loc": { "start": { @@ -119417,8 +119236,8 @@ } ], "range": [ - 65406, - 65420 + 65375, + 65389 ], "loc": { "start": { @@ -119433,8 +119252,8 @@ } ], "range": [ - 65390, - 65421 + 65359, + 65390 ], "loc": { "start": { @@ -119448,8 +119267,8 @@ } }, "range": [ - 65390, - 65422 + 65359, + 65391 ], "loc": { "start": { @@ -119464,8 +119283,8 @@ } ], "range": [ - 65372, - 65436 + 65341, + 65405 ], "loc": { "start": { @@ -119479,8 +119298,8 @@ } }, "range": [ - 65285, - 65436 + 65254, + 65405 ], "loc": { "start": { @@ -119495,8 +119314,8 @@ } ], "range": [ - 65220, - 65446 + 65189, + 65415 ], "loc": { "start": { @@ -119510,8 +119329,8 @@ } }, "range": [ - 65164, - 65446 + 65133, + 65415 ], "loc": { "start": { @@ -119530,8 +119349,8 @@ "type": "Identifier", "name": "searchArgs", "range": [ - 65462, - 65472 + 65431, + 65441 ], "loc": { "start": { @@ -119545,8 +119364,8 @@ } }, "range": [ - 65455, - 65473 + 65424, + 65442 ], "loc": { "start": { @@ -119561,8 +119380,8 @@ } ], "range": [ - 65066, - 65479 + 65035, + 65448 ], "loc": { "start": { @@ -119578,8 +119397,8 @@ "generator": false, "expression": false, "range": [ - 65063, - 65479 + 65032, + 65448 ], "loc": { "start": { @@ -119595,8 +119414,8 @@ "kind": "method", "computed": false, "range": [ - 65048, - 65479 + 65017, + 65448 ], "loc": { "start": { @@ -119613,8 +119432,8 @@ "type": "Block", "value": "*\n * Return the filters' values\n * @return {Array} List of filters' values\n ", "range": [ - 64951, - 65043 + 64920, + 65012 ], "loc": { "start": { @@ -119633,8 +119452,8 @@ "type": "Block", "value": "*\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 ", "range": [ - 65485, - 65648 + 65454, + 65617 ], "loc": { "start": { @@ -119656,8 +119475,8 @@ "type": "Identifier", "name": "getFilterId", "range": [ - 65653, - 65664 + 65622, + 65633 ], "loc": { "start": { @@ -119678,8 +119497,8 @@ "type": "Identifier", "name": "index", "range": [ - 65665, - 65670 + 65634, + 65639 ], "loc": { "start": { @@ -119707,8 +119526,8 @@ "object": { "type": "ThisExpression", "range": [ - 65687, - 65691 + 65656, + 65660 ], "loc": { "start": { @@ -119725,8 +119544,8 @@ "type": "Identifier", "name": "fltGrid", "range": [ - 65692, - 65699 + 65661, + 65668 ], "loc": { "start": { @@ -119740,8 +119559,8 @@ } }, "range": [ - 65687, - 65699 + 65656, + 65668 ], "loc": { "start": { @@ -119756,8 +119575,8 @@ }, "prefix": true, "range": [ - 65686, - 65699 + 65655, + 65668 ], "loc": { "start": { @@ -119777,8 +119596,8 @@ "type": "ReturnStatement", "argument": null, "range": [ - 65715, - 65722 + 65684, + 65691 ], "loc": { "start": { @@ -119793,8 +119612,8 @@ } ], "range": [ - 65701, - 65732 + 65670, + 65701 ], "loc": { "start": { @@ -119809,8 +119628,8 @@ }, "alternate": null, "range": [ - 65682, - 65732 + 65651, + 65701 ], "loc": { "start": { @@ -119834,8 +119653,8 @@ "object": { "type": "ThisExpression", "range": [ - 65748, - 65752 + 65717, + 65721 ], "loc": { "start": { @@ -119852,8 +119671,8 @@ "type": "Identifier", "name": "fltIds", "range": [ - 65753, - 65759 + 65722, + 65728 ], "loc": { "start": { @@ -119867,8 +119686,8 @@ } }, "range": [ - 65748, - 65759 + 65717, + 65728 ], "loc": { "start": { @@ -119885,8 +119704,8 @@ "type": "Identifier", "name": "index", "range": [ - 65760, - 65765 + 65729, + 65734 ], "loc": { "start": { @@ -119900,8 +119719,8 @@ } }, "range": [ - 65748, - 65766 + 65717, + 65735 ], "loc": { "start": { @@ -119915,8 +119734,8 @@ } }, "range": [ - 65741, - 65767 + 65710, + 65736 ], "loc": { "start": { @@ -119931,8 +119750,8 @@ } ], "range": [ - 65672, - 65773 + 65641, + 65742 ], "loc": { "start": { @@ -119948,8 +119767,8 @@ "generator": false, "expression": false, "range": [ - 65664, - 65773 + 65633, + 65742 ], "loc": { "start": { @@ -119965,8 +119784,8 @@ "kind": "method", "computed": false, "range": [ - 65653, - 65773 + 65622, + 65742 ], "loc": { "start": { @@ -119983,8 +119802,8 @@ "type": "Block", "value": "*\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 ", "range": [ - 65485, - 65648 + 65454, + 65617 ], "loc": { "start": { @@ -120003,8 +119822,8 @@ "type": "Block", "value": "*\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 ", "range": [ - 65779, - 66180 + 65748, + 66149 ], "loc": { "start": { @@ -120026,8 +119845,8 @@ "type": "Identifier", "name": "getFiltersByType", "range": [ - 66185, - 66201 + 66154, + 66170 ], "loc": { "start": { @@ -120048,8 +119867,8 @@ "type": "Identifier", "name": "type", "range": [ - 66202, - 66206 + 66171, + 66175 ], "loc": { "start": { @@ -120066,8 +119885,8 @@ "type": "Identifier", "name": "bool", "range": [ - 66208, - 66212 + 66177, + 66181 ], "loc": { "start": { @@ -120095,8 +119914,8 @@ "object": { "type": "ThisExpression", "range": [ - 66229, - 66233 + 66198, + 66202 ], "loc": { "start": { @@ -120113,8 +119932,8 @@ "type": "Identifier", "name": "fltGrid", "range": [ - 66234, - 66241 + 66203, + 66210 ], "loc": { "start": { @@ -120128,8 +119947,8 @@ } }, "range": [ - 66229, - 66241 + 66198, + 66210 ], "loc": { "start": { @@ -120144,8 +119963,8 @@ }, "prefix": true, "range": [ - 66228, - 66241 + 66197, + 66210 ], "loc": { "start": { @@ -120165,8 +119984,8 @@ "type": "ReturnStatement", "argument": null, "range": [ - 66257, - 66264 + 66226, + 66233 ], "loc": { "start": { @@ -120181,8 +120000,8 @@ } ], "range": [ - 66243, - 66274 + 66212, + 66243 ], "loc": { "start": { @@ -120197,8 +120016,8 @@ }, "alternate": null, "range": [ - 66224, - 66274 + 66193, + 66243 ], "loc": { "start": { @@ -120220,8 +120039,8 @@ "type": "Identifier", "name": "arr", "range": [ - 66287, - 66290 + 66256, + 66259 ], "loc": { "start": { @@ -120238,8 +120057,8 @@ "type": "ArrayExpression", "elements": [], "range": [ - 66293, - 66295 + 66262, + 66264 ], "loc": { "start": { @@ -120253,8 +120072,8 @@ } }, "range": [ - 66287, - 66295 + 66256, + 66264 ], "loc": { "start": { @@ -120270,8 +120089,8 @@ ], "kind": "let", "range": [ - 66283, - 66296 + 66252, + 66265 ], "loc": { "start": { @@ -120295,8 +120114,8 @@ "type": "Identifier", "name": "i", "range": [ - 66314, - 66315 + 66283, + 66284 ], "loc": { "start": { @@ -120314,8 +120133,8 @@ "value": 0, "raw": "0", "range": [ - 66318, - 66319 + 66287, + 66288 ], "loc": { "start": { @@ -120329,8 +120148,8 @@ } }, "range": [ - 66314, - 66319 + 66283, + 66288 ], "loc": { "start": { @@ -120349,8 +120168,8 @@ "type": "Identifier", "name": "len", "range": [ - 66321, - 66324 + 66290, + 66293 ], "loc": { "start": { @@ -120372,8 +120191,8 @@ "object": { "type": "ThisExpression", "range": [ - 66327, - 66331 + 66296, + 66300 ], "loc": { "start": { @@ -120390,8 +120209,8 @@ "type": "Identifier", "name": "fltIds", "range": [ - 66332, - 66338 + 66301, + 66307 ], "loc": { "start": { @@ -120405,8 +120224,8 @@ } }, "range": [ - 66327, - 66338 + 66296, + 66307 ], "loc": { "start": { @@ -120423,8 +120242,8 @@ "type": "Identifier", "name": "length", "range": [ - 66339, - 66345 + 66308, + 66314 ], "loc": { "start": { @@ -120438,8 +120257,8 @@ } }, "range": [ - 66327, - 66345 + 66296, + 66314 ], "loc": { "start": { @@ -120453,8 +120272,8 @@ } }, "range": [ - 66321, - 66345 + 66290, + 66314 ], "loc": { "start": { @@ -120470,8 +120289,8 @@ ], "kind": "let", "range": [ - 66310, - 66345 + 66279, + 66314 ], "loc": { "start": { @@ -120491,8 +120310,8 @@ "type": "Identifier", "name": "i", "range": [ - 66347, - 66348 + 66316, + 66317 ], "loc": { "start": { @@ -120509,8 +120328,8 @@ "type": "Identifier", "name": "len", "range": [ - 66351, - 66354 + 66320, + 66323 ], "loc": { "start": { @@ -120524,8 +120343,8 @@ } }, "range": [ - 66347, - 66354 + 66316, + 66323 ], "loc": { "start": { @@ -120545,8 +120364,8 @@ "type": "Identifier", "name": "i", "range": [ - 66356, - 66357 + 66325, + 66326 ], "loc": { "start": { @@ -120561,8 +120380,8 @@ }, "prefix": false, "range": [ - 66356, - 66359 + 66325, + 66328 ], "loc": { "start": { @@ -120587,8 +120406,8 @@ "type": "Identifier", "name": "fltType", "range": [ - 66379, - 66386 + 66348, + 66355 ], "loc": { "start": { @@ -120609,8 +120428,8 @@ "object": { "type": "ThisExpression", "range": [ - 66389, - 66393 + 66358, + 66362 ], "loc": { "start": { @@ -120627,8 +120446,8 @@ "type": "Identifier", "name": "getFilterType", "range": [ - 66394, - 66407 + 66363, + 66376 ], "loc": { "start": { @@ -120642,8 +120461,8 @@ } }, "range": [ - 66389, - 66407 + 66358, + 66376 ], "loc": { "start": { @@ -120661,8 +120480,8 @@ "type": "Identifier", "name": "i", "range": [ - 66408, - 66409 + 66377, + 66378 ], "loc": { "start": { @@ -120677,8 +120496,8 @@ } ], "range": [ - 66389, - 66410 + 66358, + 66379 ], "loc": { "start": { @@ -120692,8 +120511,8 @@ } }, "range": [ - 66379, - 66410 + 66348, + 66379 ], "loc": { "start": { @@ -120709,8 +120528,8 @@ ], "kind": "let", "range": [ - 66375, - 66411 + 66344, + 66380 ], "loc": { "start": { @@ -120732,8 +120551,8 @@ "type": "Identifier", "name": "fltType", "range": [ - 66428, - 66435 + 66397, + 66404 ], "loc": { "start": { @@ -120755,8 +120574,8 @@ "type": "Identifier", "name": "type", "range": [ - 66440, - 66444 + 66409, + 66413 ], "loc": { "start": { @@ -120773,8 +120592,8 @@ "type": "Identifier", "name": "toLowerCase", "range": [ - 66445, - 66456 + 66414, + 66425 ], "loc": { "start": { @@ -120788,8 +120607,8 @@ } }, "range": [ - 66440, - 66456 + 66409, + 66425 ], "loc": { "start": { @@ -120804,8 +120623,8 @@ }, "arguments": [], "range": [ - 66440, - 66458 + 66409, + 66427 ], "loc": { "start": { @@ -120819,8 +120638,8 @@ } }, "range": [ - 66428, - 66458 + 66397, + 66427 ], "loc": { "start": { @@ -120845,8 +120664,8 @@ "type": "Identifier", "name": "a", "range": [ - 66482, - 66483 + 66451, + 66452 ], "loc": { "start": { @@ -120865,8 +120684,8 @@ "type": "Identifier", "name": "bool", "range": [ - 66486, - 66490 + 66455, + 66459 ], "loc": { "start": { @@ -120883,8 +120702,8 @@ "type": "Identifier", "name": "i", "range": [ - 66493, - 66494 + 66462, + 66463 ], "loc": { "start": { @@ -120906,8 +120725,8 @@ "object": { "type": "ThisExpression", "range": [ - 66497, - 66501 + 66466, + 66470 ], "loc": { "start": { @@ -120924,8 +120743,8 @@ "type": "Identifier", "name": "fltIds", "range": [ - 66502, - 66508 + 66471, + 66477 ], "loc": { "start": { @@ -120939,8 +120758,8 @@ } }, "range": [ - 66497, - 66508 + 66466, + 66477 ], "loc": { "start": { @@ -120957,8 +120776,8 @@ "type": "Identifier", "name": "i", "range": [ - 66509, - 66510 + 66478, + 66479 ], "loc": { "start": { @@ -120972,8 +120791,8 @@ } }, "range": [ - 66497, - 66511 + 66466, + 66480 ], "loc": { "start": { @@ -120987,8 +120806,8 @@ } }, "range": [ - 66486, - 66511 + 66455, + 66480 ], "loc": { "start": { @@ -121002,8 +120821,8 @@ } }, "range": [ - 66482, - 66511 + 66451, + 66480 ], "loc": { "start": { @@ -121019,8 +120838,8 @@ ], "kind": "let", "range": [ - 66478, - 66512 + 66447, + 66481 ], "loc": { "start": { @@ -121044,8 +120863,8 @@ "type": "Identifier", "name": "arr", "range": [ - 66529, - 66532 + 66498, + 66501 ], "loc": { "start": { @@ -121062,8 +120881,8 @@ "type": "Identifier", "name": "push", "range": [ - 66533, - 66537 + 66502, + 66506 ], "loc": { "start": { @@ -121077,8 +120896,8 @@ } }, "range": [ - 66529, - 66537 + 66498, + 66506 ], "loc": { "start": { @@ -121096,8 +120915,8 @@ "type": "Identifier", "name": "a", "range": [ - 66538, - 66539 + 66507, + 66508 ], "loc": { "start": { @@ -121112,8 +120931,8 @@ } ], "range": [ - 66529, - 66540 + 66498, + 66509 ], "loc": { "start": { @@ -121127,8 +120946,8 @@ } }, "range": [ - 66529, - 66541 + 66498, + 66510 ], "loc": { "start": { @@ -121143,8 +120962,8 @@ } ], "range": [ - 66460, - 66555 + 66429, + 66524 ], "loc": { "start": { @@ -121159,8 +120978,8 @@ }, "alternate": null, "range": [ - 66424, - 66555 + 66393, + 66524 ], "loc": { "start": { @@ -121175,8 +120994,8 @@ } ], "range": [ - 66361, - 66565 + 66330, + 66534 ], "loc": { "start": { @@ -121190,8 +121009,8 @@ } }, "range": [ - 66305, - 66565 + 66274, + 66534 ], "loc": { "start": { @@ -121210,8 +121029,8 @@ "type": "Identifier", "name": "arr", "range": [ - 66581, - 66584 + 66550, + 66553 ], "loc": { "start": { @@ -121225,8 +121044,8 @@ } }, "range": [ - 66574, - 66585 + 66543, + 66554 ], "loc": { "start": { @@ -121241,8 +121060,8 @@ } ], "range": [ - 66214, - 66591 + 66183, + 66560 ], "loc": { "start": { @@ -121258,8 +121077,8 @@ "generator": false, "expression": false, "range": [ - 66201, - 66591 + 66170, + 66560 ], "loc": { "start": { @@ -121275,8 +121094,8 @@ "kind": "method", "computed": false, "range": [ - 66185, - 66591 + 66154, + 66560 ], "loc": { "start": { @@ -121293,8 +121112,8 @@ "type": "Block", "value": "*\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 ", "range": [ - 65779, - 66180 + 65748, + 66149 ], "loc": { "start": { @@ -121313,8 +121132,8 @@ "type": "Block", "value": "*\n * Return the filter's DOM element for a given column\n * @param {Number} index Column's index\n * @return {DOMElement}\n ", "range": [ - 66597, - 66743 + 66566, + 66712 ], "loc": { "start": { @@ -121336,8 +121155,8 @@ "type": "Identifier", "name": "getFilterElement", "range": [ - 66748, - 66764 + 66717, + 66733 ], "loc": { "start": { @@ -121358,8 +121177,8 @@ "type": "Identifier", "name": "index", "range": [ - 66765, - 66770 + 66734, + 66739 ], "loc": { "start": { @@ -121385,8 +121204,8 @@ "type": "Identifier", "name": "fltId", "range": [ - 66786, - 66791 + 66755, + 66760 ], "loc": { "start": { @@ -121408,8 +121227,8 @@ "object": { "type": "ThisExpression", "range": [ - 66794, - 66798 + 66763, + 66767 ], "loc": { "start": { @@ -121426,8 +121245,8 @@ "type": "Identifier", "name": "fltIds", "range": [ - 66799, - 66805 + 66768, + 66774 ], "loc": { "start": { @@ -121441,8 +121260,8 @@ } }, "range": [ - 66794, - 66805 + 66763, + 66774 ], "loc": { "start": { @@ -121459,8 +121278,8 @@ "type": "Identifier", "name": "index", "range": [ - 66806, - 66811 + 66775, + 66780 ], "loc": { "start": { @@ -121474,8 +121293,8 @@ } }, "range": [ - 66794, - 66812 + 66763, + 66781 ], "loc": { "start": { @@ -121489,8 +121308,8 @@ } }, "range": [ - 66786, - 66812 + 66755, + 66781 ], "loc": { "start": { @@ -121506,8 +121325,8 @@ ], "kind": "let", "range": [ - 66782, - 66813 + 66751, + 66782 ], "loc": { "start": { @@ -121528,8 +121347,8 @@ "type": "Identifier", "name": "elm", "range": [ - 66829, - 66832 + 66798, + 66801 ], "loc": { "start": { @@ -121547,8 +121366,8 @@ "type": "Identifier", "name": "fltId", "range": [ - 66833, - 66838 + 66802, + 66807 ], "loc": { "start": { @@ -121563,8 +121382,8 @@ } ], "range": [ - 66829, - 66839 + 66798, + 66808 ], "loc": { "start": { @@ -121578,8 +121397,8 @@ } }, "range": [ - 66822, - 66840 + 66791, + 66809 ], "loc": { "start": { @@ -121594,8 +121413,8 @@ } ], "range": [ - 66772, - 66846 + 66741, + 66815 ], "loc": { "start": { @@ -121611,8 +121430,8 @@ "generator": false, "expression": false, "range": [ - 66764, - 66846 + 66733, + 66815 ], "loc": { "start": { @@ -121628,8 +121447,8 @@ "kind": "method", "computed": false, "range": [ - 66748, - 66846 + 66717, + 66815 ], "loc": { "start": { @@ -121646,8 +121465,8 @@ "type": "Block", "value": "*\n * Return the filter's DOM element for a given column\n * @param {Number} index Column's index\n * @return {DOMElement}\n ", "range": [ - 66597, - 66743 + 66566, + 66712 ], "loc": { "start": { @@ -121666,8 +121485,8 @@ "type": "Block", "value": "*\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 ", "range": [ - 66852, - 67018 + 66821, + 66987 ], "loc": { "start": { @@ -121689,8 +121508,8 @@ "type": "Identifier", "name": "getCellsNb", "range": [ - 67023, - 67033 + 66992, + 67002 ], "loc": { "start": { @@ -121713,8 +121532,8 @@ "type": "Identifier", "name": "rowIndex", "range": [ - 67034, - 67042 + 67003, + 67011 ], "loc": { "start": { @@ -121732,8 +121551,8 @@ "value": 0, "raw": "0", "range": [ - 67045, - 67046 + 67014, + 67015 ], "loc": { "start": { @@ -121747,8 +121566,8 @@ } }, "range": [ - 67034, - 67046 + 67003, + 67015 ], "loc": { "start": { @@ -121774,8 +121593,8 @@ "type": "Identifier", "name": "tr", "range": [ - 67062, - 67064 + 67031, + 67033 ], "loc": { "start": { @@ -121800,8 +121619,8 @@ "object": { "type": "ThisExpression", "range": [ - 67067, - 67071 + 67036, + 67040 ], "loc": { "start": { @@ -121818,8 +121637,8 @@ "type": "Identifier", "name": "tbl", "range": [ - 67072, - 67075 + 67041, + 67044 ], "loc": { "start": { @@ -121833,8 +121652,8 @@ } }, "range": [ - 67067, - 67075 + 67036, + 67044 ], "loc": { "start": { @@ -121851,8 +121670,8 @@ "type": "Identifier", "name": "rows", "range": [ - 67076, - 67080 + 67045, + 67049 ], "loc": { "start": { @@ -121866,8 +121685,8 @@ } }, "range": [ - 67067, - 67080 + 67036, + 67049 ], "loc": { "start": { @@ -121889,8 +121708,8 @@ "type": "Identifier", "name": "rowIndex", "range": [ - 67081, - 67089 + 67050, + 67058 ], "loc": { "start": { @@ -121908,8 +121727,8 @@ "value": 0, "raw": "0", "range": [ - 67093, - 67094 + 67062, + 67063 ], "loc": { "start": { @@ -121923,8 +121742,8 @@ } }, "range": [ - 67081, - 67094 + 67050, + 67063 ], "loc": { "start": { @@ -121941,8 +121760,8 @@ "type": "Identifier", "name": "rowIndex", "range": [ - 67097, - 67105 + 67066, + 67074 ], "loc": { "start": { @@ -121960,8 +121779,8 @@ "value": 0, "raw": "0", "range": [ - 67108, - 67109 + 67077, + 67078 ], "loc": { "start": { @@ -121975,8 +121794,8 @@ } }, "range": [ - 67081, - 67109 + 67050, + 67078 ], "loc": { "start": { @@ -121990,8 +121809,8 @@ } }, "range": [ - 67067, - 67110 + 67036, + 67079 ], "loc": { "start": { @@ -122005,8 +121824,8 @@ } }, "range": [ - 67062, - 67110 + 67031, + 67079 ], "loc": { "start": { @@ -122022,8 +121841,8 @@ ], "kind": "let", "range": [ - 67058, - 67111 + 67027, + 67080 ], "loc": { "start": { @@ -122044,8 +121863,8 @@ "type": "Identifier", "name": "tr", "range": [ - 67127, - 67129 + 67096, + 67098 ], "loc": { "start": { @@ -122068,8 +121887,8 @@ "type": "Identifier", "name": "tr", "range": [ - 67132, - 67134 + 67101, + 67103 ], "loc": { "start": { @@ -122086,8 +121905,8 @@ "type": "Identifier", "name": "cells", "range": [ - 67135, - 67140 + 67104, + 67109 ], "loc": { "start": { @@ -122101,8 +121920,8 @@ } }, "range": [ - 67132, - 67140 + 67101, + 67109 ], "loc": { "start": { @@ -122119,8 +121938,8 @@ "type": "Identifier", "name": "length", "range": [ - 67141, - 67147 + 67110, + 67116 ], "loc": { "start": { @@ -122134,8 +121953,8 @@ } }, "range": [ - 67132, - 67147 + 67101, + 67116 ], "loc": { "start": { @@ -122153,8 +121972,8 @@ "value": 0, "raw": "0", "range": [ - 67150, - 67151 + 67119, + 67120 ], "loc": { "start": { @@ -122168,8 +121987,8 @@ } }, "range": [ - 67127, - 67151 + 67096, + 67120 ], "loc": { "start": { @@ -122183,8 +122002,8 @@ } }, "range": [ - 67120, - 67152 + 67089, + 67121 ], "loc": { "start": { @@ -122199,8 +122018,8 @@ } ], "range": [ - 67048, - 67158 + 67017, + 67127 ], "loc": { "start": { @@ -122216,8 +122035,8 @@ "generator": false, "expression": false, "range": [ - 67033, - 67158 + 67002, + 67127 ], "loc": { "start": { @@ -122233,8 +122052,8 @@ "kind": "method", "computed": false, "range": [ - 67023, - 67158 + 66992, + 67127 ], "loc": { "start": { @@ -122251,8 +122070,8 @@ "type": "Block", "value": "*\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 ", "range": [ - 66852, - 67018 + 66821, + 66987 ], "loc": { "start": { @@ -122271,8 +122090,8 @@ "type": "Block", "value": "*\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 ", "range": [ - 67164, - 67395 + 67133, + 67364 ], "loc": { "start": { @@ -122294,8 +122113,8 @@ "type": "Identifier", "name": "getRowsNb", "range": [ - 67400, - 67409 + 67369, + 67378 ], "loc": { "start": { @@ -122316,8 +122135,8 @@ "type": "Identifier", "name": "includeHeaders", "range": [ - 67410, - 67424 + 67379, + 67393 ], "loc": { "start": { @@ -122343,8 +122162,8 @@ "type": "Identifier", "name": "s", "range": [ - 67440, - 67441 + 67409, + 67410 ], "loc": { "start": { @@ -122365,8 +122184,8 @@ "type": "Identifier", "name": "isUndef", "range": [ - 67444, - 67451 + 67413, + 67420 ], "loc": { "start": { @@ -122386,8 +122205,8 @@ "object": { "type": "ThisExpression", "range": [ - 67452, - 67456 + 67421, + 67425 ], "loc": { "start": { @@ -122404,8 +122223,8 @@ "type": "Identifier", "name": "refRow", "range": [ - 67457, - 67463 + 67426, + 67432 ], "loc": { "start": { @@ -122419,8 +122238,8 @@ } }, "range": [ - 67452, - 67463 + 67421, + 67432 ], "loc": { "start": { @@ -122435,8 +122254,8 @@ } ], "range": [ - 67444, - 67464 + 67413, + 67433 ], "loc": { "start": { @@ -122454,8 +122273,8 @@ "value": 0, "raw": "0", "range": [ - 67467, - 67468 + 67436, + 67437 ], "loc": { "start": { @@ -122474,8 +122293,8 @@ "object": { "type": "ThisExpression", "range": [ - 67471, - 67475 + 67440, + 67444 ], "loc": { "start": { @@ -122492,8 +122311,8 @@ "type": "Identifier", "name": "refRow", "range": [ - 67476, - 67482 + 67445, + 67451 ], "loc": { "start": { @@ -122507,8 +122326,8 @@ } }, "range": [ - 67471, - 67482 + 67440, + 67451 ], "loc": { "start": { @@ -122522,8 +122341,8 @@ } }, "range": [ - 67444, - 67482 + 67413, + 67451 ], "loc": { "start": { @@ -122537,8 +122356,8 @@ } }, "range": [ - 67440, - 67482 + 67409, + 67451 ], "loc": { "start": { @@ -122554,8 +122373,8 @@ ], "kind": "let", "range": [ - 67436, - 67483 + 67405, + 67452 ], "loc": { "start": { @@ -122577,8 +122396,8 @@ "type": "Identifier", "name": "ntrs", "range": [ - 67496, - 67500 + 67465, + 67469 ], "loc": { "start": { @@ -122603,8 +122422,8 @@ "object": { "type": "ThisExpression", "range": [ - 67503, - 67507 + 67472, + 67476 ], "loc": { "start": { @@ -122621,8 +122440,8 @@ "type": "Identifier", "name": "tbl", "range": [ - 67508, - 67511 + 67477, + 67480 ], "loc": { "start": { @@ -122636,8 +122455,8 @@ } }, "range": [ - 67503, - 67511 + 67472, + 67480 ], "loc": { "start": { @@ -122654,8 +122473,8 @@ "type": "Identifier", "name": "rows", "range": [ - 67512, - 67516 + 67481, + 67485 ], "loc": { "start": { @@ -122669,8 +122488,8 @@ } }, "range": [ - 67503, - 67516 + 67472, + 67485 ], "loc": { "start": { @@ -122687,8 +122506,8 @@ "type": "Identifier", "name": "length", "range": [ - 67517, - 67523 + 67486, + 67492 ], "loc": { "start": { @@ -122702,8 +122521,8 @@ } }, "range": [ - 67503, - 67523 + 67472, + 67492 ], "loc": { "start": { @@ -122717,8 +122536,8 @@ } }, "range": [ - 67496, - 67523 + 67465, + 67492 ], "loc": { "start": { @@ -122734,8 +122553,8 @@ ], "kind": "let", "range": [ - 67492, - 67524 + 67461, + 67493 ], "loc": { "start": { @@ -122754,8 +122573,8 @@ "type": "Identifier", "name": "includeHeaders", "range": [ - 67537, - 67551 + 67506, + 67520 ], "loc": { "start": { @@ -122780,8 +122599,8 @@ "type": "Identifier", "name": "s", "range": [ - 67567, - 67568 + 67536, + 67537 ], "loc": { "start": { @@ -122799,8 +122618,8 @@ "value": 0, "raw": "0", "range": [ - 67571, - 67572 + 67540, + 67541 ], "loc": { "start": { @@ -122814,8 +122633,8 @@ } }, "range": [ - 67567, - 67572 + 67536, + 67541 ], "loc": { "start": { @@ -122829,8 +122648,8 @@ } }, "range": [ - 67567, - 67573 + 67536, + 67542 ], "loc": { "start": { @@ -122845,8 +122664,8 @@ } ], "range": [ - 67553, - 67583 + 67522, + 67552 ], "loc": { "start": { @@ -122861,8 +122680,8 @@ }, "alternate": null, "range": [ - 67533, - 67583 + 67502, + 67552 ], "loc": { "start": { @@ -122883,8 +122702,8 @@ "type": "Identifier", "name": "parseInt", "range": [ - 67599, - 67607 + 67568, + 67576 ], "loc": { "start": { @@ -122905,8 +122724,8 @@ "type": "Identifier", "name": "ntrs", "range": [ - 67608, - 67612 + 67577, + 67581 ], "loc": { "start": { @@ -122923,8 +122742,8 @@ "type": "Identifier", "name": "s", "range": [ - 67615, - 67616 + 67584, + 67585 ], "loc": { "start": { @@ -122938,8 +122757,8 @@ } }, "range": [ - 67608, - 67616 + 67577, + 67585 ], "loc": { "start": { @@ -122957,8 +122776,8 @@ "value": 10, "raw": "10", "range": [ - 67618, - 67620 + 67587, + 67589 ], "loc": { "start": { @@ -122973,8 +122792,8 @@ } ], "range": [ - 67599, - 67621 + 67568, + 67590 ], "loc": { "start": { @@ -122988,8 +122807,8 @@ } }, "range": [ - 67592, - 67622 + 67561, + 67591 ], "loc": { "start": { @@ -123004,8 +122823,8 @@ } ], "range": [ - 67426, - 67628 + 67395, + 67597 ], "loc": { "start": { @@ -123021,8 +122840,8 @@ "generator": false, "expression": false, "range": [ - 67409, - 67628 + 67378, + 67597 ], "loc": { "start": { @@ -123038,8 +122857,8 @@ "kind": "method", "computed": false, "range": [ - 67400, - 67628 + 67369, + 67597 ], "loc": { "start": { @@ -123056,8 +122875,8 @@ "type": "Block", "value": "*\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 ", "range": [ - 67164, - 67395 + 67133, + 67364 ], "loc": { "start": { @@ -123076,8 +122895,8 @@ "type": "Block", "value": "*\n * Return the data of a given cell\n * @param {DOMElement} cell Cell's DOM object\n * @return {String}\n ", "range": [ - 67634, - 67759 + 67603, + 67728 ], "loc": { "start": { @@ -123099,8 +122918,8 @@ "type": "Identifier", "name": "getCellData", "range": [ - 67764, - 67775 + 67733, + 67744 ], "loc": { "start": { @@ -123121,8 +122940,8 @@ "type": "Identifier", "name": "cell", "range": [ - 67776, - 67780 + 67745, + 67749 ], "loc": { "start": { @@ -123148,8 +122967,8 @@ "type": "Identifier", "name": "idx", "range": [ - 67796, - 67799 + 67765, + 67768 ], "loc": { "start": { @@ -123169,8 +122988,8 @@ "type": "Identifier", "name": "cell", "range": [ - 67802, - 67806 + 67771, + 67775 ], "loc": { "start": { @@ -123187,8 +123006,8 @@ "type": "Identifier", "name": "cellIndex", "range": [ - 67807, - 67816 + 67776, + 67785 ], "loc": { "start": { @@ -123202,8 +123021,8 @@ } }, "range": [ - 67802, - 67816 + 67771, + 67785 ], "loc": { "start": { @@ -123217,8 +123036,8 @@ } }, "range": [ - 67796, - 67816 + 67765, + 67785 ], "loc": { "start": { @@ -123234,8 +123053,8 @@ ], "kind": "let", "range": [ - 67792, - 67817 + 67761, + 67786 ], "loc": { "start": { @@ -123252,8 +123071,8 @@ "type": "Line", "value": "Fire customCellData callback", "range": [ - 67826, - 67856 + 67795, + 67825 ], "loc": { "start": { @@ -123284,8 +123103,8 @@ "object": { "type": "ThisExpression", "range": [ - 67869, - 67873 + 67838, + 67842 ], "loc": { "start": { @@ -123302,8 +123121,8 @@ "type": "Identifier", "name": "customCellDataCols", "range": [ - 67874, - 67892 + 67843, + 67861 ], "loc": { "start": { @@ -123317,8 +123136,8 @@ } }, "range": [ - 67869, - 67892 + 67838, + 67861 ], "loc": { "start": { @@ -123335,8 +123154,8 @@ "type": "Identifier", "name": "indexOf", "range": [ - 67893, - 67900 + 67862, + 67869 ], "loc": { "start": { @@ -123350,8 +123169,8 @@ } }, "range": [ - 67869, - 67900 + 67838, + 67869 ], "loc": { "start": { @@ -123369,8 +123188,8 @@ "type": "Identifier", "name": "idx", "range": [ - 67901, - 67904 + 67870, + 67873 ], "loc": { "start": { @@ -123385,8 +123204,8 @@ } ], "range": [ - 67869, - 67905 + 67838, + 67874 ], "loc": { "start": { @@ -123407,8 +123226,8 @@ "value": 1, "raw": "1", "range": [ - 67911, - 67912 + 67880, + 67881 ], "loc": { "start": { @@ -123423,8 +123242,8 @@ }, "prefix": true, "range": [ - 67910, - 67912 + 67879, + 67881 ], "loc": { "start": { @@ -123438,8 +123257,8 @@ } }, "range": [ - 67869, - 67912 + 67838, + 67881 ], "loc": { "start": { @@ -123465,8 +123284,8 @@ "object": { "type": "ThisExpression", "range": [ - 67935, - 67939 + 67904, + 67908 ], "loc": { "start": { @@ -123483,8 +123302,8 @@ "type": "Identifier", "name": "customCellData", "range": [ - 67940, - 67954 + 67909, + 67923 ], "loc": { "start": { @@ -123498,8 +123317,8 @@ } }, "range": [ - 67935, - 67954 + 67904, + 67923 ], "loc": { "start": { @@ -123516,8 +123335,8 @@ { "type": "ThisExpression", "range": [ - 67955, - 67959 + 67924, + 67928 ], "loc": { "start": { @@ -123534,8 +123353,8 @@ "type": "Identifier", "name": "cell", "range": [ - 67961, - 67965 + 67930, + 67934 ], "loc": { "start": { @@ -123552,8 +123371,8 @@ "type": "Identifier", "name": "idx", "range": [ - 67967, - 67970 + 67936, + 67939 ], "loc": { "start": { @@ -123568,8 +123387,8 @@ } ], "range": [ - 67935, - 67971 + 67904, + 67940 ], "loc": { "start": { @@ -123583,8 +123402,8 @@ } }, "range": [ - 67928, - 67972 + 67897, + 67941 ], "loc": { "start": { @@ -123599,8 +123418,8 @@ } ], "range": [ - 67914, - 67982 + 67883, + 67951 ], "loc": { "start": { @@ -123624,8 +123443,8 @@ "type": "Identifier", "name": "getText", "range": [ - 68009, - 68016 + 67978, + 67985 ], "loc": { "start": { @@ -123643,8 +123462,8 @@ "type": "Identifier", "name": "cell", "range": [ - 68017, - 68021 + 67986, + 67990 ], "loc": { "start": { @@ -123659,8 +123478,8 @@ } ], "range": [ - 68009, - 68022 + 67978, + 67991 ], "loc": { "start": { @@ -123674,8 +123493,8 @@ } }, "range": [ - 68002, - 68023 + 67971, + 67992 ], "loc": { "start": { @@ -123690,8 +123509,8 @@ } ], "range": [ - 67988, - 68033 + 67957, + 68002 ], "loc": { "start": { @@ -123705,8 +123524,8 @@ } }, "range": [ - 67865, - 68033 + 67834, + 68002 ], "loc": { "start": { @@ -123723,8 +123542,8 @@ "type": "Line", "value": "Fire customCellData callback", "range": [ - 67826, - 67856 + 67795, + 67825 ], "loc": { "start": { @@ -123741,8 +123560,8 @@ } ], "range": [ - 67782, - 68039 + 67751, + 68008 ], "loc": { "start": { @@ -123758,8 +123577,8 @@ "generator": false, "expression": false, "range": [ - 67775, - 68039 + 67744, + 68008 ], "loc": { "start": { @@ -123775,8 +123594,8 @@ "kind": "method", "computed": false, "range": [ - 67764, - 68039 + 67733, + 68008 ], "loc": { "start": { @@ -123793,8 +123612,8 @@ "type": "Block", "value": "*\n * Return the data of a given cell\n * @param {DOMElement} cell Cell's DOM object\n * @return {String}\n ", "range": [ - 67634, - 67759 + 67603, + 67728 ], "loc": { "start": { @@ -123813,8 +123632,8 @@ "type": "Block", "value": "*\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 ", "range": [ - 68045, - 68449 + 68014, + 68418 ], "loc": { "start": { @@ -123836,8 +123655,8 @@ "type": "Identifier", "name": "getTableData", "range": [ - 68454, - 68466 + 68423, + 68435 ], "loc": { "start": { @@ -123860,8 +123679,8 @@ "type": "Identifier", "name": "includeHeaders", "range": [ - 68467, - 68481 + 68436, + 68450 ], "loc": { "start": { @@ -123879,8 +123698,8 @@ "value": false, "raw": "false", "range": [ - 68484, - 68489 + 68453, + 68458 ], "loc": { "start": { @@ -123894,8 +123713,8 @@ } }, "range": [ - 68467, - 68489 + 68436, + 68458 ], "loc": { "start": { @@ -123914,8 +123733,8 @@ "type": "Identifier", "name": "excludeHiddenCols", "range": [ - 68491, - 68508 + 68460, + 68477 ], "loc": { "start": { @@ -123933,8 +123752,8 @@ "value": false, "raw": "false", "range": [ - 68511, - 68516 + 68480, + 68485 ], "loc": { "start": { @@ -123948,8 +123767,8 @@ } }, "range": [ - 68491, - 68516 + 68460, + 68485 ], "loc": { "start": { @@ -123975,8 +123794,8 @@ "type": "Identifier", "name": "rows", "range": [ - 68532, - 68536 + 68501, + 68505 ], "loc": { "start": { @@ -123998,8 +123817,8 @@ "object": { "type": "ThisExpression", "range": [ - 68539, - 68543 + 68508, + 68512 ], "loc": { "start": { @@ -124016,8 +123835,8 @@ "type": "Identifier", "name": "tbl", "range": [ - 68544, - 68547 + 68513, + 68516 ], "loc": { "start": { @@ -124031,8 +123850,8 @@ } }, "range": [ - 68539, - 68547 + 68508, + 68516 ], "loc": { "start": { @@ -124049,8 +123868,8 @@ "type": "Identifier", "name": "rows", "range": [ - 68548, - 68552 + 68517, + 68521 ], "loc": { "start": { @@ -124064,8 +123883,8 @@ } }, "range": [ - 68539, - 68552 + 68508, + 68521 ], "loc": { "start": { @@ -124079,8 +123898,8 @@ } }, "range": [ - 68532, - 68552 + 68501, + 68521 ], "loc": { "start": { @@ -124096,8 +123915,8 @@ ], "kind": "let", "range": [ - 68528, - 68553 + 68497, + 68522 ], "loc": { "start": { @@ -124119,8 +123938,8 @@ "type": "Identifier", "name": "nbRows", "range": [ - 68566, - 68572 + 68535, + 68541 ], "loc": { "start": { @@ -124141,8 +123960,8 @@ "object": { "type": "ThisExpression", "range": [ - 68575, - 68579 + 68544, + 68548 ], "loc": { "start": { @@ -124159,8 +123978,8 @@ "type": "Identifier", "name": "getRowsNb", "range": [ - 68580, - 68589 + 68549, + 68558 ], "loc": { "start": { @@ -124174,8 +123993,8 @@ } }, "range": [ - 68575, - 68589 + 68544, + 68558 ], "loc": { "start": { @@ -124194,8 +124013,8 @@ "value": true, "raw": "true", "range": [ - 68590, - 68594 + 68559, + 68563 ], "loc": { "start": { @@ -124210,8 +124029,8 @@ } ], "range": [ - 68575, - 68595 + 68544, + 68564 ], "loc": { "start": { @@ -124225,8 +124044,8 @@ } }, "range": [ - 68566, - 68595 + 68535, + 68564 ], "loc": { "start": { @@ -124242,8 +124061,8 @@ ], "kind": "let", "range": [ - 68562, - 68596 + 68531, + 68565 ], "loc": { "start": { @@ -124265,8 +124084,8 @@ "type": "Identifier", "name": "tblData", "range": [ - 68609, - 68616 + 68578, + 68585 ], "loc": { "start": { @@ -124283,8 +124102,8 @@ "type": "ArrayExpression", "elements": [], "range": [ - 68619, - 68621 + 68588, + 68590 ], "loc": { "start": { @@ -124298,8 +124117,8 @@ } }, "range": [ - 68609, - 68621 + 68578, + 68590 ], "loc": { "start": { @@ -124315,8 +124134,8 @@ ], "kind": "let", "range": [ - 68605, - 68622 + 68574, + 68591 ], "loc": { "start": { @@ -124335,8 +124154,8 @@ "type": "Identifier", "name": "includeHeaders", "range": [ - 68635, - 68649 + 68604, + 68618 ], "loc": { "start": { @@ -124361,8 +124180,8 @@ "type": "Identifier", "name": "headers", "range": [ - 68669, - 68676 + 68638, + 68645 ], "loc": { "start": { @@ -124383,8 +124202,8 @@ "object": { "type": "ThisExpression", "range": [ - 68679, - 68683 + 68648, + 68652 ], "loc": { "start": { @@ -124401,8 +124220,8 @@ "type": "Identifier", "name": "getHeadersText", "range": [ - 68684, - 68698 + 68653, + 68667 ], "loc": { "start": { @@ -124416,8 +124235,8 @@ } }, "range": [ - 68679, - 68698 + 68648, + 68667 ], "loc": { "start": { @@ -124435,8 +124254,8 @@ "type": "Identifier", "name": "excludeHiddenCols", "range": [ - 68699, - 68716 + 68668, + 68685 ], "loc": { "start": { @@ -124451,8 +124270,8 @@ } ], "range": [ - 68679, - 68717 + 68648, + 68686 ], "loc": { "start": { @@ -124466,8 +124285,8 @@ } }, "range": [ - 68669, - 68717 + 68638, + 68686 ], "loc": { "start": { @@ -124483,8 +124302,8 @@ ], "kind": "let", "range": [ - 68665, - 68718 + 68634, + 68687 ], "loc": { "start": { @@ -124508,8 +124327,8 @@ "type": "Identifier", "name": "tblData", "range": [ - 68731, - 68738 + 68700, + 68707 ], "loc": { "start": { @@ -124526,8 +124345,8 @@ "type": "Identifier", "name": "push", "range": [ - 68739, - 68743 + 68708, + 68712 ], "loc": { "start": { @@ -124541,8 +124360,8 @@ } }, "range": [ - 68731, - 68743 + 68700, + 68712 ], "loc": { "start": { @@ -124567,8 +124386,8 @@ "object": { "type": "ThisExpression", "range": [ - 68745, - 68749 + 68714, + 68718 ], "loc": { "start": { @@ -124585,8 +124404,8 @@ "type": "Identifier", "name": "getHeadersRowIndex", "range": [ - 68750, - 68768 + 68719, + 68737 ], "loc": { "start": { @@ -124600,8 +124419,8 @@ } }, "range": [ - 68745, - 68768 + 68714, + 68737 ], "loc": { "start": { @@ -124616,8 +124435,8 @@ }, "arguments": [], "range": [ - 68745, - 68770 + 68714, + 68739 ], "loc": { "start": { @@ -124634,8 +124453,8 @@ "type": "Identifier", "name": "headers", "range": [ - 68772, - 68779 + 68741, + 68748 ], "loc": { "start": { @@ -124650,8 +124469,8 @@ } ], "range": [ - 68744, - 68780 + 68713, + 68749 ], "loc": { "start": { @@ -124666,8 +124485,8 @@ } ], "range": [ - 68731, - 68781 + 68700, + 68750 ], "loc": { "start": { @@ -124681,8 +124500,8 @@ } }, "range": [ - 68731, - 68782 + 68700, + 68751 ], "loc": { "start": { @@ -124697,8 +124516,8 @@ } ], "range": [ - 68651, - 68792 + 68620, + 68761 ], "loc": { "start": { @@ -124713,8 +124532,8 @@ }, "alternate": null, "range": [ - 68631, - 68792 + 68600, + 68761 ], "loc": { "start": { @@ -124738,8 +124557,8 @@ "type": "Identifier", "name": "k", "range": [ - 68810, - 68811 + 68779, + 68780 ], "loc": { "start": { @@ -124758,8 +124577,8 @@ "object": { "type": "ThisExpression", "range": [ - 68814, - 68818 + 68783, + 68787 ], "loc": { "start": { @@ -124776,8 +124595,8 @@ "type": "Identifier", "name": "refRow", "range": [ - 68819, - 68825 + 68788, + 68794 ], "loc": { "start": { @@ -124791,8 +124610,8 @@ } }, "range": [ - 68814, - 68825 + 68783, + 68794 ], "loc": { "start": { @@ -124806,8 +124625,8 @@ } }, "range": [ - 68810, - 68825 + 68779, + 68794 ], "loc": { "start": { @@ -124823,8 +124642,8 @@ ], "kind": "let", "range": [ - 68806, - 68825 + 68775, + 68794 ], "loc": { "start": { @@ -124844,8 +124663,8 @@ "type": "Identifier", "name": "k", "range": [ - 68827, - 68828 + 68796, + 68797 ], "loc": { "start": { @@ -124862,8 +124681,8 @@ "type": "Identifier", "name": "nbRows", "range": [ - 68831, - 68837 + 68800, + 68806 ], "loc": { "start": { @@ -124877,8 +124696,8 @@ } }, "range": [ - 68827, - 68837 + 68796, + 68806 ], "loc": { "start": { @@ -124898,8 +124717,8 @@ "type": "Identifier", "name": "k", "range": [ - 68839, - 68840 + 68808, + 68809 ], "loc": { "start": { @@ -124914,8 +124733,8 @@ }, "prefix": false, "range": [ - 68839, - 68842 + 68808, + 68811 ], "loc": { "start": { @@ -124940,8 +124759,8 @@ "type": "Identifier", "name": "rowData", "range": [ - 68862, - 68869 + 68831, + 68838 ], "loc": { "start": { @@ -124961,8 +124780,8 @@ "type": "Identifier", "name": "k", "range": [ - 68873, - 68874 + 68842, + 68843 ], "loc": { "start": { @@ -124979,8 +124798,8 @@ "type": "ArrayExpression", "elements": [], "range": [ - 68876, - 68878 + 68845, + 68847 ], "loc": { "start": { @@ -124995,8 +124814,8 @@ } ], "range": [ - 68872, - 68879 + 68841, + 68848 ], "loc": { "start": { @@ -125010,8 +124829,8 @@ } }, "range": [ - 68862, - 68879 + 68831, + 68848 ], "loc": { "start": { @@ -125027,8 +124846,8 @@ ], "kind": "let", "range": [ - 68858, - 68880 + 68827, + 68849 ], "loc": { "start": { @@ -125050,8 +124869,8 @@ "type": "Identifier", "name": "cells", "range": [ - 68897, - 68902 + 68866, + 68871 ], "loc": { "start": { @@ -125074,8 +124893,8 @@ "type": "Identifier", "name": "rows", "range": [ - 68905, - 68909 + 68874, + 68878 ], "loc": { "start": { @@ -125092,8 +124911,8 @@ "type": "Identifier", "name": "k", "range": [ - 68910, - 68911 + 68879, + 68880 ], "loc": { "start": { @@ -125107,8 +124926,8 @@ } }, "range": [ - 68905, - 68912 + 68874, + 68881 ], "loc": { "start": { @@ -125125,8 +124944,8 @@ "type": "Identifier", "name": "cells", "range": [ - 68913, - 68918 + 68882, + 68887 ], "loc": { "start": { @@ -125140,8 +124959,8 @@ } }, "range": [ - 68905, - 68918 + 68874, + 68887 ], "loc": { "start": { @@ -125155,8 +124974,8 @@ } }, "range": [ - 68897, - 68918 + 68866, + 68887 ], "loc": { "start": { @@ -125172,8 +124991,8 @@ ], "kind": "let", "range": [ - 68893, - 68919 + 68862, + 68888 ], "loc": { "start": { @@ -125197,8 +125016,8 @@ "type": "Identifier", "name": "j", "range": [ - 68941, - 68942 + 68910, + 68911 ], "loc": { "start": { @@ -125216,8 +125035,8 @@ "value": 0, "raw": "0", "range": [ - 68945, - 68946 + 68914, + 68915 ], "loc": { "start": { @@ -125231,8 +125050,8 @@ } }, "range": [ - 68941, - 68946 + 68910, + 68915 ], "loc": { "start": { @@ -125251,8 +125070,8 @@ "type": "Identifier", "name": "len", "range": [ - 68948, - 68951 + 68917, + 68920 ], "loc": { "start": { @@ -125272,8 +125091,8 @@ "type": "Identifier", "name": "cells", "range": [ - 68954, - 68959 + 68923, + 68928 ], "loc": { "start": { @@ -125290,8 +125109,8 @@ "type": "Identifier", "name": "length", "range": [ - 68960, - 68966 + 68929, + 68935 ], "loc": { "start": { @@ -125305,8 +125124,8 @@ } }, "range": [ - 68954, - 68966 + 68923, + 68935 ], "loc": { "start": { @@ -125320,8 +125139,8 @@ } }, "range": [ - 68948, - 68966 + 68917, + 68935 ], "loc": { "start": { @@ -125337,8 +125156,8 @@ ], "kind": "let", "range": [ - 68937, - 68966 + 68906, + 68935 ], "loc": { "start": { @@ -125358,8 +125177,8 @@ "type": "Identifier", "name": "j", "range": [ - 68968, - 68969 + 68937, + 68938 ], "loc": { "start": { @@ -125376,8 +125195,8 @@ "type": "Identifier", "name": "len", "range": [ - 68972, - 68975 + 68941, + 68944 ], "loc": { "start": { @@ -125391,8 +125210,8 @@ } }, "range": [ - 68968, - 68975 + 68937, + 68944 ], "loc": { "start": { @@ -125412,8 +125231,8 @@ "type": "Identifier", "name": "j", "range": [ - 68977, - 68978 + 68946, + 68947 ], "loc": { "start": { @@ -125428,8 +125247,8 @@ }, "prefix": false, "range": [ - 68977, - 68980 + 68946, + 68949 ], "loc": { "start": { @@ -125454,8 +125273,8 @@ "type": "Identifier", "name": "excludeHiddenCols", "range": [ - 69004, - 69021 + 68973, + 68990 ], "loc": { "start": { @@ -125476,8 +125295,8 @@ "object": { "type": "ThisExpression", "range": [ - 69025, - 69029 + 68994, + 68998 ], "loc": { "start": { @@ -125494,8 +125313,8 @@ "type": "Identifier", "name": "hasExtension", "range": [ - 69030, - 69042 + 68999, + 69011 ], "loc": { "start": { @@ -125509,8 +125328,8 @@ } }, "range": [ - 69025, - 69042 + 68994, + 69011 ], "loc": { "start": { @@ -125529,8 +125348,8 @@ "value": "colsVisibility", "raw": "'colsVisibility'", "range": [ - 69043, - 69059 + 69012, + 69028 ], "loc": { "start": { @@ -125545,8 +125364,8 @@ } ], "range": [ - 69025, - 69060 + 68994, + 69029 ], "loc": { "start": { @@ -125560,8 +125379,8 @@ } }, "range": [ - 69004, - 69060 + 68973, + 69029 ], "loc": { "start": { @@ -125592,8 +125411,8 @@ "object": { "type": "ThisExpression", "range": [ - 69088, - 69092 + 69057, + 69061 ], "loc": { "start": { @@ -125610,8 +125429,8 @@ "type": "Identifier", "name": "extension", "range": [ - 69093, - 69102 + 69062, + 69071 ], "loc": { "start": { @@ -125625,8 +125444,8 @@ } }, "range": [ - 69088, - 69102 + 69057, + 69071 ], "loc": { "start": { @@ -125645,8 +125464,8 @@ "value": "colsVisibility", "raw": "'colsVisibility'", "range": [ - 69103, - 69119 + 69072, + 69088 ], "loc": { "start": { @@ -125661,8 +125480,8 @@ } ], "range": [ - 69088, - 69120 + 69057, + 69089 ], "loc": { "start": { @@ -125679,8 +125498,8 @@ "type": "Identifier", "name": "isColHidden", "range": [ - 69121, - 69132 + 69090, + 69101 ], "loc": { "start": { @@ -125694,8 +125513,8 @@ } }, "range": [ - 69088, - 69132 + 69057, + 69101 ], "loc": { "start": { @@ -125713,8 +125532,8 @@ "type": "Identifier", "name": "j", "range": [ - 69133, - 69134 + 69102, + 69103 ], "loc": { "start": { @@ -125729,8 +125548,8 @@ } ], "range": [ - 69088, - 69135 + 69057, + 69104 ], "loc": { "start": { @@ -125750,8 +125569,8 @@ "type": "ContinueStatement", "label": null, "range": [ - 69163, - 69172 + 69132, + 69141 ], "loc": { "start": { @@ -125766,8 +125585,8 @@ } ], "range": [ - 69137, - 69194 + 69106, + 69163 ], "loc": { "start": { @@ -125782,8 +125601,8 @@ }, "alternate": null, "range": [ - 69084, - 69194 + 69053, + 69163 ], "loc": { "start": { @@ -125798,8 +125617,8 @@ } ], "range": [ - 69062, - 69212 + 69031, + 69181 ], "loc": { "start": { @@ -125814,8 +125633,8 @@ }, "alternate": null, "range": [ - 69000, - 69212 + 68969, + 69181 ], "loc": { "start": { @@ -125837,8 +125656,8 @@ "type": "Identifier", "name": "cellData", "range": [ - 69233, - 69241 + 69202, + 69210 ], "loc": { "start": { @@ -125859,8 +125678,8 @@ "object": { "type": "ThisExpression", "range": [ - 69244, - 69248 + 69213, + 69217 ], "loc": { "start": { @@ -125877,8 +125696,8 @@ "type": "Identifier", "name": "getCellData", "range": [ - 69249, - 69260 + 69218, + 69229 ], "loc": { "start": { @@ -125892,8 +125711,8 @@ } }, "range": [ - 69244, - 69260 + 69213, + 69229 ], "loc": { "start": { @@ -125914,8 +125733,8 @@ "type": "Identifier", "name": "cells", "range": [ - 69261, - 69266 + 69230, + 69235 ], "loc": { "start": { @@ -125932,8 +125751,8 @@ "type": "Identifier", "name": "j", "range": [ - 69267, - 69268 + 69236, + 69237 ], "loc": { "start": { @@ -125947,8 +125766,8 @@ } }, "range": [ - 69261, - 69269 + 69230, + 69238 ], "loc": { "start": { @@ -125963,8 +125782,8 @@ } ], "range": [ - 69244, - 69270 + 69213, + 69239 ], "loc": { "start": { @@ -125978,8 +125797,8 @@ } }, "range": [ - 69233, - 69270 + 69202, + 69239 ], "loc": { "start": { @@ -125995,8 +125814,8 @@ ], "kind": "let", "range": [ - 69229, - 69271 + 69198, + 69240 ], "loc": { "start": { @@ -126023,8 +125842,8 @@ "type": "Identifier", "name": "rowData", "range": [ - 69288, - 69295 + 69257, + 69264 ], "loc": { "start": { @@ -126042,8 +125861,8 @@ "value": 1, "raw": "1", "range": [ - 69296, - 69297 + 69265, + 69266 ], "loc": { "start": { @@ -126057,8 +125876,8 @@ } }, "range": [ - 69288, - 69298 + 69257, + 69267 ], "loc": { "start": { @@ -126075,8 +125894,8 @@ "type": "Identifier", "name": "push", "range": [ - 69299, - 69303 + 69268, + 69272 ], "loc": { "start": { @@ -126090,8 +125909,8 @@ } }, "range": [ - 69288, - 69303 + 69257, + 69272 ], "loc": { "start": { @@ -126109,8 +125928,8 @@ "type": "Identifier", "name": "cellData", "range": [ - 69304, - 69312 + 69273, + 69281 ], "loc": { "start": { @@ -126125,8 +125944,8 @@ } ], "range": [ - 69288, - 69313 + 69257, + 69282 ], "loc": { "start": { @@ -126140,8 +125959,8 @@ } }, "range": [ - 69288, - 69314 + 69257, + 69283 ], "loc": { "start": { @@ -126156,8 +125975,8 @@ } ], "range": [ - 68982, - 69328 + 68951, + 69297 ], "loc": { "start": { @@ -126171,8 +125990,8 @@ } }, "range": [ - 68932, - 69328 + 68901, + 69297 ], "loc": { "start": { @@ -126196,8 +126015,8 @@ "type": "Identifier", "name": "tblData", "range": [ - 69341, - 69348 + 69310, + 69317 ], "loc": { "start": { @@ -126214,8 +126033,8 @@ "type": "Identifier", "name": "push", "range": [ - 69349, - 69353 + 69318, + 69322 ], "loc": { "start": { @@ -126229,8 +126048,8 @@ } }, "range": [ - 69341, - 69353 + 69310, + 69322 ], "loc": { "start": { @@ -126248,8 +126067,8 @@ "type": "Identifier", "name": "rowData", "range": [ - 69354, - 69361 + 69323, + 69330 ], "loc": { "start": { @@ -126264,8 +126083,8 @@ } ], "range": [ - 69341, - 69362 + 69310, + 69331 ], "loc": { "start": { @@ -126279,8 +126098,8 @@ } }, "range": [ - 69341, - 69363 + 69310, + 69332 ], "loc": { "start": { @@ -126295,8 +126114,8 @@ } ], "range": [ - 68844, - 69373 + 68813, + 69342 ], "loc": { "start": { @@ -126310,8 +126129,8 @@ } }, "range": [ - 68801, - 69373 + 68770, + 69342 ], "loc": { "start": { @@ -126330,8 +126149,8 @@ "type": "Identifier", "name": "tblData", "range": [ - 69389, - 69396 + 69358, + 69365 ], "loc": { "start": { @@ -126345,8 +126164,8 @@ } }, "range": [ - 69382, - 69397 + 69351, + 69366 ], "loc": { "start": { @@ -126361,8 +126180,8 @@ } ], "range": [ - 68518, - 69403 + 68487, + 69372 ], "loc": { "start": { @@ -126378,8 +126197,8 @@ "generator": false, "expression": false, "range": [ - 68466, - 69403 + 68435, + 69372 ], "loc": { "start": { @@ -126395,8 +126214,8 @@ "kind": "method", "computed": false, "range": [ - 68454, - 69403 + 68423, + 69372 ], "loc": { "start": { @@ -126413,8 +126232,8 @@ "type": "Block", "value": "*\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 ", "range": [ - 68045, - 68449 + 68014, + 68418 ], "loc": { "start": { @@ -126433,8 +126252,8 @@ "type": "Block", "value": "*\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 ", "range": [ - 69409, - 69816 + 69378, + 69785 ], "loc": { "start": { @@ -126456,8 +126275,8 @@ "type": "Identifier", "name": "getFilteredData", "range": [ - 69821, - 69836 + 69790, + 69805 ], "loc": { "start": { @@ -126480,8 +126299,8 @@ "type": "Identifier", "name": "includeHeaders", "range": [ - 69837, - 69851 + 69806, + 69820 ], "loc": { "start": { @@ -126499,8 +126318,8 @@ "value": false, "raw": "false", "range": [ - 69854, - 69859 + 69823, + 69828 ], "loc": { "start": { @@ -126514,8 +126333,8 @@ } }, "range": [ - 69837, - 69859 + 69806, + 69828 ], "loc": { "start": { @@ -126534,8 +126353,8 @@ "type": "Identifier", "name": "excludeHiddenCols", "range": [ - 69861, - 69878 + 69830, + 69847 ], "loc": { "start": { @@ -126553,8 +126372,8 @@ "value": false, "raw": "false", "range": [ - 69881, - 69886 + 69850, + 69855 ], "loc": { "start": { @@ -126568,8 +126387,8 @@ } }, "range": [ - 69861, - 69886 + 69830, + 69855 ], "loc": { "start": { @@ -126597,8 +126416,8 @@ "object": { "type": "ThisExpression", "range": [ - 69903, - 69907 + 69872, + 69876 ], "loc": { "start": { @@ -126615,8 +126434,8 @@ "type": "Identifier", "name": "validRowsIndex", "range": [ - 69908, - 69922 + 69877, + 69891 ], "loc": { "start": { @@ -126630,8 +126449,8 @@ } }, "range": [ - 69903, - 69922 + 69872, + 69891 ], "loc": { "start": { @@ -126646,8 +126465,8 @@ }, "prefix": true, "range": [ - 69902, - 69922 + 69871, + 69891 ], "loc": { "start": { @@ -126669,8 +126488,8 @@ "type": "ArrayExpression", "elements": [], "range": [ - 69945, - 69947 + 69914, + 69916 ], "loc": { "start": { @@ -126684,8 +126503,8 @@ } }, "range": [ - 69938, - 69948 + 69907, + 69917 ], "loc": { "start": { @@ -126700,8 +126519,8 @@ } ], "range": [ - 69924, - 69958 + 69893, + 69927 ], "loc": { "start": { @@ -126716,8 +126535,8 @@ }, "alternate": null, "range": [ - 69898, - 69958 + 69867, + 69927 ], "loc": { "start": { @@ -126739,8 +126558,8 @@ "type": "Identifier", "name": "rows", "range": [ - 69971, - 69975 + 69940, + 69944 ], "loc": { "start": { @@ -126762,8 +126581,8 @@ "object": { "type": "ThisExpression", "range": [ - 69978, - 69982 + 69947, + 69951 ], "loc": { "start": { @@ -126780,8 +126599,8 @@ "type": "Identifier", "name": "tbl", "range": [ - 69983, - 69986 + 69952, + 69955 ], "loc": { "start": { @@ -126795,8 +126614,8 @@ } }, "range": [ - 69978, - 69986 + 69947, + 69955 ], "loc": { "start": { @@ -126813,8 +126632,8 @@ "type": "Identifier", "name": "rows", "range": [ - 69987, - 69991 + 69956, + 69960 ], "loc": { "start": { @@ -126828,8 +126647,8 @@ } }, "range": [ - 69978, - 69991 + 69947, + 69960 ], "loc": { "start": { @@ -126843,8 +126662,8 @@ } }, "range": [ - 69971, - 69991 + 69940, + 69960 ], "loc": { "start": { @@ -126863,8 +126682,8 @@ "type": "Identifier", "name": "filteredData", "range": [ - 70005, - 70017 + 69974, + 69986 ], "loc": { "start": { @@ -126881,8 +126700,8 @@ "type": "ArrayExpression", "elements": [], "range": [ - 70020, - 70022 + 69989, + 69991 ], "loc": { "start": { @@ -126896,8 +126715,8 @@ } }, "range": [ - 70005, - 70022 + 69974, + 69991 ], "loc": { "start": { @@ -126913,8 +126732,8 @@ ], "kind": "let", "range": [ - 69967, - 70023 + 69936, + 69992 ], "loc": { "start": { @@ -126933,8 +126752,8 @@ "type": "Identifier", "name": "includeHeaders", "range": [ - 70036, - 70050 + 70005, + 70019 ], "loc": { "start": { @@ -126959,8 +126778,8 @@ "type": "Identifier", "name": "headers", "range": [ - 70070, - 70077 + 70039, + 70046 ], "loc": { "start": { @@ -126981,8 +126800,8 @@ "object": { "type": "ThisExpression", "range": [ - 70080, - 70084 + 70049, + 70053 ], "loc": { "start": { @@ -126999,8 +126818,8 @@ "type": "Identifier", "name": "getHeadersText", "range": [ - 70085, - 70099 + 70054, + 70068 ], "loc": { "start": { @@ -127014,8 +126833,8 @@ } }, "range": [ - 70080, - 70099 + 70049, + 70068 ], "loc": { "start": { @@ -127033,8 +126852,8 @@ "type": "Identifier", "name": "excludeHiddenCols", "range": [ - 70100, - 70117 + 70069, + 70086 ], "loc": { "start": { @@ -127049,8 +126868,8 @@ } ], "range": [ - 70080, - 70118 + 70049, + 70087 ], "loc": { "start": { @@ -127064,8 +126883,8 @@ } }, "range": [ - 70070, - 70118 + 70039, + 70087 ], "loc": { "start": { @@ -127081,8 +126900,8 @@ ], "kind": "let", "range": [ - 70066, - 70119 + 70035, + 70088 ], "loc": { "start": { @@ -127106,8 +126925,8 @@ "type": "Identifier", "name": "filteredData", "range": [ - 70132, - 70144 + 70101, + 70113 ], "loc": { "start": { @@ -127124,8 +126943,8 @@ "type": "Identifier", "name": "push", "range": [ - 70145, - 70149 + 70114, + 70118 ], "loc": { "start": { @@ -127139,8 +126958,8 @@ } }, "range": [ - 70132, - 70149 + 70101, + 70118 ], "loc": { "start": { @@ -127165,8 +126984,8 @@ "object": { "type": "ThisExpression", "range": [ - 70151, - 70155 + 70120, + 70124 ], "loc": { "start": { @@ -127183,8 +127002,8 @@ "type": "Identifier", "name": "getHeadersRowIndex", "range": [ - 70156, - 70174 + 70125, + 70143 ], "loc": { "start": { @@ -127198,8 +127017,8 @@ } }, "range": [ - 70151, - 70174 + 70120, + 70143 ], "loc": { "start": { @@ -127214,8 +127033,8 @@ }, "arguments": [], "range": [ - 70151, - 70176 + 70120, + 70145 ], "loc": { "start": { @@ -127232,8 +127051,8 @@ "type": "Identifier", "name": "headers", "range": [ - 70178, - 70185 + 70147, + 70154 ], "loc": { "start": { @@ -127248,8 +127067,8 @@ } ], "range": [ - 70150, - 70186 + 70119, + 70155 ], "loc": { "start": { @@ -127264,8 +127083,8 @@ } ], "range": [ - 70132, - 70187 + 70101, + 70156 ], "loc": { "start": { @@ -127279,8 +127098,8 @@ } }, "range": [ - 70132, - 70188 + 70101, + 70157 ], "loc": { "start": { @@ -127295,8 +127114,8 @@ } ], "range": [ - 70052, - 70198 + 70021, + 70167 ], "loc": { "start": { @@ -127311,8 +127130,8 @@ }, "alternate": null, "range": [ - 70032, - 70198 + 70001, + 70167 ], "loc": { "start": { @@ -127334,8 +127153,8 @@ "type": "Identifier", "name": "validRows", "range": [ - 70212, - 70221 + 70181, + 70190 ], "loc": { "start": { @@ -127356,8 +127175,8 @@ "object": { "type": "ThisExpression", "range": [ - 70224, - 70228 + 70193, + 70197 ], "loc": { "start": { @@ -127374,8 +127193,8 @@ "type": "Identifier", "name": "getValidRows", "range": [ - 70229, - 70241 + 70198, + 70210 ], "loc": { "start": { @@ -127389,8 +127208,8 @@ } }, "range": [ - 70224, - 70241 + 70193, + 70210 ], "loc": { "start": { @@ -127409,8 +127228,8 @@ "value": true, "raw": "true", "range": [ - 70242, - 70246 + 70211, + 70215 ], "loc": { "start": { @@ -127425,8 +127244,8 @@ } ], "range": [ - 70224, - 70247 + 70193, + 70216 ], "loc": { "start": { @@ -127440,8 +127259,8 @@ } }, "range": [ - 70212, - 70247 + 70181, + 70216 ], "loc": { "start": { @@ -127457,8 +127276,8 @@ ], "kind": "let", "range": [ - 70208, - 70248 + 70177, + 70217 ], "loc": { "start": { @@ -127482,8 +127301,8 @@ "type": "Identifier", "name": "i", "range": [ - 70266, - 70267 + 70235, + 70236 ], "loc": { "start": { @@ -127501,8 +127320,8 @@ "value": 0, "raw": "0", "range": [ - 70270, - 70271 + 70239, + 70240 ], "loc": { "start": { @@ -127516,8 +127335,8 @@ } }, "range": [ - 70266, - 70271 + 70235, + 70240 ], "loc": { "start": { @@ -127533,8 +127352,8 @@ ], "kind": "let", "range": [ - 70262, - 70271 + 70231, + 70240 ], "loc": { "start": { @@ -127554,8 +127373,8 @@ "type": "Identifier", "name": "i", "range": [ - 70273, - 70274 + 70242, + 70243 ], "loc": { "start": { @@ -127575,8 +127394,8 @@ "type": "Identifier", "name": "validRows", "range": [ - 70277, - 70286 + 70246, + 70255 ], "loc": { "start": { @@ -127593,8 +127412,8 @@ "type": "Identifier", "name": "length", "range": [ - 70287, - 70293 + 70256, + 70262 ], "loc": { "start": { @@ -127608,8 +127427,8 @@ } }, "range": [ - 70277, - 70293 + 70246, + 70262 ], "loc": { "start": { @@ -127623,8 +127442,8 @@ } }, "range": [ - 70273, - 70293 + 70242, + 70262 ], "loc": { "start": { @@ -127644,8 +127463,8 @@ "type": "Identifier", "name": "i", "range": [ - 70295, - 70296 + 70264, + 70265 ], "loc": { "start": { @@ -127660,8 +127479,8 @@ }, "prefix": false, "range": [ - 70295, - 70298 + 70264, + 70267 ], "loc": { "start": { @@ -127686,8 +127505,8 @@ "type": "Identifier", "name": "rData", "range": [ - 70318, - 70323 + 70287, + 70292 ], "loc": { "start": { @@ -127712,8 +127531,8 @@ "object": { "type": "ThisExpression", "range": [ - 70327, - 70331 + 70296, + 70300 ], "loc": { "start": { @@ -127730,8 +127549,8 @@ "type": "Identifier", "name": "validRowsIndex", "range": [ - 70332, - 70346 + 70301, + 70315 ], "loc": { "start": { @@ -127745,8 +127564,8 @@ } }, "range": [ - 70327, - 70346 + 70296, + 70315 ], "loc": { "start": { @@ -127763,8 +127582,8 @@ "type": "Identifier", "name": "i", "range": [ - 70347, - 70348 + 70316, + 70317 ], "loc": { "start": { @@ -127778,8 +127597,8 @@ } }, "range": [ - 70327, - 70349 + 70296, + 70318 ], "loc": { "start": { @@ -127796,8 +127615,8 @@ "type": "ArrayExpression", "elements": [], "range": [ - 70351, - 70353 + 70320, + 70322 ], "loc": { "start": { @@ -127812,8 +127631,8 @@ } ], "range": [ - 70326, - 70354 + 70295, + 70323 ], "loc": { "start": { @@ -127827,8 +127646,8 @@ } }, "range": [ - 70318, - 70354 + 70287, + 70323 ], "loc": { "start": { @@ -127847,8 +127666,8 @@ "type": "Identifier", "name": "cells", "range": [ - 70372, - 70377 + 70341, + 70346 ], "loc": { "start": { @@ -127871,8 +127690,8 @@ "type": "Identifier", "name": "rows", "range": [ - 70380, - 70384 + 70349, + 70353 ], "loc": { "start": { @@ -127894,8 +127713,8 @@ "object": { "type": "ThisExpression", "range": [ - 70385, - 70389 + 70354, + 70358 ], "loc": { "start": { @@ -127912,8 +127731,8 @@ "type": "Identifier", "name": "validRowsIndex", "range": [ - 70390, - 70404 + 70359, + 70373 ], "loc": { "start": { @@ -127927,8 +127746,8 @@ } }, "range": [ - 70385, - 70404 + 70354, + 70373 ], "loc": { "start": { @@ -127945,8 +127764,8 @@ "type": "Identifier", "name": "i", "range": [ - 70405, - 70406 + 70374, + 70375 ], "loc": { "start": { @@ -127960,8 +127779,8 @@ } }, "range": [ - 70385, - 70407 + 70354, + 70376 ], "loc": { "start": { @@ -127975,8 +127794,8 @@ } }, "range": [ - 70380, - 70408 + 70349, + 70377 ], "loc": { "start": { @@ -127993,8 +127812,8 @@ "type": "Identifier", "name": "cells", "range": [ - 70409, - 70414 + 70378, + 70383 ], "loc": { "start": { @@ -128008,8 +127827,8 @@ } }, "range": [ - 70380, - 70414 + 70349, + 70383 ], "loc": { "start": { @@ -128023,8 +127842,8 @@ } }, "range": [ - 70372, - 70414 + 70341, + 70383 ], "loc": { "start": { @@ -128040,8 +127859,8 @@ ], "kind": "let", "range": [ - 70314, - 70415 + 70283, + 70384 ], "loc": { "start": { @@ -128065,8 +127884,8 @@ "type": "Identifier", "name": "k", "range": [ - 70437, - 70438 + 70406, + 70407 ], "loc": { "start": { @@ -128084,8 +127903,8 @@ "value": 0, "raw": "0", "range": [ - 70441, - 70442 + 70410, + 70411 ], "loc": { "start": { @@ -128099,8 +127918,8 @@ } }, "range": [ - 70437, - 70442 + 70406, + 70411 ], "loc": { "start": { @@ -128116,8 +127935,8 @@ ], "kind": "let", "range": [ - 70433, - 70442 + 70402, + 70411 ], "loc": { "start": { @@ -128137,8 +127956,8 @@ "type": "Identifier", "name": "k", "range": [ - 70444, - 70445 + 70413, + 70414 ], "loc": { "start": { @@ -128158,8 +127977,8 @@ "type": "Identifier", "name": "cells", "range": [ - 70448, - 70453 + 70417, + 70422 ], "loc": { "start": { @@ -128176,8 +127995,8 @@ "type": "Identifier", "name": "length", "range": [ - 70454, - 70460 + 70423, + 70429 ], "loc": { "start": { @@ -128191,8 +128010,8 @@ } }, "range": [ - 70448, - 70460 + 70417, + 70429 ], "loc": { "start": { @@ -128206,8 +128025,8 @@ } }, "range": [ - 70444, - 70460 + 70413, + 70429 ], "loc": { "start": { @@ -128227,8 +128046,8 @@ "type": "Identifier", "name": "k", "range": [ - 70462, - 70463 + 70431, + 70432 ], "loc": { "start": { @@ -128243,8 +128062,8 @@ }, "prefix": false, "range": [ - 70462, - 70465 + 70431, + 70434 ], "loc": { "start": { @@ -128269,8 +128088,8 @@ "type": "Identifier", "name": "excludeHiddenCols", "range": [ - 70489, - 70506 + 70458, + 70475 ], "loc": { "start": { @@ -128291,8 +128110,8 @@ "object": { "type": "ThisExpression", "range": [ - 70510, - 70514 + 70479, + 70483 ], "loc": { "start": { @@ -128309,8 +128128,8 @@ "type": "Identifier", "name": "hasExtension", "range": [ - 70515, - 70527 + 70484, + 70496 ], "loc": { "start": { @@ -128324,8 +128143,8 @@ } }, "range": [ - 70510, - 70527 + 70479, + 70496 ], "loc": { "start": { @@ -128344,8 +128163,8 @@ "value": "colsVisibility", "raw": "'colsVisibility'", "range": [ - 70528, - 70544 + 70497, + 70513 ], "loc": { "start": { @@ -128360,8 +128179,8 @@ } ], "range": [ - 70510, - 70545 + 70479, + 70514 ], "loc": { "start": { @@ -128375,8 +128194,8 @@ } }, "range": [ - 70489, - 70545 + 70458, + 70514 ], "loc": { "start": { @@ -128407,8 +128226,8 @@ "object": { "type": "ThisExpression", "range": [ - 70573, - 70577 + 70542, + 70546 ], "loc": { "start": { @@ -128425,8 +128244,8 @@ "type": "Identifier", "name": "extension", "range": [ - 70578, - 70587 + 70547, + 70556 ], "loc": { "start": { @@ -128440,8 +128259,8 @@ } }, "range": [ - 70573, - 70587 + 70542, + 70556 ], "loc": { "start": { @@ -128460,8 +128279,8 @@ "value": "colsVisibility", "raw": "'colsVisibility'", "range": [ - 70588, - 70604 + 70557, + 70573 ], "loc": { "start": { @@ -128476,8 +128295,8 @@ } ], "range": [ - 70573, - 70605 + 70542, + 70574 ], "loc": { "start": { @@ -128494,8 +128313,8 @@ "type": "Identifier", "name": "isColHidden", "range": [ - 70606, - 70617 + 70575, + 70586 ], "loc": { "start": { @@ -128509,8 +128328,8 @@ } }, "range": [ - 70573, - 70617 + 70542, + 70586 ], "loc": { "start": { @@ -128528,8 +128347,8 @@ "type": "Identifier", "name": "k", "range": [ - 70618, - 70619 + 70587, + 70588 ], "loc": { "start": { @@ -128544,8 +128363,8 @@ } ], "range": [ - 70573, - 70620 + 70542, + 70589 ], "loc": { "start": { @@ -128565,8 +128384,8 @@ "type": "ContinueStatement", "label": null, "range": [ - 70648, - 70657 + 70617, + 70626 ], "loc": { "start": { @@ -128581,8 +128400,8 @@ } ], "range": [ - 70622, - 70679 + 70591, + 70648 ], "loc": { "start": { @@ -128597,8 +128416,8 @@ }, "alternate": null, "range": [ - 70569, - 70679 + 70538, + 70648 ], "loc": { "start": { @@ -128613,8 +128432,8 @@ } ], "range": [ - 70547, - 70697 + 70516, + 70666 ], "loc": { "start": { @@ -128629,8 +128448,8 @@ }, "alternate": null, "range": [ - 70485, - 70697 + 70454, + 70666 ], "loc": { "start": { @@ -128652,8 +128471,8 @@ "type": "Identifier", "name": "cellData", "range": [ - 70718, - 70726 + 70687, + 70695 ], "loc": { "start": { @@ -128674,8 +128493,8 @@ "object": { "type": "ThisExpression", "range": [ - 70729, - 70733 + 70698, + 70702 ], "loc": { "start": { @@ -128692,8 +128511,8 @@ "type": "Identifier", "name": "getCellData", "range": [ - 70734, - 70745 + 70703, + 70714 ], "loc": { "start": { @@ -128707,8 +128526,8 @@ } }, "range": [ - 70729, - 70745 + 70698, + 70714 ], "loc": { "start": { @@ -128729,8 +128548,8 @@ "type": "Identifier", "name": "cells", "range": [ - 70746, - 70751 + 70715, + 70720 ], "loc": { "start": { @@ -128747,8 +128566,8 @@ "type": "Identifier", "name": "k", "range": [ - 70752, - 70753 + 70721, + 70722 ], "loc": { "start": { @@ -128762,8 +128581,8 @@ } }, "range": [ - 70746, - 70754 + 70715, + 70723 ], "loc": { "start": { @@ -128778,8 +128597,8 @@ } ], "range": [ - 70729, - 70755 + 70698, + 70724 ], "loc": { "start": { @@ -128793,8 +128612,8 @@ } }, "range": [ - 70718, - 70755 + 70687, + 70724 ], "loc": { "start": { @@ -128810,8 +128629,8 @@ ], "kind": "let", "range": [ - 70714, - 70756 + 70683, + 70725 ], "loc": { "start": { @@ -128838,8 +128657,8 @@ "type": "Identifier", "name": "rData", "range": [ - 70773, - 70778 + 70742, + 70747 ], "loc": { "start": { @@ -128857,8 +128676,8 @@ "value": 1, "raw": "1", "range": [ - 70779, - 70780 + 70748, + 70749 ], "loc": { "start": { @@ -128872,8 +128691,8 @@ } }, "range": [ - 70773, - 70781 + 70742, + 70750 ], "loc": { "start": { @@ -128890,8 +128709,8 @@ "type": "Identifier", "name": "push", "range": [ - 70782, - 70786 + 70751, + 70755 ], "loc": { "start": { @@ -128905,8 +128724,8 @@ } }, "range": [ - 70773, - 70786 + 70742, + 70755 ], "loc": { "start": { @@ -128924,8 +128743,8 @@ "type": "Identifier", "name": "cellData", "range": [ - 70787, - 70795 + 70756, + 70764 ], "loc": { "start": { @@ -128940,8 +128759,8 @@ } ], "range": [ - 70773, - 70796 + 70742, + 70765 ], "loc": { "start": { @@ -128955,8 +128774,8 @@ } }, "range": [ - 70773, - 70797 + 70742, + 70766 ], "loc": { "start": { @@ -128971,8 +128790,8 @@ } ], "range": [ - 70467, - 70811 + 70436, + 70780 ], "loc": { "start": { @@ -128986,8 +128805,8 @@ } }, "range": [ - 70428, - 70811 + 70397, + 70780 ], "loc": { "start": { @@ -129011,8 +128830,8 @@ "type": "Identifier", "name": "filteredData", "range": [ - 70824, - 70836 + 70793, + 70805 ], "loc": { "start": { @@ -129029,8 +128848,8 @@ "type": "Identifier", "name": "push", "range": [ - 70837, - 70841 + 70806, + 70810 ], "loc": { "start": { @@ -129044,8 +128863,8 @@ } }, "range": [ - 70824, - 70841 + 70793, + 70810 ], "loc": { "start": { @@ -129063,8 +128882,8 @@ "type": "Identifier", "name": "rData", "range": [ - 70842, - 70847 + 70811, + 70816 ], "loc": { "start": { @@ -129079,8 +128898,8 @@ } ], "range": [ - 70824, - 70848 + 70793, + 70817 ], "loc": { "start": { @@ -129094,8 +128913,8 @@ } }, "range": [ - 70824, - 70849 + 70793, + 70818 ], "loc": { "start": { @@ -129110,8 +128929,8 @@ } ], "range": [ - 70300, - 70859 + 70269, + 70828 ], "loc": { "start": { @@ -129125,8 +128944,8 @@ } }, "range": [ - 70257, - 70859 + 70226, + 70828 ], "loc": { "start": { @@ -129145,8 +128964,8 @@ "type": "Identifier", "name": "filteredData", "range": [ - 70875, - 70887 + 70844, + 70856 ], "loc": { "start": { @@ -129160,8 +128979,8 @@ } }, "range": [ - 70868, - 70888 + 70837, + 70857 ], "loc": { "start": { @@ -129176,8 +128995,8 @@ } ], "range": [ - 69888, - 70894 + 69857, + 70863 ], "loc": { "start": { @@ -129193,8 +129012,8 @@ "generator": false, "expression": false, "range": [ - 69836, - 70894 + 69805, + 70863 ], "loc": { "start": { @@ -129210,8 +129029,8 @@ "kind": "method", "computed": false, "range": [ - 69821, - 70894 + 69790, + 70863 ], "loc": { "start": { @@ -129228,8 +129047,8 @@ "type": "Block", "value": "*\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 ", "range": [ - 69409, - 69816 + 69378, + 69785 ], "loc": { "start": { @@ -129246,10 +129065,10 @@ "trailingComments": [ { "type": "Block", - "value": "*\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 ", + "value": "*\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 * @param {Boolean} num Optional: return unformatted number\n * @param {Array} exclude Optional: list of row indexes to be excluded\n * @param {Boolean} visible Optional: return only visible data\n * (relevant for paging)\n * @return {Array} Flat list of values ['val0','val1','val2'...]\n *\n * TODO: provide an API returning data in JSON format\n ", "range": [ - 70900, - 71231 + 70869, + 71470 ], "loc": { "start": { @@ -129257,7 +129076,7 @@ "column": 4 }, "end": { - "line": 2359, + "line": 2363, "column": 7 } } @@ -129271,16 +129090,16 @@ "type": "Identifier", "name": "getFilteredDataCol", "range": [ - 71236, - 71254 + 71475, + 71493 ], "loc": { "start": { - "line": 2360, + "line": 2364, "column": 4 }, "end": { - "line": 2360, + "line": 2364, "column": 22 } } @@ -129293,17 +129112,17 @@ "type": "Identifier", "name": "colIndex", "range": [ - 71255, - 71263 + 71503, + 71511 ], "loc": { "start": { - "line": 2360, - "column": 23 + "line": 2365, + "column": 8 }, "end": { - "line": 2360, - "column": 31 + "line": 2365, + "column": 16 } } }, @@ -129313,17 +129132,17 @@ "type": "Identifier", "name": "includeHeaders", "range": [ - 71265, - 71279 + 71521, + 71535 ], "loc": { "start": { - "line": 2360, - "column": 33 + "line": 2366, + "column": 8 }, "end": { - "line": 2360, - "column": 47 + "line": 2366, + "column": 22 } } }, @@ -129332,32 +129151,193 @@ "value": false, "raw": "false", "range": [ - 71282, - 71287 + 71538, + 71543 ], "loc": { "start": { - "line": 2360, - "column": 50 + "line": 2366, + "column": 25 }, "end": { - "line": 2360, - "column": 55 + "line": 2366, + "column": 30 } } }, "range": [ - 71265, - 71287 + 71521, + 71543 ], "loc": { "start": { - "line": 2360, - "column": 33 + "line": 2366, + "column": 8 }, "end": { - "line": 2360, - "column": 55 + "line": 2366, + "column": 30 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "num", + "range": [ + 71553, + 71556 + ], + "loc": { + "start": { + "line": 2367, + "column": 8 + }, + "end": { + "line": 2367, + "column": 11 + } + } + }, + "right": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 71559, + 71564 + ], + "loc": { + "start": { + "line": 2367, + "column": 14 + }, + "end": { + "line": 2367, + "column": 19 + } + } + }, + "range": [ + 71553, + 71564 + ], + "loc": { + "start": { + "line": 2367, + "column": 8 + }, + "end": { + "line": 2367, + "column": 19 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "exclude", + "range": [ + 71574, + 71581 + ], + "loc": { + "start": { + "line": 2368, + "column": 8 + }, + "end": { + "line": 2368, + "column": 15 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 71584, + 71586 + ], + "loc": { + "start": { + "line": 2368, + "column": 18 + }, + "end": { + "line": 2368, + "column": 20 + } + } + }, + "range": [ + 71574, + 71586 + ], + "loc": { + "start": { + "line": 2368, + "column": 8 + }, + "end": { + "line": 2368, + "column": 20 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "visible", + "range": [ + 71596, + 71603 + ], + "loc": { + "start": { + "line": 2369, + "column": 8 + }, + "end": { + "line": 2369, + "column": 15 + } + } + }, + "right": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 71606, + 71610 + ], + "loc": { + "start": { + "line": 2369, + "column": 18 + }, + "end": { + "line": 2369, + "column": 22 + } + } + }, + "range": [ + 71596, + 71610 + ], + "loc": { + "start": { + "line": 2369, + "column": 8 + }, + "end": { + "line": 2369, + "column": 22 } } } @@ -129373,16 +129353,16 @@ "type": "Identifier", "name": "isUndef", "range": [ - 71303, - 71310 + 71631, + 71638 ], "loc": { "start": { - "line": 2361, + "line": 2371, "column": 12 }, "end": { - "line": 2361, + "line": 2371, "column": 19 } } @@ -129392,32 +129372,32 @@ "type": "Identifier", "name": "colIndex", "range": [ - 71311, - 71319 + 71639, + 71647 ], "loc": { "start": { - "line": 2361, + "line": 2371, "column": 20 }, "end": { - "line": 2361, + "line": 2371, "column": 28 } } } ], "range": [ - 71303, - 71320 + 71631, + 71648 ], "loc": { "start": { - "line": 2361, + "line": 2371, "column": 12 }, "end": { - "line": 2361, + "line": 2371, "column": 29 } } @@ -129431,63 +129411,63 @@ "type": "ArrayExpression", "elements": [], "range": [ - 71343, - 71345 + 71671, + 71673 ], "loc": { "start": { - "line": 2362, + "line": 2372, "column": 19 }, "end": { - "line": 2362, + "line": 2372, "column": 21 } } }, "range": [ - 71336, - 71346 + 71664, + 71674 ], "loc": { "start": { - "line": 2362, + "line": 2372, "column": 12 }, "end": { - "line": 2362, + "line": 2372, "column": 22 } } } ], "range": [ - 71322, - 71356 + 71650, + 71684 ], "loc": { "start": { - "line": 2361, + "line": 2371, "column": 31 }, "end": { - "line": 2363, + "line": 2373, "column": 9 } } }, "alternate": null, "range": [ - 71299, - 71356 + 71627, + 71684 ], "loc": { "start": { - "line": 2361, + "line": 2371, "column": 8 }, "end": { - "line": 2363, + "line": 2373, "column": 9 } } @@ -129499,194 +129479,2242 @@ "type": "VariableDeclarator", "id": { "type": "Identifier", - "name": "data", + "name": "rows", "range": [ - 71369, - 71373 + 71698, + 71702 ], "loc": { "start": { - "line": 2364, + "line": 2375, "column": 12 }, "end": { - "line": 2364, + "line": 2375, "column": 16 } } }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 71705, + 71709 + ], + "loc": { + "start": { + "line": 2375, + "column": 19 + }, + "end": { + "line": 2375, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "tbl", + "range": [ + 71710, + 71713 + ], + "loc": { + "start": { + "line": 2375, + "column": 24 + }, + "end": { + "line": 2375, + "column": 27 + } + } + }, + "range": [ + 71705, + 71713 + ], + "loc": { + "start": { + "line": 2375, + "column": 19 + }, + "end": { + "line": 2375, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "rows", + "range": [ + 71714, + 71718 + ], + "loc": { + "start": { + "line": 2375, + "column": 28 + }, + "end": { + "line": 2375, + "column": 32 + } + } + }, + "range": [ + 71705, + 71718 + ], + "loc": { + "start": { + "line": 2375, + "column": 19 + }, + "end": { + "line": 2375, + "column": 32 + } + } + }, + "range": [ + 71698, + 71718 + ], + "loc": { + "start": { + "line": 2375, + "column": 12 + }, + "end": { + "line": 2375, + "column": 32 + } + } + } + ], + "kind": "let", + "range": [ + 71694, + 71719 + ], + "loc": { + "start": { + "line": 2375, + "column": 8 + }, + "end": { + "line": 2375, + "column": 33 + } + }, + "trailingComments": [ + { + "type": "Line", + "value": " ensure valid rows index do not contain excluded rows and row is", + "range": [ + 71729, + 71795 + ], + "loc": { + "start": { + "line": 2377, + "column": 8 + }, + "end": { + "line": 2377, + "column": 74 + } + } + }, + { + "type": "Line", + "value": " displayed", + "range": [ + 71804, + 71816 + ], + "loc": { + "start": { + "line": 2378, + "column": 8 + }, + "end": { + "line": 2378, + "column": 20 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "validRows", + "range": [ + 71829, + 71838 + ], + "loc": { + "start": { + "line": 2379, + "column": 12 + }, + "end": { + "line": 2379, + "column": 21 + } + } + }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { - "type": "ThisExpression", + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 71841, + 71845 + ], + "loc": { + "start": { + "line": 2379, + "column": 24 + }, + "end": { + "line": 2379, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "getValidRows", + "range": [ + 71846, + 71858 + ], + "loc": { + "start": { + "line": 2379, + "column": 29 + }, + "end": { + "line": 2379, + "column": 41 + } + } + }, + "range": [ + 71841, + 71858 + ], + "loc": { + "start": { + "line": 2379, + "column": 24 + }, + "end": { + "line": 2379, + "column": 41 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 71859, + 71863 + ], + "loc": { + "start": { + "line": 2379, + "column": 42 + }, + "end": { + "line": 2379, + "column": 46 + } + } + } + ], "range": [ - 71376, - 71380 + 71841, + 71864 ], "loc": { "start": { - "line": 2364, - "column": 19 + "line": 2379, + "column": 24 }, "end": { - "line": 2364, - "column": 23 + "line": 2379, + "column": 47 } } }, "property": { "type": "Identifier", - "name": "getFilteredData", + "name": "filter", "range": [ - 71381, - 71396 + 71865, + 71871 ], "loc": { "start": { - "line": 2364, - "column": 24 + "line": 2379, + "column": 48 }, "end": { - "line": 2364, - "column": 39 + "line": 2379, + "column": 54 } } }, "range": [ - 71376, - 71396 + 71841, + 71871 ], "loc": { "start": { - "line": 2364, - "column": 19 + "line": 2379, + "column": 24 }, "end": { - "line": 2364, - "column": 39 + "line": 2379, + "column": 54 } } }, - "arguments": [], - "range": [ - 71376, - 71398 - ], - "loc": { - "start": { - "line": 2364, - "column": 19 - }, - "end": { - "line": 2364, - "column": 41 + "arguments": [ + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "rowIdx", + "range": [ + 71873, + 71879 + ], + "loc": { + "start": { + "line": 2379, + "column": 56 + }, + "end": { + "line": 2379, + "column": 62 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "exclude", + "range": [ + 71905, + 71912 + ], + "loc": { + "start": { + "line": 2380, + "column": 19 + }, + "end": { + "line": 2380, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "indexOf", + "range": [ + 71913, + 71920 + ], + "loc": { + "start": { + "line": 2380, + "column": 27 + }, + "end": { + "line": 2380, + "column": 34 + } + } + }, + "range": [ + 71905, + 71920 + ], + "loc": { + "start": { + "line": 2380, + "column": 19 + }, + "end": { + "line": 2380, + "column": 34 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "rowIdx", + "range": [ + 71921, + 71927 + ], + "loc": { + "start": { + "line": 2380, + "column": 35 + }, + "end": { + "line": 2380, + "column": 41 + } + } + } + ], + "range": [ + 71905, + 71928 + ], + "loc": { + "start": { + "line": 2380, + "column": 19 + }, + "end": { + "line": 2380, + "column": 42 + } + } + }, + "right": { + "type": "UnaryExpression", + "operator": "-", + "argument": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 71934, + 71935 + ], + "loc": { + "start": { + "line": 2380, + "column": 48 + }, + "end": { + "line": 2380, + "column": 49 + } + } + }, + "prefix": true, + "range": [ + 71933, + 71935 + ], + "loc": { + "start": { + "line": 2380, + "column": 47 + }, + "end": { + "line": 2380, + "column": 49 + } + } + }, + "range": [ + 71905, + 71935 + ], + "loc": { + "start": { + "line": 2380, + "column": 19 + }, + "end": { + "line": 2380, + "column": 49 + } + } + }, + "right": { + "type": "ConditionalExpression", + "test": { + "type": "Identifier", + "name": "visible", + "range": [ + 71956, + 71963 + ], + "loc": { + "start": { + "line": 2381, + "column": 17 + }, + "end": { + "line": 2381, + "column": 24 + } + } + }, + "consequent": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 71986, + 71990 + ], + "loc": { + "start": { + "line": 2382, + "column": 20 + }, + "end": { + "line": 2382, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "getRowDisplay", + "range": [ + 71991, + 72004 + ], + "loc": { + "start": { + "line": 2382, + "column": 25 + }, + "end": { + "line": 2382, + "column": 38 + } + } + }, + "range": [ + 71986, + 72004 + ], + "loc": { + "start": { + "line": 2382, + "column": 20 + }, + "end": { + "line": 2382, + "column": 38 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "rows", + "range": [ + 72005, + 72009 + ], + "loc": { + "start": { + "line": 2382, + "column": 39 + }, + "end": { + "line": 2382, + "column": 43 + } + } + }, + "property": { + "type": "Identifier", + "name": "rowIdx", + "range": [ + 72010, + 72016 + ], + "loc": { + "start": { + "line": 2382, + "column": 44 + }, + "end": { + "line": 2382, + "column": 50 + } + } + }, + "range": [ + 72005, + 72017 + ], + "loc": { + "start": { + "line": 2382, + "column": 39 + }, + "end": { + "line": 2382, + "column": 51 + } + } + } + ], + "range": [ + 71986, + 72018 + ], + "loc": { + "start": { + "line": 2382, + "column": 20 + }, + "end": { + "line": 2382, + "column": 52 + } + } + }, + "right": { + "type": "Literal", + "value": "none", + "raw": "'none'", + "range": [ + 72023, + 72029 + ], + "loc": { + "start": { + "line": 2382, + "column": 57 + }, + "end": { + "line": 2382, + "column": 63 + } + } + }, + "range": [ + 71986, + 72029 + ], + "loc": { + "start": { + "line": 2382, + "column": 20 + }, + "end": { + "line": 2382, + "column": 63 + } + } + }, + "alternate": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 72052, + 72056 + ], + "loc": { + "start": { + "line": 2383, + "column": 20 + }, + "end": { + "line": 2383, + "column": 24 + } + } + }, + "range": [ + 71956, + 72056 + ], + "loc": { + "start": { + "line": 2381, + "column": 17 + }, + "end": { + "line": 2383, + "column": 24 + } + } + }, + "range": [ + 71905, + 72057 + ], + "loc": { + "start": { + "line": 2380, + "column": 19 + }, + "end": { + "line": 2383, + "column": 25 + } + } + }, + "range": [ + 71898, + 72058 + ], + "loc": { + "start": { + "line": 2380, + "column": 12 + }, + "end": { + "line": 2383, + "column": 26 + } + } + } + ], + "range": [ + 71884, + 72068 + ], + "loc": { + "start": { + "line": 2379, + "column": 67 + }, + "end": { + "line": 2384, + "column": 9 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 71872, + 72068 + ], + "loc": { + "start": { + "line": 2379, + "column": 55 + }, + "end": { + "line": 2384, + "column": 9 + } + } } - } - }, - "range": [ - 71369, - 71398 - ], - "loc": { - "start": { - "line": 2364, - "column": 12 - }, - "end": { - "line": 2364, - "column": 41 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "colData", + ], "range": [ - 71412, - 71419 + 71841, + 72069 ], "loc": { "start": { - "line": 2365, - "column": 12 - }, - "end": { - "line": 2365, - "column": 19 - } - } - }, - "init": { - "type": "ArrayExpression", - "elements": [], - "range": [ - 71422, - 71424 - ], - "loc": { - "start": { - "line": 2365, - "column": 22 - }, - "end": { - "line": 2365, + "line": 2379, "column": 24 + }, + "end": { + "line": 2384, + "column": 10 } } }, "range": [ - 71412, - 71424 + 71829, + 72069 ], "loc": { "start": { - "line": 2365, + "line": 2379, "column": 12 }, "end": { - "line": 2365, - "column": 24 + "line": 2384, + "column": 10 } } } ], "kind": "let", "range": [ - 71365, - 71425 + 71825, + 72070 ], "loc": { "start": { - "line": 2364, + "line": 2379, "column": 8 }, "end": { - "line": 2365, - "column": 25 + "line": 2384, + "column": 11 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " ensure valid rows index do not contain excluded rows and row is", + "range": [ + 71729, + 71795 + ], + "loc": { + "start": { + "line": 2377, + "column": 8 + }, + "end": { + "line": 2377, + "column": 74 + } + } + }, + { + "type": "Line", + "value": " displayed", + "range": [ + 71804, + 71816 + ], + "loc": { + "start": { + "line": 2378, + "column": 8 + }, + "end": { + "line": 2378, + "column": 20 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "decimal", + "range": [ + 72084, + 72091 + ], + "loc": { + "start": { + "line": 2386, + "column": 12 + }, + "end": { + "line": 2386, + "column": 19 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 72094, + 72098 + ], + "loc": { + "start": { + "line": 2386, + "column": 22 + }, + "end": { + "line": 2386, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "decimalSeparator", + "range": [ + 72099, + 72115 + ], + "loc": { + "start": { + "line": 2386, + "column": 27 + }, + "end": { + "line": 2386, + "column": 43 + } + } + }, + "range": [ + 72094, + 72115 + ], + "loc": { + "start": { + "line": 2386, + "column": 22 + }, + "end": { + "line": 2386, + "column": 43 + } + } + }, + "range": [ + 72084, + 72115 + ], + "loc": { + "start": { + "line": 2386, + "column": 12 + }, + "end": { + "line": 2386, + "column": 43 + } + } + } + ], + "kind": "let", + "range": [ + 72080, + 72116 + ], + "loc": { + "start": { + "line": 2386, + "column": 8 + }, + "end": { + "line": 2386, + "column": 44 } } }, + { + "type": "IfStatement", + "test": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 72129, + 72133 + ], + "loc": { + "start": { + "line": 2387, + "column": 12 + }, + "end": { + "line": 2387, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasType", + "range": [ + 72134, + 72141 + ], + "loc": { + "start": { + "line": 2387, + "column": 17 + }, + "end": { + "line": 2387, + "column": 24 + } + } + }, + "range": [ + 72129, + 72141 + ], + "loc": { + "start": { + "line": 2387, + "column": 12 + }, + "end": { + "line": 2387, + "column": 24 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "colIndex", + "range": [ + 72142, + 72150 + ], + "loc": { + "start": { + "line": 2387, + "column": 25 + }, + "end": { + "line": 2387, + "column": 33 + } + } + }, + { + "type": "ArrayExpression", + "elements": [ + { + "type": "Identifier", + "name": "FORMATTED_NUMBER", + "range": [ + 72153, + 72169 + ], + "loc": { + "start": { + "line": 2387, + "column": 36 + }, + "end": { + "line": 2387, + "column": 52 + } + } + } + ], + "range": [ + 72152, + 72170 + ], + "loc": { + "start": { + "line": 2387, + "column": 35 + }, + "end": { + "line": 2387, + "column": 53 + } + } + } + ], + "range": [ + 72129, + 72171 + ], + "loc": { + "start": { + "line": 2387, + "column": 12 + }, + "end": { + "line": 2387, + "column": 54 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "colType", + "range": [ + 72191, + 72198 + ], + "loc": { + "start": { + "line": 2388, + "column": 16 + }, + "end": { + "line": 2388, + "column": 23 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 72201, + 72205 + ], + "loc": { + "start": { + "line": 2388, + "column": 26 + }, + "end": { + "line": 2388, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "colTypes", + "range": [ + 72206, + 72214 + ], + "loc": { + "start": { + "line": 2388, + "column": 31 + }, + "end": { + "line": 2388, + "column": 39 + } + } + }, + "range": [ + 72201, + 72214 + ], + "loc": { + "start": { + "line": 2388, + "column": 26 + }, + "end": { + "line": 2388, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "name": "colIndex", + "range": [ + 72215, + 72223 + ], + "loc": { + "start": { + "line": 2388, + "column": 40 + }, + "end": { + "line": 2388, + "column": 48 + } + } + }, + "range": [ + 72201, + 72224 + ], + "loc": { + "start": { + "line": 2388, + "column": 26 + }, + "end": { + "line": 2388, + "column": 49 + } + } + }, + "range": [ + 72191, + 72224 + ], + "loc": { + "start": { + "line": 2388, + "column": 16 + }, + "end": { + "line": 2388, + "column": 49 + } + } + } + ], + "kind": "let", + "range": [ + 72187, + 72225 + ], + "loc": { + "start": { + "line": 2388, + "column": 12 + }, + "end": { + "line": 2388, + "column": 50 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "colType", + "range": [ + 72242, + 72249 + ], + "loc": { + "start": { + "line": 2389, + "column": 16 + }, + "end": { + "line": 2389, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 72250, + 72264 + ], + "loc": { + "start": { + "line": 2389, + "column": 24 + }, + "end": { + "line": 2389, + "column": 38 + } + } + }, + "range": [ + 72242, + 72264 + ], + "loc": { + "start": { + "line": 2389, + "column": 16 + }, + "end": { + "line": 2389, + "column": 38 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "decimal", + "raw": "'decimal'", + "range": [ + 72265, + 72274 + ], + "loc": { + "start": { + "line": 2389, + "column": 39 + }, + "end": { + "line": 2389, + "column": 48 + } + } + } + ], + "range": [ + 72242, + 72275 + ], + "loc": { + "start": { + "line": 2389, + "column": 16 + }, + "end": { + "line": 2389, + "column": 49 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "decimal", + "range": [ + 72295, + 72302 + ], + "loc": { + "start": { + "line": 2390, + "column": 16 + }, + "end": { + "line": 2390, + "column": 23 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "colType", + "range": [ + 72305, + 72312 + ], + "loc": { + "start": { + "line": 2390, + "column": 26 + }, + "end": { + "line": 2390, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "name": "decimal", + "range": [ + 72313, + 72320 + ], + "loc": { + "start": { + "line": 2390, + "column": 34 + }, + "end": { + "line": 2390, + "column": 41 + } + } + }, + "range": [ + 72305, + 72320 + ], + "loc": { + "start": { + "line": 2390, + "column": 26 + }, + "end": { + "line": 2390, + "column": 41 + } + } + }, + "range": [ + 72295, + 72320 + ], + "loc": { + "start": { + "line": 2390, + "column": 16 + }, + "end": { + "line": 2390, + "column": 41 + } + } + }, + "range": [ + 72295, + 72321 + ], + "loc": { + "start": { + "line": 2390, + "column": 16 + }, + "end": { + "line": 2390, + "column": 42 + } + } + } + ], + "range": [ + 72277, + 72335 + ], + "loc": { + "start": { + "line": 2389, + "column": 51 + }, + "end": { + "line": 2391, + "column": 13 + } + } + }, + "alternate": null, + "range": [ + 72238, + 72335 + ], + "loc": { + "start": { + "line": 2389, + "column": 12 + }, + "end": { + "line": 2391, + "column": 13 + } + } + } + ], + "range": [ + 72173, + 72345 + ], + "loc": { + "start": { + "line": 2387, + "column": 56 + }, + "end": { + "line": 2392, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 72125, + 72345 + ], + "loc": { + "start": { + "line": 2387, + "column": 8 + }, + "end": { + "line": 2392, + "column": 9 + } + }, + "trailingComments": [ + { + "type": "Line", + "value": " convert column value to expected type if necessary", + "range": [ + 72355, + 72408 + ], + "loc": { + "start": { + "line": 2394, + "column": 8 + }, + "end": { + "line": 2394, + "column": 61 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "validColValues", + "range": [ + 72421, + 72435 + ], + "loc": { + "start": { + "line": 2395, + "column": 12 + }, + "end": { + "line": 2395, + "column": 26 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "validRows", + "range": [ + 72438, + 72447 + ], + "loc": { + "start": { + "line": 2395, + "column": 29 + }, + "end": { + "line": 2395, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "name": "map", + "range": [ + 72448, + 72451 + ], + "loc": { + "start": { + "line": 2395, + "column": 39 + }, + "end": { + "line": 2395, + "column": 42 + } + } + }, + "range": [ + 72438, + 72451 + ], + "loc": { + "start": { + "line": 2395, + "column": 29 + }, + "end": { + "line": 2395, + "column": 42 + } + } + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "rowIdx", + "range": [ + 72453, + 72459 + ], + "loc": { + "start": { + "line": 2395, + "column": 44 + }, + "end": { + "line": 2395, + "column": 50 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "val", + "range": [ + 72482, + 72485 + ], + "loc": { + "start": { + "line": 2396, + "column": 16 + }, + "end": { + "line": 2396, + "column": 19 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 72488, + 72492 + ], + "loc": { + "start": { + "line": 2396, + "column": 22 + }, + "end": { + "line": 2396, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "getCellData", + "range": [ + 72493, + 72504 + ], + "loc": { + "start": { + "line": 2396, + "column": 27 + }, + "end": { + "line": 2396, + "column": 38 + } + } + }, + "range": [ + 72488, + 72504 + ], + "loc": { + "start": { + "line": 2396, + "column": 22 + }, + "end": { + "line": 2396, + "column": 38 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "rows", + "range": [ + 72505, + 72509 + ], + "loc": { + "start": { + "line": 2396, + "column": 39 + }, + "end": { + "line": 2396, + "column": 43 + } + } + }, + "property": { + "type": "Identifier", + "name": "rowIdx", + "range": [ + 72510, + 72516 + ], + "loc": { + "start": { + "line": 2396, + "column": 44 + }, + "end": { + "line": 2396, + "column": 50 + } + } + }, + "range": [ + 72505, + 72517 + ], + "loc": { + "start": { + "line": 2396, + "column": 39 + }, + "end": { + "line": 2396, + "column": 51 + } + } + }, + "property": { + "type": "Identifier", + "name": "cells", + "range": [ + 72518, + 72523 + ], + "loc": { + "start": { + "line": 2396, + "column": 52 + }, + "end": { + "line": 2396, + "column": 57 + } + } + }, + "range": [ + 72505, + 72523 + ], + "loc": { + "start": { + "line": 2396, + "column": 39 + }, + "end": { + "line": 2396, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "name": "colIndex", + "range": [ + 72524, + 72532 + ], + "loc": { + "start": { + "line": 2396, + "column": 58 + }, + "end": { + "line": 2396, + "column": 66 + } + } + }, + "range": [ + 72505, + 72533 + ], + "loc": { + "start": { + "line": 2396, + "column": 39 + }, + "end": { + "line": 2396, + "column": 67 + } + } + } + ], + "range": [ + 72488, + 72534 + ], + "loc": { + "start": { + "line": 2396, + "column": 22 + }, + "end": { + "line": 2396, + "column": 68 + } + } + }, + "range": [ + 72482, + 72534 + ], + "loc": { + "start": { + "line": 2396, + "column": 16 + }, + "end": { + "line": 2396, + "column": 68 + } + } + } + ], + "kind": "let", + "range": [ + 72478, + 72535 + ], + "loc": { + "start": { + "line": 2396, + "column": 12 + }, + "end": { + "line": 2396, + "column": 69 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ConditionalExpression", + "test": { + "type": "Identifier", + "name": "num", + "range": [ + 72555, + 72558 + ], + "loc": { + "start": { + "line": 2397, + "column": 19 + }, + "end": { + "line": 2397, + "column": 22 + } + } + }, + "consequent": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "Number", + "range": [ + 72561, + 72567 + ], + "loc": { + "start": { + "line": 2397, + "column": 25 + }, + "end": { + "line": 2397, + "column": 31 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "val", + "range": [ + 72568, + 72571 + ], + "loc": { + "start": { + "line": 2397, + "column": 32 + }, + "end": { + "line": 2397, + "column": 35 + } + } + } + ], + "range": [ + 72561, + 72572 + ], + "loc": { + "start": { + "line": 2397, + "column": 25 + }, + "end": { + "line": 2397, + "column": 36 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "parseNb", + "range": [ + 72576, + 72583 + ], + "loc": { + "start": { + "line": 2397, + "column": 40 + }, + "end": { + "line": 2397, + "column": 47 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "val", + "range": [ + 72584, + 72587 + ], + "loc": { + "start": { + "line": 2397, + "column": 48 + }, + "end": { + "line": 2397, + "column": 51 + } + } + }, + { + "type": "Identifier", + "name": "decimal", + "range": [ + 72589, + 72596 + ], + "loc": { + "start": { + "line": 2397, + "column": 53 + }, + "end": { + "line": 2397, + "column": 60 + } + } + } + ], + "range": [ + 72576, + 72597 + ], + "loc": { + "start": { + "line": 2397, + "column": 40 + }, + "end": { + "line": 2397, + "column": 61 + } + } + }, + "range": [ + 72561, + 72597 + ], + "loc": { + "start": { + "line": 2397, + "column": 25 + }, + "end": { + "line": 2397, + "column": 61 + } + } + }, + "alternate": { + "type": "Identifier", + "name": "val", + "range": [ + 72600, + 72603 + ], + "loc": { + "start": { + "line": 2397, + "column": 64 + }, + "end": { + "line": 2397, + "column": 67 + } + } + }, + "range": [ + 72555, + 72603 + ], + "loc": { + "start": { + "line": 2397, + "column": 19 + }, + "end": { + "line": 2397, + "column": 67 + } + } + }, + "range": [ + 72548, + 72604 + ], + "loc": { + "start": { + "line": 2397, + "column": 12 + }, + "end": { + "line": 2397, + "column": 68 + } + } + } + ], + "range": [ + 72464, + 72614 + ], + "loc": { + "start": { + "line": 2395, + "column": 55 + }, + "end": { + "line": 2398, + "column": 9 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 72452, + 72614 + ], + "loc": { + "start": { + "line": 2395, + "column": 43 + }, + "end": { + "line": 2398, + "column": 9 + } + } + } + ], + "range": [ + 72438, + 72615 + ], + "loc": { + "start": { + "line": 2395, + "column": 29 + }, + "end": { + "line": 2398, + "column": 10 + } + } + }, + "range": [ + 72421, + 72615 + ], + "loc": { + "start": { + "line": 2395, + "column": 12 + }, + "end": { + "line": 2398, + "column": 10 + } + } + } + ], + "kind": "let", + "range": [ + 72417, + 72616 + ], + "loc": { + "start": { + "line": 2395, + "column": 8 + }, + "end": { + "line": 2398, + "column": 11 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " convert column value to expected type if necessary", + "range": [ + 72355, + 72408 + ], + "loc": { + "start": { + "line": 2394, + "column": 8 + }, + "end": { + "line": 2394, + "column": 61 + } + } + } + ] + }, { "type": "IfStatement", "test": { "type": "Identifier", "name": "includeHeaders", "range": [ - 71438, - 71452 + 72630, + 72644 ], "loc": { "start": { - "line": 2366, + "line": 2400, "column": 12 }, "end": { - "line": 2366, + "line": 2400, "column": 26 } } @@ -129703,52 +131731,52 @@ "computed": false, "object": { "type": "Identifier", - "name": "colData", + "name": "validColValues", "range": [ - 71468, - 71475 + 72660, + 72674 ], "loc": { "start": { - "line": 2367, + "line": 2401, "column": 12 }, "end": { - "line": 2367, - "column": 19 + "line": 2401, + "column": 26 } } }, "property": { "type": "Identifier", - "name": "push", + "name": "unshift", "range": [ - 71476, - 71480 + 72675, + 72682 ], "loc": { "start": { - "line": 2367, - "column": 20 + "line": 2401, + "column": 27 }, "end": { - "line": 2367, - "column": 24 + "line": 2401, + "column": 34 } } }, "range": [ - 71468, - 71480 + 72660, + 72682 ], "loc": { "start": { - "line": 2367, + "line": 2401, "column": 12 }, "end": { - "line": 2367, - "column": 24 + "line": 2401, + "column": 34 } } }, @@ -129764,17 +131792,17 @@ "object": { "type": "ThisExpression", "range": [ - 71481, - 71485 + 72683, + 72687 ], "loc": { "start": { - "line": 2367, - "column": 25 + "line": 2401, + "column": 35 }, "end": { - "line": 2367, - "column": 29 + "line": 2401, + "column": 39 } } }, @@ -129782,48 +131810,48 @@ "type": "Identifier", "name": "getHeadersText", "range": [ - 71486, - 71500 + 72688, + 72702 ], "loc": { "start": { - "line": 2367, - "column": 30 + "line": 2401, + "column": 40 }, "end": { - "line": 2367, - "column": 44 + "line": 2401, + "column": 54 } } }, "range": [ - 71481, - 71500 + 72683, + 72702 ], "loc": { "start": { - "line": 2367, - "column": 25 + "line": 2401, + "column": 35 }, "end": { - "line": 2367, - "column": 44 + "line": 2401, + "column": 54 } } }, "arguments": [], "range": [ - 71481, - 71502 + 72683, + 72704 ], "loc": { "start": { - "line": 2367, - "column": 25 + "line": 2401, + "column": 35 }, "end": { - "line": 2367, - "column": 46 + "line": 2401, + "column": 56 } } }, @@ -129831,820 +131859,94 @@ "type": "Identifier", "name": "colIndex", "range": [ - 71503, - 71511 + 72705, + 72713 ], "loc": { "start": { - "line": 2367, - "column": 47 + "line": 2401, + "column": 57 }, "end": { - "line": 2367, - "column": 55 + "line": 2401, + "column": 65 } } }, "range": [ - 71481, - 71512 + 72683, + 72714 ], "loc": { "start": { - "line": 2367, - "column": 25 + "line": 2401, + "column": 35 }, "end": { - "line": 2367, - "column": 56 + "line": 2401, + "column": 66 } } } ], "range": [ - 71468, - 71513 + 72660, + 72715 ], "loc": { "start": { - "line": 2367, + "line": 2401, "column": 12 }, "end": { - "line": 2367, - "column": 57 + "line": 2401, + "column": 67 } } }, "range": [ - 71468, - 71514 + 72660, + 72716 ], "loc": { "start": { - "line": 2367, + "line": 2401, "column": 12 }, "end": { - "line": 2367, - "column": 58 + "line": 2401, + "column": 68 } } } ], "range": [ - 71454, - 71524 + 72646, + 72726 ], "loc": { "start": { - "line": 2366, + "line": 2400, "column": 28 }, "end": { - "line": 2368, + "line": 2402, "column": 9 } } }, "alternate": null, "range": [ - 71434, - 71524 + 72626, + 72726 ], "loc": { "start": { - "line": 2366, + "line": 2400, "column": 8 }, "end": { - "line": 2368, - "column": 9 - } - } - }, - { - "type": "ForStatement", - "init": { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "i", - "range": [ - 71542, - 71543 - ], - "loc": { - "start": { - "line": 2369, - "column": 17 - }, - "end": { - "line": 2369, - "column": 18 - } - } - }, - "init": { - "type": "Literal", - "value": 0, - "raw": "0", - "range": [ - 71546, - 71547 - ], - "loc": { - "start": { - "line": 2369, - "column": 21 - }, - "end": { - "line": 2369, - "column": 22 - } - } - }, - "range": [ - 71542, - 71547 - ], - "loc": { - "start": { - "line": 2369, - "column": 17 - }, - "end": { - "line": 2369, - "column": 22 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "len", - "range": [ - 71549, - 71552 - ], - "loc": { - "start": { - "line": 2369, - "column": 24 - }, - "end": { - "line": 2369, - "column": 27 - } - } - }, - "init": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "data", - "range": [ - 71555, - 71559 - ], - "loc": { - "start": { - "line": 2369, - "column": 30 - }, - "end": { - "line": 2369, - "column": 34 - } - } - }, - "property": { - "type": "Identifier", - "name": "length", - "range": [ - 71560, - 71566 - ], - "loc": { - "start": { - "line": 2369, - "column": 35 - }, - "end": { - "line": 2369, - "column": 41 - } - } - }, - "range": [ - 71555, - 71566 - ], - "loc": { - "start": { - "line": 2369, - "column": 30 - }, - "end": { - "line": 2369, - "column": 41 - } - } - }, - "range": [ - 71549, - 71566 - ], - "loc": { - "start": { - "line": 2369, - "column": 24 - }, - "end": { - "line": 2369, - "column": 41 - } - } - } - ], - "kind": "let", - "range": [ - 71538, - 71566 - ], - "loc": { - "start": { - "line": 2369, - "column": 13 - }, - "end": { - "line": 2369, - "column": 41 - } - } - }, - "test": { - "type": "BinaryExpression", - "operator": "<", - "left": { - "type": "Identifier", - "name": "i", - "range": [ - 71568, - 71569 - ], - "loc": { - "start": { - "line": 2369, - "column": 43 - }, - "end": { - "line": 2369, - "column": 44 - } - } - }, - "right": { - "type": "Identifier", - "name": "len", - "range": [ - 71572, - 71575 - ], - "loc": { - "start": { - "line": 2369, - "column": 47 - }, - "end": { - "line": 2369, - "column": 50 - } - } - }, - "range": [ - 71568, - 71575 - ], - "loc": { - "start": { - "line": 2369, - "column": 43 - }, - "end": { - "line": 2369, - "column": 50 - } - } - }, - "update": { - "type": "UpdateExpression", - "operator": "++", - "argument": { - "type": "Identifier", - "name": "i", - "range": [ - 71577, - 71578 - ], - "loc": { - "start": { - "line": 2369, - "column": 52 - }, - "end": { - "line": 2369, - "column": 53 - } - } - }, - "prefix": false, - "range": [ - 71577, - 71580 - ], - "loc": { - "start": { - "line": 2369, - "column": 52 - }, - "end": { - "line": 2369, - "column": 55 - } - } - }, - "body": { - "type": "BlockStatement", - "body": [ - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "r", - "range": [ - 71600, - 71601 - ], - "loc": { - "start": { - "line": 2370, - "column": 16 - }, - "end": { - "line": 2370, - "column": 17 - } - } - }, - "init": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "data", - "range": [ - 71604, - 71608 - ], - "loc": { - "start": { - "line": 2370, - "column": 20 - }, - "end": { - "line": 2370, - "column": 24 - } - } - }, - "property": { - "type": "Identifier", - "name": "i", - "range": [ - 71609, - 71610 - ], - "loc": { - "start": { - "line": 2370, - "column": 25 - }, - "end": { - "line": 2370, - "column": 26 - } - } - }, - "range": [ - 71604, - 71611 - ], - "loc": { - "start": { - "line": 2370, - "column": 20 - }, - "end": { - "line": 2370, - "column": 27 - } - } - }, - "range": [ - 71600, - 71611 - ], - "loc": { - "start": { - "line": 2370, - "column": 16 - }, - "end": { - "line": 2370, - "column": 27 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "d", - "range": [ - 71674, - 71675 - ], - "loc": { - "start": { - "line": 2372, - "column": 16 - }, - "end": { - "line": 2372, - "column": 17 - } - } - }, - "init": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "r", - "range": [ - 71678, - 71679 - ], - "loc": { - "start": { - "line": 2372, - "column": 20 - }, - "end": { - "line": 2372, - "column": 21 - } - } - }, - "property": { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 71680, - 71681 - ], - "loc": { - "start": { - "line": 2372, - "column": 22 - }, - "end": { - "line": 2372, - "column": 23 - } - } - }, - "range": [ - 71678, - 71682 - ], - "loc": { - "start": { - "line": 2372, - "column": 20 - }, - "end": { - "line": 2372, - "column": 24 - } - } - }, - "range": [ - 71674, - 71682 - ], - "loc": { - "start": { - "line": 2372, - "column": 16 - }, - "end": { - "line": 2372, - "column": 24 - } - }, - "leadingComments": [ - { - "type": "Line", - "value": "cols values of current row", - "range": [ - 71629, - 71657 - ], - "loc": { - "start": { - "line": 2371, - "column": 16 - }, - "end": { - "line": 2371, - "column": 44 - } - } - } - ] - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "c", - "range": [ - 71742, - 71743 - ], - "loc": { - "start": { - "line": 2374, - "column": 16 - }, - "end": { - "line": 2374, - "column": 17 - } - } - }, - "init": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "d", - "range": [ - 71746, - 71747 - ], - "loc": { - "start": { - "line": 2374, - "column": 20 - }, - "end": { - "line": 2374, - "column": 21 - } - } - }, - "property": { - "type": "Identifier", - "name": "colIndex", - "range": [ - 71748, - 71756 - ], - "loc": { - "start": { - "line": 2374, - "column": 22 - }, - "end": { - "line": 2374, - "column": 30 - } - } - }, - "range": [ - 71746, - 71757 - ], - "loc": { - "start": { - "line": 2374, - "column": 20 - }, - "end": { - "line": 2374, - "column": 31 - } - } - }, - "range": [ - 71742, - 71757 - ], - "loc": { - "start": { - "line": 2374, - "column": 16 - }, - "end": { - "line": 2374, - "column": 31 - } - }, - "leadingComments": [ - { - "type": "Line", - "value": "data of searched column", - "range": [ - 71700, - 71725 - ], - "loc": { - "start": { - "line": 2373, - "column": 16 - }, - "end": { - "line": 2373, - "column": 41 - } - } - } - ] - } - ], - "kind": "let", - "range": [ - 71596, - 71758 - ], - "loc": { - "start": { - "line": 2370, - "column": 12 - }, - "end": { - "line": 2374, - "column": 32 - } - } - }, - { - "type": "ExpressionStatement", - "expression": { - "type": "CallExpression", - "callee": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "colData", - "range": [ - 71771, - 71778 - ], - "loc": { - "start": { - "line": 2375, - "column": 12 - }, - "end": { - "line": 2375, - "column": 19 - } - } - }, - "property": { - "type": "Identifier", - "name": "push", - "range": [ - 71779, - 71783 - ], - "loc": { - "start": { - "line": 2375, - "column": 20 - }, - "end": { - "line": 2375, - "column": 24 - } - } - }, - "range": [ - 71771, - 71783 - ], - "loc": { - "start": { - "line": 2375, - "column": 12 - }, - "end": { - "line": 2375, - "column": 24 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "c", - "range": [ - 71784, - 71785 - ], - "loc": { - "start": { - "line": 2375, - "column": 25 - }, - "end": { - "line": 2375, - "column": 26 - } - } - } - ], - "range": [ - 71771, - 71786 - ], - "loc": { - "start": { - "line": 2375, - "column": 12 - }, - "end": { - "line": 2375, - "column": 27 - } - } - }, - "range": [ - 71771, - 71787 - ], - "loc": { - "start": { - "line": 2375, - "column": 12 - }, - "end": { - "line": 2375, - "column": 28 - } - } - } - ], - "range": [ - 71582, - 71797 - ], - "loc": { - "start": { - "line": 2369, - "column": 57 - }, - "end": { - "line": 2376, - "column": 9 - } - } - }, - "range": [ - 71533, - 71797 - ], - "loc": { - "start": { - "line": 2369, - "column": 8 - }, - "end": { - "line": 2376, + "line": 2402, "column": 9 } } @@ -130653,49 +131955,49 @@ "type": "ReturnStatement", "argument": { "type": "Identifier", - "name": "colData", + "name": "validColValues", "range": [ - 71813, - 71820 + 72743, + 72757 ], "loc": { "start": { - "line": 2377, + "line": 2404, "column": 15 }, "end": { - "line": 2377, - "column": 22 + "line": 2404, + "column": 29 } } }, "range": [ - 71806, - 71821 + 72736, + 72758 ], "loc": { "start": { - "line": 2377, + "line": 2404, "column": 8 }, "end": { - "line": 2377, - "column": 23 + "line": 2404, + "column": 30 } } } ], "range": [ - 71289, - 71827 + 71617, + 72764 ], "loc": { "start": { - "line": 2360, - "column": 57 + "line": 2370, + "column": 6 }, "end": { - "line": 2378, + "line": 2405, "column": 5 } } @@ -130703,16 +132005,16 @@ "generator": false, "expression": false, "range": [ - 71254, - 71827 + 71493, + 72764 ], "loc": { "start": { - "line": 2360, + "line": 2364, "column": 22 }, "end": { - "line": 2378, + "line": 2405, "column": 5 } } @@ -130720,26 +132022,26 @@ "kind": "method", "computed": false, "range": [ - 71236, - 71827 + 71475, + 72764 ], "loc": { "start": { - "line": 2360, + "line": 2364, "column": 4 }, "end": { - "line": 2378, + "line": 2405, "column": 5 } }, "leadingComments": [ { "type": "Block", - "value": "*\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 ", + "value": "*\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 * @param {Boolean} num Optional: return unformatted number\n * @param {Array} exclude Optional: list of row indexes to be excluded\n * @param {Boolean} visible Optional: return only visible data\n * (relevant for paging)\n * @return {Array} Flat list of values ['val0','val1','val2'...]\n *\n * TODO: provide an API returning data in JSON format\n ", "range": [ - 70900, - 71231 + 70869, + 71470 ], "loc": { "start": { @@ -130747,7 +132049,7 @@ "column": 4 }, "end": { - "line": 2359, + "line": 2363, "column": 7 } } @@ -130758,16 +132060,16 @@ "type": "Block", "value": "*\n * Get the display value of a row\n * @param {HTMLTableRowElement} row DOM element of the row\n * @return {String} Usually 'none' or ''\n ", "range": [ - 71833, - 71995 + 72770, + 72932 ], "loc": { "start": { - "line": 2380, + "line": 2407, "column": 4 }, "end": { - "line": 2384, + "line": 2411, "column": 7 } } @@ -130781,16 +132083,16 @@ "type": "Identifier", "name": "getRowDisplay", "range": [ - 72000, - 72013 + 72937, + 72950 ], "loc": { "start": { - "line": 2385, + "line": 2412, "column": 4 }, "end": { - "line": 2385, + "line": 2412, "column": 17 } } @@ -130803,16 +132105,16 @@ "type": "Identifier", "name": "row", "range": [ - 72014, - 72017 + 72951, + 72954 ], "loc": { "start": { - "line": 2385, + "line": 2412, "column": 18 }, "end": { - "line": 2385, + "line": 2412, "column": 21 } } @@ -130833,16 +132135,16 @@ "type": "Identifier", "name": "row", "range": [ - 72036, - 72039 + 72973, + 72976 ], "loc": { "start": { - "line": 2386, + "line": 2413, "column": 15 }, "end": { - "line": 2386, + "line": 2413, "column": 18 } } @@ -130851,31 +132153,31 @@ "type": "Identifier", "name": "style", "range": [ - 72040, - 72045 + 72977, + 72982 ], "loc": { "start": { - "line": 2386, + "line": 2413, "column": 19 }, "end": { - "line": 2386, + "line": 2413, "column": 24 } } }, "range": [ - 72036, - 72045 + 72973, + 72982 ], "loc": { "start": { - "line": 2386, + "line": 2413, "column": 15 }, "end": { - "line": 2386, + "line": 2413, "column": 24 } } @@ -130884,62 +132186,62 @@ "type": "Identifier", "name": "display", "range": [ - 72046, - 72053 + 72983, + 72990 ], "loc": { "start": { - "line": 2386, + "line": 2413, "column": 25 }, "end": { - "line": 2386, + "line": 2413, "column": 32 } } }, "range": [ - 72036, - 72053 + 72973, + 72990 ], "loc": { "start": { - "line": 2386, + "line": 2413, "column": 15 }, "end": { - "line": 2386, + "line": 2413, "column": 32 } } }, "range": [ - 72029, - 72054 + 72966, + 72991 ], "loc": { "start": { - "line": 2386, + "line": 2413, "column": 8 }, "end": { - "line": 2386, + "line": 2413, "column": 33 } } } ], "range": [ - 72019, - 72060 + 72956, + 72997 ], "loc": { "start": { - "line": 2385, + "line": 2412, "column": 23 }, "end": { - "line": 2387, + "line": 2414, "column": 5 } } @@ -130947,16 +132249,16 @@ "generator": false, "expression": false, "range": [ - 72013, - 72060 + 72950, + 72997 ], "loc": { "start": { - "line": 2385, + "line": 2412, "column": 17 }, "end": { - "line": 2387, + "line": 2414, "column": 5 } } @@ -130964,16 +132266,16 @@ "kind": "method", "computed": false, "range": [ - 72000, - 72060 + 72937, + 72997 ], "loc": { "start": { - "line": 2385, + "line": 2412, "column": 4 }, "end": { - "line": 2387, + "line": 2414, "column": 5 } }, @@ -130982,16 +132284,16 @@ "type": "Block", "value": "*\n * Get the display value of a row\n * @param {HTMLTableRowElement} row DOM element of the row\n * @return {String} Usually 'none' or ''\n ", "range": [ - 71833, - 71995 + 72770, + 72932 ], "loc": { "start": { - "line": 2380, + "line": 2407, "column": 4 }, "end": { - "line": 2384, + "line": 2411, "column": 7 } } @@ -131002,16 +132304,16 @@ "type": "Block", "value": "*\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 ", "range": [ - 72066, - 72239 + 73003, + 73176 ], "loc": { "start": { - "line": 2389, + "line": 2416, "column": 4 }, "end": { - "line": 2393, + "line": 2420, "column": 7 } } @@ -131025,16 +132327,16 @@ "type": "Identifier", "name": "validateRow", "range": [ - 72244, - 72255 + 73181, + 73192 ], "loc": { "start": { - "line": 2394, + "line": 2421, "column": 4 }, "end": { - "line": 2394, + "line": 2421, "column": 15 } } @@ -131047,16 +132349,16 @@ "type": "Identifier", "name": "rowIndex", "range": [ - 72256, - 72264 + 73193, + 73201 ], "loc": { "start": { - "line": 2394, + "line": 2421, "column": 16 }, "end": { - "line": 2394, + "line": 2421, "column": 24 } } @@ -131065,16 +132367,16 @@ "type": "Identifier", "name": "isValid", "range": [ - 72266, - 72273 + 73203, + 73210 ], "loc": { "start": { - "line": 2394, + "line": 2421, "column": 26 }, "end": { - "line": 2394, + "line": 2421, "column": 33 } } @@ -131092,16 +132394,16 @@ "type": "Identifier", "name": "row", "range": [ - 72289, - 72292 + 73226, + 73229 ], "loc": { "start": { - "line": 2395, + "line": 2422, "column": 12 }, "end": { - "line": 2395, + "line": 2422, "column": 15 } } @@ -131118,16 +132420,16 @@ "object": { "type": "ThisExpression", "range": [ - 72295, - 72299 + 73232, + 73236 ], "loc": { "start": { - "line": 2395, + "line": 2422, "column": 18 }, "end": { - "line": 2395, + "line": 2422, "column": 22 } } @@ -131136,31 +132438,31 @@ "type": "Identifier", "name": "tbl", "range": [ - 72300, - 72303 + 73237, + 73240 ], "loc": { "start": { - "line": 2395, + "line": 2422, "column": 23 }, "end": { - "line": 2395, + "line": 2422, "column": 26 } } }, "range": [ - 72295, - 72303 + 73232, + 73240 ], "loc": { "start": { - "line": 2395, + "line": 2422, "column": 18 }, "end": { - "line": 2395, + "line": 2422, "column": 26 } } @@ -131169,31 +132471,31 @@ "type": "Identifier", "name": "rows", "range": [ - 72304, - 72308 + 73241, + 73245 ], "loc": { "start": { - "line": 2395, + "line": 2422, "column": 27 }, "end": { - "line": 2395, + "line": 2422, "column": 31 } } }, "range": [ - 72295, - 72308 + 73232, + 73245 ], "loc": { "start": { - "line": 2395, + "line": 2422, "column": 18 }, "end": { - "line": 2395, + "line": 2422, "column": 31 } } @@ -131202,46 +132504,46 @@ "type": "Identifier", "name": "rowIndex", "range": [ - 72309, - 72317 + 73246, + 73254 ], "loc": { "start": { - "line": 2395, + "line": 2422, "column": 32 }, "end": { - "line": 2395, + "line": 2422, "column": 40 } } }, "range": [ - 72295, - 72318 + 73232, + 73255 ], "loc": { "start": { - "line": 2395, + "line": 2422, "column": 18 }, "end": { - "line": 2395, + "line": 2422, "column": 41 } } }, "range": [ - 72289, - 72318 + 73226, + 73255 ], "loc": { "start": { - "line": 2395, + "line": 2422, "column": 12 }, "end": { - "line": 2395, + "line": 2422, "column": 41 } } @@ -131249,16 +132551,16 @@ ], "kind": "let", "range": [ - 72285, - 72319 + 73222, + 73256 ], "loc": { "start": { - "line": 2395, + "line": 2422, "column": 8 }, "end": { - "line": 2395, + "line": 2422, "column": 42 } } @@ -131275,32 +132577,32 @@ "type": "Identifier", "name": "row", "range": [ - 72333, - 72336 + 73270, + 73273 ], "loc": { "start": { - "line": 2396, + "line": 2423, "column": 13 }, "end": { - "line": 2396, + "line": 2423, "column": 16 } } }, "prefix": true, "range": [ - 72332, - 72336 + 73269, + 73273 ], "loc": { "start": { - "line": 2396, + "line": 2423, "column": 12 }, "end": { - "line": 2396, + "line": 2423, "column": 16 } } @@ -131315,32 +132617,32 @@ "type": "Identifier", "name": "isValid", "range": [ - 72347, - 72354 + 73284, + 73291 ], "loc": { "start": { - "line": 2396, + "line": 2423, "column": 27 }, "end": { - "line": 2396, + "line": 2423, "column": 34 } } }, "prefix": true, "range": [ - 72340, - 72354 + 73277, + 73291 ], "loc": { "start": { - "line": 2396, + "line": 2423, "column": 20 }, "end": { - "line": 2396, + "line": 2423, "column": 34 } } @@ -131350,46 +132652,46 @@ "value": "boolean", "raw": "'boolean'", "range": [ - 72359, - 72368 + 73296, + 73305 ], "loc": { "start": { - "line": 2396, + "line": 2423, "column": 39 }, "end": { - "line": 2396, + "line": 2423, "column": 48 } } }, "range": [ - 72340, - 72368 + 73277, + 73305 ], "loc": { "start": { - "line": 2396, + "line": 2423, "column": 20 }, "end": { - "line": 2396, + "line": 2423, "column": 48 } } }, "range": [ - 72332, - 72368 + 73269, + 73305 ], "loc": { "start": { - "line": 2396, + "line": 2423, "column": 12 }, "end": { - "line": 2396, + "line": 2423, "column": 48 } } @@ -131401,48 +132703,48 @@ "type": "ReturnStatement", "argument": null, "range": [ - 72384, - 72391 + 73321, + 73328 ], "loc": { "start": { - "line": 2397, + "line": 2424, "column": 12 }, "end": { - "line": 2397, + "line": 2424, "column": 19 } } } ], "range": [ - 72370, - 72401 + 73307, + 73338 ], "loc": { "start": { - "line": 2396, + "line": 2423, "column": 50 }, "end": { - "line": 2398, + "line": 2425, "column": 9 } } }, "alternate": null, "range": [ - 72328, - 72401 + 73265, + 73338 ], "loc": { "start": { - "line": 2396, + "line": 2423, "column": 8 }, "end": { - "line": 2398, + "line": 2425, "column": 9 } }, @@ -131451,16 +132753,16 @@ "type": "Line", "value": " always visible rows are valid", "range": [ - 72411, - 72443 + 73348, + 73380 ], "loc": { "start": { - "line": 2400, + "line": 2427, "column": 8 }, "end": { - "line": 2400, + "line": 2427, "column": 40 } } @@ -131478,16 +132780,16 @@ "object": { "type": "ThisExpression", "range": [ - 72456, - 72460 + 73393, + 73397 ], "loc": { "start": { - "line": 2401, + "line": 2428, "column": 12 }, "end": { - "line": 2401, + "line": 2428, "column": 16 } } @@ -131496,31 +132798,31 @@ "type": "Identifier", "name": "hasVisibleRows", "range": [ - 72461, - 72475 + 73398, + 73412 ], "loc": { "start": { - "line": 2401, + "line": 2428, "column": 17 }, "end": { - "line": 2401, + "line": 2428, "column": 31 } } }, "range": [ - 72456, - 72475 + 73393, + 73412 ], "loc": { "start": { - "line": 2401, + "line": 2428, "column": 12 }, "end": { - "line": 2401, + "line": 2428, "column": 31 } } @@ -131539,16 +132841,16 @@ "object": { "type": "ThisExpression", "range": [ - 72479, - 72483 + 73416, + 73420 ], "loc": { "start": { - "line": 2401, + "line": 2428, "column": 35 }, "end": { - "line": 2401, + "line": 2428, "column": 39 } } @@ -131557,31 +132859,31 @@ "type": "Identifier", "name": "visibleRows", "range": [ - 72484, - 72495 + 73421, + 73432 ], "loc": { "start": { - "line": 2401, + "line": 2428, "column": 40 }, "end": { - "line": 2401, + "line": 2428, "column": 51 } } }, "range": [ - 72479, - 72495 + 73416, + 73432 ], "loc": { "start": { - "line": 2401, + "line": 2428, "column": 35 }, "end": { - "line": 2401, + "line": 2428, "column": 51 } } @@ -131590,31 +132892,31 @@ "type": "Identifier", "name": "indexOf", "range": [ - 72496, - 72503 + 73433, + 73440 ], "loc": { "start": { - "line": 2401, + "line": 2428, "column": 52 }, "end": { - "line": 2401, + "line": 2428, "column": 59 } } }, "range": [ - 72479, - 72503 + 73416, + 73440 ], "loc": { "start": { - "line": 2401, + "line": 2428, "column": 35 }, "end": { - "line": 2401, + "line": 2428, "column": 59 } } @@ -131624,32 +132926,32 @@ "type": "Identifier", "name": "rowIndex", "range": [ - 72504, - 72512 + 73441, + 73449 ], "loc": { "start": { - "line": 2401, + "line": 2428, "column": 60 }, "end": { - "line": 2401, + "line": 2428, "column": 68 } } } ], "range": [ - 72479, - 72513 + 73416, + 73450 ], "loc": { "start": { - "line": 2401, + "line": 2428, "column": 35 }, "end": { - "line": 2401, + "line": 2428, "column": 69 } } @@ -131662,62 +132964,62 @@ "value": 1, "raw": "1", "range": [ - 72519, - 72520 + 73456, + 73457 ], "loc": { "start": { - "line": 2401, + "line": 2428, "column": 75 }, "end": { - "line": 2401, + "line": 2428, "column": 76 } } }, "prefix": true, "range": [ - 72518, - 72520 + 73455, + 73457 ], "loc": { "start": { - "line": 2401, + "line": 2428, "column": 74 }, "end": { - "line": 2401, + "line": 2428, "column": 76 } } }, "range": [ - 72479, - 72520 + 73416, + 73457 ], "loc": { "start": { - "line": 2401, + "line": 2428, "column": 35 }, "end": { - "line": 2401, + "line": 2428, "column": 76 } } }, "range": [ - 72456, - 72520 + 73393, + 73457 ], "loc": { "start": { - "line": 2401, + "line": 2428, "column": 12 }, "end": { - "line": 2401, + "line": 2428, "column": 76 } } @@ -131734,16 +133036,16 @@ "type": "Identifier", "name": "isValid", "range": [ - 72536, - 72543 + 73473, + 73480 ], "loc": { "start": { - "line": 2402, + "line": 2429, "column": 12 }, "end": { - "line": 2402, + "line": 2429, "column": 19 } } @@ -131753,78 +133055,78 @@ "value": true, "raw": "true", "range": [ - 72546, - 72550 + 73483, + 73487 ], "loc": { "start": { - "line": 2402, + "line": 2429, "column": 22 }, "end": { - "line": 2402, + "line": 2429, "column": 26 } } }, "range": [ - 72536, - 72550 + 73473, + 73487 ], "loc": { "start": { - "line": 2402, + "line": 2429, "column": 12 }, "end": { - "line": 2402, + "line": 2429, "column": 26 } } }, "range": [ - 72536, - 72551 + 73473, + 73488 ], "loc": { "start": { - "line": 2402, + "line": 2429, "column": 12 }, "end": { - "line": 2402, + "line": 2429, "column": 27 } } } ], "range": [ - 72522, - 72561 + 73459, + 73498 ], "loc": { "start": { - "line": 2401, + "line": 2428, "column": 78 }, "end": { - "line": 2403, + "line": 2430, "column": 9 } } }, "alternate": null, "range": [ - 72452, - 72561 + 73389, + 73498 ], "loc": { "start": { - "line": 2401, + "line": 2428, "column": 8 }, "end": { - "line": 2403, + "line": 2430, "column": 9 } }, @@ -131833,16 +133135,16 @@ "type": "Line", "value": " always visible rows are valid", "range": [ - 72411, - 72443 + 73348, + 73380 ], "loc": { "start": { - "line": 2400, + "line": 2427, "column": 8 }, "end": { - "line": 2400, + "line": 2427, "column": 40 } } @@ -131858,16 +133160,16 @@ "type": "Identifier", "name": "displayFlag", "range": [ - 72575, - 72586 + 73512, + 73523 ], "loc": { "start": { - "line": 2405, + "line": 2432, "column": 12 }, "end": { - "line": 2405, + "line": 2432, "column": 23 } } @@ -131878,16 +133180,16 @@ "type": "Identifier", "name": "isValid", "range": [ - 72589, - 72596 + 73526, + 73533 ], "loc": { "start": { - "line": 2405, + "line": 2432, "column": 26 }, "end": { - "line": 2405, + "line": 2432, "column": 33 } } @@ -131897,16 +133199,16 @@ "value": "", "raw": "''", "range": [ - 72599, - 72601 + 73536, + 73538 ], "loc": { "start": { - "line": 2405, + "line": 2432, "column": 36 }, "end": { - "line": 2405, + "line": 2432, "column": 38 } } @@ -131915,46 +133217,46 @@ "type": "Identifier", "name": "NONE", "range": [ - 72604, - 72608 + 73541, + 73545 ], "loc": { "start": { - "line": 2405, + "line": 2432, "column": 41 }, "end": { - "line": 2405, + "line": 2432, "column": 45 } } }, "range": [ - 72589, - 72608 + 73526, + 73545 ], "loc": { "start": { - "line": 2405, + "line": 2432, "column": 26 }, "end": { - "line": 2405, + "line": 2432, "column": 45 } } }, "range": [ - 72575, - 72608 + 73512, + 73545 ], "loc": { "start": { - "line": 2405, + "line": 2432, "column": 12 }, "end": { - "line": 2405, + "line": 2432, "column": 45 } } @@ -131965,16 +133267,16 @@ "type": "Identifier", "name": "validFlag", "range": [ - 72622, - 72631 + 73559, + 73568 ], "loc": { "start": { - "line": 2406, + "line": 2433, "column": 12 }, "end": { - "line": 2406, + "line": 2433, "column": 21 } } @@ -131985,16 +133287,16 @@ "type": "Identifier", "name": "isValid", "range": [ - 72634, - 72641 + 73571, + 73578 ], "loc": { "start": { - "line": 2406, + "line": 2433, "column": 24 }, "end": { - "line": 2406, + "line": 2433, "column": 31 } } @@ -132004,16 +133306,16 @@ "value": "true", "raw": "'true'", "range": [ - 72644, - 72650 + 73581, + 73587 ], "loc": { "start": { - "line": 2406, + "line": 2433, "column": 34 }, "end": { - "line": 2406, + "line": 2433, "column": 40 } } @@ -132023,46 +133325,46 @@ "value": "false", "raw": "'false'", "range": [ - 72653, - 72660 + 73590, + 73597 ], "loc": { "start": { - "line": 2406, + "line": 2433, "column": 43 }, "end": { - "line": 2406, + "line": 2433, "column": 50 } } }, "range": [ - 72634, - 72660 + 73571, + 73597 ], "loc": { "start": { - "line": 2406, + "line": 2433, "column": 24 }, "end": { - "line": 2406, + "line": 2433, "column": 50 } } }, "range": [ - 72622, - 72660 + 73559, + 73597 ], "loc": { "start": { - "line": 2406, + "line": 2433, "column": 12 }, "end": { - "line": 2406, + "line": 2433, "column": 50 } } @@ -132070,16 +133372,16 @@ ], "kind": "let", "range": [ - 72571, - 72661 + 73508, + 73598 ], "loc": { "start": { - "line": 2405, + "line": 2432, "column": 8 }, "end": { - "line": 2406, + "line": 2433, "column": 51 } } @@ -132099,16 +133401,16 @@ "type": "Identifier", "name": "row", "range": [ - 72670, - 72673 + 73607, + 73610 ], "loc": { "start": { - "line": 2407, + "line": 2434, "column": 8 }, "end": { - "line": 2407, + "line": 2434, "column": 11 } } @@ -132117,31 +133419,31 @@ "type": "Identifier", "name": "style", "range": [ - 72674, - 72679 + 73611, + 73616 ], "loc": { "start": { - "line": 2407, + "line": 2434, "column": 12 }, "end": { - "line": 2407, + "line": 2434, "column": 17 } } }, "range": [ - 72670, - 72679 + 73607, + 73616 ], "loc": { "start": { - "line": 2407, + "line": 2434, "column": 8 }, "end": { - "line": 2407, + "line": 2434, "column": 17 } } @@ -132150,31 +133452,31 @@ "type": "Identifier", "name": "display", "range": [ - 72680, - 72687 + 73617, + 73624 ], "loc": { "start": { - "line": 2407, + "line": 2434, "column": 18 }, "end": { - "line": 2407, + "line": 2434, "column": 25 } } }, "range": [ - 72670, - 72687 + 73607, + 73624 ], "loc": { "start": { - "line": 2407, + "line": 2434, "column": 8 }, "end": { - "line": 2407, + "line": 2434, "column": 25 } } @@ -132183,46 +133485,46 @@ "type": "Identifier", "name": "displayFlag", "range": [ - 72690, - 72701 + 73627, + 73638 ], "loc": { "start": { - "line": 2407, + "line": 2434, "column": 28 }, "end": { - "line": 2407, + "line": 2434, "column": 39 } } }, "range": [ - 72670, - 72701 + 73607, + 73638 ], "loc": { "start": { - "line": 2407, + "line": 2434, "column": 8 }, "end": { - "line": 2407, + "line": 2434, "column": 39 } } }, "range": [ - 72670, - 72702 + 73607, + 73639 ], "loc": { "start": { - "line": 2407, + "line": 2434, "column": 8 }, "end": { - "line": 2407, + "line": 2434, "column": 40 } } @@ -132235,16 +133537,16 @@ "object": { "type": "ThisExpression", "range": [ - 72716, - 72720 + 73653, + 73657 ], "loc": { "start": { - "line": 2409, + "line": 2436, "column": 12 }, "end": { - "line": 2409, + "line": 2436, "column": 16 } } @@ -132253,31 +133555,31 @@ "type": "Identifier", "name": "paging", "range": [ - 72721, - 72727 + 73658, + 73664 ], "loc": { "start": { - "line": 2409, + "line": 2436, "column": 17 }, "end": { - "line": 2409, + "line": 2436, "column": 23 } } }, "range": [ - 72716, - 72727 + 73653, + 73664 ], "loc": { "start": { - "line": 2409, + "line": 2436, "column": 12 }, "end": { - "line": 2409, + "line": 2436, "column": 23 } } @@ -132296,16 +133598,16 @@ "type": "Identifier", "name": "row", "range": [ - 72743, - 72746 + 73680, + 73683 ], "loc": { "start": { - "line": 2410, + "line": 2437, "column": 12 }, "end": { - "line": 2410, + "line": 2437, "column": 15 } } @@ -132314,31 +133616,31 @@ "type": "Identifier", "name": "setAttribute", "range": [ - 72747, - 72759 + 73684, + 73696 ], "loc": { "start": { - "line": 2410, + "line": 2437, "column": 16 }, "end": { - "line": 2410, + "line": 2437, "column": 28 } } }, "range": [ - 72743, - 72759 + 73680, + 73696 ], "loc": { "start": { - "line": 2410, + "line": 2437, "column": 12 }, "end": { - "line": 2410, + "line": 2437, "column": 28 } } @@ -132349,16 +133651,16 @@ "value": "validRow", "raw": "'validRow'", "range": [ - 72760, - 72770 + 73697, + 73707 ], "loc": { "start": { - "line": 2410, + "line": 2437, "column": 29 }, "end": { - "line": 2410, + "line": 2437, "column": 39 } } @@ -132367,79 +133669,79 @@ "type": "Identifier", "name": "validFlag", "range": [ - 72772, - 72781 + 73709, + 73718 ], "loc": { "start": { - "line": 2410, + "line": 2437, "column": 41 }, "end": { - "line": 2410, + "line": 2437, "column": 50 } } } ], "range": [ - 72743, - 72782 + 73680, + 73719 ], "loc": { "start": { - "line": 2410, + "line": 2437, "column": 12 }, "end": { - "line": 2410, + "line": 2437, "column": 51 } } }, "range": [ - 72743, - 72783 + 73680, + 73720 ], "loc": { "start": { - "line": 2410, + "line": 2437, "column": 12 }, "end": { - "line": 2410, + "line": 2437, "column": 52 } } } ], "range": [ - 72729, - 72793 + 73666, + 73730 ], "loc": { "start": { - "line": 2409, + "line": 2436, "column": 25 }, "end": { - "line": 2411, + "line": 2438, "column": 9 } } }, "alternate": null, "range": [ - 72712, - 72793 + 73649, + 73730 ], "loc": { "start": { - "line": 2409, + "line": 2436, "column": 8 }, "end": { - "line": 2411, + "line": 2438, "column": 9 } } @@ -132450,16 +133752,16 @@ "type": "Identifier", "name": "isValid", "range": [ - 72807, - 72814 + 73744, + 73751 ], "loc": { "start": { - "line": 2413, + "line": 2440, "column": 12 }, "end": { - "line": 2413, + "line": 2440, "column": 19 } } @@ -132483,16 +133785,16 @@ "object": { "type": "ThisExpression", "range": [ - 72834, - 72838 + 73771, + 73775 ], "loc": { "start": { - "line": 2414, + "line": 2441, "column": 16 }, "end": { - "line": 2414, + "line": 2441, "column": 20 } } @@ -132501,31 +133803,31 @@ "type": "Identifier", "name": "validRowsIndex", "range": [ - 72839, - 72853 + 73776, + 73790 ], "loc": { "start": { - "line": 2414, + "line": 2441, "column": 21 }, "end": { - "line": 2414, + "line": 2441, "column": 35 } } }, "range": [ - 72834, - 72853 + 73771, + 73790 ], "loc": { "start": { - "line": 2414, + "line": 2441, "column": 16 }, "end": { - "line": 2414, + "line": 2441, "column": 35 } } @@ -132534,31 +133836,31 @@ "type": "Identifier", "name": "indexOf", "range": [ - 72854, - 72861 + 73791, + 73798 ], "loc": { "start": { - "line": 2414, + "line": 2441, "column": 36 }, "end": { - "line": 2414, + "line": 2441, "column": 43 } } }, "range": [ - 72834, - 72861 + 73771, + 73798 ], "loc": { "start": { - "line": 2414, + "line": 2441, "column": 16 }, "end": { - "line": 2414, + "line": 2441, "column": 43 } } @@ -132568,32 +133870,32 @@ "type": "Identifier", "name": "rowIndex", "range": [ - 72862, - 72870 + 73799, + 73807 ], "loc": { "start": { - "line": 2414, + "line": 2441, "column": 44 }, "end": { - "line": 2414, + "line": 2441, "column": 52 } } } ], "range": [ - 72834, - 72871 + 73771, + 73808 ], "loc": { "start": { - "line": 2414, + "line": 2441, "column": 16 }, "end": { - "line": 2414, + "line": 2441, "column": 53 } } @@ -132606,47 +133908,47 @@ "value": 1, "raw": "1", "range": [ - 72877, - 72878 + 73814, + 73815 ], "loc": { "start": { - "line": 2414, + "line": 2441, "column": 59 }, "end": { - "line": 2414, + "line": 2441, "column": 60 } } }, "prefix": true, "range": [ - 72876, - 72878 + 73813, + 73815 ], "loc": { "start": { - "line": 2414, + "line": 2441, "column": 58 }, "end": { - "line": 2414, + "line": 2441, "column": 60 } } }, "range": [ - 72834, - 72878 + 73771, + 73815 ], "loc": { "start": { - "line": 2414, + "line": 2441, "column": 16 }, "end": { - "line": 2414, + "line": 2441, "column": 60 } } @@ -132667,16 +133969,16 @@ "object": { "type": "ThisExpression", "range": [ - 72898, - 72902 + 73835, + 73839 ], "loc": { "start": { - "line": 2415, + "line": 2442, "column": 16 }, "end": { - "line": 2415, + "line": 2442, "column": 20 } } @@ -132685,31 +133987,31 @@ "type": "Identifier", "name": "validRowsIndex", "range": [ - 72903, - 72917 + 73840, + 73854 ], "loc": { "start": { - "line": 2415, + "line": 2442, "column": 21 }, "end": { - "line": 2415, + "line": 2442, "column": 35 } } }, "range": [ - 72898, - 72917 + 73835, + 73854 ], "loc": { "start": { - "line": 2415, + "line": 2442, "column": 16 }, "end": { - "line": 2415, + "line": 2442, "column": 35 } } @@ -132718,31 +134020,31 @@ "type": "Identifier", "name": "push", "range": [ - 72918, - 72922 + 73855, + 73859 ], "loc": { "start": { - "line": 2415, + "line": 2442, "column": 36 }, "end": { - "line": 2415, + "line": 2442, "column": 40 } } }, "range": [ - 72898, - 72922 + 73835, + 73859 ], "loc": { "start": { - "line": 2415, + "line": 2442, "column": 16 }, "end": { - "line": 2415, + "line": 2442, "column": 40 } } @@ -132752,79 +134054,79 @@ "type": "Identifier", "name": "rowIndex", "range": [ - 72923, - 72931 + 73860, + 73868 ], "loc": { "start": { - "line": 2415, + "line": 2442, "column": 41 }, "end": { - "line": 2415, + "line": 2442, "column": 49 } } } ], "range": [ - 72898, - 72932 + 73835, + 73869 ], "loc": { "start": { - "line": 2415, + "line": 2442, "column": 16 }, "end": { - "line": 2415, + "line": 2442, "column": 50 } } }, "range": [ - 72898, - 72933 + 73835, + 73870 ], "loc": { "start": { - "line": 2415, + "line": 2442, "column": 16 }, "end": { - "line": 2415, + "line": 2442, "column": 51 } } } ], "range": [ - 72880, - 72947 + 73817, + 73884 ], "loc": { "start": { - "line": 2414, + "line": 2441, "column": 62 }, "end": { - "line": 2416, + "line": 2443, "column": 13 } } }, "alternate": null, "range": [ - 72830, - 72947 + 73767, + 73884 ], "loc": { "start": { - "line": 2414, + "line": 2441, "column": 12 }, "end": { - "line": 2416, + "line": 2443, "column": 13 } } @@ -132839,16 +134141,16 @@ "object": { "type": "ThisExpression", "range": [ - 72961, - 72965 + 73898, + 73902 ], "loc": { "start": { - "line": 2418, + "line": 2445, "column": 12 }, "end": { - "line": 2418, + "line": 2445, "column": 16 } } @@ -132857,31 +134159,31 @@ "type": "Identifier", "name": "onRowValidated", "range": [ - 72966, - 72980 + 73903, + 73917 ], "loc": { "start": { - "line": 2418, + "line": 2445, "column": 17 }, "end": { - "line": 2418, + "line": 2445, "column": 31 } } }, "range": [ - 72961, - 72980 + 73898, + 73917 ], "loc": { "start": { - "line": 2418, + "line": 2445, "column": 12 }, "end": { - "line": 2418, + "line": 2445, "column": 31 } } @@ -132890,16 +134192,16 @@ { "type": "ThisExpression", "range": [ - 72981, - 72985 + 73918, + 73922 ], "loc": { "start": { - "line": 2418, + "line": 2445, "column": 32 }, "end": { - "line": 2418, + "line": 2445, "column": 36 } } @@ -132908,47 +134210,47 @@ "type": "Identifier", "name": "rowIndex", "range": [ - 72987, - 72995 + 73924, + 73932 ], "loc": { "start": { - "line": 2418, + "line": 2445, "column": 38 }, "end": { - "line": 2418, + "line": 2445, "column": 46 } } } ], "range": [ - 72961, - 72996 + 73898, + 73933 ], "loc": { "start": { - "line": 2418, + "line": 2445, "column": 12 }, "end": { - "line": 2418, + "line": 2445, "column": 47 } } }, "range": [ - 72961, - 72997 + 73898, + 73934 ], "loc": { "start": { - "line": 2418, + "line": 2445, "column": 12 }, "end": { - "line": 2418, + "line": 2445, "column": 48 } } @@ -132966,16 +134268,16 @@ "object": { "type": "ThisExpression", "range": [ - 73011, - 73015 + 73948, + 73952 ], "loc": { "start": { - "line": 2420, + "line": 2447, "column": 12 }, "end": { - "line": 2420, + "line": 2447, "column": 16 } } @@ -132984,31 +134286,31 @@ "type": "Identifier", "name": "emitter", "range": [ - 73016, - 73023 + 73953, + 73960 ], "loc": { "start": { - "line": 2420, + "line": 2447, "column": 17 }, "end": { - "line": 2420, + "line": 2447, "column": 24 } } }, "range": [ - 73011, - 73023 + 73948, + 73960 ], "loc": { "start": { - "line": 2420, + "line": 2447, "column": 12 }, "end": { - "line": 2420, + "line": 2447, "column": 24 } } @@ -133017,31 +134319,31 @@ "type": "Identifier", "name": "emit", "range": [ - 73024, - 73028 + 73961, + 73965 ], "loc": { "start": { - "line": 2420, + "line": 2447, "column": 25 }, "end": { - "line": 2420, + "line": 2447, "column": 29 } } }, "range": [ - 73011, - 73028 + 73948, + 73965 ], "loc": { "start": { - "line": 2420, + "line": 2447, "column": 12 }, "end": { - "line": 2420, + "line": 2447, "column": 29 } } @@ -133052,16 +134354,16 @@ "value": "row-validated", "raw": "'row-validated'", "range": [ - 73029, - 73044 + 73966, + 73981 ], "loc": { "start": { - "line": 2420, + "line": 2447, "column": 30 }, "end": { - "line": 2420, + "line": 2447, "column": 45 } } @@ -133069,16 +134371,16 @@ { "type": "ThisExpression", "range": [ - 73046, - 73050 + 73983, + 73987 ], "loc": { "start": { - "line": 2420, + "line": 2447, "column": 47 }, "end": { - "line": 2420, + "line": 2447, "column": 51 } } @@ -133087,95 +134389,95 @@ "type": "Identifier", "name": "rowIndex", "range": [ - 73052, - 73060 + 73989, + 73997 ], "loc": { "start": { - "line": 2420, + "line": 2447, "column": 53 }, "end": { - "line": 2420, + "line": 2447, "column": 61 } } } ], "range": [ - 73011, - 73061 + 73948, + 73998 ], "loc": { "start": { - "line": 2420, + "line": 2447, "column": 12 }, "end": { - "line": 2420, + "line": 2447, "column": 62 } } }, "range": [ - 73011, - 73062 + 73948, + 73999 ], "loc": { "start": { - "line": 2420, + "line": 2447, "column": 12 }, "end": { - "line": 2420, + "line": 2447, "column": 63 } } } ], "range": [ - 72816, - 73072 + 73753, + 74009 ], "loc": { "start": { - "line": 2413, + "line": 2440, "column": 21 }, "end": { - "line": 2421, + "line": 2448, "column": 9 } } }, "alternate": null, "range": [ - 72803, - 73072 + 73740, + 74009 ], "loc": { "start": { - "line": 2413, + "line": 2440, "column": 8 }, "end": { - "line": 2421, + "line": 2448, "column": 9 } } } ], "range": [ - 72275, - 73078 + 73212, + 74015 ], "loc": { "start": { - "line": 2394, + "line": 2421, "column": 35 }, "end": { - "line": 2422, + "line": 2449, "column": 5 } } @@ -133183,16 +134485,16 @@ "generator": false, "expression": false, "range": [ - 72255, - 73078 + 73192, + 74015 ], "loc": { "start": { - "line": 2394, + "line": 2421, "column": 15 }, "end": { - "line": 2422, + "line": 2449, "column": 5 } } @@ -133200,16 +134502,16 @@ "kind": "method", "computed": false, "range": [ - 72244, - 73078 + 73181, + 74015 ], "loc": { "start": { - "line": 2394, + "line": 2421, "column": 4 }, "end": { - "line": 2422, + "line": 2449, "column": 5 } }, @@ -133218,16 +134520,16 @@ "type": "Block", "value": "*\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 ", "range": [ - 72066, - 72239 + 73003, + 73176 ], "loc": { "start": { - "line": 2389, + "line": 2416, "column": 4 }, "end": { - "line": 2393, + "line": 2420, "column": 7 } } @@ -133238,16 +134540,16 @@ "type": "Block", "value": "*\n * Validate all filterable rows\n ", "range": [ - 73084, - 73131 + 74021, + 74068 ], "loc": { "start": { - "line": 2424, + "line": 2451, "column": 4 }, "end": { - "line": 2426, + "line": 2453, "column": 7 } } @@ -133261,16 +134563,16 @@ "type": "Identifier", "name": "validateAllRows", "range": [ - 73136, - 73151 + 74073, + 74088 ], "loc": { "start": { - "line": 2427, + "line": 2454, "column": 4 }, "end": { - "line": 2427, + "line": 2454, "column": 19 } } @@ -133293,16 +134595,16 @@ "object": { "type": "ThisExpression", "range": [ - 73169, - 73173 + 74106, + 74110 ], "loc": { "start": { - "line": 2428, + "line": 2455, "column": 13 }, "end": { - "line": 2428, + "line": 2455, "column": 17 } } @@ -133311,47 +134613,47 @@ "type": "Identifier", "name": "initialized", "range": [ - 73174, - 73185 + 74111, + 74122 ], "loc": { "start": { - "line": 2428, + "line": 2455, "column": 18 }, "end": { - "line": 2428, + "line": 2455, "column": 29 } } }, "range": [ - 73169, - 73185 + 74106, + 74122 ], "loc": { "start": { - "line": 2428, + "line": 2455, "column": 13 }, "end": { - "line": 2428, + "line": 2455, "column": 29 } } }, "prefix": true, "range": [ - 73168, - 73185 + 74105, + 74122 ], "loc": { "start": { - "line": 2428, + "line": 2455, "column": 12 }, "end": { - "line": 2428, + "line": 2455, "column": 29 } } @@ -133363,48 +134665,48 @@ "type": "ReturnStatement", "argument": null, "range": [ - 73201, - 73208 + 74138, + 74145 ], "loc": { "start": { - "line": 2429, + "line": 2456, "column": 12 }, "end": { - "line": 2429, + "line": 2456, "column": 19 } } } ], "range": [ - 73187, - 73218 + 74124, + 74155 ], "loc": { "start": { - "line": 2428, + "line": 2455, "column": 31 }, "end": { - "line": 2430, + "line": 2457, "column": 9 } } }, "alternate": null, "range": [ - 73164, - 73218 + 74101, + 74155 ], "loc": { "start": { - "line": 2428, + "line": 2455, "column": 8 }, "end": { - "line": 2430, + "line": 2457, "column": 9 } } @@ -133420,16 +134722,16 @@ "object": { "type": "ThisExpression", "range": [ - 73227, - 73231 + 74164, + 74168 ], "loc": { "start": { - "line": 2431, + "line": 2458, "column": 8 }, "end": { - "line": 2431, + "line": 2458, "column": 12 } } @@ -133438,31 +134740,31 @@ "type": "Identifier", "name": "validRowsIndex", "range": [ - 73232, - 73246 + 74169, + 74183 ], "loc": { "start": { - "line": 2431, + "line": 2458, "column": 13 }, "end": { - "line": 2431, + "line": 2458, "column": 27 } } }, "range": [ - 73227, - 73246 + 74164, + 74183 ], "loc": { "start": { - "line": 2431, + "line": 2458, "column": 8 }, "end": { - "line": 2431, + "line": 2458, "column": 27 } } @@ -133471,46 +134773,46 @@ "type": "ArrayExpression", "elements": [], "range": [ - 73249, - 73251 + 74186, + 74188 ], "loc": { "start": { - "line": 2431, + "line": 2458, "column": 30 }, "end": { - "line": 2431, + "line": 2458, "column": 32 } } }, "range": [ - 73227, - 73251 + 74164, + 74188 ], "loc": { "start": { - "line": 2431, + "line": 2458, "column": 8 }, "end": { - "line": 2431, + "line": 2458, "column": 32 } } }, "range": [ - 73227, - 73252 + 74164, + 74189 ], "loc": { "start": { - "line": 2431, + "line": 2458, "column": 8 }, "end": { - "line": 2431, + "line": 2458, "column": 33 } } @@ -133526,16 +134828,16 @@ "type": "Identifier", "name": "k", "range": [ - 73270, - 73271 + 74207, + 74208 ], "loc": { "start": { - "line": 2432, + "line": 2459, "column": 17 }, "end": { - "line": 2432, + "line": 2459, "column": 18 } } @@ -133546,16 +134848,16 @@ "object": { "type": "ThisExpression", "range": [ - 73274, - 73278 + 74211, + 74215 ], "loc": { "start": { - "line": 2432, + "line": 2459, "column": 21 }, "end": { - "line": 2432, + "line": 2459, "column": 25 } } @@ -133564,46 +134866,46 @@ "type": "Identifier", "name": "refRow", "range": [ - 73279, - 73285 + 74216, + 74222 ], "loc": { "start": { - "line": 2432, + "line": 2459, "column": 26 }, "end": { - "line": 2432, + "line": 2459, "column": 32 } } }, "range": [ - 73274, - 73285 + 74211, + 74222 ], "loc": { "start": { - "line": 2432, + "line": 2459, "column": 21 }, "end": { - "line": 2432, + "line": 2459, "column": 32 } } }, "range": [ - 73270, - 73285 + 74207, + 74222 ], "loc": { "start": { - "line": 2432, + "line": 2459, "column": 17 }, "end": { - "line": 2432, + "line": 2459, "column": 32 } } @@ -133611,16 +134913,16 @@ ], "kind": "let", "range": [ - 73266, - 73285 + 74203, + 74222 ], "loc": { "start": { - "line": 2432, + "line": 2459, "column": 13 }, "end": { - "line": 2432, + "line": 2459, "column": 32 } } @@ -133632,16 +134934,16 @@ "type": "Identifier", "name": "k", "range": [ - 73287, - 73288 + 74224, + 74225 ], "loc": { "start": { - "line": 2432, + "line": 2459, "column": 34 }, "end": { - "line": 2432, + "line": 2459, "column": 35 } } @@ -133652,16 +134954,16 @@ "object": { "type": "ThisExpression", "range": [ - 73291, - 73295 + 74228, + 74232 ], "loc": { "start": { - "line": 2432, + "line": 2459, "column": 38 }, "end": { - "line": 2432, + "line": 2459, "column": 42 } } @@ -133670,46 +134972,46 @@ "type": "Identifier", "name": "nbFilterableRows", "range": [ - 73296, - 73312 + 74233, + 74249 ], "loc": { "start": { - "line": 2432, + "line": 2459, "column": 43 }, "end": { - "line": 2432, + "line": 2459, "column": 59 } } }, "range": [ - 73291, - 73312 + 74228, + 74249 ], "loc": { "start": { - "line": 2432, + "line": 2459, "column": 38 }, "end": { - "line": 2432, + "line": 2459, "column": 59 } } }, "range": [ - 73287, - 73312 + 74224, + 74249 ], "loc": { "start": { - "line": 2432, + "line": 2459, "column": 34 }, "end": { - "line": 2432, + "line": 2459, "column": 59 } } @@ -133721,32 +135023,32 @@ "type": "Identifier", "name": "k", "range": [ - 73314, - 73315 + 74251, + 74252 ], "loc": { "start": { - "line": 2432, + "line": 2459, "column": 61 }, "end": { - "line": 2432, + "line": 2459, "column": 62 } } }, "prefix": false, "range": [ - 73314, - 73317 + 74251, + 74254 ], "loc": { "start": { - "line": 2432, + "line": 2459, "column": 61 }, "end": { - "line": 2432, + "line": 2459, "column": 64 } } @@ -133764,16 +135066,16 @@ "object": { "type": "ThisExpression", "range": [ - 73333, - 73337 + 74270, + 74274 ], "loc": { "start": { - "line": 2433, + "line": 2460, "column": 12 }, "end": { - "line": 2433, + "line": 2460, "column": 16 } } @@ -133782,31 +135084,31 @@ "type": "Identifier", "name": "validateRow", "range": [ - 73338, - 73349 + 74275, + 74286 ], "loc": { "start": { - "line": 2433, + "line": 2460, "column": 17 }, "end": { - "line": 2433, + "line": 2460, "column": 28 } } }, "range": [ - 73333, - 73349 + 74270, + 74286 ], "loc": { "start": { - "line": 2433, + "line": 2460, "column": 12 }, "end": { - "line": 2433, + "line": 2460, "column": 28 } } @@ -133816,16 +135118,16 @@ "type": "Identifier", "name": "k", "range": [ - 73350, - 73351 + 74287, + 74288 ], "loc": { "start": { - "line": 2433, + "line": 2460, "column": 29 }, "end": { - "line": 2433, + "line": 2460, "column": 30 } } @@ -133835,94 +135137,94 @@ "value": true, "raw": "true", "range": [ - 73353, - 73357 + 74290, + 74294 ], "loc": { "start": { - "line": 2433, + "line": 2460, "column": 32 }, "end": { - "line": 2433, + "line": 2460, "column": 36 } } } ], "range": [ - 73333, - 73358 + 74270, + 74295 ], "loc": { "start": { - "line": 2433, + "line": 2460, "column": 12 }, "end": { - "line": 2433, + "line": 2460, "column": 37 } } }, "range": [ - 73333, - 73359 + 74270, + 74296 ], "loc": { "start": { - "line": 2433, + "line": 2460, "column": 12 }, "end": { - "line": 2433, + "line": 2460, "column": 38 } } } ], "range": [ - 73319, - 73369 + 74256, + 74306 ], "loc": { "start": { - "line": 2432, + "line": 2459, "column": 66 }, "end": { - "line": 2434, + "line": 2461, "column": 9 } } }, "range": [ - 73261, - 73369 + 74198, + 74306 ], "loc": { "start": { - "line": 2432, + "line": 2459, "column": 8 }, "end": { - "line": 2434, + "line": 2461, "column": 9 } } } ], "range": [ - 73154, - 73375 + 74091, + 74312 ], "loc": { "start": { - "line": 2427, + "line": 2454, "column": 22 }, "end": { - "line": 2435, + "line": 2462, "column": 5 } } @@ -133930,16 +135232,16 @@ "generator": false, "expression": false, "range": [ - 73151, - 73375 + 74088, + 74312 ], "loc": { "start": { - "line": 2427, + "line": 2454, "column": 19 }, "end": { - "line": 2435, + "line": 2462, "column": 5 } } @@ -133947,16 +135249,16 @@ "kind": "method", "computed": false, "range": [ - 73136, - 73375 + 74073, + 74312 ], "loc": { "start": { - "line": 2427, + "line": 2454, "column": 4 }, "end": { - "line": 2435, + "line": 2462, "column": 5 } }, @@ -133965,16 +135267,16 @@ "type": "Block", "value": "*\n * Validate all filterable rows\n ", "range": [ - 73084, - 73131 + 74021, + 74068 ], "loc": { "start": { - "line": 2424, + "line": 2451, "column": 4 }, "end": { - "line": 2426, + "line": 2453, "column": 7 } } @@ -133985,16 +135287,16 @@ "type": "Block", "value": "*\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 ", "range": [ - 73381, - 73543 + 74318, + 74480 ], "loc": { "start": { - "line": 2437, + "line": 2464, "column": 4 }, "end": { - "line": 2441, + "line": 2468, "column": 7 } } @@ -134008,16 +135310,16 @@ "type": "Identifier", "name": "setFilterValue", "range": [ - 73548, - 73562 + 74485, + 74499 ], "loc": { "start": { - "line": 2442, + "line": 2469, "column": 4 }, "end": { - "line": 2442, + "line": 2469, "column": 18 } } @@ -134030,16 +135332,16 @@ "type": "Identifier", "name": "index", "range": [ - 73563, - 73568 + 74500, + 74505 ], "loc": { "start": { - "line": 2442, + "line": 2469, "column": 19 }, "end": { - "line": 2442, + "line": 2469, "column": 24 } } @@ -134050,16 +135352,16 @@ "type": "Identifier", "name": "query", "range": [ - 73570, - 73575 + 74507, + 74512 ], "loc": { "start": { - "line": 2442, + "line": 2469, "column": 26 }, "end": { - "line": 2442, + "line": 2469, "column": 31 } } @@ -134069,31 +135371,31 @@ "value": "", "raw": "''", "range": [ - 73578, - 73580 + 74515, + 74517 ], "loc": { "start": { - "line": 2442, + "line": 2469, "column": 34 }, "end": { - "line": 2442, + "line": 2469, "column": 36 } } }, "range": [ - 73570, - 73580 + 74507, + 74517 ], "loc": { "start": { - "line": 2442, + "line": 2469, "column": 26 }, "end": { - "line": 2442, + "line": 2469, "column": 36 } } @@ -134113,16 +135415,16 @@ "object": { "type": "ThisExpression", "range": [ - 73597, - 73601 + 74534, + 74538 ], "loc": { "start": { - "line": 2443, + "line": 2470, "column": 13 }, "end": { - "line": 2443, + "line": 2470, "column": 17 } } @@ -134131,47 +135433,47 @@ "type": "Identifier", "name": "fltGrid", "range": [ - 73602, - 73609 + 74539, + 74546 ], "loc": { "start": { - "line": 2443, + "line": 2470, "column": 18 }, "end": { - "line": 2443, + "line": 2470, "column": 25 } } }, "range": [ - 73597, - 73609 + 74534, + 74546 ], "loc": { "start": { - "line": 2443, + "line": 2470, "column": 13 }, "end": { - "line": 2443, + "line": 2470, "column": 25 } } }, "prefix": true, "range": [ - 73596, - 73609 + 74533, + 74546 ], "loc": { "start": { - "line": 2443, + "line": 2470, "column": 12 }, "end": { - "line": 2443, + "line": 2470, "column": 25 } } @@ -134183,48 +135485,48 @@ "type": "ReturnStatement", "argument": null, "range": [ - 73625, - 73632 + 74562, + 74569 ], "loc": { "start": { - "line": 2444, + "line": 2471, "column": 12 }, "end": { - "line": 2444, + "line": 2471, "column": 19 } } } ], "range": [ - 73611, - 73642 + 74548, + 74579 ], "loc": { "start": { - "line": 2443, + "line": 2470, "column": 27 }, "end": { - "line": 2445, + "line": 2472, "column": 9 } } }, "alternate": null, "range": [ - 73592, - 73642 + 74529, + 74579 ], "loc": { "start": { - "line": 2443, + "line": 2470, "column": 8 }, "end": { - "line": 2445, + "line": 2472, "column": 9 } } @@ -134238,16 +135540,16 @@ "type": "Identifier", "name": "slc", "range": [ - 73655, - 73658 + 74592, + 74595 ], "loc": { "start": { - "line": 2446, + "line": 2473, "column": 12 }, "end": { - "line": 2446, + "line": 2473, "column": 15 } } @@ -134260,16 +135562,16 @@ "object": { "type": "ThisExpression", "range": [ - 73661, - 73665 + 74598, + 74602 ], "loc": { "start": { - "line": 2446, + "line": 2473, "column": 18 }, "end": { - "line": 2446, + "line": 2473, "column": 22 } } @@ -134278,31 +135580,31 @@ "type": "Identifier", "name": "getFilterElement", "range": [ - 73666, - 73682 + 74603, + 74619 ], "loc": { "start": { - "line": 2446, + "line": 2473, "column": 23 }, "end": { - "line": 2446, + "line": 2473, "column": 39 } } }, "range": [ - 73661, - 73682 + 74598, + 74619 ], "loc": { "start": { - "line": 2446, + "line": 2473, "column": 18 }, "end": { - "line": 2446, + "line": 2473, "column": 39 } } @@ -134312,47 +135614,47 @@ "type": "Identifier", "name": "index", "range": [ - 73683, - 73688 + 74620, + 74625 ], "loc": { "start": { - "line": 2446, + "line": 2473, "column": 40 }, "end": { - "line": 2446, + "line": 2473, "column": 45 } } } ], "range": [ - 73661, - 73689 + 74598, + 74626 ], "loc": { "start": { - "line": 2446, + "line": 2473, "column": 18 }, "end": { - "line": 2446, + "line": 2473, "column": 46 } } }, "range": [ - 73655, - 73689 + 74592, + 74626 ], "loc": { "start": { - "line": 2446, + "line": 2473, "column": 12 }, "end": { - "line": 2446, + "line": 2473, "column": 46 } } @@ -134363,16 +135665,16 @@ "type": "Identifier", "name": "fltColType", "range": [ - 73703, - 73713 + 74640, + 74650 ], "loc": { "start": { - "line": 2447, + "line": 2474, "column": 12 }, "end": { - "line": 2447, + "line": 2474, "column": 22 } } @@ -134385,16 +135687,16 @@ "object": { "type": "ThisExpression", "range": [ - 73716, - 73720 + 74653, + 74657 ], "loc": { "start": { - "line": 2447, + "line": 2474, "column": 25 }, "end": { - "line": 2447, + "line": 2474, "column": 29 } } @@ -134403,31 +135705,31 @@ "type": "Identifier", "name": "getFilterType", "range": [ - 73721, - 73734 + 74658, + 74671 ], "loc": { "start": { - "line": 2447, + "line": 2474, "column": 30 }, "end": { - "line": 2447, + "line": 2474, "column": 43 } } }, "range": [ - 73716, - 73734 + 74653, + 74671 ], "loc": { "start": { - "line": 2447, + "line": 2474, "column": 25 }, "end": { - "line": 2447, + "line": 2474, "column": 43 } } @@ -134437,47 +135739,47 @@ "type": "Identifier", "name": "index", "range": [ - 73735, - 73740 + 74672, + 74677 ], "loc": { "start": { - "line": 2447, + "line": 2474, "column": 44 }, "end": { - "line": 2447, + "line": 2474, "column": 49 } } } ], "range": [ - 73716, - 73741 + 74653, + 74678 ], "loc": { "start": { - "line": 2447, + "line": 2474, "column": 25 }, "end": { - "line": 2447, + "line": 2474, "column": 50 } } }, "range": [ - 73703, - 73741 + 74640, + 74678 ], "loc": { "start": { - "line": 2447, + "line": 2474, "column": 12 }, "end": { - "line": 2447, + "line": 2474, "column": 50 } } @@ -134485,16 +135787,16 @@ ], "kind": "let", "range": [ - 73651, - 73742 + 74588, + 74679 ], "loc": { "start": { - "line": 2446, + "line": 2473, "column": 8 }, "end": { - "line": 2447, + "line": 2474, "column": 51 } } @@ -134511,16 +135813,16 @@ "type": "Identifier", "name": "fltColType", "range": [ - 73756, - 73766 + 74693, + 74703 ], "loc": { "start": { - "line": 2449, + "line": 2476, "column": 12 }, "end": { - "line": 2449, + "line": 2476, "column": 22 } } @@ -134529,31 +135831,31 @@ "type": "Identifier", "name": "MULTIPLE", "range": [ - 73771, - 73779 + 74708, + 74716 ], "loc": { "start": { - "line": 2449, + "line": 2476, "column": 27 }, "end": { - "line": 2449, + "line": 2476, "column": 35 } } }, "range": [ - 73756, - 73779 + 74693, + 74716 ], "loc": { "start": { - "line": 2449, + "line": 2476, "column": 12 }, "end": { - "line": 2449, + "line": 2476, "column": 35 } } @@ -134565,16 +135867,16 @@ "type": "Identifier", "name": "fltColType", "range": [ - 73783, - 73793 + 74720, + 74730 ], "loc": { "start": { - "line": 2449, + "line": 2476, "column": 39 }, "end": { - "line": 2449, + "line": 2476, "column": 49 } } @@ -134583,46 +135885,46 @@ "type": "Identifier", "name": "CHECKLIST", "range": [ - 73798, - 73807 + 74735, + 74744 ], "loc": { "start": { - "line": 2449, + "line": 2476, "column": 54 }, "end": { - "line": 2449, + "line": 2476, "column": 63 } } }, "range": [ - 73783, - 73807 + 74720, + 74744 ], "loc": { "start": { - "line": 2449, + "line": 2476, "column": 39 }, "end": { - "line": 2449, + "line": 2476, "column": 63 } } }, "range": [ - 73756, - 73807 + 74693, + 74744 ], "loc": { "start": { - "line": 2449, + "line": 2476, "column": 12 }, "end": { - "line": 2449, + "line": 2476, "column": 63 } } @@ -134641,16 +135943,16 @@ "object": { "type": "ThisExpression", "range": [ - 73827, - 73831 + 74764, + 74768 ], "loc": { "start": { - "line": 2450, + "line": 2477, "column": 16 }, "end": { - "line": 2450, + "line": 2477, "column": 20 } } @@ -134659,31 +135961,31 @@ "type": "Identifier", "name": "loadFltOnDemand", "range": [ - 73832, - 73847 + 74769, + 74784 ], "loc": { "start": { - "line": 2450, + "line": 2477, "column": 21 }, "end": { - "line": 2450, + "line": 2477, "column": 36 } } }, "range": [ - 73827, - 73847 + 74764, + 74784 ], "loc": { "start": { - "line": 2450, + "line": 2477, "column": 16 }, "end": { - "line": 2450, + "line": 2477, "column": 36 } } @@ -134697,16 +135999,16 @@ "object": { "type": "ThisExpression", "range": [ - 73852, - 73856 + 74789, + 74793 ], "loc": { "start": { - "line": 2450, + "line": 2477, "column": 41 }, "end": { - "line": 2450, + "line": 2477, "column": 45 } } @@ -134715,62 +136017,62 @@ "type": "Identifier", "name": "initialized", "range": [ - 73857, - 73868 + 74794, + 74805 ], "loc": { "start": { - "line": 2450, + "line": 2477, "column": 46 }, "end": { - "line": 2450, + "line": 2477, "column": 57 } } }, "range": [ - 73852, - 73868 + 74789, + 74805 ], "loc": { "start": { - "line": 2450, + "line": 2477, "column": 41 }, "end": { - "line": 2450, + "line": 2477, "column": 57 } } }, "prefix": true, "range": [ - 73851, - 73868 + 74788, + 74805 ], "loc": { "start": { - "line": 2450, + "line": 2477, "column": 40 }, "end": { - "line": 2450, + "line": 2477, "column": 57 } } }, "range": [ - 73827, - 73868 + 74764, + 74805 ], "loc": { "start": { - "line": 2450, + "line": 2477, "column": 16 }, "end": { - "line": 2450, + "line": 2477, "column": 57 } } @@ -134791,16 +136093,16 @@ "object": { "type": "ThisExpression", "range": [ - 73888, - 73892 + 74825, + 74829 ], "loc": { "start": { - "line": 2451, + "line": 2478, "column": 16 }, "end": { - "line": 2451, + "line": 2478, "column": 20 } } @@ -134809,31 +136111,31 @@ "type": "Identifier", "name": "emitter", "range": [ - 73893, - 73900 + 74830, + 74837 ], "loc": { "start": { - "line": 2451, + "line": 2478, "column": 21 }, "end": { - "line": 2451, + "line": 2478, "column": 28 } } }, "range": [ - 73888, - 73900 + 74825, + 74837 ], "loc": { "start": { - "line": 2451, + "line": 2478, "column": 16 }, "end": { - "line": 2451, + "line": 2478, "column": 28 } } @@ -134842,31 +136144,31 @@ "type": "Identifier", "name": "emit", "range": [ - 73901, - 73905 + 74838, + 74842 ], "loc": { "start": { - "line": 2451, + "line": 2478, "column": 29 }, "end": { - "line": 2451, + "line": 2478, "column": 33 } } }, "range": [ - 73888, - 73905 + 74825, + 74842 ], "loc": { "start": { - "line": 2451, + "line": 2478, "column": 16 }, "end": { - "line": 2451, + "line": 2478, "column": 33 } } @@ -134877,16 +136179,16 @@ "value": "build-select-filter", "raw": "'build-select-filter'", "range": [ - 73906, - 73927 + 74843, + 74864 ], "loc": { "start": { - "line": 2451, + "line": 2478, "column": 34 }, "end": { - "line": 2451, + "line": 2478, "column": 55 } } @@ -134894,16 +136196,16 @@ { "type": "ThisExpression", "range": [ - 73929, - 73933 + 74866, + 74870 ], "loc": { "start": { - "line": 2451, + "line": 2478, "column": 57 }, "end": { - "line": 2451, + "line": 2478, "column": 61 } } @@ -134912,16 +136214,16 @@ "type": "Identifier", "name": "index", "range": [ - 73935, - 73940 + 74872, + 74877 ], "loc": { "start": { - "line": 2451, + "line": 2478, "column": 63 }, "end": { - "line": 2451, + "line": 2478, "column": 68 } } @@ -134932,16 +136234,16 @@ "object": { "type": "ThisExpression", "range": [ - 73962, - 73966 + 74899, + 74903 ], "loc": { "start": { - "line": 2452, + "line": 2479, "column": 20 }, "end": { - "line": 2452, + "line": 2479, "column": 24 } } @@ -134950,31 +136252,31 @@ "type": "Identifier", "name": "linkedFilters", "range": [ - 73967, - 73980 + 74904, + 74917 ], "loc": { "start": { - "line": 2452, + "line": 2479, "column": 25 }, "end": { - "line": 2452, + "line": 2479, "column": 38 } } }, "range": [ - 73962, - 73980 + 74899, + 74917 ], "loc": { "start": { - "line": 2452, + "line": 2479, "column": 20 }, "end": { - "line": 2452, + "line": 2479, "column": 38 } } @@ -134985,16 +136287,16 @@ "object": { "type": "ThisExpression", "range": [ - 73982, - 73986 + 74919, + 74923 ], "loc": { "start": { - "line": 2452, + "line": 2479, "column": 40 }, "end": { - "line": 2452, + "line": 2479, "column": 44 } } @@ -135003,94 +136305,94 @@ "type": "Identifier", "name": "isExternalFlt", "range": [ - 73987, - 74000 + 74924, + 74937 ], "loc": { "start": { - "line": 2452, + "line": 2479, "column": 45 }, "end": { - "line": 2452, + "line": 2479, "column": 58 } } }, "range": [ - 73982, - 74000 + 74919, + 74937 ], "loc": { "start": { - "line": 2452, + "line": 2479, "column": 40 }, "end": { - "line": 2452, + "line": 2479, "column": 58 } } } ], "range": [ - 73888, - 74001 + 74825, + 74938 ], "loc": { "start": { - "line": 2451, + "line": 2478, "column": 16 }, "end": { - "line": 2452, + "line": 2479, "column": 59 } } }, "range": [ - 73888, - 74002 + 74825, + 74939 ], "loc": { "start": { - "line": 2451, + "line": 2478, "column": 16 }, "end": { - "line": 2452, + "line": 2479, "column": 60 } } } ], "range": [ - 73870, - 74016 + 74807, + 74953 ], "loc": { "start": { - "line": 2450, + "line": 2477, "column": 59 }, "end": { - "line": 2453, + "line": 2480, "column": 13 } } }, "alternate": null, "range": [ - 73823, - 74016 + 74760, + 74953 ], "loc": { "start": { - "line": 2450, + "line": 2477, "column": 12 }, "end": { - "line": 2453, + "line": 2480, "column": 13 } } @@ -135107,16 +136409,16 @@ "type": "Identifier", "name": "slc", "range": [ - 74029, - 74032 + 74966, + 74969 ], "loc": { "start": { - "line": 2454, + "line": 2481, "column": 12 }, "end": { - "line": 2454, + "line": 2481, "column": 15 } } @@ -135125,31 +136427,31 @@ "type": "Identifier", "name": "value", "range": [ - 74033, - 74038 + 74970, + 74975 ], "loc": { "start": { - "line": 2454, + "line": 2481, "column": 16 }, "end": { - "line": 2454, + "line": 2481, "column": 21 } } }, "range": [ - 74029, - 74038 + 74966, + 74975 ], "loc": { "start": { - "line": 2454, + "line": 2481, "column": 12 }, "end": { - "line": 2454, + "line": 2481, "column": 21 } } @@ -135158,62 +136460,62 @@ "type": "Identifier", "name": "query", "range": [ - 74041, - 74046 + 74978, + 74983 ], "loc": { "start": { - "line": 2454, + "line": 2481, "column": 24 }, "end": { - "line": 2454, + "line": 2481, "column": 29 } } }, "range": [ - 74029, - 74046 + 74966, + 74983 ], "loc": { "start": { - "line": 2454, + "line": 2481, "column": 12 }, "end": { - "line": 2454, + "line": 2481, "column": 29 } } }, "range": [ - 74029, - 74047 + 74966, + 74984 ], "loc": { "start": { - "line": 2454, + "line": 2481, "column": 12 }, "end": { - "line": 2454, + "line": 2481, "column": 30 } } } ], "range": [ - 73809, - 74057 + 74746, + 74994 ], "loc": { "start": { - "line": 2449, + "line": 2476, "column": 65 }, "end": { - "line": 2455, + "line": 2482, "column": 9 } }, @@ -135222,16 +136524,16 @@ "type": "Line", "value": "multiple selects", "range": [ - 74066, - 74084 + 75003, + 75021 ], "loc": { "start": { - "line": 2456, + "line": 2483, "column": 8 }, "end": { - "line": 2456, + "line": 2483, "column": 26 } } @@ -135247,16 +136549,16 @@ "type": "Identifier", "name": "fltColType", "range": [ - 74102, - 74112 + 75039, + 75049 ], "loc": { "start": { - "line": 2457, + "line": 2484, "column": 17 }, "end": { - "line": 2457, + "line": 2484, "column": 27 } } @@ -135265,31 +136567,31 @@ "type": "Identifier", "name": "MULTIPLE", "range": [ - 74117, - 74125 + 75054, + 75062 ], "loc": { "start": { - "line": 2457, + "line": 2484, "column": 32 }, "end": { - "line": 2457, + "line": 2484, "column": 40 } } }, "range": [ - 74102, - 74125 + 75039, + 75062 ], "loc": { "start": { - "line": 2457, + "line": 2484, "column": 17 }, "end": { - "line": 2457, + "line": 2484, "column": 40 } } @@ -135306,16 +136608,16 @@ "type": "Identifier", "name": "values", "range": [ - 74145, - 74151 + 75082, + 75088 ], "loc": { "start": { - "line": 2458, + "line": 2485, "column": 16 }, "end": { - "line": 2458, + "line": 2485, "column": 22 } } @@ -135328,16 +136630,16 @@ "type": "Identifier", "name": "isArray", "range": [ - 74154, - 74161 + 75091, + 75098 ], "loc": { "start": { - "line": 2458, + "line": 2485, "column": 25 }, "end": { - "line": 2458, + "line": 2485, "column": 32 } } @@ -135347,32 +136649,32 @@ "type": "Identifier", "name": "query", "range": [ - 74162, - 74167 + 75099, + 75104 ], "loc": { "start": { - "line": 2458, + "line": 2485, "column": 33 }, "end": { - "line": 2458, + "line": 2485, "column": 38 } } } ], "range": [ - 74154, - 74168 + 75091, + 75105 ], "loc": { "start": { - "line": 2458, + "line": 2485, "column": 25 }, "end": { - "line": 2458, + "line": 2485, "column": 39 } } @@ -135381,16 +136683,16 @@ "type": "Identifier", "name": "query", "range": [ - 74171, - 74176 + 75108, + 75113 ], "loc": { "start": { - "line": 2458, + "line": 2485, "column": 42 }, "end": { - "line": 2458, + "line": 2485, "column": 47 } } @@ -135404,16 +136706,16 @@ "type": "Identifier", "name": "query", "range": [ - 74195, - 74200 + 75132, + 75137 ], "loc": { "start": { - "line": 2459, + "line": 2486, "column": 16 }, "end": { - "line": 2459, + "line": 2486, "column": 21 } } @@ -135422,31 +136724,31 @@ "type": "Identifier", "name": "split", "range": [ - 74201, - 74206 + 75138, + 75143 ], "loc": { "start": { - "line": 2459, + "line": 2486, "column": 22 }, "end": { - "line": 2459, + "line": 2486, "column": 27 } } }, "range": [ - 74195, - 74206 + 75132, + 75143 ], "loc": { "start": { - "line": 2459, + "line": 2486, "column": 16 }, "end": { - "line": 2459, + "line": 2486, "column": 27 } } @@ -135463,16 +136765,16 @@ "value": " ", "raw": "' '", "range": [ - 74207, - 74210 + 75144, + 75147 ], "loc": { "start": { - "line": 2459, + "line": 2486, "column": 28 }, "end": { - "line": 2459, + "line": 2486, "column": 31 } } @@ -135483,16 +136785,16 @@ "object": { "type": "ThisExpression", "range": [ - 74213, - 74217 + 75150, + 75154 ], "loc": { "start": { - "line": 2459, + "line": 2486, "column": 34 }, "end": { - "line": 2459, + "line": 2486, "column": 38 } } @@ -135501,46 +136803,46 @@ "type": "Identifier", "name": "orOperator", "range": [ - 74218, - 74228 + 75155, + 75165 ], "loc": { "start": { - "line": 2459, + "line": 2486, "column": 39 }, "end": { - "line": 2459, + "line": 2486, "column": 49 } } }, "range": [ - 74213, - 74228 + 75150, + 75165 ], "loc": { "start": { - "line": 2459, + "line": 2486, "column": 34 }, "end": { - "line": 2459, + "line": 2486, "column": 49 } } }, "range": [ - 74207, - 74228 + 75144, + 75165 ], "loc": { "start": { - "line": 2459, + "line": 2486, "column": 28 }, "end": { - "line": 2459, + "line": 2486, "column": 49 } } @@ -135550,77 +136852,77 @@ "value": " ", "raw": "' '", "range": [ - 74231, - 74234 + 75168, + 75171 ], "loc": { "start": { - "line": 2459, + "line": 2486, "column": 52 }, "end": { - "line": 2459, + "line": 2486, "column": 55 } } }, "range": [ - 74207, - 74234 + 75144, + 75171 ], "loc": { "start": { - "line": 2459, + "line": 2486, "column": 28 }, "end": { - "line": 2459, + "line": 2486, "column": 55 } } } ], "range": [ - 74195, - 74235 + 75132, + 75172 ], "loc": { "start": { - "line": 2459, + "line": 2486, "column": 16 }, "end": { - "line": 2459, + "line": 2486, "column": 56 } } }, "range": [ - 74154, - 74235 + 75091, + 75172 ], "loc": { "start": { - "line": 2458, + "line": 2485, "column": 25 }, "end": { - "line": 2459, + "line": 2486, "column": 56 } } }, "range": [ - 74145, - 74235 + 75082, + 75172 ], "loc": { "start": { - "line": 2458, + "line": 2485, "column": 16 }, "end": { - "line": 2459, + "line": 2486, "column": 56 } } @@ -135628,16 +136930,16 @@ ], "kind": "let", "range": [ - 74141, - 74236 + 75078, + 75173 ], "loc": { "start": { - "line": 2458, + "line": 2485, "column": 12 }, "end": { - "line": 2459, + "line": 2486, "column": 57 } } @@ -135653,16 +136955,16 @@ "object": { "type": "ThisExpression", "range": [ - 74254, - 74258 + 75191, + 75195 ], "loc": { "start": { - "line": 2461, + "line": 2488, "column": 16 }, "end": { - "line": 2461, + "line": 2488, "column": 20 } } @@ -135671,31 +136973,31 @@ "type": "Identifier", "name": "loadFltOnDemand", "range": [ - 74259, - 74274 + 75196, + 75211 ], "loc": { "start": { - "line": 2461, + "line": 2488, "column": 21 }, "end": { - "line": 2461, + "line": 2488, "column": 36 } } }, "range": [ - 74254, - 74274 + 75191, + 75211 ], "loc": { "start": { - "line": 2461, + "line": 2488, "column": 16 }, "end": { - "line": 2461, + "line": 2488, "column": 36 } } @@ -135709,16 +137011,16 @@ "object": { "type": "ThisExpression", "range": [ - 74279, - 74283 + 75216, + 75220 ], "loc": { "start": { - "line": 2461, + "line": 2488, "column": 41 }, "end": { - "line": 2461, + "line": 2488, "column": 45 } } @@ -135727,62 +137029,62 @@ "type": "Identifier", "name": "initialized", "range": [ - 74284, - 74295 + 75221, + 75232 ], "loc": { "start": { - "line": 2461, + "line": 2488, "column": 46 }, "end": { - "line": 2461, + "line": 2488, "column": 57 } } }, "range": [ - 74279, - 74295 + 75216, + 75232 ], "loc": { "start": { - "line": 2461, + "line": 2488, "column": 41 }, "end": { - "line": 2461, + "line": 2488, "column": 57 } } }, "prefix": true, "range": [ - 74278, - 74295 + 75215, + 75232 ], "loc": { "start": { - "line": 2461, + "line": 2488, "column": 40 }, "end": { - "line": 2461, + "line": 2488, "column": 57 } } }, "range": [ - 74254, - 74295 + 75191, + 75232 ], "loc": { "start": { - "line": 2461, + "line": 2488, "column": 16 }, "end": { - "line": 2461, + "line": 2488, "column": 57 } } @@ -135803,16 +137105,16 @@ "object": { "type": "ThisExpression", "range": [ - 74315, - 74319 + 75252, + 75256 ], "loc": { "start": { - "line": 2462, + "line": 2489, "column": 16 }, "end": { - "line": 2462, + "line": 2489, "column": 20 } } @@ -135821,31 +137123,31 @@ "type": "Identifier", "name": "emitter", "range": [ - 74320, - 74327 + 75257, + 75264 ], "loc": { "start": { - "line": 2462, + "line": 2489, "column": 21 }, "end": { - "line": 2462, + "line": 2489, "column": 28 } } }, "range": [ - 74315, - 74327 + 75252, + 75264 ], "loc": { "start": { - "line": 2462, + "line": 2489, "column": 16 }, "end": { - "line": 2462, + "line": 2489, "column": 28 } } @@ -135854,31 +137156,31 @@ "type": "Identifier", "name": "emit", "range": [ - 74328, - 74332 + 75265, + 75269 ], "loc": { "start": { - "line": 2462, + "line": 2489, "column": 29 }, "end": { - "line": 2462, + "line": 2489, "column": 33 } } }, "range": [ - 74315, - 74332 + 75252, + 75269 ], "loc": { "start": { - "line": 2462, + "line": 2489, "column": 16 }, "end": { - "line": 2462, + "line": 2489, "column": 33 } } @@ -135889,16 +137191,16 @@ "value": "build-select-filter", "raw": "'build-select-filter'", "range": [ - 74333, - 74354 + 75270, + 75291 ], "loc": { "start": { - "line": 2462, + "line": 2489, "column": 34 }, "end": { - "line": 2462, + "line": 2489, "column": 55 } } @@ -135906,16 +137208,16 @@ { "type": "ThisExpression", "range": [ - 74356, - 74360 + 75293, + 75297 ], "loc": { "start": { - "line": 2462, + "line": 2489, "column": 57 }, "end": { - "line": 2462, + "line": 2489, "column": 61 } } @@ -135924,16 +137226,16 @@ "type": "Identifier", "name": "index", "range": [ - 74362, - 74367 + 75299, + 75304 ], "loc": { "start": { - "line": 2462, + "line": 2489, "column": 63 }, "end": { - "line": 2462, + "line": 2489, "column": 68 } } @@ -135944,16 +137246,16 @@ "object": { "type": "ThisExpression", "range": [ - 74389, - 74393 + 75326, + 75330 ], "loc": { "start": { - "line": 2463, + "line": 2490, "column": 20 }, "end": { - "line": 2463, + "line": 2490, "column": 24 } } @@ -135962,31 +137264,31 @@ "type": "Identifier", "name": "linkedFilters", "range": [ - 74394, - 74407 + 75331, + 75344 ], "loc": { "start": { - "line": 2463, + "line": 2490, "column": 25 }, "end": { - "line": 2463, + "line": 2490, "column": 38 } } }, "range": [ - 74389, - 74407 + 75326, + 75344 ], "loc": { "start": { - "line": 2463, + "line": 2490, "column": 20 }, "end": { - "line": 2463, + "line": 2490, "column": 38 } } @@ -135997,16 +137299,16 @@ "object": { "type": "ThisExpression", "range": [ - 74409, - 74413 + 75346, + 75350 ], "loc": { "start": { - "line": 2463, + "line": 2490, "column": 40 }, "end": { - "line": 2463, + "line": 2490, "column": 44 } } @@ -136015,94 +137317,94 @@ "type": "Identifier", "name": "isExternalFlt", "range": [ - 74414, - 74427 + 75351, + 75364 ], "loc": { "start": { - "line": 2463, + "line": 2490, "column": 45 }, "end": { - "line": 2463, + "line": 2490, "column": 58 } } }, "range": [ - 74409, - 74427 + 75346, + 75364 ], "loc": { "start": { - "line": 2463, + "line": 2490, "column": 40 }, "end": { - "line": 2463, + "line": 2490, "column": 58 } } } ], "range": [ - 74315, - 74428 + 75252, + 75365 ], "loc": { "start": { - "line": 2462, + "line": 2489, "column": 16 }, "end": { - "line": 2463, + "line": 2490, "column": 59 } } }, "range": [ - 74315, - 74429 + 75252, + 75366 ], "loc": { "start": { - "line": 2462, + "line": 2489, "column": 16 }, "end": { - "line": 2463, + "line": 2490, "column": 60 } } } ], "range": [ - 74297, - 74443 + 75234, + 75380 ], "loc": { "start": { - "line": 2461, + "line": 2488, "column": 59 }, "end": { - "line": 2464, + "line": 2491, "column": 13 } } }, "alternate": null, "range": [ - 74250, - 74443 + 75187, + 75380 ], "loc": { "start": { - "line": 2461, + "line": 2488, "column": 12 }, "end": { - "line": 2464, + "line": 2491, "column": 13 } } @@ -136120,16 +137422,16 @@ "object": { "type": "ThisExpression", "range": [ - 74457, - 74461 + 75394, + 75398 ], "loc": { "start": { - "line": 2466, + "line": 2493, "column": 12 }, "end": { - "line": 2466, + "line": 2493, "column": 16 } } @@ -136138,31 +137440,31 @@ "type": "Identifier", "name": "emitter", "range": [ - 74462, - 74469 + 75399, + 75406 ], "loc": { "start": { - "line": 2466, + "line": 2493, "column": 17 }, "end": { - "line": 2466, + "line": 2493, "column": 24 } } }, "range": [ - 74457, - 74469 + 75394, + 75406 ], "loc": { "start": { - "line": 2466, + "line": 2493, "column": 12 }, "end": { - "line": 2466, + "line": 2493, "column": 24 } } @@ -136171,31 +137473,31 @@ "type": "Identifier", "name": "emit", "range": [ - 74470, - 74474 + 75407, + 75411 ], "loc": { "start": { - "line": 2466, + "line": 2493, "column": 25 }, "end": { - "line": 2466, + "line": 2493, "column": 29 } } }, "range": [ - 74457, - 74474 + 75394, + 75411 ], "loc": { "start": { - "line": 2466, + "line": 2493, "column": 12 }, "end": { - "line": 2466, + "line": 2493, "column": 29 } } @@ -136206,16 +137508,16 @@ "value": "select-options", "raw": "'select-options'", "range": [ - 74475, - 74491 + 75412, + 75428 ], "loc": { "start": { - "line": 2466, + "line": 2493, "column": 30 }, "end": { - "line": 2466, + "line": 2493, "column": 46 } } @@ -136223,16 +137525,16 @@ { "type": "ThisExpression", "range": [ - 74493, - 74497 + 75430, + 75434 ], "loc": { "start": { - "line": 2466, + "line": 2493, "column": 48 }, "end": { - "line": 2466, + "line": 2493, "column": 52 } } @@ -136241,16 +137543,16 @@ "type": "Identifier", "name": "index", "range": [ - 74499, - 74504 + 75436, + 75441 ], "loc": { "start": { - "line": 2466, + "line": 2493, "column": 54 }, "end": { - "line": 2466, + "line": 2493, "column": 59 } } @@ -136259,63 +137561,63 @@ "type": "Identifier", "name": "values", "range": [ - 74506, - 74512 + 75443, + 75449 ], "loc": { "start": { - "line": 2466, + "line": 2493, "column": 61 }, "end": { - "line": 2466, + "line": 2493, "column": 67 } } } ], "range": [ - 74457, - 74513 + 75394, + 75450 ], "loc": { "start": { - "line": 2466, + "line": 2493, "column": 12 }, "end": { - "line": 2466, + "line": 2493, "column": 68 } } }, "range": [ - 74457, - 74514 + 75394, + 75451 ], "loc": { "start": { - "line": 2466, + "line": 2493, "column": 12 }, "end": { - "line": 2466, + "line": 2493, "column": 69 } } } ], "range": [ - 74127, - 74524 + 75064, + 75461 ], "loc": { "start": { - "line": 2457, + "line": 2484, "column": 42 }, "end": { - "line": 2467, + "line": 2494, "column": 9 } }, @@ -136324,16 +137626,16 @@ "type": "Line", "value": "checklist", "range": [ - 74533, - 74544 + 75470, + 75481 ], "loc": { "start": { - "line": 2468, + "line": 2495, "column": 8 }, "end": { - "line": 2468, + "line": 2495, "column": 19 } } @@ -136349,16 +137651,16 @@ "type": "Identifier", "name": "fltColType", "range": [ - 74562, - 74572 + 75499, + 75509 ], "loc": { "start": { - "line": 2469, + "line": 2496, "column": 17 }, "end": { - "line": 2469, + "line": 2496, "column": 27 } } @@ -136367,31 +137669,31 @@ "type": "Identifier", "name": "CHECKLIST", "range": [ - 74577, - 74586 + 75514, + 75523 ], "loc": { "start": { - "line": 2469, + "line": 2496, "column": 32 }, "end": { - "line": 2469, + "line": 2496, "column": 41 } } }, "range": [ - 74562, - 74586 + 75499, + 75523 ], "loc": { "start": { - "line": 2469, + "line": 2496, "column": 17 }, "end": { - "line": 2469, + "line": 2496, "column": 41 } } @@ -136408,16 +137710,16 @@ "type": "Identifier", "name": "values", "range": [ - 74606, - 74612 + 75543, + 75549 ], "loc": { "start": { - "line": 2470, + "line": 2497, "column": 16 }, "end": { - "line": 2470, + "line": 2497, "column": 22 } } @@ -136426,31 +137728,31 @@ "type": "ArrayExpression", "elements": [], "range": [ - 74615, - 74617 + 75552, + 75554 ], "loc": { "start": { - "line": 2470, + "line": 2497, "column": 25 }, "end": { - "line": 2470, + "line": 2497, "column": 27 } } }, "range": [ - 74606, - 74617 + 75543, + 75554 ], "loc": { "start": { - "line": 2470, + "line": 2497, "column": 16 }, "end": { - "line": 2470, + "line": 2497, "column": 27 } } @@ -136458,16 +137760,16 @@ ], "kind": "let", "range": [ - 74602, - 74618 + 75539, + 75555 ], "loc": { "start": { - "line": 2470, + "line": 2497, "column": 12 }, "end": { - "line": 2470, + "line": 2497, "column": 28 } } @@ -136483,16 +137785,16 @@ "object": { "type": "ThisExpression", "range": [ - 74635, - 74639 + 75572, + 75576 ], "loc": { "start": { - "line": 2471, + "line": 2498, "column": 16 }, "end": { - "line": 2471, + "line": 2498, "column": 20 } } @@ -136501,31 +137803,31 @@ "type": "Identifier", "name": "loadFltOnDemand", "range": [ - 74640, - 74655 + 75577, + 75592 ], "loc": { "start": { - "line": 2471, + "line": 2498, "column": 21 }, "end": { - "line": 2471, + "line": 2498, "column": 36 } } }, "range": [ - 74635, - 74655 + 75572, + 75592 ], "loc": { "start": { - "line": 2471, + "line": 2498, "column": 16 }, "end": { - "line": 2471, + "line": 2498, "column": 36 } } @@ -136539,16 +137841,16 @@ "object": { "type": "ThisExpression", "range": [ - 74660, - 74664 + 75597, + 75601 ], "loc": { "start": { - "line": 2471, + "line": 2498, "column": 41 }, "end": { - "line": 2471, + "line": 2498, "column": 45 } } @@ -136557,62 +137859,62 @@ "type": "Identifier", "name": "initialized", "range": [ - 74665, - 74676 + 75602, + 75613 ], "loc": { "start": { - "line": 2471, + "line": 2498, "column": 46 }, "end": { - "line": 2471, + "line": 2498, "column": 57 } } }, "range": [ - 74660, - 74676 + 75597, + 75613 ], "loc": { "start": { - "line": 2471, + "line": 2498, "column": 41 }, "end": { - "line": 2471, + "line": 2498, "column": 57 } } }, "prefix": true, "range": [ - 74659, - 74676 + 75596, + 75613 ], "loc": { "start": { - "line": 2471, + "line": 2498, "column": 40 }, "end": { - "line": 2471, + "line": 2498, "column": 57 } } }, "range": [ - 74635, - 74676 + 75572, + 75613 ], "loc": { "start": { - "line": 2471, + "line": 2498, "column": 16 }, "end": { - "line": 2471, + "line": 2498, "column": 57 } } @@ -136633,16 +137935,16 @@ "object": { "type": "ThisExpression", "range": [ - 74696, - 74700 + 75633, + 75637 ], "loc": { "start": { - "line": 2472, + "line": 2499, "column": 16 }, "end": { - "line": 2472, + "line": 2499, "column": 20 } } @@ -136651,31 +137953,31 @@ "type": "Identifier", "name": "emitter", "range": [ - 74701, - 74708 + 75638, + 75645 ], "loc": { "start": { - "line": 2472, + "line": 2499, "column": 21 }, "end": { - "line": 2472, + "line": 2499, "column": 28 } } }, "range": [ - 74696, - 74708 + 75633, + 75645 ], "loc": { "start": { - "line": 2472, + "line": 2499, "column": 16 }, "end": { - "line": 2472, + "line": 2499, "column": 28 } } @@ -136684,31 +137986,31 @@ "type": "Identifier", "name": "emit", "range": [ - 74709, - 74713 + 75646, + 75650 ], "loc": { "start": { - "line": 2472, + "line": 2499, "column": 29 }, "end": { - "line": 2472, + "line": 2499, "column": 33 } } }, "range": [ - 74696, - 74713 + 75633, + 75650 ], "loc": { "start": { - "line": 2472, + "line": 2499, "column": 16 }, "end": { - "line": 2472, + "line": 2499, "column": 33 } } @@ -136719,16 +138021,16 @@ "value": "build-checklist-filter", "raw": "'build-checklist-filter'", "range": [ - 74714, - 74738 + 75651, + 75675 ], "loc": { "start": { - "line": 2472, + "line": 2499, "column": 34 }, "end": { - "line": 2472, + "line": 2499, "column": 58 } } @@ -136736,16 +138038,16 @@ { "type": "ThisExpression", "range": [ - 74740, - 74744 + 75677, + 75681 ], "loc": { "start": { - "line": 2472, + "line": 2499, "column": 60 }, "end": { - "line": 2472, + "line": 2499, "column": 64 } } @@ -136754,16 +138056,16 @@ "type": "Identifier", "name": "index", "range": [ - 74746, - 74751 + 75683, + 75688 ], "loc": { "start": { - "line": 2472, + "line": 2499, "column": 66 }, "end": { - "line": 2472, + "line": 2499, "column": 71 } } @@ -136774,16 +138076,16 @@ "object": { "type": "ThisExpression", "range": [ - 74773, - 74777 + 75710, + 75714 ], "loc": { "start": { - "line": 2473, + "line": 2500, "column": 20 }, "end": { - "line": 2473, + "line": 2500, "column": 24 } } @@ -136792,94 +138094,94 @@ "type": "Identifier", "name": "linkedFilters", "range": [ - 74778, - 74791 + 75715, + 75728 ], "loc": { "start": { - "line": 2473, + "line": 2500, "column": 25 }, "end": { - "line": 2473, + "line": 2500, "column": 38 } } }, "range": [ - 74773, - 74791 + 75710, + 75728 ], "loc": { "start": { - "line": 2473, + "line": 2500, "column": 20 }, "end": { - "line": 2473, + "line": 2500, "column": 38 } } } ], "range": [ - 74696, - 74792 + 75633, + 75729 ], "loc": { "start": { - "line": 2472, + "line": 2499, "column": 16 }, "end": { - "line": 2473, + "line": 2500, "column": 39 } } }, "range": [ - 74696, - 74793 + 75633, + 75730 ], "loc": { "start": { - "line": 2472, + "line": 2499, "column": 16 }, "end": { - "line": 2473, + "line": 2500, "column": 40 } } } ], "range": [ - 74678, - 74807 + 75615, + 75744 ], "loc": { "start": { - "line": 2471, + "line": 2498, "column": 59 }, "end": { - "line": 2474, + "line": 2501, "column": 13 } } }, "alternate": null, "range": [ - 74631, - 74807 + 75568, + 75744 ], "loc": { "start": { - "line": 2471, + "line": 2498, "column": 12 }, "end": { - "line": 2474, + "line": 2501, "column": 13 } } @@ -136892,16 +138194,16 @@ "type": "Identifier", "name": "isArray", "range": [ - 74824, - 74831 + 75761, + 75768 ], "loc": { "start": { - "line": 2475, + "line": 2502, "column": 16 }, "end": { - "line": 2475, + "line": 2502, "column": 23 } } @@ -136911,32 +138213,32 @@ "type": "Identifier", "name": "query", "range": [ - 74832, - 74837 + 75769, + 75774 ], "loc": { "start": { - "line": 2475, + "line": 2502, "column": 24 }, "end": { - "line": 2475, + "line": 2502, "column": 29 } } } ], "range": [ - 74824, - 74838 + 75761, + 75775 ], "loc": { "start": { - "line": 2475, + "line": 2502, "column": 16 }, "end": { - "line": 2475, + "line": 2502, "column": 30 } } @@ -136953,16 +138255,16 @@ "type": "Identifier", "name": "values", "range": [ - 74858, - 74864 + 75795, + 75801 ], "loc": { "start": { - "line": 2476, + "line": 2503, "column": 16 }, "end": { - "line": 2476, + "line": 2503, "column": 22 } } @@ -136971,62 +138273,62 @@ "type": "Identifier", "name": "query", "range": [ - 74867, - 74872 + 75804, + 75809 ], "loc": { "start": { - "line": 2476, + "line": 2503, "column": 25 }, "end": { - "line": 2476, + "line": 2503, "column": 30 } } }, "range": [ - 74858, - 74872 + 75795, + 75809 ], "loc": { "start": { - "line": 2476, + "line": 2503, "column": 16 }, "end": { - "line": 2476, + "line": 2503, "column": 30 } } }, "range": [ - 74858, - 74873 + 75795, + 75810 ], "loc": { "start": { - "line": 2476, + "line": 2503, "column": 16 }, "end": { - "line": 2476, + "line": 2503, "column": 31 } } } ], "range": [ - 74840, - 74887 + 75777, + 75824 ], "loc": { "start": { - "line": 2475, + "line": 2502, "column": 32 }, "end": { - "line": 2477, + "line": 2504, "column": 13 } } @@ -137043,16 +138345,16 @@ "type": "Identifier", "name": "query", "range": [ - 74911, - 74916 + 75848, + 75853 ], "loc": { "start": { - "line": 2478, + "line": 2505, "column": 16 }, "end": { - "line": 2478, + "line": 2505, "column": 21 } } @@ -137063,16 +138365,16 @@ "type": "Identifier", "name": "matchCase", "range": [ - 74919, - 74928 + 75856, + 75865 ], "loc": { "start": { - "line": 2478, + "line": 2505, "column": 24 }, "end": { - "line": 2478, + "line": 2505, "column": 33 } } @@ -137082,16 +138384,16 @@ "type": "Identifier", "name": "query", "range": [ - 74929, - 74934 + 75866, + 75871 ], "loc": { "start": { - "line": 2478, + "line": 2505, "column": 34 }, "end": { - "line": 2478, + "line": 2505, "column": 39 } } @@ -137102,16 +138404,16 @@ "object": { "type": "ThisExpression", "range": [ - 74936, - 74940 + 75873, + 75877 ], "loc": { "start": { - "line": 2478, + "line": 2505, "column": 41 }, "end": { - "line": 2478, + "line": 2505, "column": 45 } } @@ -137120,77 +138422,77 @@ "type": "Identifier", "name": "caseSensitive", "range": [ - 74941, - 74954 + 75878, + 75891 ], "loc": { "start": { - "line": 2478, + "line": 2505, "column": 46 }, "end": { - "line": 2478, + "line": 2505, "column": 59 } } }, "range": [ - 74936, - 74954 + 75873, + 75891 ], "loc": { "start": { - "line": 2478, + "line": 2505, "column": 41 }, "end": { - "line": 2478, + "line": 2505, "column": 59 } } } ], "range": [ - 74919, - 74955 + 75856, + 75892 ], "loc": { "start": { - "line": 2478, + "line": 2505, "column": 24 }, "end": { - "line": 2478, + "line": 2505, "column": 60 } } }, "range": [ - 74911, - 74955 + 75848, + 75892 ], "loc": { "start": { - "line": 2478, + "line": 2505, "column": 16 }, "end": { - "line": 2478, + "line": 2505, "column": 60 } } }, "range": [ - 74911, - 74956 + 75848, + 75893 ], "loc": { "start": { - "line": 2478, + "line": 2505, "column": 16 }, "end": { - "line": 2478, + "line": 2505, "column": 61 } } @@ -137204,16 +138506,16 @@ "type": "Identifier", "name": "values", "range": [ - 74973, - 74979 + 75910, + 75916 ], "loc": { "start": { - "line": 2479, + "line": 2506, "column": 16 }, "end": { - "line": 2479, + "line": 2506, "column": 22 } } @@ -137227,16 +138529,16 @@ "type": "Identifier", "name": "query", "range": [ - 74982, - 74987 + 75919, + 75924 ], "loc": { "start": { - "line": 2479, + "line": 2506, "column": 25 }, "end": { - "line": 2479, + "line": 2506, "column": 30 } } @@ -137245,31 +138547,31 @@ "type": "Identifier", "name": "split", "range": [ - 74988, - 74993 + 75925, + 75930 ], "loc": { "start": { - "line": 2479, + "line": 2506, "column": 31 }, "end": { - "line": 2479, + "line": 2506, "column": 36 } } }, "range": [ - 74982, - 74993 + 75919, + 75930 ], "loc": { "start": { - "line": 2479, + "line": 2506, "column": 25 }, "end": { - "line": 2479, + "line": 2506, "column": 36 } } @@ -137286,16 +138588,16 @@ "value": " ", "raw": "' '", "range": [ - 74994, - 74997 + 75931, + 75934 ], "loc": { "start": { - "line": 2479, + "line": 2506, "column": 37 }, "end": { - "line": 2479, + "line": 2506, "column": 40 } } @@ -137306,16 +138608,16 @@ "object": { "type": "ThisExpression", "range": [ - 75000, - 75004 + 75937, + 75941 ], "loc": { "start": { - "line": 2479, + "line": 2506, "column": 43 }, "end": { - "line": 2479, + "line": 2506, "column": 47 } } @@ -137324,46 +138626,46 @@ "type": "Identifier", "name": "orOperator", "range": [ - 75005, - 75015 + 75942, + 75952 ], "loc": { "start": { - "line": 2479, + "line": 2506, "column": 48 }, "end": { - "line": 2479, + "line": 2506, "column": 58 } } }, "range": [ - 75000, - 75015 + 75937, + 75952 ], "loc": { "start": { - "line": 2479, + "line": 2506, "column": 43 }, "end": { - "line": 2479, + "line": 2506, "column": 58 } } }, "range": [ - 74994, - 75015 + 75931, + 75952 ], "loc": { "start": { - "line": 2479, + "line": 2506, "column": 37 }, "end": { - "line": 2479, + "line": 2506, "column": 58 } } @@ -137373,108 +138675,108 @@ "value": " ", "raw": "' '", "range": [ - 75018, - 75021 + 75955, + 75958 ], "loc": { "start": { - "line": 2479, + "line": 2506, "column": 61 }, "end": { - "line": 2479, + "line": 2506, "column": 64 } } }, "range": [ - 74994, - 75021 + 75931, + 75958 ], "loc": { "start": { - "line": 2479, + "line": 2506, "column": 37 }, "end": { - "line": 2479, + "line": 2506, "column": 64 } } } ], "range": [ - 74982, - 75022 + 75919, + 75959 ], "loc": { "start": { - "line": 2479, + "line": 2506, "column": 25 }, "end": { - "line": 2479, + "line": 2506, "column": 65 } } }, "range": [ - 74973, - 75022 + 75910, + 75959 ], "loc": { "start": { - "line": 2479, + "line": 2506, "column": 16 }, "end": { - "line": 2479, + "line": 2506, "column": 65 } } }, "range": [ - 74973, - 75023 + 75910, + 75960 ], "loc": { "start": { - "line": 2479, + "line": 2506, "column": 16 }, "end": { - "line": 2479, + "line": 2506, "column": 66 } } } ], "range": [ - 74893, - 75037 + 75830, + 75974 ], "loc": { "start": { - "line": 2477, + "line": 2504, "column": 19 }, "end": { - "line": 2480, + "line": 2507, "column": 13 } } }, "range": [ - 74820, - 75037 + 75757, + 75974 ], "loc": { "start": { - "line": 2475, + "line": 2502, "column": 12 }, "end": { - "line": 2480, + "line": 2507, "column": 13 } } @@ -137492,16 +138794,16 @@ "object": { "type": "ThisExpression", "range": [ - 75051, - 75055 + 75988, + 75992 ], "loc": { "start": { - "line": 2482, + "line": 2509, "column": 12 }, "end": { - "line": 2482, + "line": 2509, "column": 16 } } @@ -137510,31 +138812,31 @@ "type": "Identifier", "name": "emitter", "range": [ - 75056, - 75063 + 75993, + 76000 ], "loc": { "start": { - "line": 2482, + "line": 2509, "column": 17 }, "end": { - "line": 2482, + "line": 2509, "column": 24 } } }, "range": [ - 75051, - 75063 + 75988, + 76000 ], "loc": { "start": { - "line": 2482, + "line": 2509, "column": 12 }, "end": { - "line": 2482, + "line": 2509, "column": 24 } } @@ -137543,31 +138845,31 @@ "type": "Identifier", "name": "emit", "range": [ - 75064, - 75068 + 76001, + 76005 ], "loc": { "start": { - "line": 2482, + "line": 2509, "column": 25 }, "end": { - "line": 2482, + "line": 2509, "column": 29 } } }, "range": [ - 75051, - 75068 + 75988, + 76005 ], "loc": { "start": { - "line": 2482, + "line": 2509, "column": 12 }, "end": { - "line": 2482, + "line": 2509, "column": 29 } } @@ -137578,16 +138880,16 @@ "value": "select-checklist-options", "raw": "'select-checklist-options'", "range": [ - 75069, - 75095 + 76006, + 76032 ], "loc": { "start": { - "line": 2482, + "line": 2509, "column": 30 }, "end": { - "line": 2482, + "line": 2509, "column": 56 } } @@ -137595,16 +138897,16 @@ { "type": "ThisExpression", "range": [ - 75097, - 75101 + 76034, + 76038 ], "loc": { "start": { - "line": 2482, + "line": 2509, "column": 58 }, "end": { - "line": 2482, + "line": 2509, "column": 62 } } @@ -137613,16 +138915,16 @@ "type": "Identifier", "name": "index", "range": [ - 75103, - 75108 + 76040, + 76045 ], "loc": { "start": { - "line": 2482, + "line": 2509, "column": 64 }, "end": { - "line": 2482, + "line": 2509, "column": 69 } } @@ -137631,79 +138933,79 @@ "type": "Identifier", "name": "values", "range": [ - 75110, - 75116 + 76047, + 76053 ], "loc": { "start": { - "line": 2482, + "line": 2509, "column": 71 }, "end": { - "line": 2482, + "line": 2509, "column": 77 } } } ], "range": [ - 75051, - 75117 + 75988, + 76054 ], "loc": { "start": { - "line": 2482, + "line": 2509, "column": 12 }, "end": { - "line": 2482, + "line": 2509, "column": 78 } } }, "range": [ - 75051, - 75118 + 75988, + 76055 ], "loc": { "start": { - "line": 2482, + "line": 2509, "column": 12 }, "end": { - "line": 2482, + "line": 2509, "column": 79 } } } ], "range": [ - 74588, - 75128 + 75525, + 76065 ], "loc": { "start": { - "line": 2469, + "line": 2496, "column": 43 }, "end": { - "line": 2483, + "line": 2510, "column": 9 } } }, "alternate": null, "range": [ - 74558, - 75128 + 75495, + 76065 ], "loc": { "start": { - "line": 2469, + "line": 2496, "column": 13 }, "end": { - "line": 2483, + "line": 2510, "column": 9 } }, @@ -137712,16 +139014,16 @@ "type": "Line", "value": "checklist", "range": [ - 74533, - 74544 + 75470, + 75481 ], "loc": { "start": { - "line": 2468, + "line": 2495, "column": 8 }, "end": { - "line": 2468, + "line": 2495, "column": 19 } } @@ -137729,16 +139031,16 @@ ] }, "range": [ - 74098, - 75128 + 75035, + 76065 ], "loc": { "start": { - "line": 2457, + "line": 2484, "column": 13 }, "end": { - "line": 2483, + "line": 2510, "column": 9 } }, @@ -137747,16 +139049,16 @@ "type": "Line", "value": "multiple selects", "range": [ - 74066, - 74084 + 75003, + 75021 ], "loc": { "start": { - "line": 2456, + "line": 2483, "column": 8 }, "end": { - "line": 2456, + "line": 2483, "column": 26 } } @@ -137764,32 +139066,32 @@ ] }, "range": [ - 73752, - 75128 + 74689, + 76065 ], "loc": { "start": { - "line": 2449, + "line": 2476, "column": 8 }, "end": { - "line": 2483, + "line": 2510, "column": 9 } } } ], "range": [ - 73582, - 75134 + 74519, + 76071 ], "loc": { "start": { - "line": 2442, + "line": 2469, "column": 38 }, "end": { - "line": 2484, + "line": 2511, "column": 5 } } @@ -137797,16 +139099,16 @@ "generator": false, "expression": false, "range": [ - 73562, - 75134 + 74499, + 76071 ], "loc": { "start": { - "line": 2442, + "line": 2469, "column": 18 }, "end": { - "line": 2484, + "line": 2511, "column": 5 } } @@ -137814,16 +139116,16 @@ "kind": "method", "computed": false, "range": [ - 73548, - 75134 + 74485, + 76071 ], "loc": { "start": { - "line": 2442, + "line": 2469, "column": 4 }, "end": { - "line": 2484, + "line": 2511, "column": 5 } }, @@ -137832,16 +139134,16 @@ "type": "Block", "value": "*\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 ", "range": [ - 73381, - 73543 + 74318, + 74480 ], "loc": { "start": { - "line": 2437, + "line": 2464, "column": 4 }, "end": { - "line": 2441, + "line": 2468, "column": 7 } } @@ -137852,16 +139154,16 @@ "type": "Block", "value": "*\n * Set them columns' widths as per configuration\n * @param {Element} tbl DOM element\n ", "range": [ - 75140, - 75244 + 76077, + 76181 ], "loc": { "start": { - "line": 2486, + "line": 2513, "column": 4 }, "end": { - "line": 2489, + "line": 2516, "column": 7 } } @@ -137875,16 +139177,16 @@ "type": "Identifier", "name": "setColWidths", "range": [ - 75249, - 75261 + 76186, + 76198 ], "loc": { "start": { - "line": 2490, + "line": 2517, "column": 4 }, "end": { - "line": 2490, + "line": 2517, "column": 16 } } @@ -137897,16 +139199,16 @@ "type": "Identifier", "name": "tbl", "range": [ - 75262, - 75265 + 76199, + 76202 ], "loc": { "start": { - "line": 2490, + "line": 2517, "column": 17 }, "end": { - "line": 2490, + "line": 2517, "column": 20 } } @@ -137926,16 +139228,16 @@ "object": { "type": "ThisExpression", "range": [ - 75282, - 75286 + 76219, + 76223 ], "loc": { "start": { - "line": 2491, + "line": 2518, "column": 13 }, "end": { - "line": 2491, + "line": 2518, "column": 17 } } @@ -137944,47 +139246,47 @@ "type": "Identifier", "name": "hasColWidths", "range": [ - 75287, - 75299 + 76224, + 76236 ], "loc": { "start": { - "line": 2491, + "line": 2518, "column": 18 }, "end": { - "line": 2491, + "line": 2518, "column": 30 } } }, "range": [ - 75282, - 75299 + 76219, + 76236 ], "loc": { "start": { - "line": 2491, + "line": 2518, "column": 13 }, "end": { - "line": 2491, + "line": 2518, "column": 30 } } }, "prefix": true, "range": [ - 75281, - 75299 + 76218, + 76236 ], "loc": { "start": { - "line": 2491, + "line": 2518, "column": 12 }, "end": { - "line": 2491, + "line": 2518, "column": 30 } } @@ -137996,48 +139298,48 @@ "type": "ReturnStatement", "argument": null, "range": [ - 75315, - 75322 + 76252, + 76259 ], "loc": { "start": { - "line": 2492, + "line": 2519, "column": 12 }, "end": { - "line": 2492, + "line": 2519, "column": 19 } } } ], "range": [ - 75301, - 75332 + 76238, + 76269 ], "loc": { "start": { - "line": 2491, + "line": 2518, "column": 32 }, "end": { - "line": 2493, + "line": 2520, "column": 9 } } }, "alternate": null, "range": [ - 75277, - 75332 + 76214, + 76269 ], "loc": { "start": { - "line": 2491, + "line": 2518, "column": 8 }, "end": { - "line": 2493, + "line": 2520, "column": 9 } } @@ -138051,16 +139353,16 @@ "type": "Identifier", "name": "tbl", "range": [ - 75341, - 75344 + 76278, + 76281 ], "loc": { "start": { - "line": 2494, + "line": 2521, "column": 8 }, "end": { - "line": 2494, + "line": 2521, "column": 11 } } @@ -138072,16 +139374,16 @@ "type": "Identifier", "name": "tbl", "range": [ - 75347, - 75350 + 76284, + 76287 ], "loc": { "start": { - "line": 2494, + "line": 2521, "column": 14 }, "end": { - "line": 2494, + "line": 2521, "column": 17 } } @@ -138092,16 +139394,16 @@ "object": { "type": "ThisExpression", "range": [ - 75354, - 75358 + 76291, + 76295 ], "loc": { "start": { - "line": 2494, + "line": 2521, "column": 21 }, "end": { - "line": 2494, + "line": 2521, "column": 25 } } @@ -138110,76 +139412,76 @@ "type": "Identifier", "name": "tbl", "range": [ - 75359, - 75362 + 76296, + 76299 ], "loc": { "start": { - "line": 2494, + "line": 2521, "column": 26 }, "end": { - "line": 2494, + "line": 2521, "column": 29 } } }, "range": [ - 75354, - 75362 + 76291, + 76299 ], "loc": { "start": { - "line": 2494, + "line": 2521, "column": 21 }, "end": { - "line": 2494, + "line": 2521, "column": 29 } } }, "range": [ - 75347, - 75362 + 76284, + 76299 ], "loc": { "start": { - "line": 2494, + "line": 2521, "column": 14 }, "end": { - "line": 2494, + "line": 2521, "column": 29 } } }, "range": [ - 75341, - 75362 + 76278, + 76299 ], "loc": { "start": { - "line": 2494, + "line": 2521, "column": 8 }, "end": { - "line": 2494, + "line": 2521, "column": 29 } } }, "range": [ - 75341, - 75363 + 76278, + 76300 ], "loc": { "start": { - "line": 2494, + "line": 2521, "column": 8 }, "end": { - "line": 2494, + "line": 2521, "column": 30 } } @@ -138193,16 +139495,16 @@ "type": "Identifier", "name": "nbCols", "range": [ - 75377, - 75383 + 76314, + 76320 ], "loc": { "start": { - "line": 2496, + "line": 2523, "column": 12 }, "end": { - "line": 2496, + "line": 2523, "column": 18 } } @@ -138213,16 +139515,16 @@ "object": { "type": "ThisExpression", "range": [ - 75386, - 75390 + 76323, + 76327 ], "loc": { "start": { - "line": 2496, + "line": 2523, "column": 21 }, "end": { - "line": 2496, + "line": 2523, "column": 25 } } @@ -138231,46 +139533,46 @@ "type": "Identifier", "name": "nbCells", "range": [ - 75391, - 75398 + 76328, + 76335 ], "loc": { "start": { - "line": 2496, + "line": 2523, "column": 26 }, "end": { - "line": 2496, + "line": 2523, "column": 33 } } }, "range": [ - 75386, - 75398 + 76323, + 76335 ], "loc": { "start": { - "line": 2496, + "line": 2523, "column": 21 }, "end": { - "line": 2496, + "line": 2523, "column": 33 } } }, "range": [ - 75377, - 75398 + 76314, + 76335 ], "loc": { "start": { - "line": 2496, + "line": 2523, "column": 12 }, "end": { - "line": 2496, + "line": 2523, "column": 33 } } @@ -138278,16 +139580,16 @@ ], "kind": "let", "range": [ - 75373, - 75399 + 76310, + 76336 ], "loc": { "start": { - "line": 2496, + "line": 2523, "column": 8 }, "end": { - "line": 2496, + "line": 2523, "column": 34 } } @@ -138301,16 +139603,16 @@ "type": "Identifier", "name": "colWidths", "range": [ - 75412, - 75421 + 76349, + 76358 ], "loc": { "start": { - "line": 2497, + "line": 2524, "column": 12 }, "end": { - "line": 2497, + "line": 2524, "column": 21 } } @@ -138321,16 +139623,16 @@ "object": { "type": "ThisExpression", "range": [ - 75424, - 75428 + 76361, + 76365 ], "loc": { "start": { - "line": 2497, + "line": 2524, "column": 24 }, "end": { - "line": 2497, + "line": 2524, "column": 28 } } @@ -138339,46 +139641,46 @@ "type": "Identifier", "name": "colWidths", "range": [ - 75429, - 75438 + 76366, + 76375 ], "loc": { "start": { - "line": 2497, + "line": 2524, "column": 29 }, "end": { - "line": 2497, + "line": 2524, "column": 38 } } }, "range": [ - 75424, - 75438 + 76361, + 76375 ], "loc": { "start": { - "line": 2497, + "line": 2524, "column": 24 }, "end": { - "line": 2497, + "line": 2524, "column": 38 } } }, "range": [ - 75412, - 75438 + 76349, + 76375 ], "loc": { "start": { - "line": 2497, + "line": 2524, "column": 12 }, "end": { - "line": 2497, + "line": 2524, "column": 38 } } @@ -138386,16 +139688,16 @@ ], "kind": "let", "range": [ - 75408, - 75439 + 76345, + 76376 ], "loc": { "start": { - "line": 2497, + "line": 2524, "column": 8 }, "end": { - "line": 2497, + "line": 2524, "column": 39 } } @@ -138409,16 +139711,16 @@ "type": "Identifier", "name": "colTags", "range": [ - 75452, - 75459 + 76389, + 76396 ], "loc": { "start": { - "line": 2498, + "line": 2525, "column": 12 }, "end": { - "line": 2498, + "line": 2525, "column": 19 } } @@ -138429,16 +139731,16 @@ "type": "Identifier", "name": "tag", "range": [ - 75462, - 75465 + 76399, + 76402 ], "loc": { "start": { - "line": 2498, + "line": 2525, "column": 22 }, "end": { - "line": 2498, + "line": 2525, "column": 25 } } @@ -138448,16 +139750,16 @@ "type": "Identifier", "name": "tbl", "range": [ - 75466, - 75469 + 76403, + 76406 ], "loc": { "start": { - "line": 2498, + "line": 2525, "column": 26 }, "end": { - "line": 2498, + "line": 2525, "column": 29 } } @@ -138467,47 +139769,47 @@ "value": "col", "raw": "'col'", "range": [ - 75471, - 75476 + 76408, + 76413 ], "loc": { "start": { - "line": 2498, + "line": 2525, "column": 31 }, "end": { - "line": 2498, + "line": 2525, "column": 36 } } } ], "range": [ - 75462, - 75477 + 76399, + 76414 ], "loc": { "start": { - "line": 2498, + "line": 2525, "column": 22 }, "end": { - "line": 2498, + "line": 2525, "column": 37 } } }, "range": [ - 75452, - 75477 + 76389, + 76414 ], "loc": { "start": { - "line": 2498, + "line": 2525, "column": 12 }, "end": { - "line": 2498, + "line": 2525, "column": 37 } } @@ -138515,16 +139817,16 @@ ], "kind": "let", "range": [ - 75448, - 75478 + 76385, + 76415 ], "loc": { "start": { - "line": 2498, + "line": 2525, "column": 8 }, "end": { - "line": 2498, + "line": 2525, "column": 38 } } @@ -138538,16 +139840,16 @@ "type": "Identifier", "name": "tblHasColTag", "range": [ - 75491, - 75503 + 76428, + 76440 ], "loc": { "start": { - "line": 2499, + "line": 2526, "column": 12 }, "end": { - "line": 2499, + "line": 2526, "column": 24 } } @@ -138562,16 +139864,16 @@ "type": "Identifier", "name": "colTags", "range": [ - 75506, - 75513 + 76443, + 76450 ], "loc": { "start": { - "line": 2499, + "line": 2526, "column": 27 }, "end": { - "line": 2499, + "line": 2526, "column": 34 } } @@ -138580,31 +139882,31 @@ "type": "Identifier", "name": "length", "range": [ - 75514, - 75520 + 76451, + 76457 ], "loc": { "start": { - "line": 2499, + "line": 2526, "column": 35 }, "end": { - "line": 2499, + "line": 2526, "column": 41 } } }, "range": [ - 75506, - 75520 + 76443, + 76457 ], "loc": { "start": { - "line": 2499, + "line": 2526, "column": 27 }, "end": { - "line": 2499, + "line": 2526, "column": 41 } } @@ -138614,46 +139916,46 @@ "value": 0, "raw": "0", "range": [ - 75523, - 75524 + 76460, + 76461 ], "loc": { "start": { - "line": 2499, + "line": 2526, "column": 44 }, "end": { - "line": 2499, + "line": 2526, "column": 45 } } }, "range": [ - 75506, - 75524 + 76443, + 76461 ], "loc": { "start": { - "line": 2499, + "line": 2526, "column": 27 }, "end": { - "line": 2499, + "line": 2526, "column": 45 } } }, "range": [ - 75491, - 75524 + 76428, + 76461 ], "loc": { "start": { - "line": 2499, + "line": 2526, "column": 12 }, "end": { - "line": 2499, + "line": 2526, "column": 45 } } @@ -138661,16 +139963,16 @@ ], "kind": "let", "range": [ - 75487, - 75525 + 76424, + 76462 ], "loc": { "start": { - "line": 2499, + "line": 2526, "column": 8 }, "end": { - "line": 2499, + "line": 2526, "column": 46 } } @@ -138684,16 +139986,16 @@ "type": "Identifier", "name": "frag", "range": [ - 75538, - 75542 + 76475, + 76479 ], "loc": { "start": { - "line": 2500, + "line": 2527, "column": 12 }, "end": { - "line": 2500, + "line": 2527, "column": 16 } } @@ -138707,32 +140009,32 @@ "type": "Identifier", "name": "tblHasColTag", "range": [ - 75546, - 75558 + 76483, + 76495 ], "loc": { "start": { - "line": 2500, + "line": 2527, "column": 20 }, "end": { - "line": 2500, + "line": 2527, "column": 32 } } }, "prefix": true, "range": [ - 75545, - 75558 + 76482, + 76495 ], "loc": { "start": { - "line": 2500, + "line": 2527, "column": 19 }, "end": { - "line": 2500, + "line": 2527, "column": 32 } } @@ -138746,16 +140048,16 @@ "type": "Identifier", "name": "doc", "range": [ - 75561, - 75564 + 76498, + 76501 ], "loc": { "start": { - "line": 2500, + "line": 2527, "column": 35 }, "end": { - "line": 2500, + "line": 2527, "column": 38 } } @@ -138764,47 +140066,47 @@ "type": "Identifier", "name": "createDocumentFragment", "range": [ - 75565, - 75587 + 76502, + 76524 ], "loc": { "start": { - "line": 2500, + "line": 2527, "column": 39 }, "end": { - "line": 2500, + "line": 2527, "column": 61 } } }, "range": [ - 75561, - 75587 + 76498, + 76524 ], "loc": { "start": { - "line": 2500, + "line": 2527, "column": 35 }, "end": { - "line": 2500, + "line": 2527, "column": 61 } } }, "arguments": [], "range": [ - 75561, - 75589 + 76498, + 76526 ], "loc": { "start": { - "line": 2500, + "line": 2527, "column": 35 }, "end": { - "line": 2500, + "line": 2527, "column": 63 } } @@ -138814,46 +140116,46 @@ "value": null, "raw": "null", "range": [ - 75592, - 75596 + 76529, + 76533 ], "loc": { "start": { - "line": 2500, + "line": 2527, "column": 66 }, "end": { - "line": 2500, + "line": 2527, "column": 70 } } }, "range": [ - 75545, - 75596 + 76482, + 76533 ], "loc": { "start": { - "line": 2500, + "line": 2527, "column": 19 }, "end": { - "line": 2500, + "line": 2527, "column": 70 } } }, "range": [ - 75538, - 75596 + 76475, + 76533 ], "loc": { "start": { - "line": 2500, + "line": 2527, "column": 12 }, "end": { - "line": 2500, + "line": 2527, "column": 70 } } @@ -138861,16 +140163,16 @@ ], "kind": "let", "range": [ - 75534, - 75597 + 76471, + 76534 ], "loc": { "start": { - "line": 2500, + "line": 2527, "column": 8 }, "end": { - "line": 2500, + "line": 2527, "column": 71 } } @@ -138886,16 +140188,16 @@ "type": "Identifier", "name": "k", "range": [ - 75615, - 75616 + 76552, + 76553 ], "loc": { "start": { - "line": 2501, + "line": 2528, "column": 17 }, "end": { - "line": 2501, + "line": 2528, "column": 18 } } @@ -138905,31 +140207,31 @@ "value": 0, "raw": "0", "range": [ - 75619, - 75620 + 76556, + 76557 ], "loc": { "start": { - "line": 2501, + "line": 2528, "column": 21 }, "end": { - "line": 2501, + "line": 2528, "column": 22 } } }, "range": [ - 75615, - 75620 + 76552, + 76557 ], "loc": { "start": { - "line": 2501, + "line": 2528, "column": 17 }, "end": { - "line": 2501, + "line": 2528, "column": 22 } } @@ -138937,16 +140239,16 @@ ], "kind": "let", "range": [ - 75611, - 75620 + 76548, + 76557 ], "loc": { "start": { - "line": 2501, + "line": 2528, "column": 13 }, "end": { - "line": 2501, + "line": 2528, "column": 22 } } @@ -138958,16 +140260,16 @@ "type": "Identifier", "name": "k", "range": [ - 75622, - 75623 + 76559, + 76560 ], "loc": { "start": { - "line": 2501, + "line": 2528, "column": 24 }, "end": { - "line": 2501, + "line": 2528, "column": 25 } } @@ -138976,31 +140278,31 @@ "type": "Identifier", "name": "nbCols", "range": [ - 75626, - 75632 + 76563, + 76569 ], "loc": { "start": { - "line": 2501, + "line": 2528, "column": 28 }, "end": { - "line": 2501, + "line": 2528, "column": 34 } } }, "range": [ - 75622, - 75632 + 76559, + 76569 ], "loc": { "start": { - "line": 2501, + "line": 2528, "column": 24 }, "end": { - "line": 2501, + "line": 2528, "column": 34 } } @@ -139012,32 +140314,32 @@ "type": "Identifier", "name": "k", "range": [ - 75634, - 75635 + 76571, + 76572 ], "loc": { "start": { - "line": 2501, + "line": 2528, "column": 36 }, "end": { - "line": 2501, + "line": 2528, "column": 37 } } }, "prefix": false, "range": [ - 75634, - 75637 + 76571, + 76574 ], "loc": { "start": { - "line": 2501, + "line": 2528, "column": 36 }, "end": { - "line": 2501, + "line": 2528, "column": 39 } } @@ -139054,32 +140356,32 @@ "type": "Identifier", "name": "col", "range": [ - 75657, - 75660 + 76594, + 76597 ], "loc": { "start": { - "line": 2502, + "line": 2529, "column": 16 }, "end": { - "line": 2502, + "line": 2529, "column": 19 } } }, "init": null, "range": [ - 75657, - 75660 + 76594, + 76597 ], "loc": { "start": { - "line": 2502, + "line": 2529, "column": 16 }, "end": { - "line": 2502, + "line": 2529, "column": 19 } } @@ -139087,16 +140389,16 @@ ], "kind": "let", "range": [ - 75653, - 75661 + 76590, + 76598 ], "loc": { "start": { - "line": 2502, + "line": 2529, "column": 12 }, "end": { - "line": 2502, + "line": 2529, "column": 20 } } @@ -139107,16 +140409,16 @@ "type": "Identifier", "name": "tblHasColTag", "range": [ - 75678, - 75690 + 76615, + 76627 ], "loc": { "start": { - "line": 2503, + "line": 2530, "column": 16 }, "end": { - "line": 2503, + "line": 2530, "column": 28 } } @@ -139133,16 +140435,16 @@ "type": "Identifier", "name": "col", "range": [ - 75710, - 75713 + 76647, + 76650 ], "loc": { "start": { - "line": 2504, + "line": 2531, "column": 16 }, "end": { - "line": 2504, + "line": 2531, "column": 19 } } @@ -139154,16 +140456,16 @@ "type": "Identifier", "name": "colTags", "range": [ - 75716, - 75723 + 76653, + 76660 ], "loc": { "start": { - "line": 2504, + "line": 2531, "column": 22 }, "end": { - "line": 2504, + "line": 2531, "column": 29 } } @@ -139172,77 +140474,77 @@ "type": "Identifier", "name": "k", "range": [ - 75724, - 75725 + 76661, + 76662 ], "loc": { "start": { - "line": 2504, + "line": 2531, "column": 30 }, "end": { - "line": 2504, + "line": 2531, "column": 31 } } }, "range": [ - 75716, - 75726 + 76653, + 76663 ], "loc": { "start": { - "line": 2504, + "line": 2531, "column": 22 }, "end": { - "line": 2504, + "line": 2531, "column": 32 } } }, "range": [ - 75710, - 75726 + 76647, + 76663 ], "loc": { "start": { - "line": 2504, + "line": 2531, "column": 16 }, "end": { - "line": 2504, + "line": 2531, "column": 32 } } }, "range": [ - 75710, - 75727 + 76647, + 76664 ], "loc": { "start": { - "line": 2504, + "line": 2531, "column": 16 }, "end": { - "line": 2504, + "line": 2531, "column": 33 } } } ], "range": [ - 75692, - 75741 + 76629, + 76678 ], "loc": { "start": { - "line": 2503, + "line": 2530, "column": 30 }, "end": { - "line": 2505, + "line": 2532, "column": 13 } } @@ -139259,16 +140561,16 @@ "type": "Identifier", "name": "col", "range": [ - 75765, - 75768 + 76702, + 76705 ], "loc": { "start": { - "line": 2506, + "line": 2533, "column": 16 }, "end": { - "line": 2506, + "line": 2533, "column": 19 } } @@ -139279,16 +140581,16 @@ "type": "Identifier", "name": "createElm", "range": [ - 75771, - 75780 + 76708, + 76717 ], "loc": { "start": { - "line": 2506, + "line": 2533, "column": 22 }, "end": { - "line": 2506, + "line": 2533, "column": 31 } } @@ -139299,62 +140601,62 @@ "value": "col", "raw": "'col'", "range": [ - 75781, - 75786 + 76718, + 76723 ], "loc": { "start": { - "line": 2506, + "line": 2533, "column": 32 }, "end": { - "line": 2506, + "line": 2533, "column": 37 } } } ], "range": [ - 75771, - 75787 + 76708, + 76724 ], "loc": { "start": { - "line": 2506, + "line": 2533, "column": 22 }, "end": { - "line": 2506, + "line": 2533, "column": 38 } } }, "range": [ - 75765, - 75787 + 76702, + 76724 ], "loc": { "start": { - "line": 2506, + "line": 2533, "column": 16 }, "end": { - "line": 2506, + "line": 2533, "column": 38 } } }, "range": [ - 75765, - 75788 + 76702, + 76725 ], "loc": { "start": { - "line": 2506, + "line": 2533, "column": 16 }, "end": { - "line": 2506, + "line": 2533, "column": 39 } } @@ -139370,16 +140672,16 @@ "type": "Identifier", "name": "frag", "range": [ - 75805, - 75809 + 76742, + 76746 ], "loc": { "start": { - "line": 2507, + "line": 2534, "column": 16 }, "end": { - "line": 2507, + "line": 2534, "column": 20 } } @@ -139388,31 +140690,31 @@ "type": "Identifier", "name": "appendChild", "range": [ - 75810, - 75821 + 76747, + 76758 ], "loc": { "start": { - "line": 2507, + "line": 2534, "column": 21 }, "end": { - "line": 2507, + "line": 2534, "column": 32 } } }, "range": [ - 75805, - 75821 + 76742, + 76758 ], "loc": { "start": { - "line": 2507, + "line": 2534, "column": 16 }, "end": { - "line": 2507, + "line": 2534, "column": 32 } } @@ -139422,78 +140724,78 @@ "type": "Identifier", "name": "col", "range": [ - 75822, - 75825 + 76759, + 76762 ], "loc": { "start": { - "line": 2507, + "line": 2534, "column": 33 }, "end": { - "line": 2507, + "line": 2534, "column": 36 } } } ], "range": [ - 75805, - 75826 + 76742, + 76763 ], "loc": { "start": { - "line": 2507, + "line": 2534, "column": 16 }, "end": { - "line": 2507, + "line": 2534, "column": 37 } } }, "range": [ - 75805, - 75827 + 76742, + 76764 ], "loc": { "start": { - "line": 2507, + "line": 2534, "column": 16 }, "end": { - "line": 2507, + "line": 2534, "column": 38 } } } ], "range": [ - 75747, - 75841 + 76684, + 76778 ], "loc": { "start": { - "line": 2505, + "line": 2532, "column": 19 }, "end": { - "line": 2508, + "line": 2535, "column": 13 } } }, "range": [ - 75674, - 75841 + 76611, + 76778 ], "loc": { "start": { - "line": 2503, + "line": 2530, "column": 12 }, "end": { - "line": 2508, + "line": 2535, "column": 13 } } @@ -139513,16 +140815,16 @@ "type": "Identifier", "name": "col", "range": [ - 75854, - 75857 + 76791, + 76794 ], "loc": { "start": { - "line": 2509, + "line": 2536, "column": 12 }, "end": { - "line": 2509, + "line": 2536, "column": 15 } } @@ -139531,31 +140833,31 @@ "type": "Identifier", "name": "style", "range": [ - 75858, - 75863 + 76795, + 76800 ], "loc": { "start": { - "line": 2509, + "line": 2536, "column": 16 }, "end": { - "line": 2509, + "line": 2536, "column": 21 } } }, "range": [ - 75854, - 75863 + 76791, + 76800 ], "loc": { "start": { - "line": 2509, + "line": 2536, "column": 12 }, "end": { - "line": 2509, + "line": 2536, "column": 21 } } @@ -139564,31 +140866,31 @@ "type": "Identifier", "name": "width", "range": [ - 75864, - 75869 + 76801, + 76806 ], "loc": { "start": { - "line": 2509, + "line": 2536, "column": 22 }, "end": { - "line": 2509, + "line": 2536, "column": 27 } } }, "range": [ - 75854, - 75869 + 76791, + 76806 ], "loc": { "start": { - "line": 2509, + "line": 2536, "column": 12 }, "end": { - "line": 2509, + "line": 2536, "column": 27 } } @@ -139600,16 +140902,16 @@ "type": "Identifier", "name": "colWidths", "range": [ - 75872, - 75881 + 76809, + 76818 ], "loc": { "start": { - "line": 2509, + "line": 2536, "column": 30 }, "end": { - "line": 2509, + "line": 2536, "column": 39 } } @@ -139618,92 +140920,92 @@ "type": "Identifier", "name": "k", "range": [ - 75882, - 75883 + 76819, + 76820 ], "loc": { "start": { - "line": 2509, + "line": 2536, "column": 40 }, "end": { - "line": 2509, + "line": 2536, "column": 41 } } }, "range": [ - 75872, - 75884 + 76809, + 76821 ], "loc": { "start": { - "line": 2509, + "line": 2536, "column": 30 }, "end": { - "line": 2509, + "line": 2536, "column": 42 } } }, "range": [ - 75854, - 75884 + 76791, + 76821 ], "loc": { "start": { - "line": 2509, + "line": 2536, "column": 12 }, "end": { - "line": 2509, + "line": 2536, "column": 42 } } }, "range": [ - 75854, - 75885 + 76791, + 76822 ], "loc": { "start": { - "line": 2509, + "line": 2536, "column": 12 }, "end": { - "line": 2509, + "line": 2536, "column": 43 } } } ], "range": [ - 75639, - 75895 + 76576, + 76832 ], "loc": { "start": { - "line": 2501, + "line": 2528, "column": 41 }, "end": { - "line": 2510, + "line": 2537, "column": 9 } } }, "range": [ - 75606, - 75895 + 76543, + 76832 ], "loc": { "start": { - "line": 2501, + "line": 2528, "column": 8 }, "end": { - "line": 2510, + "line": 2537, "column": 9 } } @@ -139717,32 +141019,32 @@ "type": "Identifier", "name": "tblHasColTag", "range": [ - 75909, - 75921 + 76846, + 76858 ], "loc": { "start": { - "line": 2511, + "line": 2538, "column": 13 }, "end": { - "line": 2511, + "line": 2538, "column": 25 } } }, "prefix": true, "range": [ - 75908, - 75921 + 76845, + 76858 ], "loc": { "start": { - "line": 2511, + "line": 2538, "column": 12 }, "end": { - "line": 2511, + "line": 2538, "column": 25 } } @@ -139761,16 +141063,16 @@ "type": "Identifier", "name": "tbl", "range": [ - 75937, - 75940 + 76874, + 76877 ], "loc": { "start": { - "line": 2512, + "line": 2539, "column": 12 }, "end": { - "line": 2512, + "line": 2539, "column": 15 } } @@ -139779,31 +141081,31 @@ "type": "Identifier", "name": "insertBefore", "range": [ - 75941, - 75953 + 76878, + 76890 ], "loc": { "start": { - "line": 2512, + "line": 2539, "column": 16 }, "end": { - "line": 2512, + "line": 2539, "column": 28 } } }, "range": [ - 75937, - 75953 + 76874, + 76890 ], "loc": { "start": { - "line": 2512, + "line": 2539, "column": 12 }, "end": { - "line": 2512, + "line": 2539, "column": 28 } } @@ -139813,16 +141115,16 @@ "type": "Identifier", "name": "frag", "range": [ - 75954, - 75958 + 76891, + 76895 ], "loc": { "start": { - "line": 2512, + "line": 2539, "column": 29 }, "end": { - "line": 2512, + "line": 2539, "column": 33 } } @@ -139834,16 +141136,16 @@ "type": "Identifier", "name": "tbl", "range": [ - 75960, - 75963 + 76897, + 76900 ], "loc": { "start": { - "line": 2512, + "line": 2539, "column": 35 }, "end": { - "line": 2512, + "line": 2539, "column": 38 } } @@ -139852,110 +141154,110 @@ "type": "Identifier", "name": "firstChild", "range": [ - 75964, - 75974 + 76901, + 76911 ], "loc": { "start": { - "line": 2512, + "line": 2539, "column": 39 }, "end": { - "line": 2512, + "line": 2539, "column": 49 } } }, "range": [ - 75960, - 75974 + 76897, + 76911 ], "loc": { "start": { - "line": 2512, + "line": 2539, "column": 35 }, "end": { - "line": 2512, + "line": 2539, "column": 49 } } } ], "range": [ - 75937, - 75975 + 76874, + 76912 ], "loc": { "start": { - "line": 2512, + "line": 2539, "column": 12 }, "end": { - "line": 2512, + "line": 2539, "column": 50 } } }, "range": [ - 75937, - 75976 + 76874, + 76913 ], "loc": { "start": { - "line": 2512, + "line": 2539, "column": 12 }, "end": { - "line": 2512, + "line": 2539, "column": 51 } } } ], "range": [ - 75923, - 75986 + 76860, + 76923 ], "loc": { "start": { - "line": 2511, + "line": 2538, "column": 27 }, "end": { - "line": 2513, + "line": 2540, "column": 9 } } }, "alternate": null, "range": [ - 75904, - 75986 + 76841, + 76923 ], "loc": { "start": { - "line": 2511, + "line": 2538, "column": 8 }, "end": { - "line": 2513, + "line": 2540, "column": 9 } } } ], "range": [ - 75267, - 75992 + 76204, + 76929 ], "loc": { "start": { - "line": 2490, + "line": 2517, "column": 22 }, "end": { - "line": 2514, + "line": 2541, "column": 5 } } @@ -139963,16 +141265,16 @@ "generator": false, "expression": false, "range": [ - 75261, - 75992 + 76198, + 76929 ], "loc": { "start": { - "line": 2490, + "line": 2517, "column": 16 }, "end": { - "line": 2514, + "line": 2541, "column": 5 } } @@ -139980,16 +141282,16 @@ "kind": "method", "computed": false, "range": [ - 75249, - 75992 + 76186, + 76929 ], "loc": { "start": { - "line": 2490, + "line": 2517, "column": 4 }, "end": { - "line": 2514, + "line": 2541, "column": 5 } }, @@ -139998,16 +141300,16 @@ "type": "Block", "value": "*\n * Set them columns' widths as per configuration\n * @param {Element} tbl DOM element\n ", "range": [ - 75140, - 75244 + 76077, + 76181 ], "loc": { "start": { - "line": 2486, + "line": 2513, "column": 4 }, "end": { - "line": 2489, + "line": 2516, "column": 7 } } @@ -140018,16 +141320,16 @@ "type": "Block", "value": "*\n * Makes defined rows always visible\n ", "range": [ - 75998, - 76050 + 76935, + 76987 ], "loc": { "start": { - "line": 2516, + "line": 2543, "column": 4 }, "end": { - "line": 2518, + "line": 2545, "column": 7 } } @@ -140041,16 +141343,16 @@ "type": "Identifier", "name": "enforceVisibility", "range": [ - 76055, - 76072 + 76992, + 77009 ], "loc": { "start": { - "line": 2519, + "line": 2546, "column": 4 }, "end": { - "line": 2519, + "line": 2546, "column": 21 } } @@ -140073,16 +141375,16 @@ "object": { "type": "ThisExpression", "range": [ - 76090, - 76094 + 77027, + 77031 ], "loc": { "start": { - "line": 2520, + "line": 2547, "column": 13 }, "end": { - "line": 2520, + "line": 2547, "column": 17 } } @@ -140091,47 +141393,47 @@ "type": "Identifier", "name": "hasVisibleRows", "range": [ - 76095, - 76109 + 77032, + 77046 ], "loc": { "start": { - "line": 2520, + "line": 2547, "column": 18 }, "end": { - "line": 2520, + "line": 2547, "column": 32 } } }, "range": [ - 76090, - 76109 + 77027, + 77046 ], "loc": { "start": { - "line": 2520, + "line": 2547, "column": 13 }, "end": { - "line": 2520, + "line": 2547, "column": 32 } } }, "prefix": true, "range": [ - 76089, - 76109 + 77026, + 77046 ], "loc": { "start": { - "line": 2520, + "line": 2547, "column": 12 }, "end": { - "line": 2520, + "line": 2547, "column": 32 } } @@ -140143,48 +141445,48 @@ "type": "ReturnStatement", "argument": null, "range": [ - 76125, - 76132 + 77062, + 77069 ], "loc": { "start": { - "line": 2521, + "line": 2548, "column": 12 }, "end": { - "line": 2521, + "line": 2548, "column": 19 } } } ], "range": [ - 76111, - 76142 + 77048, + 77079 ], "loc": { "start": { - "line": 2520, + "line": 2547, "column": 34 }, "end": { - "line": 2522, + "line": 2549, "column": 9 } } }, "alternate": null, "range": [ - 76085, - 76142 + 77022, + 77079 ], "loc": { "start": { - "line": 2520, + "line": 2547, "column": 8 }, "end": { - "line": 2522, + "line": 2549, "column": 9 } } @@ -140198,16 +141500,16 @@ "type": "Identifier", "name": "nbRows", "range": [ - 76155, - 76161 + 77092, + 77098 ], "loc": { "start": { - "line": 2523, + "line": 2550, "column": 12 }, "end": { - "line": 2523, + "line": 2550, "column": 18 } } @@ -140220,16 +141522,16 @@ "object": { "type": "ThisExpression", "range": [ - 76164, - 76168 + 77101, + 77105 ], "loc": { "start": { - "line": 2523, + "line": 2550, "column": 21 }, "end": { - "line": 2523, + "line": 2550, "column": 25 } } @@ -140238,31 +141540,31 @@ "type": "Identifier", "name": "getRowsNb", "range": [ - 76169, - 76178 + 77106, + 77115 ], "loc": { "start": { - "line": 2523, + "line": 2550, "column": 26 }, "end": { - "line": 2523, + "line": 2550, "column": 35 } } }, "range": [ - 76164, - 76178 + 77101, + 77115 ], "loc": { "start": { - "line": 2523, + "line": 2550, "column": 21 }, "end": { - "line": 2523, + "line": 2550, "column": 35 } } @@ -140273,47 +141575,47 @@ "value": true, "raw": "true", "range": [ - 76179, - 76183 + 77116, + 77120 ], "loc": { "start": { - "line": 2523, + "line": 2550, "column": 36 }, "end": { - "line": 2523, + "line": 2550, "column": 40 } } } ], "range": [ - 76164, - 76184 + 77101, + 77121 ], "loc": { "start": { - "line": 2523, + "line": 2550, "column": 21 }, "end": { - "line": 2523, + "line": 2550, "column": 41 } } }, "range": [ - 76155, - 76184 + 77092, + 77121 ], "loc": { "start": { - "line": 2523, + "line": 2550, "column": 12 }, "end": { - "line": 2523, + "line": 2550, "column": 41 } } @@ -140321,16 +141623,16 @@ ], "kind": "let", "range": [ - 76151, - 76185 + 77088, + 77122 ], "loc": { "start": { - "line": 2523, + "line": 2550, "column": 8 }, "end": { - "line": 2523, + "line": 2550, "column": 42 } } @@ -140346,16 +141648,16 @@ "type": "Identifier", "name": "i", "range": [ - 76203, - 76204 + 77140, + 77141 ], "loc": { "start": { - "line": 2524, + "line": 2551, "column": 17 }, "end": { - "line": 2524, + "line": 2551, "column": 18 } } @@ -140365,31 +141667,31 @@ "value": 0, "raw": "0", "range": [ - 76207, - 76208 + 77144, + 77145 ], "loc": { "start": { - "line": 2524, + "line": 2551, "column": 21 }, "end": { - "line": 2524, + "line": 2551, "column": 22 } } }, "range": [ - 76203, - 76208 + 77140, + 77145 ], "loc": { "start": { - "line": 2524, + "line": 2551, "column": 17 }, "end": { - "line": 2524, + "line": 2551, "column": 22 } } @@ -140400,16 +141702,16 @@ "type": "Identifier", "name": "len", "range": [ - 76210, - 76213 + 77147, + 77150 ], "loc": { "start": { - "line": 2524, + "line": 2551, "column": 24 }, "end": { - "line": 2524, + "line": 2551, "column": 27 } } @@ -140423,16 +141725,16 @@ "object": { "type": "ThisExpression", "range": [ - 76216, - 76220 + 77153, + 77157 ], "loc": { "start": { - "line": 2524, + "line": 2551, "column": 30 }, "end": { - "line": 2524, + "line": 2551, "column": 34 } } @@ -140441,31 +141743,31 @@ "type": "Identifier", "name": "visibleRows", "range": [ - 76221, - 76232 + 77158, + 77169 ], "loc": { "start": { - "line": 2524, + "line": 2551, "column": 35 }, "end": { - "line": 2524, + "line": 2551, "column": 46 } } }, "range": [ - 76216, - 76232 + 77153, + 77169 ], "loc": { "start": { - "line": 2524, + "line": 2551, "column": 30 }, "end": { - "line": 2524, + "line": 2551, "column": 46 } } @@ -140474,46 +141776,46 @@ "type": "Identifier", "name": "length", "range": [ - 76233, - 76239 + 77170, + 77176 ], "loc": { "start": { - "line": 2524, + "line": 2551, "column": 47 }, "end": { - "line": 2524, + "line": 2551, "column": 53 } } }, "range": [ - 76216, - 76239 + 77153, + 77176 ], "loc": { "start": { - "line": 2524, + "line": 2551, "column": 30 }, "end": { - "line": 2524, + "line": 2551, "column": 53 } } }, "range": [ - 76210, - 76239 + 77147, + 77176 ], "loc": { "start": { - "line": 2524, + "line": 2551, "column": 24 }, "end": { - "line": 2524, + "line": 2551, "column": 53 } } @@ -140521,16 +141823,16 @@ ], "kind": "let", "range": [ - 76199, - 76239 + 77136, + 77176 ], "loc": { "start": { - "line": 2524, + "line": 2551, "column": 13 }, "end": { - "line": 2524, + "line": 2551, "column": 53 } } @@ -140542,16 +141844,16 @@ "type": "Identifier", "name": "i", "range": [ - 76241, - 76242 + 77178, + 77179 ], "loc": { "start": { - "line": 2524, + "line": 2551, "column": 55 }, "end": { - "line": 2524, + "line": 2551, "column": 56 } } @@ -140560,31 +141862,31 @@ "type": "Identifier", "name": "len", "range": [ - 76245, - 76248 + 77182, + 77185 ], "loc": { "start": { - "line": 2524, + "line": 2551, "column": 59 }, "end": { - "line": 2524, + "line": 2551, "column": 62 } } }, "range": [ - 76241, - 76248 + 77178, + 77185 ], "loc": { "start": { - "line": 2524, + "line": 2551, "column": 55 }, "end": { - "line": 2524, + "line": 2551, "column": 62 } } @@ -140596,32 +141898,32 @@ "type": "Identifier", "name": "i", "range": [ - 76250, - 76251 + 77187, + 77188 ], "loc": { "start": { - "line": 2524, + "line": 2551, "column": 64 }, "end": { - "line": 2524, + "line": 2551, "column": 65 } } }, "prefix": false, "range": [ - 76250, - 76253 + 77187, + 77190 ], "loc": { "start": { - "line": 2524, + "line": 2551, "column": 64 }, "end": { - "line": 2524, + "line": 2551, "column": 67 } } @@ -140638,16 +141940,16 @@ "type": "Identifier", "name": "row", "range": [ - 76273, - 76276 + 77210, + 77213 ], "loc": { "start": { - "line": 2525, + "line": 2552, "column": 16 }, "end": { - "line": 2525, + "line": 2552, "column": 19 } } @@ -140661,16 +141963,16 @@ "object": { "type": "ThisExpression", "range": [ - 76279, - 76283 + 77216, + 77220 ], "loc": { "start": { - "line": 2525, + "line": 2552, "column": 22 }, "end": { - "line": 2525, + "line": 2552, "column": 26 } } @@ -140679,31 +141981,31 @@ "type": "Identifier", "name": "visibleRows", "range": [ - 76284, - 76295 + 77221, + 77232 ], "loc": { "start": { - "line": 2525, + "line": 2552, "column": 27 }, "end": { - "line": 2525, + "line": 2552, "column": 38 } } }, "range": [ - 76279, - 76295 + 77216, + 77232 ], "loc": { "start": { - "line": 2525, + "line": 2552, "column": 22 }, "end": { - "line": 2525, + "line": 2552, "column": 38 } } @@ -140712,46 +142014,46 @@ "type": "Identifier", "name": "i", "range": [ - 76296, - 76297 + 77233, + 77234 ], "loc": { "start": { - "line": 2525, + "line": 2552, "column": 39 }, "end": { - "line": 2525, + "line": 2552, "column": 40 } } }, "range": [ - 76279, - 76298 + 77216, + 77235 ], "loc": { "start": { - "line": 2525, + "line": 2552, "column": 22 }, "end": { - "line": 2525, + "line": 2552, "column": 41 } } }, "range": [ - 76273, - 76298 + 77210, + 77235 ], "loc": { "start": { - "line": 2525, + "line": 2552, "column": 16 }, "end": { - "line": 2525, + "line": 2552, "column": 41 } } @@ -140759,16 +142061,16 @@ ], "kind": "let", "range": [ - 76269, - 76299 + 77206, + 77236 ], "loc": { "start": { - "line": 2525, + "line": 2552, "column": 12 }, "end": { - "line": 2525, + "line": 2552, "column": 42 } }, @@ -140777,16 +142079,16 @@ "type": "Line", "value": "row index cannot be > nrows", "range": [ - 76312, - 76341 + 77249, + 77278 ], "loc": { "start": { - "line": 2526, + "line": 2553, "column": 12 }, "end": { - "line": 2526, + "line": 2553, "column": 41 } } @@ -140802,16 +142104,16 @@ "type": "Identifier", "name": "row", "range": [ - 76358, - 76361 + 77295, + 77298 ], "loc": { "start": { - "line": 2527, + "line": 2554, "column": 16 }, "end": { - "line": 2527, + "line": 2554, "column": 19 } } @@ -140820,31 +142122,31 @@ "type": "Identifier", "name": "nbRows", "range": [ - 76365, - 76371 + 77302, + 77308 ], "loc": { "start": { - "line": 2527, + "line": 2554, "column": 23 }, "end": { - "line": 2527, + "line": 2554, "column": 29 } } }, "range": [ - 76358, - 76371 + 77295, + 77308 ], "loc": { "start": { - "line": 2527, + "line": 2554, "column": 16 }, "end": { - "line": 2527, + "line": 2554, "column": 29 } } @@ -140862,16 +142164,16 @@ "object": { "type": "ThisExpression", "range": [ - 76391, - 76395 + 77328, + 77332 ], "loc": { "start": { - "line": 2528, + "line": 2555, "column": 16 }, "end": { - "line": 2528, + "line": 2555, "column": 20 } } @@ -140880,31 +142182,31 @@ "type": "Identifier", "name": "validateRow", "range": [ - 76396, - 76407 + 77333, + 77344 ], "loc": { "start": { - "line": 2528, + "line": 2555, "column": 21 }, "end": { - "line": 2528, + "line": 2555, "column": 32 } } }, "range": [ - 76391, - 76407 + 77328, + 77344 ], "loc": { "start": { - "line": 2528, + "line": 2555, "column": 16 }, "end": { - "line": 2528, + "line": 2555, "column": 32 } } @@ -140914,16 +142216,16 @@ "type": "Identifier", "name": "row", "range": [ - 76408, - 76411 + 77345, + 77348 ], "loc": { "start": { - "line": 2528, + "line": 2555, "column": 33 }, "end": { - "line": 2528, + "line": 2555, "column": 36 } } @@ -140933,79 +142235,79 @@ "value": true, "raw": "true", "range": [ - 76413, - 76417 + 77350, + 77354 ], "loc": { "start": { - "line": 2528, + "line": 2555, "column": 38 }, "end": { - "line": 2528, + "line": 2555, "column": 42 } } } ], "range": [ - 76391, - 76418 + 77328, + 77355 ], "loc": { "start": { - "line": 2528, + "line": 2555, "column": 16 }, "end": { - "line": 2528, + "line": 2555, "column": 43 } } }, "range": [ - 76391, - 76419 + 77328, + 77356 ], "loc": { "start": { - "line": 2528, + "line": 2555, "column": 16 }, "end": { - "line": 2528, + "line": 2555, "column": 44 } } } ], "range": [ - 76373, - 76433 + 77310, + 77370 ], "loc": { "start": { - "line": 2527, + "line": 2554, "column": 31 }, "end": { - "line": 2529, + "line": 2556, "column": 13 } } }, "alternate": null, "range": [ - 76354, - 76433 + 77291, + 77370 ], "loc": { "start": { - "line": 2527, + "line": 2554, "column": 12 }, "end": { - "line": 2529, + "line": 2556, "column": 13 } }, @@ -141014,16 +142316,16 @@ "type": "Line", "value": "row index cannot be > nrows", "range": [ - 76312, - 76341 + 77249, + 77278 ], "loc": { "start": { - "line": 2526, + "line": 2553, "column": 12 }, "end": { - "line": 2526, + "line": 2553, "column": 41 } } @@ -141032,47 +142334,47 @@ } ], "range": [ - 76255, - 76443 + 77192, + 77380 ], "loc": { "start": { - "line": 2524, + "line": 2551, "column": 69 }, "end": { - "line": 2530, + "line": 2557, "column": 9 } } }, "range": [ - 76194, - 76443 + 77131, + 77380 ], "loc": { "start": { - "line": 2524, + "line": 2551, "column": 8 }, "end": { - "line": 2530, + "line": 2557, "column": 9 } } } ], "range": [ - 76075, - 76449 + 77012, + 77386 ], "loc": { "start": { - "line": 2519, + "line": 2546, "column": 24 }, "end": { - "line": 2531, + "line": 2558, "column": 5 } } @@ -141080,16 +142382,16 @@ "generator": false, "expression": false, "range": [ - 76072, - 76449 + 77009, + 77386 ], "loc": { "start": { - "line": 2519, + "line": 2546, "column": 21 }, "end": { - "line": 2531, + "line": 2558, "column": 5 } } @@ -141097,16 +142399,16 @@ "kind": "method", "computed": false, "range": [ - 76055, - 76449 + 76992, + 77386 ], "loc": { "start": { - "line": 2519, + "line": 2546, "column": 4 }, "end": { - "line": 2531, + "line": 2558, "column": 5 } }, @@ -141115,16 +142417,16 @@ "type": "Block", "value": "*\n * Makes defined rows always visible\n ", "range": [ - 75998, - 76050 + 76935, + 76987 ], "loc": { "start": { - "line": 2516, + "line": 2543, "column": 4 }, "end": { - "line": 2518, + "line": 2545, "column": 7 } } @@ -141135,16 +142437,16 @@ "type": "Block", "value": "*\n * Clear all the filters' values\n ", "range": [ - 76455, - 76503 + 77392, + 77440 ], "loc": { "start": { - "line": 2533, + "line": 2560, "column": 4 }, "end": { - "line": 2535, + "line": 2562, "column": 7 } } @@ -141158,16 +142460,16 @@ "type": "Identifier", "name": "clearFilters", "range": [ - 76508, - 76520 + 77445, + 77457 ], "loc": { "start": { - "line": 2536, + "line": 2563, "column": 4 }, "end": { - "line": 2536, + "line": 2563, "column": 16 } } @@ -141190,16 +142492,16 @@ "object": { "type": "ThisExpression", "range": [ - 76538, - 76542 + 77475, + 77479 ], "loc": { "start": { - "line": 2537, + "line": 2564, "column": 13 }, "end": { - "line": 2537, + "line": 2564, "column": 17 } } @@ -141208,47 +142510,47 @@ "type": "Identifier", "name": "fltGrid", "range": [ - 76543, - 76550 + 77480, + 77487 ], "loc": { "start": { - "line": 2537, + "line": 2564, "column": 18 }, "end": { - "line": 2537, + "line": 2564, "column": 25 } } }, "range": [ - 76538, - 76550 + 77475, + 77487 ], "loc": { "start": { - "line": 2537, + "line": 2564, "column": 13 }, "end": { - "line": 2537, + "line": 2564, "column": 25 } } }, "prefix": true, "range": [ - 76537, - 76550 + 77474, + 77487 ], "loc": { "start": { - "line": 2537, + "line": 2564, "column": 12 }, "end": { - "line": 2537, + "line": 2564, "column": 25 } } @@ -141260,48 +142562,48 @@ "type": "ReturnStatement", "argument": null, "range": [ - 76566, - 76573 + 77503, + 77510 ], "loc": { "start": { - "line": 2538, + "line": 2565, "column": 12 }, "end": { - "line": 2538, + "line": 2565, "column": 19 } } } ], "range": [ - 76552, - 76583 + 77489, + 77520 ], "loc": { "start": { - "line": 2537, + "line": 2564, "column": 27 }, "end": { - "line": 2539, + "line": 2566, "column": 9 } } }, "alternate": null, "range": [ - 76533, - 76583 + 77470, + 77520 ], "loc": { "start": { - "line": 2537, + "line": 2564, "column": 8 }, "end": { - "line": 2539, + "line": 2566, "column": 9 } } @@ -141319,16 +142621,16 @@ "object": { "type": "ThisExpression", "range": [ - 76593, - 76597 + 77530, + 77534 ], "loc": { "start": { - "line": 2541, + "line": 2568, "column": 8 }, "end": { - "line": 2541, + "line": 2568, "column": 12 } } @@ -141337,31 +142639,31 @@ "type": "Identifier", "name": "emitter", "range": [ - 76598, - 76605 + 77535, + 77542 ], "loc": { "start": { - "line": 2541, + "line": 2568, "column": 13 }, "end": { - "line": 2541, + "line": 2568, "column": 20 } } }, "range": [ - 76593, - 76605 + 77530, + 77542 ], "loc": { "start": { - "line": 2541, + "line": 2568, "column": 8 }, "end": { - "line": 2541, + "line": 2568, "column": 20 } } @@ -141370,31 +142672,31 @@ "type": "Identifier", "name": "emit", "range": [ - 76606, - 76610 + 77543, + 77547 ], "loc": { "start": { - "line": 2541, + "line": 2568, "column": 21 }, "end": { - "line": 2541, + "line": 2568, "column": 25 } } }, "range": [ - 76593, - 76610 + 77530, + 77547 ], "loc": { "start": { - "line": 2541, + "line": 2568, "column": 8 }, "end": { - "line": 2541, + "line": 2568, "column": 25 } } @@ -141405,16 +142707,16 @@ "value": "before-clearing-filters", "raw": "'before-clearing-filters'", "range": [ - 76611, - 76636 + 77548, + 77573 ], "loc": { "start": { - "line": 2541, + "line": 2568, "column": 26 }, "end": { - "line": 2541, + "line": 2568, "column": 51 } } @@ -141422,47 +142724,47 @@ { "type": "ThisExpression", "range": [ - 76638, - 76642 + 77575, + 77579 ], "loc": { "start": { - "line": 2541, + "line": 2568, "column": 53 }, "end": { - "line": 2541, + "line": 2568, "column": 57 } } } ], "range": [ - 76593, - 76643 + 77530, + 77580 ], "loc": { "start": { - "line": 2541, + "line": 2568, "column": 8 }, "end": { - "line": 2541, + "line": 2568, "column": 58 } } }, "range": [ - 76593, - 76644 + 77530, + 77581 ], "loc": { "start": { - "line": 2541, + "line": 2568, "column": 8 }, "end": { - "line": 2541, + "line": 2568, "column": 59 } } @@ -141477,16 +142779,16 @@ "object": { "type": "ThisExpression", "range": [ - 76653, - 76657 + 77590, + 77594 ], "loc": { "start": { - "line": 2542, + "line": 2569, "column": 8 }, "end": { - "line": 2542, + "line": 2569, "column": 12 } } @@ -141495,31 +142797,31 @@ "type": "Identifier", "name": "onBeforeReset", "range": [ - 76658, - 76671 + 77595, + 77608 ], "loc": { "start": { - "line": 2542, + "line": 2569, "column": 13 }, "end": { - "line": 2542, + "line": 2569, "column": 26 } } }, "range": [ - 76653, - 76671 + 77590, + 77608 ], "loc": { "start": { - "line": 2542, + "line": 2569, "column": 8 }, "end": { - "line": 2542, + "line": 2569, "column": 26 } } @@ -141528,16 +142830,16 @@ { "type": "ThisExpression", "range": [ - 76672, - 76676 + 77609, + 77613 ], "loc": { "start": { - "line": 2542, + "line": 2569, "column": 27 }, "end": { - "line": 2542, + "line": 2569, "column": 31 } } @@ -141550,16 +142852,16 @@ "object": { "type": "ThisExpression", "range": [ - 76678, - 76682 + 77615, + 77619 ], "loc": { "start": { - "line": 2542, + "line": 2569, "column": 33 }, "end": { - "line": 2542, + "line": 2569, "column": 37 } } @@ -141568,78 +142870,78 @@ "type": "Identifier", "name": "getFiltersValue", "range": [ - 76683, - 76698 + 77620, + 77635 ], "loc": { "start": { - "line": 2542, + "line": 2569, "column": 38 }, "end": { - "line": 2542, + "line": 2569, "column": 53 } } }, "range": [ - 76678, - 76698 + 77615, + 77635 ], "loc": { "start": { - "line": 2542, + "line": 2569, "column": 33 }, "end": { - "line": 2542, + "line": 2569, "column": 53 } } }, "arguments": [], "range": [ - 76678, - 76700 + 77615, + 77637 ], "loc": { "start": { - "line": 2542, + "line": 2569, "column": 33 }, "end": { - "line": 2542, + "line": 2569, "column": 55 } } } ], "range": [ - 76653, - 76701 + 77590, + 77638 ], "loc": { "start": { - "line": 2542, + "line": 2569, "column": 8 }, "end": { - "line": 2542, + "line": 2569, "column": 56 } } }, "range": [ - 76653, - 76702 + 77590, + 77639 ], "loc": { "start": { - "line": 2542, + "line": 2569, "column": 8 }, "end": { - "line": 2542, + "line": 2569, "column": 57 } } @@ -141655,16 +142957,16 @@ "type": "Identifier", "name": "i", "range": [ - 76721, - 76722 + 77658, + 77659 ], "loc": { "start": { - "line": 2544, + "line": 2571, "column": 17 }, "end": { - "line": 2544, + "line": 2571, "column": 18 } } @@ -141674,31 +142976,31 @@ "value": 0, "raw": "0", "range": [ - 76725, - 76726 + 77662, + 77663 ], "loc": { "start": { - "line": 2544, + "line": 2571, "column": 21 }, "end": { - "line": 2544, + "line": 2571, "column": 22 } } }, "range": [ - 76721, - 76726 + 77658, + 77663 ], "loc": { "start": { - "line": 2544, + "line": 2571, "column": 17 }, "end": { - "line": 2544, + "line": 2571, "column": 22 } } @@ -141709,16 +143011,16 @@ "type": "Identifier", "name": "len", "range": [ - 76728, - 76731 + 77665, + 77668 ], "loc": { "start": { - "line": 2544, + "line": 2571, "column": 24 }, "end": { - "line": 2544, + "line": 2571, "column": 27 } } @@ -141732,16 +143034,16 @@ "object": { "type": "ThisExpression", "range": [ - 76734, - 76738 + 77671, + 77675 ], "loc": { "start": { - "line": 2544, + "line": 2571, "column": 30 }, "end": { - "line": 2544, + "line": 2571, "column": 34 } } @@ -141750,31 +143052,31 @@ "type": "Identifier", "name": "fltIds", "range": [ - 76739, - 76745 + 77676, + 77682 ], "loc": { "start": { - "line": 2544, + "line": 2571, "column": 35 }, "end": { - "line": 2544, + "line": 2571, "column": 41 } } }, "range": [ - 76734, - 76745 + 77671, + 77682 ], "loc": { "start": { - "line": 2544, + "line": 2571, "column": 30 }, "end": { - "line": 2544, + "line": 2571, "column": 41 } } @@ -141783,46 +143085,46 @@ "type": "Identifier", "name": "length", "range": [ - 76746, - 76752 + 77683, + 77689 ], "loc": { "start": { - "line": 2544, + "line": 2571, "column": 42 }, "end": { - "line": 2544, + "line": 2571, "column": 48 } } }, "range": [ - 76734, - 76752 + 77671, + 77689 ], "loc": { "start": { - "line": 2544, + "line": 2571, "column": 30 }, "end": { - "line": 2544, + "line": 2571, "column": 48 } } }, "range": [ - 76728, - 76752 + 77665, + 77689 ], "loc": { "start": { - "line": 2544, + "line": 2571, "column": 24 }, "end": { - "line": 2544, + "line": 2571, "column": 48 } } @@ -141830,16 +143132,16 @@ ], "kind": "let", "range": [ - 76717, - 76752 + 77654, + 77689 ], "loc": { "start": { - "line": 2544, + "line": 2571, "column": 13 }, "end": { - "line": 2544, + "line": 2571, "column": 48 } } @@ -141851,16 +143153,16 @@ "type": "Identifier", "name": "i", "range": [ - 76754, - 76755 + 77691, + 77692 ], "loc": { "start": { - "line": 2544, + "line": 2571, "column": 50 }, "end": { - "line": 2544, + "line": 2571, "column": 51 } } @@ -141869,31 +143171,31 @@ "type": "Identifier", "name": "len", "range": [ - 76758, - 76761 + 77695, + 77698 ], "loc": { "start": { - "line": 2544, + "line": 2571, "column": 54 }, "end": { - "line": 2544, + "line": 2571, "column": 57 } } }, "range": [ - 76754, - 76761 + 77691, + 77698 ], "loc": { "start": { - "line": 2544, + "line": 2571, "column": 50 }, "end": { - "line": 2544, + "line": 2571, "column": 57 } } @@ -141905,32 +143207,32 @@ "type": "Identifier", "name": "i", "range": [ - 76763, - 76764 + 77700, + 77701 ], "loc": { "start": { - "line": 2544, + "line": 2571, "column": 59 }, "end": { - "line": 2544, + "line": 2571, "column": 60 } } }, "prefix": false, "range": [ - 76763, - 76766 + 77700, + 77703 ], "loc": { "start": { - "line": 2544, + "line": 2571, "column": 59 }, "end": { - "line": 2544, + "line": 2571, "column": 62 } } @@ -141948,16 +143250,16 @@ "object": { "type": "ThisExpression", "range": [ - 76782, - 76786 + 77719, + 77723 ], "loc": { "start": { - "line": 2545, + "line": 2572, "column": 12 }, "end": { - "line": 2545, + "line": 2572, "column": 16 } } @@ -141966,31 +143268,31 @@ "type": "Identifier", "name": "setFilterValue", "range": [ - 76787, - 76801 + 77724, + 77738 ], "loc": { "start": { - "line": 2545, + "line": 2572, "column": 17 }, "end": { - "line": 2545, + "line": 2572, "column": 31 } } }, "range": [ - 76782, - 76801 + 77719, + 77738 ], "loc": { "start": { - "line": 2545, + "line": 2572, "column": 12 }, "end": { - "line": 2545, + "line": 2572, "column": 31 } } @@ -142000,16 +143302,16 @@ "type": "Identifier", "name": "i", "range": [ - 76802, - 76803 + 77739, + 77740 ], "loc": { "start": { - "line": 2545, + "line": 2572, "column": 32 }, "end": { - "line": 2545, + "line": 2572, "column": 33 } } @@ -142019,78 +143321,78 @@ "value": "", "raw": "''", "range": [ - 76805, - 76807 + 77742, + 77744 ], "loc": { "start": { - "line": 2545, + "line": 2572, "column": 35 }, "end": { - "line": 2545, + "line": 2572, "column": 37 } } } ], "range": [ - 76782, - 76808 + 77719, + 77745 ], "loc": { "start": { - "line": 2545, + "line": 2572, "column": 12 }, "end": { - "line": 2545, + "line": 2572, "column": 38 } } }, "range": [ - 76782, - 76809 + 77719, + 77746 ], "loc": { "start": { - "line": 2545, + "line": 2572, "column": 12 }, "end": { - "line": 2545, + "line": 2572, "column": 39 } } } ], "range": [ - 76768, - 76819 + 77705, + 77756 ], "loc": { "start": { - "line": 2544, + "line": 2571, "column": 64 }, "end": { - "line": 2546, + "line": 2573, "column": 9 } } }, "range": [ - 76712, - 76819 + 77649, + 77756 ], "loc": { "start": { - "line": 2544, + "line": 2571, "column": 8 }, "end": { - "line": 2546, + "line": 2573, "column": 9 } } @@ -142105,16 +143407,16 @@ "object": { "type": "ThisExpression", "range": [ - 76829, - 76833 + 77766, + 77770 ], "loc": { "start": { - "line": 2548, + "line": 2575, "column": 8 }, "end": { - "line": 2548, + "line": 2575, "column": 12 } } @@ -142123,62 +143425,62 @@ "type": "Identifier", "name": "filter", "range": [ - 76834, - 76840 + 77771, + 77777 ], "loc": { "start": { - "line": 2548, + "line": 2575, "column": 13 }, "end": { - "line": 2548, + "line": 2575, "column": 19 } } }, "range": [ - 76829, - 76840 + 77766, + 77777 ], "loc": { "start": { - "line": 2548, + "line": 2575, "column": 8 }, "end": { - "line": 2548, + "line": 2575, "column": 19 } } }, "arguments": [], "range": [ - 76829, - 76842 + 77766, + 77779 ], "loc": { "start": { - "line": 2548, + "line": 2575, "column": 8 }, "end": { - "line": 2548, + "line": 2575, "column": 21 } } }, "range": [ - 76829, - 76843 + 77766, + 77780 ], "loc": { "start": { - "line": 2548, + "line": 2575, "column": 8 }, "end": { - "line": 2548, + "line": 2575, "column": 22 } } @@ -142193,16 +143495,16 @@ "object": { "type": "ThisExpression", "range": [ - 76853, - 76857 + 77790, + 77794 ], "loc": { "start": { - "line": 2550, + "line": 2577, "column": 8 }, "end": { - "line": 2550, + "line": 2577, "column": 12 } } @@ -142211,31 +143513,31 @@ "type": "Identifier", "name": "onAfterReset", "range": [ - 76858, - 76870 + 77795, + 77807 ], "loc": { "start": { - "line": 2550, + "line": 2577, "column": 13 }, "end": { - "line": 2550, + "line": 2577, "column": 25 } } }, "range": [ - 76853, - 76870 + 77790, + 77807 ], "loc": { "start": { - "line": 2550, + "line": 2577, "column": 8 }, "end": { - "line": 2550, + "line": 2577, "column": 25 } } @@ -142244,47 +143546,47 @@ { "type": "ThisExpression", "range": [ - 76871, - 76875 + 77808, + 77812 ], "loc": { "start": { - "line": 2550, + "line": 2577, "column": 26 }, "end": { - "line": 2550, + "line": 2577, "column": 30 } } } ], "range": [ - 76853, - 76876 + 77790, + 77813 ], "loc": { "start": { - "line": 2550, + "line": 2577, "column": 8 }, "end": { - "line": 2550, + "line": 2577, "column": 31 } } }, "range": [ - 76853, - 76877 + 77790, + 77814 ], "loc": { "start": { - "line": 2550, + "line": 2577, "column": 8 }, "end": { - "line": 2550, + "line": 2577, "column": 32 } } @@ -142302,16 +143604,16 @@ "object": { "type": "ThisExpression", "range": [ - 76886, - 76890 + 77823, + 77827 ], "loc": { "start": { - "line": 2551, + "line": 2578, "column": 8 }, "end": { - "line": 2551, + "line": 2578, "column": 12 } } @@ -142320,31 +143622,31 @@ "type": "Identifier", "name": "emitter", "range": [ - 76891, - 76898 + 77828, + 77835 ], "loc": { "start": { - "line": 2551, + "line": 2578, "column": 13 }, "end": { - "line": 2551, + "line": 2578, "column": 20 } } }, "range": [ - 76886, - 76898 + 77823, + 77835 ], "loc": { "start": { - "line": 2551, + "line": 2578, "column": 8 }, "end": { - "line": 2551, + "line": 2578, "column": 20 } } @@ -142353,31 +143655,31 @@ "type": "Identifier", "name": "emit", "range": [ - 76899, - 76903 + 77836, + 77840 ], "loc": { "start": { - "line": 2551, + "line": 2578, "column": 21 }, "end": { - "line": 2551, + "line": 2578, "column": 25 } } }, "range": [ - 76886, - 76903 + 77823, + 77840 ], "loc": { "start": { - "line": 2551, + "line": 2578, "column": 8 }, "end": { - "line": 2551, + "line": 2578, "column": 25 } } @@ -142388,16 +143690,16 @@ "value": "after-clearing-filters", "raw": "'after-clearing-filters'", "range": [ - 76904, - 76928 + 77841, + 77865 ], "loc": { "start": { - "line": 2551, + "line": 2578, "column": 26 }, "end": { - "line": 2551, + "line": 2578, "column": 50 } } @@ -142405,63 +143707,63 @@ { "type": "ThisExpression", "range": [ - 76930, - 76934 + 77867, + 77871 ], "loc": { "start": { - "line": 2551, + "line": 2578, "column": 52 }, "end": { - "line": 2551, + "line": 2578, "column": 56 } } } ], "range": [ - 76886, - 76935 + 77823, + 77872 ], "loc": { "start": { - "line": 2551, + "line": 2578, "column": 8 }, "end": { - "line": 2551, + "line": 2578, "column": 57 } } }, "range": [ - 76886, - 76936 + 77823, + 77873 ], "loc": { "start": { - "line": 2551, + "line": 2578, "column": 8 }, "end": { - "line": 2551, + "line": 2578, "column": 58 } } } ], "range": [ - 76523, - 76942 + 77460, + 77879 ], "loc": { "start": { - "line": 2536, + "line": 2563, "column": 19 }, "end": { - "line": 2552, + "line": 2579, "column": 5 } } @@ -142469,16 +143771,16 @@ "generator": false, "expression": false, "range": [ - 76520, - 76942 + 77457, + 77879 ], "loc": { "start": { - "line": 2536, + "line": 2563, "column": 16 }, "end": { - "line": 2552, + "line": 2579, "column": 5 } } @@ -142486,16 +143788,16 @@ "kind": "method", "computed": false, "range": [ - 76508, - 76942 + 77445, + 77879 ], "loc": { "start": { - "line": 2536, + "line": 2563, "column": 4 }, "end": { - "line": 2552, + "line": 2579, "column": 5 } }, @@ -142504,16 +143806,16 @@ "type": "Block", "value": "*\n * Clear all the filters' values\n ", "range": [ - 76455, - 76503 + 77392, + 77440 ], "loc": { "start": { - "line": 2533, + "line": 2560, "column": 4 }, "end": { - "line": 2535, + "line": 2562, "column": 7 } } @@ -142524,16 +143826,16 @@ "type": "Block", "value": "*\n * Clears filtered columns visual indicator (background color)\n ", "range": [ - 76948, - 77026 + 77885, + 77963 ], "loc": { "start": { - "line": 2554, + "line": 2581, "column": 4 }, "end": { - "line": 2556, + "line": 2583, "column": 7 } } @@ -142547,16 +143849,16 @@ "type": "Identifier", "name": "clearActiveColumns", "range": [ - 77031, - 77049 + 77968, + 77986 ], "loc": { "start": { - "line": 2557, + "line": 2584, "column": 4 }, "end": { - "line": 2557, + "line": 2584, "column": 22 } } @@ -142579,16 +143881,16 @@ "type": "Identifier", "name": "i", "range": [ - 77071, - 77072 + 78008, + 78009 ], "loc": { "start": { - "line": 2558, + "line": 2585, "column": 17 }, "end": { - "line": 2558, + "line": 2585, "column": 18 } } @@ -142598,31 +143900,31 @@ "value": 0, "raw": "0", "range": [ - 77075, - 77076 + 78012, + 78013 ], "loc": { "start": { - "line": 2558, + "line": 2585, "column": 21 }, "end": { - "line": 2558, + "line": 2585, "column": 22 } } }, "range": [ - 77071, - 77076 + 78008, + 78013 ], "loc": { "start": { - "line": 2558, + "line": 2585, "column": 17 }, "end": { - "line": 2558, + "line": 2585, "column": 22 } } @@ -142633,16 +143935,16 @@ "type": "Identifier", "name": "len", "range": [ - 77078, - 77081 + 78015, + 78018 ], "loc": { "start": { - "line": 2558, + "line": 2585, "column": 24 }, "end": { - "line": 2558, + "line": 2585, "column": 27 } } @@ -142655,16 +143957,16 @@ "object": { "type": "ThisExpression", "range": [ - 77084, - 77088 + 78021, + 78025 ], "loc": { "start": { - "line": 2558, + "line": 2585, "column": 30 }, "end": { - "line": 2558, + "line": 2585, "column": 34 } } @@ -142673,31 +143975,31 @@ "type": "Identifier", "name": "getCellsNb", "range": [ - 77089, - 77099 + 78026, + 78036 ], "loc": { "start": { - "line": 2558, + "line": 2585, "column": 35 }, "end": { - "line": 2558, + "line": 2585, "column": 45 } } }, "range": [ - 77084, - 77099 + 78021, + 78036 ], "loc": { "start": { - "line": 2558, + "line": 2585, "column": 30 }, "end": { - "line": 2558, + "line": 2585, "column": 45 } } @@ -142709,16 +144011,16 @@ "object": { "type": "ThisExpression", "range": [ - 77100, - 77104 + 78037, + 78041 ], "loc": { "start": { - "line": 2558, + "line": 2585, "column": 46 }, "end": { - "line": 2558, + "line": 2585, "column": 50 } } @@ -142727,62 +144029,62 @@ "type": "Identifier", "name": "headersRow", "range": [ - 77105, - 77115 + 78042, + 78052 ], "loc": { "start": { - "line": 2558, + "line": 2585, "column": 51 }, "end": { - "line": 2558, + "line": 2585, "column": 61 } } }, "range": [ - 77100, - 77115 + 78037, + 78052 ], "loc": { "start": { - "line": 2558, + "line": 2585, "column": 46 }, "end": { - "line": 2558, + "line": 2585, "column": 61 } } } ], "range": [ - 77084, - 77116 + 78021, + 78053 ], "loc": { "start": { - "line": 2558, + "line": 2585, "column": 30 }, "end": { - "line": 2558, + "line": 2585, "column": 62 } } }, "range": [ - 77078, - 77116 + 78015, + 78053 ], "loc": { "start": { - "line": 2558, + "line": 2585, "column": 24 }, "end": { - "line": 2558, + "line": 2585, "column": 62 } } @@ -142790,16 +144092,16 @@ ], "kind": "let", "range": [ - 77067, - 77116 + 78004, + 78053 ], "loc": { "start": { - "line": 2558, + "line": 2585, "column": 13 }, "end": { - "line": 2558, + "line": 2585, "column": 62 } } @@ -142811,16 +144113,16 @@ "type": "Identifier", "name": "i", "range": [ - 77118, - 77119 + 78055, + 78056 ], "loc": { "start": { - "line": 2558, + "line": 2585, "column": 64 }, "end": { - "line": 2558, + "line": 2585, "column": 65 } } @@ -142829,31 +144131,31 @@ "type": "Identifier", "name": "len", "range": [ - 77122, - 77125 + 78059, + 78062 ], "loc": { "start": { - "line": 2558, + "line": 2585, "column": 68 }, "end": { - "line": 2558, + "line": 2585, "column": 71 } } }, "range": [ - 77118, - 77125 + 78055, + 78062 ], "loc": { "start": { - "line": 2558, + "line": 2585, "column": 64 }, "end": { - "line": 2558, + "line": 2585, "column": 71 } } @@ -142865,32 +144167,32 @@ "type": "Identifier", "name": "i", "range": [ - 77127, - 77128 + 78064, + 78065 ], "loc": { "start": { - "line": 2558, + "line": 2585, "column": 73 }, "end": { - "line": 2558, + "line": 2585, "column": 74 } } }, "prefix": false, "range": [ - 77127, - 77130 + 78064, + 78067 ], "loc": { "start": { - "line": 2558, + "line": 2585, "column": 73 }, "end": { - "line": 2558, + "line": 2585, "column": 76 } } @@ -142906,16 +144208,16 @@ "type": "Identifier", "name": "removeClass", "range": [ - 77146, - 77157 + 78083, + 78094 ], "loc": { "start": { - "line": 2559, + "line": 2586, "column": 12 }, "end": { - "line": 2559, + "line": 2586, "column": 23 } } @@ -142929,16 +144231,16 @@ "object": { "type": "ThisExpression", "range": [ - 77158, - 77162 + 78095, + 78099 ], "loc": { "start": { - "line": 2559, + "line": 2586, "column": 24 }, "end": { - "line": 2559, + "line": 2586, "column": 28 } } @@ -142947,31 +144249,31 @@ "type": "Identifier", "name": "getHeaderElement", "range": [ - 77163, - 77179 + 78100, + 78116 ], "loc": { "start": { - "line": 2559, + "line": 2586, "column": 29 }, "end": { - "line": 2559, + "line": 2586, "column": 45 } } }, "range": [ - 77158, - 77179 + 78095, + 78116 ], "loc": { "start": { - "line": 2559, + "line": 2586, "column": 24 }, "end": { - "line": 2559, + "line": 2586, "column": 45 } } @@ -142981,32 +144283,32 @@ "type": "Identifier", "name": "i", "range": [ - 77180, - 77181 + 78117, + 78118 ], "loc": { "start": { - "line": 2559, + "line": 2586, "column": 46 }, "end": { - "line": 2559, + "line": 2586, "column": 47 } } } ], "range": [ - 77158, - 77182 + 78095, + 78119 ], "loc": { "start": { - "line": 2559, + "line": 2586, "column": 24 }, "end": { - "line": 2559, + "line": 2586, "column": 48 } } @@ -143017,16 +144319,16 @@ "object": { "type": "ThisExpression", "range": [ - 77184, - 77188 + 78121, + 78125 ], "loc": { "start": { - "line": 2559, + "line": 2586, "column": 50 }, "end": { - "line": 2559, + "line": 2586, "column": 54 } } @@ -143035,109 +144337,109 @@ "type": "Identifier", "name": "activeColumnsCssClass", "range": [ - 77189, - 77210 + 78126, + 78147 ], "loc": { "start": { - "line": 2559, + "line": 2586, "column": 55 }, "end": { - "line": 2559, + "line": 2586, "column": 76 } } }, "range": [ - 77184, - 77210 + 78121, + 78147 ], "loc": { "start": { - "line": 2559, + "line": 2586, "column": 50 }, "end": { - "line": 2559, + "line": 2586, "column": 76 } } } ], "range": [ - 77146, - 77211 + 78083, + 78148 ], "loc": { "start": { - "line": 2559, + "line": 2586, "column": 12 }, "end": { - "line": 2559, + "line": 2586, "column": 77 } } }, "range": [ - 77146, - 77212 + 78083, + 78149 ], "loc": { "start": { - "line": 2559, + "line": 2586, "column": 12 }, "end": { - "line": 2559, + "line": 2586, "column": 78 } } } ], "range": [ - 77132, - 77222 + 78069, + 78159 ], "loc": { "start": { - "line": 2558, + "line": 2585, "column": 78 }, "end": { - "line": 2560, + "line": 2587, "column": 9 } } }, "range": [ - 77062, - 77222 + 77999, + 78159 ], "loc": { "start": { - "line": 2558, + "line": 2585, "column": 8 }, "end": { - "line": 2560, + "line": 2587, "column": 9 } } } ], "range": [ - 77052, - 77228 + 77989, + 78165 ], "loc": { "start": { - "line": 2557, + "line": 2584, "column": 25 }, "end": { - "line": 2561, + "line": 2588, "column": 5 } } @@ -143145,16 +144447,16 @@ "generator": false, "expression": false, "range": [ - 77049, - 77228 + 77986, + 78165 ], "loc": { "start": { - "line": 2557, + "line": 2584, "column": 22 }, "end": { - "line": 2561, + "line": 2588, "column": 5 } } @@ -143162,16 +144464,16 @@ "kind": "method", "computed": false, "range": [ - 77031, - 77228 + 77968, + 78165 ], "loc": { "start": { - "line": 2557, + "line": 2584, "column": 4 }, "end": { - "line": 2561, + "line": 2588, "column": 5 } }, @@ -143180,16 +144482,16 @@ "type": "Block", "value": "*\n * Clears filtered columns visual indicator (background color)\n ", "range": [ - 76948, - 77026 + 77885, + 77963 ], "loc": { "start": { - "line": 2554, + "line": 2581, "column": 4 }, "end": { - "line": 2556, + "line": 2583, "column": 7 } } @@ -143200,16 +144502,16 @@ "type": "Block", "value": "*\n * Mark currently filtered column\n * @param {Number} colIndex Column index\n ", "range": [ - 77234, - 77329 + 78171, + 78266 ], "loc": { "start": { - "line": 2563, + "line": 2590, "column": 4 }, "end": { - "line": 2566, + "line": 2593, "column": 7 } } @@ -143223,16 +144525,16 @@ "type": "Identifier", "name": "markActiveColumn", "range": [ - 77334, - 77350 + 78271, + 78287 ], "loc": { "start": { - "line": 2567, + "line": 2594, "column": 4 }, "end": { - "line": 2567, + "line": 2594, "column": 20 } } @@ -143245,16 +144547,16 @@ "type": "Identifier", "name": "colIndex", "range": [ - 77351, - 77359 + 78288, + 78296 ], "loc": { "start": { - "line": 2567, + "line": 2594, "column": 21 }, "end": { - "line": 2567, + "line": 2594, "column": 29 } } @@ -143272,16 +144574,16 @@ "type": "Identifier", "name": "header", "range": [ - 77375, - 77381 + 78312, + 78318 ], "loc": { "start": { - "line": 2568, + "line": 2595, "column": 12 }, "end": { - "line": 2568, + "line": 2595, "column": 18 } } @@ -143294,16 +144596,16 @@ "object": { "type": "ThisExpression", "range": [ - 77384, - 77388 + 78321, + 78325 ], "loc": { "start": { - "line": 2568, + "line": 2595, "column": 21 }, "end": { - "line": 2568, + "line": 2595, "column": 25 } } @@ -143312,31 +144614,31 @@ "type": "Identifier", "name": "getHeaderElement", "range": [ - 77389, - 77405 + 78326, + 78342 ], "loc": { "start": { - "line": 2568, + "line": 2595, "column": 26 }, "end": { - "line": 2568, + "line": 2595, "column": 42 } } }, "range": [ - 77384, - 77405 + 78321, + 78342 ], "loc": { "start": { - "line": 2568, + "line": 2595, "column": 21 }, "end": { - "line": 2568, + "line": 2595, "column": 42 } } @@ -143346,47 +144648,47 @@ "type": "Identifier", "name": "colIndex", "range": [ - 77406, - 77414 + 78343, + 78351 ], "loc": { "start": { - "line": 2568, + "line": 2595, "column": 43 }, "end": { - "line": 2568, + "line": 2595, "column": 51 } } } ], "range": [ - 77384, - 77415 + 78321, + 78352 ], "loc": { "start": { - "line": 2568, + "line": 2595, "column": 21 }, "end": { - "line": 2568, + "line": 2595, "column": 52 } } }, "range": [ - 77375, - 77415 + 78312, + 78352 ], "loc": { "start": { - "line": 2568, + "line": 2595, "column": 12 }, "end": { - "line": 2568, + "line": 2595, "column": 52 } } @@ -143394,16 +144696,16 @@ ], "kind": "let", "range": [ - 77371, - 77416 + 78308, + 78353 ], "loc": { "start": { - "line": 2568, + "line": 2595, "column": 8 }, "end": { - "line": 2568, + "line": 2595, "column": 53 } } @@ -143416,16 +144718,16 @@ "type": "Identifier", "name": "hasClass", "range": [ - 77429, - 77437 + 78366, + 78374 ], "loc": { "start": { - "line": 2569, + "line": 2596, "column": 12 }, "end": { - "line": 2569, + "line": 2596, "column": 20 } } @@ -143435,16 +144737,16 @@ "type": "Identifier", "name": "header", "range": [ - 77438, - 77444 + 78375, + 78381 ], "loc": { "start": { - "line": 2569, + "line": 2596, "column": 21 }, "end": { - "line": 2569, + "line": 2596, "column": 27 } } @@ -143455,16 +144757,16 @@ "object": { "type": "ThisExpression", "range": [ - 77446, - 77450 + 78383, + 78387 ], "loc": { "start": { - "line": 2569, + "line": 2596, "column": 29 }, "end": { - "line": 2569, + "line": 2596, "column": 33 } } @@ -143473,47 +144775,47 @@ "type": "Identifier", "name": "activeColumnsCssClass", "range": [ - 77451, - 77472 + 78388, + 78409 ], "loc": { "start": { - "line": 2569, + "line": 2596, "column": 34 }, "end": { - "line": 2569, + "line": 2596, "column": 55 } } }, "range": [ - 77446, - 77472 + 78383, + 78409 ], "loc": { "start": { - "line": 2569, + "line": 2596, "column": 29 }, "end": { - "line": 2569, + "line": 2596, "column": 55 } } } ], "range": [ - 77429, - 77473 + 78366, + 78410 ], "loc": { "start": { - "line": 2569, + "line": 2596, "column": 12 }, "end": { - "line": 2569, + "line": 2596, "column": 56 } } @@ -143525,48 +144827,48 @@ "type": "ReturnStatement", "argument": null, "range": [ - 77489, - 77496 + 78426, + 78433 ], "loc": { "start": { - "line": 2570, + "line": 2597, "column": 12 }, "end": { - "line": 2570, + "line": 2597, "column": 19 } } } ], "range": [ - 77475, - 77506 + 78412, + 78443 ], "loc": { "start": { - "line": 2569, + "line": 2596, "column": 58 }, "end": { - "line": 2571, + "line": 2598, "column": 9 } } }, "alternate": null, "range": [ - 77425, - 77506 + 78362, + 78443 ], "loc": { "start": { - "line": 2569, + "line": 2596, "column": 8 }, "end": { - "line": 2571, + "line": 2598, "column": 9 } } @@ -143581,16 +144883,16 @@ "object": { "type": "ThisExpression", "range": [ - 77515, - 77519 + 78452, + 78456 ], "loc": { "start": { - "line": 2572, + "line": 2599, "column": 8 }, "end": { - "line": 2572, + "line": 2599, "column": 12 } } @@ -143599,31 +144901,31 @@ "type": "Identifier", "name": "onBeforeActiveColumn", "range": [ - 77520, - 77540 + 78457, + 78477 ], "loc": { "start": { - "line": 2572, + "line": 2599, "column": 13 }, "end": { - "line": 2572, + "line": 2599, "column": 33 } } }, "range": [ - 77515, - 77540 + 78452, + 78477 ], "loc": { "start": { - "line": 2572, + "line": 2599, "column": 8 }, "end": { - "line": 2572, + "line": 2599, "column": 33 } } @@ -143632,16 +144934,16 @@ { "type": "ThisExpression", "range": [ - 77541, - 77545 + 78478, + 78482 ], "loc": { "start": { - "line": 2572, + "line": 2599, "column": 34 }, "end": { - "line": 2572, + "line": 2599, "column": 38 } } @@ -143650,47 +144952,47 @@ "type": "Identifier", "name": "colIndex", "range": [ - 77547, - 77555 + 78484, + 78492 ], "loc": { "start": { - "line": 2572, + "line": 2599, "column": 40 }, "end": { - "line": 2572, + "line": 2599, "column": 48 } } } ], "range": [ - 77515, - 77556 + 78452, + 78493 ], "loc": { "start": { - "line": 2572, + "line": 2599, "column": 8 }, "end": { - "line": 2572, + "line": 2599, "column": 49 } } }, "range": [ - 77515, - 77557 + 78452, + 78494 ], "loc": { "start": { - "line": 2572, + "line": 2599, "column": 8 }, "end": { - "line": 2572, + "line": 2599, "column": 50 } } @@ -143703,16 +145005,16 @@ "type": "Identifier", "name": "addClass", "range": [ - 77567, - 77575 + 78504, + 78512 ], "loc": { "start": { - "line": 2574, + "line": 2601, "column": 8 }, "end": { - "line": 2574, + "line": 2601, "column": 16 } } @@ -143722,16 +145024,16 @@ "type": "Identifier", "name": "header", "range": [ - 77576, - 77582 + 78513, + 78519 ], "loc": { "start": { - "line": 2574, + "line": 2601, "column": 17 }, "end": { - "line": 2574, + "line": 2601, "column": 23 } } @@ -143742,16 +145044,16 @@ "object": { "type": "ThisExpression", "range": [ - 77584, - 77588 + 78521, + 78525 ], "loc": { "start": { - "line": 2574, + "line": 2601, "column": 25 }, "end": { - "line": 2574, + "line": 2601, "column": 29 } } @@ -143760,62 +145062,62 @@ "type": "Identifier", "name": "activeColumnsCssClass", "range": [ - 77589, - 77610 + 78526, + 78547 ], "loc": { "start": { - "line": 2574, + "line": 2601, "column": 30 }, "end": { - "line": 2574, + "line": 2601, "column": 51 } } }, "range": [ - 77584, - 77610 + 78521, + 78547 ], "loc": { "start": { - "line": 2574, + "line": 2601, "column": 25 }, "end": { - "line": 2574, + "line": 2601, "column": 51 } } } ], "range": [ - 77567, - 77611 + 78504, + 78548 ], "loc": { "start": { - "line": 2574, + "line": 2601, "column": 8 }, "end": { - "line": 2574, + "line": 2601, "column": 52 } } }, "range": [ - 77567, - 77612 + 78504, + 78549 ], "loc": { "start": { - "line": 2574, + "line": 2601, "column": 8 }, "end": { - "line": 2574, + "line": 2601, "column": 53 } } @@ -143830,16 +145132,16 @@ "object": { "type": "ThisExpression", "range": [ - 77622, - 77626 + 78559, + 78563 ], "loc": { "start": { - "line": 2576, + "line": 2603, "column": 8 }, "end": { - "line": 2576, + "line": 2603, "column": 12 } } @@ -143848,31 +145150,31 @@ "type": "Identifier", "name": "onAfterActiveColumn", "range": [ - 77627, - 77646 + 78564, + 78583 ], "loc": { "start": { - "line": 2576, + "line": 2603, "column": 13 }, "end": { - "line": 2576, + "line": 2603, "column": 32 } } }, "range": [ - 77622, - 77646 + 78559, + 78583 ], "loc": { "start": { - "line": 2576, + "line": 2603, "column": 8 }, "end": { - "line": 2576, + "line": 2603, "column": 32 } } @@ -143881,16 +145183,16 @@ { "type": "ThisExpression", "range": [ - 77647, - 77651 + 78584, + 78588 ], "loc": { "start": { - "line": 2576, + "line": 2603, "column": 33 }, "end": { - "line": 2576, + "line": 2603, "column": 37 } } @@ -143899,63 +145201,63 @@ "type": "Identifier", "name": "colIndex", "range": [ - 77653, - 77661 + 78590, + 78598 ], "loc": { "start": { - "line": 2576, + "line": 2603, "column": 39 }, "end": { - "line": 2576, + "line": 2603, "column": 47 } } } ], "range": [ - 77622, - 77662 + 78559, + 78599 ], "loc": { "start": { - "line": 2576, + "line": 2603, "column": 8 }, "end": { - "line": 2576, + "line": 2603, "column": 48 } } }, "range": [ - 77622, - 77663 + 78559, + 78600 ], "loc": { "start": { - "line": 2576, + "line": 2603, "column": 8 }, "end": { - "line": 2576, + "line": 2603, "column": 49 } } } ], "range": [ - 77361, - 77669 + 78298, + 78606 ], "loc": { "start": { - "line": 2567, + "line": 2594, "column": 31 }, "end": { - "line": 2577, + "line": 2604, "column": 5 } } @@ -143963,16 +145265,16 @@ "generator": false, "expression": false, "range": [ - 77350, - 77669 + 78287, + 78606 ], "loc": { "start": { - "line": 2567, + "line": 2594, "column": 20 }, "end": { - "line": 2577, + "line": 2604, "column": 5 } } @@ -143980,16 +145282,16 @@ "kind": "method", "computed": false, "range": [ - 77334, - 77669 + 78271, + 78606 ], "loc": { "start": { - "line": 2567, + "line": 2594, "column": 4 }, "end": { - "line": 2577, + "line": 2604, "column": 5 } }, @@ -143998,16 +145300,16 @@ "type": "Block", "value": "*\n * Mark currently filtered column\n * @param {Number} colIndex Column index\n ", "range": [ - 77234, - 77329 + 78171, + 78266 ], "loc": { "start": { - "line": 2563, + "line": 2590, "column": 4 }, "end": { - "line": 2566, + "line": 2593, "column": 7 } } @@ -144018,16 +145320,16 @@ "type": "Block", "value": "*\n * Return the ID of the current active filter\n * @returns {String}\n ", "range": [ - 77675, - 77761 + 78612, + 78698 ], "loc": { "start": { - "line": 2579, + "line": 2606, "column": 4 }, "end": { - "line": 2582, + "line": 2609, "column": 7 } } @@ -144041,16 +145343,16 @@ "type": "Identifier", "name": "getActiveFilterId", "range": [ - 77766, - 77783 + 78703, + 78720 ], "loc": { "start": { - "line": 2583, + "line": 2610, "column": 4 }, "end": { - "line": 2583, + "line": 2610, "column": 21 } } @@ -144070,16 +145372,16 @@ "object": { "type": "ThisExpression", "range": [ - 77803, - 77807 + 78740, + 78744 ], "loc": { "start": { - "line": 2584, + "line": 2611, "column": 15 }, "end": { - "line": 2584, + "line": 2611, "column": 19 } } @@ -144088,62 +145390,62 @@ "type": "Identifier", "name": "activeFilterId", "range": [ - 77808, - 77822 + 78745, + 78759 ], "loc": { "start": { - "line": 2584, + "line": 2611, "column": 20 }, "end": { - "line": 2584, + "line": 2611, "column": 34 } } }, "range": [ - 77803, - 77822 + 78740, + 78759 ], "loc": { "start": { - "line": 2584, + "line": 2611, "column": 15 }, "end": { - "line": 2584, + "line": 2611, "column": 34 } } }, "range": [ - 77796, - 77823 + 78733, + 78760 ], "loc": { "start": { - "line": 2584, + "line": 2611, "column": 8 }, "end": { - "line": 2584, + "line": 2611, "column": 35 } } } ], "range": [ - 77786, - 77829 + 78723, + 78766 ], "loc": { "start": { - "line": 2583, + "line": 2610, "column": 24 }, "end": { - "line": 2585, + "line": 2612, "column": 5 } } @@ -144151,16 +145453,16 @@ "generator": false, "expression": false, "range": [ - 77783, - 77829 + 78720, + 78766 ], "loc": { "start": { - "line": 2583, + "line": 2610, "column": 21 }, "end": { - "line": 2585, + "line": 2612, "column": 5 } } @@ -144168,16 +145470,16 @@ "kind": "method", "computed": false, "range": [ - 77766, - 77829 + 78703, + 78766 ], "loc": { "start": { - "line": 2583, + "line": 2610, "column": 4 }, "end": { - "line": 2585, + "line": 2612, "column": 5 } }, @@ -144186,16 +145488,16 @@ "type": "Block", "value": "*\n * Return the ID of the current active filter\n * @returns {String}\n ", "range": [ - 77675, - 77761 + 78612, + 78698 ], "loc": { "start": { - "line": 2579, + "line": 2606, "column": 4 }, "end": { - "line": 2582, + "line": 2609, "column": 7 } } @@ -144206,16 +145508,16 @@ "type": "Block", "value": "*\n * Set the ID of the current active filter\n * @param {String} filterId Element ID\n ", "range": [ - 77835, - 77936 + 78772, + 78873 ], "loc": { "start": { - "line": 2587, + "line": 2614, "column": 4 }, "end": { - "line": 2590, + "line": 2617, "column": 7 } } @@ -144229,16 +145531,16 @@ "type": "Identifier", "name": "setActiveFilterId", "range": [ - 77941, - 77958 + 78878, + 78895 ], "loc": { "start": { - "line": 2591, + "line": 2618, "column": 4 }, "end": { - "line": 2591, + "line": 2618, "column": 21 } } @@ -144251,16 +145553,16 @@ "type": "Identifier", "name": "filterId", "range": [ - 77959, - 77967 + 78896, + 78904 ], "loc": { "start": { - "line": 2591, + "line": 2618, "column": 22 }, "end": { - "line": 2591, + "line": 2618, "column": 30 } } @@ -144280,16 +145582,16 @@ "object": { "type": "ThisExpression", "range": [ - 77979, - 77983 + 78916, + 78920 ], "loc": { "start": { - "line": 2592, + "line": 2619, "column": 8 }, "end": { - "line": 2592, + "line": 2619, "column": 12 } } @@ -144298,31 +145600,31 @@ "type": "Identifier", "name": "activeFilterId", "range": [ - 77984, - 77998 + 78921, + 78935 ], "loc": { "start": { - "line": 2592, + "line": 2619, "column": 13 }, "end": { - "line": 2592, + "line": 2619, "column": 27 } } }, "range": [ - 77979, - 77998 + 78916, + 78935 ], "loc": { "start": { - "line": 2592, + "line": 2619, "column": 8 }, "end": { - "line": 2592, + "line": 2619, "column": 27 } } @@ -144331,62 +145633,62 @@ "type": "Identifier", "name": "filterId", "range": [ - 78001, - 78009 + 78938, + 78946 ], "loc": { "start": { - "line": 2592, + "line": 2619, "column": 30 }, "end": { - "line": 2592, + "line": 2619, "column": 38 } } }, "range": [ - 77979, - 78009 + 78916, + 78946 ], "loc": { "start": { - "line": 2592, + "line": 2619, "column": 8 }, "end": { - "line": 2592, + "line": 2619, "column": 38 } } }, "range": [ - 77979, - 78010 + 78916, + 78947 ], "loc": { "start": { - "line": 2592, + "line": 2619, "column": 8 }, "end": { - "line": 2592, + "line": 2619, "column": 39 } } } ], "range": [ - 77969, - 78016 + 78906, + 78953 ], "loc": { "start": { - "line": 2591, + "line": 2618, "column": 32 }, "end": { - "line": 2593, + "line": 2620, "column": 5 } } @@ -144394,16 +145696,16 @@ "generator": false, "expression": false, "range": [ - 77958, - 78016 + 78895, + 78953 ], "loc": { "start": { - "line": 2591, + "line": 2618, "column": 21 }, "end": { - "line": 2593, + "line": 2620, "column": 5 } } @@ -144411,16 +145713,16 @@ "kind": "method", "computed": false, "range": [ - 77941, - 78016 + 78878, + 78953 ], "loc": { "start": { - "line": 2591, + "line": 2618, "column": 4 }, "end": { - "line": 2593, + "line": 2620, "column": 5 } }, @@ -144429,16 +145731,16 @@ "type": "Block", "value": "*\n * Set the ID of the current active filter\n * @param {String} filterId Element ID\n ", "range": [ - 77835, - 77936 + 78772, + 78873 ], "loc": { "start": { - "line": 2587, + "line": 2614, "column": 4 }, "end": { - "line": 2590, + "line": 2617, "column": 7 } } @@ -144449,16 +145751,16 @@ "type": "Block", "value": "*\n * Return the column index for a given filter ID\n * @param {string} [filterId=''] Filter ID\n * @returns {Number} Column index\n ", "range": [ - 78022, - 78171 + 78959, + 79108 ], "loc": { "start": { - "line": 2595, + "line": 2622, "column": 4 }, "end": { - "line": 2599, + "line": 2626, "column": 7 } } @@ -144472,16 +145774,16 @@ "type": "Identifier", "name": "getColumnIndexFromFilterId", "range": [ - 78176, - 78202 + 79113, + 79139 ], "loc": { "start": { - "line": 2600, + "line": 2627, "column": 4 }, "end": { - "line": 2600, + "line": 2627, "column": 30 } } @@ -144496,16 +145798,16 @@ "type": "Identifier", "name": "filterId", "range": [ - 78203, - 78211 + 79140, + 79148 ], "loc": { "start": { - "line": 2600, + "line": 2627, "column": 31 }, "end": { - "line": 2600, + "line": 2627, "column": 39 } } @@ -144515,31 +145817,31 @@ "value": "", "raw": "''", "range": [ - 78214, - 78216 + 79151, + 79153 ], "loc": { "start": { - "line": 2600, + "line": 2627, "column": 42 }, "end": { - "line": 2600, + "line": 2627, "column": 44 } } }, "range": [ - 78203, - 78216 + 79140, + 79153 ], "loc": { "start": { - "line": 2600, + "line": 2627, "column": 31 }, "end": { - "line": 2600, + "line": 2627, "column": 44 } } @@ -144557,16 +145859,16 @@ "type": "Identifier", "name": "idx", "range": [ - 78232, - 78235 + 79169, + 79172 ], "loc": { "start": { - "line": 2601, + "line": 2628, "column": 12 }, "end": { - "line": 2601, + "line": 2628, "column": 15 } } @@ -144583,16 +145885,16 @@ "type": "Identifier", "name": "filterId", "range": [ - 78238, - 78246 + 79175, + 79183 ], "loc": { "start": { - "line": 2601, + "line": 2628, "column": 18 }, "end": { - "line": 2601, + "line": 2628, "column": 26 } } @@ -144601,31 +145903,31 @@ "type": "Identifier", "name": "split", "range": [ - 78247, - 78252 + 79184, + 79189 ], "loc": { "start": { - "line": 2601, + "line": 2628, "column": 27 }, "end": { - "line": 2601, + "line": 2628, "column": 32 } } }, "range": [ - 78238, - 78252 + 79175, + 79189 ], "loc": { "start": { - "line": 2601, + "line": 2628, "column": 18 }, "end": { - "line": 2601, + "line": 2628, "column": 32 } } @@ -144636,32 +145938,32 @@ "value": "_", "raw": "'_'", "range": [ - 78253, - 78256 + 79190, + 79193 ], "loc": { "start": { - "line": 2601, + "line": 2628, "column": 33 }, "end": { - "line": 2601, + "line": 2628, "column": 36 } } } ], "range": [ - 78238, - 78257 + 79175, + 79194 ], "loc": { "start": { - "line": 2601, + "line": 2628, "column": 18 }, "end": { - "line": 2601, + "line": 2628, "column": 37 } } @@ -144671,46 +145973,46 @@ "value": 0, "raw": "0", "range": [ - 78258, - 78259 + 79195, + 79196 ], "loc": { "start": { - "line": 2601, + "line": 2628, "column": 38 }, "end": { - "line": 2601, + "line": 2628, "column": 39 } } }, "range": [ - 78238, - 78260 + 79175, + 79197 ], "loc": { "start": { - "line": 2601, + "line": 2628, "column": 18 }, "end": { - "line": 2601, + "line": 2628, "column": 40 } } }, "range": [ - 78232, - 78260 + 79169, + 79197 ], "loc": { "start": { - "line": 2601, + "line": 2628, "column": 12 }, "end": { - "line": 2601, + "line": 2628, "column": 40 } } @@ -144718,16 +146020,16 @@ ], "kind": "let", "range": [ - 78228, - 78261 + 79165, + 79198 ], "loc": { "start": { - "line": 2601, + "line": 2628, "column": 8 }, "end": { - "line": 2601, + "line": 2628, "column": 41 } } @@ -144741,16 +146043,16 @@ "type": "Identifier", "name": "idx", "range": [ - 78270, - 78273 + 79207, + 79210 ], "loc": { "start": { - "line": 2602, + "line": 2629, "column": 8 }, "end": { - "line": 2602, + "line": 2629, "column": 11 } } @@ -144767,16 +146069,16 @@ "type": "Identifier", "name": "idx", "range": [ - 78276, - 78279 + 79213, + 79216 ], "loc": { "start": { - "line": 2602, + "line": 2629, "column": 14 }, "end": { - "line": 2602, + "line": 2629, "column": 17 } } @@ -144785,31 +146087,31 @@ "type": "Identifier", "name": "split", "range": [ - 78280, - 78285 + 79217, + 79222 ], "loc": { "start": { - "line": 2602, + "line": 2629, "column": 18 }, "end": { - "line": 2602, + "line": 2629, "column": 23 } } }, "range": [ - 78276, - 78285 + 79213, + 79222 ], "loc": { "start": { - "line": 2602, + "line": 2629, "column": 14 }, "end": { - "line": 2602, + "line": 2629, "column": 23 } } @@ -144821,16 +146123,16 @@ "object": { "type": "ThisExpression", "range": [ - 78286, - 78290 + 79223, + 79227 ], "loc": { "start": { - "line": 2602, + "line": 2629, "column": 24 }, "end": { - "line": 2602, + "line": 2629, "column": 28 } } @@ -144839,47 +146141,47 @@ "type": "Identifier", "name": "prfxFlt", "range": [ - 78291, - 78298 + 79228, + 79235 ], "loc": { "start": { - "line": 2602, + "line": 2629, "column": 29 }, "end": { - "line": 2602, + "line": 2629, "column": 36 } } }, "range": [ - 78286, - 78298 + 79223, + 79235 ], "loc": { "start": { - "line": 2602, + "line": 2629, "column": 24 }, "end": { - "line": 2602, + "line": 2629, "column": 36 } } } ], "range": [ - 78276, - 78299 + 79213, + 79236 ], "loc": { "start": { - "line": 2602, + "line": 2629, "column": 14 }, "end": { - "line": 2602, + "line": 2629, "column": 37 } } @@ -144889,61 +146191,61 @@ "value": 1, "raw": "1", "range": [ - 78300, - 78301 + 79237, + 79238 ], "loc": { "start": { - "line": 2602, + "line": 2629, "column": 38 }, "end": { - "line": 2602, + "line": 2629, "column": 39 } } }, "range": [ - 78276, - 78302 + 79213, + 79239 ], "loc": { "start": { - "line": 2602, + "line": 2629, "column": 14 }, "end": { - "line": 2602, + "line": 2629, "column": 40 } } }, "range": [ - 78270, - 78302 + 79207, + 79239 ], "loc": { "start": { - "line": 2602, + "line": 2629, "column": 8 }, "end": { - "line": 2602, + "line": 2629, "column": 40 } } }, "range": [ - 78270, - 78303 + 79207, + 79240 ], "loc": { "start": { - "line": 2602, + "line": 2629, "column": 8 }, "end": { - "line": 2602, + "line": 2629, "column": 41 } } @@ -144956,16 +146258,16 @@ "type": "Identifier", "name": "parseInt", "range": [ - 78319, - 78327 + 79256, + 79264 ], "loc": { "start": { - "line": 2603, + "line": 2630, "column": 15 }, "end": { - "line": 2603, + "line": 2630, "column": 23 } } @@ -144975,16 +146277,16 @@ "type": "Identifier", "name": "idx", "range": [ - 78328, - 78331 + 79265, + 79268 ], "loc": { "start": { - "line": 2603, + "line": 2630, "column": 24 }, "end": { - "line": 2603, + "line": 2630, "column": 27 } } @@ -144994,63 +146296,63 @@ "value": 10, "raw": "10", "range": [ - 78333, - 78335 + 79270, + 79272 ], "loc": { "start": { - "line": 2603, + "line": 2630, "column": 29 }, "end": { - "line": 2603, + "line": 2630, "column": 31 } } } ], "range": [ - 78319, - 78336 + 79256, + 79273 ], "loc": { "start": { - "line": 2603, + "line": 2630, "column": 15 }, "end": { - "line": 2603, + "line": 2630, "column": 32 } } }, "range": [ - 78312, - 78337 + 79249, + 79274 ], "loc": { "start": { - "line": 2603, + "line": 2630, "column": 8 }, "end": { - "line": 2603, + "line": 2630, "column": 33 } } } ], "range": [ - 78218, - 78343 + 79155, + 79280 ], "loc": { "start": { - "line": 2600, + "line": 2627, "column": 46 }, "end": { - "line": 2604, + "line": 2631, "column": 5 } } @@ -145058,16 +146360,16 @@ "generator": false, "expression": false, "range": [ - 78202, - 78343 + 79139, + 79280 ], "loc": { "start": { - "line": 2600, + "line": 2627, "column": 30 }, "end": { - "line": 2604, + "line": 2631, "column": 5 } } @@ -145075,16 +146377,16 @@ "kind": "method", "computed": false, "range": [ - 78176, - 78343 + 79113, + 79280 ], "loc": { "start": { - "line": 2600, + "line": 2627, "column": 4 }, "end": { - "line": 2604, + "line": 2631, "column": 5 } }, @@ -145093,16 +146395,16 @@ "type": "Block", "value": "*\n * Return the column index for a given filter ID\n * @param {string} [filterId=''] Filter ID\n * @returns {Number} Column index\n ", "range": [ - 78022, - 78171 + 78959, + 79108 ], "loc": { "start": { - "line": 2595, + "line": 2622, "column": 4 }, "end": { - "line": 2599, + "line": 2626, "column": 7 } } @@ -145113,16 +146415,16 @@ "type": "Block", "value": "*\n * Builds filter element ID for a given column index\n * @param {any} colIndex\n * @returns {String} Filter element ID string\n * @private\n ", "range": [ - 78349, - 78512 + 79286, + 79449 ], "loc": { "start": { - "line": 2606, + "line": 2633, "column": 4 }, "end": { - "line": 2611, + "line": 2638, "column": 7 } } @@ -145136,16 +146438,16 @@ "type": "Identifier", "name": "buildFilterId", "range": [ - 78517, - 78530 + 79454, + 79467 ], "loc": { "start": { - "line": 2612, + "line": 2639, "column": 4 }, "end": { - "line": 2612, + "line": 2639, "column": 17 } } @@ -145158,16 +146460,16 @@ "type": "Identifier", "name": "colIndex", "range": [ - 78531, - 78539 + 79468, + 79476 ], "loc": { "start": { - "line": 2612, + "line": 2639, "column": 18 }, "end": { - "line": 2612, + "line": 2639, "column": 26 } } @@ -145189,16 +146491,16 @@ }, "tail": false, "range": [ - 78558, - 78561 + 79495, + 79498 ], "loc": { "start": { - "line": 2613, + "line": 2640, "column": 15 }, "end": { - "line": 2613, + "line": 2640, "column": 18 } } @@ -145211,16 +146513,16 @@ }, "tail": false, "range": [ - 78573, - 78576 + 79510, + 79513 ], "loc": { "start": { - "line": 2613, + "line": 2640, "column": 30 }, "end": { - "line": 2613, + "line": 2640, "column": 33 } } @@ -145233,16 +146535,16 @@ }, "tail": false, "range": [ - 78584, - 78588 + 79521, + 79525 ], "loc": { "start": { - "line": 2613, + "line": 2640, "column": 41 }, "end": { - "line": 2613, + "line": 2640, "column": 45 } } @@ -145255,16 +146557,16 @@ }, "tail": true, "range": [ - 78595, - 78597 + 79532, + 79534 ], "loc": { "start": { - "line": 2613, + "line": 2640, "column": 52 }, "end": { - "line": 2613, + "line": 2640, "column": 54 } } @@ -145277,16 +146579,16 @@ "object": { "type": "ThisExpression", "range": [ - 78561, - 78565 + 79498, + 79502 ], "loc": { "start": { - "line": 2613, + "line": 2640, "column": 18 }, "end": { - "line": 2613, + "line": 2640, "column": 22 } } @@ -145295,31 +146597,31 @@ "type": "Identifier", "name": "prfxFlt", "range": [ - 78566, - 78573 + 79503, + 79510 ], "loc": { "start": { - "line": 2613, + "line": 2640, "column": 23 }, "end": { - "line": 2613, + "line": 2640, "column": 30 } } }, "range": [ - 78561, - 78573 + 79498, + 79510 ], "loc": { "start": { - "line": 2613, + "line": 2640, "column": 18 }, "end": { - "line": 2613, + "line": 2640, "column": 30 } } @@ -145328,16 +146630,16 @@ "type": "Identifier", "name": "colIndex", "range": [ - 78576, - 78584 + 79513, + 79521 ], "loc": { "start": { - "line": 2613, + "line": 2640, "column": 33 }, "end": { - "line": 2613, + "line": 2640, "column": 41 } } @@ -145348,16 +146650,16 @@ "object": { "type": "ThisExpression", "range": [ - 78588, - 78592 + 79525, + 79529 ], "loc": { "start": { - "line": 2613, + "line": 2640, "column": 45 }, "end": { - "line": 2613, + "line": 2640, "column": 49 } } @@ -145366,78 +146668,78 @@ "type": "Identifier", "name": "id", "range": [ - 78593, - 78595 + 79530, + 79532 ], "loc": { "start": { - "line": 2613, + "line": 2640, "column": 50 }, "end": { - "line": 2613, + "line": 2640, "column": 52 } } }, "range": [ - 78588, - 78595 + 79525, + 79532 ], "loc": { "start": { - "line": 2613, + "line": 2640, "column": 45 }, "end": { - "line": 2613, + "line": 2640, "column": 52 } } } ], "range": [ - 78558, - 78597 + 79495, + 79534 ], "loc": { "start": { - "line": 2613, + "line": 2640, "column": 15 }, "end": { - "line": 2613, + "line": 2640, "column": 54 } } }, "range": [ - 78551, - 78598 + 79488, + 79535 ], "loc": { "start": { - "line": 2613, + "line": 2640, "column": 8 }, "end": { - "line": 2613, + "line": 2640, "column": 55 } } } ], "range": [ - 78541, - 78604 + 79478, + 79541 ], "loc": { "start": { - "line": 2612, + "line": 2639, "column": 28 }, "end": { - "line": 2614, + "line": 2641, "column": 5 } } @@ -145445,16 +146747,16 @@ "generator": false, "expression": false, "range": [ - 78530, - 78604 + 79467, + 79541 ], "loc": { "start": { - "line": 2612, + "line": 2639, "column": 17 }, "end": { - "line": 2614, + "line": 2641, "column": 5 } } @@ -145462,16 +146764,16 @@ "kind": "method", "computed": false, "range": [ - 78517, - 78604 + 79454, + 79541 ], "loc": { "start": { - "line": 2612, + "line": 2639, "column": 4 }, "end": { - "line": 2614, + "line": 2641, "column": 5 } }, @@ -145480,16 +146782,16 @@ "type": "Block", "value": "*\n * Builds filter element ID for a given column index\n * @param {any} colIndex\n * @returns {String} Filter element ID string\n * @private\n ", "range": [ - 78349, - 78512 + 79286, + 79449 ], "loc": { "start": { - "line": 2606, + "line": 2633, "column": 4 }, "end": { - "line": 2611, + "line": 2638, "column": 7 } } @@ -145500,16 +146802,16 @@ "type": "Block", "value": "*\n * Make specified column's filter active\n * @param colIndex Index of a column\n ", "range": [ - 78610, - 78707 + 79547, + 79644 ], "loc": { "start": { - "line": 2616, + "line": 2643, "column": 4 }, "end": { - "line": 2619, + "line": 2646, "column": 7 } } @@ -145523,16 +146825,16 @@ "type": "Identifier", "name": "activateFilter", "range": [ - 78712, - 78726 + 79649, + 79663 ], "loc": { "start": { - "line": 2620, + "line": 2647, "column": 4 }, "end": { - "line": 2620, + "line": 2647, "column": 18 } } @@ -145545,16 +146847,16 @@ "type": "Identifier", "name": "colIndex", "range": [ - 78727, - 78735 + 79664, + 79672 ], "loc": { "start": { - "line": 2620, + "line": 2647, "column": 19 }, "end": { - "line": 2620, + "line": 2647, "column": 27 } } @@ -145571,16 +146873,16 @@ "type": "Identifier", "name": "isUndef", "range": [ - 78751, - 78758 + 79688, + 79695 ], "loc": { "start": { - "line": 2621, + "line": 2648, "column": 12 }, "end": { - "line": 2621, + "line": 2648, "column": 19 } } @@ -145590,32 +146892,32 @@ "type": "Identifier", "name": "colIndex", "range": [ - 78759, - 78767 + 79696, + 79704 ], "loc": { "start": { - "line": 2621, + "line": 2648, "column": 20 }, "end": { - "line": 2621, + "line": 2648, "column": 28 } } } ], "range": [ - 78751, - 78768 + 79688, + 79705 ], "loc": { "start": { - "line": 2621, + "line": 2648, "column": 12 }, "end": { - "line": 2621, + "line": 2648, "column": 29 } } @@ -145627,48 +146929,48 @@ "type": "ReturnStatement", "argument": null, "range": [ - 78784, - 78791 + 79721, + 79728 ], "loc": { "start": { - "line": 2622, + "line": 2649, "column": 12 }, "end": { - "line": 2622, + "line": 2649, "column": 19 } } } ], "range": [ - 78770, - 78801 + 79707, + 79738 ], "loc": { "start": { - "line": 2621, + "line": 2648, "column": 31 }, "end": { - "line": 2623, + "line": 2650, "column": 9 } } }, "alternate": null, "range": [ - 78747, - 78801 + 79684, + 79738 ], "loc": { "start": { - "line": 2621, + "line": 2648, "column": 8 }, "end": { - "line": 2623, + "line": 2650, "column": 9 } } @@ -145683,16 +146985,16 @@ "object": { "type": "ThisExpression", "range": [ - 78810, - 78814 + 79747, + 79751 ], "loc": { "start": { - "line": 2624, + "line": 2651, "column": 8 }, "end": { - "line": 2624, + "line": 2651, "column": 12 } } @@ -145701,31 +147003,31 @@ "type": "Identifier", "name": "setActiveFilterId", "range": [ - 78815, - 78832 + 79752, + 79769 ], "loc": { "start": { - "line": 2624, + "line": 2651, "column": 13 }, "end": { - "line": 2624, + "line": 2651, "column": 30 } } }, "range": [ - 78810, - 78832 + 79747, + 79769 ], "loc": { "start": { - "line": 2624, + "line": 2651, "column": 8 }, "end": { - "line": 2624, + "line": 2651, "column": 30 } } @@ -145739,16 +147041,16 @@ "object": { "type": "ThisExpression", "range": [ - 78833, - 78837 + 79770, + 79774 ], "loc": { "start": { - "line": 2624, + "line": 2651, "column": 31 }, "end": { - "line": 2624, + "line": 2651, "column": 35 } } @@ -145757,31 +147059,31 @@ "type": "Identifier", "name": "getFilterId", "range": [ - 78838, - 78849 + 79775, + 79786 ], "loc": { "start": { - "line": 2624, + "line": 2651, "column": 36 }, "end": { - "line": 2624, + "line": 2651, "column": 47 } } }, "range": [ - 78833, - 78849 + 79770, + 79786 ], "loc": { "start": { - "line": 2624, + "line": 2651, "column": 31 }, "end": { - "line": 2624, + "line": 2651, "column": 47 } } @@ -145791,79 +147093,79 @@ "type": "Identifier", "name": "colIndex", "range": [ - 78850, - 78858 + 79787, + 79795 ], "loc": { "start": { - "line": 2624, + "line": 2651, "column": 48 }, "end": { - "line": 2624, + "line": 2651, "column": 56 } } } ], "range": [ - 78833, - 78859 + 79770, + 79796 ], "loc": { "start": { - "line": 2624, + "line": 2651, "column": 31 }, "end": { - "line": 2624, + "line": 2651, "column": 57 } } } ], "range": [ - 78810, - 78860 + 79747, + 79797 ], "loc": { "start": { - "line": 2624, + "line": 2651, "column": 8 }, "end": { - "line": 2624, + "line": 2651, "column": 58 } } }, "range": [ - 78810, - 78861 + 79747, + 79798 ], "loc": { "start": { - "line": 2624, + "line": 2651, "column": 8 }, "end": { - "line": 2624, + "line": 2651, "column": 59 } } } ], "range": [ - 78737, - 78867 + 79674, + 79804 ], "loc": { "start": { - "line": 2620, + "line": 2647, "column": 29 }, "end": { - "line": 2625, + "line": 2652, "column": 5 } } @@ -145871,16 +147173,16 @@ "generator": false, "expression": false, "range": [ - 78726, - 78867 + 79663, + 79804 ], "loc": { "start": { - "line": 2620, + "line": 2647, "column": 18 }, "end": { - "line": 2625, + "line": 2652, "column": 5 } } @@ -145888,16 +147190,16 @@ "kind": "method", "computed": false, "range": [ - 78712, - 78867 + 79649, + 79804 ], "loc": { "start": { - "line": 2620, + "line": 2647, "column": 4 }, "end": { - "line": 2625, + "line": 2652, "column": 5 } }, @@ -145906,16 +147208,16 @@ "type": "Block", "value": "*\n * Make specified column's filter active\n * @param colIndex Index of a column\n ", "range": [ - 78610, - 78707 + 79547, + 79644 ], "loc": { "start": { - "line": 2616, + "line": 2643, "column": 4 }, "end": { - "line": 2619, + "line": 2646, "column": 7 } } @@ -145926,16 +147228,16 @@ "type": "Block", "value": "*\n * Refresh the filters subject to linking ('select', 'multiple',\n * 'checklist' type)\n ", "range": [ - 78873, - 78978 + 79810, + 79915 ], "loc": { "start": { - "line": 2627, + "line": 2654, "column": 4 }, "end": { - "line": 2630, + "line": 2657, "column": 7 } } @@ -145949,16 +147251,16 @@ "type": "Identifier", "name": "linkFilters", "range": [ - 78983, - 78994 + 79920, + 79931 ], "loc": { "start": { - "line": 2631, + "line": 2658, "column": 4 }, "end": { - "line": 2631, + "line": 2658, "column": 15 } } @@ -145984,16 +147286,16 @@ "object": { "type": "ThisExpression", "range": [ - 79012, - 79016 + 79949, + 79953 ], "loc": { "start": { - "line": 2632, + "line": 2659, "column": 13 }, "end": { - "line": 2632, + "line": 2659, "column": 17 } } @@ -146002,47 +147304,47 @@ "type": "Identifier", "name": "linkedFilters", "range": [ - 79017, - 79030 + 79954, + 79967 ], "loc": { "start": { - "line": 2632, + "line": 2659, "column": 18 }, "end": { - "line": 2632, + "line": 2659, "column": 31 } } }, "range": [ - 79012, - 79030 + 79949, + 79967 ], "loc": { "start": { - "line": 2632, + "line": 2659, "column": 13 }, "end": { - "line": 2632, + "line": 2659, "column": 31 } } }, "prefix": true, "range": [ - 79011, - 79030 + 79948, + 79967 ], "loc": { "start": { - "line": 2632, + "line": 2659, "column": 12 }, "end": { - "line": 2632, + "line": 2659, "column": 31 } } @@ -146056,16 +147358,16 @@ "object": { "type": "ThisExpression", "range": [ - 79035, - 79039 + 79972, + 79976 ], "loc": { "start": { - "line": 2632, + "line": 2659, "column": 36 }, "end": { - "line": 2632, + "line": 2659, "column": 40 } } @@ -146074,62 +147376,62 @@ "type": "Identifier", "name": "activeFilterId", "range": [ - 79040, - 79054 + 79977, + 79991 ], "loc": { "start": { - "line": 2632, + "line": 2659, "column": 41 }, "end": { - "line": 2632, + "line": 2659, "column": 55 } } }, "range": [ - 79035, - 79054 + 79972, + 79991 ], "loc": { "start": { - "line": 2632, + "line": 2659, "column": 36 }, "end": { - "line": 2632, + "line": 2659, "column": 55 } } }, "prefix": true, "range": [ - 79034, - 79054 + 79971, + 79991 ], "loc": { "start": { - "line": 2632, + "line": 2659, "column": 35 }, "end": { - "line": 2632, + "line": 2659, "column": 55 } } }, "range": [ - 79011, - 79054 + 79948, + 79991 ], "loc": { "start": { - "line": 2632, + "line": 2659, "column": 12 }, "end": { - "line": 2632, + "line": 2659, "column": 55 } } @@ -146141,48 +147443,48 @@ "type": "ReturnStatement", "argument": null, "range": [ - 79070, - 79077 + 80007, + 80014 ], "loc": { "start": { - "line": 2633, + "line": 2660, "column": 12 }, "end": { - "line": 2633, + "line": 2660, "column": 19 } } } ], "range": [ - 79056, - 79087 + 79993, + 80024 ], "loc": { "start": { - "line": 2632, + "line": 2659, "column": 57 }, "end": { - "line": 2634, + "line": 2661, "column": 9 } } }, "alternate": null, "range": [ - 79007, - 79087 + 79944, + 80024 ], "loc": { "start": { - "line": 2632, + "line": 2659, "column": 8 }, "end": { - "line": 2634, + "line": 2661, "column": 9 } } @@ -146196,16 +147498,16 @@ "type": "Identifier", "name": "slcA1", "range": [ - 79100, - 79105 + 80037, + 80042 ], "loc": { "start": { - "line": 2635, + "line": 2662, "column": 12 }, "end": { - "line": 2635, + "line": 2662, "column": 17 } } @@ -146218,16 +147520,16 @@ "object": { "type": "ThisExpression", "range": [ - 79108, - 79112 + 80045, + 80049 ], "loc": { "start": { - "line": 2635, + "line": 2662, "column": 20 }, "end": { - "line": 2635, + "line": 2662, "column": 24 } } @@ -146236,31 +147538,31 @@ "type": "Identifier", "name": "getFiltersByType", "range": [ - 79113, - 79129 + 80050, + 80066 ], "loc": { "start": { - "line": 2635, + "line": 2662, "column": 25 }, "end": { - "line": 2635, + "line": 2662, "column": 41 } } }, "range": [ - 79108, - 79129 + 80045, + 80066 ], "loc": { "start": { - "line": 2635, + "line": 2662, "column": 20 }, "end": { - "line": 2635, + "line": 2662, "column": 41 } } @@ -146270,16 +147572,16 @@ "type": "Identifier", "name": "SELECT", "range": [ - 79130, - 79136 + 80067, + 80073 ], "loc": { "start": { - "line": 2635, + "line": 2662, "column": 42 }, "end": { - "line": 2635, + "line": 2662, "column": 48 } } @@ -146289,47 +147591,47 @@ "value": true, "raw": "true", "range": [ - 79138, - 79142 + 80075, + 80079 ], "loc": { "start": { - "line": 2635, + "line": 2662, "column": 50 }, "end": { - "line": 2635, + "line": 2662, "column": 54 } } } ], "range": [ - 79108, - 79143 + 80045, + 80080 ], "loc": { "start": { - "line": 2635, + "line": 2662, "column": 20 }, "end": { - "line": 2635, + "line": 2662, "column": 55 } } }, "range": [ - 79100, - 79143 + 80037, + 80080 ], "loc": { "start": { - "line": 2635, + "line": 2662, "column": 12 }, "end": { - "line": 2635, + "line": 2662, "column": 55 } } @@ -146340,16 +147642,16 @@ "type": "Identifier", "name": "slcA2", "range": [ - 79157, - 79162 + 80094, + 80099 ], "loc": { "start": { - "line": 2636, + "line": 2663, "column": 12 }, "end": { - "line": 2636, + "line": 2663, "column": 17 } } @@ -146362,16 +147664,16 @@ "object": { "type": "ThisExpression", "range": [ - 79165, - 79169 + 80102, + 80106 ], "loc": { "start": { - "line": 2636, + "line": 2663, "column": 20 }, "end": { - "line": 2636, + "line": 2663, "column": 24 } } @@ -146380,31 +147682,31 @@ "type": "Identifier", "name": "getFiltersByType", "range": [ - 79170, - 79186 + 80107, + 80123 ], "loc": { "start": { - "line": 2636, + "line": 2663, "column": 25 }, "end": { - "line": 2636, + "line": 2663, "column": 41 } } }, "range": [ - 79165, - 79186 + 80102, + 80123 ], "loc": { "start": { - "line": 2636, + "line": 2663, "column": 20 }, "end": { - "line": 2636, + "line": 2663, "column": 41 } } @@ -146414,16 +147716,16 @@ "type": "Identifier", "name": "MULTIPLE", "range": [ - 79187, - 79195 + 80124, + 80132 ], "loc": { "start": { - "line": 2636, + "line": 2663, "column": 42 }, "end": { - "line": 2636, + "line": 2663, "column": 50 } } @@ -146433,47 +147735,47 @@ "value": true, "raw": "true", "range": [ - 79197, - 79201 + 80134, + 80138 ], "loc": { "start": { - "line": 2636, + "line": 2663, "column": 52 }, "end": { - "line": 2636, + "line": 2663, "column": 56 } } } ], "range": [ - 79165, - 79202 + 80102, + 80139 ], "loc": { "start": { - "line": 2636, + "line": 2663, "column": 20 }, "end": { - "line": 2636, + "line": 2663, "column": 57 } } }, "range": [ - 79157, - 79202 + 80094, + 80139 ], "loc": { "start": { - "line": 2636, + "line": 2663, "column": 12 }, "end": { - "line": 2636, + "line": 2663, "column": 57 } } @@ -146484,16 +147786,16 @@ "type": "Identifier", "name": "slcA3", "range": [ - 79216, - 79221 + 80153, + 80158 ], "loc": { "start": { - "line": 2637, + "line": 2664, "column": 12 }, "end": { - "line": 2637, + "line": 2664, "column": 17 } } @@ -146506,16 +147808,16 @@ "object": { "type": "ThisExpression", "range": [ - 79224, - 79228 + 80161, + 80165 ], "loc": { "start": { - "line": 2637, + "line": 2664, "column": 20 }, "end": { - "line": 2637, + "line": 2664, "column": 24 } } @@ -146524,31 +147826,31 @@ "type": "Identifier", "name": "getFiltersByType", "range": [ - 79229, - 79245 + 80166, + 80182 ], "loc": { "start": { - "line": 2637, + "line": 2664, "column": 25 }, "end": { - "line": 2637, + "line": 2664, "column": 41 } } }, "range": [ - 79224, - 79245 + 80161, + 80182 ], "loc": { "start": { - "line": 2637, + "line": 2664, "column": 20 }, "end": { - "line": 2637, + "line": 2664, "column": 41 } } @@ -146558,16 +147860,16 @@ "type": "Identifier", "name": "CHECKLIST", "range": [ - 79246, - 79255 + 80183, + 80192 ], "loc": { "start": { - "line": 2637, + "line": 2664, "column": 42 }, "end": { - "line": 2637, + "line": 2664, "column": 51 } } @@ -146577,47 +147879,47 @@ "value": true, "raw": "true", "range": [ - 79257, - 79261 + 80194, + 80198 ], "loc": { "start": { - "line": 2637, + "line": 2664, "column": 53 }, "end": { - "line": 2637, + "line": 2664, "column": 57 } } } ], "range": [ - 79224, - 79262 + 80161, + 80199 ], "loc": { "start": { - "line": 2637, + "line": 2664, "column": 20 }, "end": { - "line": 2637, + "line": 2664, "column": 58 } } }, "range": [ - 79216, - 79262 + 80153, + 80199 ], "loc": { "start": { - "line": 2637, + "line": 2664, "column": 12 }, "end": { - "line": 2637, + "line": 2664, "column": 58 } } @@ -146628,16 +147930,16 @@ "type": "Identifier", "name": "slcIndex", "range": [ - 79276, - 79284 + 80213, + 80221 ], "loc": { "start": { - "line": 2638, + "line": 2665, "column": 12 }, "end": { - "line": 2638, + "line": 2665, "column": 20 } } @@ -146651,16 +147953,16 @@ "type": "Identifier", "name": "slcA1", "range": [ - 79287, - 79292 + 80224, + 80229 ], "loc": { "start": { - "line": 2638, + "line": 2665, "column": 23 }, "end": { - "line": 2638, + "line": 2665, "column": 28 } } @@ -146669,31 +147971,31 @@ "type": "Identifier", "name": "concat", "range": [ - 79293, - 79299 + 80230, + 80236 ], "loc": { "start": { - "line": 2638, + "line": 2665, "column": 29 }, "end": { - "line": 2638, + "line": 2665, "column": 35 } } }, "range": [ - 79287, - 79299 + 80224, + 80236 ], "loc": { "start": { - "line": 2638, + "line": 2665, "column": 23 }, "end": { - "line": 2638, + "line": 2665, "column": 35 } } @@ -146703,47 +148005,47 @@ "type": "Identifier", "name": "slcA2", "range": [ - 79300, - 79305 + 80237, + 80242 ], "loc": { "start": { - "line": 2638, + "line": 2665, "column": 36 }, "end": { - "line": 2638, + "line": 2665, "column": 41 } } } ], "range": [ - 79287, - 79306 + 80224, + 80243 ], "loc": { "start": { - "line": 2638, + "line": 2665, "column": 23 }, "end": { - "line": 2638, + "line": 2665, "column": 42 } } }, "range": [ - 79276, - 79306 + 80213, + 80243 ], "loc": { "start": { - "line": 2638, + "line": 2665, "column": 12 }, "end": { - "line": 2638, + "line": 2665, "column": 42 } } @@ -146751,16 +148053,16 @@ ], "kind": "let", "range": [ - 79096, - 79307 + 80033, + 80244 ], "loc": { "start": { - "line": 2635, + "line": 2662, "column": 8 }, "end": { - "line": 2638, + "line": 2665, "column": 43 } } @@ -146774,16 +148076,16 @@ "type": "Identifier", "name": "slcIndex", "range": [ - 79316, - 79324 + 80253, + 80261 ], "loc": { "start": { - "line": 2639, + "line": 2666, "column": 8 }, "end": { - "line": 2639, + "line": 2666, "column": 16 } } @@ -146797,16 +148099,16 @@ "type": "Identifier", "name": "slcIndex", "range": [ - 79327, - 79335 + 80264, + 80272 ], "loc": { "start": { - "line": 2639, + "line": 2666, "column": 19 }, "end": { - "line": 2639, + "line": 2666, "column": 27 } } @@ -146815,31 +148117,31 @@ "type": "Identifier", "name": "concat", "range": [ - 79336, - 79342 + 80273, + 80279 ], "loc": { "start": { - "line": 2639, + "line": 2666, "column": 28 }, "end": { - "line": 2639, + "line": 2666, "column": 34 } } }, "range": [ - 79327, - 79342 + 80264, + 80279 ], "loc": { "start": { - "line": 2639, + "line": 2666, "column": 19 }, "end": { - "line": 2639, + "line": 2666, "column": 34 } } @@ -146849,62 +148151,62 @@ "type": "Identifier", "name": "slcA3", "range": [ - 79343, - 79348 + 80280, + 80285 ], "loc": { "start": { - "line": 2639, + "line": 2666, "column": 35 }, "end": { - "line": 2639, + "line": 2666, "column": 40 } } } ], "range": [ - 79327, - 79349 + 80264, + 80286 ], "loc": { "start": { - "line": 2639, + "line": 2666, "column": 19 }, "end": { - "line": 2639, + "line": 2666, "column": 41 } } }, "range": [ - 79316, - 79349 + 80253, + 80286 ], "loc": { "start": { - "line": 2639, + "line": 2666, "column": 8 }, "end": { - "line": 2639, + "line": 2666, "column": 41 } } }, "range": [ - 79316, - 79350 + 80253, + 80287 ], "loc": { "start": { - "line": 2639, + "line": 2666, "column": 8 }, "end": { - "line": 2639, + "line": 2666, "column": 42 } } @@ -146918,16 +148220,16 @@ "type": "Identifier", "name": "activeIdx", "range": [ - 79364, - 79373 + 80301, + 80310 ], "loc": { "start": { - "line": 2641, + "line": 2668, "column": 12 }, "end": { - "line": 2641, + "line": 2668, "column": 21 } } @@ -146940,16 +148242,16 @@ "object": { "type": "ThisExpression", "range": [ - 79376, - 79380 + 80313, + 80317 ], "loc": { "start": { - "line": 2641, + "line": 2668, "column": 24 }, "end": { - "line": 2641, + "line": 2668, "column": 28 } } @@ -146958,31 +148260,31 @@ "type": "Identifier", "name": "getColumnIndexFromFilterId", "range": [ - 79381, - 79407 + 80318, + 80344 ], "loc": { "start": { - "line": 2641, + "line": 2668, "column": 29 }, "end": { - "line": 2641, + "line": 2668, "column": 55 } } }, "range": [ - 79376, - 79407 + 80313, + 80344 ], "loc": { "start": { - "line": 2641, + "line": 2668, "column": 24 }, "end": { - "line": 2641, + "line": 2668, "column": 55 } } @@ -146994,16 +148296,16 @@ "object": { "type": "ThisExpression", "range": [ - 79408, - 79412 + 80345, + 80349 ], "loc": { "start": { - "line": 2641, + "line": 2668, "column": 56 }, "end": { - "line": 2641, + "line": 2668, "column": 60 } } @@ -147012,62 +148314,62 @@ "type": "Identifier", "name": "activeFilterId", "range": [ - 79413, - 79427 + 80350, + 80364 ], "loc": { "start": { - "line": 2641, + "line": 2668, "column": 61 }, "end": { - "line": 2641, + "line": 2668, "column": 75 } } }, "range": [ - 79408, - 79427 + 80345, + 80364 ], "loc": { "start": { - "line": 2641, + "line": 2668, "column": 56 }, "end": { - "line": 2641, + "line": 2668, "column": 75 } } } ], "range": [ - 79376, - 79428 + 80313, + 80365 ], "loc": { "start": { - "line": 2641, + "line": 2668, "column": 24 }, "end": { - "line": 2641, + "line": 2668, "column": 76 } } }, "range": [ - 79364, - 79428 + 80301, + 80365 ], "loc": { "start": { - "line": 2641, + "line": 2668, "column": 12 }, "end": { - "line": 2641, + "line": 2668, "column": 76 } } @@ -147075,16 +148377,16 @@ ], "kind": "let", "range": [ - 79360, - 79429 + 80297, + 80366 ], "loc": { "start": { - "line": 2641, + "line": 2668, "column": 8 }, "end": { - "line": 2641, + "line": 2668, "column": 77 } } @@ -147100,16 +148402,16 @@ "type": "Identifier", "name": "i", "range": [ - 79448, - 79449 + 80385, + 80386 ], "loc": { "start": { - "line": 2643, + "line": 2670, "column": 17 }, "end": { - "line": 2643, + "line": 2670, "column": 18 } } @@ -147119,31 +148421,31 @@ "value": 0, "raw": "0", "range": [ - 79452, - 79453 + 80389, + 80390 ], "loc": { "start": { - "line": 2643, + "line": 2670, "column": 21 }, "end": { - "line": 2643, + "line": 2670, "column": 22 } } }, "range": [ - 79448, - 79453 + 80385, + 80390 ], "loc": { "start": { - "line": 2643, + "line": 2670, "column": 17 }, "end": { - "line": 2643, + "line": 2670, "column": 22 } } @@ -147154,16 +148456,16 @@ "type": "Identifier", "name": "len", "range": [ - 79455, - 79458 + 80392, + 80395 ], "loc": { "start": { - "line": 2643, + "line": 2670, "column": 24 }, "end": { - "line": 2643, + "line": 2670, "column": 27 } } @@ -147175,16 +148477,16 @@ "type": "Identifier", "name": "slcIndex", "range": [ - 79461, - 79469 + 80398, + 80406 ], "loc": { "start": { - "line": 2643, + "line": 2670, "column": 30 }, "end": { - "line": 2643, + "line": 2670, "column": 38 } } @@ -147193,46 +148495,46 @@ "type": "Identifier", "name": "length", "range": [ - 79470, - 79476 + 80407, + 80413 ], "loc": { "start": { - "line": 2643, + "line": 2670, "column": 39 }, "end": { - "line": 2643, + "line": 2670, "column": 45 } } }, "range": [ - 79461, - 79476 + 80398, + 80413 ], "loc": { "start": { - "line": 2643, + "line": 2670, "column": 30 }, "end": { - "line": 2643, + "line": 2670, "column": 45 } } }, "range": [ - 79455, - 79476 + 80392, + 80413 ], "loc": { "start": { - "line": 2643, + "line": 2670, "column": 24 }, "end": { - "line": 2643, + "line": 2670, "column": 45 } } @@ -147240,16 +148542,16 @@ ], "kind": "let", "range": [ - 79444, - 79476 + 80381, + 80413 ], "loc": { "start": { - "line": 2643, + "line": 2670, "column": 13 }, "end": { - "line": 2643, + "line": 2670, "column": 45 } } @@ -147261,16 +148563,16 @@ "type": "Identifier", "name": "i", "range": [ - 79478, - 79479 + 80415, + 80416 ], "loc": { "start": { - "line": 2643, + "line": 2670, "column": 47 }, "end": { - "line": 2643, + "line": 2670, "column": 48 } } @@ -147279,31 +148581,31 @@ "type": "Identifier", "name": "len", "range": [ - 79482, - 79485 + 80419, + 80422 ], "loc": { "start": { - "line": 2643, + "line": 2670, "column": 51 }, "end": { - "line": 2643, + "line": 2670, "column": 54 } } }, "range": [ - 79478, - 79485 + 80415, + 80422 ], "loc": { "start": { - "line": 2643, + "line": 2670, "column": 47 }, "end": { - "line": 2643, + "line": 2670, "column": 54 } } @@ -147315,32 +148617,32 @@ "type": "Identifier", "name": "i", "range": [ - 79487, - 79488 + 80424, + 80425 ], "loc": { "start": { - "line": 2643, + "line": 2670, "column": 56 }, "end": { - "line": 2643, + "line": 2670, "column": 57 } } }, "prefix": false, "range": [ - 79487, - 79490 + 80424, + 80427 ], "loc": { "start": { - "line": 2643, + "line": 2670, "column": 56 }, "end": { - "line": 2643, + "line": 2670, "column": 59 } } @@ -147357,16 +148659,16 @@ "type": "Identifier", "name": "colIdx", "range": [ - 79510, - 79516 + 80447, + 80453 ], "loc": { "start": { - "line": 2644, + "line": 2671, "column": 16 }, "end": { - "line": 2644, + "line": 2671, "column": 22 } } @@ -147378,16 +148680,16 @@ "type": "Identifier", "name": "slcIndex", "range": [ - 79519, - 79527 + 80456, + 80464 ], "loc": { "start": { - "line": 2644, + "line": 2671, "column": 25 }, "end": { - "line": 2644, + "line": 2671, "column": 33 } } @@ -147396,46 +148698,46 @@ "type": "Identifier", "name": "i", "range": [ - 79528, - 79529 + 80465, + 80466 ], "loc": { "start": { - "line": 2644, + "line": 2671, "column": 34 }, "end": { - "line": 2644, + "line": 2671, "column": 35 } } }, "range": [ - 79519, - 79530 + 80456, + 80467 ], "loc": { "start": { - "line": 2644, + "line": 2671, "column": 25 }, "end": { - "line": 2644, + "line": 2671, "column": 36 } } }, "range": [ - 79510, - 79530 + 80447, + 80467 ], "loc": { "start": { - "line": 2644, + "line": 2671, "column": 16 }, "end": { - "line": 2644, + "line": 2671, "column": 36 } } @@ -147443,16 +148745,16 @@ ], "kind": "let", "range": [ - 79506, - 79531 + 80443, + 80468 ], "loc": { "start": { - "line": 2644, + "line": 2671, "column": 12 }, "end": { - "line": 2644, + "line": 2671, "column": 37 } } @@ -147466,16 +148768,16 @@ "type": "Identifier", "name": "curSlc", "range": [ - 79548, - 79554 + 80485, + 80491 ], "loc": { "start": { - "line": 2645, + "line": 2672, "column": 16 }, "end": { - "line": 2645, + "line": 2672, "column": 22 } } @@ -147486,16 +148788,16 @@ "type": "Identifier", "name": "elm", "range": [ - 79557, - 79560 + 80494, + 80497 ], "loc": { "start": { - "line": 2645, + "line": 2672, "column": 25 }, "end": { - "line": 2645, + "line": 2672, "column": 28 } } @@ -147510,16 +148812,16 @@ "object": { "type": "ThisExpression", "range": [ - 79561, - 79565 + 80498, + 80502 ], "loc": { "start": { - "line": 2645, + "line": 2672, "column": 29 }, "end": { - "line": 2645, + "line": 2672, "column": 33 } } @@ -147528,31 +148830,31 @@ "type": "Identifier", "name": "fltIds", "range": [ - 79566, - 79572 + 80503, + 80509 ], "loc": { "start": { - "line": 2645, + "line": 2672, "column": 34 }, "end": { - "line": 2645, + "line": 2672, "column": 40 } } }, "range": [ - 79561, - 79572 + 80498, + 80509 ], "loc": { "start": { - "line": 2645, + "line": 2672, "column": 29 }, "end": { - "line": 2645, + "line": 2672, "column": 40 } } @@ -147561,62 +148863,62 @@ "type": "Identifier", "name": "colIdx", "range": [ - 79573, - 79579 + 80510, + 80516 ], "loc": { "start": { - "line": 2645, + "line": 2672, "column": 41 }, "end": { - "line": 2645, + "line": 2672, "column": 47 } } }, "range": [ - 79561, - 79580 + 80498, + 80517 ], "loc": { "start": { - "line": 2645, + "line": 2672, "column": 29 }, "end": { - "line": 2645, + "line": 2672, "column": 48 } } } ], "range": [ - 79557, - 79581 + 80494, + 80518 ], "loc": { "start": { - "line": 2645, + "line": 2672, "column": 25 }, "end": { - "line": 2645, + "line": 2672, "column": 49 } } }, "range": [ - 79548, - 79581 + 80485, + 80518 ], "loc": { "start": { - "line": 2645, + "line": 2672, "column": 16 }, "end": { - "line": 2645, + "line": 2672, "column": 49 } } @@ -147624,16 +148926,16 @@ ], "kind": "let", "range": [ - 79544, - 79582 + 80481, + 80519 ], "loc": { "start": { - "line": 2645, + "line": 2672, "column": 12 }, "end": { - "line": 2645, + "line": 2672, "column": 50 } } @@ -147647,16 +148949,16 @@ "type": "Identifier", "name": "slcSelectedValue", "range": [ - 79599, - 79615 + 80536, + 80552 ], "loc": { "start": { - "line": 2646, + "line": 2673, "column": 16 }, "end": { - "line": 2646, + "line": 2673, "column": 32 } } @@ -147669,16 +148971,16 @@ "object": { "type": "ThisExpression", "range": [ - 79618, - 79622 + 80555, + 80559 ], "loc": { "start": { - "line": 2646, + "line": 2673, "column": 35 }, "end": { - "line": 2646, + "line": 2673, "column": 39 } } @@ -147687,31 +148989,31 @@ "type": "Identifier", "name": "getFilterValue", "range": [ - 79623, - 79637 + 80560, + 80574 ], "loc": { "start": { - "line": 2646, + "line": 2673, "column": 40 }, "end": { - "line": 2646, + "line": 2673, "column": 54 } } }, "range": [ - 79618, - 79637 + 80555, + 80574 ], "loc": { "start": { - "line": 2646, + "line": 2673, "column": 35 }, "end": { - "line": 2646, + "line": 2673, "column": 54 } } @@ -147721,47 +149023,47 @@ "type": "Identifier", "name": "colIdx", "range": [ - 79638, - 79644 + 80575, + 80581 ], "loc": { "start": { - "line": 2646, + "line": 2673, "column": 55 }, "end": { - "line": 2646, + "line": 2673, "column": 61 } } } ], "range": [ - 79618, - 79645 + 80555, + 80582 ], "loc": { "start": { - "line": 2646, + "line": 2673, "column": 35 }, "end": { - "line": 2646, + "line": 2673, "column": 62 } } }, "range": [ - 79599, - 79645 + 80536, + 80582 ], "loc": { "start": { - "line": 2646, + "line": 2673, "column": 16 }, "end": { - "line": 2646, + "line": 2673, "column": 62 } } @@ -147769,16 +149071,16 @@ ], "kind": "let", "range": [ - 79595, - 79646 + 80532, + 80583 ], "loc": { "start": { - "line": 2646, + "line": 2673, "column": 12 }, "end": { - "line": 2646, + "line": 2673, "column": 63 } }, @@ -147787,16 +149089,16 @@ "type": "Line", "value": " Welcome to cyclomatic complexity hell :)", "range": [ - 79660, - 79703 + 80597, + 80640 ], "loc": { "start": { - "line": 2648, + "line": 2675, "column": 12 }, "end": { - "line": 2648, + "line": 2675, "column": 55 } } @@ -147805,16 +149107,16 @@ "type": "Line", "value": " TODO: simplify/refactor if statement", "range": [ - 79716, - 79755 + 80653, + 80692 ], "loc": { "start": { - "line": 2649, + "line": 2676, "column": 12 }, "end": { - "line": 2649, + "line": 2676, "column": 51 } } @@ -147839,16 +149141,16 @@ "type": "Identifier", "name": "activeIdx", "range": [ - 79772, - 79781 + 80709, + 80718 ], "loc": { "start": { - "line": 2650, + "line": 2677, "column": 16 }, "end": { - "line": 2650, + "line": 2677, "column": 25 } } @@ -147857,31 +149159,31 @@ "type": "Identifier", "name": "colIdx", "range": [ - 79786, - 79792 + 80723, + 80729 ], "loc": { "start": { - "line": 2650, + "line": 2677, "column": 30 }, "end": { - "line": 2650, + "line": 2677, "column": 36 } } }, "range": [ - 79772, - 79792 + 80709, + 80729 ], "loc": { "start": { - "line": 2650, + "line": 2677, "column": 16 }, "end": { - "line": 2650, + "line": 2677, "column": 36 } } @@ -147898,16 +149200,16 @@ "object": { "type": "ThisExpression", "range": [ - 79813, - 79817 + 80750, + 80754 ], "loc": { "start": { - "line": 2651, + "line": 2678, "column": 17 }, "end": { - "line": 2651, + "line": 2678, "column": 21 } } @@ -147916,31 +149218,31 @@ "type": "Identifier", "name": "paging", "range": [ - 79818, - 79824 + 80755, + 80761 ], "loc": { "start": { - "line": 2651, + "line": 2678, "column": 22 }, "end": { - "line": 2651, + "line": 2678, "column": 28 } } }, "range": [ - 79813, - 79824 + 80750, + 80761 ], "loc": { "start": { - "line": 2651, + "line": 2678, "column": 17 }, "end": { - "line": 2651, + "line": 2678, "column": 28 } } @@ -147957,16 +149259,16 @@ "type": "Identifier", "name": "slcA1", "range": [ - 79828, - 79833 + 80765, + 80770 ], "loc": { "start": { - "line": 2651, + "line": 2678, "column": 32 }, "end": { - "line": 2651, + "line": 2678, "column": 37 } } @@ -147975,31 +149277,31 @@ "type": "Identifier", "name": "indexOf", "range": [ - 79834, - 79841 + 80771, + 80778 ], "loc": { "start": { - "line": 2651, + "line": 2678, "column": 38 }, "end": { - "line": 2651, + "line": 2678, "column": 45 } } }, "range": [ - 79828, - 79841 + 80765, + 80778 ], "loc": { "start": { - "line": 2651, + "line": 2678, "column": 32 }, "end": { - "line": 2651, + "line": 2678, "column": 45 } } @@ -148009,32 +149311,32 @@ "type": "Identifier", "name": "colIdx", "range": [ - 79842, - 79848 + 80779, + 80785 ], "loc": { "start": { - "line": 2651, + "line": 2678, "column": 46 }, "end": { - "line": 2651, + "line": 2678, "column": 52 } } } ], "range": [ - 79828, - 79849 + 80765, + 80786 ], "loc": { "start": { - "line": 2651, + "line": 2678, "column": 32 }, "end": { - "line": 2651, + "line": 2678, "column": 53 } } @@ -148047,62 +149349,62 @@ "value": 1, "raw": "1", "range": [ - 79855, - 79856 + 80792, + 80793 ], "loc": { "start": { - "line": 2651, + "line": 2678, "column": 59 }, "end": { - "line": 2651, + "line": 2678, "column": 60 } } }, "prefix": true, "range": [ - 79854, - 79856 + 80791, + 80793 ], "loc": { "start": { - "line": 2651, + "line": 2678, "column": 58 }, "end": { - "line": 2651, + "line": 2678, "column": 60 } } }, "range": [ - 79828, - 79856 + 80765, + 80793 ], "loc": { "start": { - "line": 2651, + "line": 2678, "column": 32 }, "end": { - "line": 2651, + "line": 2678, "column": 60 } } }, "range": [ - 79813, - 79856 + 80750, + 80793 ], "loc": { "start": { - "line": 2651, + "line": 2678, "column": 17 }, "end": { - "line": 2651, + "line": 2678, "column": 60 } } @@ -148114,16 +149416,16 @@ "type": "Identifier", "name": "activeIdx", "range": [ - 79880, - 79889 + 80817, + 80826 ], "loc": { "start": { - "line": 2652, + "line": 2679, "column": 20 }, "end": { - "line": 2652, + "line": 2679, "column": 29 } } @@ -148132,61 +149434,61 @@ "type": "Identifier", "name": "colIdx", "range": [ - 79894, - 79900 + 80831, + 80837 ], "loc": { "start": { - "line": 2652, + "line": 2679, "column": 34 }, "end": { - "line": 2652, + "line": 2679, "column": 40 } } }, "range": [ - 79880, - 79900 + 80817, + 80837 ], "loc": { "start": { - "line": 2652, + "line": 2679, "column": 20 }, "end": { - "line": 2652, + "line": 2679, "column": 40 } } }, "range": [ - 79813, - 79900 + 80750, + 80837 ], "loc": { "start": { - "line": 2651, + "line": 2678, "column": 17 }, "end": { - "line": 2652, + "line": 2679, "column": 40 } } }, "range": [ - 79772, - 79901 + 80709, + 80838 ], "loc": { "start": { - "line": 2650, + "line": 2677, "column": 16 }, "end": { - "line": 2652, + "line": 2679, "column": 41 } } @@ -148203,16 +149505,16 @@ "object": { "type": "ThisExpression", "range": [ - 79923, - 79927 + 80860, + 80864 ], "loc": { "start": { - "line": 2653, + "line": 2680, "column": 18 }, "end": { - "line": 2653, + "line": 2680, "column": 22 } } @@ -148221,47 +149523,47 @@ "type": "Identifier", "name": "paging", "range": [ - 79928, - 79934 + 80865, + 80871 ], "loc": { "start": { - "line": 2653, + "line": 2680, "column": 23 }, "end": { - "line": 2653, + "line": 2680, "column": 29 } } }, "range": [ - 79923, - 79934 + 80860, + 80871 ], "loc": { "start": { - "line": 2653, + "line": 2680, "column": 18 }, "end": { - "line": 2653, + "line": 2680, "column": 29 } } }, "prefix": true, "range": [ - 79922, - 79934 + 80859, + 80871 ], "loc": { "start": { - "line": 2653, + "line": 2680, "column": 17 }, "end": { - "line": 2653, + "line": 2680, "column": 29 } } @@ -148281,16 +149583,16 @@ "type": "Identifier", "name": "slcA3", "range": [ - 79939, - 79944 + 80876, + 80881 ], "loc": { "start": { - "line": 2653, + "line": 2680, "column": 34 }, "end": { - "line": 2653, + "line": 2680, "column": 39 } } @@ -148299,31 +149601,31 @@ "type": "Identifier", "name": "indexOf", "range": [ - 79945, - 79952 + 80882, + 80889 ], "loc": { "start": { - "line": 2653, + "line": 2680, "column": 40 }, "end": { - "line": 2653, + "line": 2680, "column": 47 } } }, "range": [ - 79939, - 79952 + 80876, + 80889 ], "loc": { "start": { - "line": 2653, + "line": 2680, "column": 34 }, "end": { - "line": 2653, + "line": 2680, "column": 47 } } @@ -148333,32 +149635,32 @@ "type": "Identifier", "name": "colIdx", "range": [ - 79953, - 79959 + 80890, + 80896 ], "loc": { "start": { - "line": 2653, + "line": 2680, "column": 48 }, "end": { - "line": 2653, + "line": 2680, "column": 54 } } } ], "range": [ - 79939, - 79960 + 80876, + 80897 ], "loc": { "start": { - "line": 2653, + "line": 2680, "column": 34 }, "end": { - "line": 2653, + "line": 2680, "column": 55 } } @@ -148371,47 +149673,47 @@ "value": 1, "raw": "1", "range": [ - 79966, - 79967 + 80903, + 80904 ], "loc": { "start": { - "line": 2653, + "line": 2680, "column": 61 }, "end": { - "line": 2653, + "line": 2680, "column": 62 } } }, "prefix": true, "range": [ - 79965, - 79967 + 80902, + 80904 ], "loc": { "start": { - "line": 2653, + "line": 2680, "column": 60 }, "end": { - "line": 2653, + "line": 2680, "column": 62 } } }, "range": [ - 79939, - 79967 + 80876, + 80904 ], "loc": { "start": { - "line": 2653, + "line": 2680, "column": 34 }, "end": { - "line": 2653, + "line": 2680, "column": 62 } } @@ -148428,16 +149730,16 @@ "type": "Identifier", "name": "slcA2", "range": [ - 79991, - 79996 + 80928, + 80933 ], "loc": { "start": { - "line": 2654, + "line": 2681, "column": 20 }, "end": { - "line": 2654, + "line": 2681, "column": 25 } } @@ -148446,31 +149748,31 @@ "type": "Identifier", "name": "indexOf", "range": [ - 79997, - 80004 + 80934, + 80941 ], "loc": { "start": { - "line": 2654, + "line": 2681, "column": 26 }, "end": { - "line": 2654, + "line": 2681, "column": 33 } } }, "range": [ - 79991, - 80004 + 80928, + 80941 ], "loc": { "start": { - "line": 2654, + "line": 2681, "column": 20 }, "end": { - "line": 2654, + "line": 2681, "column": 33 } } @@ -148480,32 +149782,32 @@ "type": "Identifier", "name": "colIdx", "range": [ - 80005, - 80011 + 80942, + 80948 ], "loc": { "start": { - "line": 2654, + "line": 2681, "column": 34 }, "end": { - "line": 2654, + "line": 2681, "column": 40 } } } ], "range": [ - 79991, - 80012 + 80928, + 80949 ], "loc": { "start": { - "line": 2654, + "line": 2681, "column": 20 }, "end": { - "line": 2654, + "line": 2681, "column": 41 } } @@ -148518,92 +149820,92 @@ "value": 1, "raw": "1", "range": [ - 80018, - 80019 + 80955, + 80956 ], "loc": { "start": { - "line": 2654, + "line": 2681, "column": 47 }, "end": { - "line": 2654, + "line": 2681, "column": 48 } } }, "prefix": true, "range": [ - 80017, - 80019 + 80954, + 80956 ], "loc": { "start": { - "line": 2654, + "line": 2681, "column": 46 }, "end": { - "line": 2654, + "line": 2681, "column": 48 } } }, "range": [ - 79991, - 80019 + 80928, + 80956 ], "loc": { "start": { - "line": 2654, + "line": 2681, "column": 20 }, "end": { - "line": 2654, + "line": 2681, "column": 48 } } }, "range": [ - 79939, - 80019 + 80876, + 80956 ], "loc": { "start": { - "line": 2653, + "line": 2680, "column": 34 }, "end": { - "line": 2654, + "line": 2681, "column": 48 } } }, "range": [ - 79922, - 80020 + 80859, + 80957 ], "loc": { "start": { - "line": 2653, + "line": 2680, "column": 17 }, "end": { - "line": 2654, + "line": 2681, "column": 49 } } }, "range": [ - 79772, - 80021 + 80709, + 80958 ], "loc": { "start": { - "line": 2650, + "line": 2677, "column": 16 }, "end": { - "line": 2654, + "line": 2681, "column": 50 } } @@ -148615,16 +149917,16 @@ "type": "Identifier", "name": "slcSelectedValue", "range": [ - 80041, - 80057 + 80978, + 80994 ], "loc": { "start": { - "line": 2655, + "line": 2682, "column": 16 }, "end": { - "line": 2655, + "line": 2682, "column": 32 } } @@ -148637,16 +149939,16 @@ "object": { "type": "ThisExpression", "range": [ - 80062, - 80066 + 80999, + 81003 ], "loc": { "start": { - "line": 2655, + "line": 2682, "column": 37 }, "end": { - "line": 2655, + "line": 2682, "column": 41 } } @@ -148655,31 +149957,31 @@ "type": "Identifier", "name": "getClearFilterText", "range": [ - 80067, - 80085 + 81004, + 81022 ], "loc": { "start": { - "line": 2655, + "line": 2682, "column": 42 }, "end": { - "line": 2655, + "line": 2682, "column": 60 } } }, "range": [ - 80062, - 80085 + 80999, + 81022 ], "loc": { "start": { - "line": 2655, + "line": 2682, "column": 37 }, "end": { - "line": 2655, + "line": 2682, "column": 60 } } @@ -148689,62 +149991,62 @@ "type": "Identifier", "name": "colIdx", "range": [ - 80086, - 80092 + 81023, + 81029 ], "loc": { "start": { - "line": 2655, + "line": 2682, "column": 61 }, "end": { - "line": 2655, + "line": 2682, "column": 67 } } } ], "range": [ - 80062, - 80093 + 80999, + 81030 ], "loc": { "start": { - "line": 2655, + "line": 2682, "column": 37 }, "end": { - "line": 2655, + "line": 2682, "column": 68 } } }, "range": [ - 80041, - 80093 + 80978, + 81030 ], "loc": { "start": { - "line": 2655, + "line": 2682, "column": 16 }, "end": { - "line": 2655, + "line": 2682, "column": 68 } } }, "range": [ - 79772, - 80093 + 80709, + 81030 ], "loc": { "start": { - "line": 2650, + "line": 2677, "column": 16 }, "end": { - "line": 2655, + "line": 2682, "column": 68 } } @@ -148760,16 +150062,16 @@ "object": { "type": "ThisExpression", "range": [ - 80168, - 80172 + 81105, + 81109 ], "loc": { "start": { - "line": 2658, + "line": 2685, "column": 20 }, "end": { - "line": 2658, + "line": 2685, "column": 24 } } @@ -148778,31 +150080,31 @@ "type": "Identifier", "name": "loadFltOnDemand", "range": [ - 80173, - 80188 + 81110, + 81125 ], "loc": { "start": { - "line": 2658, + "line": 2685, "column": 25 }, "end": { - "line": 2658, + "line": 2685, "column": 40 } } }, "range": [ - 80168, - 80188 + 81105, + 81125 ], "loc": { "start": { - "line": 2658, + "line": 2685, "column": 20 }, "end": { - "line": 2658, + "line": 2685, "column": 40 } } @@ -148819,16 +150121,16 @@ "type": "Identifier", "name": "opt0", "range": [ - 80216, - 80220 + 81153, + 81157 ], "loc": { "start": { - "line": 2659, + "line": 2686, "column": 24 }, "end": { - "line": 2659, + "line": 2686, "column": 28 } } @@ -148839,16 +150141,16 @@ "type": "Identifier", "name": "createOpt", "range": [ - 80223, - 80232 + 81160, + 81169 ], "loc": { "start": { - "line": 2659, + "line": 2686, "column": 31 }, "end": { - "line": 2659, + "line": 2686, "column": 40 } } @@ -148862,16 +150164,16 @@ "object": { "type": "ThisExpression", "range": [ - 80233, - 80237 + 81170, + 81174 ], "loc": { "start": { - "line": 2659, + "line": 2686, "column": 41 }, "end": { - "line": 2659, + "line": 2686, "column": 45 } } @@ -148880,31 +150182,31 @@ "type": "Identifier", "name": "getClearFilterText", "range": [ - 80238, - 80256 + 81175, + 81193 ], "loc": { "start": { - "line": 2659, + "line": 2686, "column": 46 }, "end": { - "line": 2659, + "line": 2686, "column": 64 } } }, "range": [ - 80233, - 80256 + 81170, + 81193 ], "loc": { "start": { - "line": 2659, + "line": 2686, "column": 41 }, "end": { - "line": 2659, + "line": 2686, "column": 64 } } @@ -148914,32 +150216,32 @@ "type": "Identifier", "name": "colIdx", "range": [ - 80257, - 80263 + 81194, + 81200 ], "loc": { "start": { - "line": 2659, + "line": 2686, "column": 65 }, "end": { - "line": 2659, + "line": 2686, "column": 71 } } } ], "range": [ - 80233, - 80264 + 81170, + 81201 ], "loc": { "start": { - "line": 2659, + "line": 2686, "column": 41 }, "end": { - "line": 2659, + "line": 2686, "column": 72 } } @@ -148949,47 +150251,47 @@ "value": "", "raw": "''", "range": [ - 80266, - 80268 + 81203, + 81205 ], "loc": { "start": { - "line": 2659, + "line": 2686, "column": 74 }, "end": { - "line": 2659, + "line": 2686, "column": 76 } } } ], "range": [ - 80223, - 80269 + 81160, + 81206 ], "loc": { "start": { - "line": 2659, + "line": 2686, "column": 31 }, "end": { - "line": 2659, + "line": 2686, "column": 77 } } }, "range": [ - 80216, - 80269 + 81153, + 81206 ], "loc": { "start": { - "line": 2659, + "line": 2686, "column": 24 }, "end": { - "line": 2659, + "line": 2686, "column": 77 } } @@ -148997,16 +150299,16 @@ ], "kind": "let", "range": [ - 80212, - 80270 + 81149, + 81207 ], "loc": { "start": { - "line": 2659, + "line": 2686, "column": 20 }, "end": { - "line": 2659, + "line": 2686, "column": 78 } } @@ -149023,16 +150325,16 @@ "type": "Identifier", "name": "curSlc", "range": [ - 80291, - 80297 + 81228, + 81234 ], "loc": { "start": { - "line": 2660, + "line": 2687, "column": 20 }, "end": { - "line": 2660, + "line": 2687, "column": 26 } } @@ -149041,31 +150343,31 @@ "type": "Identifier", "name": "innerHTML", "range": [ - 80298, - 80307 + 81235, + 81244 ], "loc": { "start": { - "line": 2660, + "line": 2687, "column": 27 }, "end": { - "line": 2660, + "line": 2687, "column": 36 } } }, "range": [ - 80291, - 80307 + 81228, + 81244 ], "loc": { "start": { - "line": 2660, + "line": 2687, "column": 20 }, "end": { - "line": 2660, + "line": 2687, "column": 36 } } @@ -149075,46 +150377,46 @@ "value": "", "raw": "''", "range": [ - 80310, - 80312 + 81247, + 81249 ], "loc": { "start": { - "line": 2660, + "line": 2687, "column": 39 }, "end": { - "line": 2660, + "line": 2687, "column": 41 } } }, "range": [ - 80291, - 80312 + 81228, + 81249 ], "loc": { "start": { - "line": 2660, + "line": 2687, "column": 20 }, "end": { - "line": 2660, + "line": 2687, "column": 41 } } }, "range": [ - 80291, - 80313 + 81228, + 81250 ], "loc": { "start": { - "line": 2660, + "line": 2687, "column": 20 }, "end": { - "line": 2660, + "line": 2687, "column": 42 } } @@ -149130,16 +150432,16 @@ "type": "Identifier", "name": "curSlc", "range": [ - 80334, - 80340 + 81271, + 81277 ], "loc": { "start": { - "line": 2661, + "line": 2688, "column": 20 }, "end": { - "line": 2661, + "line": 2688, "column": 26 } } @@ -149148,31 +150450,31 @@ "type": "Identifier", "name": "appendChild", "range": [ - 80341, - 80352 + 81278, + 81289 ], "loc": { "start": { - "line": 2661, + "line": 2688, "column": 27 }, "end": { - "line": 2661, + "line": 2688, "column": 38 } } }, "range": [ - 80334, - 80352 + 81271, + 81289 ], "loc": { "start": { - "line": 2661, + "line": 2688, "column": 20 }, "end": { - "line": 2661, + "line": 2688, "column": 38 } } @@ -149182,79 +150484,79 @@ "type": "Identifier", "name": "opt0", "range": [ - 80353, - 80357 + 81290, + 81294 ], "loc": { "start": { - "line": 2661, + "line": 2688, "column": 39 }, "end": { - "line": 2661, + "line": 2688, "column": 43 } } } ], "range": [ - 80334, - 80358 + 81271, + 81295 ], "loc": { "start": { - "line": 2661, + "line": 2688, "column": 20 }, "end": { - "line": 2661, + "line": 2688, "column": 44 } } }, "range": [ - 80334, - 80359 + 81271, + 81296 ], "loc": { "start": { - "line": 2661, + "line": 2688, "column": 20 }, "end": { - "line": 2661, + "line": 2688, "column": 45 } } } ], "range": [ - 80190, - 80377 + 81127, + 81314 ], "loc": { "start": { - "line": 2658, + "line": 2685, "column": 42 }, "end": { - "line": 2662, + "line": 2689, "column": 17 } } }, "alternate": null, "range": [ - 80164, - 80377 + 81101, + 81314 ], "loc": { "start": { - "line": 2658, + "line": 2685, "column": 16 }, "end": { - "line": 2662, + "line": 2689, "column": 17 } }, @@ -149263,16 +150565,16 @@ "type": "Line", "value": "1st option needs to be inserted", "range": [ - 80114, - 80147 + 81051, + 81084 ], "loc": { "start": { - "line": 2657, + "line": 2684, "column": 16 }, "end": { - "line": 2657, + "line": 2684, "column": 49 } } @@ -149293,16 +150595,16 @@ "type": "Identifier", "name": "slcA3", "range": [ - 80399, - 80404 + 81336, + 81341 ], "loc": { "start": { - "line": 2664, + "line": 2691, "column": 20 }, "end": { - "line": 2664, + "line": 2691, "column": 25 } } @@ -149311,31 +150613,31 @@ "type": "Identifier", "name": "indexOf", "range": [ - 80405, - 80412 + 81342, + 81349 ], "loc": { "start": { - "line": 2664, + "line": 2691, "column": 26 }, "end": { - "line": 2664, + "line": 2691, "column": 33 } } }, "range": [ - 80399, - 80412 + 81336, + 81349 ], "loc": { "start": { - "line": 2664, + "line": 2691, "column": 20 }, "end": { - "line": 2664, + "line": 2691, "column": 33 } } @@ -149345,32 +150647,32 @@ "type": "Identifier", "name": "colIdx", "range": [ - 80413, - 80419 + 81350, + 81356 ], "loc": { "start": { - "line": 2664, + "line": 2691, "column": 34 }, "end": { - "line": 2664, + "line": 2691, "column": 40 } } } ], "range": [ - 80399, - 80420 + 81336, + 81357 ], "loc": { "start": { - "line": 2664, + "line": 2691, "column": 20 }, "end": { - "line": 2664, + "line": 2691, "column": 41 } } @@ -149383,47 +150685,47 @@ "value": 1, "raw": "1", "range": [ - 80426, - 80427 + 81363, + 81364 ], "loc": { "start": { - "line": 2664, + "line": 2691, "column": 47 }, "end": { - "line": 2664, + "line": 2691, "column": 48 } } }, "prefix": true, "range": [ - 80425, - 80427 + 81362, + 81364 ], "loc": { "start": { - "line": 2664, + "line": 2691, "column": 46 }, "end": { - "line": 2664, + "line": 2691, "column": 48 } } }, "range": [ - 80399, - 80427 + 81336, + 81364 ], "loc": { "start": { - "line": 2664, + "line": 2691, "column": 20 }, "end": { - "line": 2664, + "line": 2691, "column": 48 } } @@ -149444,16 +150746,16 @@ "object": { "type": "ThisExpression", "range": [ - 80451, - 80455 + 81388, + 81392 ], "loc": { "start": { - "line": 2665, + "line": 2692, "column": 20 }, "end": { - "line": 2665, + "line": 2692, "column": 24 } } @@ -149462,31 +150764,31 @@ "type": "Identifier", "name": "emitter", "range": [ - 80456, - 80463 + 81393, + 81400 ], "loc": { "start": { - "line": 2665, + "line": 2692, "column": 25 }, "end": { - "line": 2665, + "line": 2692, "column": 32 } } }, "range": [ - 80451, - 80463 + 81388, + 81400 ], "loc": { "start": { - "line": 2665, + "line": 2692, "column": 20 }, "end": { - "line": 2665, + "line": 2692, "column": 32 } } @@ -149495,31 +150797,31 @@ "type": "Identifier", "name": "emit", "range": [ - 80464, - 80468 + 81401, + 81405 ], "loc": { "start": { - "line": 2665, + "line": 2692, "column": 33 }, "end": { - "line": 2665, + "line": 2692, "column": 37 } } }, "range": [ - 80451, - 80468 + 81388, + 81405 ], "loc": { "start": { - "line": 2665, + "line": 2692, "column": 20 }, "end": { - "line": 2665, + "line": 2692, "column": 37 } } @@ -149530,16 +150832,16 @@ "value": "build-checklist-filter", "raw": "'build-checklist-filter'", "range": [ - 80469, - 80493 + 81406, + 81430 ], "loc": { "start": { - "line": 2665, + "line": 2692, "column": 38 }, "end": { - "line": 2665, + "line": 2692, "column": 62 } } @@ -149547,16 +150849,16 @@ { "type": "ThisExpression", "range": [ - 80495, - 80499 + 81432, + 81436 ], "loc": { "start": { - "line": 2665, + "line": 2692, "column": 64 }, "end": { - "line": 2665, + "line": 2692, "column": 68 } } @@ -149565,16 +150867,16 @@ "type": "Identifier", "name": "colIdx", "range": [ - 80501, - 80507 + 81438, + 81444 ], "loc": { "start": { - "line": 2665, + "line": 2692, "column": 70 }, "end": { - "line": 2665, + "line": 2692, "column": 76 } } @@ -149584,63 +150886,63 @@ "value": true, "raw": "true", "range": [ - 80533, - 80537 + 81470, + 81474 ], "loc": { "start": { - "line": 2666, + "line": 2693, "column": 24 }, "end": { - "line": 2666, + "line": 2693, "column": 28 } } } ], "range": [ - 80451, - 80538 + 81388, + 81475 ], "loc": { "start": { - "line": 2665, + "line": 2692, "column": 20 }, "end": { - "line": 2666, + "line": 2693, "column": 29 } } }, "range": [ - 80451, - 80539 + 81388, + 81476 ], "loc": { "start": { - "line": 2665, + "line": 2692, "column": 20 }, "end": { - "line": 2666, + "line": 2693, "column": 30 } } } ], "range": [ - 80429, - 80557 + 81366, + 81494 ], "loc": { "start": { - "line": 2664, + "line": 2691, "column": 50 }, "end": { - "line": 2667, + "line": 2694, "column": 17 } } @@ -149661,16 +150963,16 @@ "object": { "type": "ThisExpression", "range": [ - 80585, - 80589 + 81522, + 81526 ], "loc": { "start": { - "line": 2668, + "line": 2695, "column": 20 }, "end": { - "line": 2668, + "line": 2695, "column": 24 } } @@ -149679,31 +150981,31 @@ "type": "Identifier", "name": "emitter", "range": [ - 80590, - 80597 + 81527, + 81534 ], "loc": { "start": { - "line": 2668, + "line": 2695, "column": 25 }, "end": { - "line": 2668, + "line": 2695, "column": 32 } } }, "range": [ - 80585, - 80597 + 81522, + 81534 ], "loc": { "start": { - "line": 2668, + "line": 2695, "column": 20 }, "end": { - "line": 2668, + "line": 2695, "column": 32 } } @@ -149712,31 +151014,31 @@ "type": "Identifier", "name": "emit", "range": [ - 80598, - 80602 + 81535, + 81539 ], "loc": { "start": { - "line": 2668, + "line": 2695, "column": 33 }, "end": { - "line": 2668, + "line": 2695, "column": 37 } } }, "range": [ - 80585, - 80602 + 81522, + 81539 ], "loc": { "start": { - "line": 2668, + "line": 2695, "column": 20 }, "end": { - "line": 2668, + "line": 2695, "column": 37 } } @@ -149747,16 +151049,16 @@ "value": "build-select-filter", "raw": "'build-select-filter'", "range": [ - 80603, - 80624 + 81540, + 81561 ], "loc": { "start": { - "line": 2668, + "line": 2695, "column": 38 }, "end": { - "line": 2668, + "line": 2695, "column": 59 } } @@ -149764,16 +151066,16 @@ { "type": "ThisExpression", "range": [ - 80626, - 80630 + 81563, + 81567 ], "loc": { "start": { - "line": 2668, + "line": 2695, "column": 61 }, "end": { - "line": 2668, + "line": 2695, "column": 65 } } @@ -149782,16 +151084,16 @@ "type": "Identifier", "name": "colIdx", "range": [ - 80632, - 80638 + 81569, + 81575 ], "loc": { "start": { - "line": 2668, + "line": 2695, "column": 67 }, "end": { - "line": 2668, + "line": 2695, "column": 73 } } @@ -149801,78 +151103,78 @@ "value": true, "raw": "true", "range": [ - 80664, - 80668 + 81601, + 81605 ], "loc": { "start": { - "line": 2669, + "line": 2696, "column": 24 }, "end": { - "line": 2669, + "line": 2696, "column": 28 } } } ], "range": [ - 80585, - 80669 + 81522, + 81606 ], "loc": { "start": { - "line": 2668, + "line": 2695, "column": 20 }, "end": { - "line": 2669, + "line": 2696, "column": 29 } } }, "range": [ - 80585, - 80670 + 81522, + 81607 ], "loc": { "start": { - "line": 2668, + "line": 2695, "column": 20 }, "end": { - "line": 2669, + "line": 2696, "column": 30 } } } ], "range": [ - 80563, - 80688 + 81500, + 81625 ], "loc": { "start": { - "line": 2667, + "line": 2694, "column": 23 }, "end": { - "line": 2670, + "line": 2697, "column": 17 } } }, "range": [ - 80395, - 80688 + 81332, + 81625 ], "loc": { "start": { - "line": 2664, + "line": 2691, "column": 16 }, "end": { - "line": 2670, + "line": 2697, "column": 17 } } @@ -149887,16 +151189,16 @@ "object": { "type": "ThisExpression", "range": [ - 80706, - 80710 + 81643, + 81647 ], "loc": { "start": { - "line": 2672, + "line": 2699, "column": 16 }, "end": { - "line": 2672, + "line": 2699, "column": 20 } } @@ -149905,31 +151207,31 @@ "type": "Identifier", "name": "setFilterValue", "range": [ - 80711, - 80725 + 81648, + 81662 ], "loc": { "start": { - "line": 2672, + "line": 2699, "column": 21 }, "end": { - "line": 2672, + "line": 2699, "column": 35 } } }, "range": [ - 80706, - 80725 + 81643, + 81662 ], "loc": { "start": { - "line": 2672, + "line": 2699, "column": 16 }, "end": { - "line": 2672, + "line": 2699, "column": 35 } } @@ -149939,16 +151241,16 @@ "type": "Identifier", "name": "colIdx", "range": [ - 80726, - 80732 + 81663, + 81669 ], "loc": { "start": { - "line": 2672, + "line": 2699, "column": 36 }, "end": { - "line": 2672, + "line": 2699, "column": 42 } } @@ -149957,79 +151259,79 @@ "type": "Identifier", "name": "slcSelectedValue", "range": [ - 80734, - 80750 + 81671, + 81687 ], "loc": { "start": { - "line": 2672, + "line": 2699, "column": 44 }, "end": { - "line": 2672, + "line": 2699, "column": 60 } } } ], "range": [ - 80706, - 80751 + 81643, + 81688 ], "loc": { "start": { - "line": 2672, + "line": 2699, "column": 16 }, "end": { - "line": 2672, + "line": 2699, "column": 61 } } }, "range": [ - 80706, - 80752 + 81643, + 81689 ], "loc": { "start": { - "line": 2672, + "line": 2699, "column": 16 }, "end": { - "line": 2672, + "line": 2699, "column": 62 } } } ], "range": [ - 80095, - 80766 + 81032, + 81703 ], "loc": { "start": { - "line": 2655, + "line": 2682, "column": 70 }, "end": { - "line": 2673, + "line": 2700, "column": 13 } } }, "alternate": null, "range": [ - 79768, - 80766 + 80705, + 81703 ], "loc": { "start": { - "line": 2650, + "line": 2677, "column": 12 }, "end": { - "line": 2673, + "line": 2700, "column": 13 } }, @@ -150038,16 +151340,16 @@ "type": "Line", "value": " Welcome to cyclomatic complexity hell :)", "range": [ - 79660, - 79703 + 80597, + 80640 ], "loc": { "start": { - "line": 2648, + "line": 2675, "column": 12 }, "end": { - "line": 2648, + "line": 2675, "column": 55 } } @@ -150056,16 +151358,16 @@ "type": "Line", "value": " TODO: simplify/refactor if statement", "range": [ - 79716, - 79755 + 80653, + 80692 ], "loc": { "start": { - "line": 2649, + "line": 2676, "column": 12 }, "end": { - "line": 2649, + "line": 2676, "column": 51 } } @@ -150074,47 +151376,47 @@ } ], "range": [ - 79492, - 80776 + 80429, + 81713 ], "loc": { "start": { - "line": 2643, + "line": 2670, "column": 61 }, "end": { - "line": 2674, + "line": 2701, "column": 9 } } }, "range": [ - 79439, - 80776 + 80376, + 81713 ], "loc": { "start": { - "line": 2643, + "line": 2670, "column": 8 }, "end": { - "line": 2674, + "line": 2701, "column": 9 } } } ], "range": [ - 78997, - 80782 + 79934, + 81719 ], "loc": { "start": { - "line": 2631, + "line": 2658, "column": 18 }, "end": { - "line": 2675, + "line": 2702, "column": 5 } } @@ -150122,16 +151424,16 @@ "generator": false, "expression": false, "range": [ - 78994, - 80782 + 79931, + 81719 ], "loc": { "start": { - "line": 2631, + "line": 2658, "column": 15 }, "end": { - "line": 2675, + "line": 2702, "column": 5 } } @@ -150139,16 +151441,16 @@ "kind": "method", "computed": false, "range": [ - 78983, - 80782 + 79920, + 81719 ], "loc": { "start": { - "line": 2631, + "line": 2658, "column": 4 }, "end": { - "line": 2675, + "line": 2702, "column": 5 } }, @@ -150157,16 +151459,16 @@ "type": "Block", "value": "*\n * Refresh the filters subject to linking ('select', 'multiple',\n * 'checklist' type)\n ", "range": [ - 78873, - 78978 + 79810, + 79915 ], "loc": { "start": { - "line": 2627, + "line": 2654, "column": 4 }, "end": { - "line": 2630, + "line": 2657, "column": 7 } } @@ -150177,16 +151479,16 @@ "type": "Block", "value": "*\n * Determines if passed filter column implements exact query match\n * @param {Number} colIndex Column index\n * @return {Boolean}\n ", "range": [ - 80788, - 80944 + 81725, + 81881 ], "loc": { "start": { - "line": 2677, + "line": 2704, "column": 4 }, "end": { - "line": 2681, + "line": 2708, "column": 7 } } @@ -150200,16 +151502,16 @@ "type": "Identifier", "name": "isExactMatch", "range": [ - 80949, - 80961 + 81886, + 81898 ], "loc": { "start": { - "line": 2682, + "line": 2709, "column": 4 }, "end": { - "line": 2682, + "line": 2709, "column": 16 } } @@ -150222,16 +151524,16 @@ "type": "Identifier", "name": "colIndex", "range": [ - 80962, - 80970 + 81899, + 81907 ], "loc": { "start": { - "line": 2682, + "line": 2709, "column": 17 }, "end": { - "line": 2682, + "line": 2709, "column": 25 } } @@ -150249,16 +151551,16 @@ "type": "Identifier", "name": "fltType", "range": [ - 80986, - 80993 + 81923, + 81930 ], "loc": { "start": { - "line": 2683, + "line": 2710, "column": 12 }, "end": { - "line": 2683, + "line": 2710, "column": 19 } } @@ -150271,16 +151573,16 @@ "object": { "type": "ThisExpression", "range": [ - 80996, - 81000 + 81933, + 81937 ], "loc": { "start": { - "line": 2683, + "line": 2710, "column": 22 }, "end": { - "line": 2683, + "line": 2710, "column": 26 } } @@ -150289,31 +151591,31 @@ "type": "Identifier", "name": "getFilterType", "range": [ - 81001, - 81014 + 81938, + 81951 ], "loc": { "start": { - "line": 2683, + "line": 2710, "column": 27 }, "end": { - "line": 2683, + "line": 2710, "column": 40 } } }, "range": [ - 80996, - 81014 + 81933, + 81951 ], "loc": { "start": { - "line": 2683, + "line": 2710, "column": 22 }, "end": { - "line": 2683, + "line": 2710, "column": 40 } } @@ -150323,47 +151625,47 @@ "type": "Identifier", "name": "colIndex", "range": [ - 81015, - 81023 + 81952, + 81960 ], "loc": { "start": { - "line": 2683, + "line": 2710, "column": 41 }, "end": { - "line": 2683, + "line": 2710, "column": 49 } } } ], "range": [ - 80996, - 81024 + 81933, + 81961 ], "loc": { "start": { - "line": 2683, + "line": 2710, "column": 22 }, "end": { - "line": 2683, + "line": 2710, "column": 50 } } }, "range": [ - 80986, - 81024 + 81923, + 81961 ], "loc": { "start": { - "line": 2683, + "line": 2710, "column": 12 }, "end": { - "line": 2683, + "line": 2710, "column": 50 } } @@ -150371,16 +151673,16 @@ ], "kind": "let", "range": [ - 80982, - 81025 + 81919, + 81962 ], "loc": { "start": { - "line": 2683, + "line": 2710, "column": 8 }, "end": { - "line": 2683, + "line": 2710, "column": 51 } } @@ -150402,16 +151704,16 @@ "object": { "type": "ThisExpression", "range": [ - 81041, - 81045 + 81978, + 81982 ], "loc": { "start": { - "line": 2684, + "line": 2711, "column": 15 }, "end": { - "line": 2684, + "line": 2711, "column": 19 } } @@ -150420,31 +151722,31 @@ "type": "Identifier", "name": "exactMatchByCol", "range": [ - 81046, - 81061 + 81983, + 81998 ], "loc": { "start": { - "line": 2684, + "line": 2711, "column": 20 }, "end": { - "line": 2684, + "line": 2711, "column": 35 } } }, "range": [ - 81041, - 81061 + 81978, + 81998 ], "loc": { "start": { - "line": 2684, + "line": 2711, "column": 15 }, "end": { - "line": 2684, + "line": 2711, "column": 35 } } @@ -150453,31 +151755,31 @@ "type": "Identifier", "name": "colIndex", "range": [ - 81062, - 81070 + 81999, + 82007 ], "loc": { "start": { - "line": 2684, + "line": 2711, "column": 36 }, "end": { - "line": 2684, + "line": 2711, "column": 44 } } }, "range": [ - 81041, - 81071 + 81978, + 82008 ], "loc": { "start": { - "line": 2684, + "line": 2711, "column": 15 }, "end": { - "line": 2684, + "line": 2711, "column": 45 } } @@ -150488,16 +151790,16 @@ "object": { "type": "ThisExpression", "range": [ - 81075, - 81079 + 82012, + 82016 ], "loc": { "start": { - "line": 2684, + "line": 2711, "column": 49 }, "end": { - "line": 2684, + "line": 2711, "column": 53 } } @@ -150506,46 +151808,46 @@ "type": "Identifier", "name": "exactMatch", "range": [ - 81080, - 81090 + 82017, + 82027 ], "loc": { "start": { - "line": 2684, + "line": 2711, "column": 54 }, "end": { - "line": 2684, + "line": 2711, "column": 64 } } }, "range": [ - 81075, - 81090 + 82012, + 82027 ], "loc": { "start": { - "line": 2684, + "line": 2711, "column": 49 }, "end": { - "line": 2684, + "line": 2711, "column": 64 } } }, "range": [ - 81041, - 81090 + 81978, + 82027 ], "loc": { "start": { - "line": 2684, + "line": 2711, "column": 15 }, "end": { - "line": 2684, + "line": 2711, "column": 64 } } @@ -150557,16 +151859,16 @@ "type": "Identifier", "name": "fltType", "range": [ - 81106, - 81113 + 82043, + 82050 ], "loc": { "start": { - "line": 2685, + "line": 2712, "column": 12 }, "end": { - "line": 2685, + "line": 2712, "column": 19 } } @@ -150575,77 +151877,77 @@ "type": "Identifier", "name": "INPUT", "range": [ - 81118, - 81123 + 82055, + 82060 ], "loc": { "start": { - "line": 2685, + "line": 2712, "column": 24 }, "end": { - "line": 2685, + "line": 2712, "column": 29 } } }, "range": [ - 81106, - 81123 + 82043, + 82060 ], "loc": { "start": { - "line": 2685, + "line": 2712, "column": 12 }, "end": { - "line": 2685, + "line": 2712, "column": 29 } } }, "range": [ - 81041, - 81123 + 81978, + 82060 ], "loc": { "start": { - "line": 2684, + "line": 2711, "column": 15 }, "end": { - "line": 2685, + "line": 2712, "column": 29 } } }, "range": [ - 81034, - 81124 + 81971, + 82061 ], "loc": { "start": { - "line": 2684, + "line": 2711, "column": 8 }, "end": { - "line": 2685, + "line": 2712, "column": 30 } } } ], "range": [ - 80972, - 81130 + 81909, + 82067 ], "loc": { "start": { - "line": 2682, + "line": 2709, "column": 27 }, "end": { - "line": 2686, + "line": 2713, "column": 5 } } @@ -150653,16 +151955,16 @@ "generator": false, "expression": false, "range": [ - 80961, - 81130 + 81898, + 82067 ], "loc": { "start": { - "line": 2682, + "line": 2709, "column": 16 }, "end": { - "line": 2686, + "line": 2713, "column": 5 } } @@ -150670,16 +151972,16 @@ "kind": "method", "computed": false, "range": [ - 80949, - 81130 + 81886, + 82067 ], "loc": { "start": { - "line": 2682, + "line": 2709, "column": 4 }, "end": { - "line": 2686, + "line": 2713, "column": 5 } }, @@ -150688,16 +151990,16 @@ "type": "Block", "value": "*\n * Determines if passed filter column implements exact query match\n * @param {Number} colIndex Column index\n * @return {Boolean}\n ", "range": [ - 80788, - 80944 + 81725, + 81881 ], "loc": { "start": { - "line": 2677, + "line": 2704, "column": 4 }, "end": { - "line": 2681, + "line": 2708, "column": 7 } } @@ -150708,16 +152010,16 @@ "type": "Block", "value": "*\n * Checks if passed row is valid\n * @param {Number} rowIndex Row index\n * @returns {Boolean}\n ", "range": [ - 81136, - 81252 + 82073, + 82189 ], "loc": { "start": { - "line": 2688, + "line": 2715, "column": 4 }, "end": { - "line": 2692, + "line": 2719, "column": 7 } } @@ -150731,16 +152033,16 @@ "type": "Identifier", "name": "isRowValid", "range": [ - 81257, - 81267 + 82194, + 82204 ], "loc": { "start": { - "line": 2693, + "line": 2720, "column": 4 }, "end": { - "line": 2693, + "line": 2720, "column": 14 } } @@ -150753,16 +152055,16 @@ "type": "Identifier", "name": "rowIndex", "range": [ - 81268, - 81276 + 82205, + 82213 ], "loc": { "start": { - "line": 2693, + "line": 2720, "column": 15 }, "end": { - "line": 2693, + "line": 2720, "column": 23 } } @@ -150789,16 +152091,16 @@ "object": { "type": "ThisExpression", "range": [ - 81295, - 81299 + 82232, + 82236 ], "loc": { "start": { - "line": 2694, + "line": 2721, "column": 15 }, "end": { - "line": 2694, + "line": 2721, "column": 19 } } @@ -150807,47 +152109,47 @@ "type": "Identifier", "name": "getValidRows", "range": [ - 81300, - 81312 + 82237, + 82249 ], "loc": { "start": { - "line": 2694, + "line": 2721, "column": 20 }, "end": { - "line": 2694, + "line": 2721, "column": 32 } } }, "range": [ - 81295, - 81312 + 82232, + 82249 ], "loc": { "start": { - "line": 2694, + "line": 2721, "column": 15 }, "end": { - "line": 2694, + "line": 2721, "column": 32 } } }, "arguments": [], "range": [ - 81295, - 81314 + 82232, + 82251 ], "loc": { "start": { - "line": 2694, + "line": 2721, "column": 15 }, "end": { - "line": 2694, + "line": 2721, "column": 34 } } @@ -150856,31 +152158,31 @@ "type": "Identifier", "name": "indexOf", "range": [ - 81315, - 81322 + 82252, + 82259 ], "loc": { "start": { - "line": 2694, + "line": 2721, "column": 35 }, "end": { - "line": 2694, + "line": 2721, "column": 42 } } }, "range": [ - 81295, - 81322 + 82232, + 82259 ], "loc": { "start": { - "line": 2694, + "line": 2721, "column": 15 }, "end": { - "line": 2694, + "line": 2721, "column": 42 } } @@ -150890,32 +152192,32 @@ "type": "Identifier", "name": "rowIndex", "range": [ - 81323, - 81331 + 82260, + 82268 ], "loc": { "start": { - "line": 2694, + "line": 2721, "column": 43 }, "end": { - "line": 2694, + "line": 2721, "column": 51 } } } ], "range": [ - 81295, - 81332 + 82232, + 82269 ], "loc": { "start": { - "line": 2694, + "line": 2721, "column": 15 }, "end": { - "line": 2694, + "line": 2721, "column": 52 } } @@ -150928,78 +152230,78 @@ "value": 1, "raw": "1", "range": [ - 81338, - 81339 + 82275, + 82276 ], "loc": { "start": { - "line": 2694, + "line": 2721, "column": 58 }, "end": { - "line": 2694, + "line": 2721, "column": 59 } } }, "prefix": true, "range": [ - 81337, - 81339 + 82274, + 82276 ], "loc": { "start": { - "line": 2694, + "line": 2721, "column": 57 }, "end": { - "line": 2694, + "line": 2721, "column": 59 } } }, "range": [ - 81295, - 81339 + 82232, + 82276 ], "loc": { "start": { - "line": 2694, + "line": 2721, "column": 15 }, "end": { - "line": 2694, + "line": 2721, "column": 59 } } }, "range": [ - 81288, - 81340 + 82225, + 82277 ], "loc": { "start": { - "line": 2694, + "line": 2721, "column": 8 }, "end": { - "line": 2694, + "line": 2721, "column": 60 } } } ], "range": [ - 81278, - 81346 + 82215, + 82283 ], "loc": { "start": { - "line": 2693, + "line": 2720, "column": 25 }, "end": { - "line": 2695, + "line": 2722, "column": 5 } } @@ -151007,16 +152309,16 @@ "generator": false, "expression": false, "range": [ - 81267, - 81346 + 82204, + 82283 ], "loc": { "start": { - "line": 2693, + "line": 2720, "column": 14 }, "end": { - "line": 2695, + "line": 2722, "column": 5 } } @@ -151024,16 +152326,16 @@ "kind": "method", "computed": false, "range": [ - 81257, - 81346 + 82194, + 82283 ], "loc": { "start": { - "line": 2693, + "line": 2720, "column": 4 }, "end": { - "line": 2695, + "line": 2722, "column": 5 } }, @@ -151042,16 +152344,16 @@ "type": "Block", "value": "*\n * Checks if passed row is valid\n * @param {Number} rowIndex Row index\n * @returns {Boolean}\n ", "range": [ - 81136, - 81252 + 82073, + 82189 ], "loc": { "start": { - "line": 2688, + "line": 2715, "column": 4 }, "end": { - "line": 2692, + "line": 2719, "column": 7 } } @@ -151062,16 +152364,16 @@ "type": "Block", "value": "*\n * Checks if passed row is visible\n * @param {Number} rowIndex Row index\n * @returns {Boolean}\n ", "range": [ - 81352, - 81470 + 82289, + 82407 ], "loc": { "start": { - "line": 2697, + "line": 2724, "column": 4 }, "end": { - "line": 2701, + "line": 2728, "column": 7 } } @@ -151085,16 +152387,16 @@ "type": "Identifier", "name": "isRowDisplayed", "range": [ - 81475, - 81489 + 82412, + 82426 ], "loc": { "start": { - "line": 2702, + "line": 2729, "column": 4 }, "end": { - "line": 2702, + "line": 2729, "column": 18 } } @@ -151107,16 +152409,16 @@ "type": "Identifier", "name": "rowIndex", "range": [ - 81490, - 81498 + 82427, + 82435 ], "loc": { "start": { - "line": 2702, + "line": 2729, "column": 19 }, "end": { - "line": 2702, + "line": 2729, "column": 27 } } @@ -151134,16 +152436,16 @@ "type": "Identifier", "name": "row", "range": [ - 81514, - 81517 + 82451, + 82454 ], "loc": { "start": { - "line": 2703, + "line": 2730, "column": 12 }, "end": { - "line": 2703, + "line": 2730, "column": 15 } } @@ -151160,16 +152462,16 @@ "object": { "type": "ThisExpression", "range": [ - 81520, - 81524 + 82457, + 82461 ], "loc": { "start": { - "line": 2703, + "line": 2730, "column": 18 }, "end": { - "line": 2703, + "line": 2730, "column": 22 } } @@ -151178,31 +152480,31 @@ "type": "Identifier", "name": "tbl", "range": [ - 81525, - 81528 + 82462, + 82465 ], "loc": { "start": { - "line": 2703, + "line": 2730, "column": 23 }, "end": { - "line": 2703, + "line": 2730, "column": 26 } } }, "range": [ - 81520, - 81528 + 82457, + 82465 ], "loc": { "start": { - "line": 2703, + "line": 2730, "column": 18 }, "end": { - "line": 2703, + "line": 2730, "column": 26 } } @@ -151211,31 +152513,31 @@ "type": "Identifier", "name": "rows", "range": [ - 81529, - 81533 + 82466, + 82470 ], "loc": { "start": { - "line": 2703, + "line": 2730, "column": 27 }, "end": { - "line": 2703, + "line": 2730, "column": 31 } } }, "range": [ - 81520, - 81533 + 82457, + 82470 ], "loc": { "start": { - "line": 2703, + "line": 2730, "column": 18 }, "end": { - "line": 2703, + "line": 2730, "column": 31 } } @@ -151244,46 +152546,46 @@ "type": "Identifier", "name": "rowIndex", "range": [ - 81534, - 81542 + 82471, + 82479 ], "loc": { "start": { - "line": 2703, + "line": 2730, "column": 32 }, "end": { - "line": 2703, + "line": 2730, "column": 40 } } }, "range": [ - 81520, - 81543 + 82457, + 82480 ], "loc": { "start": { - "line": 2703, + "line": 2730, "column": 18 }, "end": { - "line": 2703, + "line": 2730, "column": 41 } } }, "range": [ - 81514, - 81543 + 82451, + 82480 ], "loc": { "start": { - "line": 2703, + "line": 2730, "column": 12 }, "end": { - "line": 2703, + "line": 2730, "column": 41 } } @@ -151291,16 +152593,16 @@ ], "kind": "let", "range": [ - 81510, - 81544 + 82447, + 82481 ], "loc": { "start": { - "line": 2703, + "line": 2730, "column": 8 }, "end": { - "line": 2703, + "line": 2730, "column": 42 } } @@ -151318,16 +152620,16 @@ "object": { "type": "ThisExpression", "range": [ - 81560, - 81564 + 82497, + 82501 ], "loc": { "start": { - "line": 2704, + "line": 2731, "column": 15 }, "end": { - "line": 2704, + "line": 2731, "column": 19 } } @@ -151336,31 +152638,31 @@ "type": "Identifier", "name": "getRowDisplay", "range": [ - 81565, - 81578 + 82502, + 82515 ], "loc": { "start": { - "line": 2704, + "line": 2731, "column": 20 }, "end": { - "line": 2704, + "line": 2731, "column": 33 } } }, "range": [ - 81560, - 81578 + 82497, + 82515 ], "loc": { "start": { - "line": 2704, + "line": 2731, "column": 15 }, "end": { - "line": 2704, + "line": 2731, "column": 33 } } @@ -151370,32 +152672,32 @@ "type": "Identifier", "name": "row", "range": [ - 81579, - 81582 + 82516, + 82519 ], "loc": { "start": { - "line": 2704, + "line": 2731, "column": 34 }, "end": { - "line": 2704, + "line": 2731, "column": 37 } } } ], "range": [ - 81560, - 81583 + 82497, + 82520 ], "loc": { "start": { - "line": 2704, + "line": 2731, "column": 15 }, "end": { - "line": 2704, + "line": 2731, "column": 38 } } @@ -151405,983 +152707,60 @@ "value": "", "raw": "''", "range": [ - 81588, - 81590 + 82525, + 82527 ], "loc": { "start": { - "line": 2704, + "line": 2731, "column": 43 }, "end": { - "line": 2704, + "line": 2731, "column": 45 } } }, "range": [ - 81560, - 81590 + 82497, + 82527 ], "loc": { "start": { - "line": 2704, + "line": 2731, "column": 15 }, "end": { - "line": 2704, + "line": 2731, "column": 45 } } }, "range": [ - 81553, - 81591 + 82490, + 82528 ], "loc": { "start": { - "line": 2704, + "line": 2731, "column": 8 }, "end": { - "line": 2704, + "line": 2731, "column": 46 } } } ], "range": [ - 81500, - 81597 + 82437, + 82534 ], "loc": { "start": { - "line": 2702, + "line": 2729, "column": 29 }, - "end": { - "line": 2705, - "column": 5 - } - } - }, - "generator": false, - "expression": false, - "range": [ - 81489, - 81597 - ], - "loc": { - "start": { - "line": 2702, - "column": 18 - }, - "end": { - "line": 2705, - "column": 5 - } - } - }, - "kind": "method", - "computed": false, - "range": [ - 81475, - 81597 - ], - "loc": { - "start": { - "line": 2702, - "column": 4 - }, - "end": { - "line": 2705, - "column": 5 - } - }, - "leadingComments": [ - { - "type": "Block", - "value": "*\n * Checks if passed row is visible\n * @param {Number} rowIndex Row index\n * @returns {Boolean}\n ", - "range": [ - 81352, - 81470 - ], - "loc": { - "start": { - "line": 2697, - "column": 4 - }, - "end": { - "line": 2701, - "column": 7 - } - } - } - ], - "trailingComments": [ - { - "type": "Block", - "value": "*\n * Checks if specified column filter ignores diacritics.\n * Note this is only valid for input filter types.\n * @param {Number} colIndex Column index\n * @returns {Boolean}\n ", - "range": [ - 81603, - 81804 - ], - "loc": { - "start": { - "line": 2707, - "column": 4 - }, - "end": { - "line": 2712, - "column": 7 - } - } - } - ], - "static": false - }, - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "ignoresDiacritics", - "range": [ - 81809, - 81826 - ], - "loc": { - "start": { - "line": 2713, - "column": 4 - }, - "end": { - "line": 2713, - "column": 21 - } - } - }, - "value": { - "type": "FunctionExpression", - "id": null, - "params": [ - { - "type": "Identifier", - "name": "colIndex", - "range": [ - 81827, - 81835 - ], - "loc": { - "start": { - "line": 2713, - "column": 22 - }, - "end": { - "line": 2713, - "column": 30 - } - } - } - ], - "body": { - "type": "BlockStatement", - "body": [ - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "ignoreDiac", - "range": [ - 81851, - 81861 - ], - "loc": { - "start": { - "line": 2714, - "column": 12 - }, - "end": { - "line": 2714, - "column": 22 - } - } - }, - "init": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 81864, - 81868 - ], - "loc": { - "start": { - "line": 2714, - "column": 25 - }, - "end": { - "line": 2714, - "column": 29 - } - } - }, - "property": { - "type": "Identifier", - "name": "ignoreDiacritics", - "range": [ - 81869, - 81885 - ], - "loc": { - "start": { - "line": 2714, - "column": 30 - }, - "end": { - "line": 2714, - "column": 46 - } - } - }, - "range": [ - 81864, - 81885 - ], - "loc": { - "start": { - "line": 2714, - "column": 25 - }, - "end": { - "line": 2714, - "column": 46 - } - } - }, - "range": [ - 81851, - 81885 - ], - "loc": { - "start": { - "line": 2714, - "column": 12 - }, - "end": { - "line": 2714, - "column": 46 - } - } - } - ], - "kind": "let", - "range": [ - 81847, - 81886 - ], - "loc": { - "start": { - "line": 2714, - "column": 8 - }, - "end": { - "line": 2714, - "column": 47 - } - } - }, - { - "type": "IfStatement", - "test": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "isArray", - "range": [ - 81899, - 81906 - ], - "loc": { - "start": { - "line": 2715, - "column": 12 - }, - "end": { - "line": 2715, - "column": 19 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "ignoreDiac", - "range": [ - 81907, - 81917 - ], - "loc": { - "start": { - "line": 2715, - "column": 20 - }, - "end": { - "line": 2715, - "column": 30 - } - } - } - ], - "range": [ - 81899, - 81918 - ], - "loc": { - "start": { - "line": 2715, - "column": 12 - }, - "end": { - "line": 2715, - "column": 31 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ReturnStatement", - "argument": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "ignoreDiac", - "range": [ - 81941, - 81951 - ], - "loc": { - "start": { - "line": 2716, - "column": 19 - }, - "end": { - "line": 2716, - "column": 29 - } - } - }, - "property": { - "type": "Identifier", - "name": "colIndex", - "range": [ - 81952, - 81960 - ], - "loc": { - "start": { - "line": 2716, - "column": 30 - }, - "end": { - "line": 2716, - "column": 38 - } - } - }, - "range": [ - 81941, - 81961 - ], - "loc": { - "start": { - "line": 2716, - "column": 19 - }, - "end": { - "line": 2716, - "column": 39 - } - } - }, - "range": [ - 81934, - 81962 - ], - "loc": { - "start": { - "line": 2716, - "column": 12 - }, - "end": { - "line": 2716, - "column": 40 - } - } - } - ], - "range": [ - 81920, - 81972 - ], - "loc": { - "start": { - "line": 2715, - "column": 33 - }, - "end": { - "line": 2717, - "column": 9 - } - } - }, - "alternate": null, - "range": [ - 81895, - 81972 - ], - "loc": { - "start": { - "line": 2715, - "column": 8 - }, - "end": { - "line": 2717, - "column": 9 - } - } - }, - { - "type": "ReturnStatement", - "argument": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "Boolean", - "range": [ - 81988, - 81995 - ], - "loc": { - "start": { - "line": 2718, - "column": 15 - }, - "end": { - "line": 2718, - "column": 22 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "ignoreDiac", - "range": [ - 81996, - 82006 - ], - "loc": { - "start": { - "line": 2718, - "column": 23 - }, - "end": { - "line": 2718, - "column": 33 - } - } - } - ], - "range": [ - 81988, - 82007 - ], - "loc": { - "start": { - "line": 2718, - "column": 15 - }, - "end": { - "line": 2718, - "column": 34 - } - } - }, - "range": [ - 81981, - 82008 - ], - "loc": { - "start": { - "line": 2718, - "column": 8 - }, - "end": { - "line": 2718, - "column": 35 - } - } - } - ], - "range": [ - 81837, - 82014 - ], - "loc": { - "start": { - "line": 2713, - "column": 32 - }, - "end": { - "line": 2719, - "column": 5 - } - } - }, - "generator": false, - "expression": false, - "range": [ - 81826, - 82014 - ], - "loc": { - "start": { - "line": 2713, - "column": 21 - }, - "end": { - "line": 2719, - "column": 5 - } - } - }, - "kind": "method", - "computed": false, - "range": [ - 81809, - 82014 - ], - "loc": { - "start": { - "line": 2713, - "column": 4 - }, - "end": { - "line": 2719, - "column": 5 - } - }, - "leadingComments": [ - { - "type": "Block", - "value": "*\n * Checks if specified column filter ignores diacritics.\n * Note this is only valid for input filter types.\n * @param {Number} colIndex Column index\n * @returns {Boolean}\n ", - "range": [ - 81603, - 81804 - ], - "loc": { - "start": { - "line": 2707, - "column": 4 - }, - "end": { - "line": 2712, - "column": 7 - } - } - } - ], - "trailingComments": [ - { - "type": "Block", - "value": "*\n * Returns clear all text for specified filter column\n * @param {Number} colIndex Column index\n * @returns {String}\n ", - "range": [ - 82020, - 82162 - ], - "loc": { - "start": { - "line": 2721, - "column": 4 - }, - "end": { - "line": 2725, - "column": 7 - } - } - } - ], - "static": false - }, - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "getClearFilterText", - "range": [ - 82167, - 82185 - ], - "loc": { - "start": { - "line": 2726, - "column": 4 - }, - "end": { - "line": 2726, - "column": 22 - } - } - }, - "value": { - "type": "FunctionExpression", - "id": null, - "params": [ - { - "type": "Identifier", - "name": "colIndex", - "range": [ - 82186, - 82194 - ], - "loc": { - "start": { - "line": 2726, - "column": 23 - }, - "end": { - "line": 2726, - "column": 31 - } - } - } - ], - "body": { - "type": "BlockStatement", - "body": [ - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "clearText", - "range": [ - 82210, - 82219 - ], - "loc": { - "start": { - "line": 2727, - "column": 12 - }, - "end": { - "line": 2727, - "column": 21 - } - } - }, - "init": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 82222, - 82226 - ], - "loc": { - "start": { - "line": 2727, - "column": 24 - }, - "end": { - "line": 2727, - "column": 28 - } - } - }, - "property": { - "type": "Identifier", - "name": "clearFilterText", - "range": [ - 82227, - 82242 - ], - "loc": { - "start": { - "line": 2727, - "column": 29 - }, - "end": { - "line": 2727, - "column": 44 - } - } - }, - "range": [ - 82222, - 82242 - ], - "loc": { - "start": { - "line": 2727, - "column": 24 - }, - "end": { - "line": 2727, - "column": 44 - } - } - }, - "range": [ - 82210, - 82242 - ], - "loc": { - "start": { - "line": 2727, - "column": 12 - }, - "end": { - "line": 2727, - "column": 44 - } - } - } - ], - "kind": "let", - "range": [ - 82206, - 82243 - ], - "loc": { - "start": { - "line": 2727, - "column": 8 - }, - "end": { - "line": 2727, - "column": 45 - } - } - }, - { - "type": "IfStatement", - "test": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "isArray", - "range": [ - 82256, - 82263 - ], - "loc": { - "start": { - "line": 2728, - "column": 12 - }, - "end": { - "line": 2728, - "column": 19 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "clearText", - "range": [ - 82264, - 82273 - ], - "loc": { - "start": { - "line": 2728, - "column": 20 - }, - "end": { - "line": 2728, - "column": 29 - } - } - } - ], - "range": [ - 82256, - 82274 - ], - "loc": { - "start": { - "line": 2728, - "column": 12 - }, - "end": { - "line": 2728, - "column": 30 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ReturnStatement", - "argument": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "clearText", - "range": [ - 82297, - 82306 - ], - "loc": { - "start": { - "line": 2729, - "column": 19 - }, - "end": { - "line": 2729, - "column": 28 - } - } - }, - "property": { - "type": "Identifier", - "name": "colIndex", - "range": [ - 82307, - 82315 - ], - "loc": { - "start": { - "line": 2729, - "column": 29 - }, - "end": { - "line": 2729, - "column": 37 - } - } - }, - "range": [ - 82297, - 82316 - ], - "loc": { - "start": { - "line": 2729, - "column": 19 - }, - "end": { - "line": 2729, - "column": 38 - } - } - }, - "range": [ - 82290, - 82317 - ], - "loc": { - "start": { - "line": 2729, - "column": 12 - }, - "end": { - "line": 2729, - "column": 39 - } - } - } - ], - "range": [ - 82276, - 82327 - ], - "loc": { - "start": { - "line": 2728, - "column": 32 - }, - "end": { - "line": 2730, - "column": 9 - } - } - }, - "alternate": null, - "range": [ - 82252, - 82327 - ], - "loc": { - "start": { - "line": 2728, - "column": 8 - }, - "end": { - "line": 2730, - "column": 9 - } - } - }, - { - "type": "ReturnStatement", - "argument": { - "type": "Identifier", - "name": "clearText", - "range": [ - 82343, - 82352 - ], - "loc": { - "start": { - "line": 2731, - "column": 15 - }, - "end": { - "line": 2731, - "column": 24 - } - } - }, - "range": [ - 82336, - 82353 - ], - "loc": { - "start": { - "line": 2731, - "column": 8 - }, - "end": { - "line": 2731, - "column": 25 - } - } - } - ], - "range": [ - 82196, - 82359 - ], - "loc": { - "start": { - "line": 2726, - "column": 33 - }, "end": { "line": 2732, "column": 5 @@ -152391,13 +152770,13 @@ "generator": false, "expression": false, "range": [ - 82185, - 82359 + 82426, + 82534 ], "loc": { "start": { - "line": 2726, - "column": 22 + "line": 2729, + "column": 18 }, "end": { "line": 2732, @@ -152408,12 +152787,12 @@ "kind": "method", "computed": false, "range": [ - 82167, - 82359 + 82412, + 82534 ], "loc": { "start": { - "line": 2726, + "line": 2729, "column": 4 }, "end": { @@ -152424,18 +152803,18 @@ "leadingComments": [ { "type": "Block", - "value": "*\n * Returns clear all text for specified filter column\n * @param {Number} colIndex Column index\n * @returns {String}\n ", + "value": "*\n * Checks if passed row is visible\n * @param {Number} rowIndex Row index\n * @returns {Boolean}\n ", "range": [ - 82020, - 82162 + 82289, + 82407 ], "loc": { "start": { - "line": 2721, + "line": 2724, "column": 4 }, "end": { - "line": 2725, + "line": 2728, "column": 7 } } @@ -152444,10 +152823,10 @@ "trailingComments": [ { "type": "Block", - "value": "*\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 ", + "value": "*\n * Checks if specified column filter ignores diacritics.\n * Note this is only valid for input filter types.\n * @param {Number} colIndex Column index\n * @returns {Boolean}\n ", "range": [ - 82365, - 82584 + 82540, + 82741 ], "loc": { "start": { @@ -152467,10 +152846,10 @@ "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "isImported", + "name": "ignoresDiacritics", "range": [ - 82589, - 82599 + 82746, + 82763 ], "loc": { "start": { @@ -152479,6 +152858,929 @@ }, "end": { "line": 2740, + "column": 21 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "colIndex", + "range": [ + 82764, + 82772 + ], + "loc": { + "start": { + "line": 2740, + "column": 22 + }, + "end": { + "line": 2740, + "column": 30 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "ignoreDiac", + "range": [ + 82788, + 82798 + ], + "loc": { + "start": { + "line": 2741, + "column": 12 + }, + "end": { + "line": 2741, + "column": 22 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 82801, + 82805 + ], + "loc": { + "start": { + "line": 2741, + "column": 25 + }, + "end": { + "line": 2741, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "ignoreDiacritics", + "range": [ + 82806, + 82822 + ], + "loc": { + "start": { + "line": 2741, + "column": 30 + }, + "end": { + "line": 2741, + "column": 46 + } + } + }, + "range": [ + 82801, + 82822 + ], + "loc": { + "start": { + "line": 2741, + "column": 25 + }, + "end": { + "line": 2741, + "column": 46 + } + } + }, + "range": [ + 82788, + 82822 + ], + "loc": { + "start": { + "line": 2741, + "column": 12 + }, + "end": { + "line": 2741, + "column": 46 + } + } + } + ], + "kind": "let", + "range": [ + 82784, + 82823 + ], + "loc": { + "start": { + "line": 2741, + "column": 8 + }, + "end": { + "line": 2741, + "column": 47 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "isArray", + "range": [ + 82836, + 82843 + ], + "loc": { + "start": { + "line": 2742, + "column": 12 + }, + "end": { + "line": 2742, + "column": 19 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "ignoreDiac", + "range": [ + 82844, + 82854 + ], + "loc": { + "start": { + "line": 2742, + "column": 20 + }, + "end": { + "line": 2742, + "column": 30 + } + } + } + ], + "range": [ + 82836, + 82855 + ], + "loc": { + "start": { + "line": 2742, + "column": 12 + }, + "end": { + "line": 2742, + "column": 31 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "ignoreDiac", + "range": [ + 82878, + 82888 + ], + "loc": { + "start": { + "line": 2743, + "column": 19 + }, + "end": { + "line": 2743, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "colIndex", + "range": [ + 82889, + 82897 + ], + "loc": { + "start": { + "line": 2743, + "column": 30 + }, + "end": { + "line": 2743, + "column": 38 + } + } + }, + "range": [ + 82878, + 82898 + ], + "loc": { + "start": { + "line": 2743, + "column": 19 + }, + "end": { + "line": 2743, + "column": 39 + } + } + }, + "range": [ + 82871, + 82899 + ], + "loc": { + "start": { + "line": 2743, + "column": 12 + }, + "end": { + "line": 2743, + "column": 40 + } + } + } + ], + "range": [ + 82857, + 82909 + ], + "loc": { + "start": { + "line": 2742, + "column": 33 + }, + "end": { + "line": 2744, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 82832, + 82909 + ], + "loc": { + "start": { + "line": 2742, + "column": 8 + }, + "end": { + "line": 2744, + "column": 9 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "Boolean", + "range": [ + 82925, + 82932 + ], + "loc": { + "start": { + "line": 2745, + "column": 15 + }, + "end": { + "line": 2745, + "column": 22 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "ignoreDiac", + "range": [ + 82933, + 82943 + ], + "loc": { + "start": { + "line": 2745, + "column": 23 + }, + "end": { + "line": 2745, + "column": 33 + } + } + } + ], + "range": [ + 82925, + 82944 + ], + "loc": { + "start": { + "line": 2745, + "column": 15 + }, + "end": { + "line": 2745, + "column": 34 + } + } + }, + "range": [ + 82918, + 82945 + ], + "loc": { + "start": { + "line": 2745, + "column": 8 + }, + "end": { + "line": 2745, + "column": 35 + } + } + } + ], + "range": [ + 82774, + 82951 + ], + "loc": { + "start": { + "line": 2740, + "column": 32 + }, + "end": { + "line": 2746, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 82763, + 82951 + ], + "loc": { + "start": { + "line": 2740, + "column": 21 + }, + "end": { + "line": 2746, + "column": 5 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 82746, + 82951 + ], + "loc": { + "start": { + "line": 2740, + "column": 4 + }, + "end": { + "line": 2746, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Checks if specified column filter ignores diacritics.\n * Note this is only valid for input filter types.\n * @param {Number} colIndex Column index\n * @returns {Boolean}\n ", + "range": [ + 82540, + 82741 + ], + "loc": { + "start": { + "line": 2734, + "column": 4 + }, + "end": { + "line": 2739, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Returns clear all text for specified filter column\n * @param {Number} colIndex Column index\n * @returns {String}\n ", + "range": [ + 82957, + 83099 + ], + "loc": { + "start": { + "line": 2748, + "column": 4 + }, + "end": { + "line": 2752, + "column": 7 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "getClearFilterText", + "range": [ + 83104, + 83122 + ], + "loc": { + "start": { + "line": 2753, + "column": 4 + }, + "end": { + "line": 2753, + "column": 22 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "colIndex", + "range": [ + 83123, + 83131 + ], + "loc": { + "start": { + "line": 2753, + "column": 23 + }, + "end": { + "line": 2753, + "column": 31 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "clearText", + "range": [ + 83147, + 83156 + ], + "loc": { + "start": { + "line": 2754, + "column": 12 + }, + "end": { + "line": 2754, + "column": 21 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 83159, + 83163 + ], + "loc": { + "start": { + "line": 2754, + "column": 24 + }, + "end": { + "line": 2754, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "clearFilterText", + "range": [ + 83164, + 83179 + ], + "loc": { + "start": { + "line": 2754, + "column": 29 + }, + "end": { + "line": 2754, + "column": 44 + } + } + }, + "range": [ + 83159, + 83179 + ], + "loc": { + "start": { + "line": 2754, + "column": 24 + }, + "end": { + "line": 2754, + "column": 44 + } + } + }, + "range": [ + 83147, + 83179 + ], + "loc": { + "start": { + "line": 2754, + "column": 12 + }, + "end": { + "line": 2754, + "column": 44 + } + } + } + ], + "kind": "let", + "range": [ + 83143, + 83180 + ], + "loc": { + "start": { + "line": 2754, + "column": 8 + }, + "end": { + "line": 2754, + "column": 45 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "isArray", + "range": [ + 83193, + 83200 + ], + "loc": { + "start": { + "line": 2755, + "column": 12 + }, + "end": { + "line": 2755, + "column": 19 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "clearText", + "range": [ + 83201, + 83210 + ], + "loc": { + "start": { + "line": 2755, + "column": 20 + }, + "end": { + "line": 2755, + "column": 29 + } + } + } + ], + "range": [ + 83193, + 83211 + ], + "loc": { + "start": { + "line": 2755, + "column": 12 + }, + "end": { + "line": 2755, + "column": 30 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "clearText", + "range": [ + 83234, + 83243 + ], + "loc": { + "start": { + "line": 2756, + "column": 19 + }, + "end": { + "line": 2756, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "colIndex", + "range": [ + 83244, + 83252 + ], + "loc": { + "start": { + "line": 2756, + "column": 29 + }, + "end": { + "line": 2756, + "column": 37 + } + } + }, + "range": [ + 83234, + 83253 + ], + "loc": { + "start": { + "line": 2756, + "column": 19 + }, + "end": { + "line": 2756, + "column": 38 + } + } + }, + "range": [ + 83227, + 83254 + ], + "loc": { + "start": { + "line": 2756, + "column": 12 + }, + "end": { + "line": 2756, + "column": 39 + } + } + } + ], + "range": [ + 83213, + 83264 + ], + "loc": { + "start": { + "line": 2755, + "column": 32 + }, + "end": { + "line": 2757, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 83189, + 83264 + ], + "loc": { + "start": { + "line": 2755, + "column": 8 + }, + "end": { + "line": 2757, + "column": 9 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "clearText", + "range": [ + 83280, + 83289 + ], + "loc": { + "start": { + "line": 2758, + "column": 15 + }, + "end": { + "line": 2758, + "column": 24 + } + } + }, + "range": [ + 83273, + 83290 + ], + "loc": { + "start": { + "line": 2758, + "column": 8 + }, + "end": { + "line": 2758, + "column": 25 + } + } + } + ], + "range": [ + 83133, + 83296 + ], + "loc": { + "start": { + "line": 2753, + "column": 33 + }, + "end": { + "line": 2759, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 83122, + 83296 + ], + "loc": { + "start": { + "line": 2753, + "column": 22 + }, + "end": { + "line": 2759, + "column": 5 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 83104, + 83296 + ], + "loc": { + "start": { + "line": 2753, + "column": 4 + }, + "end": { + "line": 2759, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Returns clear all text for specified filter column\n * @param {Number} colIndex Column index\n * @returns {String}\n ", + "range": [ + 82957, + 83099 + ], + "loc": { + "start": { + "line": 2748, + "column": 4 + }, + "end": { + "line": 2752, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\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 ", + "range": [ + 83302, + 83521 + ], + "loc": { + "start": { + "line": 2761, + "column": 4 + }, + "end": { + "line": 2766, + "column": 7 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "isImported", + "range": [ + 83526, + 83536 + ], + "loc": { + "start": { + "line": 2767, + "column": 4 + }, + "end": { + "line": 2767, "column": 14 } } @@ -152491,16 +153793,16 @@ "type": "Identifier", "name": "filePath", "range": [ - 82600, - 82608 + 83537, + 83545 ], "loc": { "start": { - "line": 2740, + "line": 2767, "column": 15 }, "end": { - "line": 2740, + "line": 2767, "column": 23 } } @@ -152511,16 +153813,16 @@ "type": "Identifier", "name": "type", "range": [ - 82610, - 82614 + 83547, + 83551 ], "loc": { "start": { - "line": 2740, + "line": 2767, "column": 25 }, "end": { - "line": 2740, + "line": 2767, "column": 29 } } @@ -152530,31 +153832,31 @@ "value": "script", "raw": "'script'", "range": [ - 82617, - 82625 + 83554, + 83562 ], "loc": { "start": { - "line": 2740, + "line": 2767, "column": 32 }, "end": { - "line": 2740, + "line": 2767, "column": 40 } } }, "range": [ - 82610, - 82625 + 83547, + 83562 ], "loc": { "start": { - "line": 2740, + "line": 2767, "column": 25 }, "end": { - "line": 2740, + "line": 2767, "column": 40 } } @@ -152572,16 +153874,16 @@ "type": "Identifier", "name": "imported", "range": [ - 82641, - 82649 + 83578, + 83586 ], "loc": { "start": { - "line": 2741, + "line": 2768, "column": 12 }, "end": { - "line": 2741, + "line": 2768, "column": 20 } } @@ -152591,31 +153893,31 @@ "value": false, "raw": "false", "range": [ - 82652, - 82657 + 83589, + 83594 ], "loc": { "start": { - "line": 2741, + "line": 2768, "column": 23 }, "end": { - "line": 2741, + "line": 2768, "column": 28 } } }, "range": [ - 82641, - 82657 + 83578, + 83594 ], "loc": { "start": { - "line": 2741, + "line": 2768, "column": 12 }, "end": { - "line": 2741, + "line": 2768, "column": 28 } } @@ -152626,16 +153928,16 @@ "type": "Identifier", "name": "attr", "range": [ - 82671, - 82675 + 83608, + 83612 ], "loc": { "start": { - "line": 2742, + "line": 2769, "column": 12 }, "end": { - "line": 2742, + "line": 2769, "column": 16 } } @@ -152649,16 +153951,16 @@ "type": "Identifier", "name": "type", "range": [ - 82678, - 82682 + 83615, + 83619 ], "loc": { "start": { - "line": 2742, + "line": 2769, "column": 19 }, "end": { - "line": 2742, + "line": 2769, "column": 23 } } @@ -152668,31 +153970,31 @@ "value": "script", "raw": "'script'", "range": [ - 82687, - 82695 + 83624, + 83632 ], "loc": { "start": { - "line": 2742, + "line": 2769, "column": 28 }, "end": { - "line": 2742, + "line": 2769, "column": 36 } } }, "range": [ - 82678, - 82695 + 83615, + 83632 ], "loc": { "start": { - "line": 2742, + "line": 2769, "column": 19 }, "end": { - "line": 2742, + "line": 2769, "column": 36 } } @@ -152702,16 +154004,16 @@ "value": "src", "raw": "'src'", "range": [ - 82698, - 82703 + 83635, + 83640 ], "loc": { "start": { - "line": 2742, + "line": 2769, "column": 39 }, "end": { - "line": 2742, + "line": 2769, "column": 44 } } @@ -152721,46 +154023,46 @@ "value": "href", "raw": "'href'", "range": [ - 82706, - 82712 + 83643, + 83649 ], "loc": { "start": { - "line": 2742, + "line": 2769, "column": 47 }, "end": { - "line": 2742, + "line": 2769, "column": 53 } } }, "range": [ - 82678, - 82712 + 83615, + 83649 ], "loc": { "start": { - "line": 2742, + "line": 2769, "column": 19 }, "end": { - "line": 2742, + "line": 2769, "column": 53 } } }, "range": [ - 82671, - 82712 + 83608, + 83649 ], "loc": { "start": { - "line": 2742, + "line": 2769, "column": 12 }, "end": { - "line": 2742, + "line": 2769, "column": 53 } } @@ -152771,16 +154073,16 @@ "type": "Identifier", "name": "files", "range": [ - 82726, - 82731 + 83663, + 83668 ], "loc": { "start": { - "line": 2743, + "line": 2770, "column": 12 }, "end": { - "line": 2743, + "line": 2770, "column": 17 } } @@ -152791,16 +154093,16 @@ "type": "Identifier", "name": "tag", "range": [ - 82734, - 82737 + 83671, + 83674 ], "loc": { "start": { - "line": 2743, + "line": 2770, "column": 20 }, "end": { - "line": 2743, + "line": 2770, "column": 23 } } @@ -152810,16 +154112,16 @@ "type": "Identifier", "name": "doc", "range": [ - 82738, - 82741 + 83675, + 83678 ], "loc": { "start": { - "line": 2743, + "line": 2770, "column": 24 }, "end": { - "line": 2743, + "line": 2770, "column": 27 } } @@ -152828,47 +154130,47 @@ "type": "Identifier", "name": "type", "range": [ - 82743, - 82747 + 83680, + 83684 ], "loc": { "start": { - "line": 2743, + "line": 2770, "column": 29 }, "end": { - "line": 2743, + "line": 2770, "column": 33 } } } ], "range": [ - 82734, - 82748 + 83671, + 83685 ], "loc": { "start": { - "line": 2743, + "line": 2770, "column": 20 }, "end": { - "line": 2743, + "line": 2770, "column": 34 } } }, "range": [ - 82726, - 82748 + 83663, + 83685 ], "loc": { "start": { - "line": 2743, + "line": 2770, "column": 12 }, "end": { - "line": 2743, + "line": 2770, "column": 34 } } @@ -152876,16 +154178,16 @@ ], "kind": "let", "range": [ - 82637, - 82749 + 83574, + 83686 ], "loc": { "start": { - "line": 2741, + "line": 2768, "column": 8 }, "end": { - "line": 2743, + "line": 2770, "column": 35 } } @@ -152901,16 +154203,16 @@ "type": "Identifier", "name": "i", "range": [ - 82767, - 82768 + 83704, + 83705 ], "loc": { "start": { - "line": 2744, + "line": 2771, "column": 17 }, "end": { - "line": 2744, + "line": 2771, "column": 18 } } @@ -152920,31 +154222,31 @@ "value": 0, "raw": "0", "range": [ - 82771, - 82772 + 83708, + 83709 ], "loc": { "start": { - "line": 2744, + "line": 2771, "column": 21 }, "end": { - "line": 2744, + "line": 2771, "column": 22 } } }, "range": [ - 82767, - 82772 + 83704, + 83709 ], "loc": { "start": { - "line": 2744, + "line": 2771, "column": 17 }, "end": { - "line": 2744, + "line": 2771, "column": 22 } } @@ -152955,16 +154257,16 @@ "type": "Identifier", "name": "len", "range": [ - 82774, - 82777 + 83711, + 83714 ], "loc": { "start": { - "line": 2744, + "line": 2771, "column": 24 }, "end": { - "line": 2744, + "line": 2771, "column": 27 } } @@ -152976,16 +154278,16 @@ "type": "Identifier", "name": "files", "range": [ - 82780, - 82785 + 83717, + 83722 ], "loc": { "start": { - "line": 2744, + "line": 2771, "column": 30 }, "end": { - "line": 2744, + "line": 2771, "column": 35 } } @@ -152994,46 +154296,46 @@ "type": "Identifier", "name": "length", "range": [ - 82786, - 82792 + 83723, + 83729 ], "loc": { "start": { - "line": 2744, + "line": 2771, "column": 36 }, "end": { - "line": 2744, + "line": 2771, "column": 42 } } }, "range": [ - 82780, - 82792 + 83717, + 83729 ], "loc": { "start": { - "line": 2744, + "line": 2771, "column": 30 }, "end": { - "line": 2744, + "line": 2771, "column": 42 } } }, "range": [ - 82774, - 82792 + 83711, + 83729 ], "loc": { "start": { - "line": 2744, + "line": 2771, "column": 24 }, "end": { - "line": 2744, + "line": 2771, "column": 42 } } @@ -153041,16 +154343,16 @@ ], "kind": "let", "range": [ - 82763, - 82792 + 83700, + 83729 ], "loc": { "start": { - "line": 2744, + "line": 2771, "column": 13 }, "end": { - "line": 2744, + "line": 2771, "column": 42 } } @@ -153062,16 +154364,16 @@ "type": "Identifier", "name": "i", "range": [ - 82794, - 82795 + 83731, + 83732 ], "loc": { "start": { - "line": 2744, + "line": 2771, "column": 44 }, "end": { - "line": 2744, + "line": 2771, "column": 45 } } @@ -153080,31 +154382,31 @@ "type": "Identifier", "name": "len", "range": [ - 82798, - 82801 + 83735, + 83738 ], "loc": { "start": { - "line": 2744, + "line": 2771, "column": 48 }, "end": { - "line": 2744, + "line": 2771, "column": 51 } } }, "range": [ - 82794, - 82801 + 83731, + 83738 ], "loc": { "start": { - "line": 2744, + "line": 2771, "column": 44 }, "end": { - "line": 2744, + "line": 2771, "column": 51 } } @@ -153116,32 +154418,32 @@ "type": "Identifier", "name": "i", "range": [ - 82803, - 82804 + 83740, + 83741 ], "loc": { "start": { - "line": 2744, + "line": 2771, "column": 53 }, "end": { - "line": 2744, + "line": 2771, "column": 54 } } }, "prefix": false, "range": [ - 82803, - 82806 + 83740, + 83743 ], "loc": { "start": { - "line": 2744, + "line": 2771, "column": 53 }, "end": { - "line": 2744, + "line": 2771, "column": 56 } } @@ -153157,16 +154459,16 @@ "type": "Identifier", "name": "isUndef", "range": [ - 82826, - 82833 + 83763, + 83770 ], "loc": { "start": { - "line": 2745, + "line": 2772, "column": 16 }, "end": { - "line": 2745, + "line": 2772, "column": 23 } } @@ -153182,16 +154484,16 @@ "type": "Identifier", "name": "files", "range": [ - 82834, - 82839 + 83771, + 83776 ], "loc": { "start": { - "line": 2745, + "line": 2772, "column": 24 }, "end": { - "line": 2745, + "line": 2772, "column": 29 } } @@ -153200,31 +154502,31 @@ "type": "Identifier", "name": "i", "range": [ - 82840, - 82841 + 83777, + 83778 ], "loc": { "start": { - "line": 2745, + "line": 2772, "column": 30 }, "end": { - "line": 2745, + "line": 2772, "column": 31 } } }, "range": [ - 82834, - 82842 + 83771, + 83779 ], "loc": { "start": { - "line": 2745, + "line": 2772, "column": 24 }, "end": { - "line": 2745, + "line": 2772, "column": 32 } } @@ -153233,47 +154535,47 @@ "type": "Identifier", "name": "attr", "range": [ - 82843, - 82847 + 83780, + 83784 ], "loc": { "start": { - "line": 2745, + "line": 2772, "column": 33 }, "end": { - "line": 2745, + "line": 2772, "column": 37 } } }, "range": [ - 82834, - 82848 + 83771, + 83785 ], "loc": { "start": { - "line": 2745, + "line": 2772, "column": 24 }, "end": { - "line": 2745, + "line": 2772, "column": 38 } } } ], "range": [ - 82826, - 82849 + 83763, + 83786 ], "loc": { "start": { - "line": 2745, + "line": 2772, "column": 16 }, "end": { - "line": 2745, + "line": 2772, "column": 39 } } @@ -153285,48 +154587,48 @@ "type": "ContinueStatement", "label": null, "range": [ - 82869, - 82878 + 83806, + 83815 ], "loc": { "start": { - "line": 2746, + "line": 2773, "column": 16 }, "end": { - "line": 2746, + "line": 2773, "column": 25 } } } ], "range": [ - 82851, - 82892 + 83788, + 83829 ], "loc": { "start": { - "line": 2745, + "line": 2772, "column": 41 }, "end": { - "line": 2747, + "line": 2774, "column": 13 } } }, "alternate": null, "range": [ - 82822, - 82892 + 83759, + 83829 ], "loc": { "start": { - "line": 2745, + "line": 2772, "column": 12 }, "end": { - "line": 2747, + "line": 2774, "column": 13 } } @@ -153348,16 +154650,16 @@ "type": "Identifier", "name": "files", "range": [ - 82909, - 82914 + 83846, + 83851 ], "loc": { "start": { - "line": 2748, + "line": 2775, "column": 16 }, "end": { - "line": 2748, + "line": 2775, "column": 21 } } @@ -153366,31 +154668,31 @@ "type": "Identifier", "name": "i", "range": [ - 82915, - 82916 + 83852, + 83853 ], "loc": { "start": { - "line": 2748, + "line": 2775, "column": 22 }, "end": { - "line": 2748, + "line": 2775, "column": 23 } } }, "range": [ - 82909, - 82917 + 83846, + 83854 ], "loc": { "start": { - "line": 2748, + "line": 2775, "column": 16 }, "end": { - "line": 2748, + "line": 2775, "column": 24 } } @@ -153399,31 +154701,31 @@ "type": "Identifier", "name": "attr", "range": [ - 82918, - 82922 + 83855, + 83859 ], "loc": { "start": { - "line": 2748, + "line": 2775, "column": 25 }, "end": { - "line": 2748, + "line": 2775, "column": 29 } } }, "range": [ - 82909, - 82923 + 83846, + 83860 ], "loc": { "start": { - "line": 2748, + "line": 2775, "column": 16 }, "end": { - "line": 2748, + "line": 2775, "column": 30 } } @@ -153432,31 +154734,31 @@ "type": "Identifier", "name": "match", "range": [ - 82924, - 82929 + 83861, + 83866 ], "loc": { "start": { - "line": 2748, + "line": 2775, "column": 31 }, "end": { - "line": 2748, + "line": 2775, "column": 36 } } }, "range": [ - 82909, - 82929 + 83846, + 83866 ], "loc": { "start": { - "line": 2748, + "line": 2775, "column": 16 }, "end": { - "line": 2748, + "line": 2775, "column": 36 } } @@ -153466,32 +154768,32 @@ "type": "Identifier", "name": "filePath", "range": [ - 82930, - 82938 + 83867, + 83875 ], "loc": { "start": { - "line": 2748, + "line": 2775, "column": 37 }, "end": { - "line": 2748, + "line": 2775, "column": 45 } } } ], "range": [ - 82909, - 82939 + 83846, + 83876 ], "loc": { "start": { - "line": 2748, + "line": 2775, "column": 16 }, "end": { - "line": 2748, + "line": 2775, "column": 46 } } @@ -153508,16 +154810,16 @@ "type": "Identifier", "name": "imported", "range": [ - 82959, - 82967 + 83896, + 83904 ], "loc": { "start": { - "line": 2749, + "line": 2776, "column": 16 }, "end": { - "line": 2749, + "line": 2776, "column": 24 } } @@ -153527,46 +154829,46 @@ "value": true, "raw": "true", "range": [ - 82970, - 82974 + 83907, + 83911 ], "loc": { "start": { - "line": 2749, + "line": 2776, "column": 27 }, "end": { - "line": 2749, + "line": 2776, "column": 31 } } }, "range": [ - 82959, - 82974 + 83896, + 83911 ], "loc": { "start": { - "line": 2749, + "line": 2776, "column": 16 }, "end": { - "line": 2749, + "line": 2776, "column": 31 } } }, "range": [ - 82959, - 82975 + 83896, + 83912 ], "loc": { "start": { - "line": 2749, + "line": 2776, "column": 16 }, "end": { - "line": 2749, + "line": 2776, "column": 32 } } @@ -153575,79 +154877,79 @@ "type": "BreakStatement", "label": null, "range": [ - 82992, - 82998 + 83929, + 83935 ], "loc": { "start": { - "line": 2750, + "line": 2777, "column": 16 }, "end": { - "line": 2750, + "line": 2777, "column": 22 } } } ], "range": [ - 82941, - 83012 + 83878, + 83949 ], "loc": { "start": { - "line": 2748, + "line": 2775, "column": 48 }, "end": { - "line": 2751, + "line": 2778, "column": 13 } } }, "alternate": null, "range": [ - 82905, - 83012 + 83842, + 83949 ], "loc": { "start": { - "line": 2748, + "line": 2775, "column": 12 }, "end": { - "line": 2751, + "line": 2778, "column": 13 } } } ], "range": [ - 82808, - 83022 + 83745, + 83959 ], "loc": { "start": { - "line": 2744, + "line": 2771, "column": 58 }, "end": { - "line": 2752, + "line": 2779, "column": 9 } } }, "range": [ - 82758, - 83022 + 83695, + 83959 ], "loc": { "start": { - "line": 2744, + "line": 2771, "column": 8 }, "end": { - "line": 2752, + "line": 2779, "column": 9 } } @@ -153658,47 +154960,47 @@ "type": "Identifier", "name": "imported", "range": [ - 83038, - 83046 + 83975, + 83983 ], "loc": { "start": { - "line": 2753, + "line": 2780, "column": 15 }, "end": { - "line": 2753, + "line": 2780, "column": 23 } } }, "range": [ - 83031, - 83047 + 83968, + 83984 ], "loc": { "start": { - "line": 2753, + "line": 2780, "column": 8 }, "end": { - "line": 2753, + "line": 2780, "column": 24 } } } ], "range": [ - 82627, - 83053 + 83564, + 83990 ], "loc": { "start": { - "line": 2740, + "line": 2767, "column": 42 }, "end": { - "line": 2754, + "line": 2781, "column": 5 } } @@ -153706,16 +155008,16 @@ "generator": false, "expression": false, "range": [ - 82599, - 83053 + 83536, + 83990 ], "loc": { "start": { - "line": 2740, + "line": 2767, "column": 14 }, "end": { - "line": 2754, + "line": 2781, "column": 5 } } @@ -153723,16 +155025,16 @@ "kind": "method", "computed": false, "range": [ - 82589, - 83053 + 83526, + 83990 ], "loc": { "start": { - "line": 2740, + "line": 2767, "column": 4 }, "end": { - "line": 2754, + "line": 2781, "column": 5 } }, @@ -153741,16 +155043,16 @@ "type": "Block", "value": "*\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 ", "range": [ - 82365, - 82584 + 83302, + 83521 ], "loc": { "start": { - "line": 2734, + "line": 2761, "column": 4 }, "end": { - "line": 2739, + "line": 2766, "column": 7 } } @@ -153761,16 +155063,16 @@ "type": "Block", "value": "*\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 ", "range": [ - 83059, - 83318 + 83996, + 84255 ], "loc": { "start": { - "line": 2756, + "line": 2783, "column": 4 }, "end": { - "line": 2762, + "line": 2789, "column": 7 } } @@ -153784,16 +155086,16 @@ "type": "Identifier", "name": "import", "range": [ - 83323, - 83329 + 84260, + 84266 ], "loc": { "start": { - "line": 2763, + "line": 2790, "column": 4 }, "end": { - "line": 2763, + "line": 2790, "column": 10 } } @@ -153806,16 +155108,16 @@ "type": "Identifier", "name": "fileId", "range": [ - 83330, - 83336 + 84267, + 84273 ], "loc": { "start": { - "line": 2763, + "line": 2790, "column": 11 }, "end": { - "line": 2763, + "line": 2790, "column": 17 } } @@ -153824,16 +155126,16 @@ "type": "Identifier", "name": "filePath", "range": [ - 83338, - 83346 + 84275, + 84283 ], "loc": { "start": { - "line": 2763, + "line": 2790, "column": 19 }, "end": { - "line": 2763, + "line": 2790, "column": 27 } } @@ -153842,16 +155144,16 @@ "type": "Identifier", "name": "callback", "range": [ - 83348, - 83356 + 84285, + 84293 ], "loc": { "start": { - "line": 2763, + "line": 2790, "column": 29 }, "end": { - "line": 2763, + "line": 2790, "column": 37 } } @@ -153862,16 +155164,16 @@ "type": "Identifier", "name": "type", "range": [ - 83358, - 83362 + 84295, + 84299 ], "loc": { "start": { - "line": 2763, + "line": 2790, "column": 39 }, "end": { - "line": 2763, + "line": 2790, "column": 43 } } @@ -153881,31 +155183,31 @@ "value": "script", "raw": "'script'", "range": [ - 83365, - 83373 + 84302, + 84310 ], "loc": { "start": { - "line": 2763, + "line": 2790, "column": 46 }, "end": { - "line": 2763, + "line": 2790, "column": 54 } } }, "range": [ - 83358, - 83373 + 84295, + 84310 ], "loc": { "start": { - "line": 2763, + "line": 2790, "column": 39 }, "end": { - "line": 2763, + "line": 2790, "column": 54 } } @@ -153924,16 +155226,16 @@ "object": { "type": "ThisExpression", "range": [ - 83389, - 83393 + 84326, + 84330 ], "loc": { "start": { - "line": 2764, + "line": 2791, "column": 12 }, "end": { - "line": 2764, + "line": 2791, "column": 16 } } @@ -153942,31 +155244,31 @@ "type": "Identifier", "name": "isImported", "range": [ - 83394, - 83404 + 84331, + 84341 ], "loc": { "start": { - "line": 2764, + "line": 2791, "column": 17 }, "end": { - "line": 2764, + "line": 2791, "column": 27 } } }, "range": [ - 83389, - 83404 + 84326, + 84341 ], "loc": { "start": { - "line": 2764, + "line": 2791, "column": 12 }, "end": { - "line": 2764, + "line": 2791, "column": 27 } } @@ -153976,16 +155278,16 @@ "type": "Identifier", "name": "filePath", "range": [ - 83405, - 83413 + 84342, + 84350 ], "loc": { "start": { - "line": 2764, + "line": 2791, "column": 28 }, "end": { - "line": 2764, + "line": 2791, "column": 36 } } @@ -153994,32 +155296,32 @@ "type": "Identifier", "name": "type", "range": [ - 83415, - 83419 + 84352, + 84356 ], "loc": { "start": { - "line": 2764, + "line": 2791, "column": 38 }, "end": { - "line": 2764, + "line": 2791, "column": 42 } } } ], "range": [ - 83389, - 83420 + 84326, + 84357 ], "loc": { "start": { - "line": 2764, + "line": 2791, "column": 12 }, "end": { - "line": 2764, + "line": 2791, "column": 43 } } @@ -154031,48 +155333,48 @@ "type": "ReturnStatement", "argument": null, "range": [ - 83436, - 83443 + 84373, + 84380 ], "loc": { "start": { - "line": 2765, + "line": 2792, "column": 12 }, "end": { - "line": 2765, + "line": 2792, "column": 19 } } } ], "range": [ - 83422, - 83453 + 84359, + 84390 ], "loc": { "start": { - "line": 2764, + "line": 2791, "column": 45 }, "end": { - "line": 2766, + "line": 2793, "column": 9 } } }, "alternate": null, "range": [ - 83385, - 83453 + 84322, + 84390 ], "loc": { "start": { - "line": 2764, + "line": 2791, "column": 8 }, "end": { - "line": 2766, + "line": 2793, "column": 9 } } @@ -154086,16 +155388,16 @@ "type": "Identifier", "name": "o", "range": [ - 83466, - 83467 + 84403, + 84404 ], "loc": { "start": { - "line": 2767, + "line": 2794, "column": 12 }, "end": { - "line": 2767, + "line": 2794, "column": 13 } } @@ -154103,31 +155405,31 @@ "init": { "type": "ThisExpression", "range": [ - 83470, - 83474 + 84407, + 84411 ], "loc": { "start": { - "line": 2767, + "line": 2794, "column": 16 }, "end": { - "line": 2767, + "line": 2794, "column": 20 } } }, "range": [ - 83466, - 83474 + 84403, + 84411 ], "loc": { "start": { - "line": 2767, + "line": 2794, "column": 12 }, "end": { - "line": 2767, + "line": 2794, "column": 20 } } @@ -154138,16 +155440,16 @@ "type": "Identifier", "name": "isLoaded", "range": [ - 83488, - 83496 + 84425, + 84433 ], "loc": { "start": { - "line": 2768, + "line": 2795, "column": 12 }, "end": { - "line": 2768, + "line": 2795, "column": 20 } } @@ -154157,31 +155459,31 @@ "value": false, "raw": "false", "range": [ - 83499, - 83504 + 84436, + 84441 ], "loc": { "start": { - "line": 2768, + "line": 2795, "column": 23 }, "end": { - "line": 2768, + "line": 2795, "column": 28 } } }, "range": [ - 83488, - 83504 + 84425, + 84441 ], "loc": { "start": { - "line": 2768, + "line": 2795, "column": 12 }, "end": { - "line": 2768, + "line": 2795, "column": 28 } } @@ -154192,32 +155494,32 @@ "type": "Identifier", "name": "file", "range": [ - 83518, - 83522 + 84455, + 84459 ], "loc": { "start": { - "line": 2769, + "line": 2796, "column": 12 }, "end": { - "line": 2769, + "line": 2796, "column": 16 } } }, "init": null, "range": [ - 83518, - 83522 + 84455, + 84459 ], "loc": { "start": { - "line": 2769, + "line": 2796, "column": 12 }, "end": { - "line": 2769, + "line": 2796, "column": 16 } } @@ -154228,16 +155530,16 @@ "type": "Identifier", "name": "head", "range": [ - 83536, - 83540 + 84473, + 84477 ], "loc": { "start": { - "line": 2770, + "line": 2797, "column": 12 }, "end": { - "line": 2770, + "line": 2797, "column": 16 } } @@ -154251,16 +155553,16 @@ "type": "Identifier", "name": "tag", "range": [ - 83543, - 83546 + 84480, + 84483 ], "loc": { "start": { - "line": 2770, + "line": 2797, "column": 19 }, "end": { - "line": 2770, + "line": 2797, "column": 22 } } @@ -154270,16 +155572,16 @@ "type": "Identifier", "name": "doc", "range": [ - 83547, - 83550 + 84484, + 84487 ], "loc": { "start": { - "line": 2770, + "line": 2797, "column": 23 }, "end": { - "line": 2770, + "line": 2797, "column": 26 } } @@ -154289,32 +155591,32 @@ "value": "head", "raw": "'head'", "range": [ - 83552, - 83558 + 84489, + 84495 ], "loc": { "start": { - "line": 2770, + "line": 2797, "column": 28 }, "end": { - "line": 2770, + "line": 2797, "column": 34 } } } ], "range": [ - 83543, - 83559 + 84480, + 84496 ], "loc": { "start": { - "line": 2770, + "line": 2797, "column": 19 }, "end": { - "line": 2770, + "line": 2797, "column": 35 } } @@ -154324,46 +155626,46 @@ "value": 0, "raw": "0", "range": [ - 83560, - 83561 + 84497, + 84498 ], "loc": { "start": { - "line": 2770, + "line": 2797, "column": 36 }, "end": { - "line": 2770, + "line": 2797, "column": 37 } } }, "range": [ - 83543, - 83562 + 84480, + 84499 ], "loc": { "start": { - "line": 2770, + "line": 2797, "column": 19 }, "end": { - "line": 2770, + "line": 2797, "column": 38 } } }, "range": [ - 83536, - 83562 + 84473, + 84499 ], "loc": { "start": { - "line": 2770, + "line": 2797, "column": 12 }, "end": { - "line": 2770, + "line": 2797, "column": 38 } } @@ -154371,16 +155673,16 @@ ], "kind": "let", "range": [ - 83462, - 83563 + 84399, + 84500 ], "loc": { "start": { - "line": 2767, + "line": 2794, "column": 8 }, "end": { - "line": 2770, + "line": 2797, "column": 39 } } @@ -154399,16 +155701,16 @@ "type": "Identifier", "name": "type", "range": [ - 83577, - 83581 + 84514, + 84518 ], "loc": { "start": { - "line": 2772, + "line": 2799, "column": 12 }, "end": { - "line": 2772, + "line": 2799, "column": 16 } } @@ -154417,47 +155719,47 @@ "type": "Identifier", "name": "toLowerCase", "range": [ - 83582, - 83593 + 84519, + 84530 ], "loc": { "start": { - "line": 2772, + "line": 2799, "column": 17 }, "end": { - "line": 2772, + "line": 2799, "column": 28 } } }, "range": [ - 83577, - 83593 + 84514, + 84530 ], "loc": { "start": { - "line": 2772, + "line": 2799, "column": 12 }, "end": { - "line": 2772, + "line": 2799, "column": 28 } } }, "arguments": [], "range": [ - 83577, - 83595 + 84514, + 84532 ], "loc": { "start": { - "line": 2772, + "line": 2799, "column": 12 }, "end": { - "line": 2772, + "line": 2799, "column": 30 } } @@ -154467,31 +155769,31 @@ "value": "link", "raw": "'link'", "range": [ - 83600, - 83606 + 84537, + 84543 ], "loc": { "start": { - "line": 2772, + "line": 2799, "column": 35 }, "end": { - "line": 2772, + "line": 2799, "column": 41 } } }, "range": [ - 83577, - 83606 + 84514, + 84543 ], "loc": { "start": { - "line": 2772, + "line": 2799, "column": 12 }, "end": { - "line": 2772, + "line": 2799, "column": 41 } } @@ -154508,16 +155810,16 @@ "type": "Identifier", "name": "file", "range": [ - 83622, - 83626 + 84559, + 84563 ], "loc": { "start": { - "line": 2773, + "line": 2800, "column": 12 }, "end": { - "line": 2773, + "line": 2800, "column": 16 } } @@ -154528,16 +155830,16 @@ "type": "Identifier", "name": "createElm", "range": [ - 83629, - 83638 + 84566, + 84575 ], "loc": { "start": { - "line": 2773, + "line": 2800, "column": 19 }, "end": { - "line": 2773, + "line": 2800, "column": 28 } } @@ -154548,16 +155850,16 @@ "value": "link", "raw": "'link'", "range": [ - 83639, - 83645 + 84576, + 84582 ], "loc": { "start": { - "line": 2773, + "line": 2800, "column": 29 }, "end": { - "line": 2773, + "line": 2800, "column": 35 } } @@ -154570,16 +155872,16 @@ "value": "id", "raw": "'id'", "range": [ - 83664, - 83668 + 84601, + 84605 ], "loc": { "start": { - "line": 2774, + "line": 2801, "column": 17 }, "end": { - "line": 2774, + "line": 2801, "column": 21 } } @@ -154588,32 +155890,32 @@ "type": "Identifier", "name": "fileId", "range": [ - 83670, - 83676 + 84607, + 84613 ], "loc": { "start": { - "line": 2774, + "line": 2801, "column": 23 }, "end": { - "line": 2774, + "line": 2801, "column": 29 } } } ], "range": [ - 83663, - 83677 + 84600, + 84614 ], "loc": { "start": { - "line": 2774, + "line": 2801, "column": 16 }, "end": { - "line": 2774, + "line": 2801, "column": 30 } } @@ -154626,16 +155928,16 @@ "value": "type", "raw": "'type'", "range": [ - 83680, - 83686 + 84617, + 84623 ], "loc": { "start": { - "line": 2774, + "line": 2801, "column": 33 }, "end": { - "line": 2774, + "line": 2801, "column": 39 } } @@ -154645,32 +155947,32 @@ "value": "text/css", "raw": "'text/css'", "range": [ - 83688, - 83698 + 84625, + 84635 ], "loc": { "start": { - "line": 2774, + "line": 2801, "column": 41 }, "end": { - "line": 2774, + "line": 2801, "column": 51 } } } ], "range": [ - 83679, - 83699 + 84616, + 84636 ], "loc": { "start": { - "line": 2774, + "line": 2801, "column": 32 }, "end": { - "line": 2774, + "line": 2801, "column": 52 } } @@ -154683,16 +155985,16 @@ "value": "rel", "raw": "'rel'", "range": [ - 83718, - 83723 + 84655, + 84660 ], "loc": { "start": { - "line": 2775, + "line": 2802, "column": 17 }, "end": { - "line": 2775, + "line": 2802, "column": 22 } } @@ -154702,32 +156004,32 @@ "value": "stylesheet", "raw": "'stylesheet'", "range": [ - 83725, - 83737 + 84662, + 84674 ], "loc": { "start": { - "line": 2775, + "line": 2802, "column": 24 }, "end": { - "line": 2775, + "line": 2802, "column": 36 } } } ], "range": [ - 83717, - 83738 + 84654, + 84675 ], "loc": { "start": { - "line": 2775, + "line": 2802, "column": 16 }, "end": { - "line": 2775, + "line": 2802, "column": 37 } } @@ -154740,16 +156042,16 @@ "value": "href", "raw": "'href'", "range": [ - 83741, - 83747 + 84678, + 84684 ], "loc": { "start": { - "line": 2775, + "line": 2802, "column": 40 }, "end": { - "line": 2775, + "line": 2802, "column": 46 } } @@ -154758,94 +156060,94 @@ "type": "Identifier", "name": "filePath", "range": [ - 83749, - 83757 + 84686, + 84694 ], "loc": { "start": { - "line": 2775, + "line": 2802, "column": 48 }, "end": { - "line": 2775, + "line": 2802, "column": 56 } } } ], "range": [ - 83740, - 83758 + 84677, + 84695 ], "loc": { "start": { - "line": 2775, + "line": 2802, "column": 39 }, "end": { - "line": 2775, + "line": 2802, "column": 57 } } } ], "range": [ - 83629, - 83772 + 84566, + 84709 ], "loc": { "start": { - "line": 2773, + "line": 2800, "column": 19 }, "end": { - "line": 2776, + "line": 2803, "column": 13 } } }, "range": [ - 83622, - 83772 + 84559, + 84709 ], "loc": { "start": { - "line": 2773, + "line": 2800, "column": 12 }, "end": { - "line": 2776, + "line": 2803, "column": 13 } } }, "range": [ - 83622, - 83773 + 84559, + 84710 ], "loc": { "start": { - "line": 2773, + "line": 2800, "column": 12 }, "end": { - "line": 2776, + "line": 2803, "column": 14 } } } ], "range": [ - 83608, - 83783 + 84545, + 84720 ], "loc": { "start": { - "line": 2772, + "line": 2799, "column": 43 }, "end": { - "line": 2777, + "line": 2804, "column": 9 } } @@ -154862,16 +156164,16 @@ "type": "Identifier", "name": "file", "range": [ - 83803, - 83807 + 84740, + 84744 ], "loc": { "start": { - "line": 2778, + "line": 2805, "column": 12 }, "end": { - "line": 2778, + "line": 2805, "column": 16 } } @@ -154882,16 +156184,16 @@ "type": "Identifier", "name": "createElm", "range": [ - 83810, - 83819 + 84747, + 84756 ], "loc": { "start": { - "line": 2778, + "line": 2805, "column": 19 }, "end": { - "line": 2778, + "line": 2805, "column": 28 } } @@ -154902,16 +156204,16 @@ "value": "script", "raw": "'script'", "range": [ - 83820, - 83828 + 84757, + 84765 ], "loc": { "start": { - "line": 2778, + "line": 2805, "column": 29 }, "end": { - "line": 2778, + "line": 2805, "column": 37 } } @@ -154924,16 +156226,16 @@ "value": "id", "raw": "'id'", "range": [ - 83847, - 83851 + 84784, + 84788 ], "loc": { "start": { - "line": 2779, + "line": 2806, "column": 17 }, "end": { - "line": 2779, + "line": 2806, "column": 21 } } @@ -154942,32 +156244,32 @@ "type": "Identifier", "name": "fileId", "range": [ - 83853, - 83859 + 84790, + 84796 ], "loc": { "start": { - "line": 2779, + "line": 2806, "column": 23 }, "end": { - "line": 2779, + "line": 2806, "column": 29 } } } ], "range": [ - 83846, - 83860 + 84783, + 84797 ], "loc": { "start": { - "line": 2779, + "line": 2806, "column": 16 }, "end": { - "line": 2779, + "line": 2806, "column": 30 } } @@ -154980,16 +156282,16 @@ "value": "type", "raw": "'type'", "range": [ - 83879, - 83885 + 84816, + 84822 ], "loc": { "start": { - "line": 2780, + "line": 2807, "column": 17 }, "end": { - "line": 2780, + "line": 2807, "column": 23 } } @@ -154999,32 +156301,32 @@ "value": "text/javascript", "raw": "'text/javascript'", "range": [ - 83887, - 83904 + 84824, + 84841 ], "loc": { "start": { - "line": 2780, + "line": 2807, "column": 25 }, "end": { - "line": 2780, + "line": 2807, "column": 42 } } } ], "range": [ - 83878, - 83905 + 84815, + 84842 ], "loc": { "start": { - "line": 2780, + "line": 2807, "column": 16 }, "end": { - "line": 2780, + "line": 2807, "column": 43 } } @@ -155037,16 +156339,16 @@ "value": "src", "raw": "'src'", "range": [ - 83908, - 83913 + 84845, + 84850 ], "loc": { "start": { - "line": 2780, + "line": 2807, "column": 46 }, "end": { - "line": 2780, + "line": 2807, "column": 51 } } @@ -155055,109 +156357,109 @@ "type": "Identifier", "name": "filePath", "range": [ - 83915, - 83923 + 84852, + 84860 ], "loc": { "start": { - "line": 2780, + "line": 2807, "column": 53 }, "end": { - "line": 2780, + "line": 2807, "column": 61 } } } ], "range": [ - 83907, - 83924 + 84844, + 84861 ], "loc": { "start": { - "line": 2780, + "line": 2807, "column": 45 }, "end": { - "line": 2780, + "line": 2807, "column": 62 } } } ], "range": [ - 83810, - 83938 + 84747, + 84875 ], "loc": { "start": { - "line": 2778, + "line": 2805, "column": 19 }, "end": { - "line": 2781, + "line": 2808, "column": 13 } } }, "range": [ - 83803, - 83938 + 84740, + 84875 ], "loc": { "start": { - "line": 2778, + "line": 2805, "column": 12 }, "end": { - "line": 2781, + "line": 2808, "column": 13 } } }, "range": [ - 83803, - 83939 + 84740, + 84876 ], "loc": { "start": { - "line": 2778, + "line": 2805, "column": 12 }, "end": { - "line": 2781, + "line": 2808, "column": 14 } } } ], "range": [ - 83789, - 83949 + 84726, + 84886 ], "loc": { "start": { - "line": 2777, + "line": 2804, "column": 15 }, "end": { - "line": 2782, + "line": 2809, "column": 9 } } }, "range": [ - 83573, - 83949 + 84510, + 84886 ], "loc": { "start": { - "line": 2772, + "line": 2799, "column": 8 }, "end": { - "line": 2782, + "line": 2809, "column": 9 } }, @@ -155166,16 +156468,16 @@ "type": "Line", "value": "Browser <> IE onload event works only for scripts, not for stylesheets", "range": [ - 83959, - 84031 + 84896, + 84968 ], "loc": { "start": { - "line": 2784, + "line": 2811, "column": 8 }, "end": { - "line": 2784, + "line": 2811, "column": 80 } } @@ -155194,16 +156496,16 @@ "type": "Identifier", "name": "file", "range": [ - 84040, - 84044 + 84977, + 84981 ], "loc": { "start": { - "line": 2785, + "line": 2812, "column": 8 }, "end": { - "line": 2785, + "line": 2812, "column": 12 } } @@ -155212,31 +156514,31 @@ "type": "Identifier", "name": "onload", "range": [ - 84045, - 84051 + 84982, + 84988 ], "loc": { "start": { - "line": 2785, + "line": 2812, "column": 13 }, "end": { - "line": 2785, + "line": 2812, "column": 19 } } }, "range": [ - 84040, - 84051 + 84977, + 84988 ], "loc": { "start": { - "line": 2785, + "line": 2812, "column": 8 }, "end": { - "line": 2785, + "line": 2812, "column": 19 } } @@ -155251,16 +156553,16 @@ "type": "Identifier", "name": "file", "range": [ - 84054, - 84058 + 84991, + 84995 ], "loc": { "start": { - "line": 2785, + "line": 2812, "column": 22 }, "end": { - "line": 2785, + "line": 2812, "column": 26 } } @@ -155269,31 +156571,31 @@ "type": "Identifier", "name": "onreadystatechange", "range": [ - 84059, - 84077 + 84996, + 85014 ], "loc": { "start": { - "line": 2785, + "line": 2812, "column": 27 }, "end": { - "line": 2785, + "line": 2812, "column": 45 } } }, "range": [ - 84054, - 84077 + 84991, + 85014 ], "loc": { "start": { - "line": 2785, + "line": 2812, "column": 22 }, "end": { - "line": 2785, + "line": 2812, "column": 45 } } @@ -155317,32 +156619,32 @@ "type": "Identifier", "name": "isLoaded", "range": [ - 84105, - 84113 + 85042, + 85050 ], "loc": { "start": { - "line": 2786, + "line": 2813, "column": 17 }, "end": { - "line": 2786, + "line": 2813, "column": 25 } } }, "prefix": true, "range": [ - 84104, - 84113 + 85041, + 85050 ], "loc": { "start": { - "line": 2786, + "line": 2813, "column": 16 }, "end": { - "line": 2786, + "line": 2813, "column": 25 } } @@ -155362,16 +156664,16 @@ "object": { "type": "ThisExpression", "range": [ - 84135, - 84139 + 85072, + 85076 ], "loc": { "start": { - "line": 2787, + "line": 2814, "column": 18 }, "end": { - "line": 2787, + "line": 2814, "column": 22 } } @@ -155380,47 +156682,47 @@ "type": "Identifier", "name": "readyState", "range": [ - 84140, - 84150 + 85077, + 85087 ], "loc": { "start": { - "line": 2787, + "line": 2814, "column": 23 }, "end": { - "line": 2787, + "line": 2814, "column": 33 } } }, "range": [ - 84135, - 84150 + 85072, + 85087 ], "loc": { "start": { - "line": 2787, + "line": 2814, "column": 18 }, "end": { - "line": 2787, + "line": 2814, "column": 33 } } }, "prefix": true, "range": [ - 84134, - 84150 + 85071, + 85087 ], "loc": { "start": { - "line": 2787, + "line": 2814, "column": 17 }, "end": { - "line": 2787, + "line": 2814, "column": 33 } } @@ -155434,16 +156736,16 @@ "object": { "type": "ThisExpression", "range": [ - 84154, - 84158 + 85091, + 85095 ], "loc": { "start": { - "line": 2787, + "line": 2814, "column": 37 }, "end": { - "line": 2787, + "line": 2814, "column": 41 } } @@ -155452,31 +156754,31 @@ "type": "Identifier", "name": "readyState", "range": [ - 84159, - 84169 + 85096, + 85106 ], "loc": { "start": { - "line": 2787, + "line": 2814, "column": 42 }, "end": { - "line": 2787, + "line": 2814, "column": 52 } } }, "range": [ - 84154, - 84169 + 85091, + 85106 ], "loc": { "start": { - "line": 2787, + "line": 2814, "column": 37 }, "end": { - "line": 2787, + "line": 2814, "column": 52 } } @@ -155486,46 +156788,46 @@ "value": "loaded", "raw": "'loaded'", "range": [ - 84174, - 84182 + 85111, + 85119 ], "loc": { "start": { - "line": 2787, + "line": 2814, "column": 57 }, "end": { - "line": 2787, + "line": 2814, "column": 65 } } }, "range": [ - 84154, - 84182 + 85091, + 85119 ], "loc": { "start": { - "line": 2787, + "line": 2814, "column": 37 }, "end": { - "line": 2787, + "line": 2814, "column": 65 } } }, "range": [ - 84134, - 84182 + 85071, + 85119 ], "loc": { "start": { - "line": 2787, + "line": 2814, "column": 17 }, "end": { - "line": 2787, + "line": 2814, "column": 65 } } @@ -155539,16 +156841,16 @@ "object": { "type": "ThisExpression", "range": [ - 84206, - 84210 + 85143, + 85147 ], "loc": { "start": { - "line": 2788, + "line": 2815, "column": 20 }, "end": { - "line": 2788, + "line": 2815, "column": 24 } } @@ -155557,31 +156859,31 @@ "type": "Identifier", "name": "readyState", "range": [ - 84211, - 84221 + 85148, + 85158 ], "loc": { "start": { - "line": 2788, + "line": 2815, "column": 25 }, "end": { - "line": 2788, + "line": 2815, "column": 35 } } }, "range": [ - 84206, - 84221 + 85143, + 85158 ], "loc": { "start": { - "line": 2788, + "line": 2815, "column": 20 }, "end": { - "line": 2788, + "line": 2815, "column": 35 } } @@ -155591,61 +156893,61 @@ "value": "complete", "raw": "'complete'", "range": [ - 84226, - 84236 + 85163, + 85173 ], "loc": { "start": { - "line": 2788, + "line": 2815, "column": 40 }, "end": { - "line": 2788, + "line": 2815, "column": 50 } } }, "range": [ - 84206, - 84236 + 85143, + 85173 ], "loc": { "start": { - "line": 2788, + "line": 2815, "column": 20 }, "end": { - "line": 2788, + "line": 2815, "column": 50 } } }, "range": [ - 84134, - 84236 + 85071, + 85173 ], "loc": { "start": { - "line": 2787, + "line": 2814, "column": 17 }, "end": { - "line": 2788, + "line": 2815, "column": 50 } } }, "range": [ - 84104, - 84237 + 85041, + 85174 ], "loc": { "start": { - "line": 2786, + "line": 2813, "column": 16 }, "end": { - "line": 2788, + "line": 2815, "column": 51 } } @@ -155662,16 +156964,16 @@ "type": "Identifier", "name": "isLoaded", "range": [ - 84257, - 84265 + 85194, + 85202 ], "loc": { "start": { - "line": 2789, + "line": 2816, "column": 16 }, "end": { - "line": 2789, + "line": 2816, "column": 24 } } @@ -155681,46 +156983,46 @@ "value": true, "raw": "true", "range": [ - 84268, - 84272 + 85205, + 85209 ], "loc": { "start": { - "line": 2789, + "line": 2816, "column": 27 }, "end": { - "line": 2789, + "line": 2816, "column": 31 } } }, "range": [ - 84257, - 84272 + 85194, + 85209 ], "loc": { "start": { - "line": 2789, + "line": 2816, "column": 16 }, "end": { - "line": 2789, + "line": 2816, "column": 31 } } }, "range": [ - 84257, - 84273 + 85194, + 85210 ], "loc": { "start": { - "line": 2789, + "line": 2816, "column": 16 }, "end": { - "line": 2789, + "line": 2816, "column": 32 } } @@ -155737,32 +157039,32 @@ "type": "Identifier", "name": "callback", "range": [ - 84301, - 84309 + 85238, + 85246 ], "loc": { "start": { - "line": 2790, + "line": 2817, "column": 27 }, "end": { - "line": 2790, + "line": 2817, "column": 35 } } }, "prefix": true, "range": [ - 84294, - 84309 + 85231, + 85246 ], "loc": { "start": { - "line": 2790, + "line": 2817, "column": 20 }, "end": { - "line": 2790, + "line": 2817, "column": 35 } } @@ -155772,31 +157074,31 @@ "value": "function", "raw": "'function'", "range": [ - 84314, - 84324 + 85251, + 85261 ], "loc": { "start": { - "line": 2790, + "line": 2817, "column": 40 }, "end": { - "line": 2790, + "line": 2817, "column": 50 } } }, "range": [ - 84294, - 84324 + 85231, + 85261 ], "loc": { "start": { - "line": 2790, + "line": 2817, "column": 20 }, "end": { - "line": 2790, + "line": 2817, "column": 50 } } @@ -155815,16 +157117,16 @@ "type": "Identifier", "name": "callback", "range": [ - 84348, - 84356 + 85285, + 85293 ], "loc": { "start": { - "line": 2791, + "line": 2818, "column": 20 }, "end": { - "line": 2791, + "line": 2818, "column": 28 } } @@ -155833,31 +157135,31 @@ "type": "Identifier", "name": "call", "range": [ - 84357, - 84361 + 85294, + 85298 ], "loc": { "start": { - "line": 2791, + "line": 2818, "column": 29 }, "end": { - "line": 2791, + "line": 2818, "column": 33 } } }, "range": [ - 84348, - 84361 + 85285, + 85298 ], "loc": { "start": { - "line": 2791, + "line": 2818, "column": 20 }, "end": { - "line": 2791, + "line": 2818, "column": 33 } } @@ -155868,16 +157170,16 @@ "value": null, "raw": "null", "range": [ - 84362, - 84366 + 85299, + 85303 ], "loc": { "start": { - "line": 2791, + "line": 2818, "column": 34 }, "end": { - "line": 2791, + "line": 2818, "column": 38 } } @@ -155886,127 +157188,127 @@ "type": "Identifier", "name": "o", "range": [ - 84368, - 84369 + 85305, + 85306 ], "loc": { "start": { - "line": 2791, + "line": 2818, "column": 40 }, "end": { - "line": 2791, + "line": 2818, "column": 41 } } } ], "range": [ - 84348, - 84370 + 85285, + 85307 ], "loc": { "start": { - "line": 2791, + "line": 2818, "column": 20 }, "end": { - "line": 2791, + "line": 2818, "column": 42 } } }, "range": [ - 84348, - 84371 + 85285, + 85308 ], "loc": { "start": { - "line": 2791, + "line": 2818, "column": 20 }, "end": { - "line": 2791, + "line": 2818, "column": 43 } } } ], "range": [ - 84326, - 84389 + 85263, + 85326 ], "loc": { "start": { - "line": 2790, + "line": 2817, "column": 52 }, "end": { - "line": 2792, + "line": 2819, "column": 17 } } }, "alternate": null, "range": [ - 84290, - 84389 + 85227, + 85326 ], "loc": { "start": { - "line": 2790, + "line": 2817, "column": 16 }, "end": { - "line": 2792, + "line": 2819, "column": 17 } } } ], "range": [ - 84239, - 84403 + 85176, + 85340 ], "loc": { "start": { - "line": 2788, + "line": 2815, "column": 53 }, "end": { - "line": 2793, + "line": 2820, "column": 13 } } }, "alternate": null, "range": [ - 84100, - 84403 + 85037, + 85340 ], "loc": { "start": { - "line": 2786, + "line": 2813, "column": 12 }, "end": { - "line": 2793, + "line": 2820, "column": 13 } } } ], "range": [ - 84086, - 84413 + 85023, + 85350 ], "loc": { "start": { - "line": 2785, + "line": 2812, "column": 54 }, "end": { - "line": 2794, + "line": 2821, "column": 9 } } @@ -156014,61 +157316,61 @@ "generator": false, "expression": false, "range": [ - 84080, - 84413 + 85017, + 85350 ], "loc": { "start": { - "line": 2785, + "line": 2812, "column": 48 }, "end": { - "line": 2794, + "line": 2821, "column": 9 } } }, "range": [ - 84054, - 84413 + 84991, + 85350 ], "loc": { "start": { - "line": 2785, + "line": 2812, "column": 22 }, "end": { - "line": 2794, + "line": 2821, "column": 9 } } }, "range": [ - 84040, - 84413 + 84977, + 85350 ], "loc": { "start": { - "line": 2785, + "line": 2812, "column": 8 }, "end": { - "line": 2794, + "line": 2821, "column": 9 } } }, "range": [ - 84040, - 84414 + 84977, + 85351 ], "loc": { "start": { - "line": 2785, + "line": 2812, "column": 8 }, "end": { - "line": 2794, + "line": 2821, "column": 10 } }, @@ -156077,16 +157379,16 @@ "type": "Line", "value": "Browser <> IE onload event works only for scripts, not for stylesheets", "range": [ - 83959, - 84031 + 84896, + 84968 ], "loc": { "start": { - "line": 2784, + "line": 2811, "column": 8 }, "end": { - "line": 2784, + "line": 2811, "column": 80 } } @@ -156105,16 +157407,16 @@ "type": "Identifier", "name": "file", "range": [ - 84423, - 84427 + 85360, + 85364 ], "loc": { "start": { - "line": 2795, + "line": 2822, "column": 8 }, "end": { - "line": 2795, + "line": 2822, "column": 12 } } @@ -156123,31 +157425,31 @@ "type": "Identifier", "name": "onerror", "range": [ - 84428, - 84435 + 85365, + 85372 ], "loc": { "start": { - "line": 2795, + "line": 2822, "column": 13 }, "end": { - "line": 2795, + "line": 2822, "column": 20 } } }, "range": [ - 84423, - 84435 + 85360, + 85372 ], "loc": { "start": { - "line": 2795, + "line": 2822, "column": 8 }, "end": { - "line": 2795, + "line": 2822, "column": 20 } } @@ -156167,16 +157469,16 @@ "type": "Identifier", "name": "Error", "range": [ - 84474, - 84479 + 85411, + 85416 ], "loc": { "start": { - "line": 2796, + "line": 2823, "column": 22 }, "end": { - "line": 2796, + "line": 2823, "column": 27 } } @@ -156193,16 +157495,16 @@ }, "tail": false, "range": [ - 84480, - 84511 + 85417, + 85448 ], "loc": { "start": { - "line": 2796, + "line": 2823, "column": 28 }, "end": { - "line": 2796, + "line": 2823, "column": 59 } } @@ -156215,16 +157517,16 @@ }, "tail": true, "range": [ - 84519, - 84521 + 85456, + 85458 ], "loc": { "start": { - "line": 2796, + "line": 2823, "column": 67 }, "end": { - "line": 2796, + "line": 2823, "column": 69 } } @@ -156235,79 +157537,79 @@ "type": "Identifier", "name": "filePath", "range": [ - 84511, - 84519 + 85448, + 85456 ], "loc": { "start": { - "line": 2796, + "line": 2823, "column": 59 }, "end": { - "line": 2796, + "line": 2823, "column": 67 } } } ], "range": [ - 84480, - 84521 + 85417, + 85458 ], "loc": { "start": { - "line": 2796, + "line": 2823, "column": 28 }, "end": { - "line": 2796, + "line": 2823, "column": 69 } } } ], "range": [ - 84470, - 84522 + 85407, + 85459 ], "loc": { "start": { - "line": 2796, + "line": 2823, "column": 18 }, "end": { - "line": 2796, + "line": 2823, "column": 70 } } }, "range": [ - 84464, - 84523 + 85401, + 85460 ], "loc": { "start": { - "line": 2796, + "line": 2823, "column": 12 }, "end": { - "line": 2796, + "line": 2823, "column": 71 } } } ], "range": [ - 84450, - 84533 + 85387, + 85470 ], "loc": { "start": { - "line": 2795, + "line": 2822, "column": 35 }, "end": { - "line": 2797, + "line": 2824, "column": 9 } } @@ -156315,46 +157617,46 @@ "generator": false, "expression": false, "range": [ - 84438, - 84533 + 85375, + 85470 ], "loc": { "start": { - "line": 2795, + "line": 2822, "column": 23 }, "end": { - "line": 2797, + "line": 2824, "column": 9 } } }, "range": [ - 84423, - 84533 + 85360, + 85470 ], "loc": { "start": { - "line": 2795, + "line": 2822, "column": 8 }, "end": { - "line": 2797, + "line": 2824, "column": 9 } } }, "range": [ - 84423, - 84534 + 85360, + 85471 ], "loc": { "start": { - "line": 2795, + "line": 2822, "column": 8 }, "end": { - "line": 2797, + "line": 2824, "column": 10 } } @@ -156370,16 +157672,16 @@ "type": "Identifier", "name": "head", "range": [ - 84543, - 84547 + 85480, + 85484 ], "loc": { "start": { - "line": 2798, + "line": 2825, "column": 8 }, "end": { - "line": 2798, + "line": 2825, "column": 12 } } @@ -156388,31 +157690,31 @@ "type": "Identifier", "name": "appendChild", "range": [ - 84548, - 84559 + 85485, + 85496 ], "loc": { "start": { - "line": 2798, + "line": 2825, "column": 13 }, "end": { - "line": 2798, + "line": 2825, "column": 24 } } }, "range": [ - 84543, - 84559 + 85480, + 85496 ], "loc": { "start": { - "line": 2798, + "line": 2825, "column": 8 }, "end": { - "line": 2798, + "line": 2825, "column": 24 } } @@ -156422,63 +157724,63 @@ "type": "Identifier", "name": "file", "range": [ - 84560, - 84564 + 85497, + 85501 ], "loc": { "start": { - "line": 2798, + "line": 2825, "column": 25 }, "end": { - "line": 2798, + "line": 2825, "column": 29 } } } ], "range": [ - 84543, - 84565 + 85480, + 85502 ], "loc": { "start": { - "line": 2798, + "line": 2825, "column": 8 }, "end": { - "line": 2798, + "line": 2825, "column": 30 } } }, "range": [ - 84543, - 84566 + 85480, + 85503 ], "loc": { "start": { - "line": 2798, + "line": 2825, "column": 8 }, "end": { - "line": 2798, + "line": 2825, "column": 31 } } } ], "range": [ - 83375, - 84572 + 84312, + 85509 ], "loc": { "start": { - "line": 2763, + "line": 2790, "column": 56 }, "end": { - "line": 2799, + "line": 2826, "column": 5 } } @@ -156486,16 +157788,16 @@ "generator": false, "expression": false, "range": [ - 83329, - 84572 + 84266, + 85509 ], "loc": { "start": { - "line": 2763, + "line": 2790, "column": 10 }, "end": { - "line": 2799, + "line": 2826, "column": 5 } } @@ -156503,16 +157805,16 @@ "kind": "method", "computed": false, "range": [ - 83323, - 84572 + 84260, + 85509 ], "loc": { "start": { - "line": 2763, + "line": 2790, "column": 4 }, "end": { - "line": 2799, + "line": 2826, "column": 5 } }, @@ -156521,16 +157823,16 @@ "type": "Block", "value": "*\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 ", "range": [ - 83059, - 83318 + 83996, + 84255 ], "loc": { "start": { - "line": 2756, + "line": 2783, "column": 4 }, "end": { - "line": 2762, + "line": 2789, "column": 7 } } @@ -156541,16 +157843,16 @@ "type": "Block", "value": "*\n * Check if table has filters grid\n * @return {Boolean}\n ", "range": [ - 84578, - 84653 + 85515, + 85590 ], "loc": { "start": { - "line": 2801, + "line": 2828, "column": 4 }, "end": { - "line": 2804, + "line": 2831, "column": 7 } } @@ -156564,16 +157866,16 @@ "type": "Identifier", "name": "isInitialized", "range": [ - 84658, - 84671 + 85595, + 85608 ], "loc": { "start": { - "line": 2805, + "line": 2832, "column": 4 }, "end": { - "line": 2805, + "line": 2832, "column": 17 } } @@ -156593,16 +157895,16 @@ "object": { "type": "ThisExpression", "range": [ - 84691, - 84695 + 85628, + 85632 ], "loc": { "start": { - "line": 2806, + "line": 2833, "column": 15 }, "end": { - "line": 2806, + "line": 2833, "column": 19 } } @@ -156611,62 +157913,62 @@ "type": "Identifier", "name": "initialized", "range": [ - 84696, - 84707 + 85633, + 85644 ], "loc": { "start": { - "line": 2806, + "line": 2833, "column": 20 }, "end": { - "line": 2806, + "line": 2833, "column": 31 } } }, "range": [ - 84691, - 84707 + 85628, + 85644 ], "loc": { "start": { - "line": 2806, + "line": 2833, "column": 15 }, "end": { - "line": 2806, + "line": 2833, "column": 31 } } }, "range": [ - 84684, - 84708 + 85621, + 85645 ], "loc": { "start": { - "line": 2806, + "line": 2833, "column": 8 }, "end": { - "line": 2806, + "line": 2833, "column": 32 } } } ], "range": [ - 84674, - 84714 + 85611, + 85651 ], "loc": { "start": { - "line": 2805, + "line": 2832, "column": 20 }, "end": { - "line": 2807, + "line": 2834, "column": 5 } } @@ -156674,16 +157976,16 @@ "generator": false, "expression": false, "range": [ - 84671, - 84714 + 85608, + 85651 ], "loc": { "start": { - "line": 2805, + "line": 2832, "column": 17 }, "end": { - "line": 2807, + "line": 2834, "column": 5 } } @@ -156691,16 +157993,16 @@ "kind": "method", "computed": false, "range": [ - 84658, - 84714 + 85595, + 85651 ], "loc": { "start": { - "line": 2805, + "line": 2832, "column": 4 }, "end": { - "line": 2807, + "line": 2834, "column": 5 } }, @@ -156709,16 +158011,16 @@ "type": "Block", "value": "*\n * Check if table has filters grid\n * @return {Boolean}\n ", "range": [ - 84578, - 84653 + 85515, + 85590 ], "loc": { "start": { - "line": 2801, + "line": 2828, "column": 4 }, "end": { - "line": 2804, + "line": 2831, "column": 7 } } @@ -156729,16 +158031,16 @@ "type": "Block", "value": "*\n * Get list of filter IDs\n * @return {[type]} [description]\n ", "range": [ - 84720, - 84799 + 85657, + 85736 ], "loc": { "start": { - "line": 2809, + "line": 2836, "column": 4 }, "end": { - "line": 2812, + "line": 2839, "column": 7 } } @@ -156752,16 +158054,16 @@ "type": "Identifier", "name": "getFiltersId", "range": [ - 84804, - 84816 + 85741, + 85753 ], "loc": { "start": { - "line": 2813, + "line": 2840, "column": 4 }, "end": { - "line": 2813, + "line": 2840, "column": 16 } } @@ -156784,16 +158086,16 @@ "object": { "type": "ThisExpression", "range": [ - 84836, - 84840 + 85773, + 85777 ], "loc": { "start": { - "line": 2814, + "line": 2841, "column": 15 }, "end": { - "line": 2814, + "line": 2841, "column": 19 } } @@ -156802,31 +158104,31 @@ "type": "Identifier", "name": "fltIds", "range": [ - 84841, - 84847 + 85778, + 85784 ], "loc": { "start": { - "line": 2814, + "line": 2841, "column": 20 }, "end": { - "line": 2814, + "line": 2841, "column": 26 } } }, "range": [ - 84836, - 84847 + 85773, + 85784 ], "loc": { "start": { - "line": 2814, + "line": 2841, "column": 15 }, "end": { - "line": 2814, + "line": 2841, "column": 26 } } @@ -156835,62 +158137,62 @@ "type": "ArrayExpression", "elements": [], "range": [ - 84851, - 84853 + 85788, + 85790 ], "loc": { "start": { - "line": 2814, + "line": 2841, "column": 30 }, "end": { - "line": 2814, + "line": 2841, "column": 32 } } }, "range": [ - 84836, - 84853 + 85773, + 85790 ], "loc": { "start": { - "line": 2814, + "line": 2841, "column": 15 }, "end": { - "line": 2814, + "line": 2841, "column": 32 } } }, "range": [ - 84829, - 84854 + 85766, + 85791 ], "loc": { "start": { - "line": 2814, + "line": 2841, "column": 8 }, "end": { - "line": 2814, + "line": 2841, "column": 33 } } } ], "range": [ - 84819, - 84860 + 85756, + 85797 ], "loc": { "start": { - "line": 2813, + "line": 2840, "column": 19 }, "end": { - "line": 2815, + "line": 2842, "column": 5 } } @@ -156898,16 +158200,16 @@ "generator": false, "expression": false, "range": [ - 84816, - 84860 + 85753, + 85797 ], "loc": { "start": { - "line": 2813, + "line": 2840, "column": 16 }, "end": { - "line": 2815, + "line": 2842, "column": 5 } } @@ -156915,16 +158217,16 @@ "kind": "method", "computed": false, "range": [ - 84804, - 84860 + 85741, + 85797 ], "loc": { "start": { - "line": 2813, + "line": 2840, "column": 4 }, "end": { - "line": 2815, + "line": 2842, "column": 5 } }, @@ -156933,16 +158235,16 @@ "type": "Block", "value": "*\n * Get list of filter IDs\n * @return {[type]} [description]\n ", "range": [ - 84720, - 84799 + 85657, + 85736 ], "loc": { "start": { - "line": 2809, + "line": 2836, "column": 4 }, "end": { - "line": 2812, + "line": 2839, "column": 7 } } @@ -156953,16 +158255,16 @@ "type": "Block", "value": "*\n * Get filtered (valid) rows indexes\n * @param {Boolean} reCalc Force calculation of filtered rows list\n * @return {Array} List of row indexes\n ", "range": [ - 84866, - 85042 + 85803, + 85979 ], "loc": { "start": { - "line": 2817, + "line": 2844, "column": 4 }, "end": { - "line": 2821, + "line": 2848, "column": 7 } } @@ -156976,16 +158278,16 @@ "type": "Identifier", "name": "getValidRows", "range": [ - 85047, - 85059 + 85984, + 85996 ], "loc": { "start": { - "line": 2822, + "line": 2849, "column": 4 }, "end": { - "line": 2822, + "line": 2849, "column": 16 } } @@ -156998,16 +158300,16 @@ "type": "Identifier", "name": "reCalc", "range": [ - 85060, - 85066 + 85997, + 86003 ], "loc": { "start": { - "line": 2822, + "line": 2849, "column": 17 }, "end": { - "line": 2822, + "line": 2849, "column": 23 } } @@ -157025,32 +158327,32 @@ "type": "Identifier", "name": "reCalc", "range": [ - 85083, - 85089 + 86020, + 86026 ], "loc": { "start": { - "line": 2823, + "line": 2850, "column": 13 }, "end": { - "line": 2823, + "line": 2850, "column": 19 } } }, "prefix": true, "range": [ - 85082, - 85089 + 86019, + 86026 ], "loc": { "start": { - "line": 2823, + "line": 2850, "column": 12 }, "end": { - "line": 2823, + "line": 2850, "column": 19 } } @@ -157066,16 +158368,16 @@ "object": { "type": "ThisExpression", "range": [ - 85112, - 85116 + 86049, + 86053 ], "loc": { "start": { - "line": 2824, + "line": 2851, "column": 19 }, "end": { - "line": 2824, + "line": 2851, "column": 23 } } @@ -157084,78 +158386,78 @@ "type": "Identifier", "name": "validRowsIndex", "range": [ - 85117, - 85131 + 86054, + 86068 ], "loc": { "start": { - "line": 2824, + "line": 2851, "column": 24 }, "end": { - "line": 2824, + "line": 2851, "column": 38 } } }, "range": [ - 85112, - 85131 + 86049, + 86068 ], "loc": { "start": { - "line": 2824, + "line": 2851, "column": 19 }, "end": { - "line": 2824, + "line": 2851, "column": 38 } } }, "range": [ - 85105, - 85132 + 86042, + 86069 ], "loc": { "start": { - "line": 2824, + "line": 2851, "column": 12 }, "end": { - "line": 2824, + "line": 2851, "column": 39 } } } ], "range": [ - 85091, - 85142 + 86028, + 86079 ], "loc": { "start": { - "line": 2823, + "line": 2850, "column": 21 }, "end": { - "line": 2825, + "line": 2852, "column": 9 } } }, "alternate": null, "range": [ - 85078, - 85142 + 86015, + 86079 ], "loc": { "start": { - "line": 2823, + "line": 2850, "column": 8 }, "end": { - "line": 2825, + "line": 2852, "column": 9 } } @@ -157169,16 +158471,16 @@ "type": "Identifier", "name": "nbRows", "range": [ - 85156, - 85162 + 86093, + 86099 ], "loc": { "start": { - "line": 2827, + "line": 2854, "column": 12 }, "end": { - "line": 2827, + "line": 2854, "column": 18 } } @@ -157191,16 +158493,16 @@ "object": { "type": "ThisExpression", "range": [ - 85165, - 85169 + 86102, + 86106 ], "loc": { "start": { - "line": 2827, + "line": 2854, "column": 21 }, "end": { - "line": 2827, + "line": 2854, "column": 25 } } @@ -157209,31 +158511,31 @@ "type": "Identifier", "name": "getRowsNb", "range": [ - 85170, - 85179 + 86107, + 86116 ], "loc": { "start": { - "line": 2827, + "line": 2854, "column": 26 }, "end": { - "line": 2827, + "line": 2854, "column": 35 } } }, "range": [ - 85165, - 85179 + 86102, + 86116 ], "loc": { "start": { - "line": 2827, + "line": 2854, "column": 21 }, "end": { - "line": 2827, + "line": 2854, "column": 35 } } @@ -157244,47 +158546,47 @@ "value": true, "raw": "true", "range": [ - 85180, - 85184 + 86117, + 86121 ], "loc": { "start": { - "line": 2827, + "line": 2854, "column": 36 }, "end": { - "line": 2827, + "line": 2854, "column": 40 } } } ], "range": [ - 85165, - 85185 + 86102, + 86122 ], "loc": { "start": { - "line": 2827, + "line": 2854, "column": 21 }, "end": { - "line": 2827, + "line": 2854, "column": 41 } } }, "range": [ - 85156, - 85185 + 86093, + 86122 ], "loc": { "start": { - "line": 2827, + "line": 2854, "column": 12 }, "end": { - "line": 2827, + "line": 2854, "column": 41 } } @@ -157292,16 +158594,16 @@ ], "kind": "let", "range": [ - 85152, - 85186 + 86089, + 86123 ], "loc": { "start": { - "line": 2827, + "line": 2854, "column": 8 }, "end": { - "line": 2827, + "line": 2854, "column": 42 } } @@ -157317,16 +158619,16 @@ "object": { "type": "ThisExpression", "range": [ - 85195, - 85199 + 86132, + 86136 ], "loc": { "start": { - "line": 2828, + "line": 2855, "column": 8 }, "end": { - "line": 2828, + "line": 2855, "column": 12 } } @@ -157335,31 +158637,31 @@ "type": "Identifier", "name": "validRowsIndex", "range": [ - 85200, - 85214 + 86137, + 86151 ], "loc": { "start": { - "line": 2828, + "line": 2855, "column": 13 }, "end": { - "line": 2828, + "line": 2855, "column": 27 } } }, "range": [ - 85195, - 85214 + 86132, + 86151 ], "loc": { "start": { - "line": 2828, + "line": 2855, "column": 8 }, "end": { - "line": 2828, + "line": 2855, "column": 27 } } @@ -157368,46 +158670,46 @@ "type": "ArrayExpression", "elements": [], "range": [ - 85217, - 85219 + 86154, + 86156 ], "loc": { "start": { - "line": 2828, + "line": 2855, "column": 30 }, "end": { - "line": 2828, + "line": 2855, "column": 32 } } }, "range": [ - 85195, - 85219 + 86132, + 86156 ], "loc": { "start": { - "line": 2828, + "line": 2855, "column": 8 }, "end": { - "line": 2828, + "line": 2855, "column": 32 } } }, "range": [ - 85195, - 85220 + 86132, + 86157 ], "loc": { "start": { - "line": 2828, + "line": 2855, "column": 8 }, "end": { - "line": 2828, + "line": 2855, "column": 33 } } @@ -157423,16 +158725,16 @@ "type": "Identifier", "name": "k", "range": [ - 85238, - 85239 + 86175, + 86176 ], "loc": { "start": { - "line": 2829, + "line": 2856, "column": 17 }, "end": { - "line": 2829, + "line": 2856, "column": 18 } } @@ -157443,16 +158745,16 @@ "object": { "type": "ThisExpression", "range": [ - 85242, - 85246 + 86179, + 86183 ], "loc": { "start": { - "line": 2829, + "line": 2856, "column": 21 }, "end": { - "line": 2829, + "line": 2856, "column": 25 } } @@ -157461,46 +158763,46 @@ "type": "Identifier", "name": "refRow", "range": [ - 85247, - 85253 + 86184, + 86190 ], "loc": { "start": { - "line": 2829, + "line": 2856, "column": 26 }, "end": { - "line": 2829, + "line": 2856, "column": 32 } } }, "range": [ - 85242, - 85253 + 86179, + 86190 ], "loc": { "start": { - "line": 2829, + "line": 2856, "column": 21 }, "end": { - "line": 2829, + "line": 2856, "column": 32 } } }, "range": [ - 85238, - 85253 + 86175, + 86190 ], "loc": { "start": { - "line": 2829, + "line": 2856, "column": 17 }, "end": { - "line": 2829, + "line": 2856, "column": 32 } } @@ -157508,16 +158810,16 @@ ], "kind": "let", "range": [ - 85234, - 85253 + 86171, + 86190 ], "loc": { "start": { - "line": 2829, + "line": 2856, "column": 13 }, "end": { - "line": 2829, + "line": 2856, "column": 32 } } @@ -157529,16 +158831,16 @@ "type": "Identifier", "name": "k", "range": [ - 85255, - 85256 + 86192, + 86193 ], "loc": { "start": { - "line": 2829, + "line": 2856, "column": 34 }, "end": { - "line": 2829, + "line": 2856, "column": 35 } } @@ -157547,31 +158849,31 @@ "type": "Identifier", "name": "nbRows", "range": [ - 85259, - 85265 + 86196, + 86202 ], "loc": { "start": { - "line": 2829, + "line": 2856, "column": 38 }, "end": { - "line": 2829, + "line": 2856, "column": 44 } } }, "range": [ - 85255, - 85265 + 86192, + 86202 ], "loc": { "start": { - "line": 2829, + "line": 2856, "column": 34 }, "end": { - "line": 2829, + "line": 2856, "column": 44 } } @@ -157583,32 +158885,32 @@ "type": "Identifier", "name": "k", "range": [ - 85267, - 85268 + 86204, + 86205 ], "loc": { "start": { - "line": 2829, + "line": 2856, "column": 46 }, "end": { - "line": 2829, + "line": 2856, "column": 47 } } }, "prefix": false, "range": [ - 85267, - 85270 + 86204, + 86207 ], "loc": { "start": { - "line": 2829, + "line": 2856, "column": 46 }, "end": { - "line": 2829, + "line": 2856, "column": 49 } } @@ -157625,16 +158927,16 @@ "type": "Identifier", "name": "r", "range": [ - 85290, - 85291 + 86227, + 86228 ], "loc": { "start": { - "line": 2830, + "line": 2857, "column": 16 }, "end": { - "line": 2830, + "line": 2857, "column": 17 } } @@ -157651,16 +158953,16 @@ "object": { "type": "ThisExpression", "range": [ - 85294, - 85298 + 86231, + 86235 ], "loc": { "start": { - "line": 2830, + "line": 2857, "column": 20 }, "end": { - "line": 2830, + "line": 2857, "column": 24 } } @@ -157669,31 +158971,31 @@ "type": "Identifier", "name": "tbl", "range": [ - 85299, - 85302 + 86236, + 86239 ], "loc": { "start": { - "line": 2830, + "line": 2857, "column": 25 }, "end": { - "line": 2830, + "line": 2857, "column": 28 } } }, "range": [ - 85294, - 85302 + 86231, + 86239 ], "loc": { "start": { - "line": 2830, + "line": 2857, "column": 20 }, "end": { - "line": 2830, + "line": 2857, "column": 28 } } @@ -157702,31 +159004,31 @@ "type": "Identifier", "name": "rows", "range": [ - 85303, - 85307 + 86240, + 86244 ], "loc": { "start": { - "line": 2830, + "line": 2857, "column": 29 }, "end": { - "line": 2830, + "line": 2857, "column": 33 } } }, "range": [ - 85294, - 85307 + 86231, + 86244 ], "loc": { "start": { - "line": 2830, + "line": 2857, "column": 20 }, "end": { - "line": 2830, + "line": 2857, "column": 33 } } @@ -157735,46 +159037,46 @@ "type": "Identifier", "name": "k", "range": [ - 85308, - 85309 + 86245, + 86246 ], "loc": { "start": { - "line": 2830, + "line": 2857, "column": 34 }, "end": { - "line": 2830, + "line": 2857, "column": 35 } } }, "range": [ - 85294, - 85310 + 86231, + 86247 ], "loc": { "start": { - "line": 2830, + "line": 2857, "column": 20 }, "end": { - "line": 2830, + "line": 2857, "column": 36 } } }, "range": [ - 85290, - 85310 + 86227, + 86247 ], "loc": { "start": { - "line": 2830, + "line": 2857, "column": 16 }, "end": { - "line": 2830, + "line": 2857, "column": 36 } } @@ -157782,16 +159084,16 @@ ], "kind": "let", "range": [ - 85286, - 85311 + 86223, + 86248 ], "loc": { "start": { - "line": 2830, + "line": 2857, "column": 12 }, "end": { - "line": 2830, + "line": 2857, "column": 37 } } @@ -157807,16 +159109,16 @@ "object": { "type": "ThisExpression", "range": [ - 85329, - 85333 + 86266, + 86270 ], "loc": { "start": { - "line": 2831, + "line": 2858, "column": 17 }, "end": { - "line": 2831, + "line": 2858, "column": 21 } } @@ -157825,47 +159127,47 @@ "type": "Identifier", "name": "paging", "range": [ - 85334, - 85340 + 86271, + 86277 ], "loc": { "start": { - "line": 2831, + "line": 2858, "column": 22 }, "end": { - "line": 2831, + "line": 2858, "column": 28 } } }, "range": [ - 85329, - 85340 + 86266, + 86277 ], "loc": { "start": { - "line": 2831, + "line": 2858, "column": 17 }, "end": { - "line": 2831, + "line": 2858, "column": 28 } } }, "prefix": true, "range": [ - 85328, - 85340 + 86265, + 86277 ], "loc": { "start": { - "line": 2831, + "line": 2858, "column": 16 }, "end": { - "line": 2831, + "line": 2858, "column": 28 } } @@ -157886,16 +159188,16 @@ "object": { "type": "ThisExpression", "range": [ - 85364, - 85368 + 86301, + 86305 ], "loc": { "start": { - "line": 2832, + "line": 2859, "column": 20 }, "end": { - "line": 2832, + "line": 2859, "column": 24 } } @@ -157904,31 +159206,31 @@ "type": "Identifier", "name": "getRowDisplay", "range": [ - 85369, - 85382 + 86306, + 86319 ], "loc": { "start": { - "line": 2832, + "line": 2859, "column": 25 }, "end": { - "line": 2832, + "line": 2859, "column": 38 } } }, "range": [ - 85364, - 85382 + 86301, + 86319 ], "loc": { "start": { - "line": 2832, + "line": 2859, "column": 20 }, "end": { - "line": 2832, + "line": 2859, "column": 38 } } @@ -157938,32 +159240,32 @@ "type": "Identifier", "name": "r", "range": [ - 85383, - 85384 + 86320, + 86321 ], "loc": { "start": { - "line": 2832, + "line": 2859, "column": 39 }, "end": { - "line": 2832, + "line": 2859, "column": 40 } } } ], "range": [ - 85364, - 85385 + 86301, + 86322 ], "loc": { "start": { - "line": 2832, + "line": 2859, "column": 20 }, "end": { - "line": 2832, + "line": 2859, "column": 41 } } @@ -157972,31 +159274,31 @@ "type": "Identifier", "name": "NONE", "range": [ - 85390, - 85394 + 86327, + 86331 ], "loc": { "start": { - "line": 2832, + "line": 2859, "column": 46 }, "end": { - "line": 2832, + "line": 2859, "column": 50 } } }, "range": [ - 85364, - 85394 + 86301, + 86331 ], "loc": { "start": { - "line": 2832, + "line": 2859, "column": 20 }, "end": { - "line": 2832, + "line": 2859, "column": 50 } } @@ -158017,16 +159319,16 @@ "object": { "type": "ThisExpression", "range": [ - 85418, - 85422 + 86355, + 86359 ], "loc": { "start": { - "line": 2833, + "line": 2860, "column": 20 }, "end": { - "line": 2833, + "line": 2860, "column": 24 } } @@ -158035,31 +159337,31 @@ "type": "Identifier", "name": "validRowsIndex", "range": [ - 85423, - 85437 + 86360, + 86374 ], "loc": { "start": { - "line": 2833, + "line": 2860, "column": 25 }, "end": { - "line": 2833, + "line": 2860, "column": 39 } } }, "range": [ - 85418, - 85437 + 86355, + 86374 ], "loc": { "start": { - "line": 2833, + "line": 2860, "column": 20 }, "end": { - "line": 2833, + "line": 2860, "column": 39 } } @@ -158068,31 +159370,31 @@ "type": "Identifier", "name": "push", "range": [ - 85438, - 85442 + 86375, + 86379 ], "loc": { "start": { - "line": 2833, + "line": 2860, "column": 40 }, "end": { - "line": 2833, + "line": 2860, "column": 44 } } }, "range": [ - 85418, - 85442 + 86355, + 86379 ], "loc": { "start": { - "line": 2833, + "line": 2860, "column": 20 }, "end": { - "line": 2833, + "line": 2860, "column": 44 } } @@ -158105,16 +159407,16 @@ "type": "Identifier", "name": "r", "range": [ - 85443, - 85444 + 86380, + 86381 ], "loc": { "start": { - "line": 2833, + "line": 2860, "column": 45 }, "end": { - "line": 2833, + "line": 2860, "column": 46 } } @@ -158123,110 +159425,110 @@ "type": "Identifier", "name": "rowIndex", "range": [ - 85445, - 85453 + 86382, + 86390 ], "loc": { "start": { - "line": 2833, + "line": 2860, "column": 47 }, "end": { - "line": 2833, + "line": 2860, "column": 55 } } }, "range": [ - 85443, - 85453 + 86380, + 86390 ], "loc": { "start": { - "line": 2833, + "line": 2860, "column": 45 }, "end": { - "line": 2833, + "line": 2860, "column": 55 } } } ], "range": [ - 85418, - 85454 + 86355, + 86391 ], "loc": { "start": { - "line": 2833, + "line": 2860, "column": 20 }, "end": { - "line": 2833, + "line": 2860, "column": 56 } } }, "range": [ - 85418, - 85455 + 86355, + 86392 ], "loc": { "start": { - "line": 2833, + "line": 2860, "column": 20 }, "end": { - "line": 2833, + "line": 2860, "column": 57 } } } ], "range": [ - 85396, - 85473 + 86333, + 86410 ], "loc": { "start": { - "line": 2832, + "line": 2859, "column": 52 }, "end": { - "line": 2834, + "line": 2861, "column": 17 } } }, "alternate": null, "range": [ - 85360, - 85473 + 86297, + 86410 ], "loc": { "start": { - "line": 2832, + "line": 2859, "column": 16 }, "end": { - "line": 2834, + "line": 2861, "column": 17 } } } ], "range": [ - 85342, - 85487 + 86279, + 86424 ], "loc": { "start": { - "line": 2831, + "line": 2858, "column": 30 }, "end": { - "line": 2835, + "line": 2862, "column": 13 } } @@ -158251,16 +159553,16 @@ "type": "Identifier", "name": "r", "range": [ - 85515, - 85516 + 86452, + 86453 ], "loc": { "start": { - "line": 2836, + "line": 2863, "column": 20 }, "end": { - "line": 2836, + "line": 2863, "column": 21 } } @@ -158269,31 +159571,31 @@ "type": "Identifier", "name": "getAttribute", "range": [ - 85517, - 85529 + 86454, + 86466 ], "loc": { "start": { - "line": 2836, + "line": 2863, "column": 22 }, "end": { - "line": 2836, + "line": 2863, "column": 34 } } }, "range": [ - 85515, - 85529 + 86452, + 86466 ], "loc": { "start": { - "line": 2836, + "line": 2863, "column": 20 }, "end": { - "line": 2836, + "line": 2863, "column": 34 } } @@ -158304,32 +159606,32 @@ "value": "validRow", "raw": "'validRow'", "range": [ - 85530, - 85540 + 86467, + 86477 ], "loc": { "start": { - "line": 2836, + "line": 2863, "column": 35 }, "end": { - "line": 2836, + "line": 2863, "column": 45 } } } ], "range": [ - 85515, - 85541 + 86452, + 86478 ], "loc": { "start": { - "line": 2836, + "line": 2863, "column": 20 }, "end": { - "line": 2836, + "line": 2863, "column": 46 } } @@ -158339,31 +159641,31 @@ "value": "true", "raw": "'true'", "range": [ - 85546, - 85552 + 86483, + 86489 ], "loc": { "start": { - "line": 2836, + "line": 2863, "column": 51 }, "end": { - "line": 2836, + "line": 2863, "column": 57 } } }, "range": [ - 85515, - 85552 + 86452, + 86489 ], "loc": { "start": { - "line": 2836, + "line": 2863, "column": 20 }, "end": { - "line": 2836, + "line": 2863, "column": 57 } } @@ -158380,16 +159682,16 @@ "type": "Identifier", "name": "r", "range": [ - 85576, - 85577 + 86513, + 86514 ], "loc": { "start": { - "line": 2837, + "line": 2864, "column": 20 }, "end": { - "line": 2837, + "line": 2864, "column": 21 } } @@ -158398,31 +159700,31 @@ "type": "Identifier", "name": "getAttribute", "range": [ - 85578, - 85590 + 86515, + 86527 ], "loc": { "start": { - "line": 2837, + "line": 2864, "column": 22 }, "end": { - "line": 2837, + "line": 2864, "column": 34 } } }, "range": [ - 85576, - 85590 + 86513, + 86527 ], "loc": { "start": { - "line": 2837, + "line": 2864, "column": 20 }, "end": { - "line": 2837, + "line": 2864, "column": 34 } } @@ -158433,32 +159735,32 @@ "value": "validRow", "raw": "'validRow'", "range": [ - 85591, - 85601 + 86528, + 86538 ], "loc": { "start": { - "line": 2837, + "line": 2864, "column": 35 }, "end": { - "line": 2837, + "line": 2864, "column": 45 } } } ], "range": [ - 85576, - 85602 + 86513, + 86539 ], "loc": { "start": { - "line": 2837, + "line": 2864, "column": 20 }, "end": { - "line": 2837, + "line": 2864, "column": 46 } } @@ -158468,46 +159770,46 @@ "value": null, "raw": "null", "range": [ - 85607, - 85611 + 86544, + 86548 ], "loc": { "start": { - "line": 2837, + "line": 2864, "column": 51 }, "end": { - "line": 2837, + "line": 2864, "column": 55 } } }, "range": [ - 85576, - 85611 + 86513, + 86548 ], "loc": { "start": { - "line": 2837, + "line": 2864, "column": 20 }, "end": { - "line": 2837, + "line": 2864, "column": 55 } } }, "range": [ - 85515, - 85611 + 86452, + 86548 ], "loc": { "start": { - "line": 2836, + "line": 2863, "column": 20 }, "end": { - "line": 2837, + "line": 2864, "column": 55 } } @@ -158528,16 +159830,16 @@ "object": { "type": "ThisExpression", "range": [ - 85635, - 85639 + 86572, + 86576 ], "loc": { "start": { - "line": 2838, + "line": 2865, "column": 20 }, "end": { - "line": 2838, + "line": 2865, "column": 24 } } @@ -158546,31 +159848,31 @@ "type": "Identifier", "name": "validRowsIndex", "range": [ - 85640, - 85654 + 86577, + 86591 ], "loc": { "start": { - "line": 2838, + "line": 2865, "column": 25 }, "end": { - "line": 2838, + "line": 2865, "column": 39 } } }, "range": [ - 85635, - 85654 + 86572, + 86591 ], "loc": { "start": { - "line": 2838, + "line": 2865, "column": 20 }, "end": { - "line": 2838, + "line": 2865, "column": 39 } } @@ -158579,31 +159881,31 @@ "type": "Identifier", "name": "push", "range": [ - 85655, - 85659 + 86592, + 86596 ], "loc": { "start": { - "line": 2838, + "line": 2865, "column": 40 }, "end": { - "line": 2838, + "line": 2865, "column": 44 } } }, "range": [ - 85635, - 85659 + 86572, + 86596 ], "loc": { "start": { - "line": 2838, + "line": 2865, "column": 20 }, "end": { - "line": 2838, + "line": 2865, "column": 44 } } @@ -158616,16 +159918,16 @@ "type": "Identifier", "name": "r", "range": [ - 85660, - 85661 + 86597, + 86598 ], "loc": { "start": { - "line": 2838, + "line": 2865, "column": 45 }, "end": { - "line": 2838, + "line": 2865, "column": 46 } } @@ -158634,156 +159936,156 @@ "type": "Identifier", "name": "rowIndex", "range": [ - 85662, - 85670 + 86599, + 86607 ], "loc": { "start": { - "line": 2838, + "line": 2865, "column": 47 }, "end": { - "line": 2838, + "line": 2865, "column": 55 } } }, "range": [ - 85660, - 85670 + 86597, + 86607 ], "loc": { "start": { - "line": 2838, + "line": 2865, "column": 45 }, "end": { - "line": 2838, + "line": 2865, "column": 55 } } } ], "range": [ - 85635, - 85671 + 86572, + 86608 ], "loc": { "start": { - "line": 2838, + "line": 2865, "column": 20 }, "end": { - "line": 2838, + "line": 2865, "column": 56 } } }, "range": [ - 85635, - 85672 + 86572, + 86609 ], "loc": { "start": { - "line": 2838, + "line": 2865, "column": 20 }, "end": { - "line": 2838, + "line": 2865, "column": 57 } } } ], "range": [ - 85613, - 85690 + 86550, + 86627 ], "loc": { "start": { - "line": 2837, + "line": 2864, "column": 57 }, "end": { - "line": 2839, + "line": 2866, "column": 17 } } }, "alternate": null, "range": [ - 85511, - 85690 + 86448, + 86627 ], "loc": { "start": { - "line": 2836, + "line": 2863, "column": 16 }, "end": { - "line": 2839, + "line": 2866, "column": 17 } } } ], "range": [ - 85493, - 85704 + 86430, + 86641 ], "loc": { "start": { - "line": 2835, + "line": 2862, "column": 19 }, "end": { - "line": 2840, + "line": 2867, "column": 13 } } }, "range": [ - 85324, - 85704 + 86261, + 86641 ], "loc": { "start": { - "line": 2831, + "line": 2858, "column": 12 }, "end": { - "line": 2840, + "line": 2867, "column": 13 } } } ], "range": [ - 85272, - 85714 + 86209, + 86651 ], "loc": { "start": { - "line": 2829, + "line": 2856, "column": 51 }, "end": { - "line": 2841, + "line": 2868, "column": 9 } } }, "range": [ - 85229, - 85714 + 86166, + 86651 ], "loc": { "start": { - "line": 2829, + "line": 2856, "column": 8 }, "end": { - "line": 2841, + "line": 2868, "column": 9 } } @@ -158796,16 +160098,16 @@ "object": { "type": "ThisExpression", "range": [ - 85730, - 85734 + 86667, + 86671 ], "loc": { "start": { - "line": 2842, + "line": 2869, "column": 15 }, "end": { - "line": 2842, + "line": 2869, "column": 19 } } @@ -158814,62 +160116,62 @@ "type": "Identifier", "name": "validRowsIndex", "range": [ - 85735, - 85749 + 86672, + 86686 ], "loc": { "start": { - "line": 2842, + "line": 2869, "column": 20 }, "end": { - "line": 2842, + "line": 2869, "column": 34 } } }, "range": [ - 85730, - 85749 + 86667, + 86686 ], "loc": { "start": { - "line": 2842, + "line": 2869, "column": 15 }, "end": { - "line": 2842, + "line": 2869, "column": 34 } } }, "range": [ - 85723, - 85750 + 86660, + 86687 ], "loc": { "start": { - "line": 2842, + "line": 2869, "column": 8 }, "end": { - "line": 2842, + "line": 2869, "column": 35 } } } ], "range": [ - 85068, - 85756 + 86005, + 86693 ], "loc": { "start": { - "line": 2822, + "line": 2849, "column": 25 }, "end": { - "line": 2843, + "line": 2870, "column": 5 } } @@ -158877,16 +160179,16 @@ "generator": false, "expression": false, "range": [ - 85059, - 85756 + 85996, + 86693 ], "loc": { "start": { - "line": 2822, + "line": 2849, "column": 16 }, "end": { - "line": 2843, + "line": 2870, "column": 5 } } @@ -158894,16 +160196,16 @@ "kind": "method", "computed": false, "range": [ - 85047, - 85756 + 85984, + 86693 ], "loc": { "start": { - "line": 2822, + "line": 2849, "column": 4 }, "end": { - "line": 2843, + "line": 2870, "column": 5 } }, @@ -158912,16 +160214,16 @@ "type": "Block", "value": "*\n * Get filtered (valid) rows indexes\n * @param {Boolean} reCalc Force calculation of filtered rows list\n * @return {Array} List of row indexes\n ", "range": [ - 84866, - 85042 + 85803, + 85979 ], "loc": { "start": { - "line": 2817, + "line": 2844, "column": 4 }, "end": { - "line": 2821, + "line": 2848, "column": 7 } } @@ -158932,16 +160234,16 @@ "type": "Block", "value": "*\n * Get the index of the row containing the filters\n * @return {Number}\n ", "range": [ - 85762, - 85852 + 86699, + 86789 ], "loc": { "start": { - "line": 2845, + "line": 2872, "column": 4 }, "end": { - "line": 2848, + "line": 2875, "column": 7 } } @@ -158955,16 +160257,16 @@ "type": "Identifier", "name": "getFiltersRowIndex", "range": [ - 85857, - 85875 + 86794, + 86812 ], "loc": { "start": { - "line": 2849, + "line": 2876, "column": 4 }, "end": { - "line": 2849, + "line": 2876, "column": 22 } } @@ -158984,16 +160286,16 @@ "object": { "type": "ThisExpression", "range": [ - 85895, - 85899 + 86832, + 86836 ], "loc": { "start": { - "line": 2850, + "line": 2877, "column": 15 }, "end": { - "line": 2850, + "line": 2877, "column": 19 } } @@ -159002,62 +160304,62 @@ "type": "Identifier", "name": "filtersRowIndex", "range": [ - 85900, - 85915 + 86837, + 86852 ], "loc": { "start": { - "line": 2850, + "line": 2877, "column": 20 }, "end": { - "line": 2850, + "line": 2877, "column": 35 } } }, "range": [ - 85895, - 85915 + 86832, + 86852 ], "loc": { "start": { - "line": 2850, + "line": 2877, "column": 15 }, "end": { - "line": 2850, + "line": 2877, "column": 35 } } }, "range": [ - 85888, - 85916 + 86825, + 86853 ], "loc": { "start": { - "line": 2850, + "line": 2877, "column": 8 }, "end": { - "line": 2850, + "line": 2877, "column": 36 } } } ], "range": [ - 85878, - 85922 + 86815, + 86859 ], "loc": { "start": { - "line": 2849, + "line": 2876, "column": 25 }, "end": { - "line": 2851, + "line": 2878, "column": 5 } } @@ -159065,16 +160367,16 @@ "generator": false, "expression": false, "range": [ - 85875, - 85922 + 86812, + 86859 ], "loc": { "start": { - "line": 2849, + "line": 2876, "column": 22 }, "end": { - "line": 2851, + "line": 2878, "column": 5 } } @@ -159082,16 +160384,16 @@ "kind": "method", "computed": false, "range": [ - 85857, - 85922 + 86794, + 86859 ], "loc": { "start": { - "line": 2849, + "line": 2876, "column": 4 }, "end": { - "line": 2851, + "line": 2878, "column": 5 } }, @@ -159100,16 +160402,16 @@ "type": "Block", "value": "*\n * Get the index of the row containing the filters\n * @return {Number}\n ", "range": [ - 85762, - 85852 + 86699, + 86789 ], "loc": { "start": { - "line": 2845, + "line": 2872, "column": 4 }, "end": { - "line": 2848, + "line": 2875, "column": 7 } } @@ -159120,16 +160422,16 @@ "type": "Block", "value": "*\n * Get the index of the headers row\n * @return {Number}\n ", "range": [ - 85928, - 86003 + 86865, + 86940 ], "loc": { "start": { - "line": 2853, + "line": 2880, "column": 4 }, "end": { - "line": 2856, + "line": 2883, "column": 7 } } @@ -159143,16 +160445,16 @@ "type": "Identifier", "name": "getHeadersRowIndex", "range": [ - 86008, - 86026 + 86945, + 86963 ], "loc": { "start": { - "line": 2857, + "line": 2884, "column": 4 }, "end": { - "line": 2857, + "line": 2884, "column": 22 } } @@ -159172,16 +160474,16 @@ "object": { "type": "ThisExpression", "range": [ - 86046, - 86050 + 86983, + 86987 ], "loc": { "start": { - "line": 2858, + "line": 2885, "column": 15 }, "end": { - "line": 2858, + "line": 2885, "column": 19 } } @@ -159190,62 +160492,62 @@ "type": "Identifier", "name": "headersRow", "range": [ - 86051, - 86061 + 86988, + 86998 ], "loc": { "start": { - "line": 2858, + "line": 2885, "column": 20 }, "end": { - "line": 2858, + "line": 2885, "column": 30 } } }, "range": [ - 86046, - 86061 + 86983, + 86998 ], "loc": { "start": { - "line": 2858, + "line": 2885, "column": 15 }, "end": { - "line": 2858, + "line": 2885, "column": 30 } } }, "range": [ - 86039, - 86062 + 86976, + 86999 ], "loc": { "start": { - "line": 2858, + "line": 2885, "column": 8 }, "end": { - "line": 2858, + "line": 2885, "column": 31 } } } ], "range": [ - 86029, - 86068 + 86966, + 87005 ], "loc": { "start": { - "line": 2857, + "line": 2884, "column": 25 }, "end": { - "line": 2859, + "line": 2886, "column": 5 } } @@ -159253,16 +160555,16 @@ "generator": false, "expression": false, "range": [ - 86026, - 86068 + 86963, + 87005 ], "loc": { "start": { - "line": 2857, + "line": 2884, "column": 22 }, "end": { - "line": 2859, + "line": 2886, "column": 5 } } @@ -159270,16 +160572,16 @@ "kind": "method", "computed": false, "range": [ - 86008, - 86068 + 86945, + 87005 ], "loc": { "start": { - "line": 2857, + "line": 2884, "column": 4 }, "end": { - "line": 2859, + "line": 2886, "column": 5 } }, @@ -159288,16 +160590,16 @@ "type": "Block", "value": "*\n * Get the index of the headers row\n * @return {Number}\n ", "range": [ - 85928, - 86003 + 86865, + 86940 ], "loc": { "start": { - "line": 2853, + "line": 2880, "column": 4 }, "end": { - "line": 2856, + "line": 2883, "column": 7 } } @@ -159308,16 +160610,16 @@ "type": "Block", "value": "*\n * Get the row index from where the filtering process start (1st filterable\n * row)\n * @return {Number}\n ", "range": [ - 86074, - 86201 + 87011, + 87138 ], "loc": { "start": { - "line": 2861, + "line": 2888, "column": 4 }, "end": { - "line": 2865, + "line": 2892, "column": 7 } } @@ -159331,16 +160633,16 @@ "type": "Identifier", "name": "getStartRowIndex", "range": [ - 86206, - 86222 + 87143, + 87159 ], "loc": { "start": { - "line": 2866, + "line": 2893, "column": 4 }, "end": { - "line": 2866, + "line": 2893, "column": 20 } } @@ -159360,16 +160662,16 @@ "object": { "type": "ThisExpression", "range": [ - 86242, - 86246 + 87179, + 87183 ], "loc": { "start": { - "line": 2867, + "line": 2894, "column": 15 }, "end": { - "line": 2867, + "line": 2894, "column": 19 } } @@ -159378,62 +160680,62 @@ "type": "Identifier", "name": "refRow", "range": [ - 86247, - 86253 + 87184, + 87190 ], "loc": { "start": { - "line": 2867, + "line": 2894, "column": 20 }, "end": { - "line": 2867, + "line": 2894, "column": 26 } } }, "range": [ - 86242, - 86253 + 87179, + 87190 ], "loc": { "start": { - "line": 2867, + "line": 2894, "column": 15 }, "end": { - "line": 2867, + "line": 2894, "column": 26 } } }, "range": [ - 86235, - 86254 + 87172, + 87191 ], "loc": { "start": { - "line": 2867, + "line": 2894, "column": 8 }, "end": { - "line": 2867, + "line": 2894, "column": 27 } } } ], "range": [ - 86225, - 86260 + 87162, + 87197 ], "loc": { "start": { - "line": 2866, + "line": 2893, "column": 23 }, "end": { - "line": 2868, + "line": 2895, "column": 5 } } @@ -159441,16 +160743,16 @@ "generator": false, "expression": false, "range": [ - 86222, - 86260 + 87159, + 87197 ], "loc": { "start": { - "line": 2866, + "line": 2893, "column": 20 }, "end": { - "line": 2868, + "line": 2895, "column": 5 } } @@ -159458,16 +160760,16 @@ "kind": "method", "computed": false, "range": [ - 86206, - 86260 + 87143, + 87197 ], "loc": { "start": { - "line": 2866, + "line": 2893, "column": 4 }, "end": { - "line": 2868, + "line": 2895, "column": 5 } }, @@ -159476,16 +160778,16 @@ "type": "Block", "value": "*\n * Get the row index from where the filtering process start (1st filterable\n * row)\n * @return {Number}\n ", "range": [ - 86074, - 86201 + 87011, + 87138 ], "loc": { "start": { - "line": 2861, + "line": 2888, "column": 4 }, "end": { - "line": 2865, + "line": 2892, "column": 7 } } @@ -159496,16 +160798,16 @@ "type": "Block", "value": "*\n * Get the index of the last row\n * @return {Number}\n ", "range": [ - 86266, - 86338 + 87203, + 87275 ], "loc": { "start": { - "line": 2870, + "line": 2897, "column": 4 }, "end": { - "line": 2873, + "line": 2900, "column": 7 } } @@ -159519,16 +160821,16 @@ "type": "Identifier", "name": "getLastRowIndex", "range": [ - 86343, - 86358 + 87280, + 87295 ], "loc": { "start": { - "line": 2874, + "line": 2901, "column": 4 }, "end": { - "line": 2874, + "line": 2901, "column": 19 } } @@ -159549,16 +160851,16 @@ "type": "Identifier", "name": "nbRows", "range": [ - 86375, - 86381 + 87312, + 87318 ], "loc": { "start": { - "line": 2875, + "line": 2902, "column": 12 }, "end": { - "line": 2875, + "line": 2902, "column": 18 } } @@ -159571,16 +160873,16 @@ "object": { "type": "ThisExpression", "range": [ - 86384, - 86388 + 87321, + 87325 ], "loc": { "start": { - "line": 2875, + "line": 2902, "column": 21 }, "end": { - "line": 2875, + "line": 2902, "column": 25 } } @@ -159589,31 +160891,31 @@ "type": "Identifier", "name": "getRowsNb", "range": [ - 86389, - 86398 + 87326, + 87335 ], "loc": { "start": { - "line": 2875, + "line": 2902, "column": 26 }, "end": { - "line": 2875, + "line": 2902, "column": 35 } } }, "range": [ - 86384, - 86398 + 87321, + 87335 ], "loc": { "start": { - "line": 2875, + "line": 2902, "column": 21 }, "end": { - "line": 2875, + "line": 2902, "column": 35 } } @@ -159624,47 +160926,47 @@ "value": true, "raw": "true", "range": [ - 86399, - 86403 + 87336, + 87340 ], "loc": { "start": { - "line": 2875, + "line": 2902, "column": 36 }, "end": { - "line": 2875, + "line": 2902, "column": 40 } } } ], "range": [ - 86384, - 86404 + 87321, + 87341 ], "loc": { "start": { - "line": 2875, + "line": 2902, "column": 21 }, "end": { - "line": 2875, + "line": 2902, "column": 41 } } }, "range": [ - 86375, - 86404 + 87312, + 87341 ], "loc": { "start": { - "line": 2875, + "line": 2902, "column": 12 }, "end": { - "line": 2875, + "line": 2902, "column": 41 } } @@ -159672,16 +160974,16 @@ ], "kind": "let", "range": [ - 86371, - 86405 + 87308, + 87342 ], "loc": { "start": { - "line": 2875, + "line": 2902, "column": 8 }, "end": { - "line": 2875, + "line": 2902, "column": 42 } } @@ -159695,16 +160997,16 @@ "type": "Identifier", "name": "nbRows", "range": [ - 86422, - 86428 + 87359, + 87365 ], "loc": { "start": { - "line": 2876, + "line": 2903, "column": 16 }, "end": { - "line": 2876, + "line": 2903, "column": 22 } } @@ -159714,62 +161016,62 @@ "value": 1, "raw": "1", "range": [ - 86431, - 86432 + 87368, + 87369 ], "loc": { "start": { - "line": 2876, + "line": 2903, "column": 25 }, "end": { - "line": 2876, + "line": 2903, "column": 26 } } }, "range": [ - 86422, - 86432 + 87359, + 87369 ], "loc": { "start": { - "line": 2876, + "line": 2903, "column": 16 }, "end": { - "line": 2876, + "line": 2903, "column": 26 } } }, "range": [ - 86414, - 86434 + 87351, + 87371 ], "loc": { "start": { - "line": 2876, + "line": 2903, "column": 8 }, "end": { - "line": 2876, + "line": 2903, "column": 28 } } } ], "range": [ - 86361, - 86440 + 87298, + 87377 ], "loc": { "start": { - "line": 2874, + "line": 2901, "column": 22 }, "end": { - "line": 2877, + "line": 2904, "column": 5 } } @@ -159777,16 +161079,16 @@ "generator": false, "expression": false, "range": [ - 86358, - 86440 + 87295, + 87377 ], "loc": { "start": { - "line": 2874, + "line": 2901, "column": 19 }, "end": { - "line": 2877, + "line": 2904, "column": 5 } } @@ -159794,16 +161096,16 @@ "kind": "method", "computed": false, "range": [ - 86343, - 86440 + 87280, + 87377 ], "loc": { "start": { - "line": 2874, + "line": 2901, "column": 4 }, "end": { - "line": 2877, + "line": 2904, "column": 5 } }, @@ -159812,16 +161114,16 @@ "type": "Block", "value": "*\n * Get the index of the last row\n * @return {Number}\n ", "range": [ - 86266, - 86338 + 87203, + 87275 ], "loc": { "start": { - "line": 2870, + "line": 2897, "column": 4 }, "end": { - "line": 2873, + "line": 2900, "column": 7 } } @@ -159832,16 +161134,16 @@ "type": "Block", "value": "*\n * Determine whether the specified column has one of the passed types\n * @param {Number} colIndex Column index\n * @param {Array} [types=[]] List of column types\n * @returns {Boolean}\n ", "range": [ - 86446, - 86656 + 87383, + 87593 ], "loc": { "start": { - "line": 2879, + "line": 2906, "column": 4 }, "end": { - "line": 2884, + "line": 2911, "column": 7 } } @@ -159855,16 +161157,16 @@ "type": "Identifier", "name": "hasType", "range": [ - 86661, - 86668 + 87598, + 87605 ], "loc": { "start": { - "line": 2885, + "line": 2912, "column": 4 }, "end": { - "line": 2885, + "line": 2912, "column": 11 } } @@ -159877,16 +161179,16 @@ "type": "Identifier", "name": "colIndex", "range": [ - 86669, - 86677 + 87606, + 87614 ], "loc": { "start": { - "line": 2885, + "line": 2912, "column": 12 }, "end": { - "line": 2885, + "line": 2912, "column": 20 } } @@ -159897,16 +161199,16 @@ "type": "Identifier", "name": "types", "range": [ - 86679, - 86684 + 87616, + 87621 ], "loc": { "start": { - "line": 2885, + "line": 2912, "column": 22 }, "end": { - "line": 2885, + "line": 2912, "column": 27 } } @@ -159915,31 +161217,31 @@ "type": "ArrayExpression", "elements": [], "range": [ - 86687, - 86689 + 87624, + 87626 ], "loc": { "start": { - "line": 2885, + "line": 2912, "column": 30 }, "end": { - "line": 2885, + "line": 2912, "column": 32 } } }, "range": [ - 86679, - 86689 + 87616, + 87626 ], "loc": { "start": { - "line": 2885, + "line": 2912, "column": 22 }, "end": { - "line": 2885, + "line": 2912, "column": 32 } } @@ -159959,16 +161261,16 @@ "object": { "type": "ThisExpression", "range": [ - 86706, - 86710 + 87643, + 87647 ], "loc": { "start": { - "line": 2886, + "line": 2913, "column": 13 }, "end": { - "line": 2886, + "line": 2913, "column": 17 } } @@ -159977,47 +161279,47 @@ "type": "Identifier", "name": "hasColTypes", "range": [ - 86711, - 86722 + 87648, + 87659 ], "loc": { "start": { - "line": 2886, + "line": 2913, "column": 18 }, "end": { - "line": 2886, + "line": 2913, "column": 29 } } }, "range": [ - 86706, - 86722 + 87643, + 87659 ], "loc": { "start": { - "line": 2886, + "line": 2913, "column": 13 }, "end": { - "line": 2886, + "line": 2913, "column": 29 } } }, "prefix": true, "range": [ - 86705, - 86722 + 87642, + 87659 ], "loc": { "start": { - "line": 2886, + "line": 2913, "column": 12 }, "end": { - "line": 2886, + "line": 2913, "column": 29 } } @@ -160032,63 +161334,63 @@ "value": false, "raw": "false", "range": [ - 86745, - 86750 + 87682, + 87687 ], "loc": { "start": { - "line": 2887, + "line": 2914, "column": 19 }, "end": { - "line": 2887, + "line": 2914, "column": 24 } } }, "range": [ - 86738, - 86751 + 87675, + 87688 ], "loc": { "start": { - "line": 2887, + "line": 2914, "column": 12 }, "end": { - "line": 2887, + "line": 2914, "column": 25 } } } ], "range": [ - 86724, - 86761 + 87661, + 87698 ], "loc": { "start": { - "line": 2886, + "line": 2913, "column": 31 }, "end": { - "line": 2888, + "line": 2915, "column": 9 } } }, "alternate": null, "range": [ - 86701, - 86761 + 87638, + 87698 ], "loc": { "start": { - "line": 2886, + "line": 2913, "column": 8 }, "end": { - "line": 2888, + "line": 2915, "column": 9 } } @@ -160102,16 +161404,16 @@ "type": "Identifier", "name": "colType", "range": [ - 86774, - 86781 + 87711, + 87718 ], "loc": { "start": { - "line": 2889, + "line": 2916, "column": 12 }, "end": { - "line": 2889, + "line": 2916, "column": 19 } } @@ -160125,16 +161427,16 @@ "object": { "type": "ThisExpression", "range": [ - 86784, - 86788 + 87721, + 87725 ], "loc": { "start": { - "line": 2889, + "line": 2916, "column": 22 }, "end": { - "line": 2889, + "line": 2916, "column": 26 } } @@ -160143,31 +161445,31 @@ "type": "Identifier", "name": "colTypes", "range": [ - 86789, - 86797 + 87726, + 87734 ], "loc": { "start": { - "line": 2889, + "line": 2916, "column": 27 }, "end": { - "line": 2889, + "line": 2916, "column": 35 } } }, "range": [ - 86784, - 86797 + 87721, + 87734 ], "loc": { "start": { - "line": 2889, + "line": 2916, "column": 22 }, "end": { - "line": 2889, + "line": 2916, "column": 35 } } @@ -160176,46 +161478,46 @@ "type": "Identifier", "name": "colIndex", "range": [ - 86798, - 86806 + 87735, + 87743 ], "loc": { "start": { - "line": 2889, + "line": 2916, "column": 36 }, "end": { - "line": 2889, + "line": 2916, "column": 44 } } }, "range": [ - 86784, - 86807 + 87721, + 87744 ], "loc": { "start": { - "line": 2889, + "line": 2916, "column": 22 }, "end": { - "line": 2889, + "line": 2916, "column": 45 } } }, "range": [ - 86774, - 86807 + 87711, + 87744 ], "loc": { "start": { - "line": 2889, + "line": 2916, "column": 12 }, "end": { - "line": 2889, + "line": 2916, "column": 45 } } @@ -160223,16 +161525,16 @@ ], "kind": "let", "range": [ - 86770, - 86808 + 87707, + 87745 ], "loc": { "start": { - "line": 2889, + "line": 2916, "column": 8 }, "end": { - "line": 2889, + "line": 2916, "column": 46 } } @@ -160245,16 +161547,16 @@ "type": "Identifier", "name": "isObj", "range": [ - 86821, - 86826 + 87758, + 87763 ], "loc": { "start": { - "line": 2890, + "line": 2917, "column": 12 }, "end": { - "line": 2890, + "line": 2917, "column": 17 } } @@ -160264,32 +161566,32 @@ "type": "Identifier", "name": "colType", "range": [ - 86827, - 86834 + 87764, + 87771 ], "loc": { "start": { - "line": 2890, + "line": 2917, "column": 18 }, "end": { - "line": 2890, + "line": 2917, "column": 25 } } } ], "range": [ - 86821, - 86835 + 87758, + 87772 ], "loc": { "start": { - "line": 2890, + "line": 2917, "column": 12 }, "end": { - "line": 2890, + "line": 2917, "column": 26 } } @@ -160306,16 +161608,16 @@ "type": "Identifier", "name": "colType", "range": [ - 86851, - 86858 + 87788, + 87795 ], "loc": { "start": { - "line": 2891, + "line": 2918, "column": 12 }, "end": { - "line": 2891, + "line": 2918, "column": 19 } } @@ -160327,16 +161629,16 @@ "type": "Identifier", "name": "colType", "range": [ - 86861, - 86868 + 87798, + 87805 ], "loc": { "start": { - "line": 2891, + "line": 2918, "column": 22 }, "end": { - "line": 2891, + "line": 2918, "column": 29 } } @@ -160345,93 +161647,93 @@ "type": "Identifier", "name": "type", "range": [ - 86869, - 86873 + 87806, + 87810 ], "loc": { "start": { - "line": 2891, + "line": 2918, "column": 30 }, "end": { - "line": 2891, + "line": 2918, "column": 34 } } }, "range": [ - 86861, - 86873 + 87798, + 87810 ], "loc": { "start": { - "line": 2891, + "line": 2918, "column": 22 }, "end": { - "line": 2891, + "line": 2918, "column": 34 } } }, "range": [ - 86851, - 86873 + 87788, + 87810 ], "loc": { "start": { - "line": 2891, + "line": 2918, "column": 12 }, "end": { - "line": 2891, + "line": 2918, "column": 34 } } }, "range": [ - 86851, - 86874 + 87788, + 87811 ], "loc": { "start": { - "line": 2891, + "line": 2918, "column": 12 }, "end": { - "line": 2891, + "line": 2918, "column": 35 } } } ], "range": [ - 86837, - 86884 + 87774, + 87821 ], "loc": { "start": { - "line": 2890, + "line": 2917, "column": 28 }, "end": { - "line": 2892, + "line": 2919, "column": 9 } } }, "alternate": null, "range": [ - 86817, - 86884 + 87754, + 87821 ], "loc": { "start": { - "line": 2890, + "line": 2917, "column": 8 }, "end": { - "line": 2892, + "line": 2919, "column": 9 } } @@ -160450,16 +161752,16 @@ "type": "Identifier", "name": "types", "range": [ - 86900, - 86905 + 87837, + 87842 ], "loc": { "start": { - "line": 2893, + "line": 2920, "column": 15 }, "end": { - "line": 2893, + "line": 2920, "column": 20 } } @@ -160468,31 +161770,31 @@ "type": "Identifier", "name": "indexOf", "range": [ - 86906, - 86913 + 87843, + 87850 ], "loc": { "start": { - "line": 2893, + "line": 2920, "column": 21 }, "end": { - "line": 2893, + "line": 2920, "column": 28 } } }, "range": [ - 86900, - 86913 + 87837, + 87850 ], "loc": { "start": { - "line": 2893, + "line": 2920, "column": 15 }, "end": { - "line": 2893, + "line": 2920, "column": 28 } } @@ -160502,32 +161804,32 @@ "type": "Identifier", "name": "colType", "range": [ - 86914, - 86921 + 87851, + 87858 ], "loc": { "start": { - "line": 2893, + "line": 2920, "column": 29 }, "end": { - "line": 2893, + "line": 2920, "column": 36 } } } ], "range": [ - 86900, - 86922 + 87837, + 87859 ], "loc": { "start": { - "line": 2893, + "line": 2920, "column": 15 }, "end": { - "line": 2893, + "line": 2920, "column": 37 } } @@ -160540,78 +161842,78 @@ "value": 1, "raw": "1", "range": [ - 86928, - 86929 + 87865, + 87866 ], "loc": { "start": { - "line": 2893, + "line": 2920, "column": 43 }, "end": { - "line": 2893, + "line": 2920, "column": 44 } } }, "prefix": true, "range": [ - 86927, - 86929 + 87864, + 87866 ], "loc": { "start": { - "line": 2893, + "line": 2920, "column": 42 }, "end": { - "line": 2893, + "line": 2920, "column": 44 } } }, "range": [ - 86900, - 86929 + 87837, + 87866 ], "loc": { "start": { - "line": 2893, + "line": 2920, "column": 15 }, "end": { - "line": 2893, + "line": 2920, "column": 44 } } }, "range": [ - 86893, - 86930 + 87830, + 87867 ], "loc": { "start": { - "line": 2893, + "line": 2920, "column": 8 }, "end": { - "line": 2893, + "line": 2920, "column": 45 } } } ], "range": [ - 86691, - 86936 + 87628, + 87873 ], "loc": { "start": { - "line": 2885, + "line": 2912, "column": 34 }, "end": { - "line": 2894, + "line": 2921, "column": 5 } } @@ -160619,16 +161921,16 @@ "generator": false, "expression": false, "range": [ - 86668, - 86936 + 87605, + 87873 ], "loc": { "start": { - "line": 2885, + "line": 2912, "column": 11 }, "end": { - "line": 2894, + "line": 2921, "column": 5 } } @@ -160636,16 +161938,16 @@ "kind": "method", "computed": false, "range": [ - 86661, - 86936 + 87598, + 87873 ], "loc": { "start": { - "line": 2885, + "line": 2912, "column": 4 }, "end": { - "line": 2894, + "line": 2921, "column": 5 } }, @@ -160654,16 +161956,16 @@ "type": "Block", "value": "*\n * Determine whether the specified column has one of the passed types\n * @param {Number} colIndex Column index\n * @param {Array} [types=[]] List of column types\n * @returns {Boolean}\n ", "range": [ - 86446, - 86656 + 87383, + 87593 ], "loc": { "start": { - "line": 2879, + "line": 2906, "column": 4 }, "end": { - "line": 2884, + "line": 2911, "column": 7 } } @@ -160674,16 +161976,16 @@ "type": "Block", "value": "*\n * Get the header DOM element for a given column index\n * @param {Number} colIndex Column index\n * @return {Element}\n ", "range": [ - 86942, - 87083 + 87879, + 88020 ], "loc": { "start": { - "line": 2896, + "line": 2923, "column": 4 }, "end": { - "line": 2900, + "line": 2927, "column": 7 } } @@ -160697,16 +161999,16 @@ "type": "Identifier", "name": "getHeaderElement", "range": [ - 87088, - 87104 + 88025, + 88041 ], "loc": { "start": { - "line": 2901, + "line": 2928, "column": 4 }, "end": { - "line": 2901, + "line": 2928, "column": 20 } } @@ -160719,16 +162021,16 @@ "type": "Identifier", "name": "colIndex", "range": [ - 87105, - 87113 + 88042, + 88050 ], "loc": { "start": { - "line": 2901, + "line": 2928, "column": 21 }, "end": { - "line": 2901, + "line": 2928, "column": 29 } } @@ -160746,16 +162048,16 @@ "type": "Identifier", "name": "table", "range": [ - 87129, - 87134 + 88066, + 88071 ], "loc": { "start": { - "line": 2902, + "line": 2929, "column": 12 }, "end": { - "line": 2902, + "line": 2929, "column": 17 } } @@ -160768,16 +162070,16 @@ "object": { "type": "ThisExpression", "range": [ - 87137, - 87141 + 88074, + 88078 ], "loc": { "start": { - "line": 2902, + "line": 2929, "column": 20 }, "end": { - "line": 2902, + "line": 2929, "column": 24 } } @@ -160786,31 +162088,31 @@ "type": "Identifier", "name": "gridLayout", "range": [ - 87142, - 87152 + 88079, + 88089 ], "loc": { "start": { - "line": 2902, + "line": 2929, "column": 25 }, "end": { - "line": 2902, + "line": 2929, "column": 35 } } }, "range": [ - 87137, - 87152 + 88074, + 88089 ], "loc": { "start": { - "line": 2902, + "line": 2929, "column": 20 }, "end": { - "line": 2902, + "line": 2929, "column": 35 } } @@ -160827,16 +162129,16 @@ "object": { "type": "ThisExpression", "range": [ - 87155, - 87159 + 88092, + 88096 ], "loc": { "start": { - "line": 2902, + "line": 2929, "column": 38 }, "end": { - "line": 2902, + "line": 2929, "column": 42 } } @@ -160845,31 +162147,31 @@ "type": "Identifier", "name": "Mod", "range": [ - 87160, - 87163 + 88097, + 88100 ], "loc": { "start": { - "line": 2902, + "line": 2929, "column": 43 }, "end": { - "line": 2902, + "line": 2929, "column": 46 } } }, "range": [ - 87155, - 87163 + 88092, + 88100 ], "loc": { "start": { - "line": 2902, + "line": 2929, "column": 38 }, "end": { - "line": 2902, + "line": 2929, "column": 46 } } @@ -160878,31 +162180,31 @@ "type": "Identifier", "name": "gridLayout", "range": [ - 87164, - 87174 + 88101, + 88111 ], "loc": { "start": { - "line": 2902, + "line": 2929, "column": 47 }, "end": { - "line": 2902, + "line": 2929, "column": 57 } } }, "range": [ - 87155, - 87174 + 88092, + 88111 ], "loc": { "start": { - "line": 2902, + "line": 2929, "column": 38 }, "end": { - "line": 2902, + "line": 2929, "column": 57 } } @@ -160911,31 +162213,31 @@ "type": "Identifier", "name": "headTbl", "range": [ - 87175, - 87182 + 88112, + 88119 ], "loc": { "start": { - "line": 2902, + "line": 2929, "column": 58 }, "end": { - "line": 2902, + "line": 2929, "column": 65 } } }, "range": [ - 87155, - 87182 + 88092, + 88119 ], "loc": { "start": { - "line": 2902, + "line": 2929, "column": 38 }, "end": { - "line": 2902, + "line": 2929, "column": 65 } } @@ -160946,16 +162248,16 @@ "object": { "type": "ThisExpression", "range": [ - 87185, - 87189 + 88122, + 88126 ], "loc": { "start": { - "line": 2902, + "line": 2929, "column": 68 }, "end": { - "line": 2902, + "line": 2929, "column": 72 } } @@ -160964,61 +162266,61 @@ "type": "Identifier", "name": "tbl", "range": [ - 87190, - 87193 + 88127, + 88130 ], "loc": { "start": { - "line": 2902, + "line": 2929, "column": 73 }, "end": { - "line": 2902, + "line": 2929, "column": 76 } } }, "range": [ - 87185, - 87193 + 88122, + 88130 ], "loc": { "start": { - "line": 2902, + "line": 2929, "column": 68 }, "end": { - "line": 2902, + "line": 2929, "column": 76 } } }, "range": [ - 87137, - 87193 + 88074, + 88130 ], "loc": { "start": { - "line": 2902, + "line": 2929, "column": 20 }, "end": { - "line": 2902, + "line": 2929, "column": 76 } } }, "range": [ - 87129, - 87193 + 88066, + 88130 ], "loc": { "start": { - "line": 2902, + "line": 2929, "column": 12 }, "end": { - "line": 2902, + "line": 2929, "column": 76 } } @@ -161026,16 +162328,16 @@ ], "kind": "let", "range": [ - 87125, - 87194 + 88062, + 88131 ], "loc": { "start": { - "line": 2902, + "line": 2929, "column": 8 }, "end": { - "line": 2902, + "line": 2929, "column": 77 } } @@ -161049,16 +162351,16 @@ "type": "Identifier", "name": "tHead", "range": [ - 87207, - 87212 + 88144, + 88149 ], "loc": { "start": { - "line": 2903, + "line": 2930, "column": 12 }, "end": { - "line": 2903, + "line": 2930, "column": 17 } } @@ -161069,16 +162371,16 @@ "type": "Identifier", "name": "tag", "range": [ - 87215, - 87218 + 88152, + 88155 ], "loc": { "start": { - "line": 2903, + "line": 2930, "column": 20 }, "end": { - "line": 2903, + "line": 2930, "column": 23 } } @@ -161088,16 +162390,16 @@ "type": "Identifier", "name": "table", "range": [ - 87219, - 87224 + 88156, + 88161 ], "loc": { "start": { - "line": 2903, + "line": 2930, "column": 24 }, "end": { - "line": 2903, + "line": 2930, "column": 29 } } @@ -161107,47 +162409,47 @@ "value": "thead", "raw": "'thead'", "range": [ - 87226, - 87233 + 88163, + 88170 ], "loc": { "start": { - "line": 2903, + "line": 2930, "column": 31 }, "end": { - "line": 2903, + "line": 2930, "column": 38 } } } ], "range": [ - 87215, - 87234 + 88152, + 88171 ], "loc": { "start": { - "line": 2903, + "line": 2930, "column": 20 }, "end": { - "line": 2903, + "line": 2930, "column": 39 } } }, "range": [ - 87207, - 87234 + 88144, + 88171 ], "loc": { "start": { - "line": 2903, + "line": 2930, "column": 12 }, "end": { - "line": 2903, + "line": 2930, "column": 39 } } @@ -161155,16 +162457,16 @@ ], "kind": "let", "range": [ - 87203, - 87235 + 88140, + 88172 ], "loc": { "start": { - "line": 2903, + "line": 2930, "column": 8 }, "end": { - "line": 2903, + "line": 2930, "column": 40 } } @@ -161178,16 +162480,16 @@ "type": "Identifier", "name": "headersRow", "range": [ - 87248, - 87258 + 88185, + 88195 ], "loc": { "start": { - "line": 2904, + "line": 2931, "column": 12 }, "end": { - "line": 2904, + "line": 2931, "column": 22 } } @@ -161198,16 +162500,16 @@ "object": { "type": "ThisExpression", "range": [ - 87261, - 87265 + 88198, + 88202 ], "loc": { "start": { - "line": 2904, + "line": 2931, "column": 25 }, "end": { - "line": 2904, + "line": 2931, "column": 29 } } @@ -161216,46 +162518,46 @@ "type": "Identifier", "name": "headersRow", "range": [ - 87266, - 87276 + 88203, + 88213 ], "loc": { "start": { - "line": 2904, + "line": 2931, "column": 30 }, "end": { - "line": 2904, + "line": 2931, "column": 40 } } }, "range": [ - 87261, - 87276 + 88198, + 88213 ], "loc": { "start": { - "line": 2904, + "line": 2931, "column": 25 }, "end": { - "line": 2904, + "line": 2931, "column": 40 } } }, "range": [ - 87248, - 87276 + 88185, + 88213 ], "loc": { "start": { - "line": 2904, + "line": 2931, "column": 12 }, "end": { - "line": 2904, + "line": 2931, "column": 40 } } @@ -161263,16 +162565,16 @@ ], "kind": "let", "range": [ - 87244, - 87277 + 88181, + 88214 ], "loc": { "start": { - "line": 2904, + "line": 2931, "column": 8 }, "end": { - "line": 2904, + "line": 2931, "column": 41 } } @@ -161286,32 +162588,32 @@ "type": "Identifier", "name": "header", "range": [ - 87290, - 87296 + 88227, + 88233 ], "loc": { "start": { - "line": 2905, + "line": 2932, "column": 12 }, "end": { - "line": 2905, + "line": 2932, "column": 18 } } }, "init": null, "range": [ - 87290, - 87296 + 88227, + 88233 ], "loc": { "start": { - "line": 2905, + "line": 2932, "column": 12 }, "end": { - "line": 2905, + "line": 2932, "column": 18 } } @@ -161319,16 +162621,16 @@ ], "kind": "let", "range": [ - 87286, - 87297 + 88223, + 88234 ], "loc": { "start": { - "line": 2905, + "line": 2932, "column": 8 }, "end": { - "line": 2905, + "line": 2932, "column": 19 } } @@ -161344,16 +162646,16 @@ "type": "Identifier", "name": "i", "range": [ - 87315, - 87316 + 88252, + 88253 ], "loc": { "start": { - "line": 2906, + "line": 2933, "column": 17 }, "end": { - "line": 2906, + "line": 2933, "column": 18 } } @@ -161363,31 +162665,31 @@ "value": 0, "raw": "0", "range": [ - 87319, - 87320 + 88256, + 88257 ], "loc": { "start": { - "line": 2906, + "line": 2933, "column": 21 }, "end": { - "line": 2906, + "line": 2933, "column": 22 } } }, "range": [ - 87315, - 87320 + 88252, + 88257 ], "loc": { "start": { - "line": 2906, + "line": 2933, "column": 17 }, "end": { - "line": 2906, + "line": 2933, "column": 22 } } @@ -161395,16 +162697,16 @@ ], "kind": "let", "range": [ - 87311, - 87320 + 88248, + 88257 ], "loc": { "start": { - "line": 2906, + "line": 2933, "column": 13 }, "end": { - "line": 2906, + "line": 2933, "column": 22 } } @@ -161416,16 +162718,16 @@ "type": "Identifier", "name": "i", "range": [ - 87322, - 87323 + 88259, + 88260 ], "loc": { "start": { - "line": 2906, + "line": 2933, "column": 24 }, "end": { - "line": 2906, + "line": 2933, "column": 25 } } @@ -161436,16 +162738,16 @@ "object": { "type": "ThisExpression", "range": [ - 87326, - 87330 + 88263, + 88267 ], "loc": { "start": { - "line": 2906, + "line": 2933, "column": 28 }, "end": { - "line": 2906, + "line": 2933, "column": 32 } } @@ -161454,46 +162756,46 @@ "type": "Identifier", "name": "nbCells", "range": [ - 87331, - 87338 + 88268, + 88275 ], "loc": { "start": { - "line": 2906, + "line": 2933, "column": 33 }, "end": { - "line": 2906, + "line": 2933, "column": 40 } } }, "range": [ - 87326, - 87338 + 88263, + 88275 ], "loc": { "start": { - "line": 2906, + "line": 2933, "column": 28 }, "end": { - "line": 2906, + "line": 2933, "column": 40 } } }, "range": [ - 87322, - 87338 + 88259, + 88275 ], "loc": { "start": { - "line": 2906, + "line": 2933, "column": 24 }, "end": { - "line": 2906, + "line": 2933, "column": 40 } } @@ -161505,32 +162807,32 @@ "type": "Identifier", "name": "i", "range": [ - 87340, - 87341 + 88277, + 88278 ], "loc": { "start": { - "line": 2906, + "line": 2933, "column": 42 }, "end": { - "line": 2906, + "line": 2933, "column": 43 } } }, "prefix": false, "range": [ - 87340, - 87343 + 88277, + 88280 ], "loc": { "start": { - "line": 2906, + "line": 2933, "column": 42 }, "end": { - "line": 2906, + "line": 2933, "column": 45 } } @@ -161547,16 +162849,16 @@ "type": "Identifier", "name": "i", "range": [ - 87363, - 87364 + 88300, + 88301 ], "loc": { "start": { - "line": 2907, + "line": 2934, "column": 16 }, "end": { - "line": 2907, + "line": 2934, "column": 17 } } @@ -161565,31 +162867,31 @@ "type": "Identifier", "name": "colIndex", "range": [ - 87369, - 87377 + 88306, + 88314 ], "loc": { "start": { - "line": 2907, + "line": 2934, "column": 22 }, "end": { - "line": 2907, + "line": 2934, "column": 30 } } }, "range": [ - 87363, - 87377 + 88300, + 88314 ], "loc": { "start": { - "line": 2907, + "line": 2934, "column": 16 }, "end": { - "line": 2907, + "line": 2934, "column": 30 } } @@ -161601,48 +162903,48 @@ "type": "ContinueStatement", "label": null, "range": [ - 87397, - 87406 + 88334, + 88343 ], "loc": { "start": { - "line": 2908, + "line": 2935, "column": 16 }, "end": { - "line": 2908, + "line": 2935, "column": 25 } } } ], "range": [ - 87379, - 87420 + 88316, + 88357 ], "loc": { "start": { - "line": 2907, + "line": 2934, "column": 32 }, "end": { - "line": 2909, + "line": 2936, "column": 13 } } }, "alternate": null, "range": [ - 87359, - 87420 + 88296, + 88357 ], "loc": { "start": { - "line": 2907, + "line": 2934, "column": 12 }, "end": { - "line": 2909, + "line": 2936, "column": 13 } } @@ -161659,16 +162961,16 @@ "type": "Identifier", "name": "tHead", "range": [ - 87437, - 87442 + 88374, + 88379 ], "loc": { "start": { - "line": 2910, + "line": 2937, "column": 16 }, "end": { - "line": 2910, + "line": 2937, "column": 21 } } @@ -161677,31 +162979,31 @@ "type": "Identifier", "name": "length", "range": [ - 87443, - 87449 + 88380, + 88386 ], "loc": { "start": { - "line": 2910, + "line": 2937, "column": 22 }, "end": { - "line": 2910, + "line": 2937, "column": 28 } } }, "range": [ - 87437, - 87449 + 88374, + 88386 ], "loc": { "start": { - "line": 2910, + "line": 2937, "column": 16 }, "end": { - "line": 2910, + "line": 2937, "column": 28 } } @@ -161711,31 +163013,31 @@ "value": 0, "raw": "0", "range": [ - 87454, - 87455 + 88391, + 88392 ], "loc": { "start": { - "line": 2910, + "line": 2937, "column": 33 }, "end": { - "line": 2910, + "line": 2937, "column": 34 } } }, "range": [ - 87437, - 87455 + 88374, + 88392 ], "loc": { "start": { - "line": 2910, + "line": 2937, "column": 16 }, "end": { - "line": 2910, + "line": 2937, "column": 34 } } @@ -161752,16 +163054,16 @@ "type": "Identifier", "name": "header", "range": [ - 87475, - 87481 + 88412, + 88418 ], "loc": { "start": { - "line": 2911, + "line": 2938, "column": 16 }, "end": { - "line": 2911, + "line": 2938, "column": 22 } } @@ -161782,16 +163084,16 @@ "type": "Identifier", "name": "table", "range": [ - 87484, - 87489 + 88421, + 88426 ], "loc": { "start": { - "line": 2911, + "line": 2938, "column": 25 }, "end": { - "line": 2911, + "line": 2938, "column": 30 } } @@ -161800,31 +163102,31 @@ "type": "Identifier", "name": "rows", "range": [ - 87490, - 87494 + 88427, + 88431 ], "loc": { "start": { - "line": 2911, + "line": 2938, "column": 31 }, "end": { - "line": 2911, + "line": 2938, "column": 35 } } }, "range": [ - 87484, - 87494 + 88421, + 88431 ], "loc": { "start": { - "line": 2911, + "line": 2938, "column": 25 }, "end": { - "line": 2911, + "line": 2938, "column": 35 } } @@ -161833,31 +163135,31 @@ "type": "Identifier", "name": "headersRow", "range": [ - 87495, - 87505 + 88432, + 88442 ], "loc": { "start": { - "line": 2911, + "line": 2938, "column": 36 }, "end": { - "line": 2911, + "line": 2938, "column": 46 } } }, "range": [ - 87484, - 87506 + 88421, + 88443 ], "loc": { "start": { - "line": 2911, + "line": 2938, "column": 25 }, "end": { - "line": 2911, + "line": 2938, "column": 47 } } @@ -161866,31 +163168,31 @@ "type": "Identifier", "name": "cells", "range": [ - 87507, - 87512 + 88444, + 88449 ], "loc": { "start": { - "line": 2911, + "line": 2938, "column": 48 }, "end": { - "line": 2911, + "line": 2938, "column": 53 } } }, "range": [ - 87484, - 87512 + 88421, + 88449 ], "loc": { "start": { - "line": 2911, + "line": 2938, "column": 25 }, "end": { - "line": 2911, + "line": 2938, "column": 53 } } @@ -161899,93 +163201,93 @@ "type": "Identifier", "name": "i", "range": [ - 87513, - 87514 + 88450, + 88451 ], "loc": { "start": { - "line": 2911, + "line": 2938, "column": 54 }, "end": { - "line": 2911, + "line": 2938, "column": 55 } } }, "range": [ - 87484, - 87515 + 88421, + 88452 ], "loc": { "start": { - "line": 2911, + "line": 2938, "column": 25 }, "end": { - "line": 2911, + "line": 2938, "column": 56 } } }, "range": [ - 87475, - 87515 + 88412, + 88452 ], "loc": { "start": { - "line": 2911, + "line": 2938, "column": 16 }, "end": { - "line": 2911, + "line": 2938, "column": 56 } } }, "range": [ - 87475, - 87516 + 88412, + 88453 ], "loc": { "start": { - "line": 2911, + "line": 2938, "column": 16 }, "end": { - "line": 2911, + "line": 2938, "column": 57 } } } ], "range": [ - 87457, - 87530 + 88394, + 88467 ], "loc": { "start": { - "line": 2910, + "line": 2937, "column": 36 }, "end": { - "line": 2912, + "line": 2939, "column": 13 } } }, "alternate": null, "range": [ - 87433, - 87530 + 88370, + 88467 ], "loc": { "start": { - "line": 2910, + "line": 2937, "column": 12 }, "end": { - "line": 2912, + "line": 2939, "column": 13 } } @@ -162002,16 +163304,16 @@ "type": "Identifier", "name": "tHead", "range": [ - 87547, - 87552 + 88484, + 88489 ], "loc": { "start": { - "line": 2913, + "line": 2940, "column": 16 }, "end": { - "line": 2913, + "line": 2940, "column": 21 } } @@ -162020,31 +163322,31 @@ "type": "Identifier", "name": "length", "range": [ - 87553, - 87559 + 88490, + 88496 ], "loc": { "start": { - "line": 2913, + "line": 2940, "column": 22 }, "end": { - "line": 2913, + "line": 2940, "column": 28 } } }, "range": [ - 87547, - 87559 + 88484, + 88496 ], "loc": { "start": { - "line": 2913, + "line": 2940, "column": 16 }, "end": { - "line": 2913, + "line": 2940, "column": 28 } } @@ -162054,31 +163356,31 @@ "value": 1, "raw": "1", "range": [ - 87564, - 87565 + 88501, + 88502 ], "loc": { "start": { - "line": 2913, + "line": 2940, "column": 33 }, "end": { - "line": 2913, + "line": 2940, "column": 34 } } }, "range": [ - 87547, - 87565 + 88484, + 88502 ], "loc": { "start": { - "line": 2913, + "line": 2940, "column": 16 }, "end": { - "line": 2913, + "line": 2940, "column": 34 } } @@ -162095,16 +163397,16 @@ "type": "Identifier", "name": "header", "range": [ - 87585, - 87591 + 88522, + 88528 ], "loc": { "start": { - "line": 2914, + "line": 2941, "column": 16 }, "end": { - "line": 2914, + "line": 2941, "column": 22 } } @@ -162128,16 +163430,16 @@ "type": "Identifier", "name": "tHead", "range": [ - 87594, - 87599 + 88531, + 88536 ], "loc": { "start": { - "line": 2914, + "line": 2941, "column": 25 }, "end": { - "line": 2914, + "line": 2941, "column": 30 } } @@ -162147,31 +163449,31 @@ "value": 0, "raw": "0", "range": [ - 87600, - 87601 + 88537, + 88538 ], "loc": { "start": { - "line": 2914, + "line": 2941, "column": 31 }, "end": { - "line": 2914, + "line": 2941, "column": 32 } } }, "range": [ - 87594, - 87602 + 88531, + 88539 ], "loc": { "start": { - "line": 2914, + "line": 2941, "column": 25 }, "end": { - "line": 2914, + "line": 2941, "column": 33 } } @@ -162180,31 +163482,31 @@ "type": "Identifier", "name": "rows", "range": [ - 87603, - 87607 + 88540, + 88544 ], "loc": { "start": { - "line": 2914, + "line": 2941, "column": 34 }, "end": { - "line": 2914, + "line": 2941, "column": 38 } } }, "range": [ - 87594, - 87607 + 88531, + 88544 ], "loc": { "start": { - "line": 2914, + "line": 2941, "column": 25 }, "end": { - "line": 2914, + "line": 2941, "column": 38 } } @@ -162213,31 +163515,31 @@ "type": "Identifier", "name": "headersRow", "range": [ - 87608, - 87618 + 88545, + 88555 ], "loc": { "start": { - "line": 2914, + "line": 2941, "column": 39 }, "end": { - "line": 2914, + "line": 2941, "column": 49 } } }, "range": [ - 87594, - 87619 + 88531, + 88556 ], "loc": { "start": { - "line": 2914, + "line": 2941, "column": 25 }, "end": { - "line": 2914, + "line": 2941, "column": 50 } } @@ -162246,31 +163548,31 @@ "type": "Identifier", "name": "cells", "range": [ - 87620, - 87625 + 88557, + 88562 ], "loc": { "start": { - "line": 2914, + "line": 2941, "column": 51 }, "end": { - "line": 2914, + "line": 2941, "column": 56 } } }, "range": [ - 87594, - 87625 + 88531, + 88562 ], "loc": { "start": { - "line": 2914, + "line": 2941, "column": 25 }, "end": { - "line": 2914, + "line": 2941, "column": 56 } } @@ -162279,93 +163581,93 @@ "type": "Identifier", "name": "i", "range": [ - 87626, - 87627 + 88563, + 88564 ], "loc": { "start": { - "line": 2914, + "line": 2941, "column": 57 }, "end": { - "line": 2914, + "line": 2941, "column": 58 } } }, "range": [ - 87594, - 87628 + 88531, + 88565 ], "loc": { "start": { - "line": 2914, + "line": 2941, "column": 25 }, "end": { - "line": 2914, + "line": 2941, "column": 59 } } }, "range": [ - 87585, - 87628 + 88522, + 88565 ], "loc": { "start": { - "line": 2914, + "line": 2941, "column": 16 }, "end": { - "line": 2914, + "line": 2941, "column": 59 } } }, "range": [ - 87585, - 87629 + 88522, + 88566 ], "loc": { "start": { - "line": 2914, + "line": 2941, "column": 16 }, "end": { - "line": 2914, + "line": 2941, "column": 60 } } } ], "range": [ - 87567, - 87643 + 88504, + 88580 ], "loc": { "start": { - "line": 2913, + "line": 2940, "column": 36 }, "end": { - "line": 2915, + "line": 2942, "column": 13 } } }, "alternate": null, "range": [ - 87543, - 87643 + 88480, + 88580 ], "loc": { "start": { - "line": 2913, + "line": 2940, "column": 12 }, "end": { - "line": 2915, + "line": 2942, "column": 13 } } @@ -162374,47 +163676,47 @@ "type": "BreakStatement", "label": null, "range": [ - 87656, - 87662 + 88593, + 88599 ], "loc": { "start": { - "line": 2916, + "line": 2943, "column": 12 }, "end": { - "line": 2916, + "line": 2943, "column": 18 } } } ], "range": [ - 87345, - 87672 + 88282, + 88609 ], "loc": { "start": { - "line": 2906, + "line": 2933, "column": 47 }, "end": { - "line": 2917, + "line": 2944, "column": 9 } } }, "range": [ - 87306, - 87672 + 88243, + 88609 ], "loc": { "start": { - "line": 2906, + "line": 2933, "column": 8 }, "end": { - "line": 2917, + "line": 2944, "column": 9 } } @@ -162425,47 +163727,47 @@ "type": "Identifier", "name": "header", "range": [ - 87688, - 87694 + 88625, + 88631 ], "loc": { "start": { - "line": 2918, + "line": 2945, "column": 15 }, "end": { - "line": 2918, + "line": 2945, "column": 21 } } }, "range": [ - 87681, - 87695 + 88618, + 88632 ], "loc": { "start": { - "line": 2918, + "line": 2945, "column": 8 }, "end": { - "line": 2918, + "line": 2945, "column": 22 } } } ], "range": [ - 87115, - 87701 + 88052, + 88638 ], "loc": { "start": { - "line": 2901, + "line": 2928, "column": 31 }, "end": { - "line": 2919, + "line": 2946, "column": 5 } } @@ -162473,16 +163775,16 @@ "generator": false, "expression": false, "range": [ - 87104, - 87701 + 88041, + 88638 ], "loc": { "start": { - "line": 2901, + "line": 2928, "column": 20 }, "end": { - "line": 2919, + "line": 2946, "column": 5 } } @@ -162490,16 +163792,16 @@ "kind": "method", "computed": false, "range": [ - 87088, - 87701 + 88025, + 88638 ], "loc": { "start": { - "line": 2901, + "line": 2928, "column": 4 }, "end": { - "line": 2919, + "line": 2946, "column": 5 } }, @@ -162508,16 +163810,16 @@ "type": "Block", "value": "*\n * Get the header DOM element for a given column index\n * @param {Number} colIndex Column index\n * @return {Element}\n ", "range": [ - 86942, - 87083 + 87879, + 88020 ], "loc": { "start": { - "line": 2896, + "line": 2923, "column": 4 }, "end": { - "line": 2900, + "line": 2927, "column": 7 } } @@ -162528,16 +163830,16 @@ "type": "Block", "value": "*\n * Return the list of headers' text\n * @param {Boolean} excludeHiddenCols Optional: exclude hidden columns\n * @return {Array} list of headers' text\n ", "range": [ - 87707, - 87880 + 88644, + 88817 ], "loc": { "start": { - "line": 2921, + "line": 2948, "column": 4 }, "end": { - "line": 2925, + "line": 2952, "column": 7 } } @@ -162551,16 +163853,16 @@ "type": "Identifier", "name": "getHeadersText", "range": [ - 87885, - 87899 + 88822, + 88836 ], "loc": { "start": { - "line": 2926, + "line": 2953, "column": 4 }, "end": { - "line": 2926, + "line": 2953, "column": 18 } } @@ -162575,16 +163877,16 @@ "type": "Identifier", "name": "excludeHiddenCols", "range": [ - 87900, - 87917 + 88837, + 88854 ], "loc": { "start": { - "line": 2926, + "line": 2953, "column": 19 }, "end": { - "line": 2926, + "line": 2953, "column": 36 } } @@ -162594,31 +163896,31 @@ "value": false, "raw": "false", "range": [ - 87920, - 87925 + 88857, + 88862 ], "loc": { "start": { - "line": 2926, + "line": 2953, "column": 39 }, "end": { - "line": 2926, + "line": 2953, "column": 44 } } }, "range": [ - 87900, - 87925 + 88837, + 88862 ], "loc": { "start": { - "line": 2926, + "line": 2953, "column": 19 }, "end": { - "line": 2926, + "line": 2953, "column": 44 } } @@ -162636,16 +163938,16 @@ "type": "Identifier", "name": "headers", "range": [ - 87941, - 87948 + 88878, + 88885 ], "loc": { "start": { - "line": 2927, + "line": 2954, "column": 12 }, "end": { - "line": 2927, + "line": 2954, "column": 19 } } @@ -162654,31 +163956,31 @@ "type": "ArrayExpression", "elements": [], "range": [ - 87951, - 87953 + 88888, + 88890 ], "loc": { "start": { - "line": 2927, + "line": 2954, "column": 22 }, "end": { - "line": 2927, + "line": 2954, "column": 24 } } }, "range": [ - 87941, - 87953 + 88878, + 88890 ], "loc": { "start": { - "line": 2927, + "line": 2954, "column": 12 }, "end": { - "line": 2927, + "line": 2954, "column": 24 } } @@ -162686,16 +163988,16 @@ ], "kind": "let", "range": [ - 87937, - 87954 + 88874, + 88891 ], "loc": { "start": { - "line": 2927, + "line": 2954, "column": 8 }, "end": { - "line": 2927, + "line": 2954, "column": 25 } } @@ -162711,16 +164013,16 @@ "type": "Identifier", "name": "j", "range": [ - 87972, - 87973 + 88909, + 88910 ], "loc": { "start": { - "line": 2928, + "line": 2955, "column": 17 }, "end": { - "line": 2928, + "line": 2955, "column": 18 } } @@ -162730,31 +164032,31 @@ "value": 0, "raw": "0", "range": [ - 87976, - 87977 + 88913, + 88914 ], "loc": { "start": { - "line": 2928, + "line": 2955, "column": 21 }, "end": { - "line": 2928, + "line": 2955, "column": 22 } } }, "range": [ - 87972, - 87977 + 88909, + 88914 ], "loc": { "start": { - "line": 2928, + "line": 2955, "column": 17 }, "end": { - "line": 2928, + "line": 2955, "column": 22 } } @@ -162762,16 +164064,16 @@ ], "kind": "let", "range": [ - 87968, - 87977 + 88905, + 88914 ], "loc": { "start": { - "line": 2928, + "line": 2955, "column": 13 }, "end": { - "line": 2928, + "line": 2955, "column": 22 } } @@ -162783,16 +164085,16 @@ "type": "Identifier", "name": "j", "range": [ - 87979, - 87980 + 88916, + 88917 ], "loc": { "start": { - "line": 2928, + "line": 2955, "column": 24 }, "end": { - "line": 2928, + "line": 2955, "column": 25 } } @@ -162803,16 +164105,16 @@ "object": { "type": "ThisExpression", "range": [ - 87983, - 87987 + 88920, + 88924 ], "loc": { "start": { - "line": 2928, + "line": 2955, "column": 28 }, "end": { - "line": 2928, + "line": 2955, "column": 32 } } @@ -162821,46 +164123,46 @@ "type": "Identifier", "name": "nbCells", "range": [ - 87988, - 87995 + 88925, + 88932 ], "loc": { "start": { - "line": 2928, + "line": 2955, "column": 33 }, "end": { - "line": 2928, + "line": 2955, "column": 40 } } }, "range": [ - 87983, - 87995 + 88920, + 88932 ], "loc": { "start": { - "line": 2928, + "line": 2955, "column": 28 }, "end": { - "line": 2928, + "line": 2955, "column": 40 } } }, "range": [ - 87979, - 87995 + 88916, + 88932 ], "loc": { "start": { - "line": 2928, + "line": 2955, "column": 24 }, "end": { - "line": 2928, + "line": 2955, "column": 40 } } @@ -162872,32 +164174,32 @@ "type": "Identifier", "name": "j", "range": [ - 87997, - 87998 + 88934, + 88935 ], "loc": { "start": { - "line": 2928, + "line": 2955, "column": 42 }, "end": { - "line": 2928, + "line": 2955, "column": 43 } } }, "prefix": false, "range": [ - 87997, - 88000 + 88934, + 88937 ], "loc": { "start": { - "line": 2928, + "line": 2955, "column": 42 }, "end": { - "line": 2928, + "line": 2955, "column": 45 } } @@ -162914,16 +164216,16 @@ "type": "Identifier", "name": "excludeHiddenCols", "range": [ - 88020, - 88037 + 88957, + 88974 ], "loc": { "start": { - "line": 2929, + "line": 2956, "column": 16 }, "end": { - "line": 2929, + "line": 2956, "column": 33 } } @@ -162936,16 +164238,16 @@ "object": { "type": "ThisExpression", "range": [ - 88041, - 88045 + 88978, + 88982 ], "loc": { "start": { - "line": 2929, + "line": 2956, "column": 37 }, "end": { - "line": 2929, + "line": 2956, "column": 41 } } @@ -162954,31 +164256,31 @@ "type": "Identifier", "name": "hasExtension", "range": [ - 88046, - 88058 + 88983, + 88995 ], "loc": { "start": { - "line": 2929, + "line": 2956, "column": 42 }, "end": { - "line": 2929, + "line": 2956, "column": 54 } } }, "range": [ - 88041, - 88058 + 88978, + 88995 ], "loc": { "start": { - "line": 2929, + "line": 2956, "column": 37 }, "end": { - "line": 2929, + "line": 2956, "column": 54 } } @@ -162989,47 +164291,47 @@ "value": "colsVisibility", "raw": "'colsVisibility'", "range": [ - 88059, - 88075 + 88996, + 89012 ], "loc": { "start": { - "line": 2929, + "line": 2956, "column": 55 }, "end": { - "line": 2929, + "line": 2956, "column": 71 } } } ], "range": [ - 88041, - 88076 + 88978, + 89013 ], "loc": { "start": { - "line": 2929, + "line": 2956, "column": 37 }, "end": { - "line": 2929, + "line": 2956, "column": 72 } } }, "range": [ - 88020, - 88076 + 88957, + 89013 ], "loc": { "start": { - "line": 2929, + "line": 2956, "column": 16 }, "end": { - "line": 2929, + "line": 2956, "column": 72 } } @@ -163052,16 +164354,16 @@ "object": { "type": "ThisExpression", "range": [ - 88100, - 88104 + 89037, + 89041 ], "loc": { "start": { - "line": 2930, + "line": 2957, "column": 20 }, "end": { - "line": 2930, + "line": 2957, "column": 24 } } @@ -163070,31 +164372,31 @@ "type": "Identifier", "name": "extension", "range": [ - 88105, - 88114 + 89042, + 89051 ], "loc": { "start": { - "line": 2930, + "line": 2957, "column": 25 }, "end": { - "line": 2930, + "line": 2957, "column": 34 } } }, "range": [ - 88100, - 88114 + 89037, + 89051 ], "loc": { "start": { - "line": 2930, + "line": 2957, "column": 20 }, "end": { - "line": 2930, + "line": 2957, "column": 34 } } @@ -163105,32 +164407,32 @@ "value": "colsVisibility", "raw": "'colsVisibility'", "range": [ - 88115, - 88131 + 89052, + 89068 ], "loc": { "start": { - "line": 2930, + "line": 2957, "column": 35 }, "end": { - "line": 2930, + "line": 2957, "column": 51 } } } ], "range": [ - 88100, - 88132 + 89037, + 89069 ], "loc": { "start": { - "line": 2930, + "line": 2957, "column": 20 }, "end": { - "line": 2930, + "line": 2957, "column": 52 } } @@ -163139,31 +164441,31 @@ "type": "Identifier", "name": "isColHidden", "range": [ - 88133, - 88144 + 89070, + 89081 ], "loc": { "start": { - "line": 2930, + "line": 2957, "column": 53 }, "end": { - "line": 2930, + "line": 2957, "column": 64 } } }, "range": [ - 88100, - 88144 + 89037, + 89081 ], "loc": { "start": { - "line": 2930, + "line": 2957, "column": 20 }, "end": { - "line": 2930, + "line": 2957, "column": 64 } } @@ -163173,32 +164475,32 @@ "type": "Identifier", "name": "j", "range": [ - 88145, - 88146 + 89082, + 89083 ], "loc": { "start": { - "line": 2930, + "line": 2957, "column": 65 }, "end": { - "line": 2930, + "line": 2957, "column": 66 } } } ], "range": [ - 88100, - 88147 + 89037, + 89084 ], "loc": { "start": { - "line": 2930, + "line": 2957, "column": 20 }, "end": { - "line": 2930, + "line": 2957, "column": 67 } } @@ -163210,80 +164512,80 @@ "type": "ContinueStatement", "label": null, "range": [ - 88171, - 88180 + 89108, + 89117 ], "loc": { "start": { - "line": 2931, + "line": 2958, "column": 20 }, "end": { - "line": 2931, + "line": 2958, "column": 29 } } } ], "range": [ - 88149, - 88198 + 89086, + 89135 ], "loc": { "start": { - "line": 2930, + "line": 2957, "column": 69 }, "end": { - "line": 2932, + "line": 2959, "column": 17 } } }, "alternate": null, "range": [ - 88096, - 88198 + 89033, + 89135 ], "loc": { "start": { - "line": 2930, + "line": 2957, "column": 16 }, "end": { - "line": 2932, + "line": 2959, "column": 17 } } } ], "range": [ - 88078, - 88212 + 89015, + 89149 ], "loc": { "start": { - "line": 2929, + "line": 2956, "column": 74 }, "end": { - "line": 2933, + "line": 2960, "column": 13 } } }, "alternate": null, "range": [ - 88016, - 88212 + 88953, + 89149 ], "loc": { "start": { - "line": 2929, + "line": 2956, "column": 12 }, "end": { - "line": 2933, + "line": 2960, "column": 13 } } @@ -163297,16 +164599,16 @@ "type": "Identifier", "name": "header", "range": [ - 88229, - 88235 + 89166, + 89172 ], "loc": { "start": { - "line": 2934, + "line": 2961, "column": 16 }, "end": { - "line": 2934, + "line": 2961, "column": 22 } } @@ -163319,16 +164621,16 @@ "object": { "type": "ThisExpression", "range": [ - 88238, - 88242 + 89175, + 89179 ], "loc": { "start": { - "line": 2934, + "line": 2961, "column": 25 }, "end": { - "line": 2934, + "line": 2961, "column": 29 } } @@ -163337,31 +164639,31 @@ "type": "Identifier", "name": "getHeaderElement", "range": [ - 88243, - 88259 + 89180, + 89196 ], "loc": { "start": { - "line": 2934, + "line": 2961, "column": 30 }, "end": { - "line": 2934, + "line": 2961, "column": 46 } } }, "range": [ - 88238, - 88259 + 89175, + 89196 ], "loc": { "start": { - "line": 2934, + "line": 2961, "column": 25 }, "end": { - "line": 2934, + "line": 2961, "column": 46 } } @@ -163371,47 +164673,47 @@ "type": "Identifier", "name": "j", "range": [ - 88260, - 88261 + 89197, + 89198 ], "loc": { "start": { - "line": 2934, + "line": 2961, "column": 47 }, "end": { - "line": 2934, + "line": 2961, "column": 48 } } } ], "range": [ - 88238, - 88262 + 89175, + 89199 ], "loc": { "start": { - "line": 2934, + "line": 2961, "column": 25 }, "end": { - "line": 2934, + "line": 2961, "column": 49 } } }, "range": [ - 88229, - 88262 + 89166, + 89199 ], "loc": { "start": { - "line": 2934, + "line": 2961, "column": 16 }, "end": { - "line": 2934, + "line": 2961, "column": 49 } } @@ -163419,16 +164721,16 @@ ], "kind": "let", "range": [ - 88225, - 88263 + 89162, + 89200 ], "loc": { "start": { - "line": 2934, + "line": 2961, "column": 12 }, "end": { - "line": 2934, + "line": 2961, "column": 50 } } @@ -163442,16 +164744,16 @@ "type": "Identifier", "name": "headerText", "range": [ - 88280, - 88290 + 89217, + 89227 ], "loc": { "start": { - "line": 2935, + "line": 2962, "column": 16 }, "end": { - "line": 2935, + "line": 2962, "column": 26 } } @@ -163462,16 +164764,16 @@ "type": "Identifier", "name": "getFirstTextNode", "range": [ - 88293, - 88309 + 89230, + 89246 ], "loc": { "start": { - "line": 2935, + "line": 2962, "column": 29 }, "end": { - "line": 2935, + "line": 2962, "column": 45 } } @@ -163481,47 +164783,47 @@ "type": "Identifier", "name": "header", "range": [ - 88310, - 88316 + 89247, + 89253 ], "loc": { "start": { - "line": 2935, + "line": 2962, "column": 46 }, "end": { - "line": 2935, + "line": 2962, "column": 52 } } } ], "range": [ - 88293, - 88317 + 89230, + 89254 ], "loc": { "start": { - "line": 2935, + "line": 2962, "column": 29 }, "end": { - "line": 2935, + "line": 2962, "column": 53 } } }, "range": [ - 88280, - 88317 + 89217, + 89254 ], "loc": { "start": { - "line": 2935, + "line": 2962, "column": 16 }, "end": { - "line": 2935, + "line": 2962, "column": 53 } } @@ -163529,16 +164831,16 @@ ], "kind": "let", "range": [ - 88276, - 88318 + 89213, + 89255 ], "loc": { "start": { - "line": 2935, + "line": 2962, "column": 12 }, "end": { - "line": 2935, + "line": 2962, "column": 54 } } @@ -163554,16 +164856,16 @@ "type": "Identifier", "name": "headers", "range": [ - 88331, - 88338 + 89268, + 89275 ], "loc": { "start": { - "line": 2936, + "line": 2963, "column": 12 }, "end": { - "line": 2936, + "line": 2963, "column": 19 } } @@ -163572,31 +164874,31 @@ "type": "Identifier", "name": "push", "range": [ - 88339, - 88343 + 89276, + 89280 ], "loc": { "start": { - "line": 2936, + "line": 2963, "column": 20 }, "end": { - "line": 2936, + "line": 2963, "column": 24 } } }, "range": [ - 88331, - 88343 + 89268, + 89280 ], "loc": { "start": { - "line": 2936, + "line": 2963, "column": 12 }, "end": { - "line": 2936, + "line": 2963, "column": 24 } } @@ -163606,78 +164908,78 @@ "type": "Identifier", "name": "headerText", "range": [ - 88344, - 88354 + 89281, + 89291 ], "loc": { "start": { - "line": 2936, + "line": 2963, "column": 25 }, "end": { - "line": 2936, + "line": 2963, "column": 35 } } } ], "range": [ - 88331, - 88355 + 89268, + 89292 ], "loc": { "start": { - "line": 2936, + "line": 2963, "column": 12 }, "end": { - "line": 2936, + "line": 2963, "column": 36 } } }, "range": [ - 88331, - 88356 + 89268, + 89293 ], "loc": { "start": { - "line": 2936, + "line": 2963, "column": 12 }, "end": { - "line": 2936, + "line": 2963, "column": 37 } } } ], "range": [ - 88002, - 88366 + 88939, + 89303 ], "loc": { "start": { - "line": 2928, + "line": 2955, "column": 47 }, "end": { - "line": 2937, + "line": 2964, "column": 9 } } }, "range": [ - 87963, - 88366 + 88900, + 89303 ], "loc": { "start": { - "line": 2928, + "line": 2955, "column": 8 }, "end": { - "line": 2937, + "line": 2964, "column": 9 } } @@ -163688,47 +164990,47 @@ "type": "Identifier", "name": "headers", "range": [ - 88382, - 88389 + 89319, + 89326 ], "loc": { "start": { - "line": 2938, + "line": 2965, "column": 15 }, "end": { - "line": 2938, + "line": 2965, "column": 22 } } }, "range": [ - 88375, - 88390 + 89312, + 89327 ], "loc": { "start": { - "line": 2938, + "line": 2965, "column": 8 }, "end": { - "line": 2938, + "line": 2965, "column": 23 } } } ], "range": [ - 87927, - 88396 + 88864, + 89333 ], "loc": { "start": { - "line": 2926, + "line": 2953, "column": 46 }, "end": { - "line": 2939, + "line": 2966, "column": 5 } } @@ -163736,16 +165038,16 @@ "generator": false, "expression": false, "range": [ - 87899, - 88396 + 88836, + 89333 ], "loc": { "start": { - "line": 2926, + "line": 2953, "column": 18 }, "end": { - "line": 2939, + "line": 2966, "column": 5 } } @@ -163753,16 +165055,16 @@ "kind": "method", "computed": false, "range": [ - 87885, - 88396 + 88822, + 89333 ], "loc": { "start": { - "line": 2926, + "line": 2953, "column": 4 }, "end": { - "line": 2939, + "line": 2966, "column": 5 } }, @@ -163771,16 +165073,16 @@ "type": "Block", "value": "*\n * Return the list of headers' text\n * @param {Boolean} excludeHiddenCols Optional: exclude hidden columns\n * @return {Array} list of headers' text\n ", "range": [ - 87707, - 87880 + 88644, + 88817 ], "loc": { "start": { - "line": 2921, + "line": 2948, "column": 4 }, "end": { - "line": 2925, + "line": 2952, "column": 7 } } @@ -163791,16 +165093,16 @@ "type": "Block", "value": "*\n * Return the filter type for a specified column\n * @param {Number} colIndex Column's index\n * @return {String}\n ", "range": [ - 88402, - 88538 + 89339, + 89475 ], "loc": { "start": { - "line": 2941, + "line": 2968, "column": 4 }, "end": { - "line": 2945, + "line": 2972, "column": 7 } } @@ -163814,16 +165116,16 @@ "type": "Identifier", "name": "getFilterType", "range": [ - 88543, - 88556 + 89480, + 89493 ], "loc": { "start": { - "line": 2946, + "line": 2973, "column": 4 }, "end": { - "line": 2946, + "line": 2973, "column": 17 } } @@ -163836,16 +165138,16 @@ "type": "Identifier", "name": "colIndex", "range": [ - 88557, - 88565 + 89494, + 89502 ], "loc": { "start": { - "line": 2946, + "line": 2973, "column": 18 }, "end": { - "line": 2946, + "line": 2973, "column": 26 } } @@ -163863,16 +165165,16 @@ "type": "Identifier", "name": "colType", "range": [ - 88581, - 88588 + 89518, + 89525 ], "loc": { "start": { - "line": 2947, + "line": 2974, "column": 12 }, "end": { - "line": 2947, + "line": 2974, "column": 19 } } @@ -163886,16 +165188,16 @@ "object": { "type": "ThisExpression", "range": [ - 88591, - 88595 + 89528, + 89532 ], "loc": { "start": { - "line": 2947, + "line": 2974, "column": 22 }, "end": { - "line": 2947, + "line": 2974, "column": 26 } } @@ -163904,31 +165206,31 @@ "type": "Identifier", "name": "cfg", "range": [ - 88596, - 88599 + 89533, + 89536 ], "loc": { "start": { - "line": 2947, + "line": 2974, "column": 27 }, "end": { - "line": 2947, + "line": 2974, "column": 30 } } }, "range": [ - 88591, - 88599 + 89528, + 89536 ], "loc": { "start": { - "line": 2947, + "line": 2974, "column": 22 }, "end": { - "line": 2947, + "line": 2974, "column": 30 } } @@ -163941,16 +165243,16 @@ "value": "col_", "raw": "'col_'", "range": [ - 88600, - 88606 + 89537, + 89543 ], "loc": { "start": { - "line": 2947, + "line": 2974, "column": 31 }, "end": { - "line": 2947, + "line": 2974, "column": 37 } } @@ -163959,61 +165261,61 @@ "type": "Identifier", "name": "colIndex", "range": [ - 88609, - 88617 + 89546, + 89554 ], "loc": { "start": { - "line": 2947, + "line": 2974, "column": 40 }, "end": { - "line": 2947, + "line": 2974, "column": 48 } } }, "range": [ - 88600, - 88617 + 89537, + 89554 ], "loc": { "start": { - "line": 2947, + "line": 2974, "column": 31 }, "end": { - "line": 2947, + "line": 2974, "column": 48 } } }, "range": [ - 88591, - 88618 + 89528, + 89555 ], "loc": { "start": { - "line": 2947, + "line": 2974, "column": 22 }, "end": { - "line": 2947, + "line": 2974, "column": 49 } } }, "range": [ - 88581, - 88618 + 89518, + 89555 ], "loc": { "start": { - "line": 2947, + "line": 2974, "column": 12 }, "end": { - "line": 2947, + "line": 2974, "column": 49 } } @@ -164021,16 +165323,16 @@ ], "kind": "let", "range": [ - 88577, - 88619 + 89514, + 89556 ], "loc": { "start": { - "line": 2947, + "line": 2974, "column": 8 }, "end": { - "line": 2947, + "line": 2974, "column": 50 } } @@ -164046,32 +165348,32 @@ "type": "Identifier", "name": "colType", "range": [ - 88636, - 88643 + 89573, + 89580 ], "loc": { "start": { - "line": 2948, + "line": 2975, "column": 16 }, "end": { - "line": 2948, + "line": 2975, "column": 23 } } }, "prefix": true, "range": [ - 88635, - 88643 + 89572, + 89580 ], "loc": { "start": { - "line": 2948, + "line": 2975, "column": 15 }, "end": { - "line": 2948, + "line": 2975, "column": 23 } } @@ -164080,16 +165382,16 @@ "type": "Identifier", "name": "INPUT", "range": [ - 88646, - 88651 + 89583, + 89588 ], "loc": { "start": { - "line": 2948, + "line": 2975, "column": 26 }, "end": { - "line": 2948, + "line": 2975, "column": 31 } } @@ -164103,16 +165405,16 @@ "type": "Identifier", "name": "colType", "range": [ - 88654, - 88661 + 89591, + 89598 ], "loc": { "start": { - "line": 2948, + "line": 2975, "column": 34 }, "end": { - "line": 2948, + "line": 2975, "column": 41 } } @@ -164121,93 +165423,93 @@ "type": "Identifier", "name": "toLowerCase", "range": [ - 88662, - 88673 + 89599, + 89610 ], "loc": { "start": { - "line": 2948, + "line": 2975, "column": 42 }, "end": { - "line": 2948, + "line": 2975, "column": 53 } } }, "range": [ - 88654, - 88673 + 89591, + 89610 ], "loc": { "start": { - "line": 2948, + "line": 2975, "column": 34 }, "end": { - "line": 2948, + "line": 2975, "column": 53 } } }, "arguments": [], "range": [ - 88654, - 88675 + 89591, + 89612 ], "loc": { "start": { - "line": 2948, + "line": 2975, "column": 34 }, "end": { - "line": 2948, + "line": 2975, "column": 55 } } }, "range": [ - 88635, - 88675 + 89572, + 89612 ], "loc": { "start": { - "line": 2948, + "line": 2975, "column": 15 }, "end": { - "line": 2948, + "line": 2975, "column": 55 } } }, "range": [ - 88628, - 88676 + 89565, + 89613 ], "loc": { "start": { - "line": 2948, + "line": 2975, "column": 8 }, "end": { - "line": 2948, + "line": 2975, "column": 56 } } } ], "range": [ - 88567, - 88682 + 89504, + 89619 ], "loc": { "start": { - "line": 2946, + "line": 2973, "column": 28 }, "end": { - "line": 2949, + "line": 2976, "column": 5 } } @@ -164215,16 +165517,16 @@ "generator": false, "expression": false, "range": [ - 88556, - 88682 + 89493, + 89619 ], "loc": { "start": { - "line": 2946, + "line": 2973, "column": 17 }, "end": { - "line": 2949, + "line": 2976, "column": 5 } } @@ -164232,16 +165534,16 @@ "kind": "method", "computed": false, "range": [ - 88543, - 88682 + 89480, + 89619 ], "loc": { "start": { - "line": 2946, + "line": 2973, "column": 4 }, "end": { - "line": 2949, + "line": 2976, "column": 5 } }, @@ -164250,16 +165552,16 @@ "type": "Block", "value": "*\n * Return the filter type for a specified column\n * @param {Number} colIndex Column's index\n * @return {String}\n ", "range": [ - 88402, - 88538 + 89339, + 89475 ], "loc": { "start": { - "line": 2941, + "line": 2968, "column": 4 }, "end": { - "line": 2945, + "line": 2972, "column": 7 } } @@ -164270,16 +165572,16 @@ "type": "Block", "value": "*\n * Get the total number of filterable rows\n * @return {Number}\n ", "range": [ - 88688, - 88770 + 89625, + 89707 ], "loc": { "start": { - "line": 2951, + "line": 2978, "column": 4 }, "end": { - "line": 2954, + "line": 2981, "column": 7 } } @@ -164293,16 +165595,16 @@ "type": "Identifier", "name": "getFilterableRowsNb", "range": [ - 88775, - 88794 + 89712, + 89731 ], "loc": { "start": { - "line": 2955, + "line": 2982, "column": 4 }, "end": { - "line": 2955, + "line": 2982, "column": 23 } } @@ -164324,16 +165626,16 @@ "object": { "type": "ThisExpression", "range": [ - 88814, - 88818 + 89751, + 89755 ], "loc": { "start": { - "line": 2956, + "line": 2983, "column": 15 }, "end": { - "line": 2956, + "line": 2983, "column": 19 } } @@ -164342,31 +165644,31 @@ "type": "Identifier", "name": "getRowsNb", "range": [ - 88819, - 88828 + 89756, + 89765 ], "loc": { "start": { - "line": 2956, + "line": 2983, "column": 20 }, "end": { - "line": 2956, + "line": 2983, "column": 29 } } }, "range": [ - 88814, - 88828 + 89751, + 89765 ], "loc": { "start": { - "line": 2956, + "line": 2983, "column": 15 }, "end": { - "line": 2956, + "line": 2983, "column": 29 } } @@ -164377,63 +165679,63 @@ "value": false, "raw": "false", "range": [ - 88829, - 88834 + 89766, + 89771 ], "loc": { "start": { - "line": 2956, + "line": 2983, "column": 30 }, "end": { - "line": 2956, + "line": 2983, "column": 35 } } } ], "range": [ - 88814, - 88835 + 89751, + 89772 ], "loc": { "start": { - "line": 2956, + "line": 2983, "column": 15 }, "end": { - "line": 2956, + "line": 2983, "column": 36 } } }, "range": [ - 88807, - 88836 + 89744, + 89773 ], "loc": { "start": { - "line": 2956, + "line": 2983, "column": 8 }, "end": { - "line": 2956, + "line": 2983, "column": 37 } } } ], "range": [ - 88797, - 88842 + 89734, + 89779 ], "loc": { "start": { - "line": 2955, + "line": 2982, "column": 26 }, "end": { - "line": 2957, + "line": 2984, "column": 5 } } @@ -164441,16 +165743,16 @@ "generator": false, "expression": false, "range": [ - 88794, - 88842 + 89731, + 89779 ], "loc": { "start": { - "line": 2955, + "line": 2982, "column": 23 }, "end": { - "line": 2957, + "line": 2984, "column": 5 } } @@ -164458,16 +165760,16 @@ "kind": "method", "computed": false, "range": [ - 88775, - 88842 + 89712, + 89779 ], "loc": { "start": { - "line": 2955, + "line": 2982, "column": 4 }, "end": { - "line": 2957, + "line": 2984, "column": 5 } }, @@ -164476,16 +165778,16 @@ "type": "Block", "value": "*\n * Get the total number of filterable rows\n * @return {Number}\n ", "range": [ - 88688, - 88770 + 89625, + 89707 ], "loc": { "start": { - "line": 2951, + "line": 2978, "column": 4 }, "end": { - "line": 2954, + "line": 2981, "column": 7 } } @@ -164496,16 +165798,16 @@ "type": "Block", "value": "*\n * Return the total number of valid rows\n * @param {Boolean} [reCalc=false] Forces calculation of filtered rows\n * @returns {Number}\n ", "range": [ - 88848, - 89004 + 89785, + 89941 ], "loc": { "start": { - "line": 2959, + "line": 2986, "column": 4 }, "end": { - "line": 2963, + "line": 2990, "column": 7 } } @@ -164519,16 +165821,16 @@ "type": "Identifier", "name": "getValidRowsNb", "range": [ - 89009, - 89023 + 89946, + 89960 ], "loc": { "start": { - "line": 2964, + "line": 2991, "column": 4 }, "end": { - "line": 2964, + "line": 2991, "column": 18 } } @@ -164543,16 +165845,16 @@ "type": "Identifier", "name": "reCalc", "range": [ - 89024, - 89030 + 89961, + 89967 ], "loc": { "start": { - "line": 2964, + "line": 2991, "column": 19 }, "end": { - "line": 2964, + "line": 2991, "column": 25 } } @@ -164562,31 +165864,31 @@ "value": false, "raw": "false", "range": [ - 89033, - 89038 + 89970, + 89975 ], "loc": { "start": { - "line": 2964, + "line": 2991, "column": 28 }, "end": { - "line": 2964, + "line": 2991, "column": 33 } } }, "range": [ - 89024, - 89038 + 89961, + 89975 ], "loc": { "start": { - "line": 2964, + "line": 2991, "column": 19 }, "end": { - "line": 2964, + "line": 2991, "column": 33 } } @@ -164608,16 +165910,16 @@ "object": { "type": "ThisExpression", "range": [ - 89057, - 89061 + 89994, + 89998 ], "loc": { "start": { - "line": 2965, + "line": 2992, "column": 15 }, "end": { - "line": 2965, + "line": 2992, "column": 19 } } @@ -164626,31 +165928,31 @@ "type": "Identifier", "name": "getValidRows", "range": [ - 89062, - 89074 + 89999, + 90011 ], "loc": { "start": { - "line": 2965, + "line": 2992, "column": 20 }, "end": { - "line": 2965, + "line": 2992, "column": 32 } } }, "range": [ - 89057, - 89074 + 89994, + 90011 ], "loc": { "start": { - "line": 2965, + "line": 2992, "column": 15 }, "end": { - "line": 2965, + "line": 2992, "column": 32 } } @@ -164660,32 +165962,32 @@ "type": "Identifier", "name": "reCalc", "range": [ - 89075, - 89081 + 90012, + 90018 ], "loc": { "start": { - "line": 2965, + "line": 2992, "column": 33 }, "end": { - "line": 2965, + "line": 2992, "column": 39 } } } ], "range": [ - 89057, - 89082 + 89994, + 90019 ], "loc": { "start": { - "line": 2965, + "line": 2992, "column": 15 }, "end": { - "line": 2965, + "line": 2992, "column": 40 } } @@ -164694,62 +165996,62 @@ "type": "Identifier", "name": "length", "range": [ - 89083, - 89089 + 90020, + 90026 ], "loc": { "start": { - "line": 2965, + "line": 2992, "column": 41 }, "end": { - "line": 2965, + "line": 2992, "column": 47 } } }, "range": [ - 89057, - 89089 + 89994, + 90026 ], "loc": { "start": { - "line": 2965, + "line": 2992, "column": 15 }, "end": { - "line": 2965, + "line": 2992, "column": 47 } } }, "range": [ - 89050, - 89090 + 89987, + 90027 ], "loc": { "start": { - "line": 2965, + "line": 2992, "column": 8 }, "end": { - "line": 2965, + "line": 2992, "column": 48 } } } ], "range": [ - 89040, - 89096 + 89977, + 90033 ], "loc": { "start": { - "line": 2964, + "line": 2991, "column": 35 }, "end": { - "line": 2966, + "line": 2993, "column": 5 } } @@ -164757,16 +166059,16 @@ "generator": false, "expression": false, "range": [ - 89023, - 89096 + 89960, + 90033 ], "loc": { "start": { - "line": 2964, + "line": 2991, "column": 18 }, "end": { - "line": 2966, + "line": 2993, "column": 5 } } @@ -164774,16 +166076,16 @@ "kind": "method", "computed": false, "range": [ - 89009, - 89096 + 89946, + 90033 ], "loc": { "start": { - "line": 2964, + "line": 2991, "column": 4 }, "end": { - "line": 2966, + "line": 2993, "column": 5 } }, @@ -164792,16 +166094,16 @@ "type": "Block", "value": "*\n * Return the total number of valid rows\n * @param {Boolean} [reCalc=false] Forces calculation of filtered rows\n * @returns {Number}\n ", "range": [ - 88848, - 89004 + 89785, + 89941 ], "loc": { "start": { - "line": 2959, + "line": 2986, "column": 4 }, "end": { - "line": 2963, + "line": 2990, "column": 7 } } @@ -164812,16 +166114,16 @@ "type": "Block", "value": "*\n * Get the configuration object (literal object)\n * @return {Object}\n ", "range": [ - 89102, - 89190 + 90039, + 90127 ], "loc": { "start": { - "line": 2968, + "line": 2995, "column": 4 }, "end": { - "line": 2971, + "line": 2998, "column": 7 } } @@ -164835,16 +166137,16 @@ "type": "Identifier", "name": "config", "range": [ - 89195, - 89201 + 90132, + 90138 ], "loc": { "start": { - "line": 2972, + "line": 2999, "column": 4 }, "end": { - "line": 2972, + "line": 2999, "column": 10 } } @@ -164864,16 +166166,16 @@ "object": { "type": "ThisExpression", "range": [ - 89221, - 89225 + 90158, + 90162 ], "loc": { "start": { - "line": 2973, + "line": 3000, "column": 15 }, "end": { - "line": 2973, + "line": 3000, "column": 19 } } @@ -164882,62 +166184,62 @@ "type": "Identifier", "name": "cfg", "range": [ - 89226, - 89229 + 90163, + 90166 ], "loc": { "start": { - "line": 2973, + "line": 3000, "column": 20 }, "end": { - "line": 2973, + "line": 3000, "column": 23 } } }, "range": [ - 89221, - 89229 + 90158, + 90166 ], "loc": { "start": { - "line": 2973, + "line": 3000, "column": 15 }, "end": { - "line": 2973, + "line": 3000, "column": 23 } } }, "range": [ - 89214, - 89230 + 90151, + 90167 ], "loc": { "start": { - "line": 2973, + "line": 3000, "column": 8 }, "end": { - "line": 2973, + "line": 3000, "column": 24 } } } ], "range": [ - 89204, - 89236 + 90141, + 90173 ], "loc": { "start": { - "line": 2972, + "line": 2999, "column": 13 }, "end": { - "line": 2974, + "line": 3001, "column": 5 } } @@ -164945,16 +166247,16 @@ "generator": false, "expression": false, "range": [ - 89201, - 89236 + 90138, + 90173 ], "loc": { "start": { - "line": 2972, + "line": 2999, "column": 10 }, "end": { - "line": 2974, + "line": 3001, "column": 5 } } @@ -164962,16 +166264,16 @@ "kind": "method", "computed": false, "range": [ - 89195, - 89236 + 90132, + 90173 ], "loc": { "start": { - "line": 2972, + "line": 2999, "column": 4 }, "end": { - "line": 2974, + "line": 3001, "column": 5 } }, @@ -164980,16 +166282,16 @@ "type": "Block", "value": "*\n * Get the configuration object (literal object)\n * @return {Object}\n ", "range": [ - 89102, - 89190 + 90039, + 90127 ], "loc": { "start": { - "line": 2968, + "line": 2995, "column": 4 }, "end": { - "line": 2971, + "line": 2998, "column": 7 } } @@ -165000,7 +166302,7 @@ ], "range": [ 1580, - 89238 + 90175 ], "loc": { "start": { @@ -165008,14 +166310,14 @@ "column": 25 }, "end": { - "line": 2975, + "line": 3002, "column": 1 } } }, "range": [ 1562, - 89238 + 90175 ], "loc": { "start": { @@ -165023,7 +166325,7 @@ "column": 7 }, "end": { - "line": 2975, + "line": 3002, "column": 1 } }, @@ -165053,7 +166355,7 @@ "source": null, "range": [ 1555, - 89238 + 90175 ], "loc": { "start": { @@ -165061,7 +166363,7 @@ "column": 0 }, "end": { - "line": 2975, + "line": 3002, "column": 1 } }, @@ -165090,7 +166392,7 @@ "sourceType": "module", "range": [ 0, - 89238 + 90175 ], "loc": { "start": { @@ -165098,7 +166400,7 @@ "column": 0 }, "end": { - "line": 2975, + "line": 3002, "column": 1 } }, @@ -170147,8 +171449,8 @@ "type": "Block", "value": "*\n * Return the filter's value of a specified column\n * @param {Number} index Column index\n * @return {String} Filter value\n ", "range": [ - 63833, - 63985 + 63802, + 63954 ], "loc": { "start": { @@ -170165,8 +171467,8 @@ "type": "Line", "value": "mutiple select", "range": [ - 64379, - 64395 + 64348, + 64364 ], "loc": { "start": { @@ -170183,8 +171485,8 @@ "type": "Line", "value": "checklist", "range": [ - 64524, - 64535 + 64493, + 64504 ], "loc": { "start": { @@ -170201,8 +171503,8 @@ "type": "Line", "value": "return an empty string if collection is empty or contains a single", "range": [ - 64666, - 64734 + 64635, + 64703 ], "loc": { "start": { @@ -170219,8 +171521,8 @@ "type": "Line", "value": "empty string", "range": [ - 64743, - 64757 + 64712, + 64726 ], "loc": { "start": { @@ -170237,8 +171539,8 @@ "type": "Block", "value": "*\n * Return the filters' values\n * @return {Array} List of filters' values\n ", "range": [ - 64951, - 65043 + 64920, + 65012 ], "loc": { "start": { @@ -170255,8 +171557,8 @@ "type": "Block", "value": "*\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 ", "range": [ - 65485, - 65648 + 65454, + 65617 ], "loc": { "start": { @@ -170273,8 +171575,8 @@ "type": "Block", "value": "*\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 ", "range": [ - 65779, - 66180 + 65748, + 66149 ], "loc": { "start": { @@ -170291,8 +171593,8 @@ "type": "Block", "value": "*\n * Return the filter's DOM element for a given column\n * @param {Number} index Column's index\n * @return {DOMElement}\n ", "range": [ - 66597, - 66743 + 66566, + 66712 ], "loc": { "start": { @@ -170309,8 +171611,8 @@ "type": "Block", "value": "*\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 ", "range": [ - 66852, - 67018 + 66821, + 66987 ], "loc": { "start": { @@ -170327,8 +171629,8 @@ "type": "Block", "value": "*\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 ", "range": [ - 67164, - 67395 + 67133, + 67364 ], "loc": { "start": { @@ -170345,8 +171647,8 @@ "type": "Block", "value": "*\n * Return the data of a given cell\n * @param {DOMElement} cell Cell's DOM object\n * @return {String}\n ", "range": [ - 67634, - 67759 + 67603, + 67728 ], "loc": { "start": { @@ -170363,8 +171665,8 @@ "type": "Line", "value": "Fire customCellData callback", "range": [ - 67826, - 67856 + 67795, + 67825 ], "loc": { "start": { @@ -170381,8 +171683,8 @@ "type": "Block", "value": "*\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 ", "range": [ - 68045, - 68449 + 68014, + 68418 ], "loc": { "start": { @@ -170399,8 +171701,8 @@ "type": "Block", "value": "*\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 ", "range": [ - 69409, - 69816 + 69378, + 69785 ], "loc": { "start": { @@ -170415,10 +171717,10 @@ }, { "type": "Block", - "value": "*\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 ", + "value": "*\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 * @param {Boolean} num Optional: return unformatted number\n * @param {Array} exclude Optional: list of row indexes to be excluded\n * @param {Boolean} visible Optional: return only visible data\n * (relevant for paging)\n * @return {Array} Flat list of values ['val0','val1','val2'...]\n *\n * TODO: provide an API returning data in JSON format\n ", "range": [ - 70900, - 71231 + 70869, + 71470 ], "loc": { "start": { @@ -170426,44 +171728,62 @@ "column": 4 }, "end": { - "line": 2359, + "line": 2363, "column": 7 } } }, { "type": "Line", - "value": "cols values of current row", + "value": " ensure valid rows index do not contain excluded rows and row is", "range": [ - 71629, - 71657 + 71729, + 71795 ], "loc": { "start": { - "line": 2371, - "column": 16 + "line": 2377, + "column": 8 }, "end": { - "line": 2371, - "column": 44 + "line": 2377, + "column": 74 } } }, { "type": "Line", - "value": "data of searched column", + "value": " displayed", "range": [ - 71700, - 71725 + 71804, + 71816 ], "loc": { "start": { - "line": 2373, - "column": 16 + "line": 2378, + "column": 8 }, "end": { - "line": 2373, - "column": 41 + "line": 2378, + "column": 20 + } + } + }, + { + "type": "Line", + "value": " convert column value to expected type if necessary", + "range": [ + 72355, + 72408 + ], + "loc": { + "start": { + "line": 2394, + "column": 8 + }, + "end": { + "line": 2394, + "column": 61 } } }, @@ -170471,16 +171791,16 @@ "type": "Block", "value": "*\n * Get the display value of a row\n * @param {HTMLTableRowElement} row DOM element of the row\n * @return {String} Usually 'none' or ''\n ", "range": [ - 71833, - 71995 + 72770, + 72932 ], "loc": { "start": { - "line": 2380, + "line": 2407, "column": 4 }, "end": { - "line": 2384, + "line": 2411, "column": 7 } } @@ -170489,16 +171809,16 @@ "type": "Block", "value": "*\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 ", "range": [ - 72066, - 72239 + 73003, + 73176 ], "loc": { "start": { - "line": 2389, + "line": 2416, "column": 4 }, "end": { - "line": 2393, + "line": 2420, "column": 7 } } @@ -170507,16 +171827,16 @@ "type": "Line", "value": " always visible rows are valid", "range": [ - 72411, - 72443 + 73348, + 73380 ], "loc": { "start": { - "line": 2400, + "line": 2427, "column": 8 }, "end": { - "line": 2400, + "line": 2427, "column": 40 } } @@ -170525,16 +171845,16 @@ "type": "Block", "value": "*\n * Validate all filterable rows\n ", "range": [ - 73084, - 73131 + 74021, + 74068 ], "loc": { "start": { - "line": 2424, + "line": 2451, "column": 4 }, "end": { - "line": 2426, + "line": 2453, "column": 7 } } @@ -170543,16 +171863,16 @@ "type": "Block", "value": "*\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 ", "range": [ - 73381, - 73543 + 74318, + 74480 ], "loc": { "start": { - "line": 2437, + "line": 2464, "column": 4 }, "end": { - "line": 2441, + "line": 2468, "column": 7 } } @@ -170561,16 +171881,16 @@ "type": "Line", "value": "multiple selects", "range": [ - 74066, - 74084 + 75003, + 75021 ], "loc": { "start": { - "line": 2456, + "line": 2483, "column": 8 }, "end": { - "line": 2456, + "line": 2483, "column": 26 } } @@ -170579,16 +171899,16 @@ "type": "Line", "value": "checklist", "range": [ - 74533, - 74544 + 75470, + 75481 ], "loc": { "start": { - "line": 2468, + "line": 2495, "column": 8 }, "end": { - "line": 2468, + "line": 2495, "column": 19 } } @@ -170597,16 +171917,16 @@ "type": "Block", "value": "*\n * Set them columns' widths as per configuration\n * @param {Element} tbl DOM element\n ", "range": [ - 75140, - 75244 + 76077, + 76181 ], "loc": { "start": { - "line": 2486, + "line": 2513, "column": 4 }, "end": { - "line": 2489, + "line": 2516, "column": 7 } } @@ -170615,16 +171935,16 @@ "type": "Block", "value": "*\n * Makes defined rows always visible\n ", "range": [ - 75998, - 76050 + 76935, + 76987 ], "loc": { "start": { - "line": 2516, + "line": 2543, "column": 4 }, "end": { - "line": 2518, + "line": 2545, "column": 7 } } @@ -170633,16 +171953,16 @@ "type": "Line", "value": "row index cannot be > nrows", "range": [ - 76312, - 76341 + 77249, + 77278 ], "loc": { "start": { - "line": 2526, + "line": 2553, "column": 12 }, "end": { - "line": 2526, + "line": 2553, "column": 41 } } @@ -170651,16 +171971,16 @@ "type": "Block", "value": "*\n * Clear all the filters' values\n ", "range": [ - 76455, - 76503 + 77392, + 77440 ], "loc": { "start": { - "line": 2533, + "line": 2560, "column": 4 }, "end": { - "line": 2535, + "line": 2562, "column": 7 } } @@ -170669,16 +171989,16 @@ "type": "Block", "value": "*\n * Clears filtered columns visual indicator (background color)\n ", "range": [ - 76948, - 77026 + 77885, + 77963 ], "loc": { "start": { - "line": 2554, + "line": 2581, "column": 4 }, "end": { - "line": 2556, + "line": 2583, "column": 7 } } @@ -170687,16 +172007,16 @@ "type": "Block", "value": "*\n * Mark currently filtered column\n * @param {Number} colIndex Column index\n ", "range": [ - 77234, - 77329 + 78171, + 78266 ], "loc": { "start": { - "line": 2563, + "line": 2590, "column": 4 }, "end": { - "line": 2566, + "line": 2593, "column": 7 } } @@ -170705,16 +172025,16 @@ "type": "Block", "value": "*\n * Return the ID of the current active filter\n * @returns {String}\n ", "range": [ - 77675, - 77761 + 78612, + 78698 ], "loc": { "start": { - "line": 2579, + "line": 2606, "column": 4 }, "end": { - "line": 2582, + "line": 2609, "column": 7 } } @@ -170723,16 +172043,16 @@ "type": "Block", "value": "*\n * Set the ID of the current active filter\n * @param {String} filterId Element ID\n ", "range": [ - 77835, - 77936 + 78772, + 78873 ], "loc": { "start": { - "line": 2587, + "line": 2614, "column": 4 }, "end": { - "line": 2590, + "line": 2617, "column": 7 } } @@ -170741,16 +172061,16 @@ "type": "Block", "value": "*\n * Return the column index for a given filter ID\n * @param {string} [filterId=''] Filter ID\n * @returns {Number} Column index\n ", "range": [ - 78022, - 78171 + 78959, + 79108 ], "loc": { "start": { - "line": 2595, + "line": 2622, "column": 4 }, "end": { - "line": 2599, + "line": 2626, "column": 7 } } @@ -170759,16 +172079,16 @@ "type": "Block", "value": "*\n * Builds filter element ID for a given column index\n * @param {any} colIndex\n * @returns {String} Filter element ID string\n * @private\n ", "range": [ - 78349, - 78512 + 79286, + 79449 ], "loc": { "start": { - "line": 2606, + "line": 2633, "column": 4 }, "end": { - "line": 2611, + "line": 2638, "column": 7 } } @@ -170777,16 +172097,16 @@ "type": "Block", "value": "*\n * Make specified column's filter active\n * @param colIndex Index of a column\n ", "range": [ - 78610, - 78707 + 79547, + 79644 ], "loc": { "start": { - "line": 2616, + "line": 2643, "column": 4 }, "end": { - "line": 2619, + "line": 2646, "column": 7 } } @@ -170795,16 +172115,16 @@ "type": "Block", "value": "*\n * Refresh the filters subject to linking ('select', 'multiple',\n * 'checklist' type)\n ", "range": [ - 78873, - 78978 + 79810, + 79915 ], "loc": { "start": { - "line": 2627, + "line": 2654, "column": 4 }, "end": { - "line": 2630, + "line": 2657, "column": 7 } } @@ -170813,16 +172133,16 @@ "type": "Line", "value": " Welcome to cyclomatic complexity hell :)", "range": [ - 79660, - 79703 + 80597, + 80640 ], "loc": { "start": { - "line": 2648, + "line": 2675, "column": 12 }, "end": { - "line": 2648, + "line": 2675, "column": 55 } } @@ -170831,16 +172151,16 @@ "type": "Line", "value": " TODO: simplify/refactor if statement", "range": [ - 79716, - 79755 + 80653, + 80692 ], "loc": { "start": { - "line": 2649, + "line": 2676, "column": 12 }, "end": { - "line": 2649, + "line": 2676, "column": 51 } } @@ -170849,16 +172169,16 @@ "type": "Line", "value": "1st option needs to be inserted", "range": [ - 80114, - 80147 + 81051, + 81084 ], "loc": { "start": { - "line": 2657, + "line": 2684, "column": 16 }, "end": { - "line": 2657, + "line": 2684, "column": 49 } } @@ -170867,16 +172187,16 @@ "type": "Block", "value": "*\n * Determines if passed filter column implements exact query match\n * @param {Number} colIndex Column index\n * @return {Boolean}\n ", "range": [ - 80788, - 80944 + 81725, + 81881 ], "loc": { "start": { - "line": 2677, + "line": 2704, "column": 4 }, "end": { - "line": 2681, + "line": 2708, "column": 7 } } @@ -170885,16 +172205,16 @@ "type": "Block", "value": "*\n * Checks if passed row is valid\n * @param {Number} rowIndex Row index\n * @returns {Boolean}\n ", "range": [ - 81136, - 81252 + 82073, + 82189 ], "loc": { "start": { - "line": 2688, + "line": 2715, "column": 4 }, "end": { - "line": 2692, + "line": 2719, "column": 7 } } @@ -170903,16 +172223,16 @@ "type": "Block", "value": "*\n * Checks if passed row is visible\n * @param {Number} rowIndex Row index\n * @returns {Boolean}\n ", "range": [ - 81352, - 81470 + 82289, + 82407 ], "loc": { "start": { - "line": 2697, + "line": 2724, "column": 4 }, "end": { - "line": 2701, + "line": 2728, "column": 7 } } @@ -170921,44 +172241,8 @@ "type": "Block", "value": "*\n * Checks if specified column filter ignores diacritics.\n * Note this is only valid for input filter types.\n * @param {Number} colIndex Column index\n * @returns {Boolean}\n ", "range": [ - 81603, - 81804 - ], - "loc": { - "start": { - "line": 2707, - "column": 4 - }, - "end": { - "line": 2712, - "column": 7 - } - } - }, - { - "type": "Block", - "value": "*\n * Returns clear all text for specified filter column\n * @param {Number} colIndex Column index\n * @returns {String}\n ", - "range": [ - 82020, - 82162 - ], - "loc": { - "start": { - "line": 2721, - "column": 4 - }, - "end": { - "line": 2725, - "column": 7 - } - } - }, - { - "type": "Block", - "value": "*\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 ", - "range": [ - 82365, - 82584 + 82540, + 82741 ], "loc": { "start": { @@ -170973,18 +172257,54 @@ }, { "type": "Block", - "value": "*\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 ", + "value": "*\n * Returns clear all text for specified filter column\n * @param {Number} colIndex Column index\n * @returns {String}\n ", "range": [ - 83059, - 83318 + 82957, + 83099 ], "loc": { "start": { - "line": 2756, + "line": 2748, "column": 4 }, "end": { - "line": 2762, + "line": 2752, + "column": 7 + } + } + }, + { + "type": "Block", + "value": "*\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 ", + "range": [ + 83302, + 83521 + ], + "loc": { + "start": { + "line": 2761, + "column": 4 + }, + "end": { + "line": 2766, + "column": 7 + } + } + }, + { + "type": "Block", + "value": "*\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 ", + "range": [ + 83996, + 84255 + ], + "loc": { + "start": { + "line": 2783, + "column": 4 + }, + "end": { + "line": 2789, "column": 7 } } @@ -170993,16 +172313,16 @@ "type": "Line", "value": "Browser <> IE onload event works only for scripts, not for stylesheets", "range": [ - 83959, - 84031 + 84896, + 84968 ], "loc": { "start": { - "line": 2784, + "line": 2811, "column": 8 }, "end": { - "line": 2784, + "line": 2811, "column": 80 } } @@ -171011,16 +172331,16 @@ "type": "Block", "value": "*\n * Check if table has filters grid\n * @return {Boolean}\n ", "range": [ - 84578, - 84653 + 85515, + 85590 ], "loc": { "start": { - "line": 2801, + "line": 2828, "column": 4 }, "end": { - "line": 2804, + "line": 2831, "column": 7 } } @@ -171029,16 +172349,16 @@ "type": "Block", "value": "*\n * Get list of filter IDs\n * @return {[type]} [description]\n ", "range": [ - 84720, - 84799 + 85657, + 85736 ], "loc": { "start": { - "line": 2809, + "line": 2836, "column": 4 }, "end": { - "line": 2812, + "line": 2839, "column": 7 } } @@ -171047,30 +172367,12 @@ "type": "Block", "value": "*\n * Get filtered (valid) rows indexes\n * @param {Boolean} reCalc Force calculation of filtered rows list\n * @return {Array} List of row indexes\n ", "range": [ - 84866, - 85042 + 85803, + 85979 ], "loc": { "start": { - "line": 2817, - "column": 4 - }, - "end": { - "line": 2821, - "column": 7 - } - } - }, - { - "type": "Block", - "value": "*\n * Get the index of the row containing the filters\n * @return {Number}\n ", - "range": [ - 85762, - 85852 - ], - "loc": { - "start": { - "line": 2845, + "line": 2844, "column": 4 }, "end": { @@ -171081,18 +172383,36 @@ }, { "type": "Block", - "value": "*\n * Get the index of the headers row\n * @return {Number}\n ", + "value": "*\n * Get the index of the row containing the filters\n * @return {Number}\n ", "range": [ - 85928, - 86003 + 86699, + 86789 ], "loc": { "start": { - "line": 2853, + "line": 2872, "column": 4 }, "end": { - "line": 2856, + "line": 2875, + "column": 7 + } + } + }, + { + "type": "Block", + "value": "*\n * Get the index of the headers row\n * @return {Number}\n ", + "range": [ + 86865, + 86940 + ], + "loc": { + "start": { + "line": 2880, + "column": 4 + }, + "end": { + "line": 2883, "column": 7 } } @@ -171101,16 +172421,16 @@ "type": "Block", "value": "*\n * Get the row index from where the filtering process start (1st filterable\n * row)\n * @return {Number}\n ", "range": [ - 86074, - 86201 + 87011, + 87138 ], "loc": { "start": { - "line": 2861, + "line": 2888, "column": 4 }, "end": { - "line": 2865, + "line": 2892, "column": 7 } } @@ -171119,48 +172439,12 @@ "type": "Block", "value": "*\n * Get the index of the last row\n * @return {Number}\n ", "range": [ - 86266, - 86338 + 87203, + 87275 ], "loc": { "start": { - "line": 2870, - "column": 4 - }, - "end": { - "line": 2873, - "column": 7 - } - } - }, - { - "type": "Block", - "value": "*\n * Determine whether the specified column has one of the passed types\n * @param {Number} colIndex Column index\n * @param {Array} [types=[]] List of column types\n * @returns {Boolean}\n ", - "range": [ - 86446, - 86656 - ], - "loc": { - "start": { - "line": 2879, - "column": 4 - }, - "end": { - "line": 2884, - "column": 7 - } - } - }, - { - "type": "Block", - "value": "*\n * Get the header DOM element for a given column index\n * @param {Number} colIndex Column index\n * @return {Element}\n ", - "range": [ - 86942, - 87083 - ], - "loc": { - "start": { - "line": 2896, + "line": 2897, "column": 4 }, "end": { @@ -171171,18 +172455,54 @@ }, { "type": "Block", - "value": "*\n * Return the list of headers' text\n * @param {Boolean} excludeHiddenCols Optional: exclude hidden columns\n * @return {Array} list of headers' text\n ", + "value": "*\n * Determine whether the specified column has one of the passed types\n * @param {Number} colIndex Column index\n * @param {Array} [types=[]] List of column types\n * @returns {Boolean}\n ", "range": [ - 87707, - 87880 + 87383, + 87593 ], "loc": { "start": { - "line": 2921, + "line": 2906, "column": 4 }, "end": { - "line": 2925, + "line": 2911, + "column": 7 + } + } + }, + { + "type": "Block", + "value": "*\n * Get the header DOM element for a given column index\n * @param {Number} colIndex Column index\n * @return {Element}\n ", + "range": [ + 87879, + 88020 + ], + "loc": { + "start": { + "line": 2923, + "column": 4 + }, + "end": { + "line": 2927, + "column": 7 + } + } + }, + { + "type": "Block", + "value": "*\n * Return the list of headers' text\n * @param {Boolean} excludeHiddenCols Optional: exclude hidden columns\n * @return {Array} list of headers' text\n ", + "range": [ + 88644, + 88817 + ], + "loc": { + "start": { + "line": 2948, + "column": 4 + }, + "end": { + "line": 2952, "column": 7 } } @@ -171191,16 +172511,16 @@ "type": "Block", "value": "*\n * Return the filter type for a specified column\n * @param {Number} colIndex Column's index\n * @return {String}\n ", "range": [ - 88402, - 88538 + 89339, + 89475 ], "loc": { "start": { - "line": 2941, + "line": 2968, "column": 4 }, "end": { - "line": 2945, + "line": 2972, "column": 7 } } @@ -171209,16 +172529,16 @@ "type": "Block", "value": "*\n * Get the total number of filterable rows\n * @return {Number}\n ", "range": [ - 88688, - 88770 + 89625, + 89707 ], "loc": { "start": { - "line": 2951, + "line": 2978, "column": 4 }, "end": { - "line": 2954, + "line": 2981, "column": 7 } } @@ -171227,16 +172547,16 @@ "type": "Block", "value": "*\n * Return the total number of valid rows\n * @param {Boolean} [reCalc=false] Forces calculation of filtered rows\n * @returns {Number}\n ", "range": [ - 88848, - 89004 + 89785, + 89941 ], "loc": { "start": { - "line": 2959, + "line": 2986, "column": 4 }, "end": { - "line": 2963, + "line": 2990, "column": 7 } } @@ -171245,16 +172565,16 @@ "type": "Block", "value": "*\n * Get the configuration object (literal object)\n * @return {Object}\n ", "range": [ - 89102, - 89190 + 90039, + 90127 ], "loc": { "start": { - "line": 2968, + "line": 2995, "column": 4 }, "end": { - "line": 2971, + "line": 2998, "column": 7 } } diff --git a/docs/ast/source/types.js.json b/docs/ast/source/types.js.json index fa0ca01e..7fbd5cd7 100644 --- a/docs/ast/source/types.js.json +++ b/docs/ast/source/types.js.json @@ -2595,17 +2595,17 @@ "type": "Identifier", "name": "obj", "range": [ - 1341, - 1344 + 1342, + 1345 ], "loc": { "start": { "line": 66, - "column": 22 + "column": 23 }, "end": { "line": 66, - "column": 25 + "column": 26 } } } @@ -2617,17 +2617,17 @@ "type": "Identifier", "name": "obj", "range": [ - 1348, - 1351 + 1350, + 1353 ], "loc": { "start": { "line": 66, - "column": 29 + "column": 31 }, "end": { "line": 66, - "column": 32 + "column": 34 } } }, @@ -2636,32 +2636,32 @@ "value": null, "raw": "null", "range": [ - 1356, - 1360 + 1358, + 1362 ], "loc": { "start": { "line": 66, - "column": 37 + "column": 39 }, "end": { "line": 66, - "column": 41 + "column": 43 } } }, "range": [ - 1348, - 1360 + 1350, + 1362 ], "loc": { "start": { "line": 66, - "column": 29 + "column": 31 }, "end": { "line": 66, - "column": 41 + "column": 43 } } }, @@ -2669,7 +2669,7 @@ "expression": true, "range": [ 1341, - 1360 + 1362 ], "loc": { "start": { @@ -2678,13 +2678,13 @@ }, "end": { "line": 66, - "column": 41 + "column": 43 } } }, "range": [ 1332, - 1360 + 1362 ], "loc": { "start": { @@ -2693,7 +2693,7 @@ }, "end": { "line": 66, - "column": 41 + "column": 43 } } } @@ -2701,7 +2701,7 @@ "kind": "const", "range": [ 1326, - 1361 + 1363 ], "loc": { "start": { @@ -2710,7 +2710,7 @@ }, "end": { "line": 66, - "column": 42 + "column": 44 } }, "leadingComments": [ @@ -2738,8 +2738,8 @@ "type": "Block", "value": "*\n * Check passed argument is empty (undefined, null or empty string)\n * @param {Any} obj\n * @return {Boolean}\n ", "range": [ - 1363, - 1481 + 1365, + 1483 ], "loc": { "start": { @@ -2758,7 +2758,7 @@ "source": null, "range": [ 1319, - 1361 + 1363 ], "loc": { "start": { @@ -2767,7 +2767,7 @@ }, "end": { "line": 66, - "column": 42 + "column": 44 } }, "leadingComments": [ @@ -2795,8 +2795,8 @@ "type": "Block", "value": "*\n * Check passed argument is empty (undefined, null or empty string)\n * @param {Any} obj\n * @return {Boolean}\n ", "range": [ - 1363, - 1481 + 1365, + 1483 ], "loc": { "start": { @@ -2822,8 +2822,8 @@ "type": "Identifier", "name": "isEmpty", "range": [ - 1495, - 1502 + 1497, + 1504 ], "loc": { "start": { @@ -2844,8 +2844,8 @@ "type": "Identifier", "name": "obj", "range": [ - 1506, - 1509 + 1508, + 1511 ], "loc": { "start": { @@ -2871,8 +2871,8 @@ "type": "Identifier", "name": "isUndef", "range": [ - 1514, - 1521 + 1516, + 1523 ], "loc": { "start": { @@ -2890,8 +2890,8 @@ "type": "Identifier", "name": "obj", "range": [ - 1522, - 1525 + 1524, + 1527 ], "loc": { "start": { @@ -2906,8 +2906,8 @@ } ], "range": [ - 1514, - 1526 + 1516, + 1528 ], "loc": { "start": { @@ -2926,8 +2926,8 @@ "type": "Identifier", "name": "isNull", "range": [ - 1530, - 1536 + 1532, + 1538 ], "loc": { "start": { @@ -2945,8 +2945,8 @@ "type": "Identifier", "name": "obj", "range": [ - 1537, - 1540 + 1539, + 1542 ], "loc": { "start": { @@ -2961,8 +2961,8 @@ } ], "range": [ - 1530, - 1541 + 1532, + 1543 ], "loc": { "start": { @@ -2976,8 +2976,8 @@ } }, "range": [ - 1514, - 1541 + 1516, + 1543 ], "loc": { "start": { @@ -3000,8 +3000,8 @@ "type": "Identifier", "name": "obj", "range": [ - 1545, - 1548 + 1547, + 1550 ], "loc": { "start": { @@ -3018,8 +3018,8 @@ "type": "Identifier", "name": "length", "range": [ - 1549, - 1555 + 1551, + 1557 ], "loc": { "start": { @@ -3033,8 +3033,8 @@ } }, "range": [ - 1545, - 1555 + 1547, + 1557 ], "loc": { "start": { @@ -3052,8 +3052,8 @@ "value": 0, "raw": "0", "range": [ - 1560, - 1561 + 1562, + 1563 ], "loc": { "start": { @@ -3067,8 +3067,8 @@ } }, "range": [ - 1545, - 1561 + 1547, + 1563 ], "loc": { "start": { @@ -3082,8 +3082,8 @@ } }, "range": [ - 1514, - 1561 + 1516, + 1563 ], "loc": { "start": { @@ -3099,8 +3099,8 @@ "generator": false, "expression": true, "range": [ - 1505, - 1561 + 1507, + 1563 ], "loc": { "start": { @@ -3114,8 +3114,8 @@ } }, "range": [ - 1495, - 1561 + 1497, + 1563 ], "loc": { "start": { @@ -3131,8 +3131,8 @@ ], "kind": "const", "range": [ - 1489, - 1562 + 1491, + 1564 ], "loc": { "start": { @@ -3149,8 +3149,8 @@ "type": "Block", "value": "*\n * Check passed argument is empty (undefined, null or empty string)\n * @param {Any} obj\n * @return {Boolean}\n ", "range": [ - 1363, - 1481 + 1365, + 1483 ], "loc": { "start": { @@ -3169,8 +3169,8 @@ "specifiers": [], "source": null, "range": [ - 1482, - 1562 + 1484, + 1564 ], "loc": { "start": { @@ -3187,8 +3187,8 @@ "type": "Block", "value": "*\n * Check passed argument is empty (undefined, null or empty string)\n * @param {Any} obj\n * @return {Boolean}\n ", "range": [ - 1363, - 1481 + 1365, + 1483 ], "loc": { "start": { @@ -3207,7 +3207,7 @@ "sourceType": "module", "range": [ 29, - 1562 + 1564 ], "loc": { "start": { @@ -3386,8 +3386,8 @@ "type": "Block", "value": "*\n * Check passed argument is empty (undefined, null or empty string)\n * @param {Any} obj\n * @return {Boolean}\n ", "range": [ - 1363, - 1481 + 1365, + 1483 ], "loc": { "start": { diff --git a/docs/class/src/emitter.js~Emitter.html b/docs/class/src/emitter.js~Emitter.html index 37aae80f..3ea15bfe 100644 --- a/docs/class/src/emitter.js~Emitter.html +++ b/docs/class/src/emitter.js~Emitter.html @@ -3,7 +3,7 @@ - Emitter | tablefilter v0.4.33 API Document + Emitter | tablefilter v0.4.34 API Document diff --git a/docs/class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html b/docs/class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html index 329f23ea..4432a3af 100644 --- a/docs/class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html +++ b/docs/class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html @@ -3,7 +3,7 @@ - AdapterEzEditTable | tablefilter v0.4.33 API Document + AdapterEzEditTable | tablefilter v0.4.34 API Document diff --git a/docs/class/src/extensions/colOps/colOps.js~ColOps.html b/docs/class/src/extensions/colOps/colOps.js~ColOps.html index 6faaa8ca..c3f9da15 100644 --- a/docs/class/src/extensions/colOps/colOps.js~ColOps.html +++ b/docs/class/src/extensions/colOps/colOps.js~ColOps.html @@ -3,7 +3,7 @@ - ColOps | tablefilter v0.4.33 API Document + ColOps | tablefilter v0.4.34 API Document @@ -120,13 +120,13 @@
- + public class - | source + | source
@@ -203,6 +203,84 @@ + + + +
+

+ colIndexes: Array +

+
+
+ + +

List of columns' indexes for calculations

+
+
+ + + + + + + + + public + + + + + + +
+

+ decimalPrecisions: Array +

+
+
+ + +

List of decimal precision for calculation results

+
+
+ + + + + + + + + public + + + + + + +
+

+ excludeRows: Array +

+
+
+ + +

List of row indexes excluded from calculations

+
+
+ + + + + + + + + public + + + @@ -228,6 +306,32 @@ + + + +
+

+ labelIds: Array +

+
+
+ + +

List of DOM element IDs containing column's calculation result

+
+
+ + + + + + + + + public + + + @@ -280,6 +384,33 @@ + + + +
+

+ operations: Array +

+
+
+ + +

List of operations - possible values: 'sum', 'mean', 'min', 'max', +'median', 'q1', 'q3'

+
+
+ + + + + + + + + public + + + @@ -298,6 +429,59 @@ + + + + + public + + + + + + +
+

+ outputTypes: Array +

+
+
+ + +

List of write methods used to write the result - possible values: +'innerHTML', 'setValue', 'createTextNode'

+
+
+ + + + + + + + + public + + + + + + +
+

+ totRowIndexes: Array +

+
+
+ + +

List of row indexes displaying the results

+
+
+ + + + @@ -318,7 +502,7 @@

- calc() + calcAll()

@@ -350,6 +534,214 @@ Configuration options are stored in 'opts' property

+ + + +
+

+ calcMax(values: Array): Number +

+
+
+ + +

Calculate the max value of passed values.

+
+
+ + + + + + + + + public + + + + + + +
+

+ calcMean(values: Array): Number +

+
+
+ + +

Calculate the mean of passed values.

+
+
+ + + + + + + + + public + + + + + + +
+

+ calcMedian(values: Array): Number +

+
+
+ + +

Calculate the median of passed values.

+
+
+ + + + + + + + + public + + + + + + +
+

+ calcMin(values: Array): Number +

+
+
+ + +

Calculate the min value of passed values.

+
+
+ + + + + + + + + public + + + + + + +
+

+ calcQ1(values: Array): Number +

+
+
+ + +

Calculate the lower quartile of passed values.

+
+
+ + + + + + + + + public + + + + + + +
+

+ calcQ3(values: Array): Number +

+
+
+ + +

Calculate the upper quartile of passed values.

+
+
+ + + + + + + + + public + + + + + + +
+

+ calcSum(values: Array): Number +

+
+
+ + +

Calculate the sum of passed values.

+
+
+ + + + + + + + + public + + + + + + +
+

+ columnCalc(colIndex: Number, operation: any, precision: any): Number +

+
+
+ + +

Make desired calculation on specified column.

+
+
+ + + + + + + + + public + + + @@ -394,6 +786,32 @@ Configuration options are stored in 'opts' property

+ + + + + public + + + + + + +
+

+ sortColumnValues(values: Array, sorter: Function): Array +

+
+
+ + +

Sort passed values with supplied sorter function.

+
+
+ + + + @@ -735,7 +1153,7 @@ Configuration options are stored in 'opts' property

- source + source @@ -792,6 +1210,129 @@ Configuration options are stored in 'opts' property

Public Members

+
+

+ public + + + + + colIndexes: Array + + + + source + +

+ + + + +

List of columns' indexes for calculations

+
+ + + +
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + decimalPrecisions: Array + + + + source + +

+ + + + +

List of decimal precision for calculation results

+
+ + + +
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + excludeRows: Array + + + + source + +

+ + + + +

List of row indexes excluded from calculations

+
+ + + +
+
+ + + + + + + + + + + + + + + +

public @@ -803,7 +1344,7 @@ Configuration options are stored in 'opts' property

- source + source

@@ -831,6 +1372,47 @@ Configuration options are stored in 'opts' property

+
+
+

+ public + + + + + labelIds: Array + + + + source + +

+ + + + +

List of DOM element IDs containing column's calculation result

+
+ + + +
+
+ + + + + + + + + + + + + + +

@@ -843,7 +1425,7 @@ Configuration options are stored in 'opts' property

- source + source

@@ -884,7 +1466,7 @@ Configuration options are stored in 'opts' property

- source + source @@ -913,6 +1495,48 @@ Configuration options are stored in 'opts' property

+
+
+

+ public + + + + + operations: Array + + + + source + +

+ + + + +

List of operations - possible values: 'sum', 'mean', 'min', 'max', +'median', 'q1', 'q3'

+
+ + + +
+
+ + + + + + + + + + + + + + +

@@ -925,7 +1549,7 @@ Configuration options are stored in 'opts' property

- source + source

@@ -955,21 +1579,104 @@ Configuration options are stored in 'opts' property

-
-

Public Methods

-
-

+

public - calc() + outputTypes: Array - source + source + +

+ + + + +

List of write methods used to write the result - possible values: +'innerHTML', 'setValue', 'createTextNode'

+
+ + + +
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + totRowIndexes: Array + + + + source + +

+ + + + +

List of row indexes displaying the results

+
+ + + +
+
+ + + + + + + + + + + + + + + +
+
+

Public Methods

+ +
+

+ public + + + + + calcAll() + + + + source

@@ -1014,6 +1721,572 @@ Configuration options are stored in 'opts' property

+
+
+

+ public + + + + + calcMax(values: Array): Number + + + + source + +

+ + + + +

Calculate the max value of passed values.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
valuesArray
  • optional
  • +
  • default: []

List of values

+
+
+
+ +
+

Return:

+ + + + + +
Number
+
+
+
+ + + + + + + + + + + + + +
+
+

+ public + + + + + calcMean(values: Array): Number + + + + source + +

+ + + + +

Calculate the mean of passed values.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
valuesArray
  • optional
  • +
  • default: []

List of values

+
+
+
+ +
+

Return:

+ + + + + +
Number
+
+
+
+ + + + + + + + + + + + + +
+
+

+ public + + + + + calcMedian(values: Array): Number + + + + source + +

+ + + + +

Calculate the median of passed values.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
valuesArray
  • optional
  • +
  • default: []

List of values

+
+
+
+ +
+

Return:

+ + + + + +
Number
+
+
+
+ + + + + + + + + + + + + +
+
+

+ public + + + + + calcMin(values: Array): Number + + + + source + +

+ + + + +

Calculate the min value of passed values.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
valuesArray
  • optional
  • +
  • default: []

List of values

+
+
+
+ +
+

Return:

+ + + + + +
Number
+
+
+
+ + + + + + + + + + + + + +
+
+

+ public + + + + + calcQ1(values: Array): Number + + + + source + +

+ + + + +

Calculate the lower quartile of passed values.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
valuesArray
  • optional
  • +
  • default: []

List of values

+
+
+
+ +
+

Return:

+ + + + + +
Number
+
+
+
+ + + + + + + + + + + + + +
+
+

+ public + + + + + calcQ3(values: Array): Number + + + + source + +

+ + + + +

Calculate the upper quartile of passed values.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
valuesArray
  • optional
  • +
  • default: []

List of values

+
+
+
+ +
+

Return:

+ + + + + +
Number
+
+
+
+ + + + + + + + + + + + + +
+
+

+ public + + + + + calcSum(values: Array): Number + + + + source + +

+ + + + +

Calculate the sum of passed values.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
valuesArray
  • optional
  • +
  • default: []

List of values

+
+
+
+ +
+

Return:

+ + + + + +
Number
+
+
+
+ + + + + + + + + + + + + +
+
+

+ public + + + + + columnCalc(colIndex: Number, operation: any, precision: any): Number + + + + source + +

+ + + + +

Make desired calculation on specified column.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
colIndexNumber

Column index

+
operationany
  • optional
  • +
  • default: SUM

Operation type

+
precisionany

Decimal precision

+
+
+
+ +
+

Return:

+ + + + + +
Number
+
+
+
+ + + + + + + + + + + + +

@@ -1026,7 +2299,7 @@ Configuration options are stored in 'opts' property

- source + source

@@ -1067,7 +2340,7 @@ Configuration options are stored in 'opts' property

- source + source @@ -1096,6 +2369,82 @@ Configuration options are stored in 'opts' property

+
+
+

+ public + + + + + sortColumnValues(values: Array, sorter: Function): Array + + + + source + +

+ + + + +

Sort passed values with supplied sorter function.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
valuesArray
  • optional
  • +
  • default: []

List of values to be sorted

+
sorterFunction

Sorter function

+
+
+
+ +
+

Return:

+ + + + + +
Array
+
+
+
+ + + + + + + + + + + + +
diff --git a/docs/class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html b/docs/class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html index fb0621c1..b592940e 100644 --- a/docs/class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html +++ b/docs/class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html @@ -3,7 +3,7 @@ - ColsVisibility | tablefilter v0.4.33 API Document + ColsVisibility | tablefilter v0.4.34 API Document diff --git a/docs/class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html b/docs/class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html index 5ff39a15..5ec6491b 100644 --- a/docs/class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html +++ b/docs/class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html @@ -3,7 +3,7 @@ - FiltersVisibility | tablefilter v0.4.33 API Document + FiltersVisibility | tablefilter v0.4.34 API Document diff --git a/docs/class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html b/docs/class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html index ee9e8887..a3786c08 100644 --- a/docs/class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html +++ b/docs/class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html @@ -3,7 +3,7 @@ - AdapterSortableTable | tablefilter v0.4.33 API Document + AdapterSortableTable | tablefilter v0.4.34 API Document diff --git a/docs/class/src/feature.js~Feature.html b/docs/class/src/feature.js~Feature.html index f5887161..feda12c5 100644 --- a/docs/class/src/feature.js~Feature.html +++ b/docs/class/src/feature.js~Feature.html @@ -3,7 +3,7 @@ - Feature | tablefilter v0.4.33 API Document + Feature | tablefilter v0.4.34 API Document diff --git a/docs/class/src/modules/alternateRows.js~AlternateRows.html b/docs/class/src/modules/alternateRows.js~AlternateRows.html index cb921e69..54e425d7 100644 --- a/docs/class/src/modules/alternateRows.js~AlternateRows.html +++ b/docs/class/src/modules/alternateRows.js~AlternateRows.html @@ -3,7 +3,7 @@ - AlternateRows | tablefilter v0.4.33 API Document + AlternateRows | tablefilter v0.4.34 API Document diff --git a/docs/class/src/modules/checkList.js~CheckList.html b/docs/class/src/modules/checkList.js~CheckList.html index 47a6e5fb..9f5b5467 100644 --- a/docs/class/src/modules/checkList.js~CheckList.html +++ b/docs/class/src/modules/checkList.js~CheckList.html @@ -3,7 +3,7 @@ - CheckList | tablefilter v0.4.33 API Document + CheckList | tablefilter v0.4.34 API Document diff --git a/docs/class/src/modules/clearButton.js~ClearButton.html b/docs/class/src/modules/clearButton.js~ClearButton.html index e9edb5db..6457f607 100644 --- a/docs/class/src/modules/clearButton.js~ClearButton.html +++ b/docs/class/src/modules/clearButton.js~ClearButton.html @@ -3,7 +3,7 @@ - ClearButton | tablefilter v0.4.33 API Document + ClearButton | tablefilter v0.4.34 API Document diff --git a/docs/class/src/modules/dateType.js~DateType.html b/docs/class/src/modules/dateType.js~DateType.html index 371a4430..3bb95693 100644 --- a/docs/class/src/modules/dateType.js~DateType.html +++ b/docs/class/src/modules/dateType.js~DateType.html @@ -3,7 +3,7 @@ - DateType | tablefilter v0.4.33 API Document + DateType | tablefilter v0.4.34 API Document diff --git a/docs/class/src/modules/dropdown.js~Dropdown.html b/docs/class/src/modules/dropdown.js~Dropdown.html index f6213ca1..deaae81f 100644 --- a/docs/class/src/modules/dropdown.js~Dropdown.html +++ b/docs/class/src/modules/dropdown.js~Dropdown.html @@ -3,7 +3,7 @@ - Dropdown | tablefilter v0.4.33 API Document + Dropdown | tablefilter v0.4.34 API Document diff --git a/docs/class/src/modules/gridLayout.js~GridLayout.html b/docs/class/src/modules/gridLayout.js~GridLayout.html index 2c427695..04a65f91 100644 --- a/docs/class/src/modules/gridLayout.js~GridLayout.html +++ b/docs/class/src/modules/gridLayout.js~GridLayout.html @@ -3,7 +3,7 @@ - GridLayout | tablefilter v0.4.33 API Document + GridLayout | tablefilter v0.4.34 API Document diff --git a/docs/class/src/modules/hash.js~Hash.html b/docs/class/src/modules/hash.js~Hash.html index 0885af75..c8d375cf 100644 --- a/docs/class/src/modules/hash.js~Hash.html +++ b/docs/class/src/modules/hash.js~Hash.html @@ -3,7 +3,7 @@ - Hash | tablefilter v0.4.33 API Document + Hash | tablefilter v0.4.34 API Document diff --git a/docs/class/src/modules/help.js~Help.html b/docs/class/src/modules/help.js~Help.html index 486493ca..16f3c1fe 100644 --- a/docs/class/src/modules/help.js~Help.html +++ b/docs/class/src/modules/help.js~Help.html @@ -3,7 +3,7 @@ - Help | tablefilter v0.4.33 API Document + Help | tablefilter v0.4.34 API Document diff --git a/docs/class/src/modules/highlightKeywords.js~HighlightKeyword.html b/docs/class/src/modules/highlightKeywords.js~HighlightKeyword.html index dd6debc8..f8bef9d2 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.4.33 API Document + HighlightKeyword | tablefilter v0.4.34 API Document diff --git a/docs/class/src/modules/loader.js~Loader.html b/docs/class/src/modules/loader.js~Loader.html index 04187f4c..9c843487 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.4.33 API Document + Loader | tablefilter v0.4.34 API Document diff --git a/docs/class/src/modules/noResults.js~NoResults.html b/docs/class/src/modules/noResults.js~NoResults.html index 96215aa5..05b67c2d 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.4.33 API Document + NoResults | tablefilter v0.4.34 API Document diff --git a/docs/class/src/modules/paging.js~Paging.html b/docs/class/src/modules/paging.js~Paging.html index e6099c6e..a7e9df61 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.4.33 API Document + Paging | tablefilter v0.4.34 API Document diff --git a/docs/class/src/modules/popupFilter.js~PopupFilter.html b/docs/class/src/modules/popupFilter.js~PopupFilter.html index db764f33..6b36b848 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.4.33 API Document + PopupFilter | tablefilter v0.4.34 API Document diff --git a/docs/class/src/modules/rowsCounter.js~RowsCounter.html b/docs/class/src/modules/rowsCounter.js~RowsCounter.html index 97590262..3f370cc7 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.4.33 API Document + RowsCounter | tablefilter v0.4.34 API Document diff --git a/docs/class/src/modules/state.js~State.html b/docs/class/src/modules/state.js~State.html index a5b4e03d..b1183611 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.4.33 API Document + State | tablefilter v0.4.34 API Document diff --git a/docs/class/src/modules/statusBar.js~StatusBar.html b/docs/class/src/modules/statusBar.js~StatusBar.html index 7ed981bf..c51c2e9f 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.4.33 API Document + StatusBar | tablefilter v0.4.34 API Document diff --git a/docs/class/src/modules/storage.js~Storage.html b/docs/class/src/modules/storage.js~Storage.html index 4b7de973..ddc0aa64 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.4.33 API Document + Storage | tablefilter v0.4.34 API Document diff --git a/docs/class/src/tablefilter.js~TableFilter.html b/docs/class/src/tablefilter.js~TableFilter.html index 8b8e8f87..a26cacb5 100644 --- a/docs/class/src/tablefilter.js~TableFilter.html +++ b/docs/class/src/tablefilter.js~TableFilter.html @@ -3,7 +3,7 @@ - TableFilter | tablefilter v0.4.33 API Document + TableFilter | tablefilter v0.4.34 API Document @@ -3477,7 +3477,7 @@ custom options values and texts

- getFilteredDataCol(colIndex: Number, includeHeaders: Boolean): Array + getFilteredDataCol(colIndex: Number, includeHeaders: Boolean, num: Boolean, exclude: Array, visible: Boolean): Array

@@ -8859,7 +8859,7 @@ filter if an array is supplied

- source + source @@ -8917,7 +8917,7 @@ filter if an array is supplied

- source + source @@ -8958,7 +8958,7 @@ filter if an array is supplied

- source + source @@ -8999,7 +8999,7 @@ filter if an array is supplied

- source + source @@ -9189,7 +9189,7 @@ filter if an array is supplied

- source + source @@ -9410,7 +9410,7 @@ hidden when all the search terms are not found in inspected row.

- source + source @@ -9598,7 +9598,7 @@ hidden when all the search terms are not found in inspected row.

- source + source @@ -9756,7 +9756,7 @@ hidden when all the search terms are not found in inspected row.

- source + source @@ -10032,7 +10032,7 @@ custom options values and texts

- source + source @@ -10169,7 +10169,7 @@ custom options values and texts

- source + source @@ -10296,11 +10296,11 @@ custom options values and texts

- getFilteredDataCol(colIndex: Number, includeHeaders: Boolean): Array + getFilteredDataCol(colIndex: Number, includeHeaders: Boolean, num: Boolean, exclude: Array, visible: Boolean): Array - source + source @@ -10334,6 +10334,28 @@ custom options values and texts

Optional: include headers row

+ + num + Boolean + +

Optional: return unformatted number

+ + + + exclude + Array + +

Optional: list of row indexes to be excluded

+ + + + visible + Boolean + +

Optional: return only visible data + (relevant for paging)

+ +
@@ -10455,7 +10477,7 @@ Note: hidden filters are also returned

- source + source @@ -10507,7 +10529,7 @@ Note: hidden filters are also returned

- source + source @@ -10610,7 +10632,7 @@ Note: hidden filters are also returned

- source + source @@ -10678,7 +10700,7 @@ Note: hidden filters are also returned

- source + source @@ -10729,7 +10751,7 @@ Note: hidden filters are also returned

- source + source @@ -10798,7 +10820,7 @@ Note: hidden filters are also returned

- source + source @@ -10849,7 +10871,7 @@ Note: hidden filters are also returned

- source + source @@ -10988,7 +11010,7 @@ defined

- source + source @@ -11189,7 +11211,7 @@ row)

- source + source @@ -11258,7 +11280,7 @@ row)

- source + source @@ -11395,7 +11417,7 @@ row)

- source + source @@ -11471,7 +11493,7 @@ row)

- source + source @@ -11540,7 +11562,7 @@ Note this is only valid for input filter types.

- source + source @@ -11769,7 +11791,7 @@ Note this is only valid for input filter types.

- source + source @@ -11837,7 +11859,7 @@ Note this is only valid for input filter types.

- source + source @@ -11912,7 +11934,7 @@ Note this is only valid for input filter types.

- source + source @@ -11963,7 +11985,7 @@ Note this is only valid for input filter types.

- source + source @@ -12031,7 +12053,7 @@ Note this is only valid for input filter types.

- source + source @@ -12099,7 +12121,7 @@ Note this is only valid for input filter types.

- source + source @@ -12240,7 +12262,7 @@ Note this is only valid for input filter types.

- source + source @@ -12577,7 +12599,7 @@ columns

- source + source @@ -12635,7 +12657,7 @@ columns

- source + source @@ -12693,7 +12715,7 @@ columns

- source + source @@ -12799,7 +12821,7 @@ columns

- source + source @@ -12840,7 +12862,7 @@ columns

- source + source diff --git a/docs/coverage.json b/docs/coverage.json index eb684060..dfe7f0b9 100644 --- a/docs/coverage.json +++ b/docs/coverage.json @@ -1,7 +1,7 @@ { "coverage": "100%", - "expectCount": 650, - "actualCount": 650, + "expectCount": 666, + "actualCount": 666, "files": { "src/const.js": { "expectCount": 18, @@ -34,8 +34,8 @@ "undocumentLines": [] }, "src/extensions/colOps/colOps.js": { - "expectCount": 9, - "actualCount": 9, + "expectCount": 25, + "actualCount": 25, "undocumentLines": [] }, "src/extensions/colsVisibility/colsVisibility.js": { diff --git a/docs/dump.json b/docs/dump.json index eb2b601f..f45cf789 100644 --- a/docs/dump.json +++ b/docs/dump.json @@ -2020,7 +2020,7 @@ "access": null, "description": null, "lineNumber": 1, - "content": "import {Feature} from '../../feature';\nimport {createText, elm} from '../../dom';\nimport {isArray, isFn, isUndef, EMPTY_FN} from '../../types';\n\nconst EVENTS = [\n 'after-filtering',\n 'after-page-change',\n 'after-page-length-change'\n];\n\n/**\n * Column calculations extension\n */\nexport default class ColOps extends Feature {\n\n /**\n * Creates an instance of ColOps\n *\n * @param {TableFilter} tf TableFilter instance\n * @param {Object} opts Configuration object\n */\n constructor(tf, opts) {\n super(tf, opts.name);\n\n /**\n * Callback fired before columns operations start\n * @type {Function}\n */\n this.onBeforeOperation = isFn(opts.on_before_operation) ?\n opts.on_before_operation : EMPTY_FN;\n\n /**\n * Callback fired after columns operations are completed\n * @type {Function}\n */\n this.onAfterOperation = isFn(opts.on_after_operation) ?\n opts.on_after_operation : EMPTY_FN;\n\n /**\n * Configuration options\n * @type {Object}\n */\n this.opts = opts;\n\n this.enable();\n }\n\n /**\n * Initializes ColOps instance\n */\n init() {\n if (this.initialized) {\n return;\n }\n // subscribe to events\n this.emitter.on(EVENTS, () => this.calc());\n\n this.calc();\n\n /**\n * @inherited\n */\n this.initialized = true;\n }\n\n /**\n * Calculates columns' values\n * Configuration options are stored in 'opts' property\n * - 'id' contains ids of elements showing result (array)\n * - 'col' contains the columns' indexes (array)\n * - 'operation' contains operation type (array, values: 'sum', 'mean',\n * 'min', 'max', 'median', 'q1', 'q3')\n * - 'write_method' array defines which method to use for displaying the\n * result (innerHTML, setValue, createTextNode) - default: 'innerHTML'\n * - 'tot_row_index' defines in which row results are displayed\n * (integers array)\n *\n * - changes made by Nuovella:\n * (1) optimized the routine (now it will only process each column once),\n * (2) added calculations for the median, lower and upper quartile.\n */\n calc() {\n let tf = this.tf;\n if (!tf.isInitialized()) {\n return;\n }\n\n this.onBeforeOperation(tf, this);\n this.emitter.emit('before-column-operation', tf, this);\n\n let opts = this.opts,\n labelId = opts.id,\n colIndex = opts.col,\n operation = opts.operation,\n outputType = opts.write_method,\n totRowIndex = opts.tot_row_index,\n excludeRow = opts.exclude_row,\n decimalPrecision = isUndef(opts.decimal_precision) ?\n 2 : opts.decimal_precision;\n\n //nuovella: determine unique list of columns to operate on\n let ucolIndex = [],\n ucolMax = 0;\n ucolIndex[ucolMax] = colIndex[0];\n\n for (let ii = 1; ii < colIndex.length; ii++) {\n let saved = 0;\n //see if colIndex[ii] is already in the list of unique indexes\n for (let jj = 0; jj <= ucolMax; jj++) {\n if (ucolIndex[jj] === colIndex[ii]) {\n saved = 1;\n }\n }\n //if not saved then, save the index;\n if (saved === 0) {\n ucolMax++;\n ucolIndex[ucolMax] = colIndex[ii];\n }\n }\n\n if (isArray(labelId) && isArray(colIndex) && isArray(operation)) {\n let rows = tf.tbl.rows,\n colvalues = [],\n ucol = 0;\n\n for (; ucol <= ucolMax; ucol++) {\n //this retrieves col values\n //use ucolIndex because we only want to pass through this loop\n //once for each column get the values in this unique column\n colvalues.push(\n tf.getColValues(ucolIndex[ucol], false, true, excludeRow)\n );\n\n //next: calculate all operations for this column\n let result,\n nbvalues = 0,\n temp,\n meanValue = 0,\n sumValue = 0,\n minValue = null,\n maxValue = null,\n q1Value = null,\n medValue = null,\n q3Value = null,\n meanFlag = 0,\n sumFlag = 0,\n minFlag = 0,\n maxFlag = 0,\n q1Flag = 0,\n medFlag = 0,\n q3Flag = 0,\n theList = [],\n opsThisCol = [],\n decThisCol = [],\n labThisCol = [],\n oTypeThisCol = [],\n mThisCol = -1,\n k = 0,\n j = 0,\n i = 0;\n\n for (; k < colIndex.length; k++) {\n if (colIndex[k] === ucolIndex[ucol]) {\n mThisCol++;\n opsThisCol[mThisCol] = operation[k].toLowerCase();\n decThisCol[mThisCol] = decimalPrecision[k];\n labThisCol[mThisCol] = labelId[k];\n oTypeThisCol = isArray(outputType) ?\n outputType[k] : null;\n\n switch (opsThisCol[mThisCol]) {\n case 'mean':\n meanFlag = 1;\n break;\n case 'sum':\n sumFlag = 1;\n break;\n case 'min':\n minFlag = 1;\n break;\n case 'max':\n maxFlag = 1;\n break;\n case 'median':\n medFlag = 1;\n break;\n case 'q1':\n q1Flag = 1;\n break;\n case 'q3':\n q3Flag = 1;\n break;\n }\n }\n }\n\n for (; j < colvalues[ucol].length; j++) {\n //sort the list for calculation of median and quartiles\n if ((q1Flag === 1) || (q3Flag === 1) || (medFlag === 1)) {\n if (j < colvalues[ucol].length - 1) {\n for (k = j + 1; k < colvalues[ucol].length; k++) {\n /* eslint-disable */\n if (eval(colvalues[ucol][k]) <\n eval(colvalues[ucol][j])) {\n /* eslint-enable */\n temp = colvalues[ucol][j];\n colvalues[ucol][j] = colvalues[ucol][k];\n colvalues[ucol][k] = temp;\n }\n }\n }\n }\n let cvalue = parseFloat(colvalues[ucol][j]);\n theList[j] = parseFloat(cvalue);\n\n if (!isNaN(cvalue)) {\n nbvalues++;\n if (sumFlag === 1 || meanFlag === 1) {\n sumValue += parseFloat(cvalue);\n }\n if (minFlag === 1) {\n if (minValue === null) {\n minValue = parseFloat(cvalue);\n } else {\n minValue = parseFloat(cvalue) < minValue ?\n parseFloat(cvalue) : minValue;\n }\n }\n if (maxFlag === 1) {\n if (maxValue === null) {\n maxValue = parseFloat(cvalue);\n } else {\n maxValue = parseFloat(cvalue) > maxValue ?\n parseFloat(cvalue) : maxValue;\n }\n }\n }\n }//for j\n if (meanFlag === 1) {\n meanValue = sumValue / nbvalues;\n }\n if (medFlag === 1) {\n let aux = 0;\n if (nbvalues % 2 === 1) {\n aux = Math.floor(nbvalues / 2);\n medValue = theList[aux];\n } else {\n medValue = (theList[nbvalues / 2] +\n theList[((nbvalues / 2) - 1)]) / 2;\n }\n }\n let posa;\n if (q1Flag === 1) {\n posa = 0.0;\n posa = Math.floor(nbvalues / 4);\n if (4 * posa === nbvalues) {\n q1Value = (theList[posa - 1] + theList[posa]) / 2;\n } else {\n q1Value = theList[posa];\n }\n }\n if (q3Flag === 1) {\n posa = 0.0;\n let posb = 0.0;\n posa = Math.floor(nbvalues / 4);\n if (4 * posa === nbvalues) {\n posb = 3 * posa;\n q3Value = (theList[posb] + theList[posb - 1]) / 2;\n } else {\n q3Value = theList[nbvalues - posa - 1];\n }\n }\n\n for (; i <= mThisCol; i++) {\n switch (opsThisCol[i]) {\n case 'mean':\n result = meanValue;\n break;\n case 'sum':\n result = sumValue;\n break;\n case 'min':\n result = minValue;\n break;\n case 'max':\n result = maxValue;\n break;\n case 'median':\n result = medValue;\n break;\n case 'q1':\n result = q1Value;\n break;\n case 'q3':\n result = q3Value;\n break;\n }\n\n let precision = !isNaN(decThisCol[i]) ? decThisCol[i] : 2;\n\n //if outputType is defined\n if (oTypeThisCol && result) {\n result = result.toFixed(precision);\n\n if (elm(labThisCol[i])) {\n switch (oTypeThisCol.toLowerCase()) {\n case 'innerhtml':\n if (isNaN(result) || !isFinite(result) ||\n nbvalues === 0) {\n elm(labThisCol[i]).innerHTML = '.';\n } else {\n elm(labThisCol[i]).innerHTML = result;\n }\n break;\n case 'setvalue':\n elm(labThisCol[i]).value = result;\n break;\n case 'createtextnode':\n let oldnode =\n elm(labThisCol[i]).firstChild;\n let txtnode = createText(result);\n elm(labThisCol[i])\n .replaceChild(txtnode, oldnode);\n break;\n }//switch\n }\n } else {\n try {\n if (isNaN(result) || !isFinite(result) ||\n nbvalues === 0) {\n elm(labThisCol[i]).innerHTML = '.';\n } else {\n elm(labThisCol[i]).innerHTML =\n result.toFixed(precision);\n }\n } catch (e) { }//catch\n }//else\n }//for i\n\n // row(s) with result are always visible\n let totRow = totRowIndex && totRowIndex[ucol] ?\n rows[totRowIndex[ucol]] : null;\n if (totRow) {\n totRow.style.display = '';\n }\n }//for ucol\n }//if typeof\n\n this.onAfterOperation(tf, this);\n this.emitter.emit('after-column-operation', tf, this);\n }\n\n /**\n * Remove extension\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n // unsubscribe to events\n this.emitter.off(EVENTS, () => this.calc());\n\n this.initialized = false;\n }\n\n}\n" + "content": "import {Feature} from '../../feature';\nimport {createText, elm} from '../../dom';\nimport {isArray, isFn, isUndef, isEmpty, EMPTY_FN} from '../../types';\nimport {numSortAsc} from '../../sort';\n\nconst EVENTS = [\n 'after-filtering',\n 'after-page-change',\n 'after-page-length-change'\n];\n\nconst SUM = 'sum';\nconst MEAN = 'mean';\nconst MIN = 'min';\nconst MAX = 'max';\nconst MEDIAN = 'median';\nconst Q1 = 'q1';\nconst Q3 = 'q3';\n\n/**\n * Column calculations extension\n */\nexport default class ColOps extends Feature {\n\n /**\n * Creates an instance of ColOps\n *\n * @param {TableFilter} tf TableFilter instance\n * @param {Object} opts Configuration object\n */\n constructor(tf, opts) {\n super(tf, opts.name);\n\n /**\n * Callback fired before columns operations start\n * @type {Function}\n */\n this.onBeforeOperation = isFn(opts.on_before_operation) ?\n opts.on_before_operation : EMPTY_FN;\n\n /**\n * Callback fired after columns operations are completed\n * @type {Function}\n */\n this.onAfterOperation = isFn(opts.on_after_operation) ?\n opts.on_after_operation : EMPTY_FN;\n\n /**\n * Configuration options\n * @type {Object}\n */\n this.opts = opts;\n\n /**\n * List of DOM element IDs containing column's calculation result\n * @type {Array}\n */\n this.labelIds = opts.id || [];\n\n /**\n * List of columns' indexes for calculations\n * @type {Array}\n */\n this.colIndexes = opts.col || [];\n\n /**\n * List of operations - possible values: 'sum', 'mean', 'min', 'max',\n * 'median', 'q1', 'q3'\n * @type {Array}\n */\n this.operations = opts.operation || [];\n\n /**\n * List of write methods used to write the result - possible values:\n * 'innerHTML', 'setValue', 'createTextNode'\n * @type {Array}\n */\n this.outputTypes = opts.write_method || [];\n\n /**\n * List of row indexes displaying the results\n * @type {Array}\n */\n this.totRowIndexes = opts.tot_row_index || [];\n\n /**\n * List of row indexes excluded from calculations\n * @type {Array}\n */\n this.excludeRows = opts.exclude_row || [];\n\n /**\n * List of decimal precision for calculation results\n * @type {Array}\n */\n this.decimalPrecisions = isUndef(opts.decimal_precision) ?\n 2 : opts.decimal_precision;\n\n this.enable();\n }\n\n /**\n * Initializes ColOps instance\n */\n init() {\n if (this.initialized) {\n return;\n }\n // subscribe to events\n this.emitter.on(EVENTS, () => this.calcAll());\n\n this.calcAll();\n\n /** @inherited */\n this.initialized = true;\n }\n\n /**\n * Calculates columns' values\n * Configuration options are stored in 'opts' property\n * - 'id' contains ids of elements showing result (array)\n * - 'col' contains the columns' indexes (array)\n * - 'operation' contains operation type (array, values: 'sum', 'mean',\n * 'min', 'max', 'median', 'q1', 'q3')\n * - 'write_method' array defines which method to use for displaying the\n * result (innerHTML, setValue, createTextNode) - default: 'innerHTML'\n * - 'tot_row_index' defines in which row results are displayed\n * (integers array)\n *\n * - changes made by Nuovella:\n * (1) optimized the routine (now it will only process each column once),\n * (2) added calculations for the median, lower and upper quartile.\n */\n calcAll() {\n let tf = this.tf;\n if (!tf.isInitialized()) {\n return;\n }\n\n this.onBeforeOperation(tf, this);\n this.emitter.emit('before-column-operation', tf, this);\n\n let colIndexes = this.colIndexes,\n colOperations = this.operations,\n outputTypes = this.outputTypes,\n totRowIndexes = this.totRowIndexes,\n excludeRows = this.excludeRows,\n decimalPrecisions = isUndef(this.decimalPrecisions) ?\n 2 : this.decimalPrecisions;\n\n //nuovella: determine unique list of columns to operate on\n let uIndexes = [];\n colIndexes.forEach((val) => {\n if (uIndexes.indexOf(val) === -1) {\n uIndexes.push(val);\n }\n });\n\n let nbCols = uIndexes.length - 1,\n rows = tf.tbl.rows,\n colValues = [];\n\n for (let u = 0; u <= nbCols; u++) {\n //this retrieves col values\n //use uIndexes because we only want to pass through this loop\n //once for each column get the values in this unique column\n colValues.push(\n tf.getFilteredDataCol(uIndexes[u], false, true, excludeRows)\n );\n\n let curValues = colValues[u];\n\n //next: calculate all operations for this column\n let result = 0,\n operations = [],\n precisions = [],\n labels = [],\n writeType,\n idx = 0;\n\n for (let k = 0; k < colIndexes.length; k++) {\n if (colIndexes[k] !== uIndexes[u]) {\n continue;\n }\n operations[idx] = colOperations[k].toLowerCase();\n precisions[idx] = decimalPrecisions[k];\n labels[idx] = this.labelIds[k];\n writeType = isArray(outputTypes) ? outputTypes[k] : null;\n idx++;\n }\n\n for (let i = 0; i <= idx; i++) {\n // emit values before column calculation\n this.emitter.emit(\n 'before-column-calc',\n tf,\n this,\n uIndexes[u],\n curValues,\n operations[i],\n precisions[i]\n );\n\n result = Number(this.calc(curValues, operations[i], null));\n\n // emit column calculation result\n this.emitter.emit(\n 'column-calc',\n tf,\n this,\n uIndexes[u],\n result,\n operations[i],\n precisions[i]\n );\n\n // write result in expected DOM element\n this.writeResult(\n result,\n labels[i],\n writeType,\n precisions[i]\n );\n\n }//for i\n\n // row(s) with result are always visible\n let totRow = totRowIndexes && totRowIndexes[u] ?\n rows[totRowIndexes[u]] : null;\n if (totRow) {\n totRow.style.display = '';\n }\n }//for u\n\n this.onAfterOperation(tf, this);\n this.emitter.emit('after-column-operation', tf, this);\n }\n\n /**\n * Make desired calculation on specified column.\n * @param {Number} colIndex Column index\n * @param {any} [operation=SUM] Operation type\n * @param {any} precision Decimal precision\n * @returns {Number}\n */\n columnCalc(colIndex, operation = SUM, precision) {\n let excludeRows = this.excludeRows || [];\n let colValues =\n this.tf.getFilteredDataCol(colIndex, false, true, excludeRows);\n\n return this.calc(colValues, operation, precision);\n }\n\n /**\n * Make calculation on passed values.\n * @param {Array} values List of values\n * @param {String} [operation=SUM] Optional operation type\n * @param {Number} precision Optional result precision\n * @returns {Number}\n * @private\n */\n calc(colValues, operation = SUM, precision) {\n let result = 0;\n\n if (operation === Q1 || operation === Q3 || operation === MEDIAN) {\n colValues = this.sortColumnValues(colValues, numSortAsc);\n }\n\n switch (operation) {\n case MEAN:\n result = this.calcMean(colValues);\n break;\n case SUM:\n result = this.calcSum(colValues);\n break;\n case MIN:\n result = this.calcMin(colValues);\n break;\n case MAX:\n result = this.calcMax(colValues);\n break;\n case MEDIAN:\n result = this.calcMedian(colValues);\n break;\n case Q1:\n result = this.calcQ1(colValues);\n break;\n case Q3:\n result = this.calcQ3(colValues);\n break;\n }\n\n return isEmpty(precision) ? result : result.toFixed(precision);\n }\n\n /**\n * Calculate the sum of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n */\n calcSum(values = []) {\n if (isEmpty(values)) {\n return 0;\n }\n let result = values.reduce((x, y) => x + y);\n return Number(result);\n }\n\n /**\n * Calculate the mean of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n */\n calcMean(values = []) {\n let result = this.calcSum(values) / values.length;\n return Number(result);\n }\n\n /**\n * Calculate the max value of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n */\n calcMax(values = []) {\n return Math.max.apply(null, values);\n }\n\n /**\n * Calculate the min value of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n */\n calcMin(values = []) {\n return Math.min.apply(null, values);\n }\n\n /**\n * Calculate the median of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n */\n calcMedian(values = []) {\n let nbValues = values.length;\n let aux = 0;\n if (nbValues % 2 === 1) {\n aux = Math.floor(nbValues / 2);\n return Number(values[aux]);\n }\n return Number(\n (values[nbValues / 2] +\n values[((nbValues / 2) - 1)]) / 2\n );\n }\n\n /**\n * Calculate the lower quartile of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n */\n calcQ1(values = []) {\n let nbValues = values.length;\n let posa = 0.0;\n posa = Math.floor(nbValues / 4);\n if (4 * posa === nbValues) {\n return Number(\n (values[posa - 1] + values[posa]) / 2\n );\n }\n return Number(values[posa]);\n }\n\n /**\n * Calculate the upper quartile of passed values.\n * @param {Array} [values=[]] List of values\n * @returns {Number}\n */\n calcQ3(values = []) {\n let nbValues = values.length;\n let posa = 0.0;\n let posb = 0.0;\n posa = Math.floor(nbValues / 4);\n if (4 * posa === nbValues) {\n posb = 3 * posa;\n return Number(\n (values[posb] + values[posb - 1]) / 2\n );\n }\n return Number(values[nbValues - posa - 1]);\n }\n\n /**\n * Sort passed values with supplied sorter function.\n * @param {Array} [values=[]] List of values to be sorted\n * @param {Function} sorter Sorter function\n * @returns {Array}\n */\n sortColumnValues(values = [], sorter) {\n return values.sort(sorter);\n }\n\n /**\n * Write calculation result in passed DOM element with supplied write method\n * and decimal precision.\n * @param {Number} [result=0] Calculation result\n * @param {DOMElement} label DOM element\n * @param {String} [writeType='innerhtml'] Write method\n * @param {Number} [precision=2] Applied decimal precision\n * @private\n */\n writeResult(result = 0, label, writeType = 'innerhtml', precision = 2) {\n let labelElm = elm(label);\n\n if (!labelElm) {\n return;\n }\n\n result = result.toFixed(precision);\n if (isNaN(result) || !isFinite(result)) {\n result = '';\n }\n\n switch (writeType.toLowerCase()) {\n case 'innerhtml':\n labelElm.innerHTML = result;\n break;\n case 'setvalue':\n labelElm.value = result;\n break;\n case 'createtextnode':\n let oldNode = labelElm.firstChild;\n let txtNode = createText(result);\n labelElm.replaceChild(txtNode, oldNode);\n break;\n }\n }\n\n /** Remove extension */\n destroy() {\n if (!this.initialized) {\n return;\n }\n // unsubscribe to events\n this.emitter.off(EVENTS, () => this.calcAll());\n\n this.initialized = false;\n }\n\n}\n" }, { "__docId__": 76, @@ -2035,7 +2035,7 @@ "importPath": "tablefilter/src/extensions/colOps/colOps.js", "importStyle": null, "description": null, - "lineNumber": 5, + "lineNumber": 6, "undocument": true, "type": { "types": [ @@ -2045,6 +2045,153 @@ }, { "__docId__": 77, + "kind": "variable", + "static": true, + "variation": null, + "name": "SUM", + "memberof": "src/extensions/colOps/colOps.js", + "longname": "src/extensions/colOps/colOps.js~SUM", + "access": null, + "export": false, + "importPath": "tablefilter/src/extensions/colOps/colOps.js", + "importStyle": null, + "description": null, + "lineNumber": 12, + "undocument": true, + "type": { + "types": [ + "string" + ] + } + }, + { + "__docId__": 78, + "kind": "variable", + "static": true, + "variation": null, + "name": "MEAN", + "memberof": "src/extensions/colOps/colOps.js", + "longname": "src/extensions/colOps/colOps.js~MEAN", + "access": null, + "export": false, + "importPath": "tablefilter/src/extensions/colOps/colOps.js", + "importStyle": null, + "description": null, + "lineNumber": 13, + "undocument": true, + "type": { + "types": [ + "string" + ] + } + }, + { + "__docId__": 79, + "kind": "variable", + "static": true, + "variation": null, + "name": "MIN", + "memberof": "src/extensions/colOps/colOps.js", + "longname": "src/extensions/colOps/colOps.js~MIN", + "access": null, + "export": false, + "importPath": "tablefilter/src/extensions/colOps/colOps.js", + "importStyle": null, + "description": null, + "lineNumber": 14, + "undocument": true, + "type": { + "types": [ + "string" + ] + } + }, + { + "__docId__": 80, + "kind": "variable", + "static": true, + "variation": null, + "name": "MAX", + "memberof": "src/extensions/colOps/colOps.js", + "longname": "src/extensions/colOps/colOps.js~MAX", + "access": null, + "export": false, + "importPath": "tablefilter/src/extensions/colOps/colOps.js", + "importStyle": null, + "description": null, + "lineNumber": 15, + "undocument": true, + "type": { + "types": [ + "string" + ] + } + }, + { + "__docId__": 81, + "kind": "variable", + "static": true, + "variation": null, + "name": "MEDIAN", + "memberof": "src/extensions/colOps/colOps.js", + "longname": "src/extensions/colOps/colOps.js~MEDIAN", + "access": null, + "export": false, + "importPath": "tablefilter/src/extensions/colOps/colOps.js", + "importStyle": null, + "description": null, + "lineNumber": 16, + "undocument": true, + "type": { + "types": [ + "string" + ] + } + }, + { + "__docId__": 82, + "kind": "variable", + "static": true, + "variation": null, + "name": "Q1", + "memberof": "src/extensions/colOps/colOps.js", + "longname": "src/extensions/colOps/colOps.js~Q1", + "access": null, + "export": false, + "importPath": "tablefilter/src/extensions/colOps/colOps.js", + "importStyle": null, + "description": null, + "lineNumber": 17, + "undocument": true, + "type": { + "types": [ + "string" + ] + } + }, + { + "__docId__": 83, + "kind": "variable", + "static": true, + "variation": null, + "name": "Q3", + "memberof": "src/extensions/colOps/colOps.js", + "longname": "src/extensions/colOps/colOps.js~Q3", + "access": null, + "export": false, + "importPath": "tablefilter/src/extensions/colOps/colOps.js", + "importStyle": null, + "description": null, + "lineNumber": 18, + "undocument": true, + "type": { + "types": [ + "string" + ] + } + }, + { + "__docId__": 84, "kind": "class", "static": true, "variation": null, @@ -2056,14 +2203,14 @@ "importPath": "tablefilter/src/extensions/colOps/colOps.js", "importStyle": "ColOps", "description": "Column calculations extension", - "lineNumber": 14, + "lineNumber": 23, "interface": false, "extends": [ "src/feature.js~Feature" ] }, { - "__docId__": 78, + "__docId__": 85, "kind": "constructor", "static": false, "variation": null, @@ -2072,7 +2219,7 @@ "longname": "src/extensions/colOps/colOps.js~ColOps#constructor", "access": null, "description": "Creates an instance of ColOps", - "lineNumber": 22, + "lineNumber": 31, "params": [ { "nullable": null, @@ -2098,7 +2245,7 @@ "generator": false }, { - "__docId__": 79, + "__docId__": 86, "kind": "member", "static": false, "variation": null, @@ -2107,7 +2254,7 @@ "longname": "src/extensions/colOps/colOps.js~ColOps#onBeforeOperation", "access": null, "description": "Callback fired before columns operations start", - "lineNumber": 29, + "lineNumber": 38, "type": { "nullable": null, "types": [ @@ -2118,7 +2265,7 @@ } }, { - "__docId__": 80, + "__docId__": 87, "kind": "member", "static": false, "variation": null, @@ -2127,7 +2274,7 @@ "longname": "src/extensions/colOps/colOps.js~ColOps#onAfterOperation", "access": null, "description": "Callback fired after columns operations are completed", - "lineNumber": 36, + "lineNumber": 45, "type": { "nullable": null, "types": [ @@ -2138,7 +2285,7 @@ } }, { - "__docId__": 81, + "__docId__": 88, "kind": "member", "static": false, "variation": null, @@ -2147,7 +2294,7 @@ "longname": "src/extensions/colOps/colOps.js~ColOps#opts", "access": null, "description": "Configuration options", - "lineNumber": 43, + "lineNumber": 52, "type": { "nullable": null, "types": [ @@ -2158,7 +2305,147 @@ } }, { - "__docId__": 82, + "__docId__": 89, + "kind": "member", + "static": false, + "variation": null, + "name": "labelIds", + "memberof": "src/extensions/colOps/colOps.js~ColOps", + "longname": "src/extensions/colOps/colOps.js~ColOps#labelIds", + "access": null, + "description": "List of DOM element IDs containing column's calculation result", + "lineNumber": 58, + "type": { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 90, + "kind": "member", + "static": false, + "variation": null, + "name": "colIndexes", + "memberof": "src/extensions/colOps/colOps.js~ColOps", + "longname": "src/extensions/colOps/colOps.js~ColOps#colIndexes", + "access": null, + "description": "List of columns' indexes for calculations", + "lineNumber": 64, + "type": { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 91, + "kind": "member", + "static": false, + "variation": null, + "name": "operations", + "memberof": "src/extensions/colOps/colOps.js~ColOps", + "longname": "src/extensions/colOps/colOps.js~ColOps#operations", + "access": null, + "description": "List of operations - possible values: 'sum', 'mean', 'min', 'max',\n'median', 'q1', 'q3'", + "lineNumber": 71, + "type": { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 92, + "kind": "member", + "static": false, + "variation": null, + "name": "outputTypes", + "memberof": "src/extensions/colOps/colOps.js~ColOps", + "longname": "src/extensions/colOps/colOps.js~ColOps#outputTypes", + "access": null, + "description": "List of write methods used to write the result - possible values:\n'innerHTML', 'setValue', 'createTextNode'", + "lineNumber": 78, + "type": { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 93, + "kind": "member", + "static": false, + "variation": null, + "name": "totRowIndexes", + "memberof": "src/extensions/colOps/colOps.js~ColOps", + "longname": "src/extensions/colOps/colOps.js~ColOps#totRowIndexes", + "access": null, + "description": "List of row indexes displaying the results", + "lineNumber": 84, + "type": { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 94, + "kind": "member", + "static": false, + "variation": null, + "name": "excludeRows", + "memberof": "src/extensions/colOps/colOps.js~ColOps", + "longname": "src/extensions/colOps/colOps.js~ColOps#excludeRows", + "access": null, + "description": "List of row indexes excluded from calculations", + "lineNumber": 90, + "type": { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 95, + "kind": "member", + "static": false, + "variation": null, + "name": "decimalPrecisions", + "memberof": "src/extensions/colOps/colOps.js~ColOps", + "longname": "src/extensions/colOps/colOps.js~ColOps#decimalPrecisions", + "access": null, + "description": "List of decimal precision for calculation results", + "lineNumber": 96, + "type": { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 96, "kind": "method", "static": false, "variation": null, @@ -2167,12 +2454,12 @@ "longname": "src/extensions/colOps/colOps.js~ColOps#init", "access": null, "description": "Initializes ColOps instance", - "lineNumber": 51, + "lineNumber": 105, "params": [], "generator": false }, { - "__docId__": 83, + "__docId__": 97, "kind": "member", "static": false, "variation": null, @@ -2180,8 +2467,8 @@ "memberof": "src/extensions/colOps/colOps.js~ColOps", "longname": "src/extensions/colOps/colOps.js~ColOps#initialized", "access": null, - "description": "", - "lineNumber": 63, + "description": null, + "lineNumber": 115, "unknown": [ { "tagName": "@inherited", @@ -2195,21 +2482,542 @@ } }, { - "__docId__": 84, + "__docId__": 98, + "kind": "method", + "static": false, + "variation": null, + "name": "calcAll", + "memberof": "src/extensions/colOps/colOps.js~ColOps", + "longname": "src/extensions/colOps/colOps.js~ColOps#calcAll", + "access": null, + "description": "Calculates columns' values\nConfiguration options are stored in 'opts' property\n- 'id' contains ids of elements showing result (array)\n- 'col' contains the columns' indexes (array)\n- 'operation' contains operation type (array, values: 'sum', 'mean',\n 'min', 'max', 'median', 'q1', 'q3')\n- 'write_method' array defines which method to use for displaying the\n result (innerHTML, setValue, createTextNode) - default: 'innerHTML'\n- 'tot_row_index' defines in which row results are displayed\n (integers array)\n\n- changes made by Nuovella:\n(1) optimized the routine (now it will only process each column once),\n(2) added calculations for the median, lower and upper quartile.", + "lineNumber": 134, + "params": [], + "generator": false + }, + { + "__docId__": 99, + "kind": "method", + "static": false, + "variation": null, + "name": "columnCalc", + "memberof": "src/extensions/colOps/colOps.js~ColOps", + "longname": "src/extensions/colOps/colOps.js~ColOps#columnCalc", + "access": null, + "description": "Make desired calculation on specified column.", + "lineNumber": 246, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Number}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": false, + "name": "colIndex", + "description": "Column index" + }, + { + "nullable": null, + "types": [ + "any" + ], + "spread": false, + "optional": true, + "defaultValue": "SUM", + "defaultRaw": "SUM", + "name": "operation", + "description": "Operation type" + }, + { + "nullable": null, + "types": [ + "any" + ], + "spread": false, + "optional": false, + "name": "precision", + "description": "Decimal precision" + } + ], + "return": { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 100, "kind": "method", "static": false, "variation": null, "name": "calc", "memberof": "src/extensions/colOps/colOps.js~ColOps", "longname": "src/extensions/colOps/colOps.js~ColOps#calc", - "access": null, - "description": "Calculates columns' values\nConfiguration options are stored in 'opts' property\n- 'id' contains ids of elements showing result (array)\n- 'col' contains the columns' indexes (array)\n- 'operation' contains operation type (array, values: 'sum', 'mean',\n 'min', 'max', 'median', 'q1', 'q3')\n- 'write_method' array defines which method to use for displaying the\n result (innerHTML, setValue, createTextNode) - default: 'innerHTML'\n- 'tot_row_index' defines in which row results are displayed\n (integers array)\n\n- changes made by Nuovella:\n(1) optimized the routine (now it will only process each column once),\n(2) added calculations for the median, lower and upper quartile.", - "lineNumber": 82, - "params": [], + "access": "private", + "description": "Make calculation on passed values.", + "lineNumber": 262, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Number}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "values", + "description": "List of values" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": true, + "defaultValue": "SUM", + "defaultRaw": "SUM", + "name": "operation", + "description": "Optional operation type" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": false, + "name": "precision", + "description": "Optional result precision" + } + ], + "return": { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "description": "" + }, "generator": false }, { - "__docId__": 85, + "__docId__": 101, + "kind": "method", + "static": false, + "variation": null, + "name": "calcSum", + "memberof": "src/extensions/colOps/colOps.js~ColOps", + "longname": "src/extensions/colOps/colOps.js~ColOps#calcSum", + "access": null, + "description": "Calculate the sum of passed values.", + "lineNumber": 301, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Number}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": true, + "defaultValue": "[]", + "defaultRaw": [], + "name": "values", + "description": "List of values" + } + ], + "return": { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 102, + "kind": "method", + "static": false, + "variation": null, + "name": "calcMean", + "memberof": "src/extensions/colOps/colOps.js~ColOps", + "longname": "src/extensions/colOps/colOps.js~ColOps#calcMean", + "access": null, + "description": "Calculate the mean of passed values.", + "lineNumber": 314, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Number}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": true, + "defaultValue": "[]", + "defaultRaw": [], + "name": "values", + "description": "List of values" + } + ], + "return": { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 103, + "kind": "method", + "static": false, + "variation": null, + "name": "calcMax", + "memberof": "src/extensions/colOps/colOps.js~ColOps", + "longname": "src/extensions/colOps/colOps.js~ColOps#calcMax", + "access": null, + "description": "Calculate the max value of passed values.", + "lineNumber": 324, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Number}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": true, + "defaultValue": "[]", + "defaultRaw": [], + "name": "values", + "description": "List of values" + } + ], + "return": { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 104, + "kind": "method", + "static": false, + "variation": null, + "name": "calcMin", + "memberof": "src/extensions/colOps/colOps.js~ColOps", + "longname": "src/extensions/colOps/colOps.js~ColOps#calcMin", + "access": null, + "description": "Calculate the min value of passed values.", + "lineNumber": 333, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Number}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": true, + "defaultValue": "[]", + "defaultRaw": [], + "name": "values", + "description": "List of values" + } + ], + "return": { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 105, + "kind": "method", + "static": false, + "variation": null, + "name": "calcMedian", + "memberof": "src/extensions/colOps/colOps.js~ColOps", + "longname": "src/extensions/colOps/colOps.js~ColOps#calcMedian", + "access": null, + "description": "Calculate the median of passed values.", + "lineNumber": 342, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Number}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": true, + "defaultValue": "[]", + "defaultRaw": [], + "name": "values", + "description": "List of values" + } + ], + "return": { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 106, + "kind": "method", + "static": false, + "variation": null, + "name": "calcQ1", + "memberof": "src/extensions/colOps/colOps.js~ColOps", + "longname": "src/extensions/colOps/colOps.js~ColOps#calcQ1", + "access": null, + "description": "Calculate the lower quartile of passed values.", + "lineNumber": 360, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Number}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": true, + "defaultValue": "[]", + "defaultRaw": [], + "name": "values", + "description": "List of values" + } + ], + "return": { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 107, + "kind": "method", + "static": false, + "variation": null, + "name": "calcQ3", + "memberof": "src/extensions/colOps/colOps.js~ColOps", + "longname": "src/extensions/colOps/colOps.js~ColOps#calcQ3", + "access": null, + "description": "Calculate the upper quartile of passed values.", + "lineNumber": 377, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Number}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": true, + "defaultValue": "[]", + "defaultRaw": [], + "name": "values", + "description": "List of values" + } + ], + "return": { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 108, + "kind": "method", + "static": false, + "variation": null, + "name": "sortColumnValues", + "memberof": "src/extensions/colOps/colOps.js~ColOps", + "longname": "src/extensions/colOps/colOps.js~ColOps#sortColumnValues", + "access": null, + "description": "Sort passed values with supplied sorter function.", + "lineNumber": 397, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Array}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": true, + "defaultValue": "[]", + "defaultRaw": [], + "name": "values", + "description": "List of values to be sorted" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "sorter", + "description": "Sorter function" + } + ], + "return": { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "__docId__": 109, + "kind": "method", + "static": false, + "variation": null, + "name": "writeResult", + "memberof": "src/extensions/colOps/colOps.js~ColOps", + "longname": "src/extensions/colOps/colOps.js~ColOps#writeResult", + "access": "private", + "description": "Write calculation result in passed DOM element with supplied write method\nand decimal precision.", + "lineNumber": 410, + "params": [ + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": true, + "defaultValue": "0", + "defaultRaw": 0, + "name": "result", + "description": "Calculation result" + }, + { + "nullable": null, + "types": [ + "DOMElement" + ], + "spread": false, + "optional": false, + "name": "label", + "description": "DOM element" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": true, + "defaultValue": "'innerhtml'", + "defaultRaw": "'innerhtml'", + "name": "writeType", + "description": "Write method" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": true, + "defaultValue": "2", + "defaultRaw": 2, + "name": "precision", + "description": "Applied decimal precision" + } + ], + "generator": false + }, + { + "__docId__": 110, "kind": "method", "static": false, "variation": null, @@ -2218,12 +3026,12 @@ "longname": "src/extensions/colOps/colOps.js~ColOps#destroy", "access": null, "description": "Remove extension", - "lineNumber": 356, + "lineNumber": 438, "params": [], "generator": false }, { - "__docId__": 86, + "__docId__": 111, "kind": "member", "static": false, "variation": null, @@ -2232,7 +3040,7 @@ "longname": "src/extensions/colOps/colOps.js~ColOps#initialized", "access": null, "description": null, - "lineNumber": 363, + "lineNumber": 445, "undocument": true, "type": { "types": [ @@ -2241,7 +3049,7 @@ } }, { - "__docId__": 87, + "__docId__": 112, "kind": "file", "static": true, "variation": null, @@ -2254,7 +3062,7 @@ "content": "import {Feature} from '../../feature';\nimport {\n addClass, removeClass, createCheckItem, createElm, elm, removeElm,\n getText\n} from '../../dom';\nimport {isFn, EMPTY_FN} from '../../types';\nimport {addEvt, targetEvt, removeEvt} from '../../event';\nimport {root} from '../../root';\n\n/**\n * Columns Visibility extension\n */\nexport default class ColsVisibility extends Feature {\n\n /**\n * Creates an instance of ColsVisibility\n * @param {TableFilter} tf TableFilter instance\n * @param {Object} Configuration object\n */\n constructor(tf, f) {\n super(tf, f.name);\n\n // Configuration object\n let cfg = this.config;\n\n /**\n * Module name\n * @type {String}\n */\n this.name = f.name;\n\n /**\n * Module description\n * @type {String}\n */\n this.desc = f.description || 'Columns visibility manager';\n\n /**\n * show/hide columns container element\n * @private\n */\n this.spanEl = null;\n\n /**\n * show/hide columns button element\n * @private\n */\n this.btnEl = null;\n\n /**\n * show/hide columns main container element\n * @private\n */\n this.contEl = null;\n\n /**\n * Enable tick to hide a column, defaults to true\n * @type {Boolean}\n */\n this.tickToHide = f.tick_to_hide === false ? false : true;\n\n /**\n * Enable columns manager UI, defaults to true\n * @type {Boolean}\n */\n this.manager = f.manager === false ? false : true;\n\n /**\n * Headers HTML table reference only if headers are external\n * @type {DOMElement}\n */\n this.headersTbl = f.headers_table || null;\n\n /**\n * Headers row index only if headers are external\n * @type {Number}\n */\n this.headersIndex = f.headers_index || 1;\n\n /**\n * ID of main container element\n * @type {String}\n */\n this.contElTgtId = f.container_target_id || null;\n\n /**\n * Alternative text for column headers in column manager UI\n * @type {Array}\n */\n this.headersText = f.headers_text || null;\n\n /**\n * ID of button's container element\n * @type {String}\n */\n this.btnTgtId = f.btn_target_id || null;\n\n /**\n * Button's text, defaults to Columns▼\n * @type {String}\n */\n this.btnText = f.btn_text || 'Columns▼';\n\n /**\n * Button's inner HTML\n * @type {String}\n */\n this.btnHtml = f.btn_html || null;\n\n /**\n * Css class for button\n * @type {String}\n */\n this.btnCssClass = f.btn_css_class || 'colVis';\n\n /**\n * Columns manager UI close link text, defaults to 'Close'\n * @type {String}\n */\n this.btnCloseText = f.btn_close_text || 'Close';\n\n /**\n * Columns manager UI close link HTML\n * @type {String}\n */\n this.btnCloseHtml = f.btn_close_html || null;\n\n /**\n * Css for columns manager UI close link\n * @type {String}\n */\n this.btnCloseCssClass = f.btn_close_css_class || this.btnCssClass;\n\n /**\n * Extension's stylesheet filename\n * @type {String}\n */\n this.stylesheet = f.stylesheet || 'colsVisibility.css';\n\n /**\n * Css for columns manager UI span\n * @type {String}\n */\n this.spanCssClass = f.span_css_class || 'colVisSpan';\n\n /**\n * Css for columns manager UI main container\n * @type {String}\n */\n this.contCssClass = f.cont_css_class || 'colVisCont';\n\n /**\n * Css for columns manager UI checklist (ul)\n * @type {String}\n */\n this.listCssClass = cfg.list_css_class || 'cols_checklist';\n\n /**\n * Css for columns manager UI checklist item (li)\n * @type {String}\n */\n this.listItemCssClass = cfg.checklist_item_css_class ||\n 'cols_checklist_item';\n\n /**\n * Css for columns manager UI checklist item selected state (li)\n * @type {String}\n */\n this.listSlcItemCssClass = cfg.checklist_selected_item_css_class ||\n 'cols_checklist_slc_item';\n\n /**\n * Text preceding the columns list, defaults to 'Hide' or 'Show'\n * depending on tick mode (tick_to_hide option)\n * @type {String}\n */\n this.text = f.text || (this.tickToHide ? 'Hide: ' : 'Show: ');\n\n /**\n * List of columns indexes to be hidden at initialization\n * @type {Array}\n */\n this.atStart = f.at_start || [];\n\n /**\n * Enable hover behaviour on columns manager button/link\n * @type {Boolean}\n */\n this.enableHover = Boolean(f.enable_hover);\n\n /**\n * Enable select all option, disabled by default\n * @type {Boolean}\n */\n this.enableTickAll = Boolean(f.enable_tick_all);\n\n /**\n * Text for select all option, defaults to 'Select all:'\n * @type {String}\n */\n this.tickAllText = f.tick_all_text || 'Select all:';\n\n /**\n * List of indexes of hidden columns\n * @private\n */\n this.hiddenCols = [];\n\n /**\n * Bound mouseup wrapper\n * @private\n */\n this.boundMouseup = null;\n\n /**\n * Callback fired when the extension is initialized\n * @type {Function}\n */\n this.onLoaded = isFn(f.on_loaded) ? f.on_loaded : EMPTY_FN;\n\n /**\n * Callback fired before the columns manager is opened\n * @type {Function}\n */\n this.onBeforeOpen = isFn(f.on_before_open) ?\n f.on_before_open : EMPTY_FN;\n\n /**\n * Callback fired after the columns manager is opened\n * @type {Function}\n */\n this.onAfterOpen = isFn(f.on_after_open) ? f.on_after_open : EMPTY_FN;\n\n /**\n * Callback fired before the columns manager is closed\n * @type {Function}\n */\n this.onBeforeClose = isFn(f.on_before_close) ?\n f.on_before_close : EMPTY_FN;\n\n /**\n * Callback fired after the columns manager is closed\n * @type {Function}\n */\n this.onAfterClose = isFn(f.on_after_close) ?\n f.on_after_close : EMPTY_FN;\n\n /**\n * Callback fired before a column is hidden\n * @type {Function}\n */\n this.onBeforeColHidden = isFn(f.on_before_col_hidden) ?\n f.on_before_col_hidden : EMPTY_FN;\n\n /**\n * Callback fired after a column is hidden\n * @type {Function}\n */\n this.onAfterColHidden = isFn(f.on_after_col_hidden) ?\n f.on_after_col_hidden : EMPTY_FN;\n\n /**\n * Callback fired before a column is displayed\n * @type {Function}\n */\n this.onBeforeColDisplayed = isFn(f.on_before_col_displayed) ?\n f.on_before_col_displayed : EMPTY_FN;\n\n /**\n * Callback fired after a column is displayed\n * @type {Function}\n */\n this.onAfterColDisplayed = isFn(f.on_after_col_displayed) ?\n f.on_after_col_displayed : EMPTY_FN;\n\n //Grid layout support\n if (tf.gridLayout) {\n this.headersTbl = tf.feature('gridLayout').headTbl; //headers table\n this.headersIndex = 0; //headers index\n this.onAfterColDisplayed = function () { };\n this.onAfterColHidden = function () { };\n }\n\n //Loads extension stylesheet\n tf.import(f.name + 'Style', tf.stylePath + this.stylesheet, null,\n 'link');\n\n this.enable();\n }\n\n /**\n * Mouse-up event handler handling popup auto-close behaviour\n * @private\n */\n onMouseup(evt) {\n let targetElm = targetEvt(evt);\n\n while (targetElm && targetElm !== this.contEl\n && targetElm !== this.btnEl) {\n targetElm = targetElm.parentNode;\n }\n\n if (targetElm !== this.contEl && targetElm !== this.btnEl) {\n this.toggle();\n }\n\n return;\n }\n\n /**\n * Toggle columns manager UI\n */\n toggle() {\n // ensure mouseup event handler is removed\n removeEvt(root, 'mouseup', this.boundMouseup);\n\n let contDisplay = this.contEl.style.display;\n\n if (contDisplay !== 'inline') {\n this.onBeforeOpen(this);\n }\n if (contDisplay === 'inline') {\n this.onBeforeClose(this);\n }\n\n this.contEl.style.display = contDisplay === 'inline' ?\n 'none' : 'inline';\n\n if (contDisplay !== 'inline') {\n this.onAfterOpen(this);\n addEvt(root, 'mouseup', this.boundMouseup);\n }\n if (contDisplay === 'inline') {\n this.onAfterClose(this);\n }\n }\n\n /**\n * Check an item in columns manager UI\n * @private\n */\n checkItem(lbl) {\n let li = lbl.parentNode;\n if (!li || !lbl) {\n return;\n }\n let isChecked = lbl.firstChild.checked;\n let colIndex = lbl.firstChild.getAttribute('id').split('_')[1];\n colIndex = parseInt(colIndex, 10);\n if (isChecked) {\n addClass(li, this.listSlcItemCssClass);\n } else {\n removeClass(li, this.listSlcItemCssClass);\n }\n\n let hide = false;\n if ((this.tickToHide && isChecked) ||\n (!this.tickToHide && !isChecked)) {\n hide = true;\n }\n this.setHidden(colIndex, hide);\n }\n\n /**\n * Initializes ColsVisibility instance\n */\n init() {\n if (this.initialized || !this.manager) {\n return;\n }\n\n this.emitter.on(['hide-column'],\n (tf, colIndex) => this.hideCol(colIndex));\n\n this.buildBtn();\n this.buildManager();\n\n /** @inherited */\n this.initialized = true;\n\n this.boundMouseup = this.onMouseup.bind(this);\n\n this.emitter.emit('columns-visibility-initialized', this.tf, this);\n\n // Hide columns at start at very end of initialization, do not move\n // as order is important\n this._hideAtStart();\n }\n\n /**\n * Build main button UI\n */\n buildBtn() {\n if (this.btnEl) {\n return;\n }\n let tf = this.tf;\n let span = createElm('span');\n span.className = this.spanCssClass;\n\n //Container element (rdiv or custom element)\n if (!this.btnTgtId) {\n tf.setToolbar();\n }\n let targetEl = !this.btnTgtId ? tf.rDiv : elm(this.btnTgtId);\n\n if (!this.btnTgtId) {\n let firstChild = targetEl.firstChild;\n firstChild.parentNode.insertBefore(span, firstChild);\n } else {\n targetEl.appendChild(span);\n }\n\n if (!this.btnHtml) {\n let btn = createElm('a', ['href', 'javascript:;']);\n btn.className = this.btnCssClass;\n btn.title = this.desc;\n\n btn.innerHTML = this.btnText;\n span.appendChild(btn);\n if (!this.enableHover) {\n addEvt(btn, 'click', (evt) => this.toggle(evt));\n } else {\n addEvt(btn, 'mouseover', (evt) => this.toggle(evt));\n }\n } else { //Custom html\n span.innerHTML = this.btnHtml;\n let colVisEl = span.firstChild;\n if (!this.enableHover) {\n addEvt(colVisEl, 'click', (evt) => this.toggle(evt));\n } else {\n addEvt(colVisEl, 'mouseover', (evt) => this.toggle(evt));\n }\n }\n\n this.spanEl = span;\n this.btnEl = this.spanEl.firstChild;\n\n this.onLoaded(this);\n }\n\n /**\n * Build columns manager UI\n */\n buildManager() {\n let tf = this.tf;\n\n let container = !this.contElTgtId ?\n createElm('div') :\n elm(this.contElTgtId);\n container.className = this.contCssClass;\n\n //Extension description\n let extNameLabel = createElm('p');\n extNameLabel.innerHTML = this.text;\n container.appendChild(extNameLabel);\n\n //Headers list\n let ul = createElm('ul');\n ul.className = this.listCssClass;\n\n let tbl = this.headersTbl ? this.headersTbl : tf.tbl;\n let headerIndex = this.headersTbl ?\n this.headersIndex : tf.getHeadersRowIndex();\n let headerRow = tbl.rows[headerIndex];\n\n //Tick all option\n if (this.enableTickAll) {\n let li = createCheckItem('col__' + tf.id, this.tickAllText,\n this.tickAllText);\n addClass(li, this.listItemCssClass);\n ul.appendChild(li);\n li.check.checked = !this.tickToHide;\n\n addEvt(li.check, 'click', () => {\n for (let h = 0; h < headerRow.cells.length; h++) {\n let itm = elm('col_' + h + '_' + tf.id);\n if (itm && li.check.checked !== itm.checked) {\n itm.click();\n itm.checked = li.check.checked;\n }\n }\n });\n }\n\n for (let i = 0; i < headerRow.cells.length; i++) {\n let cell = headerRow.cells[i];\n let cellText = this.headersText && this.headersText[i] ?\n this.headersText[i] : this._getHeaderText(cell);\n let liElm = createCheckItem('col_' + i + '_' + tf.id, cellText,\n cellText);\n addClass(liElm, this.listItemCssClass);\n if (!this.tickToHide) {\n addClass(liElm, this.listSlcItemCssClass);\n }\n ul.appendChild(liElm);\n if (!this.tickToHide) {\n liElm.check.checked = true;\n }\n\n addEvt(liElm.check, 'click', (evt) => {\n let elm = targetEvt(evt);\n let lbl = elm.parentNode;\n this.checkItem(lbl);\n });\n }\n\n //separator\n let p = createElm('p', ['align', 'center']);\n let btn;\n //Close link\n if (!this.btnCloseHtml) {\n btn = createElm('a', ['href', 'javascript:;']);\n btn.className = this.btnCloseCssClass;\n btn.innerHTML = this.btnCloseText;\n addEvt(btn, 'click', (evt) => this.toggle(evt));\n p.appendChild(btn);\n } else {\n p.innerHTML = this.btnCloseHtml;\n btn = p.firstChild;\n addEvt(btn, 'click', (evt) => this.toggle(evt));\n }\n\n container.appendChild(ul);\n container.appendChild(p);\n\n this.btnEl.parentNode.insertBefore(container, this.btnEl);\n this.contEl = container;\n }\n\n /**\n * Hide or show specified columns\n * @param {Number} colIndex Column index\n * @param {Boolean} hide Hide column if true or show if false\n */\n setHidden(colIndex, hide) {\n let tf = this.tf;\n let tbl = tf.tbl;\n\n if (hide) {\n this.onBeforeColHidden(this, colIndex);\n }\n if (!hide) {\n this.onBeforeColDisplayed(this, colIndex);\n }\n\n this._hideCells(tbl, colIndex, hide);\n if (this.headersTbl) {\n this._hideCells(this.headersTbl, colIndex, hide);\n }\n\n let hiddenCols = this.hiddenCols;\n let itemIndex = hiddenCols.indexOf(colIndex);\n if (hide) {\n if (itemIndex === -1) {\n this.hiddenCols.push(colIndex);\n }\n } else {\n if (itemIndex !== -1) {\n this.hiddenCols.splice(itemIndex, 1);\n }\n }\n\n let gridLayout;\n let headTbl;\n let gridColElms;\n if (hide) {\n //This event is fired just after a column is displayed for\n //grid_layout support\n //TODO: grid layout module should be responsible for those\n //calculations\n if (tf.gridLayout) {\n gridLayout = tf.feature('gridLayout');\n headTbl = gridLayout.headTbl;\n gridColElms = gridLayout.colElms;\n let hiddenWidth = parseInt(\n gridColElms[colIndex].style.width, 10);\n\n let headTblW = parseInt(headTbl.style.width, 10);\n headTbl.style.width = headTblW - hiddenWidth + 'px';\n tbl.style.width = headTbl.style.width;\n }\n\n this.onAfterColHidden(this, colIndex);\n this.emitter.emit('column-hidden', tf, this, colIndex,\n this.hiddenCols);\n }\n\n if (!hide) {\n //This event is fired just after a column is displayed for\n //grid_layout support\n //TODO: grid layout module should be responsible for those\n //calculations\n if (tf.gridLayout) {\n gridLayout = tf.feature('gridLayout');\n headTbl = gridLayout.headTbl;\n gridColElms = gridLayout.colElms;\n let width = parseInt(gridColElms[colIndex].style.width, 10);\n headTbl.style.width =\n (parseInt(headTbl.style.width, 10) + width) + 'px';\n tf.tbl.style.width = headTbl.style.width;\n }\n\n this.onAfterColDisplayed(this, colIndex);\n this.emitter.emit('column-shown', tf, this, colIndex,\n this.hiddenCols);\n }\n }\n\n /**\n * Show specified column\n * @param {Number} colIndex Column index\n */\n showCol(colIndex) {\n if (colIndex === undefined || !this.isColHidden(colIndex)) {\n return;\n }\n if (this.manager && this.contEl) {\n let itm = elm('col_' + colIndex + '_' + this.tf.id);\n if (itm) {\n itm.click();\n }\n } else {\n this.setHidden(colIndex, false);\n }\n }\n\n /**\n * Hide specified column\n * @param {Number} colIndex Column index\n */\n hideCol(colIndex) {\n if (colIndex === undefined || this.isColHidden(colIndex)) {\n return;\n }\n if (this.manager && this.contEl) {\n let itm = elm('col_' + colIndex + '_' + this.tf.id);\n if (itm) {\n itm.click();\n }\n } else {\n this.setHidden(colIndex, true);\n }\n }\n\n /**\n * Determine if specified column is hidden\n * @param {Number} colIndex Column index\n */\n isColHidden(colIndex) {\n if (this.hiddenCols.indexOf(colIndex) !== -1) {\n return true;\n }\n return false;\n }\n\n /**\n * Toggle visibility of specified column\n * @param {Number} colIndex Column index\n */\n toggleCol(colIndex) {\n if (colIndex === undefined || this.isColHidden(colIndex)) {\n this.showCol(colIndex);\n } else {\n this.hideCol(colIndex);\n }\n }\n\n /**\n * Return the indexes of the columns currently hidden\n * @return {Array} column indexes\n */\n getHiddenCols() {\n return this.hiddenCols;\n }\n\n /**\n * Remove the columns manager\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n if (elm(this.contElTgtId)) {\n elm(this.contElTgtId).innerHTML = '';\n } else {\n this.contEl.innerHTML = '';\n removeElm(this.contEl);\n this.contEl = null;\n }\n this.btnEl.innerHTML = '';\n removeElm(this.btnEl);\n this.btnEl = null;\n\n this.emitter.off(['hide-column'],\n (tf, colIndex) => this.hideCol(colIndex));\n\n this.boundMouseup = null;\n\n this.initialized = false;\n }\n\n _getHeaderText(cell) {\n if (!cell.hasChildNodes) {\n return '';\n }\n\n for (let i = 0; i < cell.childNodes.length; i++) {\n let n = cell.childNodes[i];\n if (n.nodeType === 3) {\n return n.nodeValue;\n } else if (n.nodeType === 1) {\n if (n.id && n.id.indexOf('popUp') !== -1) {\n continue;\n } else {\n return getText(n);\n }\n }\n continue;\n }\n return '';\n }\n\n _hideCells(tbl, colIndex, hide) {\n for (let i = 0; i < tbl.rows.length; i++) {\n let row = tbl.rows[i];\n let cell = row.cells[colIndex];\n if (cell) {\n cell.style.display = hide ? 'none' : '';\n }\n }\n }\n\n _hideAtStart() {\n this.atStart.forEach((colIdx) => {\n this.hideCol(colIdx);\n });\n }\n}\n" }, { - "__docId__": 88, + "__docId__": 113, "kind": "class", "static": true, "variation": null, @@ -2273,7 +3081,7 @@ ] }, { - "__docId__": 89, + "__docId__": 114, "kind": "constructor", "static": false, "variation": null, @@ -2308,7 +3116,7 @@ "generator": false }, { - "__docId__": 90, + "__docId__": 115, "kind": "member", "static": false, "variation": null, @@ -2328,7 +3136,7 @@ } }, { - "__docId__": 91, + "__docId__": 116, "kind": "member", "static": false, "variation": null, @@ -2348,7 +3156,7 @@ } }, { - "__docId__": 92, + "__docId__": 117, "kind": "member", "static": false, "variation": null, @@ -2365,7 +3173,7 @@ } }, { - "__docId__": 93, + "__docId__": 118, "kind": "member", "static": false, "variation": null, @@ -2382,7 +3190,7 @@ } }, { - "__docId__": 94, + "__docId__": 119, "kind": "member", "static": false, "variation": null, @@ -2399,7 +3207,7 @@ } }, { - "__docId__": 95, + "__docId__": 120, "kind": "member", "static": false, "variation": null, @@ -2419,7 +3227,7 @@ } }, { - "__docId__": 96, + "__docId__": 121, "kind": "member", "static": false, "variation": null, @@ -2439,7 +3247,7 @@ } }, { - "__docId__": 97, + "__docId__": 122, "kind": "member", "static": false, "variation": null, @@ -2459,7 +3267,7 @@ } }, { - "__docId__": 98, + "__docId__": 123, "kind": "member", "static": false, "variation": null, @@ -2479,7 +3287,7 @@ } }, { - "__docId__": 99, + "__docId__": 124, "kind": "member", "static": false, "variation": null, @@ -2499,7 +3307,7 @@ } }, { - "__docId__": 100, + "__docId__": 125, "kind": "member", "static": false, "variation": null, @@ -2519,7 +3327,7 @@ } }, { - "__docId__": 101, + "__docId__": 126, "kind": "member", "static": false, "variation": null, @@ -2539,7 +3347,7 @@ } }, { - "__docId__": 102, + "__docId__": 127, "kind": "member", "static": false, "variation": null, @@ -2559,7 +3367,7 @@ } }, { - "__docId__": 103, + "__docId__": 128, "kind": "member", "static": false, "variation": null, @@ -2579,7 +3387,7 @@ } }, { - "__docId__": 104, + "__docId__": 129, "kind": "member", "static": false, "variation": null, @@ -2599,7 +3407,7 @@ } }, { - "__docId__": 105, + "__docId__": 130, "kind": "member", "static": false, "variation": null, @@ -2619,7 +3427,7 @@ } }, { - "__docId__": 106, + "__docId__": 131, "kind": "member", "static": false, "variation": null, @@ -2639,7 +3447,7 @@ } }, { - "__docId__": 107, + "__docId__": 132, "kind": "member", "static": false, "variation": null, @@ -2659,7 +3467,7 @@ } }, { - "__docId__": 108, + "__docId__": 133, "kind": "member", "static": false, "variation": null, @@ -2679,7 +3487,7 @@ } }, { - "__docId__": 109, + "__docId__": 134, "kind": "member", "static": false, "variation": null, @@ -2699,7 +3507,7 @@ } }, { - "__docId__": 110, + "__docId__": 135, "kind": "member", "static": false, "variation": null, @@ -2719,7 +3527,7 @@ } }, { - "__docId__": 111, + "__docId__": 136, "kind": "member", "static": false, "variation": null, @@ -2739,7 +3547,7 @@ } }, { - "__docId__": 112, + "__docId__": 137, "kind": "member", "static": false, "variation": null, @@ -2759,7 +3567,7 @@ } }, { - "__docId__": 113, + "__docId__": 138, "kind": "member", "static": false, "variation": null, @@ -2779,7 +3587,7 @@ } }, { - "__docId__": 114, + "__docId__": 139, "kind": "member", "static": false, "variation": null, @@ -2799,7 +3607,7 @@ } }, { - "__docId__": 115, + "__docId__": 140, "kind": "member", "static": false, "variation": null, @@ -2819,7 +3627,7 @@ } }, { - "__docId__": 116, + "__docId__": 141, "kind": "member", "static": false, "variation": null, @@ -2839,7 +3647,7 @@ } }, { - "__docId__": 117, + "__docId__": 142, "kind": "member", "static": false, "variation": null, @@ -2859,7 +3667,7 @@ } }, { - "__docId__": 118, + "__docId__": 143, "kind": "member", "static": false, "variation": null, @@ -2879,7 +3687,7 @@ } }, { - "__docId__": 119, + "__docId__": 144, "kind": "member", "static": false, "variation": null, @@ -2896,7 +3704,7 @@ } }, { - "__docId__": 120, + "__docId__": 145, "kind": "member", "static": false, "variation": null, @@ -2913,7 +3721,7 @@ } }, { - "__docId__": 121, + "__docId__": 146, "kind": "member", "static": false, "variation": null, @@ -2933,7 +3741,7 @@ } }, { - "__docId__": 122, + "__docId__": 147, "kind": "member", "static": false, "variation": null, @@ -2953,7 +3761,7 @@ } }, { - "__docId__": 123, + "__docId__": 148, "kind": "member", "static": false, "variation": null, @@ -2973,7 +3781,7 @@ } }, { - "__docId__": 124, + "__docId__": 149, "kind": "member", "static": false, "variation": null, @@ -2993,7 +3801,7 @@ } }, { - "__docId__": 125, + "__docId__": 150, "kind": "member", "static": false, "variation": null, @@ -3013,7 +3821,7 @@ } }, { - "__docId__": 126, + "__docId__": 151, "kind": "member", "static": false, "variation": null, @@ -3033,7 +3841,7 @@ } }, { - "__docId__": 127, + "__docId__": 152, "kind": "member", "static": false, "variation": null, @@ -3053,7 +3861,7 @@ } }, { - "__docId__": 128, + "__docId__": 153, "kind": "member", "static": false, "variation": null, @@ -3073,7 +3881,7 @@ } }, { - "__docId__": 129, + "__docId__": 154, "kind": "member", "static": false, "variation": null, @@ -3093,7 +3901,7 @@ } }, { - "__docId__": 130, + "__docId__": 155, "kind": "member", "static": false, "variation": null, @@ -3111,7 +3919,7 @@ } }, { - "__docId__": 131, + "__docId__": 156, "kind": "member", "static": false, "variation": null, @@ -3129,7 +3937,7 @@ } }, { - "__docId__": 132, + "__docId__": 157, "kind": "method", "static": false, "variation": null, @@ -3150,7 +3958,7 @@ "generator": false }, { - "__docId__": 133, + "__docId__": 158, "kind": "method", "static": false, "variation": null, @@ -3164,7 +3972,7 @@ "generator": false }, { - "__docId__": 134, + "__docId__": 159, "kind": "method", "static": false, "variation": null, @@ -3185,7 +3993,7 @@ "generator": false }, { - "__docId__": 135, + "__docId__": 160, "kind": "method", "static": false, "variation": null, @@ -3199,7 +4007,7 @@ "generator": false }, { - "__docId__": 136, + "__docId__": 161, "kind": "member", "static": false, "variation": null, @@ -3222,7 +4030,7 @@ } }, { - "__docId__": 137, + "__docId__": 162, "kind": "member", "static": false, "variation": null, @@ -3240,7 +4048,7 @@ } }, { - "__docId__": 138, + "__docId__": 163, "kind": "method", "static": false, "variation": null, @@ -3254,7 +4062,7 @@ "generator": false }, { - "__docId__": 139, + "__docId__": 164, "kind": "member", "static": false, "variation": null, @@ -3272,7 +4080,7 @@ } }, { - "__docId__": 140, + "__docId__": 165, "kind": "member", "static": false, "variation": null, @@ -3290,7 +4098,7 @@ } }, { - "__docId__": 141, + "__docId__": 166, "kind": "method", "static": false, "variation": null, @@ -3304,7 +4112,7 @@ "generator": false }, { - "__docId__": 142, + "__docId__": 167, "kind": "member", "static": false, "variation": null, @@ -3322,7 +4130,7 @@ } }, { - "__docId__": 143, + "__docId__": 168, "kind": "method", "static": false, "variation": null, @@ -3357,7 +4165,7 @@ "generator": false }, { - "__docId__": 144, + "__docId__": 169, "kind": "method", "static": false, "variation": null, @@ -3382,7 +4190,7 @@ "generator": false }, { - "__docId__": 145, + "__docId__": 170, "kind": "method", "static": false, "variation": null, @@ -3407,7 +4215,7 @@ "generator": false }, { - "__docId__": 146, + "__docId__": 171, "kind": "method", "static": false, "variation": null, @@ -3437,7 +4245,7 @@ "generator": false }, { - "__docId__": 147, + "__docId__": 172, "kind": "method", "static": false, "variation": null, @@ -3462,7 +4270,7 @@ "generator": false }, { - "__docId__": 148, + "__docId__": 173, "kind": "method", "static": false, "variation": null, @@ -3484,7 +4292,7 @@ "generator": false }, { - "__docId__": 149, + "__docId__": 174, "kind": "method", "static": false, "variation": null, @@ -3498,7 +4306,7 @@ "generator": false }, { - "__docId__": 150, + "__docId__": 175, "kind": "member", "static": false, "variation": null, @@ -3516,7 +4324,7 @@ } }, { - "__docId__": 151, + "__docId__": 176, "kind": "member", "static": false, "variation": null, @@ -3534,7 +4342,7 @@ } }, { - "__docId__": 152, + "__docId__": 177, "kind": "member", "static": false, "variation": null, @@ -3552,7 +4360,7 @@ } }, { - "__docId__": 153, + "__docId__": 178, "kind": "member", "static": false, "variation": null, @@ -3570,7 +4378,7 @@ } }, { - "__docId__": 154, + "__docId__": 179, "kind": "method", "static": false, "variation": null, @@ -3597,7 +4405,7 @@ "generator": false }, { - "__docId__": 155, + "__docId__": 180, "kind": "method", "static": false, "variation": null, @@ -3631,7 +4439,7 @@ "generator": false }, { - "__docId__": 156, + "__docId__": 181, "kind": "method", "static": false, "variation": null, @@ -3646,7 +4454,7 @@ "generator": false }, { - "__docId__": 157, + "__docId__": 182, "kind": "file", "static": true, "variation": null, @@ -3659,7 +4467,7 @@ "content": "import {Feature} from '../../feature';\nimport {createElm, removeElm, elm} from '../../dom';\nimport {isFn, isUndef, EMPTY_FN} from '../../types';\nimport {addEvt} from '../../event';\n\n/**\n * Filters Visibility extension\n */\nexport default class FiltersVisibility extends Feature {\n\n /**\n * Creates an instance of FiltersVisibility\n * @param {TableFilter} tf TableFilter instance\n * @param {Object} Configuration object\n */\n constructor(tf, f) {\n super(tf, f.name);\n\n /**\n * Module name\n * @type {String}\n */\n this.name = f.name;\n\n /**\n * Module description\n * @type {String}\n */\n this.desc = f.description || 'Filters row visibility manager';\n\n /**\n * Extension's stylesheet filename\n * @type {String}\n */\n this.stylesheet = f.stylesheet || 'filtersVisibility.css';\n\n /**\n * Expand icon filename\n * @type {String}\n */\n this.icnExpand = f.expand_icon_name || 'icn_exp.png';\n\n /**\n * Collapse icon filename\n * @type {String}\n */\n this.icnCollapse = f.collapse_icon_name || 'icn_clp.png';\n\n /**\n * Main container element\n * @private\n */\n this.contEl = null;\n\n /**\n * Button element\n * @private\n */\n this.btnEl = null;\n\n /**\n * Expand icon HTML\n * @private\n */\n this.icnExpandHtml = '\"Expand';\n\n /**\n * Collapse icon HTML\n * @private\n */\n this.icnCollapseHtml = '\"Collapse';\n\n /**\n * Default text\n * @private\n */\n this.defaultText = 'Toggle filters';\n\n /**\n * ID of main container element\n * @type {String}\n */\n this.targetId = f.target_id || null;\n\n /**\n * Enable expand/collapse icon, defaults to true\n * @type {Boolean}\n */\n this.enableIcon = f.enable_icon === false ? false : true;\n\n /**\n * Custom text for button\n * @type {String}\n */\n this.btnText = f.btn_text || '';\n\n /**\n * Collapse button HTML\n * @private\n */\n this.collapseBtnHtml = this.enableIcon ?\n this.icnCollapseHtml + this.btnText :\n this.btnText || this.defaultText;\n\n /**\n * Expand button HTML\n * @private\n */\n this.expandBtnHtml = this.enableIcon ?\n this.icnExpandHtml + this.btnText :\n this.btnText || this.defaultText;\n\n /**\n * Button's custom HTML\n * @type {String}\n */\n this.btnHtml = f.btn_html || null;\n\n /**\n * Css class for expand/collapse filters button\n * @type {String}\n */\n this.btnCssClass = f.btn_css_class || 'btnExpClpFlt';\n\n /**\n * Css class for main container\n * @type {String}\n */\n this.contCssClass = f.cont_css_class || 'expClpFlt';\n\n /**\n * Filters row index\n * @type {Number}\n */\n this.filtersRowIndex = !isUndef(f.filters_row_index) ?\n f.filters_row_index : tf.getFiltersRowIndex();\n\n /**\n * Make filters visible at initialization, defaults to true\n * @type {Boolean}\n */\n this.visibleAtStart = !isUndef(f.visible_at_start) ?\n Boolean(f.visible_at_start) : true;\n\n /**\n * Callback fired before filters row is shown\n * @type {Function}\n */\n this.onBeforeShow = isFn(f.on_before_show) ?\n f.on_before_show : EMPTY_FN;\n\n /**\n * Callback fired after filters row is shown\n * @type {Function}\n */\n this.onAfterShow = isFn(f.on_after_show) ? f.on_after_show : EMPTY_FN;\n\n /**\n * Callback fired before filters row is hidden\n * @type {Function}\n */\n this.onBeforeHide = isFn(f.on_before_hide) ?\n f.on_before_hide : EMPTY_FN;\n\n /**\n * Callback fired after filters row is hidden\n * @type {Function}\n */\n this.onAfterHide = isFn(f.on_after_hide) ? f.on_after_hide : EMPTY_FN;\n\n //Import extension's stylesheet\n tf.import(f.name + 'Style', tf.stylePath + this.stylesheet, null,\n 'link');\n\n this.enable();\n }\n\n /**\n * Initialise extension\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n this.buildUI();\n\n /**\n * @inherited\n */\n this.initialized = true;\n\n this.emitter.on(['show-filters'], (tf, visible) => this.show(visible));\n this.emitter.emit('filters-visibility-initialized', this.tf, this);\n }\n\n /**\n * Build UI elements\n */\n buildUI() {\n let tf = this.tf;\n let span = createElm('span');\n span.className = this.contCssClass;\n\n //Container element (rdiv or custom element)\n if (!this.targetId) {\n tf.setToolbar();\n }\n let targetEl = !this.targetId ? tf.rDiv : elm(this.targetId);\n\n if (!this.targetId) {\n let firstChild = targetEl.firstChild;\n firstChild.parentNode.insertBefore(span, firstChild);\n } else {\n targetEl.appendChild(span);\n }\n\n let btn;\n if (!this.btnHtml) {\n btn = createElm('a', ['href', 'javascript:void(0);']);\n btn.className = this.btnCssClass;\n btn.title = this.btnText || this.defaultText;\n btn.innerHTML = this.collapseBtnHtml;\n span.appendChild(btn);\n } else { //Custom html\n span.innerHTML = this.btnHtml;\n btn = span.firstChild;\n }\n\n addEvt(btn, 'click', () => this.toggle());\n\n this.contEl = span;\n this.btnEl = btn;\n\n if (!this.visibleAtStart) {\n this.toggle();\n }\n }\n\n /**\n * Toggle filters visibility\n */\n toggle() {\n let tf = this.tf;\n let tbl = tf.gridLayout ? tf.feature('gridLayout').headTbl : tf.tbl;\n let fltRow = tbl.rows[this.filtersRowIndex];\n let isDisplayed = fltRow.style.display === '';\n\n this.show(!isDisplayed);\n }\n\n /**\n * Show or hide filters\n *\n * @param {boolean} [visible=true] Visibility flag\n */\n show(visible = true) {\n let tf = this.tf;\n let tbl = tf.gridLayout ? tf.feature('gridLayout').headTbl : tf.tbl;\n let fltRow = tbl.rows[this.filtersRowIndex];\n\n if (visible) {\n this.onBeforeShow(this);\n }\n if (!visible) {\n this.onBeforeHide(this);\n }\n\n fltRow.style.display = visible ? '' : 'none';\n if (this.enableIcon && !this.btnHtml) {\n this.btnEl.innerHTML = visible ?\n this.collapseBtnHtml : this.expandBtnHtml;\n }\n\n if (visible) {\n this.onAfterShow(this);\n }\n if (!visible) {\n this.onAfterHide(this);\n }\n\n this.emitter.emit('filters-toggled', tf, this, visible);\n }\n\n /**\n * Destroy the UI\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n\n this.emitter.off(['show-filters'], (tf, visible) => this.show(visible));\n\n this.btnEl.innerHTML = '';\n removeElm(this.btnEl);\n this.btnEl = null;\n\n this.contEl.innerHTML = '';\n removeElm(this.contEl);\n this.contEl = null;\n this.initialized = false;\n }\n\n}\n" }, { - "__docId__": 158, + "__docId__": 183, "kind": "class", "static": true, "variation": null, @@ -3678,7 +4486,7 @@ ] }, { - "__docId__": 159, + "__docId__": 184, "kind": "constructor", "static": false, "variation": null, @@ -3713,7 +4521,7 @@ "generator": false }, { - "__docId__": 160, + "__docId__": 185, "kind": "member", "static": false, "variation": null, @@ -3733,7 +4541,7 @@ } }, { - "__docId__": 161, + "__docId__": 186, "kind": "member", "static": false, "variation": null, @@ -3753,7 +4561,7 @@ } }, { - "__docId__": 162, + "__docId__": 187, "kind": "member", "static": false, "variation": null, @@ -3773,7 +4581,7 @@ } }, { - "__docId__": 163, + "__docId__": 188, "kind": "member", "static": false, "variation": null, @@ -3793,7 +4601,7 @@ } }, { - "__docId__": 164, + "__docId__": 189, "kind": "member", "static": false, "variation": null, @@ -3813,7 +4621,7 @@ } }, { - "__docId__": 165, + "__docId__": 190, "kind": "member", "static": false, "variation": null, @@ -3830,7 +4638,7 @@ } }, { - "__docId__": 166, + "__docId__": 191, "kind": "member", "static": false, "variation": null, @@ -3847,7 +4655,7 @@ } }, { - "__docId__": 167, + "__docId__": 192, "kind": "member", "static": false, "variation": null, @@ -3864,7 +4672,7 @@ } }, { - "__docId__": 168, + "__docId__": 193, "kind": "member", "static": false, "variation": null, @@ -3881,7 +4689,7 @@ } }, { - "__docId__": 169, + "__docId__": 194, "kind": "member", "static": false, "variation": null, @@ -3898,7 +4706,7 @@ } }, { - "__docId__": 170, + "__docId__": 195, "kind": "member", "static": false, "variation": null, @@ -3918,7 +4726,7 @@ } }, { - "__docId__": 171, + "__docId__": 196, "kind": "member", "static": false, "variation": null, @@ -3938,7 +4746,7 @@ } }, { - "__docId__": 172, + "__docId__": 197, "kind": "member", "static": false, "variation": null, @@ -3958,7 +4766,7 @@ } }, { - "__docId__": 173, + "__docId__": 198, "kind": "member", "static": false, "variation": null, @@ -3975,7 +4783,7 @@ } }, { - "__docId__": 174, + "__docId__": 199, "kind": "member", "static": false, "variation": null, @@ -3992,7 +4800,7 @@ } }, { - "__docId__": 175, + "__docId__": 200, "kind": "member", "static": false, "variation": null, @@ -4012,7 +4820,7 @@ } }, { - "__docId__": 176, + "__docId__": 201, "kind": "member", "static": false, "variation": null, @@ -4032,7 +4840,7 @@ } }, { - "__docId__": 177, + "__docId__": 202, "kind": "member", "static": false, "variation": null, @@ -4052,7 +4860,7 @@ } }, { - "__docId__": 178, + "__docId__": 203, "kind": "member", "static": false, "variation": null, @@ -4072,7 +4880,7 @@ } }, { - "__docId__": 179, + "__docId__": 204, "kind": "member", "static": false, "variation": null, @@ -4092,7 +4900,7 @@ } }, { - "__docId__": 180, + "__docId__": 205, "kind": "member", "static": false, "variation": null, @@ -4112,7 +4920,7 @@ } }, { - "__docId__": 181, + "__docId__": 206, "kind": "member", "static": false, "variation": null, @@ -4132,7 +4940,7 @@ } }, { - "__docId__": 182, + "__docId__": 207, "kind": "member", "static": false, "variation": null, @@ -4152,7 +4960,7 @@ } }, { - "__docId__": 183, + "__docId__": 208, "kind": "member", "static": false, "variation": null, @@ -4172,7 +4980,7 @@ } }, { - "__docId__": 184, + "__docId__": 209, "kind": "method", "static": false, "variation": null, @@ -4186,7 +4994,7 @@ "generator": false }, { - "__docId__": 185, + "__docId__": 210, "kind": "member", "static": false, "variation": null, @@ -4209,7 +5017,7 @@ } }, { - "__docId__": 186, + "__docId__": 211, "kind": "method", "static": false, "variation": null, @@ -4223,7 +5031,7 @@ "generator": false }, { - "__docId__": 187, + "__docId__": 212, "kind": "member", "static": false, "variation": null, @@ -4241,7 +5049,7 @@ } }, { - "__docId__": 188, + "__docId__": 213, "kind": "member", "static": false, "variation": null, @@ -4259,7 +5067,7 @@ } }, { - "__docId__": 189, + "__docId__": 214, "kind": "method", "static": false, "variation": null, @@ -4273,7 +5081,7 @@ "generator": false }, { - "__docId__": 190, + "__docId__": 215, "kind": "method", "static": false, "variation": null, @@ -4300,7 +5108,7 @@ "generator": false }, { - "__docId__": 191, + "__docId__": 216, "kind": "method", "static": false, "variation": null, @@ -4314,7 +5122,7 @@ "generator": false }, { - "__docId__": 192, + "__docId__": 217, "kind": "member", "static": false, "variation": null, @@ -4332,7 +5140,7 @@ } }, { - "__docId__": 193, + "__docId__": 218, "kind": "member", "static": false, "variation": null, @@ -4350,7 +5158,7 @@ } }, { - "__docId__": 194, + "__docId__": 219, "kind": "member", "static": false, "variation": null, @@ -4368,7 +5176,7 @@ } }, { - "__docId__": 195, + "__docId__": 220, "kind": "file", "static": true, "variation": null, @@ -4381,7 +5189,7 @@ "content": "import {Feature} from '../../feature';\nimport {isArray, isFn, isUndef, isObj, EMPTY_FN} from '../../types';\nimport {createElm, elm, getText, tag} from '../../dom';\nimport {addEvt} from '../../event';\nimport {parse as parseNb} from '../../number';\nimport {\n NONE, CELL_TAG, HEADER_TAG, STRING, NUMBER, DATE, FORMATTED_NUMBER,\n IP_ADDRESS\n} from '../../const';\n\n/**\n * SortableTable Adapter module\n */\nexport default class AdapterSortableTable extends Feature {\n\n /**\n * Creates an instance of AdapterSortableTable\n * @param {TableFilter} tf TableFilter instance\n * @param {Object} opts Configuration object\n */\n constructor(tf, opts) {\n super(tf, opts.name);\n\n /**\n * Module name\n * @type {String}\n */\n this.name = opts.name;\n\n /**\n * Module description\n * @type {String}\n */\n this.desc = opts.description || 'Sortable table';\n\n /**\n * Indicate whether table previously sorted\n * @type {Boolean}\n * @private\n */\n this.sorted = false;\n\n /**\n * List of sort type per column basis\n * @type {Array}\n */\n this.sortTypes = isArray(opts.types) ? opts.types : tf.colTypes;\n\n /**\n * Column to be sorted at initialization, ie:\n * sort_col_at_start: [1, true]\n * @type {Array}\n */\n this.sortColAtStart = isArray(opts.sort_col_at_start) ?\n opts.sort_col_at_start : null;\n\n /**\n * Enable asynchronous sort, if triggers are external\n * @type {Boolean}\n */\n this.asyncSort = Boolean(opts.async_sort);\n\n /**\n * List of element IDs triggering sort on a per column basis\n * @type {Array}\n */\n this.triggerIds = isArray(opts.trigger_ids) ? opts.trigger_ids : [];\n\n // edit .sort-arrow.descending / .sort-arrow.ascending in\n // tablefilter.css to reflect any path change\n /**\n * Path to images\n * @type {String}\n */\n this.imgPath = opts.images_path || tf.themesPath;\n\n /**\n * Blank image file name\n * @type {String}\n */\n this.imgBlank = opts.image_blank || 'blank.png';\n\n /**\n * Css class for sort indicator image\n * @type {String}\n */\n this.imgClassName = opts.image_class_name || 'sort-arrow';\n\n /**\n * Css class for ascending sort indicator image\n * @type {String}\n */\n this.imgAscClassName = opts.image_asc_class_name || 'ascending';\n\n /**\n * Css class for descending sort indicator image\n * @type {String}\n */\n this.imgDescClassName = opts.image_desc_class_name || 'descending';\n\n /**\n * Cell attribute key storing custom value used for sorting\n * @type {String}\n */\n this.customKey = opts.custom_key || 'data-tf-sortKey';\n\n /**\n * Callback fired when sort extension is instanciated\n * @type {Function}\n */\n this.onSortLoaded = isFn(opts.on_sort_loaded) ?\n opts.on_sort_loaded : EMPTY_FN;\n\n /**\n * Callback fired before a table column is sorted\n * @type {Function}\n */\n this.onBeforeSort = isFn(opts.on_before_sort) ?\n opts.on_before_sort : EMPTY_FN;\n\n /**\n * Callback fired after a table column is sorted\n * @type {Function}\n */\n this.onAfterSort = isFn(opts.on_after_sort) ?\n opts.on_after_sort : EMPTY_FN;\n\n /**\n * SortableTable instance\n * @private\n */\n this.stt = null;\n\n this.enable();\n }\n\n /**\n * Initializes AdapterSortableTable instance\n */\n init() {\n if (this.initialized) {\n return;\n }\n let tf = this.tf;\n let adpt = this;\n\n // SortableTable class sanity check (sortabletable.js)\n if (isUndef(SortableTable)) {\n throw new Error('SortableTable class not found.');\n }\n\n // Add any date format if needed\n this.emitter.emit('add-date-type-formats', this.tf, this.sortTypes);\n\n this.overrideSortableTable();\n this.setSortTypes();\n\n this.onSortLoaded(tf, this);\n\n /*** SortableTable callbacks ***/\n this.stt.onbeforesort = function () {\n adpt.onBeforeSort(tf, adpt.stt.sortColumn);\n\n /*** sort behaviour for paging ***/\n if (tf.paging) {\n tf.feature('paging').disable();\n }\n };\n\n this.stt.onsort = function () {\n adpt.sorted = true;\n\n //sort behaviour for paging\n if (tf.paging) {\n let paginator = tf.feature('paging');\n // recalculate valid rows index as sorting may have change it\n tf.getValidRows(true);\n paginator.enable();\n paginator.setPage(paginator.getPage());\n }\n\n adpt.onAfterSort(tf, adpt.stt.sortColumn, adpt.stt.descending);\n adpt.emitter.emit('column-sorted', tf, adpt.stt.sortColumn,\n adpt.stt.descending);\n };\n\n // Column sort at start\n let sortColAtStart = adpt.sortColAtStart;\n if (sortColAtStart) {\n this.stt.sort(sortColAtStart[0], sortColAtStart[1]);\n }\n\n this.emitter.on(['sort'],\n (tf, colIdx, desc) => this.sortByColumnIndex(colIdx, desc));\n\n /** @inherited */\n this.initialized = true;\n\n this.emitter.emit('sort-initialized', tf, this);\n }\n\n /**\n * Sort specified column\n * @param {Number} colIdx Column index\n * @param {Boolean} desc Optional: descending manner\n */\n sortByColumnIndex(colIdx, desc) {\n this.stt.sort(colIdx, desc);\n }\n\n /**\n * Set SortableTable overrides for TableFilter integration\n */\n overrideSortableTable() {\n let adpt = this,\n tf = this.tf;\n\n /**\n * Overrides headerOnclick method in order to handle th event\n * @param {Object} e [description]\n */\n SortableTable.prototype.headerOnclick = function (evt) {\n if (!adpt.initialized) {\n return;\n }\n\n // find Header element\n let el = evt.target || evt.srcElement;\n\n while (el.tagName !== CELL_TAG && el.tagName !== HEADER_TAG) {\n el = el.parentNode;\n }\n\n this.sort(\n SortableTable.msie ?\n SortableTable.getCellIndex(el) : el.cellIndex\n );\n };\n\n /**\n * Overrides getCellIndex IE returns wrong cellIndex when columns are\n * hidden\n * @param {Object} oTd TD element\n * @return {Number} Cell index\n */\n SortableTable.getCellIndex = function (oTd) {\n let cells = oTd.parentNode.cells,\n l = cells.length, i;\n for (i = 0; cells[i] !== oTd && i < l; i++) { }\n return i;\n };\n\n /**\n * Overrides initHeader in order to handle filters row position\n * @param {Array} oSortTypes\n */\n SortableTable.prototype.initHeader = function (oSortTypes) {\n let stt = this;\n if (!stt.tHead) {\n if (tf.gridLayout) {\n stt.tHead = tf.feature('gridLayout').headTbl.tHead;\n } else {\n return;\n }\n }\n\n stt.headersRow = tf.headersRow;\n let cells = stt.tHead.rows[stt.headersRow].cells;\n stt.sortTypes = oSortTypes || [];\n let l = cells.length;\n let img, c;\n\n for (let i = 0; i < l; i++) {\n c = cells[i];\n if (stt.sortTypes[i] !== null && stt.sortTypes[i] !== 'None') {\n c.style.cursor = 'pointer';\n img = createElm('img',\n ['src', adpt.imgPath + adpt.imgBlank]);\n c.appendChild(img);\n if (stt.sortTypes[i] !== null) {\n c.setAttribute('_sortType', stt.sortTypes[i]);\n }\n addEvt(c, 'click', stt._headerOnclick);\n } else {\n c.setAttribute('_sortType', oSortTypes[i]);\n c._sortType = 'None';\n }\n }\n stt.updateHeaderArrows();\n };\n\n /**\n * Overrides updateHeaderArrows in order to handle arrows indicators\n */\n SortableTable.prototype.updateHeaderArrows = function () {\n let stt = this;\n let cells, l, img;\n\n // external headers\n if (adpt.asyncSort && adpt.triggerIds.length > 0) {\n let triggers = adpt.triggerIds;\n cells = [];\n l = triggers.length;\n for (let j = 0; j < l; j++) {\n cells.push(elm(triggers[j]));\n }\n } else {\n if (!this.tHead) {\n return;\n }\n cells = stt.tHead.rows[stt.headersRow].cells;\n l = cells.length;\n }\n for (let i = 0; i < l; i++) {\n let cell = cells[i];\n if (!cell) {\n continue;\n }\n let cellAttr = cell.getAttribute('_sortType');\n if (cellAttr !== null && cellAttr !== 'None') {\n img = cell.lastChild || cell;\n if (img.nodeName.toLowerCase() !== 'img') {\n img = createElm('img',\n ['src', adpt.imgPath + adpt.imgBlank]);\n cell.appendChild(img);\n }\n if (i === stt.sortColumn) {\n img.className = adpt.imgClassName + ' ' +\n (this.descending ?\n adpt.imgDescClassName :\n adpt.imgAscClassName);\n } else {\n img.className = adpt.imgClassName;\n }\n }\n }\n };\n\n /**\n * Overrides getRowValue for custom key value feature\n * @param {Object} oRow Row element\n * @param {String} sType\n * @param {Number} nColumn\n * @return {String}\n */\n SortableTable.prototype.getRowValue = function (oRow, sType, nColumn) {\n let stt = this;\n // if we have defined a custom getRowValue use that\n let sortTypeInfo = stt._sortTypeInfo[sType];\n if (sortTypeInfo && sortTypeInfo.getRowValue) {\n return sortTypeInfo.getRowValue(oRow, nColumn);\n }\n let c = oRow.cells[nColumn];\n let s = SortableTable.getInnerText(c);\n return stt.getValueFromString(s, sType);\n };\n\n /**\n * Overrides getInnerText in order to avoid Firefox unexpected sorting\n * behaviour with untrimmed text elements\n * @param {Object} oNode DOM element\n * @return {String} DOM element inner text\n */\n SortableTable.getInnerText = function (oNode) {\n if (!oNode) {\n return;\n }\n if (oNode.getAttribute(adpt.customKey)) {\n return oNode.getAttribute(adpt.customKey);\n } else {\n return getText(oNode);\n }\n };\n }\n\n /**\n * Adds a sort type\n */\n addSortType(...args) {\n // Extract the arguments\n let [id, caster, sorter] = args;\n SortableTable.prototype.addSortType(id, caster, sorter);\n }\n\n /**\n * Sets the sort types on a column basis\n * @private\n */\n setSortTypes() {\n let tf = this.tf,\n sortTypes = this.sortTypes,\n _sortTypes = [];\n\n for (let i = 0; i < tf.nbCells; i++) {\n let colType;\n if (sortTypes[i]) {\n colType = sortTypes[i];\n if (isObj(colType)) {\n if (colType.type === DATE) {\n colType = this._addDateType(i, sortTypes);\n }\n else if (colType.type === FORMATTED_NUMBER) {\n let decimal = colType.decimal || tf.decimalSeparator;\n colType = this._addNumberType(i, decimal);\n }\n } else {\n colType = colType.toLowerCase();\n if (colType === DATE) {\n colType = this._addDateType(i, sortTypes);\n }\n else if (colType === FORMATTED_NUMBER ||\n colType === NUMBER) {\n colType = this._addNumberType(i, tf.decimalSeparator);\n }\n else if (colType === NONE) {\n // TODO: normalise 'none' vs 'None'\n colType = 'None';\n }\n }\n } else {\n colType = STRING;\n }\n _sortTypes.push(colType);\n }\n\n //Public TF method to add sort type\n\n //Custom sort types\n this.addSortType('caseinsensitivestring', SortableTable.toUpperCase);\n this.addSortType(STRING);\n this.addSortType(IP_ADDRESS, ipAddress, sortIP);\n\n this.stt = new SortableTable(tf.tbl, _sortTypes);\n\n /*** external table headers adapter ***/\n if (this.asyncSort && this.triggerIds.length > 0) {\n let triggers = this.triggerIds;\n for (let j = 0; j < triggers.length; j++) {\n if (triggers[j] === null) {\n continue;\n }\n let trigger = elm(triggers[j]);\n if (trigger) {\n trigger.style.cursor = 'pointer';\n\n addEvt(trigger, 'click', (evt) => {\n let elm = evt.target;\n if (!this.tf.sort) {\n return;\n }\n this.stt.asyncSort(triggers.indexOf(elm.id));\n });\n trigger.setAttribute('_sortType', _sortTypes[j]);\n }\n }\n }\n }\n\n _addDateType(colIndex, types) {\n let tf = this.tf;\n let dateType = tf.feature('dateType');\n let locale = dateType.getOptions(colIndex, types).locale || tf.locale;\n let colType = `${DATE}-${locale}`;\n\n this.addSortType(colType, (value) => {\n let parsedDate = dateType.parse(value, locale);\n // Invalid date defaults to Wed Feb 04 -768 11:00:00\n return isNaN(+parsedDate) ? new Date(-86400000000000) : parsedDate;\n });\n return colType;\n }\n\n _addNumberType(colIndex, decimal) {\n let colType = `${FORMATTED_NUMBER}${decimal === '.' ? '' : '-custom'}`;\n\n this.addSortType(colType, (value) => {\n return parseNb(value, decimal);\n });\n return colType;\n }\n\n /**\n * Remove extension\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n let tf = this.tf;\n this.emitter.off(['sort'],\n (tf, colIdx, desc) => this.sortByColumnIndex(colIdx, desc));\n this.sorted = false;\n this.stt.destroy();\n\n let ids = tf.getFiltersId();\n for (let idx = 0; idx < ids.length; idx++) {\n let header = tf.getHeaderElement(idx);\n let img = tag(header, 'img');\n\n if (img.length === 1) {\n header.removeChild(img[0]);\n }\n }\n this.initialized = false;\n }\n\n}\n\n//Converters\nfunction ipAddress(value) {\n let vals = value.split('.');\n for (let x in vals) {\n let val = vals[x];\n while (3 > val.length) {\n val = '0' + val;\n }\n vals[x] = val;\n }\n return vals.join('.');\n}\n\nfunction sortIP(a, b) {\n let aa = ipAddress(a.value.toLowerCase());\n let bb = ipAddress(b.value.toLowerCase());\n if (aa === bb) {\n return 0;\n } else if (aa < bb) {\n return -1;\n } else {\n return 1;\n }\n}\n" }, { - "__docId__": 196, + "__docId__": 221, "kind": "class", "static": true, "variation": null, @@ -4400,7 +5208,7 @@ ] }, { - "__docId__": 197, + "__docId__": 222, "kind": "constructor", "static": false, "variation": null, @@ -4435,7 +5243,7 @@ "generator": false }, { - "__docId__": 198, + "__docId__": 223, "kind": "member", "static": false, "variation": null, @@ -4455,7 +5263,7 @@ } }, { - "__docId__": 199, + "__docId__": 224, "kind": "member", "static": false, "variation": null, @@ -4475,7 +5283,7 @@ } }, { - "__docId__": 200, + "__docId__": 225, "kind": "member", "static": false, "variation": null, @@ -4495,7 +5303,7 @@ } }, { - "__docId__": 201, + "__docId__": 226, "kind": "member", "static": false, "variation": null, @@ -4515,7 +5323,7 @@ } }, { - "__docId__": 202, + "__docId__": 227, "kind": "member", "static": false, "variation": null, @@ -4535,7 +5343,7 @@ } }, { - "__docId__": 203, + "__docId__": 228, "kind": "member", "static": false, "variation": null, @@ -4555,7 +5363,7 @@ } }, { - "__docId__": 204, + "__docId__": 229, "kind": "member", "static": false, "variation": null, @@ -4575,7 +5383,7 @@ } }, { - "__docId__": 205, + "__docId__": 230, "kind": "member", "static": false, "variation": null, @@ -4595,7 +5403,7 @@ } }, { - "__docId__": 206, + "__docId__": 231, "kind": "member", "static": false, "variation": null, @@ -4615,7 +5423,7 @@ } }, { - "__docId__": 207, + "__docId__": 232, "kind": "member", "static": false, "variation": null, @@ -4635,7 +5443,7 @@ } }, { - "__docId__": 208, + "__docId__": 233, "kind": "member", "static": false, "variation": null, @@ -4655,7 +5463,7 @@ } }, { - "__docId__": 209, + "__docId__": 234, "kind": "member", "static": false, "variation": null, @@ -4675,7 +5483,7 @@ } }, { - "__docId__": 210, + "__docId__": 235, "kind": "member", "static": false, "variation": null, @@ -4695,7 +5503,7 @@ } }, { - "__docId__": 211, + "__docId__": 236, "kind": "member", "static": false, "variation": null, @@ -4715,7 +5523,7 @@ } }, { - "__docId__": 212, + "__docId__": 237, "kind": "member", "static": false, "variation": null, @@ -4735,7 +5543,7 @@ } }, { - "__docId__": 213, + "__docId__": 238, "kind": "member", "static": false, "variation": null, @@ -4755,7 +5563,7 @@ } }, { - "__docId__": 214, + "__docId__": 239, "kind": "member", "static": false, "variation": null, @@ -4772,7 +5580,7 @@ } }, { - "__docId__": 215, + "__docId__": 240, "kind": "method", "static": false, "variation": null, @@ -4786,7 +5594,7 @@ "generator": false }, { - "__docId__": 216, + "__docId__": 241, "kind": "member", "static": false, "variation": null, @@ -4809,7 +5617,7 @@ } }, { - "__docId__": 217, + "__docId__": 242, "kind": "method", "static": false, "variation": null, @@ -4844,7 +5652,7 @@ "generator": false }, { - "__docId__": 218, + "__docId__": 243, "kind": "method", "static": false, "variation": null, @@ -4858,7 +5666,7 @@ "generator": false }, { - "__docId__": 219, + "__docId__": 244, "kind": "method", "static": false, "variation": null, @@ -4880,7 +5688,7 @@ "generator": false }, { - "__docId__": 220, + "__docId__": 245, "kind": "method", "static": false, "variation": null, @@ -4894,7 +5702,7 @@ "generator": false }, { - "__docId__": 221, + "__docId__": 246, "kind": "member", "static": false, "variation": null, @@ -4912,7 +5720,7 @@ } }, { - "__docId__": 222, + "__docId__": 247, "kind": "method", "static": false, "variation": null, @@ -4945,7 +5753,7 @@ "generator": false }, { - "__docId__": 223, + "__docId__": 248, "kind": "method", "static": false, "variation": null, @@ -4978,7 +5786,7 @@ "generator": false }, { - "__docId__": 224, + "__docId__": 249, "kind": "method", "static": false, "variation": null, @@ -4992,7 +5800,7 @@ "generator": false }, { - "__docId__": 225, + "__docId__": 250, "kind": "member", "static": false, "variation": null, @@ -5010,7 +5818,7 @@ } }, { - "__docId__": 226, + "__docId__": 251, "kind": "member", "static": false, "variation": null, @@ -5028,7 +5836,7 @@ } }, { - "__docId__": 227, + "__docId__": 252, "kind": "function", "static": true, "variation": null, @@ -5058,7 +5866,7 @@ "generator": false }, { - "__docId__": 228, + "__docId__": 253, "kind": "function", "static": true, "variation": null, @@ -5094,7 +5902,7 @@ "generator": false }, { - "__docId__": 229, + "__docId__": 254, "kind": "file", "static": true, "variation": null, @@ -5107,7 +5915,7 @@ "content": "import AdapterSortableTable from './adapterSortabletable';\nimport {root} from '../../root';\n\nif (!root.SortableTable) {\n require('script!sortabletable');\n}\n\nexport default AdapterSortableTable;\n" }, { - "__docId__": 230, + "__docId__": 255, "kind": "file", "static": true, "variation": null, @@ -5120,7 +5928,7 @@ "content": "\nconst NOTIMPLEMENTED = 'Not implemented.';\n\n/**\n * Base class defining the interface of a TableFilter feature\n */\nexport class Feature {\n /**\n * Creates an instance of Feature\n * @param {Object} tf TableFilter instance\n * @param {String} feature Feature name known by TableFilter\n */\n constructor(tf, feature) {\n /**\n * TableFilter instance\n * @type {TableFilter}\n */\n this.tf = tf;\n\n /**\n * Feature name\n * @type {String}\n */\n this.feature = feature;\n\n /**\n * TableFilter feature setting\n * @type {Boolean}\n */\n this.enabled = tf[feature];\n\n /**\n * TableFilter configuration\n * @type {Object}\n */\n this.config = tf.config();\n\n /**\n * TableFilter emitter instance\n * @type {Emitter}\n */\n this.emitter = tf.emitter;\n\n /**\n * Field indicating whether Feature is initialized\n * @type {Boolean}\n */\n this.initialized = false;\n\n /** Subscribe to destroy event */\n this.emitter.on(['destroy'], () => this.destroy());\n }\n\n /**\n * Initialize the feature\n */\n init() {\n throw new Error(NOTIMPLEMENTED);\n }\n\n /**\n * Reset the feature after being disabled\n */\n reset() {\n this.enable();\n this.init();\n }\n\n /**\n * Destroy the feature\n */\n destroy() {\n throw new Error(NOTIMPLEMENTED);\n }\n\n /**\n * Enable the feature\n */\n enable() {\n this.enabled = true;\n }\n\n /**\n * Disable the feature\n */\n disable() {\n this.enabled = false;\n }\n\n /**\n * Indicate whether the feature is enabled or not\n * @returns {Boolean}\n */\n isEnabled() {\n return this.enabled;\n }\n}\n" }, { - "__docId__": 231, + "__docId__": 256, "kind": "variable", "static": true, "variation": null, @@ -5141,7 +5949,7 @@ } }, { - "__docId__": 232, + "__docId__": 257, "kind": "class", "static": true, "variation": null, @@ -5157,7 +5965,7 @@ "interface": false }, { - "__docId__": 233, + "__docId__": 258, "kind": "constructor", "static": false, "variation": null, @@ -5192,7 +6000,7 @@ "generator": false }, { - "__docId__": 234, + "__docId__": 259, "kind": "member", "static": false, "variation": null, @@ -5212,7 +6020,7 @@ } }, { - "__docId__": 235, + "__docId__": 260, "kind": "member", "static": false, "variation": null, @@ -5232,7 +6040,7 @@ } }, { - "__docId__": 236, + "__docId__": 261, "kind": "member", "static": false, "variation": null, @@ -5252,7 +6060,7 @@ } }, { - "__docId__": 237, + "__docId__": 262, "kind": "member", "static": false, "variation": null, @@ -5272,7 +6080,7 @@ } }, { - "__docId__": 238, + "__docId__": 263, "kind": "member", "static": false, "variation": null, @@ -5292,7 +6100,7 @@ } }, { - "__docId__": 239, + "__docId__": 264, "kind": "member", "static": false, "variation": null, @@ -5312,7 +6120,7 @@ } }, { - "__docId__": 240, + "__docId__": 265, "kind": "method", "static": false, "variation": null, @@ -5326,7 +6134,7 @@ "generator": false }, { - "__docId__": 241, + "__docId__": 266, "kind": "method", "static": false, "variation": null, @@ -5340,7 +6148,7 @@ "generator": false }, { - "__docId__": 242, + "__docId__": 267, "kind": "method", "static": false, "variation": null, @@ -5354,7 +6162,7 @@ "generator": false }, { - "__docId__": 243, + "__docId__": 268, "kind": "method", "static": false, "variation": null, @@ -5368,7 +6176,7 @@ "generator": false }, { - "__docId__": 244, + "__docId__": 269, "kind": "member", "static": false, "variation": null, @@ -5386,7 +6194,7 @@ } }, { - "__docId__": 245, + "__docId__": 270, "kind": "method", "static": false, "variation": null, @@ -5400,7 +6208,7 @@ "generator": false }, { - "__docId__": 246, + "__docId__": 271, "kind": "member", "static": false, "variation": null, @@ -5418,7 +6226,7 @@ } }, { - "__docId__": 247, + "__docId__": 272, "kind": "method", "static": false, "variation": null, @@ -5446,7 +6254,7 @@ "generator": false }, { - "__docId__": 248, + "__docId__": 273, "kind": "file", "static": true, "variation": null, @@ -5459,7 +6267,7 @@ "content": "import {Feature} from '../feature';\nimport {addClass, removeClass} from '../dom';\n\n/**\n * Rows with alternating background color for improved readability\n */\nexport class AlternateRows extends Feature {\n\n /**\n * Creates an instance of AlternateRows.\n *\n * @param {Object} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'alternateRows');\n\n let config = this.config;\n /**\n * Css class for even rows (default: 'even')\n * @type {String}\n */\n this.evenCss = config.even_row_css_class || 'even';\n\n /**\n * Css class for odd rows (default: 'odd')\n * @type {String}\n */\n this.oddCss = config.odd_row_css_class || 'odd';\n }\n\n /**\n * Sets alternating rows color\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n this.processAll();\n\n // Subscribe to events\n this.emitter.on(['row-processed', 'row-paged'],\n (tf, rowIndex, arrIndex, isValid) =>\n this.processRow(rowIndex, arrIndex, isValid));\n this.emitter.on(['column-sorted'], () => this.processAll());\n this.emitter.on(['rows-changed'], () => this.processAll());\n\n /** @inherited */\n this.initialized = true;\n }\n\n /**\n * Apply background to all valid rows\n */\n processAll() {\n if (!this.isEnabled()) {\n return;\n }\n let tf = this.tf;\n let validRowsIndex = tf.getValidRows(true);\n let indexLen = validRowsIndex.length;\n let idx = 0;\n\n //alternates bg color\n for (let j = 0; j < indexLen; j++) {\n let rowIdx = validRowsIndex[j];\n this.setRowBg(rowIdx, idx);\n idx++;\n }\n }\n\n /**\n * Set/remove row background based on row validation\n * @param {Number} rowIdx Row index\n * @param {Number} arrIdx Array index\n * @param {Boolean} isValid Valid row flag\n */\n processRow(rowIdx, arrIdx, isValid) {\n if (isValid) {\n this.setRowBg(rowIdx, arrIdx);\n } else {\n this.removeRowBg(rowIdx);\n }\n }\n\n /**\n * Sets row background color\n * @param {Number} rowIdx Row index\n * @param {Number} idx Valid rows collection index needed to calculate bg\n * color\n * @private\n */\n setRowBg(rowIdx, idx) {\n if (!this.isEnabled() || isNaN(rowIdx)) {\n return;\n }\n let rows = this.tf.tbl.rows;\n let i = isNaN(idx) ? rowIdx : idx;\n this.removeRowBg(rowIdx);\n\n addClass(rows[rowIdx], (i % 2) ? this.evenCss : this.oddCss);\n }\n\n /**\n * Removes row background color\n * @param {Number} idx Row index\n * @private\n */\n removeRowBg(idx) {\n if (isNaN(idx)) {\n return;\n }\n let rows = this.tf.tbl.rows;\n removeClass(rows[idx], this.oddCss);\n removeClass(rows[idx], this.evenCss);\n }\n\n /**\n * Removes all alternating backgrounds\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n let nbRows = this.tf.getRowsNb(true);\n for (let i = 0; i < nbRows; i++) {\n this.removeRowBg(i);\n }\n\n // Unsubscribe to events\n this.emitter.off(['row-processed', 'row-paged'],\n (tf, rowIndex, arrIndex, isValid) =>\n this.processRow(rowIndex, arrIndex, isValid));\n this.emitter.off(['column-sorted'], () => this.processAll());\n this.emitter.off(['rows-changed'], () => this.processAll());\n\n this.initialized = false;\n }\n\n}\n" }, { - "__docId__": 249, + "__docId__": 274, "kind": "class", "static": true, "variation": null, @@ -5478,7 +6286,7 @@ ] }, { - "__docId__": 250, + "__docId__": 275, "kind": "constructor", "static": false, "variation": null, @@ -5503,7 +6311,7 @@ "generator": false }, { - "__docId__": 251, + "__docId__": 276, "kind": "member", "static": false, "variation": null, @@ -5523,7 +6331,7 @@ } }, { - "__docId__": 252, + "__docId__": 277, "kind": "member", "static": false, "variation": null, @@ -5543,7 +6351,7 @@ } }, { - "__docId__": 253, + "__docId__": 278, "kind": "method", "static": false, "variation": null, @@ -5557,7 +6365,7 @@ "generator": false }, { - "__docId__": 254, + "__docId__": 279, "kind": "member", "static": false, "variation": null, @@ -5580,7 +6388,7 @@ } }, { - "__docId__": 255, + "__docId__": 280, "kind": "method", "static": false, "variation": null, @@ -5594,7 +6402,7 @@ "generator": false }, { - "__docId__": 256, + "__docId__": 281, "kind": "method", "static": false, "variation": null, @@ -5639,7 +6447,7 @@ "generator": false }, { - "__docId__": 257, + "__docId__": 282, "kind": "method", "static": false, "variation": null, @@ -5674,7 +6482,7 @@ "generator": false }, { - "__docId__": 258, + "__docId__": 283, "kind": "method", "static": false, "variation": null, @@ -5699,7 +6507,7 @@ "generator": false }, { - "__docId__": 259, + "__docId__": 284, "kind": "method", "static": false, "variation": null, @@ -5713,7 +6521,7 @@ "generator": false }, { - "__docId__": 260, + "__docId__": 285, "kind": "member", "static": false, "variation": null, @@ -5731,7 +6539,7 @@ } }, { - "__docId__": 261, + "__docId__": 286, "kind": "file", "static": true, "variation": null, @@ -5744,7 +6552,7 @@ "content": "import {Feature} from '../feature';\nimport {\n addClass, createCheckItem, createText, createElm, elm, getText,\n removeClass, tag\n} from '../dom';\nimport {has} from '../array';\nimport {matchCase, trim, rgxEsc} from '../string';\nimport {ignoreCase, numSortAsc, numSortDesc} from '../sort';\nimport {addEvt, removeEvt, targetEvt} from '../event';\nimport {isEmpty} from '../types';\nimport {CHECKLIST, NONE} from '../const';\n\nconst SORT_ERROR = 'Filter options for column {0} cannot be sorted in ' +\n '{1} manner.';\n\n/**\n * Checklist filter UI component\n */\nexport class CheckList extends Feature {\n\n /**\n * Creates an instance of CheckList\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'checkList');\n\n let f = this.config;\n\n /**\n * List of container DOM elements\n * @type {Array}\n */\n this.containers = [];\n\n /**\n * Css class for the container of the checklist filter (div)\n * @type {String}\n */\n this.containerCssClass = f.div_checklist_css_class || 'div_checklist';\n\n /**\n * Css class for the checklist filter element (ul)\n * @type {String}\n */\n this.filterCssClass = f.checklist_css_class || 'flt_checklist';\n\n /**\n * Css class for the item of a checklist (li)\n * @type {String}\n */\n this.itemCssClass = f.checklist_item_css_class || 'flt_checklist_item';\n\n /**\n * Css class for a selected item of a checklist (li)\n * @type {String}\n */\n this.selectedItemCssClass =\n f.checklist_selected_item_css_class || 'flt_checklist_slc_item';\n\n /**\n * Text placed in the filter's container when load filter on demand\n * feature is enabled\n * @type {String}\n */\n this.activateText =\n f.activate_checklist_text || 'Click to load filter data';\n\n /**\n * Css class for a disabled item of a checklist (li)\n * @type {String}\n */\n this.disabledItemCssClass = f.checklist_item_disabled_css_class ||\n 'flt_checklist_item_disabled';\n\n /**\n * Enable the reset filter option as first item\n * @type {Boolean}\n */\n this.enableResetOption = f.enable_checklist_reset_filter === false ?\n false : true;\n\n /**\n * Prefix for container element ID\n * @type {String}\n * @private\n */\n this.prfx = 'chkdiv_';\n\n /**\n * Has custom options\n * @type {Boolean}\n * @private\n */\n this.isCustom = false;\n\n /**\n * List of options values\n * @type {Array}\n * @private\n */\n this.opts = [];\n\n /**\n * List of options texts for custom values\n * @type {Array}\n * @private\n */\n this.optsTxt = [];\n\n /**\n * List of options to be excluded from the checklist filter\n * @type {Array}\n * @private\n */\n this.excludedOpts = [];\n }\n\n /**\n * Checklist option click event handler\n * @param {Event} evt\n * @private\n */\n optionClick(evt) {\n let elm = targetEvt(evt);\n let tf = this.tf;\n\n this.emitter.emit('filter-focus', tf, elm);\n this.setCheckListValues(elm);\n tf.filter();\n }\n\n /**\n * Checklist container click event handler for load-on-demand feature\n * @param {Event} evt\n * @private\n */\n onCheckListClick(evt) {\n let elm = targetEvt(evt);\n if (this.tf.loadFltOnDemand && elm.getAttribute('filled') === '0') {\n let ct = elm.getAttribute('ct');\n let div = this.containers[ct];\n this.build(ct);\n removeEvt(div, 'click', (evt) => this.onCheckListClick(evt));\n }\n }\n\n /**\n * Refresh all checklist filters\n */\n refreshAll() {\n let tf = this.tf;\n let fltsIdxs = tf.getFiltersByType(CHECKLIST, true);\n fltsIdxs.forEach((colIdx) => {\n let values = this.getValues(colIdx);\n this.build(colIdx, tf.linkedFilters);\n this.selectOptions(colIdx, values);\n });\n }\n\n /**\n * Initialize checklist filter\n * @param {Number} colIndex Column index\n * @param {Boolean} isExternal External filter flag\n * @param {DOMElement} container Dom element containing the filter\n */\n init(colIndex, isExternal, container) {\n let tf = this.tf;\n let externalFltTgtId = isExternal ?\n tf.externalFltTgtIds[colIndex] : null;\n\n let divCont = createElm('div',\n ['id', `${this.prfx}${colIndex}_${tf.id}`],\n ['ct', colIndex], ['filled', '0']);\n divCont.className = this.containerCssClass;\n\n //filter is appended in desired element\n if (externalFltTgtId) {\n elm(externalFltTgtId).appendChild(divCont);\n } else {\n container.appendChild(divCont);\n }\n\n this.containers[colIndex] = divCont;\n tf.fltIds.push(tf.buildFilterId(colIndex));\n\n if (!tf.loadFltOnDemand) {\n this.build(colIndex);\n } else {\n addEvt(divCont, 'click', (evt) => this.onCheckListClick(evt));\n divCont.appendChild(createText(this.activateText));\n }\n\n this.emitter.on(\n ['build-checklist-filter'],\n (tf, colIndex, isLinked) => this.build(colIndex, isLinked)\n );\n\n this.emitter.on(\n ['select-checklist-options'],\n (tf, colIndex, values) => this.selectOptions(colIndex, values)\n );\n\n this.emitter.on(['rows-changed'], () => this.refreshAll());\n\n /** @inherited */\n this.initialized = true;\n }\n\n /**\n * Build checklist UI\n * @param {Number} colIndex Column index\n * @param {Boolean} isLinked Enable linked filters behaviour\n */\n build(colIndex, isLinked = false) {\n let tf = this.tf;\n colIndex = parseInt(colIndex, 10);\n\n this.emitter.emit('before-populating-filter', tf, colIndex);\n\n this.opts = [];\n this.optsTxt = [];\n\n let flt = this.containers[colIndex];\n let ul = createElm('ul',\n ['id', tf.fltIds[colIndex]],\n ['colIndex', colIndex]);\n ul.className = this.filterCssClass;\n\n let rows = tf.tbl.rows;\n let nbRows = tf.getRowsNb(true);\n let caseSensitive = tf.caseSensitive;\n this.isCustom = tf.isCustomOptions(colIndex);\n\n let activeIdx;\n let activeFilterId = tf.getActiveFilterId();\n if (isLinked && activeFilterId) {\n activeIdx = tf.getColumnIndexFromFilterId(activeFilterId);\n }\n\n let filteredDataCol = [];\n if (isLinked && tf.disableExcludedOptions) {\n this.excludedOpts = [];\n }\n\n flt.innerHTML = '';\n\n for (let k = tf.refRow; k < nbRows; k++) {\n // always visible rows don't need to appear on selects as always\n // valid\n if (tf.hasVisibleRows && tf.visibleRows.indexOf(k) !== -1) {\n continue;\n }\n\n let cells = rows[k].cells;\n let ncells = cells.length;\n\n // checks if row has exact cell #\n if (ncells !== tf.nbCells || this.isCustom) {\n continue;\n }\n\n // this loop retrieves cell data\n for (let j = 0; j < ncells; j++) {\n if (colIndex !== j) {\n continue;\n }\n if (isLinked && !tf.disableExcludedOptions &&\n (!tf.paging && !tf.isRowDisplayed(k)) ||\n (tf.paging && activeIdx && !tf.isRowValid(k))) {\n continue;\n }\n\n let cellData = tf.getCellData(cells[j]);\n //Vary Peter's patch\n let cellString = matchCase(cellData, caseSensitive);\n // checks if celldata is already in array\n if (!has(this.opts, cellString, caseSensitive)) {\n this.opts.push(cellData);\n }\n let filteredCol = filteredDataCol[j];\n if (isLinked && tf.disableExcludedOptions) {\n if (!filteredCol) {\n filteredCol = tf.getFilteredDataCol(j);\n }\n if (!has(filteredCol, cellString, caseSensitive) &&\n !has(this.excludedOpts, cellString,\n caseSensitive)) {\n this.excludedOpts.push(cellData);\n }\n }\n }\n }\n\n //Retrieves custom values\n if (this.isCustom) {\n let customValues = tf.getCustomOptions(colIndex);\n this.opts = customValues[0];\n this.optsTxt = customValues[1];\n }\n\n if (tf.sortSlc && !this.isCustom) {\n if (!caseSensitive) {\n this.opts.sort(ignoreCase);\n if (this.excludedOpts) {\n this.excludedOpts.sort(ignoreCase);\n }\n } else {\n this.opts.sort();\n if (this.excludedOpts) {\n this.excludedOpts.sort();\n }\n }\n }\n //asc sort\n if (tf.sortNumAsc.indexOf(colIndex) !== -1) {\n try {\n this.opts.sort(numSortAsc);\n if (this.excludedOpts) {\n this.excludedOpts.sort(numSortAsc);\n }\n if (this.isCustom) {\n this.optsTxt.sort(numSortAsc);\n }\n } catch (e) {\n throw new Error(SORT_ERROR.replace('{0}', colIndex)\n .replace('{1}', 'ascending'));\n }//in case there are alphanumeric values\n }\n //desc sort\n if (tf.sortNumDesc.indexOf(colIndex) !== -1) {\n try {\n this.opts.sort(numSortDesc);\n if (this.excludedOpts) {\n this.excludedOpts.sort(numSortDesc);\n }\n if (this.isCustom) {\n this.optsTxt.sort(numSortDesc);\n }\n } catch (e) {\n throw new Error(SORT_ERROR.replace('{0}', colIndex)\n .replace('{1}', 'descending'));\n }//in case there are alphanumeric values\n }\n\n this.addChecks(colIndex, ul);\n\n if (tf.loadFltOnDemand) {\n flt.innerHTML = '';\n }\n flt.appendChild(ul);\n flt.setAttribute('filled', '1');\n\n this.emitter.emit('after-populating-filter', tf, colIndex, flt);\n }\n\n /**\n * Add checklist options\n * @param {Number} colIndex Column index\n * @param {Object} ul Ul element\n * @private\n */\n addChecks(colIndex, ul) {\n let tf = this.tf;\n let chkCt = this.addTChecks(colIndex, ul);\n\n for (let y = 0; y < this.opts.length; y++) {\n let val = this.opts[y]; //item value\n let lbl = this.isCustom ? this.optsTxt[y] : val; //item text\n let fltId = tf.fltIds[colIndex];\n let li = createCheckItem(`${fltId}_${(y + chkCt)}`, val, lbl);\n li.className = this.itemCssClass;\n\n if (tf.linkedFilters && tf.disableExcludedOptions &&\n has(this.excludedOpts, matchCase(val, tf.caseSensitive),\n tf.caseSensitive)) {\n addClass(li, this.disabledItemCssClass);\n li.check.disabled = true;\n li.disabled = true;\n } else {\n addEvt(li.check, 'click', evt => this.optionClick(evt));\n }\n ul.appendChild(li);\n\n if (val === '') {\n //item is hidden\n li.style.display = NONE;\n }\n }\n }\n\n /**\n * Add checklist header option\n * @param {Number} colIndex Column index\n * @param {Object} ul Ul element\n * @private\n */\n addTChecks(colIndex, ul) {\n let tf = this.tf;\n let chkCt = 1;\n let fltId = tf.fltIds[colIndex];\n let li0 = createCheckItem(`${fltId}_0`, '',\n tf.getClearFilterText(colIndex));\n li0.className = this.itemCssClass;\n ul.appendChild(li0);\n\n addEvt(li0.check, 'click', evt => this.optionClick(evt));\n\n if (!this.enableResetOption) {\n li0.style.display = NONE;\n }\n\n if (tf.enableEmptyOption) {\n let li1 = createCheckItem(`${fltId}_1`, tf.emOperator,\n tf.emptyText);\n li1.className = this.itemCssClass;\n ul.appendChild(li1);\n addEvt(li1.check, 'click', evt => this.optionClick(evt));\n chkCt++;\n }\n\n if (tf.enableNonEmptyOption) {\n let li2 = createCheckItem(`${fltId}_2`, tf.nmOperator,\n tf.nonEmptyText);\n li2.className = this.itemCssClass;\n ul.appendChild(li2);\n addEvt(li2.check, 'click', evt => this.optionClick(evt));\n chkCt++;\n }\n return chkCt;\n }\n\n /**\n * Store checked options in DOM element attribute\n * @param {Object} o checklist option DOM element\n * @private\n */\n setCheckListValues(o) {\n if (!o) {\n return;\n }\n\n let tf = this.tf;\n let chkValue = o.value; //checked item value\n // TODO: provide helper to extract column index, ugly!\n let chkIndex = parseInt(o.id.split('_')[2], 10);\n let colIdx = tf.getColumnIndexFromFilterId(o.id);\n let itemTag = 'LI';\n\n let n = tf.getFilterElement(parseInt(colIdx, 10));\n let li = n.childNodes[chkIndex];\n let colIndex = n.getAttribute('colIndex');\n let fltValue = n.getAttribute('value'); //filter value (ul tag)\n let fltIndexes = n.getAttribute('indexes'); //selected items (ul tag)\n\n if (o.checked) {\n //show all item\n if (chkValue === '') {\n if ((fltIndexes && fltIndexes !== '')) {\n //items indexes\n let indSplit = fltIndexes.split(tf.separator);\n //checked items loop\n for (let u = 0; u < indSplit.length; u++) {\n //checked item\n let cChk = elm(tf.fltIds[colIndex] + '_' +\n indSplit[u]);\n if (cChk) {\n cChk.checked = false;\n removeClass(n.childNodes[indSplit[u]],\n this.selectedItemCssClass);\n }\n }\n }\n n.setAttribute('value', '');\n n.setAttribute('indexes', '');\n\n } else {\n fltValue = (fltValue) ? fltValue : '';\n chkValue = trim(fltValue + ' ' + chkValue + ' ' +\n tf.orOperator);\n chkIndex = fltIndexes + chkIndex + tf.separator;\n n.setAttribute('value', chkValue);\n n.setAttribute('indexes', chkIndex);\n //1st option unchecked\n if (elm(tf.fltIds[colIndex] + '_0')) {\n elm(tf.fltIds[colIndex] + '_0').checked = false;\n }\n }\n\n if (li.nodeName === itemTag) {\n removeClass(n.childNodes[0], this.selectedItemCssClass);\n addClass(li, this.selectedItemCssClass);\n }\n } else { //removes values and indexes\n if (chkValue !== '') {\n let replaceValue = new RegExp(\n rgxEsc(chkValue + ' ' + tf.orOperator));\n fltValue = fltValue.replace(replaceValue, '');\n n.setAttribute('value', trim(fltValue));\n\n let replaceIndex = new RegExp(\n rgxEsc(chkIndex + tf.separator));\n fltIndexes = fltIndexes.replace(replaceIndex, '');\n n.setAttribute('indexes', fltIndexes);\n }\n if (li.nodeName === itemTag) {\n removeClass(li, this.selectedItemCssClass);\n }\n }\n }\n\n /**\n * Select filter options programmatically\n * @param {Number} colIndex Column index\n * @param {Array} values Array of option values to select\n */\n selectOptions(colIndex, values = []) {\n let tf = this.tf;\n let flt = tf.getFilterElement(colIndex);\n if (tf.getFilterType(colIndex) !== CHECKLIST || !flt ||\n values.length === 0) {\n return;\n }\n\n let lisNb = tag(flt, 'li').length;\n\n flt.setAttribute('value', '');\n flt.setAttribute('indexes', '');\n\n for (let k = 0; k < lisNb; k++) {\n let li = tag(flt, 'li')[k];\n let lbl = tag(li, 'label')[0];\n let chk = tag(li, 'input')[0];\n let lblTxt = matchCase(getText(lbl), tf.caseSensitive);\n\n if (lblTxt !== '' && has(values, lblTxt, tf.caseSensitive)) {\n chk.checked = true;\n } else {\n // Check non-empty-text or empty-text option\n if (values.indexOf(tf.nmOperator) !== -1 &&\n lblTxt === matchCase(tf.nonEmptyText, tf.caseSensitive)) {\n chk.checked = true;\n }\n else if (values.indexOf(tf.emOperator) !== -1 &&\n lblTxt === matchCase(tf.emptyText, tf.caseSensitive)) {\n chk.checked = true;\n } else {\n chk.checked = false;\n }\n }\n this.setCheckListValues(chk);\n }\n }\n\n /**\n * Get filter values for a given column index\n * @param {Number} colIndex Column index\n * @returns {Array} values Collection of selected values\n */\n getValues(colIndex) {\n let tf = this.tf;\n let flt = tf.getFilterElement(colIndex);\n let fltAttr = flt.getAttribute('value');\n let values = isEmpty(fltAttr) ? '' : fltAttr;\n\n //removes last operator ||\n values = values.substr(0, values.length - 3);\n //turn || separated values into array\n values = values.split(' ' + tf.orOperator + ' ');\n\n return values;\n }\n\n /**\n * Destroy CheckList instance\n */\n destroy() {\n this.emitter.off(\n ['build-checklist-filter'],\n (tf, colIndex, isLinked) => this.build(colIndex, isLinked)\n );\n this.emitter.off(\n ['select-checklist-options'],\n (tf, colIndex, values) => this.selectOptions(colIndex, values)\n );\n this.emitter.off(['rows-changed'], () => this.refreshAll());\n\n this.initialized = false;\n }\n}\n" }, { - "__docId__": 262, + "__docId__": 287, "kind": "variable", "static": true, "variation": null, @@ -5765,7 +6573,7 @@ } }, { - "__docId__": 263, + "__docId__": 288, "kind": "class", "static": true, "variation": null, @@ -5784,7 +6592,7 @@ ] }, { - "__docId__": 264, + "__docId__": 289, "kind": "constructor", "static": false, "variation": null, @@ -5809,7 +6617,7 @@ "generator": false }, { - "__docId__": 265, + "__docId__": 290, "kind": "member", "static": false, "variation": null, @@ -5829,7 +6637,7 @@ } }, { - "__docId__": 266, + "__docId__": 291, "kind": "member", "static": false, "variation": null, @@ -5849,7 +6657,7 @@ } }, { - "__docId__": 267, + "__docId__": 292, "kind": "member", "static": false, "variation": null, @@ -5869,7 +6677,7 @@ } }, { - "__docId__": 268, + "__docId__": 293, "kind": "member", "static": false, "variation": null, @@ -5889,7 +6697,7 @@ } }, { - "__docId__": 269, + "__docId__": 294, "kind": "member", "static": false, "variation": null, @@ -5909,7 +6717,7 @@ } }, { - "__docId__": 270, + "__docId__": 295, "kind": "member", "static": false, "variation": null, @@ -5929,7 +6737,7 @@ } }, { - "__docId__": 271, + "__docId__": 296, "kind": "member", "static": false, "variation": null, @@ -5949,7 +6757,7 @@ } }, { - "__docId__": 272, + "__docId__": 297, "kind": "member", "static": false, "variation": null, @@ -5969,7 +6777,7 @@ } }, { - "__docId__": 273, + "__docId__": 298, "kind": "member", "static": false, "variation": null, @@ -5989,7 +6797,7 @@ } }, { - "__docId__": 274, + "__docId__": 299, "kind": "member", "static": false, "variation": null, @@ -6009,7 +6817,7 @@ } }, { - "__docId__": 275, + "__docId__": 300, "kind": "member", "static": false, "variation": null, @@ -6029,7 +6837,7 @@ } }, { - "__docId__": 276, + "__docId__": 301, "kind": "member", "static": false, "variation": null, @@ -6049,7 +6857,7 @@ } }, { - "__docId__": 277, + "__docId__": 302, "kind": "member", "static": false, "variation": null, @@ -6069,7 +6877,7 @@ } }, { - "__docId__": 278, + "__docId__": 303, "kind": "method", "static": false, "variation": null, @@ -6094,7 +6902,7 @@ "generator": false }, { - "__docId__": 279, + "__docId__": 304, "kind": "method", "static": false, "variation": null, @@ -6119,7 +6927,7 @@ "generator": false }, { - "__docId__": 280, + "__docId__": 305, "kind": "method", "static": false, "variation": null, @@ -6133,7 +6941,7 @@ "generator": false }, { - "__docId__": 281, + "__docId__": 306, "kind": "method", "static": false, "variation": null, @@ -6178,7 +6986,7 @@ "generator": false }, { - "__docId__": 282, + "__docId__": 307, "kind": "member", "static": false, "variation": null, @@ -6201,7 +7009,7 @@ } }, { - "__docId__": 283, + "__docId__": 308, "kind": "method", "static": false, "variation": null, @@ -6236,7 +7044,7 @@ "generator": false }, { - "__docId__": 284, + "__docId__": 309, "kind": "member", "static": false, "variation": null, @@ -6254,7 +7062,7 @@ } }, { - "__docId__": 285, + "__docId__": 310, "kind": "member", "static": false, "variation": null, @@ -6272,7 +7080,7 @@ } }, { - "__docId__": 286, + "__docId__": 311, "kind": "member", "static": false, "variation": null, @@ -6290,7 +7098,7 @@ } }, { - "__docId__": 287, + "__docId__": 312, "kind": "member", "static": false, "variation": null, @@ -6308,7 +7116,7 @@ } }, { - "__docId__": 288, + "__docId__": 313, "kind": "member", "static": false, "variation": null, @@ -6326,7 +7134,7 @@ } }, { - "__docId__": 289, + "__docId__": 314, "kind": "member", "static": false, "variation": null, @@ -6344,7 +7152,7 @@ } }, { - "__docId__": 290, + "__docId__": 315, "kind": "method", "static": false, "variation": null, @@ -6379,7 +7187,7 @@ "generator": false }, { - "__docId__": 291, + "__docId__": 316, "kind": "method", "static": false, "variation": null, @@ -6419,7 +7227,7 @@ "generator": false }, { - "__docId__": 292, + "__docId__": 317, "kind": "method", "static": false, "variation": null, @@ -6444,7 +7252,7 @@ "generator": false }, { - "__docId__": 293, + "__docId__": 318, "kind": "method", "static": false, "variation": null, @@ -6479,7 +7287,7 @@ "generator": false }, { - "__docId__": 294, + "__docId__": 319, "kind": "method", "static": false, "variation": null, @@ -6518,7 +7326,7 @@ "generator": false }, { - "__docId__": 295, + "__docId__": 320, "kind": "method", "static": false, "variation": null, @@ -6532,7 +7340,7 @@ "generator": false }, { - "__docId__": 296, + "__docId__": 321, "kind": "member", "static": false, "variation": null, @@ -6550,7 +7358,7 @@ } }, { - "__docId__": 297, + "__docId__": 322, "kind": "file", "static": true, "variation": null, @@ -6563,7 +7371,7 @@ "content": "import {Feature} from '../feature';\nimport {createElm, createText, elm, removeElm} from '../dom';\nimport {addEvt} from '../event';\n\n/**\n * Clear button UI component\n */\nexport class ClearButton extends Feature {\n\n /**\n * Creates an instance of ClearButton\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'btnReset');\n\n let f = this.config;\n\n /**\n * Container element ID\n * @type {String}\n */\n this.targetId = f.btn_reset_target_id || null;\n\n /**\n * Clear button container element\n * @type {DOMElement}\n * @private\n */\n this.container = null;\n\n /**\n * Clear button element\n * @type {DOMElement}\n * @private\n */\n this.element = null;\n\n /**\n * Text for the clear button\n * @type {String}\n */\n this.text = f.btn_reset_text || 'Reset';\n\n /**\n * Css class for reset button\n * @type {String}\n */\n this.cssClass = f.btn_reset_css_class || 'reset';\n\n /**\n * Tooltip text for the clear button\n * @type {String}\n */\n this.tooltip = f.btn_reset_tooltip || 'Clear filters';\n\n /**\n * Custom Html string for the clear button\n * @type {String}\n */\n this.html = f.btn_reset_html ||\n (!tf.enableIcons ? null :\n '');\n }\n\n /**\n * Click event handler for clear button\n * @private\n */\n onClick() {\n if (!this.isEnabled()) {\n return;\n }\n this.tf.clearFilters();\n }\n\n /**\n * Initialize clear button component\n */\n init() {\n let tf = this.tf;\n\n if (this.initialized) {\n return;\n }\n\n let cont = createElm('span');\n\n // reset button is added to defined element\n if (!this.targetId) {\n tf.setToolbar();\n }\n let targetEl = !this.targetId ? tf.rDiv : elm(this.targetId);\n targetEl.appendChild(cont);\n\n if (!this.html) {\n let fltReset = createElm('a', ['href', 'javascript:void(0);']);\n fltReset.className = this.cssClass;\n fltReset.appendChild(createText(this.text));\n cont.appendChild(fltReset);\n addEvt(fltReset, 'click', () => this.onClick());\n } else {\n cont.innerHTML = this.html;\n let resetEl = cont.firstChild;\n addEvt(resetEl, 'click', () => this.onClick());\n }\n this.element = cont.firstChild;\n this.container = cont;\n\n /** @inherited */\n this.initialized = true;\n }\n\n /**\n * Destroy ClearButton instance\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n removeElm(this.element);\n removeElm(this.container);\n this.element = null;\n this.container = null;\n this.initialized = false;\n }\n}\n" }, { - "__docId__": 298, + "__docId__": 323, "kind": "class", "static": true, "variation": null, @@ -6582,7 +7390,7 @@ ] }, { - "__docId__": 299, + "__docId__": 324, "kind": "constructor", "static": false, "variation": null, @@ -6607,7 +7415,7 @@ "generator": false }, { - "__docId__": 300, + "__docId__": 325, "kind": "member", "static": false, "variation": null, @@ -6627,7 +7435,7 @@ } }, { - "__docId__": 301, + "__docId__": 326, "kind": "member", "static": false, "variation": null, @@ -6647,7 +7455,7 @@ } }, { - "__docId__": 302, + "__docId__": 327, "kind": "member", "static": false, "variation": null, @@ -6667,7 +7475,7 @@ } }, { - "__docId__": 303, + "__docId__": 328, "kind": "member", "static": false, "variation": null, @@ -6687,7 +7495,7 @@ } }, { - "__docId__": 304, + "__docId__": 329, "kind": "member", "static": false, "variation": null, @@ -6707,7 +7515,7 @@ } }, { - "__docId__": 305, + "__docId__": 330, "kind": "member", "static": false, "variation": null, @@ -6727,7 +7535,7 @@ } }, { - "__docId__": 306, + "__docId__": 331, "kind": "member", "static": false, "variation": null, @@ -6747,7 +7555,7 @@ } }, { - "__docId__": 307, + "__docId__": 332, "kind": "method", "static": false, "variation": null, @@ -6761,7 +7569,7 @@ "generator": false }, { - "__docId__": 308, + "__docId__": 333, "kind": "method", "static": false, "variation": null, @@ -6775,7 +7583,7 @@ "generator": false }, { - "__docId__": 309, + "__docId__": 334, "kind": "member", "static": false, "variation": null, @@ -6793,7 +7601,7 @@ } }, { - "__docId__": 310, + "__docId__": 335, "kind": "member", "static": false, "variation": null, @@ -6811,7 +7619,7 @@ } }, { - "__docId__": 311, + "__docId__": 336, "kind": "member", "static": false, "variation": null, @@ -6834,7 +7642,7 @@ } }, { - "__docId__": 312, + "__docId__": 337, "kind": "method", "static": false, "variation": null, @@ -6848,7 +7656,7 @@ "generator": false }, { - "__docId__": 313, + "__docId__": 338, "kind": "member", "static": false, "variation": null, @@ -6866,7 +7674,7 @@ } }, { - "__docId__": 314, + "__docId__": 339, "kind": "member", "static": false, "variation": null, @@ -6884,7 +7692,7 @@ } }, { - "__docId__": 315, + "__docId__": 340, "kind": "member", "static": false, "variation": null, @@ -6902,7 +7710,7 @@ } }, { - "__docId__": 316, + "__docId__": 341, "kind": "file", "static": true, "variation": null, @@ -6915,7 +7723,7 @@ "content": "import {Date as SugarDate} from 'sugar-date';\nimport 'sugar-date/locales';\nimport {Feature} from '../feature';\nimport {isObj, isArray} from '../types';\nimport {DATE} from '../const';\nimport {root} from '../root';\n\n/**\n * Wrapper for Sugar Date module providing datetime helpers and locales\n * @export\n * @class DateType\n */\nexport class DateType extends Feature {\n\n /**\n * Creates an instance of DateType\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'dateType');\n\n /**\n * Global locale\n * @type {String}\n */\n this.locale = tf.locale;\n\n /**\n * Sugar Date instance\n * @type {Object}\n */\n this.datetime = SugarDate;\n\n this.enable();\n }\n\n /**\n * Initialize DateType instance\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n // Set global locale\n this.datetime.setLocale(this.locale);\n\n // Add formats from column types configuration if any\n this.addConfigFormats(this.tf.colTypes);\n\n this.emitter.on(\n ['add-date-type-formats'],\n (tf, types) => this.addConfigFormats(types)\n );\n\n // Broadcast date-type initialization\n this.emitter.emit('date-type-initialized', this.tf, this);\n\n /** @inherited */\n this.initialized = true;\n }\n\n /**\n * Parse a string representation of a date for a specified locale and return\n * a date object\n * @param {String} dateStr String representation of a date\n * @param {String} localeCode Locale code (ie 'en-us')\n * @returns {Date}\n */\n parse(dateStr, localeCode) {\n return this.datetime.create(dateStr, localeCode);\n }\n\n /**\n * Check string representation of a date for a specified locale is valid\n * @param {any} dateStr String representation of a date\n * @param {any} localeCode Locale code (ie 'en-us')\n * @returns {Boolean}\n */\n isValid(dateStr, localeCode) {\n return this.datetime.isValid(this.parse(dateStr, localeCode));\n }\n\n /**\n * Return the type object of a specified column as per configuration or\n * passed collection\n * @param {Number} colIndex Column index\n * @param {Array} types Collection of column types, optional\n * @returns {Object}\n */\n getOptions(colIndex, types) {\n types = types || this.tf.colTypes;\n let colType = types[colIndex];\n return isObj(colType) ? colType : {};\n }\n\n /**\n * Add date time format(s) to a locale as specified by the passed\n * collection of column types, ie:\n * [\n * 'string',\n * 'number',\n * { type: 'date', locale: 'en', format: ['{dd}/{MM}/{yyyy}']}\n * ]\n *\n * @param {Array} [types=[]] Collection of column types\n */\n addConfigFormats(types=[]) {\n types.forEach((type, idx) => {\n let options = this.getOptions(idx, types);\n if (options.type === DATE && options.hasOwnProperty('format')) {\n let locale = this.datetime.getLocale(\n options.locale || this.locale\n );\n let formats = isArray(options.format) ?\n options.format : [options.format];\n\n // Sugar date module throws exceptions with locale.addFormat\n try {\n formats.forEach((format) => {\n locale.addFormat(format);\n });\n } catch (ex) {\n root.console.error(ex);\n }\n }\n });\n }\n\n /**\n * Remove DateType instance\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n\n // TODO: remove added formats\n\n this.emitter.off(\n ['add-date-type-formats'],\n (tf, types) => this.addConfigFormats(types)\n );\n\n this.initialized = false;\n }\n}\n" }, { - "__docId__": 317, + "__docId__": 342, "kind": "class", "static": true, "variation": null, @@ -6944,7 +7752,7 @@ ] }, { - "__docId__": 318, + "__docId__": 343, "kind": "constructor", "static": false, "variation": null, @@ -6969,7 +7777,7 @@ "generator": false }, { - "__docId__": 319, + "__docId__": 344, "kind": "member", "static": false, "variation": null, @@ -6989,7 +7797,7 @@ } }, { - "__docId__": 320, + "__docId__": 345, "kind": "member", "static": false, "variation": null, @@ -7009,7 +7817,7 @@ } }, { - "__docId__": 321, + "__docId__": 346, "kind": "method", "static": false, "variation": null, @@ -7023,7 +7831,7 @@ "generator": false }, { - "__docId__": 322, + "__docId__": 347, "kind": "member", "static": false, "variation": null, @@ -7046,7 +7854,7 @@ } }, { - "__docId__": 323, + "__docId__": 348, "kind": "method", "static": false, "variation": null, @@ -7095,7 +7903,7 @@ "generator": false }, { - "__docId__": 324, + "__docId__": 349, "kind": "method", "static": false, "variation": null, @@ -7144,7 +7952,7 @@ "generator": false }, { - "__docId__": 325, + "__docId__": 350, "kind": "method", "static": false, "variation": null, @@ -7193,7 +8001,7 @@ "generator": false }, { - "__docId__": 326, + "__docId__": 351, "kind": "method", "static": false, "variation": null, @@ -7220,7 +8028,7 @@ "generator": false }, { - "__docId__": 327, + "__docId__": 352, "kind": "method", "static": false, "variation": null, @@ -7234,7 +8042,7 @@ "generator": false }, { - "__docId__": 328, + "__docId__": 353, "kind": "member", "static": false, "variation": null, @@ -7252,7 +8060,7 @@ } }, { - "__docId__": 329, + "__docId__": 354, "kind": "file", "static": true, "variation": null, @@ -7265,7 +8073,7 @@ "content": "import {Feature} from '../feature';\nimport {createElm, createOpt, elm} from '../dom';\nimport {has} from '../array';\nimport {matchCase} from '../string';\nimport {ignoreCase, numSortAsc, numSortDesc} from '../sort';\nimport {addEvt, targetEvt} from '../event';\nimport {SELECT, MULTIPLE, NONE} from '../const';\n\nconst SORT_ERROR = 'Filter options for column {0} cannot be sorted in ' +\n '{1} manner.';\n\n/**\n * Dropdown filter UI component\n */\nexport class Dropdown extends Feature {\n\n /**\n * Creates an instance of Dropdown\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'dropdown');\n\n // Configuration object\n let f = this.config;\n\n /**\n * Enable the reset filter option as first item\n * @type {Boolean}\n */\n this.enableSlcResetFilter = f.enable_slc_reset_filter === false ?\n false : true;\n\n /**\n * Non empty option text\n * @type {String}\n */\n this.nonEmptyText = f.non_empty_text || '(Non empty)';\n\n /**\n * Tooltip text appearing on multiple select\n * @type {String}\n */\n this.multipleSlcTooltip = f.multiple_slc_tooltip ||\n 'Use Ctrl/Cmd key for multiple selections';\n\n /**\n * Indicates drop-down has custom options\n * @private\n */\n this.isCustom = null;\n\n /**\n * List of options values\n * @type {Array}\n * @private\n */\n this.opts = null;\n\n /**\n * List of options texts for custom values\n * @type {Array}\n * @private\n */\n this.optsTxt = null;\n }\n\n\n /**\n * Drop-down filter focus event handler\n * @param {Event} e DOM Event\n * @private\n */\n onSlcFocus(e) {\n let elm = targetEvt(e);\n let tf = this.tf;\n // select is populated when element has focus\n if (tf.loadFltOnDemand && elm.getAttribute('filled') === '0') {\n let ct = elm.getAttribute('ct');\n this.build(ct);\n }\n this.emitter.emit('filter-focus', tf, elm);\n }\n\n /**\n * Drop-down filter change event handler\n * @private\n */\n onSlcChange() {\n if (this.tf.onSlcChange) {\n this.tf.filter();\n }\n }\n\n /**\n * Refresh all drop-down filters\n */\n refreshAll() {\n let tf = this.tf;\n let selectFlts = tf.getFiltersByType(SELECT, true);\n let multipleFlts = tf.getFiltersByType(MULTIPLE, true);\n let flts = selectFlts.concat(multipleFlts);\n flts.forEach((colIdx) => {\n let values = this.getValues(colIdx);\n this.build(colIdx, tf.linkedFilters);\n this.selectOptions(colIdx, values);\n });\n }\n\n /**\n * Initialize drop-down filter\n * @param {Number} colIndex Column index\n * @param {Boolean} isExternal External filter flag\n * @param {DOMElement} container Dom element containing the filter\n */\n init(colIndex, isExternal, container) {\n let tf = this.tf;\n let col = tf.getFilterType(colIndex);\n let externalFltTgtId = isExternal ?\n tf.externalFltTgtIds[colIndex] : null;\n\n let slc = createElm(SELECT,\n ['id', tf.buildFilterId(colIndex)],\n ['ct', colIndex], ['filled', '0']\n );\n\n if (col === MULTIPLE) {\n slc.multiple = MULTIPLE;\n slc.title = this.multipleSlcTooltip;\n }\n slc.className = col.toLowerCase() === SELECT ?\n tf.fltCssClass : tf.fltMultiCssClass;\n\n //filter is appended in container element\n if (externalFltTgtId) {\n elm(externalFltTgtId).appendChild(slc);\n } else {\n container.appendChild(slc);\n }\n\n tf.fltIds.push(slc.id);\n\n if (!tf.loadFltOnDemand) {\n this.build(colIndex);\n } else {\n //1st option is created here since build isn't invoked\n let opt0 = createOpt(tf.getClearFilterText(colIndex), '');\n slc.appendChild(opt0);\n }\n\n addEvt(slc, 'change', () => this.onSlcChange());\n addEvt(slc, 'focus', (e) => this.onSlcFocus(e));\n\n this.emitter.on(\n ['build-select-filter'],\n (tf, colIndex, isLinked, isExternal) =>\n this.build(colIndex, isLinked, isExternal)\n );\n this.emitter.on(\n ['select-options'],\n (tf, colIndex, values) => this.selectOptions(colIndex, values)\n );\n this.emitter.on(['rows-changed'], () => this.refreshAll());\n\n /** @inherited */\n this.initialized = true;\n }\n\n /**\n * Build drop-down filter UI\n * @param {Number} colIndex Column index\n * @param {Boolean} isLinked Enable linked filters behaviour\n */\n build(colIndex, isLinked = false) {\n let tf = this.tf;\n colIndex = parseInt(colIndex, 10);\n\n this.emitter.emit('before-populating-filter', tf, colIndex);\n\n this.opts = [];\n this.optsTxt = [];\n\n let slcId = tf.fltIds[colIndex];\n let slc = elm(slcId);\n let rows = tf.tbl.rows;\n let nbRows = tf.getRowsNb(true);\n\n //custom select test\n this.isCustom = tf.isCustomOptions(colIndex);\n\n //custom selects text\n let activeIdx;\n let activeFilterId = tf.getActiveFilterId();\n if (isLinked && activeFilterId) {\n activeIdx = tf.getColumnIndexFromFilterId(activeFilterId);\n }\n\n let excludedOpts = null,\n filteredDataCol = null;\n if (isLinked && tf.disableExcludedOptions) {\n excludedOpts = [];\n filteredDataCol = [];\n }\n\n for (let k = tf.refRow; k < nbRows; k++) {\n // always visible rows don't need to appear on selects as always\n // valid\n if (tf.hasVisibleRows && tf.visibleRows.indexOf(k) !== -1) {\n continue;\n }\n\n let cell = rows[k].cells,\n nchilds = cell.length;\n\n // checks if row has exact cell #\n if (nchilds !== tf.nbCells || this.isCustom) {\n continue;\n }\n\n // this loop retrieves cell data\n for (let j = 0; j < nchilds; j++) {\n if (colIndex !== j) {\n continue;\n }\n if (isLinked && !tf.disableExcludedOptions &&\n (!tf.paging && !tf.isRowDisplayed(k)) ||\n (tf.paging && activeIdx && !tf.isRowValid(k))) {\n continue;\n }\n\n let cellData = tf.getCellData(cell[j]),\n //Vary Peter's patch\n cellString = matchCase(cellData, tf.caseSensitive);\n\n // checks if celldata is already in array\n if (!has(this.opts, cellString, tf.caseSensitive)) {\n this.opts.push(cellData);\n }\n\n if (isLinked && tf.disableExcludedOptions) {\n let filteredCol = filteredDataCol[j];\n if (!filteredCol) {\n filteredCol = tf.getFilteredDataCol(j);\n }\n if (!has(filteredCol, cellString, tf.caseSensitive) &&\n !has(excludedOpts, cellString, tf.caseSensitive)) {\n excludedOpts.push(cellData);\n }\n }\n }//for j\n }//for k\n\n //Retrieves custom values\n if (this.isCustom) {\n let customValues = tf.getCustomOptions(colIndex);\n this.opts = customValues[0];\n this.optsTxt = customValues[1];\n }\n\n if (tf.sortSlc && !this.isCustom) {\n if (!tf.caseSensitive) {\n this.opts.sort(ignoreCase);\n if (excludedOpts) {\n excludedOpts.sort(ignoreCase);\n }\n } else {\n this.opts.sort();\n if (excludedOpts) { excludedOpts.sort(); }\n }\n }\n\n //asc sort\n if (tf.sortNumAsc.indexOf(colIndex) !== -1) {\n try {\n this.opts.sort(numSortAsc);\n if (excludedOpts) {\n excludedOpts.sort(numSortAsc);\n }\n if (this.isCustom) {\n this.optsTxt.sort(numSortAsc);\n }\n } catch (e) {\n throw new Error(SORT_ERROR.replace('{0}', colIndex)\n .replace('{1}', 'ascending'));\n }//in case there are alphanumeric values\n }\n //desc sort\n if (tf.sortNumDesc.indexOf(colIndex) !== -1) {\n try {\n this.opts.sort(numSortDesc);\n if (excludedOpts) {\n excludedOpts.sort(numSortDesc);\n }\n if (this.isCustom) {\n this.optsTxt.sort(numSortDesc);\n }\n } catch (e) {\n throw new Error(SORT_ERROR.replace('{0}', colIndex)\n .replace('{1}', 'ascending'));\n }//in case there are alphanumeric values\n }\n\n //populates drop-down\n this.addOptions(colIndex, slc, isLinked, excludedOpts);\n\n this.emitter.emit('after-populating-filter', tf, colIndex, slc);\n }\n\n /**\n * Add drop-down options\n * @param {Number} colIndex Column index\n * @param {Object} slc Select Dom element\n * @param {Boolean} isLinked Enable linked refresh behaviour\n * @param {Array} excludedOpts Array of excluded options\n */\n addOptions(colIndex, slc, isLinked, excludedOpts) {\n let tf = this.tf,\n slcValue = slc.value;\n\n slc.innerHTML = '';\n slc = this.addFirstOption(slc);\n\n for (let y = 0; y < this.opts.length; y++) {\n if (this.opts[y] === '') {\n continue;\n }\n let val = this.opts[y]; //option value\n let lbl = this.isCustom ? this.optsTxt[y] : val; //option text\n let isDisabled = false;\n if (isLinked && tf.disableExcludedOptions &&\n has(excludedOpts, matchCase(val, tf.caseSensitive),\n tf.caseSensitive)) {\n isDisabled = true;\n }\n\n let opt;\n //fill select on demand\n if (tf.loadFltOnDemand && slcValue === this.opts[y] &&\n tf.getFilterType(colIndex) === SELECT) {\n opt = createOpt(lbl, val, true);\n } else {\n opt = createOpt(lbl, val, false);\n }\n if (isDisabled) {\n opt.disabled = true;\n }\n slc.appendChild(opt);\n }// for y\n\n slc.setAttribute('filled', '1');\n }\n\n /**\n * Add drop-down header option\n * @param {Object} slc Select DOM element\n */\n addFirstOption(slc) {\n let tf = this.tf;\n let colIdx = tf.getColumnIndexFromFilterId(slc.id);\n let opt0 = createOpt((!this.enableSlcResetFilter ?\n '' : tf.getClearFilterText(colIdx)), '');\n if (!this.enableSlcResetFilter) {\n opt0.style.display = NONE;\n }\n slc.appendChild(opt0);\n if (tf.enableEmptyOption) {\n let opt1 = createOpt(tf.emptyText, tf.emOperator);\n slc.appendChild(opt1);\n }\n if (tf.enableNonEmptyOption) {\n let opt2 = createOpt(tf.nonEmptyText, tf.nmOperator);\n slc.appendChild(opt2);\n }\n return slc;\n }\n\n /**\n * Select filter options programmatically\n * @param {Number} colIndex Column index\n * @param {Array} values Array of option values to select\n */\n selectOptions(colIndex, values = []) {\n let tf = this.tf;\n if (values.length === 0) {\n return;\n }\n let slc = tf.getFilterElement(colIndex);\n [].forEach.call(slc.options, (option) => {\n // Empty value means clear all selections and first option is the\n // clear all option\n if (values[0] === '' || option.value === '') {\n option.selected = false;\n }\n\n if (option.value !== '' && has(values, option.value, true)) {\n option.selected = true;\n }//if\n });\n }\n\n /**\n * Get filter values for a given column index\n * @param {Number} colIndex Column index\n * @returns {Array} values Array of selected values\n */\n getValues(colIndex) {\n let tf = this.tf;\n let slc = tf.getFilterElement(colIndex);\n let values = [];\n\n // IE >= 9 does not support the selectedOptions property :(\n if (slc.selectedOptions) {\n [].forEach.call(slc.selectedOptions,\n option => values.push(option.value));\n } else {\n [].forEach.call(slc.options, (option) => {\n if (option.selected) {\n values.push(option.value);\n }\n });\n }\n\n return values;\n }\n\n /**\n * Destroy Dropdown instance\n */\n destroy() {\n this.emitter.off(\n ['build-select-filter'],\n (colIndex, isLinked, isExternal) =>\n this.build(colIndex, isLinked, isExternal)\n );\n this.emitter.off(\n ['select-options'],\n (tf, colIndex, values) => this.selectOptions(colIndex, values)\n );\n this.emitter.off(['rows-changed'], () => this.refreshAll());\n this.initialized = false;\n }\n}\n" }, { - "__docId__": 330, + "__docId__": 355, "kind": "variable", "static": true, "variation": null, @@ -7286,7 +8094,7 @@ } }, { - "__docId__": 331, + "__docId__": 356, "kind": "class", "static": true, "variation": null, @@ -7305,7 +8113,7 @@ ] }, { - "__docId__": 332, + "__docId__": 357, "kind": "constructor", "static": false, "variation": null, @@ -7330,7 +8138,7 @@ "generator": false }, { - "__docId__": 333, + "__docId__": 358, "kind": "member", "static": false, "variation": null, @@ -7350,7 +8158,7 @@ } }, { - "__docId__": 334, + "__docId__": 359, "kind": "member", "static": false, "variation": null, @@ -7370,7 +8178,7 @@ } }, { - "__docId__": 335, + "__docId__": 360, "kind": "member", "static": false, "variation": null, @@ -7390,7 +8198,7 @@ } }, { - "__docId__": 336, + "__docId__": 361, "kind": "member", "static": false, "variation": null, @@ -7407,7 +8215,7 @@ } }, { - "__docId__": 337, + "__docId__": 362, "kind": "member", "static": false, "variation": null, @@ -7427,7 +8235,7 @@ } }, { - "__docId__": 338, + "__docId__": 363, "kind": "member", "static": false, "variation": null, @@ -7447,7 +8255,7 @@ } }, { - "__docId__": 339, + "__docId__": 364, "kind": "method", "static": false, "variation": null, @@ -7472,7 +8280,7 @@ "generator": false }, { - "__docId__": 340, + "__docId__": 365, "kind": "method", "static": false, "variation": null, @@ -7486,7 +8294,7 @@ "generator": false }, { - "__docId__": 341, + "__docId__": 366, "kind": "method", "static": false, "variation": null, @@ -7500,7 +8308,7 @@ "generator": false }, { - "__docId__": 342, + "__docId__": 367, "kind": "method", "static": false, "variation": null, @@ -7545,7 +8353,7 @@ "generator": false }, { - "__docId__": 343, + "__docId__": 368, "kind": "member", "static": false, "variation": null, @@ -7568,7 +8376,7 @@ } }, { - "__docId__": 344, + "__docId__": 369, "kind": "method", "static": false, "variation": null, @@ -7603,7 +8411,7 @@ "generator": false }, { - "__docId__": 345, + "__docId__": 370, "kind": "member", "static": false, "variation": null, @@ -7621,7 +8429,7 @@ } }, { - "__docId__": 346, + "__docId__": 371, "kind": "member", "static": false, "variation": null, @@ -7639,7 +8447,7 @@ } }, { - "__docId__": 347, + "__docId__": 372, "kind": "member", "static": false, "variation": null, @@ -7657,7 +8465,7 @@ } }, { - "__docId__": 348, + "__docId__": 373, "kind": "member", "static": false, "variation": null, @@ -7675,7 +8483,7 @@ } }, { - "__docId__": 349, + "__docId__": 374, "kind": "member", "static": false, "variation": null, @@ -7693,7 +8501,7 @@ } }, { - "__docId__": 350, + "__docId__": 375, "kind": "method", "static": false, "variation": null, @@ -7748,7 +8556,7 @@ "generator": false }, { - "__docId__": 351, + "__docId__": 376, "kind": "method", "static": false, "variation": null, @@ -7778,7 +8586,7 @@ "generator": false }, { - "__docId__": 352, + "__docId__": 377, "kind": "method", "static": false, "variation": null, @@ -7813,7 +8621,7 @@ "generator": false }, { - "__docId__": 353, + "__docId__": 378, "kind": "method", "static": false, "variation": null, @@ -7852,7 +8660,7 @@ "generator": false }, { - "__docId__": 354, + "__docId__": 379, "kind": "method", "static": false, "variation": null, @@ -7866,7 +8674,7 @@ "generator": false }, { - "__docId__": 355, + "__docId__": 380, "kind": "member", "static": false, "variation": null, @@ -7884,7 +8692,7 @@ } }, { - "__docId__": 356, + "__docId__": 381, "kind": "file", "static": true, "variation": null, @@ -7897,7 +8705,7 @@ "content": "import {Feature} from '../feature';\nimport {createElm, removeElm, elm, tag} from '../dom';\nimport {addEvt, targetEvt} from '../event';\nimport {contains} from '../string';\nimport {NONE} from '../const';\n\n/**\n * Grid layout, table with fixed headers\n */\nexport class GridLayout extends Feature {\n\n /**\n * Creates an instance of GridLayout\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'gridLayout');\n\n let f = this.config;\n\n /**\n * Grid-layout container width as CSS string\n * @type {String}\n */\n this.width = f.grid_width || null;\n\n /**\n * Grid-layout container height as CSS string\n * @type {String}\n */\n this.height = f.grid_height || null;\n\n /**\n * Css class for main container element\n * @type {String}\n */\n this.mainContCssClass = f.grid_cont_css_class || 'grd_Cont';\n\n /**\n * Css class for body table container element\n * @type {String}\n */\n this.contCssClass = f.grid_tbl_cont_css_class || 'grd_tblCont';\n\n /**\n * Css class for headers table container element\n * @type {String}\n */\n this.headContCssClass = f.grid_tblHead_cont_css_class ||\n 'grd_headTblCont';\n\n /**\n * Css class for toolbar container element (rows counter, paging etc.)\n * @type {String}\n */\n this.infDivCssClass = f.grid_inf_grid_css_class || 'grd_inf';\n\n /**\n * Index of the headers row, default: 0\n * @type {Number}\n */\n this.headRowIndex = f.grid_headers_row_index || 0;\n\n /**\n * Collection of the header row indexes to be moved into headers table\n * @type {Array}\n */\n this.headRows = f.grid_headers_rows || [0];\n\n /**\n * Enable or disable column filters generation, default: true\n * @type {Boolean}\n */\n this.enableFilters = f.grid_enable_default_filters === false ?\n false : true;\n\n /**\n * Enable or disable column headers, default: false\n * @type {Boolean}\n */\n this.noHeaders = Boolean(f.grid_no_headers);\n\n /**\n * Grid-layout default column widht as CSS string\n * @type {String}\n */\n this.defaultColWidth = f.grid_default_col_width || '100px';\n\n /**\n * List of column elements\n * @type {Array}\n * @private\n */\n this.colElms = [];\n\n /**\n * Prefix for grid-layout filter's cell ID\n * @type {String}\n * @private\n */\n this.prfxGridFltTd = '_td_';\n\n /**\n * Prefix for grid-layout header's cell ID\n * @type {String}\n * @private\n */\n this.prfxGridTh = 'tblHeadTh_';\n\n /**\n * Mark-up of original HTML table\n * @type {String}\n * @private\n */\n this.sourceTblHtml = tf.tbl.outerHTML;\n\n /**\n * Indicates if working table has column elements\n * @type {Boolean}\n * @private\n */\n this.tblHasColTag = tag(tf.tbl, 'col').length > 0 ? true : false;\n\n /**\n * Main container element\n * @private\n */\n this.tblMainCont = null;\n\n /**\n * Table container element\n * @private\n */\n this.tblCont = null;\n\n /**\n * Headers' table container element\n * @private\n */\n this.headTblCont = null;\n\n /**\n * Headers' table element\n * @private\n */\n this.headTbl = null;\n\n // filters flag at TF level\n tf.fltGrid = this.enableFilters;\n }\n\n /**\n * Generates a grid with fixed headers\n * TODO: reduce size of init by extracting single purposed methods\n */\n init() {\n let tf = this.tf;\n let tbl = tf.tbl;\n\n if (this.initialized) {\n return;\n }\n\n // Override relevant TableFilter properties\n this.setOverrides();\n\n // Assign default column widths\n this.setDefaultColWidths();\n\n // Initial table width\n let tblW = this.initialTableWidth();\n\n //Main container: it will contain all the elements\n this.tblMainCont = this.createContainer(\n 'div', this.mainContCssClass);\n if (this.width) {\n this.tblMainCont.style.width = this.width;\n }\n tbl.parentNode.insertBefore(this.tblMainCont, tbl);\n\n //Table container: div wrapping content table\n this.tblCont = this.createContainer('div', this.contCssClass);\n this.setConfigWidth(this.tblCont);\n if (this.height) {\n this.tblCont.style.height = this.height;\n }\n tbl.parentNode.insertBefore(this.tblCont, tbl);\n let t = removeElm(tbl);\n this.tblCont.appendChild(t);\n\n //In case table width is expressed in %\n if (tbl.style.width === '') {\n tbl.style.width = (contains('%', tblW) ?\n tbl.clientWidth : tblW) + 'px';\n }\n\n let d = removeElm(this.tblCont);\n this.tblMainCont.appendChild(d);\n\n //Headers table container: div wrapping headers table\n this.headTblCont = this.createContainer(\n 'div', this.headContCssClass);\n this.setConfigWidth(this.headTblCont);\n\n //Headers table\n this.headTbl = createElm('table');\n let tH = createElm('tHead');\n\n //1st row should be headers row, ids are added if not set\n //Those ids are used by the sort feature\n let hRow = tbl.rows[this.headRowIndex];\n let sortTriggers = this.getSortTriggerIds(hRow);\n\n //Filters row is created\n let filtersRow = this.createFiltersRow();\n\n //Headers row are moved from content table to headers table\n this.setHeadersRow(tH);\n\n this.headTbl.appendChild(tH);\n if (tf.filtersRowIndex === 0) {\n tH.insertBefore(filtersRow, hRow);\n } else {\n tH.appendChild(filtersRow);\n }\n\n this.headTblCont.appendChild(this.headTbl);\n this.tblCont.parentNode.insertBefore(this.headTblCont, this.tblCont);\n\n //THead needs to be removed in content table for sort feature\n let thead = tag(tbl, 'thead');\n if (thead.length > 0) {\n tbl.removeChild(thead[0]);\n }\n\n //Headers table style\n this.headTbl.style.tableLayout = 'fixed';\n tbl.style.tableLayout = 'fixed';\n this.headTbl.cellPadding = tbl.cellPadding;\n this.headTbl.cellSpacing = tbl.cellSpacing;\n // this.headTbl.style.width = tbl.style.width;\n\n //content table without headers needs col widths to be reset\n tf.setColWidths(this.headTbl);\n\n //Headers container width\n // this.headTblCont.style.width = this.tblCont.clientWidth+'px';\n\n tbl.style.width = '';\n //\n this.headTbl.style.width = tbl.clientWidth + 'px';\n //\n\n //scroll synchronisation\n addEvt(this.tblCont, 'scroll', (evt) => {\n let elm = targetEvt(evt);\n let scrollLeft = elm.scrollLeft;\n this.headTblCont.scrollLeft = scrollLeft;\n //New pointerX calc taking into account scrollLeft\n // if(!o.isPointerXOverwritten){\n // try{\n // o.Evt.pointerX = function(evt){\n // let e = evt || global.event;\n // let bdScrollLeft = tf_StandardBody().scrollLeft +\n // scrollLeft;\n // return (e.pageX + scrollLeft) ||\n // (e.clientX + bdScrollLeft);\n // };\n // o.isPointerXOverwritten = true;\n // } catch(err) {\n // o.isPointerXOverwritten = false;\n // }\n // }\n });\n\n // TODO: Trigger a custom event handled by sort extension\n let sort = tf.extension('sort');\n if (sort) {\n sort.asyncSort = true;\n sort.triggerIds = sortTriggers;\n }\n\n //Col elements are enough to keep column widths after sorting and\n //filtering\n this.setColumnElements();\n\n if (tf.popupFilters) {\n filtersRow.style.display = NONE;\n }\n\n if (tbl.clientWidth !== this.headTbl.clientWidth) {\n tbl.style.width = this.headTbl.clientWidth + 'px';\n }\n\n /** @inherited */\n this.initialized = true;\n }\n\n /**\n * Overrides TableFilter instance properties to adjust to grid layout mode\n * @private\n */\n setOverrides() {\n let tf = this.tf;\n tf.refRow = 0;\n tf.headersRow = 0;\n tf.filtersRowIndex = 1;\n tf.isExternalFlt = true;\n }\n\n /**\n * Set grid-layout default column widths if column widths are not defined\n * @private\n */\n setDefaultColWidths() {\n let tf = this.tf;\n if (tf.hasColWidths) {\n return;\n }\n for (let k = 0, len = tf.getCellsNb(); k < len; k++) {\n let colW;\n let cell = tf.tbl.rows[tf.getHeadersRowIndex()].cells[k];\n if (cell.width !== '') {\n colW = cell.width;\n } else if (cell.style.width !== '') {\n colW = parseInt(cell.style.width, 10);\n } else {\n colW = this.defaultColWidth;\n }\n tf.colWidths[k] = colW;\n }\n tf.hasColWidths = true;\n tf.setColWidths();\n }\n\n /**\n * Initial table width\n * @returns {Number}\n * @private\n */\n initialTableWidth() {\n let tbl = this.tf.tbl;\n let width; //initial table width\n\n if (tbl.width !== '') {\n width = tbl.width;\n }\n else if (tbl.style.width !== '') {\n width = tbl.style.width;\n } else {\n width = tbl.clientWidth;\n }\n return parseInt(width, 10);\n }\n\n /**\n * Creates container element\n * @param {String} tag Tag name\n * @param {String} className Css class to assign to element\n * @returns {DOMElement}\n * @private\n */\n createContainer(tag, className) {\n let element = createElm(tag);\n element.className = className;\n return element;\n }\n\n /**\n * Creates filters row with cells\n * @returns {HTMLTableRowElement}\n * @private\n */\n createFiltersRow() {\n let tf = this.tf;\n let filtersRow = createElm('tr');\n if (this.enableFilters && tf.fltGrid) {\n tf.externalFltTgtIds = [];\n for (let j = 0; j < tf.getCellsNb(); j++) {\n let fltTdId = `${tf.prfxFlt + j + this.prfxGridFltTd + tf.id}`;\n let cl = createElm(tf.fltCellTag, ['id', fltTdId]);\n filtersRow.appendChild(cl);\n tf.externalFltTgtIds[j] = fltTdId;\n }\n }\n return filtersRow;\n }\n\n /**\n * Generates column elements if necessary and assigns their widths\n * @private\n */\n setColumnElements() {\n let tf = this.tf;\n let cols = tag(tf.tbl, 'col');\n this.tblHasColTag = cols.length > 0;\n\n for (let k = (tf.nbCells - 1); k >= 0; k--) {\n let col;\n\n if (!this.tblHasColTag) {\n col = createElm('col');\n tf.tbl.insertBefore(col, tf.tbl.firstChild);\n } else {\n col = cols[k];\n }\n col.style.width = tf.colWidths[k];\n this.colElms[k] = col;\n }\n this.tblHasColTag = true;\n }\n\n /**\n * Sets headers row in headers table\n * @param {HTMLHeadElement} tableHead Table head element\n * @private\n */\n setHeadersRow(tableHead) {\n if (this.noHeaders) {\n // Handle table with no headers, assuming here headers do not\n // exist\n tableHead.appendChild(createElm('tr'));\n } else {\n // Headers row are moved from content table to headers table\n for (let i = 0; i < this.headRows.length; i++) {\n let row = this.tf.tbl.rows[this.headRows[i]];\n tableHead.appendChild(row);\n }\n }\n }\n\n /**\n * Sets width defined in configuration to passed element\n * @param {DOMElement} element DOM element\n * @private\n */\n setConfigWidth(element) {\n if (!this.width) {\n return;\n }\n if (this.width.indexOf('%') !== -1) {\n element.style.width = '100%';\n } else {\n element.style.width = this.width;\n }\n }\n\n /**\n * Returns a list of header IDs used for specifing external sort triggers\n * @param {HTMLTableRowElement} row DOM row element\n * @returns {Array} List of IDs\n * @private\n */\n getSortTriggerIds(row) {\n let tf = this.tf;\n let sortTriggers = [];\n for (let n = 0; n < tf.getCellsNb(); n++) {\n let c = row.cells[n];\n let thId = c.getAttribute('id');\n if (!thId || thId === '') {\n thId = `${this.prfxGridTh + n}_${tf.id}`;\n c.setAttribute('id', thId);\n }\n sortTriggers.push(thId);\n }\n return sortTriggers;\n }\n\n /**\n * Removes the grid layout\n */\n destroy() {\n let tf = this.tf;\n let tbl = tf.tbl;\n\n if (!this.initialized) {\n return;\n }\n let t = removeElm(tbl);\n this.tblMainCont.parentNode.insertBefore(t, this.tblMainCont);\n removeElm(this.tblMainCont);\n\n this.tblMainCont = null;\n this.headTblCont = null;\n this.headTbl = null;\n this.tblCont = null;\n\n tbl.outerHTML = this.sourceTblHtml;\n //needed to keep reference of table element for future usage\n this.tf.tbl = elm(tf.id);\n\n this.initialized = false;\n }\n}\n" }, { - "__docId__": 357, + "__docId__": 382, "kind": "class", "static": true, "variation": null, @@ -7916,7 +8724,7 @@ ] }, { - "__docId__": 358, + "__docId__": 383, "kind": "constructor", "static": false, "variation": null, @@ -7941,7 +8749,7 @@ "generator": false }, { - "__docId__": 359, + "__docId__": 384, "kind": "member", "static": false, "variation": null, @@ -7961,7 +8769,7 @@ } }, { - "__docId__": 360, + "__docId__": 385, "kind": "member", "static": false, "variation": null, @@ -7981,7 +8789,7 @@ } }, { - "__docId__": 361, + "__docId__": 386, "kind": "member", "static": false, "variation": null, @@ -8001,7 +8809,7 @@ } }, { - "__docId__": 362, + "__docId__": 387, "kind": "member", "static": false, "variation": null, @@ -8021,7 +8829,7 @@ } }, { - "__docId__": 363, + "__docId__": 388, "kind": "member", "static": false, "variation": null, @@ -8041,7 +8849,7 @@ } }, { - "__docId__": 364, + "__docId__": 389, "kind": "member", "static": false, "variation": null, @@ -8061,7 +8869,7 @@ } }, { - "__docId__": 365, + "__docId__": 390, "kind": "member", "static": false, "variation": null, @@ -8081,7 +8889,7 @@ } }, { - "__docId__": 366, + "__docId__": 391, "kind": "member", "static": false, "variation": null, @@ -8101,7 +8909,7 @@ } }, { - "__docId__": 367, + "__docId__": 392, "kind": "member", "static": false, "variation": null, @@ -8121,7 +8929,7 @@ } }, { - "__docId__": 368, + "__docId__": 393, "kind": "member", "static": false, "variation": null, @@ -8141,7 +8949,7 @@ } }, { - "__docId__": 369, + "__docId__": 394, "kind": "member", "static": false, "variation": null, @@ -8161,7 +8969,7 @@ } }, { - "__docId__": 370, + "__docId__": 395, "kind": "member", "static": false, "variation": null, @@ -8181,7 +8989,7 @@ } }, { - "__docId__": 371, + "__docId__": 396, "kind": "member", "static": false, "variation": null, @@ -8201,7 +9009,7 @@ } }, { - "__docId__": 372, + "__docId__": 397, "kind": "member", "static": false, "variation": null, @@ -8221,7 +9029,7 @@ } }, { - "__docId__": 373, + "__docId__": 398, "kind": "member", "static": false, "variation": null, @@ -8241,7 +9049,7 @@ } }, { - "__docId__": 374, + "__docId__": 399, "kind": "member", "static": false, "variation": null, @@ -8261,7 +9069,7 @@ } }, { - "__docId__": 375, + "__docId__": 400, "kind": "member", "static": false, "variation": null, @@ -8278,7 +9086,7 @@ } }, { - "__docId__": 376, + "__docId__": 401, "kind": "member", "static": false, "variation": null, @@ -8295,7 +9103,7 @@ } }, { - "__docId__": 377, + "__docId__": 402, "kind": "member", "static": false, "variation": null, @@ -8312,7 +9120,7 @@ } }, { - "__docId__": 378, + "__docId__": 403, "kind": "member", "static": false, "variation": null, @@ -8329,7 +9137,7 @@ } }, { - "__docId__": 379, + "__docId__": 404, "kind": "method", "static": false, "variation": null, @@ -8343,7 +9151,7 @@ "generator": false }, { - "__docId__": 380, + "__docId__": 405, "kind": "member", "static": false, "variation": null, @@ -8361,7 +9169,7 @@ } }, { - "__docId__": 381, + "__docId__": 406, "kind": "member", "static": false, "variation": null, @@ -8379,7 +9187,7 @@ } }, { - "__docId__": 382, + "__docId__": 407, "kind": "member", "static": false, "variation": null, @@ -8397,7 +9205,7 @@ } }, { - "__docId__": 383, + "__docId__": 408, "kind": "member", "static": false, "variation": null, @@ -8415,7 +9223,7 @@ } }, { - "__docId__": 384, + "__docId__": 409, "kind": "member", "static": false, "variation": null, @@ -8438,7 +9246,7 @@ } }, { - "__docId__": 385, + "__docId__": 410, "kind": "method", "static": false, "variation": null, @@ -8452,7 +9260,7 @@ "generator": false }, { - "__docId__": 386, + "__docId__": 411, "kind": "method", "static": false, "variation": null, @@ -8466,7 +9274,7 @@ "generator": false }, { - "__docId__": 387, + "__docId__": 412, "kind": "method", "static": false, "variation": null, @@ -8494,7 +9302,7 @@ "generator": false }, { - "__docId__": 388, + "__docId__": 413, "kind": "method", "static": false, "variation": null, @@ -8543,7 +9351,7 @@ "generator": false }, { - "__docId__": 389, + "__docId__": 414, "kind": "method", "static": false, "variation": null, @@ -8571,7 +9379,7 @@ "generator": false }, { - "__docId__": 390, + "__docId__": 415, "kind": "method", "static": false, "variation": null, @@ -8585,7 +9393,7 @@ "generator": false }, { - "__docId__": 391, + "__docId__": 416, "kind": "member", "static": false, "variation": null, @@ -8603,7 +9411,7 @@ } }, { - "__docId__": 392, + "__docId__": 417, "kind": "member", "static": false, "variation": null, @@ -8621,7 +9429,7 @@ } }, { - "__docId__": 393, + "__docId__": 418, "kind": "method", "static": false, "variation": null, @@ -8646,7 +9454,7 @@ "generator": false }, { - "__docId__": 394, + "__docId__": 419, "kind": "method", "static": false, "variation": null, @@ -8671,7 +9479,7 @@ "generator": false }, { - "__docId__": 395, + "__docId__": 420, "kind": "method", "static": false, "variation": null, @@ -8710,7 +9518,7 @@ "generator": false }, { - "__docId__": 396, + "__docId__": 421, "kind": "method", "static": false, "variation": null, @@ -8724,7 +9532,7 @@ "generator": false }, { - "__docId__": 397, + "__docId__": 422, "kind": "member", "static": false, "variation": null, @@ -8742,7 +9550,7 @@ } }, { - "__docId__": 398, + "__docId__": 423, "kind": "member", "static": false, "variation": null, @@ -8760,7 +9568,7 @@ } }, { - "__docId__": 399, + "__docId__": 424, "kind": "member", "static": false, "variation": null, @@ -8778,7 +9586,7 @@ } }, { - "__docId__": 400, + "__docId__": 425, "kind": "member", "static": false, "variation": null, @@ -8796,7 +9604,7 @@ } }, { - "__docId__": 401, + "__docId__": 426, "kind": "member", "static": false, "variation": null, @@ -8814,7 +9622,7 @@ } }, { - "__docId__": 402, + "__docId__": 427, "kind": "file", "static": true, "variation": null, @@ -8827,7 +9635,7 @@ "content": "import {addEvt, removeEvt} from '../event';\nimport {root} from '../root';\n\nconst JSON = root.JSON;\nconst location = root.location;\nconst decodeURIComponent = root.decodeURIComponent;\nconst encodeURIComponent = root.encodeURIComponent;\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}\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 = `#${encodeURIComponent(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__": 403, + "__docId__": 428, "kind": "variable", "static": true, "variation": null, @@ -8848,7 +9656,7 @@ } }, { - "__docId__": 404, + "__docId__": 429, "kind": "variable", "static": true, "variation": null, @@ -8869,7 +9677,7 @@ } }, { - "__docId__": 405, + "__docId__": 430, "kind": "variable", "static": true, "variation": null, @@ -8890,7 +9698,7 @@ } }, { - "__docId__": 406, + "__docId__": 431, "kind": "variable", "static": true, "variation": null, @@ -8911,7 +9719,7 @@ } }, { - "__docId__": 407, + "__docId__": 432, "kind": "variable", "static": true, "variation": null, @@ -8931,7 +9739,7 @@ } }, { - "__docId__": 408, + "__docId__": 433, "kind": "class", "static": true, "variation": null, @@ -8957,7 +9765,7 @@ "interface": false }, { - "__docId__": 409, + "__docId__": 434, "kind": "constructor", "static": false, "variation": null, @@ -8982,7 +9790,7 @@ "generator": false }, { - "__docId__": 410, + "__docId__": 435, "kind": "member", "static": false, "variation": null, @@ -9002,7 +9810,7 @@ } }, { - "__docId__": 411, + "__docId__": 436, "kind": "member", "static": false, "variation": null, @@ -9022,7 +9830,7 @@ } }, { - "__docId__": 412, + "__docId__": 437, "kind": "member", "static": false, "variation": null, @@ -9042,7 +9850,7 @@ } }, { - "__docId__": 413, + "__docId__": 438, "kind": "member", "static": false, "variation": null, @@ -9059,7 +9867,7 @@ } }, { - "__docId__": 414, + "__docId__": 439, "kind": "method", "static": false, "variation": null, @@ -9073,7 +9881,7 @@ "generator": false }, { - "__docId__": 415, + "__docId__": 440, "kind": "member", "static": false, "variation": null, @@ -9091,7 +9899,7 @@ } }, { - "__docId__": 416, + "__docId__": 441, "kind": "member", "static": false, "variation": null, @@ -9109,7 +9917,7 @@ } }, { - "__docId__": 417, + "__docId__": 442, "kind": "method", "static": false, "variation": null, @@ -9134,7 +9942,7 @@ "generator": false }, { - "__docId__": 418, + "__docId__": 443, "kind": "member", "static": false, "variation": null, @@ -9152,7 +9960,7 @@ } }, { - "__docId__": 419, + "__docId__": 444, "kind": "method", "static": false, "variation": null, @@ -9191,7 +9999,7 @@ "generator": false }, { - "__docId__": 420, + "__docId__": 445, "kind": "method", "static": false, "variation": null, @@ -9205,7 +10013,7 @@ "generator": false }, { - "__docId__": 421, + "__docId__": 446, "kind": "method", "static": false, "variation": null, @@ -9219,7 +10027,7 @@ "generator": false }, { - "__docId__": 422, + "__docId__": 447, "kind": "member", "static": false, "variation": null, @@ -9237,7 +10045,7 @@ } }, { - "__docId__": 423, + "__docId__": 448, "kind": "member", "static": false, "variation": null, @@ -9255,7 +10063,7 @@ } }, { - "__docId__": 424, + "__docId__": 449, "kind": "member", "static": false, "variation": null, @@ -9273,7 +10081,7 @@ } }, { - "__docId__": 425, + "__docId__": 450, "kind": "file", "static": true, "variation": null, @@ -9286,7 +10094,7 @@ "content": "import {Feature} from '../feature';\nimport {createElm, createText, elm, removeElm} from '../dom';\nimport {addEvt, targetEvt, removeEvt} from '../event';\nimport {NONE} from '../const';\nimport {root} from '../root';\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 let 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 * Button DOM element\n * @type {DOMElement}\n */\n this.btn = null;\n\n /**\n * Help container DOM element\n * @type {DOMElement}\n */\n this.cont = null;\n\n /**\n * Bound mouseup wrapper\n * @private\n */\n this.boundMouseup = null;\n\n /**\n * Default HTML appended to instructions text\n * @type {String}\n */\n this.defaultHtml = '

TableFilter ' +\n 'v' + tf.version + '

' + '' + WEBSITE_URL + '' +\n '
©2015-' + tf.year + ' {AUTHOR}' +\n '
' +\n 'Close
';\n\n this.emitter.on(['init-help'], () => this.init());\n }\n\n /**\n * Mouse-up event handler handling popup auto-close behaviour\n * @private\n */\n onMouseup(evt) {\n let targetElm = targetEvt(evt);\n\n while (targetElm && targetElm !== this.cont && targetElm !== this.btn) {\n targetElm = targetElm.parentNode;\n }\n\n if (targetElm !== this.cont && targetElm !== this.btn) {\n this.toggle();\n }\n\n return;\n }\n\n /**\n * Initialise Help instance\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n let tf = this.tf;\n\n let btn = createElm('span');\n let cont = createElm('div');\n\n this.boundMouseup = this.onMouseup.bind(this);\n\n //help button is added to defined element\n if (!this.tgtId) {\n tf.setToolbar();\n }\n let targetEl = !this.tgtId ? tf.rDiv : elm(this.tgtId);\n targetEl.appendChild(btn);\n\n let divContainer = !this.contTgtId ? btn : elm(this.contTgtId);\n\n if (!this.btnHtml) {\n divContainer.appendChild(cont);\n let helplink = createElm('a', ['href', 'javascript:void(0);']);\n helplink.className = this.btnCssClass;\n helplink.appendChild(createText(this.btnText));\n btn.appendChild(helplink);\n addEvt(helplink, 'click', () => this.toggle());\n } else {\n btn.innerHTML = this.btnHtml;\n let helpEl = btn.firstChild;\n addEvt(helpEl, 'click', () => this.toggle());\n divContainer.appendChild(cont);\n }\n\n if (!this.instrHtml) {\n cont.innerHTML = this.instrText;\n cont.className = this.contCssClass;\n } else {\n if (this.contTgtId) {\n divContainer.appendChild(cont);\n }\n cont.innerHTML = this.instrHtml;\n if (!this.contTgtId) {\n cont.className = this.contCssClass;\n }\n }\n cont.innerHTML += this.defaultHtml;\n addEvt(cont, 'click', () => this.toggle());\n\n this.cont = cont;\n this.btn = btn;\n /** @inherited */\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\n // ensure mouseup event handler is removed\n removeEvt(root, 'mouseup', this.boundMouseup);\n\n let divDisplay = this.cont.style.display;\n if (divDisplay === '' || divDisplay === NONE) {\n this.cont.style.display = 'inline';\n addEvt(root, 'mouseup', this.boundMouseup);\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\n removeElm(this.cont);\n this.cont = null;\n\n this.boundMouseup = null;\n\n this.initialized = false;\n }\n\n}\n" }, { - "__docId__": 426, + "__docId__": 451, "kind": "variable", "static": true, "variation": null, @@ -9307,7 +10115,7 @@ } }, { - "__docId__": 427, + "__docId__": 452, "kind": "variable", "static": true, "variation": null, @@ -9328,7 +10136,7 @@ } }, { - "__docId__": 428, + "__docId__": 453, "kind": "class", "static": true, "variation": null, @@ -9347,7 +10155,7 @@ ] }, { - "__docId__": 429, + "__docId__": 454, "kind": "constructor", "static": false, "variation": null, @@ -9372,7 +10180,7 @@ "generator": false }, { - "__docId__": 430, + "__docId__": 455, "kind": "member", "static": false, "variation": null, @@ -9392,7 +10200,7 @@ } }, { - "__docId__": 431, + "__docId__": 456, "kind": "member", "static": false, "variation": null, @@ -9412,7 +10220,7 @@ } }, { - "__docId__": 432, + "__docId__": 457, "kind": "member", "static": false, "variation": null, @@ -9432,7 +10240,7 @@ } }, { - "__docId__": 433, + "__docId__": 458, "kind": "member", "static": false, "variation": null, @@ -9452,7 +10260,7 @@ } }, { - "__docId__": 434, + "__docId__": 459, "kind": "member", "static": false, "variation": null, @@ -9472,7 +10280,7 @@ } }, { - "__docId__": 435, + "__docId__": 460, "kind": "member", "static": false, "variation": null, @@ -9492,7 +10300,7 @@ } }, { - "__docId__": 436, + "__docId__": 461, "kind": "member", "static": false, "variation": null, @@ -9512,7 +10320,7 @@ } }, { - "__docId__": 437, + "__docId__": 462, "kind": "member", "static": false, "variation": null, @@ -9532,7 +10340,7 @@ } }, { - "__docId__": 438, + "__docId__": 463, "kind": "member", "static": false, "variation": null, @@ -9552,7 +10360,7 @@ } }, { - "__docId__": 439, + "__docId__": 464, "kind": "member", "static": false, "variation": null, @@ -9572,7 +10380,7 @@ } }, { - "__docId__": 440, + "__docId__": 465, "kind": "member", "static": false, "variation": null, @@ -9589,7 +10397,7 @@ } }, { - "__docId__": 441, + "__docId__": 466, "kind": "member", "static": false, "variation": null, @@ -9609,7 +10417,7 @@ } }, { - "__docId__": 442, + "__docId__": 467, "kind": "method", "static": false, "variation": null, @@ -9630,7 +10438,7 @@ "generator": false }, { - "__docId__": 443, + "__docId__": 468, "kind": "method", "static": false, "variation": null, @@ -9644,7 +10452,7 @@ "generator": false }, { - "__docId__": 444, + "__docId__": 469, "kind": "member", "static": false, "variation": null, @@ -9662,7 +10470,7 @@ } }, { - "__docId__": 445, + "__docId__": 470, "kind": "member", "static": false, "variation": null, @@ -9680,7 +10488,7 @@ } }, { - "__docId__": 446, + "__docId__": 471, "kind": "member", "static": false, "variation": null, @@ -9698,7 +10506,7 @@ } }, { - "__docId__": 447, + "__docId__": 472, "kind": "member", "static": false, "variation": null, @@ -9721,7 +10529,7 @@ } }, { - "__docId__": 448, + "__docId__": 473, "kind": "method", "static": false, "variation": null, @@ -9735,7 +10543,7 @@ "generator": false }, { - "__docId__": 449, + "__docId__": 474, "kind": "method", "static": false, "variation": null, @@ -9749,7 +10557,7 @@ "generator": false }, { - "__docId__": 450, + "__docId__": 475, "kind": "member", "static": false, "variation": null, @@ -9767,7 +10575,7 @@ } }, { - "__docId__": 451, + "__docId__": 476, "kind": "member", "static": false, "variation": null, @@ -9785,7 +10593,7 @@ } }, { - "__docId__": 452, + "__docId__": 477, "kind": "member", "static": false, "variation": null, @@ -9803,7 +10611,7 @@ } }, { - "__docId__": 453, + "__docId__": 478, "kind": "member", "static": false, "variation": null, @@ -9821,7 +10629,7 @@ } }, { - "__docId__": 454, + "__docId__": 479, "kind": "file", "static": true, "variation": null, @@ -9834,7 +10642,7 @@ "content": "import {createText, createElm, getText} from '../dom';\nimport {isArray} from '../types';\nimport {rgxEsc} from '../string';\n\n/**\n * Highlight matched keywords upon filtering\n *\n * @export\n * @class HighlightKeyword\n */\nexport class HighlightKeyword {\n\n /**\n * Creates an instance of HighlightKeyword\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n let f = tf.config();\n\n /**\n * Css class for highlighted term\n * @type {String}\n */\n this.highlightCssClass = f.highlight_css_class || 'keyword';\n\n /**\n * TableFilter instance\n * @type {TableFilter}\n */\n this.tf = tf;\n\n /**\n * TableFilter's emitter instance\n * @type {Emitter}\n */\n this.emitter = tf.emitter;\n }\n\n /**\n * Initializes HighlightKeyword instance\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, term) => this._processTerm(cell, term)\n );\n }\n\n /**\n * Highlight occurences of searched term in passed node\n * @param {Node} node\n * @param {String} term Searched term\n * @param {String} cssClass Css class name\n *\n * TODO: refactor this method\n */\n highlight(node, term, 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], term, cssClass);\n }\n }\n\n if (node.nodeType === 3) {\n let nodeVal = node.nodeValue.toLowerCase();\n let termIdx = nodeVal.indexOf(term.toLowerCase());\n\n if (termIdx !== -1) {\n let pn = node.parentNode;\n if (pn && pn.className !== cssClass) {\n // term not highlighted yet\n let nv = node.nodeValue,\n // Create a load of replacement nodes\n before = createText(nv.substr(0, termIdx)),\n value = nv.substr(termIdx, term.length),\n after = createText(nv.substr(termIdx + term.length)),\n text = createText(value),\n container = createElm('span');\n container.className = cssClass;\n container.appendChild(text);\n pn.insertBefore(before, node);\n pn.insertBefore(container, 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} term\n * @param {String} cssClass Css class to remove\n */\n unhighlight(term, 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\n if (nodeVal.toLowerCase().indexOf(term.toLowerCase()) !== -1) {\n let parentNode = n.parentNode;\n parentNode.replaceChild(createText(nodeVal), n);\n parentNode.normalize();\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 /** Remove feature */\n destroy() {\n this.emitter.off(\n ['before-filtering', 'destroy'],\n () => this.unhighlightAll()\n );\n this.emitter.off(\n ['highlight-keyword'],\n (tf, cell, term) => this._processTerm(cell, term)\n );\n }\n\n /**\n * Ensure filtering operators are handled before highlighting any match\n * @param {any} Table cell to look searched term into\n * @param {any} Searched termIdx\n */\n _processTerm(cell, term) {\n let tf = this.tf;\n let reLk = new RegExp(rgxEsc(tf.lkOperator));\n let reEq = new RegExp(tf.eqOperator);\n let reSt = new RegExp(tf.stOperator);\n let reEn = new RegExp(tf.enOperator);\n let reLe = new RegExp(tf.leOperator);\n let reGe = new RegExp(tf.geOperator);\n let reL = new RegExp(tf.lwOperator);\n let reG = new RegExp(tf.grOperator);\n let reD = new RegExp(tf.dfOperator);\n\n term = term\n .replace(reLk, '')\n .replace(reEq, '')\n .replace(reSt, '')\n .replace(reEn, '');\n\n if (reLe.test(term) || reGe.test(term) || reL.test(term) ||\n reG.test(term) || reD.test(term)) {\n term = getText(cell);\n }\n\n if (term === '') {\n return;\n }\n\n this.highlight(cell, term, this.highlightCssClass);\n }\n}\n" }, { - "__docId__": 455, + "__docId__": 480, "kind": "class", "static": true, "variation": null, @@ -9860,7 +10668,7 @@ "interface": false }, { - "__docId__": 456, + "__docId__": 481, "kind": "constructor", "static": false, "variation": null, @@ -9885,7 +10693,7 @@ "generator": false }, { - "__docId__": 457, + "__docId__": 482, "kind": "member", "static": false, "variation": null, @@ -9905,7 +10713,7 @@ } }, { - "__docId__": 458, + "__docId__": 483, "kind": "member", "static": false, "variation": null, @@ -9925,7 +10733,7 @@ } }, { - "__docId__": 459, + "__docId__": 484, "kind": "member", "static": false, "variation": null, @@ -9945,7 +10753,7 @@ } }, { - "__docId__": 460, + "__docId__": 485, "kind": "method", "static": false, "variation": null, @@ -9959,7 +10767,7 @@ "generator": false }, { - "__docId__": 461, + "__docId__": 486, "kind": "method", "static": false, "variation": null, @@ -10004,7 +10812,7 @@ "generator": false }, { - "__docId__": 462, + "__docId__": 487, "kind": "method", "static": false, "variation": null, @@ -10039,7 +10847,7 @@ "generator": false }, { - "__docId__": 463, + "__docId__": 488, "kind": "method", "static": false, "variation": null, @@ -10053,7 +10861,7 @@ "generator": false }, { - "__docId__": 464, + "__docId__": 489, "kind": "method", "static": false, "variation": null, @@ -10067,7 +10875,7 @@ "generator": false }, { - "__docId__": 465, + "__docId__": 490, "kind": "method", "static": false, "variation": null, @@ -10102,7 +10910,7 @@ "generator": false }, { - "__docId__": 466, + "__docId__": 491, "kind": "file", "static": true, "variation": null, @@ -10115,7 +10923,7 @@ "content": "import {Feature} from '../feature';\nimport {createElm, createText, elm, removeElm} from '../dom';\nimport {isFn, EMPTY_FN} from '../types';\nimport {root} from '../root';\nimport {NONE} from '../const';\n\nconst EVENTS = [\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];\n\n/**\n * Activity indicator\n *\n * @export\n * @class Loader\n * @extends {Feature}\n */\nexport class Loader extends Feature {\n\n /**\n * Creates an instance of Loader.\n *\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'loader');\n\n let f = this.config;\n\n /**\n * ID of custom container element\n * @type {String}\n */\n this.targetId = f.loader_target_id || null;\n\n /**\n * Loader container DOM element\n * @type {DOMElement}\n */\n this.cont = null;\n\n /**\n * Text displayed when indicator is visible\n * @type {String}\n */\n this.text = f.loader_text || 'Loading...';\n\n /**\n * Custom HTML injected in Loader's container element\n * @type {String}\n */\n this.html = f.loader_html || null;\n\n /**\n * Css class for Loader's container element\n * @type {String}\n */\n this.cssClass = f.loader_css_class || 'loader';\n\n /**\n * Close delay in milliseconds\n * @type {Number}\n */\n this.closeDelay = 250;\n\n /**\n * Callback fired when loader is displayed\n * @type {Function}\n */\n this.onShow = isFn(f.on_show_loader) ?\n f.on_show_loader : EMPTY_FN;\n\n /**\n * Callback fired when loader is closed\n * @type {Function}\n */\n this.onHide = isFn(f.on_hide_loader) ? f.on_hide_loader : EMPTY_FN;\n }\n\n /**\n * Initializes Loader instance\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');\n containerDiv.className = this.cssClass;\n\n let targetEl = !this.targetId ?\n tf.tbl.parentNode : elm(this.targetId);\n if (!this.targetId) {\n targetEl.insertBefore(containerDiv, tf.tbl);\n } else {\n targetEl.appendChild(containerDiv);\n }\n this.cont = containerDiv;\n if (!this.html) {\n this.cont.appendChild(createText(this.text));\n } else {\n this.cont.innerHTML = this.html;\n }\n\n this.show(NONE);\n\n // Subscribe to events\n emitter.on(EVENTS, () => this.show(''));\n emitter.on(EVENTS, () => this.show(NONE));\n\n /**\n * @inherited\n */\n this.initialized = true;\n }\n\n /**\n * Shows or hides activity indicator\n * @param {String} Two possible values: '' or 'none'\n */\n show(p) {\n if (!this.isEnabled()) {\n return;\n }\n\n let displayLoader = () => {\n if (!this.cont) {\n return;\n }\n if (p !== NONE) {\n this.onShow(this);\n }\n this.cont.style.display = p;\n if (p === NONE) {\n this.onHide(this);\n }\n };\n\n let t = p === NONE ? this.closeDelay : 1;\n root.setTimeout(displayLoader, t);\n }\n\n /**\n * Removes feature\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n\n let emitter = this.emitter;\n\n removeElm(this.cont);\n this.cont = null;\n\n // Unsubscribe to events\n emitter.off(EVENTS, () => this.show(''));\n emitter.off(EVENTS, () => this.show(NONE));\n\n this.initialized = false;\n }\n}\n" }, { - "__docId__": 467, + "__docId__": 492, "kind": "variable", "static": true, "variation": null, @@ -10136,7 +10944,7 @@ } }, { - "__docId__": 468, + "__docId__": 493, "kind": "class", "static": true, "variation": null, @@ -10165,7 +10973,7 @@ ] }, { - "__docId__": 469, + "__docId__": 494, "kind": "constructor", "static": false, "variation": null, @@ -10190,7 +10998,7 @@ "generator": false }, { - "__docId__": 470, + "__docId__": 495, "kind": "member", "static": false, "variation": null, @@ -10210,7 +11018,7 @@ } }, { - "__docId__": 471, + "__docId__": 496, "kind": "member", "static": false, "variation": null, @@ -10230,7 +11038,7 @@ } }, { - "__docId__": 472, + "__docId__": 497, "kind": "member", "static": false, "variation": null, @@ -10250,7 +11058,7 @@ } }, { - "__docId__": 473, + "__docId__": 498, "kind": "member", "static": false, "variation": null, @@ -10270,7 +11078,7 @@ } }, { - "__docId__": 474, + "__docId__": 499, "kind": "member", "static": false, "variation": null, @@ -10290,7 +11098,7 @@ } }, { - "__docId__": 475, + "__docId__": 500, "kind": "member", "static": false, "variation": null, @@ -10310,7 +11118,7 @@ } }, { - "__docId__": 476, + "__docId__": 501, "kind": "member", "static": false, "variation": null, @@ -10330,7 +11138,7 @@ } }, { - "__docId__": 477, + "__docId__": 502, "kind": "member", "static": false, "variation": null, @@ -10350,7 +11158,7 @@ } }, { - "__docId__": 478, + "__docId__": 503, "kind": "method", "static": false, "variation": null, @@ -10364,7 +11172,7 @@ "generator": false }, { - "__docId__": 479, + "__docId__": 504, "kind": "member", "static": false, "variation": null, @@ -10382,7 +11190,7 @@ } }, { - "__docId__": 480, + "__docId__": 505, "kind": "member", "static": false, "variation": null, @@ -10405,7 +11213,7 @@ } }, { - "__docId__": 481, + "__docId__": 506, "kind": "method", "static": false, "variation": null, @@ -10430,7 +11238,7 @@ "generator": false }, { - "__docId__": 482, + "__docId__": 507, "kind": "method", "static": false, "variation": null, @@ -10444,7 +11252,7 @@ "generator": false }, { - "__docId__": 483, + "__docId__": 508, "kind": "member", "static": false, "variation": null, @@ -10462,7 +11270,7 @@ } }, { - "__docId__": 484, + "__docId__": 509, "kind": "member", "static": false, "variation": null, @@ -10480,7 +11288,7 @@ } }, { - "__docId__": 485, + "__docId__": 510, "kind": "file", "static": true, "variation": null, @@ -10493,7 +11301,7 @@ "content": "import {Feature} from '../feature';\nimport {createElm, elm, removeElm} from '../dom';\nimport {isEmpty, isFn, EMPTY_FN} from '../types';\nimport {NONE} from '../const';\n\n/**\n * UI when filtering yields no matches\n * @export\n * @class NoResults\n * @extends {Feature}\n */\nexport class NoResults extends Feature {\n\n /**\n * Creates an instance of NoResults\n * @param {TableFilter} 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 /**\n * Text (accepts HTML)\n * @type {String}\n */\n this.content = f.content || 'No results';\n\n /**\n * Custom container DOM element\n * @type {DOMElement}\n */\n this.customContainer = f.custom_container || null;\n\n /**\n * ID of custom container element\n * @type {String}\n */\n this.customContainerId = f.custom_container_id || null;\n\n /**\n * Indicates if UI is contained in a external element\n * @type {Boolean}\n * @private\n */\n this.isExternal = !isEmpty(this.customContainer) ||\n !isEmpty(this.customContainerId);\n\n /**\n * Css class assigned to container element\n * @type {String}\n */\n this.cssClass = f.css_class || 'no-results';\n\n /**\n * Stores container DOM element\n * @type {DOMElement}\n */\n this.cont = null;\n\n /**\n * Callback fired before the message is displayed\n * @type {Function}\n */\n this.onBeforeShow = isFn(f.on_before_show_msg) ?\n f.on_before_show_msg : EMPTY_FN;\n\n /**\n * Callback fired after the message is displayed\n * @type {Function}\n */\n this.onAfterShow = isFn(f.on_after_show_msg) ?\n f.on_after_show_msg : EMPTY_FN;\n\n /**\n * Callback fired before the message is hidden\n * @type {Function}\n */\n this.onBeforeHide = isFn(f.on_before_hide_msg) ?\n f.on_before_hide_msg : EMPTY_FN;\n\n /**\n * Callback fired after the message is hidden\n * @type {Function}\n */\n this.onAfterHide = isFn(f.on_after_hide_msg) ?\n f.on_after_hide_msg : EMPTY_FN;\n }\n\n /**\n * Initializes NoResults instance\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');\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 /**\n * @inherited\n */\n this.initialized = true;\n\n this.hide();\n }\n\n /**\n * Toggle no results message\n */\n toggle() {\n if (this.tf.getValidRowsNb() > 0) {\n this.hide();\n } else {\n this.show();\n }\n }\n\n /**\n * Show no results message\n */\n show() {\n if (!this.initialized || !this.isEnabled()) {\n return;\n }\n this.onBeforeShow(this.tf, this);\n\n this.setWidth();\n this.cont.style.display = 'block';\n\n this.onAfterShow(this.tf, this);\n }\n\n /**\n * Hide no results message\n */\n hide() {\n if (!this.initialized || !this.isEnabled()) {\n return;\n }\n this.onBeforeHide(this.tf, this);\n\n this.cont.style.display = NONE;\n\n this.onAfterHide(this.tf, this);\n }\n\n /**\n * Sets no results container width\n * @private\n */\n setWidth() {\n if (!this.initialized || this.isExternal || !this.isEnabled()) {\n return;\n }\n let tf = this.tf;\n if (tf.gridLayout) {\n let gridLayout = tf.feature('gridLayout');\n this.cont.style.width = gridLayout.tblCont.clientWidth + 'px';\n } else {\n this.cont.style.width = (tf.tbl.tHead ? tf.tbl.tHead.clientWidth :\n tf.tbl.tBodies[0].clientWidth) + 'px';\n }\n }\n\n /**\n * Remove feature\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__": 486, + "__docId__": 511, "kind": "class", "static": true, "variation": null, @@ -10522,7 +11330,7 @@ ] }, { - "__docId__": 487, + "__docId__": 512, "kind": "constructor", "static": false, "variation": null, @@ -10547,7 +11355,7 @@ "generator": false }, { - "__docId__": 488, + "__docId__": 513, "kind": "member", "static": false, "variation": null, @@ -10567,7 +11375,7 @@ } }, { - "__docId__": 489, + "__docId__": 514, "kind": "member", "static": false, "variation": null, @@ -10587,7 +11395,7 @@ } }, { - "__docId__": 490, + "__docId__": 515, "kind": "member", "static": false, "variation": null, @@ -10607,7 +11415,7 @@ } }, { - "__docId__": 491, + "__docId__": 516, "kind": "member", "static": false, "variation": null, @@ -10627,7 +11435,7 @@ } }, { - "__docId__": 492, + "__docId__": 517, "kind": "member", "static": false, "variation": null, @@ -10647,7 +11455,7 @@ } }, { - "__docId__": 493, + "__docId__": 518, "kind": "member", "static": false, "variation": null, @@ -10667,7 +11475,7 @@ } }, { - "__docId__": 494, + "__docId__": 519, "kind": "member", "static": false, "variation": null, @@ -10687,7 +11495,7 @@ } }, { - "__docId__": 495, + "__docId__": 520, "kind": "member", "static": false, "variation": null, @@ -10707,7 +11515,7 @@ } }, { - "__docId__": 496, + "__docId__": 521, "kind": "member", "static": false, "variation": null, @@ -10727,7 +11535,7 @@ } }, { - "__docId__": 497, + "__docId__": 522, "kind": "member", "static": false, "variation": null, @@ -10747,7 +11555,7 @@ } }, { - "__docId__": 498, + "__docId__": 523, "kind": "method", "static": false, "variation": null, @@ -10761,7 +11569,7 @@ "generator": false }, { - "__docId__": 499, + "__docId__": 524, "kind": "member", "static": false, "variation": null, @@ -10779,7 +11587,7 @@ } }, { - "__docId__": 500, + "__docId__": 525, "kind": "member", "static": false, "variation": null, @@ -10802,7 +11610,7 @@ } }, { - "__docId__": 501, + "__docId__": 526, "kind": "method", "static": false, "variation": null, @@ -10816,7 +11624,7 @@ "generator": false }, { - "__docId__": 502, + "__docId__": 527, "kind": "method", "static": false, "variation": null, @@ -10830,7 +11638,7 @@ "generator": false }, { - "__docId__": 503, + "__docId__": 528, "kind": "method", "static": false, "variation": null, @@ -10844,7 +11652,7 @@ "generator": false }, { - "__docId__": 504, + "__docId__": 529, "kind": "method", "static": false, "variation": null, @@ -10858,7 +11666,7 @@ "generator": false }, { - "__docId__": 505, + "__docId__": 530, "kind": "method", "static": false, "variation": null, @@ -10872,7 +11680,7 @@ "generator": false }, { - "__docId__": 506, + "__docId__": 531, "kind": "member", "static": false, "variation": null, @@ -10890,7 +11698,7 @@ } }, { - "__docId__": 507, + "__docId__": 532, "kind": "member", "static": false, "variation": null, @@ -10908,7 +11716,7 @@ } }, { - "__docId__": 508, + "__docId__": 533, "kind": "file", "static": true, "variation": null, @@ -10921,7 +11729,7 @@ "content": "import {Feature} from '../feature';\nimport {createElm, createOpt, createText, elm, removeElm} from '../dom';\nimport {isArray, isFn, isNull, EMPTY_FN} from '../types';\nimport {addEvt, keyCode, removeEvt} from '../event';\nimport {INPUT, SELECT, NONE, ENTER_KEY} from '../const';\n\n/**\n * Paging UI component\n * @export\n * @class Paging\n * @extends {Feature}\n */\nexport class Paging extends Feature {\n\n /**\n * Creates an instance of Paging\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'paging');\n\n // Configuration object\n var f = this.config;\n\n /**\n * Css class for the paging buttons (previous, next, etc.)\n * @type {String}\n */\n this.btnPageCssClass = f.paging_btn_css_class || 'pgInp';\n\n /**\n * Main select DOM element\n * @type {DOMElement}\n */\n this.pagingSlc = null;\n\n /**\n * Results per page select DOM element\n * @type {DOMElement}\n */\n this.resultsPerPageSlc = null;\n\n /**\n * ID of custom container element\n * @type {String}\n */\n this.pagingTgtId = f.paging_target_id || null;\n\n /**\n * Number of rows contained in a page\n * @type {Number}\n */\n this.pagingLength = !isNaN(f.paging_length) ? f.paging_length : 10;\n\n /**\n * ID of custom container element for the results per page selector\n * @type {String}\n */\n this.resultsPerPageTgtId = f.results_per_page_target_id || null;\n\n /**\n * Css class for the paging select element\n * @type {String}\n */\n this.pgSlcCssClass = f.paging_slc_css_class || 'pgSlc';\n\n /**\n * Css class for the paging input element\n * @type {String}\n */\n this.pgInpCssClass = f.paging_inp_css_class || 'pgNbInp';\n\n /**\n * Label and values for the results per page select, example of usage:\n * ['Records: ', [10,25,50,100]]\n * @type {Array}\n */\n this.resultsPerPage = f.results_per_page || null;\n\n /**\n * Determines if results per page is configured\n * @type {Boolean}\n */\n this.hasResultsPerPage = isArray(this.resultsPerPage);\n\n /**\n * Css class for the results per page select\n * @type {String}\n */\n this.resultsSlcCssClass = f.results_slc_css_class || 'rspg';\n\n /**\n * Css class for the label preceding results per page select\n * @type {String}\n */\n this.resultsSpanCssClass = f.results_span_css_class || 'rspgSpan';\n\n /**\n * Index of the first row of current page\n * @type {Number}\n * @private\n */\n this.startPagingRow = 0;\n\n /**\n * Total number of pages\n * @type {Number}\n * @private\n */\n this.nbPages = 0;\n\n /**\n * Current page number\n * @type {Number}\n * @private\n */\n this.currentPageNb = 1;\n\n /**\n * Next page button text\n * @type {String}\n */\n this.btnNextPageText = f.btn_next_page_text || '>';\n\n /**\n * Previous page button text\n * @type {String}\n */\n this.btnPrevPageText = f.btn_prev_page_text || '<';\n\n /**\n * Last page button text\n * @type {String}\n */\n this.btnLastPageText = f.btn_last_page_text || '>|';\n\n /**\n * First page button text\n * @type {String}\n */\n this.btnFirstPageText = f.btn_first_page_text || '|<';\n\n /**\n * Next page button HTML\n * @type {String}\n */\n this.btnNextPageHtml = f.btn_next_page_html ||\n (!tf.enableIcons ? null :\n '');\n\n /**\n * Previous page button HTML\n * @type {String}\n */\n this.btnPrevPageHtml = f.btn_prev_page_html ||\n (!tf.enableIcons ? null :\n '');\n\n /**\n * First page button HTML\n * @type {String}\n */\n this.btnFirstPageHtml = f.btn_first_page_html ||\n (!tf.enableIcons ? null :\n '');\n\n /**\n * Last page button HTML\n * @type {String}\n */\n this.btnLastPageHtml = f.btn_last_page_html ||\n (!tf.enableIcons ? null :\n '');\n\n /**\n * Text preceeding page selector drop-down\n * @type {String}\n */\n this.pageText = f.page_text || ' Page ';\n\n /**\n * Text after page selector drop-down\n * @type {String}\n */\n this.ofText = f.of_text || ' of ';\n\n /**\n * Css class for the span containing total number of pages\n * @type {String}\n */\n this.nbPgSpanCssClass = f.nb_pages_css_class || 'nbpg';\n\n /**\n * Determines if paging buttons are enabled (default: true)\n * @type {Boolean}\n */\n this.hasPagingBtns = f.paging_btns === false ? false : true;\n\n /**\n * Defines page selector type, two possible values: 'select', 'input'\n * @type {String}\n */\n this.pageSelectorType = f.page_selector_type || SELECT;\n\n /**\n * Callback fired before the page is changed\n * @type {Function}\n */\n this.onBeforeChangePage = isFn(f.on_before_change_page) ?\n f.on_before_change_page : EMPTY_FN;\n\n /**\n * Callback fired after the page is changed\n * @type {Function}\n */\n this.onAfterChangePage = isFn(f.on_after_change_page) ?\n f.on_after_change_page : EMPTY_FN;\n\n /**\n * Label preciding results per page select\n * @type {DOMElement}\n * @private\n */\n this.slcResultsTxt = null;\n /**\n * Span containing next page button\n * @type {DOMElement}\n * @private\n */\n this.btnNextCont = null;\n /**\n * Span containing previous page button\n * @type {DOMElement}\n * @private\n */\n this.btnPrevCont = null;\n /**\n * Span containing last page button\n * @type {DOMElement}\n * @private\n */\n this.btnLastCont = null;\n /**\n * Span containing first page button\n * @type {DOMElement}\n * @private\n */\n this.btnFirstCont = null;\n /**\n * Span for tot nb pages\n * @type {DOMElement}\n * @private\n */\n this.pgCont = null;\n /**\n * Span preceding pages select (contains 'Page')\n * @type {DOMElement}\n * @private\n */\n this.pgBefore = null;\n /**\n * Span following pages select (contains ' of ')\n * @type {DOMElement}\n * @private\n */\n this.pgAfter = null;\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 var o = this;\n /**\n * Paging DOM events handlers\n * @type {String}\n * @private\n */\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);\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, ['value', this.currentPageNb]);\n slcPages.className = this.pgInpCssClass;\n addEvt(slcPages, 'keypress', evt._detectKey);\n }\n\n // btns containers\n var btnNextSpan = createElm('span');\n var btnPrevSpan = createElm('span');\n var btnLastSpan = createElm('span');\n var btnFirstSpan = createElm('span');\n\n if (this.hasPagingBtns) {\n // Next button\n if (!this.btnNextPageHtml) {\n var btnNext = createElm(INPUT,\n ['type', 'button'],\n ['value', this.btnNextPageText],\n ['title', 'Next']\n );\n btnNext.className = this.btnPageCssClass;\n addEvt(btnNext, 'click', evt.next);\n btnNextSpan.appendChild(btnNext);\n } else {\n btnNextSpan.innerHTML = this.btnNextPageHtml;\n addEvt(btnNextSpan, 'click', evt.next);\n }\n // Previous button\n if (!this.btnPrevPageHtml) {\n var btnPrev = createElm(INPUT,\n ['type', 'button'],\n ['value', this.btnPrevPageText],\n ['title', 'Previous']\n );\n btnPrev.className = this.btnPageCssClass;\n addEvt(btnPrev, 'click', evt.prev);\n btnPrevSpan.appendChild(btnPrev);\n } else {\n btnPrevSpan.innerHTML = this.btnPrevPageHtml;\n addEvt(btnPrevSpan, 'click', evt.prev);\n }\n // Last button\n if (!this.btnLastPageHtml) {\n var btnLast = createElm(INPUT,\n ['type', 'button'],\n ['value', this.btnLastPageText],\n ['title', 'Last']\n );\n btnLast.className = this.btnPageCssClass;\n addEvt(btnLast, 'click', evt.last);\n btnLastSpan.appendChild(btnLast);\n } else {\n btnLastSpan.innerHTML = this.btnLastPageHtml;\n addEvt(btnLastSpan, 'click', evt.last);\n }\n // First button\n if (!this.btnFirstPageHtml) {\n var btnFirst = createElm(INPUT,\n ['type', 'button'],\n ['value', this.btnFirstPageText],\n ['title', 'First']\n );\n btnFirst.className = this.btnPageCssClass;\n addEvt(btnFirst, 'click', evt.first);\n btnFirstSpan.appendChild(btnFirst);\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('span');\n pgBeforeSpan.appendChild(createText(this.pageText));\n pgBeforeSpan.className = this.nbPgSpanCssClass;\n targetEl.appendChild(pgBeforeSpan);\n targetEl.appendChild(slcPages);\n var pgAfterSpan = createElm('span');\n pgAfterSpan.appendChild(createText(this.ofText));\n pgAfterSpan.className = this.nbPgSpanCssClass;\n targetEl.appendChild(pgAfterSpan);\n var pgSpan = createElm('span');\n pgSpan.className = this.nbPgSpanCssClass;\n pgSpan.appendChild(createText(' ' + this.nbPages + ' '));\n targetEl.appendChild(pgSpan);\n targetEl.appendChild(btnNextSpan);\n targetEl.appendChild(btnLastSpan);\n\n this.btnNextCont = btnNextSpan;\n this.btnPrevCont = btnPrevSpan;\n this.btnLastCont = btnLastSpan;\n this.btnFirstCont = btnFirstSpan;\n this.pgCont = pgSpan;\n this.pgBefore = pgBeforeSpan;\n this.pgAfter = pgAfterSpan;\n this.pagingSlc = slcPages;\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 /** @inherited */\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\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 this.pgCont.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);\n slcR.className = this.resultsSlcCssClass;\n var slcRText = this.resultsPerPage[0],\n slcROpts = this.resultsPerPage[1];\n var slcRSpan = createElm('span');\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.slcResultsTxt = slcRSpan;\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 if (this.resultsPerPageSlc) {\n removeElm(this.resultsPerPageSlc);\n }\n if (this.slcResultsTxt) {\n removeElm(this.slcResultsTxt);\n }\n this.resultsPerPageSlc = null;\n this.slcResultsTxt = null;\n }\n\n /**\n * Change the page based on 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 this.onBeforeChangePage(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 this.onAfterChangePage(this, (index + 1));\n }\n\n this.emitter.emit('after-page-change', tf, (index + 1));\n }\n\n /**\n * Change the number of results per page based on passed value\n * @param {String} val The number of results per page\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 if (!this.initialized) {\n return;\n }\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 (this.btnNextCont) {\n removeEvt(this.btnNextCont, 'click', evt.next);\n removeElm(this.btnNextCont);\n this.btnNextCont = null;\n }\n\n if (this.btnPrevCont) {\n removeEvt(this.btnPrevCont, 'click', evt.prev);\n removeElm(this.btnPrevCont);\n this.btnPrevCont = null;\n }\n\n if (this.btnLastCont) {\n removeEvt(this.btnLastCont, 'click', evt.last);\n removeElm(this.btnLastCont);\n this.btnLastCont = null;\n }\n\n if (this.btnFirstCont) {\n removeEvt(this.btnFirstCont, 'click', evt.first);\n removeElm(this.btnFirstCont);\n this.btnFirstCont = null;\n }\n\n if (this.pgBefore) {\n removeElm(this.pgBefore);\n this.pgBefore = null;\n }\n\n if (this.pgAfter) {\n removeElm(this.pgAfter);\n this.pgAfter = null;\n }\n\n if (this.pgCont) {\n removeElm(this.pgCont);\n this.pgCont = null;\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__": 509, + "__docId__": 534, "kind": "class", "static": true, "variation": null, @@ -10950,7 +11758,7 @@ ] }, { - "__docId__": 510, + "__docId__": 535, "kind": "constructor", "static": false, "variation": null, @@ -10975,7 +11783,7 @@ "generator": false }, { - "__docId__": 511, + "__docId__": 536, "kind": "member", "static": false, "variation": null, @@ -10995,7 +11803,7 @@ } }, { - "__docId__": 512, + "__docId__": 537, "kind": "member", "static": false, "variation": null, @@ -11015,7 +11823,7 @@ } }, { - "__docId__": 513, + "__docId__": 538, "kind": "member", "static": false, "variation": null, @@ -11035,7 +11843,7 @@ } }, { - "__docId__": 514, + "__docId__": 539, "kind": "member", "static": false, "variation": null, @@ -11055,7 +11863,7 @@ } }, { - "__docId__": 515, + "__docId__": 540, "kind": "member", "static": false, "variation": null, @@ -11075,7 +11883,7 @@ } }, { - "__docId__": 516, + "__docId__": 541, "kind": "member", "static": false, "variation": null, @@ -11095,7 +11903,7 @@ } }, { - "__docId__": 517, + "__docId__": 542, "kind": "member", "static": false, "variation": null, @@ -11115,7 +11923,7 @@ } }, { - "__docId__": 518, + "__docId__": 543, "kind": "member", "static": false, "variation": null, @@ -11135,7 +11943,7 @@ } }, { - "__docId__": 519, + "__docId__": 544, "kind": "member", "static": false, "variation": null, @@ -11155,7 +11963,7 @@ } }, { - "__docId__": 520, + "__docId__": 545, "kind": "member", "static": false, "variation": null, @@ -11175,7 +11983,7 @@ } }, { - "__docId__": 521, + "__docId__": 546, "kind": "member", "static": false, "variation": null, @@ -11195,7 +12003,7 @@ } }, { - "__docId__": 522, + "__docId__": 547, "kind": "member", "static": false, "variation": null, @@ -11215,7 +12023,7 @@ } }, { - "__docId__": 523, + "__docId__": 548, "kind": "member", "static": false, "variation": null, @@ -11235,7 +12043,7 @@ } }, { - "__docId__": 524, + "__docId__": 549, "kind": "member", "static": false, "variation": null, @@ -11255,7 +12063,7 @@ } }, { - "__docId__": 525, + "__docId__": 550, "kind": "member", "static": false, "variation": null, @@ -11275,7 +12083,7 @@ } }, { - "__docId__": 526, + "__docId__": 551, "kind": "member", "static": false, "variation": null, @@ -11295,7 +12103,7 @@ } }, { - "__docId__": 527, + "__docId__": 552, "kind": "member", "static": false, "variation": null, @@ -11315,7 +12123,7 @@ } }, { - "__docId__": 528, + "__docId__": 553, "kind": "member", "static": false, "variation": null, @@ -11335,7 +12143,7 @@ } }, { - "__docId__": 529, + "__docId__": 554, "kind": "member", "static": false, "variation": null, @@ -11355,7 +12163,7 @@ } }, { - "__docId__": 530, + "__docId__": 555, "kind": "member", "static": false, "variation": null, @@ -11375,7 +12183,7 @@ } }, { - "__docId__": 531, + "__docId__": 556, "kind": "member", "static": false, "variation": null, @@ -11395,7 +12203,7 @@ } }, { - "__docId__": 532, + "__docId__": 557, "kind": "member", "static": false, "variation": null, @@ -11415,7 +12223,7 @@ } }, { - "__docId__": 533, + "__docId__": 558, "kind": "member", "static": false, "variation": null, @@ -11435,7 +12243,7 @@ } }, { - "__docId__": 534, + "__docId__": 559, "kind": "member", "static": false, "variation": null, @@ -11455,7 +12263,7 @@ } }, { - "__docId__": 535, + "__docId__": 560, "kind": "member", "static": false, "variation": null, @@ -11475,7 +12283,7 @@ } }, { - "__docId__": 536, + "__docId__": 561, "kind": "member", "static": false, "variation": null, @@ -11495,7 +12303,7 @@ } }, { - "__docId__": 537, + "__docId__": 562, "kind": "member", "static": false, "variation": null, @@ -11515,7 +12323,7 @@ } }, { - "__docId__": 538, + "__docId__": 563, "kind": "member", "static": false, "variation": null, @@ -11535,7 +12343,7 @@ } }, { - "__docId__": 539, + "__docId__": 564, "kind": "member", "static": false, "variation": null, @@ -11555,7 +12363,7 @@ } }, { - "__docId__": 540, + "__docId__": 565, "kind": "member", "static": false, "variation": null, @@ -11575,7 +12383,7 @@ } }, { - "__docId__": 541, + "__docId__": 566, "kind": "member", "static": false, "variation": null, @@ -11595,7 +12403,7 @@ } }, { - "__docId__": 542, + "__docId__": 567, "kind": "member", "static": false, "variation": null, @@ -11615,7 +12423,7 @@ } }, { - "__docId__": 543, + "__docId__": 568, "kind": "member", "static": false, "variation": null, @@ -11635,7 +12443,7 @@ } }, { - "__docId__": 544, + "__docId__": 569, "kind": "member", "static": false, "variation": null, @@ -11655,7 +12463,7 @@ } }, { - "__docId__": 545, + "__docId__": 570, "kind": "member", "static": false, "variation": null, @@ -11675,7 +12483,7 @@ } }, { - "__docId__": 546, + "__docId__": 571, "kind": "member", "static": false, "variation": null, @@ -11695,7 +12503,7 @@ } }, { - "__docId__": 547, + "__docId__": 572, "kind": "member", "static": false, "variation": null, @@ -11715,7 +12523,7 @@ } }, { - "__docId__": 548, + "__docId__": 573, "kind": "member", "static": false, "variation": null, @@ -11735,7 +12543,7 @@ } }, { - "__docId__": 549, + "__docId__": 574, "kind": "member", "static": false, "variation": null, @@ -11753,7 +12561,7 @@ } }, { - "__docId__": 550, + "__docId__": 575, "kind": "member", "static": false, "variation": null, @@ -11773,7 +12581,7 @@ } }, { - "__docId__": 551, + "__docId__": 576, "kind": "method", "static": false, "variation": null, @@ -11787,7 +12595,7 @@ "generator": false }, { - "__docId__": 552, + "__docId__": 577, "kind": "member", "static": false, "variation": null, @@ -11805,7 +12613,7 @@ } }, { - "__docId__": 553, + "__docId__": 578, "kind": "member", "static": false, "variation": null, @@ -11823,7 +12631,7 @@ } }, { - "__docId__": 554, + "__docId__": 579, "kind": "member", "static": false, "variation": null, @@ -11841,7 +12649,7 @@ } }, { - "__docId__": 555, + "__docId__": 580, "kind": "member", "static": false, "variation": null, @@ -11859,7 +12667,7 @@ } }, { - "__docId__": 556, + "__docId__": 581, "kind": "member", "static": false, "variation": null, @@ -11877,7 +12685,7 @@ } }, { - "__docId__": 557, + "__docId__": 582, "kind": "member", "static": false, "variation": null, @@ -11895,7 +12703,7 @@ } }, { - "__docId__": 558, + "__docId__": 583, "kind": "member", "static": false, "variation": null, @@ -11913,7 +12721,7 @@ } }, { - "__docId__": 559, + "__docId__": 584, "kind": "member", "static": false, "variation": null, @@ -11931,7 +12739,7 @@ } }, { - "__docId__": 560, + "__docId__": 585, "kind": "member", "static": false, "variation": null, @@ -11949,7 +12757,7 @@ } }, { - "__docId__": 561, + "__docId__": 586, "kind": "member", "static": false, "variation": null, @@ -11967,7 +12775,7 @@ } }, { - "__docId__": 562, + "__docId__": 587, "kind": "member", "static": false, "variation": null, @@ -11990,7 +12798,7 @@ } }, { - "__docId__": 563, + "__docId__": 588, "kind": "method", "static": false, "variation": null, @@ -12015,7 +12823,7 @@ "generator": false }, { - "__docId__": 564, + "__docId__": 589, "kind": "method", "static": false, "variation": null, @@ -12029,7 +12837,7 @@ "generator": false }, { - "__docId__": 565, + "__docId__": 590, "kind": "member", "static": false, "variation": null, @@ -12047,7 +12855,7 @@ } }, { - "__docId__": 566, + "__docId__": 591, "kind": "member", "static": false, "variation": null, @@ -12065,7 +12873,7 @@ } }, { - "__docId__": 567, + "__docId__": 592, "kind": "method", "static": false, "variation": null, @@ -12090,7 +12898,7 @@ "generator": false }, { - "__docId__": 568, + "__docId__": 593, "kind": "member", "static": false, "variation": null, @@ -12108,7 +12916,7 @@ } }, { - "__docId__": 569, + "__docId__": 594, "kind": "method", "static": false, "variation": null, @@ -12133,7 +12941,7 @@ "generator": false }, { - "__docId__": 570, + "__docId__": 595, "kind": "method", "static": false, "variation": null, @@ -12155,7 +12963,7 @@ "generator": false }, { - "__docId__": 571, + "__docId__": 596, "kind": "method", "static": false, "variation": null, @@ -12180,7 +12988,7 @@ "generator": false }, { - "__docId__": 572, + "__docId__": 597, "kind": "method", "static": false, "variation": null, @@ -12194,7 +13002,7 @@ "generator": false }, { - "__docId__": 573, + "__docId__": 598, "kind": "member", "static": false, "variation": null, @@ -12212,7 +13020,7 @@ } }, { - "__docId__": 574, + "__docId__": 599, "kind": "member", "static": false, "variation": null, @@ -12230,7 +13038,7 @@ } }, { - "__docId__": 575, + "__docId__": 600, "kind": "method", "static": false, "variation": null, @@ -12244,7 +13052,7 @@ "generator": false }, { - "__docId__": 576, + "__docId__": 601, "kind": "member", "static": false, "variation": null, @@ -12262,7 +13070,7 @@ } }, { - "__docId__": 577, + "__docId__": 602, "kind": "member", "static": false, "variation": null, @@ -12280,7 +13088,7 @@ } }, { - "__docId__": 578, + "__docId__": 603, "kind": "method", "static": false, "variation": null, @@ -12305,7 +13113,7 @@ "generator": false }, { - "__docId__": 579, + "__docId__": 604, "kind": "member", "static": false, "variation": null, @@ -12323,7 +13131,7 @@ } }, { - "__docId__": 580, + "__docId__": 605, "kind": "member", "static": false, "variation": null, @@ -12341,7 +13149,7 @@ } }, { - "__docId__": 581, + "__docId__": 606, "kind": "method", "static": false, "variation": null, @@ -12366,7 +13174,7 @@ "generator": false }, { - "__docId__": 582, + "__docId__": 607, "kind": "method", "static": false, "variation": null, @@ -12380,7 +13188,7 @@ "generator": false }, { - "__docId__": 583, + "__docId__": 608, "kind": "member", "static": false, "variation": null, @@ -12398,7 +13206,7 @@ } }, { - "__docId__": 584, + "__docId__": 609, "kind": "member", "static": false, "variation": null, @@ -12416,7 +13224,7 @@ } }, { - "__docId__": 585, + "__docId__": 610, "kind": "member", "static": false, "variation": null, @@ -12434,7 +13242,7 @@ } }, { - "__docId__": 586, + "__docId__": 611, "kind": "method", "static": false, "variation": null, @@ -12448,7 +13256,7 @@ "generator": false }, { - "__docId__": 587, + "__docId__": 612, "kind": "method", "static": false, "variation": null, @@ -12462,7 +13270,7 @@ "generator": false }, { - "__docId__": 588, + "__docId__": 613, "kind": "method", "static": false, "variation": null, @@ -12476,7 +13284,7 @@ "generator": false }, { - "__docId__": 589, + "__docId__": 614, "kind": "member", "static": false, "variation": null, @@ -12494,7 +13302,7 @@ } }, { - "__docId__": 590, + "__docId__": 615, "kind": "member", "static": false, "variation": null, @@ -12512,7 +13320,7 @@ } }, { - "__docId__": 591, + "__docId__": 616, "kind": "member", "static": false, "variation": null, @@ -12530,7 +13338,7 @@ } }, { - "__docId__": 592, + "__docId__": 617, "kind": "member", "static": false, "variation": null, @@ -12548,7 +13356,7 @@ } }, { - "__docId__": 593, + "__docId__": 618, "kind": "member", "static": false, "variation": null, @@ -12566,7 +13374,7 @@ } }, { - "__docId__": 594, + "__docId__": 619, "kind": "member", "static": false, "variation": null, @@ -12584,7 +13392,7 @@ } }, { - "__docId__": 595, + "__docId__": 620, "kind": "member", "static": false, "variation": null, @@ -12602,7 +13410,7 @@ } }, { - "__docId__": 596, + "__docId__": 621, "kind": "member", "static": false, "variation": null, @@ -12620,7 +13428,7 @@ } }, { - "__docId__": 597, + "__docId__": 622, "kind": "member", "static": false, "variation": null, @@ -12638,7 +13446,7 @@ } }, { - "__docId__": 598, + "__docId__": 623, "kind": "member", "static": false, "variation": null, @@ -12656,7 +13464,7 @@ } }, { - "__docId__": 599, + "__docId__": 624, "kind": "file", "static": true, "variation": null, @@ -12669,7 +13477,7 @@ "content": "import {Feature} from '../feature';\nimport {isFn, isUndef, EMPTY_FN} from '../types';\nimport {createElm, removeElm} from '../dom';\nimport {addEvt, cancelEvt, stopEvt, targetEvt, removeEvt} from '../event';\nimport {INPUT, NONE, CHECKLIST, MULTIPLE} from '../const';\nimport {root} from '../root';\n\n/**\n * Pop-up filter component\n * @export\n * @class PopupFilter\n * @extends {Feature}\n */\nexport class PopupFilter extends Feature {\n\n /**\n * Creates an instance of PopupFilter\n * @param {TableFilter} 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 /**\n * Close active popup filter upon filtering, enabled by default\n * @type {Boolean}\n */\n this.closeOnFiltering = f.popup_filters_close_on_filtering === false ?\n false : true;\n\n /**\n * Filter icon path\n * @type {String}\n */\n this.iconPath = f.popup_filters_image ||\n tf.themesPath + 'icn_filter.gif';\n\n /**\n * Active filter icon path\n * @type {string}\n */\n this.activeIconPath = f.popup_filters_image_active ||\n tf.themesPath + 'icn_filterActive.gif';\n\n /**\n * HTML for the filter icon\n * @type {string}\n */\n this.iconHtml = f.popup_filters_image_html ||\n '\"Column';\n\n /**\n * Css class assigned to filter container element\n * @type {String}\n */\n this.containerCssClass = f.popup_div_css_class || 'popUpFilter';\n\n /**\n * Ensure filter's container element width matches column width, enabled\n * by default\n * @type {Boolean}\n */\n this.adjustToContainer =\n f.popup_filters_adjust_to_container === false ? false : true;\n\n /**\n * Callback fired before a popup filter is opened\n * @type {Function}\n */\n this.onBeforeOpen = isFn(f.on_before_popup_filter_open) ?\n f.on_before_popup_filter_open : EMPTY_FN;\n\n /**\n * Callback fired after a popup filter is opened\n * @type {Function}\n */\n this.onAfterOpen = isFn(f.on_after_popup_filter_open) ?\n f.on_after_popup_filter_open : EMPTY_FN;\n\n /**\n * Callback fired before a popup filter is closed\n * @type {Function}\n */\n this.onBeforeClose = isFn(f.on_before_popup_filter_close) ?\n f.on_before_popup_filter_close : EMPTY_FN;\n\n /**\n * Callback fired after a popup filter is closed\n * @type {Function}\n */\n this.onAfterClose = isFn(f.on_after_popup_filter_close) ?\n f.on_after_popup_filter_close : EMPTY_FN;\n\n /**\n * Collection of filters spans\n * @type {Array}\n * @private\n */\n this.fltSpans = [];\n\n /**\n * Collection of filters icons\n * @type {Array}\n * @private\n */\n this.fltIcons = [];\n\n /**\n * Collection of filters icons cached after pop-up filters are removed\n * @type {Array}\n * @private\n */\n this.filtersCache = null;\n\n /**\n * Collection of filters containers\n * @type {Array}\n * @private\n */\n this.fltElms = this.filtersCache || [];\n\n /**\n * Prefix for pop-up filter container ID\n * @type {String}\n * @private\n */\n this.prfxDiv = 'popup_';\n\n /**\n * Column index of popup filter currently active\n * @type {Number}\n * @private\n */\n this.activeFilterIdx = -1;\n }\n\n /**\n * Click event handler for pop-up filter icon\n * @private\n */\n onClick(evt) {\n let elm = targetEvt(evt).parentNode;\n let colIndex = parseInt(elm.getAttribute('ci'), 10);\n\n this.closeAll(colIndex);\n this.toggle(colIndex);\n\n if (this.adjustToContainer) {\n let cont = this.fltElms[colIndex],\n header = this.tf.getHeaderElement(colIndex),\n headerWidth = header.clientWidth * 0.95;\n cont.style.width = parseInt(headerWidth, 10) + 'px';\n }\n cancelEvt(evt);\n stopEvt(evt);\n }\n\n /**\n * Mouse-up event handler handling popup filter auto-close behaviour\n * @private\n */\n onMouseup(evt) {\n if (this.activeFilterIdx === -1) {\n return;\n }\n let targetElm = targetEvt(evt);\n let activeFlt = this.fltElms[this.activeFilterIdx];\n let icon = this.fltIcons[this.activeFilterIdx];\n\n if (icon === targetElm) {\n return;\n }\n\n while (targetElm && targetElm !== activeFlt) {\n targetElm = targetElm.parentNode;\n }\n\n if (targetElm !== activeFlt) {\n this.close(this.activeFilterIdx);\n }\n\n return;\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 // TODO: Because of the filters row generation, headers row index needs\n // adjusting: prevent useless row generation\n if (tf.headersRow <= 1 && isNaN(tf.config().headers_row_index)) {\n tf.headersRow = 0;\n }\n\n // Adjust headers row index for grid-layout mode\n // TODO: Because of the filters row generation, headers row index needs\n // adjusting: prevent useless row generation\n if (tf.gridLayout) {\n tf.headersRow--;\n this.buildIcons();\n }\n\n // subscribe to events\n this.emitter.on(['before-filtering'], () => this.setIconsState());\n this.emitter.on(['after-filtering'], () => this.closeAll());\n this.emitter.on(['cell-processed'],\n (tf, cellIndex) => this.changeState(cellIndex, true));\n this.emitter.on(['filters-row-inserted'], () => this.buildIcons());\n this.emitter.on(['before-filter-init'],\n (tf, colIndex) => this.build(colIndex));\n\n /** @inherited */\n this.initialized = true;\n }\n\n /**\n * Reset previously destroyed feature\n */\n reset() {\n this.enable();\n this.init();\n this.buildIcons();\n this.buildAll();\n }\n\n /**\n * Build all filters icons\n */\n buildIcons() {\n let tf = this.tf;\n\n // TODO: Because of the filters row generation, headers row index needs\n // adjusting: prevent useless row generation\n tf.headersRow++;\n\n for (let i = 0; i < tf.nbCells; i++) {\n if (tf.getFilterType(i) === NONE) {\n continue;\n }\n let icon = createElm('span', ['ci', i]);\n icon.innerHTML = this.iconHtml;\n let header = tf.getHeaderElement(i);\n header.appendChild(icon);\n addEvt(icon, 'click', (evt) => this.onClick(evt));\n this.fltSpans[i] = icon;\n this.fltIcons[i] = icon.firstChild;\n }\n }\n\n /**\n * Build all pop-up filters elements\n */\n buildAll() {\n for (let i = 0; i < this.filtersCache.length; i++) {\n this.build(i, this.filtersCache[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 contId = `${this.prfxDiv}${tf.id}_${colIndex}`;\n let cont = div || createElm('div', ['id', contId]);\n cont.className = this.containerCssClass;\n tf.externalFltTgtIds.push(cont.id);\n\n let header = tf.getHeaderElement(colIndex);\n header.insertBefore(cont, header.firstChild);\n addEvt(cont, 'click', (evt) => stopEvt(evt));\n this.fltElms[colIndex] = cont;\n }\n\n /**\n * Toggle visibility of specified filter\n * @param {Number} colIndex Column index\n */\n toggle(colIndex) {\n if (!this.isOpen(colIndex)) {\n this.open(colIndex);\n } else {\n this.close(colIndex);\n }\n }\n\n /**\n * Open popup filter of specified column\n * @param {Number} colIndex Column index\n */\n open(colIndex) {\n let tf = this.tf,\n container = this.fltElms[colIndex];\n\n this.onBeforeOpen(this, container, colIndex);\n\n container.style.display = 'block';\n this.activeFilterIdx = colIndex;\n addEvt(root, 'mouseup', (evt) => this.onMouseup(evt));\n\n if (tf.getFilterType(colIndex) === INPUT) {\n let flt = tf.getFilterElement(colIndex);\n if (flt) {\n flt.focus();\n }\n }\n\n this.onAfterOpen(this, container, colIndex);\n }\n\n /**\n * Close popup filter of specified column\n * @param {Number} colIndex Column index\n */\n close(colIndex) {\n let container = this.fltElms[colIndex];\n\n this.onBeforeClose(this, container, colIndex);\n\n container.style.display = NONE;\n if (this.activeFilterIdx === colIndex) {\n this.activeFilterIdx = -1;\n }\n removeEvt(root, 'mouseup', (evt) => this.onMouseup(evt));\n\n this.onAfterClose(this, container, colIndex);\n }\n\n /**\n * Check if popup filter for specified column is open\n * @param {Number} colIndex Column index\n * @returns {Boolean}\n */\n isOpen(colIndex) {\n return this.fltElms[colIndex].style.display === 'block';\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 // Do not close filters only if argument is undefined and close on\n // filtering option is disabled\n if (isUndef(exceptIdx) && !this.closeOnFiltering) {\n return;\n }\n for (let i = 0; i < this.fltElms.length; i++) {\n if (i === exceptIdx) {\n continue;\n }\n let fltType = tf.getFilterType(i);\n let isMultipleFilter =\n (fltType === CHECKLIST || fltType === MULTIPLE);\n\n // Always hide all single selection filter types but hide multiple\n // selection filter types only if index set\n if (!isMultipleFilter || !isUndef(exceptIdx)) {\n this.close(i);\n }\n }\n }\n\n /**\n * Build all the icons representing the pop-up filters\n */\n setIconsState() {\n for (let i = 0; i < this.fltIcons.length; i++) {\n this.changeState(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 changeState(colIndex, active) {\n let icon = this.fltIcons[colIndex];\n if (icon) {\n icon.src = active ? this.activeIconPath : this.iconPath;\n }\n }\n\n /**\n * Remove pop-up filters\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n\n this.filtersCache = [];\n for (let i = 0; i < this.fltElms.length; i++) {\n let container = this.fltElms[i],\n icon = this.fltSpans[i],\n iconImg = this.fltIcons[i];\n if (container) {\n removeElm(container);\n this.filtersCache[i] = container;\n }\n container = null;\n if (icon) {\n removeElm(icon);\n }\n icon = null;\n if (iconImg) {\n removeElm(iconImg);\n }\n iconImg = null;\n }\n this.fltElms = [];\n this.fltSpans = [];\n this.fltIcons = [];\n\n // TODO: expose an API to handle external filter IDs\n tf.externalFltTgtIds = [];\n\n // unsubscribe to events\n this.emitter.off(['before-filtering'], () => this.setIconsState());\n this.emitter.off(['after-filtering'], () => this.closeAll());\n this.emitter.off(['cell-processed'],\n (tf, cellIndex) => this.changeState(cellIndex, true));\n this.emitter.off(['filters-row-inserted'], () => this.buildIcons());\n this.emitter.off(['before-filter-init'],\n (tf, colIndex) => this.build(colIndex));\n\n this.initialized = false;\n }\n\n}\n" }, { - "__docId__": 600, + "__docId__": 625, "kind": "class", "static": true, "variation": null, @@ -12698,7 +13506,7 @@ ] }, { - "__docId__": 601, + "__docId__": 626, "kind": "constructor", "static": false, "variation": null, @@ -12723,7 +13531,7 @@ "generator": false }, { - "__docId__": 602, + "__docId__": 627, "kind": "member", "static": false, "variation": null, @@ -12743,7 +13551,7 @@ } }, { - "__docId__": 603, + "__docId__": 628, "kind": "member", "static": false, "variation": null, @@ -12763,7 +13571,7 @@ } }, { - "__docId__": 604, + "__docId__": 629, "kind": "member", "static": false, "variation": null, @@ -12783,7 +13591,7 @@ } }, { - "__docId__": 605, + "__docId__": 630, "kind": "member", "static": false, "variation": null, @@ -12803,7 +13611,7 @@ } }, { - "__docId__": 606, + "__docId__": 631, "kind": "member", "static": false, "variation": null, @@ -12823,7 +13631,7 @@ } }, { - "__docId__": 607, + "__docId__": 632, "kind": "member", "static": false, "variation": null, @@ -12843,7 +13651,7 @@ } }, { - "__docId__": 608, + "__docId__": 633, "kind": "member", "static": false, "variation": null, @@ -12863,7 +13671,7 @@ } }, { - "__docId__": 609, + "__docId__": 634, "kind": "member", "static": false, "variation": null, @@ -12883,7 +13691,7 @@ } }, { - "__docId__": 610, + "__docId__": 635, "kind": "member", "static": false, "variation": null, @@ -12903,7 +13711,7 @@ } }, { - "__docId__": 611, + "__docId__": 636, "kind": "member", "static": false, "variation": null, @@ -12923,7 +13731,7 @@ } }, { - "__docId__": 612, + "__docId__": 637, "kind": "member", "static": false, "variation": null, @@ -12943,7 +13751,7 @@ } }, { - "__docId__": 613, + "__docId__": 638, "kind": "member", "static": false, "variation": null, @@ -12963,7 +13771,7 @@ } }, { - "__docId__": 614, + "__docId__": 639, "kind": "member", "static": false, "variation": null, @@ -12983,7 +13791,7 @@ } }, { - "__docId__": 615, + "__docId__": 640, "kind": "member", "static": false, "variation": null, @@ -13003,7 +13811,7 @@ } }, { - "__docId__": 616, + "__docId__": 641, "kind": "member", "static": false, "variation": null, @@ -13023,7 +13831,7 @@ } }, { - "__docId__": 617, + "__docId__": 642, "kind": "member", "static": false, "variation": null, @@ -13043,7 +13851,7 @@ } }, { - "__docId__": 618, + "__docId__": 643, "kind": "method", "static": false, "variation": null, @@ -13064,7 +13872,7 @@ "generator": false }, { - "__docId__": 619, + "__docId__": 644, "kind": "method", "static": false, "variation": null, @@ -13085,7 +13893,7 @@ "generator": false }, { - "__docId__": 620, + "__docId__": 645, "kind": "method", "static": false, "variation": null, @@ -13099,7 +13907,7 @@ "generator": false }, { - "__docId__": 621, + "__docId__": 646, "kind": "member", "static": false, "variation": null, @@ -13122,7 +13930,7 @@ } }, { - "__docId__": 622, + "__docId__": 647, "kind": "method", "static": false, "variation": null, @@ -13136,7 +13944,7 @@ "generator": false }, { - "__docId__": 623, + "__docId__": 648, "kind": "method", "static": false, "variation": null, @@ -13150,7 +13958,7 @@ "generator": false }, { - "__docId__": 624, + "__docId__": 649, "kind": "method", "static": false, "variation": null, @@ -13164,7 +13972,7 @@ "generator": false }, { - "__docId__": 625, + "__docId__": 650, "kind": "method", "static": false, "variation": null, @@ -13199,7 +14007,7 @@ "generator": false }, { - "__docId__": 626, + "__docId__": 651, "kind": "method", "static": false, "variation": null, @@ -13224,7 +14032,7 @@ "generator": false }, { - "__docId__": 627, + "__docId__": 652, "kind": "method", "static": false, "variation": null, @@ -13249,7 +14057,7 @@ "generator": false }, { - "__docId__": 628, + "__docId__": 653, "kind": "member", "static": false, "variation": null, @@ -13267,7 +14075,7 @@ } }, { - "__docId__": 629, + "__docId__": 654, "kind": "method", "static": false, "variation": null, @@ -13292,7 +14100,7 @@ "generator": false }, { - "__docId__": 630, + "__docId__": 655, "kind": "member", "static": false, "variation": null, @@ -13310,7 +14118,7 @@ } }, { - "__docId__": 631, + "__docId__": 656, "kind": "method", "static": false, "variation": null, @@ -13349,7 +14157,7 @@ "generator": false }, { - "__docId__": 632, + "__docId__": 657, "kind": "method", "static": false, "variation": null, @@ -13374,7 +14182,7 @@ "generator": false }, { - "__docId__": 633, + "__docId__": 658, "kind": "method", "static": false, "variation": null, @@ -13388,7 +14196,7 @@ "generator": false }, { - "__docId__": 634, + "__docId__": 659, "kind": "method", "static": false, "variation": null, @@ -13423,7 +14231,7 @@ "generator": false }, { - "__docId__": 635, + "__docId__": 660, "kind": "method", "static": false, "variation": null, @@ -13437,7 +14245,7 @@ "generator": false }, { - "__docId__": 636, + "__docId__": 661, "kind": "member", "static": false, "variation": null, @@ -13455,7 +14263,7 @@ } }, { - "__docId__": 637, + "__docId__": 662, "kind": "member", "static": false, "variation": null, @@ -13473,7 +14281,7 @@ } }, { - "__docId__": 638, + "__docId__": 663, "kind": "member", "static": false, "variation": null, @@ -13491,7 +14299,7 @@ } }, { - "__docId__": 639, + "__docId__": 664, "kind": "member", "static": false, "variation": null, @@ -13509,7 +14317,7 @@ } }, { - "__docId__": 640, + "__docId__": 665, "kind": "member", "static": false, "variation": null, @@ -13527,7 +14335,7 @@ } }, { - "__docId__": 641, + "__docId__": 666, "kind": "file", "static": true, "variation": null, @@ -13540,7 +14348,7 @@ "content": "import {Feature} from '../feature';\nimport {createElm, createText, elm, removeElm} from '../dom';\nimport {isFn, EMPTY_FN} from '../types';\n\n/**\n * Rows counter UI component\n * @export\n * @class RowsCounter\n * @extends {Feature}\n */\nexport class RowsCounter extends Feature {\n\n /**\n * Creates an instance of RowsCounter\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'rowsCounter');\n\n // TableFilter configuration\n let f = this.config;\n\n /**\n * ID of custom container element\n * @type {String}\n */\n this.targetId = f.rows_counter_target_id || null;\n\n /**\n * Container DOM element\n * @type {DOMElement}\n * @private\n */\n this.container = null;\n\n /**\n * Container DOM element for label displaying the total number of rows\n * @type {DOMElement}\n * @private\n */\n this.label = null;\n\n /**\n * Text preceding the total number of rows\n * @type {String}\n */\n this.text = f.rows_counter_text || 'Rows: ';\n\n /**\n * Separator symbol appearing between the first and last visible rows of\n * current page when paging is enabled. ie: Rows: 31-40 / 70\n * @type {String}\n */\n this.fromToTextSeparator = f.from_to_text_separator || '-';\n\n /**\n * Separator symbol appearing between the first and last visible rows of\n * current page and the total number of filterable rows when paging is\n * enabled. ie: Rows: 31-40 / 70\n * @type {String}\n */\n this.overText = f.over_text || ' / ';\n\n /**\n * Css class for container element\n * @type {String}\n */\n this.cssClass = f.tot_rows_css_class || 'tot';\n\n /**\n * Callback fired before the counter is refreshed\n * @type {Function}\n */\n this.onBeforeRefreshCounter = isFn(f.on_before_refresh_counter) ?\n f.on_before_refresh_counter : EMPTY_FN;\n\n /**\n * Callback fired after the counter is refreshed\n * @type {Function}\n */\n this.onAfterRefreshCounter = isFn(f.on_after_refresh_counter) ?\n f.on_after_refresh_counter : EMPTY_FN;\n }\n\n /**\n * Initializes RowsCounter instance\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n let tf = this.tf;\n\n //rows counter container\n let countDiv = createElm('div');\n countDiv.className = this.cssClass;\n //rows counter label\n let countSpan = createElm('span');\n let countText = createElm('span');\n countText.appendChild(createText(this.text));\n\n // counter is added to defined element\n if (!this.targetId) {\n tf.setToolbar();\n }\n let targetEl = !this.targetId ? tf.lDiv : elm(this.targetId);\n\n //default container: 'lDiv'\n if (!this.targetId) {\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.container = countDiv;\n this.label = 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 /** @inherited */\n this.initialized = true;\n this.refresh();\n }\n\n /**\n * Refreshes the rows counter\n * @param {Number} p Optional parameter the total number of rows to display\n * @returns\n */\n refresh(p) {\n if (!this.initialized || !this.isEnabled()) {\n return;\n }\n\n let tf = this.tf;\n\n this.onBeforeRefreshCounter(tf, this.label);\n\n let totTxt;\n if (!tf.paging) {\n if (p && p !== '') {\n totTxt = p;\n } else {\n totTxt = tf.getFilterableRowsNb() - tf.nbHiddenRows;\n }\n } else {\n let paging = tf.feature('paging');\n if (paging) {\n //paging start row\n let pagingStartRow = parseInt(paging.startPagingRow, 10) +\n ((tf.getValidRowsNb() > 0) ? 1 : 0);\n let 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.label.innerHTML = totTxt;\n this.onAfterRefreshCounter(tf, this.label, totTxt);\n }\n\n /**\n * Remove feature\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n\n if (!this.targetId && this.container) {\n removeElm(this.container);\n } else {\n elm(this.targetId).innerHTML = '';\n }\n this.label = null;\n this.container = 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__": 642, + "__docId__": 667, "kind": "class", "static": true, "variation": null, @@ -13569,7 +14377,7 @@ ] }, { - "__docId__": 643, + "__docId__": 668, "kind": "constructor", "static": false, "variation": null, @@ -13594,7 +14402,7 @@ "generator": false }, { - "__docId__": 644, + "__docId__": 669, "kind": "member", "static": false, "variation": null, @@ -13614,7 +14422,7 @@ } }, { - "__docId__": 645, + "__docId__": 670, "kind": "member", "static": false, "variation": null, @@ -13634,7 +14442,7 @@ } }, { - "__docId__": 646, + "__docId__": 671, "kind": "member", "static": false, "variation": null, @@ -13654,7 +14462,7 @@ } }, { - "__docId__": 647, + "__docId__": 672, "kind": "member", "static": false, "variation": null, @@ -13674,7 +14482,7 @@ } }, { - "__docId__": 648, + "__docId__": 673, "kind": "member", "static": false, "variation": null, @@ -13694,7 +14502,7 @@ } }, { - "__docId__": 649, + "__docId__": 674, "kind": "member", "static": false, "variation": null, @@ -13714,7 +14522,7 @@ } }, { - "__docId__": 650, + "__docId__": 675, "kind": "member", "static": false, "variation": null, @@ -13734,7 +14542,7 @@ } }, { - "__docId__": 651, + "__docId__": 676, "kind": "member", "static": false, "variation": null, @@ -13754,7 +14562,7 @@ } }, { - "__docId__": 652, + "__docId__": 677, "kind": "member", "static": false, "variation": null, @@ -13774,7 +14582,7 @@ } }, { - "__docId__": 653, + "__docId__": 678, "kind": "method", "static": false, "variation": null, @@ -13788,7 +14596,7 @@ "generator": false }, { - "__docId__": 654, + "__docId__": 679, "kind": "member", "static": false, "variation": null, @@ -13806,7 +14614,7 @@ } }, { - "__docId__": 655, + "__docId__": 680, "kind": "member", "static": false, "variation": null, @@ -13824,7 +14632,7 @@ } }, { - "__docId__": 656, + "__docId__": 681, "kind": "member", "static": false, "variation": null, @@ -13847,7 +14655,7 @@ } }, { - "__docId__": 657, + "__docId__": 682, "kind": "method", "static": false, "variation": null, @@ -13878,7 +14686,7 @@ "generator": false }, { - "__docId__": 658, + "__docId__": 683, "kind": "method", "static": false, "variation": null, @@ -13892,7 +14700,7 @@ "generator": false }, { - "__docId__": 659, + "__docId__": 684, "kind": "member", "static": false, "variation": null, @@ -13910,7 +14718,7 @@ } }, { - "__docId__": 660, + "__docId__": 685, "kind": "member", "static": false, "variation": null, @@ -13928,7 +14736,7 @@ } }, { - "__docId__": 661, + "__docId__": 686, "kind": "member", "static": false, "variation": null, @@ -13946,7 +14754,7 @@ } }, { - "__docId__": 662, + "__docId__": 687, "kind": "file", "static": true, "variation": null, @@ -13959,7 +14767,7 @@ "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 * Features state object persistable with localStorage, cookie or URL hash\n *\n * @export\n * @class State\n * @extends {Feature}\n */\nexport class State extends Feature {\n\n /**\n * Creates an instance of State\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'state');\n\n let cfg = this.config.state;\n\n /**\n * Determines whether state is persisted with URL hash\n * @type {Boolean}\n */\n this.enableHash = cfg === true ||\n (isArray(cfg.types) && cfg.types.indexOf('hash') !== -1);\n\n /**\n * Determines whether state is persisted with localStorage\n * @type {Boolean}\n */\n this.enableLocalStorage = isArray(cfg.types) &&\n cfg.types.indexOf('local_storage') !== -1;\n\n /**\n * Determines whether state is persisted with localStorage\n * @type {Boolean}\n */\n this.enableCookie = isArray(cfg.types) &&\n cfg.types.indexOf('cookie') !== -1;\n\n /**\n * Persist filters values, enabled by default\n * @type {Boolean}\n */\n this.persistFilters = cfg.filters === false ? false : true;\n\n /**\n * Persist current page number when paging is enabled\n * @type {Boolean}\n */\n this.persistPageNumber = Boolean(cfg.page_number);\n\n /**\n * Persist page length when paging is enabled\n * @type {Boolean}\n */\n this.persistPageLength = Boolean(cfg.page_length);\n\n /**\n * Persist column sorting\n * @type {Boolean}\n */\n this.persistSort = Boolean(cfg.sort);\n\n /**\n * Persist columns visibility\n * @type {Boolean}\n */\n this.persistColsVisibility = Boolean(cfg.columns_visibility);\n\n /**\n * Persist filters row visibility\n * @type {Boolean}\n */\n this.persistFiltersVisibility = Boolean(cfg.filters_visibility);\n\n /**\n * Cookie duration in hours\n * @type {Boolean}\n */\n this.cookieDuration = !isNaN(cfg.cookie_duration) ?\n parseInt(cfg.cookie_duration, 10) : 87600;\n\n /**\n * Enable Storage if localStorage or cookie is required\n * @type {Boolean}\n * @private\n */\n this.enableStorage = this.enableLocalStorage || this.enableCookie;\n\n /**\n * Storage instance if storage is required\n * @type {Storage}\n * @private\n */\n this.storage = null;\n\n /**\n * Hash instance if URL hash is required\n * @type {Boolean}\n * @private\n */\n this.hash = null;\n\n /**\n * Current page number\n * @type {Number}\n * @private\n */\n this.pageNb = null;\n\n /**\n * Current page length\n * @type {Number}\n * @private\n */\n this.pageLength = null;\n\n /**\n * Current column sorting\n * @type {Object}\n * @private\n */\n this.sort = null;\n\n /**\n * Current hidden columns\n * @type {Object}\n * @private\n */\n this.hiddenCols = null;\n\n /**\n * Filters row visibility\n * @type {Boolean}\n * @private\n */\n this.filtersVisibility = null;\n\n /**\n * State object\n * @type {Object}\n * @private\n */\n this.state = {};\n\n /**\n * Prefix for column ID\n * @type {String}\n * @private\n */\n this.prfxCol = 'col_';\n\n /**\n * Prefix for page number ID\n * @type {String}\n * @private\n */\n this.pageNbKey = 'page';\n\n /**\n * Prefix for page length ID\n * @type {String}\n * @private\n */\n this.pageLengthKey = 'page_length';\n\n /**\n * Prefix for filters visibility ID\n * @type {String}\n * @private\n */\n this.filtersVisKey = 'filters_visibility';\n }\n\n /**\n * Initializes State instance\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\n /**\n * @inherited\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__": 663, + "__docId__": 688, "kind": "class", "static": true, "variation": null, @@ -13988,7 +14796,7 @@ ] }, { - "__docId__": 664, + "__docId__": 689, "kind": "constructor", "static": false, "variation": null, @@ -14013,7 +14821,7 @@ "generator": false }, { - "__docId__": 665, + "__docId__": 690, "kind": "member", "static": false, "variation": null, @@ -14033,7 +14841,7 @@ } }, { - "__docId__": 666, + "__docId__": 691, "kind": "member", "static": false, "variation": null, @@ -14053,7 +14861,7 @@ } }, { - "__docId__": 667, + "__docId__": 692, "kind": "member", "static": false, "variation": null, @@ -14073,7 +14881,7 @@ } }, { - "__docId__": 668, + "__docId__": 693, "kind": "member", "static": false, "variation": null, @@ -14093,7 +14901,7 @@ } }, { - "__docId__": 669, + "__docId__": 694, "kind": "member", "static": false, "variation": null, @@ -14113,7 +14921,7 @@ } }, { - "__docId__": 670, + "__docId__": 695, "kind": "member", "static": false, "variation": null, @@ -14133,7 +14941,7 @@ } }, { - "__docId__": 671, + "__docId__": 696, "kind": "member", "static": false, "variation": null, @@ -14153,7 +14961,7 @@ } }, { - "__docId__": 672, + "__docId__": 697, "kind": "member", "static": false, "variation": null, @@ -14173,7 +14981,7 @@ } }, { - "__docId__": 673, + "__docId__": 698, "kind": "member", "static": false, "variation": null, @@ -14193,7 +15001,7 @@ } }, { - "__docId__": 674, + "__docId__": 699, "kind": "member", "static": false, "variation": null, @@ -14213,7 +15021,7 @@ } }, { - "__docId__": 675, + "__docId__": 700, "kind": "member", "static": false, "variation": null, @@ -14233,7 +15041,7 @@ } }, { - "__docId__": 676, + "__docId__": 701, "kind": "member", "static": false, "variation": null, @@ -14253,7 +15061,7 @@ } }, { - "__docId__": 677, + "__docId__": 702, "kind": "member", "static": false, "variation": null, @@ -14273,7 +15081,7 @@ } }, { - "__docId__": 678, + "__docId__": 703, "kind": "member", "static": false, "variation": null, @@ -14293,7 +15101,7 @@ } }, { - "__docId__": 679, + "__docId__": 704, "kind": "member", "static": false, "variation": null, @@ -14313,7 +15121,7 @@ } }, { - "__docId__": 680, + "__docId__": 705, "kind": "member", "static": false, "variation": null, @@ -14333,7 +15141,7 @@ } }, { - "__docId__": 681, + "__docId__": 706, "kind": "member", "static": false, "variation": null, @@ -14353,7 +15161,7 @@ } }, { - "__docId__": 682, + "__docId__": 707, "kind": "member", "static": false, "variation": null, @@ -14373,7 +15181,7 @@ } }, { - "__docId__": 683, + "__docId__": 708, "kind": "member", "static": false, "variation": null, @@ -14393,7 +15201,7 @@ } }, { - "__docId__": 684, + "__docId__": 709, "kind": "member", "static": false, "variation": null, @@ -14413,7 +15221,7 @@ } }, { - "__docId__": 685, + "__docId__": 710, "kind": "member", "static": false, "variation": null, @@ -14433,7 +15241,7 @@ } }, { - "__docId__": 686, + "__docId__": 711, "kind": "member", "static": false, "variation": null, @@ -14453,7 +15261,7 @@ } }, { - "__docId__": 687, + "__docId__": 712, "kind": "member", "static": false, "variation": null, @@ -14473,7 +15281,7 @@ } }, { - "__docId__": 688, + "__docId__": 713, "kind": "method", "static": false, "variation": null, @@ -14487,7 +15295,7 @@ "generator": false }, { - "__docId__": 689, + "__docId__": 714, "kind": "member", "static": false, "variation": null, @@ -14505,7 +15313,7 @@ } }, { - "__docId__": 690, + "__docId__": 715, "kind": "member", "static": false, "variation": null, @@ -14523,7 +15331,7 @@ } }, { - "__docId__": 691, + "__docId__": 716, "kind": "member", "static": false, "variation": null, @@ -14546,7 +15354,7 @@ } }, { - "__docId__": 692, + "__docId__": 717, "kind": "method", "static": false, "variation": null, @@ -14560,7 +15368,7 @@ "generator": false }, { - "__docId__": 693, + "__docId__": 718, "kind": "method", "static": false, "variation": null, @@ -14585,7 +15393,7 @@ "generator": false }, { - "__docId__": 694, + "__docId__": 719, "kind": "member", "static": false, "variation": null, @@ -14603,7 +15411,7 @@ } }, { - "__docId__": 695, + "__docId__": 720, "kind": "method", "static": false, "variation": null, @@ -14628,7 +15436,7 @@ "generator": false }, { - "__docId__": 696, + "__docId__": 721, "kind": "member", "static": false, "variation": null, @@ -14646,7 +15454,7 @@ } }, { - "__docId__": 697, + "__docId__": 722, "kind": "method", "static": false, "variation": null, @@ -14681,7 +15489,7 @@ "generator": false }, { - "__docId__": 698, + "__docId__": 723, "kind": "member", "static": false, "variation": null, @@ -14699,7 +15507,7 @@ } }, { - "__docId__": 699, + "__docId__": 724, "kind": "method", "static": false, "variation": null, @@ -14724,7 +15532,7 @@ "generator": false }, { - "__docId__": 700, + "__docId__": 725, "kind": "member", "static": false, "variation": null, @@ -14742,7 +15550,7 @@ } }, { - "__docId__": 701, + "__docId__": 726, "kind": "method", "static": false, "variation": null, @@ -14767,7 +15575,7 @@ "generator": false }, { - "__docId__": 702, + "__docId__": 727, "kind": "member", "static": false, "variation": null, @@ -14785,7 +15593,7 @@ } }, { - "__docId__": 703, + "__docId__": 728, "kind": "method", "static": false, "variation": null, @@ -14810,7 +15618,7 @@ "generator": false }, { - "__docId__": 704, + "__docId__": 729, "kind": "member", "static": false, "variation": null, @@ -14828,7 +15636,7 @@ } }, { - "__docId__": 705, + "__docId__": 730, "kind": "method", "static": false, "variation": null, @@ -14842,7 +15650,7 @@ "generator": false }, { - "__docId__": 706, + "__docId__": 731, "kind": "method", "static": false, "variation": null, @@ -14867,7 +15675,7 @@ "generator": false }, { - "__docId__": 707, + "__docId__": 732, "kind": "method", "static": false, "variation": null, @@ -14881,7 +15689,7 @@ "generator": false }, { - "__docId__": 708, + "__docId__": 733, "kind": "method", "static": false, "variation": null, @@ -14895,7 +15703,7 @@ "generator": false }, { - "__docId__": 709, + "__docId__": 734, "kind": "method", "static": false, "variation": null, @@ -14909,7 +15717,7 @@ "generator": false }, { - "__docId__": 710, + "__docId__": 735, "kind": "method", "static": false, "variation": null, @@ -14923,7 +15731,7 @@ "generator": false }, { - "__docId__": 711, + "__docId__": 736, "kind": "member", "static": false, "variation": null, @@ -14941,7 +15749,7 @@ } }, { - "__docId__": 712, + "__docId__": 737, "kind": "method", "static": false, "variation": null, @@ -14955,7 +15763,7 @@ "generator": false }, { - "__docId__": 713, + "__docId__": 738, "kind": "member", "static": false, "variation": null, @@ -14973,7 +15781,7 @@ } }, { - "__docId__": 714, + "__docId__": 739, "kind": "member", "static": false, "variation": null, @@ -14991,7 +15799,7 @@ } }, { - "__docId__": 715, + "__docId__": 740, "kind": "member", "static": false, "variation": null, @@ -15009,7 +15817,7 @@ } }, { - "__docId__": 716, + "__docId__": 741, "kind": "member", "static": false, "variation": null, @@ -15027,7 +15835,7 @@ } }, { - "__docId__": 717, + "__docId__": 742, "kind": "file", "static": true, "variation": null, @@ -15040,7 +15848,7 @@ "content": "import {Feature} from '../feature';\nimport {root} from '../root';\nimport {createElm, createText, elm, removeElm} from '../dom';\nimport {isFn, EMPTY_FN} from '../types';\n\nconst EVENTS = [\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];\n\n/**\n * Status bar UI component\n * @export\n * @class StatusBar\n * @extends {Feature}\n */\nexport class StatusBar extends Feature {\n\n /**\n * Creates an instance of StatusBar\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'statusBar');\n\n // Configuration object\n let f = this.config;\n\n /**\n * ID of custom container element\n * @type {String}\n */\n this.targetId = f.status_bar_target_id || null;\n\n /**\n * Container DOM element\n * @type {DOMElement}\n * @private\n */\n this.container = null;\n\n /**\n * Message container DOM element\n * @type {DOMElement}\n * @private\n */\n this.msgContainer = null;\n\n /**\n * Label container DOM element\n * @type {DOMElement}\n * @private\n */\n this.labelContainer = null;\n\n /**\n * Text preceding status message\n * @type {String}\n */\n this.text = f.status_bar_text || '';\n\n /**\n * Css class for container element\n * @type {String}\n */\n this.cssClass = f.status_bar_css_class || 'status';\n\n /**\n * Message visibility duration in milliseconds\n * @type {Number}\n * @private\n */\n this.delay = 250;\n\n /**\n * Callback fired before the message is displayed\n * @type {Function}\n */\n this.onBeforeShowMsg = isFn(f.on_before_show_msg) ?\n f.on_before_show_msg : EMPTY_FN;\n\n /**\n * Callback fired after the message is displayed\n * @type {Function}\n */\n this.onAfterShowMsg = isFn(f.on_after_show_msg) ?\n f.on_after_show_msg : EMPTY_FN;\n\n /**\n * Message appearing upon filtering\n * @type {String}\n */\n this.msgFilter = f.msg_filter || 'Filtering data...';\n\n /**\n * Message appearing when a drop-down filter is populated\n * @type {String}\n */\n this.msgPopulate = f.msg_populate || 'Populating filter...';\n\n /**\n * Message appearing when a checklist filter is populated\n * @type {String}\n */\n this.msgPopulateCheckList = f.msg_populate_checklist ||\n 'Populating list...';\n\n /**\n * Message appearing when a pagination page is changed\n * @type {String}\n */\n this.msgChangePage = f.msg_change_page || 'Collecting paging data...';\n\n /**\n * Message appearing when filters are cleared\n * @type {String}\n */\n this.msgClear = f.msg_clear || 'Clearing filters...';\n\n /**\n * Message appearing when the page length is changed\n * @type {String}\n */\n this.msgChangeResults = f.msg_change_results ||\n 'Changing results per page...';\n\n /**\n * Message appearing when the page is re-set\n * @type {String}\n */\n this.msgResetPage = f.msg_reset_page || 'Re-setting page...';\n\n /**\n * Message appearing when the page length is re-set\n * @type {String}\n */\n this.msgResetPageLength = f.msg_reset_page_length ||\n 'Re-setting page length...';\n\n /**\n * Message appearing upon column sorting\n * @type {String}\n */\n this.msgSort = f.msg_sort || 'Sorting data...';\n\n /**\n * Message appearing when extensions are loading\n * @type {String}\n */\n this.msgLoadExtensions = f.msg_load_extensions ||\n 'Loading extensions...';\n\n /**\n * Message appearing when themes are loading\n * @type {String}\n */\n this.msgLoadThemes = f.msg_load_themes || 'Loading theme(s)...';\n }\n\n /**\n * Initializes StatusBar instance\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');\n statusDiv.className = this.cssClass;\n\n //status bar label\n let statusSpan = createElm('span');\n //preceding text\n let statusSpanText = createElm('span');\n statusSpanText.appendChild(createText(this.text));\n\n // target element container\n if (!this.targetId) {\n tf.setToolbar();\n }\n let targetEl = (!this.targetId) ? tf.lDiv : elm(this.targetId);\n\n //default container: 'lDiv'\n if (!this.targetId) {\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.container = statusDiv;\n this.msgContainer = statusSpan;\n this.labelContainer = 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(EVENTS, () => this.message(''));\n\n /**\n * @inherited\n */\n this.initialized = true;\n }\n\n /**\n * Display status message\n * @param {String} [t=''] Message to be displayed\n */\n message(t = '') {\n if (!this.isEnabled()) {\n return;\n }\n\n this.onBeforeShowMsg(this.tf, t);\n\n let d = t === '' ? this.delay : 1;\n root.setTimeout(() => {\n if (!this.initialized) {\n return;\n }\n this.msgContainer.innerHTML = t;\n\n this.onAfterShowMsg(this.tf, t);\n }, d);\n }\n\n /**\n * Destroy StatusBar instance\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n\n let emitter = this.emitter;\n\n this.container.innerHTML = '';\n if (!this.targetId) {\n removeElm(this.container);\n }\n this.labelContainer = null;\n this.msgContainer = null;\n this.container = 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(EVENTS, () => this.message(''));\n\n this.initialized = false;\n }\n}\n" }, { - "__docId__": 718, + "__docId__": 743, "kind": "variable", "static": true, "variation": null, @@ -15061,7 +15869,7 @@ } }, { - "__docId__": 719, + "__docId__": 744, "kind": "class", "static": true, "variation": null, @@ -15090,7 +15898,7 @@ ] }, { - "__docId__": 720, + "__docId__": 745, "kind": "constructor", "static": false, "variation": null, @@ -15115,7 +15923,7 @@ "generator": false }, { - "__docId__": 721, + "__docId__": 746, "kind": "member", "static": false, "variation": null, @@ -15135,7 +15943,7 @@ } }, { - "__docId__": 722, + "__docId__": 747, "kind": "member", "static": false, "variation": null, @@ -15155,7 +15963,7 @@ } }, { - "__docId__": 723, + "__docId__": 748, "kind": "member", "static": false, "variation": null, @@ -15175,7 +15983,7 @@ } }, { - "__docId__": 724, + "__docId__": 749, "kind": "member", "static": false, "variation": null, @@ -15195,7 +16003,7 @@ } }, { - "__docId__": 725, + "__docId__": 750, "kind": "member", "static": false, "variation": null, @@ -15215,7 +16023,7 @@ } }, { - "__docId__": 726, + "__docId__": 751, "kind": "member", "static": false, "variation": null, @@ -15235,7 +16043,7 @@ } }, { - "__docId__": 727, + "__docId__": 752, "kind": "member", "static": false, "variation": null, @@ -15255,7 +16063,7 @@ } }, { - "__docId__": 728, + "__docId__": 753, "kind": "member", "static": false, "variation": null, @@ -15275,7 +16083,7 @@ } }, { - "__docId__": 729, + "__docId__": 754, "kind": "member", "static": false, "variation": null, @@ -15295,7 +16103,7 @@ } }, { - "__docId__": 730, + "__docId__": 755, "kind": "member", "static": false, "variation": null, @@ -15315,7 +16123,7 @@ } }, { - "__docId__": 731, + "__docId__": 756, "kind": "member", "static": false, "variation": null, @@ -15335,7 +16143,7 @@ } }, { - "__docId__": 732, + "__docId__": 757, "kind": "member", "static": false, "variation": null, @@ -15355,7 +16163,7 @@ } }, { - "__docId__": 733, + "__docId__": 758, "kind": "member", "static": false, "variation": null, @@ -15375,7 +16183,7 @@ } }, { - "__docId__": 734, + "__docId__": 759, "kind": "member", "static": false, "variation": null, @@ -15395,7 +16203,7 @@ } }, { - "__docId__": 735, + "__docId__": 760, "kind": "member", "static": false, "variation": null, @@ -15415,7 +16223,7 @@ } }, { - "__docId__": 736, + "__docId__": 761, "kind": "member", "static": false, "variation": null, @@ -15435,7 +16243,7 @@ } }, { - "__docId__": 737, + "__docId__": 762, "kind": "member", "static": false, "variation": null, @@ -15455,7 +16263,7 @@ } }, { - "__docId__": 738, + "__docId__": 763, "kind": "member", "static": false, "variation": null, @@ -15475,7 +16283,7 @@ } }, { - "__docId__": 739, + "__docId__": 764, "kind": "member", "static": false, "variation": null, @@ -15495,7 +16303,7 @@ } }, { - "__docId__": 740, + "__docId__": 765, "kind": "member", "static": false, "variation": null, @@ -15515,7 +16323,7 @@ } }, { - "__docId__": 741, + "__docId__": 766, "kind": "method", "static": false, "variation": null, @@ -15529,7 +16337,7 @@ "generator": false }, { - "__docId__": 742, + "__docId__": 767, "kind": "member", "static": false, "variation": null, @@ -15547,7 +16355,7 @@ } }, { - "__docId__": 743, + "__docId__": 768, "kind": "member", "static": false, "variation": null, @@ -15565,7 +16373,7 @@ } }, { - "__docId__": 744, + "__docId__": 769, "kind": "member", "static": false, "variation": null, @@ -15583,7 +16391,7 @@ } }, { - "__docId__": 745, + "__docId__": 770, "kind": "member", "static": false, "variation": null, @@ -15606,7 +16414,7 @@ } }, { - "__docId__": 746, + "__docId__": 771, "kind": "method", "static": false, "variation": null, @@ -15633,7 +16441,7 @@ "generator": false }, { - "__docId__": 747, + "__docId__": 772, "kind": "method", "static": false, "variation": null, @@ -15647,7 +16455,7 @@ "generator": false }, { - "__docId__": 748, + "__docId__": 773, "kind": "member", "static": false, "variation": null, @@ -15665,7 +16473,7 @@ } }, { - "__docId__": 749, + "__docId__": 774, "kind": "member", "static": false, "variation": null, @@ -15683,7 +16491,7 @@ } }, { - "__docId__": 750, + "__docId__": 775, "kind": "member", "static": false, "variation": null, @@ -15701,7 +16509,7 @@ } }, { - "__docId__": 751, + "__docId__": 776, "kind": "member", "static": false, "variation": null, @@ -15719,7 +16527,7 @@ } }, { - "__docId__": 752, + "__docId__": 777, "kind": "file", "static": true, "variation": null, @@ -15732,7 +16540,7 @@ "content": "\nimport Cookie from '../cookie';\nimport {root} from '../root';\n\nconst JSON = root.JSON;\nconst localStorage = root.localStorage;\nconst location = root.location;\n\n/**\n * Checks if browser has Storage feature\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\n /**\n * State object\n * @type {State}\n * @private\n */\n this.state = state;\n\n /**\n * TableFilter object\n * @type {TableFilter}\n * @private\n */\n this.tf = state.tf;\n\n /**\n * Persist with local storage\n * @type {Boolean}\n * @private\n */\n this.enableLocalStorage = state.enableLocalStorage && hasStorage();\n\n /**\n * Persist with cookie\n * @type {Boolean}\n * @private\n */\n this.enableCookie = state.enableCookie && !this.enableLocalStorage;\n\n /**\n * Emitter object\n * @type {Emitter}\n * @private\n */\n this.emitter = state.emitter;\n\n /**\n * Cookie duration in hours from state object\n * @type {Number}\n * @private\n */\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__": 753, + "__docId__": 778, "kind": "variable", "static": true, "variation": null, @@ -15753,7 +16561,7 @@ } }, { - "__docId__": 754, + "__docId__": 779, "kind": "variable", "static": true, "variation": null, @@ -15774,7 +16582,7 @@ } }, { - "__docId__": 755, + "__docId__": 780, "kind": "variable", "static": true, "variation": null, @@ -15795,7 +16603,7 @@ } }, { - "__docId__": 756, + "__docId__": 781, "kind": "variable", "static": true, "variation": null, @@ -15815,7 +16623,7 @@ } }, { - "__docId__": 757, + "__docId__": 782, "kind": "class", "static": true, "variation": null, @@ -15841,7 +16649,7 @@ "interface": false }, { - "__docId__": 758, + "__docId__": 783, "kind": "constructor", "static": false, "variation": null, @@ -15866,7 +16674,7 @@ "generator": false }, { - "__docId__": 759, + "__docId__": 784, "kind": "member", "static": false, "variation": null, @@ -15886,7 +16694,7 @@ } }, { - "__docId__": 760, + "__docId__": 785, "kind": "member", "static": false, "variation": null, @@ -15906,7 +16714,7 @@ } }, { - "__docId__": 761, + "__docId__": 786, "kind": "member", "static": false, "variation": null, @@ -15926,7 +16734,7 @@ } }, { - "__docId__": 762, + "__docId__": 787, "kind": "member", "static": false, "variation": null, @@ -15946,7 +16754,7 @@ } }, { - "__docId__": 763, + "__docId__": 788, "kind": "member", "static": false, "variation": null, @@ -15966,7 +16774,7 @@ } }, { - "__docId__": 764, + "__docId__": 789, "kind": "member", "static": false, "variation": null, @@ -15986,7 +16794,7 @@ } }, { - "__docId__": 765, + "__docId__": 790, "kind": "method", "static": false, "variation": null, @@ -16000,7 +16808,7 @@ "generator": false }, { - "__docId__": 766, + "__docId__": 791, "kind": "method", "static": false, "variation": null, @@ -16025,7 +16833,7 @@ "generator": false }, { - "__docId__": 767, + "__docId__": 792, "kind": "method", "static": false, "variation": null, @@ -16053,7 +16861,7 @@ "generator": false }, { - "__docId__": 768, + "__docId__": 793, "kind": "method", "static": false, "variation": null, @@ -16067,7 +16875,7 @@ "generator": false }, { - "__docId__": 769, + "__docId__": 794, "kind": "method", "static": false, "variation": null, @@ -16081,7 +16889,7 @@ "generator": false }, { - "__docId__": 770, + "__docId__": 795, "kind": "method", "static": false, "variation": null, @@ -16109,7 +16917,7 @@ "generator": false }, { - "__docId__": 771, + "__docId__": 796, "kind": "method", "static": false, "variation": null, @@ -16123,7 +16931,7 @@ "generator": false }, { - "__docId__": 772, + "__docId__": 797, "kind": "member", "static": false, "variation": null, @@ -16141,7 +16949,7 @@ } }, { - "__docId__": 773, + "__docId__": 798, "kind": "member", "static": false, "variation": null, @@ -16159,7 +16967,7 @@ } }, { - "__docId__": 774, + "__docId__": 799, "kind": "file", "static": true, "variation": null, @@ -16172,7 +16980,7 @@ "content": "import {isNumber} from './types';\n\n/**\n * Takes a string, removes all formatting/cruft and returns the raw float value\n * @param {String} Formatted number\n * @param {String} Decimal type '.' or ','\n * @return {Number} Unformatted number\n *\n * https://github.com/openexchangerates/accounting.js/blob/master/accounting.js\n */\nexport const parse = (value, decimal = '.') => {\n // Return the value as-is if it's already a number\n if (isNumber(value)) {\n return value;\n }\n\n // Build regex to strip out everything except digits, decimal point and\n // minus sign\n let regex = new RegExp('[^0-9-' + decimal + ']', ['g']);\n let unformatted = parseFloat(\n ('' + value)\n .replace(/\\((.*)\\)/, '-$1') // replace bracketed values with negatives\n .replace(regex, '') // strip out any cruft\n .replace(decimal, '.') // make sure decimal point is standard\n );\n\n // This will fail silently\n return !isNaN(unformatted) ? unformatted : 0;\n}\n" }, { - "__docId__": 775, + "__docId__": 800, "kind": "variable", "static": true, "variation": null, @@ -16222,7 +17030,7 @@ } }, { - "__docId__": 776, + "__docId__": 801, "kind": "file", "static": true, "variation": null, @@ -16235,7 +17043,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__": 777, + "__docId__": 802, "kind": "variable", "static": true, "variation": null, @@ -16255,7 +17063,7 @@ } }, { - "__docId__": 778, + "__docId__": 803, "kind": "file", "static": true, "variation": null, @@ -16268,7 +17076,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__": 779, + "__docId__": 804, "kind": "variable", "static": true, "variation": null, @@ -16318,7 +17126,7 @@ } }, { - "__docId__": 780, + "__docId__": 805, "kind": "variable", "static": true, "variation": null, @@ -16370,7 +17178,7 @@ } }, { - "__docId__": 781, + "__docId__": 806, "kind": "variable", "static": true, "variation": null, @@ -16422,7 +17230,7 @@ } }, { - "__docId__": 782, + "__docId__": 807, "kind": "file", "static": true, "variation": null, @@ -16435,7 +17243,7 @@ "content": "import {remove as removeDiacritics} from 'diacritics';\n\n/**\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 * @param {Boolean} ignoreDiacritics Ignore diacritics\n * @return {Boolean}\n */\nexport const contains = (term, data, exactMatch = false, caseSensitive = false,\n ignoreDiacritics = 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 (ignoreDiacritics) {\n term = removeDiacritics(term);\n data = removeDiacritics(data);\n }\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__": 783, + "__docId__": 808, "kind": "variable", "static": true, "variation": null, @@ -16475,7 +17283,7 @@ } }, { - "__docId__": 784, + "__docId__": 809, "kind": "variable", "static": true, "variation": null, @@ -16515,7 +17323,7 @@ } }, { - "__docId__": 785, + "__docId__": 810, "kind": "variable", "static": true, "variation": null, @@ -16555,7 +17363,7 @@ } }, { - "__docId__": 786, + "__docId__": 811, "kind": "variable", "static": true, "variation": null, @@ -16595,7 +17403,7 @@ } }, { - "__docId__": 787, + "__docId__": 812, "kind": "variable", "static": true, "variation": null, @@ -16675,7 +17483,7 @@ } }, { - "__docId__": 788, + "__docId__": 813, "kind": "file", "static": true, "variation": null, @@ -16685,10 +17493,10 @@ "access": null, "description": null, "lineNumber": 1, - "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 {\n isArray, isEmpty, isFn, isNumber, isObj, isString, isUndef, EMPTY_FN\n} from './types';\nimport {parse as parseNb} from './number'\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';\nimport {DateType} from './modules/dateType';\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, NUMBER, DATE, FORMATTED_NUMBER\n} from './const';\n\nlet doc = root.document;\n\n/**\n * Makes HTML tables filterable and a bit more :)\n *\n * @export\n * @class TableFilter\n */\nexport class TableFilter {\n\n /**\n * Creates an instance of TableFilter\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 /**\n * ID of current instance\n * @type {String}\n * @private\n */\n this.id = null;\n\n /**\n * Current version\n * @type {String}\n */\n this.version = '{VERSION}';\n\n /**\n * Current year\n * @type {Number}\n * @private\n */\n this.year = new Date().getFullYear();\n\n /**\n * HTML Table DOM element\n * @type {DOMElement}\n */\n this.tbl = null;\n\n /**\n * Calculated row's index from which starts filtering once filters\n * are generated\n * @type {Number}\n */\n this.refRow = null;\n\n /**\n * Index of the headers row\n * @type {Number}\n * @private\n */\n this.headersRow = null;\n\n /**\n * Configuration object\n * @type {Object}\n * @private\n */\n this.cfg = {};\n\n /**\n * Number of rows that can be filtered\n * @type {Number}\n * @private\n */\n this.nbFilterableRows = 0;\n\n /**\n * Number of cells in the reference row\n * @type {Number}\n * @private\n */\n this.nbCells = null;\n\n let startRow;\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 startRow = arg;\n } else if (isObj(arg)) {\n this.cfg = arg;\n }\n });\n\n if (!this.tbl || this.tbl.nodeName !== 'TABLE') {\n throw new Error(`Could not instantiate TableFilter: HTML table\n DOM element not found.`);\n }\n\n if (this.getRowsNb() === 0) {\n throw new Error(`Could not instantiate TableFilter: HTML table\n requires at least 1 row.`);\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 = isUndef(startRow) ? 2 : (startRow + 1);\n\n /**\n * Base path for static assets\n * @type {String}\n */\n this.basePath = f.base_path || 'tablefilter/';\n\n /*** filters' grid properties ***/\n\n /**\n * Enable/disable filters\n * @type {Boolean}\n */\n this.fltGrid = f.grid === false ? false : true;\n\n /**\n * Enable/disable grid layout (fixed headers)\n * @type {Boolean}\n */\n this.gridLayout = Boolean(f.grid_layout);\n\n /**\n * Filters row index\n * @type {Number}\n */\n this.filtersRowIndex = isNaN(f.filters_row_index) ?\n 0 : f.filters_row_index;\n\n /**\n * Headers row index\n * @type {Number}\n */\n this.headersRow = isNaN(f.headers_row_index) ?\n (this.filtersRowIndex === 0 ? 1 : 0) : f.headers_row_index;\n\n /**\n * Define the type of cell containing a filter (td/th)\n * @type {String}\n */\n this.fltCellTag = isString(f.filters_cell_tag) ?\n f.filters_cell_tag : CELL_TAG;\n\n /**\n * List of filters IDs\n * @type {Array}\n * @private\n */\n this.fltIds = [];\n\n /**\n * List of valid rows indexes (rows visible upon filtering)\n * @type {Array}\n * @private\n */\n this.validRowsIndex = [];\n\n /**\n * Toolbar's container DOM element\n * @type {DOMElement}\n * @private\n */\n this.infDiv = null;\n\n /**\n * Left-side inner container DOM element (rows counter in toolbar)\n * @type {DOMElement}\n * @private\n */\n this.lDiv = null;\n\n /**\n * Right-side inner container DOM element (reset button,\n * page length selector in toolbar)\n * @type {DOMElement}\n * @private\n */\n this.rDiv = null;\n\n /**\n * Middle inner container DOM element (paging elements in toolbar)\n * @type {DOMElement}\n * @private\n */\n this.mDiv = null;\n\n /**\n * Css class for toolbar's container DOM element\n * @type {String}\n */\n this.infDivCssClass = f.inf_div_css_class || 'inf';\n\n /**\n * Css class for left-side inner container DOM element\n * @type {String}\n */\n this.lDivCssClass = f.left_div_css_class || 'ldiv';\n\n /**\n * Css class for right-side inner container DOM element\n * @type {String}\n */\n this.rDivCssClass = f.right_div_css_class || 'rdiv';\n\n /**\n * Css class for middle inner container DOM element\n * @type {String}\n */\n this.mDivCssClass = f.middle_div_css_class || 'mdiv';\n\n /*** filters' grid appearance ***/\n /**\n * Path for stylesheets\n * @type {String}\n */\n this.stylePath = f.style_path || this.basePath + 'style/';\n\n /**\n * Main stylesheet path\n * @type {String}\n */\n this.stylesheet = f.stylesheet || this.stylePath + 'tablefilter.css';\n\n /**\n * Main stylesheet ID\n * @type {String}\n * @private\n */\n this.stylesheetId = this.id + '_style';\n\n /**\n * Css class for the filters row\n * @type {String}\n */\n this.fltsRowCssClass = f.flts_row_css_class || 'fltrow';\n\n /**\n * Enable/disable icons (paging, reset button)\n * @type {Boolean}\n */\n this.enableIcons = f.enable_icons === false ? false : true;\n\n /**\n * Enable/disable alternating rows\n * @type {Boolean}\n */\n this.alternateRows = Boolean(f.alternate_rows);\n\n /**\n * Indicate whether columns widths are set\n * @type {Boolean}\n * @private\n */\n this.hasColWidths = isArray(f.col_widths);\n\n /**\n * Columns widths array\n * @type {Array}\n */\n this.colWidths = this.hasColWidths ? f.col_widths : [];\n\n /**\n * Css class for a filter element\n * @type {String}\n */\n this.fltCssClass = f.flt_css_class || 'flt';\n\n /**\n * Css class for multiple select filters\n * @type {String}\n */\n this.fltMultiCssClass = f.flt_multi_css_class || 'flt_multi';\n\n /**\n * Css class for small filter (when submit button is active)\n * @type {String}\n */\n this.fltSmallCssClass = f.flt_small_css_class || 'flt_s';\n\n /**\n * Css class for single filter type\n * @type {String}\n */\n this.singleFltCssClass = f.single_flt_css_class || 'single_flt';\n\n /*** filters' grid behaviours ***/\n\n /**\n * Enable/disable enter key for input type filters\n * @type {Boolean}\n */\n this.enterKey = f.enter_key === false ? false : true;\n\n /**\n * Callback fired before filtering process starts\n * @type {Function}\n */\n this.onBeforeFilter = isFn(f.on_before_filter) ?\n f.on_before_filter : EMPTY_FN;\n\n /**\n * Callback fired after filtering process is completed\n * @type {Function}\n */\n this.onAfterFilter = isFn(f.on_after_filter) ?\n f.on_after_filter : EMPTY_FN;\n\n /**\n * Enable/disable case sensitivity filtering\n * @type {Boolean}\n */\n this.caseSensitive = Boolean(f.case_sensitive);\n\n /**\n * Indicate whether exact match filtering is enabled on a per column\n * basis\n * @type {Boolean}\n * @private\n */\n this.hasExactMatchByCol = isArray(f.columns_exact_match);\n\n /**\n * Exact match filtering per column array\n * @type {Array}\n */\n this.exactMatchByCol = this.hasExactMatchByCol ?\n f.columns_exact_match : [];\n\n /**\n * Globally enable/disable exact match filtering\n * @type {Boolean}\n */\n this.exactMatch = Boolean(f.exact_match);\n\n /**\n * Ignore diacritics globally or on a column basis\n * @type {Boolean|Array}\n */\n this.ignoreDiacritics = f.ignore_diacritics;\n\n /**\n * Enable/disable linked filters filtering mode\n * @type {Boolean}\n */\n this.linkedFilters = Boolean(f.linked_filters);\n\n /**\n * Enable/disable readonly state for excluded options when\n * linked filters filtering mode is on\n * @type {Boolean}\n */\n this.disableExcludedOptions = Boolean(f.disable_excluded_options);\n\n /**\n * Active filter ID\n * @type {String}\n * @private\n */\n this.activeFilterId = null;\n\n /**\n * Enable/disable always visible rows, excluded from filtering\n * @type {Boolean}\n */\n this.hasVisibleRows = Boolean(f.rows_always_visible);\n\n /**\n * List of row indexes to be excluded from filtering\n * @type {Array}\n */\n this.visibleRows = this.hasVisibleRows ? f.rows_always_visible : [];\n\n /**\n * Enable/disable external filters generation\n * @type {Boolean}\n */\n this.isExternalFlt = Boolean(f.external_flt_grid);\n\n /**\n * List of containers IDs where external filters will be generated\n * @type {Array}\n */\n this.externalFltTgtIds = f.external_flt_grid_ids || [];\n\n /**\n * Callback fired after filters are generated\n * @type {Function}\n */\n this.onFiltersLoaded = isFn(f.on_filters_loaded) ?\n f.on_filters_loaded : EMPTY_FN;\n\n /**\n * Enable/disable single filter filtering all columns\n * @type {Boolean}\n */\n this.singleSearchFlt = Boolean(f.single_filter);\n\n /**\n * Callback fired after a row is validated during filtering\n * @type {Function}\n */\n this.onRowValidated = isFn(f.on_row_validated) ?\n f.on_row_validated : EMPTY_FN;\n\n /**\n * List of columns implementing custom filtering\n * @type {Array}\n */\n this.customCellDataCols = f.custom_cell_data_cols ?\n f.custom_cell_data_cols : [];\n\n /**\n * Delegate function for retrieving cell data with custom logic\n * @type {Function}\n */\n this.customCellData = isFn(f.custom_cell_data) ?\n f.custom_cell_data : EMPTY_FN;\n\n /**\n * Global watermark text for input filter type or watermark for each\n * filter if an array is supplied\n * @type {String|Array}\n */\n this.watermark = f.watermark || '';\n\n /**\n * Indicate whether watermark is on a per column basis\n * @type {Boolean}\n * @private\n */\n this.isWatermarkArray = isArray(this.watermark);\n\n /**\n * Toolbar's custom container ID\n * @type {String}\n */\n this.toolBarTgtId = f.toolbar_target_id || null;\n\n /**\n * Indicate whether help UI component is disabled\n * @type {Boolean}\n */\n this.help = isUndef(f.help_instructions) ?\n undefined : Boolean(f.help_instructions);\n\n /**\n * Indicate whether pop-up filters UI is enabled\n * @type {Boolean}\n */\n this.popupFilters = Boolean(f.popup_filters);\n\n /**\n * Indicate whether filtered (active) columns indicator is enabled\n * @type {Boolean}\n */\n this.markActiveColumns = Boolean(f.mark_active_columns);\n\n /**\n * Css class for filtered (active) columns\n * @type {String}\n */\n this.activeColumnsCssClass = f.active_columns_css_class ||\n 'activeHeader';\n\n /**\n * Callback fired before a column is marked as filtered\n * @type {Function}\n */\n this.onBeforeActiveColumn = isFn(f.on_before_active_column) ?\n f.on_before_active_column : EMPTY_FN;\n\n /**\n * Callback fired after a column is marked as filtered\n * @type {Function}\n */\n this.onAfterActiveColumn = isFn(f.on_after_active_column) ?\n f.on_after_active_column : EMPTY_FN;\n\n /*** select filter's customisation and behaviours ***/\n /**\n * Text for clear option in drop-down filter types (1st option)\n * @type {String|Array}\n */\n this.clearFilterText = f.clear_filter_text || 'Clear';\n\n /**\n * Indicate whether empty option is enabled in drop-down filter types\n * @type {Boolean}\n */\n this.enableEmptyOption = Boolean(f.enable_empty_option);\n\n /**\n * Text for empty option in drop-down filter types\n * @type {String}\n */\n this.emptyText = f.empty_text || '(Empty)';\n\n /**\n * Indicate whether non-empty option is enabled in drop-down filter\n * types\n * @type {Boolean}\n */\n this.enableNonEmptyOption = Boolean(f.enable_non_empty_option);\n\n /**\n * Text for non-empty option in drop-down filter types\n * @type {String}\n */\n this.nonEmptyText = f.non_empty_text || '(Non empty)';\n\n /**\n * Indicate whether drop-down filter types filter the table by default\n * on change event\n * @type {Boolean}\n */\n this.onSlcChange = f.on_change === false ? false : true;\n\n /**\n * Indicate whether options in drop-down filter types are sorted in a\n * alpha-numeric manner by default\n * @type {Boolean}\n */\n this.sortSlc = f.sort_select === false ? false : true;\n\n /**\n * Indicate whether options in drop-down filter types are sorted in a\n * ascending numeric manner\n * @type {Boolean}\n * @private\n */\n this.isSortNumAsc = Boolean(f.sort_num_asc);\n\n /**\n * List of columns implementing options sorting in a ascending numeric\n * manner\n * @type {Array}\n */\n this.sortNumAsc = this.isSortNumAsc ? f.sort_num_asc : [];\n\n /**\n * Indicate whether options in drop-down filter types are sorted in a\n * descending numeric manner\n * @type {Boolean}\n * @private\n */\n this.isSortNumDesc = Boolean(f.sort_num_desc);\n\n /**\n * List of columns implementing options sorting in a descending numeric\n * manner\n * @type {Array}\n */\n this.sortNumDesc = this.isSortNumDesc ? f.sort_num_desc : [];\n\n /**\n * Indicate whether drop-down filter types are populated on demand at\n * first usage\n * @type {Boolean}\n */\n this.loadFltOnDemand = Boolean(f.load_filters_on_demand);\n\n /**\n * Indicate whether custom drop-down filter options are implemented\n * @type {Boolean}\n */\n this.hasCustomOptions = isObj(f.custom_options);\n\n /**\n * Custom options definition of a per column basis, ie:\n *\tcustom_options: {\n * cols:[0, 1],\n * texts: [\n * ['a0', 'b0', 'c0'],\n * ['a1', 'b1', 'c1']\n * ],\n * values: [\n * ['a0', 'b0', 'c0'],\n * ['a1', 'b1', 'c1']\n * ],\n * sorts: [false, true]\n * }\n *\n * @type {Object}\n */\n this.customOptions = f.custom_options;\n\n /*** Filter operators ***/\n /**\n * Regular expression operator for input filter. Defaults to 'rgx:'\n * @type {String}\n */\n this.rgxOperator = f.regexp_operator || 'rgx:';\n\n /**\n * Empty cells operator for input filter. Defaults to '[empty]'\n * @type {String}\n */\n this.emOperator = f.empty_operator || '[empty]';\n\n /**\n * Non-empty cells operator for input filter. Defaults to '[nonempty]'\n * @type {String}\n */\n this.nmOperator = f.nonempty_operator || '[nonempty]';\n\n /**\n * Logical OR operator for input filter. Defaults to '||'\n * @type {String}\n */\n this.orOperator = f.or_operator || '||';\n\n /**\n * Logical AND operator for input filter. Defaults to '&&'\n * @type {String}\n */\n this.anOperator = f.and_operator || '&&';\n\n /**\n * Greater than operator for input filter. Defaults to '>'\n * @type {String}\n */\n this.grOperator = f.greater_operator || '>';\n\n /**\n * Lower than operator for input filter. Defaults to '<'\n * @type {String}\n */\n this.lwOperator = f.lower_operator || '<';\n\n /**\n * Lower than or equal operator for input filter. Defaults to '<='\n * @type {String}\n */\n this.leOperator = f.lower_equal_operator || '<=';\n\n /**\n * Greater than or equal operator for input filter. Defaults to '>='\n * @type {String}\n */\n this.geOperator = f.greater_equal_operator || '>=';\n\n /**\n * Inequality operator for input filter. Defaults to '!'\n * @type {String}\n */\n this.dfOperator = f.different_operator || '!';\n\n /**\n * Like operator for input filter. Defaults to '!'\n * @type {String}\n */\n this.lkOperator = f.like_operator || '*';\n\n /**\n * Strict equality operator for input filter. Defaults to '='\n * @type {String}\n */\n this.eqOperator = f.equal_operator || '=';\n\n /**\n * Starts with operator for input filter. Defaults to '='\n * @type {String}\n */\n this.stOperator = f.start_with_operator || '{';\n\n /**\n * Ends with operator for input filter. Defaults to '='\n * @type {String}\n */\n this.enOperator = f.end_with_operator || '}';\n\n // this.curExp = f.cur_exp || '^[¥£€$]';\n\n /**\n * Stored values separator\n * @type {String}\n */\n this.separator = f.separator || ',';\n\n /**\n * Enable rows counter UI component\n * @type {Boolean}\n */\n this.rowsCounter = Boolean(f.rows_counter);\n\n /**\n * Enable status bar UI component\n * @type {Boolean}\n */\n this.statusBar = Boolean(f.status_bar);\n\n /**\n * Enable activity/spinner indicator UI component\n * @type {Boolean}\n */\n this.loader = Boolean(f.loader);\n\n /*** validation - reset buttons/links ***/\n /**\n * Enable filters submission button\n * @type {Boolean}\n */\n this.displayBtn = Boolean(f.btn);\n\n /**\n * Define filters submission button text\n * @type {String}\n */\n this.btnText = f.btn_text || (!this.enableIcons ? 'Go' : '');\n\n /**\n * Css class for filters submission button\n * @type {String}\n */\n this.btnCssClass = f.btn_css_class ||\n (!this.enableIcons ? 'btnflt' : 'btnflt_icon');\n\n /**\n * Enable clear button\n * @type {Boolean}\n */\n this.btnReset = Boolean(f.btn_reset);\n\n /**\n * Callback fired before filters are cleared\n * @type {Function}\n */\n this.onBeforeReset = isFn(f.on_before_reset) ?\n f.on_before_reset : EMPTY_FN;\n\n /**\n * Callback fired after filters are cleared\n * @type {Function}\n */\n this.onAfterReset = isFn(f.on_after_reset) ?\n f.on_after_reset : EMPTY_FN;\n\n /**\n * Enable paging component\n * @type {Boolean}\n */\n this.paging = Boolean(f.paging);\n\n /**\n * Number of hidden rows\n * @type {Number}\n * @private\n */\n this.nbHiddenRows = 0;\n\n /**\n * Enable auto-filter behaviour, table is filtered when a user\n * stops typing\n * @type {Boolean}\n */\n this.autoFilter = Boolean(f.auto_filter);\n\n /**\n * Auto-filter delay in msecs\n * @type {Number}\n */\n this.autoFilterDelay = !isNaN(f.auto_filter_delay) ?\n f.auto_filter_delay : AUTO_FILTER_DELAY;\n\n /**\n * Indicate whether user is typing\n * @type {Boolean}\n * @private\n */\n this.isUserTyping = null;\n\n /**\n * Auto-filter interval ID\n * @type {String}\n * @private\n */\n this.autoFilterTimer = null;\n\n /**\n * Enable keyword highlighting behaviour\n * @type {Boolean}\n */\n this.highlightKeywords = Boolean(f.highlight_keywords);\n\n /**\n * Enable no results message UI component\n * @type {Boolean}\n */\n this.noResults = isObj(f.no_results_message) ||\n Boolean(f.no_results_message);\n\n /**\n * Enable state persistence\n * @type {Boolean}\n */\n this.state = isObj(f.state) || Boolean(f.state);\n\n /*** data types ***/\n\n /**\n * Define default locale, default to 'en' as per Sugar Date module:\n * https://sugarjs.com/docs/#/DateLocales\n * @type {String}\n */\n this.locale = f.locale || 'en';\n\n /**\n * Define thousands separator ',' or '.', defaults to ','\n * @type {String}\n */\n this.thousandsSeparator = f.thousands_separator || ',';\n\n /**\n * Define decimal separator ',' or '.', defaults to '.'\n * @type {String}\n */\n this.decimalSeparator = f.decimal_separator || '.';\n\n /**\n * Determine whether table has columns data types\n * @type {Boolean}\n * @private\n */\n this.hasColTypes = isArray(f.col_types);\n\n /**\n * Define data types on a column basis, possible values 'string',\n * 'number', 'formatted-number', 'date', 'ipaddress' ie:\n * col_types : [\n * 'string', 'date', 'number',\n * { type: 'formatted-number', decimal: ',', thousands: '.' },\n * { type: 'date', locale: 'en-gb' },\n * { type: 'date', format: ['{dd}-{months}-{yyyy|yy}'] }\n * ]\n *\n * Refer to https://sugarjs.com/docs/#/DateParsing for exhaustive\n * information on date parsing formats supported by Sugar Date\n * @type {Array}\n */\n this.colTypes = this.hasColTypes ? f.col_types : [];\n\n /*** ids prefixes ***/\n /**\n * Main prefix\n * @private\n */\n this.prfxTf = 'TF';\n\n /**\n * Filter's ID prefix (inputs - selects)\n * @private\n */\n this.prfxFlt = 'flt';\n\n /**\n * Button's ID prefix\n * @private\n */\n this.prfxValButton = 'btn';\n\n /**\n * Toolbar container ID prefix\n * @private\n */\n this.prfxInfDiv = 'inf_';\n\n /**\n * Toolbar left element ID prefix\n * @private\n */\n this.prfxLDiv = 'ldiv_';\n\n /**\n * Toolbar right element ID prefix\n * @private\n */\n this.prfxRDiv = 'rdiv_';\n\n /**\n * Toolbar middle element ID prefix\n * @private\n */\n this.prfxMDiv = 'mdiv_';\n\n /**\n * Responsive Css class\n * @private\n */\n this.prfxResponsive = 'resp';\n\n /*** extensions ***/\n /**\n * List of loaded extensions\n * @type {Array}\n * @private\n */\n this.extensions = f.extensions;\n\n /**\n * Determine whether extensions are loaded\n * @type {Boolean}\n * @private\n */\n this.hasExtensions = isArray(this.extensions);\n\n /*** themes ***/\n /**\n * Enable default theme\n * @type {Boolean}\n */\n this.enableDefaultTheme = Boolean(f.enable_default_theme);\n\n /**\n * Determine whether themes are enables\n * @type {Boolean}\n * @private\n */\n this.hasThemes = (this.enableDefaultTheme || isArray(f.themes));\n\n /**\n * List of themes, ie:\n * themes: [{ name: 'skyblue' }]\n * @type {Array}\n */\n this.themes = f.themes || [];\n\n /**\n * Define path to themes assets, defaults to\n * 'tablefilter/style/themes/'. Usage:\n * themes: [{ name: 'skyblue' }]\n * @type {Array}\n */\n this.themesPath = f.themes_path || this.stylePath + 'themes/';\n\n /**\n * Enable responsive layout\n * @type {Boolean}\n */\n this.responsive = Boolean(f.responsive);\n\n /**\n * Features registry\n * @private\n */\n this.Mod = {};\n\n /**\n * Extensions registry\n * @private\n */\n this.ExtRegistry = {};\n }\n\n /**\n * Initialise features and layout\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n this.nbCells = this.getCellsNb(this.refRow);\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 // Instanciate sugar date wrapper\n Mod.dateType = Mod.dateType || new DateType(this);\n Mod.dateType.init();\n\n // Instantiate help feature and initialise only if set true\n Mod.help = Mod.help || new Help(this);\n if (this.help) {\n Mod.help.init();\n }\n\n if (this.state) {\n Mod.state = Mod.state || new State(this);\n Mod.state.init();\n }\n\n if (this.gridLayout) {\n Mod.gridLayout = Mod.gridLayout || new GridLayout(this);\n Mod.gridLayout.init();\n }\n\n if (this.loader) {\n Mod.loader = Mod.loader || new Loader(this);\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 Mod.popupFilter = Mod.popupFilter || new PopupFilter(this);\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 Mod.noResults = Mod.noResults || new NoResults(this);\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 /** @inherited */\n this.initialized = true;\n\n this.onFiltersLoaded(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 // TODO: prevent filters row generation for popup filters too,\n // to reduce and simplify headers row index adjusting across lib modules\n // (GridLayout, PopupFilter etc)\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.buildFilterId(colIndex)],\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 } 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 ['type', 'button'],\n ['value', this.btnText]\n );\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 // Enable loader indicator\n this.loader = true;\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 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 // 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');\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 = infDiv;\n\n /*** left div containing rows # displayer ***/\n let lDiv = createElm('div');\n lDiv.className = this.lDivCssClass;\n infDiv.appendChild(lDiv);\n this.lDiv = lDiv;\n\n /*** right div containing reset button\n + nb results per page select ***/\n let rDiv = createElm('div');\n rDiv.className = this.rDivCssClass;\n infDiv.appendChild(rDiv);\n this.rDiv = rDiv;\n\n /*** mid div containing paging elements ***/\n let mDiv = createElm('div');\n mDiv.className = this.mDivCssClass;\n infDiv.appendChild(mDiv);\n this.mDiv = mDiv;\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 //fire onbefore callback\n this.onBeforeFilter(this);\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 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 // isolate search term and check occurence in cell data\n for (let w = 0, len = s.length; w < len; w++) {\n cS = trim(s[w]);\n occur = this._testTerm(cS, cellData, j);\n\n if (occur) {\n this.emitter.emit('highlight-keyword', this,\n cells[j], cS);\n }\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] = this._testTerm(trim(sA), cellData, j);\n if (occurence[j]) {\n this.emitter.emit('highlight-keyword', this, cells[j],\n sA);\n }\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 this.validateRow(k, isRowValid);\n if (!isRowValid) {\n hiddenRows++;\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 //fire onafterfilter callback\n this.onAfterFilter(this);\n\n this.emitter.emit('after-filtering', this, searchArgs);\n }\n\n /**\n * Test for a match of search term in cell data\n * @param {String} term Search term\n * @param {String} cellData Cell data\n * @param {Number} colIdx Column index\n * @returns {Boolean}\n */\n _testTerm(term, cellData, colIdx) {\n let numData;\n let decimal = this.decimalSeparator;\n let reLe = new RegExp(this.leOperator),\n reGe = new RegExp(this.geOperator),\n reL = new RegExp(this.lwOperator),\n reG = new RegExp(this.grOperator),\n reD = new RegExp(this.dfOperator),\n reLk = new RegExp(rgxEsc(this.lkOperator)),\n reEq = new RegExp(this.eqOperator),\n reSt = new RegExp(this.stOperator),\n reEn = new RegExp(this.enOperator),\n // re_an = new RegExp(this.anOperator),\n // re_cr = new RegExp(this.curExp),\n reEm = this.emOperator,\n reNm = this.nmOperator,\n reRe = new RegExp(rgxEsc(this.rgxOperator));\n\n term = matchCase(term, this.caseSensitive);\n\n let occurence = false;\n\n //Search arg operator tests\n let hasLO = reL.test(term),\n hasLE = reLe.test(term),\n hasGR = reG.test(term),\n hasGE = reGe.test(term),\n hasDF = reD.test(term),\n hasEQ = reEq.test(term),\n hasLK = reLk.test(term),\n // hatermN = re_an.test(term),\n hasST = reSt.test(term),\n hasEN = reEn.test(term),\n hasEM = (reEm === term),\n hasNM = (reNm === term),\n hasRE = reRe.test(term);\n\n // Check for dates or resolve date type\n if (this.hasType(colIdx, [DATE])) {\n let dte1, dte2;\n\n let dateType = this.Mod.dateType;\n let isValidDate = dateType.isValid.bind(dateType);\n let parseDate = dateType.parse.bind(dateType);\n let locale = dateType.getOptions(colIdx).locale || this.locale;\n\n // Search arg dates tests\n let isLDate = hasLO &&\n isValidDate(term.replace(reL, ''), locale);\n let isLEDate = hasLE &&\n isValidDate(term.replace(reLe, ''), locale);\n let isGDate = hasGR &&\n isValidDate(term.replace(reG, ''), locale);\n let isGEDate = hasGE &&\n isValidDate(term.replace(reGe, ''), locale);\n let isDFDate = hasDF &&\n isValidDate(term.replace(reD, ''), locale);\n let isEQDate = hasEQ &&\n isValidDate(term.replace(reEq, ''), locale);\n\n dte1 = parseDate(cellData, locale);\n\n // lower date\n if (isLDate) {\n dte2 = parseDate(term.replace(reL, ''), locale);\n occurence = dte1 < dte2;\n }\n // lower equal date\n else if (isLEDate) {\n dte2 = parseDate(term.replace(reLe, ''), locale);\n occurence = dte1 <= dte2;\n }\n // greater equal date\n else if (isGEDate) {\n dte2 = parseDate(term.replace(reGe, ''), locale);\n occurence = dte1 >= dte2;\n }\n // greater date\n else if (isGDate) {\n dte2 = parseDate(term.replace(reG, ''), locale);\n occurence = dte1 > dte2;\n }\n // different date\n else if (isDFDate) {\n dte2 = parseDate(term.replace(reD, ''), locale);\n occurence = dte1.toString() !== dte2.toString();\n }\n // equal date\n else if (isEQDate) {\n dte2 = parseDate(term.replace(reEq, ''), locale);\n occurence = dte1.toString() === dte2.toString();\n }\n // searched keyword with * operator doesn't have to be a date\n else if (reLk.test(term)) {// like date\n occurence = contains(term.replace(reLk, ''), cellData,\n false, this.caseSensitive);\n }\n else if (isValidDate(term)) {\n dte2 = parseDate(term, locale);\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(term, cellData,\n this.isExactMatch(colIdx), this.caseSensitive);\n }\n }\n\n else {\n if (this.hasType(colIdx, [FORMATTED_NUMBER])) {\n let colType = this.colTypes[colIdx];\n if (colType.hasOwnProperty('decimal')) {\n decimal = colType.decimal;\n }\n }\n // Convert to number anyways to auto-resolve type in case not\n // defined by configuration\n numData = Number(cellData) || parseNb(cellData, decimal);\n\n // first checks if there is any operator (<,>,<=,>=,!,*,=,{,},\n // rgx:)\n // lower equal\n if (hasLE) {\n occurence = numData <= parseNb(\n term.replace(reLe, ''),\n decimal\n );\n }\n //greater equal\n else if (hasGE) {\n occurence = numData >= parseNb(\n term.replace(reGe, ''),\n decimal\n );\n }\n //lower\n else if (hasLO) {\n occurence = numData < parseNb(\n term.replace(reL, ''),\n decimal\n );\n }\n //greater\n else if (hasGR) {\n occurence = numData > parseNb(\n term.replace(reG, ''),\n decimal\n );\n }\n //different\n else if (hasDF) {\n occurence = contains(term.replace(reD, ''), cellData,\n false, this.caseSensitive) ? false : true;\n }\n //like\n else if (hasLK) {\n occurence = contains(term.replace(reLk, ''), cellData,\n false, this.caseSensitive);\n }\n //equal\n else if (hasEQ) {\n occurence = contains(term.replace(reEq, ''), cellData,\n true, this.caseSensitive);\n }\n //starts with\n else if (hasST) {\n occurence = cellData.indexOf(term.replace(reSt, '')) === 0 ?\n true : false;\n }\n //ends with\n else if (hasEN) {\n let searchArg = term.replace(reEn, '');\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 throws\n try {\n //operator is removed\n let srchArg = term.replace(reRe, '');\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 (numData &&\n this.hasType(colIdx, [NUMBER, FORMATTED_NUMBER]) &&\n !this.singleSearchFlt) {\n // parseNb can return 0 for strings which are not\n // formatted numbers, in that case return the original\n // string. TODO: handle this in parseNb\n term = parseNb(term, decimal) || term;\n occurence = numData === term ||\n contains(term.toString(), numData.toString(),\n this.isExactMatch(colIdx), this.caseSensitive);\n } else {\n // Finally test search term is contained in cell data\n occurence = contains(\n term,\n cellData,\n this.isExactMatch(colIdx),\n this.caseSensitive,\n this.ignoresDiacritics(colIdx)\n );\n }\n }\n\n }//else\n\n return occurence;\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 let decimal = this.decimalSeparator;\n if (this.hasType(colIndex, [FORMATTED_NUMBER])) {\n let colType = this.colTypes[colIndex];\n if (colType.hasOwnProperty('decimal')) {\n decimal = colType.decimal;\n }\n }\n let data = num ?\n Number(cellData) || parseNb(cellData, decimal) :\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 >= 0 ? rowIndex : 0];\n return tr ? tr.cells.length : 0;\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 //Fire customCellData callback\n if (this.customCellDataCols.indexOf(idx) !== -1) {\n return this.customCellData(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 this.onRowValidated(this, rowIndex);\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.linkedFilters);\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');\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 this.onBeforeReset(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 this.onAfterReset(this);\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 this.onBeforeActiveColumn(this, colIndex);\n\n addClass(header, this.activeColumnsCssClass);\n\n this.onAfterActiveColumn(this, colIndex);\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 * Builds filter element ID for a given column index\n * @param {any} colIndex\n * @returns {String} Filter element ID string\n * @private\n */\n buildFilterId(colIndex) {\n return `${this.prfxFlt}${colIndex}_${this.id}`;\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 colIdx = slcIndex[i];\n let curSlc = elm(this.fltIds[colIdx]);\n let slcSelectedValue = this.getFilterValue(colIdx);\n\n // Welcome to cyclomatic complexity hell :)\n // TODO: simplify/refactor if statement\n if (activeIdx !== colIdx ||\n (this.paging && slcA1.indexOf(colIdx) !== -1 &&\n activeIdx === colIdx) ||\n (!this.paging && (slcA3.indexOf(colIdx) !== -1 ||\n slcA2.indexOf(colIdx) !== -1)) ||\n slcSelectedValue === this.getClearFilterText(colIdx)) {\n\n //1st option needs to be inserted\n if (this.loadFltOnDemand) {\n let opt0 = createOpt(this.getClearFilterText(colIdx), '');\n curSlc.innerHTML = '';\n curSlc.appendChild(opt0);\n }\n\n if (slcA3.indexOf(colIdx) !== -1) {\n this.emitter.emit('build-checklist-filter', this, colIdx,\n true);\n } else {\n this.emitter.emit('build-select-filter', this, colIdx,\n true);\n }\n\n this.setFilterValue(colIdx, slcSelectedValue);\n }\n }\n }\n\n /**\n * Determines if passed filter column implements exact query match\n * @param {Number} colIndex Column index\n * @return {Boolean}\n */\n isExactMatch(colIndex) {\n let fltType = this.getFilterType(colIndex);\n return this.exactMatchByCol[colIndex] || this.exactMatch ||\n fltType !== INPUT;\n }\n\n /**\n * Checks if passed row is valid\n * @param {Number} rowIndex Row index\n * @returns {Boolean}\n */\n isRowValid(rowIndex) {\n return this.getValidRows().indexOf(rowIndex) !== -1;\n }\n\n /**\n * Checks if passed row is visible\n * @param {Number} rowIndex Row index\n * @returns {Boolean}\n */\n isRowDisplayed(rowIndex) {\n let row = this.tbl.rows[rowIndex];\n return this.getRowDisplay(row) === '';\n }\n\n /**\n * Checks if specified column filter ignores diacritics.\n * Note this is only valid for input filter types.\n * @param {Number} colIndex Column index\n * @returns {Boolean}\n */\n ignoresDiacritics(colIndex) {\n let ignoreDiac = this.ignoreDiacritics;\n if (isArray(ignoreDiac)) {\n return ignoreDiac[colIndex];\n }\n return Boolean(ignoreDiac);\n }\n\n /**\n * Returns clear all text for specified filter column\n * @param {Number} colIndex Column index\n * @returns {String}\n */\n getClearFilterText(colIndex) {\n let clearText = this.clearFilterText;\n if (isArray(clearText)) {\n return clearText[colIndex];\n }\n return clearText;\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 * Determine whether the specified column has one of the passed types\n * @param {Number} colIndex Column index\n * @param {Array} [types=[]] List of column types\n * @returns {Boolean}\n */\n hasType(colIndex, types = []) {\n if (!this.hasColTypes) {\n return false;\n }\n let colType = this.colTypes[colIndex];\n if (isObj(colType)) {\n colType = colType.type;\n }\n return types.indexOf(colType) !== -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" + "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 {\n isArray, isEmpty, isFn, isNumber, isObj, isString, isUndef, EMPTY_FN\n} from './types';\nimport {parse as parseNb} from './number'\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';\nimport {DateType} from './modules/dateType';\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, NUMBER, DATE, FORMATTED_NUMBER\n} from './const';\n\nlet doc = root.document;\n\n/**\n * Makes HTML tables filterable and a bit more :)\n *\n * @export\n * @class TableFilter\n */\nexport class TableFilter {\n\n /**\n * Creates an instance of TableFilter\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 /**\n * ID of current instance\n * @type {String}\n * @private\n */\n this.id = null;\n\n /**\n * Current version\n * @type {String}\n */\n this.version = '{VERSION}';\n\n /**\n * Current year\n * @type {Number}\n * @private\n */\n this.year = new Date().getFullYear();\n\n /**\n * HTML Table DOM element\n * @type {DOMElement}\n */\n this.tbl = null;\n\n /**\n * Calculated row's index from which starts filtering once filters\n * are generated\n * @type {Number}\n */\n this.refRow = null;\n\n /**\n * Index of the headers row\n * @type {Number}\n * @private\n */\n this.headersRow = null;\n\n /**\n * Configuration object\n * @type {Object}\n * @private\n */\n this.cfg = {};\n\n /**\n * Number of rows that can be filtered\n * @type {Number}\n * @private\n */\n this.nbFilterableRows = 0;\n\n /**\n * Number of cells in the reference row\n * @type {Number}\n * @private\n */\n this.nbCells = null;\n\n let startRow;\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 startRow = arg;\n } else if (isObj(arg)) {\n this.cfg = arg;\n }\n });\n\n if (!this.tbl || this.tbl.nodeName !== 'TABLE') {\n throw new Error(`Could not instantiate TableFilter: HTML table\n DOM element not found.`);\n }\n\n if (this.getRowsNb() === 0) {\n throw new Error(`Could not instantiate TableFilter: HTML table\n requires at least 1 row.`);\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 = isUndef(startRow) ? 2 : (startRow + 1);\n\n /**\n * Base path for static assets\n * @type {String}\n */\n this.basePath = f.base_path || 'tablefilter/';\n\n /*** filters' grid properties ***/\n\n /**\n * Enable/disable filters\n * @type {Boolean}\n */\n this.fltGrid = f.grid === false ? false : true;\n\n /**\n * Enable/disable grid layout (fixed headers)\n * @type {Boolean}\n */\n this.gridLayout = Boolean(f.grid_layout);\n\n /**\n * Filters row index\n * @type {Number}\n */\n this.filtersRowIndex = isNaN(f.filters_row_index) ?\n 0 : f.filters_row_index;\n\n /**\n * Headers row index\n * @type {Number}\n */\n this.headersRow = isNaN(f.headers_row_index) ?\n (this.filtersRowIndex === 0 ? 1 : 0) : f.headers_row_index;\n\n /**\n * Define the type of cell containing a filter (td/th)\n * @type {String}\n */\n this.fltCellTag = isString(f.filters_cell_tag) ?\n f.filters_cell_tag : CELL_TAG;\n\n /**\n * List of filters IDs\n * @type {Array}\n * @private\n */\n this.fltIds = [];\n\n /**\n * List of valid rows indexes (rows visible upon filtering)\n * @type {Array}\n * @private\n */\n this.validRowsIndex = [];\n\n /**\n * Toolbar's container DOM element\n * @type {DOMElement}\n * @private\n */\n this.infDiv = null;\n\n /**\n * Left-side inner container DOM element (rows counter in toolbar)\n * @type {DOMElement}\n * @private\n */\n this.lDiv = null;\n\n /**\n * Right-side inner container DOM element (reset button,\n * page length selector in toolbar)\n * @type {DOMElement}\n * @private\n */\n this.rDiv = null;\n\n /**\n * Middle inner container DOM element (paging elements in toolbar)\n * @type {DOMElement}\n * @private\n */\n this.mDiv = null;\n\n /**\n * Css class for toolbar's container DOM element\n * @type {String}\n */\n this.infDivCssClass = f.inf_div_css_class || 'inf';\n\n /**\n * Css class for left-side inner container DOM element\n * @type {String}\n */\n this.lDivCssClass = f.left_div_css_class || 'ldiv';\n\n /**\n * Css class for right-side inner container DOM element\n * @type {String}\n */\n this.rDivCssClass = f.right_div_css_class || 'rdiv';\n\n /**\n * Css class for middle inner container DOM element\n * @type {String}\n */\n this.mDivCssClass = f.middle_div_css_class || 'mdiv';\n\n /*** filters' grid appearance ***/\n /**\n * Path for stylesheets\n * @type {String}\n */\n this.stylePath = f.style_path || this.basePath + 'style/';\n\n /**\n * Main stylesheet path\n * @type {String}\n */\n this.stylesheet = f.stylesheet || this.stylePath + 'tablefilter.css';\n\n /**\n * Main stylesheet ID\n * @type {String}\n * @private\n */\n this.stylesheetId = this.id + '_style';\n\n /**\n * Css class for the filters row\n * @type {String}\n */\n this.fltsRowCssClass = f.flts_row_css_class || 'fltrow';\n\n /**\n * Enable/disable icons (paging, reset button)\n * @type {Boolean}\n */\n this.enableIcons = f.enable_icons === false ? false : true;\n\n /**\n * Enable/disable alternating rows\n * @type {Boolean}\n */\n this.alternateRows = Boolean(f.alternate_rows);\n\n /**\n * Indicate whether columns widths are set\n * @type {Boolean}\n * @private\n */\n this.hasColWidths = isArray(f.col_widths);\n\n /**\n * Columns widths array\n * @type {Array}\n */\n this.colWidths = this.hasColWidths ? f.col_widths : [];\n\n /**\n * Css class for a filter element\n * @type {String}\n */\n this.fltCssClass = f.flt_css_class || 'flt';\n\n /**\n * Css class for multiple select filters\n * @type {String}\n */\n this.fltMultiCssClass = f.flt_multi_css_class || 'flt_multi';\n\n /**\n * Css class for small filter (when submit button is active)\n * @type {String}\n */\n this.fltSmallCssClass = f.flt_small_css_class || 'flt_s';\n\n /**\n * Css class for single filter type\n * @type {String}\n */\n this.singleFltCssClass = f.single_flt_css_class || 'single_flt';\n\n /*** filters' grid behaviours ***/\n\n /**\n * Enable/disable enter key for input type filters\n * @type {Boolean}\n */\n this.enterKey = f.enter_key === false ? false : true;\n\n /**\n * Callback fired before filtering process starts\n * @type {Function}\n */\n this.onBeforeFilter = isFn(f.on_before_filter) ?\n f.on_before_filter : EMPTY_FN;\n\n /**\n * Callback fired after filtering process is completed\n * @type {Function}\n */\n this.onAfterFilter = isFn(f.on_after_filter) ?\n f.on_after_filter : EMPTY_FN;\n\n /**\n * Enable/disable case sensitivity filtering\n * @type {Boolean}\n */\n this.caseSensitive = Boolean(f.case_sensitive);\n\n /**\n * Indicate whether exact match filtering is enabled on a per column\n * basis\n * @type {Boolean}\n * @private\n */\n this.hasExactMatchByCol = isArray(f.columns_exact_match);\n\n /**\n * Exact match filtering per column array\n * @type {Array}\n */\n this.exactMatchByCol = this.hasExactMatchByCol ?\n f.columns_exact_match : [];\n\n /**\n * Globally enable/disable exact match filtering\n * @type {Boolean}\n */\n this.exactMatch = Boolean(f.exact_match);\n\n /**\n * Ignore diacritics globally or on a column basis\n * @type {Boolean|Array}\n */\n this.ignoreDiacritics = f.ignore_diacritics;\n\n /**\n * Enable/disable linked filters filtering mode\n * @type {Boolean}\n */\n this.linkedFilters = Boolean(f.linked_filters);\n\n /**\n * Enable/disable readonly state for excluded options when\n * linked filters filtering mode is on\n * @type {Boolean}\n */\n this.disableExcludedOptions = Boolean(f.disable_excluded_options);\n\n /**\n * Active filter ID\n * @type {String}\n * @private\n */\n this.activeFilterId = null;\n\n /**\n * Enable/disable always visible rows, excluded from filtering\n * @type {Boolean}\n */\n this.hasVisibleRows = Boolean(f.rows_always_visible);\n\n /**\n * List of row indexes to be excluded from filtering\n * @type {Array}\n */\n this.visibleRows = this.hasVisibleRows ? f.rows_always_visible : [];\n\n /**\n * Enable/disable external filters generation\n * @type {Boolean}\n */\n this.isExternalFlt = Boolean(f.external_flt_grid);\n\n /**\n * List of containers IDs where external filters will be generated\n * @type {Array}\n */\n this.externalFltTgtIds = f.external_flt_grid_ids || [];\n\n /**\n * Callback fired after filters are generated\n * @type {Function}\n */\n this.onFiltersLoaded = isFn(f.on_filters_loaded) ?\n f.on_filters_loaded : EMPTY_FN;\n\n /**\n * Enable/disable single filter filtering all columns\n * @type {Boolean}\n */\n this.singleSearchFlt = Boolean(f.single_filter);\n\n /**\n * Callback fired after a row is validated during filtering\n * @type {Function}\n */\n this.onRowValidated = isFn(f.on_row_validated) ?\n f.on_row_validated : EMPTY_FN;\n\n /**\n * List of columns implementing custom filtering\n * @type {Array}\n */\n this.customCellDataCols = f.custom_cell_data_cols ?\n f.custom_cell_data_cols : [];\n\n /**\n * Delegate function for retrieving cell data with custom logic\n * @type {Function}\n */\n this.customCellData = isFn(f.custom_cell_data) ?\n f.custom_cell_data : EMPTY_FN;\n\n /**\n * Global watermark text for input filter type or watermark for each\n * filter if an array is supplied\n * @type {String|Array}\n */\n this.watermark = f.watermark || '';\n\n /**\n * Indicate whether watermark is on a per column basis\n * @type {Boolean}\n * @private\n */\n this.isWatermarkArray = isArray(this.watermark);\n\n /**\n * Toolbar's custom container ID\n * @type {String}\n */\n this.toolBarTgtId = f.toolbar_target_id || null;\n\n /**\n * Indicate whether help UI component is disabled\n * @type {Boolean}\n */\n this.help = isUndef(f.help_instructions) ?\n undefined : Boolean(f.help_instructions);\n\n /**\n * Indicate whether pop-up filters UI is enabled\n * @type {Boolean}\n */\n this.popupFilters = Boolean(f.popup_filters);\n\n /**\n * Indicate whether filtered (active) columns indicator is enabled\n * @type {Boolean}\n */\n this.markActiveColumns = Boolean(f.mark_active_columns);\n\n /**\n * Css class for filtered (active) columns\n * @type {String}\n */\n this.activeColumnsCssClass = f.active_columns_css_class ||\n 'activeHeader';\n\n /**\n * Callback fired before a column is marked as filtered\n * @type {Function}\n */\n this.onBeforeActiveColumn = isFn(f.on_before_active_column) ?\n f.on_before_active_column : EMPTY_FN;\n\n /**\n * Callback fired after a column is marked as filtered\n * @type {Function}\n */\n this.onAfterActiveColumn = isFn(f.on_after_active_column) ?\n f.on_after_active_column : EMPTY_FN;\n\n /*** select filter's customisation and behaviours ***/\n /**\n * Text for clear option in drop-down filter types (1st option)\n * @type {String|Array}\n */\n this.clearFilterText = f.clear_filter_text || 'Clear';\n\n /**\n * Indicate whether empty option is enabled in drop-down filter types\n * @type {Boolean}\n */\n this.enableEmptyOption = Boolean(f.enable_empty_option);\n\n /**\n * Text for empty option in drop-down filter types\n * @type {String}\n */\n this.emptyText = f.empty_text || '(Empty)';\n\n /**\n * Indicate whether non-empty option is enabled in drop-down filter\n * types\n * @type {Boolean}\n */\n this.enableNonEmptyOption = Boolean(f.enable_non_empty_option);\n\n /**\n * Text for non-empty option in drop-down filter types\n * @type {String}\n */\n this.nonEmptyText = f.non_empty_text || '(Non empty)';\n\n /**\n * Indicate whether drop-down filter types filter the table by default\n * on change event\n * @type {Boolean}\n */\n this.onSlcChange = f.on_change === false ? false : true;\n\n /**\n * Indicate whether options in drop-down filter types are sorted in a\n * alpha-numeric manner by default\n * @type {Boolean}\n */\n this.sortSlc = f.sort_select === false ? false : true;\n\n /**\n * Indicate whether options in drop-down filter types are sorted in a\n * ascending numeric manner\n * @type {Boolean}\n * @private\n */\n this.isSortNumAsc = Boolean(f.sort_num_asc);\n\n /**\n * List of columns implementing options sorting in a ascending numeric\n * manner\n * @type {Array}\n */\n this.sortNumAsc = this.isSortNumAsc ? f.sort_num_asc : [];\n\n /**\n * Indicate whether options in drop-down filter types are sorted in a\n * descending numeric manner\n * @type {Boolean}\n * @private\n */\n this.isSortNumDesc = Boolean(f.sort_num_desc);\n\n /**\n * List of columns implementing options sorting in a descending numeric\n * manner\n * @type {Array}\n */\n this.sortNumDesc = this.isSortNumDesc ? f.sort_num_desc : [];\n\n /**\n * Indicate whether drop-down filter types are populated on demand at\n * first usage\n * @type {Boolean}\n */\n this.loadFltOnDemand = Boolean(f.load_filters_on_demand);\n\n /**\n * Indicate whether custom drop-down filter options are implemented\n * @type {Boolean}\n */\n this.hasCustomOptions = isObj(f.custom_options);\n\n /**\n * Custom options definition of a per column basis, ie:\n *\tcustom_options: {\n * cols:[0, 1],\n * texts: [\n * ['a0', 'b0', 'c0'],\n * ['a1', 'b1', 'c1']\n * ],\n * values: [\n * ['a0', 'b0', 'c0'],\n * ['a1', 'b1', 'c1']\n * ],\n * sorts: [false, true]\n * }\n *\n * @type {Object}\n */\n this.customOptions = f.custom_options;\n\n /*** Filter operators ***/\n /**\n * Regular expression operator for input filter. Defaults to 'rgx:'\n * @type {String}\n */\n this.rgxOperator = f.regexp_operator || 'rgx:';\n\n /**\n * Empty cells operator for input filter. Defaults to '[empty]'\n * @type {String}\n */\n this.emOperator = f.empty_operator || '[empty]';\n\n /**\n * Non-empty cells operator for input filter. Defaults to '[nonempty]'\n * @type {String}\n */\n this.nmOperator = f.nonempty_operator || '[nonempty]';\n\n /**\n * Logical OR operator for input filter. Defaults to '||'\n * @type {String}\n */\n this.orOperator = f.or_operator || '||';\n\n /**\n * Logical AND operator for input filter. Defaults to '&&'\n * @type {String}\n */\n this.anOperator = f.and_operator || '&&';\n\n /**\n * Greater than operator for input filter. Defaults to '>'\n * @type {String}\n */\n this.grOperator = f.greater_operator || '>';\n\n /**\n * Lower than operator for input filter. Defaults to '<'\n * @type {String}\n */\n this.lwOperator = f.lower_operator || '<';\n\n /**\n * Lower than or equal operator for input filter. Defaults to '<='\n * @type {String}\n */\n this.leOperator = f.lower_equal_operator || '<=';\n\n /**\n * Greater than or equal operator for input filter. Defaults to '>='\n * @type {String}\n */\n this.geOperator = f.greater_equal_operator || '>=';\n\n /**\n * Inequality operator for input filter. Defaults to '!'\n * @type {String}\n */\n this.dfOperator = f.different_operator || '!';\n\n /**\n * Like operator for input filter. Defaults to '!'\n * @type {String}\n */\n this.lkOperator = f.like_operator || '*';\n\n /**\n * Strict equality operator for input filter. Defaults to '='\n * @type {String}\n */\n this.eqOperator = f.equal_operator || '=';\n\n /**\n * Starts with operator for input filter. Defaults to '='\n * @type {String}\n */\n this.stOperator = f.start_with_operator || '{';\n\n /**\n * Ends with operator for input filter. Defaults to '='\n * @type {String}\n */\n this.enOperator = f.end_with_operator || '}';\n\n // this.curExp = f.cur_exp || '^[¥£€$]';\n\n /**\n * Stored values separator\n * @type {String}\n */\n this.separator = f.separator || ',';\n\n /**\n * Enable rows counter UI component\n * @type {Boolean}\n */\n this.rowsCounter = Boolean(f.rows_counter);\n\n /**\n * Enable status bar UI component\n * @type {Boolean}\n */\n this.statusBar = Boolean(f.status_bar);\n\n /**\n * Enable activity/spinner indicator UI component\n * @type {Boolean}\n */\n this.loader = Boolean(f.loader);\n\n /*** validation - reset buttons/links ***/\n /**\n * Enable filters submission button\n * @type {Boolean}\n */\n this.displayBtn = Boolean(f.btn);\n\n /**\n * Define filters submission button text\n * @type {String}\n */\n this.btnText = f.btn_text || (!this.enableIcons ? 'Go' : '');\n\n /**\n * Css class for filters submission button\n * @type {String}\n */\n this.btnCssClass = f.btn_css_class ||\n (!this.enableIcons ? 'btnflt' : 'btnflt_icon');\n\n /**\n * Enable clear button\n * @type {Boolean}\n */\n this.btnReset = Boolean(f.btn_reset);\n\n /**\n * Callback fired before filters are cleared\n * @type {Function}\n */\n this.onBeforeReset = isFn(f.on_before_reset) ?\n f.on_before_reset : EMPTY_FN;\n\n /**\n * Callback fired after filters are cleared\n * @type {Function}\n */\n this.onAfterReset = isFn(f.on_after_reset) ?\n f.on_after_reset : EMPTY_FN;\n\n /**\n * Enable paging component\n * @type {Boolean}\n */\n this.paging = Boolean(f.paging);\n\n /**\n * Number of hidden rows\n * @type {Number}\n * @private\n */\n this.nbHiddenRows = 0;\n\n /**\n * Enable auto-filter behaviour, table is filtered when a user\n * stops typing\n * @type {Boolean}\n */\n this.autoFilter = Boolean(f.auto_filter);\n\n /**\n * Auto-filter delay in msecs\n * @type {Number}\n */\n this.autoFilterDelay = !isNaN(f.auto_filter_delay) ?\n f.auto_filter_delay : AUTO_FILTER_DELAY;\n\n /**\n * Indicate whether user is typing\n * @type {Boolean}\n * @private\n */\n this.isUserTyping = null;\n\n /**\n * Auto-filter interval ID\n * @type {String}\n * @private\n */\n this.autoFilterTimer = null;\n\n /**\n * Enable keyword highlighting behaviour\n * @type {Boolean}\n */\n this.highlightKeywords = Boolean(f.highlight_keywords);\n\n /**\n * Enable no results message UI component\n * @type {Boolean}\n */\n this.noResults = isObj(f.no_results_message) ||\n Boolean(f.no_results_message);\n\n /**\n * Enable state persistence\n * @type {Boolean}\n */\n this.state = isObj(f.state) || Boolean(f.state);\n\n /*** data types ***/\n\n /**\n * Define default locale, default to 'en' as per Sugar Date module:\n * https://sugarjs.com/docs/#/DateLocales\n * @type {String}\n */\n this.locale = f.locale || 'en';\n\n /**\n * Define thousands separator ',' or '.', defaults to ','\n * @type {String}\n */\n this.thousandsSeparator = f.thousands_separator || ',';\n\n /**\n * Define decimal separator ',' or '.', defaults to '.'\n * @type {String}\n */\n this.decimalSeparator = f.decimal_separator || '.';\n\n /**\n * Determine whether table has columns data types\n * @type {Boolean}\n * @private\n */\n this.hasColTypes = isArray(f.col_types);\n\n /**\n * Define data types on a column basis, possible values 'string',\n * 'number', 'formatted-number', 'date', 'ipaddress' ie:\n * col_types : [\n * 'string', 'date', 'number',\n * { type: 'formatted-number', decimal: ',', thousands: '.' },\n * { type: 'date', locale: 'en-gb' },\n * { type: 'date', format: ['{dd}-{months}-{yyyy|yy}'] }\n * ]\n *\n * Refer to https://sugarjs.com/docs/#/DateParsing for exhaustive\n * information on date parsing formats supported by Sugar Date\n * @type {Array}\n */\n this.colTypes = this.hasColTypes ? f.col_types : [];\n\n /*** ids prefixes ***/\n /**\n * Main prefix\n * @private\n */\n this.prfxTf = 'TF';\n\n /**\n * Filter's ID prefix (inputs - selects)\n * @private\n */\n this.prfxFlt = 'flt';\n\n /**\n * Button's ID prefix\n * @private\n */\n this.prfxValButton = 'btn';\n\n /**\n * Toolbar container ID prefix\n * @private\n */\n this.prfxInfDiv = 'inf_';\n\n /**\n * Toolbar left element ID prefix\n * @private\n */\n this.prfxLDiv = 'ldiv_';\n\n /**\n * Toolbar right element ID prefix\n * @private\n */\n this.prfxRDiv = 'rdiv_';\n\n /**\n * Toolbar middle element ID prefix\n * @private\n */\n this.prfxMDiv = 'mdiv_';\n\n /**\n * Responsive Css class\n * @private\n */\n this.prfxResponsive = 'resp';\n\n /*** extensions ***/\n /**\n * List of loaded extensions\n * @type {Array}\n * @private\n */\n this.extensions = f.extensions;\n\n /**\n * Determine whether extensions are loaded\n * @type {Boolean}\n * @private\n */\n this.hasExtensions = isArray(this.extensions);\n\n /*** themes ***/\n /**\n * Enable default theme\n * @type {Boolean}\n */\n this.enableDefaultTheme = Boolean(f.enable_default_theme);\n\n /**\n * Determine whether themes are enables\n * @type {Boolean}\n * @private\n */\n this.hasThemes = (this.enableDefaultTheme || isArray(f.themes));\n\n /**\n * List of themes, ie:\n * themes: [{ name: 'skyblue' }]\n * @type {Array}\n */\n this.themes = f.themes || [];\n\n /**\n * Define path to themes assets, defaults to\n * 'tablefilter/style/themes/'. Usage:\n * themes: [{ name: 'skyblue' }]\n * @type {Array}\n */\n this.themesPath = f.themes_path || this.stylePath + 'themes/';\n\n /**\n * Enable responsive layout\n * @type {Boolean}\n */\n this.responsive = Boolean(f.responsive);\n\n /**\n * Features registry\n * @private\n */\n this.Mod = {};\n\n /**\n * Extensions registry\n * @private\n */\n this.ExtRegistry = {};\n }\n\n /**\n * Initialise features and layout\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n this.nbCells = this.getCellsNb(this.refRow);\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 // Instanciate sugar date wrapper\n Mod.dateType = Mod.dateType || new DateType(this);\n Mod.dateType.init();\n\n // Instantiate help feature and initialise only if set true\n Mod.help = Mod.help || new Help(this);\n if (this.help) {\n Mod.help.init();\n }\n\n if (this.state) {\n Mod.state = Mod.state || new State(this);\n Mod.state.init();\n }\n\n if (this.gridLayout) {\n Mod.gridLayout = Mod.gridLayout || new GridLayout(this);\n Mod.gridLayout.init();\n }\n\n if (this.loader) {\n Mod.loader = Mod.loader || new Loader(this);\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 Mod.popupFilter = Mod.popupFilter || new PopupFilter(this);\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 Mod.noResults = Mod.noResults || new NoResults(this);\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 /** @inherited */\n this.initialized = true;\n\n this.onFiltersLoaded(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 // TODO: prevent filters row generation for popup filters too,\n // to reduce and simplify headers row index adjusting across lib modules\n // (GridLayout, PopupFilter etc)\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.buildFilterId(colIndex)],\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 } 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 ['type', 'button'],\n ['value', this.btnText]\n );\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 // Enable loader indicator\n this.loader = true;\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 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 // 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');\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 = infDiv;\n\n /*** left div containing rows # displayer ***/\n let lDiv = createElm('div');\n lDiv.className = this.lDivCssClass;\n infDiv.appendChild(lDiv);\n this.lDiv = lDiv;\n\n /*** right div containing reset button\n + nb results per page select ***/\n let rDiv = createElm('div');\n rDiv.className = this.rDivCssClass;\n infDiv.appendChild(rDiv);\n this.rDiv = rDiv;\n\n /*** mid div containing paging elements ***/\n let mDiv = createElm('div');\n mDiv.className = this.mDivCssClass;\n infDiv.appendChild(mDiv);\n this.mDiv = mDiv;\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 //fire onbefore callback\n this.onBeforeFilter(this);\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 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 // isolate search term and check occurence in cell data\n for (let w = 0, len = s.length; w < len; w++) {\n cS = trim(s[w]);\n occur = this._testTerm(cS, cellData, j);\n\n if (occur) {\n this.emitter.emit('highlight-keyword', this,\n cells[j], cS);\n }\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] = this._testTerm(trim(sA), cellData, j);\n if (occurence[j]) {\n this.emitter.emit('highlight-keyword', this, cells[j],\n sA);\n }\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 this.validateRow(k, isRowValid);\n if (!isRowValid) {\n hiddenRows++;\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 //fire onafterfilter callback\n this.onAfterFilter(this);\n\n this.emitter.emit('after-filtering', this, searchArgs);\n }\n\n /**\n * Test for a match of search term in cell data\n * @param {String} term Search term\n * @param {String} cellData Cell data\n * @param {Number} colIdx Column index\n * @returns {Boolean}\n */\n _testTerm(term, cellData, colIdx) {\n let numData;\n let decimal = this.decimalSeparator;\n let reLe = new RegExp(this.leOperator),\n reGe = new RegExp(this.geOperator),\n reL = new RegExp(this.lwOperator),\n reG = new RegExp(this.grOperator),\n reD = new RegExp(this.dfOperator),\n reLk = new RegExp(rgxEsc(this.lkOperator)),\n reEq = new RegExp(this.eqOperator),\n reSt = new RegExp(this.stOperator),\n reEn = new RegExp(this.enOperator),\n // re_an = new RegExp(this.anOperator),\n // re_cr = new RegExp(this.curExp),\n reEm = this.emOperator,\n reNm = this.nmOperator,\n reRe = new RegExp(rgxEsc(this.rgxOperator));\n\n term = matchCase(term, this.caseSensitive);\n\n let occurence = false;\n\n //Search arg operator tests\n let hasLO = reL.test(term),\n hasLE = reLe.test(term),\n hasGR = reG.test(term),\n hasGE = reGe.test(term),\n hasDF = reD.test(term),\n hasEQ = reEq.test(term),\n hasLK = reLk.test(term),\n // hatermN = re_an.test(term),\n hasST = reSt.test(term),\n hasEN = reEn.test(term),\n hasEM = (reEm === term),\n hasNM = (reNm === term),\n hasRE = reRe.test(term);\n\n // Check for dates or resolve date type\n if (this.hasType(colIdx, [DATE])) {\n let dte1, dte2;\n\n let dateType = this.Mod.dateType;\n let isValidDate = dateType.isValid.bind(dateType);\n let parseDate = dateType.parse.bind(dateType);\n let locale = dateType.getOptions(colIdx).locale || this.locale;\n\n // Search arg dates tests\n let isLDate = hasLO &&\n isValidDate(term.replace(reL, ''), locale);\n let isLEDate = hasLE &&\n isValidDate(term.replace(reLe, ''), locale);\n let isGDate = hasGR &&\n isValidDate(term.replace(reG, ''), locale);\n let isGEDate = hasGE &&\n isValidDate(term.replace(reGe, ''), locale);\n let isDFDate = hasDF &&\n isValidDate(term.replace(reD, ''), locale);\n let isEQDate = hasEQ &&\n isValidDate(term.replace(reEq, ''), locale);\n\n dte1 = parseDate(cellData, locale);\n\n // lower date\n if (isLDate) {\n dte2 = parseDate(term.replace(reL, ''), locale);\n occurence = dte1 < dte2;\n }\n // lower equal date\n else if (isLEDate) {\n dte2 = parseDate(term.replace(reLe, ''), locale);\n occurence = dte1 <= dte2;\n }\n // greater equal date\n else if (isGEDate) {\n dte2 = parseDate(term.replace(reGe, ''), locale);\n occurence = dte1 >= dte2;\n }\n // greater date\n else if (isGDate) {\n dte2 = parseDate(term.replace(reG, ''), locale);\n occurence = dte1 > dte2;\n }\n // different date\n else if (isDFDate) {\n dte2 = parseDate(term.replace(reD, ''), locale);\n occurence = dte1.toString() !== dte2.toString();\n }\n // equal date\n else if (isEQDate) {\n dte2 = parseDate(term.replace(reEq, ''), locale);\n occurence = dte1.toString() === dte2.toString();\n }\n // searched keyword with * operator doesn't have to be a date\n else if (reLk.test(term)) {// like date\n occurence = contains(term.replace(reLk, ''), cellData,\n false, this.caseSensitive);\n }\n else if (isValidDate(term)) {\n dte2 = parseDate(term, locale);\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(term, cellData,\n this.isExactMatch(colIdx), this.caseSensitive);\n }\n }\n\n else {\n if (this.hasType(colIdx, [FORMATTED_NUMBER])) {\n let colType = this.colTypes[colIdx];\n if (colType.hasOwnProperty('decimal')) {\n decimal = colType.decimal;\n }\n }\n // Convert to number anyways to auto-resolve type in case not\n // defined by configuration\n numData = Number(cellData) || parseNb(cellData, decimal);\n\n // first checks if there is any operator (<,>,<=,>=,!,*,=,{,},\n // rgx:)\n // lower equal\n if (hasLE) {\n occurence = numData <= parseNb(\n term.replace(reLe, ''),\n decimal\n );\n }\n //greater equal\n else if (hasGE) {\n occurence = numData >= parseNb(\n term.replace(reGe, ''),\n decimal\n );\n }\n //lower\n else if (hasLO) {\n occurence = numData < parseNb(\n term.replace(reL, ''),\n decimal\n );\n }\n //greater\n else if (hasGR) {\n occurence = numData > parseNb(\n term.replace(reG, ''),\n decimal\n );\n }\n //different\n else if (hasDF) {\n occurence = contains(term.replace(reD, ''), cellData,\n false, this.caseSensitive) ? false : true;\n }\n //like\n else if (hasLK) {\n occurence = contains(term.replace(reLk, ''), cellData,\n false, this.caseSensitive);\n }\n //equal\n else if (hasEQ) {\n occurence = contains(term.replace(reEq, ''), cellData,\n true, this.caseSensitive);\n }\n //starts with\n else if (hasST) {\n occurence = cellData.indexOf(term.replace(reSt, '')) === 0 ?\n true : false;\n }\n //ends with\n else if (hasEN) {\n let searchArg = term.replace(reEn, '');\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 throws\n try {\n //operator is removed\n let srchArg = term.replace(reRe, '');\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 (numData &&\n this.hasType(colIdx, [NUMBER, FORMATTED_NUMBER]) &&\n !this.singleSearchFlt) {\n // parseNb can return 0 for strings which are not\n // formatted numbers, in that case return the original\n // string. TODO: handle this in parseNb\n term = parseNb(term, decimal) || term;\n occurence = numData === term ||\n contains(term.toString(), numData.toString(),\n this.isExactMatch(colIdx), this.caseSensitive);\n } else {\n // Finally test search term is contained in cell data\n occurence = contains(\n term,\n cellData,\n this.isExactMatch(colIdx),\n this.caseSensitive,\n this.ignoresDiacritics(colIdx)\n );\n }\n }\n\n }//else\n\n return occurence;\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) {\n continue;\n }\n let cellData = this.getCellData(cell[j]);\n let decimal = this.decimalSeparator;\n if (this.hasType(colIndex, [FORMATTED_NUMBER])) {\n let colType = this.colTypes[colIndex];\n if (colType.hasOwnProperty('decimal')) {\n decimal = colType.decimal;\n }\n }\n let data = num ?\n Number(cellData) || parseNb(cellData, decimal) :\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 >= 0 ? rowIndex : 0];\n return tr ? tr.cells.length : 0;\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 //Fire customCellData callback\n if (this.customCellDataCols.indexOf(idx) !== -1) {\n return this.customCellData(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 * @param {Boolean} num Optional: return unformatted number\n * @param {Array} exclude Optional: list of row indexes to be excluded\n * @param {Boolean} visible Optional: return only visible data\n * (relevant for paging)\n * @return {Array} Flat list of values ['val0','val1','val2'...]\n *\n * TODO: provide an API returning data in JSON format\n */\n getFilteredDataCol(\n colIndex,\n includeHeaders = false,\n num = false,\n exclude = [],\n visible = true\n ) {\n if (isUndef(colIndex)) {\n return [];\n }\n\n let rows = this.tbl.rows;\n\n // ensure valid rows index do not contain excluded rows and row is\n // displayed\n let validRows = this.getValidRows(true).filter((rowIdx) => {\n return exclude.indexOf(rowIdx) === -1 &&\n (visible ?\n this.getRowDisplay(rows[rowIdx]) !== 'none' :\n true);\n });\n\n let decimal = this.decimalSeparator;\n if (this.hasType(colIndex, [FORMATTED_NUMBER])) {\n let colType = this.colTypes[colIndex];\n if (colType.hasOwnProperty('decimal')) {\n decimal = colType.decimal;\n }\n }\n\n // convert column value to expected type if necessary\n let validColValues = validRows.map((rowIdx) => {\n let val = this.getCellData(rows[rowIdx].cells[colIndex]);\n return num ? Number(val) || parseNb(val, decimal) : val;\n });\n\n if (includeHeaders) {\n validColValues.unshift(this.getHeadersText()[colIndex]);\n }\n\n return validColValues;\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 this.onRowValidated(this, rowIndex);\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.linkedFilters);\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');\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 this.onBeforeReset(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 this.onAfterReset(this);\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 this.onBeforeActiveColumn(this, colIndex);\n\n addClass(header, this.activeColumnsCssClass);\n\n this.onAfterActiveColumn(this, colIndex);\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 * Builds filter element ID for a given column index\n * @param {any} colIndex\n * @returns {String} Filter element ID string\n * @private\n */\n buildFilterId(colIndex) {\n return `${this.prfxFlt}${colIndex}_${this.id}`;\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 colIdx = slcIndex[i];\n let curSlc = elm(this.fltIds[colIdx]);\n let slcSelectedValue = this.getFilterValue(colIdx);\n\n // Welcome to cyclomatic complexity hell :)\n // TODO: simplify/refactor if statement\n if (activeIdx !== colIdx ||\n (this.paging && slcA1.indexOf(colIdx) !== -1 &&\n activeIdx === colIdx) ||\n (!this.paging && (slcA3.indexOf(colIdx) !== -1 ||\n slcA2.indexOf(colIdx) !== -1)) ||\n slcSelectedValue === this.getClearFilterText(colIdx)) {\n\n //1st option needs to be inserted\n if (this.loadFltOnDemand) {\n let opt0 = createOpt(this.getClearFilterText(colIdx), '');\n curSlc.innerHTML = '';\n curSlc.appendChild(opt0);\n }\n\n if (slcA3.indexOf(colIdx) !== -1) {\n this.emitter.emit('build-checklist-filter', this, colIdx,\n true);\n } else {\n this.emitter.emit('build-select-filter', this, colIdx,\n true);\n }\n\n this.setFilterValue(colIdx, slcSelectedValue);\n }\n }\n }\n\n /**\n * Determines if passed filter column implements exact query match\n * @param {Number} colIndex Column index\n * @return {Boolean}\n */\n isExactMatch(colIndex) {\n let fltType = this.getFilterType(colIndex);\n return this.exactMatchByCol[colIndex] || this.exactMatch ||\n fltType !== INPUT;\n }\n\n /**\n * Checks if passed row is valid\n * @param {Number} rowIndex Row index\n * @returns {Boolean}\n */\n isRowValid(rowIndex) {\n return this.getValidRows().indexOf(rowIndex) !== -1;\n }\n\n /**\n * Checks if passed row is visible\n * @param {Number} rowIndex Row index\n * @returns {Boolean}\n */\n isRowDisplayed(rowIndex) {\n let row = this.tbl.rows[rowIndex];\n return this.getRowDisplay(row) === '';\n }\n\n /**\n * Checks if specified column filter ignores diacritics.\n * Note this is only valid for input filter types.\n * @param {Number} colIndex Column index\n * @returns {Boolean}\n */\n ignoresDiacritics(colIndex) {\n let ignoreDiac = this.ignoreDiacritics;\n if (isArray(ignoreDiac)) {\n return ignoreDiac[colIndex];\n }\n return Boolean(ignoreDiac);\n }\n\n /**\n * Returns clear all text for specified filter column\n * @param {Number} colIndex Column index\n * @returns {String}\n */\n getClearFilterText(colIndex) {\n let clearText = this.clearFilterText;\n if (isArray(clearText)) {\n return clearText[colIndex];\n }\n return clearText;\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 * Determine whether the specified column has one of the passed types\n * @param {Number} colIndex Column index\n * @param {Array} [types=[]] List of column types\n * @returns {Boolean}\n */\n hasType(colIndex, types = []) {\n if (!this.hasColTypes) {\n return false;\n }\n let colType = this.colTypes[colIndex];\n if (isObj(colType)) {\n colType = colType.type;\n }\n return types.indexOf(colType) !== -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__": 789, + "__docId__": 814, "kind": "variable", "static": true, "variation": null, @@ -16709,7 +17517,7 @@ } }, { - "__docId__": 790, + "__docId__": 815, "kind": "class", "static": true, "variation": null, @@ -16735,7 +17543,7 @@ "interface": false }, { - "__docId__": 791, + "__docId__": 816, "kind": "constructor", "static": false, "variation": null, @@ -16790,7 +17598,7 @@ "generator": false }, { - "__docId__": 792, + "__docId__": 817, "kind": "member", "static": false, "variation": null, @@ -16810,7 +17618,7 @@ } }, { - "__docId__": 793, + "__docId__": 818, "kind": "member", "static": false, "variation": null, @@ -16830,7 +17638,7 @@ } }, { - "__docId__": 794, + "__docId__": 819, "kind": "member", "static": false, "variation": null, @@ -16850,7 +17658,7 @@ } }, { - "__docId__": 795, + "__docId__": 820, "kind": "member", "static": false, "variation": null, @@ -16870,7 +17678,7 @@ } }, { - "__docId__": 796, + "__docId__": 821, "kind": "member", "static": false, "variation": null, @@ -16890,7 +17698,7 @@ } }, { - "__docId__": 797, + "__docId__": 822, "kind": "member", "static": false, "variation": null, @@ -16910,7 +17718,7 @@ } }, { - "__docId__": 798, + "__docId__": 823, "kind": "member", "static": false, "variation": null, @@ -16930,7 +17738,7 @@ } }, { - "__docId__": 799, + "__docId__": 824, "kind": "member", "static": false, "variation": null, @@ -16950,7 +17758,7 @@ } }, { - "__docId__": 800, + "__docId__": 825, "kind": "member", "static": false, "variation": null, @@ -16970,7 +17778,7 @@ } }, { - "__docId__": 801, + "__docId__": 826, "kind": "member", "static": false, "variation": null, @@ -16988,7 +17796,7 @@ } }, { - "__docId__": 802, + "__docId__": 827, "kind": "member", "static": false, "variation": null, @@ -17006,7 +17814,7 @@ } }, { - "__docId__": 803, + "__docId__": 828, "kind": "member", "static": false, "variation": null, @@ -17024,7 +17832,7 @@ } }, { - "__docId__": 804, + "__docId__": 829, "kind": "member", "static": false, "variation": null, @@ -17042,7 +17850,7 @@ } }, { - "__docId__": 805, + "__docId__": 830, "kind": "member", "static": false, "variation": null, @@ -17060,7 +17868,7 @@ } }, { - "__docId__": 806, + "__docId__": 831, "kind": "member", "static": false, "variation": null, @@ -17080,7 +17888,7 @@ } }, { - "__docId__": 807, + "__docId__": 832, "kind": "member", "static": false, "variation": null, @@ -17098,7 +17906,7 @@ } }, { - "__docId__": 808, + "__docId__": 833, "kind": "member", "static": false, "variation": null, @@ -17118,7 +17926,7 @@ } }, { - "__docId__": 809, + "__docId__": 834, "kind": "member", "static": false, "variation": null, @@ -17138,7 +17946,7 @@ } }, { - "__docId__": 810, + "__docId__": 835, "kind": "member", "static": false, "variation": null, @@ -17158,7 +17966,7 @@ } }, { - "__docId__": 811, + "__docId__": 836, "kind": "member", "static": false, "variation": null, @@ -17178,7 +17986,7 @@ } }, { - "__docId__": 812, + "__docId__": 837, "kind": "member", "static": false, "variation": null, @@ -17198,7 +18006,7 @@ } }, { - "__docId__": 813, + "__docId__": 838, "kind": "member", "static": false, "variation": null, @@ -17218,7 +18026,7 @@ } }, { - "__docId__": 814, + "__docId__": 839, "kind": "member", "static": false, "variation": null, @@ -17238,7 +18046,7 @@ } }, { - "__docId__": 815, + "__docId__": 840, "kind": "member", "static": false, "variation": null, @@ -17258,7 +18066,7 @@ } }, { - "__docId__": 816, + "__docId__": 841, "kind": "member", "static": false, "variation": null, @@ -17278,7 +18086,7 @@ } }, { - "__docId__": 817, + "__docId__": 842, "kind": "member", "static": false, "variation": null, @@ -17298,7 +18106,7 @@ } }, { - "__docId__": 818, + "__docId__": 843, "kind": "member", "static": false, "variation": null, @@ -17318,7 +18126,7 @@ } }, { - "__docId__": 819, + "__docId__": 844, "kind": "member", "static": false, "variation": null, @@ -17338,7 +18146,7 @@ } }, { - "__docId__": 820, + "__docId__": 845, "kind": "member", "static": false, "variation": null, @@ -17358,7 +18166,7 @@ } }, { - "__docId__": 821, + "__docId__": 846, "kind": "member", "static": false, "variation": null, @@ -17378,7 +18186,7 @@ } }, { - "__docId__": 822, + "__docId__": 847, "kind": "member", "static": false, "variation": null, @@ -17398,7 +18206,7 @@ } }, { - "__docId__": 823, + "__docId__": 848, "kind": "member", "static": false, "variation": null, @@ -17418,7 +18226,7 @@ } }, { - "__docId__": 824, + "__docId__": 849, "kind": "member", "static": false, "variation": null, @@ -17438,7 +18246,7 @@ } }, { - "__docId__": 825, + "__docId__": 850, "kind": "member", "static": false, "variation": null, @@ -17458,7 +18266,7 @@ } }, { - "__docId__": 826, + "__docId__": 851, "kind": "member", "static": false, "variation": null, @@ -17478,7 +18286,7 @@ } }, { - "__docId__": 827, + "__docId__": 852, "kind": "member", "static": false, "variation": null, @@ -17498,7 +18306,7 @@ } }, { - "__docId__": 828, + "__docId__": 853, "kind": "member", "static": false, "variation": null, @@ -17518,7 +18326,7 @@ } }, { - "__docId__": 829, + "__docId__": 854, "kind": "member", "static": false, "variation": null, @@ -17538,7 +18346,7 @@ } }, { - "__docId__": 830, + "__docId__": 855, "kind": "member", "static": false, "variation": null, @@ -17558,7 +18366,7 @@ } }, { - "__docId__": 831, + "__docId__": 856, "kind": "member", "static": false, "variation": null, @@ -17578,7 +18386,7 @@ } }, { - "__docId__": 832, + "__docId__": 857, "kind": "member", "static": false, "variation": null, @@ -17598,7 +18406,7 @@ } }, { - "__docId__": 833, + "__docId__": 858, "kind": "member", "static": false, "variation": null, @@ -17618,7 +18426,7 @@ } }, { - "__docId__": 834, + "__docId__": 859, "kind": "member", "static": false, "variation": null, @@ -17638,7 +18446,7 @@ } }, { - "__docId__": 835, + "__docId__": 860, "kind": "member", "static": false, "variation": null, @@ -17658,7 +18466,7 @@ } }, { - "__docId__": 836, + "__docId__": 861, "kind": "member", "static": false, "variation": null, @@ -17678,7 +18486,7 @@ } }, { - "__docId__": 837, + "__docId__": 862, "kind": "member", "static": false, "variation": null, @@ -17698,7 +18506,7 @@ } }, { - "__docId__": 838, + "__docId__": 863, "kind": "member", "static": false, "variation": null, @@ -17718,7 +18526,7 @@ } }, { - "__docId__": 839, + "__docId__": 864, "kind": "member", "static": false, "variation": null, @@ -17738,7 +18546,7 @@ } }, { - "__docId__": 840, + "__docId__": 865, "kind": "member", "static": false, "variation": null, @@ -17758,7 +18566,7 @@ } }, { - "__docId__": 841, + "__docId__": 866, "kind": "member", "static": false, "variation": null, @@ -17778,7 +18586,7 @@ } }, { - "__docId__": 842, + "__docId__": 867, "kind": "member", "static": false, "variation": null, @@ -17798,7 +18606,7 @@ } }, { - "__docId__": 843, + "__docId__": 868, "kind": "member", "static": false, "variation": null, @@ -17819,7 +18627,7 @@ } }, { - "__docId__": 844, + "__docId__": 869, "kind": "member", "static": false, "variation": null, @@ -17839,7 +18647,7 @@ } }, { - "__docId__": 845, + "__docId__": 870, "kind": "member", "static": false, "variation": null, @@ -17859,7 +18667,7 @@ } }, { - "__docId__": 846, + "__docId__": 871, "kind": "member", "static": false, "variation": null, @@ -17879,7 +18687,7 @@ } }, { - "__docId__": 847, + "__docId__": 872, "kind": "member", "static": false, "variation": null, @@ -17899,7 +18707,7 @@ } }, { - "__docId__": 848, + "__docId__": 873, "kind": "member", "static": false, "variation": null, @@ -17919,7 +18727,7 @@ } }, { - "__docId__": 849, + "__docId__": 874, "kind": "member", "static": false, "variation": null, @@ -17939,7 +18747,7 @@ } }, { - "__docId__": 850, + "__docId__": 875, "kind": "member", "static": false, "variation": null, @@ -17959,7 +18767,7 @@ } }, { - "__docId__": 851, + "__docId__": 876, "kind": "member", "static": false, "variation": null, @@ -17979,7 +18787,7 @@ } }, { - "__docId__": 852, + "__docId__": 877, "kind": "member", "static": false, "variation": null, @@ -17999,7 +18807,7 @@ } }, { - "__docId__": 853, + "__docId__": 878, "kind": "member", "static": false, "variation": null, @@ -18019,7 +18827,7 @@ } }, { - "__docId__": 854, + "__docId__": 879, "kind": "member", "static": false, "variation": null, @@ -18039,7 +18847,7 @@ } }, { - "__docId__": 855, + "__docId__": 880, "kind": "member", "static": false, "variation": null, @@ -18059,7 +18867,7 @@ } }, { - "__docId__": 856, + "__docId__": 881, "kind": "member", "static": false, "variation": null, @@ -18080,7 +18888,7 @@ } }, { - "__docId__": 857, + "__docId__": 882, "kind": "member", "static": false, "variation": null, @@ -18100,7 +18908,7 @@ } }, { - "__docId__": 858, + "__docId__": 883, "kind": "member", "static": false, "variation": null, @@ -18120,7 +18928,7 @@ } }, { - "__docId__": 859, + "__docId__": 884, "kind": "member", "static": false, "variation": null, @@ -18140,7 +18948,7 @@ } }, { - "__docId__": 860, + "__docId__": 885, "kind": "member", "static": false, "variation": null, @@ -18160,7 +18968,7 @@ } }, { - "__docId__": 861, + "__docId__": 886, "kind": "member", "static": false, "variation": null, @@ -18180,7 +18988,7 @@ } }, { - "__docId__": 862, + "__docId__": 887, "kind": "member", "static": false, "variation": null, @@ -18200,7 +19008,7 @@ } }, { - "__docId__": 863, + "__docId__": 888, "kind": "member", "static": false, "variation": null, @@ -18220,7 +19028,7 @@ } }, { - "__docId__": 864, + "__docId__": 889, "kind": "member", "static": false, "variation": null, @@ -18240,7 +19048,7 @@ } }, { - "__docId__": 865, + "__docId__": 890, "kind": "member", "static": false, "variation": null, @@ -18261,7 +19069,7 @@ } }, { - "__docId__": 866, + "__docId__": 891, "kind": "member", "static": false, "variation": null, @@ -18281,7 +19089,7 @@ } }, { - "__docId__": 867, + "__docId__": 892, "kind": "member", "static": false, "variation": null, @@ -18301,7 +19109,7 @@ } }, { - "__docId__": 868, + "__docId__": 893, "kind": "member", "static": false, "variation": null, @@ -18321,7 +19129,7 @@ } }, { - "__docId__": 869, + "__docId__": 894, "kind": "member", "static": false, "variation": null, @@ -18341,7 +19149,7 @@ } }, { - "__docId__": 870, + "__docId__": 895, "kind": "member", "static": false, "variation": null, @@ -18361,7 +19169,7 @@ } }, { - "__docId__": 871, + "__docId__": 896, "kind": "member", "static": false, "variation": null, @@ -18381,7 +19189,7 @@ } }, { - "__docId__": 872, + "__docId__": 897, "kind": "member", "static": false, "variation": null, @@ -18401,7 +19209,7 @@ } }, { - "__docId__": 873, + "__docId__": 898, "kind": "member", "static": false, "variation": null, @@ -18421,7 +19229,7 @@ } }, { - "__docId__": 874, + "__docId__": 899, "kind": "member", "static": false, "variation": null, @@ -18441,7 +19249,7 @@ } }, { - "__docId__": 875, + "__docId__": 900, "kind": "member", "static": false, "variation": null, @@ -18461,7 +19269,7 @@ } }, { - "__docId__": 876, + "__docId__": 901, "kind": "member", "static": false, "variation": null, @@ -18481,7 +19289,7 @@ } }, { - "__docId__": 877, + "__docId__": 902, "kind": "member", "static": false, "variation": null, @@ -18501,7 +19309,7 @@ } }, { - "__docId__": 878, + "__docId__": 903, "kind": "member", "static": false, "variation": null, @@ -18521,7 +19329,7 @@ } }, { - "__docId__": 879, + "__docId__": 904, "kind": "member", "static": false, "variation": null, @@ -18541,7 +19349,7 @@ } }, { - "__docId__": 880, + "__docId__": 905, "kind": "member", "static": false, "variation": null, @@ -18561,7 +19369,7 @@ } }, { - "__docId__": 881, + "__docId__": 906, "kind": "member", "static": false, "variation": null, @@ -18581,7 +19389,7 @@ } }, { - "__docId__": 882, + "__docId__": 907, "kind": "member", "static": false, "variation": null, @@ -18601,7 +19409,7 @@ } }, { - "__docId__": 883, + "__docId__": 908, "kind": "member", "static": false, "variation": null, @@ -18621,7 +19429,7 @@ } }, { - "__docId__": 884, + "__docId__": 909, "kind": "member", "static": false, "variation": null, @@ -18641,7 +19449,7 @@ } }, { - "__docId__": 885, + "__docId__": 910, "kind": "member", "static": false, "variation": null, @@ -18661,7 +19469,7 @@ } }, { - "__docId__": 886, + "__docId__": 911, "kind": "member", "static": false, "variation": null, @@ -18681,7 +19489,7 @@ } }, { - "__docId__": 887, + "__docId__": 912, "kind": "member", "static": false, "variation": null, @@ -18701,7 +19509,7 @@ } }, { - "__docId__": 888, + "__docId__": 913, "kind": "member", "static": false, "variation": null, @@ -18721,7 +19529,7 @@ } }, { - "__docId__": 889, + "__docId__": 914, "kind": "member", "static": false, "variation": null, @@ -18741,7 +19549,7 @@ } }, { - "__docId__": 890, + "__docId__": 915, "kind": "member", "static": false, "variation": null, @@ -18761,7 +19569,7 @@ } }, { - "__docId__": 891, + "__docId__": 916, "kind": "member", "static": false, "variation": null, @@ -18781,7 +19589,7 @@ } }, { - "__docId__": 892, + "__docId__": 917, "kind": "member", "static": false, "variation": null, @@ -18801,7 +19609,7 @@ } }, { - "__docId__": 893, + "__docId__": 918, "kind": "member", "static": false, "variation": null, @@ -18821,7 +19629,7 @@ } }, { - "__docId__": 894, + "__docId__": 919, "kind": "member", "static": false, "variation": null, @@ -18841,7 +19649,7 @@ } }, { - "__docId__": 895, + "__docId__": 920, "kind": "member", "static": false, "variation": null, @@ -18861,7 +19669,7 @@ } }, { - "__docId__": 896, + "__docId__": 921, "kind": "member", "static": false, "variation": null, @@ -18881,7 +19689,7 @@ } }, { - "__docId__": 897, + "__docId__": 922, "kind": "member", "static": false, "variation": null, @@ -18901,7 +19709,7 @@ } }, { - "__docId__": 898, + "__docId__": 923, "kind": "member", "static": false, "variation": null, @@ -18921,7 +19729,7 @@ } }, { - "__docId__": 899, + "__docId__": 924, "kind": "member", "static": false, "variation": null, @@ -18941,7 +19749,7 @@ } }, { - "__docId__": 900, + "__docId__": 925, "kind": "member", "static": false, "variation": null, @@ -18961,7 +19769,7 @@ } }, { - "__docId__": 901, + "__docId__": 926, "kind": "member", "static": false, "variation": null, @@ -18981,7 +19789,7 @@ } }, { - "__docId__": 902, + "__docId__": 927, "kind": "member", "static": false, "variation": null, @@ -19001,7 +19809,7 @@ } }, { - "__docId__": 903, + "__docId__": 928, "kind": "member", "static": false, "variation": null, @@ -19021,7 +19829,7 @@ } }, { - "__docId__": 904, + "__docId__": 929, "kind": "member", "static": false, "variation": null, @@ -19041,7 +19849,7 @@ } }, { - "__docId__": 905, + "__docId__": 930, "kind": "member", "static": false, "variation": null, @@ -19061,7 +19869,7 @@ } }, { - "__docId__": 906, + "__docId__": 931, "kind": "member", "static": false, "variation": null, @@ -19081,7 +19889,7 @@ } }, { - "__docId__": 907, + "__docId__": 932, "kind": "member", "static": false, "variation": null, @@ -19101,7 +19909,7 @@ } }, { - "__docId__": 908, + "__docId__": 933, "kind": "member", "static": false, "variation": null, @@ -19121,7 +19929,7 @@ } }, { - "__docId__": 909, + "__docId__": 934, "kind": "member", "static": false, "variation": null, @@ -19141,7 +19949,7 @@ } }, { - "__docId__": 910, + "__docId__": 935, "kind": "member", "static": false, "variation": null, @@ -19161,7 +19969,7 @@ } }, { - "__docId__": 911, + "__docId__": 936, "kind": "member", "static": false, "variation": null, @@ -19181,7 +19989,7 @@ } }, { - "__docId__": 912, + "__docId__": 937, "kind": "member", "static": false, "variation": null, @@ -19201,7 +20009,7 @@ } }, { - "__docId__": 913, + "__docId__": 938, "kind": "member", "static": false, "variation": null, @@ -19221,7 +20029,7 @@ } }, { - "__docId__": 914, + "__docId__": 939, "kind": "member", "static": false, "variation": null, @@ -19241,7 +20049,7 @@ } }, { - "__docId__": 915, + "__docId__": 940, "kind": "member", "static": false, "variation": null, @@ -19261,7 +20069,7 @@ } }, { - "__docId__": 916, + "__docId__": 941, "kind": "member", "static": false, "variation": null, @@ -19281,7 +20089,7 @@ } }, { - "__docId__": 917, + "__docId__": 942, "kind": "member", "static": false, "variation": null, @@ -19298,7 +20106,7 @@ } }, { - "__docId__": 918, + "__docId__": 943, "kind": "member", "static": false, "variation": null, @@ -19315,7 +20123,7 @@ } }, { - "__docId__": 919, + "__docId__": 944, "kind": "member", "static": false, "variation": null, @@ -19332,7 +20140,7 @@ } }, { - "__docId__": 920, + "__docId__": 945, "kind": "member", "static": false, "variation": null, @@ -19349,7 +20157,7 @@ } }, { - "__docId__": 921, + "__docId__": 946, "kind": "member", "static": false, "variation": null, @@ -19366,7 +20174,7 @@ } }, { - "__docId__": 922, + "__docId__": 947, "kind": "member", "static": false, "variation": null, @@ -19383,7 +20191,7 @@ } }, { - "__docId__": 923, + "__docId__": 948, "kind": "member", "static": false, "variation": null, @@ -19400,7 +20208,7 @@ } }, { - "__docId__": 924, + "__docId__": 949, "kind": "member", "static": false, "variation": null, @@ -19417,7 +20225,7 @@ } }, { - "__docId__": 925, + "__docId__": 950, "kind": "member", "static": false, "variation": null, @@ -19437,7 +20245,7 @@ } }, { - "__docId__": 926, + "__docId__": 951, "kind": "member", "static": false, "variation": null, @@ -19457,7 +20265,7 @@ } }, { - "__docId__": 927, + "__docId__": 952, "kind": "member", "static": false, "variation": null, @@ -19477,7 +20285,7 @@ } }, { - "__docId__": 928, + "__docId__": 953, "kind": "member", "static": false, "variation": null, @@ -19497,7 +20305,7 @@ } }, { - "__docId__": 929, + "__docId__": 954, "kind": "member", "static": false, "variation": null, @@ -19517,7 +20325,7 @@ } }, { - "__docId__": 930, + "__docId__": 955, "kind": "member", "static": false, "variation": null, @@ -19537,7 +20345,7 @@ } }, { - "__docId__": 931, + "__docId__": 956, "kind": "member", "static": false, "variation": null, @@ -19557,7 +20365,7 @@ } }, { - "__docId__": 932, + "__docId__": 957, "kind": "member", "static": false, "variation": null, @@ -19574,7 +20382,7 @@ } }, { - "__docId__": 933, + "__docId__": 958, "kind": "member", "static": false, "variation": null, @@ -19591,7 +20399,7 @@ } }, { - "__docId__": 934, + "__docId__": 959, "kind": "method", "static": false, "variation": null, @@ -19605,7 +20413,7 @@ "generator": false }, { - "__docId__": 935, + "__docId__": 960, "kind": "member", "static": false, "variation": null, @@ -19623,7 +20431,7 @@ } }, { - "__docId__": 936, + "__docId__": 961, "kind": "member", "static": false, "variation": null, @@ -19641,7 +20449,7 @@ } }, { - "__docId__": 937, + "__docId__": 962, "kind": "member", "static": false, "variation": null, @@ -19664,7 +20472,7 @@ } }, { - "__docId__": 938, + "__docId__": 963, "kind": "method", "static": false, "variation": null, @@ -19689,7 +20497,7 @@ "generator": false }, { - "__docId__": 939, + "__docId__": 964, "kind": "member", "static": false, "variation": null, @@ -19707,7 +20515,7 @@ } }, { - "__docId__": 940, + "__docId__": 965, "kind": "member", "static": false, "variation": null, @@ -19725,7 +20533,7 @@ } }, { - "__docId__": 941, + "__docId__": 966, "kind": "method", "static": false, "variation": null, @@ -19750,7 +20558,7 @@ "generator": false }, { - "__docId__": 942, + "__docId__": 967, "kind": "member", "static": false, "variation": null, @@ -19768,7 +20576,7 @@ } }, { - "__docId__": 943, + "__docId__": 968, "kind": "member", "static": false, "variation": null, @@ -19786,7 +20594,7 @@ } }, { - "__docId__": 944, + "__docId__": 969, "kind": "member", "static": false, "variation": null, @@ -19804,7 +20612,7 @@ } }, { - "__docId__": 945, + "__docId__": 970, "kind": "member", "static": false, "variation": null, @@ -19822,7 +20630,7 @@ } }, { - "__docId__": 946, + "__docId__": 971, "kind": "member", "static": false, "variation": null, @@ -19840,7 +20648,7 @@ } }, { - "__docId__": 947, + "__docId__": 972, "kind": "method", "static": false, "variation": null, @@ -19854,7 +20662,7 @@ "generator": false }, { - "__docId__": 948, + "__docId__": 973, "kind": "member", "static": false, "variation": null, @@ -19872,7 +20680,7 @@ } }, { - "__docId__": 949, + "__docId__": 974, "kind": "method", "static": false, "variation": null, @@ -19897,7 +20705,7 @@ "generator": false }, { - "__docId__": 950, + "__docId__": 975, "kind": "method", "static": false, "variation": null, @@ -19911,7 +20719,7 @@ "generator": false }, { - "__docId__": 951, + "__docId__": 976, "kind": "member", "static": false, "variation": null, @@ -19929,7 +20737,7 @@ } }, { - "__docId__": 952, + "__docId__": 977, "kind": "method", "static": false, "variation": null, @@ -19948,7 +20756,7 @@ "generator": false }, { - "__docId__": 953, + "__docId__": 978, "kind": "method", "static": false, "variation": null, @@ -19962,7 +20770,7 @@ "generator": false }, { - "__docId__": 954, + "__docId__": 979, "kind": "member", "static": false, "variation": null, @@ -19980,7 +20788,7 @@ } }, { - "__docId__": 955, + "__docId__": 980, "kind": "member", "static": false, "variation": null, @@ -19998,7 +20806,7 @@ } }, { - "__docId__": 956, + "__docId__": 981, "kind": "method", "static": false, "variation": null, @@ -20043,7 +20851,7 @@ "generator": false }, { - "__docId__": 957, + "__docId__": 982, "kind": "method", "static": false, "variation": null, @@ -20078,7 +20886,7 @@ "generator": false }, { - "__docId__": 958, + "__docId__": 983, "kind": "method", "static": false, "variation": null, @@ -20111,7 +20919,7 @@ "generator": false }, { - "__docId__": 959, + "__docId__": 984, "kind": "method", "static": false, "variation": null, @@ -20125,7 +20933,7 @@ "generator": false }, { - "__docId__": 960, + "__docId__": 985, "kind": "method", "static": false, "variation": null, @@ -20150,7 +20958,7 @@ "generator": false }, { - "__docId__": 961, + "__docId__": 986, "kind": "method", "static": false, "variation": null, @@ -20183,7 +20991,7 @@ "generator": false }, { - "__docId__": 962, + "__docId__": 987, "kind": "method", "static": false, "variation": null, @@ -20216,7 +21024,7 @@ "generator": false }, { - "__docId__": 963, + "__docId__": 988, "kind": "method", "static": false, "variation": null, @@ -20230,7 +21038,7 @@ "generator": false }, { - "__docId__": 964, + "__docId__": 989, "kind": "method", "static": false, "variation": null, @@ -20244,7 +21052,7 @@ "generator": false }, { - "__docId__": 965, + "__docId__": 990, "kind": "member", "static": false, "variation": null, @@ -20262,7 +21070,7 @@ } }, { - "__docId__": 966, + "__docId__": 991, "kind": "method", "static": false, "variation": null, @@ -20294,7 +21102,7 @@ "generator": false }, { - "__docId__": 967, + "__docId__": 992, "kind": "method", "static": false, "variation": null, @@ -20308,7 +21116,7 @@ "generator": false }, { - "__docId__": 968, + "__docId__": 993, "kind": "member", "static": false, "variation": null, @@ -20326,7 +21134,7 @@ } }, { - "__docId__": 969, + "__docId__": 994, "kind": "member", "static": false, "variation": null, @@ -20344,7 +21152,7 @@ } }, { - "__docId__": 970, + "__docId__": 995, "kind": "member", "static": false, "variation": null, @@ -20362,7 +21170,7 @@ } }, { - "__docId__": 971, + "__docId__": 996, "kind": "member", "static": false, "variation": null, @@ -20380,7 +21188,7 @@ } }, { - "__docId__": 972, + "__docId__": 997, "kind": "method", "static": false, "variation": null, @@ -20394,7 +21202,7 @@ "generator": false }, { - "__docId__": 973, + "__docId__": 998, "kind": "member", "static": false, "variation": null, @@ -20412,7 +21220,7 @@ } }, { - "__docId__": 974, + "__docId__": 999, "kind": "member", "static": false, "variation": null, @@ -20430,7 +21238,7 @@ } }, { - "__docId__": 975, + "__docId__": 1000, "kind": "member", "static": false, "variation": null, @@ -20448,7 +21256,7 @@ } }, { - "__docId__": 976, + "__docId__": 1001, "kind": "member", "static": false, "variation": null, @@ -20466,7 +21274,7 @@ } }, { - "__docId__": 977, + "__docId__": 1002, "kind": "method", "static": false, "variation": null, @@ -20480,7 +21288,7 @@ "generator": false }, { - "__docId__": 978, + "__docId__": 1003, "kind": "member", "static": false, "variation": null, @@ -20498,7 +21306,7 @@ } }, { - "__docId__": 979, + "__docId__": 1004, "kind": "method", "static": false, "variation": null, @@ -20512,7 +21320,7 @@ "generator": false }, { - "__docId__": 980, + "__docId__": 1005, "kind": "method", "static": false, "variation": null, @@ -20545,7 +21353,7 @@ "generator": false }, { - "__docId__": 981, + "__docId__": 1006, "kind": "method", "static": false, "variation": null, @@ -20578,7 +21386,7 @@ "generator": false }, { - "__docId__": 982, + "__docId__": 1007, "kind": "method", "static": false, "variation": null, @@ -20592,7 +21400,7 @@ "generator": false }, { - "__docId__": 983, + "__docId__": 1008, "kind": "member", "static": false, "variation": null, @@ -20610,7 +21418,7 @@ } }, { - "__docId__": 984, + "__docId__": 1009, "kind": "member", "static": false, "variation": null, @@ -20628,7 +21436,7 @@ } }, { - "__docId__": 985, + "__docId__": 1010, "kind": "method", "static": false, "variation": null, @@ -20687,7 +21495,7 @@ "generator": false }, { - "__docId__": 986, + "__docId__": 1011, "kind": "method", "static": false, "variation": null, @@ -20750,7 +21558,7 @@ "generator": false }, { - "__docId__": 987, + "__docId__": 1012, "kind": "method", "static": false, "variation": null, @@ -20783,7 +21591,7 @@ "generator": false }, { - "__docId__": 988, + "__docId__": 1013, "kind": "method", "static": false, "variation": null, @@ -20805,7 +21613,7 @@ "generator": false }, { - "__docId__": 989, + "__docId__": 1014, "kind": "method", "static": false, "variation": null, @@ -20838,7 +21646,7 @@ "generator": false }, { - "__docId__": 990, + "__docId__": 1015, "kind": "method", "static": false, "variation": null, @@ -20881,7 +21689,7 @@ "generator": false }, { - "__docId__": 991, + "__docId__": 1016, "kind": "method", "static": false, "variation": null, @@ -20914,7 +21722,7 @@ "generator": false }, { - "__docId__": 992, + "__docId__": 1017, "kind": "method", "static": false, "variation": null, @@ -20947,7 +21755,7 @@ "generator": false }, { - "__docId__": 993, + "__docId__": 1018, "kind": "method", "static": false, "variation": null, @@ -20980,7 +21788,7 @@ "generator": false }, { - "__docId__": 994, + "__docId__": 1019, "kind": "method", "static": false, "variation": null, @@ -21013,7 +21821,7 @@ "generator": false }, { - "__docId__": 995, + "__docId__": 1020, "kind": "method", "static": false, "variation": null, @@ -21056,7 +21864,7 @@ "generator": false }, { - "__docId__": 996, + "__docId__": 1021, "kind": "method", "static": false, "variation": null, @@ -21099,7 +21907,7 @@ "generator": false }, { - "__docId__": 997, + "__docId__": 1022, "kind": "method", "static": false, "variation": null, @@ -21108,7 +21916,7 @@ "longname": "src/tablefilter.js~TableFilter#getFilteredDataCol", "access": null, "description": "Return the filtered data for a given column index", - "lineNumber": 2360, + "lineNumber": 2364, "params": [ { "nullable": null, @@ -21129,6 +21937,36 @@ "optional": false, "name": "includeHeaders", "description": "Optional: include headers row" + }, + { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "optional": false, + "name": "num", + "description": "Optional: return unformatted number" + }, + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "exclude", + "description": "Optional: list of row indexes to be excluded" + }, + { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "optional": false, + "name": "visible", + "description": "Optional: return only visible data\n (relevant for paging)" } ], "return": { @@ -21142,7 +21980,7 @@ "generator": false }, { - "__docId__": 998, + "__docId__": 1023, "kind": "method", "static": false, "variation": null, @@ -21151,7 +21989,7 @@ "longname": "src/tablefilter.js~TableFilter#getRowDisplay", "access": null, "description": "Get the display value of a row", - "lineNumber": 2385, + "lineNumber": 2412, "params": [ { "nullable": null, @@ -21175,7 +22013,7 @@ "generator": false }, { - "__docId__": 999, + "__docId__": 1024, "kind": "method", "static": false, "variation": null, @@ -21184,7 +22022,7 @@ "longname": "src/tablefilter.js~TableFilter#validateRow", "access": null, "description": "Validate/invalidate row by setting the 'validRow' attribute on the row", - "lineNumber": 2394, + "lineNumber": 2421, "params": [ { "nullable": null, @@ -21210,7 +22048,7 @@ "generator": false }, { - "__docId__": 1000, + "__docId__": 1025, "kind": "method", "static": false, "variation": null, @@ -21219,12 +22057,12 @@ "longname": "src/tablefilter.js~TableFilter#validateAllRows", "access": null, "description": "Validate all filterable rows", - "lineNumber": 2427, + "lineNumber": 2454, "params": [], "generator": false }, { - "__docId__": 1001, + "__docId__": 1026, "kind": "member", "static": false, "variation": null, @@ -21233,7 +22071,7 @@ "longname": "src/tablefilter.js~TableFilter#validRowsIndex", "access": null, "description": null, - "lineNumber": 2431, + "lineNumber": 2458, "undocument": true, "type": { "types": [ @@ -21242,7 +22080,7 @@ } }, { - "__docId__": 1002, + "__docId__": 1027, "kind": "method", "static": false, "variation": null, @@ -21251,7 +22089,7 @@ "longname": "src/tablefilter.js~TableFilter#setFilterValue", "access": null, "description": "Set search value to a given filter", - "lineNumber": 2442, + "lineNumber": 2469, "params": [ { "nullable": null, @@ -21277,7 +22115,7 @@ "generator": false }, { - "__docId__": 1003, + "__docId__": 1028, "kind": "method", "static": false, "variation": null, @@ -21286,7 +22124,7 @@ "longname": "src/tablefilter.js~TableFilter#setColWidths", "access": null, "description": "Set them columns' widths as per configuration", - "lineNumber": 2490, + "lineNumber": 2517, "params": [ { "nullable": null, @@ -21302,7 +22140,7 @@ "generator": false }, { - "__docId__": 1004, + "__docId__": 1029, "kind": "method", "static": false, "variation": null, @@ -21311,12 +22149,12 @@ "longname": "src/tablefilter.js~TableFilter#enforceVisibility", "access": null, "description": "Makes defined rows always visible", - "lineNumber": 2519, + "lineNumber": 2546, "params": [], "generator": false }, { - "__docId__": 1005, + "__docId__": 1030, "kind": "method", "static": false, "variation": null, @@ -21325,12 +22163,12 @@ "longname": "src/tablefilter.js~TableFilter#clearFilters", "access": null, "description": "Clear all the filters' values", - "lineNumber": 2536, + "lineNumber": 2563, "params": [], "generator": false }, { - "__docId__": 1006, + "__docId__": 1031, "kind": "method", "static": false, "variation": null, @@ -21339,12 +22177,12 @@ "longname": "src/tablefilter.js~TableFilter#clearActiveColumns", "access": null, "description": "Clears filtered columns visual indicator (background color)", - "lineNumber": 2557, + "lineNumber": 2584, "params": [], "generator": false }, { - "__docId__": 1007, + "__docId__": 1032, "kind": "method", "static": false, "variation": null, @@ -21353,7 +22191,7 @@ "longname": "src/tablefilter.js~TableFilter#markActiveColumn", "access": null, "description": "Mark currently filtered column", - "lineNumber": 2567, + "lineNumber": 2594, "params": [ { "nullable": null, @@ -21369,7 +22207,7 @@ "generator": false }, { - "__docId__": 1008, + "__docId__": 1033, "kind": "method", "static": false, "variation": null, @@ -21378,7 +22216,7 @@ "longname": "src/tablefilter.js~TableFilter#getActiveFilterId", "access": null, "description": "Return the ID of the current active filter", - "lineNumber": 2583, + "lineNumber": 2610, "unknown": [ { "tagName": "@returns", @@ -21397,7 +22235,7 @@ "generator": false }, { - "__docId__": 1009, + "__docId__": 1034, "kind": "method", "static": false, "variation": null, @@ -21406,7 +22244,7 @@ "longname": "src/tablefilter.js~TableFilter#setActiveFilterId", "access": null, "description": "Set the ID of the current active filter", - "lineNumber": 2591, + "lineNumber": 2618, "params": [ { "nullable": null, @@ -21422,7 +22260,7 @@ "generator": false }, { - "__docId__": 1010, + "__docId__": 1035, "kind": "member", "static": false, "variation": null, @@ -21431,7 +22269,7 @@ "longname": "src/tablefilter.js~TableFilter#activeFilterId", "access": null, "description": null, - "lineNumber": 2592, + "lineNumber": 2619, "undocument": true, "type": { "types": [ @@ -21440,7 +22278,7 @@ } }, { - "__docId__": 1011, + "__docId__": 1036, "kind": "method", "static": false, "variation": null, @@ -21449,7 +22287,7 @@ "longname": "src/tablefilter.js~TableFilter#getColumnIndexFromFilterId", "access": null, "description": "Return the column index for a given filter ID", - "lineNumber": 2600, + "lineNumber": 2627, "unknown": [ { "tagName": "@returns", @@ -21481,7 +22319,7 @@ "generator": false }, { - "__docId__": 1012, + "__docId__": 1037, "kind": "method", "static": false, "variation": null, @@ -21490,7 +22328,7 @@ "longname": "src/tablefilter.js~TableFilter#buildFilterId", "access": "private", "description": "Builds filter element ID for a given column index", - "lineNumber": 2612, + "lineNumber": 2639, "unknown": [ { "tagName": "@returns", @@ -21520,7 +22358,7 @@ "generator": false }, { - "__docId__": 1013, + "__docId__": 1038, "kind": "method", "static": false, "variation": null, @@ -21529,7 +22367,7 @@ "longname": "src/tablefilter.js~TableFilter#activateFilter", "access": null, "description": "Make specified column's filter active", - "lineNumber": 2620, + "lineNumber": 2647, "params": [ { "nullable": null, @@ -21545,7 +22383,7 @@ "generator": false }, { - "__docId__": 1014, + "__docId__": 1039, "kind": "method", "static": false, "variation": null, @@ -21554,12 +22392,12 @@ "longname": "src/tablefilter.js~TableFilter#linkFilters", "access": null, "description": "Refresh the filters subject to linking ('select', 'multiple',\n'checklist' type)", - "lineNumber": 2631, + "lineNumber": 2658, "params": [], "generator": false }, { - "__docId__": 1015, + "__docId__": 1040, "kind": "method", "static": false, "variation": null, @@ -21568,7 +22406,7 @@ "longname": "src/tablefilter.js~TableFilter#isExactMatch", "access": null, "description": "Determines if passed filter column implements exact query match", - "lineNumber": 2682, + "lineNumber": 2709, "params": [ { "nullable": null, @@ -21592,7 +22430,7 @@ "generator": false }, { - "__docId__": 1016, + "__docId__": 1041, "kind": "method", "static": false, "variation": null, @@ -21601,7 +22439,7 @@ "longname": "src/tablefilter.js~TableFilter#isRowValid", "access": null, "description": "Checks if passed row is valid", - "lineNumber": 2693, + "lineNumber": 2720, "unknown": [ { "tagName": "@returns", @@ -21631,7 +22469,7 @@ "generator": false }, { - "__docId__": 1017, + "__docId__": 1042, "kind": "method", "static": false, "variation": null, @@ -21640,7 +22478,7 @@ "longname": "src/tablefilter.js~TableFilter#isRowDisplayed", "access": null, "description": "Checks if passed row is visible", - "lineNumber": 2702, + "lineNumber": 2729, "unknown": [ { "tagName": "@returns", @@ -21670,7 +22508,7 @@ "generator": false }, { - "__docId__": 1018, + "__docId__": 1043, "kind": "method", "static": false, "variation": null, @@ -21679,7 +22517,7 @@ "longname": "src/tablefilter.js~TableFilter#ignoresDiacritics", "access": null, "description": "Checks if specified column filter ignores diacritics.\nNote this is only valid for input filter types.", - "lineNumber": 2713, + "lineNumber": 2740, "unknown": [ { "tagName": "@returns", @@ -21709,7 +22547,7 @@ "generator": false }, { - "__docId__": 1019, + "__docId__": 1044, "kind": "method", "static": false, "variation": null, @@ -21718,7 +22556,7 @@ "longname": "src/tablefilter.js~TableFilter#getClearFilterText", "access": null, "description": "Returns clear all text for specified filter column", - "lineNumber": 2726, + "lineNumber": 2753, "unknown": [ { "tagName": "@returns", @@ -21748,7 +22586,7 @@ "generator": false }, { - "__docId__": 1020, + "__docId__": 1045, "kind": "method", "static": false, "variation": null, @@ -21757,7 +22595,7 @@ "longname": "src/tablefilter.js~TableFilter#isImported", "access": null, "description": "Check if passed script or stylesheet is already imported", - "lineNumber": 2740, + "lineNumber": 2767, "params": [ { "nullable": null, @@ -21791,7 +22629,7 @@ "generator": false }, { - "__docId__": 1021, + "__docId__": 1046, "kind": "method", "static": false, "variation": null, @@ -21800,7 +22638,7 @@ "longname": "src/tablefilter.js~TableFilter#import", "access": null, "description": "Import script or stylesheet", - "lineNumber": 2763, + "lineNumber": 2790, "params": [ { "nullable": null, @@ -21846,7 +22684,7 @@ "generator": false }, { - "__docId__": 1022, + "__docId__": 1047, "kind": "method", "static": false, "variation": null, @@ -21855,7 +22693,7 @@ "longname": "src/tablefilter.js~TableFilter#isInitialized", "access": null, "description": "Check if table has filters grid", - "lineNumber": 2805, + "lineNumber": 2832, "params": [], "return": { "nullable": null, @@ -21868,7 +22706,7 @@ "generator": false }, { - "__docId__": 1023, + "__docId__": 1048, "kind": "method", "static": false, "variation": null, @@ -21877,7 +22715,7 @@ "longname": "src/tablefilter.js~TableFilter#getFiltersId", "access": null, "description": "Get list of filter IDs", - "lineNumber": 2813, + "lineNumber": 2840, "params": [], "return": { "nullable": null, @@ -21890,7 +22728,7 @@ "generator": false }, { - "__docId__": 1024, + "__docId__": 1049, "kind": "method", "static": false, "variation": null, @@ -21899,7 +22737,7 @@ "longname": "src/tablefilter.js~TableFilter#getValidRows", "access": null, "description": "Get filtered (valid) rows indexes", - "lineNumber": 2822, + "lineNumber": 2849, "params": [ { "nullable": null, @@ -21923,7 +22761,7 @@ "generator": false }, { - "__docId__": 1025, + "__docId__": 1050, "kind": "member", "static": false, "variation": null, @@ -21932,7 +22770,7 @@ "longname": "src/tablefilter.js~TableFilter#validRowsIndex", "access": null, "description": null, - "lineNumber": 2828, + "lineNumber": 2855, "undocument": true, "type": { "types": [ @@ -21941,7 +22779,7 @@ } }, { - "__docId__": 1026, + "__docId__": 1051, "kind": "method", "static": false, "variation": null, @@ -21950,7 +22788,7 @@ "longname": "src/tablefilter.js~TableFilter#getFiltersRowIndex", "access": null, "description": "Get the index of the row containing the filters", - "lineNumber": 2849, + "lineNumber": 2876, "params": [], "return": { "nullable": null, @@ -21963,7 +22801,7 @@ "generator": false }, { - "__docId__": 1027, + "__docId__": 1052, "kind": "method", "static": false, "variation": null, @@ -21972,7 +22810,7 @@ "longname": "src/tablefilter.js~TableFilter#getHeadersRowIndex", "access": null, "description": "Get the index of the headers row", - "lineNumber": 2857, + "lineNumber": 2884, "params": [], "return": { "nullable": null, @@ -21985,7 +22823,7 @@ "generator": false }, { - "__docId__": 1028, + "__docId__": 1053, "kind": "method", "static": false, "variation": null, @@ -21994,7 +22832,7 @@ "longname": "src/tablefilter.js~TableFilter#getStartRowIndex", "access": null, "description": "Get the row index from where the filtering process start (1st filterable\nrow)", - "lineNumber": 2866, + "lineNumber": 2893, "params": [], "return": { "nullable": null, @@ -22007,7 +22845,7 @@ "generator": false }, { - "__docId__": 1029, + "__docId__": 1054, "kind": "method", "static": false, "variation": null, @@ -22016,7 +22854,7 @@ "longname": "src/tablefilter.js~TableFilter#getLastRowIndex", "access": null, "description": "Get the index of the last row", - "lineNumber": 2874, + "lineNumber": 2901, "params": [], "return": { "nullable": null, @@ -22029,7 +22867,7 @@ "generator": false }, { - "__docId__": 1030, + "__docId__": 1055, "kind": "method", "static": false, "variation": null, @@ -22038,7 +22876,7 @@ "longname": "src/tablefilter.js~TableFilter#hasType", "access": null, "description": "Determine whether the specified column has one of the passed types", - "lineNumber": 2885, + "lineNumber": 2912, "unknown": [ { "tagName": "@returns", @@ -22080,7 +22918,7 @@ "generator": false }, { - "__docId__": 1031, + "__docId__": 1056, "kind": "method", "static": false, "variation": null, @@ -22089,7 +22927,7 @@ "longname": "src/tablefilter.js~TableFilter#getHeaderElement", "access": null, "description": "Get the header DOM element for a given column index", - "lineNumber": 2901, + "lineNumber": 2928, "params": [ { "nullable": null, @@ -22113,7 +22951,7 @@ "generator": false }, { - "__docId__": 1032, + "__docId__": 1057, "kind": "method", "static": false, "variation": null, @@ -22122,7 +22960,7 @@ "longname": "src/tablefilter.js~TableFilter#getHeadersText", "access": null, "description": "Return the list of headers' text", - "lineNumber": 2926, + "lineNumber": 2953, "params": [ { "nullable": null, @@ -22146,7 +22984,7 @@ "generator": false }, { - "__docId__": 1033, + "__docId__": 1058, "kind": "method", "static": false, "variation": null, @@ -22155,7 +22993,7 @@ "longname": "src/tablefilter.js~TableFilter#getFilterType", "access": null, "description": "Return the filter type for a specified column", - "lineNumber": 2946, + "lineNumber": 2973, "params": [ { "nullable": null, @@ -22179,7 +23017,7 @@ "generator": false }, { - "__docId__": 1034, + "__docId__": 1059, "kind": "method", "static": false, "variation": null, @@ -22188,7 +23026,7 @@ "longname": "src/tablefilter.js~TableFilter#getFilterableRowsNb", "access": null, "description": "Get the total number of filterable rows", - "lineNumber": 2955, + "lineNumber": 2982, "params": [], "return": { "nullable": null, @@ -22201,7 +23039,7 @@ "generator": false }, { - "__docId__": 1035, + "__docId__": 1060, "kind": "method", "static": false, "variation": null, @@ -22210,7 +23048,7 @@ "longname": "src/tablefilter.js~TableFilter#getValidRowsNb", "access": null, "description": "Return the total number of valid rows", - "lineNumber": 2964, + "lineNumber": 2991, "unknown": [ { "tagName": "@returns", @@ -22242,7 +23080,7 @@ "generator": false }, { - "__docId__": 1036, + "__docId__": 1061, "kind": "method", "static": false, "variation": null, @@ -22251,7 +23089,7 @@ "longname": "src/tablefilter.js~TableFilter#config", "access": null, "description": "Get the configuration object (literal object)", - "lineNumber": 2972, + "lineNumber": 2999, "params": [], "return": { "nullable": null, @@ -22264,7 +23102,7 @@ "generator": false }, { - "__docId__": 1037, + "__docId__": 1062, "kind": "file", "static": true, "variation": null, @@ -22274,10 +23112,10 @@ "access": null, "description": null, "lineNumber": 6, - "content": "\n/**\n * Types utilities\n */\n\nconst UNDEFINED = void 0;\n\n/**\n * Return an empty function\n * @return {Function}\n */\nexport const EMPTY_FN = function() {};\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" + "content": "\n/**\n * Types utilities\n */\n\nconst UNDEFINED = void 0;\n\n/**\n * Return an empty function\n * @return {Function}\n */\nexport const EMPTY_FN = function() {};\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__": 1038, + "__docId__": 1063, "kind": "variable", "static": true, "variation": null, @@ -22297,7 +23135,7 @@ } }, { - "__docId__": 1039, + "__docId__": 1064, "kind": "function", "static": true, "variation": null, @@ -22322,7 +23160,7 @@ "generator": false }, { - "__docId__": 1040, + "__docId__": 1065, "kind": "variable", "static": true, "variation": null, @@ -22362,7 +23200,7 @@ } }, { - "__docId__": 1041, + "__docId__": 1066, "kind": "variable", "static": true, "variation": null, @@ -22402,7 +23240,7 @@ } }, { - "__docId__": 1042, + "__docId__": 1067, "kind": "variable", "static": true, "variation": null, @@ -22442,7 +23280,7 @@ } }, { - "__docId__": 1043, + "__docId__": 1068, "kind": "variable", "static": true, "variation": null, @@ -22488,7 +23326,7 @@ } }, { - "__docId__": 1044, + "__docId__": 1069, "kind": "variable", "static": true, "variation": null, @@ -22534,7 +23372,7 @@ } }, { - "__docId__": 1045, + "__docId__": 1070, "kind": "variable", "static": true, "variation": null, @@ -22574,7 +23412,7 @@ } }, { - "__docId__": 1046, + "__docId__": 1071, "kind": "variable", "static": true, "variation": null, @@ -22614,7 +23452,7 @@ } }, { - "__docId__": 1047, + "__docId__": 1072, "kind": "variable", "static": true, "variation": null, @@ -22654,7 +23492,7 @@ } }, { - "__docId__": 1049, + "__docId__": 1074, "kind": "external", "static": true, "variation": null, @@ -22667,7 +23505,7 @@ "builtinExternal": true }, { - "__docId__": 1050, + "__docId__": 1075, "kind": "external", "static": true, "variation": null, @@ -22680,7 +23518,7 @@ "builtinExternal": true }, { - "__docId__": 1051, + "__docId__": 1076, "kind": "external", "static": true, "variation": null, @@ -22693,7 +23531,7 @@ "builtinExternal": true }, { - "__docId__": 1052, + "__docId__": 1077, "kind": "external", "static": true, "variation": null, @@ -22706,7 +23544,7 @@ "builtinExternal": true }, { - "__docId__": 1053, + "__docId__": 1078, "kind": "external", "static": true, "variation": null, @@ -22719,7 +23557,7 @@ "builtinExternal": true }, { - "__docId__": 1054, + "__docId__": 1079, "kind": "external", "static": true, "variation": null, @@ -22732,7 +23570,7 @@ "builtinExternal": true }, { - "__docId__": 1055, + "__docId__": 1080, "kind": "external", "static": true, "variation": null, @@ -22745,7 +23583,7 @@ "builtinExternal": true }, { - "__docId__": 1056, + "__docId__": 1081, "kind": "external", "static": true, "variation": null, @@ -22758,7 +23596,7 @@ "builtinExternal": true }, { - "__docId__": 1057, + "__docId__": 1082, "kind": "external", "static": true, "variation": null, @@ -22771,7 +23609,7 @@ "builtinExternal": true }, { - "__docId__": 1058, + "__docId__": 1083, "kind": "external", "static": true, "variation": null, @@ -22784,7 +23622,7 @@ "builtinExternal": true }, { - "__docId__": 1059, + "__docId__": 1084, "kind": "external", "static": true, "variation": null, @@ -22797,7 +23635,7 @@ "builtinExternal": true }, { - "__docId__": 1060, + "__docId__": 1085, "kind": "external", "static": true, "variation": null, @@ -22810,7 +23648,7 @@ "builtinExternal": true }, { - "__docId__": 1061, + "__docId__": 1086, "kind": "external", "static": true, "variation": null, @@ -22823,7 +23661,7 @@ "builtinExternal": true }, { - "__docId__": 1062, + "__docId__": 1087, "kind": "external", "static": true, "variation": null, @@ -22836,7 +23674,7 @@ "builtinExternal": true }, { - "__docId__": 1063, + "__docId__": 1088, "kind": "external", "static": true, "variation": null, @@ -22849,7 +23687,7 @@ "builtinExternal": true }, { - "__docId__": 1064, + "__docId__": 1089, "kind": "external", "static": true, "variation": null, @@ -22862,7 +23700,7 @@ "builtinExternal": true }, { - "__docId__": 1065, + "__docId__": 1090, "kind": "external", "static": true, "variation": null, @@ -22875,7 +23713,7 @@ "builtinExternal": true }, { - "__docId__": 1066, + "__docId__": 1091, "kind": "external", "static": true, "variation": null, @@ -22888,7 +23726,7 @@ "builtinExternal": true }, { - "__docId__": 1067, + "__docId__": 1092, "kind": "external", "static": true, "variation": null, @@ -22901,7 +23739,7 @@ "builtinExternal": true }, { - "__docId__": 1068, + "__docId__": 1093, "kind": "external", "static": true, "variation": null, @@ -22914,7 +23752,7 @@ "builtinExternal": true }, { - "__docId__": 1069, + "__docId__": 1094, "kind": "external", "static": true, "variation": null, @@ -22927,7 +23765,7 @@ "builtinExternal": true }, { - "__docId__": 1070, + "__docId__": 1095, "kind": "external", "static": true, "variation": null, @@ -22940,7 +23778,7 @@ "builtinExternal": true }, { - "__docId__": 1071, + "__docId__": 1096, "kind": "external", "static": true, "variation": null, @@ -22953,7 +23791,7 @@ "builtinExternal": true }, { - "__docId__": 1072, + "__docId__": 1097, "kind": "external", "static": true, "variation": null, @@ -22966,7 +23804,7 @@ "builtinExternal": true }, { - "__docId__": 1073, + "__docId__": 1098, "kind": "external", "static": true, "variation": null, @@ -22979,7 +23817,7 @@ "builtinExternal": true }, { - "__docId__": 1074, + "__docId__": 1099, "kind": "external", "static": true, "variation": null, @@ -22992,7 +23830,7 @@ "builtinExternal": true }, { - "__docId__": 1075, + "__docId__": 1100, "kind": "external", "static": true, "variation": null, @@ -23005,7 +23843,7 @@ "builtinExternal": true }, { - "__docId__": 1076, + "__docId__": 1101, "kind": "external", "static": true, "variation": null, @@ -23018,7 +23856,7 @@ "builtinExternal": true }, { - "__docId__": 1077, + "__docId__": 1102, "kind": "external", "static": true, "variation": null, @@ -23031,7 +23869,7 @@ "builtinExternal": true }, { - "__docId__": 1078, + "__docId__": 1103, "kind": "external", "static": true, "variation": null, @@ -23044,7 +23882,7 @@ "builtinExternal": true }, { - "__docId__": 1079, + "__docId__": 1104, "kind": "external", "static": true, "variation": null, @@ -23057,7 +23895,7 @@ "builtinExternal": true }, { - "__docId__": 1080, + "__docId__": 1105, "kind": "external", "static": true, "variation": null, @@ -23070,7 +23908,7 @@ "builtinExternal": true }, { - "__docId__": 1081, + "__docId__": 1106, "kind": "external", "static": true, "variation": null, @@ -23083,7 +23921,7 @@ "builtinExternal": true }, { - "__docId__": 1082, + "__docId__": 1107, "kind": "external", "static": true, "variation": null, @@ -23096,7 +23934,7 @@ "builtinExternal": true }, { - "__docId__": 1083, + "__docId__": 1108, "kind": "external", "static": true, "variation": null, @@ -23109,7 +23947,7 @@ "builtinExternal": true }, { - "__docId__": 1084, + "__docId__": 1109, "kind": "external", "static": true, "variation": null, @@ -23122,7 +23960,7 @@ "builtinExternal": true }, { - "__docId__": 1085, + "__docId__": 1110, "kind": "external", "static": true, "variation": null, @@ -23135,7 +23973,7 @@ "builtinExternal": true }, { - "__docId__": 1086, + "__docId__": 1111, "kind": "external", "static": true, "variation": null, @@ -23148,7 +23986,7 @@ "builtinExternal": true }, { - "__docId__": 1087, + "__docId__": 1112, "kind": "external", "static": true, "variation": null, @@ -23161,7 +23999,7 @@ "builtinExternal": true }, { - "__docId__": 1088, + "__docId__": 1113, "kind": "external", "static": true, "variation": null, @@ -23174,7 +24012,7 @@ "builtinExternal": true }, { - "__docId__": 1089, + "__docId__": 1114, "kind": "external", "static": true, "variation": null, @@ -23187,7 +24025,7 @@ "builtinExternal": true }, { - "__docId__": 1090, + "__docId__": 1115, "kind": "external", "static": true, "variation": null, @@ -23200,7 +24038,7 @@ "builtinExternal": true }, { - "__docId__": 1091, + "__docId__": 1116, "kind": "external", "static": true, "variation": null, @@ -23213,7 +24051,7 @@ "builtinExternal": true }, { - "__docId__": 1092, + "__docId__": 1117, "kind": "external", "static": true, "variation": null, @@ -23226,7 +24064,7 @@ "builtinExternal": true }, { - "__docId__": 1093, + "__docId__": 1118, "kind": "external", "static": true, "variation": null, @@ -23239,7 +24077,7 @@ "builtinExternal": true }, { - "__docId__": 1094, + "__docId__": 1119, "kind": "external", "static": true, "variation": null, @@ -23252,7 +24090,7 @@ "builtinExternal": true }, { - "__docId__": 1095, + "__docId__": 1120, "kind": "external", "static": true, "variation": null, @@ -23265,7 +24103,7 @@ "builtinExternal": true }, { - "__docId__": 1097, + "__docId__": 1122, "kind": "external", "static": true, "variation": null, @@ -23278,7 +24116,7 @@ "builtinExternal": true }, { - "__docId__": 1098, + "__docId__": 1123, "kind": "external", "static": true, "variation": null, @@ -23291,7 +24129,7 @@ "builtinExternal": true }, { - "__docId__": 1099, + "__docId__": 1124, "kind": "external", "static": true, "variation": null, @@ -23304,7 +24142,7 @@ "builtinExternal": true }, { - "__docId__": 1100, + "__docId__": 1125, "kind": "external", "static": true, "variation": null, @@ -23317,7 +24155,7 @@ "builtinExternal": true }, { - "__docId__": 1101, + "__docId__": 1126, "kind": "external", "static": true, "variation": null, @@ -23330,7 +24168,7 @@ "builtinExternal": true }, { - "__docId__": 1102, + "__docId__": 1127, "kind": "external", "static": true, "variation": null, @@ -23343,7 +24181,7 @@ "builtinExternal": true }, { - "__docId__": 1103, + "__docId__": 1128, "kind": "external", "static": true, "variation": null, @@ -23356,7 +24194,7 @@ "builtinExternal": true }, { - "__docId__": 1104, + "__docId__": 1129, "kind": "external", "static": true, "variation": null, diff --git a/docs/file/src/array.js.html b/docs/file/src/array.js.html index fbd6cdc1..f0558a27 100644 --- a/docs/file/src/array.js.html +++ b/docs/file/src/array.js.html @@ -3,7 +3,7 @@ - src/array.js | tablefilter v0.4.33 API Document + src/array.js | tablefilter v0.4.34 API Document diff --git a/docs/file/src/const.js.html b/docs/file/src/const.js.html index e80adb10..baee0275 100644 --- a/docs/file/src/const.js.html +++ b/docs/file/src/const.js.html @@ -3,7 +3,7 @@ - src/const.js | tablefilter v0.4.33 API Document + src/const.js | tablefilter v0.4.34 API Document diff --git a/docs/file/src/cookie.js.html b/docs/file/src/cookie.js.html index e89949b6..2f09d6a2 100644 --- a/docs/file/src/cookie.js.html +++ b/docs/file/src/cookie.js.html @@ -3,7 +3,7 @@ - src/cookie.js | tablefilter v0.4.33 API Document + src/cookie.js | tablefilter v0.4.34 API Document diff --git a/docs/file/src/dom.js.html b/docs/file/src/dom.js.html index 99baf198..be529d81 100644 --- a/docs/file/src/dom.js.html +++ b/docs/file/src/dom.js.html @@ -3,7 +3,7 @@ - src/dom.js | tablefilter v0.4.33 API Document + src/dom.js | tablefilter v0.4.34 API Document diff --git a/docs/file/src/emitter.js.html b/docs/file/src/emitter.js.html index 32121039..8aacf026 100644 --- a/docs/file/src/emitter.js.html +++ b/docs/file/src/emitter.js.html @@ -3,7 +3,7 @@ - src/emitter.js | tablefilter v0.4.33 API Document + src/emitter.js | tablefilter v0.4.34 API Document diff --git a/docs/file/src/event.js.html b/docs/file/src/event.js.html index 7e854fbb..6408a6ff 100644 --- a/docs/file/src/event.js.html +++ b/docs/file/src/event.js.html @@ -3,7 +3,7 @@ - src/event.js | tablefilter v0.4.33 API Document + src/event.js | tablefilter v0.4.34 API Document diff --git a/docs/file/src/extensions/advancedGrid/adapterEzEditTable.js.html b/docs/file/src/extensions/advancedGrid/adapterEzEditTable.js.html index 93d70452..a4cefd8f 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.4.33 API Document + src/extensions/advancedGrid/adapterEzEditTable.js | tablefilter v0.4.34 API Document diff --git a/docs/file/src/extensions/advancedGrid/advancedGrid.js.html b/docs/file/src/extensions/advancedGrid/advancedGrid.js.html index 56d0b118..b484acd4 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.4.33 API Document + src/extensions/advancedGrid/advancedGrid.js | tablefilter v0.4.34 API Document diff --git a/docs/file/src/extensions/colOps/colOps.js.html b/docs/file/src/extensions/colOps/colOps.js.html index 51c85893..d3d7c944 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.4.33 API Document + src/extensions/colOps/colOps.js | tablefilter v0.4.34 API Document @@ -122,7 +122,8 @@

src/extensions/colOps/colOps.js

import {Feature} from '../../feature';
 import {createText, elm} from '../../dom';
-import {isArray, isFn, isUndef, EMPTY_FN} from '../../types';
+import {isArray, isFn, isUndef, isEmpty, EMPTY_FN} from '../../types';
+import {numSortAsc} from '../../sort';
 
 const EVENTS = [
     'after-filtering',
@@ -130,6 +131,14 @@ const EVENTS = [
     'after-page-length-change'
 ];
 
+const SUM = 'sum';
+const MEAN = 'mean';
+const MIN = 'min';
+const MAX = 'max';
+const MEDIAN = 'median';
+const Q1 = 'q1';
+const Q3 = 'q3';
+
 /**
  * Column calculations extension
  */
@@ -164,6 +173,51 @@ export default class ColOps extends Feature {
          */
         this.opts = opts;
 
+        /**
+         * List of DOM element IDs containing column's calculation result
+         * @type {Array}
+         */
+        this.labelIds = opts.id || [];
+
+        /**
+         * List of columns' indexes for calculations
+         * @type {Array}
+         */
+        this.colIndexes = opts.col || [];
+
+        /**
+         * List of operations - possible values: 'sum', 'mean', 'min', 'max',
+         * 'median', 'q1', 'q3'
+         * @type {Array}
+         */
+        this.operations = opts.operation || [];
+
+        /**
+         * List of write methods used to write the result - possible values:
+         * 'innerHTML', 'setValue', 'createTextNode'
+         * @type {Array}
+         */
+        this.outputTypes = opts.write_method || [];
+
+        /**
+         * List of row indexes displaying the results
+         * @type {Array}
+         */
+        this.totRowIndexes = opts.tot_row_index || [];
+
+        /**
+         * List of row indexes excluded from calculations
+         * @type {Array}
+         */
+        this.excludeRows = opts.exclude_row || [];
+
+        /**
+         * List of decimal precision for calculation results
+         * @type {Array}
+         */
+        this.decimalPrecisions = isUndef(opts.decimal_precision) ?
+                2 : opts.decimal_precision;
+
         this.enable();
     }
 
@@ -175,13 +229,11 @@ export default class ColOps extends Feature {
             return;
         }
         // subscribe to events
-        this.emitter.on(EVENTS, () => this.calc());
+        this.emitter.on(EVENTS, () => this.calcAll());
 
-        this.calc();
+        this.calcAll();
 
-        /**
-         * @inherited
-         */
+        /** @inherited */
         this.initialized = true;
     }
 
@@ -201,7 +253,7 @@ export default class ColOps extends Feature {
      * (1) optimized the routine (now it will only process each column once),
      * (2) added calculations for the median, lower and upper quartile.
      */
-    calc() {
+    calcAll() {
         let tf = this.tf;
         if (!tf.isInitialized()) {
             return;
@@ -210,277 +262,307 @@ export default class ColOps extends Feature {
         this.onBeforeOperation(tf, this);
         this.emitter.emit('before-column-operation', tf, this);
 
-        let opts = this.opts,
-            labelId = opts.id,
-            colIndex = opts.col,
-            operation = opts.operation,
-            outputType = opts.write_method,
-            totRowIndex = opts.tot_row_index,
-            excludeRow = opts.exclude_row,
-            decimalPrecision = isUndef(opts.decimal_precision) ?
-                2 : opts.decimal_precision;
+        let colIndexes = this.colIndexes,
+            colOperations = this.operations,
+            outputTypes = this.outputTypes,
+            totRowIndexes = this.totRowIndexes,
+            excludeRows = this.excludeRows,
+            decimalPrecisions = isUndef(this.decimalPrecisions) ?
+                2 : this.decimalPrecisions;
 
         //nuovella: determine unique list of columns to operate on
-        let ucolIndex = [],
-            ucolMax = 0;
-        ucolIndex[ucolMax] = colIndex[0];
+        let uIndexes = [];
+        colIndexes.forEach((val) => {
+            if (uIndexes.indexOf(val) === -1) {
+                uIndexes.push(val);
+            }
+        });
 
-        for (let ii = 1; ii < colIndex.length; ii++) {
-            let saved = 0;
-            //see if colIndex[ii] is already in the list of unique indexes
-            for (let jj = 0; jj <= ucolMax; jj++) {
-                if (ucolIndex[jj] === colIndex[ii]) {
-                    saved = 1;
+        let nbCols = uIndexes.length - 1,
+            rows = tf.tbl.rows,
+            colValues = [];
+
+        for (let u = 0; u <= nbCols; u++) {
+            //this retrieves col values
+            //use uIndexes because we only want to pass through this loop
+            //once for each column get the values in this unique column
+            colValues.push(
+                tf.getFilteredDataCol(uIndexes[u], false, true, excludeRows)
+            );
+
+            let curValues = colValues[u];
+
+            //next: calculate all operations for this column
+            let result = 0,
+                operations = [],
+                precisions = [],
+                labels = [],
+                writeType,
+                idx = 0;
+
+            for (let k = 0; k < colIndexes.length; k++) {
+                if (colIndexes[k] !== uIndexes[u]) {
+                    continue;
                 }
+                operations[idx] = colOperations[k].toLowerCase();
+                precisions[idx] = decimalPrecisions[k];
+                labels[idx] = this.labelIds[k];
+                writeType = isArray(outputTypes) ? outputTypes[k] : null;
+                idx++;
             }
-            //if not saved then, save the index;
-            if (saved === 0) {
-                ucolMax++;
-                ucolIndex[ucolMax] = colIndex[ii];
-            }
-        }
 
-        if (isArray(labelId) && isArray(colIndex) && isArray(operation)) {
-            let rows = tf.tbl.rows,
-                colvalues = [],
-                ucol = 0;
-
-            for (; ucol <= ucolMax; ucol++) {
-                //this retrieves col values
-                //use ucolIndex because we only want to pass through this loop
-                //once for each column get the values in this unique column
-                colvalues.push(
-                    tf.getColValues(ucolIndex[ucol], false, true, excludeRow)
+            for (let i = 0; i <= idx; i++) {
+                // emit values before column calculation
+                this.emitter.emit(
+                    'before-column-calc',
+                    tf,
+                    this,
+                    uIndexes[u],
+                    curValues,
+                    operations[i],
+                    precisions[i]
                 );
 
-                //next: calculate all operations for this column
-                let result,
-                    nbvalues = 0,
-                    temp,
-                    meanValue = 0,
-                    sumValue = 0,
-                    minValue = null,
-                    maxValue = null,
-                    q1Value = null,
-                    medValue = null,
-                    q3Value = null,
-                    meanFlag = 0,
-                    sumFlag = 0,
-                    minFlag = 0,
-                    maxFlag = 0,
-                    q1Flag = 0,
-                    medFlag = 0,
-                    q3Flag = 0,
-                    theList = [],
-                    opsThisCol = [],
-                    decThisCol = [],
-                    labThisCol = [],
-                    oTypeThisCol = [],
-                    mThisCol = -1,
-                    k = 0,
-                    j = 0,
-                    i = 0;
+                result = Number(this.calc(curValues, operations[i], null));
 
-                for (; k < colIndex.length; k++) {
-                    if (colIndex[k] === ucolIndex[ucol]) {
-                        mThisCol++;
-                        opsThisCol[mThisCol] = operation[k].toLowerCase();
-                        decThisCol[mThisCol] = decimalPrecision[k];
-                        labThisCol[mThisCol] = labelId[k];
-                        oTypeThisCol = isArray(outputType) ?
-                            outputType[k] : null;
+                // emit column calculation result
+                this.emitter.emit(
+                    'column-calc',
+                    tf,
+                    this,
+                    uIndexes[u],
+                    result,
+                    operations[i],
+                    precisions[i]
+                );
 
-                        switch (opsThisCol[mThisCol]) {
-                            case 'mean':
-                                meanFlag = 1;
-                                break;
-                            case 'sum':
-                                sumFlag = 1;
-                                break;
-                            case 'min':
-                                minFlag = 1;
-                                break;
-                            case 'max':
-                                maxFlag = 1;
-                                break;
-                            case 'median':
-                                medFlag = 1;
-                                break;
-                            case 'q1':
-                                q1Flag = 1;
-                                break;
-                            case 'q3':
-                                q3Flag = 1;
-                                break;
-                        }
-                    }
-                }
+                // write result in expected DOM element
+                this.writeResult(
+                    result,
+                    labels[i],
+                    writeType,
+                    precisions[i]
+                );
 
-                for (; j < colvalues[ucol].length; j++) {
-                    //sort the list for calculation of median and quartiles
-                    if ((q1Flag === 1) || (q3Flag === 1) || (medFlag === 1)) {
-                        if (j < colvalues[ucol].length - 1) {
-                            for (k = j + 1; k < colvalues[ucol].length; k++) {
-                                /* eslint-disable */
-                                if (eval(colvalues[ucol][k]) <
-                                    eval(colvalues[ucol][j])) {
-                                    /* eslint-enable */
-                                    temp = colvalues[ucol][j];
-                                    colvalues[ucol][j] = colvalues[ucol][k];
-                                    colvalues[ucol][k] = temp;
-                                }
-                            }
-                        }
-                    }
-                    let cvalue = parseFloat(colvalues[ucol][j]);
-                    theList[j] = parseFloat(cvalue);
+            }//for i
 
-                    if (!isNaN(cvalue)) {
-                        nbvalues++;
-                        if (sumFlag === 1 || meanFlag === 1) {
-                            sumValue += parseFloat(cvalue);
-                        }
-                        if (minFlag === 1) {
-                            if (minValue === null) {
-                                minValue = parseFloat(cvalue);
-                            } else {
-                                minValue = parseFloat(cvalue) < minValue ?
-                                    parseFloat(cvalue) : minValue;
-                            }
-                        }
-                        if (maxFlag === 1) {
-                            if (maxValue === null) {
-                                maxValue = parseFloat(cvalue);
-                            } else {
-                                maxValue = parseFloat(cvalue) > maxValue ?
-                                    parseFloat(cvalue) : maxValue;
-                            }
-                        }
-                    }
-                }//for j
-                if (meanFlag === 1) {
-                    meanValue = sumValue / nbvalues;
-                }
-                if (medFlag === 1) {
-                    let aux = 0;
-                    if (nbvalues % 2 === 1) {
-                        aux = Math.floor(nbvalues / 2);
-                        medValue = theList[aux];
-                    } else {
-                        medValue = (theList[nbvalues / 2] +
-                            theList[((nbvalues / 2) - 1)]) / 2;
-                    }
-                }
-                let posa;
-                if (q1Flag === 1) {
-                    posa = 0.0;
-                    posa = Math.floor(nbvalues / 4);
-                    if (4 * posa === nbvalues) {
-                        q1Value = (theList[posa - 1] + theList[posa]) / 2;
-                    } else {
-                        q1Value = theList[posa];
-                    }
-                }
-                if (q3Flag === 1) {
-                    posa = 0.0;
-                    let posb = 0.0;
-                    posa = Math.floor(nbvalues / 4);
-                    if (4 * posa === nbvalues) {
-                        posb = 3 * posa;
-                        q3Value = (theList[posb] + theList[posb - 1]) / 2;
-                    } else {
-                        q3Value = theList[nbvalues - posa - 1];
-                    }
-                }
-
-                for (; i <= mThisCol; i++) {
-                    switch (opsThisCol[i]) {
-                        case 'mean':
-                            result = meanValue;
-                            break;
-                        case 'sum':
-                            result = sumValue;
-                            break;
-                        case 'min':
-                            result = minValue;
-                            break;
-                        case 'max':
-                            result = maxValue;
-                            break;
-                        case 'median':
-                            result = medValue;
-                            break;
-                        case 'q1':
-                            result = q1Value;
-                            break;
-                        case 'q3':
-                            result = q3Value;
-                            break;
-                    }
-
-                    let precision = !isNaN(decThisCol[i]) ? decThisCol[i] : 2;
-
-                    //if outputType is defined
-                    if (oTypeThisCol && result) {
-                        result = result.toFixed(precision);
-
-                        if (elm(labThisCol[i])) {
-                            switch (oTypeThisCol.toLowerCase()) {
-                                case 'innerhtml':
-                                    if (isNaN(result) || !isFinite(result) ||
-                                        nbvalues === 0) {
-                                        elm(labThisCol[i]).innerHTML = '.';
-                                    } else {
-                                        elm(labThisCol[i]).innerHTML = result;
-                                    }
-                                    break;
-                                case 'setvalue':
-                                    elm(labThisCol[i]).value = result;
-                                    break;
-                                case 'createtextnode':
-                                    let oldnode =
-                                        elm(labThisCol[i]).firstChild;
-                                    let txtnode = createText(result);
-                                    elm(labThisCol[i])
-                                        .replaceChild(txtnode, oldnode);
-                                    break;
-                            }//switch
-                        }
-                    } else {
-                        try {
-                            if (isNaN(result) || !isFinite(result) ||
-                                nbvalues === 0) {
-                                elm(labThisCol[i]).innerHTML = '.';
-                            } else {
-                                elm(labThisCol[i]).innerHTML =
-                                    result.toFixed(precision);
-                            }
-                        } catch (e) { }//catch
-                    }//else
-                }//for i
-
-                // row(s) with result are always visible
-                let totRow = totRowIndex && totRowIndex[ucol] ?
-                    rows[totRowIndex[ucol]] : null;
-                if (totRow) {
-                    totRow.style.display = '';
-                }
-            }//for ucol
-        }//if typeof
+            // row(s) with result are always visible
+            let totRow = totRowIndexes && totRowIndexes[u] ?
+                rows[totRowIndexes[u]] : null;
+            if (totRow) {
+                totRow.style.display = '';
+            }
+        }//for u
 
         this.onAfterOperation(tf, this);
         this.emitter.emit('after-column-operation', tf, this);
     }
 
     /**
-     * Remove extension
+     * Make desired calculation on specified column.
+     * @param {Number} colIndex Column index
+     * @param {any} [operation=SUM] Operation type
+     * @param {any} precision Decimal precision
+     * @returns {Number}
      */
+    columnCalc(colIndex, operation = SUM, precision) {
+        let excludeRows = this.excludeRows || [];
+        let colValues =
+            this.tf.getFilteredDataCol(colIndex, false, true, excludeRows);
+
+        return this.calc(colValues, operation, precision);
+    }
+
+    /**
+     * Make calculation on passed values.
+     * @param {Array} values List of values
+     * @param {String} [operation=SUM] Optional operation type
+     * @param {Number} precision Optional result precision
+     * @returns {Number}
+     * @private
+     */
+    calc(colValues, operation = SUM, precision) {
+        let result = 0;
+
+        if (operation === Q1 || operation === Q3 || operation === MEDIAN) {
+            colValues = this.sortColumnValues(colValues, numSortAsc);
+        }
+
+        switch (operation) {
+            case MEAN:
+                result = this.calcMean(colValues);
+                break;
+            case SUM:
+                result = this.calcSum(colValues);
+                break;
+            case MIN:
+                result = this.calcMin(colValues);
+                break;
+            case MAX:
+                result = this.calcMax(colValues);
+                break;
+            case MEDIAN:
+                result = this.calcMedian(colValues);
+                break;
+            case Q1:
+                result = this.calcQ1(colValues);
+                break;
+            case Q3:
+                result = this.calcQ3(colValues);
+                break;
+        }
+
+        return isEmpty(precision) ? result : result.toFixed(precision);
+    }
+
+    /**
+     * Calculate the sum of passed values.
+     * @param {Array} [values=[]] List of values
+     * @returns {Number}
+     */
+    calcSum(values = []) {
+        if (isEmpty(values)) {
+            return 0;
+        }
+        let result = values.reduce((x, y) => x + y);
+        return Number(result);
+    }
+
+    /**
+     * Calculate the mean of passed values.
+     * @param {Array} [values=[]] List of values
+     * @returns {Number}
+     */
+    calcMean(values = []) {
+        let result = this.calcSum(values) / values.length;
+        return Number(result);
+    }
+
+    /**
+     * Calculate the max value of passed values.
+     * @param {Array} [values=[]] List of values
+     * @returns {Number}
+     */
+    calcMax(values = []) {
+        return Math.max.apply(null, values);
+    }
+
+    /**
+     * Calculate the min value of passed values.
+     * @param {Array} [values=[]] List of values
+     * @returns {Number}
+     */
+    calcMin(values = []) {
+        return Math.min.apply(null, values);
+    }
+
+    /**
+     * Calculate the median of passed values.
+     * @param {Array} [values=[]] List of values
+     * @returns {Number}
+     */
+    calcMedian(values = []) {
+        let nbValues = values.length;
+        let aux = 0;
+        if (nbValues % 2 === 1) {
+            aux = Math.floor(nbValues / 2);
+            return Number(values[aux]);
+        }
+        return Number(
+            (values[nbValues / 2] +
+            values[((nbValues / 2) - 1)]) / 2
+        );
+    }
+
+    /**
+     * Calculate the lower quartile of passed values.
+     * @param {Array} [values=[]] List of values
+     * @returns {Number}
+     */
+    calcQ1(values = []) {
+        let nbValues = values.length;
+        let posa = 0.0;
+        posa = Math.floor(nbValues / 4);
+        if (4 * posa === nbValues) {
+            return Number(
+                (values[posa - 1] + values[posa]) / 2
+            );
+        }
+        return Number(values[posa]);
+    }
+
+    /**
+     * Calculate the upper quartile of passed values.
+     * @param {Array} [values=[]] List of values
+     * @returns {Number}
+     */
+    calcQ3(values = []) {
+        let nbValues = values.length;
+        let posa = 0.0;
+        let posb = 0.0;
+        posa = Math.floor(nbValues / 4);
+        if (4 * posa === nbValues) {
+            posb = 3 * posa;
+            return Number(
+                (values[posb] + values[posb - 1]) / 2
+            );
+        }
+        return Number(values[nbValues - posa - 1]);
+    }
+
+    /**
+     * Sort passed values with supplied sorter function.
+     * @param {Array} [values=[]] List of values to be sorted
+     * @param {Function} sorter Sorter function
+     * @returns {Array}
+     */
+    sortColumnValues(values = [], sorter) {
+        return values.sort(sorter);
+    }
+
+    /**
+     * Write calculation result in passed DOM element with supplied write method
+     * and decimal precision.
+     * @param {Number} [result=0] Calculation result
+     * @param {DOMElement} label DOM element
+     * @param {String} [writeType='innerhtml'] Write method
+     * @param {Number} [precision=2] Applied decimal precision
+     * @private
+     */
+    writeResult(result = 0, label, writeType = 'innerhtml', precision = 2) {
+        let labelElm = elm(label);
+
+        if (!labelElm) {
+            return;
+        }
+
+        result = result.toFixed(precision);
+        if (isNaN(result) || !isFinite(result)) {
+            result = '';
+        }
+
+        switch (writeType.toLowerCase()) {
+            case 'innerhtml':
+                labelElm.innerHTML = result;
+                break;
+            case 'setvalue':
+                labelElm.value = result;
+                break;
+            case 'createtextnode':
+                let oldNode = labelElm.firstChild;
+                let txtNode = createText(result);
+                labelElm.replaceChild(txtNode, oldNode);
+                break;
+        }
+    }
+
+    /** Remove extension */
     destroy() {
         if (!this.initialized) {
             return;
         }
         // unsubscribe to events
-        this.emitter.off(EVENTS, () => this.calc());
+        this.emitter.off(EVENTS, () => this.calcAll());
 
         this.initialized = false;
     }
diff --git a/docs/file/src/extensions/colsVisibility/colsVisibility.js.html b/docs/file/src/extensions/colsVisibility/colsVisibility.js.html
index e1a92f3b..c55b1f7a 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.4.33 API Document
+  src/extensions/colsVisibility/colsVisibility.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/extensions/filtersVisibility/filtersVisibility.js.html b/docs/file/src/extensions/filtersVisibility/filtersVisibility.js.html
index 8d6e8368..cd3a0b44 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.4.33 API Document
+  src/extensions/filtersVisibility/filtersVisibility.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/extensions/sort/adapterSortabletable.js.html b/docs/file/src/extensions/sort/adapterSortabletable.js.html
index 9184f3ba..fb440d31 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.4.33 API Document
+  src/extensions/sort/adapterSortabletable.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/extensions/sort/sort.js.html b/docs/file/src/extensions/sort/sort.js.html
index 0d879dc7..504cf700 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.4.33 API Document
+  src/extensions/sort/sort.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/feature.js.html b/docs/file/src/feature.js.html
index d03cf282..82023df2 100644
--- a/docs/file/src/feature.js.html
+++ b/docs/file/src/feature.js.html
@@ -3,7 +3,7 @@
 
   
   
-  src/feature.js | tablefilter v0.4.33 API Document
+  src/feature.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/modules/alternateRows.js.html b/docs/file/src/modules/alternateRows.js.html
index 1380cc83..367ee9a8 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.4.33 API Document
+  src/modules/alternateRows.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/modules/checkList.js.html b/docs/file/src/modules/checkList.js.html
index f9378d47..1e783849 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.4.33 API Document
+  src/modules/checkList.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/modules/clearButton.js.html b/docs/file/src/modules/clearButton.js.html
index 884c56d0..2ddf6825 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.4.33 API Document
+  src/modules/clearButton.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/modules/dateType.js.html b/docs/file/src/modules/dateType.js.html
index 42e5a8c9..4fb876a7 100644
--- a/docs/file/src/modules/dateType.js.html
+++ b/docs/file/src/modules/dateType.js.html
@@ -3,7 +3,7 @@
 
   
   
-  src/modules/dateType.js | tablefilter v0.4.33 API Document
+  src/modules/dateType.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/modules/dropdown.js.html b/docs/file/src/modules/dropdown.js.html
index 9c116e10..d61d48bf 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.4.33 API Document
+  src/modules/dropdown.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/modules/gridLayout.js.html b/docs/file/src/modules/gridLayout.js.html
index 917da5ff..0de34e55 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.4.33 API Document
+  src/modules/gridLayout.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/modules/hash.js.html b/docs/file/src/modules/hash.js.html
index 3732d580..8f9c4d42 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.4.33 API Document
+  src/modules/hash.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/modules/help.js.html b/docs/file/src/modules/help.js.html
index b16ca121..1b00c076 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.4.33 API Document
+  src/modules/help.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/modules/highlightKeywords.js.html b/docs/file/src/modules/highlightKeywords.js.html
index 1cfb15a2..453bbb86 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.4.33 API Document
+  src/modules/highlightKeywords.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/modules/loader.js.html b/docs/file/src/modules/loader.js.html
index abba3152..68975472 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.4.33 API Document
+  src/modules/loader.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/modules/noResults.js.html b/docs/file/src/modules/noResults.js.html
index 25ef922c..00da90d6 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.4.33 API Document
+  src/modules/noResults.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/modules/paging.js.html b/docs/file/src/modules/paging.js.html
index 764b8d50..8dc60b6a 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.4.33 API Document
+  src/modules/paging.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/modules/popupFilter.js.html b/docs/file/src/modules/popupFilter.js.html
index 67ee8f3f..5cb22059 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.4.33 API Document
+  src/modules/popupFilter.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/modules/rowsCounter.js.html b/docs/file/src/modules/rowsCounter.js.html
index 6fb5cbb2..51185d18 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.4.33 API Document
+  src/modules/rowsCounter.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/modules/state.js.html b/docs/file/src/modules/state.js.html
index 0e1559e9..410bd18a 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.4.33 API Document
+  src/modules/state.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/modules/statusBar.js.html b/docs/file/src/modules/statusBar.js.html
index 9dfc2b52..2b8d17f6 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.4.33 API Document
+  src/modules/statusBar.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/modules/storage.js.html b/docs/file/src/modules/storage.js.html
index 7802d413..db07328d 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.4.33 API Document
+  src/modules/storage.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/number.js.html b/docs/file/src/number.js.html
index fa90d4c2..a0c1332d 100644
--- a/docs/file/src/number.js.html
+++ b/docs/file/src/number.js.html
@@ -3,7 +3,7 @@
 
   
   
-  src/number.js | tablefilter v0.4.33 API Document
+  src/number.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/root.js.html b/docs/file/src/root.js.html
index e7f68a08..c67cf5dc 100644
--- a/docs/file/src/root.js.html
+++ b/docs/file/src/root.js.html
@@ -3,7 +3,7 @@
 
   
   
-  src/root.js | tablefilter v0.4.33 API Document
+  src/root.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/sort.js.html b/docs/file/src/sort.js.html
index b92396ab..fcff94f5 100644
--- a/docs/file/src/sort.js.html
+++ b/docs/file/src/sort.js.html
@@ -3,7 +3,7 @@
 
   
   
-  src/sort.js | tablefilter v0.4.33 API Document
+  src/sort.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/string.js.html b/docs/file/src/string.js.html
index 61f1825b..30bf501b 100644
--- a/docs/file/src/string.js.html
+++ b/docs/file/src/string.js.html
@@ -3,7 +3,7 @@
 
   
   
-  src/string.js | tablefilter v0.4.33 API Document
+  src/string.js | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/file/src/tablefilter.js.html b/docs/file/src/tablefilter.js.html
index ce8d0ff9..c2571afc 100644
--- a/docs/file/src/tablefilter.js.html
+++ b/docs/file/src/tablefilter.js.html
@@ -3,7 +3,7 @@
 
   
   
-  src/tablefilter.js | tablefilter v0.4.33 API Document
+  src/tablefilter.js | tablefilter v0.4.34 API Document
   
   
   
@@ -2229,7 +2229,7 @@ export class TableFilter {
             if (nchilds === this.nbCells && !isExludedRow) {
                 // this loop retrieves cell data
                 for (let j = 0; j < nchilds; j++) {
-                    if (j !== colIndex || row[i].style.display !== '') {
+                    if (j !== colIndex) {
                         continue;
                     }
                     let cellData = this.getCellData(cell[j]);
@@ -2475,28 +2475,55 @@ export class TableFilter {
      * Return the filtered data for a given column index
      * @param  {Number} colIndex Colmun's index
      * @param  {Boolean} includeHeaders  Optional: include headers row
+     * @param  {Boolean} num     Optional: return unformatted number
+     * @param  {Array} exclude   Optional: list of row indexes to be excluded
+     * @param  {Boolean} visible Optional: return only visible data
+     *                           (relevant for paging)
      * @return {Array}           Flat list of values ['val0','val1','val2'...]
      *
      * TODO: provide an API returning data in JSON format
      */
-    getFilteredDataCol(colIndex, includeHeaders = false) {
+    getFilteredDataCol(
+        colIndex,
+        includeHeaders = false,
+        num = false,
+        exclude = [],
+        visible = true
+    ) {
         if (isUndef(colIndex)) {
             return [];
         }
-        let data = this.getFilteredData(),
-            colData = [];
+
+        let rows = this.tbl.rows;
+
+        // ensure valid rows index do not contain excluded rows and row is
+        // displayed
+        let validRows = this.getValidRows(true).filter((rowIdx) => {
+            return exclude.indexOf(rowIdx) === -1 &&
+                (visible ?
+                    this.getRowDisplay(rows[rowIdx]) !== 'none' :
+                    true);
+        });
+
+        let decimal = this.decimalSeparator;
+        if (this.hasType(colIndex, [FORMATTED_NUMBER])) {
+            let colType = this.colTypes[colIndex];
+            if (colType.hasOwnProperty('decimal')) {
+                decimal = colType.decimal;
+            }
+        }
+
+        // convert column value to expected type if necessary
+        let validColValues = validRows.map((rowIdx) => {
+            let val = this.getCellData(rows[rowIdx].cells[colIndex]);
+            return num ? Number(val) || parseNb(val, decimal) : val;
+        });
+
         if (includeHeaders) {
-            colData.push(this.getHeadersText()[colIndex]);
+            validColValues.unshift(this.getHeadersText()[colIndex]);
         }
-        for (let i = 0, len = data.length; i < len; i++) {
-            let r = data[i],
-                //cols values of current row
-                d = r[1],
-                //data of searched column
-                c = d[colIndex];
-            colData.push(c);
-        }
-        return colData;
+
+        return validColValues;
     }
 
     /**
diff --git a/docs/file/src/types.js.html b/docs/file/src/types.js.html
index 5a6e5393..44484984 100644
--- a/docs/file/src/types.js.html
+++ b/docs/file/src/types.js.html
@@ -3,7 +3,7 @@
 
   
   
-  src/types.js | tablefilter v0.4.33 API Document
+  src/types.js | tablefilter v0.4.34 API Document
   
   
   
@@ -185,7 +185,7 @@ export const isUndef = (obj) => obj === UNDEFINED;
  * @param  {Any}  obj
  * @return {Boolean}
  */
-export const isNull = obj => obj === null;
+export const isNull = (obj) => obj === null;
 
 /**
  * Check passed argument is empty (undefined, null or empty string)
diff --git a/docs/function/index.html b/docs/function/index.html
index 22ccf722..d581593c 100644
--- a/docs/function/index.html
+++ b/docs/function/index.html
@@ -3,7 +3,7 @@
 
   
   
-  Function | tablefilter v0.4.33 API Document
+  Function | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/identifiers.html b/docs/identifiers.html
index a1ee4098..fcf6eba4 100644
--- a/docs/identifiers.html
+++ b/docs/identifiers.html
@@ -3,7 +3,7 @@
 
   
   
-  Index | tablefilter v0.4.33 API Document
+  Index | tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/index.html b/docs/index.html
index 5c3fce0f..8075ae44 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -3,7 +3,7 @@
 
   
   
-  tablefilter v0.4.33 API Document
+  tablefilter v0.4.34 API Document
   
   
   
diff --git a/docs/package.json b/docs/package.json
index ddf0e950..3f5fb546 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -1,6 +1,6 @@
 {
   "name": "tablefilter",
-  "version": "0.4.33",
+  "version": "0.4.34",
   "description": "A Javascript library making HTML tables filterable and a bit more",
   "license": "MIT",
   "author": {
diff --git a/docs/script/search_index.js b/docs/script/search_index.js
index 1f109d73..f78743cb 100644
--- a/docs/script/search_index.js
+++ b/docs/script/search_index.js
@@ -984,9 +984,63 @@ window.esdocSearchIndex = [
     "file"
   ],
   [
-    "src/extensions/colops/colops.js~colops#calc",
-    "class/src/extensions/colOps/colOps.js~ColOps.html#instance-method-calc",
-    "src/extensions/colOps/colOps.js~ColOps#calc",
+    "src/extensions/colops/colops.js~colops#calcall",
+    "class/src/extensions/colOps/colOps.js~ColOps.html#instance-method-calcAll",
+    "src/extensions/colOps/colOps.js~ColOps#calcAll",
+    "method"
+  ],
+  [
+    "src/extensions/colops/colops.js~colops#calcmax",
+    "class/src/extensions/colOps/colOps.js~ColOps.html#instance-method-calcMax",
+    "src/extensions/colOps/colOps.js~ColOps#calcMax",
+    "method"
+  ],
+  [
+    "src/extensions/colops/colops.js~colops#calcmean",
+    "class/src/extensions/colOps/colOps.js~ColOps.html#instance-method-calcMean",
+    "src/extensions/colOps/colOps.js~ColOps#calcMean",
+    "method"
+  ],
+  [
+    "src/extensions/colops/colops.js~colops#calcmedian",
+    "class/src/extensions/colOps/colOps.js~ColOps.html#instance-method-calcMedian",
+    "src/extensions/colOps/colOps.js~ColOps#calcMedian",
+    "method"
+  ],
+  [
+    "src/extensions/colops/colops.js~colops#calcmin",
+    "class/src/extensions/colOps/colOps.js~ColOps.html#instance-method-calcMin",
+    "src/extensions/colOps/colOps.js~ColOps#calcMin",
+    "method"
+  ],
+  [
+    "src/extensions/colops/colops.js~colops#calcq1",
+    "class/src/extensions/colOps/colOps.js~ColOps.html#instance-method-calcQ1",
+    "src/extensions/colOps/colOps.js~ColOps#calcQ1",
+    "method"
+  ],
+  [
+    "src/extensions/colops/colops.js~colops#calcq3",
+    "class/src/extensions/colOps/colOps.js~ColOps.html#instance-method-calcQ3",
+    "src/extensions/colOps/colOps.js~ColOps#calcQ3",
+    "method"
+  ],
+  [
+    "src/extensions/colops/colops.js~colops#calcsum",
+    "class/src/extensions/colOps/colOps.js~ColOps.html#instance-method-calcSum",
+    "src/extensions/colOps/colOps.js~ColOps#calcSum",
+    "method"
+  ],
+  [
+    "src/extensions/colops/colops.js~colops#colindexes",
+    "class/src/extensions/colOps/colOps.js~ColOps.html#instance-member-colIndexes",
+    "src/extensions/colOps/colOps.js~ColOps#colIndexes",
+    "member"
+  ],
+  [
+    "src/extensions/colops/colops.js~colops#columncalc",
+    "class/src/extensions/colOps/colOps.js~ColOps.html#instance-method-columnCalc",
+    "src/extensions/colOps/colOps.js~ColOps#columnCalc",
     "method"
   ],
   [
@@ -995,12 +1049,24 @@ window.esdocSearchIndex = [
     "src/extensions/colOps/colOps.js~ColOps#constructor",
     "method"
   ],
+  [
+    "src/extensions/colops/colops.js~colops#decimalprecisions",
+    "class/src/extensions/colOps/colOps.js~ColOps.html#instance-member-decimalPrecisions",
+    "src/extensions/colOps/colOps.js~ColOps#decimalPrecisions",
+    "member"
+  ],
   [
     "src/extensions/colops/colops.js~colops#destroy",
     "class/src/extensions/colOps/colOps.js~ColOps.html#instance-method-destroy",
     "src/extensions/colOps/colOps.js~ColOps#destroy",
     "method"
   ],
+  [
+    "src/extensions/colops/colops.js~colops#excluderows",
+    "class/src/extensions/colOps/colOps.js~ColOps.html#instance-member-excludeRows",
+    "src/extensions/colOps/colOps.js~ColOps#excludeRows",
+    "member"
+  ],
   [
     "src/extensions/colops/colops.js~colops#init",
     "class/src/extensions/colOps/colOps.js~ColOps.html#instance-method-init",
@@ -1013,6 +1079,12 @@ window.esdocSearchIndex = [
     "src/extensions/colOps/colOps.js~ColOps#initialized",
     "member"
   ],
+  [
+    "src/extensions/colops/colops.js~colops#labelids",
+    "class/src/extensions/colOps/colOps.js~ColOps.html#instance-member-labelIds",
+    "src/extensions/colOps/colOps.js~ColOps#labelIds",
+    "member"
+  ],
   [
     "src/extensions/colops/colops.js~colops#onafteroperation",
     "class/src/extensions/colOps/colOps.js~ColOps.html#instance-member-onAfterOperation",
@@ -1025,12 +1097,36 @@ window.esdocSearchIndex = [
     "src/extensions/colOps/colOps.js~ColOps#onBeforeOperation",
     "member"
   ],
+  [
+    "src/extensions/colops/colops.js~colops#operations",
+    "class/src/extensions/colOps/colOps.js~ColOps.html#instance-member-operations",
+    "src/extensions/colOps/colOps.js~ColOps#operations",
+    "member"
+  ],
   [
     "src/extensions/colops/colops.js~colops#opts",
     "class/src/extensions/colOps/colOps.js~ColOps.html#instance-member-opts",
     "src/extensions/colOps/colOps.js~ColOps#opts",
     "member"
   ],
+  [
+    "src/extensions/colops/colops.js~colops#outputtypes",
+    "class/src/extensions/colOps/colOps.js~ColOps.html#instance-member-outputTypes",
+    "src/extensions/colOps/colOps.js~ColOps#outputTypes",
+    "member"
+  ],
+  [
+    "src/extensions/colops/colops.js~colops#sortcolumnvalues",
+    "class/src/extensions/colOps/colOps.js~ColOps.html#instance-method-sortColumnValues",
+    "src/extensions/colOps/colOps.js~ColOps#sortColumnValues",
+    "method"
+  ],
+  [
+    "src/extensions/colops/colops.js~colops#totrowindexes",
+    "class/src/extensions/colOps/colOps.js~ColOps.html#instance-member-totRowIndexes",
+    "src/extensions/colOps/colOps.js~ColOps#totRowIndexes",
+    "member"
+  ],
   [
     "src/extensions/colsvisibility/colsvisibility.js",
     "file/src/extensions/colsVisibility/colsVisibility.js.html",
diff --git a/docs/source.html b/docs/source.html
index c1965e83..93ed6465 100644
--- a/docs/source.html
+++ b/docs/source.html
@@ -3,7 +3,7 @@
 
   
   
-  Source | tablefilter v0.4.33 API Document
+  Source | tablefilter v0.4.34 API Document
   
   
   
@@ -119,7 +119,7 @@
 
-

Source 650/650

+

Source 666/666

@@ -140,7 +140,7 @@ - + @@ -165,7 +165,7 @@ - + @@ -173,7 +173,7 @@ - + @@ -192,7 +192,7 @@ - + @@ -200,7 +200,7 @@ - + @@ -213,7 +213,7 @@ - + @@ -221,7 +221,7 @@ - + @@ -229,15 +229,15 @@ - + - - - - + + + + @@ -245,7 +245,7 @@ - + @@ -253,7 +253,7 @@ - + @@ -261,7 +261,7 @@ - + @@ -269,7 +269,7 @@ - + @@ -277,7 +277,7 @@ - + @@ -285,7 +285,7 @@ - + @@ -293,7 +293,7 @@ - + @@ -301,7 +301,7 @@ - + @@ -309,7 +309,7 @@ - + @@ -317,7 +317,7 @@ - + @@ -325,7 +325,7 @@ - + @@ -334,7 +334,7 @@ - + @@ -342,7 +342,7 @@ - + @@ -350,7 +350,7 @@ - + @@ -358,7 +358,7 @@ - + @@ -366,7 +366,7 @@ - + @@ -374,7 +374,7 @@ - + @@ -382,7 +382,7 @@ - + @@ -390,7 +390,7 @@ - + @@ -398,7 +398,7 @@ - + @@ -406,7 +406,7 @@ - + @@ -415,7 +415,7 @@ - + @@ -423,7 +423,7 @@ - + @@ -431,7 +431,7 @@ - + @@ -441,7 +441,7 @@ - + @@ -453,15 +453,15 @@ - + - - - + + + @@ -475,9 +475,9 @@ isStringisUndef - + - +
100 %1/1 545 byte 222017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/const.js100 %18/18 1536 byte 1182017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/cookie.js- 1412 byte 572017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/dom.js100 %12/12 4767 byte 1912017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/emitter.js100 %6/6 1323 byte 532017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/event.js100 %6/6 2384 byte 1012017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/extensions/advancedGrid/adapterEzEditTable.js100 %13/13 18904 byte 5042017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/extensions/advancedGrid/advancedGrid.js- 90 byte 22017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/extensions/colOps/colOps.js ColOps100 %9/913525 byte3662017-01-05 20:51:13 (UTC)100 %25/2513020 byte4482017-01-01 06:49:30 (UTC)
src/extensions/colsVisibility/colsVisibility.js100 %49/49 20964 byte 7392017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/extensions/filtersVisibility/filtersVisibility.js100 %25/25 7784 byte 3072017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/extensions/sort/adapterSortabletable.js100 %23/23 16452 byte 5322017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/extensions/sort/sort.js- 197 byte 82017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/feature.js100 %14/14 1864 byte 972017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/modules/alternateRows.js100 %9/9 3644 byte 1402017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/modules/checkList.js100 %17/17 18969 byte 5902017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/modules/clearButton.js100 %10/10 3129 byte 1282017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/modules/dateType.js100 %11/11 3997 byte 1472017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/modules/dropdown.js100 %14/14 13699 byte 4422017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/modules/gridLayout.js100 %16/16 14075 byte 4942017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/modules/hash.js100 %10/10 2981 byte 1262017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/modules/help.js100 %17/17 6516 byte 2322017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/modules/highlightKeywords.js100 %10/10 5405 byte 1792017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/modules/loader.js100 %14/14 4005 byte 1732017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/modules/noResults.js100 %17/17 4809 byte 1982017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/modules/paging.js100 %45/45 27455 byte 8982017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/modules/popupFilter.js100 %26/26 12712 byte 4462017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/modules/rowsCounter.js100 %13/13 5643 byte 1972017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/modules/state.js100 %24/24 14771 byte 5412017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/modules/statusBar.js100 %22/22 8485 byte 2992017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/modules/storage.js100 %10/10 3544 byte 1622017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/number.js100 %1/1 998 byte 292017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/root.js100 %1/1 235 byte 62017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/sort.js100 %3/3 930 byte 332017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/string.js100 %5/5 2082 byte 762017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
src/tablefilter.js TableFilter 100 %170/17089243 byte29752017-01-05 20:51:13 (UTC)90180 byte30022017-01-01 06:49:30 (UTC)
src/types.js 100 %9/91563 byte1565 byte 732017-01-05 20:51:13 (UTC)2017-01-01 06:49:30 (UTC)
diff --git a/docs/variable/index.html b/docs/variable/index.html index 3b98b1a2..7504eaa3 100644 --- a/docs/variable/index.html +++ b/docs/variable/index.html @@ -3,7 +3,7 @@ - Variable | tablefilter v0.4.33 API Document + Variable | tablefilter v0.4.34 API Document