diff --git a/docs/ast/source/modules/highlightKeywords.js.json b/docs/ast/source/modules/highlightKeywords.js.json
index f496d529..2bef9c3b 100644
--- a/docs/ast/source/modules/highlightKeywords.js.json
+++ b/docs/ast/source/modules/highlightKeywords.js.json
@@ -252,8 +252,8 @@
"type": "Identifier",
"name": "constructor",
"range": [
- 236,
- 247
+ 237,
+ 248
],
"loc": {
"start": {
@@ -274,8 +274,8 @@
"type": "Identifier",
"name": "tf",
"range": [
- 248,
- 250
+ 249,
+ 251
],
"loc": {
"start": {
@@ -301,8 +301,8 @@
"type": "Identifier",
"name": "f",
"range": [
- 266,
- 267
+ 267,
+ 268
],
"loc": {
"start": {
@@ -324,8 +324,8 @@
"type": "Identifier",
"name": "tf",
"range": [
- 270,
- 272
+ 271,
+ 273
],
"loc": {
"start": {
@@ -342,8 +342,8 @@
"type": "Identifier",
"name": "config",
"range": [
- 273,
- 279
+ 274,
+ 280
],
"loc": {
"start": {
@@ -357,8 +357,8 @@
}
},
"range": [
- 270,
- 279
+ 271,
+ 280
],
"loc": {
"start": {
@@ -373,8 +373,8 @@
},
"arguments": [],
"range": [
- 270,
- 281
+ 271,
+ 282
],
"loc": {
"start": {
@@ -388,8 +388,8 @@
}
},
"range": [
- 266,
- 281
+ 267,
+ 282
],
"loc": {
"start": {
@@ -403,10 +403,10 @@
}
}
],
- "kind": "var",
+ "kind": "let",
"range": [
- 262,
- 282
+ 263,
+ 283
],
"loc": {
"start": {
@@ -423,8 +423,8 @@
"type": "Line",
"value": "defines css class for highlighting",
"range": [
- 291,
- 327
+ 292,
+ 328
],
"loc": {
"start": {
@@ -450,8 +450,8 @@
"object": {
"type": "ThisExpression",
"range": [
- 336,
- 340
+ 337,
+ 341
],
"loc": {
"start": {
@@ -468,8 +468,8 @@
"type": "Identifier",
"name": "highlightCssClass",
"range": [
- 341,
- 358
+ 342,
+ 359
],
"loc": {
"start": {
@@ -483,8 +483,8 @@
}
},
"range": [
- 336,
- 358
+ 337,
+ 359
],
"loc": {
"start": {
@@ -507,8 +507,8 @@
"type": "Identifier",
"name": "f",
"range": [
- 361,
- 362
+ 362,
+ 363
],
"loc": {
"start": {
@@ -525,8 +525,8 @@
"type": "Identifier",
"name": "highlight_css_class",
"range": [
- 363,
- 382
+ 364,
+ 383
],
"loc": {
"start": {
@@ -540,8 +540,8 @@
}
},
"range": [
- 361,
- 382
+ 362,
+ 383
],
"loc": {
"start": {
@@ -559,8 +559,8 @@
"value": "keyword",
"raw": "'keyword'",
"range": [
- 386,
- 395
+ 387,
+ 396
],
"loc": {
"start": {
@@ -574,8 +574,8 @@
}
},
"range": [
- 361,
- 395
+ 362,
+ 396
],
"loc": {
"start": {
@@ -589,8 +589,8 @@
}
},
"range": [
- 336,
- 395
+ 337,
+ 396
],
"loc": {
"start": {
@@ -604,8 +604,8 @@
}
},
"range": [
- 336,
- 396
+ 337,
+ 397
],
"loc": {
"start": {
@@ -622,8 +622,8 @@
"type": "Line",
"value": "defines css class for highlighting",
"range": [
- 291,
- 327
+ 292,
+ 328
],
"loc": {
"start": {
@@ -649,122 +649,16 @@
"object": {
"type": "ThisExpression",
"range": [
- 405,
- 409
+ 407,
+ 411
],
"loc": {
"start": {
- "line": 15,
+ "line": 16,
"column": 8
},
"end": {
- "line": 15,
- "column": 12
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "highlightedNodes",
- "range": [
- 410,
- 426
- ],
- "loc": {
- "start": {
- "line": 15,
- "column": 13
- },
- "end": {
- "line": 15,
- "column": 29
- }
- }
- },
- "range": [
- 405,
- 426
- ],
- "loc": {
- "start": {
- "line": 15,
- "column": 8
- },
- "end": {
- "line": 15,
- "column": 29
- }
- }
- },
- "right": {
- "type": "ArrayExpression",
- "elements": [],
- "range": [
- 429,
- 431
- ],
- "loc": {
- "start": {
- "line": 15,
- "column": 32
- },
- "end": {
- "line": 15,
- "column": 34
- }
- }
- },
- "range": [
- 405,
- 431
- ],
- "loc": {
- "start": {
- "line": 15,
- "column": 8
- },
- "end": {
- "line": 15,
- "column": 34
- }
- }
- },
- "range": [
- 405,
- 432
- ],
- "loc": {
- "start": {
- "line": 15,
- "column": 8
- },
- "end": {
- "line": 15,
- "column": 35
- }
- }
- },
- {
- "type": "ExpressionStatement",
- "expression": {
- "type": "AssignmentExpression",
- "operator": "=",
- "left": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "ThisExpression",
- "range": [
- 442,
- 446
- ],
- "loc": {
- "start": {
- "line": 17,
- "column": 8
- },
- "end": {
- "line": 17,
+ "line": 16,
"column": 12
}
}
@@ -773,31 +667,31 @@
"type": "Identifier",
"name": "tf",
"range": [
- 447,
- 449
+ 412,
+ 414
],
"loc": {
"start": {
- "line": 17,
+ "line": 16,
"column": 13
},
"end": {
- "line": 17,
+ "line": 16,
"column": 15
}
}
},
"range": [
- 442,
- 449
+ 407,
+ 414
],
"loc": {
"start": {
- "line": 17,
+ "line": 16,
"column": 8
},
"end": {
- "line": 17,
+ "line": 16,
"column": 15
}
}
@@ -806,46 +700,46 @@
"type": "Identifier",
"name": "tf",
"range": [
- 452,
- 454
+ 417,
+ 419
],
"loc": {
"start": {
- "line": 17,
+ "line": 16,
"column": 18
},
"end": {
- "line": 17,
+ "line": 16,
"column": 20
}
}
},
"range": [
- 442,
- 454
+ 407,
+ 419
],
"loc": {
"start": {
- "line": 17,
+ "line": 16,
"column": 8
},
"end": {
- "line": 17,
+ "line": 16,
"column": 20
}
}
},
"range": [
- 442,
- 455
+ 407,
+ 420
],
"loc": {
"start": {
- "line": 17,
+ "line": 16,
"column": 8
},
"end": {
- "line": 17,
+ "line": 16,
"column": 21
}
}
@@ -861,16 +755,16 @@
"object": {
"type": "ThisExpression",
"range": [
- 464,
- 468
+ 429,
+ 433
],
"loc": {
"start": {
- "line": 18,
+ "line": 17,
"column": 8
},
"end": {
- "line": 18,
+ "line": 17,
"column": 12
}
}
@@ -879,31 +773,31 @@
"type": "Identifier",
"name": "emitter",
"range": [
- 469,
- 476
+ 434,
+ 441
],
"loc": {
"start": {
- "line": 18,
+ "line": 17,
"column": 13
},
"end": {
- "line": 18,
+ "line": 17,
"column": 20
}
}
},
"range": [
- 464,
- 476
+ 429,
+ 441
],
"loc": {
"start": {
- "line": 18,
+ "line": 17,
"column": 8
},
"end": {
- "line": 18,
+ "line": 17,
"column": 20
}
}
@@ -915,16 +809,16 @@
"type": "Identifier",
"name": "tf",
"range": [
- 479,
- 481
+ 444,
+ 446
],
"loc": {
"start": {
- "line": 18,
+ "line": 17,
"column": 23
},
"end": {
- "line": 18,
+ "line": 17,
"column": 25
}
}
@@ -933,69 +827,69 @@
"type": "Identifier",
"name": "emitter",
"range": [
- 482,
- 489
+ 447,
+ 454
],
"loc": {
"start": {
- "line": 18,
+ "line": 17,
"column": 26
},
"end": {
- "line": 18,
+ "line": 17,
"column": 33
}
}
},
"range": [
- 479,
- 489
+ 444,
+ 454
],
"loc": {
"start": {
- "line": 18,
+ "line": 17,
"column": 23
},
"end": {
- "line": 18,
+ "line": 17,
"column": 33
}
}
},
"range": [
- 464,
- 489
+ 429,
+ 454
],
"loc": {
"start": {
- "line": 18,
+ "line": 17,
"column": 8
},
"end": {
- "line": 18,
+ "line": 17,
"column": 33
}
}
},
"range": [
- 464,
- 490
+ 429,
+ 455
],
"loc": {
"start": {
- "line": 18,
+ "line": 17,
"column": 8
},
"end": {
- "line": 18,
+ "line": 17,
"column": 34
}
}
}
],
"range": [
- 252,
- 496
+ 253,
+ 461
],
"loc": {
"start": {
@@ -1003,7 +897,7 @@
"column": 20
},
"end": {
- "line": 19,
+ "line": 18,
"column": 5
}
}
@@ -1011,8 +905,8 @@
"generator": false,
"expression": false,
"range": [
- 247,
- 496
+ 248,
+ 461
],
"loc": {
"start": {
@@ -1020,7 +914,7 @@
"column": 15
},
"end": {
- "line": 19,
+ "line": 18,
"column": 5
}
}
@@ -1028,8 +922,8 @@
"kind": "constructor",
"computed": false,
"range": [
- 236,
- 496
+ 237,
+ 461
],
"loc": {
"start": {
@@ -1037,7 +931,7 @@
"column": 4
},
"end": {
- "line": 19,
+ "line": 18,
"column": 5
}
},
@@ -1046,8 +940,8 @@
"type": "Block",
"value": "*\n * HighlightKeyword, highlight matched keyword\n * @param {Object} tf TableFilter instance\n ",
"range": [
- 122,
- 231
+ 123,
+ 232
],
"loc": {
"start": {
@@ -1069,16 +963,16 @@
"type": "Identifier",
"name": "init",
"range": [
- 502,
- 506
+ 467,
+ 471
],
"loc": {
"start": {
- "line": 21,
+ "line": 20,
"column": 4
},
"end": {
- "line": 21,
+ "line": 20,
"column": 8
}
}
@@ -1103,16 +997,16 @@
"object": {
"type": "ThisExpression",
"range": [
- 518,
- 522
+ 484,
+ 488
],
"loc": {
"start": {
- "line": 22,
+ "line": 21,
"column": 8
},
"end": {
- "line": 22,
+ "line": 21,
"column": 12
}
}
@@ -1121,31 +1015,31 @@
"type": "Identifier",
"name": "emitter",
"range": [
- 523,
- 530
+ 489,
+ 496
],
"loc": {
"start": {
- "line": 22,
+ "line": 21,
"column": 13
},
"end": {
- "line": 22,
+ "line": 21,
"column": 20
}
}
},
"range": [
- 518,
- 530
+ 484,
+ 496
],
"loc": {
"start": {
- "line": 22,
+ "line": 21,
"column": 8
},
"end": {
- "line": 22,
+ "line": 21,
"column": 20
}
}
@@ -1154,31 +1048,31 @@
"type": "Identifier",
"name": "on",
"range": [
- 531,
- 533
+ 497,
+ 499
],
"loc": {
"start": {
- "line": 22,
+ "line": 21,
"column": 21
},
"end": {
- "line": 22,
+ "line": 21,
"column": 23
}
}
},
"range": [
- 518,
- 533
+ 484,
+ 499
],
"loc": {
"start": {
- "line": 22,
+ "line": 21,
"column": 8
},
"end": {
- "line": 22,
+ "line": 21,
"column": 23
}
}
@@ -1192,16 +1086,16 @@
"value": "before-filtering",
"raw": "'before-filtering'",
"range": [
- 548,
- 566
+ 514,
+ 532
],
"loc": {
"start": {
- "line": 23,
+ "line": 22,
"column": 13
},
"end": {
- "line": 23,
+ "line": 22,
"column": 31
}
}
@@ -1211,32 +1105,32 @@
"value": "destroy",
"raw": "'destroy'",
"range": [
- 568,
- 577
+ 534,
+ 543
],
"loc": {
"start": {
- "line": 23,
+ "line": 22,
"column": 33
},
"end": {
- "line": 23,
+ "line": 22,
"column": 42
}
}
}
],
"range": [
- 547,
- 578
+ 513,
+ 544
],
"loc": {
"start": {
- "line": 23,
+ "line": 22,
"column": 12
},
"end": {
- "line": 23,
+ "line": 22,
"column": 43
}
}
@@ -1253,17 +1147,17 @@
"object": {
"type": "ThisExpression",
"range": [
- 597,
- 601
+ 564,
+ 568
],
"loc": {
"start": {
- "line": 24,
- "column": 17
+ "line": 23,
+ "column": 18
},
"end": {
- "line": 24,
- "column": 21
+ "line": 23,
+ "column": 22
}
}
},
@@ -1271,95 +1165,95 @@
"type": "Identifier",
"name": "unhighlightAll",
"range": [
- 602,
- 616
+ 569,
+ 583
],
"loc": {
"start": {
- "line": 24,
- "column": 22
+ "line": 23,
+ "column": 23
},
"end": {
- "line": 24,
- "column": 36
+ "line": 23,
+ "column": 37
}
}
},
"range": [
- 597,
- 616
+ 564,
+ 583
],
"loc": {
"start": {
- "line": 24,
- "column": 17
+ "line": 23,
+ "column": 18
},
"end": {
- "line": 24,
- "column": 36
+ "line": 23,
+ "column": 37
}
}
},
"arguments": [],
"range": [
- 597,
- 618
+ 564,
+ 585
],
"loc": {
"start": {
- "line": 24,
- "column": 17
+ "line": 23,
+ "column": 18
},
"end": {
- "line": 24,
- "column": 38
+ "line": 23,
+ "column": 39
}
}
},
"generator": false,
"expression": true,
"range": [
- 592,
- 618
+ 558,
+ 585
],
"loc": {
"start": {
- "line": 24,
+ "line": 23,
"column": 12
},
"end": {
- "line": 24,
- "column": 38
+ "line": 23,
+ "column": 39
}
}
}
],
"range": [
- 518,
- 628
+ 484,
+ 595
],
"loc": {
"start": {
- "line": 22,
+ "line": 21,
"column": 8
},
"end": {
- "line": 25,
+ "line": 24,
"column": 9
}
}
},
"range": [
- 518,
- 629
+ 484,
+ 596
],
"loc": {
"start": {
- "line": 22,
+ "line": 21,
"column": 8
},
"end": {
- "line": 25,
+ "line": 24,
"column": 10
}
}
@@ -1377,16 +1271,16 @@
"object": {
"type": "ThisExpression",
"range": [
- 638,
- 642
+ 605,
+ 609
],
"loc": {
"start": {
- "line": 26,
+ "line": 25,
"column": 8
},
"end": {
- "line": 26,
+ "line": 25,
"column": 12
}
}
@@ -1395,31 +1289,31 @@
"type": "Identifier",
"name": "emitter",
"range": [
- 643,
- 650
+ 610,
+ 617
],
"loc": {
"start": {
- "line": 26,
+ "line": 25,
"column": 13
},
"end": {
- "line": 26,
+ "line": 25,
"column": 20
}
}
},
"range": [
- 638,
- 650
+ 605,
+ 617
],
"loc": {
"start": {
- "line": 26,
+ "line": 25,
"column": 8
},
"end": {
- "line": 26,
+ "line": 25,
"column": 20
}
}
@@ -1428,31 +1322,31 @@
"type": "Identifier",
"name": "on",
"range": [
- 651,
- 653
+ 618,
+ 620
],
"loc": {
"start": {
- "line": 26,
+ "line": 25,
"column": 21
},
"end": {
- "line": 26,
+ "line": 25,
"column": 23
}
}
},
"range": [
- 638,
- 653
+ 605,
+ 620
],
"loc": {
"start": {
- "line": 26,
+ "line": 25,
"column": 8
},
"end": {
- "line": 26,
+ "line": 25,
"column": 23
}
}
@@ -1466,32 +1360,32 @@
"value": "highlight-keyword",
"raw": "'highlight-keyword'",
"range": [
- 668,
- 687
+ 635,
+ 654
],
"loc": {
"start": {
- "line": 27,
+ "line": 26,
"column": 13
},
"end": {
- "line": 27,
+ "line": 26,
"column": 32
}
}
}
],
"range": [
- 667,
- 688
+ 634,
+ 655
],
"loc": {
"start": {
- "line": 27,
+ "line": 26,
"column": 12
},
"end": {
- "line": 27,
+ "line": 26,
"column": 33
}
}
@@ -1504,16 +1398,16 @@
"type": "Identifier",
"name": "tf",
"range": [
- 703,
- 705
+ 670,
+ 672
],
"loc": {
"start": {
- "line": 28,
+ "line": 27,
"column": 13
},
"end": {
- "line": 28,
+ "line": 27,
"column": 15
}
}
@@ -1522,16 +1416,16 @@
"type": "Identifier",
"name": "cell",
"range": [
- 707,
- 711
+ 674,
+ 678
],
"loc": {
"start": {
- "line": 28,
+ "line": 27,
"column": 17
},
"end": {
- "line": 28,
+ "line": 27,
"column": 21
}
}
@@ -1540,16 +1434,16 @@
"type": "Identifier",
"name": "word",
"range": [
- 713,
- 717
+ 680,
+ 684
],
"loc": {
"start": {
- "line": 28,
+ "line": 27,
"column": 23
},
"end": {
- "line": 28,
+ "line": 27,
"column": 27
}
}
@@ -1563,16 +1457,16 @@
"object": {
"type": "ThisExpression",
"range": [
- 737,
- 741
+ 705,
+ 709
],
"loc": {
"start": {
- "line": 29,
+ "line": 28,
"column": 16
},
"end": {
- "line": 29,
+ "line": 28,
"column": 20
}
}
@@ -1581,31 +1475,31 @@
"type": "Identifier",
"name": "highlight",
"range": [
- 742,
- 751
+ 710,
+ 719
],
"loc": {
"start": {
- "line": 29,
+ "line": 28,
"column": 21
},
"end": {
- "line": 29,
+ "line": 28,
"column": 30
}
}
},
"range": [
- 737,
- 751
+ 705,
+ 719
],
"loc": {
"start": {
- "line": 29,
+ "line": 28,
"column": 16
},
"end": {
- "line": 29,
+ "line": 28,
"column": 30
}
}
@@ -1615,16 +1509,16 @@
"type": "Identifier",
"name": "cell",
"range": [
- 752,
- 756
+ 720,
+ 724
],
"loc": {
"start": {
- "line": 29,
+ "line": 28,
"column": 31
},
"end": {
- "line": 29,
+ "line": 28,
"column": 35
}
}
@@ -1633,16 +1527,16 @@
"type": "Identifier",
"name": "word",
"range": [
- 758,
- 762
+ 726,
+ 730
],
"loc": {
"start": {
- "line": 29,
+ "line": 28,
"column": 37
},
"end": {
- "line": 29,
+ "line": 28,
"column": 41
}
}
@@ -1653,16 +1547,16 @@
"object": {
"type": "ThisExpression",
"range": [
- 764,
- 768
+ 732,
+ 736
],
"loc": {
"start": {
- "line": 29,
+ "line": 28,
"column": 43
},
"end": {
- "line": 29,
+ "line": 28,
"column": 47
}
}
@@ -1671,47 +1565,47 @@
"type": "Identifier",
"name": "highlightCssClass",
"range": [
- 769,
- 786
+ 737,
+ 754
],
"loc": {
"start": {
- "line": 29,
+ "line": 28,
"column": 48
},
"end": {
- "line": 29,
+ "line": 28,
"column": 65
}
}
},
"range": [
- 764,
- 786
+ 732,
+ 754
],
"loc": {
"start": {
- "line": 29,
+ "line": 28,
"column": 43
},
"end": {
- "line": 29,
+ "line": 28,
"column": 65
}
}
}
],
"range": [
- 737,
- 787
+ 705,
+ 755
],
"loc": {
"start": {
- "line": 29,
+ "line": 28,
"column": 16
},
"end": {
- "line": 29,
+ "line": 28,
"column": 66
}
}
@@ -1719,63 +1613,63 @@
"generator": false,
"expression": true,
"range": [
- 702,
- 787
+ 669,
+ 755
],
"loc": {
"start": {
- "line": 28,
+ "line": 27,
"column": 12
},
"end": {
- "line": 29,
+ "line": 28,
"column": 66
}
}
}
],
"range": [
- 638,
- 797
+ 605,
+ 765
],
"loc": {
"start": {
- "line": 26,
+ "line": 25,
"column": 8
},
"end": {
- "line": 30,
+ "line": 29,
"column": 9
}
}
},
"range": [
- 638,
- 798
+ 605,
+ 766
],
"loc": {
"start": {
- "line": 26,
+ "line": 25,
"column": 8
},
"end": {
- "line": 30,
+ "line": 29,
"column": 10
}
}
}
],
"range": [
- 508,
- 804
+ 474,
+ 772
],
"loc": {
"start": {
- "line": 21,
- "column": 10
+ "line": 20,
+ "column": 11
},
"end": {
- "line": 31,
+ "line": 30,
"column": 5
}
}
@@ -1783,16 +1677,16 @@
"generator": false,
"expression": false,
"range": [
- 506,
- 804
+ 471,
+ 772
],
"loc": {
"start": {
- "line": 21,
+ "line": 20,
"column": 8
},
"end": {
- "line": 31,
+ "line": 30,
"column": 5
}
}
@@ -1800,34 +1694,34 @@
"kind": "method",
"computed": false,
"range": [
- 502,
- 804
+ 467,
+ 772
],
"loc": {
"start": {
- "line": 21,
+ "line": 20,
"column": 4
},
"end": {
- "line": 31,
+ "line": 30,
"column": 5
}
},
"trailingComments": [
{
"type": "Block",
- "value": "*\n * highlight occurences of searched term in passed node\n * @param {Node} node\n * @param {String} word Searched term\n * @param {String} cssClass Css class name\n ",
+ "value": "*\n * highlight occurences of searched term in passed node\n * @param {Node} node\n * @param {String} word Searched term\n * @param {String} cssClass Css class name\n *\n * TODO: refactor this method\n ",
"range": [
- 810,
- 1003
+ 778,
+ 1012
],
"loc": {
"start": {
- "line": 33,
+ "line": 32,
"column": 4
},
"end": {
- "line": 38,
+ "line": 39,
"column": 7
}
}
@@ -1841,16 +1735,16 @@
"type": "Identifier",
"name": "highlight",
"range": [
- 1008,
- 1017
+ 1017,
+ 1026
],
"loc": {
"start": {
- "line": 39,
+ "line": 40,
"column": 4
},
"end": {
- "line": 39,
+ "line": 40,
"column": 13
}
}
@@ -1863,16 +1757,16 @@
"type": "Identifier",
"name": "node",
"range": [
- 1018,
- 1022
+ 1027,
+ 1031
],
"loc": {
"start": {
- "line": 39,
+ "line": 40,
"column": 14
},
"end": {
- "line": 39,
+ "line": 40,
"column": 18
}
}
@@ -1881,16 +1775,16 @@
"type": "Identifier",
"name": "word",
"range": [
- 1024,
- 1028
+ 1033,
+ 1037
],
"loc": {
"start": {
- "line": 39,
+ "line": 40,
"column": 20
},
"end": {
- "line": 39,
+ "line": 40,
"column": 24
}
}
@@ -1899,16 +1793,16 @@
"type": "Identifier",
"name": "cssClass",
"range": [
- 1030,
- 1038
+ 1039,
+ 1047
],
"loc": {
"start": {
- "line": 39,
+ "line": 40,
"column": 26
},
"end": {
- "line": 39,
+ "line": 40,
"column": 34
}
}
@@ -1926,17 +1820,17 @@
"type": "Identifier",
"name": "node",
"range": [
- 1098,
- 1102
+ 1109,
+ 1113
],
"loc": {
"start": {
- "line": 41,
- "column": 11
+ "line": 42,
+ "column": 12
},
"end": {
- "line": 41,
- "column": 15
+ "line": 42,
+ "column": 16
}
}
},
@@ -1944,32 +1838,32 @@
"type": "Identifier",
"name": "hasChildNodes",
"range": [
- 1103,
- 1116
+ 1114,
+ 1127
],
"loc": {
"start": {
- "line": 41,
- "column": 16
+ "line": 42,
+ "column": 17
},
"end": {
- "line": 41,
- "column": 29
+ "line": 42,
+ "column": 30
}
}
},
"range": [
- 1098,
- 1116
+ 1109,
+ 1127
],
"loc": {
"start": {
- "line": 41,
- "column": 11
+ "line": 42,
+ "column": 12
},
"end": {
- "line": 41,
- "column": 29
+ "line": 42,
+ "column": 30
}
}
},
@@ -1985,16 +1879,16 @@
"type": "Identifier",
"name": "children",
"range": [
- 1135,
- 1143
+ 1147,
+ 1155
],
"loc": {
"start": {
- "line": 42,
+ "line": 43,
"column": 16
},
"end": {
- "line": 42,
+ "line": 43,
"column": 24
}
}
@@ -2006,16 +1900,16 @@
"type": "Identifier",
"name": "node",
"range": [
- 1146,
- 1150
+ 1158,
+ 1162
],
"loc": {
"start": {
- "line": 42,
+ "line": 43,
"column": 27
},
"end": {
- "line": 42,
+ "line": 43,
"column": 31
}
}
@@ -2024,63 +1918,63 @@
"type": "Identifier",
"name": "childNodes",
"range": [
- 1151,
- 1161
+ 1163,
+ 1173
],
"loc": {
"start": {
- "line": 42,
+ "line": 43,
"column": 32
},
"end": {
- "line": 42,
+ "line": 43,
"column": 42
}
}
},
"range": [
- 1146,
- 1161
+ 1158,
+ 1173
],
"loc": {
"start": {
- "line": 42,
+ "line": 43,
"column": 27
},
"end": {
- "line": 42,
+ "line": 43,
"column": 42
}
}
},
"range": [
- 1135,
- 1161
+ 1147,
+ 1173
],
"loc": {
"start": {
- "line": 42,
+ "line": 43,
"column": 16
},
"end": {
- "line": 42,
+ "line": 43,
"column": 42
}
}
}
],
- "kind": "var",
+ "kind": "let",
"range": [
- 1131,
- 1162
+ 1143,
+ 1174
],
"loc": {
"start": {
- "line": 42,
+ "line": 43,
"column": 12
},
"end": {
- "line": 42,
+ "line": 43,
"column": 43
}
}
@@ -2096,17 +1990,17 @@
"type": "Identifier",
"name": "i",
"range": [
- 1183,
- 1184
+ 1196,
+ 1197
],
"loc": {
"start": {
- "line": 43,
- "column": 20
+ "line": 44,
+ "column": 21
},
"end": {
- "line": 43,
- "column": 21
+ "line": 44,
+ "column": 22
}
}
},
@@ -2115,49 +2009,49 @@
"value": 0,
"raw": "0",
"range": [
- 1185,
- 1186
+ 1200,
+ 1201
],
"loc": {
"start": {
- "line": 43,
- "column": 22
+ "line": 44,
+ "column": 25
},
"end": {
- "line": 43,
- "column": 23
+ "line": 44,
+ "column": 26
}
}
},
"range": [
- 1183,
- 1186
+ 1196,
+ 1201
],
"loc": {
"start": {
- "line": 43,
- "column": 20
+ "line": 44,
+ "column": 21
},
"end": {
- "line": 43,
- "column": 23
+ "line": 44,
+ "column": 26
}
}
}
],
- "kind": "var",
+ "kind": "let",
"range": [
- 1179,
- 1186
+ 1192,
+ 1201
],
"loc": {
"start": {
- "line": 43,
- "column": 16
+ "line": 44,
+ "column": 17
},
"end": {
- "line": 43,
- "column": 23
+ "line": 44,
+ "column": 26
}
}
},
@@ -2168,17 +2062,17 @@
"type": "Identifier",
"name": "i",
"range": [
- 1188,
- 1189
+ 1203,
+ 1204
],
"loc": {
"start": {
- "line": 43,
- "column": 25
+ "line": 44,
+ "column": 28
},
"end": {
- "line": 43,
- "column": 26
+ "line": 44,
+ "column": 29
}
}
},
@@ -2189,17 +2083,17 @@
"type": "Identifier",
"name": "children",
"range": [
- 1190,
- 1198
+ 1207,
+ 1215
],
"loc": {
"start": {
- "line": 43,
- "column": 27
+ "line": 44,
+ "column": 32
},
"end": {
- "line": 43,
- "column": 35
+ "line": 44,
+ "column": 40
}
}
},
@@ -2207,47 +2101,47 @@
"type": "Identifier",
"name": "length",
"range": [
- 1199,
- 1205
+ 1216,
+ 1222
],
"loc": {
"start": {
- "line": 43,
- "column": 36
+ "line": 44,
+ "column": 41
},
"end": {
- "line": 43,
- "column": 42
+ "line": 44,
+ "column": 47
}
}
},
"range": [
- 1190,
- 1205
+ 1207,
+ 1222
],
"loc": {
"start": {
- "line": 43,
- "column": 27
+ "line": 44,
+ "column": 32
},
"end": {
- "line": 43,
- "column": 42
+ "line": 44,
+ "column": 47
}
}
},
"range": [
- 1188,
- 1205
+ 1203,
+ 1222
],
"loc": {
"start": {
- "line": 43,
- "column": 25
+ "line": 44,
+ "column": 28
},
"end": {
- "line": 43,
- "column": 42
+ "line": 44,
+ "column": 47
}
}
},
@@ -2258,33 +2152,33 @@
"type": "Identifier",
"name": "i",
"range": [
- 1207,
- 1208
+ 1224,
+ 1225
],
"loc": {
"start": {
- "line": 43,
- "column": 44
+ "line": 44,
+ "column": 49
},
"end": {
- "line": 43,
- "column": 45
+ "line": 44,
+ "column": 50
}
}
},
"prefix": false,
"range": [
- 1207,
- 1210
+ 1224,
+ 1227
],
"loc": {
"start": {
- "line": 43,
- "column": 44
+ "line": 44,
+ "column": 49
},
"end": {
- "line": 43,
- "column": 47
+ "line": 44,
+ "column": 52
}
}
},
@@ -2301,16 +2195,16 @@
"object": {
"type": "ThisExpression",
"range": [
- 1229,
- 1233
+ 1247,
+ 1251
],
"loc": {
"start": {
- "line": 44,
+ "line": 45,
"column": 16
},
"end": {
- "line": 44,
+ "line": 45,
"column": 20
}
}
@@ -2319,31 +2213,31 @@
"type": "Identifier",
"name": "highlight",
"range": [
- 1234,
- 1243
+ 1252,
+ 1261
],
"loc": {
"start": {
- "line": 44,
+ "line": 45,
"column": 21
},
"end": {
- "line": 44,
+ "line": 45,
"column": 30
}
}
},
"range": [
- 1229,
- 1243
+ 1247,
+ 1261
],
"loc": {
"start": {
- "line": 44,
+ "line": 45,
"column": 16
},
"end": {
- "line": 44,
+ "line": 45,
"column": 30
}
}
@@ -2356,16 +2250,16 @@
"type": "Identifier",
"name": "children",
"range": [
- 1244,
- 1252
+ 1262,
+ 1270
],
"loc": {
"start": {
- "line": 44,
+ "line": 45,
"column": 31
},
"end": {
- "line": 44,
+ "line": 45,
"column": 39
}
}
@@ -2374,31 +2268,31 @@
"type": "Identifier",
"name": "i",
"range": [
- 1253,
- 1254
+ 1271,
+ 1272
],
"loc": {
"start": {
- "line": 44,
+ "line": 45,
"column": 40
},
"end": {
- "line": 44,
+ "line": 45,
"column": 41
}
}
},
"range": [
- 1244,
- 1255
+ 1262,
+ 1273
],
"loc": {
"start": {
- "line": 44,
+ "line": 45,
"column": 31
},
"end": {
- "line": 44,
+ "line": 45,
"column": 42
}
}
@@ -2407,16 +2301,16 @@
"type": "Identifier",
"name": "word",
"range": [
- 1257,
- 1261
+ 1275,
+ 1279
],
"loc": {
"start": {
- "line": 44,
+ "line": 45,
"column": 44
},
"end": {
- "line": 44,
+ "line": 45,
"column": 48
}
}
@@ -2425,110 +2319,110 @@
"type": "Identifier",
"name": "cssClass",
"range": [
- 1263,
- 1271
+ 1281,
+ 1289
],
"loc": {
"start": {
- "line": 44,
+ "line": 45,
"column": 50
},
"end": {
- "line": 44,
+ "line": 45,
"column": 58
}
}
}
],
"range": [
- 1229,
- 1272
+ 1247,
+ 1290
],
"loc": {
"start": {
- "line": 44,
+ "line": 45,
"column": 16
},
"end": {
- "line": 44,
+ "line": 45,
"column": 59
}
}
},
"range": [
- 1229,
- 1273
+ 1247,
+ 1291
],
"loc": {
"start": {
- "line": 44,
+ "line": 45,
"column": 16
},
"end": {
- "line": 44,
+ "line": 45,
"column": 60
}
}
}
],
"range": [
- 1211,
- 1287
+ 1229,
+ 1305
],
"loc": {
"start": {
- "line": 43,
- "column": 48
+ "line": 44,
+ "column": 54
},
"end": {
- "line": 45,
+ "line": 46,
"column": 13
}
}
},
"range": [
- 1175,
- 1287
+ 1187,
+ 1305
],
"loc": {
"start": {
- "line": 43,
+ "line": 44,
"column": 12
},
"end": {
- "line": 45,
+ "line": 46,
"column": 13
}
}
}
],
"range": [
- 1117,
- 1297
+ 1129,
+ 1315
],
"loc": {
"start": {
- "line": 41,
- "column": 30
+ "line": 42,
+ "column": 32
},
"end": {
- "line": 46,
+ "line": 47,
"column": 9
}
}
},
"alternate": null,
"range": [
- 1095,
- 1297
+ 1105,
+ 1315
],
"loc": {
"start": {
- "line": 41,
+ "line": 42,
"column": 8
},
"end": {
- "line": 46,
+ "line": 47,
"column": 9
}
},
@@ -2537,16 +2431,16 @@
"type": "Line",
"value": " Iterate into this nodes childNodes",
"range": [
- 1049,
- 1086
+ 1059,
+ 1096
],
"loc": {
"start": {
- "line": 40,
+ "line": 41,
"column": 8
},
"end": {
- "line": 40,
+ "line": 41,
"column": 45
}
}
@@ -2565,17 +2459,17 @@
"type": "Identifier",
"name": "node",
"range": [
- 1310,
- 1314
+ 1329,
+ 1333
],
"loc": {
"start": {
- "line": 48,
- "column": 11
+ "line": 49,
+ "column": 12
},
"end": {
- "line": 48,
- "column": 15
+ "line": 49,
+ "column": 16
}
}
},
@@ -2583,32 +2477,32 @@
"type": "Identifier",
"name": "nodeType",
"range": [
- 1315,
- 1323
+ 1334,
+ 1342
],
"loc": {
"start": {
- "line": 48,
- "column": 16
+ "line": 49,
+ "column": 17
},
"end": {
- "line": 48,
- "column": 24
+ "line": 49,
+ "column": 25
}
}
},
"range": [
- 1310,
- 1323
+ 1329,
+ 1342
],
"loc": {
"start": {
- "line": 48,
- "column": 11
+ "line": 49,
+ "column": 12
},
"end": {
- "line": 48,
- "column": 24
+ "line": 49,
+ "column": 25
}
}
},
@@ -2617,32 +2511,32 @@
"value": 3,
"raw": "3",
"range": [
- 1328,
- 1329
+ 1347,
+ 1348
],
"loc": {
"start": {
- "line": 48,
- "column": 29
+ "line": 49,
+ "column": 30
},
"end": {
- "line": 48,
- "column": 30
+ "line": 49,
+ "column": 31
}
}
},
"range": [
- 1310,
- 1329
+ 1329,
+ 1348
],
"loc": {
"start": {
- "line": 48,
- "column": 11
+ "line": 49,
+ "column": 12
},
"end": {
- "line": 48,
- "column": 30
+ "line": 49,
+ "column": 31
}
}
},
@@ -2658,16 +2552,16 @@
"type": "Identifier",
"name": "tempNodeVal",
"range": [
- 1348,
- 1359
+ 1368,
+ 1379
],
"loc": {
"start": {
- "line": 49,
+ "line": 50,
"column": 16
},
"end": {
- "line": 49,
+ "line": 50,
"column": 27
}
}
@@ -2681,16 +2575,16 @@
"type": "Identifier",
"name": "Str",
"range": [
- 1362,
- 1365
+ 1382,
+ 1385
],
"loc": {
"start": {
- "line": 49,
+ "line": 50,
"column": 30
},
"end": {
- "line": 49,
+ "line": 50,
"column": 33
}
}
@@ -2699,31 +2593,31 @@
"type": "Identifier",
"name": "lower",
"range": [
- 1366,
- 1371
+ 1386,
+ 1391
],
"loc": {
"start": {
- "line": 49,
+ "line": 50,
"column": 34
},
"end": {
- "line": 49,
+ "line": 50,
"column": 39
}
}
},
"range": [
- 1362,
- 1371
+ 1382,
+ 1391
],
"loc": {
"start": {
- "line": 49,
+ "line": 50,
"column": 30
},
"end": {
- "line": 49,
+ "line": 50,
"column": 39
}
}
@@ -2736,16 +2630,16 @@
"type": "Identifier",
"name": "node",
"range": [
- 1372,
- 1376
+ 1392,
+ 1396
],
"loc": {
"start": {
- "line": 49,
+ "line": 50,
"column": 40
},
"end": {
- "line": 49,
+ "line": 50,
"column": 44
}
}
@@ -2754,79 +2648,79 @@
"type": "Identifier",
"name": "nodeValue",
"range": [
- 1377,
- 1386
+ 1397,
+ 1406
],
"loc": {
"start": {
- "line": 49,
+ "line": 50,
"column": 45
},
"end": {
- "line": 49,
+ "line": 50,
"column": 54
}
}
},
"range": [
- 1372,
- 1386
+ 1392,
+ 1406
],
"loc": {
"start": {
- "line": 49,
+ "line": 50,
"column": 40
},
"end": {
- "line": 49,
+ "line": 50,
"column": 54
}
}
}
],
"range": [
- 1362,
- 1387
+ 1382,
+ 1407
],
"loc": {
"start": {
- "line": 49,
+ "line": 50,
"column": 30
},
"end": {
- "line": 49,
+ "line": 50,
"column": 55
}
}
},
"range": [
- 1348,
- 1387
+ 1368,
+ 1407
],
"loc": {
"start": {
- "line": 49,
+ "line": 50,
"column": 16
},
"end": {
- "line": 49,
+ "line": 50,
"column": 55
}
}
}
],
- "kind": "var",
+ "kind": "let",
"range": [
- 1344,
- 1388
+ 1364,
+ 1408
],
"loc": {
"start": {
- "line": 49,
+ "line": 50,
"column": 12
},
"end": {
- "line": 49,
+ "line": 50,
"column": 56
}
}
@@ -2840,16 +2734,16 @@
"type": "Identifier",
"name": "tempWordVal",
"range": [
- 1405,
- 1416
+ 1425,
+ 1436
],
"loc": {
"start": {
- "line": 50,
+ "line": 51,
"column": 16
},
"end": {
- "line": 50,
+ "line": 51,
"column": 27
}
}
@@ -2863,16 +2757,16 @@
"type": "Identifier",
"name": "Str",
"range": [
- 1419,
- 1422
+ 1439,
+ 1442
],
"loc": {
"start": {
- "line": 50,
+ "line": 51,
"column": 30
},
"end": {
- "line": 50,
+ "line": 51,
"column": 33
}
}
@@ -2881,31 +2775,31 @@
"type": "Identifier",
"name": "lower",
"range": [
- 1423,
- 1428
+ 1443,
+ 1448
],
"loc": {
"start": {
- "line": 50,
+ "line": 51,
"column": 34
},
"end": {
- "line": 50,
+ "line": 51,
"column": 39
}
}
},
"range": [
- 1419,
- 1428
+ 1439,
+ 1448
],
"loc": {
"start": {
- "line": 50,
+ "line": 51,
"column": 30
},
"end": {
- "line": 50,
+ "line": 51,
"column": 39
}
}
@@ -2915,64 +2809,64 @@
"type": "Identifier",
"name": "word",
"range": [
- 1429,
- 1433
+ 1449,
+ 1453
],
"loc": {
"start": {
- "line": 50,
+ "line": 51,
"column": 40
},
"end": {
- "line": 50,
+ "line": 51,
"column": 44
}
}
}
],
"range": [
- 1419,
- 1434
+ 1439,
+ 1454
],
"loc": {
"start": {
- "line": 50,
+ "line": 51,
"column": 30
},
"end": {
- "line": 50,
+ "line": 51,
"column": 45
}
}
},
"range": [
- 1405,
- 1434
+ 1425,
+ 1454
],
"loc": {
"start": {
- "line": 50,
+ "line": 51,
"column": 16
},
"end": {
- "line": 50,
+ "line": 51,
"column": 45
}
}
}
],
- "kind": "var",
+ "kind": "let",
"range": [
- 1401,
- 1435
+ 1421,
+ 1455
],
"loc": {
"start": {
- "line": 50,
+ "line": 51,
"column": 12
},
"end": {
- "line": 50,
+ "line": 51,
"column": 46
}
}
@@ -2981,7 +2875,7 @@
"type": "IfStatement",
"test": {
"type": "BinaryExpression",
- "operator": "!=",
+ "operator": "!==",
"left": {
"type": "CallExpression",
"callee": {
@@ -2991,17 +2885,17 @@
"type": "Identifier",
"name": "tempNodeVal",
"range": [
- 1451,
- 1462
+ 1472,
+ 1483
],
"loc": {
"start": {
- "line": 51,
- "column": 15
+ "line": 52,
+ "column": 16
},
"end": {
- "line": 51,
- "column": 26
+ "line": 52,
+ "column": 27
}
}
},
@@ -3009,32 +2903,32 @@
"type": "Identifier",
"name": "indexOf",
"range": [
- 1463,
- 1470
+ 1484,
+ 1491
],
"loc": {
"start": {
- "line": 51,
- "column": 27
+ "line": 52,
+ "column": 28
},
"end": {
- "line": 51,
- "column": 34
+ "line": 52,
+ "column": 35
}
}
},
"range": [
- 1451,
- 1470
+ 1472,
+ 1491
],
"loc": {
"start": {
- "line": 51,
- "column": 15
+ "line": 52,
+ "column": 16
},
"end": {
- "line": 51,
- "column": 34
+ "line": 52,
+ "column": 35
}
}
},
@@ -3043,33 +2937,33 @@
"type": "Identifier",
"name": "tempWordVal",
"range": [
- 1471,
- 1482
+ 1492,
+ 1503
],
"loc": {
"start": {
- "line": 51,
- "column": 35
+ "line": 52,
+ "column": 36
},
"end": {
- "line": 51,
- "column": 46
+ "line": 52,
+ "column": 47
}
}
}
],
"range": [
- 1451,
- 1483
+ 1472,
+ 1504
],
"loc": {
"start": {
- "line": 51,
- "column": 15
+ "line": 52,
+ "column": 16
},
"end": {
- "line": 51,
- "column": 47
+ "line": 52,
+ "column": 48
}
}
},
@@ -3081,48 +2975,48 @@
"value": 1,
"raw": "1",
"range": [
- 1488,
- 1489
+ 1510,
+ 1511
],
"loc": {
"start": {
- "line": 51,
- "column": 52
+ "line": 52,
+ "column": 54
},
"end": {
- "line": 51,
- "column": 53
+ "line": 52,
+ "column": 55
}
}
},
"prefix": true,
"range": [
- 1487,
- 1489
+ 1509,
+ 1511
],
"loc": {
"start": {
- "line": 51,
- "column": 51
+ "line": 52,
+ "column": 53
},
"end": {
- "line": 51,
- "column": 53
+ "line": 52,
+ "column": 55
}
}
},
"range": [
- 1451,
- 1489
+ 1472,
+ 1511
],
"loc": {
"start": {
- "line": 51,
- "column": 15
+ "line": 52,
+ "column": 16
},
"end": {
- "line": 51,
- "column": 53
+ "line": 52,
+ "column": 55
}
}
},
@@ -3138,16 +3032,16 @@
"type": "Identifier",
"name": "pn",
"range": [
- 1512,
- 1514
+ 1535,
+ 1537
],
"loc": {
"start": {
- "line": 52,
+ "line": 53,
"column": 20
},
"end": {
- "line": 52,
+ "line": 53,
"column": 22
}
}
@@ -3159,16 +3053,16 @@
"type": "Identifier",
"name": "node",
"range": [
- 1517,
- 1521
+ 1540,
+ 1544
],
"loc": {
"start": {
- "line": 52,
+ "line": 53,
"column": 25
},
"end": {
- "line": 52,
+ "line": 53,
"column": 29
}
}
@@ -3177,63 +3071,63 @@
"type": "Identifier",
"name": "parentNode",
"range": [
- 1522,
- 1532
+ 1545,
+ 1555
],
"loc": {
"start": {
- "line": 52,
+ "line": 53,
"column": 30
},
"end": {
- "line": 52,
+ "line": 53,
"column": 40
}
}
},
"range": [
- 1517,
- 1532
+ 1540,
+ 1555
],
"loc": {
"start": {
- "line": 52,
+ "line": 53,
"column": 25
},
"end": {
- "line": 52,
+ "line": 53,
"column": 40
}
}
},
"range": [
- 1512,
- 1532
+ 1535,
+ 1555
],
"loc": {
"start": {
- "line": 52,
+ "line": 53,
"column": 20
},
"end": {
- "line": 52,
+ "line": 53,
"column": 40
}
}
}
],
- "kind": "var",
+ "kind": "let",
"range": [
- 1508,
- 1533
+ 1531,
+ 1556
],
"loc": {
"start": {
- "line": 52,
+ "line": 53,
"column": 16
},
"end": {
- "line": 52,
+ "line": 53,
"column": 41
}
}
@@ -3247,23 +3141,23 @@
"type": "Identifier",
"name": "pn",
"range": [
- 1553,
- 1555
+ 1577,
+ 1579
],
"loc": {
"start": {
- "line": 53,
- "column": 19
+ "line": 54,
+ "column": 20
},
"end": {
- "line": 53,
- "column": 21
+ "line": 54,
+ "column": 22
}
}
},
"right": {
"type": "BinaryExpression",
- "operator": "!=",
+ "operator": "!==",
"left": {
"type": "MemberExpression",
"computed": false,
@@ -3271,17 +3165,17 @@
"type": "Identifier",
"name": "pn",
"range": [
- 1559,
- 1561
+ 1583,
+ 1585
],
"loc": {
"start": {
- "line": 53,
- "column": 25
+ "line": 54,
+ "column": 26
},
"end": {
- "line": 53,
- "column": 27
+ "line": 54,
+ "column": 28
}
}
},
@@ -3289,32 +3183,32 @@
"type": "Identifier",
"name": "className",
"range": [
- 1562,
- 1571
+ 1586,
+ 1595
],
"loc": {
"start": {
- "line": 53,
- "column": 28
+ "line": 54,
+ "column": 29
},
"end": {
- "line": 53,
- "column": 37
+ "line": 54,
+ "column": 38
}
}
},
"range": [
- 1559,
- 1571
+ 1583,
+ 1595
],
"loc": {
"start": {
- "line": 53,
- "column": 25
+ "line": 54,
+ "column": 26
},
"end": {
- "line": 53,
- "column": 37
+ "line": 54,
+ "column": 38
}
}
},
@@ -3322,47 +3216,47 @@
"type": "Identifier",
"name": "cssClass",
"range": [
- 1575,
- 1583
+ 1600,
+ 1608
],
"loc": {
"start": {
- "line": 53,
- "column": 41
+ "line": 54,
+ "column": 43
},
"end": {
- "line": 53,
- "column": 49
+ "line": 54,
+ "column": 51
}
}
},
"range": [
- 1559,
- 1583
+ 1583,
+ 1608
],
"loc": {
"start": {
- "line": 53,
- "column": 25
+ "line": 54,
+ "column": 26
},
"end": {
- "line": 53,
- "column": 49
+ "line": 54,
+ "column": 51
}
}
},
"range": [
- 1553,
- 1583
+ 1577,
+ 1608
],
"loc": {
"start": {
- "line": 53,
- "column": 19
+ "line": 54,
+ "column": 20
},
"end": {
- "line": 53,
- "column": 49
+ "line": 54,
+ "column": 51
}
}
},
@@ -3378,16 +3272,16 @@
"type": "Identifier",
"name": "nv",
"range": [
- 1658,
- 1660
+ 1684,
+ 1686
],
"loc": {
"start": {
- "line": 55,
+ "line": 56,
"column": 24
},
"end": {
- "line": 55,
+ "line": 56,
"column": 26
}
}
@@ -3399,16 +3293,16 @@
"type": "Identifier",
"name": "node",
"range": [
- 1663,
- 1667
+ 1689,
+ 1693
],
"loc": {
"start": {
- "line": 55,
+ "line": 56,
"column": 29
},
"end": {
- "line": 55,
+ "line": 56,
"column": 33
}
}
@@ -3417,46 +3311,46 @@
"type": "Identifier",
"name": "nodeValue",
"range": [
- 1668,
- 1677
+ 1694,
+ 1703
],
"loc": {
"start": {
- "line": 55,
+ "line": 56,
"column": 34
},
"end": {
- "line": 55,
+ "line": 56,
"column": 43
}
}
},
"range": [
- 1663,
- 1677
+ 1689,
+ 1703
],
"loc": {
"start": {
- "line": 55,
+ "line": 56,
"column": 29
},
"end": {
- "line": 55,
+ "line": 56,
"column": 43
}
}
},
"range": [
- 1658,
- 1677
+ 1684,
+ 1703
],
"loc": {
"start": {
- "line": 55,
+ "line": 56,
"column": 24
},
"end": {
- "line": 55,
+ "line": 56,
"column": 43
}
}
@@ -3467,16 +3361,16 @@
"type": "Identifier",
"name": "ni",
"range": [
- 1703,
- 1705
+ 1729,
+ 1731
],
"loc": {
"start": {
- "line": 56,
+ "line": 57,
"column": 24
},
"end": {
- "line": 56,
+ "line": 57,
"column": 26
}
}
@@ -3490,16 +3384,16 @@
"type": "Identifier",
"name": "tempNodeVal",
"range": [
- 1708,
- 1719
+ 1734,
+ 1745
],
"loc": {
"start": {
- "line": 56,
+ "line": 57,
"column": 29
},
"end": {
- "line": 56,
+ "line": 57,
"column": 40
}
}
@@ -3508,31 +3402,31 @@
"type": "Identifier",
"name": "indexOf",
"range": [
- 1720,
- 1727
+ 1746,
+ 1753
],
"loc": {
"start": {
- "line": 56,
+ "line": 57,
"column": 41
},
"end": {
- "line": 56,
+ "line": 57,
"column": 48
}
}
},
"range": [
- 1708,
- 1727
+ 1734,
+ 1753
],
"loc": {
"start": {
- "line": 56,
+ "line": 57,
"column": 29
},
"end": {
- "line": 56,
+ "line": 57,
"column": 48
}
}
@@ -3542,47 +3436,47 @@
"type": "Identifier",
"name": "tempWordVal",
"range": [
- 1728,
- 1739
+ 1754,
+ 1765
],
"loc": {
"start": {
- "line": 56,
+ "line": 57,
"column": 49
},
"end": {
- "line": 56,
+ "line": 57,
"column": 60
}
}
}
],
"range": [
- 1708,
- 1740
+ 1734,
+ 1766
],
"loc": {
"start": {
- "line": 56,
+ "line": 57,
"column": 29
},
"end": {
- "line": 56,
+ "line": 57,
"column": 61
}
}
},
"range": [
- 1703,
- 1740
+ 1729,
+ 1766
],
"loc": {
"start": {
- "line": 56,
+ "line": 57,
"column": 24
},
"end": {
- "line": 56,
+ "line": 57,
"column": 61
}
}
@@ -3593,16 +3487,16 @@
"type": "Identifier",
"name": "before",
"range": [
- 1828,
- 1834
+ 1854,
+ 1860
],
"loc": {
"start": {
- "line": 58,
+ "line": 59,
"column": 24
},
"end": {
- "line": 58,
+ "line": 59,
"column": 30
}
}
@@ -3616,16 +3510,16 @@
"type": "Identifier",
"name": "Dom",
"range": [
- 1837,
- 1840
+ 1863,
+ 1866
],
"loc": {
"start": {
- "line": 58,
+ "line": 59,
"column": 33
},
"end": {
- "line": 58,
+ "line": 59,
"column": 36
}
}
@@ -3634,31 +3528,31 @@
"type": "Identifier",
"name": "text",
"range": [
- 1841,
- 1845
+ 1867,
+ 1871
],
"loc": {
"start": {
- "line": 58,
+ "line": 59,
"column": 37
},
"end": {
- "line": 58,
+ "line": 59,
"column": 41
}
}
},
"range": [
- 1837,
- 1845
+ 1863,
+ 1871
],
"loc": {
"start": {
- "line": 58,
+ "line": 59,
"column": 33
},
"end": {
- "line": 58,
+ "line": 59,
"column": 41
}
}
@@ -3673,16 +3567,16 @@
"type": "Identifier",
"name": "nv",
"range": [
- 1846,
- 1848
+ 1872,
+ 1874
],
"loc": {
"start": {
- "line": 58,
+ "line": 59,
"column": 42
},
"end": {
- "line": 58,
+ "line": 59,
"column": 44
}
}
@@ -3691,31 +3585,31 @@
"type": "Identifier",
"name": "substr",
"range": [
- 1849,
- 1855
+ 1875,
+ 1881
],
"loc": {
"start": {
- "line": 58,
+ "line": 59,
"column": 45
},
"end": {
- "line": 58,
+ "line": 59,
"column": 51
}
}
},
"range": [
- 1846,
- 1855
+ 1872,
+ 1881
],
"loc": {
"start": {
- "line": 58,
+ "line": 59,
"column": 42
},
"end": {
- "line": 58,
+ "line": 59,
"column": 51
}
}
@@ -3726,16 +3620,16 @@
"value": 0,
"raw": "0",
"range": [
- 1856,
- 1857
+ 1882,
+ 1883
],
"loc": {
"start": {
- "line": 58,
+ "line": 59,
"column": 52
},
"end": {
- "line": 58,
+ "line": 59,
"column": 53
}
}
@@ -3744,63 +3638,63 @@
"type": "Identifier",
"name": "ni",
"range": [
- 1859,
- 1861
+ 1885,
+ 1887
],
"loc": {
"start": {
- "line": 58,
+ "line": 59,
"column": 55
},
"end": {
- "line": 58,
+ "line": 59,
"column": 57
}
}
}
],
"range": [
- 1846,
- 1862
+ 1872,
+ 1888
],
"loc": {
"start": {
- "line": 58,
+ "line": 59,
"column": 42
},
"end": {
- "line": 58,
+ "line": 59,
"column": 58
}
}
}
],
"range": [
- 1837,
- 1863
+ 1863,
+ 1889
],
"loc": {
"start": {
- "line": 58,
+ "line": 59,
"column": 33
},
"end": {
- "line": 58,
+ "line": 59,
"column": 59
}
}
},
"range": [
- 1828,
- 1863
+ 1854,
+ 1889
],
"loc": {
"start": {
- "line": 58,
+ "line": 59,
"column": 24
},
"end": {
- "line": 58,
+ "line": 59,
"column": 59
}
},
@@ -3809,16 +3703,16 @@
"type": "Line",
"value": " Create a load of replacement nodes",
"range": [
- 1766,
- 1803
+ 1792,
+ 1829
],
"loc": {
"start": {
- "line": 57,
+ "line": 58,
"column": 24
},
"end": {
- "line": 57,
+ "line": 58,
"column": 61
}
}
@@ -3831,16 +3725,16 @@
"type": "Identifier",
"name": "docWordVal",
"range": [
- 1889,
- 1899
+ 1915,
+ 1925
],
"loc": {
"start": {
- "line": 59,
+ "line": 60,
"column": 24
},
"end": {
- "line": 59,
+ "line": 60,
"column": 34
}
}
@@ -3854,16 +3748,16 @@
"type": "Identifier",
"name": "nv",
"range": [
- 1902,
- 1904
+ 1928,
+ 1930
],
"loc": {
"start": {
- "line": 59,
+ "line": 60,
"column": 37
},
"end": {
- "line": 59,
+ "line": 60,
"column": 39
}
}
@@ -3872,31 +3766,31 @@
"type": "Identifier",
"name": "substr",
"range": [
- 1905,
- 1911
+ 1931,
+ 1937
],
"loc": {
"start": {
- "line": 59,
+ "line": 60,
"column": 40
},
"end": {
- "line": 59,
+ "line": 60,
"column": 46
}
}
},
"range": [
- 1902,
- 1911
+ 1928,
+ 1937
],
"loc": {
"start": {
- "line": 59,
+ "line": 60,
"column": 37
},
"end": {
- "line": 59,
+ "line": 60,
"column": 46
}
}
@@ -3906,16 +3800,16 @@
"type": "Identifier",
"name": "ni",
"range": [
- 1912,
- 1914
+ 1938,
+ 1940
],
"loc": {
"start": {
- "line": 59,
+ "line": 60,
"column": 47
},
"end": {
- "line": 59,
+ "line": 60,
"column": 49
}
}
@@ -3927,17 +3821,17 @@
"type": "Identifier",
"name": "word",
"range": [
- 1915,
- 1919
+ 1942,
+ 1946
],
"loc": {
"start": {
- "line": 59,
- "column": 50
+ "line": 60,
+ "column": 51
},
"end": {
- "line": 59,
- "column": 54
+ "line": 60,
+ "column": 55
}
}
},
@@ -3945,63 +3839,63 @@
"type": "Identifier",
"name": "length",
"range": [
- 1920,
- 1926
+ 1947,
+ 1953
],
"loc": {
"start": {
- "line": 59,
- "column": 55
+ "line": 60,
+ "column": 56
},
"end": {
- "line": 59,
- "column": 61
+ "line": 60,
+ "column": 62
}
}
},
"range": [
- 1915,
- 1926
+ 1942,
+ 1953
],
"loc": {
"start": {
- "line": 59,
- "column": 50
+ "line": 60,
+ "column": 51
},
"end": {
- "line": 59,
- "column": 61
+ "line": 60,
+ "column": 62
}
}
}
],
"range": [
- 1902,
- 1927
+ 1928,
+ 1954
],
"loc": {
"start": {
- "line": 59,
+ "line": 60,
"column": 37
},
"end": {
- "line": 59,
- "column": 62
+ "line": 60,
+ "column": 63
}
}
},
"range": [
- 1889,
- 1927
+ 1915,
+ 1954
],
"loc": {
"start": {
- "line": 59,
+ "line": 60,
"column": 24
},
"end": {
- "line": 59,
- "column": 62
+ "line": 60,
+ "column": 63
}
}
},
@@ -4011,16 +3905,16 @@
"type": "Identifier",
"name": "after",
"range": [
- 1953,
- 1958
+ 1980,
+ 1985
],
"loc": {
"start": {
- "line": 60,
+ "line": 61,
"column": 24
},
"end": {
- "line": 60,
+ "line": 61,
"column": 29
}
}
@@ -4034,16 +3928,16 @@
"type": "Identifier",
"name": "Dom",
"range": [
- 1961,
- 1964
+ 1988,
+ 1991
],
"loc": {
"start": {
- "line": 60,
+ "line": 61,
"column": 32
},
"end": {
- "line": 60,
+ "line": 61,
"column": 35
}
}
@@ -4052,31 +3946,31 @@
"type": "Identifier",
"name": "text",
"range": [
- 1965,
- 1969
+ 1992,
+ 1996
],
"loc": {
"start": {
- "line": 60,
+ "line": 61,
"column": 36
},
"end": {
- "line": 60,
+ "line": 61,
"column": 40
}
}
},
"range": [
- 1961,
- 1969
+ 1988,
+ 1996
],
"loc": {
"start": {
- "line": 60,
+ "line": 61,
"column": 32
},
"end": {
- "line": 60,
+ "line": 61,
"column": 40
}
}
@@ -4091,16 +3985,16 @@
"type": "Identifier",
"name": "nv",
"range": [
- 1970,
- 1972
+ 1997,
+ 1999
],
"loc": {
"start": {
- "line": 60,
+ "line": 61,
"column": 41
},
"end": {
- "line": 60,
+ "line": 61,
"column": 43
}
}
@@ -4109,31 +4003,31 @@
"type": "Identifier",
"name": "substr",
"range": [
- 1973,
- 1979
+ 2000,
+ 2006
],
"loc": {
"start": {
- "line": 60,
+ "line": 61,
"column": 44
},
"end": {
- "line": 60,
+ "line": 61,
"column": 50
}
}
},
"range": [
- 1970,
- 1979
+ 1997,
+ 2006
],
"loc": {
"start": {
- "line": 60,
+ "line": 61,
"column": 41
},
"end": {
- "line": 60,
+ "line": 61,
"column": 50
}
}
@@ -4146,16 +4040,16 @@
"type": "Identifier",
"name": "ni",
"range": [
- 1980,
- 1982
+ 2007,
+ 2009
],
"loc": {
"start": {
- "line": 60,
+ "line": 61,
"column": 51
},
"end": {
- "line": 60,
+ "line": 61,
"column": 53
}
}
@@ -4167,17 +4061,17 @@
"type": "Identifier",
"name": "word",
"range": [
- 1983,
- 1987
+ 2012,
+ 2016
],
"loc": {
"start": {
- "line": 60,
- "column": 54
+ "line": 61,
+ "column": 56
},
"end": {
- "line": 60,
- "column": 58
+ "line": 61,
+ "column": 60
}
}
},
@@ -4185,94 +4079,94 @@
"type": "Identifier",
"name": "length",
"range": [
- 1988,
- 1994
+ 2017,
+ 2023
],
"loc": {
"start": {
- "line": 60,
- "column": 59
+ "line": 61,
+ "column": 61
},
"end": {
- "line": 60,
- "column": 65
+ "line": 61,
+ "column": 67
}
}
},
"range": [
- 1983,
- 1994
+ 2012,
+ 2023
],
"loc": {
"start": {
- "line": 60,
- "column": 54
+ "line": 61,
+ "column": 56
},
"end": {
- "line": 60,
- "column": 65
+ "line": 61,
+ "column": 67
}
}
},
"range": [
- 1980,
- 1994
+ 2007,
+ 2023
],
"loc": {
"start": {
- "line": 60,
+ "line": 61,
"column": 51
},
"end": {
- "line": 60,
- "column": 65
+ "line": 61,
+ "column": 67
}
}
}
],
"range": [
- 1970,
- 1995
+ 1997,
+ 2024
],
"loc": {
"start": {
- "line": 60,
+ "line": 61,
"column": 41
},
"end": {
- "line": 60,
- "column": 66
+ "line": 61,
+ "column": 68
}
}
}
],
"range": [
- 1961,
- 1996
+ 1988,
+ 2025
],
"loc": {
"start": {
- "line": 60,
+ "line": 61,
"column": 32
},
"end": {
- "line": 60,
- "column": 67
+ "line": 61,
+ "column": 69
}
}
},
"range": [
- 1953,
- 1996
+ 1980,
+ 2025
],
"loc": {
"start": {
- "line": 60,
+ "line": 61,
"column": 24
},
"end": {
- "line": 60,
- "column": 67
+ "line": 61,
+ "column": 69
}
}
},
@@ -4282,16 +4176,16 @@
"type": "Identifier",
"name": "hiwordtext",
"range": [
- 2022,
- 2032
+ 2051,
+ 2061
],
"loc": {
"start": {
- "line": 61,
+ "line": 62,
"column": 24
},
"end": {
- "line": 61,
+ "line": 62,
"column": 34
}
}
@@ -4305,16 +4199,16 @@
"type": "Identifier",
"name": "Dom",
"range": [
- 2035,
- 2038
+ 2064,
+ 2067
],
"loc": {
"start": {
- "line": 61,
+ "line": 62,
"column": 37
},
"end": {
- "line": 61,
+ "line": 62,
"column": 40
}
}
@@ -4323,31 +4217,31 @@
"type": "Identifier",
"name": "text",
"range": [
- 2039,
- 2043
+ 2068,
+ 2072
],
"loc": {
"start": {
- "line": 61,
+ "line": 62,
"column": 41
},
"end": {
- "line": 61,
+ "line": 62,
"column": 45
}
}
},
"range": [
- 2035,
- 2043
+ 2064,
+ 2072
],
"loc": {
"start": {
- "line": 61,
+ "line": 62,
"column": 37
},
"end": {
- "line": 61,
+ "line": 62,
"column": 45
}
}
@@ -4357,47 +4251,47 @@
"type": "Identifier",
"name": "docWordVal",
"range": [
- 2044,
- 2054
+ 2073,
+ 2083
],
"loc": {
"start": {
- "line": 61,
+ "line": 62,
"column": 46
},
"end": {
- "line": 61,
+ "line": 62,
"column": 56
}
}
}
],
"range": [
- 2035,
- 2055
+ 2064,
+ 2084
],
"loc": {
"start": {
- "line": 61,
+ "line": 62,
"column": 37
},
"end": {
- "line": 61,
+ "line": 62,
"column": 57
}
}
},
"range": [
- 2022,
- 2055
+ 2051,
+ 2084
],
"loc": {
"start": {
- "line": 61,
+ "line": 62,
"column": 24
},
"end": {
- "line": 61,
+ "line": 62,
"column": 57
}
}
@@ -4408,16 +4302,16 @@
"type": "Identifier",
"name": "hiword",
"range": [
- 2081,
- 2087
+ 2110,
+ 2116
],
"loc": {
"start": {
- "line": 62,
+ "line": 63,
"column": 24
},
"end": {
- "line": 62,
+ "line": 63,
"column": 30
}
}
@@ -4431,16 +4325,16 @@
"type": "Identifier",
"name": "Dom",
"range": [
- 2090,
- 2093
+ 2119,
+ 2122
],
"loc": {
"start": {
- "line": 62,
+ "line": 63,
"column": 33
},
"end": {
- "line": 62,
+ "line": 63,
"column": 36
}
}
@@ -4449,31 +4343,31 @@
"type": "Identifier",
"name": "create",
"range": [
- 2094,
- 2100
+ 2123,
+ 2129
],
"loc": {
"start": {
- "line": 62,
+ "line": 63,
"column": 37
},
"end": {
- "line": 62,
+ "line": 63,
"column": 43
}
}
},
"range": [
- 2090,
- 2100
+ 2119,
+ 2129
],
"loc": {
"start": {
- "line": 62,
+ "line": 63,
"column": 33
},
"end": {
- "line": 62,
+ "line": 63,
"column": 43
}
}
@@ -4484,64 +4378,64 @@
"value": "span",
"raw": "'span'",
"range": [
- 2101,
- 2107
+ 2130,
+ 2136
],
"loc": {
"start": {
- "line": 62,
+ "line": 63,
"column": 44
},
"end": {
- "line": 62,
+ "line": 63,
"column": 50
}
}
}
],
"range": [
- 2090,
- 2108
+ 2119,
+ 2137
],
"loc": {
"start": {
- "line": 62,
+ "line": 63,
"column": 33
},
"end": {
- "line": 62,
+ "line": 63,
"column": 51
}
}
},
"range": [
- 2081,
- 2108
+ 2110,
+ 2137
],
"loc": {
"start": {
- "line": 62,
+ "line": 63,
"column": 24
},
"end": {
- "line": 62,
+ "line": 63,
"column": 51
}
}
}
],
- "kind": "var",
+ "kind": "let",
"range": [
- 1654,
- 2109
+ 1680,
+ 2138
],
"loc": {
"start": {
- "line": 55,
+ "line": 56,
"column": 20
},
"end": {
- "line": 62,
+ "line": 63,
"column": 52
}
},
@@ -4550,16 +4444,16 @@
"type": "Line",
"value": " word not highlighted yet",
"range": [
- 1606,
- 1633
+ 1632,
+ 1659
],
"loc": {
"start": {
- "line": 54,
+ "line": 55,
"column": 20
},
"end": {
- "line": 54,
+ "line": 55,
"column": 47
}
}
@@ -4578,16 +4472,16 @@
"type": "Identifier",
"name": "hiword",
"range": [
- 2130,
- 2136
+ 2159,
+ 2165
],
"loc": {
"start": {
- "line": 63,
+ "line": 64,
"column": 20
},
"end": {
- "line": 63,
+ "line": 64,
"column": 26
}
}
@@ -4596,31 +4490,31 @@
"type": "Identifier",
"name": "className",
"range": [
- 2137,
- 2146
+ 2166,
+ 2175
],
"loc": {
"start": {
- "line": 63,
+ "line": 64,
"column": 27
},
"end": {
- "line": 63,
+ "line": 64,
"column": 36
}
}
},
"range": [
- 2130,
- 2146
+ 2159,
+ 2175
],
"loc": {
"start": {
- "line": 63,
+ "line": 64,
"column": 20
},
"end": {
- "line": 63,
+ "line": 64,
"column": 36
}
}
@@ -4629,46 +4523,46 @@
"type": "Identifier",
"name": "cssClass",
"range": [
- 2149,
- 2157
+ 2178,
+ 2186
],
"loc": {
"start": {
- "line": 63,
+ "line": 64,
"column": 39
},
"end": {
- "line": 63,
+ "line": 64,
"column": 47
}
}
},
"range": [
- 2130,
- 2157
+ 2159,
+ 2186
],
"loc": {
"start": {
- "line": 63,
+ "line": 64,
"column": 20
},
"end": {
- "line": 63,
+ "line": 64,
"column": 47
}
}
},
"range": [
- 2130,
- 2158
+ 2159,
+ 2187
],
"loc": {
"start": {
- "line": 63,
+ "line": 64,
"column": 20
},
"end": {
- "line": 63,
+ "line": 64,
"column": 48
}
}
@@ -4684,16 +4578,16 @@
"type": "Identifier",
"name": "hiword",
"range": [
- 2179,
- 2185
+ 2208,
+ 2214
],
"loc": {
"start": {
- "line": 64,
+ "line": 65,
"column": 20
},
"end": {
- "line": 64,
+ "line": 65,
"column": 26
}
}
@@ -4702,31 +4596,31 @@
"type": "Identifier",
"name": "appendChild",
"range": [
- 2186,
- 2197
+ 2215,
+ 2226
],
"loc": {
"start": {
- "line": 64,
+ "line": 65,
"column": 27
},
"end": {
- "line": 64,
+ "line": 65,
"column": 38
}
}
},
"range": [
- 2179,
- 2197
+ 2208,
+ 2226
],
"loc": {
"start": {
- "line": 64,
+ "line": 65,
"column": 20
},
"end": {
- "line": 64,
+ "line": 65,
"column": 38
}
}
@@ -4736,47 +4630,47 @@
"type": "Identifier",
"name": "hiwordtext",
"range": [
- 2198,
- 2208
+ 2227,
+ 2237
],
"loc": {
"start": {
- "line": 64,
+ "line": 65,
"column": 39
},
"end": {
- "line": 64,
+ "line": 65,
"column": 49
}
}
}
],
"range": [
- 2179,
- 2209
+ 2208,
+ 2238
],
"loc": {
"start": {
- "line": 64,
+ "line": 65,
"column": 20
},
"end": {
- "line": 64,
+ "line": 65,
"column": 50
}
}
},
"range": [
- 2179,
- 2210
+ 2208,
+ 2239
],
"loc": {
"start": {
- "line": 64,
+ "line": 65,
"column": 20
},
"end": {
- "line": 64,
+ "line": 65,
"column": 51
}
}
@@ -4792,16 +4686,16 @@
"type": "Identifier",
"name": "pn",
"range": [
- 2231,
- 2233
+ 2260,
+ 2262
],
"loc": {
"start": {
- "line": 65,
+ "line": 66,
"column": 20
},
"end": {
- "line": 65,
+ "line": 66,
"column": 22
}
}
@@ -4810,31 +4704,31 @@
"type": "Identifier",
"name": "insertBefore",
"range": [
- 2234,
- 2246
+ 2263,
+ 2275
],
"loc": {
"start": {
- "line": 65,
+ "line": 66,
"column": 23
},
"end": {
- "line": 65,
+ "line": 66,
"column": 35
}
}
},
"range": [
- 2231,
- 2246
+ 2260,
+ 2275
],
"loc": {
"start": {
- "line": 65,
+ "line": 66,
"column": 20
},
"end": {
- "line": 65,
+ "line": 66,
"column": 35
}
}
@@ -4844,16 +4738,16 @@
"type": "Identifier",
"name": "before",
"range": [
- 2247,
- 2253
+ 2276,
+ 2282
],
"loc": {
"start": {
- "line": 65,
+ "line": 66,
"column": 36
},
"end": {
- "line": 65,
+ "line": 66,
"column": 42
}
}
@@ -4862,48 +4756,48 @@
"type": "Identifier",
"name": "node",
"range": [
- 2254,
- 2258
+ 2284,
+ 2288
],
"loc": {
"start": {
- "line": 65,
- "column": 43
+ "line": 66,
+ "column": 44
},
"end": {
- "line": 65,
- "column": 47
+ "line": 66,
+ "column": 48
}
}
}
],
"range": [
- 2231,
- 2259
+ 2260,
+ 2289
],
"loc": {
"start": {
- "line": 65,
+ "line": 66,
"column": 20
},
"end": {
- "line": 65,
- "column": 48
+ "line": 66,
+ "column": 49
}
}
},
"range": [
- 2231,
- 2260
+ 2260,
+ 2290
],
"loc": {
"start": {
- "line": 65,
+ "line": 66,
"column": 20
},
"end": {
- "line": 65,
- "column": 49
+ "line": 66,
+ "column": 50
}
}
},
@@ -4918,16 +4812,16 @@
"type": "Identifier",
"name": "pn",
"range": [
- 2281,
- 2283
+ 2311,
+ 2313
],
"loc": {
"start": {
- "line": 66,
+ "line": 67,
"column": 20
},
"end": {
- "line": 66,
+ "line": 67,
"column": 22
}
}
@@ -4936,31 +4830,31 @@
"type": "Identifier",
"name": "insertBefore",
"range": [
- 2284,
- 2296
+ 2314,
+ 2326
],
"loc": {
"start": {
- "line": 66,
+ "line": 67,
"column": 23
},
"end": {
- "line": 66,
+ "line": 67,
"column": 35
}
}
},
"range": [
- 2281,
- 2296
+ 2311,
+ 2326
],
"loc": {
"start": {
- "line": 66,
+ "line": 67,
"column": 20
},
"end": {
- "line": 66,
+ "line": 67,
"column": 35
}
}
@@ -4970,16 +4864,16 @@
"type": "Identifier",
"name": "hiword",
"range": [
- 2297,
- 2303
+ 2327,
+ 2333
],
"loc": {
"start": {
- "line": 66,
+ "line": 67,
"column": 36
},
"end": {
- "line": 66,
+ "line": 67,
"column": 42
}
}
@@ -4988,47 +4882,173 @@
"type": "Identifier",
"name": "node",
"range": [
- 2304,
- 2308
+ 2335,
+ 2339
],
"loc": {
"start": {
- "line": 66,
+ "line": 67,
+ "column": 44
+ },
+ "end": {
+ "line": 67,
+ "column": 48
+ }
+ }
+ }
+ ],
+ "range": [
+ 2311,
+ 2340
+ ],
+ "loc": {
+ "start": {
+ "line": 67,
+ "column": 20
+ },
+ "end": {
+ "line": 67,
+ "column": 49
+ }
+ }
+ },
+ "range": [
+ 2311,
+ 2341
+ ],
+ "loc": {
+ "start": {
+ "line": 67,
+ "column": 20
+ },
+ "end": {
+ "line": 67,
+ "column": 50
+ }
+ }
+ },
+ {
+ "type": "ExpressionStatement",
+ "expression": {
+ "type": "CallExpression",
+ "callee": {
+ "type": "MemberExpression",
+ "computed": false,
+ "object": {
+ "type": "Identifier",
+ "name": "pn",
+ "range": [
+ 2362,
+ 2364
+ ],
+ "loc": {
+ "start": {
+ "line": 68,
+ "column": 20
+ },
+ "end": {
+ "line": 68,
+ "column": 22
+ }
+ }
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "insertBefore",
+ "range": [
+ 2365,
+ 2377
+ ],
+ "loc": {
+ "start": {
+ "line": 68,
+ "column": 23
+ },
+ "end": {
+ "line": 68,
+ "column": 35
+ }
+ }
+ },
+ "range": [
+ 2362,
+ 2377
+ ],
+ "loc": {
+ "start": {
+ "line": 68,
+ "column": 20
+ },
+ "end": {
+ "line": 68,
+ "column": 35
+ }
+ }
+ },
+ "arguments": [
+ {
+ "type": "Identifier",
+ "name": "after",
+ "range": [
+ 2378,
+ 2383
+ ],
+ "loc": {
+ "start": {
+ "line": 68,
+ "column": 36
+ },
+ "end": {
+ "line": 68,
+ "column": 41
+ }
+ }
+ },
+ {
+ "type": "Identifier",
+ "name": "node",
+ "range": [
+ 2385,
+ 2389
+ ],
+ "loc": {
+ "start": {
+ "line": 68,
"column": 43
},
"end": {
- "line": 66,
+ "line": 68,
"column": 47
}
}
}
],
"range": [
- 2281,
- 2309
+ 2362,
+ 2390
],
"loc": {
"start": {
- "line": 66,
+ "line": 68,
"column": 20
},
"end": {
- "line": 66,
+ "line": 68,
"column": 48
}
}
},
"range": [
- 2281,
- 2310
+ 2362,
+ 2391
],
"loc": {
"start": {
- "line": 66,
+ "line": 68,
"column": 20
},
"end": {
- "line": 66,
+ "line": 68,
"column": 49
}
}
@@ -5044,142 +5064,16 @@
"type": "Identifier",
"name": "pn",
"range": [
- 2331,
- 2333
+ 2412,
+ 2414
],
"loc": {
"start": {
- "line": 67,
+ "line": 69,
"column": 20
},
"end": {
- "line": 67,
- "column": 22
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "insertBefore",
- "range": [
- 2334,
- 2346
- ],
- "loc": {
- "start": {
- "line": 67,
- "column": 23
- },
- "end": {
- "line": 67,
- "column": 35
- }
- }
- },
- "range": [
- 2331,
- 2346
- ],
- "loc": {
- "start": {
- "line": 67,
- "column": 20
- },
- "end": {
- "line": 67,
- "column": 35
- }
- }
- },
- "arguments": [
- {
- "type": "Identifier",
- "name": "after",
- "range": [
- 2347,
- 2352
- ],
- "loc": {
- "start": {
- "line": 67,
- "column": 36
- },
- "end": {
- "line": 67,
- "column": 41
- }
- }
- },
- {
- "type": "Identifier",
- "name": "node",
- "range": [
- 2353,
- 2357
- ],
- "loc": {
- "start": {
- "line": 67,
- "column": 42
- },
- "end": {
- "line": 67,
- "column": 46
- }
- }
- }
- ],
- "range": [
- 2331,
- 2358
- ],
- "loc": {
- "start": {
- "line": 67,
- "column": 20
- },
- "end": {
- "line": 67,
- "column": 47
- }
- }
- },
- "range": [
- 2331,
- 2359
- ],
- "loc": {
- "start": {
- "line": 67,
- "column": 20
- },
- "end": {
- "line": 67,
- "column": 48
- }
- }
- },
- {
- "type": "ExpressionStatement",
- "expression": {
- "type": "CallExpression",
- "callee": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "Identifier",
- "name": "pn",
- "range": [
- 2380,
- 2382
- ],
- "loc": {
- "start": {
- "line": 68,
- "column": 20
- },
- "end": {
- "line": 68,
+ "line": 69,
"column": 22
}
}
@@ -5188,31 +5082,31 @@
"type": "Identifier",
"name": "removeChild",
"range": [
- 2383,
- 2394
+ 2415,
+ 2426
],
"loc": {
"start": {
- "line": 68,
+ "line": 69,
"column": 23
},
"end": {
- "line": 68,
+ "line": 69,
"column": 34
}
}
},
"range": [
- 2380,
- 2394
+ 2412,
+ 2426
],
"loc": {
"start": {
- "line": 68,
+ "line": 69,
"column": 20
},
"end": {
- "line": 68,
+ "line": 69,
"column": 34
}
}
@@ -5222,239 +5116,60 @@
"type": "Identifier",
"name": "node",
"range": [
- 2395,
- 2399
+ 2427,
+ 2431
],
"loc": {
"start": {
- "line": 68,
+ "line": 69,
"column": 35
},
"end": {
- "line": 68,
+ "line": 69,
"column": 39
}
}
}
],
"range": [
- 2380,
- 2400
+ 2412,
+ 2432
],
"loc": {
"start": {
- "line": 68,
+ "line": 69,
"column": 20
},
"end": {
- "line": 68,
+ "line": 69,
"column": 40
}
}
},
"range": [
- 2380,
- 2401
+ 2412,
+ 2433
],
"loc": {
"start": {
- "line": 68,
+ "line": 69,
"column": 20
},
"end": {
- "line": 68,
+ "line": 69,
"column": 41
}
}
- },
- {
- "type": "ExpressionStatement",
- "expression": {
- "type": "CallExpression",
- "callee": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "ThisExpression",
- "range": [
- 2422,
- 2426
- ],
- "loc": {
- "start": {
- "line": 69,
- "column": 20
- },
- "end": {
- "line": 69,
- "column": 24
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "highlightedNodes",
- "range": [
- 2427,
- 2443
- ],
- "loc": {
- "start": {
- "line": 69,
- "column": 25
- },
- "end": {
- "line": 69,
- "column": 41
- }
- }
- },
- "range": [
- 2422,
- 2443
- ],
- "loc": {
- "start": {
- "line": 69,
- "column": 20
- },
- "end": {
- "line": 69,
- "column": 41
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "push",
- "range": [
- 2444,
- 2448
- ],
- "loc": {
- "start": {
- "line": 69,
- "column": 42
- },
- "end": {
- "line": 69,
- "column": 46
- }
- }
- },
- "range": [
- 2422,
- 2448
- ],
- "loc": {
- "start": {
- "line": 69,
- "column": 20
- },
- "end": {
- "line": 69,
- "column": 46
- }
- }
- },
- "arguments": [
- {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "Identifier",
- "name": "hiword",
- "range": [
- 2449,
- 2455
- ],
- "loc": {
- "start": {
- "line": 69,
- "column": 47
- },
- "end": {
- "line": 69,
- "column": 53
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "firstChild",
- "range": [
- 2456,
- 2466
- ],
- "loc": {
- "start": {
- "line": 69,
- "column": 54
- },
- "end": {
- "line": 69,
- "column": 64
- }
- }
- },
- "range": [
- 2449,
- 2466
- ],
- "loc": {
- "start": {
- "line": 69,
- "column": 47
- },
- "end": {
- "line": 69,
- "column": 64
- }
- }
- }
- ],
- "range": [
- 2422,
- 2467
- ],
- "loc": {
- "start": {
- "line": 69,
- "column": 20
- },
- "end": {
- "line": 69,
- "column": 65
- }
- }
- },
- "range": [
- 2422,
- 2468
- ],
- "loc": {
- "start": {
- "line": 69,
- "column": 20
- },
- "end": {
- "line": 69,
- "column": 66
- }
- }
}
],
"range": [
- 1584,
- 2486
+ 1610,
+ 2451
],
"loc": {
"start": {
- "line": 53,
- "column": 50
+ "line": 54,
+ "column": 53
},
"end": {
"line": 70,
@@ -5464,12 +5179,12 @@
},
"alternate": null,
"range": [
- 1550,
- 2486
+ 1573,
+ 2451
],
"loc": {
"start": {
- "line": 53,
+ "line": 54,
"column": 16
},
"end": {
@@ -5480,13 +5195,13 @@
}
],
"range": [
- 1490,
- 2500
+ 1513,
+ 2465
],
"loc": {
"start": {
- "line": 51,
- "column": 54
+ "line": 52,
+ "column": 57
},
"end": {
"line": 71,
@@ -5496,12 +5211,12 @@
},
"alternate": null,
"range": [
- 1448,
- 2500
+ 1468,
+ 2465
],
"loc": {
"start": {
- "line": 51,
+ "line": 52,
"column": 12
},
"end": {
@@ -5512,13 +5227,13 @@
}
],
"range": [
- 1330,
- 2510
+ 1350,
+ 2475
],
"loc": {
"start": {
- "line": 48,
- "column": 31
+ "line": 49,
+ "column": 33
},
"end": {
"line": 72,
@@ -5528,12 +5243,12 @@
},
"alternate": null,
"range": [
- 1307,
- 2510
+ 1325,
+ 2475
],
"loc": {
"start": {
- "line": 48,
+ "line": 49,
"column": 8
},
"end": {
@@ -5544,13 +5259,13 @@
}
],
"range": [
- 1039,
- 2516
+ 1049,
+ 2481
],
"loc": {
"start": {
- "line": 39,
- "column": 35
+ "line": 40,
+ "column": 36
},
"end": {
"line": 73,
@@ -5561,12 +5276,12 @@
"generator": false,
"expression": false,
"range": [
- 1017,
- 2516
+ 1026,
+ 2481
],
"loc": {
"start": {
- "line": 39,
+ "line": 40,
"column": 13
},
"end": {
@@ -5578,12 +5293,12 @@
"kind": "method",
"computed": false,
"range": [
- 1008,
- 2516
+ 1017,
+ 2481
],
"loc": {
"start": {
- "line": 39,
+ "line": 40,
"column": 4
},
"end": {
@@ -5594,18 +5309,18 @@
"leadingComments": [
{
"type": "Block",
- "value": "*\n * highlight occurences of searched term in passed node\n * @param {Node} node\n * @param {String} word Searched term\n * @param {String} cssClass Css class name\n ",
+ "value": "*\n * highlight occurences of searched term in passed node\n * @param {Node} node\n * @param {String} word Searched term\n * @param {String} cssClass Css class name\n *\n * TODO: refactor this method\n ",
"range": [
- 810,
- 1003
+ 778,
+ 1012
],
"loc": {
"start": {
- "line": 33,
+ "line": 32,
"column": 4
},
"end": {
- "line": 38,
+ "line": 39,
"column": 7
}
}
@@ -5616,8 +5331,8 @@
"type": "Block",
"value": "*\n * Removes highlight to nodes matching passed string\n * @param {String} word\n * @param {String} cssClass Css class to remove\n ",
"range": [
- 2522,
- 2672
+ 2487,
+ 2637
],
"loc": {
"start": {
@@ -5639,8 +5354,8 @@
"type": "Identifier",
"name": "unhighlight",
"range": [
- 2677,
- 2688
+ 2642,
+ 2653
],
"loc": {
"start": {
@@ -5661,8 +5376,8 @@
"type": "Identifier",
"name": "word",
"range": [
- 2689,
- 2693
+ 2654,
+ 2658
],
"loc": {
"start": {
@@ -5679,8 +5394,8 @@
"type": "Identifier",
"name": "cssClass",
"range": [
- 2695,
- 2703
+ 2660,
+ 2668
],
"loc": {
"start": {
@@ -5697,79 +5412,6 @@
"body": {
"type": "BlockStatement",
"body": [
- {
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "arrRemove",
- "range": [
- 2718,
- 2727
- ],
- "loc": {
- "start": {
- "line": 81,
- "column": 12
- },
- "end": {
- "line": 81,
- "column": 21
- }
- }
- },
- "init": {
- "type": "ArrayExpression",
- "elements": [],
- "range": [
- 2730,
- 2732
- ],
- "loc": {
- "start": {
- "line": 81,
- "column": 24
- },
- "end": {
- "line": 81,
- "column": 26
- }
- }
- },
- "range": [
- 2718,
- 2732
- ],
- "loc": {
- "start": {
- "line": 81,
- "column": 12
- },
- "end": {
- "line": 81,
- "column": 26
- }
- }
- }
- ],
- "kind": "var",
- "range": [
- 2714,
- 2733
- ],
- "loc": {
- "start": {
- "line": 81,
- "column": 8
- },
- "end": {
- "line": 81,
- "column": 27
- }
- }
- },
{
"type": "VariableDeclaration",
"declarations": [
@@ -5779,102 +5421,276 @@
"type": "Identifier",
"name": "highlightedNodes",
"range": [
- 2746,
- 2762
+ 2684,
+ 2700
],
"loc": {
"start": {
- "line": 82,
+ "line": 81,
"column": 12
},
"end": {
- "line": 82,
+ "line": 81,
"column": 28
}
}
},
"init": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "ThisExpression",
+ "type": "CallExpression",
+ "callee": {
+ "type": "MemberExpression",
+ "computed": false,
+ "object": {
+ "type": "MemberExpression",
+ "computed": false,
+ "object": {
+ "type": "MemberExpression",
+ "computed": false,
+ "object": {
+ "type": "ThisExpression",
+ "range": [
+ 2703,
+ 2707
+ ],
+ "loc": {
+ "start": {
+ "line": 81,
+ "column": 31
+ },
+ "end": {
+ "line": 81,
+ "column": 35
+ }
+ }
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "tf",
+ "range": [
+ 2708,
+ 2710
+ ],
+ "loc": {
+ "start": {
+ "line": 81,
+ "column": 36
+ },
+ "end": {
+ "line": 81,
+ "column": 38
+ }
+ }
+ },
+ "range": [
+ 2703,
+ 2710
+ ],
+ "loc": {
+ "start": {
+ "line": 81,
+ "column": 31
+ },
+ "end": {
+ "line": 81,
+ "column": 38
+ }
+ }
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "tbl",
+ "range": [
+ 2711,
+ 2714
+ ],
+ "loc": {
+ "start": {
+ "line": 81,
+ "column": 39
+ },
+ "end": {
+ "line": 81,
+ "column": 42
+ }
+ }
+ },
+ "range": [
+ 2703,
+ 2714
+ ],
+ "loc": {
+ "start": {
+ "line": 81,
+ "column": 31
+ },
+ "end": {
+ "line": 81,
+ "column": 42
+ }
+ }
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "querySelectorAll",
+ "range": [
+ 2715,
+ 2731
+ ],
+ "loc": {
+ "start": {
+ "line": 81,
+ "column": 43
+ },
+ "end": {
+ "line": 81,
+ "column": 59
+ }
+ }
+ },
"range": [
- 2765,
- 2769
+ 2703,
+ 2731
],
"loc": {
"start": {
- "line": 82,
+ "line": 81,
"column": 31
},
"end": {
- "line": 82,
- "column": 35
+ "line": 81,
+ "column": 59
}
}
},
- "property": {
- "type": "Identifier",
- "name": "highlightedNodes",
- "range": [
- 2770,
- 2786
- ],
- "loc": {
- "start": {
- "line": 82,
- "column": 36
- },
- "end": {
- "line": 82,
- "column": 52
+ "arguments": [
+ {
+ "type": "TemplateLiteral",
+ "quasis": [
+ {
+ "type": "TemplateElement",
+ "value": {
+ "raw": ".",
+ "cooked": "."
+ },
+ "tail": false,
+ "range": [
+ 2732,
+ 2736
+ ],
+ "loc": {
+ "start": {
+ "line": 81,
+ "column": 60
+ },
+ "end": {
+ "line": 81,
+ "column": 64
+ }
+ }
+ },
+ {
+ "type": "TemplateElement",
+ "value": {
+ "raw": "",
+ "cooked": ""
+ },
+ "tail": true,
+ "range": [
+ 2744,
+ 2746
+ ],
+ "loc": {
+ "start": {
+ "line": 81,
+ "column": 72
+ },
+ "end": {
+ "line": 81,
+ "column": 74
+ }
+ }
+ }
+ ],
+ "expressions": [
+ {
+ "type": "Identifier",
+ "name": "cssClass",
+ "range": [
+ 2736,
+ 2744
+ ],
+ "loc": {
+ "start": {
+ "line": 81,
+ "column": 64
+ },
+ "end": {
+ "line": 81,
+ "column": 72
+ }
+ }
+ }
+ ],
+ "range": [
+ 2732,
+ 2746
+ ],
+ "loc": {
+ "start": {
+ "line": 81,
+ "column": 60
+ },
+ "end": {
+ "line": 81,
+ "column": 74
+ }
}
}
- },
+ ],
"range": [
- 2765,
- 2786
+ 2703,
+ 2747
],
"loc": {
"start": {
- "line": 82,
+ "line": 81,
"column": 31
},
"end": {
- "line": 82,
- "column": 52
+ "line": 81,
+ "column": 75
}
}
},
"range": [
- 2746,
- 2786
+ 2684,
+ 2747
],
"loc": {
"start": {
- "line": 82,
+ "line": 81,
"column": 12
},
"end": {
- "line": 82,
- "column": 52
+ "line": 81,
+ "column": 75
}
}
}
],
- "kind": "var",
+ "kind": "let",
"range": [
- 2742,
- 2787
+ 2680,
+ 2748
],
"loc": {
"start": {
- "line": 82,
+ "line": 81,
"column": 8
},
"end": {
- "line": 82,
- "column": 53
+ "line": 81,
+ "column": 76
}
}
},
@@ -5889,17 +5705,17 @@
"type": "Identifier",
"name": "i",
"range": [
- 2804,
- 2805
+ 2766,
+ 2767
],
"loc": {
"start": {
- "line": 83,
- "column": 16
+ "line": 82,
+ "column": 17
},
"end": {
- "line": 83,
- "column": 17
+ "line": 82,
+ "column": 18
}
}
},
@@ -5908,49 +5724,49 @@
"value": 0,
"raw": "0",
"range": [
- 2806,
- 2807
+ 2770,
+ 2771
],
"loc": {
"start": {
- "line": 83,
- "column": 18
+ "line": 82,
+ "column": 21
},
"end": {
- "line": 83,
- "column": 19
+ "line": 82,
+ "column": 22
}
}
},
"range": [
- 2804,
- 2807
+ 2766,
+ 2771
],
"loc": {
"start": {
- "line": 83,
- "column": 16
+ "line": 82,
+ "column": 17
},
"end": {
- "line": 83,
- "column": 19
+ "line": 82,
+ "column": 22
}
}
}
],
- "kind": "var",
+ "kind": "let",
"range": [
- 2800,
- 2807
+ 2762,
+ 2771
],
"loc": {
"start": {
- "line": 83,
- "column": 12
+ "line": 82,
+ "column": 13
},
"end": {
- "line": 83,
- "column": 19
+ "line": 82,
+ "column": 22
}
}
},
@@ -5961,17 +5777,17 @@
"type": "Identifier",
"name": "i",
"range": [
- 2809,
- 2810
+ 2773,
+ 2774
],
"loc": {
"start": {
- "line": 83,
- "column": 21
+ "line": 82,
+ "column": 24
},
"end": {
- "line": 83,
- "column": 22
+ "line": 82,
+ "column": 25
}
}
},
@@ -5982,17 +5798,17 @@
"type": "Identifier",
"name": "highlightedNodes",
"range": [
- 2811,
- 2827
+ 2777,
+ 2793
],
"loc": {
"start": {
- "line": 83,
- "column": 23
+ "line": 82,
+ "column": 28
},
"end": {
- "line": 83,
- "column": 39
+ "line": 82,
+ "column": 44
}
}
},
@@ -6000,47 +5816,47 @@
"type": "Identifier",
"name": "length",
"range": [
- 2828,
- 2834
+ 2794,
+ 2800
],
"loc": {
"start": {
- "line": 83,
- "column": 40
+ "line": 82,
+ "column": 45
},
"end": {
- "line": 83,
- "column": 46
+ "line": 82,
+ "column": 51
}
}
},
"range": [
- 2811,
- 2834
+ 2777,
+ 2800
],
"loc": {
"start": {
- "line": 83,
- "column": 23
+ "line": 82,
+ "column": 28
},
"end": {
- "line": 83,
- "column": 46
+ "line": 82,
+ "column": 51
}
}
},
"range": [
- 2809,
- 2834
+ 2773,
+ 2800
],
"loc": {
"start": {
- "line": 83,
- "column": 21
+ "line": 82,
+ "column": 24
},
"end": {
- "line": 83,
- "column": 46
+ "line": 82,
+ "column": 51
}
}
},
@@ -6051,33 +5867,33 @@
"type": "Identifier",
"name": "i",
"range": [
- 2836,
- 2837
+ 2802,
+ 2803
],
"loc": {
"start": {
- "line": 83,
- "column": 48
+ "line": 82,
+ "column": 53
},
"end": {
- "line": 83,
- "column": 49
+ "line": 82,
+ "column": 54
}
}
},
"prefix": false,
"range": [
- 2836,
- 2839
+ 2802,
+ 2805
],
"loc": {
"start": {
- "line": 83,
- "column": 48
+ "line": 82,
+ "column": 53
},
"end": {
- "line": 83,
- "column": 51
+ "line": 82,
+ "column": 56
}
}
},
@@ -6093,16 +5909,16 @@
"type": "Identifier",
"name": "n",
"range": [
- 2858,
- 2859
+ 2825,
+ 2826
],
"loc": {
"start": {
- "line": 84,
+ "line": 83,
"column": 16
},
"end": {
- "line": 84,
+ "line": 83,
"column": 17
}
}
@@ -6114,16 +5930,16 @@
"type": "Identifier",
"name": "highlightedNodes",
"range": [
- 2862,
- 2878
+ 2829,
+ 2845
],
"loc": {
"start": {
- "line": 84,
+ "line": 83,
"column": 20
},
"end": {
- "line": 84,
+ "line": 83,
"column": 36
}
}
@@ -6132,159 +5948,67 @@
"type": "Identifier",
"name": "i",
"range": [
- 2879,
- 2880
+ 2846,
+ 2847
],
"loc": {
"start": {
- "line": 84,
+ "line": 83,
"column": 37
},
"end": {
- "line": 84,
+ "line": 83,
"column": 38
}
}
},
"range": [
- 2862,
- 2881
+ 2829,
+ 2848
],
"loc": {
"start": {
- "line": 84,
+ "line": 83,
"column": 20
},
"end": {
- "line": 84,
+ "line": 83,
"column": 39
}
}
},
"range": [
- 2858,
- 2881
+ 2825,
+ 2848
],
"loc": {
"start": {
- "line": 84,
+ "line": 83,
"column": 16
},
"end": {
- "line": 84,
+ "line": 83,
"column": 39
}
}
}
],
- "kind": "var",
+ "kind": "let",
"range": [
- 2854,
- 2882
+ 2821,
+ 2849
],
"loc": {
"start": {
- "line": 84,
+ "line": 83,
"column": 12
},
"end": {
- "line": 84,
+ "line": 83,
"column": 40
}
}
},
- {
- "type": "IfStatement",
- "test": {
- "type": "UnaryExpression",
- "operator": "!",
- "argument": {
- "type": "Identifier",
- "name": "n",
- "range": [
- 2899,
- 2900
- ],
- "loc": {
- "start": {
- "line": 85,
- "column": 16
- },
- "end": {
- "line": 85,
- "column": 17
- }
- }
- },
- "prefix": true,
- "range": [
- 2898,
- 2900
- ],
- "loc": {
- "start": {
- "line": 85,
- "column": 15
- },
- "end": {
- "line": 85,
- "column": 17
- }
- }
- },
- "consequent": {
- "type": "BlockStatement",
- "body": [
- {
- "type": "ContinueStatement",
- "label": null,
- "range": [
- 2919,
- 2928
- ],
- "loc": {
- "start": {
- "line": 86,
- "column": 16
- },
- "end": {
- "line": 86,
- "column": 25
- }
- }
- }
- ],
- "range": [
- 2901,
- 2942
- ],
- "loc": {
- "start": {
- "line": 85,
- "column": 18
- },
- "end": {
- "line": 87,
- "column": 13
- }
- }
- },
- "alternate": null,
- "range": [
- 2895,
- 2942
- ],
- "loc": {
- "start": {
- "line": 85,
- "column": 12
- },
- "end": {
- "line": 87,
- "column": 13
- }
- }
- },
{
"type": "VariableDeclaration",
"declarations": [
@@ -6292,18 +6016,144 @@
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
- "name": "tempNodeVal",
+ "name": "nodeVal",
"range": [
- 2959,
- 2970
+ 2866,
+ 2873
],
"loc": {
"start": {
- "line": 88,
+ "line": 84,
"column": 16
},
"end": {
- "line": 88,
+ "line": 84,
+ "column": 23
+ }
+ }
+ },
+ "init": {
+ "type": "CallExpression",
+ "callee": {
+ "type": "MemberExpression",
+ "computed": false,
+ "object": {
+ "type": "Identifier",
+ "name": "Dom",
+ "range": [
+ 2876,
+ 2879
+ ],
+ "loc": {
+ "start": {
+ "line": 84,
+ "column": 26
+ },
+ "end": {
+ "line": 84,
+ "column": 29
+ }
+ }
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "getText",
+ "range": [
+ 2880,
+ 2887
+ ],
+ "loc": {
+ "start": {
+ "line": 84,
+ "column": 30
+ },
+ "end": {
+ "line": 84,
+ "column": 37
+ }
+ }
+ },
+ "range": [
+ 2876,
+ 2887
+ ],
+ "loc": {
+ "start": {
+ "line": 84,
+ "column": 26
+ },
+ "end": {
+ "line": 84,
+ "column": 37
+ }
+ }
+ },
+ "arguments": [
+ {
+ "type": "Identifier",
+ "name": "n",
+ "range": [
+ 2888,
+ 2889
+ ],
+ "loc": {
+ "start": {
+ "line": 84,
+ "column": 38
+ },
+ "end": {
+ "line": 84,
+ "column": 39
+ }
+ }
+ }
+ ],
+ "range": [
+ 2876,
+ 2890
+ ],
+ "loc": {
+ "start": {
+ "line": 84,
+ "column": 26
+ },
+ "end": {
+ "line": 84,
+ "column": 40
+ }
+ }
+ },
+ "range": [
+ 2866,
+ 2890
+ ],
+ "loc": {
+ "start": {
+ "line": 84,
+ "column": 16
+ },
+ "end": {
+ "line": 84,
+ "column": 40
+ }
+ }
+ },
+ {
+ "type": "VariableDeclarator",
+ "id": {
+ "type": "Identifier",
+ "name": "tempNodeVal",
+ "range": [
+ 2908,
+ 2919
+ ],
+ "loc": {
+ "start": {
+ "line": 85,
+ "column": 16
+ },
+ "end": {
+ "line": 85,
"column": 27
}
}
@@ -6317,16 +6167,16 @@
"type": "Identifier",
"name": "Str",
"range": [
- 2973,
- 2976
+ 2922,
+ 2925
],
"loc": {
"start": {
- "line": 88,
+ "line": 85,
"column": 30
},
"end": {
- "line": 88,
+ "line": 85,
"column": 33
}
}
@@ -6335,118 +6185,82 @@
"type": "Identifier",
"name": "lower",
"range": [
- 2977,
- 2982
+ 2926,
+ 2931
],
"loc": {
"start": {
- "line": 88,
+ "line": 85,
"column": 34
},
"end": {
- "line": 88,
+ "line": 85,
"column": 39
}
}
},
"range": [
- 2973,
- 2982
+ 2922,
+ 2931
],
"loc": {
"start": {
- "line": 88,
+ "line": 85,
"column": 30
},
"end": {
- "line": 88,
+ "line": 85,
"column": 39
}
}
},
"arguments": [
{
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "Identifier",
- "name": "n",
- "range": [
- 2983,
- 2984
- ],
- "loc": {
- "start": {
- "line": 88,
- "column": 40
- },
- "end": {
- "line": 88,
- "column": 41
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "nodeValue",
- "range": [
- 2985,
- 2994
- ],
- "loc": {
- "start": {
- "line": 88,
- "column": 42
- },
- "end": {
- "line": 88,
- "column": 51
- }
- }
- },
+ "type": "Identifier",
+ "name": "nodeVal",
"range": [
- 2983,
- 2994
+ 2932,
+ 2939
],
"loc": {
"start": {
- "line": 88,
+ "line": 85,
"column": 40
},
"end": {
- "line": 88,
- "column": 51
+ "line": 85,
+ "column": 47
}
}
}
],
"range": [
- 2973,
- 2995
+ 2922,
+ 2940
],
"loc": {
"start": {
- "line": 88,
+ "line": 85,
"column": 30
},
"end": {
- "line": 88,
- "column": 52
+ "line": 85,
+ "column": 48
}
}
},
"range": [
- 2959,
- 2995
+ 2908,
+ 2940
],
"loc": {
"start": {
- "line": 88,
+ "line": 85,
"column": 16
},
"end": {
- "line": 88,
- "column": 52
+ "line": 85,
+ "column": 48
}
}
},
@@ -6456,16 +6270,16 @@
"type": "Identifier",
"name": "tempWordVal",
"range": [
- 3013,
- 3024
+ 2958,
+ 2969
],
"loc": {
"start": {
- "line": 89,
+ "line": 86,
"column": 16
},
"end": {
- "line": 89,
+ "line": 86,
"column": 27
}
}
@@ -6479,16 +6293,16 @@
"type": "Identifier",
"name": "Str",
"range": [
- 3027,
- 3030
+ 2972,
+ 2975
],
"loc": {
"start": {
- "line": 89,
+ "line": 86,
"column": 30
},
"end": {
- "line": 89,
+ "line": 86,
"column": 33
}
}
@@ -6497,31 +6311,31 @@
"type": "Identifier",
"name": "lower",
"range": [
- 3031,
- 3036
+ 2976,
+ 2981
],
"loc": {
"start": {
- "line": 89,
+ "line": 86,
"column": 34
},
"end": {
- "line": 89,
+ "line": 86,
"column": 39
}
}
},
"range": [
- 3027,
- 3036
+ 2972,
+ 2981
],
"loc": {
"start": {
- "line": 89,
+ "line": 86,
"column": 30
},
"end": {
- "line": 89,
+ "line": 86,
"column": 39
}
}
@@ -6531,64 +6345,64 @@
"type": "Identifier",
"name": "word",
"range": [
- 3037,
- 3041
+ 2982,
+ 2986
],
"loc": {
"start": {
- "line": 89,
+ "line": 86,
"column": 40
},
"end": {
- "line": 89,
+ "line": 86,
"column": 44
}
}
}
],
"range": [
- 3027,
- 3042
+ 2972,
+ 2987
],
"loc": {
"start": {
- "line": 89,
+ "line": 86,
"column": 30
},
"end": {
- "line": 89,
+ "line": 86,
"column": 45
}
}
},
"range": [
- 3013,
- 3042
+ 2958,
+ 2987
],
"loc": {
"start": {
- "line": 89,
+ "line": 86,
"column": 16
},
"end": {
- "line": 89,
+ "line": 86,
"column": 45
}
}
}
],
- "kind": "var",
+ "kind": "let",
"range": [
- 2955,
- 3043
+ 2862,
+ 2988
],
"loc": {
"start": {
- "line": 88,
+ "line": 84,
"column": 12
},
"end": {
- "line": 89,
+ "line": 86,
"column": 46
}
}
@@ -6607,17 +6421,17 @@
"type": "Identifier",
"name": "tempNodeVal",
"range": [
- 3059,
- 3070
+ 3006,
+ 3017
],
"loc": {
"start": {
- "line": 90,
- "column": 15
+ "line": 88,
+ "column": 16
},
"end": {
- "line": 90,
- "column": 26
+ "line": 88,
+ "column": 27
}
}
},
@@ -6625,32 +6439,32 @@
"type": "Identifier",
"name": "indexOf",
"range": [
- 3071,
- 3078
+ 3018,
+ 3025
],
"loc": {
"start": {
- "line": 90,
- "column": 27
+ "line": 88,
+ "column": 28
},
"end": {
- "line": 90,
- "column": 34
+ "line": 88,
+ "column": 35
}
}
},
"range": [
- 3059,
- 3078
+ 3006,
+ 3025
],
"loc": {
"start": {
- "line": 90,
- "column": 15
+ "line": 88,
+ "column": 16
},
"end": {
- "line": 90,
- "column": 34
+ "line": 88,
+ "column": 35
}
}
},
@@ -6659,33 +6473,33 @@
"type": "Identifier",
"name": "tempWordVal",
"range": [
- 3079,
- 3090
+ 3026,
+ 3037
],
"loc": {
"start": {
- "line": 90,
- "column": 35
+ "line": 88,
+ "column": 36
},
"end": {
- "line": 90,
- "column": 46
+ "line": 88,
+ "column": 47
}
}
}
],
"range": [
- 3059,
- 3091
+ 3006,
+ 3038
],
"loc": {
"start": {
- "line": 90,
- "column": 15
+ "line": 88,
+ "column": 16
},
"end": {
- "line": 90,
- "column": 47
+ "line": 88,
+ "column": 48
}
}
},
@@ -6697,48 +6511,48 @@
"value": 1,
"raw": "1",
"range": [
- 3097,
- 3098
+ 3044,
+ 3045
],
"loc": {
"start": {
- "line": 90,
- "column": 53
+ "line": 88,
+ "column": 54
},
"end": {
- "line": 90,
- "column": 54
+ "line": 88,
+ "column": 55
}
}
},
"prefix": true,
"range": [
- 3096,
- 3098
+ 3043,
+ 3045
],
"loc": {
"start": {
- "line": 90,
- "column": 52
+ "line": 88,
+ "column": 53
},
"end": {
- "line": 90,
- "column": 54
+ "line": 88,
+ "column": 55
}
}
},
"range": [
- 3059,
- 3098
+ 3006,
+ 3045
],
"loc": {
"start": {
- "line": 90,
- "column": 15
+ "line": 88,
+ "column": 16
},
"end": {
- "line": 90,
- "column": 54
+ "line": 88,
+ "column": 55
}
}
},
@@ -6746,46 +6560,30 @@
"type": "BlockStatement",
"body": [
{
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "pn",
- "range": [
- 3121,
- 3123
- ],
- "loc": {
- "start": {
- "line": 91,
- "column": 20
- },
- "end": {
- "line": 91,
- "column": 22
- }
- }
- },
- "init": {
+ "type": "ExpressionStatement",
+ "expression": {
+ "type": "CallExpression",
+ "callee": {
+ "type": "MemberExpression",
+ "computed": false,
+ "object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "n",
"range": [
- 3126,
- 3127
+ 3065,
+ 3066
],
"loc": {
"start": {
- "line": 91,
- "column": 25
+ "line": 89,
+ "column": 16
},
"end": {
- "line": 91,
- "column": 26
+ "line": 89,
+ "column": 17
}
}
},
@@ -6793,1661 +6591,284 @@
"type": "Identifier",
"name": "parentNode",
"range": [
- 3128,
- 3138
+ 3067,
+ 3077
],
"loc": {
"start": {
- "line": 91,
- "column": 27
+ "line": 89,
+ "column": 18
},
"end": {
- "line": 91,
- "column": 37
- }
- }
- },
- "range": [
- 3126,
- 3138
- ],
- "loc": {
- "start": {
- "line": 91,
- "column": 25
- },
- "end": {
- "line": 91,
- "column": 37
- }
- }
- },
- "range": [
- 3121,
- 3138
- ],
- "loc": {
- "start": {
- "line": 91,
- "column": 20
- },
- "end": {
- "line": 91,
- "column": 37
- }
- }
- }
- ],
- "kind": "var",
- "range": [
- 3117,
- 3139
- ],
- "loc": {
- "start": {
- "line": 91,
- "column": 16
- },
- "end": {
- "line": 91,
- "column": 38
- }
- }
- },
- {
- "type": "IfStatement",
- "test": {
- "type": "LogicalExpression",
- "operator": "&&",
- "left": {
- "type": "Identifier",
- "name": "pn",
- "range": [
- 3159,
- 3161
- ],
- "loc": {
- "start": {
- "line": 92,
- "column": 19
- },
- "end": {
- "line": 92,
- "column": 21
- }
- }
- },
- "right": {
- "type": "BinaryExpression",
- "operator": "===",
- "left": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "Identifier",
- "name": "pn",
- "range": [
- 3165,
- 3167
- ],
- "loc": {
- "start": {
- "line": 92,
- "column": 25
- },
- "end": {
- "line": 92,
- "column": 27
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "className",
- "range": [
- 3168,
- 3177
- ],
- "loc": {
- "start": {
- "line": 92,
+ "line": 89,
"column": 28
- },
- "end": {
- "line": 92,
- "column": 37
}
}
},
"range": [
- 3165,
- 3177
+ 3065,
+ 3077
],
"loc": {
"start": {
- "line": 92,
- "column": 25
+ "line": 89,
+ "column": 16
},
"end": {
- "line": 92,
- "column": 37
+ "line": 89,
+ "column": 28
}
}
},
- "right": {
+ "property": {
"type": "Identifier",
- "name": "cssClass",
+ "name": "replaceChild",
"range": [
- 3182,
- 3190
+ 3078,
+ 3090
],
"loc": {
"start": {
- "line": 92,
- "column": 42
+ "line": 89,
+ "column": 29
},
"end": {
- "line": 92,
- "column": 50
+ "line": 89,
+ "column": 41
}
}
},
"range": [
- 3165,
- 3190
+ 3065,
+ 3090
],
"loc": {
"start": {
- "line": 92,
- "column": 25
+ "line": 89,
+ "column": 16
},
"end": {
- "line": 92,
- "column": 50
+ "line": 89,
+ "column": 41
}
}
},
- "range": [
- 3159,
- 3190
- ],
- "loc": {
- "start": {
- "line": 92,
- "column": 19
- },
- "end": {
- "line": 92,
- "column": 50
- }
- }
- },
- "consequent": {
- "type": "BlockStatement",
- "body": [
+ "arguments": [
{
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "prevSib",
- "range": [
- 3217,
- 3224
- ],
- "loc": {
- "start": {
- "line": 93,
- "column": 24
- },
- "end": {
- "line": 93,
- "column": 31
- }
- }
- },
- "init": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "Identifier",
- "name": "pn",
- "range": [
- 3227,
- 3229
- ],
- "loc": {
- "start": {
- "line": 93,
- "column": 34
- },
- "end": {
- "line": 93,
- "column": 36
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "previousSibling",
- "range": [
- 3230,
- 3245
- ],
- "loc": {
- "start": {
- "line": 93,
- "column": 37
- },
- "end": {
- "line": 93,
- "column": 52
- }
- }
- },
- "range": [
- 3227,
- 3245
- ],
- "loc": {
- "start": {
- "line": 93,
- "column": 34
- },
- "end": {
- "line": 93,
- "column": 52
- }
- }
- },
+ "type": "CallExpression",
+ "callee": {
+ "type": "MemberExpression",
+ "computed": false,
+ "object": {
+ "type": "Identifier",
+ "name": "Dom",
"range": [
- 3217,
- 3245
+ 3091,
+ 3094
],
"loc": {
"start": {
- "line": 93,
- "column": 24
- },
- "end": {
- "line": 93,
- "column": 52
- }
- }
- },
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "nextSib",
- "range": [
- 3271,
- 3278
- ],
- "loc": {
- "start": {
- "line": 94,
- "column": 24
- },
- "end": {
- "line": 94,
- "column": 31
- }
- }
- },
- "init": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "Identifier",
- "name": "pn",
- "range": [
- 3281,
- 3283
- ],
- "loc": {
- "start": {
- "line": 94,
- "column": 34
- },
- "end": {
- "line": 94,
- "column": 36
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "nextSibling",
- "range": [
- 3284,
- 3295
- ],
- "loc": {
- "start": {
- "line": 94,
- "column": 37
- },
- "end": {
- "line": 94,
- "column": 48
- }
- }
- },
- "range": [
- 3281,
- 3295
- ],
- "loc": {
- "start": {
- "line": 94,
- "column": 34
- },
- "end": {
- "line": 94,
- "column": 48
- }
- }
- },
- "range": [
- 3271,
- 3295
- ],
- "loc": {
- "start": {
- "line": 94,
- "column": 24
- },
- "end": {
- "line": 94,
- "column": 48
- }
- }
- }
- ],
- "kind": "var",
- "range": [
- 3213,
- 3296
- ],
- "loc": {
- "start": {
- "line": 93,
- "column": 20
- },
- "end": {
- "line": 94,
- "column": 49
- }
- }
- },
- {
- "type": "IfStatement",
- "test": {
- "type": "LogicalExpression",
- "operator": "||",
- "left": {
- "type": "UnaryExpression",
- "operator": "!",
- "argument": {
- "type": "Identifier",
- "name": "prevSib",
- "range": [
- 3321,
- 3328
- ],
- "loc": {
- "start": {
- "line": 95,
- "column": 24
- },
- "end": {
- "line": 95,
- "column": 31
- }
- }
- },
- "prefix": true,
- "range": [
- 3320,
- 3328
- ],
- "loc": {
- "start": {
- "line": 95,
- "column": 23
- },
- "end": {
- "line": 95,
- "column": 31
- }
- }
- },
- "right": {
- "type": "UnaryExpression",
- "operator": "!",
- "argument": {
- "type": "Identifier",
- "name": "nextSib",
- "range": [
- 3333,
- 3340
- ],
- "loc": {
- "start": {
- "line": 95,
- "column": 36
- },
- "end": {
- "line": 95,
- "column": 43
- }
- }
- },
- "prefix": true,
- "range": [
- 3332,
- 3340
- ],
- "loc": {
- "start": {
- "line": 95,
- "column": 35
- },
- "end": {
- "line": 95,
- "column": 43
- }
- }
- },
- "range": [
- 3320,
- 3340
- ],
- "loc": {
- "start": {
- "line": 95,
- "column": 23
- },
- "end": {
- "line": 95,
- "column": 43
- }
- }
- },
- "consequent": {
- "type": "BlockStatement",
- "body": [
- {
- "type": "ContinueStatement",
- "label": null,
- "range": [
- 3343,
- 3352
- ],
- "loc": {
- "start": {
- "line": 95,
- "column": 46
- },
- "end": {
- "line": 95,
- "column": 55
- }
- }
- }
- ],
- "range": [
- 3341,
- 3354
- ],
- "loc": {
- "start": {
- "line": 95,
- "column": 44
- },
- "end": {
- "line": 95,
- "column": 57
- }
- }
- },
- "alternate": null,
- "range": [
- 3317,
- 3354
- ],
- "loc": {
- "start": {
- "line": 95,
- "column": 20
- },
- "end": {
- "line": 95,
- "column": 57
- }
- }
- },
- {
- "type": "ExpressionStatement",
- "expression": {
- "type": "AssignmentExpression",
- "operator": "=",
- "left": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "Identifier",
- "name": "nextSib",
- "range": [
- 3375,
- 3382
- ],
- "loc": {
- "start": {
- "line": 96,
- "column": 20
- },
- "end": {
- "line": 96,
- "column": 27
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "nodeValue",
- "range": [
- 3383,
- 3392
- ],
- "loc": {
- "start": {
- "line": 96,
- "column": 28
- },
- "end": {
- "line": 96,
- "column": 37
- }
- }
- },
- "range": [
- 3375,
- 3392
- ],
- "loc": {
- "start": {
- "line": 96,
- "column": 20
- },
- "end": {
- "line": 96,
- "column": 37
- }
- }
- },
- "right": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "Identifier",
- "name": "prevSib",
- "range": [
- 3395,
- 3402
- ],
- "loc": {
- "start": {
- "line": 96,
- "column": 40
- },
- "end": {
- "line": 96,
- "column": 47
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "nodeValue",
- "range": [
- 3403,
- 3412
- ],
- "loc": {
- "start": {
- "line": 96,
- "column": 48
- },
- "end": {
- "line": 96,
- "column": 57
- }
- }
- },
- "range": [
- 3395,
- 3412
- ],
- "loc": {
- "start": {
- "line": 96,
- "column": 40
- },
- "end": {
- "line": 96,
- "column": 57
- }
- }
- },
- "right": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "Identifier",
- "name": "n",
- "range": [
- 3415,
- 3416
- ],
- "loc": {
- "start": {
- "line": 96,
- "column": 60
- },
- "end": {
- "line": 96,
- "column": 61
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "nodeValue",
- "range": [
- 3417,
- 3426
- ],
- "loc": {
- "start": {
- "line": 96,
- "column": 62
- },
- "end": {
- "line": 96,
- "column": 71
- }
- }
- },
- "range": [
- 3415,
- 3426
- ],
- "loc": {
- "start": {
- "line": 96,
- "column": 60
- },
- "end": {
- "line": 96,
- "column": 71
- }
- }
- },
- "range": [
- 3395,
- 3426
- ],
- "loc": {
- "start": {
- "line": 96,
- "column": 40
- },
- "end": {
- "line": 96,
- "column": 71
- }
- }
- },
- "right": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "Identifier",
- "name": "nextSib",
- "range": [
- 3453,
- 3460
- ],
- "loc": {
- "start": {
- "line": 97,
- "column": 24
- },
- "end": {
- "line": 97,
- "column": 31
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "nodeValue",
- "range": [
- 3461,
- 3470
- ],
- "loc": {
- "start": {
- "line": 97,
- "column": 32
- },
- "end": {
- "line": 97,
- "column": 41
- }
- }
- },
- "range": [
- 3453,
- 3470
- ],
- "loc": {
- "start": {
- "line": 97,
- "column": 24
- },
- "end": {
- "line": 97,
- "column": 41
- }
- }
- },
- "range": [
- 3395,
- 3470
- ],
- "loc": {
- "start": {
- "line": 96,
- "column": 40
- },
- "end": {
- "line": 97,
- "column": 41
- }
- }
- },
- "range": [
- 3375,
- 3470
- ],
- "loc": {
- "start": {
- "line": 96,
- "column": 20
- },
- "end": {
- "line": 97,
- "column": 41
- }
- }
- },
- "range": [
- 3375,
- 3471
- ],
- "loc": {
- "start": {
- "line": 96,
- "column": 20
- },
- "end": {
- "line": 97,
- "column": 42
- }
- }
- },
- {
- "type": "ExpressionStatement",
- "expression": {
- "type": "AssignmentExpression",
- "operator": "=",
- "left": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "Identifier",
- "name": "prevSib",
- "range": [
- 3492,
- 3499
- ],
- "loc": {
- "start": {
- "line": 98,
- "column": 20
- },
- "end": {
- "line": 98,
- "column": 27
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "nodeValue",
- "range": [
- 3500,
- 3509
- ],
- "loc": {
- "start": {
- "line": 98,
- "column": 28
- },
- "end": {
- "line": 98,
- "column": 37
- }
- }
- },
- "range": [
- 3492,
- 3509
- ],
- "loc": {
- "start": {
- "line": 98,
- "column": 20
- },
- "end": {
- "line": 98,
- "column": 37
- }
- }
- },
- "right": {
- "type": "Literal",
- "value": "",
- "raw": "''",
- "range": [
- 3512,
- 3514
- ],
- "loc": {
- "start": {
- "line": 98,
- "column": 40
- },
- "end": {
- "line": 98,
+ "line": 89,
"column": 42
+ },
+ "end": {
+ "line": 89,
+ "column": 45
+ }
+ }
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "text",
+ "range": [
+ 3095,
+ 3099
+ ],
+ "loc": {
+ "start": {
+ "line": 89,
+ "column": 46
+ },
+ "end": {
+ "line": 89,
+ "column": 50
}
}
},
"range": [
- 3492,
- 3514
+ 3091,
+ 3099
],
"loc": {
"start": {
- "line": 98,
- "column": 20
- },
- "end": {
- "line": 98,
+ "line": 89,
"column": 42
+ },
+ "end": {
+ "line": 89,
+ "column": 50
}
}
},
+ "arguments": [
+ {
+ "type": "Identifier",
+ "name": "nodeVal",
+ "range": [
+ 3100,
+ 3107
+ ],
+ "loc": {
+ "start": {
+ "line": 89,
+ "column": 51
+ },
+ "end": {
+ "line": 89,
+ "column": 58
+ }
+ }
+ }
+ ],
"range": [
- 3492,
- 3515
+ 3091,
+ 3108
],
"loc": {
"start": {
- "line": 98,
- "column": 20
+ "line": 89,
+ "column": 42
},
"end": {
- "line": 98,
- "column": 43
+ "line": 89,
+ "column": 59
}
}
},
{
- "type": "ExpressionStatement",
- "expression": {
- "type": "AssignmentExpression",
- "operator": "=",
- "left": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "Identifier",
- "name": "n",
- "range": [
- 3536,
- 3537
- ],
- "loc": {
- "start": {
- "line": 99,
- "column": 20
- },
- "end": {
- "line": 99,
- "column": 21
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "nodeValue",
- "range": [
- 3538,
- 3547
- ],
- "loc": {
- "start": {
- "line": 99,
- "column": 22
- },
- "end": {
- "line": 99,
- "column": 31
- }
- }
- },
- "range": [
- 3536,
- 3547
- ],
- "loc": {
- "start": {
- "line": 99,
- "column": 20
- },
- "end": {
- "line": 99,
- "column": 31
- }
- }
- },
- "right": {
- "type": "Literal",
- "value": "",
- "raw": "''",
- "range": [
- 3550,
- 3552
- ],
- "loc": {
- "start": {
- "line": 99,
- "column": 34
- },
- "end": {
- "line": 99,
- "column": 36
- }
- }
- },
- "range": [
- 3536,
- 3552
- ],
- "loc": {
- "start": {
- "line": 99,
- "column": 20
- },
- "end": {
- "line": 99,
- "column": 36
- }
- }
- },
+ "type": "Identifier",
+ "name": "n",
"range": [
- 3536,
- 3553
+ 3110,
+ 3111
],
"loc": {
"start": {
- "line": 99,
- "column": 20
+ "line": 89,
+ "column": 61
},
"end": {
- "line": 99,
- "column": 37
- }
- }
- },
- {
- "type": "ExpressionStatement",
- "expression": {
- "type": "CallExpression",
- "callee": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "Identifier",
- "name": "arrRemove",
- "range": [
- 3574,
- 3583
- ],
- "loc": {
- "start": {
- "line": 100,
- "column": 20
- },
- "end": {
- "line": 100,
- "column": 29
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "push",
- "range": [
- 3584,
- 3588
- ],
- "loc": {
- "start": {
- "line": 100,
- "column": 30
- },
- "end": {
- "line": 100,
- "column": 34
- }
- }
- },
- "range": [
- 3574,
- 3588
- ],
- "loc": {
- "start": {
- "line": 100,
- "column": 20
- },
- "end": {
- "line": 100,
- "column": 34
- }
- }
- },
- "arguments": [
- {
- "type": "Identifier",
- "name": "i",
- "range": [
- 3589,
- 3590
- ],
- "loc": {
- "start": {
- "line": 100,
- "column": 35
- },
- "end": {
- "line": 100,
- "column": 36
- }
- }
- }
- ],
- "range": [
- 3574,
- 3591
- ],
- "loc": {
- "start": {
- "line": 100,
- "column": 20
- },
- "end": {
- "line": 100,
- "column": 37
- }
- }
- },
- "range": [
- 3574,
- 3592
- ],
- "loc": {
- "start": {
- "line": 100,
- "column": 20
- },
- "end": {
- "line": 100,
- "column": 38
+ "line": 89,
+ "column": 62
}
}
}
],
"range": [
- 3191,
- 3610
+ 3065,
+ 3112
],
"loc": {
"start": {
- "line": 92,
- "column": 51
+ "line": 89,
+ "column": 16
},
"end": {
- "line": 101,
- "column": 17
+ "line": 89,
+ "column": 63
}
}
},
- "alternate": null,
"range": [
- 3156,
- 3610
+ 3065,
+ 3113
],
"loc": {
"start": {
- "line": 92,
+ "line": 89,
"column": 16
},
"end": {
- "line": 101,
- "column": 17
+ "line": 89,
+ "column": 64
}
}
}
],
"range": [
- 3099,
- 3624
+ 3047,
+ 3127
],
"loc": {
"start": {
- "line": 90,
- "column": 55
+ "line": 88,
+ "column": 57
},
"end": {
- "line": 102,
+ "line": 90,
"column": 13
}
}
},
"alternate": null,
"range": [
- 3056,
- 3624
+ 3002,
+ 3127
],
"loc": {
"start": {
- "line": 90,
+ "line": 88,
"column": 12
},
"end": {
- "line": 102,
+ "line": 90,
"column": 13
}
}
}
],
"range": [
- 2840,
- 3634
+ 2807,
+ 3137
],
"loc": {
"start": {
- "line": 83,
- "column": 52
+ "line": 82,
+ "column": 58
},
"end": {
- "line": 103,
+ "line": 91,
"column": 9
}
}
},
"range": [
- 2796,
- 3634
+ 2757,
+ 3137
],
"loc": {
"start": {
- "line": 83,
+ "line": 82,
"column": 8
},
"end": {
- "line": 103,
- "column": 9
- }
- }
- },
- {
- "type": "ForStatement",
- "init": {
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "k",
- "range": [
- 3651,
- 3652
- ],
- "loc": {
- "start": {
- "line": 104,
- "column": 16
- },
- "end": {
- "line": 104,
- "column": 17
- }
- }
- },
- "init": {
- "type": "Literal",
- "value": 0,
- "raw": "0",
- "range": [
- 3653,
- 3654
- ],
- "loc": {
- "start": {
- "line": 104,
- "column": 18
- },
- "end": {
- "line": 104,
- "column": 19
- }
- }
- },
- "range": [
- 3651,
- 3654
- ],
- "loc": {
- "start": {
- "line": 104,
- "column": 16
- },
- "end": {
- "line": 104,
- "column": 19
- }
- }
- }
- ],
- "kind": "var",
- "range": [
- 3647,
- 3654
- ],
- "loc": {
- "start": {
- "line": 104,
- "column": 12
- },
- "end": {
- "line": 104,
- "column": 19
- }
- }
- },
- "test": {
- "type": "BinaryExpression",
- "operator": "<",
- "left": {
- "type": "Identifier",
- "name": "k",
- "range": [
- 3656,
- 3657
- ],
- "loc": {
- "start": {
- "line": 104,
- "column": 21
- },
- "end": {
- "line": 104,
- "column": 22
- }
- }
- },
- "right": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "Identifier",
- "name": "arrRemove",
- "range": [
- 3658,
- 3667
- ],
- "loc": {
- "start": {
- "line": 104,
- "column": 23
- },
- "end": {
- "line": 104,
- "column": 32
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "length",
- "range": [
- 3668,
- 3674
- ],
- "loc": {
- "start": {
- "line": 104,
- "column": 33
- },
- "end": {
- "line": 104,
- "column": 39
- }
- }
- },
- "range": [
- 3658,
- 3674
- ],
- "loc": {
- "start": {
- "line": 104,
- "column": 23
- },
- "end": {
- "line": 104,
- "column": 39
- }
- }
- },
- "range": [
- 3656,
- 3674
- ],
- "loc": {
- "start": {
- "line": 104,
- "column": 21
- },
- "end": {
- "line": 104,
- "column": 39
- }
- }
- },
- "update": {
- "type": "UpdateExpression",
- "operator": "++",
- "argument": {
- "type": "Identifier",
- "name": "k",
- "range": [
- 3676,
- 3677
- ],
- "loc": {
- "start": {
- "line": 104,
- "column": 41
- },
- "end": {
- "line": 104,
- "column": 42
- }
- }
- },
- "prefix": false,
- "range": [
- 3676,
- 3679
- ],
- "loc": {
- "start": {
- "line": 104,
- "column": 41
- },
- "end": {
- "line": 104,
- "column": 44
- }
- }
- },
- "body": {
- "type": "BlockStatement",
- "body": [
- {
- "type": "ExpressionStatement",
- "expression": {
- "type": "CallExpression",
- "callee": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "Identifier",
- "name": "highlightedNodes",
- "range": [
- 3694,
- 3710
- ],
- "loc": {
- "start": {
- "line": 105,
- "column": 12
- },
- "end": {
- "line": 105,
- "column": 28
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "splice",
- "range": [
- 3711,
- 3717
- ],
- "loc": {
- "start": {
- "line": 105,
- "column": 29
- },
- "end": {
- "line": 105,
- "column": 35
- }
- }
- },
- "range": [
- 3694,
- 3717
- ],
- "loc": {
- "start": {
- "line": 105,
- "column": 12
- },
- "end": {
- "line": 105,
- "column": 35
- }
- }
- },
- "arguments": [
- {
- "type": "MemberExpression",
- "computed": true,
- "object": {
- "type": "Identifier",
- "name": "arrRemove",
- "range": [
- 3718,
- 3727
- ],
- "loc": {
- "start": {
- "line": 105,
- "column": 36
- },
- "end": {
- "line": 105,
- "column": 45
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "k",
- "range": [
- 3728,
- 3729
- ],
- "loc": {
- "start": {
- "line": 105,
- "column": 46
- },
- "end": {
- "line": 105,
- "column": 47
- }
- }
- },
- "range": [
- 3718,
- 3730
- ],
- "loc": {
- "start": {
- "line": 105,
- "column": 36
- },
- "end": {
- "line": 105,
- "column": 48
- }
- }
- },
- {
- "type": "Literal",
- "value": 1,
- "raw": "1",
- "range": [
- 3732,
- 3733
- ],
- "loc": {
- "start": {
- "line": 105,
- "column": 50
- },
- "end": {
- "line": 105,
- "column": 51
- }
- }
- }
- ],
- "range": [
- 3694,
- 3734
- ],
- "loc": {
- "start": {
- "line": 105,
- "column": 12
- },
- "end": {
- "line": 105,
- "column": 52
- }
- }
- },
- "range": [
- 3694,
- 3735
- ],
- "loc": {
- "start": {
- "line": 105,
- "column": 12
- },
- "end": {
- "line": 105,
- "column": 53
- }
- }
- }
- ],
- "range": [
- 3680,
- 3745
- ],
- "loc": {
- "start": {
- "line": 104,
- "column": 45
- },
- "end": {
- "line": 106,
- "column": 9
- }
- }
- },
- "range": [
- 3643,
- 3745
- ],
- "loc": {
- "start": {
- "line": 104,
- "column": 8
- },
- "end": {
- "line": 106,
+ "line": 91,
"column": 9
}
}
}
],
"range": [
- 2704,
- 3751
+ 2670,
+ 3143
],
"loc": {
"start": {
"line": 80,
- "column": 31
+ "column": 32
},
"end": {
- "line": 107,
+ "line": 92,
"column": 5
}
}
@@ -8455,8 +6876,8 @@
"generator": false,
"expression": false,
"range": [
- 2688,
- 3751
+ 2653,
+ 3143
],
"loc": {
"start": {
@@ -8464,7 +6885,7 @@
"column": 15
},
"end": {
- "line": 107,
+ "line": 92,
"column": 5
}
}
@@ -8472,8 +6893,8 @@
"kind": "method",
"computed": false,
"range": [
- 2677,
- 3751
+ 2642,
+ 3143
],
"loc": {
"start": {
@@ -8481,7 +6902,7 @@
"column": 4
},
"end": {
- "line": 107,
+ "line": 92,
"column": 5
}
},
@@ -8490,8 +6911,8 @@
"type": "Block",
"value": "*\n * Removes highlight to nodes matching passed string\n * @param {String} word\n * @param {String} cssClass Css class to remove\n ",
"range": [
- 2522,
- 2672
+ 2487,
+ 2637
],
"loc": {
"start": {
@@ -8510,16 +6931,16 @@
"type": "Block",
"value": "*\n * Clear all occurrences of highlighted nodes\n ",
"range": [
- 3757,
- 3818
+ 3149,
+ 3210
],
"loc": {
"start": {
- "line": 109,
+ "line": 94,
"column": 4
},
"end": {
- "line": 111,
+ "line": 96,
"column": 7
}
}
@@ -8533,16 +6954,16 @@
"type": "Identifier",
"name": "unhighlightAll",
"range": [
- 3823,
- 3837
+ 3215,
+ 3229
],
"loc": {
"start": {
- "line": 112,
+ "line": 97,
"column": 4
},
"end": {
- "line": 112,
+ "line": 97,
"column": 18
}
}
@@ -8568,17 +6989,17 @@
"object": {
"type": "ThisExpression",
"range": [
- 3853,
- 3857
+ 3247,
+ 3251
],
"loc": {
"start": {
- "line": 113,
- "column": 12
+ "line": 98,
+ "column": 13
},
"end": {
- "line": 113,
- "column": 16
+ "line": 98,
+ "column": 17
}
}
},
@@ -8586,32 +7007,32 @@
"type": "Identifier",
"name": "tf",
"range": [
- 3858,
- 3860
+ 3252,
+ 3254
],
"loc": {
"start": {
- "line": 113,
- "column": 17
+ "line": 98,
+ "column": 18
},
"end": {
- "line": 113,
- "column": 19
+ "line": 98,
+ "column": 20
}
}
},
"range": [
- 3853,
- 3860
+ 3247,
+ 3254
],
"loc": {
"start": {
- "line": 113,
- "column": 12
+ "line": 98,
+ "column": 13
},
"end": {
- "line": 113,
- "column": 19
+ "line": 98,
+ "column": 20
}
}
},
@@ -8619,48 +7040,48 @@
"type": "Identifier",
"name": "highlightKeywords",
"range": [
- 3861,
- 3878
+ 3255,
+ 3272
],
"loc": {
"start": {
- "line": 113,
- "column": 20
+ "line": 98,
+ "column": 21
},
"end": {
- "line": 113,
- "column": 37
+ "line": 98,
+ "column": 38
}
}
},
"range": [
- 3853,
- 3878
+ 3247,
+ 3272
],
"loc": {
"start": {
- "line": 113,
- "column": 12
+ "line": 98,
+ "column": 13
},
"end": {
- "line": 113,
- "column": 37
+ "line": 98,
+ "column": 38
}
}
},
"prefix": true,
"range": [
- 3852,
- 3878
+ 3246,
+ 3272
],
"loc": {
"start": {
- "line": 113,
- "column": 11
+ "line": 98,
+ "column": 12
},
"end": {
- "line": 113,
- "column": 37
+ "line": 98,
+ "column": 38
}
}
},
@@ -8671,48 +7092,48 @@
"type": "ReturnStatement",
"argument": null,
"range": [
- 3893,
- 3900
+ 3288,
+ 3295
],
"loc": {
"start": {
- "line": 114,
+ "line": 99,
"column": 12
},
"end": {
- "line": 114,
+ "line": 99,
"column": 19
}
}
}
],
"range": [
- 3879,
- 3910
+ 3274,
+ 3305
],
"loc": {
"start": {
- "line": 113,
- "column": 38
+ "line": 98,
+ "column": 40
},
"end": {
- "line": 115,
+ "line": 100,
"column": 9
}
}
},
"alternate": null,
"range": [
- 3849,
- 3910
+ 3242,
+ 3305
],
"loc": {
"start": {
- "line": 113,
+ "line": 98,
"column": 8
},
"end": {
- "line": 115,
+ "line": 100,
"column": 9
}
},
@@ -8721,16 +7142,16 @@
"type": "Line",
"value": " iterate filters values to unhighlight all values",
"range": [
- 3919,
- 3970
+ 3314,
+ 3365
],
"loc": {
"start": {
- "line": 116,
+ "line": 101,
"column": 8
},
"end": {
- "line": 116,
+ "line": 101,
"column": 59
}
}
@@ -8755,16 +7176,16 @@
"object": {
"type": "ThisExpression",
"range": [
- 3979,
- 3983
+ 3374,
+ 3378
],
"loc": {
"start": {
- "line": 117,
+ "line": 102,
"column": 8
},
"end": {
- "line": 117,
+ "line": 102,
"column": 12
}
}
@@ -8773,31 +7194,31 @@
"type": "Identifier",
"name": "tf",
"range": [
- 3984,
- 3986
+ 3379,
+ 3381
],
"loc": {
"start": {
- "line": 117,
+ "line": 102,
"column": 13
},
"end": {
- "line": 117,
+ "line": 102,
"column": 15
}
}
},
"range": [
- 3979,
- 3986
+ 3374,
+ 3381
],
"loc": {
"start": {
- "line": 117,
+ "line": 102,
"column": 8
},
"end": {
- "line": 117,
+ "line": 102,
"column": 15
}
}
@@ -8806,47 +7227,47 @@
"type": "Identifier",
"name": "getFiltersValue",
"range": [
- 3987,
- 4002
+ 3382,
+ 3397
],
"loc": {
"start": {
- "line": 117,
+ "line": 102,
"column": 16
},
"end": {
- "line": 117,
+ "line": 102,
"column": 31
}
}
},
"range": [
- 3979,
- 4002
+ 3374,
+ 3397
],
"loc": {
"start": {
- "line": 117,
+ "line": 102,
"column": 8
},
"end": {
- "line": 117,
+ "line": 102,
"column": 31
}
}
},
"arguments": [],
"range": [
- 3979,
- 4004
+ 3374,
+ 3399
],
"loc": {
"start": {
- "line": 117,
+ "line": 102,
"column": 8
},
"end": {
- "line": 117,
+ "line": 102,
"column": 33
}
}
@@ -8855,31 +7276,31 @@
"type": "Identifier",
"name": "forEach",
"range": [
- 4005,
- 4012
+ 3400,
+ 3407
],
"loc": {
"start": {
- "line": 117,
+ "line": 102,
"column": 34
},
"end": {
- "line": 117,
+ "line": 102,
"column": 41
}
}
},
"range": [
- 3979,
- 4012
+ 3374,
+ 3407
],
"loc": {
"start": {
- "line": 117,
+ "line": 102,
"column": 8
},
"end": {
- "line": 117,
+ "line": 102,
"column": 41
}
}
@@ -8893,16 +7314,16 @@
"type": "Identifier",
"name": "val",
"range": [
- 4014,
- 4017
+ 3409,
+ 3412
],
"loc": {
"start": {
- "line": 117,
+ "line": 102,
"column": 43
},
"end": {
- "line": 117,
+ "line": 102,
"column": 46
}
}
@@ -8922,17 +7343,17 @@
"type": "Identifier",
"name": "Types",
"range": [
- 4038,
- 4043
+ 3435,
+ 3440
],
"loc": {
"start": {
- "line": 118,
- "column": 15
+ "line": 103,
+ "column": 16
},
"end": {
- "line": 118,
- "column": 20
+ "line": 103,
+ "column": 21
}
}
},
@@ -8940,32 +7361,32 @@
"type": "Identifier",
"name": "isArray",
"range": [
- 4044,
- 4051
+ 3441,
+ 3448
],
"loc": {
"start": {
- "line": 118,
- "column": 21
+ "line": 103,
+ "column": 22
},
"end": {
- "line": 118,
- "column": 28
+ "line": 103,
+ "column": 29
}
}
},
"range": [
- 4038,
- 4051
+ 3435,
+ 3448
],
"loc": {
"start": {
- "line": 118,
- "column": 15
+ "line": 103,
+ "column": 16
},
"end": {
- "line": 118,
- "column": 28
+ "line": 103,
+ "column": 29
}
}
},
@@ -8974,33 +7395,33 @@
"type": "Identifier",
"name": "val",
"range": [
- 4052,
- 4055
+ 3449,
+ 3452
],
"loc": {
"start": {
- "line": 118,
- "column": 29
+ "line": 103,
+ "column": 30
},
"end": {
- "line": 118,
- "column": 32
+ "line": 103,
+ "column": 33
}
}
}
],
"range": [
- 4038,
- 4056
+ 3435,
+ 3453
],
"loc": {
"start": {
- "line": 118,
- "column": 15
+ "line": 103,
+ "column": 16
},
"end": {
- "line": 118,
- "column": 33
+ "line": 103,
+ "column": 34
}
}
},
@@ -9018,16 +7439,16 @@
"type": "Identifier",
"name": "val",
"range": [
- 4075,
- 4078
+ 3473,
+ 3476
],
"loc": {
"start": {
- "line": 119,
+ "line": 104,
"column": 16
},
"end": {
- "line": 119,
+ "line": 104,
"column": 19
}
}
@@ -9036,31 +7457,31 @@
"type": "Identifier",
"name": "forEach",
"range": [
- 4079,
- 4086
+ 3477,
+ 3484
],
"loc": {
"start": {
- "line": 119,
+ "line": 104,
"column": 20
},
"end": {
- "line": 119,
+ "line": 104,
"column": 27
}
}
},
"range": [
- 4075,
- 4086
+ 3473,
+ 3484
],
"loc": {
"start": {
- "line": 119,
+ "line": 104,
"column": 16
},
"end": {
- "line": 119,
+ "line": 104,
"column": 27
}
}
@@ -9074,16 +7495,16 @@
"type": "Identifier",
"name": "item",
"range": [
- 4088,
- 4092
+ 3486,
+ 3490
],
"loc": {
"start": {
- "line": 119,
+ "line": 104,
"column": 29
},
"end": {
- "line": 119,
+ "line": 104,
"column": 33
}
}
@@ -9097,16 +7518,16 @@
"object": {
"type": "ThisExpression",
"range": [
- 4116,
- 4120
+ 3515,
+ 3519
],
"loc": {
"start": {
- "line": 120,
+ "line": 105,
"column": 20
},
"end": {
- "line": 120,
+ "line": 105,
"column": 24
}
}
@@ -9115,31 +7536,31 @@
"type": "Identifier",
"name": "unhighlight",
"range": [
- 4121,
- 4132
+ 3520,
+ 3531
],
"loc": {
"start": {
- "line": 120,
+ "line": 105,
"column": 25
},
"end": {
- "line": 120,
+ "line": 105,
"column": 36
}
}
},
"range": [
- 4116,
- 4132
+ 3515,
+ 3531
],
"loc": {
"start": {
- "line": 120,
+ "line": 105,
"column": 20
},
"end": {
- "line": 120,
+ "line": 105,
"column": 36
}
}
@@ -9149,16 +7570,16 @@
"type": "Identifier",
"name": "item",
"range": [
- 4133,
- 4137
+ 3532,
+ 3536
],
"loc": {
"start": {
- "line": 120,
+ "line": 105,
"column": 37
},
"end": {
- "line": 120,
+ "line": 105,
"column": 41
}
}
@@ -9169,16 +7590,16 @@
"object": {
"type": "ThisExpression",
"range": [
- 4139,
- 4143
+ 3538,
+ 3542
],
"loc": {
"start": {
- "line": 120,
+ "line": 105,
"column": 43
},
"end": {
- "line": 120,
+ "line": 105,
"column": 47
}
}
@@ -9187,47 +7608,47 @@
"type": "Identifier",
"name": "highlightCssClass",
"range": [
- 4144,
- 4161
+ 3543,
+ 3560
],
"loc": {
"start": {
- "line": 120,
+ "line": 105,
"column": 48
},
"end": {
- "line": 120,
+ "line": 105,
"column": 65
}
}
},
"range": [
- 4139,
- 4161
+ 3538,
+ 3560
],
"loc": {
"start": {
- "line": 120,
+ "line": 105,
"column": 43
},
"end": {
- "line": 120,
+ "line": 105,
"column": 65
}
}
}
],
"range": [
- 4116,
- 4162
+ 3515,
+ 3561
],
"loc": {
"start": {
- "line": 120,
+ "line": 105,
"column": 20
},
"end": {
- "line": 120,
+ "line": 105,
"column": 66
}
}
@@ -9235,63 +7656,63 @@
"generator": false,
"expression": true,
"range": [
- 4087,
- 4162
+ 3485,
+ 3561
],
"loc": {
"start": {
- "line": 119,
+ "line": 104,
"column": 28
},
"end": {
- "line": 120,
+ "line": 105,
"column": 66
}
}
}
],
"range": [
- 4075,
- 4163
+ 3473,
+ 3562
],
"loc": {
"start": {
- "line": 119,
+ "line": 104,
"column": 16
},
"end": {
- "line": 120,
+ "line": 105,
"column": 67
}
}
},
"range": [
- 4075,
- 4164
+ 3473,
+ 3563
],
"loc": {
"start": {
- "line": 119,
+ "line": 104,
"column": 16
},
"end": {
- "line": 120,
+ "line": 105,
"column": 68
}
}
}
],
"range": [
- 4057,
- 4178
+ 3455,
+ 3577
],
"loc": {
"start": {
- "line": 118,
- "column": 34
+ "line": 103,
+ "column": 36
},
"end": {
- "line": 121,
+ "line": 106,
"column": 13
}
}
@@ -9309,16 +7730,16 @@
"object": {
"type": "ThisExpression",
"range": [
- 4202,
- 4206
+ 3601,
+ 3605
],
"loc": {
"start": {
- "line": 122,
+ "line": 107,
"column": 16
},
"end": {
- "line": 122,
+ "line": 107,
"column": 20
}
}
@@ -9327,31 +7748,31 @@
"type": "Identifier",
"name": "unhighlight",
"range": [
- 4207,
- 4218
+ 3606,
+ 3617
],
"loc": {
"start": {
- "line": 122,
+ "line": 107,
"column": 21
},
"end": {
- "line": 122,
+ "line": 107,
"column": 32
}
}
},
"range": [
- 4202,
- 4218
+ 3601,
+ 3617
],
"loc": {
"start": {
- "line": 122,
+ "line": 107,
"column": 16
},
"end": {
- "line": 122,
+ "line": 107,
"column": 32
}
}
@@ -9361,16 +7782,16 @@
"type": "Identifier",
"name": "val",
"range": [
- 4219,
- 4222
+ 3618,
+ 3621
],
"loc": {
"start": {
- "line": 122,
+ "line": 107,
"column": 33
},
"end": {
- "line": 122,
+ "line": 107,
"column": 36
}
}
@@ -9381,16 +7802,16 @@
"object": {
"type": "ThisExpression",
"range": [
- 4224,
- 4228
+ 3623,
+ 3627
],
"loc": {
"start": {
- "line": 122,
+ "line": 107,
"column": 38
},
"end": {
- "line": 122,
+ "line": 107,
"column": 42
}
}
@@ -9399,109 +7820,109 @@
"type": "Identifier",
"name": "highlightCssClass",
"range": [
- 4229,
- 4246
+ 3628,
+ 3645
],
"loc": {
"start": {
- "line": 122,
+ "line": 107,
"column": 43
},
"end": {
- "line": 122,
+ "line": 107,
"column": 60
}
}
},
"range": [
- 4224,
- 4246
+ 3623,
+ 3645
],
"loc": {
"start": {
- "line": 122,
+ "line": 107,
"column": 38
},
"end": {
- "line": 122,
+ "line": 107,
"column": 60
}
}
}
],
"range": [
- 4202,
- 4247
+ 3601,
+ 3646
],
"loc": {
"start": {
- "line": 122,
+ "line": 107,
"column": 16
},
"end": {
- "line": 122,
+ "line": 107,
"column": 61
}
}
},
"range": [
- 4202,
- 4248
+ 3601,
+ 3647
],
"loc": {
"start": {
- "line": 122,
+ "line": 107,
"column": 16
},
"end": {
- "line": 122,
+ "line": 107,
"column": 62
}
}
}
],
"range": [
- 4184,
- 4262
+ 3583,
+ 3661
],
"loc": {
"start": {
- "line": 121,
+ "line": 106,
"column": 19
},
"end": {
- "line": 123,
+ "line": 108,
"column": 13
}
}
},
"range": [
- 4035,
- 4262
+ 3431,
+ 3661
],
"loc": {
"start": {
- "line": 118,
+ "line": 103,
"column": 12
},
"end": {
- "line": 123,
+ "line": 108,
"column": 13
}
}
}
],
"range": [
- 4021,
- 4272
+ 3417,
+ 3671
],
"loc": {
"start": {
- "line": 117,
- "column": 50
+ "line": 102,
+ "column": 51
},
"end": {
- "line": 124,
+ "line": 109,
"column": 9
}
}
@@ -9509,47 +7930,47 @@
"generator": false,
"expression": false,
"range": [
- 4013,
- 4272
+ 3408,
+ 3671
],
"loc": {
"start": {
- "line": 117,
+ "line": 102,
"column": 42
},
"end": {
- "line": 124,
+ "line": 109,
"column": 9
}
}
}
],
"range": [
- 3979,
- 4273
+ 3374,
+ 3672
],
"loc": {
"start": {
- "line": 117,
+ "line": 102,
"column": 8
},
"end": {
- "line": 124,
+ "line": 109,
"column": 10
}
}
},
"range": [
- 3979,
- 4274
+ 3374,
+ 3673
],
"loc": {
"start": {
- "line": 117,
+ "line": 102,
"column": 8
},
"end": {
- "line": 124,
+ "line": 109,
"column": 11
}
},
@@ -9558,140 +7979,34 @@
"type": "Line",
"value": " iterate filters values to unhighlight all values",
"range": [
- 3919,
- 3970
+ 3314,
+ 3365
],
"loc": {
"start": {
- "line": 116,
+ "line": 101,
"column": 8
},
"end": {
- "line": 116,
+ "line": 101,
"column": 59
}
}
}
]
- },
- {
- "type": "ExpressionStatement",
- "expression": {
- "type": "AssignmentExpression",
- "operator": "=",
- "left": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "ThisExpression",
- "range": [
- 4283,
- 4287
- ],
- "loc": {
- "start": {
- "line": 125,
- "column": 8
- },
- "end": {
- "line": 125,
- "column": 12
- }
- }
- },
- "property": {
- "type": "Identifier",
- "name": "highlightedNodes",
- "range": [
- 4288,
- 4304
- ],
- "loc": {
- "start": {
- "line": 125,
- "column": 13
- },
- "end": {
- "line": 125,
- "column": 29
- }
- }
- },
- "range": [
- 4283,
- 4304
- ],
- "loc": {
- "start": {
- "line": 125,
- "column": 8
- },
- "end": {
- "line": 125,
- "column": 29
- }
- }
- },
- "right": {
- "type": "ArrayExpression",
- "elements": [],
- "range": [
- 4307,
- 4309
- ],
- "loc": {
- "start": {
- "line": 125,
- "column": 32
- },
- "end": {
- "line": 125,
- "column": 34
- }
- }
- },
- "range": [
- 4283,
- 4309
- ],
- "loc": {
- "start": {
- "line": 125,
- "column": 8
- },
- "end": {
- "line": 125,
- "column": 34
- }
- }
- },
- "range": [
- 4283,
- 4310
- ],
- "loc": {
- "start": {
- "line": 125,
- "column": 8
- },
- "end": {
- "line": 125,
- "column": 35
- }
- }
}
],
"range": [
- 3839,
- 4316
+ 3232,
+ 3679
],
"loc": {
"start": {
- "line": 112,
- "column": 20
+ "line": 97,
+ "column": 21
},
"end": {
- "line": 126,
+ "line": 110,
"column": 5
}
}
@@ -9699,16 +8014,16 @@
"generator": false,
"expression": false,
"range": [
- 3837,
- 4316
+ 3229,
+ 3679
],
"loc": {
"start": {
- "line": 112,
+ "line": 97,
"column": 18
},
"end": {
- "line": 126,
+ "line": 110,
"column": 5
}
}
@@ -9716,16 +8031,16 @@
"kind": "method",
"computed": false,
"range": [
- 3823,
- 4316
+ 3215,
+ 3679
],
"loc": {
"start": {
- "line": 112,
+ "line": 97,
"column": 4
},
"end": {
- "line": 126,
+ "line": 110,
"column": 5
}
},
@@ -9734,16 +8049,16 @@
"type": "Block",
"value": "*\n * Clear all occurrences of highlighted nodes\n ",
"range": [
- 3757,
- 3818
+ 3149,
+ 3210
],
"loc": {
"start": {
- "line": 109,
+ "line": 94,
"column": 4
},
"end": {
- "line": 111,
+ "line": 96,
"column": 7
}
}
@@ -9757,16 +8072,16 @@
"type": "Identifier",
"name": "destroy",
"range": [
- 4322,
- 4329
+ 3685,
+ 3692
],
"loc": {
"start": {
- "line": 128,
+ "line": 112,
"column": 4
},
"end": {
- "line": 128,
+ "line": 112,
"column": 11
}
}
@@ -9791,16 +8106,16 @@
"object": {
"type": "ThisExpression",
"range": [
- 4341,
- 4345
+ 3705,
+ 3709
],
"loc": {
"start": {
- "line": 129,
+ "line": 113,
"column": 8
},
"end": {
- "line": 129,
+ "line": 113,
"column": 12
}
}
@@ -9809,31 +8124,31 @@
"type": "Identifier",
"name": "emitter",
"range": [
- 4346,
- 4353
+ 3710,
+ 3717
],
"loc": {
"start": {
- "line": 129,
+ "line": 113,
"column": 13
},
"end": {
- "line": 129,
+ "line": 113,
"column": 20
}
}
},
"range": [
- 4341,
- 4353
+ 3705,
+ 3717
],
"loc": {
"start": {
- "line": 129,
+ "line": 113,
"column": 8
},
"end": {
- "line": 129,
+ "line": 113,
"column": 20
}
}
@@ -9842,31 +8157,31 @@
"type": "Identifier",
"name": "off",
"range": [
- 4354,
- 4357
+ 3718,
+ 3721
],
"loc": {
"start": {
- "line": 129,
+ "line": 113,
"column": 21
},
"end": {
- "line": 129,
+ "line": 113,
"column": 24
}
}
},
"range": [
- 4341,
- 4357
+ 3705,
+ 3721
],
"loc": {
"start": {
- "line": 129,
+ "line": 113,
"column": 8
},
"end": {
- "line": 129,
+ "line": 113,
"column": 24
}
}
@@ -9880,16 +8195,16 @@
"value": "before-filtering",
"raw": "'before-filtering'",
"range": [
- 4372,
- 4390
+ 3736,
+ 3754
],
"loc": {
"start": {
- "line": 130,
+ "line": 114,
"column": 13
},
"end": {
- "line": 130,
+ "line": 114,
"column": 31
}
}
@@ -9899,32 +8214,32 @@
"value": "destroy",
"raw": "'destroy'",
"range": [
- 4392,
- 4401
+ 3756,
+ 3765
],
"loc": {
"start": {
- "line": 130,
+ "line": 114,
"column": 33
},
"end": {
- "line": 130,
+ "line": 114,
"column": 42
}
}
}
],
"range": [
- 4371,
- 4402
+ 3735,
+ 3766
],
"loc": {
"start": {
- "line": 130,
+ "line": 114,
"column": 12
},
"end": {
- "line": 130,
+ "line": 114,
"column": 43
}
}
@@ -9941,17 +8256,17 @@
"object": {
"type": "ThisExpression",
"range": [
- 4421,
- 4425
+ 3786,
+ 3790
],
"loc": {
"start": {
- "line": 131,
- "column": 17
+ "line": 115,
+ "column": 18
},
"end": {
- "line": 131,
- "column": 21
+ "line": 115,
+ "column": 22
}
}
},
@@ -9959,95 +8274,95 @@
"type": "Identifier",
"name": "unhighlightAll",
"range": [
- 4426,
- 4440
+ 3791,
+ 3805
],
"loc": {
"start": {
- "line": 131,
- "column": 22
+ "line": 115,
+ "column": 23
},
"end": {
- "line": 131,
- "column": 36
+ "line": 115,
+ "column": 37
}
}
},
"range": [
- 4421,
- 4440
+ 3786,
+ 3805
],
"loc": {
"start": {
- "line": 131,
- "column": 17
+ "line": 115,
+ "column": 18
},
"end": {
- "line": 131,
- "column": 36
+ "line": 115,
+ "column": 37
}
}
},
"arguments": [],
"range": [
- 4421,
- 4442
+ 3786,
+ 3807
],
"loc": {
"start": {
- "line": 131,
- "column": 17
+ "line": 115,
+ "column": 18
},
"end": {
- "line": 131,
- "column": 38
+ "line": 115,
+ "column": 39
}
}
},
"generator": false,
"expression": true,
"range": [
- 4416,
- 4442
+ 3780,
+ 3807
],
"loc": {
"start": {
- "line": 131,
+ "line": 115,
"column": 12
},
"end": {
- "line": 131,
- "column": 38
+ "line": 115,
+ "column": 39
}
}
}
],
"range": [
- 4341,
- 4452
+ 3705,
+ 3817
],
"loc": {
"start": {
- "line": 129,
+ "line": 113,
"column": 8
},
"end": {
- "line": 132,
+ "line": 116,
"column": 9
}
}
},
"range": [
- 4341,
- 4453
+ 3705,
+ 3818
],
"loc": {
"start": {
- "line": 129,
+ "line": 113,
"column": 8
},
"end": {
- "line": 132,
+ "line": 116,
"column": 10
}
}
@@ -10065,16 +8380,16 @@
"object": {
"type": "ThisExpression",
"range": [
- 4462,
- 4466
+ 3827,
+ 3831
],
"loc": {
"start": {
- "line": 133,
+ "line": 117,
"column": 8
},
"end": {
- "line": 133,
+ "line": 117,
"column": 12
}
}
@@ -10083,31 +8398,31 @@
"type": "Identifier",
"name": "emitter",
"range": [
- 4467,
- 4474
+ 3832,
+ 3839
],
"loc": {
"start": {
- "line": 133,
+ "line": 117,
"column": 13
},
"end": {
- "line": 133,
+ "line": 117,
"column": 20
}
}
},
"range": [
- 4462,
- 4474
+ 3827,
+ 3839
],
"loc": {
"start": {
- "line": 133,
+ "line": 117,
"column": 8
},
"end": {
- "line": 133,
+ "line": 117,
"column": 20
}
}
@@ -10116,31 +8431,31 @@
"type": "Identifier",
"name": "off",
"range": [
- 4475,
- 4478
+ 3840,
+ 3843
],
"loc": {
"start": {
- "line": 133,
+ "line": 117,
"column": 21
},
"end": {
- "line": 133,
+ "line": 117,
"column": 24
}
}
},
"range": [
- 4462,
- 4478
+ 3827,
+ 3843
],
"loc": {
"start": {
- "line": 133,
+ "line": 117,
"column": 8
},
"end": {
- "line": 133,
+ "line": 117,
"column": 24
}
}
@@ -10154,32 +8469,32 @@
"value": "highlight-keyword",
"raw": "'highlight-keyword'",
"range": [
- 4493,
- 4512
+ 3858,
+ 3877
],
"loc": {
"start": {
- "line": 134,
+ "line": 118,
"column": 13
},
"end": {
- "line": 134,
+ "line": 118,
"column": 32
}
}
}
],
"range": [
- 4492,
- 4513
+ 3857,
+ 3878
],
"loc": {
"start": {
- "line": 134,
+ "line": 118,
"column": 12
},
"end": {
- "line": 134,
+ "line": 118,
"column": 33
}
}
@@ -10192,16 +8507,16 @@
"type": "Identifier",
"name": "tf",
"range": [
- 4528,
- 4530
+ 3893,
+ 3895
],
"loc": {
"start": {
- "line": 135,
+ "line": 119,
"column": 13
},
"end": {
- "line": 135,
+ "line": 119,
"column": 15
}
}
@@ -10210,16 +8525,16 @@
"type": "Identifier",
"name": "cell",
"range": [
- 4532,
- 4536
+ 3897,
+ 3901
],
"loc": {
"start": {
- "line": 135,
+ "line": 119,
"column": 17
},
"end": {
- "line": 135,
+ "line": 119,
"column": 21
}
}
@@ -10228,16 +8543,16 @@
"type": "Identifier",
"name": "word",
"range": [
- 4538,
- 4542
+ 3903,
+ 3907
],
"loc": {
"start": {
- "line": 135,
+ "line": 119,
"column": 23
},
"end": {
- "line": 135,
+ "line": 119,
"column": 27
}
}
@@ -10251,16 +8566,16 @@
"object": {
"type": "ThisExpression",
"range": [
- 4562,
- 4566
+ 3928,
+ 3932
],
"loc": {
"start": {
- "line": 136,
+ "line": 120,
"column": 16
},
"end": {
- "line": 136,
+ "line": 120,
"column": 20
}
}
@@ -10269,31 +8584,31 @@
"type": "Identifier",
"name": "highlight",
"range": [
- 4567,
- 4576
+ 3933,
+ 3942
],
"loc": {
"start": {
- "line": 136,
+ "line": 120,
"column": 21
},
"end": {
- "line": 136,
+ "line": 120,
"column": 30
}
}
},
"range": [
- 4562,
- 4576
+ 3928,
+ 3942
],
"loc": {
"start": {
- "line": 136,
+ "line": 120,
"column": 16
},
"end": {
- "line": 136,
+ "line": 120,
"column": 30
}
}
@@ -10303,16 +8618,16 @@
"type": "Identifier",
"name": "cell",
"range": [
- 4577,
- 4581
+ 3943,
+ 3947
],
"loc": {
"start": {
- "line": 136,
+ "line": 120,
"column": 31
},
"end": {
- "line": 136,
+ "line": 120,
"column": 35
}
}
@@ -10321,16 +8636,16 @@
"type": "Identifier",
"name": "word",
"range": [
- 4583,
- 4587
+ 3949,
+ 3953
],
"loc": {
"start": {
- "line": 136,
+ "line": 120,
"column": 37
},
"end": {
- "line": 136,
+ "line": 120,
"column": 41
}
}
@@ -10341,16 +8656,16 @@
"object": {
"type": "ThisExpression",
"range": [
- 4589,
- 4593
+ 3955,
+ 3959
],
"loc": {
"start": {
- "line": 136,
+ "line": 120,
"column": 43
},
"end": {
- "line": 136,
+ "line": 120,
"column": 47
}
}
@@ -10359,47 +8674,47 @@
"type": "Identifier",
"name": "highlightCssClass",
"range": [
- 4594,
- 4611
+ 3960,
+ 3977
],
"loc": {
"start": {
- "line": 136,
+ "line": 120,
"column": 48
},
"end": {
- "line": 136,
+ "line": 120,
"column": 65
}
}
},
"range": [
- 4589,
- 4611
+ 3955,
+ 3977
],
"loc": {
"start": {
- "line": 136,
+ "line": 120,
"column": 43
},
"end": {
- "line": 136,
+ "line": 120,
"column": 65
}
}
}
],
"range": [
- 4562,
- 4612
+ 3928,
+ 3978
],
"loc": {
"start": {
- "line": 136,
+ "line": 120,
"column": 16
},
"end": {
- "line": 136,
+ "line": 120,
"column": 66
}
}
@@ -10407,63 +8722,63 @@
"generator": false,
"expression": true,
"range": [
- 4527,
- 4612
+ 3892,
+ 3978
],
"loc": {
"start": {
- "line": 135,
+ "line": 119,
"column": 12
},
"end": {
- "line": 136,
+ "line": 120,
"column": 66
}
}
}
],
"range": [
- 4462,
- 4622
+ 3827,
+ 3988
],
"loc": {
"start": {
- "line": 133,
+ "line": 117,
"column": 8
},
"end": {
- "line": 137,
+ "line": 121,
"column": 9
}
}
},
"range": [
- 4462,
- 4623
+ 3827,
+ 3989
],
"loc": {
"start": {
- "line": 133,
+ "line": 117,
"column": 8
},
"end": {
- "line": 137,
+ "line": 121,
"column": 10
}
}
}
],
"range": [
- 4331,
- 4629
+ 3695,
+ 3995
],
"loc": {
"start": {
- "line": 128,
- "column": 13
+ "line": 112,
+ "column": 14
},
"end": {
- "line": 138,
+ "line": 122,
"column": 5
}
}
@@ -10471,16 +8786,16 @@
"generator": false,
"expression": false,
"range": [
- 4329,
- 4629
+ 3692,
+ 3995
],
"loc": {
"start": {
- "line": 128,
+ "line": 112,
"column": 11
},
"end": {
- "line": 138,
+ "line": 122,
"column": 5
}
}
@@ -10488,16 +8803,16 @@
"kind": "method",
"computed": false,
"range": [
- 4322,
- 4629
+ 3685,
+ 3995
],
"loc": {
"start": {
- "line": 128,
+ "line": 112,
"column": 4
},
"end": {
- "line": 138,
+ "line": 122,
"column": 5
}
},
@@ -10505,23 +8820,23 @@
}
],
"range": [
- 115,
- 4631
+ 116,
+ 3997
],
"loc": {
"start": {
"line": 5,
- "column": 29
+ "column": 30
},
"end": {
- "line": 139,
+ "line": 123,
"column": 1
}
}
},
"range": [
93,
- 4631
+ 3997
],
"loc": {
"start": {
@@ -10529,7 +8844,7 @@
"column": 7
},
"end": {
- "line": 139,
+ "line": 123,
"column": 1
}
},
@@ -10540,7 +8855,7 @@
"source": null,
"range": [
86,
- 4631
+ 3997
],
"loc": {
"start": {
@@ -10548,7 +8863,7 @@
"column": 0
},
"end": {
- "line": 139,
+ "line": 123,
"column": 1
}
}
@@ -10557,7 +8872,7 @@
"sourceType": "module",
"range": [
0,
- 4631
+ 3997
],
"loc": {
"start": {
@@ -10565,7 +8880,7 @@
"column": 0
},
"end": {
- "line": 139,
+ "line": 123,
"column": 1
}
},
@@ -10574,8 +8889,8 @@
"type": "Block",
"value": "*\n * HighlightKeyword, highlight matched keyword\n * @param {Object} tf TableFilter instance\n ",
"range": [
- 122,
- 231
+ 123,
+ 232
],
"loc": {
"start": {
@@ -10592,8 +8907,8 @@
"type": "Line",
"value": "defines css class for highlighting",
"range": [
- 291,
- 327
+ 292,
+ 328
],
"loc": {
"start": {
@@ -10608,18 +8923,18 @@
},
{
"type": "Block",
- "value": "*\n * highlight occurences of searched term in passed node\n * @param {Node} node\n * @param {String} word Searched term\n * @param {String} cssClass Css class name\n ",
+ "value": "*\n * highlight occurences of searched term in passed node\n * @param {Node} node\n * @param {String} word Searched term\n * @param {String} cssClass Css class name\n *\n * TODO: refactor this method\n ",
"range": [
- 810,
- 1003
+ 778,
+ 1012
],
"loc": {
"start": {
- "line": 33,
+ "line": 32,
"column": 4
},
"end": {
- "line": 38,
+ "line": 39,
"column": 7
}
}
@@ -10628,16 +8943,16 @@
"type": "Line",
"value": " Iterate into this nodes childNodes",
"range": [
- 1049,
- 1086
+ 1059,
+ 1096
],
"loc": {
"start": {
- "line": 40,
+ "line": 41,
"column": 8
},
"end": {
- "line": 40,
+ "line": 41,
"column": 45
}
}
@@ -10646,16 +8961,16 @@
"type": "Line",
"value": " word not highlighted yet",
"range": [
- 1606,
- 1633
+ 1632,
+ 1659
],
"loc": {
"start": {
- "line": 54,
+ "line": 55,
"column": 20
},
"end": {
- "line": 54,
+ "line": 55,
"column": 47
}
}
@@ -10664,16 +8979,16 @@
"type": "Line",
"value": " Create a load of replacement nodes",
"range": [
- 1766,
- 1803
+ 1792,
+ 1829
],
"loc": {
"start": {
- "line": 57,
+ "line": 58,
"column": 24
},
"end": {
- "line": 57,
+ "line": 58,
"column": 61
}
}
@@ -10682,8 +8997,8 @@
"type": "Block",
"value": "*\n * Removes highlight to nodes matching passed string\n * @param {String} word\n * @param {String} cssClass Css class to remove\n ",
"range": [
- 2522,
- 2672
+ 2487,
+ 2637
],
"loc": {
"start": {
@@ -10700,16 +9015,16 @@
"type": "Block",
"value": "*\n * Clear all occurrences of highlighted nodes\n ",
"range": [
- 3757,
- 3818
+ 3149,
+ 3210
],
"loc": {
"start": {
- "line": 109,
+ "line": 94,
"column": 4
},
"end": {
- "line": 111,
+ "line": 96,
"column": 7
}
}
@@ -10718,16 +9033,16 @@
"type": "Line",
"value": " iterate filters values to unhighlight all values",
"range": [
- 3919,
- 3970
+ 3314,
+ 3365
],
"loc": {
"start": {
- "line": 116,
+ "line": 101,
"column": 8
},
"end": {
- "line": 116,
+ "line": 101,
"column": 59
}
}
diff --git a/docs/class/src/emitter.js~Emitter.html b/docs/class/src/emitter.js~Emitter.html
index ac5f1e42..3a362f94 100644
--- a/docs/class/src/emitter.js~Emitter.html
+++ b/docs/class/src/emitter.js~Emitter.html
@@ -3,7 +3,7 @@
- Emitter | tablefilter v0.2.3 API Document
+ Emitter | tablefilter v0.2.4 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 1c705939..3c8d1b10 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.2.3 API Document
+ AdapterEzEditTable | tablefilter v0.2.4 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 aa78100b..3ba234a8 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.2.3 API Document
+ ColOps | tablefilter v0.2.4 API Document
diff --git a/docs/class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html b/docs/class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html
index 91a47ae8..333ab901 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.2.3 API Document
+ ColsVisibility | tablefilter v0.2.4 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 e97c4d26..3a8c9ae3 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.2.3 API Document
+ FiltersVisibility | tablefilter v0.2.4 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 456c5572..0d28aa45 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.2.3 API Document
+ AdapterSortableTable | tablefilter v0.2.4 API Document
diff --git a/docs/class/src/modules/alternateRows.js~AlternateRows.html b/docs/class/src/modules/alternateRows.js~AlternateRows.html
index b3ac7a59..c4067021 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.2.3 API Document
+ AlternateRows | tablefilter v0.2.4 API Document
diff --git a/docs/class/src/modules/checkList.js~CheckList.html b/docs/class/src/modules/checkList.js~CheckList.html
index a9c2007b..81e2a144 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.2.3 API Document
+ CheckList | tablefilter v0.2.4 API Document
diff --git a/docs/class/src/modules/clearButton.js~ClearButton.html b/docs/class/src/modules/clearButton.js~ClearButton.html
index 73525fc1..67fe8418 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.2.3 API Document
+ ClearButton | tablefilter v0.2.4 API Document
diff --git a/docs/class/src/modules/dropdown.js~Dropdown.html b/docs/class/src/modules/dropdown.js~Dropdown.html
index 05961c9b..3625cbbf 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.2.3 API Document
+ Dropdown | tablefilter v0.2.4 API Document
diff --git a/docs/class/src/modules/feature.js~Feature.html b/docs/class/src/modules/feature.js~Feature.html
index 17f41034..3e9c972e 100644
--- a/docs/class/src/modules/feature.js~Feature.html
+++ b/docs/class/src/modules/feature.js~Feature.html
@@ -3,7 +3,7 @@
- Feature | tablefilter v0.2.3 API Document
+ Feature | tablefilter v0.2.4 API Document
diff --git a/docs/class/src/modules/gridLayout.js~GridLayout.html b/docs/class/src/modules/gridLayout.js~GridLayout.html
index 8d32a1d2..47f5e9ab 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.2.3 API Document
+ GridLayout | tablefilter v0.2.4 API Document
diff --git a/docs/class/src/modules/hash.js~Hash.html b/docs/class/src/modules/hash.js~Hash.html
index 743115e5..e453667a 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.2.3 API Document
+ Hash | tablefilter v0.2.4 API Document
diff --git a/docs/class/src/modules/help.js~Help.html b/docs/class/src/modules/help.js~Help.html
index 46a81f22..47889e13 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.2.3 API Document
+ Help | tablefilter v0.2.4 API Document
diff --git a/docs/class/src/modules/highlightKeywords.js~HighlightKeyword.html b/docs/class/src/modules/highlightKeywords.js~HighlightKeyword.html
index 25fc0dd3..12b16601 100644
--- a/docs/class/src/modules/highlightKeywords.js~HighlightKeyword.html
+++ b/docs/class/src/modules/highlightKeywords.js~HighlightKeyword.html
@@ -3,7 +3,7 @@
- HighlightKeyword | tablefilter v0.2.3 API Document
+ HighlightKeyword | tablefilter v0.2.4 API Document
@@ -194,31 +194,6 @@
-
-
-
-
-
-
-
-
-
- |
-
-
-
- |
-
-
- |
- public
-
-
-
|
@@ -455,7 +430,7 @@
- source
+ source
@@ -523,46 +498,6 @@
-
-
-
- public
-
-
-
-
- highlightedNodes: *
-
-
-
- source
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
|
@@ -729,7 +665,7 @@
- source
+ source
@@ -833,7 +769,7 @@
- source
+ source
diff --git a/docs/class/src/modules/loader.js~Loader.html b/docs/class/src/modules/loader.js~Loader.html
index db019bd4..9dde76b6 100644
--- a/docs/class/src/modules/loader.js~Loader.html
+++ b/docs/class/src/modules/loader.js~Loader.html
@@ -3,7 +3,7 @@
- Loader | tablefilter v0.2.3 API Document
+ Loader | tablefilter v0.2.4 API Document
diff --git a/docs/class/src/modules/noResults.js~NoResults.html b/docs/class/src/modules/noResults.js~NoResults.html
index c383f89b..dbf1e826 100644
--- a/docs/class/src/modules/noResults.js~NoResults.html
+++ b/docs/class/src/modules/noResults.js~NoResults.html
@@ -3,7 +3,7 @@
- NoResults | tablefilter v0.2.3 API Document
+ NoResults | tablefilter v0.2.4 API Document
diff --git a/docs/class/src/modules/paging.js~Paging.html b/docs/class/src/modules/paging.js~Paging.html
index c6740b88..f1465b8b 100644
--- a/docs/class/src/modules/paging.js~Paging.html
+++ b/docs/class/src/modules/paging.js~Paging.html
@@ -3,7 +3,7 @@
- Paging | tablefilter v0.2.3 API Document
+ Paging | tablefilter v0.2.4 API Document
diff --git a/docs/class/src/modules/popupFilter.js~PopupFilter.html b/docs/class/src/modules/popupFilter.js~PopupFilter.html
index 14967f8d..8320b4eb 100644
--- a/docs/class/src/modules/popupFilter.js~PopupFilter.html
+++ b/docs/class/src/modules/popupFilter.js~PopupFilter.html
@@ -3,7 +3,7 @@
- PopupFilter | tablefilter v0.2.3 API Document
+ PopupFilter | tablefilter v0.2.4 API Document
diff --git a/docs/class/src/modules/rowsCounter.js~RowsCounter.html b/docs/class/src/modules/rowsCounter.js~RowsCounter.html
index 3f9d4578..b6d6c831 100644
--- a/docs/class/src/modules/rowsCounter.js~RowsCounter.html
+++ b/docs/class/src/modules/rowsCounter.js~RowsCounter.html
@@ -3,7 +3,7 @@
- RowsCounter | tablefilter v0.2.3 API Document
+ RowsCounter | tablefilter v0.2.4 API Document
diff --git a/docs/class/src/modules/state.js~State.html b/docs/class/src/modules/state.js~State.html
index 849e5ead..f37b3568 100644
--- a/docs/class/src/modules/state.js~State.html
+++ b/docs/class/src/modules/state.js~State.html
@@ -3,7 +3,7 @@
- State | tablefilter v0.2.3 API Document
+ State | tablefilter v0.2.4 API Document
diff --git a/docs/class/src/modules/statusBar.js~StatusBar.html b/docs/class/src/modules/statusBar.js~StatusBar.html
index 886deb07..febc0a00 100644
--- a/docs/class/src/modules/statusBar.js~StatusBar.html
+++ b/docs/class/src/modules/statusBar.js~StatusBar.html
@@ -3,7 +3,7 @@
- StatusBar | tablefilter v0.2.3 API Document
+ StatusBar | tablefilter v0.2.4 API Document
diff --git a/docs/class/src/modules/store.js~Store.html b/docs/class/src/modules/store.js~Store.html
index 38e739cc..46143835 100644
--- a/docs/class/src/modules/store.js~Store.html
+++ b/docs/class/src/modules/store.js~Store.html
@@ -3,7 +3,7 @@
- Store | tablefilter v0.2.3 API Document
+ Store | tablefilter v0.2.4 API Document
diff --git a/docs/class/src/tablefilter.js~TableFilter.html b/docs/class/src/tablefilter.js~TableFilter.html
index 65e99da3..ded9da3e 100644
--- a/docs/class/src/tablefilter.js~TableFilter.html
+++ b/docs/class/src/tablefilter.js~TableFilter.html
@@ -3,7 +3,7 @@
- TableFilter | tablefilter v0.2.3 API Document
+ TableFilter | tablefilter v0.2.4 API Document
diff --git a/docs/coverage.json b/docs/coverage.json
index 2d2bdc00..73187b63 100644
--- a/docs/coverage.json
+++ b/docs/coverage.json
@@ -1,6 +1,6 @@
{
- "coverage": "25.88%",
- "expectCount": 738,
+ "coverage": "25.91%",
+ "expectCount": 737,
"actualCount": 191,
"files": {
"src/extensions/advancedGrid/adapterEzEditTable.js": {
@@ -469,16 +469,15 @@
]
},
"src/modules/highlightKeywords.js": {
- "expectCount": 11,
+ "expectCount": 10,
"actualCount": 4,
"undocumentLines": [
5,
- 128,
- 18,
+ 112,
+ 17,
14,
- 15,
- 21,
- 17
+ 20,
+ 16
]
},
"src/modules/loader.js": {
diff --git a/docs/dump.json b/docs/dump.json
index 17688e53..2263d8f7 100644
--- a/docs/dump.json
+++ b/docs/dump.json
@@ -7607,7 +7607,7 @@
"access": null,
"description": null,
"lineNumber": 1,
- "content": "import Dom from '../dom';\nimport Str from '../string';\nimport Types from '../types';\n\nexport class HighlightKeyword{\n\n /**\n * HighlightKeyword, highlight matched keyword\n * @param {Object} tf TableFilter instance\n */\n constructor(tf) {\n var f = tf.config();\n //defines css class for highlighting\n this.highlightCssClass = f.highlight_css_class || 'keyword';\n this.highlightedNodes = [];\n\n this.tf = tf;\n this.emitter = tf.emitter;\n }\n\n init(){\n this.emitter.on(\n ['before-filtering', 'destroy'],\n ()=> this.unhighlightAll()\n );\n this.emitter.on(\n ['highlight-keyword'],\n (tf, cell, word)=>\n this.highlight(cell, word, this.highlightCssClass)\n );\n }\n\n /**\n * highlight occurences of searched term in passed node\n * @param {Node} node\n * @param {String} word Searched term\n * @param {String} cssClass Css class name\n */\n highlight(node, word, cssClass){\n // Iterate into this nodes childNodes\n if(node.hasChildNodes){\n var children = node.childNodes;\n for(var i=0; i {\n if(Types.isArray(val)){\n val.forEach((item)=>\n this.unhighlight(item, this.highlightCssClass));\n } else {\n this.unhighlight(val, this.highlightCssClass);\n }\n });\n this.highlightedNodes = [];\n }\n\n destroy(){\n this.emitter.off(\n ['before-filtering', 'destroy'],\n ()=> this.unhighlightAll()\n );\n this.emitter.off(\n ['highlight-keyword'],\n (tf, cell, word)=>\n this.highlight(cell, word, this.highlightCssClass)\n );\n }\n}"
+ "content": "import Dom from '../dom';\nimport Str from '../string';\nimport Types from '../types';\n\nexport class HighlightKeyword {\n\n /**\n * HighlightKeyword, highlight matched keyword\n * @param {Object} tf TableFilter instance\n */\n constructor(tf) {\n let f = tf.config();\n //defines css class for highlighting\n this.highlightCssClass = f.highlight_css_class || 'keyword';\n\n this.tf = tf;\n this.emitter = tf.emitter;\n }\n\n init() {\n this.emitter.on(\n ['before-filtering', 'destroy'],\n () => this.unhighlightAll()\n );\n this.emitter.on(\n ['highlight-keyword'],\n (tf, cell, word) =>\n this.highlight(cell, word, this.highlightCssClass)\n );\n }\n\n /**\n * highlight occurences of searched term in passed node\n * @param {Node} node\n * @param {String} word Searched term\n * @param {String} cssClass Css class name\n *\n * TODO: refactor this method\n */\n highlight(node, word, cssClass) {\n // Iterate into this nodes childNodes\n if (node.hasChildNodes) {\n let children = node.childNodes;\n for (let i = 0; i < children.length; i++) {\n this.highlight(children[i], word, cssClass);\n }\n }\n\n if (node.nodeType === 3) {\n let tempNodeVal = Str.lower(node.nodeValue);\n let tempWordVal = Str.lower(word);\n if (tempNodeVal.indexOf(tempWordVal) !== -1) {\n let pn = node.parentNode;\n if (pn && pn.className !== cssClass) {\n // word not highlighted yet\n let nv = node.nodeValue,\n ni = tempNodeVal.indexOf(tempWordVal),\n // Create a load of replacement nodes\n before = Dom.text(nv.substr(0, ni)),\n docWordVal = nv.substr(ni, word.length),\n after = Dom.text(nv.substr(ni + word.length)),\n hiwordtext = Dom.text(docWordVal),\n hiword = Dom.create('span');\n hiword.className = cssClass;\n hiword.appendChild(hiwordtext);\n pn.insertBefore(before, node);\n pn.insertBefore(hiword, node);\n pn.insertBefore(after, node);\n pn.removeChild(node);\n }\n }\n }\n }\n\n /**\n * Removes highlight to nodes matching passed string\n * @param {String} word\n * @param {String} cssClass Css class to remove\n */\n unhighlight(word, cssClass) {\n let highlightedNodes = this.tf.tbl.querySelectorAll(`.${cssClass}`);\n for (let i = 0; i < highlightedNodes.length; i++) {\n let n = highlightedNodes[i];\n let nodeVal = Dom.getText(n),\n tempNodeVal = Str.lower(nodeVal),\n tempWordVal = Str.lower(word);\n\n if (tempNodeVal.indexOf(tempWordVal) !== -1) {\n n.parentNode.replaceChild(Dom.text(nodeVal), n);\n }\n }\n }\n\n /**\n * Clear all occurrences of highlighted nodes\n */\n unhighlightAll() {\n if (!this.tf.highlightKeywords) {\n return;\n }\n // iterate filters values to unhighlight all values\n this.tf.getFiltersValue().forEach((val) => {\n if (Types.isArray(val)) {\n val.forEach((item) =>\n this.unhighlight(item, this.highlightCssClass));\n } else {\n this.unhighlight(val, this.highlightCssClass);\n }\n });\n }\n\n destroy() {\n this.emitter.off(\n ['before-filtering', 'destroy'],\n () => this.unhighlightAll()\n );\n this.emitter.off(\n ['highlight-keyword'],\n (tf, cell, word) =>\n this.highlight(cell, word, this.highlightCssClass)\n );\n }\n}\n"
},
{
"__docId__": 396,
@@ -7674,12 +7674,12 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "highlightedNodes",
+ "name": "tf",
"memberof": "src/modules/highlightKeywords.js~HighlightKeyword",
- "longname": "src/modules/highlightKeywords.js~HighlightKeyword#highlightedNodes",
+ "longname": "src/modules/highlightKeywords.js~HighlightKeyword#tf",
"access": null,
"description": null,
- "lineNumber": 15,
+ "lineNumber": 16,
"undocument": true,
"type": {
"types": [
@@ -7692,9 +7692,9 @@
"kind": "member",
"static": false,
"variation": null,
- "name": "tf",
+ "name": "emitter",
"memberof": "src/modules/highlightKeywords.js~HighlightKeyword",
- "longname": "src/modules/highlightKeywords.js~HighlightKeyword#tf",
+ "longname": "src/modules/highlightKeywords.js~HighlightKeyword#emitter",
"access": null,
"description": null,
"lineNumber": 17,
@@ -7707,24 +7707,6 @@
},
{
"__docId__": 401,
- "kind": "member",
- "static": false,
- "variation": null,
- "name": "emitter",
- "memberof": "src/modules/highlightKeywords.js~HighlightKeyword",
- "longname": "src/modules/highlightKeywords.js~HighlightKeyword#emitter",
- "access": null,
- "description": null,
- "lineNumber": 18,
- "undocument": true,
- "type": {
- "types": [
- "*"
- ]
- }
- },
- {
- "__docId__": 402,
"kind": "method",
"static": false,
"variation": null,
@@ -7733,13 +7715,13 @@
"longname": "src/modules/highlightKeywords.js~HighlightKeyword#init",
"access": null,
"description": null,
- "lineNumber": 21,
+ "lineNumber": 20,
"undocument": true,
"params": [],
"generator": false
},
{
- "__docId__": 403,
+ "__docId__": 402,
"kind": "method",
"static": false,
"variation": null,
@@ -7748,7 +7730,7 @@
"longname": "src/modules/highlightKeywords.js~HighlightKeyword#highlight",
"access": null,
"description": "highlight occurences of searched term in passed node",
- "lineNumber": 39,
+ "lineNumber": 40,
"params": [
{
"nullable": null,
@@ -7778,13 +7760,13 @@
"spread": false,
"optional": false,
"name": "cssClass",
- "description": "Css class name"
+ "description": "Css class name\n\nTODO: refactor this method"
}
],
"generator": false
},
{
- "__docId__": 404,
+ "__docId__": 403,
"kind": "method",
"static": false,
"variation": null,
@@ -7819,7 +7801,7 @@
"generator": false
},
{
- "__docId__": 405,
+ "__docId__": 404,
"kind": "method",
"static": false,
"variation": null,
@@ -7828,30 +7810,12 @@
"longname": "src/modules/highlightKeywords.js~HighlightKeyword#unhighlightAll",
"access": null,
"description": "Clear all occurrences of highlighted nodes",
- "lineNumber": 112,
+ "lineNumber": 97,
"params": [],
"generator": false
},
{
- "__docId__": 406,
- "kind": "member",
- "static": false,
- "variation": null,
- "name": "highlightedNodes",
- "memberof": "src/modules/highlightKeywords.js~HighlightKeyword",
- "longname": "src/modules/highlightKeywords.js~HighlightKeyword#highlightedNodes",
- "access": null,
- "description": null,
- "lineNumber": 125,
- "undocument": true,
- "type": {
- "types": [
- "*"
- ]
- }
- },
- {
- "__docId__": 407,
+ "__docId__": 405,
"kind": "method",
"static": false,
"variation": null,
@@ -7860,13 +7824,13 @@
"longname": "src/modules/highlightKeywords.js~HighlightKeyword#destroy",
"access": null,
"description": null,
- "lineNumber": 128,
+ "lineNumber": 112,
"undocument": true,
"params": [],
"generator": false
},
{
- "__docId__": 408,
+ "__docId__": 406,
"kind": "file",
"static": true,
"variation": null,
@@ -7879,7 +7843,7 @@
"content": "import {Feature} from './feature';\nimport Dom from '../dom';\nimport Types from '../types';\n\nlet global = window;\n\nexport class Loader extends Feature{\n\n /**\n * Loading message/spinner\n * @param {Object} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'loader');\n\n // TableFilter configuration\n let f = this.config;\n\n //id of container element\n this.loaderTgtId = f.loader_target_id || null;\n //div containing loader\n this.loaderDiv = null;\n //defines loader text\n this.loaderText = f.loader_text || 'Loading...';\n //defines loader innerHtml\n this.loaderHtml = f.loader_html || null;\n //defines css class for loader div\n this.loaderCssClass = f.loader_css_class || 'loader';\n //delay for hiding loader\n this.loaderCloseDelay = 250;\n //callback function before loader is displayed\n this.onShowLoader = Types.isFn(f.on_show_loader) ?\n f.on_show_loader : null;\n //callback function after loader is closed\n this.onHideLoader = Types.isFn(f.on_hide_loader) ?\n f.on_hide_loader : null;\n //loader div\n this.prfxLoader = 'load_';\n }\n\n init() {\n if(this.initialized){\n return;\n }\n\n let tf = this.tf;\n let emitter = this.emitter;\n\n let containerDiv = Dom.create('div', ['id', this.prfxLoader+tf.id]);\n containerDiv.className = this.loaderCssClass;\n\n let targetEl = !this.loaderTgtId ?\n tf.tbl.parentNode : Dom.id(this.loaderTgtId);\n if(!this.loaderTgtId){\n targetEl.insertBefore(containerDiv, tf.tbl);\n } else {\n targetEl.appendChild(containerDiv);\n }\n this.loaderDiv = containerDiv;\n if(!this.loaderHtml){\n this.loaderDiv.appendChild(Dom.text(this.loaderText));\n } else {\n this.loaderDiv.innerHTML = this.loaderHtml;\n }\n\n this.show('none');\n\n // Subscribe to events\n emitter.on([\n 'before-filtering',\n 'before-populating-filter',\n 'before-page-change',\n 'before-clearing-filters',\n 'before-page-length-change',\n 'before-reset-page',\n 'before-reset-page-length',\n 'before-loading-extensions',\n 'before-loading-themes'],\n ()=> this.show('')\n );\n emitter.on([\n 'after-filtering',\n 'after-populating-filter',\n 'after-page-change',\n 'after-clearing-filters',\n 'after-page-length-change',\n 'after-reset-page',\n 'after-reset-page-length',\n 'after-loading-extensions',\n 'after-loading-themes'],\n ()=> this.show('none')\n );\n\n this.initialized = true;\n }\n\n show(p) {\n if(!this.isEnabled() /*|| this.loaderDiv.style.display === p*/){\n return;\n }\n\n let displayLoader = () => {\n if(!this.loaderDiv){\n return;\n }\n if(this.onShowLoader && p !== 'none'){\n this.onShowLoader.call(null, this);\n }\n this.loaderDiv.style.display = p;\n if(this.onHideLoader && p === 'none'){\n this.onHideLoader.call(null, this);\n }\n };\n\n let t = p === 'none' ? this.loaderCloseDelay : 1;\n global.setTimeout(displayLoader, t);\n }\n\n destroy() {\n if(!this.initialized){\n return;\n }\n\n let emitter = this.emitter;\n\n Dom.remove(this.loaderDiv);\n this.loaderDiv = null;\n\n // Unsubscribe to events\n emitter.off([\n 'before-filtering',\n 'before-populating-filter',\n 'before-page-change',\n 'before-clearing-filters',\n 'before-page-length-change',\n 'before-reset-page',\n 'before-reset-page-length',\n 'before-loading-extensions',\n 'before-loading-themes'],\n ()=> this.show('')\n );\n emitter.off([\n 'after-filtering',\n 'after-populating-filter',\n 'after-page-change',\n 'after-clearing-filters',\n 'after-page-length-change',\n 'after-reset-page',\n 'after-reset-page-length',\n 'after-loading-extensions',\n 'after-loading-themes'],\n ()=> this.show('none')\n );\n\n this.initialized = false;\n }\n}\n"
},
{
- "__docId__": 409,
+ "__docId__": 407,
"kind": "variable",
"static": true,
"variation": null,
@@ -7900,7 +7864,7 @@
}
},
{
- "__docId__": 410,
+ "__docId__": 408,
"kind": "class",
"static": true,
"variation": null,
@@ -7920,7 +7884,7 @@
]
},
{
- "__docId__": 411,
+ "__docId__": 409,
"kind": "constructor",
"static": false,
"variation": null,
@@ -7945,7 +7909,7 @@
"generator": false
},
{
- "__docId__": 412,
+ "__docId__": 410,
"kind": "member",
"static": false,
"variation": null,
@@ -7963,7 +7927,7 @@
}
},
{
- "__docId__": 413,
+ "__docId__": 411,
"kind": "member",
"static": false,
"variation": null,
@@ -7981,7 +7945,7 @@
}
},
{
- "__docId__": 414,
+ "__docId__": 412,
"kind": "member",
"static": false,
"variation": null,
@@ -7999,7 +7963,7 @@
}
},
{
- "__docId__": 415,
+ "__docId__": 413,
"kind": "member",
"static": false,
"variation": null,
@@ -8017,7 +7981,7 @@
}
},
{
- "__docId__": 416,
+ "__docId__": 414,
"kind": "member",
"static": false,
"variation": null,
@@ -8035,7 +7999,7 @@
}
},
{
- "__docId__": 417,
+ "__docId__": 415,
"kind": "member",
"static": false,
"variation": null,
@@ -8053,7 +8017,7 @@
}
},
{
- "__docId__": 418,
+ "__docId__": 416,
"kind": "member",
"static": false,
"variation": null,
@@ -8071,7 +8035,7 @@
}
},
{
- "__docId__": 419,
+ "__docId__": 417,
"kind": "member",
"static": false,
"variation": null,
@@ -8089,7 +8053,7 @@
}
},
{
- "__docId__": 420,
+ "__docId__": 418,
"kind": "member",
"static": false,
"variation": null,
@@ -8107,7 +8071,7 @@
}
},
{
- "__docId__": 421,
+ "__docId__": 419,
"kind": "method",
"static": false,
"variation": null,
@@ -8122,7 +8086,7 @@
"generator": false
},
{
- "__docId__": 422,
+ "__docId__": 420,
"kind": "member",
"static": false,
"variation": null,
@@ -8140,7 +8104,7 @@
}
},
{
- "__docId__": 423,
+ "__docId__": 421,
"kind": "member",
"static": false,
"variation": null,
@@ -8158,7 +8122,7 @@
}
},
{
- "__docId__": 424,
+ "__docId__": 422,
"kind": "method",
"static": false,
"variation": null,
@@ -8180,7 +8144,7 @@
"generator": false
},
{
- "__docId__": 425,
+ "__docId__": 423,
"kind": "method",
"static": false,
"variation": null,
@@ -8195,7 +8159,7 @@
"generator": false
},
{
- "__docId__": 426,
+ "__docId__": 424,
"kind": "member",
"static": false,
"variation": null,
@@ -8213,7 +8177,7 @@
}
},
{
- "__docId__": 427,
+ "__docId__": 425,
"kind": "member",
"static": false,
"variation": null,
@@ -8231,7 +8195,7 @@
}
},
{
- "__docId__": 428,
+ "__docId__": 426,
"kind": "file",
"static": true,
"variation": null,
@@ -8244,7 +8208,7 @@
"content": "import {Feature} from './feature';\nimport Dom from '../dom';\nimport Types from '../types';\n\nexport class NoResults extends Feature{\n\n /**\n * No results message UI component\n * @param {Object} tf TableFilter instance\n */\n constructor(tf){\n super(tf, 'noResults');\n\n //configuration object\n let f = this.config.no_results_message;\n\n this.content = f.content || 'No results';\n this.customContainer = f.custom_container || null;\n this.customContainerId = f.custom_container_id || null;\n this.isExternal = !Types.isEmpty(this.customContainer) ||\n !Types.isEmpty(this.customContainerId);\n this.cssClass = f.css_class || 'no-results';\n\n this.cont = null;\n\n //callback before message is displayed\n this.onBeforeShowMsg = Types.isFn(f.on_before_show_msg) ?\n f.on_before_show_msg : null;\n //callback after message is displayed\n this.onAfterShowMsg = Types.isFn(f.on_after_show_msg) ?\n f.on_after_show_msg : null;\n //callback before message is hidden\n this.onBeforeHideMsg = Types.isFn(f.on_before_hide_msg) ?\n f.on_before_hide_msg : null;\n //callback after message is hidden\n this.onAfterHideMsg = Types.isFn(f.on_after_hide_msg) ?\n f.on_after_hide_msg : null;\n\n this.prfxNoResults = 'nores_';\n }\n\n init(){\n if(this.initialized){\n return;\n }\n let tf = this.tf;\n let target = this.customContainer || Dom.id(this.customContainerId) ||\n tf.tbl;\n\n //container\n let cont = Dom.create('div', ['id', this.prfxNoResults+tf.id]);\n cont.className = this.cssClass;\n cont.innerHTML = this.content;\n\n if(this.isExternal){\n target.appendChild(cont);\n } else {\n target.parentNode.insertBefore(cont, target.nextSibling);\n }\n\n this.cont = cont;\n\n // subscribe to after-filtering event\n this.emitter.on(['after-filtering'], ()=> this.toggle());\n\n this.initialized = true;\n this.hide();\n }\n\n toggle(){\n if(this.tf.nbVisibleRows > 0){\n this.hide();\n } else {\n this.show();\n }\n }\n\n show(){\n if(!this.initialized || !this.isEnabled()){\n return;\n }\n\n if(this.onBeforeShowMsg){\n this.onBeforeShowMsg.call(null, this.tf, this);\n }\n\n this.setWidth();\n this.cont.style.display = 'block';\n\n if(this.onAfterShowMsg){\n this.onAfterShowMsg.call(null, this.tf, this);\n }\n }\n\n hide(){\n if(!this.initialized || !this.isEnabled()){\n return;\n }\n\n if(this.onBeforeHideMsg){\n this.onBeforeHideMsg.call(null, this.tf, this);\n }\n\n this.cont.style.display = 'none';\n\n if(this.onBeforeHideMsg){\n this.onBeforeHideMsg.call(null, this.tf, this);\n }\n }\n\n setWidth(){\n if(!this.initialized || this.isExternal || !this.isEnabled()){\n return;\n }\n if(this.tf.gridLayout){\n let gridLayout = this.tf.feature('gridLayout');\n this.cont.style.width = gridLayout.tblCont.clientWidth + 'px';\n } else {\n this.cont.style.width = this.tf.tbl.clientWidth + 'px';\n }\n\n }\n\n destroy(){\n if(!this.initialized){\n return;\n }\n Dom.remove(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__": 429,
+ "__docId__": 427,
"kind": "class",
"static": true,
"variation": null,
@@ -8264,7 +8228,7 @@
]
},
{
- "__docId__": 430,
+ "__docId__": 428,
"kind": "constructor",
"static": false,
"variation": null,
@@ -8289,7 +8253,7 @@
"generator": false
},
{
- "__docId__": 431,
+ "__docId__": 429,
"kind": "member",
"static": false,
"variation": null,
@@ -8307,7 +8271,7 @@
}
},
{
- "__docId__": 432,
+ "__docId__": 430,
"kind": "member",
"static": false,
"variation": null,
@@ -8325,7 +8289,7 @@
}
},
{
- "__docId__": 433,
+ "__docId__": 431,
"kind": "member",
"static": false,
"variation": null,
@@ -8343,7 +8307,7 @@
}
},
{
- "__docId__": 434,
+ "__docId__": 432,
"kind": "member",
"static": false,
"variation": null,
@@ -8361,7 +8325,7 @@
}
},
{
- "__docId__": 435,
+ "__docId__": 433,
"kind": "member",
"static": false,
"variation": null,
@@ -8379,7 +8343,7 @@
}
},
{
- "__docId__": 436,
+ "__docId__": 434,
"kind": "member",
"static": false,
"variation": null,
@@ -8397,7 +8361,7 @@
}
},
{
- "__docId__": 437,
+ "__docId__": 435,
"kind": "member",
"static": false,
"variation": null,
@@ -8415,7 +8379,7 @@
}
},
{
- "__docId__": 438,
+ "__docId__": 436,
"kind": "member",
"static": false,
"variation": null,
@@ -8433,7 +8397,7 @@
}
},
{
- "__docId__": 439,
+ "__docId__": 437,
"kind": "member",
"static": false,
"variation": null,
@@ -8451,7 +8415,7 @@
}
},
{
- "__docId__": 440,
+ "__docId__": 438,
"kind": "member",
"static": false,
"variation": null,
@@ -8469,7 +8433,7 @@
}
},
{
- "__docId__": 441,
+ "__docId__": 439,
"kind": "member",
"static": false,
"variation": null,
@@ -8487,7 +8451,7 @@
}
},
{
- "__docId__": 442,
+ "__docId__": 440,
"kind": "method",
"static": false,
"variation": null,
@@ -8502,7 +8466,7 @@
"generator": false
},
{
- "__docId__": 443,
+ "__docId__": 441,
"kind": "member",
"static": false,
"variation": null,
@@ -8520,7 +8484,7 @@
}
},
{
- "__docId__": 444,
+ "__docId__": 442,
"kind": "member",
"static": false,
"variation": null,
@@ -8538,7 +8502,7 @@
}
},
{
- "__docId__": 445,
+ "__docId__": 443,
"kind": "method",
"static": false,
"variation": null,
@@ -8553,7 +8517,7 @@
"generator": false
},
{
- "__docId__": 446,
+ "__docId__": 444,
"kind": "method",
"static": false,
"variation": null,
@@ -8568,7 +8532,7 @@
"generator": false
},
{
- "__docId__": 447,
+ "__docId__": 445,
"kind": "method",
"static": false,
"variation": null,
@@ -8583,7 +8547,7 @@
"generator": false
},
{
- "__docId__": 448,
+ "__docId__": 446,
"kind": "method",
"static": false,
"variation": null,
@@ -8598,7 +8562,7 @@
"generator": false
},
{
- "__docId__": 449,
+ "__docId__": 447,
"kind": "method",
"static": false,
"variation": null,
@@ -8613,7 +8577,7 @@
"generator": false
},
{
- "__docId__": 450,
+ "__docId__": 448,
"kind": "member",
"static": false,
"variation": null,
@@ -8631,7 +8595,7 @@
}
},
{
- "__docId__": 451,
+ "__docId__": 449,
"kind": "member",
"static": false,
"variation": null,
@@ -8649,7 +8613,7 @@
}
},
{
- "__docId__": 452,
+ "__docId__": 450,
"kind": "file",
"static": true,
"variation": null,
@@ -8662,7 +8626,7 @@
"content": "import {Feature} from './feature';\nimport Dom from '../dom';\nimport Types from '../types';\nimport Str from '../string';\nimport Event from '../event';\n\nexport class Paging extends Feature{\n\n /**\n * Pagination component\n * @param {Object} tf TableFilter instance\n */\n constructor(tf){\n super(tf, 'paging');\n\n // Configuration object\n var f = this.config;\n\n //css class for paging buttons (previous,next,etc.)\n this.btnPageCssClass = f.paging_btn_css_class || 'pgInp';\n //stores paging select element\n this.pagingSlc = null;\n //results per page select element\n this.resultsPerPageSlc = null;\n //id of container element\n this.pagingTgtId = f.paging_target_id || null;\n //defines table paging length\n this.pagingLength = !isNaN(f.paging_length) ? f.paging_length : 10;\n //id of container element\n this.resultsPerPageTgtId = f.results_per_page_target_id || null;\n //css class for paging select element\n this.pgSlcCssClass = f.paging_slc_css_class || 'pgSlc';\n //css class for paging input element\n this.pgInpCssClass = f.paging_inp_css_class || 'pgNbInp';\n //stores results per page text and values\n this.resultsPerPage = f.results_per_page || null;\n //enables/disables results per page drop-down\n this.hasResultsPerPage = Types.isArray(this.resultsPerPage);\n //defines css class for results per page select\n this.resultsSlcCssClass = f.results_slc_css_class || 'rspg';\n //css class for label preceding results per page select\n this.resultsSpanCssClass = f.results_span_css_class || 'rspgSpan';\n //1st row index of current page\n this.startPagingRow = 0;\n //total nb of pages\n this.nbPages = 0;\n //current page nb\n this.currentPageNb = 1;\n //defines next page button text\n this.btnNextPageText = f.btn_next_page_text || '>';\n //defines previous page button text\n this.btnPrevPageText = f.btn_prev_page_text || '<';\n //defines last page button text\n this.btnLastPageText = f.btn_last_page_text || '>|';\n //defines first page button text\n this.btnFirstPageText = f.btn_first_page_text || '|<';\n //defines next page button html\n this.btnNextPageHtml = f.btn_next_page_html ||\n (!tf.enableIcons ? null :\n '');\n //defines previous page button html\n this.btnPrevPageHtml = f.btn_prev_page_html ||\n (!tf.enableIcons ? null :\n '');\n //defines last page button html\n this.btnFirstPageHtml = f.btn_first_page_html ||\n (!tf.enableIcons ? null :\n '');\n //defines previous page button html\n this.btnLastPageHtml = f.btn_last_page_html ||\n (!tf.enableIcons ? null :\n '');\n //defines text preceeding page selector drop-down\n this.pageText = f.page_text || ' Page ';\n //defines text after page selector drop-down\n this.ofText = f.of_text || ' of ';\n //css class for span containing tot nb of pages\n this.nbPgSpanCssClass = f.nb_pages_css_class || 'nbpg';\n //enables/disables paging buttons\n this.hasPagingBtns = f.paging_btns===false ? false : true;\n //defines previous page button html\n this.pageSelectorType = f.page_selector_type || tf.fltTypeSlc;\n //calls function before page is changed\n this.onBeforeChangePage = Types.isFn(f.on_before_change_page) ?\n f.on_before_change_page : null;\n //calls function before page is changed\n this.onAfterChangePage = Types.isFn(f.on_after_change_page) ?\n f.on_after_change_page : null;\n\n //pages select\n this.prfxSlcPages = 'slcPages_';\n //results per page select\n this.prfxSlcResults = 'slcResults_';\n //label preciding results per page select\n this.prfxSlcResultsTxt = 'slcResultsTxt_';\n //span containing next page button\n this.prfxBtnNextSpan = 'btnNextSpan_';\n //span containing previous page button\n this.prfxBtnPrevSpan = 'btnPrevSpan_';\n //span containing last page button\n this.prfxBtnLastSpan = 'btnLastSpan_';\n //span containing first page button\n this.prfxBtnFirstSpan = 'btnFirstSpan_';\n //next button\n this.prfxBtnNext = 'btnNext_';\n //previous button\n this.prfxBtnPrev = 'btnPrev_';\n //last button\n this.prfxBtnLast = 'btnLast_';\n //first button\n this.prfxBtnFirst = 'btnFirst_';\n //span for tot nb pages\n this.prfxPgSpan = 'pgspan_';\n //span preceding pages select (contains 'Page')\n this.prfxPgBeforeSpan = 'pgbeforespan_';\n //span following pages select (contains ' of ')\n this.prfxPgAfterSpan = 'pgafterspan_';\n\n var start_row = tf.refRow;\n var nrows = tf.nbRows;\n //calculates page nb\n this.nbPages = Math.ceil((nrows-start_row)/this.pagingLength);\n\n //Paging elements events\n var o = this;\n // Paging DOM events\n this.evt = {\n slcIndex(){\n return (o.pageSelectorType===tf.fltTypeSlc) ?\n o.pagingSlc.options.selectedIndex :\n parseInt(o.pagingSlc.value, 10)-1;\n },\n nbOpts(){\n return (o.pageSelectorType===tf.fltTypeSlc) ?\n parseInt(o.pagingSlc.options.length, 10)-1 :\n (o.nbPages-1);\n },\n next(){\n var nextIndex = o.evt.slcIndex() < o.evt.nbOpts() ?\n o.evt.slcIndex()+1 : 0;\n o.changePage(nextIndex);\n },\n prev(){\n var prevIndex = o.evt.slcIndex()>0 ?\n o.evt.slcIndex()-1 : o.evt.nbOpts();\n o.changePage(prevIndex);\n },\n last(){\n o.changePage(o.evt.nbOpts());\n },\n first(){\n o.changePage(0);\n },\n _detectKey(e){\n var key = Event.keyCode(e);\n if(key===13){\n if(tf.sorted){\n tf.filter();\n o.changePage(o.evt.slcIndex());\n } else{\n o.changePage();\n }\n this.blur();\n }\n },\n slcPagesChange: null,\n nextEvt: null,\n prevEvt: null,\n lastEvt: null,\n firstEvt: null\n };\n }\n\n /**\n * Initialize DOM elements\n */\n init(){\n var slcPages;\n var tf = this.tf;\n var evt = this.evt;\n\n if(this.initialized){\n return;\n }\n\n // Check resultsPerPage is in expected format and initialise the\n // results per page component\n if(this.hasResultsPerPage){\n if(this.resultsPerPage.length<2){\n this.hasResultsPerPage = false;\n } else {\n this.pagingLength = this.resultsPerPage[1][0];\n this.setResultsPerPage();\n }\n }\n\n evt.slcPagesChange = (event) => {\n var slc = event.target;\n this.changePage(slc.selectedIndex);\n };\n\n // Paging drop-down list selector\n if(this.pageSelectorType === tf.fltTypeSlc){\n slcPages = Dom.create(\n tf.fltTypeSlc, ['id', this.prfxSlcPages+tf.id]);\n slcPages.className = this.pgSlcCssClass;\n Event.add(slcPages, 'change', evt.slcPagesChange);\n }\n\n // Paging input selector\n if(this.pageSelectorType === tf.fltTypeInp){\n slcPages = Dom.create(\n tf.fltTypeInp,\n ['id', this.prfxSlcPages+tf.id],\n ['value', this.currentPageNb]\n );\n slcPages.className = this.pgInpCssClass;\n Event.add(slcPages, 'keypress', evt._detectKey);\n }\n\n // btns containers\n var btnNextSpan = Dom.create(\n 'span',['id', this.prfxBtnNextSpan+tf.id]);\n var btnPrevSpan = Dom.create(\n 'span',['id', this.prfxBtnPrevSpan+tf.id]);\n var btnLastSpan = Dom.create(\n 'span',['id', this.prfxBtnLastSpan+tf.id]);\n var btnFirstSpan = Dom.create(\n 'span',['id', this.prfxBtnFirstSpan+tf.id]);\n\n if(this.hasPagingBtns){\n // Next button\n if(!this.btnNextPageHtml){\n var btn_next = Dom.create(\n tf.fltTypeInp,\n ['id', this.prfxBtnNext+tf.id],\n ['type', 'button'],\n ['value', this.btnNextPageText],\n ['title', 'Next']\n );\n btn_next.className = this.btnPageCssClass;\n Event.add(btn_next, 'click', evt.next);\n btnNextSpan.appendChild(btn_next);\n } else {\n btnNextSpan.innerHTML = this.btnNextPageHtml;\n Event.add(btnNextSpan, 'click', evt.next);\n }\n // Previous button\n if(!this.btnPrevPageHtml){\n var btn_prev = Dom.create(\n tf.fltTypeInp,\n ['id', this.prfxBtnPrev+tf.id],\n ['type', 'button'],\n ['value', this.btnPrevPageText],\n ['title', 'Previous']\n );\n btn_prev.className = this.btnPageCssClass;\n Event.add(btn_prev, 'click', evt.prev);\n btnPrevSpan.appendChild(btn_prev);\n } else {\n btnPrevSpan.innerHTML = this.btnPrevPageHtml;\n Event.add(btnPrevSpan, 'click', evt.prev);\n }\n // Last button\n if(!this.btnLastPageHtml){\n var btn_last = Dom.create(\n tf.fltTypeInp,\n ['id', this.prfxBtnLast+tf.id],\n ['type', 'button'],\n ['value', this.btnLastPageText],\n ['title', 'Last']\n );\n btn_last.className = this.btnPageCssClass;\n Event.add(btn_last, 'click', evt.last);\n btnLastSpan.appendChild(btn_last);\n } else {\n btnLastSpan.innerHTML = this.btnLastPageHtml;\n Event.add(btnLastSpan, 'click', evt.last);\n }\n // First button\n if(!this.btnFirstPageHtml){\n var btn_first = Dom.create(\n tf.fltTypeInp,\n ['id', this.prfxBtnFirst+tf.id],\n ['type', 'button'],\n ['value', this.btnFirstPageText],\n ['title', 'First']\n );\n btn_first.className = this.btnPageCssClass;\n Event.add(btn_first, 'click', evt.first);\n btnFirstSpan.appendChild(btn_first);\n } else {\n btnFirstSpan.innerHTML = this.btnFirstPageHtml;\n Event.add(btnFirstSpan, 'click', evt.first);\n }\n }\n\n // paging elements (buttons+drop-down list) are added to defined element\n if(!this.pagingTgtId){\n tf.setToolbar();\n }\n var targetEl = !this.pagingTgtId ? tf.mDiv : Dom.id(this.pagingTgtId);\n targetEl.appendChild(btnFirstSpan);\n targetEl.appendChild(btnPrevSpan);\n\n var pgBeforeSpan = Dom.create(\n 'span',['id', this.prfxPgBeforeSpan+tf.id] );\n pgBeforeSpan.appendChild( Dom.text(this.pageText) );\n pgBeforeSpan.className = this.nbPgSpanCssClass;\n targetEl.appendChild(pgBeforeSpan);\n targetEl.appendChild(slcPages);\n var pgAfterSpan = Dom.create(\n 'span',['id', this.prfxPgAfterSpan+tf.id]);\n pgAfterSpan.appendChild( Dom.text(this.ofText) );\n pgAfterSpan.className = this.nbPgSpanCssClass;\n targetEl.appendChild(pgAfterSpan);\n var pgspan = Dom.create( 'span',['id', this.prfxPgSpan+tf.id] );\n pgspan.className = this.nbPgSpanCssClass;\n pgspan.appendChild( Dom.text(' '+this.nbPages+' ') );\n targetEl.appendChild(pgspan);\n targetEl.appendChild(btnNextSpan);\n targetEl.appendChild(btnLastSpan);\n this.pagingSlc = Dom.id(this.prfxSlcPages+tf.id);\n\n if(!tf.rememberGridValues){\n this.setPagingInfo();\n }\n if(!tf.fltGrid){\n tf.validateAllRows();\n this.setPagingInfo(tf.validRowsIndex);\n }\n\n this.emitter.on(['after-filtering'], ()=> this.resetPagingInfo());\n this.emitter.on(['initialized'], ()=> this.resetValues());\n this.emitter.on(['change-page'],\n (tf, pageNumber) => this.setPage(pageNumber));\n this.emitter.on(['change-page-results'],\n (tf, pageLength) => this.changeResultsPerPage(pageLength));\n\n this.initialized = true;\n }\n\n /**\n * Reset paging when filters are already instantiated\n * @param {Boolean} filterTable Execute filtering once paging instanciated\n */\n reset(filterTable=false){\n var tf = this.tf;\n if(this.isEnabled()){\n return;\n }\n this.enable();\n this.init();\n\n if(filterTable){\n tf.filter();\n }\n }\n\n /**\n * Reset paging info from scratch after a filtering process\n */\n resetPagingInfo(){\n this.startPagingRow = 0;\n this.currentPageNb = 1;\n this.setPagingInfo(this.tf.validRowsIndex);\n }\n\n /**\n * Calculate number of pages based on valid rows\n * Refresh paging select according to number of pages\n * @param {Array} validRows Collection of valid rows\n */\n setPagingInfo(validRows){\n var tf = this.tf;\n var mdiv = !this.pagingTgtId ? tf.mDiv : Dom.id(this.pagingTgtId);\n var pgspan = Dom.id(this.prfxPgSpan+tf.id);\n\n //store valid rows indexes\n tf.validRowsIndex = validRows || tf.getValidRows(true);\n\n //calculate nb of pages\n this.nbPages = Math.ceil(tf.validRowsIndex.length/this.pagingLength);\n //refresh page nb span\n pgspan.innerHTML = this.nbPages;\n //select clearing shortcut\n if(this.pageSelectorType === tf.fltTypeSlc){\n this.pagingSlc.innerHTML = '';\n }\n\n if(this.nbPages>0){\n mdiv.style.visibility = 'visible';\n if(this.pageSelectorType === tf.fltTypeSlc){\n for(var z=0; z=startPagingRow && h {\n this.onChangeResultsPerPage();\n ev.target.blur();\n };\n\n var slcR = Dom.create(\n tf.fltTypeSlc, ['id', this.prfxSlcResults+tf.id]);\n slcR.className = this.resultsSlcCssClass;\n var slcRText = this.resultsPerPage[0],\n slcROpts = this.resultsPerPage[1];\n var slcRSpan = Dom.create(\n 'span',['id', this.prfxSlcResultsTxt+tf.id]);\n slcRSpan.className = this.resultsSpanCssClass;\n\n // results per page select is added to external element\n if(!this.resultsPerPageTgtId){\n tf.setToolbar();\n }\n var targetEl = !this.resultsPerPageTgtId ?\n tf.rDiv : Dom.id(this.resultsPerPageTgtId);\n slcRSpan.appendChild(Dom.text(slcRText));\n\n var help = tf.feature('help');\n if(help && help.btn){\n help.btn.parentNode.insertBefore(slcRSpan, help.btn);\n help.btn.parentNode.insertBefore(slcR, help.btn);\n } else {\n targetEl.appendChild(slcRSpan);\n targetEl.appendChild(slcR);\n }\n\n for(var r=0; r=0 && index<=(this.nbPages-1) ){\n if(this.onBeforeChangePage){\n this.onBeforeChangePage.call(null, this, (index + 1));\n }\n this.currentPageNb = parseInt(index, 10)+1;\n if(this.pageSelectorType===tf.fltTypeSlc){\n this.pagingSlc.options[index].selected = true;\n } else {\n this.pagingSlc.value = this.currentPageNb;\n }\n\n this.startPagingRow = (this.pageSelectorType === tf.fltTypeSlc) ?\n this.pagingSlc.value : (index*this.pagingLength);\n\n this.groupByPage();\n\n if(this.onAfterChangePage){\n this.onAfterChangePage.call(null, this, (index + 1));\n }\n }\n\n this.emitter.emit('after-page-change', tf, (index + 1));\n }\n\n changeResultsPerPage(val){\n if(!this.isEnabled() || isNaN(val)){\n return;\n }\n\n this.resultsPerPageSlc.value = val;\n this.onChangeResultsPerPage();\n }\n\n /**\n * Change rows according to page results drop-down\n */\n onChangeResultsPerPage(){\n var tf = this.tf;\n\n if(!this.isEnabled()){\n return;\n }\n\n this.emitter.emit('before-page-length-change', tf);\n\n var slcR = this.resultsPerPageSlc;\n var slcIndex = slcR.selectedIndex;\n var slcPagesSelIndex = (this.pageSelectorType === tf.fltTypeSlc) ?\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 === tf.fltTypeSlc){\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 persisted pagination info\n */\n resetValues(){\n var tf = this.tf;\n if(tf.rememberPageLen){\n this.resetPageLength();\n }\n if(tf.rememberPageNb){\n this.resetPage();\n }\n }\n\n /**\n * Re-set page nb at page re-load\n */\n resetPage(){\n var tf = this.tf;\n if(!this.isEnabled()){\n return;\n }\n this.emitter.emit('before-reset-page', tf);\n var pgNb = tf.feature('store').getPageNb();\n if(pgNb !== ''){\n this.changePage((pgNb-1));\n }\n this.emitter.emit('after-reset-page', tf, pgNb);\n }\n\n /**\n * Re-set page length value at page re-load\n */\n resetPageLength(){\n var tf = this.tf;\n if(!this.isEnabled()){\n return;\n }\n this.emitter.emit('before-reset-page-length', tf);\n var pglenIndex = tf.feature('store').getPageLength();\n\n if(pglenIndex!==''){\n this.resultsPerPageSlc.options[pglenIndex].selected = true;\n this.changeResultsPerPage();\n }\n this.emitter.emit('after-reset-page-length', tf, pglenIndex);\n }\n\n /**\n * Remove paging feature\n */\n destroy(){\n var tf = this.tf;\n\n if(!this.initialized){\n return;\n }\n // btns containers\n var btnNextSpan = Dom.id(this.prfxBtnNextSpan+tf.id);\n var btnPrevSpan = Dom.id(this.prfxBtnPrevSpan+tf.id);\n var btnLastSpan = Dom.id(this.prfxBtnLastSpan+tf.id);\n var btnFirstSpan = Dom.id(this.prfxBtnFirstSpan+tf.id);\n //span containing 'Page' text\n var pgBeforeSpan = Dom.id(this.prfxPgBeforeSpan+tf.id);\n //span containing 'of' text\n var pgAfterSpan = Dom.id(this.prfxPgAfterSpan+tf.id);\n //span containing nb of pages\n var pgspan = Dom.id(this.prfxPgSpan+tf.id);\n\n var evt = this.evt;\n\n if(this.pagingSlc){\n if(this.pageSelectorType === tf.fltTypeSlc){\n Event.remove(this.pagingSlc, 'change', evt.slcPagesChange);\n }\n else if(this.pageSelectorType === tf.fltTypeInp){\n Event.remove(this.pagingSlc, 'keypress', evt._detectKey);\n }\n Dom.remove(this.pagingSlc);\n }\n\n if(btnNextSpan){\n Event.remove(btnNextSpan, 'click', evt.next);\n Dom.remove(btnNextSpan);\n }\n\n if(btnPrevSpan){\n Event.remove(btnPrevSpan, 'click', evt.prev);\n Dom.remove(btnPrevSpan);\n }\n\n if(btnLastSpan){\n Event.remove(btnLastSpan, 'click', evt.last);\n Dom.remove(btnLastSpan);\n }\n\n if(btnFirstSpan){\n Event.remove(btnFirstSpan, 'click', evt.first);\n Dom.remove(btnFirstSpan);\n }\n\n if(pgBeforeSpan){\n Dom.remove(pgBeforeSpan);\n }\n\n if(pgAfterSpan){\n Dom.remove(pgAfterSpan);\n }\n\n if(pgspan){\n Dom.remove(pgspan);\n }\n\n if(this.hasResultsPerPage){\n this.removeResultsPerPage();\n }\n\n this.emitter.off(['after-filtering'], ()=> this.resetPagingInfo());\n this.emitter.off(['initialized'], ()=> this.resetValues());\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__": 453,
+ "__docId__": 451,
"kind": "class",
"static": true,
"variation": null,
@@ -8682,7 +8646,7 @@
]
},
{
- "__docId__": 454,
+ "__docId__": 452,
"kind": "constructor",
"static": false,
"variation": null,
@@ -8707,7 +8671,7 @@
"generator": false
},
{
- "__docId__": 455,
+ "__docId__": 453,
"kind": "member",
"static": false,
"variation": null,
@@ -8725,7 +8689,7 @@
}
},
{
- "__docId__": 456,
+ "__docId__": 454,
"kind": "member",
"static": false,
"variation": null,
@@ -8743,7 +8707,7 @@
}
},
{
- "__docId__": 457,
+ "__docId__": 455,
"kind": "member",
"static": false,
"variation": null,
@@ -8761,7 +8725,7 @@
}
},
{
- "__docId__": 458,
+ "__docId__": 456,
"kind": "member",
"static": false,
"variation": null,
@@ -8779,7 +8743,7 @@
}
},
{
- "__docId__": 459,
+ "__docId__": 457,
"kind": "member",
"static": false,
"variation": null,
@@ -8797,7 +8761,7 @@
}
},
{
- "__docId__": 460,
+ "__docId__": 458,
"kind": "member",
"static": false,
"variation": null,
@@ -8815,7 +8779,7 @@
}
},
{
- "__docId__": 461,
+ "__docId__": 459,
"kind": "member",
"static": false,
"variation": null,
@@ -8833,7 +8797,7 @@
}
},
{
- "__docId__": 462,
+ "__docId__": 460,
"kind": "member",
"static": false,
"variation": null,
@@ -8851,7 +8815,7 @@
}
},
{
- "__docId__": 463,
+ "__docId__": 461,
"kind": "member",
"static": false,
"variation": null,
@@ -8869,7 +8833,7 @@
}
},
{
- "__docId__": 464,
+ "__docId__": 462,
"kind": "member",
"static": false,
"variation": null,
@@ -8887,7 +8851,7 @@
}
},
{
- "__docId__": 465,
+ "__docId__": 463,
"kind": "member",
"static": false,
"variation": null,
@@ -8905,7 +8869,7 @@
}
},
{
- "__docId__": 466,
+ "__docId__": 464,
"kind": "member",
"static": false,
"variation": null,
@@ -8923,7 +8887,7 @@
}
},
{
- "__docId__": 467,
+ "__docId__": 465,
"kind": "member",
"static": false,
"variation": null,
@@ -8941,7 +8905,7 @@
}
},
{
- "__docId__": 468,
+ "__docId__": 466,
"kind": "member",
"static": false,
"variation": null,
@@ -8959,7 +8923,7 @@
}
},
{
- "__docId__": 469,
+ "__docId__": 467,
"kind": "member",
"static": false,
"variation": null,
@@ -8977,7 +8941,7 @@
}
},
{
- "__docId__": 470,
+ "__docId__": 468,
"kind": "member",
"static": false,
"variation": null,
@@ -8995,7 +8959,7 @@
}
},
{
- "__docId__": 471,
+ "__docId__": 469,
"kind": "member",
"static": false,
"variation": null,
@@ -9013,7 +8977,7 @@
}
},
{
- "__docId__": 472,
+ "__docId__": 470,
"kind": "member",
"static": false,
"variation": null,
@@ -9031,7 +8995,7 @@
}
},
{
- "__docId__": 473,
+ "__docId__": 471,
"kind": "member",
"static": false,
"variation": null,
@@ -9049,7 +9013,7 @@
}
},
{
- "__docId__": 474,
+ "__docId__": 472,
"kind": "member",
"static": false,
"variation": null,
@@ -9067,7 +9031,7 @@
}
},
{
- "__docId__": 475,
+ "__docId__": 473,
"kind": "member",
"static": false,
"variation": null,
@@ -9085,7 +9049,7 @@
}
},
{
- "__docId__": 476,
+ "__docId__": 474,
"kind": "member",
"static": false,
"variation": null,
@@ -9103,7 +9067,7 @@
}
},
{
- "__docId__": 477,
+ "__docId__": 475,
"kind": "member",
"static": false,
"variation": null,
@@ -9121,7 +9085,7 @@
}
},
{
- "__docId__": 478,
+ "__docId__": 476,
"kind": "member",
"static": false,
"variation": null,
@@ -9139,7 +9103,7 @@
}
},
{
- "__docId__": 479,
+ "__docId__": 477,
"kind": "member",
"static": false,
"variation": null,
@@ -9157,7 +9121,7 @@
}
},
{
- "__docId__": 480,
+ "__docId__": 478,
"kind": "member",
"static": false,
"variation": null,
@@ -9175,7 +9139,7 @@
}
},
{
- "__docId__": 481,
+ "__docId__": 479,
"kind": "member",
"static": false,
"variation": null,
@@ -9193,7 +9157,7 @@
}
},
{
- "__docId__": 482,
+ "__docId__": 480,
"kind": "member",
"static": false,
"variation": null,
@@ -9211,7 +9175,7 @@
}
},
{
- "__docId__": 483,
+ "__docId__": 481,
"kind": "member",
"static": false,
"variation": null,
@@ -9229,7 +9193,7 @@
}
},
{
- "__docId__": 484,
+ "__docId__": 482,
"kind": "member",
"static": false,
"variation": null,
@@ -9247,7 +9211,7 @@
}
},
{
- "__docId__": 485,
+ "__docId__": 483,
"kind": "member",
"static": false,
"variation": null,
@@ -9265,7 +9229,7 @@
}
},
{
- "__docId__": 486,
+ "__docId__": 484,
"kind": "member",
"static": false,
"variation": null,
@@ -9283,7 +9247,7 @@
}
},
{
- "__docId__": 487,
+ "__docId__": 485,
"kind": "member",
"static": false,
"variation": null,
@@ -9301,7 +9265,7 @@
}
},
{
- "__docId__": 488,
+ "__docId__": 486,
"kind": "member",
"static": false,
"variation": null,
@@ -9319,7 +9283,7 @@
}
},
{
- "__docId__": 489,
+ "__docId__": 487,
"kind": "member",
"static": false,
"variation": null,
@@ -9337,7 +9301,7 @@
}
},
{
- "__docId__": 490,
+ "__docId__": 488,
"kind": "member",
"static": false,
"variation": null,
@@ -9355,7 +9319,7 @@
}
},
{
- "__docId__": 491,
+ "__docId__": 489,
"kind": "member",
"static": false,
"variation": null,
@@ -9373,7 +9337,7 @@
}
},
{
- "__docId__": 492,
+ "__docId__": 490,
"kind": "member",
"static": false,
"variation": null,
@@ -9391,7 +9355,7 @@
}
},
{
- "__docId__": 493,
+ "__docId__": 491,
"kind": "member",
"static": false,
"variation": null,
@@ -9409,7 +9373,7 @@
}
},
{
- "__docId__": 494,
+ "__docId__": 492,
"kind": "member",
"static": false,
"variation": null,
@@ -9427,7 +9391,7 @@
}
},
{
- "__docId__": 495,
+ "__docId__": 493,
"kind": "member",
"static": false,
"variation": null,
@@ -9445,7 +9409,7 @@
}
},
{
- "__docId__": 496,
+ "__docId__": 494,
"kind": "member",
"static": false,
"variation": null,
@@ -9463,7 +9427,7 @@
}
},
{
- "__docId__": 497,
+ "__docId__": 495,
"kind": "member",
"static": false,
"variation": null,
@@ -9481,7 +9445,7 @@
}
},
{
- "__docId__": 498,
+ "__docId__": 496,
"kind": "member",
"static": false,
"variation": null,
@@ -9499,7 +9463,7 @@
}
},
{
- "__docId__": 499,
+ "__docId__": 497,
"kind": "member",
"static": false,
"variation": null,
@@ -9517,7 +9481,7 @@
}
},
{
- "__docId__": 500,
+ "__docId__": 498,
"kind": "member",
"static": false,
"variation": null,
@@ -9535,7 +9499,7 @@
}
},
{
- "__docId__": 501,
+ "__docId__": 499,
"kind": "method",
"static": false,
"variation": null,
@@ -9549,7 +9513,7 @@
"generator": false
},
{
- "__docId__": 502,
+ "__docId__": 500,
"kind": "member",
"static": false,
"variation": null,
@@ -9567,7 +9531,7 @@
}
},
{
- "__docId__": 503,
+ "__docId__": 501,
"kind": "member",
"static": false,
"variation": null,
@@ -9585,7 +9549,7 @@
}
},
{
- "__docId__": 504,
+ "__docId__": 502,
"kind": "member",
"static": false,
"variation": null,
@@ -9603,7 +9567,7 @@
}
},
{
- "__docId__": 505,
+ "__docId__": 503,
"kind": "member",
"static": false,
"variation": null,
@@ -9621,7 +9585,7 @@
}
},
{
- "__docId__": 506,
+ "__docId__": 504,
"kind": "method",
"static": false,
"variation": null,
@@ -9646,7 +9610,7 @@
"generator": false
},
{
- "__docId__": 507,
+ "__docId__": 505,
"kind": "method",
"static": false,
"variation": null,
@@ -9660,7 +9624,7 @@
"generator": false
},
{
- "__docId__": 508,
+ "__docId__": 506,
"kind": "member",
"static": false,
"variation": null,
@@ -9678,7 +9642,7 @@
}
},
{
- "__docId__": 509,
+ "__docId__": 507,
"kind": "member",
"static": false,
"variation": null,
@@ -9696,7 +9660,7 @@
}
},
{
- "__docId__": 510,
+ "__docId__": 508,
"kind": "method",
"static": false,
"variation": null,
@@ -9721,7 +9685,7 @@
"generator": false
},
{
- "__docId__": 511,
+ "__docId__": 509,
"kind": "member",
"static": false,
"variation": null,
@@ -9739,7 +9703,7 @@
}
},
{
- "__docId__": 512,
+ "__docId__": 510,
"kind": "method",
"static": false,
"variation": null,
@@ -9764,7 +9728,7 @@
"generator": false
},
{
- "__docId__": 513,
+ "__docId__": 511,
"kind": "method",
"static": false,
"variation": null,
@@ -9786,7 +9750,7 @@
"generator": false
},
{
- "__docId__": 514,
+ "__docId__": 512,
"kind": "method",
"static": false,
"variation": null,
@@ -9811,7 +9775,7 @@
"generator": false
},
{
- "__docId__": 515,
+ "__docId__": 513,
"kind": "method",
"static": false,
"variation": null,
@@ -9825,7 +9789,7 @@
"generator": false
},
{
- "__docId__": 516,
+ "__docId__": 514,
"kind": "member",
"static": false,
"variation": null,
@@ -9843,7 +9807,7 @@
}
},
{
- "__docId__": 517,
+ "__docId__": 515,
"kind": "method",
"static": false,
"variation": null,
@@ -9857,7 +9821,7 @@
"generator": false
},
{
- "__docId__": 518,
+ "__docId__": 516,
"kind": "member",
"static": false,
"variation": null,
@@ -9875,7 +9839,7 @@
}
},
{
- "__docId__": 519,
+ "__docId__": 517,
"kind": "method",
"static": false,
"variation": null,
@@ -9900,7 +9864,7 @@
"generator": false
},
{
- "__docId__": 520,
+ "__docId__": 518,
"kind": "member",
"static": false,
"variation": null,
@@ -9918,7 +9882,7 @@
}
},
{
- "__docId__": 521,
+ "__docId__": 519,
"kind": "member",
"static": false,
"variation": null,
@@ -9936,7 +9900,7 @@
}
},
{
- "__docId__": 522,
+ "__docId__": 520,
"kind": "method",
"static": false,
"variation": null,
@@ -9958,7 +9922,7 @@
"generator": false
},
{
- "__docId__": 523,
+ "__docId__": 521,
"kind": "method",
"static": false,
"variation": null,
@@ -9972,7 +9936,7 @@
"generator": false
},
{
- "__docId__": 524,
+ "__docId__": 522,
"kind": "member",
"static": false,
"variation": null,
@@ -9990,7 +9954,7 @@
}
},
{
- "__docId__": 525,
+ "__docId__": 523,
"kind": "member",
"static": false,
"variation": null,
@@ -10008,7 +9972,7 @@
}
},
{
- "__docId__": 526,
+ "__docId__": 524,
"kind": "member",
"static": false,
"variation": null,
@@ -10026,7 +9990,7 @@
}
},
{
- "__docId__": 527,
+ "__docId__": 525,
"kind": "method",
"static": false,
"variation": null,
@@ -10040,7 +10004,7 @@
"generator": false
},
{
- "__docId__": 528,
+ "__docId__": 526,
"kind": "method",
"static": false,
"variation": null,
@@ -10054,7 +10018,7 @@
"generator": false
},
{
- "__docId__": 529,
+ "__docId__": 527,
"kind": "method",
"static": false,
"variation": null,
@@ -10068,7 +10032,7 @@
"generator": false
},
{
- "__docId__": 530,
+ "__docId__": 528,
"kind": "method",
"static": false,
"variation": null,
@@ -10082,7 +10046,7 @@
"generator": false
},
{
- "__docId__": 531,
+ "__docId__": 529,
"kind": "member",
"static": false,
"variation": null,
@@ -10100,7 +10064,7 @@
}
},
{
- "__docId__": 532,
+ "__docId__": 530,
"kind": "member",
"static": false,
"variation": null,
@@ -10118,7 +10082,7 @@
}
},
{
- "__docId__": 533,
+ "__docId__": 531,
"kind": "member",
"static": false,
"variation": null,
@@ -10136,7 +10100,7 @@
}
},
{
- "__docId__": 534,
+ "__docId__": 532,
"kind": "file",
"static": true,
"variation": null,
@@ -10149,7 +10113,7 @@
"content": "import {Feature} from './feature';\nimport Types from '../types';\nimport Dom from '../dom';\nimport Event from '../event';\n\nexport class PopupFilter extends Feature{\n\n /**\n * Pop-up filter component\n * @param {Object} tf TableFilter instance\n */\n constructor(tf){\n super(tf, 'popupFilters');\n\n // Configuration object\n var f = this.config;\n\n // Enable external filters\n tf.isExternalFlt = true;\n tf.externalFltTgtIds = [];\n\n //filter icon path\n this.popUpImgFlt = f.popup_filters_image ||\n tf.themesPath+'icn_filter.gif';\n //active filter icon path\n this.popUpImgFltActive = f.popup_filters_image_active ||\n tf.themesPath+'icn_filterActive.gif';\n this.popUpImgFltHtml = f.popup_filters_image_html ||\n '
';\n //defines css class for popup div containing filter\n this.popUpDivCssClass = f.popup_div_css_class || 'popUpFilter';\n //callback function before popup filtes is opened\n this.onBeforePopUpOpen = Types.isFn(f.on_before_popup_filter_open) ?\n f.on_before_popup_filter_open : null;\n //callback function after popup filtes is opened\n this.onAfterPopUpOpen = Types.isFn(f.on_after_popup_filter_open) ?\n f.on_after_popup_filter_open : null;\n //callback function before popup filtes is closed\n this.onBeforePopUpClose =\n Types.isFn(f.on_before_popup_filter_close) ?\n f.on_before_popup_filter_close : null;\n //callback function after popup filtes is closed\n this.onAfterPopUpClose = Types.isFn(f.on_after_popup_filter_close) ?\n f.on_after_popup_filter_close : null;\n\n //stores filters spans\n this.popUpFltSpans = [];\n //stores filters icons\n this.popUpFltImgs = [];\n //stores filters containers\n this.popUpFltElms = this.popUpFltElmCache || [];\n this.popUpFltAdjustToContainer = true;\n\n //id prefix for pop-up filter span\n this.prfxPopUpSpan = 'popUpSpan_';\n //id prefix for pop-up div containing filter\n this.prfxPopUpDiv = 'popUpDiv_';\n }\n\n onClick(e){\n var evt = e || global.event,\n elm = evt.target.parentNode,\n colIndex = parseInt(elm.getAttribute('ci'), 10);\n\n this.closeAll(colIndex);\n this.toggle(colIndex);\n\n if(this.popUpFltAdjustToContainer){\n var popUpDiv = this.popUpFltElms[colIndex],\n header = this.tf.getHeaderElement(colIndex),\n headerWidth = header.clientWidth * 0.95;\n popUpDiv.style.width = parseInt(headerWidth, 10) + 'px';\n }\n Event.cancel(evt);\n Event.stop(evt);\n }\n\n /**\n * Initialize DOM elements\n */\n init(){\n if(this.initialized){\n return;\n }\n\n var tf = this.tf;\n\n // Override headers row index if no grouped headers\n if(tf.headersRow <= 1){\n tf.headersRow = 0;\n }\n\n for(var i=0; i { this.onClick(evt); });\n this.popUpFltSpans[i] = popUpSpan;\n this.popUpFltImgs[i] = popUpSpan.firstChild;\n }\n\n // subscribe to events\n this.emitter.on(['before-filtering'], ()=> this.buildIcons());\n this.emitter.on(['after-filtering'], ()=> this.closeAll());\n this.emitter.on(['cell-processed'],\n (tf, cellIndex)=> this.buildIcon(cellIndex, true));\n this.emitter.on(['filters-row-inserted'], ()=> this.tf.headersRow++);\n this.emitter.on(['before-filter-init'],\n (tf, colIndex)=> this.build(colIndex));\n\n this.initialized = true;\n }\n\n /**\n * Reset previously destroyed feature\n */\n reset(){\n this.enable();\n this.init();\n this.buildAll();\n }\n\n /**\n * Build all pop-up filters elements\n */\n buildAll(){\n for(var i=0; i Event.stop(evt));\n this.popUpFltElms[colIndex] = popUpDiv;\n }\n\n /**\n * Toogle visibility of specified filter\n * @param {Number} colIndex Column index\n */\n toggle(colIndex){\n var tf = this.tf,\n popUpFltElm = this.popUpFltElms[colIndex];\n\n if(popUpFltElm.style.display === 'none' ||\n popUpFltElm.style.display === ''){\n if(this.onBeforePopUpOpen){\n this.onBeforePopUpOpen.call(\n null, this, this.popUpFltElms[colIndex], colIndex);\n }\n popUpFltElm.style.display = 'block';\n if(tf.getFilterType(colIndex) === tf.fltTypeInp){\n var flt = tf.getFilterElement(colIndex);\n if(flt){\n flt.focus();\n }\n }\n if(this.onAfterPopUpOpen){\n this.onAfterPopUpOpen.call(\n null, this, this.popUpFltElms[colIndex], colIndex);\n }\n } else {\n if(this.onBeforePopUpClose){\n this.onBeforePopUpClose.call(\n null, this, this.popUpFltElms[colIndex], colIndex);\n }\n popUpFltElm.style.display = 'none';\n if(this.onAfterPopUpClose){\n this.onAfterPopUpClose.call(\n null, this, this.popUpFltElms[colIndex], colIndex);\n }\n }\n }\n\n /**\n * Close all filters excepted for the specified one if any\n * @param {Number} exceptIdx Column index of the filter to not close\n */\n closeAll(exceptIdx){\n for(var i=0; i this.buildIcons());\n this.emitter.off(['after-filtering'], ()=> this.closeAll());\n this.emitter.off(['cell-processed'],\n (tf, cellIndex)=> this.buildIcon(cellIndex, true));\n this.emitter.off(['filters-row-inserted'], ()=> this.tf.headersRow++);\n this.emitter.off(['before-filter-init'],\n (tf, colIndex)=> this.build(colIndex));\n\n this.initialized = false;\n }\n\n}\n"
},
{
- "__docId__": 535,
+ "__docId__": 533,
"kind": "class",
"static": true,
"variation": null,
@@ -10169,7 +10133,7 @@
]
},
{
- "__docId__": 536,
+ "__docId__": 534,
"kind": "constructor",
"static": false,
"variation": null,
@@ -10194,7 +10158,7 @@
"generator": false
},
{
- "__docId__": 537,
+ "__docId__": 535,
"kind": "member",
"static": false,
"variation": null,
@@ -10212,7 +10176,7 @@
}
},
{
- "__docId__": 538,
+ "__docId__": 536,
"kind": "member",
"static": false,
"variation": null,
@@ -10230,7 +10194,7 @@
}
},
{
- "__docId__": 539,
+ "__docId__": 537,
"kind": "member",
"static": false,
"variation": null,
@@ -10248,7 +10212,7 @@
}
},
{
- "__docId__": 540,
+ "__docId__": 538,
"kind": "member",
"static": false,
"variation": null,
@@ -10266,7 +10230,7 @@
}
},
{
- "__docId__": 541,
+ "__docId__": 539,
"kind": "member",
"static": false,
"variation": null,
@@ -10284,7 +10248,7 @@
}
},
{
- "__docId__": 542,
+ "__docId__": 540,
"kind": "member",
"static": false,
"variation": null,
@@ -10302,7 +10266,7 @@
}
},
{
- "__docId__": 543,
+ "__docId__": 541,
"kind": "member",
"static": false,
"variation": null,
@@ -10320,7 +10284,7 @@
}
},
{
- "__docId__": 544,
+ "__docId__": 542,
"kind": "member",
"static": false,
"variation": null,
@@ -10338,7 +10302,7 @@
}
},
{
- "__docId__": 545,
+ "__docId__": 543,
"kind": "member",
"static": false,
"variation": null,
@@ -10356,7 +10320,7 @@
}
},
{
- "__docId__": 546,
+ "__docId__": 544,
"kind": "member",
"static": false,
"variation": null,
@@ -10374,7 +10338,7 @@
}
},
{
- "__docId__": 547,
+ "__docId__": 545,
"kind": "member",
"static": false,
"variation": null,
@@ -10392,7 +10356,7 @@
}
},
{
- "__docId__": 548,
+ "__docId__": 546,
"kind": "member",
"static": false,
"variation": null,
@@ -10410,7 +10374,7 @@
}
},
{
- "__docId__": 549,
+ "__docId__": 547,
"kind": "member",
"static": false,
"variation": null,
@@ -10428,7 +10392,7 @@
}
},
{
- "__docId__": 550,
+ "__docId__": 548,
"kind": "member",
"static": false,
"variation": null,
@@ -10446,7 +10410,7 @@
}
},
{
- "__docId__": 551,
+ "__docId__": 549,
"kind": "method",
"static": false,
"variation": null,
@@ -10468,7 +10432,7 @@
"generator": false
},
{
- "__docId__": 552,
+ "__docId__": 550,
"kind": "method",
"static": false,
"variation": null,
@@ -10482,7 +10446,7 @@
"generator": false
},
{
- "__docId__": 553,
+ "__docId__": 551,
"kind": "member",
"static": false,
"variation": null,
@@ -10500,7 +10464,7 @@
}
},
{
- "__docId__": 554,
+ "__docId__": 552,
"kind": "method",
"static": false,
"variation": null,
@@ -10514,7 +10478,7 @@
"generator": false
},
{
- "__docId__": 555,
+ "__docId__": 553,
"kind": "method",
"static": false,
"variation": null,
@@ -10528,7 +10492,7 @@
"generator": false
},
{
- "__docId__": 556,
+ "__docId__": 554,
"kind": "method",
"static": false,
"variation": null,
@@ -10563,7 +10527,7 @@
"generator": false
},
{
- "__docId__": 557,
+ "__docId__": 555,
"kind": "method",
"static": false,
"variation": null,
@@ -10588,7 +10552,7 @@
"generator": false
},
{
- "__docId__": 558,
+ "__docId__": 556,
"kind": "method",
"static": false,
"variation": null,
@@ -10613,7 +10577,7 @@
"generator": false
},
{
- "__docId__": 559,
+ "__docId__": 557,
"kind": "method",
"static": false,
"variation": null,
@@ -10627,7 +10591,7 @@
"generator": false
},
{
- "__docId__": 560,
+ "__docId__": 558,
"kind": "method",
"static": false,
"variation": null,
@@ -10662,7 +10626,7 @@
"generator": false
},
{
- "__docId__": 561,
+ "__docId__": 559,
"kind": "method",
"static": false,
"variation": null,
@@ -10676,7 +10640,7 @@
"generator": false
},
{
- "__docId__": 562,
+ "__docId__": 560,
"kind": "member",
"static": false,
"variation": null,
@@ -10694,7 +10658,7 @@
}
},
{
- "__docId__": 563,
+ "__docId__": 561,
"kind": "member",
"static": false,
"variation": null,
@@ -10712,7 +10676,7 @@
}
},
{
- "__docId__": 564,
+ "__docId__": 562,
"kind": "member",
"static": false,
"variation": null,
@@ -10730,7 +10694,7 @@
}
},
{
- "__docId__": 565,
+ "__docId__": 563,
"kind": "member",
"static": false,
"variation": null,
@@ -10748,7 +10712,7 @@
}
},
{
- "__docId__": 566,
+ "__docId__": 564,
"kind": "member",
"static": false,
"variation": null,
@@ -10766,7 +10730,7 @@
}
},
{
- "__docId__": 567,
+ "__docId__": 565,
"kind": "file",
"static": true,
"variation": null,
@@ -10779,7 +10743,7 @@
"content": "import {Feature} from './feature';\nimport Dom from '../dom';\nimport Types from '../types';\n\nexport class RowsCounter extends Feature{\n\n /**\n * Rows counter\n * @param {Object} tf TableFilter instance\n */\n constructor(tf){\n super(tf, 'rowsCounter');\n\n // TableFilter configuration\n var f = this.config;\n\n //id of custom container element\n this.rowsCounterTgtId = f.rows_counter_target_id || null;\n //element containing tot nb rows\n this.rowsCounterDiv = null;\n //element containing tot nb rows label\n this.rowsCounterSpan = null;\n //defines rows counter text\n this.rowsCounterText = f.rows_counter_text || 'Rows: ';\n this.fromToTextSeparator = f.from_to_text_separator || '-';\n this.overText = f.over_text || ' / ';\n //defines css class rows counter\n this.totRowsCssClass = f.tot_rows_css_class || 'tot';\n //rows counter div\n this.prfxCounter = 'counter_';\n //nb displayed rows label\n this.prfxTotRows = 'totrows_span_';\n //label preceding nb rows label\n this.prfxTotRowsTxt = 'totRowsTextSpan_';\n //callback raised before counter is refreshed\n this.onBeforeRefreshCounter = Types.isFn(f.on_before_refresh_counter) ?\n f.on_before_refresh_counter : null;\n //callback raised after counter is refreshed\n this.onAfterRefreshCounter = Types.isFn(f.on_after_refresh_counter) ?\n f.on_after_refresh_counter : null;\n }\n\n init(){\n if(this.initialized){\n return;\n }\n\n var tf = this.tf;\n\n //rows counter container\n var countDiv = Dom.create('div', ['id', this.prfxCounter+tf.id]);\n countDiv.className = this.totRowsCssClass;\n //rows counter label\n var countSpan = Dom.create('span', ['id', this.prfxTotRows+tf.id]);\n var countText = Dom.create('span', ['id', this.prfxTotRowsTxt+tf.id]);\n countText.appendChild(Dom.text(this.rowsCounterText));\n\n // counter is added to defined element\n if(!this.rowsCounterTgtId){\n tf.setToolbar();\n }\n var targetEl = !this.rowsCounterTgtId ?\n tf.lDiv : Dom.id( this.rowsCounterTgtId );\n\n //default container: 'lDiv'\n if(!this.rowsCounterTgtId){\n countDiv.appendChild(countText);\n countDiv.appendChild(countSpan);\n targetEl.appendChild(countDiv);\n }\n else{\n //custom container, no need to append statusDiv\n targetEl.appendChild(countText);\n targetEl.appendChild(countSpan);\n }\n this.rowsCounterDiv = countDiv;\n this.rowsCounterSpan = countSpan;\n\n // subscribe to events\n this.emitter.on(['after-filtering', 'grouped-by-page'],\n ()=> this.refresh(tf.nbVisibleRows));\n this.emitter.on(['rows-changed'], ()=> this.refresh());\n\n this.initialized = true;\n this.refresh();\n }\n\n refresh(p){\n if(!this.initialized || !this.isEnabled()){\n return;\n }\n\n var tf = this.tf;\n\n if(this.onBeforeRefreshCounter){\n this.onBeforeRefreshCounter.call(null, tf, this.rowsCounterSpan);\n }\n\n var totTxt;\n if(!tf.paging){\n if(p && p !== ''){\n totTxt = p;\n } else{\n totTxt = tf.nbFilterableRows - tf.nbHiddenRows;\n }\n } else {\n var paging = tf.feature('paging');\n if(paging){\n //paging start row\n var paging_start_row = parseInt(paging.startPagingRow, 10) +\n ((tf.nbVisibleRows>0) ? 1 : 0);\n var paging_end_row = (paging_start_row+paging.pagingLength)-1 <=\n tf.nbVisibleRows ?\n paging_start_row+paging.pagingLength-1 :\n tf.nbVisibleRows;\n totTxt = paging_start_row + this.fromToTextSeparator +\n paging_end_row + this.overText + tf.nbVisibleRows;\n }\n }\n\n this.rowsCounterSpan.innerHTML = totTxt;\n if(this.onAfterRefreshCounter){\n this.onAfterRefreshCounter.call(\n null, tf, this.rowsCounterSpan, totTxt);\n }\n }\n\n destroy(){\n if(!this.initialized){\n return;\n }\n\n if(!this.rowsCounterTgtId && this.rowsCounterDiv){\n Dom.remove(this.rowsCounterDiv);\n } else {\n Dom.id(this.rowsCounterTgtId).innerHTML = '';\n }\n this.rowsCounterSpan = null;\n this.rowsCounterDiv = null;\n\n // unsubscribe to events\n this.emitter.off(['after-filtering', 'grouped-by-page'],\n ()=> this.refresh(tf.nbVisibleRows));\n this.emitter.off(['rows-changed'], ()=> this.refresh());\n\n this.initialized = false;\n }\n}\n"
},
{
- "__docId__": 568,
+ "__docId__": 566,
"kind": "class",
"static": true,
"variation": null,
@@ -10799,7 +10763,7 @@
]
},
{
- "__docId__": 569,
+ "__docId__": 567,
"kind": "constructor",
"static": false,
"variation": null,
@@ -10824,7 +10788,7 @@
"generator": false
},
{
- "__docId__": 570,
+ "__docId__": 568,
"kind": "member",
"static": false,
"variation": null,
@@ -10842,7 +10806,7 @@
}
},
{
- "__docId__": 571,
+ "__docId__": 569,
"kind": "member",
"static": false,
"variation": null,
@@ -10860,7 +10824,7 @@
}
},
{
- "__docId__": 572,
+ "__docId__": 570,
"kind": "member",
"static": false,
"variation": null,
@@ -10878,7 +10842,7 @@
}
},
{
- "__docId__": 573,
+ "__docId__": 571,
"kind": "member",
"static": false,
"variation": null,
@@ -10896,7 +10860,7 @@
}
},
{
- "__docId__": 574,
+ "__docId__": 572,
"kind": "member",
"static": false,
"variation": null,
@@ -10914,7 +10878,7 @@
}
},
{
- "__docId__": 575,
+ "__docId__": 573,
"kind": "member",
"static": false,
"variation": null,
@@ -10932,7 +10896,7 @@
}
},
{
- "__docId__": 576,
+ "__docId__": 574,
"kind": "member",
"static": false,
"variation": null,
@@ -10950,7 +10914,7 @@
}
},
{
- "__docId__": 577,
+ "__docId__": 575,
"kind": "member",
"static": false,
"variation": null,
@@ -10968,7 +10932,7 @@
}
},
{
- "__docId__": 578,
+ "__docId__": 576,
"kind": "member",
"static": false,
"variation": null,
@@ -10986,7 +10950,7 @@
}
},
{
- "__docId__": 579,
+ "__docId__": 577,
"kind": "member",
"static": false,
"variation": null,
@@ -11004,7 +10968,7 @@
}
},
{
- "__docId__": 580,
+ "__docId__": 578,
"kind": "member",
"static": false,
"variation": null,
@@ -11022,7 +10986,7 @@
}
},
{
- "__docId__": 581,
+ "__docId__": 579,
"kind": "member",
"static": false,
"variation": null,
@@ -11040,7 +11004,7 @@
}
},
{
- "__docId__": 582,
+ "__docId__": 580,
"kind": "method",
"static": false,
"variation": null,
@@ -11055,7 +11019,7 @@
"generator": false
},
{
- "__docId__": 583,
+ "__docId__": 581,
"kind": "member",
"static": false,
"variation": null,
@@ -11073,7 +11037,7 @@
}
},
{
- "__docId__": 584,
+ "__docId__": 582,
"kind": "member",
"static": false,
"variation": null,
@@ -11091,7 +11055,7 @@
}
},
{
- "__docId__": 585,
+ "__docId__": 583,
"kind": "member",
"static": false,
"variation": null,
@@ -11109,7 +11073,7 @@
}
},
{
- "__docId__": 586,
+ "__docId__": 584,
"kind": "method",
"static": false,
"variation": null,
@@ -11131,7 +11095,7 @@
"generator": false
},
{
- "__docId__": 587,
+ "__docId__": 585,
"kind": "method",
"static": false,
"variation": null,
@@ -11146,7 +11110,7 @@
"generator": false
},
{
- "__docId__": 588,
+ "__docId__": 586,
"kind": "member",
"static": false,
"variation": null,
@@ -11164,7 +11128,7 @@
}
},
{
- "__docId__": 589,
+ "__docId__": 587,
"kind": "member",
"static": false,
"variation": null,
@@ -11182,7 +11146,7 @@
}
},
{
- "__docId__": 590,
+ "__docId__": 588,
"kind": "member",
"static": false,
"variation": null,
@@ -11200,7 +11164,7 @@
}
},
{
- "__docId__": 591,
+ "__docId__": 589,
"kind": "file",
"static": true,
"variation": null,
@@ -11213,7 +11177,7 @@
"content": "import {Feature} from './feature';\nimport {Hash} from './hash';\nimport Str from '../string';\nimport Types from '../types';\n\n/**\n * Reflects the state of features to be persisted via hash, localStorage or\n * cookie\n *\n * @export\n * @class State\n * @extends {Feature}\n */\nexport class State extends Feature {\n\n /**\n * Creates an instance of State\n *\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'state');\n\n let cfg = this.config.state;\n\n // hash enabled by default if state setting is simply set true\n this.enableHash = (cfg.types && cfg.types.indexOf('hash') !== -1) ||\n tf.state === true;\n this.persistFilters = cfg.filters === false ? false : true;\n this.persistPageNumber = Boolean(cfg.page_number);\n this.persistPageLength = Boolean(cfg.page_length);\n\n this.hash = null;\n this.pageNb = null;\n this.pageLength = null;\n\n this.state = {};\n this.prfxCol = 'col_';\n this.pageNbKey = 'page';\n this.pageLengthKey = 'page_length';\n }\n\n /**\n * Initializes the State object\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n this.emitter.on(['after-filtering'], () => this.update());\n this.emitter.on(['after-page-change'],\n (tf, pageNb) => this.updatePage(pageNb));\n this.emitter.on(['after-page-length-change'],\n (tf, index) => this.updatePageLength(index));\n\n if (this.enableHash) {\n this.hash = new Hash(this);\n this.hash.init();\n }\n this.initialized = true;\n }\n\n\n /**\n * Update state field based on current features state\n */\n update() {\n if (!this.isEnabled()) {\n return;\n }\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 (Types.isString(val) && Str.isEmpty(val)) {\n if (this.state.hasOwnProperty(key)) {\n this.state[key] = undefined;\n }\n } else {\n this.state[key] = this.state[key] || {};\n this.state[key].flt = val;\n }\n\n });\n }\n\n if (this.persistPageNumber) {\n if (Types.isNull(this.pageNb)) {\n this.state[this.pageNbKey] = undefined;\n } else {\n this.state[this.pageNbKey] = this.pageNb;\n }\n }\n\n if (this.persistPageLength) {\n if (Types.isNull(this.pageLength)) {\n this.state[this.pageLengthKey] = undefined;\n } else {\n this.state[this.pageLengthKey] = this.pageLength;\n }\n }\n\n this.emitter.emit('state-changed', tf, this.state);\n }\n\n /**\n * Refresh page number field on page number change\n *\n * @param 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 change\n *\n * @param pageLength Current page length value\n */\n updatePageLength(pageLength) {\n this.pageLength = pageLength;\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 * Apply current features state\n */\n sync() {\n let state = this.state;\n let tf = this.tf;\n\n if (this.persistFilters) {\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 if (this.persistPageNumber) {\n let pageNumber = state[this.pageNbKey];\n this.emitter.emit('change-page', this.tf, pageNumber);\n }\n\n if (this.persistPageLength) {\n let pageLength = state[this.pageLengthKey];\n this.emitter.emit('change-page-results', this.tf, pageLength);\n }\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'],\n (tf, pageNb) => this.updatePage(pageNb));\n this.emitter.off(['after-page-length-change'],\n (tf, index) => this.updatePageLength(index));\n\n if (this.enableHash) {\n this.hash.destroy();\n this.hash = null;\n }\n\n this.initialized = false;\n }\n}\n"
},
{
- "__docId__": 592,
+ "__docId__": 590,
"kind": "class",
"static": true,
"variation": null,
@@ -11242,7 +11206,7 @@
]
},
{
- "__docId__": 593,
+ "__docId__": 591,
"kind": "constructor",
"static": false,
"variation": null,
@@ -11267,7 +11231,7 @@
"generator": false
},
{
- "__docId__": 594,
+ "__docId__": 592,
"kind": "member",
"static": false,
"variation": null,
@@ -11285,7 +11249,7 @@
}
},
{
- "__docId__": 595,
+ "__docId__": 593,
"kind": "member",
"static": false,
"variation": null,
@@ -11303,7 +11267,7 @@
}
},
{
- "__docId__": 596,
+ "__docId__": 594,
"kind": "member",
"static": false,
"variation": null,
@@ -11321,7 +11285,7 @@
}
},
{
- "__docId__": 597,
+ "__docId__": 595,
"kind": "member",
"static": false,
"variation": null,
@@ -11339,7 +11303,7 @@
}
},
{
- "__docId__": 598,
+ "__docId__": 596,
"kind": "member",
"static": false,
"variation": null,
@@ -11357,7 +11321,7 @@
}
},
{
- "__docId__": 599,
+ "__docId__": 597,
"kind": "member",
"static": false,
"variation": null,
@@ -11375,7 +11339,7 @@
}
},
{
- "__docId__": 600,
+ "__docId__": 598,
"kind": "member",
"static": false,
"variation": null,
@@ -11393,7 +11357,7 @@
}
},
{
- "__docId__": 601,
+ "__docId__": 599,
"kind": "member",
"static": false,
"variation": null,
@@ -11411,7 +11375,7 @@
}
},
{
- "__docId__": 602,
+ "__docId__": 600,
"kind": "member",
"static": false,
"variation": null,
@@ -11429,7 +11393,7 @@
}
},
{
- "__docId__": 603,
+ "__docId__": 601,
"kind": "member",
"static": false,
"variation": null,
@@ -11447,7 +11411,7 @@
}
},
{
- "__docId__": 604,
+ "__docId__": 602,
"kind": "member",
"static": false,
"variation": null,
@@ -11465,7 +11429,7 @@
}
},
{
- "__docId__": 605,
+ "__docId__": 603,
"kind": "method",
"static": false,
"variation": null,
@@ -11479,7 +11443,7 @@
"generator": false
},
{
- "__docId__": 606,
+ "__docId__": 604,
"kind": "member",
"static": false,
"variation": null,
@@ -11497,7 +11461,7 @@
}
},
{
- "__docId__": 607,
+ "__docId__": 605,
"kind": "member",
"static": false,
"variation": null,
@@ -11515,7 +11479,7 @@
}
},
{
- "__docId__": 608,
+ "__docId__": 606,
"kind": "method",
"static": false,
"variation": null,
@@ -11529,7 +11493,7 @@
"generator": false
},
{
- "__docId__": 609,
+ "__docId__": 607,
"kind": "method",
"static": false,
"variation": null,
@@ -11554,7 +11518,7 @@
"generator": false
},
{
- "__docId__": 610,
+ "__docId__": 608,
"kind": "member",
"static": false,
"variation": null,
@@ -11572,7 +11536,7 @@
}
},
{
- "__docId__": 611,
+ "__docId__": 609,
"kind": "method",
"static": false,
"variation": null,
@@ -11597,7 +11561,7 @@
"generator": false
},
{
- "__docId__": 612,
+ "__docId__": 610,
"kind": "member",
"static": false,
"variation": null,
@@ -11615,7 +11579,7 @@
}
},
{
- "__docId__": 613,
+ "__docId__": 611,
"kind": "method",
"static": false,
"variation": null,
@@ -11640,7 +11604,7 @@
"generator": false
},
{
- "__docId__": 614,
+ "__docId__": 612,
"kind": "member",
"static": false,
"variation": null,
@@ -11658,7 +11622,7 @@
}
},
{
- "__docId__": 615,
+ "__docId__": 613,
"kind": "method",
"static": false,
"variation": null,
@@ -11672,7 +11636,7 @@
"generator": false
},
{
- "__docId__": 616,
+ "__docId__": 614,
"kind": "method",
"static": false,
"variation": null,
@@ -11686,7 +11650,7 @@
"generator": false
},
{
- "__docId__": 617,
+ "__docId__": 615,
"kind": "member",
"static": false,
"variation": null,
@@ -11704,7 +11668,7 @@
}
},
{
- "__docId__": 618,
+ "__docId__": 616,
"kind": "member",
"static": false,
"variation": null,
@@ -11722,7 +11686,7 @@
}
},
{
- "__docId__": 619,
+ "__docId__": 617,
"kind": "member",
"static": false,
"variation": null,
@@ -11740,7 +11704,7 @@
}
},
{
- "__docId__": 620,
+ "__docId__": 618,
"kind": "file",
"static": true,
"variation": null,
@@ -11753,7 +11717,7 @@
"content": "import {Feature} from './feature';\nimport Dom from '../dom';\nimport Types from '../types';\n\nlet global = window;\n\nexport class StatusBar extends Feature{\n\n /**\n * Status bar UI component\n * @param {Object} tf TableFilter instance\n */\n constructor(tf){\n super(tf, 'statusBar');\n\n // Configuration object\n let f = this.config;\n\n //id of custom container element\n this.statusBarTgtId = f.status_bar_target_id || null;\n //element containing status bar label\n this.statusBarDiv = null;\n //status bar\n this.statusBarSpan = null;\n //status bar label\n this.statusBarSpanText = null;\n //defines status bar text\n this.statusBarText = f.status_bar_text || '';\n //defines css class status bar\n this.statusBarCssClass = f.status_bar_css_class || 'status';\n //delay for status bar clearing\n this.statusBarCloseDelay = 250;\n\n //calls function before message is displayed\n this.onBeforeShowMsg = Types.isFn(f.on_before_show_msg) ?\n f.on_before_show_msg : null;\n //calls function after message is displayed\n this.onAfterShowMsg = Types.isFn(f.on_after_show_msg) ?\n f.on_after_show_msg : null;\n\n //status messages\n this.msgFilter = f.msg_filter || 'Filtering data...';\n //populating drop-downs\n this.msgPopulate = f.msg_populate || 'Populating filter...';\n //populating drop-downs\n this.msgPopulateCheckList = f.msg_populate_checklist ||\n 'Populating list...';\n //changing paging page\n this.msgChangePage = f.msg_change_page || 'Collecting paging data...';\n //clearing filters\n this.msgClear = f.msg_clear || 'Clearing filters...';\n //changing nb results/page\n this.msgChangeResults = f.msg_change_results ||\n 'Changing results per page...';\n //re-setting page\n this.msgResetPage = f.msg_reset_page || 'Re-setting page...';\n //re-setting page length\n this.msgResetPageLength = f.msg_reset_page_length ||\n 'Re-setting page length...';\n //table sorting\n this.msgSort = f.msg_sort || 'Sorting data...';\n //extensions loading\n this.msgLoadExtensions = f.msg_load_extensions ||\n 'Loading extensions...';\n //themes loading\n this.msgLoadThemes = f.msg_load_themes || 'Loading theme(s)...';\n\n // status bar div\n this.prfxStatus = 'status_';\n // status bar label\n this.prfxStatusSpan = 'statusSpan_';\n // text preceding status bar label\n this.prfxStatusTxt = 'statusText_';\n }\n\n init(){\n if(this.initialized){\n return;\n }\n\n let tf = this.tf;\n let emitter = this.emitter;\n\n //status bar container\n let statusDiv = Dom.create('div', ['id', this.prfxStatus+tf.id]);\n statusDiv.className = this.statusBarCssClass;\n\n //status bar label\n let statusSpan = Dom.create('span', ['id', this.prfxStatusSpan+tf.id]);\n //preceding text\n let statusSpanText = Dom.create('span',\n ['id', this.prfxStatusTxt+tf.id]);\n statusSpanText.appendChild(Dom.text(this.statusBarText));\n\n // target element container\n if(!this.statusBarTgtId){\n tf.setToolbar();\n }\n let targetEl = (!this.statusBarTgtId) ?\n tf.lDiv : Dom.id(this.statusBarTgtId);\n\n //default container: 'lDiv'\n if(!this.statusBarTgtId){\n statusDiv.appendChild(statusSpanText);\n statusDiv.appendChild(statusSpan);\n targetEl.appendChild(statusDiv);\n } else {\n // custom container, no need to append statusDiv\n targetEl.appendChild(statusSpanText);\n targetEl.appendChild(statusSpan);\n }\n\n this.statusBarDiv = statusDiv;\n this.statusBarSpan = statusSpan;\n this.statusBarSpanText = statusSpanText;\n\n // 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'], ()=> this.message(this.msgResetPage));\n emitter.on(['before-reset-page-length'],\n ()=> this.message(this.msgResetPageLength));\n emitter.on(['before-loading-extensions'],\n ()=> this.message(this.msgLoadExtensions));\n emitter.on(['before-loading-themes'],\n ()=> this.message(this.msgLoadThemes));\n\n emitter.on([\n 'after-filtering',\n 'after-populating-filter',\n 'after-page-change',\n 'after-clearing-filters',\n 'after-page-length-change',\n 'after-reset-page',\n 'after-reset-page-length',\n 'after-loading-extensions',\n 'after-loading-themes'],\n ()=> this.message('')\n );\n\n this.initialized = true;\n }\n\n message(t=''){\n if(!this.isEnabled()){\n return;\n }\n\n if(this.onBeforeShowMsg){\n this.onBeforeShowMsg.call(null, this.tf, t);\n }\n\n let d = t==='' ? this.statusBarCloseDelay : 1;\n global.setTimeout(() => {\n if(!this.initialized){\n return;\n }\n this.statusBarSpan.innerHTML = t;\n if(this.onAfterShowMsg){\n this.onAfterShowMsg.call(null, this.tf, t);\n }\n }, d);\n }\n\n destroy(){\n if(!this.initialized){\n return;\n }\n\n let emitter = this.emitter;\n\n this.statusBarDiv.innerHTML = '';\n if(!this.statusBarTgtId){\n Dom.remove(this.statusBarDiv);\n }\n this.statusBarSpan = null;\n this.statusBarSpanText = null;\n this.statusBarDiv = null;\n\n // Unsubscribe to events\n emitter.off(['before-filtering'], ()=> this.message(this.msgFilter));\n emitter.off(['before-populating-filter'],\n ()=> this.message(this.msgPopulate));\n emitter.off(['before-page-change'],\n ()=> this.message(this.msgChangePage));\n emitter.off(['before-clearing-filters'],\n ()=> this.message(this.msgClear));\n emitter.off(['before-page-length-change'],\n ()=> this.message(this.msgChangeResults));\n emitter.off(['before-reset-page'], ()=>\n this.message(this.msgResetPage));\n emitter.off(['before-reset-page-length'],\n ()=> this.message(this.msgResetPageLength));\n emitter.off(['before-loading-extensions'],\n ()=> this.message(this.msgLoadExtensions));\n emitter.off(['before-loading-themes'],\n ()=> this.message(this.msgLoadThemes));\n\n emitter.off([\n 'after-filtering',\n 'after-populating-filter',\n 'after-page-change',\n 'after-clearing-filters',\n 'after-page-length-change',\n 'after-reset-page',\n 'after-reset-page-length',\n 'after-loading-extensions',\n 'after-loading-themes'],\n ()=> this.message('')\n );\n\n this.initialized = false;\n }\n\n}\n"
},
{
- "__docId__": 621,
+ "__docId__": 619,
"kind": "variable",
"static": true,
"variation": null,
@@ -11774,7 +11738,7 @@
}
},
{
- "__docId__": 622,
+ "__docId__": 620,
"kind": "class",
"static": true,
"variation": null,
@@ -11794,7 +11758,7 @@
]
},
{
- "__docId__": 623,
+ "__docId__": 621,
"kind": "constructor",
"static": false,
"variation": null,
@@ -11819,7 +11783,7 @@
"generator": false
},
{
- "__docId__": 624,
+ "__docId__": 622,
"kind": "member",
"static": false,
"variation": null,
@@ -11837,7 +11801,7 @@
}
},
{
- "__docId__": 625,
+ "__docId__": 623,
"kind": "member",
"static": false,
"variation": null,
@@ -11855,7 +11819,7 @@
}
},
{
- "__docId__": 626,
+ "__docId__": 624,
"kind": "member",
"static": false,
"variation": null,
@@ -11873,7 +11837,7 @@
}
},
{
- "__docId__": 627,
+ "__docId__": 625,
"kind": "member",
"static": false,
"variation": null,
@@ -11891,7 +11855,7 @@
}
},
{
- "__docId__": 628,
+ "__docId__": 626,
"kind": "member",
"static": false,
"variation": null,
@@ -11909,7 +11873,7 @@
}
},
{
- "__docId__": 629,
+ "__docId__": 627,
"kind": "member",
"static": false,
"variation": null,
@@ -11927,7 +11891,7 @@
}
},
{
- "__docId__": 630,
+ "__docId__": 628,
"kind": "member",
"static": false,
"variation": null,
@@ -11945,7 +11909,7 @@
}
},
{
- "__docId__": 631,
+ "__docId__": 629,
"kind": "member",
"static": false,
"variation": null,
@@ -11963,7 +11927,7 @@
}
},
{
- "__docId__": 632,
+ "__docId__": 630,
"kind": "member",
"static": false,
"variation": null,
@@ -11981,7 +11945,7 @@
}
},
{
- "__docId__": 633,
+ "__docId__": 631,
"kind": "member",
"static": false,
"variation": null,
@@ -11999,7 +11963,7 @@
}
},
{
- "__docId__": 634,
+ "__docId__": 632,
"kind": "member",
"static": false,
"variation": null,
@@ -12017,7 +11981,7 @@
}
},
{
- "__docId__": 635,
+ "__docId__": 633,
"kind": "member",
"static": false,
"variation": null,
@@ -12035,7 +11999,7 @@
}
},
{
- "__docId__": 636,
+ "__docId__": 634,
"kind": "member",
"static": false,
"variation": null,
@@ -12053,7 +12017,7 @@
}
},
{
- "__docId__": 637,
+ "__docId__": 635,
"kind": "member",
"static": false,
"variation": null,
@@ -12071,7 +12035,7 @@
}
},
{
- "__docId__": 638,
+ "__docId__": 636,
"kind": "member",
"static": false,
"variation": null,
@@ -12089,7 +12053,7 @@
}
},
{
- "__docId__": 639,
+ "__docId__": 637,
"kind": "member",
"static": false,
"variation": null,
@@ -12107,7 +12071,7 @@
}
},
{
- "__docId__": 640,
+ "__docId__": 638,
"kind": "member",
"static": false,
"variation": null,
@@ -12125,7 +12089,7 @@
}
},
{
- "__docId__": 641,
+ "__docId__": 639,
"kind": "member",
"static": false,
"variation": null,
@@ -12143,7 +12107,7 @@
}
},
{
- "__docId__": 642,
+ "__docId__": 640,
"kind": "member",
"static": false,
"variation": null,
@@ -12161,7 +12125,7 @@
}
},
{
- "__docId__": 643,
+ "__docId__": 641,
"kind": "member",
"static": false,
"variation": null,
@@ -12179,7 +12143,7 @@
}
},
{
- "__docId__": 644,
+ "__docId__": 642,
"kind": "member",
"static": false,
"variation": null,
@@ -12197,7 +12161,7 @@
}
},
{
- "__docId__": 645,
+ "__docId__": 643,
"kind": "member",
"static": false,
"variation": null,
@@ -12215,7 +12179,7 @@
}
},
{
- "__docId__": 646,
+ "__docId__": 644,
"kind": "member",
"static": false,
"variation": null,
@@ -12233,7 +12197,7 @@
}
},
{
- "__docId__": 647,
+ "__docId__": 645,
"kind": "method",
"static": false,
"variation": null,
@@ -12248,7 +12212,7 @@
"generator": false
},
{
- "__docId__": 648,
+ "__docId__": 646,
"kind": "member",
"static": false,
"variation": null,
@@ -12266,7 +12230,7 @@
}
},
{
- "__docId__": 649,
+ "__docId__": 647,
"kind": "member",
"static": false,
"variation": null,
@@ -12284,7 +12248,7 @@
}
},
{
- "__docId__": 650,
+ "__docId__": 648,
"kind": "member",
"static": false,
"variation": null,
@@ -12302,7 +12266,7 @@
}
},
{
- "__docId__": 651,
+ "__docId__": 649,
"kind": "member",
"static": false,
"variation": null,
@@ -12320,7 +12284,7 @@
}
},
{
- "__docId__": 652,
+ "__docId__": 650,
"kind": "method",
"static": false,
"variation": null,
@@ -12345,7 +12309,7 @@
"generator": false
},
{
- "__docId__": 653,
+ "__docId__": 651,
"kind": "method",
"static": false,
"variation": null,
@@ -12360,7 +12324,7 @@
"generator": false
},
{
- "__docId__": 654,
+ "__docId__": 652,
"kind": "member",
"static": false,
"variation": null,
@@ -12378,7 +12342,7 @@
}
},
{
- "__docId__": 655,
+ "__docId__": 653,
"kind": "member",
"static": false,
"variation": null,
@@ -12396,7 +12360,7 @@
}
},
{
- "__docId__": 656,
+ "__docId__": 654,
"kind": "member",
"static": false,
"variation": null,
@@ -12414,7 +12378,7 @@
}
},
{
- "__docId__": 657,
+ "__docId__": 655,
"kind": "member",
"static": false,
"variation": null,
@@ -12432,7 +12396,7 @@
}
},
{
- "__docId__": 658,
+ "__docId__": 656,
"kind": "file",
"static": true,
"variation": null,
@@ -12445,7 +12409,7 @@
"content": "import Cookie from '../cookie';\nimport Types from '../types';\n\nexport class Store{\n\n /**\n * Store, persistence manager\n * @param {Object} tf TableFilter instance\n *\n * TODO: use localStorage and fallback to cookie persistence\n */\n constructor(tf){\n let f = tf.config();\n\n //cookie storing filter values\n this.fltsValuesCookie = tf.prfxCookieFltsValues + tf.id;\n //cookie storing page nb\n this.pgNbCookie = tf.prfxCookiePageNb + tf.id;\n //cookie storing page length\n this.pgLenCookie = tf.prfxCookiePageLen + tf.id;\n\n this.duration = !isNaN(f.set_cookie_duration) ?\n parseInt(f.set_cookie_duration, 10) : 100000;\n\n this.tf = tf;\n this.emitter = tf.emitter;\n }\n\n init(){\n this.emitter.on(['after-filtering'], ()=> this.saveFilterValues());\n this.emitter.on(['after-clearing-filters'], ()=> this.clearCookies());\n this.emitter.on(['after-page-change'],\n (tf, index)=> this.savePageNb(index));\n this.emitter.on(['after-page-length-change'],\n (tf, index)=> this.savePageLength(index));\n }\n\n /**\n * Store filters' values in cookie\n */\n saveFilterValues(){\n let tf = this.tf;\n let fltValues = [];\n\n if(!tf.rememberGridValues){\n return;\n }\n\n //store filters' values\n for(let i=0; i this.saveFilterValues());\n this.emitter.off(['after-clearing-filters'], ()=> this.clearCookies());\n this.emitter.off(['after-page-change'],\n (tf, index)=> this.savePageNb(index));\n this.emitter.off(['after-page-length-change'],\n (tf, index)=> this.savePageLength(index));\n }\n}\n"
},
{
- "__docId__": 659,
+ "__docId__": 657,
"kind": "class",
"static": true,
"variation": null,
@@ -12462,7 +12426,7 @@
"interface": false
},
{
- "__docId__": 660,
+ "__docId__": 658,
"kind": "constructor",
"static": false,
"variation": null,
@@ -12487,7 +12451,7 @@
"generator": false
},
{
- "__docId__": 661,
+ "__docId__": 659,
"kind": "member",
"static": false,
"variation": null,
@@ -12505,7 +12469,7 @@
}
},
{
- "__docId__": 662,
+ "__docId__": 660,
"kind": "member",
"static": false,
"variation": null,
@@ -12523,7 +12487,7 @@
}
},
{
- "__docId__": 663,
+ "__docId__": 661,
"kind": "member",
"static": false,
"variation": null,
@@ -12541,7 +12505,7 @@
}
},
{
- "__docId__": 664,
+ "__docId__": 662,
"kind": "member",
"static": false,
"variation": null,
@@ -12559,7 +12523,7 @@
}
},
{
- "__docId__": 665,
+ "__docId__": 663,
"kind": "member",
"static": false,
"variation": null,
@@ -12577,7 +12541,7 @@
}
},
{
- "__docId__": 666,
+ "__docId__": 664,
"kind": "member",
"static": false,
"variation": null,
@@ -12595,7 +12559,7 @@
}
},
{
- "__docId__": 667,
+ "__docId__": 665,
"kind": "method",
"static": false,
"variation": null,
@@ -12610,7 +12574,7 @@
"generator": false
},
{
- "__docId__": 668,
+ "__docId__": 666,
"kind": "method",
"static": false,
"variation": null,
@@ -12624,7 +12588,7 @@
"generator": false
},
{
- "__docId__": 669,
+ "__docId__": 667,
"kind": "method",
"static": false,
"variation": null,
@@ -12646,7 +12610,7 @@
"generator": false
},
{
- "__docId__": 670,
+ "__docId__": 668,
"kind": "method",
"static": false,
"variation": null,
@@ -12671,7 +12635,7 @@
"generator": false
},
{
- "__docId__": 671,
+ "__docId__": 669,
"kind": "method",
"static": false,
"variation": null,
@@ -12693,7 +12657,7 @@
"generator": false
},
{
- "__docId__": 672,
+ "__docId__": 670,
"kind": "method",
"static": false,
"variation": null,
@@ -12718,7 +12682,7 @@
"generator": false
},
{
- "__docId__": 673,
+ "__docId__": 671,
"kind": "method",
"static": false,
"variation": null,
@@ -12740,7 +12704,7 @@
"generator": false
},
{
- "__docId__": 674,
+ "__docId__": 672,
"kind": "method",
"static": false,
"variation": null,
@@ -12754,7 +12718,7 @@
"generator": false
},
{
- "__docId__": 675,
+ "__docId__": 673,
"kind": "method",
"static": false,
"variation": null,
@@ -12769,7 +12733,7 @@
"generator": false
},
{
- "__docId__": 676,
+ "__docId__": 674,
"kind": "file",
"static": true,
"variation": null,
@@ -12782,7 +12746,7 @@
"content": "import Str from './string';\n\nexport default {\n ignoreCase(a, b){\n let x = Str.lower(a);\n let y = Str.lower(b);\n return ((x < y) ? -1 : ((x > y) ? 1 : 0));\n },\n numSortAsc(a, b){\n return (a - b);\n },\n numSortDesc(a, b){\n return (b - a);\n }\n};\n"
},
{
- "__docId__": 677,
+ "__docId__": 675,
"kind": "file",
"static": true,
"variation": null,
@@ -12795,7 +12759,7 @@
"content": "/**\n * String utilities\n */\n\nexport default {\n\n lower(text){\n return text.toLowerCase();\n },\n\n upper(text){\n return text.toUpperCase();\n },\n\n trim(text){\n if (text.trim){\n return text.trim();\n }\n return text.replace(/^\\s*|\\s*$/g, '');\n },\n\n isEmpty(text){\n return this.trim(text) === '';\n },\n\n rgxEsc(text){\n let chars = /[-\\/\\\\^$*+?.()|[\\]{}]/g;\n let escMatch = '\\\\$&';\n return String(text).replace(chars, escMatch);\n },\n\n matchCase(text, caseSensitive){\n if(!caseSensitive){\n return this.lower(text);\n }\n return text;\n },\n\n /**\n * Checks if passed data contains the searched term\n * @param {String} term Searched term\n * @param {String} data Data string\n * @param {Boolean} exactMatch Exact match\n * @param {Boolean} caseSensitive Case sensitive\n * @return {Boolean}\n */\n contains(term, data, exactMatch=false, caseSensitive=false){\n // Improved by Cedric Wartel (cwl) automatic exact match for selects and\n // special characters are now filtered\n let regexp,\n modifier = caseSensitive ? 'g' : 'gi';\n if(exactMatch){\n regexp = new RegExp(\n '(^\\\\s*)'+ this.rgxEsc(term) +'(\\\\s*$)', modifier);\n } else {\n regexp = new RegExp(this.rgxEsc(term), modifier);\n }\n return regexp.test(data);\n }\n\n};\n"
},
{
- "__docId__": 678,
+ "__docId__": 676,
"kind": "file",
"static": true,
"variation": null,
@@ -12808,7 +12772,7 @@
"content": "import Event from './event';\nimport Dom from './dom';\nimport Str from './string';\nimport Types from './types';\nimport DateHelper from './date';\nimport Helpers from './helpers';\nimport {Emitter} from './emitter';\n\n// Features\nimport {Store} from './modules/store';\nimport {GridLayout} from './modules/gridLayout';\nimport {Loader} from './modules/loader';\nimport {HighlightKeyword} from './modules/highlightKeywords';\nimport {PopupFilter} from './modules/popupFilter';\nimport {Dropdown} from './modules/dropdown';\nimport {CheckList} from './modules/checkList';\nimport {RowsCounter} from './modules/rowsCounter';\nimport {StatusBar} from './modules/statusBar';\nimport {Paging} from './modules/paging';\nimport {ClearButton} from './modules/clearButton';\nimport {Help} from './modules/help';\nimport {AlternateRows} from './modules/alternateRows';\nimport {NoResults} from './modules/noResults';\nimport {State} from './modules/state';\n\nlet global = window,\n doc = global.document;\n\nexport class TableFilter {\n\n /**\n * TableFilter object constructor\n * requires `table` or `id` arguments, `row` and `configuration` optional\n * @param {DOMElement} table Table DOM element\n * @param {String} id Table id\n * @param {Number} row index indicating the 1st row\n * @param {Object} configuration object\n */\n constructor(...args) {\n if(args.length === 0){ return; }\n\n this.id = null;\n this.version = '{VERSION}';\n this.year = new Date().getFullYear();\n this.tbl = null;\n this.startRow = null;\n this.refRow = null;\n this.headersRow = null;\n this.cfg = {};\n this.nbFilterableRows = null;\n this.nbRows = null;\n this.nbCells = null;\n this._hasGrid = false;\n\n // TODO: use for-of with babel plug-in\n args.forEach((arg)=> {\n // for (let arg of args) {\n let argtype = typeof arg;\n if(argtype === 'object' && arg && arg.nodeName === 'TABLE'){\n this.tbl = arg;\n this.id = arg.id || `tf_${new Date().getTime()}_`;\n } else if(argtype === 'string'){\n this.id = arg;\n this.tbl = Dom.id(arg);\n } else if(argtype === 'number'){\n this.startRow = arg;\n } else if(argtype === 'object'){\n this.cfg = arg;\n }\n // }\n });\n\n if(!this.tbl || this.tbl.nodeName != 'TABLE' || this.getRowsNb() === 0){\n throw new Error(\n 'Could not instantiate TableFilter: HTML table not found.');\n }\n\n // configuration object\n let f = this.cfg;\n\n this.emitter = new Emitter();\n\n //Start row et cols nb\n this.refRow = this.startRow === null ? 2 : (this.startRow+1);\n try{ this.nbCells = this.getCellsNb(this.refRow); }\n catch(e){ this.nbCells = this.getCellsNb(0); }\n\n //default script base path\n this.basePath = f.base_path || 'tablefilter/';\n\n /*** filter types ***/\n this.fltTypeInp = 'input';\n this.fltTypeSlc = 'select';\n this.fltTypeMulti = 'multiple';\n this.fltTypeCheckList = 'checklist';\n this.fltTypeNone = 'none';\n\n /*** filters' grid properties ***/\n\n //enables/disables filter grid\n this.fltGrid = f.grid === false ? false : true;\n\n //enables/disables grid layout (fixed headers)\n this.gridLayout = Boolean(f.grid_layout);\n\n this.filtersRowIndex = isNaN(f.filters_row_index) ?\n 0 : f.filters_row_index;\n this.headersRow = isNaN(f.headers_row_index) ?\n (this.filtersRowIndex === 0 ? 1 : 0) : f.headers_row_index;\n\n //defines tag of the cells containing filters (td/th)\n this.fltCellTag = f.filters_cell_tag!=='th' ||\n f.filters_cell_tag!=='td' ? 'td' : f.filters_cell_tag;\n\n //stores filters ids\n this.fltIds = [];\n //stores filters DOM elements\n this.fltElms = [];\n //stores valid rows indexes (rows visible upon filtering)\n this.validRowsIndex = [];\n //stores filters row element\n this.fltGridEl = null;\n //container div for paging elements, reset btn etc.\n this.infDiv = null;\n //div for rows counter\n this.lDiv = null;\n //div for reset button and results per page select\n this.rDiv = null;\n //div for paging elements\n this.mDiv = null;\n\n //defines css class for div containing paging elements, rows counter etc\n this.infDivCssClass = f.inf_div_css_class || 'inf';\n //defines css class for left div\n this.lDivCssClass = f.left_div_css_class || 'ldiv';\n //defines css class for right div\n this.rDivCssClass = f.right_div_css_class || 'rdiv';\n //defines css class for mid div\n this.mDivCssClass = f.middle_div_css_class || 'mdiv';\n //table container div css class\n this.contDivCssClass = f.content_div_css_class || 'cont';\n\n /*** filters' grid appearance ***/\n //stylesheet file\n this.stylePath = f.style_path || this.basePath + 'style/';\n this.stylesheet = f.stylesheet || this.stylePath+'tablefilter.css';\n this.stylesheetId = this.id + '_style';\n //defines css class for filters row\n this.fltsRowCssClass = f.flts_row_css_class || 'fltrow';\n //enables/disables icons (paging, reset button)\n this.enableIcons = f.enable_icons===false ? false : true;\n //enables/disbles rows alternating bg colors\n this.alternateRows = Boolean(f.alternate_rows);\n //defines widths of columns\n this.hasColWidths = Types.isArray(f.col_widths);\n this.colWidths = this.hasColWidths ? f.col_widths : null;\n //defines css class for filters\n this.fltCssClass = f.flt_css_class || 'flt';\n //defines css class for multiple selects filters\n this.fltMultiCssClass = f.flt_multi_css_class || 'flt_multi';\n //defines css class for filters\n this.fltSmallCssClass = f.flt_small_css_class || 'flt_s';\n //defines css class for single-filter\n this.singleFltCssClass = f.single_flt_css_class || 'single_flt';\n\n /*** filters' grid behaviours ***/\n //enables/disables enter key\n this.enterKey = f.enter_key===false ? false : true;\n //calls function before filtering starts\n this.onBeforeFilter = Types.isFn(f.on_before_filter) ?\n f.on_before_filter : null;\n //calls function after filtering\n this.onAfterFilter = Types.isFn(f.on_after_filter) ?\n f.on_after_filter : null;\n //enables/disables case sensitivity\n this.caseSensitive = Boolean(f.case_sensitive);\n //has exact match per column\n this.hasExactMatchByCol = Types.isArray(f.columns_exact_match);\n this.exactMatchByCol = this.hasExactMatchByCol ?\n f.columns_exact_match : [];\n //enables/disbles exact match for search\n this.exactMatch = Boolean(f.exact_match);\n //refreshes drop-down lists upon validation\n this.linkedFilters = Boolean(f.linked_filters);\n //wheter excluded options are disabled\n this.disableExcludedOptions = Boolean(f.disable_excluded_options);\n //stores active filter element\n this.activeFlt = null;\n //id of active filter\n this.activeFilterId = null;\n //enables always visible rows\n this.hasVisibleRows = Boolean(f.rows_always_visible);\n //array containing always visible rows\n this.visibleRows = this.hasVisibleRows ? f.rows_always_visible : [];\n //enables/disables external filters generation\n this.isExternalFlt = Boolean(f.external_flt_grid);\n //array containing ids of external elements containing filters\n this.externalFltTgtIds = f.external_flt_grid_ids || [];\n //stores filters elements if isExternalFlt is true\n this.externalFltEls = [];\n //delays any filtering process if loader true\n this.execDelay = !isNaN(f.exec_delay) ? parseInt(f.exec_delay,10) : 100;\n //calls function when filters grid loaded\n this.onFiltersLoaded = Types.isFn(f.on_filters_loaded) ?\n f.on_filters_loaded : null;\n //enables/disables single filter search\n this.singleSearchFlt = Boolean(f.single_filter);\n //calls function after row is validated\n this.onRowValidated = Types.isFn(f.on_row_validated) ?\n f.on_row_validated : null;\n //array defining columns for customCellData event\n this.customCellDataCols = f.custom_cell_data_cols ?\n f.custom_cell_data_cols : [];\n //calls custom function for retrieving cell data\n this.customCellData = Types.isFn(f.custom_cell_data) ?\n f.custom_cell_data : null;\n //input watermark text array\n this.watermark = f.watermark || '';\n this.isWatermarkArray = Types.isArray(this.watermark);\n //id of toolbar container element\n this.toolBarTgtId = f.toolbar_target_id || null;\n //enables/disables help div\n this.help = Types.isUndef(f.help_instructions) ?\n undefined : Boolean(f.help_instructions);\n //popup filters\n this.popupFilters = Boolean(f.popup_filters);\n //active columns color\n this.markActiveColumns = Boolean(f.mark_active_columns);\n //defines css class for active column header\n this.activeColumnsCssClass = f.active_columns_css_class ||\n 'activeHeader';\n //calls function before active column header is marked\n this.onBeforeActiveColumn = Types.isFn(f.on_before_active_column) ?\n f.on_before_active_column : null;\n //calls function after active column header is marked\n this.onAfterActiveColumn = Types.isFn(f.on_after_active_column) ?\n f.on_after_active_column : null;\n\n /*** select filter's customisation and behaviours ***/\n //defines 1st option text\n this.displayAllText = f.display_all_text || 'Clear';\n //enables/disables empty option in combo-box filters\n this.enableEmptyOption = Boolean(f.enable_empty_option);\n //defines empty option text\n this.emptyText = f.empty_text || '(Empty)';\n //enables/disables non empty option in combo-box filters\n this.enableNonEmptyOption = Boolean(f.enable_non_empty_option);\n //defines empty option text\n this.nonEmptyText = f.non_empty_text || '(Non empty)';\n //enables/disables onChange event on combo-box\n this.onSlcChange = f.on_change===false ? false : true;\n //enables/disables select options sorting\n this.sortSlc = f.sort_select===false ? false : true;\n //enables/disables ascending numeric options sorting\n this.isSortNumAsc = Boolean(f.sort_num_asc);\n this.sortNumAsc = this.isSortNumAsc ? f.sort_num_asc : [];\n //enables/disables descending numeric options sorting\n this.isSortNumDesc = Boolean(f.sort_num_desc);\n this.sortNumDesc = this.isSortNumDesc ? f.sort_num_desc : [];\n //Select filters are populated on demand\n this.loadFltOnDemand = Boolean(f.load_filters_on_demand);\n this.hasCustomOptions = Types.isObj(f.custom_options);\n this.customOptions = f.custom_options;\n\n /*** Filter operators ***/\n this.rgxOperator = f.regexp_operator || 'rgx:';\n this.emOperator = f.empty_operator || '[empty]';\n this.nmOperator = f.nonempty_operator || '[nonempty]';\n this.orOperator = f.or_operator || '||';\n this.anOperator = f.and_operator || '&&';\n this.grOperator = f.greater_operator || '>';\n this.lwOperator = f.lower_operator || '<';\n this.leOperator = f.lower_equal_operator || '<=';\n this.geOperator = f.greater_equal_operator || '>=';\n this.dfOperator = f.different_operator || '!';\n this.lkOperator = f.like_operator || '*';\n this.eqOperator = f.equal_operator || '=';\n this.stOperator = f.start_with_operator || '{';\n this.enOperator = f.end_with_operator || '}';\n this.curExp = f.cur_exp || '^[¥£€$]';\n this.separator = f.separator || ',';\n\n /*** rows counter ***/\n //show/hides rows counter\n this.rowsCounter = Boolean(f.rows_counter);\n\n /*** status bar ***/\n //show/hides status bar\n this.statusBar = Boolean(f.status_bar);\n\n /*** loader ***/\n //enables/disables loader/spinner indicator\n this.loader = Boolean(f.loader);\n\n /*** validation - reset buttons/links ***/\n //show/hides filter's validation button\n this.displayBtn = Boolean(f.btn);\n //defines validation button text\n this.btnText = f.btn_text || (!this.enableIcons ? 'Go' : '');\n //defines css class for validation button\n this.btnCssClass = f.btn_css_class ||\n (!this.enableIcons ? 'btnflt' : 'btnflt_icon');\n //show/hides reset link\n this.btnReset = Boolean(f.btn_reset);\n //defines css class for reset button\n this.btnResetCssClass = f.btn_reset_css_class || 'reset';\n //callback function before filters are cleared\n this.onBeforeReset = Types.isFn(f.on_before_reset) ?\n f.on_before_reset : null;\n //callback function after filters are cleared\n this.onAfterReset = Types.isFn(f.on_after_reset) ?\n f.on_after_reset : null;\n\n /*** paging ***/\n //enables/disables table paging\n this.paging = Boolean(f.paging);\n this.nbVisibleRows = 0; //nb visible rows\n this.nbHiddenRows = 0; //nb hidden rows\n\n /*** autofilter on typing ***/\n //enables/disables auto filtering, table is filtered when user stops\n //typing\n this.autoFilter = Boolean(f.auto_filter);\n //onkeyup delay timer (msecs)\n this.autoFilterDelay = !isNaN(f.auto_filter_delay) ?\n f.auto_filter_delay : 900;\n //typing indicator\n this.isUserTyping = null;\n this.autoFilterTimer = null;\n\n /*** keyword highlighting ***/\n //enables/disables keyword highlighting\n this.highlightKeywords = Boolean(f.highlight_keywords);\n\n /*** No results feature ***/\n this.noResults = Types.isObj(f.no_results_message) ||\n Boolean(f.no_results_message);\n\n // stateful\n this.state = Types.isObj(f.state) || Boolean(f.state);\n\n /*** data types ***/\n //defines default date type (european DMY)\n this.defaultDateType = f.default_date_type || 'DMY';\n //defines default thousands separator\n //US = ',' EU = '.'\n this.thousandsSeparator = f.thousands_separator || ',';\n //defines default decimal separator\n //US & javascript = '.' EU = ','\n this.decimalSeparator = f.decimal_separator || '.';\n //enables number format per column\n this.hasColNbFormat = Types.isArray(f.col_number_format);\n //array containing columns nb formats\n this.colNbFormat = this.hasColNbFormat ? f.col_number_format : null;\n //enables date type per column\n this.hasColDateType = Types.isArray(f.col_date_type);\n //array containing columns date type\n this.colDateType = this.hasColDateType ? f.col_date_type : null;\n\n /*** ids prefixes ***/\n //css class name added to table\n this.prfxTf = 'TF';\n //filters (inputs - selects)\n this.prfxFlt = 'flt';\n //validation button\n this.prfxValButton = 'btn';\n //container div for paging elements, rows counter etc.\n this.prfxInfDiv = 'inf_';\n //left div\n this.prfxLDiv = 'ldiv_';\n //right div\n this.prfxRDiv = 'rdiv_';\n //middle div\n this.prfxMDiv = 'mdiv_';\n //filter values cookie\n this.prfxCookieFltsValues = 'tf_flts_';\n //page nb cookie\n this.prfxCookiePageNb = 'tf_pgnb_';\n //page length cookie\n this.prfxCookiePageLen = 'tf_pglen_';\n\n /*** cookies ***/\n //remembers filters values on page load\n this.rememberGridValues = Boolean(f.remember_grid_values);\n //remembers page nb on page load\n this.rememberPageNb = this.paging && f.remember_page_number;\n //remembers page length on page load\n this.rememberPageLen = this.paging && f.remember_page_length;\n this.hasPersistence = this.rememberGridValues || this.rememberPageNb ||\n this.rememberPageLen;\n\n /*** extensions ***/\n //imports external script\n this.extensions = f.extensions;\n this.hasExtensions = Types.isArray(this.extensions);\n\n /*** themes ***/\n this.enableDefaultTheme = Boolean(f.enable_default_theme);\n //imports themes\n this.hasThemes = (this.enableDefaultTheme || Types.isArray(f.themes));\n this.themes = f.themes || [];\n //themes path\n this.themesPath = f.themes_path || this.stylePath + 'themes/';\n\n // Features registry\n this.Mod = {};\n\n // Extensions registry\n this.ExtRegistry = {};\n\n /*** TF events ***/\n this.Evt = {\n // Detect key\n detectKey(e) {\n if(!this.enterKey){ return; }\n if(e){\n let key = Event.keyCode(e);\n if(key===13){\n this.filter();\n Event.cancel(e);\n Event.stop(e);\n } else {\n this.isUserTyping = true;\n global.clearInterval(this.autoFilterTimer);\n this.autoFilterTimer = null;\n }\n }\n },\n // if auto-filter on, detect user is typing and filter columns\n onKeyUp(e) {\n if(!this.autoFilter){\n return;\n }\n let key = Event.keyCode(e);\n this.isUserTyping = false;\n\n function filter() {\n global.clearInterval(this.autoFilterTimer);\n this.autoFilterTimer = null;\n if(!this.isUserTyping){\n this.filter();\n this.isUserTyping = null;\n }\n }\n\n if(key!==13 && key!==9 && key!==27 && key!==38 && key!==40) {\n if(this.autoFilterTimer === null){\n this.autoFilterTimer = global.setInterval(\n filter.bind(this), this.autoFilterDelay);\n }\n } else {\n global.clearInterval(this.autoFilterTimer);\n this.autoFilterTimer = null;\n }\n },\n // if auto-filter on, detect user is typing\n onKeyDown() {\n if(!this.autoFilter) { return; }\n this.isUserTyping = true;\n },\n // if auto-filter on, clear interval on filter blur\n onInpBlur() {\n if(this.autoFilter){\n this.isUserTyping = false;\n global.clearInterval(this.autoFilterTimer);\n }\n this.emitter.emit('filter-blur', this);\n },\n // set focused text-box filter as active\n onInpFocus(e) {\n let elm = Event.target(e);\n this.activeFilterId = elm.getAttribute('id');\n this.activeFlt = Dom.id(this.activeFilterId);\n this.emitter.emit('filter-focus', this);\n }\n };\n }\n\n /**\n * Initialise features and layout\n */\n init(){\n if(this._hasGrid){\n return;\n }\n\n let Mod = this.Mod;\n let n = this.singleSearchFlt ? 1 : this.nbCells,\n inpclass;\n\n //loads stylesheet if not imported\n this.import(this.stylesheetId, this.stylesheet, null, 'link');\n\n //loads theme\n if(this.hasThemes){\n this.loadThemes();\n }\n\n // Instantiate help feature and initialise only if set true\n if(!Mod.help){\n Mod.help = new Help(this);\n }\n if(this.help){\n Mod.help.init();\n }\n\n if(this.state){\n if(!Mod.state){\n Mod.state = new State(this);\n }\n Mod.state.init();\n }\n\n if(this.hasPersistence){\n if(!Mod.store){\n Mod.store = new Store(this);\n }\n Mod.store.init();\n }\n\n if(this.gridLayout){\n if(!Mod.gridLayout){\n Mod.gridLayout = new GridLayout(this);\n }\n Mod.gridLayout.init();\n }\n\n if(this.loader){\n if(!Mod.loader){\n Mod.loader = new Loader(this);\n }\n Mod.loader.init();\n }\n\n if(this.highlightKeywords){\n Mod.highlightKeyword = new HighlightKeyword(this);\n Mod.highlightKeyword.init();\n }\n\n if(this.popupFilters){\n if(!Mod.popupFilter){\n Mod.popupFilter = new PopupFilter(this);\n }\n Mod.popupFilter.init();\n }\n\n //filters grid is not generated\n if(!this.fltGrid){\n this._initNoFilters();\n } else {\n let fltrow = this._insertFiltersRow();\n\n this.nbFilterableRows = this.getRowsNb();\n this.nbVisibleRows = this.nbFilterableRows;\n this.nbRows = this.tbl.rows.length;\n\n // Generate filters\n for(let i=0; i this.enforceVisibility());\n this.enforceVisibility();\n }\n if(this.rowsCounter){\n Mod.rowsCounter = new RowsCounter(this);\n Mod.rowsCounter.init();\n }\n if(this.statusBar){\n Mod.statusBar = new StatusBar(this);\n Mod.statusBar.init();\n }\n if(this.paging){\n if(!Mod.paging){\n Mod.paging = new Paging(this);\n Mod.paging.init();\n } else{\n Mod.paging.reset();\n }\n }\n if(this.btnReset){\n Mod.clearButton = new ClearButton(this);\n Mod.clearButton.init();\n }\n\n if(this.hasColWidths && !this.gridLayout){\n this.setColWidths();\n }\n if(this.alternateRows){\n Mod.alternateRows = new AlternateRows(this);\n Mod.alternateRows.init();\n }\n if(this.noResults){\n if(!Mod.noResults){\n Mod.noResults = new NoResults(this);\n }\n Mod.noResults.init();\n }\n\n this._hasGrid = true;\n\n if(this.hasPersistence){\n this.resetFilterValues();\n }\n\n //TF css class is added to table\n if(!this.gridLayout){\n Dom.addClass(this.tbl, this.prfxTf);\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 if(this.onFiltersLoaded){\n this.onFiltersLoaded.call(null, this);\n }\n\n this.initialized = true;\n this.emitter.emit('initialized', this);\n }\n\n /**\n * Insert filters row at initialization\n */\n _insertFiltersRow() {\n if(this.gridLayout){\n return;\n }\n let fltrow;\n\n let thead = Dom.tag(this.tbl, 'thead');\n if(thead.length > 0){\n fltrow = thead[0].insertRow(this.filtersRowIndex);\n } else {\n fltrow = this.tbl.insertRow(this.filtersRowIndex);\n }\n\n 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 this.nbVisibleRows = this.nbFilterableRows;\n this.nbRows = this.nbFilterableRows + this.refRow;\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===this.fltTypeInp ? 'text' : 'hidden';\n let inp = Dom.create(this.fltTypeInp,\n ['id', this.prfxFlt+colIndex+'_'+this.id],\n ['type', inptype], ['ct', colIndex]);\n\n if(inptype !== 'hidden' && this.watermark){\n inp.setAttribute('placeholder',\n this.isWatermarkArray ? (this.watermark[colIndex] || '') :\n this.watermark\n );\n }\n inp.className = cssClass || this.fltCssClass;\n Event.add(inp, 'focus', this.Evt.onInpFocus.bind(this));\n\n //filter is appended in custom element\n if(externalFltTgtId){\n Dom.id(externalFltTgtId).appendChild(inp);\n this.externalFltEls.push(inp);\n } else {\n container.appendChild(inp);\n }\n\n this.fltIds.push(inp.id);\n\n Event.add(inp, 'keypress', this.Evt.detectKey.bind(this));\n Event.add(inp, 'keydown', this.Evt.onKeyDown.bind(this));\n Event.add(inp, 'keyup', this.Evt.onKeyUp.bind(this));\n Event.add(inp, 'blur', this.Evt.onInpBlur.bind(this));\n }\n\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 = Dom.create(this.fltTypeInp,\n ['id', this.prfxValButton+colIndex+'_'+this.id],\n ['type', 'button'], ['value', this.btnText]);\n btn.className = this.btnCssClass;\n\n //filter is appended in custom element\n if(externalFltTgtId){\n Dom.id(externalFltTgtId).appendChild(btn);\n } else{\n container.appendChild(btn);\n }\n\n Event.add(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 {\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 !Types.isEmpty(this.ExtRegistry[name]);\n }\n\n /**\n * Destroy all the extensions defined in the configuration object\n */\n destroyExtensions(){\n let exts = this.extensions;\n\n for(let i=0, len=exts.length; i';\n\n //Paging buttons\n this.btnPrevPageHtml = '';\n this.btnNextPageHtml = '';\n this.btnFirstPageHtml = '';\n this.btnLastPageHtml = '';\n\n //Loader\n this.loader = true;\n this.loaderHtml = '';\n this.loaderText = null;\n\n this.emitter.emit('after-loading-themes', this);\n }\n\n /**\n * Return stylesheet DOM element for a given theme name\n * @return {DOMElement} stylesheet element\n */\n getStylesheet(name='default'){\n return Dom.id(this.prfxTf + name);\n }\n\n /**\n * Destroy filter grid\n */\n destroy(){\n if(!this._hasGrid){\n return;\n }\n let rows = this.tbl.rows,\n Mod = this.Mod,\n 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.fltGridEl = rows[this.filtersRowIndex];\n this.tbl.deleteRow(this.filtersRowIndex);\n }\n\n // broadcast destroy event\n emitter.emit('destroy', this);\n\n // Destroy modules\n // TODO: subcribe modules to destroy event instead\n Object.keys(Mod).forEach(function(key){\n var feature = Mod[key];\n if(feature && Types.isFn(feature.destroy)){\n feature.destroy();\n }\n });\n\n // unsubscribe to events\n if(this.hasVisibleRows){\n emitter.off(['after-filtering'], ()=> this.enforceVisibility());\n }\n if(this.linkedFilters){\n emitter.off(['after-filtering'], ()=> this.linkFilters());\n }\n\n Dom.removeClass(this.tbl, this.prfxTf);\n this.nbHiddenRows = 0;\n this.validRowsIndex = [];\n this.fltIds = [];\n this.activeFlt = null;\n this._hasGrid = false;\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 = Dom.create('div', ['id', this.prfxInfDiv+this.id]);\n infdiv.className = this.infDivCssClass;\n\n //custom container\n if(this.toolBarTgtId){\n Dom.id(this.toolBarTgtId).appendChild(infdiv);\n }\n //grid-layout\n else if(this.gridLayout){\n let gridLayout = this.Mod.gridLayout;\n gridLayout.tblMainCont.appendChild(infdiv);\n infdiv.className = gridLayout.gridInfDivCssClass;\n }\n //default location: just above the table\n else{\n var cont = Dom.create('caption');\n cont.appendChild(infdiv);\n this.tbl.insertBefore(cont, this.tbl.firstChild);\n }\n this.infDiv = Dom.id(this.prfxInfDiv+this.id);\n\n /*** left div containing rows # displayer ***/\n let ldiv = Dom.create('div', ['id', this.prfxLDiv+this.id]);\n ldiv.className = this.lDivCssClass;\n infdiv.appendChild(ldiv);\n this.lDiv = Dom.id(this.prfxLDiv+this.id);\n\n /*** right div containing reset button\n + nb results per page select ***/\n let rdiv = Dom.create('div', ['id', this.prfxRDiv+this.id]);\n rdiv.className = this.rDivCssClass;\n infdiv.appendChild(rdiv);\n this.rDiv = Dom.id(this.prfxRDiv+this.id);\n\n /*** mid div containing paging elements ***/\n let mdiv = Dom.create('div', ['id', this.prfxMDiv+this.id]);\n mdiv.className = this.mDivCssClass;\n infdiv.appendChild(mdiv);\n this.mDiv = Dom.id(this.prfxMDiv+this.id);\n\n // emit help initialisation only if undefined\n if(Types.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 Dom.remove(this.infDiv);\n this.infDiv = null;\n\n let tbl = this.tbl;\n let captions = Dom.tag(tbl, 'caption');\n if(captions.length > 0){\n [].forEach.call(captions, (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 {\n if(val !== ' '){\n this.setFilterValue(idx, val);\n }\n });\n this.filter();\n }\n\n /**\n * Filter the table by retrieving the data from each cell in every single\n * row and comparing it to the search term for current column. A row is\n * hidden when all the search terms are not found in inspected row.\n */\n filter(){\n if(!this.fltGrid || !this._hasGrid){\n return;\n }\n //invoke onbefore callback\n if(this.onBeforeFilter){\n this.onBeforeFilter.call(null, this);\n }\n this.emitter.emit('before-filtering', this);\n\n let row = this.tbl.rows,\n hiddenrows = 0;\n\n this.validRowsIndex = [];\n // search args re-init\n let searchArgs = this.getFiltersValue();\n\n var numCellData, nbFormat;\n var re_le = new RegExp(this.leOperator),\n re_ge = new RegExp(this.geOperator),\n re_l = new RegExp(this.lwOperator),\n re_g = new RegExp(this.grOperator),\n re_d = new RegExp(this.dfOperator),\n re_lk = new RegExp(Str.rgxEsc(this.lkOperator)),\n re_eq = new RegExp(this.eqOperator),\n re_st = new RegExp(this.stOperator),\n re_en = new RegExp(this.enOperator),\n // re_an = new RegExp(this.anOperator),\n // re_cr = new RegExp(this.curExp),\n re_em = this.emOperator,\n re_nm = this.nmOperator,\n re_re = new RegExp(Str.rgxEsc(this.rgxOperator));\n\n //keyword highlighting\n function highlight(str, ok, cell){\n /*jshint validthis:true */\n if(this.highlightKeywords && ok){\n str = str.replace(re_lk, '');\n str = str.replace(re_eq, '');\n str = str.replace(re_st, '');\n str = str.replace(re_en, '');\n let w = str;\n if(re_le.test(str) || re_ge.test(str) || re_l.test(str) ||\n re_g.test(str) || re_d.test(str)){\n w = Dom.getText(cell);\n }\n if(w !== ''){\n this.emitter.emit('highlight-keyword', this, cell, w);\n }\n }\n }\n\n //looks for search argument in current row\n function hasArg(sA, cellData, j){\n /*jshint validthis:true */\n sA = Str.matchCase(sA, this.caseSensitive);\n\n let occurence,\n removeNbFormat = Helpers.removeNbFormat;\n\n //Search arg operator tests\n let hasLO = re_l.test(sA),\n hasLE = re_le.test(sA),\n hasGR = re_g.test(sA),\n hasGE = re_ge.test(sA),\n hasDF = re_d.test(sA),\n hasEQ = re_eq.test(sA),\n hasLK = re_lk.test(sA),\n // hasAN = re_an.test(sA),\n hasST = re_st.test(sA),\n hasEN = re_en.test(sA),\n hasEM = (re_em === sA),\n hasNM = (re_nm === sA),\n hasRE = re_re.test(sA);\n\n //Search arg dates tests\n let isLDate = hasLO &&\n DateHelper.isValid(sA.replace(re_l,''), dtType);\n let isLEDate = hasLE &&\n DateHelper.isValid(sA.replace(re_le,''), dtType);\n let isGDate = hasGR &&\n DateHelper.isValid(sA.replace(re_g,''), dtType);\n let isGEDate = hasGE &&\n DateHelper.isValid(sA.replace(re_ge,''), dtType);\n let isDFDate = hasDF &&\n DateHelper.isValid(sA.replace(re_d,''), dtType);\n let isEQDate = hasEQ &&\n DateHelper.isValid(sA.replace(re_eq,''), dtType);\n\n let dte1, dte2;\n //dates\n if(DateHelper.isValid(cellData, dtType)){\n dte1 = DateHelper.format(cellData, dtType);\n // lower date\n if(isLDate){\n dte2 = DateHelper.format(sA.replace(re_l,''), dtType);\n occurence = dte1 < dte2;\n }\n // lower equal date\n else if(isLEDate){\n dte2 = DateHelper.format(sA.replace(re_le,''), dtType);\n occurence = dte1 <= dte2;\n }\n // greater equal date\n else if(isGEDate){\n dte2 = DateHelper.format(sA.replace(re_ge,''), dtType);\n occurence = dte1 >= dte2;\n }\n // greater date\n else if(isGDate){\n dte2 = DateHelper.format(sA.replace(re_g,''), dtType);\n occurence = dte1 > dte2;\n }\n // different date\n else if(isDFDate){\n dte2 = DateHelper.format(sA.replace(re_d,''), dtType);\n occurence = dte1.toString() != dte2.toString();\n }\n // equal date\n else if(isEQDate){\n dte2 = DateHelper.format(sA.replace(re_eq,''), dtType);\n occurence = dte1.toString() == dte2.toString();\n }\n // searched keyword with * operator doesn't have to be a date\n else if(re_lk.test(sA)){// like date\n occurence = Str.contains(sA.replace(re_lk,''), cellData,\n false, this.caseSensitive);\n }\n else if(DateHelper.isValid(sA,dtType)){\n dte2 = DateHelper.format(sA,dtType);\n occurence = dte1.toString() === dte2.toString();\n }\n //empty\n else if(hasEM){\n occurence = Str.isEmpty(cellData);\n }\n //non-empty\n else if(hasNM){\n occurence = !Str.isEmpty(cellData);\n } else {\n occurence = Str.contains(sA, cellData, this.isExactMatch(j),\n this.caseSensitive);\n }\n }\n\n else{\n //first numbers need to be formated\n if(this.hasColNbFormat && this.colNbFormat[j]){\n numCellData = removeNbFormat(\n cellData, this.colNbFormat[j]);\n nbFormat = this.colNbFormat[j];\n } else {\n if(this.thousandsSeparator === ',' &&\n this.decimalSeparator === '.'){\n numCellData = removeNbFormat(cellData, 'us');\n nbFormat = 'us';\n } else {\n numCellData = removeNbFormat(cellData, 'eu');\n nbFormat = 'eu';\n }\n }\n\n // first checks if there is any operator (<,>,<=,>=,!,*,=,{,},\n // rgx:)\n // lower equal\n if(hasLE){\n occurence = numCellData <= removeNbFormat(\n sA.replace(re_le, ''), nbFormat);\n }\n //greater equal\n else if(hasGE){\n occurence = numCellData >= removeNbFormat(\n sA.replace(re_ge, ''), nbFormat);\n }\n //lower\n else if(hasLO){\n occurence = numCellData < removeNbFormat(\n sA.replace(re_l, ''), nbFormat);\n }\n //greater\n else if(hasGR){\n occurence = numCellData > removeNbFormat(\n sA.replace(re_g, ''), nbFormat);\n }\n //different\n else if(hasDF){\n occurence = Str.contains(sA.replace(re_d, ''), cellData,\n false, this.caseSensitive) ? false : true;\n }\n //like\n else if(hasLK){\n occurence = Str.contains(sA.replace(re_lk, ''), cellData,\n false, this.caseSensitive);\n }\n //equal\n else if(hasEQ){\n occurence = Str.contains(sA.replace(re_eq, ''), cellData,\n true, this.caseSensitive);\n }\n //starts with\n else if(hasST){\n occurence = cellData.indexOf(sA.replace(re_st, '')) === 0 ?\n true : false;\n }\n //ends with\n else if(hasEN){\n let searchArg = sA.replace(re_en, '');\n occurence =\n cellData.lastIndexOf(searchArg, cellData.length-1) ===\n (cellData.length-1)-(searchArg.length-1) &&\n cellData.lastIndexOf(\n searchArg, cellData.length-1) > -1 ? true : false;\n }\n //empty\n else if(hasEM){\n occurence = Str.isEmpty(cellData);\n }\n //non-empty\n else if(hasNM){\n occurence = !Str.isEmpty(cellData);\n }\n //regexp\n else if(hasRE){\n //in case regexp fires an exception\n try{\n //operator is removed\n let srchArg = sA.replace(re_re,'');\n let rgx = new RegExp(srchArg);\n occurence = rgx.test(cellData);\n } catch(e) { occurence = false; }\n } else {\n occurence = Str.contains(sA, cellData, this.isExactMatch(j),\n this.caseSensitive);\n }\n\n }//else\n return occurence;\n }//fn\n\n for(let k=this.refRow; k 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(Types.isArray(sA) || hasMultiOrSA || hasMultiAndSA){\n let cS,\n s,\n occur = false;\n if(Types.isArray(sA)){\n s = sA;\n } else {\n s = hasMultiOrSA ? sAOrSplit : sAAndSplit;\n }\n // TODO: improve clarity/readability of this block\n for(let w=0, len=s.length; w 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 0 ? fltValues : '';\n }\n //checklist\n else if(fltColType === this.fltTypeCheckList){\n // TODO: extract a method in checklist module from below\n if(flt.getAttribute('value') !== null){\n fltValues = flt.getAttribute('value');\n //removes last operator ||\n fltValues = fltValues.substr(0, fltValues.length-3);\n //convert || separated values into array\n fltValues = fltValues.split(' ' + this.orOperator + ' ');\n }\n //return empty string if collection is empty\n fltValue = fltValues.length > 0 ? fltValues : '';\n }\n //return an empty string if collection contains a single empty string\n if(Types.isArray(fltValue) && fltValue.length === 1 &&\n fltValue[0] === ''){\n fltValue = '';\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 0;\n let frag = !tblHasColTag ? doc.createDocumentFragment() : null;\n for(let k=0; k nrows\n if(row <= this.nbRows){\n this.validateRow(row, true);\n }\n }\n }\n\n /**\n * Clear all the filters' values\n */\n clearFilters(){\n if(!this.fltGrid){\n return;\n }\n\n this.emitter.emit('before-clearing-filters', this);\n\n if(this.onBeforeReset){\n this.onBeforeReset.call(null, this, this.getFiltersValue());\n }\n for(let i=0, len=this.fltIds.length; i IE onload event works only for scripts, not for stylesheets\n file.onload = file.onreadystatechange = function(){\n if(!isLoaded &&\n (!this.readyState || this.readyState === 'loaded' ||\n this.readyState === 'complete')){\n isLoaded = true;\n if(typeof callback === 'function'){\n callback.call(null, o);\n }\n }\n };\n file.onerror = function(){\n throw new Error('TF script could not load: ' + filePath);\n };\n head.appendChild(file);\n }\n\n /**\n * Check if table has filters grid\n * @return {Boolean}\n */\n hasGrid(){\n return this._hasGrid;\n }\n\n /**\n * Get list of filter IDs\n * @return {[type]} [description]\n */\n getFiltersId(){\n return this.fltIds || [];\n }\n\n /**\n * Get filtered (valid) rows indexes\n * @param {Boolean} reCalc Force calculation of filtered rows list\n * @return {Array} List of row indexes\n */\n getValidRows(reCalc){\n if(!reCalc){\n return this.validRowsIndex;\n }\n\n this.validRowsIndex = [];\n for(let k=this.refRow; k
- src/array.js | tablefilter v0.2.3 API Document
+ src/array.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/cookie.js.html b/docs/file/src/cookie.js.html
index 7121c908..c11a69e5 100644
--- a/docs/file/src/cookie.js.html
+++ b/docs/file/src/cookie.js.html
@@ -3,7 +3,7 @@
- src/cookie.js | tablefilter v0.2.3 API Document
+ src/cookie.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/date.js.html b/docs/file/src/date.js.html
index 1138ca83..0f877ec5 100644
--- a/docs/file/src/date.js.html
+++ b/docs/file/src/date.js.html
@@ -3,7 +3,7 @@
- src/date.js | tablefilter v0.2.3 API Document
+ src/date.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/dom.js.html b/docs/file/src/dom.js.html
index 9594d7b2..0f7c9937 100644
--- a/docs/file/src/dom.js.html
+++ b/docs/file/src/dom.js.html
@@ -3,7 +3,7 @@
- src/dom.js | tablefilter v0.2.3 API Document
+ src/dom.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/emitter.js.html b/docs/file/src/emitter.js.html
index 8f8dd7ea..2aa7f5a4 100644
--- a/docs/file/src/emitter.js.html
+++ b/docs/file/src/emitter.js.html
@@ -3,7 +3,7 @@
- src/emitter.js | tablefilter v0.2.3 API Document
+ src/emitter.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/event.js.html b/docs/file/src/event.js.html
index 895b2279..53975feb 100644
--- a/docs/file/src/event.js.html
+++ b/docs/file/src/event.js.html
@@ -3,7 +3,7 @@
- src/event.js | tablefilter v0.2.3 API Document
+ src/event.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/extensions/advancedGrid/adapterEzEditTable.js.html b/docs/file/src/extensions/advancedGrid/adapterEzEditTable.js.html
index a6c2912a..066fe544 100644
--- a/docs/file/src/extensions/advancedGrid/adapterEzEditTable.js.html
+++ b/docs/file/src/extensions/advancedGrid/adapterEzEditTable.js.html
@@ -3,7 +3,7 @@
- src/extensions/advancedGrid/adapterEzEditTable.js | tablefilter v0.2.3 API Document
+ src/extensions/advancedGrid/adapterEzEditTable.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/extensions/advancedGrid/advancedGrid.js.html b/docs/file/src/extensions/advancedGrid/advancedGrid.js.html
index 8e42935a..94e0f6b1 100644
--- a/docs/file/src/extensions/advancedGrid/advancedGrid.js.html
+++ b/docs/file/src/extensions/advancedGrid/advancedGrid.js.html
@@ -3,7 +3,7 @@
- src/extensions/advancedGrid/advancedGrid.js | tablefilter v0.2.3 API Document
+ src/extensions/advancedGrid/advancedGrid.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/extensions/colOps/colOps.js.html b/docs/file/src/extensions/colOps/colOps.js.html
index 9ad17d6f..8cf9cb0e 100644
--- a/docs/file/src/extensions/colOps/colOps.js.html
+++ b/docs/file/src/extensions/colOps/colOps.js.html
@@ -3,7 +3,7 @@
- src/extensions/colOps/colOps.js | tablefilter v0.2.3 API Document
+ src/extensions/colOps/colOps.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/extensions/colsVisibility/colsVisibility.js.html b/docs/file/src/extensions/colsVisibility/colsVisibility.js.html
index 540059e5..1b3ff1dd 100644
--- a/docs/file/src/extensions/colsVisibility/colsVisibility.js.html
+++ b/docs/file/src/extensions/colsVisibility/colsVisibility.js.html
@@ -3,7 +3,7 @@
- src/extensions/colsVisibility/colsVisibility.js | tablefilter v0.2.3 API Document
+ src/extensions/colsVisibility/colsVisibility.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/extensions/filtersVisibility/filtersVisibility.js.html b/docs/file/src/extensions/filtersVisibility/filtersVisibility.js.html
index 94f72d2f..03b4117c 100644
--- a/docs/file/src/extensions/filtersVisibility/filtersVisibility.js.html
+++ b/docs/file/src/extensions/filtersVisibility/filtersVisibility.js.html
@@ -3,7 +3,7 @@
- src/extensions/filtersVisibility/filtersVisibility.js | tablefilter v0.2.3 API Document
+ src/extensions/filtersVisibility/filtersVisibility.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/extensions/sort/adapterSortabletable.js.html b/docs/file/src/extensions/sort/adapterSortabletable.js.html
index fa4345d3..b235243e 100644
--- a/docs/file/src/extensions/sort/adapterSortabletable.js.html
+++ b/docs/file/src/extensions/sort/adapterSortabletable.js.html
@@ -3,7 +3,7 @@
- src/extensions/sort/adapterSortabletable.js | tablefilter v0.2.3 API Document
+ src/extensions/sort/adapterSortabletable.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/extensions/sort/sort.js.html b/docs/file/src/extensions/sort/sort.js.html
index ad3a3e5f..3cc0613a 100644
--- a/docs/file/src/extensions/sort/sort.js.html
+++ b/docs/file/src/extensions/sort/sort.js.html
@@ -3,7 +3,7 @@
- src/extensions/sort/sort.js | tablefilter v0.2.3 API Document
+ src/extensions/sort/sort.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/helpers.js.html b/docs/file/src/helpers.js.html
index fe05362f..43eb4e43 100644
--- a/docs/file/src/helpers.js.html
+++ b/docs/file/src/helpers.js.html
@@ -3,7 +3,7 @@
- src/helpers.js | tablefilter v0.2.3 API Document
+ src/helpers.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/modules/alternateRows.js.html b/docs/file/src/modules/alternateRows.js.html
index 1f9a8c5a..63bc8058 100644
--- a/docs/file/src/modules/alternateRows.js.html
+++ b/docs/file/src/modules/alternateRows.js.html
@@ -3,7 +3,7 @@
- src/modules/alternateRows.js | tablefilter v0.2.3 API Document
+ src/modules/alternateRows.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/modules/checkList.js.html b/docs/file/src/modules/checkList.js.html
index df4799cd..018eb910 100644
--- a/docs/file/src/modules/checkList.js.html
+++ b/docs/file/src/modules/checkList.js.html
@@ -3,7 +3,7 @@
- src/modules/checkList.js | tablefilter v0.2.3 API Document
+ src/modules/checkList.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/modules/clearButton.js.html b/docs/file/src/modules/clearButton.js.html
index db08caf0..28334116 100644
--- a/docs/file/src/modules/clearButton.js.html
+++ b/docs/file/src/modules/clearButton.js.html
@@ -3,7 +3,7 @@
- src/modules/clearButton.js | tablefilter v0.2.3 API Document
+ src/modules/clearButton.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/modules/dropdown.js.html b/docs/file/src/modules/dropdown.js.html
index 9d63435e..d1df220c 100644
--- a/docs/file/src/modules/dropdown.js.html
+++ b/docs/file/src/modules/dropdown.js.html
@@ -3,7 +3,7 @@
- src/modules/dropdown.js | tablefilter v0.2.3 API Document
+ src/modules/dropdown.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/modules/feature.js.html b/docs/file/src/modules/feature.js.html
index bb009415..ec701f91 100644
--- a/docs/file/src/modules/feature.js.html
+++ b/docs/file/src/modules/feature.js.html
@@ -3,7 +3,7 @@
- src/modules/feature.js | tablefilter v0.2.3 API Document
+ src/modules/feature.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/modules/gridLayout.js.html b/docs/file/src/modules/gridLayout.js.html
index 82afde5a..920f2561 100644
--- a/docs/file/src/modules/gridLayout.js.html
+++ b/docs/file/src/modules/gridLayout.js.html
@@ -3,7 +3,7 @@
- src/modules/gridLayout.js | tablefilter v0.2.3 API Document
+ src/modules/gridLayout.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/modules/hash.js.html b/docs/file/src/modules/hash.js.html
index 7b80082c..aa7d725e 100644
--- a/docs/file/src/modules/hash.js.html
+++ b/docs/file/src/modules/hash.js.html
@@ -3,7 +3,7 @@
- src/modules/hash.js | tablefilter v0.2.3 API Document
+ src/modules/hash.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/modules/help.js.html b/docs/file/src/modules/help.js.html
index a9c904f5..fe38301d 100644
--- a/docs/file/src/modules/help.js.html
+++ b/docs/file/src/modules/help.js.html
@@ -3,7 +3,7 @@
- src/modules/help.js | tablefilter v0.2.3 API Document
+ src/modules/help.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/modules/highlightKeywords.js.html b/docs/file/src/modules/highlightKeywords.js.html
index 37db464d..ab959c6b 100644
--- a/docs/file/src/modules/highlightKeywords.js.html
+++ b/docs/file/src/modules/highlightKeywords.js.html
@@ -3,7 +3,7 @@
- src/modules/highlightKeywords.js | tablefilter v0.2.3 API Document
+ src/modules/highlightKeywords.js | tablefilter v0.2.4 API Document
@@ -66,30 +66,29 @@
import Str from '../string';
import Types from '../types';
-export class HighlightKeyword{
+export class HighlightKeyword {
/**
* HighlightKeyword, highlight matched keyword
* @param {Object} tf TableFilter instance
*/
constructor(tf) {
- var f = tf.config();
+ let f = tf.config();
//defines css class for highlighting
this.highlightCssClass = f.highlight_css_class || 'keyword';
- this.highlightedNodes = [];
this.tf = tf;
this.emitter = tf.emitter;
}
- init(){
+ init() {
this.emitter.on(
['before-filtering', 'destroy'],
- ()=> this.unhighlightAll()
+ () => this.unhighlightAll()
);
this.emitter.on(
['highlight-keyword'],
- (tf, cell, word)=>
+ (tf, cell, word) =>
this.highlight(cell, word, this.highlightCssClass)
);
}
@@ -99,38 +98,39 @@ export class HighlightKeyword{
* @param {Node} node
* @param {String} word Searched term
* @param {String} cssClass Css class name
+ *
+ * TODO: refactor this method
*/
- highlight(node, word, cssClass){
+ highlight(node, word, cssClass) {
// Iterate into this nodes childNodes
- if(node.hasChildNodes){
- var children = node.childNodes;
- for(var i=0; i<children.length; i++){
+ if (node.hasChildNodes) {
+ let children = node.childNodes;
+ for (let i = 0; i < children.length; i++) {
this.highlight(children[i], word, cssClass);
}
}
- if(node.nodeType === 3){
- var tempNodeVal = Str.lower(node.nodeValue);
- var tempWordVal = Str.lower(word);
- if(tempNodeVal.indexOf(tempWordVal) != -1){
- var pn = node.parentNode;
- if(pn && pn.className != cssClass){
+ if (node.nodeType === 3) {
+ let tempNodeVal = Str.lower(node.nodeValue);
+ let tempWordVal = Str.lower(word);
+ if (tempNodeVal.indexOf(tempWordVal) !== -1) {
+ let pn = node.parentNode;
+ if (pn && pn.className !== cssClass) {
// word not highlighted yet
- var nv = node.nodeValue,
+ let nv = node.nodeValue,
ni = tempNodeVal.indexOf(tempWordVal),
// Create a load of replacement nodes
before = Dom.text(nv.substr(0, ni)),
- docWordVal = nv.substr(ni,word.length),
- after = Dom.text(nv.substr(ni+word.length)),
+ docWordVal = nv.substr(ni, word.length),
+ after = Dom.text(nv.substr(ni + word.length)),
hiwordtext = Dom.text(docWordVal),
hiword = Dom.create('span');
hiword.className = cssClass;
hiword.appendChild(hiwordtext);
- pn.insertBefore(before,node);
- pn.insertBefore(hiword,node);
- pn.insertBefore(after,node);
+ pn.insertBefore(before, node);
+ pn.insertBefore(hiword, node);
+ pn.insertBefore(after, node);
pn.removeChild(node);
- this.highlightedNodes.push(hiword.firstChild);
}
}
}
@@ -141,66 +141,51 @@ export class HighlightKeyword{
* @param {String} word
* @param {String} cssClass Css class to remove
*/
- unhighlight(word, cssClass){
- var arrRemove = [];
- var highlightedNodes = this.highlightedNodes;
- for(var i=0; i<highlightedNodes.length; i++){
- var n = highlightedNodes[i];
- if(!n){
- continue;
- }
- var tempNodeVal = Str.lower(n.nodeValue),
+ unhighlight(word, cssClass) {
+ let highlightedNodes = this.tf.tbl.querySelectorAll(`.${cssClass}`);
+ for (let i = 0; i < highlightedNodes.length; i++) {
+ let n = highlightedNodes[i];
+ let nodeVal = Dom.getText(n),
+ tempNodeVal = Str.lower(nodeVal),
tempWordVal = Str.lower(word);
- if(tempNodeVal.indexOf(tempWordVal) !== -1){
- var pn = n.parentNode;
- if(pn && pn.className === cssClass){
- var prevSib = pn.previousSibling,
- nextSib = pn.nextSibling;
- if(!prevSib || !nextSib){ continue; }
- nextSib.nodeValue = prevSib.nodeValue + n.nodeValue +
- nextSib.nodeValue;
- prevSib.nodeValue = '';
- n.nodeValue = '';
- arrRemove.push(i);
- }
+
+ if (tempNodeVal.indexOf(tempWordVal) !== -1) {
+ n.parentNode.replaceChild(Dom.text(nodeVal), n);
}
}
- for(var k=0; k<arrRemove.length; k++){
- highlightedNodes.splice(arrRemove[k], 1);
- }
}
/**
* Clear all occurrences of highlighted nodes
*/
- unhighlightAll(){
- if(!this.tf.highlightKeywords){
+ unhighlightAll() {
+ if (!this.tf.highlightKeywords) {
return;
}
// iterate filters values to unhighlight all values
- this.tf.getFiltersValue().forEach((val)=> {
- if(Types.isArray(val)){
- val.forEach((item)=>
+ this.tf.getFiltersValue().forEach((val) => {
+ if (Types.isArray(val)) {
+ val.forEach((item) =>
this.unhighlight(item, this.highlightCssClass));
} else {
this.unhighlight(val, this.highlightCssClass);
}
});
- this.highlightedNodes = [];
}
- destroy(){
+ destroy() {
this.emitter.off(
['before-filtering', 'destroy'],
- ()=> this.unhighlightAll()
+ () => this.unhighlightAll()
);
this.emitter.off(
['highlight-keyword'],
- (tf, cell, word)=>
+ (tf, cell, word) =>
this.highlight(cell, word, this.highlightCssClass)
);
}
-}
+}
+
diff --git a/docs/file/src/modules/loader.js.html b/docs/file/src/modules/loader.js.html
index 15901389..34d7b304 100644
--- a/docs/file/src/modules/loader.js.html
+++ b/docs/file/src/modules/loader.js.html
@@ -3,7 +3,7 @@
- src/modules/loader.js | tablefilter v0.2.3 API Document
+ src/modules/loader.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/modules/noResults.js.html b/docs/file/src/modules/noResults.js.html
index ef21cb9d..7e1ff210 100644
--- a/docs/file/src/modules/noResults.js.html
+++ b/docs/file/src/modules/noResults.js.html
@@ -3,7 +3,7 @@
- src/modules/noResults.js | tablefilter v0.2.3 API Document
+ src/modules/noResults.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/modules/paging.js.html b/docs/file/src/modules/paging.js.html
index fa46853d..94015532 100644
--- a/docs/file/src/modules/paging.js.html
+++ b/docs/file/src/modules/paging.js.html
@@ -3,7 +3,7 @@
- src/modules/paging.js | tablefilter v0.2.3 API Document
+ src/modules/paging.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/modules/popupFilter.js.html b/docs/file/src/modules/popupFilter.js.html
index 34b4d38a..45705769 100644
--- a/docs/file/src/modules/popupFilter.js.html
+++ b/docs/file/src/modules/popupFilter.js.html
@@ -3,7 +3,7 @@
- src/modules/popupFilter.js | tablefilter v0.2.3 API Document
+ src/modules/popupFilter.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/modules/rowsCounter.js.html b/docs/file/src/modules/rowsCounter.js.html
index e44dd6ef..9c836fb6 100644
--- a/docs/file/src/modules/rowsCounter.js.html
+++ b/docs/file/src/modules/rowsCounter.js.html
@@ -3,7 +3,7 @@
- src/modules/rowsCounter.js | tablefilter v0.2.3 API Document
+ src/modules/rowsCounter.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/modules/state.js.html b/docs/file/src/modules/state.js.html
index db771fea..cf7defd1 100644
--- a/docs/file/src/modules/state.js.html
+++ b/docs/file/src/modules/state.js.html
@@ -3,7 +3,7 @@
- src/modules/state.js | tablefilter v0.2.3 API Document
+ src/modules/state.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/modules/statusBar.js.html b/docs/file/src/modules/statusBar.js.html
index 50f84acc..6deefb8a 100644
--- a/docs/file/src/modules/statusBar.js.html
+++ b/docs/file/src/modules/statusBar.js.html
@@ -3,7 +3,7 @@
- src/modules/statusBar.js | tablefilter v0.2.3 API Document
+ src/modules/statusBar.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/modules/store.js.html b/docs/file/src/modules/store.js.html
index f9ee9c70..a2d3ab9b 100644
--- a/docs/file/src/modules/store.js.html
+++ b/docs/file/src/modules/store.js.html
@@ -3,7 +3,7 @@
- src/modules/store.js | tablefilter v0.2.3 API Document
+ src/modules/store.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/sort.js.html b/docs/file/src/sort.js.html
index 229d197b..ef71de9a 100644
--- a/docs/file/src/sort.js.html
+++ b/docs/file/src/sort.js.html
@@ -3,7 +3,7 @@
- src/sort.js | tablefilter v0.2.3 API Document
+ src/sort.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/string.js.html b/docs/file/src/string.js.html
index 694f49f1..77530ff6 100644
--- a/docs/file/src/string.js.html
+++ b/docs/file/src/string.js.html
@@ -3,7 +3,7 @@
- src/string.js | tablefilter v0.2.3 API Document
+ src/string.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/tablefilter.js.html b/docs/file/src/tablefilter.js.html
index 5924dff1..7a2f9610 100644
--- a/docs/file/src/tablefilter.js.html
+++ b/docs/file/src/tablefilter.js.html
@@ -3,7 +3,7 @@
- src/tablefilter.js | tablefilter v0.2.3 API Document
+ src/tablefilter.js | tablefilter v0.2.4 API Document
diff --git a/docs/file/src/types.js.html b/docs/file/src/types.js.html
index 34247ce1..d2cad2db 100644
--- a/docs/file/src/types.js.html
+++ b/docs/file/src/types.js.html
@@ -3,7 +3,7 @@
- src/types.js | tablefilter v0.2.3 API Document
+ src/types.js | tablefilter v0.2.4 API Document
diff --git a/docs/identifiers.html b/docs/identifiers.html
index 550a431c..66a84212 100644
--- a/docs/identifiers.html
+++ b/docs/identifiers.html
@@ -3,7 +3,7 @@
- Index | tablefilter v0.2.3 API Document
+ Index | tablefilter v0.2.4 API Document
diff --git a/docs/index.html b/docs/index.html
index a8e84f09..cad5cd0c 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -3,7 +3,7 @@
- tablefilter v0.2.3 API Document
+ tablefilter v0.2.4 API Document
diff --git a/docs/package.json b/docs/package.json
index d9942963..2530d179 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -1,6 +1,6 @@
{
"name": "tablefilter",
- "version": "0.2.3",
+ "version": "0.2.4",
"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 64bfe1b5..59194cad 100644
--- a/docs/script/search_index.js
+++ b/docs/script/search_index.js
@@ -2309,12 +2309,6 @@ window.esdocSearchIndex = [
"src/modules/highlightKeywords.js~HighlightKeyword#highlightCssClass",
"member"
],
- [
- "src/modules/highlightkeywords.js~highlightkeyword#highlightednodes",
- "class/src/modules/highlightKeywords.js~HighlightKeyword.html#instance-member-highlightedNodes",
- "src/modules/highlightKeywords.js~HighlightKeyword#highlightedNodes",
- "member"
- ],
[
"src/modules/highlightkeywords.js~highlightkeyword#init",
"class/src/modules/highlightKeywords.js~HighlightKeyword.html#instance-method-init",
diff --git a/docs/source.html b/docs/source.html
index 7756a967..1509fee7 100644
--- a/docs/source.html
+++ b/docs/source.html
@@ -3,7 +3,7 @@
- Source | tablefilter v0.2.3 API Document
+ Source | tablefilter v0.2.4 API Document
@@ -61,7 +61,7 @@
-Source
191/738
+
Source
191/737
@@ -82,7 +82,7 @@
| - |
379 byte |
17 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/cookie.js |
@@ -90,7 +90,7 @@
- |
1455 byte |
58 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/date.js |
@@ -98,7 +98,7 @@
- |
5675 byte |
172 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/dom.js |
@@ -106,7 +106,7 @@
- |
4442 byte |
165 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/emitter.js |
@@ -114,7 +114,7 @@
83 %5/6 |
1263 byte |
50 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/event.js |
@@ -122,7 +122,7 @@
- |
1299 byte |
53 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/extensions/advancedGrid/adapterEzEditTable.js |
@@ -130,7 +130,7 @@
29 %5/17 |
17864 byte |
447 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/extensions/advancedGrid/advancedGrid.js |
@@ -138,7 +138,7 @@
- |
90 byte |
2 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/extensions/colOps/colOps.js |
@@ -146,7 +146,7 @@
22 %2/9 |
12536 byte |
323 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/extensions/colsVisibility/colsVisibility.js |
@@ -154,7 +154,7 @@
17 %10/58 |
17261 byte |
520 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/extensions/filtersVisibility/filtersVisibility.js |
@@ -162,7 +162,7 @@
15 %5/33 |
5731 byte |
184 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/extensions/sort/adapterSortabletable.js |
@@ -170,7 +170,7 @@
10 %3/28 |
13392 byte |
413 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/extensions/sort/sort.js |
@@ -178,7 +178,7 @@
- |
198 byte |
8 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/helpers.js |
@@ -186,7 +186,7 @@
- |
433 byte |
23 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/modules/alternateRows.js |
@@ -194,7 +194,7 @@
54 %6/11 |
3406 byte |
129 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/modules/checkList.js |
@@ -202,7 +202,7 @@
26 %7/26 |
16293 byte |
467 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/modules/clearButton.js |
@@ -210,7 +210,7 @@
25 %3/12 |
2613 byte |
94 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/modules/dropdown.js |
@@ -218,7 +218,7 @@
31 %6/19 |
12253 byte |
371 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/modules/feature.js |
@@ -226,7 +226,7 @@
0 %0/14 |
649 byte |
38 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/modules/gridLayout.js |
@@ -234,7 +234,7 @@
10 %3/29 |
12048 byte |
349 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/modules/hash.js |
@@ -243,7 +243,7 @@
63 %7/11 |
2628 byte |
108 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/modules/help.js |
@@ -251,15 +251,15 @@
15 %3/19 |
5369 byte |
155 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
- | src/modules/highlightKeywords.js |
+ src/modules/highlightKeywords.js |
HighlightKeyword |
- 36 %4/11 |
- 4631 byte |
- 138 |
- 2016-03-02 07:44:13 (UTC) |
+ 40 %4/10 |
+ 3998 byte |
+ 123 |
+ 2016-03-05 01:27:15 (UTC) |
| src/modules/loader.js |
@@ -267,7 +267,7 @@
6 %1/15 |
4560 byte |
157 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/modules/noResults.js |
@@ -275,7 +275,7 @@
5 %1/20 |
3673 byte |
135 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/modules/paging.js |
@@ -283,7 +283,7 @@
25 %16/64 |
26667 byte |
781 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/modules/popupFilter.js |
@@ -291,7 +291,7 @@
35 %10/28 |
8999 byte |
276 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/modules/rowsCounter.js |
@@ -299,7 +299,7 @@
5 %1/18 |
4925 byte |
148 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/modules/state.js |
@@ -307,7 +307,7 @@
42 %9/21 |
5001 byte |
193 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/modules/statusBar.js |
@@ -315,7 +315,7 @@
3 %1/29 |
7575 byte |
222 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/modules/store.js |
@@ -323,7 +323,7 @@
47 %8/17 |
3840 byte |
146 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/sort.js |
@@ -331,7 +331,7 @@
- |
295 byte |
15 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/string.js |
@@ -339,7 +339,7 @@
- |
1495 byte |
61 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/tablefilter.js |
@@ -347,7 +347,7 @@
33 %75/223 |
79051 byte |
2307 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
| src/types.js |
@@ -355,7 +355,7 @@
- |
1641 byte |
80 |
- 2016-03-02 07:44:13 (UTC) |
+ 2016-03-05 01:27:15 (UTC) |
diff --git a/docs/variable/index.html b/docs/variable/index.html
index e7f35e74..5dc74b31 100644
--- a/docs/variable/index.html
+++ b/docs/variable/index.html
@@ -3,7 +3,7 @@
-
Variable | tablefilter v0.2.3 API Document
+
Variable | tablefilter v0.2.4 API Document