diff --git a/projects/mitch-datasource-documentation/docs/ast/source/DatasourceBase.js.json b/projects/mitch-datasource-documentation/docs/ast/source/DatasourceBase.js.json index 04c213c..779c2fa 100644 --- a/projects/mitch-datasource-documentation/docs/ast/source/DatasourceBase.js.json +++ b/projects/mitch-datasource-documentation/docs/ast/source/DatasourceBase.js.json @@ -1,28 +1,28 @@ { "type": "File", "start": 0, - "end": 9585, + "end": 9620, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 389, + "line": 390, "column": 0 } }, "program": { "type": "Program", "start": 0, - "end": 9585, + "end": 9620, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 389, + "line": 390, "column": 0 } }, @@ -118,14 +118,14 @@ { "type": "Identifier", "start": 234, - "end": 9399, + "end": 9434, "loc": { "start": { "line": 11, "column": 0 }, "end": { - "line": 377, + "line": 378, "column": 1 } }, @@ -167,14 +167,14 @@ "body": { "type": "ClassBody", "start": 276, - "end": 9399, + "end": 9434, "loc": { "start": { "line": 11, "column": 42 }, "end": { - "line": 377, + "line": 378, "column": 1 } }, @@ -5452,14 +5452,14 @@ { "type": "ClassMethod", "start": 6367, - "end": 6952, + "end": 6987, "loc": { "start": { "line": 280, "column": 2 }, "end": { - "line": 304, + "line": 305, "column": 3 } }, @@ -5491,14 +5491,14 @@ "body": { "type": "BlockStatement", "start": 6382, - "end": 6952, + "end": 6987, "loc": { "start": { "line": 280, "column": 17 }, "end": { - "line": 304, + "line": 305, "column": 3 } }, @@ -5601,28 +5601,28 @@ { "type": "TryStatement", "start": 6413, - "end": 6948, + "end": 6983, "loc": { "start": { "line": 282, "column": 4 }, "end": { - "line": 303, + "line": 304, "column": 5 } }, "block": { "type": "BlockStatement", "start": 6417, - "end": 6885, + "end": 6920, "loc": { "start": { "line": 282, "column": 8 }, "end": { - "line": 300, + "line": 301, "column": 5 } }, @@ -6314,35 +6314,36 @@ { "type": "ExpressionStatement", "start": 6765, - "end": 6821, + "end": 6786, "loc": { "start": { "line": 295, "column": 6 }, "end": { - "line": 297, - "column": 9 + "line": 295, + "column": 27 } }, "expression": { - "type": "CallExpression", + "type": "AssignmentExpression", "start": 6765, - "end": 6820, + "end": 6785, "loc": { "start": { "line": 295, "column": 6 }, "end": { - "line": 297, - "column": 8 + "line": 295, + "column": 26 } }, - "callee": { + "operator": "=", + "left": { "type": "MemberExpression", "start": 6765, - "end": 6774, + "end": 6777, "loc": { "start": { "line": 295, @@ -6350,7 +6351,7 @@ }, "end": { "line": 295, - "column": 15 + "column": 18 } }, "object": { @@ -6371,7 +6372,7 @@ "property": { "type": "Identifier", "start": 6770, - "end": 6774, + "end": 6777, "loc": { "start": { "line": 295, @@ -6379,6 +6380,100 @@ }, "end": { "line": 295, + "column": 18 + }, + "identifierName": "loading" + }, + "name": "loading" + }, + "computed": false + }, + "right": { + "type": "BooleanLiteral", + "start": 6780, + "end": 6785, + "loc": { + "start": { + "line": 295, + "column": 21 + }, + "end": { + "line": 295, + "column": 26 + } + }, + "value": false + } + } + }, + { + "type": "ExpressionStatement", + "start": 6793, + "end": 6884, + "loc": { + "start": { + "line": 296, + "column": 6 + }, + "end": { + "line": 299, + "column": 9 + } + }, + "expression": { + "type": "CallExpression", + "start": 6793, + "end": 6883, + "loc": { + "start": { + "line": 296, + "column": 6 + }, + "end": { + "line": 299, + "column": 8 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6793, + "end": 6802, + "loc": { + "start": { + "line": 296, + "column": 6 + }, + "end": { + "line": 296, + "column": 15 + } + }, + "object": { + "type": "ThisExpression", + "start": 6793, + "end": 6797, + "loc": { + "start": { + "line": 296, + "column": 6 + }, + "end": { + "line": 296, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 6798, + "end": 6802, + "loc": { + "start": { + "line": 296, + "column": 11 + }, + "end": { + "line": 296, "column": 15 }, "identifierName": "emit" @@ -6390,15 +6485,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 6775, - "end": 6786, + "start": 6803, + "end": 6814, "loc": { "start": { - "line": 295, + "line": 296, "column": 16 }, "end": { - "line": 295, + "line": 296, "column": 27 } }, @@ -6410,30 +6505,30 @@ }, { "type": "ObjectExpression", - "start": 6788, - "end": 6819, + "start": 6816, + "end": 6882, "loc": { "start": { - "line": 295, + "line": 296, "column": 29 }, "end": { - "line": 297, + "line": 299, "column": 7 } }, "properties": [ { "type": "ObjectProperty", - "start": 6798, - "end": 6810, + "start": 6826, + "end": 6838, "loc": { "start": { - "line": 296, + "line": 297, "column": 8 }, "end": { - "line": 296, + "line": 297, "column": 20 } }, @@ -6442,15 +6537,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 6798, - "end": 6804, + "start": 6826, + "end": 6832, "loc": { "start": { - "line": 296, + "line": 297, "column": 8 }, "end": { - "line": 296, + "line": 297, "column": 14 }, "identifierName": "sender" @@ -6459,145 +6554,102 @@ }, "value": { "type": "ThisExpression", - "start": 6806, - "end": 6810, + "start": 6834, + "end": 6838, "loc": { "start": { - "line": 296, + "line": 297, "column": 16 }, "end": { - "line": 296, + "line": 297, "column": 20 } } } + }, + { + "type": "ObjectProperty", + "start": 6848, + "end": 6873, + "loc": { + "start": { + "line": 298, + "column": 8 + }, + "end": { + "line": 298, + "column": 33 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 6848, + "end": 6856, + "loc": { + "start": { + "line": 298, + "column": 8 + }, + "end": { + "line": 298, + "column": 16 + }, + "identifierName": "response" + }, + "name": "response" + }, + "value": { + "type": "Identifier", + "start": 6858, + "end": 6873, + "loc": { + "start": { + "line": 298, + "column": 18 + }, + "end": { + "line": 298, + "column": 33 + }, + "identifierName": "updatedResponse" + }, + "name": "updatedResponse" + } } ] } ] } }, - { - "type": "ExpressionStatement", - "start": 6828, - "end": 6849, - "loc": { - "start": { - "line": 298, - "column": 6 - }, - "end": { - "line": 298, - "column": 27 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 6828, - "end": 6848, - "loc": { - "start": { - "line": 298, - "column": 6 - }, - "end": { - "line": 298, - "column": 26 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 6828, - "end": 6840, - "loc": { - "start": { - "line": 298, - "column": 6 - }, - "end": { - "line": 298, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 6828, - "end": 6832, - "loc": { - "start": { - "line": 298, - "column": 6 - }, - "end": { - "line": 298, - "column": 10 - } - } - }, - "property": { - "type": "Identifier", - "start": 6833, - "end": 6840, - "loc": { - "start": { - "line": 298, - "column": 11 - }, - "end": { - "line": 298, - "column": 18 - }, - "identifierName": "loading" - }, - "name": "loading" - }, - "computed": false - }, - "right": { - "type": "BooleanLiteral", - "start": 6843, - "end": 6848, - "loc": { - "start": { - "line": 298, - "column": 21 - }, - "end": { - "line": 298, - "column": 26 - } - }, - "value": false - } - } - }, { "type": "ReturnStatement", - "start": 6856, - "end": 6879, + "start": 6891, + "end": 6914, "loc": { "start": { - "line": 299, + "line": 300, "column": 6 }, "end": { - "line": 299, + "line": 300, "column": 29 } }, "argument": { "type": "Identifier", - "start": 6863, - "end": 6878, + "start": 6898, + "end": 6913, "loc": { "start": { - "line": 299, + "line": 300, "column": 13 }, "end": { - "line": 299, + "line": 300, "column": 28 }, "identifierName": "updatedResponse" @@ -6610,29 +6662,29 @@ }, "handler": { "type": "CatchClause", - "start": 6886, - "end": 6948, + "start": 6921, + "end": 6983, "loc": { "start": { - "line": 300, + "line": 301, "column": 6 }, "end": { - "line": 303, + "line": 304, "column": 5 } }, "param": { "type": "Identifier", - "start": 6893, - "end": 6895, + "start": 6928, + "end": 6930, "loc": { "start": { - "line": 300, + "line": 301, "column": 13 }, "end": { - "line": 300, + "line": 301, "column": 15 }, "identifierName": "ex" @@ -6641,88 +6693,88 @@ }, "body": { "type": "BlockStatement", - "start": 6897, - "end": 6948, + "start": 6932, + "end": 6983, "loc": { "start": { - "line": 300, + "line": 301, "column": 17 }, "end": { - "line": 303, + "line": 304, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 6905, - "end": 6926, + "start": 6940, + "end": 6961, "loc": { "start": { - "line": 301, + "line": 302, "column": 6 }, "end": { - "line": 301, + "line": 302, "column": 27 } }, "expression": { "type": "AssignmentExpression", - "start": 6905, - "end": 6925, + "start": 6940, + "end": 6960, "loc": { "start": { - "line": 301, + "line": 302, "column": 6 }, "end": { - "line": 301, + "line": 302, "column": 26 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 6905, - "end": 6917, + "start": 6940, + "end": 6952, "loc": { "start": { - "line": 301, + "line": 302, "column": 6 }, "end": { - "line": 301, + "line": 302, "column": 18 } }, "object": { "type": "ThisExpression", - "start": 6905, - "end": 6909, + "start": 6940, + "end": 6944, "loc": { "start": { - "line": 301, + "line": 302, "column": 6 }, "end": { - "line": 301, + "line": 302, "column": 10 } } }, "property": { "type": "Identifier", - "start": 6910, - "end": 6917, + "start": 6945, + "end": 6952, "loc": { "start": { - "line": 301, + "line": 302, "column": 11 }, "end": { - "line": 301, + "line": 302, "column": 18 }, "identifierName": "loading" @@ -6733,15 +6785,15 @@ }, "right": { "type": "BooleanLiteral", - "start": 6920, - "end": 6925, + "start": 6955, + "end": 6960, "loc": { "start": { - "line": 301, + "line": 302, "column": 21 }, "end": { - "line": 301, + "line": 302, "column": 26 } }, @@ -6751,29 +6803,29 @@ }, { "type": "ThrowStatement", - "start": 6933, - "end": 6942, + "start": 6968, + "end": 6977, "loc": { "start": { - "line": 302, + "line": 303, "column": 6 }, "end": { - "line": 302, + "line": 303, "column": 15 } }, "argument": { "type": "Identifier", - "start": 6939, - "end": 6941, + "start": 6974, + "end": 6976, "loc": { "start": { - "line": 302, + "line": 303, "column": 12 }, "end": { - "line": 302, + "line": 303, "column": 14 }, "identifierName": "ex" @@ -6830,15 +6882,15 @@ { "type": "CommentBlock", "value": "*\n * Traverse to the specified page, and update the datasource accordingly.\n * @access public\n * @param {Number} pageNum - The new page to traverse to.\n * @return {Promise} A promise with a boolean data. True if\n * successfully traversed to specified page.\n * False otherwise.\n ", - "start": 6956, - "end": 7289, + "start": 6991, + "end": 7324, "loc": { "start": { - "line": 306, + "line": 307, "column": 2 }, "end": { - "line": 313, + "line": 314, "column": 5 } } @@ -6847,15 +6899,15 @@ }, { "type": "ClassMethod", - "start": 7292, - "end": 7471, + "start": 7327, + "end": 7506, "loc": { "start": { - "line": 314, + "line": 315, "column": 2 }, "end": { - "line": 321, + "line": 322, "column": 3 } }, @@ -6863,15 +6915,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 7298, - "end": 7306, + "start": 7333, + "end": 7341, "loc": { "start": { - "line": 314, + "line": 315, "column": 8 }, "end": { - "line": 314, + "line": 315, "column": 16 }, "identifierName": "goToPage" @@ -6886,15 +6938,15 @@ "params": [ { "type": "Identifier", - "start": 7307, - "end": 7314, + "start": 7342, + "end": 7349, "loc": { "start": { - "line": 314, + "line": 315, "column": 17 }, "end": { - "line": 314, + "line": 315, "column": 24 }, "identifierName": "pageNum" @@ -6904,72 +6956,72 @@ ], "body": { "type": "BlockStatement", - "start": 7316, - "end": 7471, + "start": 7351, + "end": 7506, "loc": { "start": { - "line": 314, + "line": 315, "column": 26 }, "end": { - "line": 321, + "line": 322, "column": 3 } }, "body": [ { "type": "IfStatement", - "start": 7322, - "end": 7449, + "start": 7357, + "end": 7484, "loc": { "start": { - "line": 315, + "line": 316, "column": 4 }, "end": { - "line": 319, + "line": 320, "column": 5 } }, "test": { "type": "LogicalExpression", - "start": 7326, - "end": 7367, + "start": 7361, + "end": 7402, "loc": { "start": { - "line": 315, + "line": 316, "column": 8 }, "end": { - "line": 315, + "line": 316, "column": 49 } }, "left": { "type": "BinaryExpression", - "start": 7326, - "end": 7337, + "start": 7361, + "end": 7372, "loc": { "start": { - "line": 315, + "line": 316, "column": 8 }, "end": { - "line": 315, + "line": 316, "column": 19 } }, "left": { "type": "Identifier", - "start": 7326, - "end": 7333, + "start": 7361, + "end": 7368, "loc": { "start": { - "line": 315, + "line": 316, "column": 8 }, "end": { - "line": 315, + "line": 316, "column": 15 }, "identifierName": "pageNum" @@ -6979,15 +7031,15 @@ "operator": ">", "right": { "type": "NumericLiteral", - "start": 7336, - "end": 7337, + "start": 7371, + "end": 7372, "loc": { "start": { - "line": 315, + "line": 316, "column": 18 }, "end": { - "line": 315, + "line": 316, "column": 19 } }, @@ -7001,29 +7053,29 @@ "operator": "&&", "right": { "type": "BinaryExpression", - "start": 7341, - "end": 7367, + "start": 7376, + "end": 7402, "loc": { "start": { - "line": 315, + "line": 316, "column": 23 }, "end": { - "line": 315, + "line": 316, "column": 49 } }, "left": { "type": "Identifier", - "start": 7341, - "end": 7348, + "start": 7376, + "end": 7383, "loc": { "start": { - "line": 315, + "line": 316, "column": 23 }, "end": { - "line": 315, + "line": 316, "column": 30 }, "identifierName": "pageNum" @@ -7033,44 +7085,44 @@ "operator": "<=", "right": { "type": "MemberExpression", - "start": 7352, - "end": 7367, + "start": 7387, + "end": 7402, "loc": { "start": { - "line": 315, + "line": 316, "column": 34 }, "end": { - "line": 315, + "line": 316, "column": 49 } }, "object": { "type": "ThisExpression", - "start": 7352, - "end": 7356, + "start": 7387, + "end": 7391, "loc": { "start": { - "line": 315, + "line": 316, "column": 34 }, "end": { - "line": 315, + "line": 316, "column": 38 } } }, "property": { "type": "Identifier", - "start": 7357, - "end": 7367, + "start": 7392, + "end": 7402, "loc": { "start": { - "line": 315, + "line": 316, "column": 39 }, "end": { - "line": 315, + "line": 316, "column": 49 }, "identifierName": "totalPages" @@ -7083,88 +7135,88 @@ }, "consequent": { "type": "BlockStatement", - "start": 7369, - "end": 7449, + "start": 7404, + "end": 7484, "loc": { "start": { - "line": 315, + "line": 316, "column": 51 }, "end": { - "line": 319, + "line": 320, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 7377, - "end": 7397, + "start": 7412, + "end": 7432, "loc": { "start": { - "line": 316, + "line": 317, "column": 6 }, "end": { - "line": 316, + "line": 317, "column": 26 } }, "expression": { "type": "AssignmentExpression", - "start": 7377, - "end": 7396, + "start": 7412, + "end": 7431, "loc": { "start": { - "line": 316, + "line": 317, "column": 6 }, "end": { - "line": 316, + "line": 317, "column": 25 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 7377, - "end": 7386, + "start": 7412, + "end": 7421, "loc": { "start": { - "line": 316, + "line": 317, "column": 6 }, "end": { - "line": 316, + "line": 317, "column": 15 } }, "object": { "type": "ThisExpression", - "start": 7377, - "end": 7381, + "start": 7412, + "end": 7416, "loc": { "start": { - "line": 316, + "line": 317, "column": 6 }, "end": { - "line": 316, + "line": 317, "column": 10 } } }, "property": { "type": "Identifier", - "start": 7382, - "end": 7386, + "start": 7417, + "end": 7421, "loc": { "start": { - "line": 316, + "line": 317, "column": 11 }, "end": { - "line": 316, + "line": 317, "column": 15 }, "identifierName": "page" @@ -7175,15 +7227,15 @@ }, "right": { "type": "Identifier", - "start": 7389, - "end": 7396, + "start": 7424, + "end": 7431, "loc": { "start": { - "line": 316, + "line": 317, "column": 18 }, "end": { - "line": 316, + "line": 317, "column": 25 }, "identifierName": "pageNum" @@ -7194,86 +7246,86 @@ }, { "type": "ExpressionStatement", - "start": 7404, - "end": 7424, + "start": 7439, + "end": 7459, "loc": { "start": { - "line": 317, + "line": 318, "column": 6 }, "end": { - "line": 317, + "line": 318, "column": 26 } }, "expression": { "type": "AwaitExpression", - "start": 7404, - "end": 7423, + "start": 7439, + "end": 7458, "loc": { "start": { - "line": 317, + "line": 318, "column": 6 }, "end": { - "line": 317, + "line": 318, "column": 25 } }, "argument": { "type": "CallExpression", - "start": 7410, - "end": 7423, + "start": 7445, + "end": 7458, "loc": { "start": { - "line": 317, + "line": 318, "column": 12 }, "end": { - "line": 317, + "line": 318, "column": 25 } }, "callee": { "type": "MemberExpression", - "start": 7410, - "end": 7421, + "start": 7445, + "end": 7456, "loc": { "start": { - "line": 317, + "line": 318, "column": 12 }, "end": { - "line": 317, + "line": 318, "column": 23 } }, "object": { "type": "ThisExpression", - "start": 7410, - "end": 7414, + "start": 7445, + "end": 7449, "loc": { "start": { - "line": 317, + "line": 318, "column": 12 }, "end": { - "line": 317, + "line": 318, "column": 16 } } }, "property": { "type": "Identifier", - "start": 7415, - "end": 7421, + "start": 7450, + "end": 7456, "loc": { "start": { - "line": 317, + "line": 318, "column": 17 }, "end": { - "line": 317, + "line": 318, "column": 23 }, "identifierName": "update" @@ -7288,29 +7340,29 @@ }, { "type": "ReturnStatement", - "start": 7431, - "end": 7443, + "start": 7466, + "end": 7478, "loc": { "start": { - "line": 318, + "line": 319, "column": 6 }, "end": { - "line": 318, + "line": 319, "column": 18 } }, "argument": { "type": "BooleanLiteral", - "start": 7438, - "end": 7442, + "start": 7473, + "end": 7477, "loc": { "start": { - "line": 318, + "line": 319, "column": 13 }, "end": { - "line": 318, + "line": 319, "column": 17 } }, @@ -7324,29 +7376,29 @@ }, { "type": "ReturnStatement", - "start": 7454, - "end": 7467, + "start": 7489, + "end": 7502, "loc": { "start": { - "line": 320, + "line": 321, "column": 4 }, "end": { - "line": 320, + "line": 321, "column": 17 } }, "argument": { "type": "BooleanLiteral", - "start": 7461, - "end": 7466, + "start": 7496, + "end": 7501, "loc": { "start": { - "line": 320, + "line": 321, "column": 11 }, "end": { - "line": 320, + "line": 321, "column": 16 } }, @@ -7361,15 +7413,15 @@ { "type": "CommentBlock", "value": "*\n * Traverse to the specified page, and update the datasource accordingly.\n * @access public\n * @param {Number} pageNum - The new page to traverse to.\n * @return {Promise} A promise with a boolean data. True if\n * successfully traversed to specified page.\n * False otherwise.\n ", - "start": 6956, - "end": 7289, + "start": 6991, + "end": 7324, "loc": { "start": { - "line": 306, + "line": 307, "column": 2 }, "end": { - "line": 313, + "line": 314, "column": 5 } } @@ -7379,15 +7431,15 @@ { "type": "CommentBlock", "value": "*\n * Traverse to the next page, and update the datasource accordingly.\n * @return {Promise} A promise with a boolean data. True if\n * successfully traversed to next page.\n * False otherwise.\n ", - "start": 7475, - "end": 7717, + "start": 7510, + "end": 7752, "loc": { "start": { - "line": 323, + "line": 324, "column": 2 }, "end": { - "line": 328, + "line": 329, "column": 5 } } @@ -7396,15 +7448,15 @@ }, { "type": "ClassMethod", - "start": 7720, - "end": 7783, + "start": 7755, + "end": 7818, "loc": { "start": { - "line": 329, + "line": 330, "column": 2 }, "end": { - "line": 331, + "line": 332, "column": 3 } }, @@ -7412,15 +7464,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 7726, - "end": 7734, + "start": 7761, + "end": 7769, "loc": { "start": { - "line": 329, + "line": 330, "column": 8 }, "end": { - "line": 329, + "line": 330, "column": 16 }, "identifierName": "nextPage" @@ -7435,87 +7487,87 @@ "params": [], "body": { "type": "BlockStatement", - "start": 7737, - "end": 7783, + "start": 7772, + "end": 7818, "loc": { "start": { - "line": 329, + "line": 330, "column": 19 }, "end": { - "line": 331, + "line": 332, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 7743, - "end": 7779, + "start": 7778, + "end": 7814, "loc": { "start": { - "line": 330, + "line": 331, "column": 4 }, "end": { - "line": 330, + "line": 331, "column": 40 } }, "argument": { "type": "CallExpression", - "start": 7750, - "end": 7778, + "start": 7785, + "end": 7813, "loc": { "start": { - "line": 330, + "line": 331, "column": 11 }, "end": { - "line": 330, + "line": 331, "column": 39 } }, "callee": { "type": "MemberExpression", - "start": 7750, - "end": 7763, + "start": 7785, + "end": 7798, "loc": { "start": { - "line": 330, + "line": 331, "column": 11 }, "end": { - "line": 330, + "line": 331, "column": 24 } }, "object": { "type": "ThisExpression", - "start": 7750, - "end": 7754, + "start": 7785, + "end": 7789, "loc": { "start": { - "line": 330, + "line": 331, "column": 11 }, "end": { - "line": 330, + "line": 331, "column": 15 } } }, "property": { "type": "Identifier", - "start": 7755, - "end": 7763, + "start": 7790, + "end": 7798, "loc": { "start": { - "line": 330, + "line": 331, "column": 16 }, "end": { - "line": 330, + "line": 331, "column": 24 }, "identifierName": "goToPage" @@ -7527,58 +7579,58 @@ "arguments": [ { "type": "BinaryExpression", - "start": 7764, - "end": 7777, + "start": 7799, + "end": 7812, "loc": { "start": { - "line": 330, + "line": 331, "column": 25 }, "end": { - "line": 330, + "line": 331, "column": 38 } }, "left": { "type": "MemberExpression", - "start": 7764, - "end": 7773, + "start": 7799, + "end": 7808, "loc": { "start": { - "line": 330, + "line": 331, "column": 25 }, "end": { - "line": 330, + "line": 331, "column": 34 } }, "object": { "type": "ThisExpression", - "start": 7764, - "end": 7768, + "start": 7799, + "end": 7803, "loc": { "start": { - "line": 330, + "line": 331, "column": 25 }, "end": { - "line": 330, + "line": 331, "column": 29 } } }, "property": { "type": "Identifier", - "start": 7769, - "end": 7773, + "start": 7804, + "end": 7808, "loc": { "start": { - "line": 330, + "line": 331, "column": 30 }, "end": { - "line": 330, + "line": 331, "column": 34 }, "identifierName": "page" @@ -7590,15 +7642,15 @@ "operator": "+", "right": { "type": "NumericLiteral", - "start": 7776, - "end": 7777, + "start": 7811, + "end": 7812, "loc": { "start": { - "line": 330, + "line": 331, "column": 37 }, "end": { - "line": 330, + "line": 331, "column": 38 } }, @@ -7620,15 +7672,15 @@ { "type": "CommentBlock", "value": "*\n * Traverse to the next page, and update the datasource accordingly.\n * @return {Promise} A promise with a boolean data. True if\n * successfully traversed to next page.\n * False otherwise.\n ", - "start": 7475, - "end": 7717, + "start": 7510, + "end": 7752, "loc": { "start": { - "line": 323, + "line": 324, "column": 2 }, "end": { - "line": 328, + "line": 329, "column": 5 } } @@ -7638,15 +7690,15 @@ { "type": "CommentBlock", "value": "*\n * Traverse to the previous page, and update the datasource accordingly.\n * @access public\n * @return {Promise} A promise with a boolean data. True if\n * successfully traversed to previous page.\n * False otherwise.\n ", - "start": 7787, - "end": 8057, + "start": 7822, + "end": 8092, "loc": { "start": { - "line": 333, + "line": 334, "column": 2 }, "end": { - "line": 339, + "line": 340, "column": 5 } } @@ -7655,15 +7707,15 @@ }, { "type": "ClassMethod", - "start": 8060, - "end": 8123, + "start": 8095, + "end": 8158, "loc": { "start": { - "line": 340, + "line": 341, "column": 2 }, "end": { - "line": 342, + "line": 343, "column": 3 } }, @@ -7671,15 +7723,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 8066, - "end": 8074, + "start": 8101, + "end": 8109, "loc": { "start": { - "line": 340, + "line": 341, "column": 8 }, "end": { - "line": 340, + "line": 341, "column": 16 }, "identifierName": "prevPage" @@ -7694,87 +7746,87 @@ "params": [], "body": { "type": "BlockStatement", - "start": 8077, - "end": 8123, + "start": 8112, + "end": 8158, "loc": { "start": { - "line": 340, + "line": 341, "column": 19 }, "end": { - "line": 342, + "line": 343, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 8083, - "end": 8119, + "start": 8118, + "end": 8154, "loc": { "start": { - "line": 341, + "line": 342, "column": 4 }, "end": { - "line": 341, + "line": 342, "column": 40 } }, "argument": { "type": "CallExpression", - "start": 8090, - "end": 8118, + "start": 8125, + "end": 8153, "loc": { "start": { - "line": 341, + "line": 342, "column": 11 }, "end": { - "line": 341, + "line": 342, "column": 39 } }, "callee": { "type": "MemberExpression", - "start": 8090, - "end": 8103, + "start": 8125, + "end": 8138, "loc": { "start": { - "line": 341, + "line": 342, "column": 11 }, "end": { - "line": 341, + "line": 342, "column": 24 } }, "object": { "type": "ThisExpression", - "start": 8090, - "end": 8094, + "start": 8125, + "end": 8129, "loc": { "start": { - "line": 341, + "line": 342, "column": 11 }, "end": { - "line": 341, + "line": 342, "column": 15 } } }, "property": { "type": "Identifier", - "start": 8095, - "end": 8103, + "start": 8130, + "end": 8138, "loc": { "start": { - "line": 341, + "line": 342, "column": 16 }, "end": { - "line": 341, + "line": 342, "column": 24 }, "identifierName": "goToPage" @@ -7786,58 +7838,58 @@ "arguments": [ { "type": "BinaryExpression", - "start": 8104, - "end": 8117, + "start": 8139, + "end": 8152, "loc": { "start": { - "line": 341, + "line": 342, "column": 25 }, "end": { - "line": 341, + "line": 342, "column": 38 } }, "left": { "type": "MemberExpression", - "start": 8104, - "end": 8113, + "start": 8139, + "end": 8148, "loc": { "start": { - "line": 341, + "line": 342, "column": 25 }, "end": { - "line": 341, + "line": 342, "column": 34 } }, "object": { "type": "ThisExpression", - "start": 8104, - "end": 8108, + "start": 8139, + "end": 8143, "loc": { "start": { - "line": 341, + "line": 342, "column": 25 }, "end": { - "line": 341, + "line": 342, "column": 29 } } }, "property": { "type": "Identifier", - "start": 8109, - "end": 8113, + "start": 8144, + "end": 8148, "loc": { "start": { - "line": 341, + "line": 342, "column": 30 }, "end": { - "line": 341, + "line": 342, "column": 34 }, "identifierName": "page" @@ -7849,15 +7901,15 @@ "operator": "-", "right": { "type": "NumericLiteral", - "start": 8116, - "end": 8117, + "start": 8151, + "end": 8152, "loc": { "start": { - "line": 341, + "line": 342, "column": 37 }, "end": { - "line": 341, + "line": 342, "column": 38 } }, @@ -7879,15 +7931,15 @@ { "type": "CommentBlock", "value": "*\n * Traverse to the previous page, and update the datasource accordingly.\n * @access public\n * @return {Promise} A promise with a boolean data. True if\n * successfully traversed to previous page.\n * False otherwise.\n ", - "start": 7787, - "end": 8057, + "start": 7822, + "end": 8092, "loc": { "start": { - "line": 333, + "line": 334, "column": 2 }, "end": { - "line": 339, + "line": 340, "column": 5 } } @@ -7897,15 +7949,15 @@ { "type": "CommentBlock", "value": "*\n * Given a search text, filters the data accordingly.\n * @access public\n * @param {String} searchArguments - The search text to filter with, or\n * the search arguments object to filter\n * with specific column filtering.\n * @return {Promise} A promise object, resolved when the search is completed.\n ", - "start": 8127, - "end": 8517, + "start": 8162, + "end": 8552, "loc": { "start": { - "line": 344, + "line": 345, "column": 2 }, "end": { - "line": 351, + "line": 352, "column": 5 } } @@ -7914,15 +7966,15 @@ }, { "type": "ClassMethod", - "start": 8520, - "end": 8816, + "start": 8555, + "end": 8851, "loc": { "start": { - "line": 352, + "line": 353, "column": 2 }, "end": { - "line": 362, + "line": 363, "column": 3 } }, @@ -7930,15 +7982,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 8526, - "end": 8532, + "start": 8561, + "end": 8567, "loc": { "start": { - "line": 352, + "line": 353, "column": 8 }, "end": { - "line": 352, + "line": 353, "column": 14 }, "identifierName": "search" @@ -7953,15 +8005,15 @@ "params": [ { "type": "Identifier", - "start": 8533, - "end": 8548, + "start": 8568, + "end": 8583, "loc": { "start": { - "line": 352, + "line": 353, "column": 15 }, "end": { - "line": 352, + "line": 353, "column": 30 }, "identifierName": "searchArguments" @@ -7971,88 +8023,88 @@ ], "body": { "type": "BlockStatement", - "start": 8550, - "end": 8816, + "start": 8585, + "end": 8851, "loc": { "start": { - "line": 352, + "line": 353, "column": 32 }, "end": { - "line": 362, + "line": 363, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 8556, - "end": 8579, + "start": 8591, + "end": 8614, "loc": { "start": { - "line": 353, + "line": 354, "column": 4 }, "end": { - "line": 353, + "line": 354, "column": 27 } }, "expression": { "type": "AssignmentExpression", - "start": 8556, - "end": 8578, + "start": 8591, + "end": 8613, "loc": { "start": { - "line": 353, + "line": 354, "column": 4 }, "end": { - "line": 353, + "line": 354, "column": 26 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 8556, - "end": 8571, + "start": 8591, + "end": 8606, "loc": { "start": { - "line": 353, + "line": 354, "column": 4 }, "end": { - "line": 353, + "line": 354, "column": 19 } }, "object": { "type": "ThisExpression", - "start": 8556, - "end": 8560, + "start": 8591, + "end": 8595, "loc": { "start": { - "line": 353, + "line": 354, "column": 4 }, "end": { - "line": 353, + "line": 354, "column": 8 } } }, "property": { "type": "Identifier", - "start": 8561, - "end": 8571, + "start": 8596, + "end": 8606, "loc": { "start": { - "line": 353, + "line": 354, "column": 9 }, "end": { - "line": 353, + "line": 354, "column": 19 }, "identifierName": "searchText" @@ -8063,15 +8115,15 @@ }, "right": { "type": "NullLiteral", - "start": 8574, - "end": 8578, + "start": 8609, + "end": 8613, "loc": { "start": { - "line": 353, + "line": 354, "column": 22 }, "end": { - "line": 353, + "line": 354, "column": 26 } } @@ -8080,73 +8132,73 @@ }, { "type": "ExpressionStatement", - "start": 8584, - "end": 8612, + "start": 8619, + "end": 8647, "loc": { "start": { - "line": 354, + "line": 355, "column": 4 }, "end": { - "line": 354, + "line": 355, "column": 32 } }, "expression": { "type": "AssignmentExpression", - "start": 8584, - "end": 8611, + "start": 8619, + "end": 8646, "loc": { "start": { - "line": 354, + "line": 355, "column": 4 }, "end": { - "line": 354, + "line": 355, "column": 31 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 8584, - "end": 8604, + "start": 8619, + "end": 8639, "loc": { "start": { - "line": 354, + "line": 355, "column": 4 }, "end": { - "line": 354, + "line": 355, "column": 24 } }, "object": { "type": "ThisExpression", - "start": 8584, - "end": 8588, + "start": 8619, + "end": 8623, "loc": { "start": { - "line": 354, + "line": 355, "column": 4 }, "end": { - "line": 354, + "line": 355, "column": 8 } } }, "property": { "type": "Identifier", - "start": 8589, - "end": 8604, + "start": 8624, + "end": 8639, "loc": { "start": { - "line": 354, + "line": 355, "column": 9 }, "end": { - "line": 354, + "line": 355, "column": 24 }, "identifierName": "searchArguments" @@ -8157,15 +8209,15 @@ }, "right": { "type": "NullLiteral", - "start": 8607, - "end": 8611, + "start": 8642, + "end": 8646, "loc": { "start": { - "line": 354, + "line": 355, "column": 27 }, "end": { - "line": 354, + "line": 355, "column": 31 } } @@ -8174,43 +8226,43 @@ }, { "type": "IfStatement", - "start": 8617, - "end": 8765, + "start": 8652, + "end": 8800, "loc": { "start": { - "line": 355, + "line": 356, "column": 4 }, "end": { - "line": 359, + "line": 360, "column": 5 } }, "test": { "type": "BinaryExpression", - "start": 8621, - "end": 8656, + "start": 8656, + "end": 8691, "loc": { "start": { - "line": 355, + "line": 356, "column": 8 }, "end": { - "line": 355, + "line": 356, "column": 43 } }, "left": { "type": "UnaryExpression", - "start": 8621, - "end": 8643, + "start": 8656, + "end": 8678, "loc": { "start": { - "line": 355, + "line": 356, "column": 8 }, "end": { - "line": 355, + "line": 356, "column": 30 } }, @@ -8218,15 +8270,15 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 8628, - "end": 8643, + "start": 8663, + "end": 8678, "loc": { "start": { - "line": 355, + "line": 356, "column": 15 }, "end": { - "line": 355, + "line": 356, "column": 30 }, "identifierName": "searchArguments" @@ -8240,15 +8292,15 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 8648, - "end": 8656, + "start": 8683, + "end": 8691, "loc": { "start": { - "line": 355, + "line": 356, "column": 35 }, "end": { - "line": 355, + "line": 356, "column": 43 } }, @@ -8261,88 +8313,88 @@ }, "consequent": { "type": "BlockStatement", - "start": 8658, - "end": 8706, + "start": 8693, + "end": 8741, "loc": { "start": { - "line": 355, + "line": 356, "column": 45 }, "end": { - "line": 357, + "line": 358, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 8666, - "end": 8700, + "start": 8701, + "end": 8735, "loc": { "start": { - "line": 356, + "line": 357, "column": 6 }, "end": { - "line": 356, + "line": 357, "column": 40 } }, "expression": { "type": "AssignmentExpression", - "start": 8666, - "end": 8699, + "start": 8701, + "end": 8734, "loc": { "start": { - "line": 356, + "line": 357, "column": 6 }, "end": { - "line": 356, + "line": 357, "column": 39 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 8666, - "end": 8681, + "start": 8701, + "end": 8716, "loc": { "start": { - "line": 356, + "line": 357, "column": 6 }, "end": { - "line": 356, + "line": 357, "column": 21 } }, "object": { "type": "ThisExpression", - "start": 8666, - "end": 8670, + "start": 8701, + "end": 8705, "loc": { "start": { - "line": 356, + "line": 357, "column": 6 }, "end": { - "line": 356, + "line": 357, "column": 10 } } }, "property": { "type": "Identifier", - "start": 8671, - "end": 8681, + "start": 8706, + "end": 8716, "loc": { "start": { - "line": 356, + "line": 357, "column": 11 }, "end": { - "line": 356, + "line": 357, "column": 21 }, "identifierName": "searchText" @@ -8353,15 +8405,15 @@ }, "right": { "type": "Identifier", - "start": 8684, - "end": 8699, + "start": 8719, + "end": 8734, "loc": { "start": { - "line": 356, + "line": 357, "column": 24 }, "end": { - "line": 356, + "line": 357, "column": 39 }, "identifierName": "searchArguments" @@ -8375,88 +8427,88 @@ }, "alternate": { "type": "BlockStatement", - "start": 8712, - "end": 8765, + "start": 8747, + "end": 8800, "loc": { "start": { - "line": 357, + "line": 358, "column": 11 }, "end": { - "line": 359, + "line": 360, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 8720, - "end": 8759, + "start": 8755, + "end": 8794, "loc": { "start": { - "line": 358, + "line": 359, "column": 6 }, "end": { - "line": 358, + "line": 359, "column": 45 } }, "expression": { "type": "AssignmentExpression", - "start": 8720, - "end": 8758, + "start": 8755, + "end": 8793, "loc": { "start": { - "line": 358, + "line": 359, "column": 6 }, "end": { - "line": 358, + "line": 359, "column": 44 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 8720, - "end": 8740, + "start": 8755, + "end": 8775, "loc": { "start": { - "line": 358, + "line": 359, "column": 6 }, "end": { - "line": 358, + "line": 359, "column": 26 } }, "object": { "type": "ThisExpression", - "start": 8720, - "end": 8724, + "start": 8755, + "end": 8759, "loc": { "start": { - "line": 358, + "line": 359, "column": 6 }, "end": { - "line": 358, + "line": 359, "column": 10 } } }, "property": { "type": "Identifier", - "start": 8725, - "end": 8740, + "start": 8760, + "end": 8775, "loc": { "start": { - "line": 358, + "line": 359, "column": 11 }, "end": { - "line": 358, + "line": 359, "column": 26 }, "identifierName": "searchArguments" @@ -8467,15 +8519,15 @@ }, "right": { "type": "Identifier", - "start": 8743, - "end": 8758, + "start": 8778, + "end": 8793, "loc": { "start": { - "line": 358, + "line": 359, "column": 29 }, "end": { - "line": 358, + "line": 359, "column": 44 }, "identifierName": "searchArguments" @@ -8490,73 +8542,73 @@ }, { "type": "ExpressionStatement", - "start": 8770, - "end": 8786, + "start": 8805, + "end": 8821, "loc": { "start": { - "line": 360, + "line": 361, "column": 4 }, "end": { - "line": 360, + "line": 361, "column": 20 } }, "expression": { "type": "AssignmentExpression", - "start": 8770, - "end": 8785, + "start": 8805, + "end": 8820, "loc": { "start": { - "line": 360, + "line": 361, "column": 4 }, "end": { - "line": 360, + "line": 361, "column": 19 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 8770, - "end": 8781, + "start": 8805, + "end": 8816, "loc": { "start": { - "line": 360, + "line": 361, "column": 4 }, "end": { - "line": 360, + "line": 361, "column": 15 } }, "object": { "type": "ThisExpression", - "start": 8770, - "end": 8774, + "start": 8805, + "end": 8809, "loc": { "start": { - "line": 360, + "line": 361, "column": 4 }, "end": { - "line": 360, + "line": 361, "column": 8 } } }, "property": { "type": "Identifier", - "start": 8775, - "end": 8781, + "start": 8810, + "end": 8816, "loc": { "start": { - "line": 360, + "line": 361, "column": 9 }, "end": { - "line": 360, + "line": 361, "column": 15 }, "identifierName": "offset" @@ -8567,15 +8619,15 @@ }, "right": { "type": "NumericLiteral", - "start": 8784, - "end": 8785, + "start": 8819, + "end": 8820, "loc": { "start": { - "line": 360, + "line": 361, "column": 18 }, "end": { - "line": 360, + "line": 361, "column": 19 } }, @@ -8589,72 +8641,72 @@ }, { "type": "ReturnStatement", - "start": 8791, - "end": 8812, + "start": 8826, + "end": 8847, "loc": { "start": { - "line": 361, + "line": 362, "column": 4 }, "end": { - "line": 361, + "line": 362, "column": 25 } }, "argument": { "type": "CallExpression", - "start": 8798, - "end": 8811, + "start": 8833, + "end": 8846, "loc": { "start": { - "line": 361, + "line": 362, "column": 11 }, "end": { - "line": 361, + "line": 362, "column": 24 } }, "callee": { "type": "MemberExpression", - "start": 8798, - "end": 8809, + "start": 8833, + "end": 8844, "loc": { "start": { - "line": 361, + "line": 362, "column": 11 }, "end": { - "line": 361, + "line": 362, "column": 22 } }, "object": { "type": "ThisExpression", - "start": 8798, - "end": 8802, + "start": 8833, + "end": 8837, "loc": { "start": { - "line": 361, + "line": 362, "column": 11 }, "end": { - "line": 361, + "line": 362, "column": 15 } } }, "property": { "type": "Identifier", - "start": 8803, - "end": 8809, + "start": 8838, + "end": 8844, "loc": { "start": { - "line": 361, + "line": 362, "column": 16 }, "end": { - "line": 361, + "line": 362, "column": 22 }, "identifierName": "update" @@ -8674,15 +8726,15 @@ { "type": "CommentBlock", "value": "*\n * Given a search text, filters the data accordingly.\n * @access public\n * @param {String} searchArguments - The search text to filter with, or\n * the search arguments object to filter\n * with specific column filtering.\n * @return {Promise} A promise object, resolved when the search is completed.\n ", - "start": 8127, - "end": 8517, + "start": 8162, + "end": 8552, "loc": { "start": { - "line": 344, + "line": 345, "column": 2 }, "end": { - "line": 351, + "line": 352, "column": 5 } } @@ -8692,15 +8744,15 @@ { "type": "CommentBlock", "value": "*\n * Sort the data based on a field and direction.\n * @access public\n * @param {Object} sortArguments - Object with keys as the field names to sort.\n * The values of the object is the sort direction.\n * The sort direction can be 'asc', 'ascend', 'desc',\n * 'descending'\n * @return {Promise} A promise object, resolved when the sorting is completed.\n ", - "start": 8820, - "end": 9290, + "start": 8855, + "end": 9325, "loc": { "start": { - "line": 364, + "line": 365, "column": 2 }, "end": { - "line": 372, + "line": 373, "column": 5 } } @@ -8709,15 +8761,15 @@ }, { "type": "ClassMethod", - "start": 9293, - "end": 9397, + "start": 9328, + "end": 9432, "loc": { "start": { - "line": 373, + "line": 374, "column": 2 }, "end": { - "line": 376, + "line": 377, "column": 3 } }, @@ -8725,15 +8777,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 9299, - "end": 9303, + "start": 9334, + "end": 9338, "loc": { "start": { - "line": 373, + "line": 374, "column": 8 }, "end": { - "line": 373, + "line": 374, "column": 12 }, "identifierName": "sort" @@ -8748,29 +8800,29 @@ "params": [ { "type": "AssignmentPattern", - "start": 9304, - "end": 9324, + "start": 9339, + "end": 9359, "loc": { "start": { - "line": 373, + "line": 374, "column": 13 }, "end": { - "line": 373, + "line": 374, "column": 33 } }, "left": { "type": "Identifier", - "start": 9304, - "end": 9317, + "start": 9339, + "end": 9352, "loc": { "start": { - "line": 373, + "line": 374, "column": 13 }, "end": { - "line": 373, + "line": 374, "column": 26 }, "identifierName": "sortArguments" @@ -8779,15 +8831,15 @@ }, "right": { "type": "NullLiteral", - "start": 9320, - "end": 9324, + "start": 9355, + "end": 9359, "loc": { "start": { - "line": 373, + "line": 374, "column": 29 }, "end": { - "line": 373, + "line": 374, "column": 33 } } @@ -8796,88 +8848,88 @@ ], "body": { "type": "BlockStatement", - "start": 9326, - "end": 9397, + "start": 9361, + "end": 9432, "loc": { "start": { - "line": 373, + "line": 374, "column": 35 }, "end": { - "line": 376, + "line": 377, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 9332, - "end": 9367, + "start": 9367, + "end": 9402, "loc": { "start": { - "line": 374, + "line": 375, "column": 4 }, "end": { - "line": 374, + "line": 375, "column": 39 } }, "expression": { "type": "AssignmentExpression", - "start": 9332, - "end": 9366, + "start": 9367, + "end": 9401, "loc": { "start": { - "line": 374, + "line": 375, "column": 4 }, "end": { - "line": 374, + "line": 375, "column": 38 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 9332, - "end": 9350, + "start": 9367, + "end": 9385, "loc": { "start": { - "line": 374, + "line": 375, "column": 4 }, "end": { - "line": 374, + "line": 375, "column": 22 } }, "object": { "type": "ThisExpression", - "start": 9332, - "end": 9336, + "start": 9367, + "end": 9371, "loc": { "start": { - "line": 374, + "line": 375, "column": 4 }, "end": { - "line": 374, + "line": 375, "column": 8 } } }, "property": { "type": "Identifier", - "start": 9337, - "end": 9350, + "start": 9372, + "end": 9385, "loc": { "start": { - "line": 374, + "line": 375, "column": 9 }, "end": { - "line": 374, + "line": 375, "column": 22 }, "identifierName": "sortArguments" @@ -8888,15 +8940,15 @@ }, "right": { "type": "Identifier", - "start": 9353, - "end": 9366, + "start": 9388, + "end": 9401, "loc": { "start": { - "line": 374, + "line": 375, "column": 25 }, "end": { - "line": 374, + "line": 375, "column": 38 }, "identifierName": "sortArguments" @@ -8907,72 +8959,72 @@ }, { "type": "ReturnStatement", - "start": 9372, - "end": 9393, + "start": 9407, + "end": 9428, "loc": { "start": { - "line": 375, + "line": 376, "column": 4 }, "end": { - "line": 375, + "line": 376, "column": 25 } }, "argument": { "type": "CallExpression", - "start": 9379, - "end": 9392, + "start": 9414, + "end": 9427, "loc": { "start": { - "line": 375, + "line": 376, "column": 11 }, "end": { - "line": 375, + "line": 376, "column": 24 } }, "callee": { "type": "MemberExpression", - "start": 9379, - "end": 9390, + "start": 9414, + "end": 9425, "loc": { "start": { - "line": 375, + "line": 376, "column": 11 }, "end": { - "line": 375, + "line": 376, "column": 22 } }, "object": { "type": "ThisExpression", - "start": 9379, - "end": 9383, + "start": 9414, + "end": 9418, "loc": { "start": { - "line": 375, + "line": 376, "column": 11 }, "end": { - "line": 375, + "line": 376, "column": 15 } } }, "property": { "type": "Identifier", - "start": 9384, - "end": 9390, + "start": 9419, + "end": 9425, "loc": { "start": { - "line": 375, + "line": 376, "column": 16 }, "end": { - "line": 375, + "line": 376, "column": 22 }, "identifierName": "update" @@ -8991,15 +9043,15 @@ { "type": "CommentBlock", "value": "*\n * Sort the data based on a field and direction.\n * @access public\n * @param {Object} sortArguments - Object with keys as the field names to sort.\n * The values of the object is the sort direction.\n * The sort direction can be 'asc', 'ascend', 'desc',\n * 'descending'\n * @return {Promise} A promise object, resolved when the sorting is completed.\n ", - "start": 8820, - "end": 9290, + "start": 8855, + "end": 9325, "loc": { "start": { - "line": 364, + "line": 365, "column": 2 }, "end": { - "line": 372, + "line": 373, "column": 5 } } @@ -9014,72 +9066,72 @@ }, { "type": "ExpressionStatement", - "start": 9401, - "end": 9552, + "start": 9436, + "end": 9587, "loc": { "start": { - "line": 379, + "line": 380, "column": 0 }, "end": { - "line": 386, + "line": 387, "column": 2 } }, "expression": { "type": "AssignmentExpression", - "start": 9401, - "end": 9551, + "start": 9436, + "end": 9586, "loc": { "start": { - "line": 379, + "line": 380, "column": 0 }, "end": { - "line": 386, + "line": 387, "column": 1 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 9401, - "end": 9434, + "start": 9436, + "end": 9469, "loc": { "start": { - "line": 379, + "line": 380, "column": 0 }, "end": { - "line": 379, + "line": 380, "column": 33 } }, "object": { "type": "MemberExpression", - "start": 9401, - "end": 9425, + "start": 9436, + "end": 9460, "loc": { "start": { - "line": 379, + "line": 380, "column": 0 }, "end": { - "line": 379, + "line": 380, "column": 24 } }, "object": { "type": "Identifier", - "start": 9401, - "end": 9415, + "start": 9436, + "end": 9450, "loc": { "start": { - "line": 379, + "line": 380, "column": 0 }, "end": { - "line": 379, + "line": 380, "column": 14 }, "identifierName": "DatasourceBase" @@ -9088,15 +9140,15 @@ }, "property": { "type": "Identifier", - "start": 9416, - "end": 9425, + "start": 9451, + "end": 9460, "loc": { "start": { - "line": 379, + "line": 380, "column": 15 }, "end": { - "line": 379, + "line": 380, "column": 24 }, "identifierName": "prototype" @@ -9107,15 +9159,15 @@ }, "property": { "type": "Identifier", - "start": 9426, - "end": 9434, + "start": 9461, + "end": 9469, "loc": { "start": { - "line": 379, + "line": 380, "column": 25 }, "end": { - "line": 379, + "line": 380, "column": 33 }, "identifierName": "defaults" @@ -9126,30 +9178,30 @@ }, "right": { "type": "ObjectExpression", - "start": 9437, - "end": 9551, + "start": 9472, + "end": 9586, "loc": { "start": { - "line": 379, + "line": 380, "column": 36 }, "end": { - "line": 386, + "line": 387, "column": 1 } }, "properties": [ { "type": "ObjectProperty", - "start": 9441, - "end": 9455, + "start": 9476, + "end": 9490, "loc": { "start": { - "line": 380, + "line": 381, "column": 2 }, "end": { - "line": 380, + "line": 381, "column": 16 } }, @@ -9158,15 +9210,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 9441, - "end": 9448, + "start": 9476, + "end": 9483, "loc": { "start": { - "line": 380, + "line": 381, "column": 2 }, "end": { - "line": 380, + "line": 381, "column": 9 }, "identifierName": "loading" @@ -9175,15 +9227,15 @@ }, "value": { "type": "BooleanLiteral", - "start": 9450, - "end": 9455, + "start": 9485, + "end": 9490, "loc": { "start": { - "line": 380, + "line": 381, "column": 11 }, "end": { - "line": 380, + "line": 381, "column": 16 } }, @@ -9192,15 +9244,15 @@ }, { "type": "ObjectProperty", - "start": 9459, - "end": 9468, + "start": 9494, + "end": 9503, "loc": { "start": { - "line": 381, + "line": 382, "column": 2 }, "end": { - "line": 381, + "line": 382, "column": 11 } }, @@ -9209,15 +9261,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 9459, - "end": 9465, + "start": 9494, + "end": 9500, "loc": { "start": { - "line": 381, + "line": 382, "column": 2 }, "end": { - "line": 381, + "line": 382, "column": 8 }, "identifierName": "offset" @@ -9226,15 +9278,15 @@ }, "value": { "type": "NumericLiteral", - "start": 9467, - "end": 9468, + "start": 9502, + "end": 9503, "loc": { "start": { - "line": 381, + "line": 382, "column": 10 }, "end": { - "line": 381, + "line": 382, "column": 11 } }, @@ -9247,15 +9299,15 @@ }, { "type": "ObjectProperty", - "start": 9472, - "end": 9480, + "start": 9507, + "end": 9515, "loc": { "start": { - "line": 382, + "line": 383, "column": 2 }, "end": { - "line": 382, + "line": 383, "column": 10 } }, @@ -9264,15 +9316,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 9472, - "end": 9476, + "start": 9507, + "end": 9511, "loc": { "start": { - "line": 382, + "line": 383, "column": 2 }, "end": { - "line": 382, + "line": 383, "column": 6 }, "identifierName": "size" @@ -9281,15 +9333,15 @@ }, "value": { "type": "NumericLiteral", - "start": 9478, - "end": 9480, + "start": 9513, + "end": 9515, "loc": { "start": { - "line": 382, + "line": 383, "column": 8 }, "end": { - "line": 382, + "line": 383, "column": 10 } }, @@ -9302,15 +9354,15 @@ }, { "type": "ObjectProperty", - "start": 9484, - "end": 9500, + "start": 9519, + "end": 9535, "loc": { "start": { - "line": 383, + "line": 384, "column": 2 }, "end": { - "line": 383, + "line": 384, "column": 18 } }, @@ -9319,15 +9371,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 9484, - "end": 9494, + "start": 9519, + "end": 9529, "loc": { "start": { - "line": 383, + "line": 384, "column": 2 }, "end": { - "line": 383, + "line": 384, "column": 12 }, "identifierName": "searchText" @@ -9336,15 +9388,15 @@ }, "value": { "type": "NullLiteral", - "start": 9496, - "end": 9500, + "start": 9531, + "end": 9535, "loc": { "start": { - "line": 383, + "line": 384, "column": 14 }, "end": { - "line": 383, + "line": 384, "column": 18 } } @@ -9352,15 +9404,15 @@ }, { "type": "ObjectProperty", - "start": 9504, - "end": 9525, + "start": 9539, + "end": 9560, "loc": { "start": { - "line": 384, + "line": 385, "column": 2 }, "end": { - "line": 384, + "line": 385, "column": 23 } }, @@ -9369,15 +9421,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 9504, - "end": 9519, + "start": 9539, + "end": 9554, "loc": { "start": { - "line": 384, + "line": 385, "column": 2 }, "end": { - "line": 384, + "line": 385, "column": 17 }, "identifierName": "searchArguments" @@ -9386,15 +9438,15 @@ }, "value": { "type": "NullLiteral", - "start": 9521, - "end": 9525, + "start": 9556, + "end": 9560, "loc": { "start": { - "line": 384, + "line": 385, "column": 19 }, "end": { - "line": 384, + "line": 385, "column": 23 } } @@ -9402,15 +9454,15 @@ }, { "type": "ObjectProperty", - "start": 9529, - "end": 9548, + "start": 9564, + "end": 9583, "loc": { "start": { - "line": 385, + "line": 386, "column": 2 }, "end": { - "line": 385, + "line": 386, "column": 21 } }, @@ -9419,15 +9471,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 9529, - "end": 9542, + "start": 9564, + "end": 9577, "loc": { "start": { - "line": 385, + "line": 386, "column": 2 }, "end": { - "line": 385, + "line": 386, "column": 15 }, "identifierName": "sortArguments" @@ -9436,15 +9488,15 @@ }, "value": { "type": "NullLiteral", - "start": 9544, - "end": 9548, + "start": 9579, + "end": 9583, "loc": { "start": { - "line": 385, + "line": 386, "column": 17 }, "end": { - "line": 385, + "line": 386, "column": 21 } } @@ -9456,29 +9508,29 @@ }, { "type": "Identifier", - "start": 9554, - "end": 9584, + "start": 9589, + "end": 9619, "loc": { "start": { - "line": 388, + "line": 389, "column": 0 }, "end": { - "line": 388, + "line": 389, "column": 30 } }, "declaration": { "type": "Identifier", - "start": 9569, - "end": 9583, + "start": 9604, + "end": 9618, "loc": { "start": { - "line": 388, + "line": 389, "column": 15 }, "end": { - "line": 388, + "line": 389, "column": 29 }, "identifierName": "DatasourceBase" @@ -9491,29 +9543,29 @@ }, { "type": "ExportDefaultDeclaration", - "start": 9554, - "end": 9584, + "start": 9589, + "end": 9619, "loc": { "start": { - "line": 388, + "line": 389, "column": 0 }, "end": { - "line": 388, + "line": 389, "column": 30 } }, "declaration": { "type": "ClassDeclaration", "start": 234, - "end": 9399, + "end": 9434, "loc": { "start": { "line": 11, "column": 0 }, "end": { - "line": 377, + "line": 378, "column": 1 } }, @@ -9555,14 +9607,14 @@ "body": { "type": "ClassBody", "start": 276, - "end": 9399, + "end": 9434, "loc": { "start": { "line": 11, "column": 42 }, "end": { - "line": 377, + "line": 378, "column": 1 } }, @@ -14840,14 +14892,14 @@ { "type": "ClassMethod", "start": 6367, - "end": 6952, + "end": 6987, "loc": { "start": { "line": 280, "column": 2 }, "end": { - "line": 304, + "line": 305, "column": 3 } }, @@ -14879,14 +14931,14 @@ "body": { "type": "BlockStatement", "start": 6382, - "end": 6952, + "end": 6987, "loc": { "start": { "line": 280, "column": 17 }, "end": { - "line": 304, + "line": 305, "column": 3 } }, @@ -14989,28 +15041,28 @@ { "type": "TryStatement", "start": 6413, - "end": 6948, + "end": 6983, "loc": { "start": { "line": 282, "column": 4 }, "end": { - "line": 303, + "line": 304, "column": 5 } }, "block": { "type": "BlockStatement", "start": 6417, - "end": 6885, + "end": 6920, "loc": { "start": { "line": 282, "column": 8 }, "end": { - "line": 300, + "line": 301, "column": 5 } }, @@ -15702,35 +15754,36 @@ { "type": "ExpressionStatement", "start": 6765, - "end": 6821, + "end": 6786, "loc": { "start": { "line": 295, "column": 6 }, "end": { - "line": 297, - "column": 9 + "line": 295, + "column": 27 } }, "expression": { - "type": "CallExpression", + "type": "AssignmentExpression", "start": 6765, - "end": 6820, + "end": 6785, "loc": { "start": { "line": 295, "column": 6 }, "end": { - "line": 297, - "column": 8 + "line": 295, + "column": 26 } }, - "callee": { + "operator": "=", + "left": { "type": "MemberExpression", "start": 6765, - "end": 6774, + "end": 6777, "loc": { "start": { "line": 295, @@ -15738,7 +15791,7 @@ }, "end": { "line": 295, - "column": 15 + "column": 18 } }, "object": { @@ -15759,7 +15812,7 @@ "property": { "type": "Identifier", "start": 6770, - "end": 6774, + "end": 6777, "loc": { "start": { "line": 295, @@ -15767,6 +15820,100 @@ }, "end": { "line": 295, + "column": 18 + }, + "identifierName": "loading" + }, + "name": "loading" + }, + "computed": false + }, + "right": { + "type": "BooleanLiteral", + "start": 6780, + "end": 6785, + "loc": { + "start": { + "line": 295, + "column": 21 + }, + "end": { + "line": 295, + "column": 26 + } + }, + "value": false + } + } + }, + { + "type": "ExpressionStatement", + "start": 6793, + "end": 6884, + "loc": { + "start": { + "line": 296, + "column": 6 + }, + "end": { + "line": 299, + "column": 9 + } + }, + "expression": { + "type": "CallExpression", + "start": 6793, + "end": 6883, + "loc": { + "start": { + "line": 296, + "column": 6 + }, + "end": { + "line": 299, + "column": 8 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6793, + "end": 6802, + "loc": { + "start": { + "line": 296, + "column": 6 + }, + "end": { + "line": 296, + "column": 15 + } + }, + "object": { + "type": "ThisExpression", + "start": 6793, + "end": 6797, + "loc": { + "start": { + "line": 296, + "column": 6 + }, + "end": { + "line": 296, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 6798, + "end": 6802, + "loc": { + "start": { + "line": 296, + "column": 11 + }, + "end": { + "line": 296, "column": 15 }, "identifierName": "emit" @@ -15778,15 +15925,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 6775, - "end": 6786, + "start": 6803, + "end": 6814, "loc": { "start": { - "line": 295, + "line": 296, "column": 16 }, "end": { - "line": 295, + "line": 296, "column": 27 } }, @@ -15798,30 +15945,30 @@ }, { "type": "ObjectExpression", - "start": 6788, - "end": 6819, + "start": 6816, + "end": 6882, "loc": { "start": { - "line": 295, + "line": 296, "column": 29 }, "end": { - "line": 297, + "line": 299, "column": 7 } }, "properties": [ { "type": "ObjectProperty", - "start": 6798, - "end": 6810, + "start": 6826, + "end": 6838, "loc": { "start": { - "line": 296, + "line": 297, "column": 8 }, "end": { - "line": 296, + "line": 297, "column": 20 } }, @@ -15830,15 +15977,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 6798, - "end": 6804, + "start": 6826, + "end": 6832, "loc": { "start": { - "line": 296, + "line": 297, "column": 8 }, "end": { - "line": 296, + "line": 297, "column": 14 }, "identifierName": "sender" @@ -15847,145 +15994,102 @@ }, "value": { "type": "ThisExpression", - "start": 6806, - "end": 6810, + "start": 6834, + "end": 6838, "loc": { "start": { - "line": 296, + "line": 297, "column": 16 }, "end": { - "line": 296, + "line": 297, "column": 20 } } } + }, + { + "type": "ObjectProperty", + "start": 6848, + "end": 6873, + "loc": { + "start": { + "line": 298, + "column": 8 + }, + "end": { + "line": 298, + "column": 33 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 6848, + "end": 6856, + "loc": { + "start": { + "line": 298, + "column": 8 + }, + "end": { + "line": 298, + "column": 16 + }, + "identifierName": "response" + }, + "name": "response" + }, + "value": { + "type": "Identifier", + "start": 6858, + "end": 6873, + "loc": { + "start": { + "line": 298, + "column": 18 + }, + "end": { + "line": 298, + "column": 33 + }, + "identifierName": "updatedResponse" + }, + "name": "updatedResponse" + } } ] } ] } }, - { - "type": "ExpressionStatement", - "start": 6828, - "end": 6849, - "loc": { - "start": { - "line": 298, - "column": 6 - }, - "end": { - "line": 298, - "column": 27 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 6828, - "end": 6848, - "loc": { - "start": { - "line": 298, - "column": 6 - }, - "end": { - "line": 298, - "column": 26 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 6828, - "end": 6840, - "loc": { - "start": { - "line": 298, - "column": 6 - }, - "end": { - "line": 298, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 6828, - "end": 6832, - "loc": { - "start": { - "line": 298, - "column": 6 - }, - "end": { - "line": 298, - "column": 10 - } - } - }, - "property": { - "type": "Identifier", - "start": 6833, - "end": 6840, - "loc": { - "start": { - "line": 298, - "column": 11 - }, - "end": { - "line": 298, - "column": 18 - }, - "identifierName": "loading" - }, - "name": "loading" - }, - "computed": false - }, - "right": { - "type": "BooleanLiteral", - "start": 6843, - "end": 6848, - "loc": { - "start": { - "line": 298, - "column": 21 - }, - "end": { - "line": 298, - "column": 26 - } - }, - "value": false - } - } - }, { "type": "ReturnStatement", - "start": 6856, - "end": 6879, + "start": 6891, + "end": 6914, "loc": { "start": { - "line": 299, + "line": 300, "column": 6 }, "end": { - "line": 299, + "line": 300, "column": 29 } }, "argument": { "type": "Identifier", - "start": 6863, - "end": 6878, + "start": 6898, + "end": 6913, "loc": { "start": { - "line": 299, + "line": 300, "column": 13 }, "end": { - "line": 299, + "line": 300, "column": 28 }, "identifierName": "updatedResponse" @@ -15998,29 +16102,29 @@ }, "handler": { "type": "CatchClause", - "start": 6886, - "end": 6948, + "start": 6921, + "end": 6983, "loc": { "start": { - "line": 300, + "line": 301, "column": 6 }, "end": { - "line": 303, + "line": 304, "column": 5 } }, "param": { "type": "Identifier", - "start": 6893, - "end": 6895, + "start": 6928, + "end": 6930, "loc": { "start": { - "line": 300, + "line": 301, "column": 13 }, "end": { - "line": 300, + "line": 301, "column": 15 }, "identifierName": "ex" @@ -16029,88 +16133,88 @@ }, "body": { "type": "BlockStatement", - "start": 6897, - "end": 6948, + "start": 6932, + "end": 6983, "loc": { "start": { - "line": 300, + "line": 301, "column": 17 }, "end": { - "line": 303, + "line": 304, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 6905, - "end": 6926, + "start": 6940, + "end": 6961, "loc": { "start": { - "line": 301, + "line": 302, "column": 6 }, "end": { - "line": 301, + "line": 302, "column": 27 } }, "expression": { "type": "AssignmentExpression", - "start": 6905, - "end": 6925, + "start": 6940, + "end": 6960, "loc": { "start": { - "line": 301, + "line": 302, "column": 6 }, "end": { - "line": 301, + "line": 302, "column": 26 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 6905, - "end": 6917, + "start": 6940, + "end": 6952, "loc": { "start": { - "line": 301, + "line": 302, "column": 6 }, "end": { - "line": 301, + "line": 302, "column": 18 } }, "object": { "type": "ThisExpression", - "start": 6905, - "end": 6909, + "start": 6940, + "end": 6944, "loc": { "start": { - "line": 301, + "line": 302, "column": 6 }, "end": { - "line": 301, + "line": 302, "column": 10 } } }, "property": { "type": "Identifier", - "start": 6910, - "end": 6917, + "start": 6945, + "end": 6952, "loc": { "start": { - "line": 301, + "line": 302, "column": 11 }, "end": { - "line": 301, + "line": 302, "column": 18 }, "identifierName": "loading" @@ -16121,15 +16225,15 @@ }, "right": { "type": "BooleanLiteral", - "start": 6920, - "end": 6925, + "start": 6955, + "end": 6960, "loc": { "start": { - "line": 301, + "line": 302, "column": 21 }, "end": { - "line": 301, + "line": 302, "column": 26 } }, @@ -16139,29 +16243,29 @@ }, { "type": "ThrowStatement", - "start": 6933, - "end": 6942, + "start": 6968, + "end": 6977, "loc": { "start": { - "line": 302, + "line": 303, "column": 6 }, "end": { - "line": 302, + "line": 303, "column": 15 } }, "argument": { "type": "Identifier", - "start": 6939, - "end": 6941, + "start": 6974, + "end": 6976, "loc": { "start": { - "line": 302, + "line": 303, "column": 12 }, "end": { - "line": 302, + "line": 303, "column": 14 }, "identifierName": "ex" @@ -16218,15 +16322,15 @@ { "type": "CommentBlock", "value": "*\n * Traverse to the specified page, and update the datasource accordingly.\n * @access public\n * @param {Number} pageNum - The new page to traverse to.\n * @return {Promise} A promise with a boolean data. True if\n * successfully traversed to specified page.\n * False otherwise.\n ", - "start": 6956, - "end": 7289, + "start": 6991, + "end": 7324, "loc": { "start": { - "line": 306, + "line": 307, "column": 2 }, "end": { - "line": 313, + "line": 314, "column": 5 } } @@ -16235,15 +16339,15 @@ }, { "type": "ClassMethod", - "start": 7292, - "end": 7471, + "start": 7327, + "end": 7506, "loc": { "start": { - "line": 314, + "line": 315, "column": 2 }, "end": { - "line": 321, + "line": 322, "column": 3 } }, @@ -16251,15 +16355,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 7298, - "end": 7306, + "start": 7333, + "end": 7341, "loc": { "start": { - "line": 314, + "line": 315, "column": 8 }, "end": { - "line": 314, + "line": 315, "column": 16 }, "identifierName": "goToPage" @@ -16274,15 +16378,15 @@ "params": [ { "type": "Identifier", - "start": 7307, - "end": 7314, + "start": 7342, + "end": 7349, "loc": { "start": { - "line": 314, + "line": 315, "column": 17 }, "end": { - "line": 314, + "line": 315, "column": 24 }, "identifierName": "pageNum" @@ -16292,72 +16396,72 @@ ], "body": { "type": "BlockStatement", - "start": 7316, - "end": 7471, + "start": 7351, + "end": 7506, "loc": { "start": { - "line": 314, + "line": 315, "column": 26 }, "end": { - "line": 321, + "line": 322, "column": 3 } }, "body": [ { "type": "IfStatement", - "start": 7322, - "end": 7449, + "start": 7357, + "end": 7484, "loc": { "start": { - "line": 315, + "line": 316, "column": 4 }, "end": { - "line": 319, + "line": 320, "column": 5 } }, "test": { "type": "LogicalExpression", - "start": 7326, - "end": 7367, + "start": 7361, + "end": 7402, "loc": { "start": { - "line": 315, + "line": 316, "column": 8 }, "end": { - "line": 315, + "line": 316, "column": 49 } }, "left": { "type": "BinaryExpression", - "start": 7326, - "end": 7337, + "start": 7361, + "end": 7372, "loc": { "start": { - "line": 315, + "line": 316, "column": 8 }, "end": { - "line": 315, + "line": 316, "column": 19 } }, "left": { "type": "Identifier", - "start": 7326, - "end": 7333, + "start": 7361, + "end": 7368, "loc": { "start": { - "line": 315, + "line": 316, "column": 8 }, "end": { - "line": 315, + "line": 316, "column": 15 }, "identifierName": "pageNum" @@ -16367,15 +16471,15 @@ "operator": ">", "right": { "type": "NumericLiteral", - "start": 7336, - "end": 7337, + "start": 7371, + "end": 7372, "loc": { "start": { - "line": 315, + "line": 316, "column": 18 }, "end": { - "line": 315, + "line": 316, "column": 19 } }, @@ -16389,29 +16493,29 @@ "operator": "&&", "right": { "type": "BinaryExpression", - "start": 7341, - "end": 7367, + "start": 7376, + "end": 7402, "loc": { "start": { - "line": 315, + "line": 316, "column": 23 }, "end": { - "line": 315, + "line": 316, "column": 49 } }, "left": { "type": "Identifier", - "start": 7341, - "end": 7348, + "start": 7376, + "end": 7383, "loc": { "start": { - "line": 315, + "line": 316, "column": 23 }, "end": { - "line": 315, + "line": 316, "column": 30 }, "identifierName": "pageNum" @@ -16421,44 +16525,44 @@ "operator": "<=", "right": { "type": "MemberExpression", - "start": 7352, - "end": 7367, + "start": 7387, + "end": 7402, "loc": { "start": { - "line": 315, + "line": 316, "column": 34 }, "end": { - "line": 315, + "line": 316, "column": 49 } }, "object": { "type": "ThisExpression", - "start": 7352, - "end": 7356, + "start": 7387, + "end": 7391, "loc": { "start": { - "line": 315, + "line": 316, "column": 34 }, "end": { - "line": 315, + "line": 316, "column": 38 } } }, "property": { "type": "Identifier", - "start": 7357, - "end": 7367, + "start": 7392, + "end": 7402, "loc": { "start": { - "line": 315, + "line": 316, "column": 39 }, "end": { - "line": 315, + "line": 316, "column": 49 }, "identifierName": "totalPages" @@ -16471,88 +16575,88 @@ }, "consequent": { "type": "BlockStatement", - "start": 7369, - "end": 7449, + "start": 7404, + "end": 7484, "loc": { "start": { - "line": 315, + "line": 316, "column": 51 }, "end": { - "line": 319, + "line": 320, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 7377, - "end": 7397, + "start": 7412, + "end": 7432, "loc": { "start": { - "line": 316, + "line": 317, "column": 6 }, "end": { - "line": 316, + "line": 317, "column": 26 } }, "expression": { "type": "AssignmentExpression", - "start": 7377, - "end": 7396, + "start": 7412, + "end": 7431, "loc": { "start": { - "line": 316, + "line": 317, "column": 6 }, "end": { - "line": 316, + "line": 317, "column": 25 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 7377, - "end": 7386, + "start": 7412, + "end": 7421, "loc": { "start": { - "line": 316, + "line": 317, "column": 6 }, "end": { - "line": 316, + "line": 317, "column": 15 } }, "object": { "type": "ThisExpression", - "start": 7377, - "end": 7381, + "start": 7412, + "end": 7416, "loc": { "start": { - "line": 316, + "line": 317, "column": 6 }, "end": { - "line": 316, + "line": 317, "column": 10 } } }, "property": { "type": "Identifier", - "start": 7382, - "end": 7386, + "start": 7417, + "end": 7421, "loc": { "start": { - "line": 316, + "line": 317, "column": 11 }, "end": { - "line": 316, + "line": 317, "column": 15 }, "identifierName": "page" @@ -16563,15 +16667,15 @@ }, "right": { "type": "Identifier", - "start": 7389, - "end": 7396, + "start": 7424, + "end": 7431, "loc": { "start": { - "line": 316, + "line": 317, "column": 18 }, "end": { - "line": 316, + "line": 317, "column": 25 }, "identifierName": "pageNum" @@ -16582,86 +16686,86 @@ }, { "type": "ExpressionStatement", - "start": 7404, - "end": 7424, + "start": 7439, + "end": 7459, "loc": { "start": { - "line": 317, + "line": 318, "column": 6 }, "end": { - "line": 317, + "line": 318, "column": 26 } }, "expression": { "type": "AwaitExpression", - "start": 7404, - "end": 7423, + "start": 7439, + "end": 7458, "loc": { "start": { - "line": 317, + "line": 318, "column": 6 }, "end": { - "line": 317, + "line": 318, "column": 25 } }, "argument": { "type": "CallExpression", - "start": 7410, - "end": 7423, + "start": 7445, + "end": 7458, "loc": { "start": { - "line": 317, + "line": 318, "column": 12 }, "end": { - "line": 317, + "line": 318, "column": 25 } }, "callee": { "type": "MemberExpression", - "start": 7410, - "end": 7421, + "start": 7445, + "end": 7456, "loc": { "start": { - "line": 317, + "line": 318, "column": 12 }, "end": { - "line": 317, + "line": 318, "column": 23 } }, "object": { "type": "ThisExpression", - "start": 7410, - "end": 7414, + "start": 7445, + "end": 7449, "loc": { "start": { - "line": 317, + "line": 318, "column": 12 }, "end": { - "line": 317, + "line": 318, "column": 16 } } }, "property": { "type": "Identifier", - "start": 7415, - "end": 7421, + "start": 7450, + "end": 7456, "loc": { "start": { - "line": 317, + "line": 318, "column": 17 }, "end": { - "line": 317, + "line": 318, "column": 23 }, "identifierName": "update" @@ -16676,29 +16780,29 @@ }, { "type": "ReturnStatement", - "start": 7431, - "end": 7443, + "start": 7466, + "end": 7478, "loc": { "start": { - "line": 318, + "line": 319, "column": 6 }, "end": { - "line": 318, + "line": 319, "column": 18 } }, "argument": { "type": "BooleanLiteral", - "start": 7438, - "end": 7442, + "start": 7473, + "end": 7477, "loc": { "start": { - "line": 318, + "line": 319, "column": 13 }, "end": { - "line": 318, + "line": 319, "column": 17 } }, @@ -16712,29 +16816,29 @@ }, { "type": "ReturnStatement", - "start": 7454, - "end": 7467, + "start": 7489, + "end": 7502, "loc": { "start": { - "line": 320, + "line": 321, "column": 4 }, "end": { - "line": 320, + "line": 321, "column": 17 } }, "argument": { "type": "BooleanLiteral", - "start": 7461, - "end": 7466, + "start": 7496, + "end": 7501, "loc": { "start": { - "line": 320, + "line": 321, "column": 11 }, "end": { - "line": 320, + "line": 321, "column": 16 } }, @@ -16749,15 +16853,15 @@ { "type": "CommentBlock", "value": "*\n * Traverse to the specified page, and update the datasource accordingly.\n * @access public\n * @param {Number} pageNum - The new page to traverse to.\n * @return {Promise} A promise with a boolean data. True if\n * successfully traversed to specified page.\n * False otherwise.\n ", - "start": 6956, - "end": 7289, + "start": 6991, + "end": 7324, "loc": { "start": { - "line": 306, + "line": 307, "column": 2 }, "end": { - "line": 313, + "line": 314, "column": 5 } } @@ -16767,15 +16871,15 @@ { "type": "CommentBlock", "value": "*\n * Traverse to the next page, and update the datasource accordingly.\n * @return {Promise} A promise with a boolean data. True if\n * successfully traversed to next page.\n * False otherwise.\n ", - "start": 7475, - "end": 7717, + "start": 7510, + "end": 7752, "loc": { "start": { - "line": 323, + "line": 324, "column": 2 }, "end": { - "line": 328, + "line": 329, "column": 5 } } @@ -16784,15 +16888,15 @@ }, { "type": "ClassMethod", - "start": 7720, - "end": 7783, + "start": 7755, + "end": 7818, "loc": { "start": { - "line": 329, + "line": 330, "column": 2 }, "end": { - "line": 331, + "line": 332, "column": 3 } }, @@ -16800,15 +16904,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 7726, - "end": 7734, + "start": 7761, + "end": 7769, "loc": { "start": { - "line": 329, + "line": 330, "column": 8 }, "end": { - "line": 329, + "line": 330, "column": 16 }, "identifierName": "nextPage" @@ -16823,87 +16927,87 @@ "params": [], "body": { "type": "BlockStatement", - "start": 7737, - "end": 7783, + "start": 7772, + "end": 7818, "loc": { "start": { - "line": 329, + "line": 330, "column": 19 }, "end": { - "line": 331, + "line": 332, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 7743, - "end": 7779, + "start": 7778, + "end": 7814, "loc": { "start": { - "line": 330, + "line": 331, "column": 4 }, "end": { - "line": 330, + "line": 331, "column": 40 } }, "argument": { "type": "CallExpression", - "start": 7750, - "end": 7778, + "start": 7785, + "end": 7813, "loc": { "start": { - "line": 330, + "line": 331, "column": 11 }, "end": { - "line": 330, + "line": 331, "column": 39 } }, "callee": { "type": "MemberExpression", - "start": 7750, - "end": 7763, + "start": 7785, + "end": 7798, "loc": { "start": { - "line": 330, + "line": 331, "column": 11 }, "end": { - "line": 330, + "line": 331, "column": 24 } }, "object": { "type": "ThisExpression", - "start": 7750, - "end": 7754, + "start": 7785, + "end": 7789, "loc": { "start": { - "line": 330, + "line": 331, "column": 11 }, "end": { - "line": 330, + "line": 331, "column": 15 } } }, "property": { "type": "Identifier", - "start": 7755, - "end": 7763, + "start": 7790, + "end": 7798, "loc": { "start": { - "line": 330, + "line": 331, "column": 16 }, "end": { - "line": 330, + "line": 331, "column": 24 }, "identifierName": "goToPage" @@ -16915,58 +17019,58 @@ "arguments": [ { "type": "BinaryExpression", - "start": 7764, - "end": 7777, + "start": 7799, + "end": 7812, "loc": { "start": { - "line": 330, + "line": 331, "column": 25 }, "end": { - "line": 330, + "line": 331, "column": 38 } }, "left": { "type": "MemberExpression", - "start": 7764, - "end": 7773, + "start": 7799, + "end": 7808, "loc": { "start": { - "line": 330, + "line": 331, "column": 25 }, "end": { - "line": 330, + "line": 331, "column": 34 } }, "object": { "type": "ThisExpression", - "start": 7764, - "end": 7768, + "start": 7799, + "end": 7803, "loc": { "start": { - "line": 330, + "line": 331, "column": 25 }, "end": { - "line": 330, + "line": 331, "column": 29 } } }, "property": { "type": "Identifier", - "start": 7769, - "end": 7773, + "start": 7804, + "end": 7808, "loc": { "start": { - "line": 330, + "line": 331, "column": 30 }, "end": { - "line": 330, + "line": 331, "column": 34 }, "identifierName": "page" @@ -16978,15 +17082,15 @@ "operator": "+", "right": { "type": "NumericLiteral", - "start": 7776, - "end": 7777, + "start": 7811, + "end": 7812, "loc": { "start": { - "line": 330, + "line": 331, "column": 37 }, "end": { - "line": 330, + "line": 331, "column": 38 } }, @@ -17008,15 +17112,15 @@ { "type": "CommentBlock", "value": "*\n * Traverse to the next page, and update the datasource accordingly.\n * @return {Promise} A promise with a boolean data. True if\n * successfully traversed to next page.\n * False otherwise.\n ", - "start": 7475, - "end": 7717, + "start": 7510, + "end": 7752, "loc": { "start": { - "line": 323, + "line": 324, "column": 2 }, "end": { - "line": 328, + "line": 329, "column": 5 } } @@ -17026,15 +17130,15 @@ { "type": "CommentBlock", "value": "*\n * Traverse to the previous page, and update the datasource accordingly.\n * @access public\n * @return {Promise} A promise with a boolean data. True if\n * successfully traversed to previous page.\n * False otherwise.\n ", - "start": 7787, - "end": 8057, + "start": 7822, + "end": 8092, "loc": { "start": { - "line": 333, + "line": 334, "column": 2 }, "end": { - "line": 339, + "line": 340, "column": 5 } } @@ -17043,15 +17147,15 @@ }, { "type": "ClassMethod", - "start": 8060, - "end": 8123, + "start": 8095, + "end": 8158, "loc": { "start": { - "line": 340, + "line": 341, "column": 2 }, "end": { - "line": 342, + "line": 343, "column": 3 } }, @@ -17059,15 +17163,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 8066, - "end": 8074, + "start": 8101, + "end": 8109, "loc": { "start": { - "line": 340, + "line": 341, "column": 8 }, "end": { - "line": 340, + "line": 341, "column": 16 }, "identifierName": "prevPage" @@ -17082,87 +17186,87 @@ "params": [], "body": { "type": "BlockStatement", - "start": 8077, - "end": 8123, + "start": 8112, + "end": 8158, "loc": { "start": { - "line": 340, + "line": 341, "column": 19 }, "end": { - "line": 342, + "line": 343, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 8083, - "end": 8119, + "start": 8118, + "end": 8154, "loc": { "start": { - "line": 341, + "line": 342, "column": 4 }, "end": { - "line": 341, + "line": 342, "column": 40 } }, "argument": { "type": "CallExpression", - "start": 8090, - "end": 8118, + "start": 8125, + "end": 8153, "loc": { "start": { - "line": 341, + "line": 342, "column": 11 }, "end": { - "line": 341, + "line": 342, "column": 39 } }, "callee": { "type": "MemberExpression", - "start": 8090, - "end": 8103, + "start": 8125, + "end": 8138, "loc": { "start": { - "line": 341, + "line": 342, "column": 11 }, "end": { - "line": 341, + "line": 342, "column": 24 } }, "object": { "type": "ThisExpression", - "start": 8090, - "end": 8094, + "start": 8125, + "end": 8129, "loc": { "start": { - "line": 341, + "line": 342, "column": 11 }, "end": { - "line": 341, + "line": 342, "column": 15 } } }, "property": { "type": "Identifier", - "start": 8095, - "end": 8103, + "start": 8130, + "end": 8138, "loc": { "start": { - "line": 341, + "line": 342, "column": 16 }, "end": { - "line": 341, + "line": 342, "column": 24 }, "identifierName": "goToPage" @@ -17174,58 +17278,58 @@ "arguments": [ { "type": "BinaryExpression", - "start": 8104, - "end": 8117, + "start": 8139, + "end": 8152, "loc": { "start": { - "line": 341, + "line": 342, "column": 25 }, "end": { - "line": 341, + "line": 342, "column": 38 } }, "left": { "type": "MemberExpression", - "start": 8104, - "end": 8113, + "start": 8139, + "end": 8148, "loc": { "start": { - "line": 341, + "line": 342, "column": 25 }, "end": { - "line": 341, + "line": 342, "column": 34 } }, "object": { "type": "ThisExpression", - "start": 8104, - "end": 8108, + "start": 8139, + "end": 8143, "loc": { "start": { - "line": 341, + "line": 342, "column": 25 }, "end": { - "line": 341, + "line": 342, "column": 29 } } }, "property": { "type": "Identifier", - "start": 8109, - "end": 8113, + "start": 8144, + "end": 8148, "loc": { "start": { - "line": 341, + "line": 342, "column": 30 }, "end": { - "line": 341, + "line": 342, "column": 34 }, "identifierName": "page" @@ -17237,15 +17341,15 @@ "operator": "-", "right": { "type": "NumericLiteral", - "start": 8116, - "end": 8117, + "start": 8151, + "end": 8152, "loc": { "start": { - "line": 341, + "line": 342, "column": 37 }, "end": { - "line": 341, + "line": 342, "column": 38 } }, @@ -17267,15 +17371,15 @@ { "type": "CommentBlock", "value": "*\n * Traverse to the previous page, and update the datasource accordingly.\n * @access public\n * @return {Promise} A promise with a boolean data. True if\n * successfully traversed to previous page.\n * False otherwise.\n ", - "start": 7787, - "end": 8057, + "start": 7822, + "end": 8092, "loc": { "start": { - "line": 333, + "line": 334, "column": 2 }, "end": { - "line": 339, + "line": 340, "column": 5 } } @@ -17285,15 +17389,15 @@ { "type": "CommentBlock", "value": "*\n * Given a search text, filters the data accordingly.\n * @access public\n * @param {String} searchArguments - The search text to filter with, or\n * the search arguments object to filter\n * with specific column filtering.\n * @return {Promise} A promise object, resolved when the search is completed.\n ", - "start": 8127, - "end": 8517, + "start": 8162, + "end": 8552, "loc": { "start": { - "line": 344, + "line": 345, "column": 2 }, "end": { - "line": 351, + "line": 352, "column": 5 } } @@ -17302,15 +17406,15 @@ }, { "type": "ClassMethod", - "start": 8520, - "end": 8816, + "start": 8555, + "end": 8851, "loc": { "start": { - "line": 352, + "line": 353, "column": 2 }, "end": { - "line": 362, + "line": 363, "column": 3 } }, @@ -17318,15 +17422,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 8526, - "end": 8532, + "start": 8561, + "end": 8567, "loc": { "start": { - "line": 352, + "line": 353, "column": 8 }, "end": { - "line": 352, + "line": 353, "column": 14 }, "identifierName": "search" @@ -17341,15 +17445,15 @@ "params": [ { "type": "Identifier", - "start": 8533, - "end": 8548, + "start": 8568, + "end": 8583, "loc": { "start": { - "line": 352, + "line": 353, "column": 15 }, "end": { - "line": 352, + "line": 353, "column": 30 }, "identifierName": "searchArguments" @@ -17359,117 +17463,23 @@ ], "body": { "type": "BlockStatement", - "start": 8550, - "end": 8816, + "start": 8585, + "end": 8851, "loc": { "start": { - "line": 352, + "line": 353, "column": 32 }, "end": { - "line": 362, + "line": 363, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 8556, - "end": 8579, - "loc": { - "start": { - "line": 353, - "column": 4 - }, - "end": { - "line": 353, - "column": 27 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 8556, - "end": 8578, - "loc": { - "start": { - "line": 353, - "column": 4 - }, - "end": { - "line": 353, - "column": 26 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 8556, - "end": 8571, - "loc": { - "start": { - "line": 353, - "column": 4 - }, - "end": { - "line": 353, - "column": 19 - } - }, - "object": { - "type": "ThisExpression", - "start": 8556, - "end": 8560, - "loc": { - "start": { - "line": 353, - "column": 4 - }, - "end": { - "line": 353, - "column": 8 - } - } - }, - "property": { - "type": "Identifier", - "start": 8561, - "end": 8571, - "loc": { - "start": { - "line": 353, - "column": 9 - }, - "end": { - "line": 353, - "column": 19 - }, - "identifierName": "searchText" - }, - "name": "searchText" - }, - "computed": false - }, - "right": { - "type": "NullLiteral", - "start": 8574, - "end": 8578, - "loc": { - "start": { - "line": 353, - "column": 22 - }, - "end": { - "line": 353, - "column": 26 - } - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 8584, - "end": 8612, + "start": 8591, + "end": 8614, "loc": { "start": { "line": 354, @@ -17477,13 +17487,13 @@ }, "end": { "line": 354, - "column": 32 + "column": 27 } }, "expression": { "type": "AssignmentExpression", - "start": 8584, - "end": 8611, + "start": 8591, + "end": 8613, "loc": { "start": { "line": 354, @@ -17491,14 +17501,14 @@ }, "end": { "line": 354, - "column": 31 + "column": 26 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 8584, - "end": 8604, + "start": 8591, + "end": 8606, "loc": { "start": { "line": 354, @@ -17506,13 +17516,13 @@ }, "end": { "line": 354, - "column": 24 + "column": 19 } }, "object": { "type": "ThisExpression", - "start": 8584, - "end": 8588, + "start": 8591, + "end": 8595, "loc": { "start": { "line": 354, @@ -17526,8 +17536,8 @@ }, "property": { "type": "Identifier", - "start": 8589, - "end": 8604, + "start": 8596, + "end": 8606, "loc": { "start": { "line": 354, @@ -17535,6 +17545,100 @@ }, "end": { "line": 354, + "column": 19 + }, + "identifierName": "searchText" + }, + "name": "searchText" + }, + "computed": false + }, + "right": { + "type": "NullLiteral", + "start": 8609, + "end": 8613, + "loc": { + "start": { + "line": 354, + "column": 22 + }, + "end": { + "line": 354, + "column": 26 + } + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 8619, + "end": 8647, + "loc": { + "start": { + "line": 355, + "column": 4 + }, + "end": { + "line": 355, + "column": 32 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 8619, + "end": 8646, + "loc": { + "start": { + "line": 355, + "column": 4 + }, + "end": { + "line": 355, + "column": 31 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 8619, + "end": 8639, + "loc": { + "start": { + "line": 355, + "column": 4 + }, + "end": { + "line": 355, + "column": 24 + } + }, + "object": { + "type": "ThisExpression", + "start": 8619, + "end": 8623, + "loc": { + "start": { + "line": 355, + "column": 4 + }, + "end": { + "line": 355, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 8624, + "end": 8639, + "loc": { + "start": { + "line": 355, + "column": 9 + }, + "end": { + "line": 355, "column": 24 }, "identifierName": "searchArguments" @@ -17545,15 +17649,15 @@ }, "right": { "type": "NullLiteral", - "start": 8607, - "end": 8611, + "start": 8642, + "end": 8646, "loc": { "start": { - "line": 354, + "line": 355, "column": 27 }, "end": { - "line": 354, + "line": 355, "column": 31 } } @@ -17562,43 +17666,43 @@ }, { "type": "IfStatement", - "start": 8617, - "end": 8765, + "start": 8652, + "end": 8800, "loc": { "start": { - "line": 355, + "line": 356, "column": 4 }, "end": { - "line": 359, + "line": 360, "column": 5 } }, "test": { "type": "BinaryExpression", - "start": 8621, - "end": 8656, + "start": 8656, + "end": 8691, "loc": { "start": { - "line": 355, + "line": 356, "column": 8 }, "end": { - "line": 355, + "line": 356, "column": 43 } }, "left": { "type": "UnaryExpression", - "start": 8621, - "end": 8643, + "start": 8656, + "end": 8678, "loc": { "start": { - "line": 355, + "line": 356, "column": 8 }, "end": { - "line": 355, + "line": 356, "column": 30 } }, @@ -17606,15 +17710,15 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 8628, - "end": 8643, + "start": 8663, + "end": 8678, "loc": { "start": { - "line": 355, + "line": 356, "column": 15 }, "end": { - "line": 355, + "line": 356, "column": 30 }, "identifierName": "searchArguments" @@ -17628,15 +17732,15 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 8648, - "end": 8656, + "start": 8683, + "end": 8691, "loc": { "start": { - "line": 355, + "line": 356, "column": 35 }, "end": { - "line": 355, + "line": 356, "column": 43 } }, @@ -17649,88 +17753,88 @@ }, "consequent": { "type": "BlockStatement", - "start": 8658, - "end": 8706, + "start": 8693, + "end": 8741, "loc": { "start": { - "line": 355, + "line": 356, "column": 45 }, "end": { - "line": 357, + "line": 358, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 8666, - "end": 8700, + "start": 8701, + "end": 8735, "loc": { "start": { - "line": 356, + "line": 357, "column": 6 }, "end": { - "line": 356, + "line": 357, "column": 40 } }, "expression": { "type": "AssignmentExpression", - "start": 8666, - "end": 8699, + "start": 8701, + "end": 8734, "loc": { "start": { - "line": 356, + "line": 357, "column": 6 }, "end": { - "line": 356, + "line": 357, "column": 39 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 8666, - "end": 8681, + "start": 8701, + "end": 8716, "loc": { "start": { - "line": 356, + "line": 357, "column": 6 }, "end": { - "line": 356, + "line": 357, "column": 21 } }, "object": { "type": "ThisExpression", - "start": 8666, - "end": 8670, + "start": 8701, + "end": 8705, "loc": { "start": { - "line": 356, + "line": 357, "column": 6 }, "end": { - "line": 356, + "line": 357, "column": 10 } } }, "property": { "type": "Identifier", - "start": 8671, - "end": 8681, + "start": 8706, + "end": 8716, "loc": { "start": { - "line": 356, + "line": 357, "column": 11 }, "end": { - "line": 356, + "line": 357, "column": 21 }, "identifierName": "searchText" @@ -17741,15 +17845,15 @@ }, "right": { "type": "Identifier", - "start": 8684, - "end": 8699, + "start": 8719, + "end": 8734, "loc": { "start": { - "line": 356, + "line": 357, "column": 24 }, "end": { - "line": 356, + "line": 357, "column": 39 }, "identifierName": "searchArguments" @@ -17763,88 +17867,88 @@ }, "alternate": { "type": "BlockStatement", - "start": 8712, - "end": 8765, + "start": 8747, + "end": 8800, "loc": { "start": { - "line": 357, + "line": 358, "column": 11 }, "end": { - "line": 359, + "line": 360, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 8720, - "end": 8759, + "start": 8755, + "end": 8794, "loc": { "start": { - "line": 358, + "line": 359, "column": 6 }, "end": { - "line": 358, + "line": 359, "column": 45 } }, "expression": { "type": "AssignmentExpression", - "start": 8720, - "end": 8758, + "start": 8755, + "end": 8793, "loc": { "start": { - "line": 358, + "line": 359, "column": 6 }, "end": { - "line": 358, + "line": 359, "column": 44 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 8720, - "end": 8740, + "start": 8755, + "end": 8775, "loc": { "start": { - "line": 358, + "line": 359, "column": 6 }, "end": { - "line": 358, + "line": 359, "column": 26 } }, "object": { "type": "ThisExpression", - "start": 8720, - "end": 8724, + "start": 8755, + "end": 8759, "loc": { "start": { - "line": 358, + "line": 359, "column": 6 }, "end": { - "line": 358, + "line": 359, "column": 10 } } }, "property": { "type": "Identifier", - "start": 8725, - "end": 8740, + "start": 8760, + "end": 8775, "loc": { "start": { - "line": 358, + "line": 359, "column": 11 }, "end": { - "line": 358, + "line": 359, "column": 26 }, "identifierName": "searchArguments" @@ -17855,15 +17959,15 @@ }, "right": { "type": "Identifier", - "start": 8743, - "end": 8758, + "start": 8778, + "end": 8793, "loc": { "start": { - "line": 358, + "line": 359, "column": 29 }, "end": { - "line": 358, + "line": 359, "column": 44 }, "identifierName": "searchArguments" @@ -17878,73 +17982,73 @@ }, { "type": "ExpressionStatement", - "start": 8770, - "end": 8786, + "start": 8805, + "end": 8821, "loc": { "start": { - "line": 360, + "line": 361, "column": 4 }, "end": { - "line": 360, + "line": 361, "column": 20 } }, "expression": { "type": "AssignmentExpression", - "start": 8770, - "end": 8785, + "start": 8805, + "end": 8820, "loc": { "start": { - "line": 360, + "line": 361, "column": 4 }, "end": { - "line": 360, + "line": 361, "column": 19 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 8770, - "end": 8781, + "start": 8805, + "end": 8816, "loc": { "start": { - "line": 360, + "line": 361, "column": 4 }, "end": { - "line": 360, + "line": 361, "column": 15 } }, "object": { "type": "ThisExpression", - "start": 8770, - "end": 8774, + "start": 8805, + "end": 8809, "loc": { "start": { - "line": 360, + "line": 361, "column": 4 }, "end": { - "line": 360, + "line": 361, "column": 8 } } }, "property": { "type": "Identifier", - "start": 8775, - "end": 8781, + "start": 8810, + "end": 8816, "loc": { "start": { - "line": 360, + "line": 361, "column": 9 }, "end": { - "line": 360, + "line": 361, "column": 15 }, "identifierName": "offset" @@ -17955,15 +18059,15 @@ }, "right": { "type": "NumericLiteral", - "start": 8784, - "end": 8785, + "start": 8819, + "end": 8820, "loc": { "start": { - "line": 360, + "line": 361, "column": 18 }, "end": { - "line": 360, + "line": 361, "column": 19 } }, @@ -17977,72 +18081,72 @@ }, { "type": "ReturnStatement", - "start": 8791, - "end": 8812, + "start": 8826, + "end": 8847, "loc": { "start": { - "line": 361, + "line": 362, "column": 4 }, "end": { - "line": 361, + "line": 362, "column": 25 } }, "argument": { "type": "CallExpression", - "start": 8798, - "end": 8811, + "start": 8833, + "end": 8846, "loc": { "start": { - "line": 361, + "line": 362, "column": 11 }, "end": { - "line": 361, + "line": 362, "column": 24 } }, "callee": { "type": "MemberExpression", - "start": 8798, - "end": 8809, + "start": 8833, + "end": 8844, "loc": { "start": { - "line": 361, + "line": 362, "column": 11 }, "end": { - "line": 361, + "line": 362, "column": 22 } }, "object": { "type": "ThisExpression", - "start": 8798, - "end": 8802, + "start": 8833, + "end": 8837, "loc": { "start": { - "line": 361, + "line": 362, "column": 11 }, "end": { - "line": 361, + "line": 362, "column": 15 } } }, "property": { "type": "Identifier", - "start": 8803, - "end": 8809, + "start": 8838, + "end": 8844, "loc": { "start": { - "line": 361, + "line": 362, "column": 16 }, "end": { - "line": 361, + "line": 362, "column": 22 }, "identifierName": "update" @@ -18062,15 +18166,15 @@ { "type": "CommentBlock", "value": "*\n * Given a search text, filters the data accordingly.\n * @access public\n * @param {String} searchArguments - The search text to filter with, or\n * the search arguments object to filter\n * with specific column filtering.\n * @return {Promise} A promise object, resolved when the search is completed.\n ", - "start": 8127, - "end": 8517, + "start": 8162, + "end": 8552, "loc": { "start": { - "line": 344, + "line": 345, "column": 2 }, "end": { - "line": 351, + "line": 352, "column": 5 } } @@ -18080,15 +18184,15 @@ { "type": "CommentBlock", "value": "*\n * Sort the data based on a field and direction.\n * @access public\n * @param {Object} sortArguments - Object with keys as the field names to sort.\n * The values of the object is the sort direction.\n * The sort direction can be 'asc', 'ascend', 'desc',\n * 'descending'\n * @return {Promise} A promise object, resolved when the sorting is completed.\n ", - "start": 8820, - "end": 9290, + "start": 8855, + "end": 9325, "loc": { "start": { - "line": 364, + "line": 365, "column": 2 }, "end": { - "line": 372, + "line": 373, "column": 5 } } @@ -18097,15 +18201,15 @@ }, { "type": "ClassMethod", - "start": 9293, - "end": 9397, + "start": 9328, + "end": 9432, "loc": { "start": { - "line": 373, + "line": 374, "column": 2 }, "end": { - "line": 376, + "line": 377, "column": 3 } }, @@ -18113,15 +18217,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 9299, - "end": 9303, + "start": 9334, + "end": 9338, "loc": { "start": { - "line": 373, + "line": 374, "column": 8 }, "end": { - "line": 373, + "line": 374, "column": 12 }, "identifierName": "sort" @@ -18136,29 +18240,29 @@ "params": [ { "type": "AssignmentPattern", - "start": 9304, - "end": 9324, + "start": 9339, + "end": 9359, "loc": { "start": { - "line": 373, + "line": 374, "column": 13 }, "end": { - "line": 373, + "line": 374, "column": 33 } }, "left": { "type": "Identifier", - "start": 9304, - "end": 9317, + "start": 9339, + "end": 9352, "loc": { "start": { - "line": 373, + "line": 374, "column": 13 }, "end": { - "line": 373, + "line": 374, "column": 26 }, "identifierName": "sortArguments" @@ -18167,15 +18271,15 @@ }, "right": { "type": "NullLiteral", - "start": 9320, - "end": 9324, + "start": 9355, + "end": 9359, "loc": { "start": { - "line": 373, + "line": 374, "column": 29 }, "end": { - "line": 373, + "line": 374, "column": 33 } } @@ -18184,88 +18288,88 @@ ], "body": { "type": "BlockStatement", - "start": 9326, - "end": 9397, + "start": 9361, + "end": 9432, "loc": { "start": { - "line": 373, + "line": 374, "column": 35 }, "end": { - "line": 376, + "line": 377, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 9332, - "end": 9367, + "start": 9367, + "end": 9402, "loc": { "start": { - "line": 374, + "line": 375, "column": 4 }, "end": { - "line": 374, + "line": 375, "column": 39 } }, "expression": { "type": "AssignmentExpression", - "start": 9332, - "end": 9366, + "start": 9367, + "end": 9401, "loc": { "start": { - "line": 374, + "line": 375, "column": 4 }, "end": { - "line": 374, + "line": 375, "column": 38 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 9332, - "end": 9350, + "start": 9367, + "end": 9385, "loc": { "start": { - "line": 374, + "line": 375, "column": 4 }, "end": { - "line": 374, + "line": 375, "column": 22 } }, "object": { "type": "ThisExpression", - "start": 9332, - "end": 9336, + "start": 9367, + "end": 9371, "loc": { "start": { - "line": 374, + "line": 375, "column": 4 }, "end": { - "line": 374, + "line": 375, "column": 8 } } }, "property": { "type": "Identifier", - "start": 9337, - "end": 9350, + "start": 9372, + "end": 9385, "loc": { "start": { - "line": 374, + "line": 375, "column": 9 }, "end": { - "line": 374, + "line": 375, "column": 22 }, "identifierName": "sortArguments" @@ -18276,15 +18380,15 @@ }, "right": { "type": "Identifier", - "start": 9353, - "end": 9366, + "start": 9388, + "end": 9401, "loc": { "start": { - "line": 374, + "line": 375, "column": 25 }, "end": { - "line": 374, + "line": 375, "column": 38 }, "identifierName": "sortArguments" @@ -18295,72 +18399,72 @@ }, { "type": "ReturnStatement", - "start": 9372, - "end": 9393, + "start": 9407, + "end": 9428, "loc": { "start": { - "line": 375, + "line": 376, "column": 4 }, "end": { - "line": 375, + "line": 376, "column": 25 } }, "argument": { "type": "CallExpression", - "start": 9379, - "end": 9392, + "start": 9414, + "end": 9427, "loc": { "start": { - "line": 375, + "line": 376, "column": 11 }, "end": { - "line": 375, + "line": 376, "column": 24 } }, "callee": { "type": "MemberExpression", - "start": 9379, - "end": 9390, + "start": 9414, + "end": 9425, "loc": { "start": { - "line": 375, + "line": 376, "column": 11 }, "end": { - "line": 375, + "line": 376, "column": 22 } }, "object": { "type": "ThisExpression", - "start": 9379, - "end": 9383, + "start": 9414, + "end": 9418, "loc": { "start": { - "line": 375, + "line": 376, "column": 11 }, "end": { - "line": 375, + "line": 376, "column": 15 } } }, "property": { "type": "Identifier", - "start": 9384, - "end": 9390, + "start": 9419, + "end": 9425, "loc": { "start": { - "line": 375, + "line": 376, "column": 16 }, "end": { - "line": 375, + "line": 376, "column": 22 }, "identifierName": "update" @@ -18379,15 +18483,15 @@ { "type": "CommentBlock", "value": "*\n * Sort the data based on a field and direction.\n * @access public\n * @param {Object} sortArguments - Object with keys as the field names to sort.\n * The values of the object is the sort direction.\n * The sort direction can be 'asc', 'ascend', 'desc',\n * 'descending'\n * @return {Promise} A promise object, resolved when the sorting is completed.\n ", - "start": 8820, - "end": 9290, + "start": 8855, + "end": 9325, "loc": { "start": { - "line": 364, + "line": 365, "column": 2 }, "end": { - "line": 372, + "line": 373, "column": 5 } } @@ -18810,15 +18914,15 @@ { "type": "CommentBlock", "value": "*\n * Traverse to the specified page, and update the datasource accordingly.\n * @access public\n * @param {Number} pageNum - The new page to traverse to.\n * @return {Promise} A promise with a boolean data. True if\n * successfully traversed to specified page.\n * False otherwise.\n ", - "start": 6956, - "end": 7289, + "start": 6991, + "end": 7324, "loc": { "start": { - "line": 306, + "line": 307, "column": 2 }, "end": { - "line": 313, + "line": 314, "column": 5 } } @@ -18826,15 +18930,15 @@ { "type": "CommentBlock", "value": "*\n * Traverse to the next page, and update the datasource accordingly.\n * @return {Promise} A promise with a boolean data. True if\n * successfully traversed to next page.\n * False otherwise.\n ", - "start": 7475, - "end": 7717, + "start": 7510, + "end": 7752, "loc": { "start": { - "line": 323, + "line": 324, "column": 2 }, "end": { - "line": 328, + "line": 329, "column": 5 } } @@ -18842,15 +18946,15 @@ { "type": "CommentBlock", "value": "*\n * Traverse to the previous page, and update the datasource accordingly.\n * @access public\n * @return {Promise} A promise with a boolean data. True if\n * successfully traversed to previous page.\n * False otherwise.\n ", - "start": 7787, - "end": 8057, + "start": 7822, + "end": 8092, "loc": { "start": { - "line": 333, + "line": 334, "column": 2 }, "end": { - "line": 339, + "line": 340, "column": 5 } } @@ -18858,15 +18962,15 @@ { "type": "CommentBlock", "value": "*\n * Given a search text, filters the data accordingly.\n * @access public\n * @param {String} searchArguments - The search text to filter with, or\n * the search arguments object to filter\n * with specific column filtering.\n * @return {Promise} A promise object, resolved when the search is completed.\n ", - "start": 8127, - "end": 8517, + "start": 8162, + "end": 8552, "loc": { "start": { - "line": 344, + "line": 345, "column": 2 }, "end": { - "line": 351, + "line": 352, "column": 5 } } @@ -18874,15 +18978,15 @@ { "type": "CommentBlock", "value": "*\n * Sort the data based on a field and direction.\n * @access public\n * @param {Object} sortArguments - Object with keys as the field names to sort.\n * The values of the object is the sort direction.\n * The sort direction can be 'asc', 'ascend', 'desc',\n * 'descending'\n * @return {Promise} A promise object, resolved when the sorting is completed.\n ", - "start": 8820, - "end": 9290, + "start": 8855, + "end": 9325, "loc": { "start": { - "line": 364, + "line": 365, "column": 2 }, "end": { - "line": 372, + "line": 373, "column": 5 } } @@ -30920,9 +31024,9 @@ "postfix": false, "binop": null }, - "value": "emit", + "value": "loading", "start": 6770, - "end": 6774, + "end": 6777, "loc": { "start": { "line": 295, @@ -30930,38 +31034,41 @@ }, "end": { "line": 295, - "column": 15 + "column": 18 } } }, { "type": { - "label": "(", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 6774, - "end": 6775, + "value": "=", + "start": 6778, + "end": 6779, "loc": { "start": { "line": 295, - "column": 15 + "column": 19 }, "end": { "line": 295, - "column": 16 + "column": 20 } } }, { "type": { - "label": "string", + "label": "false", + "keyword": "false", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -30972,23 +31079,23 @@ "binop": null, "updateContext": null }, - "value": "updateend", - "start": 6775, - "end": 6786, + "value": "false", + "start": 6780, + "end": 6785, "loc": { "start": { "line": 295, - "column": 16 + "column": 21 }, "end": { "line": 295, - "column": 27 + "column": 26 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -30999,41 +31106,70 @@ "binop": null, "updateContext": null }, - "start": 6786, - "end": 6787, + "start": 6785, + "end": 6786, "loc": { "start": { "line": 295, - "column": 27 + "column": 26 }, "end": { "line": 295, - "column": 28 + "column": 27 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "this", + "keyword": "this", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 6788, - "end": 6789, + "value": "this", + "start": 6793, + "end": 6797, "loc": { "start": { - "line": 295, - "column": 29 + "line": 296, + "column": 6 }, "end": { - "line": 295, - "column": 30 + "line": 296, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6797, + "end": 6798, + "loc": { + "start": { + "line": 296, + "column": 10 + }, + "end": { + "line": 296, + "column": 11 } } }, @@ -31049,50 +31185,48 @@ "postfix": false, "binop": null }, - "value": "sender", + "value": "emit", "start": 6798, - "end": 6804, + "end": 6802, "loc": { "start": { "line": 296, - "column": 8 + "column": 11 }, "end": { "line": 296, - "column": 14 + "column": 15 } } }, { "type": { - "label": ":", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 6804, - "end": 6805, + "start": 6802, + "end": 6803, "loc": { "start": { "line": 296, - "column": 14 + "column": 15 }, "end": { "line": 296, - "column": 15 + "column": 16 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -31103,9 +31237,9 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 6806, - "end": 6810, + "value": "updateend", + "start": 6803, + "end": 6814, "loc": { "start": { "line": 296, @@ -31113,7 +31247,7 @@ }, "end": { "line": 296, - "column": 20 + "column": 27 } } }, @@ -31130,24 +31264,24 @@ "binop": null, "updateContext": null }, - "start": 6810, - "end": 6811, + "start": 6814, + "end": 6815, "loc": { "start": { "line": 296, - "column": 20 + "column": 27 }, "end": { "line": 296, - "column": 21 + "column": 28 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -31155,24 +31289,24 @@ "postfix": false, "binop": null }, - "start": 6818, - "end": 6819, + "start": 6816, + "end": 6817, "loc": { "start": { - "line": 297, - "column": 6 + "line": 296, + "column": 29 }, "end": { - "line": 297, - "column": 7 + "line": 296, + "column": 30 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -31180,22 +31314,23 @@ "postfix": false, "binop": null }, - "start": 6819, - "end": 6820, + "value": "sender", + "start": 6826, + "end": 6832, "loc": { "start": { "line": 297, - "column": 7 + "column": 8 }, "end": { "line": 297, - "column": 8 + "column": 14 } } }, { "type": { - "label": ";", + "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -31206,16 +31341,16 @@ "binop": null, "updateContext": null }, - "start": 6820, - "end": 6821, + "start": 6832, + "end": 6833, "loc": { "start": { "line": 297, - "column": 8 + "column": 14 }, "end": { "line": 297, - "column": 9 + "column": 15 } } }, @@ -31234,23 +31369,23 @@ "updateContext": null }, "value": "this", - "start": 6828, - "end": 6832, + "start": 6834, + "end": 6838, "loc": { "start": { - "line": 298, - "column": 6 + "line": 297, + "column": 16 }, "end": { - "line": 298, - "column": 10 + "line": 297, + "column": 20 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -31260,16 +31395,16 @@ "binop": null, "updateContext": null }, - "start": 6832, - "end": 6833, + "start": 6838, + "end": 6839, "loc": { "start": { - "line": 298, - "column": 10 + "line": 297, + "column": 20 }, "end": { - "line": 298, - "column": 11 + "line": 297, + "column": 21 } } }, @@ -31285,51 +31420,49 @@ "postfix": false, "binop": null }, - "value": "loading", - "start": 6833, - "end": 6840, + "value": "response", + "start": 6848, + "end": 6856, "loc": { "start": { "line": 298, - "column": 11 + "column": 8 }, "end": { "line": 298, - "column": 18 + "column": 16 } } }, { "type": { - "label": "=", + "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 6841, - "end": 6842, + "start": 6856, + "end": 6857, "loc": { "start": { "line": 298, - "column": 19 + "column": 16 }, "end": { "line": 298, - "column": 20 + "column": 17 } } }, { "type": { - "label": "false", - "keyword": "false", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -31337,20 +31470,95 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null + }, + "value": "updatedResponse", + "start": 6858, + "end": 6873, + "loc": { + "start": { + "line": 298, + "column": 18 + }, + "end": { + "line": 298, + "column": 33 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "value": "false", - "start": 6843, - "end": 6848, + "start": 6873, + "end": 6874, "loc": { "start": { "line": 298, - "column": 21 + "column": 33 }, "end": { "line": 298, - "column": 26 + "column": 34 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6881, + "end": 6882, + "loc": { + "start": { + "line": 299, + "column": 6 + }, + "end": { + "line": 299, + "column": 7 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6882, + "end": 6883, + "loc": { + "start": { + "line": 299, + "column": 7 + }, + "end": { + "line": 299, + "column": 8 } } }, @@ -31367,16 +31575,16 @@ "binop": null, "updateContext": null }, - "start": 6848, - "end": 6849, + "start": 6883, + "end": 6884, "loc": { "start": { - "line": 298, - "column": 26 + "line": 299, + "column": 8 }, "end": { - "line": 298, - "column": 27 + "line": 299, + "column": 9 } } }, @@ -31395,15 +31603,15 @@ "updateContext": null }, "value": "return", - "start": 6856, - "end": 6862, + "start": 6891, + "end": 6897, "loc": { "start": { - "line": 299, + "line": 300, "column": 6 }, "end": { - "line": 299, + "line": 300, "column": 12 } } @@ -31421,15 +31629,15 @@ "binop": null }, "value": "updatedResponse", - "start": 6863, - "end": 6878, + "start": 6898, + "end": 6913, "loc": { "start": { - "line": 299, + "line": 300, "column": 13 }, "end": { - "line": 299, + "line": 300, "column": 28 } } @@ -31447,15 +31655,15 @@ "binop": null, "updateContext": null }, - "start": 6878, - "end": 6879, + "start": 6913, + "end": 6914, "loc": { "start": { - "line": 299, + "line": 300, "column": 28 }, "end": { - "line": 299, + "line": 300, "column": 29 } } @@ -31472,15 +31680,15 @@ "postfix": false, "binop": null }, - "start": 6884, - "end": 6885, + "start": 6919, + "end": 6920, "loc": { "start": { - "line": 300, + "line": 301, "column": 4 }, "end": { - "line": 300, + "line": 301, "column": 5 } } @@ -31500,15 +31708,15 @@ "updateContext": null }, "value": "catch", - "start": 6886, - "end": 6891, + "start": 6921, + "end": 6926, "loc": { "start": { - "line": 300, + "line": 301, "column": 6 }, "end": { - "line": 300, + "line": 301, "column": 11 } } @@ -31525,15 +31733,15 @@ "postfix": false, "binop": null }, - "start": 6892, - "end": 6893, + "start": 6927, + "end": 6928, "loc": { "start": { - "line": 300, + "line": 301, "column": 12 }, "end": { - "line": 300, + "line": 301, "column": 13 } } @@ -31551,15 +31759,15 @@ "binop": null }, "value": "ex", - "start": 6893, - "end": 6895, + "start": 6928, + "end": 6930, "loc": { "start": { - "line": 300, + "line": 301, "column": 13 }, "end": { - "line": 300, + "line": 301, "column": 15 } } @@ -31576,15 +31784,15 @@ "postfix": false, "binop": null }, - "start": 6895, - "end": 6896, + "start": 6930, + "end": 6931, "loc": { "start": { - "line": 300, + "line": 301, "column": 15 }, "end": { - "line": 300, + "line": 301, "column": 16 } } @@ -31601,15 +31809,15 @@ "postfix": false, "binop": null }, - "start": 6897, - "end": 6898, + "start": 6932, + "end": 6933, "loc": { "start": { - "line": 300, + "line": 301, "column": 17 }, "end": { - "line": 300, + "line": 301, "column": 18 } } @@ -31629,15 +31837,15 @@ "updateContext": null }, "value": "this", - "start": 6905, - "end": 6909, + "start": 6940, + "end": 6944, "loc": { "start": { - "line": 301, + "line": 302, "column": 6 }, "end": { - "line": 301, + "line": 302, "column": 10 } } @@ -31655,15 +31863,15 @@ "binop": null, "updateContext": null }, - "start": 6909, - "end": 6910, + "start": 6944, + "end": 6945, "loc": { "start": { - "line": 301, + "line": 302, "column": 10 }, "end": { - "line": 301, + "line": 302, "column": 11 } } @@ -31681,15 +31889,15 @@ "binop": null }, "value": "loading", - "start": 6910, - "end": 6917, + "start": 6945, + "end": 6952, "loc": { "start": { - "line": 301, + "line": 302, "column": 11 }, "end": { - "line": 301, + "line": 302, "column": 18 } } @@ -31708,15 +31916,15 @@ "updateContext": null }, "value": "=", - "start": 6918, - "end": 6919, + "start": 6953, + "end": 6954, "loc": { "start": { - "line": 301, + "line": 302, "column": 19 }, "end": { - "line": 301, + "line": 302, "column": 20 } } @@ -31736,15 +31944,15 @@ "updateContext": null }, "value": "false", - "start": 6920, - "end": 6925, + "start": 6955, + "end": 6960, "loc": { "start": { - "line": 301, + "line": 302, "column": 21 }, "end": { - "line": 301, + "line": 302, "column": 26 } } @@ -31762,15 +31970,15 @@ "binop": null, "updateContext": null }, - "start": 6925, - "end": 6926, + "start": 6960, + "end": 6961, "loc": { "start": { - "line": 301, + "line": 302, "column": 26 }, "end": { - "line": 301, + "line": 302, "column": 27 } } @@ -31790,15 +31998,15 @@ "updateContext": null }, "value": "throw", - "start": 6933, - "end": 6938, + "start": 6968, + "end": 6973, "loc": { "start": { - "line": 302, + "line": 303, "column": 6 }, "end": { - "line": 302, + "line": 303, "column": 11 } } @@ -31816,15 +32024,15 @@ "binop": null }, "value": "ex", - "start": 6939, - "end": 6941, + "start": 6974, + "end": 6976, "loc": { "start": { - "line": 302, + "line": 303, "column": 12 }, "end": { - "line": 302, + "line": 303, "column": 14 } } @@ -31842,15 +32050,15 @@ "binop": null, "updateContext": null }, - "start": 6941, - "end": 6942, + "start": 6976, + "end": 6977, "loc": { "start": { - "line": 302, + "line": 303, "column": 14 }, "end": { - "line": 302, + "line": 303, "column": 15 } } @@ -31867,15 +32075,15 @@ "postfix": false, "binop": null }, - "start": 6947, - "end": 6948, + "start": 6982, + "end": 6983, "loc": { "start": { - "line": 303, + "line": 304, "column": 4 }, "end": { - "line": 303, + "line": 304, "column": 5 } } @@ -31892,15 +32100,15 @@ "postfix": false, "binop": null }, - "start": 6951, - "end": 6952, + "start": 6986, + "end": 6987, "loc": { "start": { - "line": 304, + "line": 305, "column": 2 }, "end": { - "line": 304, + "line": 305, "column": 3 } } @@ -31908,15 +32116,15 @@ { "type": "CommentBlock", "value": "*\n * Traverse to the specified page, and update the datasource accordingly.\n * @access public\n * @param {Number} pageNum - The new page to traverse to.\n * @return {Promise} A promise with a boolean data. True if\n * successfully traversed to specified page.\n * False otherwise.\n ", - "start": 6956, - "end": 7289, + "start": 6991, + "end": 7324, "loc": { "start": { - "line": 306, + "line": 307, "column": 2 }, "end": { - "line": 313, + "line": 314, "column": 5 } } @@ -31934,15 +32142,15 @@ "binop": null }, "value": "async", - "start": 7292, - "end": 7297, + "start": 7327, + "end": 7332, "loc": { "start": { - "line": 314, + "line": 315, "column": 2 }, "end": { - "line": 314, + "line": 315, "column": 7 } } @@ -31960,15 +32168,15 @@ "binop": null }, "value": "goToPage", - "start": 7298, - "end": 7306, + "start": 7333, + "end": 7341, "loc": { "start": { - "line": 314, + "line": 315, "column": 8 }, "end": { - "line": 314, + "line": 315, "column": 16 } } @@ -31985,15 +32193,15 @@ "postfix": false, "binop": null }, - "start": 7306, - "end": 7307, + "start": 7341, + "end": 7342, "loc": { "start": { - "line": 314, + "line": 315, "column": 16 }, "end": { - "line": 314, + "line": 315, "column": 17 } } @@ -32011,15 +32219,15 @@ "binop": null }, "value": "pageNum", - "start": 7307, - "end": 7314, + "start": 7342, + "end": 7349, "loc": { "start": { - "line": 314, + "line": 315, "column": 17 }, "end": { - "line": 314, + "line": 315, "column": 24 } } @@ -32036,15 +32244,15 @@ "postfix": false, "binop": null }, - "start": 7314, - "end": 7315, + "start": 7349, + "end": 7350, "loc": { "start": { - "line": 314, + "line": 315, "column": 24 }, "end": { - "line": 314, + "line": 315, "column": 25 } } @@ -32061,15 +32269,15 @@ "postfix": false, "binop": null }, - "start": 7316, - "end": 7317, + "start": 7351, + "end": 7352, "loc": { "start": { - "line": 314, + "line": 315, "column": 26 }, "end": { - "line": 314, + "line": 315, "column": 27 } } @@ -32089,15 +32297,15 @@ "updateContext": null }, "value": "if", - "start": 7322, - "end": 7324, + "start": 7357, + "end": 7359, "loc": { "start": { - "line": 315, + "line": 316, "column": 4 }, "end": { - "line": 315, + "line": 316, "column": 6 } } @@ -32114,15 +32322,15 @@ "postfix": false, "binop": null }, - "start": 7325, - "end": 7326, + "start": 7360, + "end": 7361, "loc": { "start": { - "line": 315, + "line": 316, "column": 7 }, "end": { - "line": 315, + "line": 316, "column": 8 } } @@ -32140,15 +32348,15 @@ "binop": null }, "value": "pageNum", - "start": 7326, - "end": 7333, + "start": 7361, + "end": 7368, "loc": { "start": { - "line": 315, + "line": 316, "column": 8 }, "end": { - "line": 315, + "line": 316, "column": 15 } } @@ -32167,15 +32375,15 @@ "updateContext": null }, "value": ">", - "start": 7334, - "end": 7335, + "start": 7369, + "end": 7370, "loc": { "start": { - "line": 315, + "line": 316, "column": 16 }, "end": { - "line": 315, + "line": 316, "column": 17 } } @@ -32194,15 +32402,15 @@ "updateContext": null }, "value": 0, - "start": 7336, - "end": 7337, + "start": 7371, + "end": 7372, "loc": { "start": { - "line": 315, + "line": 316, "column": 18 }, "end": { - "line": 315, + "line": 316, "column": 19 } } @@ -32221,15 +32429,15 @@ "updateContext": null }, "value": "&&", - "start": 7338, - "end": 7340, + "start": 7373, + "end": 7375, "loc": { "start": { - "line": 315, + "line": 316, "column": 20 }, "end": { - "line": 315, + "line": 316, "column": 22 } } @@ -32247,15 +32455,15 @@ "binop": null }, "value": "pageNum", - "start": 7341, - "end": 7348, + "start": 7376, + "end": 7383, "loc": { "start": { - "line": 315, + "line": 316, "column": 23 }, "end": { - "line": 315, + "line": 316, "column": 30 } } @@ -32274,15 +32482,15 @@ "updateContext": null }, "value": "<=", - "start": 7349, - "end": 7351, + "start": 7384, + "end": 7386, "loc": { "start": { - "line": 315, + "line": 316, "column": 31 }, "end": { - "line": 315, + "line": 316, "column": 33 } } @@ -32302,15 +32510,15 @@ "updateContext": null }, "value": "this", - "start": 7352, - "end": 7356, + "start": 7387, + "end": 7391, "loc": { "start": { - "line": 315, + "line": 316, "column": 34 }, "end": { - "line": 315, + "line": 316, "column": 38 } } @@ -32328,15 +32536,15 @@ "binop": null, "updateContext": null }, - "start": 7356, - "end": 7357, + "start": 7391, + "end": 7392, "loc": { "start": { - "line": 315, + "line": 316, "column": 38 }, "end": { - "line": 315, + "line": 316, "column": 39 } } @@ -32354,15 +32562,15 @@ "binop": null }, "value": "totalPages", - "start": 7357, - "end": 7367, + "start": 7392, + "end": 7402, "loc": { "start": { - "line": 315, + "line": 316, "column": 39 }, "end": { - "line": 315, + "line": 316, "column": 49 } } @@ -32379,15 +32587,15 @@ "postfix": false, "binop": null }, - "start": 7367, - "end": 7368, + "start": 7402, + "end": 7403, "loc": { "start": { - "line": 315, + "line": 316, "column": 49 }, "end": { - "line": 315, + "line": 316, "column": 50 } } @@ -32404,15 +32612,15 @@ "postfix": false, "binop": null }, - "start": 7369, - "end": 7370, + "start": 7404, + "end": 7405, "loc": { "start": { - "line": 315, + "line": 316, "column": 51 }, "end": { - "line": 315, + "line": 316, "column": 52 } } @@ -32432,15 +32640,15 @@ "updateContext": null }, "value": "this", - "start": 7377, - "end": 7381, + "start": 7412, + "end": 7416, "loc": { "start": { - "line": 316, + "line": 317, "column": 6 }, "end": { - "line": 316, + "line": 317, "column": 10 } } @@ -32458,15 +32666,15 @@ "binop": null, "updateContext": null }, - "start": 7381, - "end": 7382, + "start": 7416, + "end": 7417, "loc": { "start": { - "line": 316, + "line": 317, "column": 10 }, "end": { - "line": 316, + "line": 317, "column": 11 } } @@ -32484,15 +32692,15 @@ "binop": null }, "value": "page", - "start": 7382, - "end": 7386, + "start": 7417, + "end": 7421, "loc": { "start": { - "line": 316, + "line": 317, "column": 11 }, "end": { - "line": 316, + "line": 317, "column": 15 } } @@ -32511,15 +32719,15 @@ "updateContext": null }, "value": "=", - "start": 7387, - "end": 7388, + "start": 7422, + "end": 7423, "loc": { "start": { - "line": 316, + "line": 317, "column": 16 }, "end": { - "line": 316, + "line": 317, "column": 17 } } @@ -32537,15 +32745,15 @@ "binop": null }, "value": "pageNum", - "start": 7389, - "end": 7396, + "start": 7424, + "end": 7431, "loc": { "start": { - "line": 316, + "line": 317, "column": 18 }, "end": { - "line": 316, + "line": 317, "column": 25 } } @@ -32563,15 +32771,15 @@ "binop": null, "updateContext": null }, - "start": 7396, - "end": 7397, + "start": 7431, + "end": 7432, "loc": { "start": { - "line": 316, + "line": 317, "column": 25 }, "end": { - "line": 316, + "line": 317, "column": 26 } } @@ -32589,15 +32797,15 @@ "binop": null }, "value": "await", - "start": 7404, - "end": 7409, + "start": 7439, + "end": 7444, "loc": { "start": { - "line": 317, + "line": 318, "column": 6 }, "end": { - "line": 317, + "line": 318, "column": 11 } } @@ -32617,15 +32825,15 @@ "updateContext": null }, "value": "this", - "start": 7410, - "end": 7414, + "start": 7445, + "end": 7449, "loc": { "start": { - "line": 317, + "line": 318, "column": 12 }, "end": { - "line": 317, + "line": 318, "column": 16 } } @@ -32643,15 +32851,15 @@ "binop": null, "updateContext": null }, - "start": 7414, - "end": 7415, + "start": 7449, + "end": 7450, "loc": { "start": { - "line": 317, + "line": 318, "column": 16 }, "end": { - "line": 317, + "line": 318, "column": 17 } } @@ -32669,15 +32877,15 @@ "binop": null }, "value": "update", - "start": 7415, - "end": 7421, + "start": 7450, + "end": 7456, "loc": { "start": { - "line": 317, + "line": 318, "column": 17 }, "end": { - "line": 317, + "line": 318, "column": 23 } } @@ -32694,15 +32902,15 @@ "postfix": false, "binop": null }, - "start": 7421, - "end": 7422, + "start": 7456, + "end": 7457, "loc": { "start": { - "line": 317, + "line": 318, "column": 23 }, "end": { - "line": 317, + "line": 318, "column": 24 } } @@ -32719,15 +32927,15 @@ "postfix": false, "binop": null }, - "start": 7422, - "end": 7423, + "start": 7457, + "end": 7458, "loc": { "start": { - "line": 317, + "line": 318, "column": 24 }, "end": { - "line": 317, + "line": 318, "column": 25 } } @@ -32745,15 +32953,15 @@ "binop": null, "updateContext": null }, - "start": 7423, - "end": 7424, + "start": 7458, + "end": 7459, "loc": { "start": { - "line": 317, + "line": 318, "column": 25 }, "end": { - "line": 317, + "line": 318, "column": 26 } } @@ -32773,15 +32981,15 @@ "updateContext": null }, "value": "return", - "start": 7431, - "end": 7437, + "start": 7466, + "end": 7472, "loc": { "start": { - "line": 318, + "line": 319, "column": 6 }, "end": { - "line": 318, + "line": 319, "column": 12 } } @@ -32801,15 +33009,15 @@ "updateContext": null }, "value": "true", - "start": 7438, - "end": 7442, + "start": 7473, + "end": 7477, "loc": { "start": { - "line": 318, + "line": 319, "column": 13 }, "end": { - "line": 318, + "line": 319, "column": 17 } } @@ -32827,15 +33035,15 @@ "binop": null, "updateContext": null }, - "start": 7442, - "end": 7443, + "start": 7477, + "end": 7478, "loc": { "start": { - "line": 318, + "line": 319, "column": 17 }, "end": { - "line": 318, + "line": 319, "column": 18 } } @@ -32852,15 +33060,15 @@ "postfix": false, "binop": null }, - "start": 7448, - "end": 7449, + "start": 7483, + "end": 7484, "loc": { "start": { - "line": 319, + "line": 320, "column": 4 }, "end": { - "line": 319, + "line": 320, "column": 5 } } @@ -32880,15 +33088,15 @@ "updateContext": null }, "value": "return", - "start": 7454, - "end": 7460, + "start": 7489, + "end": 7495, "loc": { "start": { - "line": 320, + "line": 321, "column": 4 }, "end": { - "line": 320, + "line": 321, "column": 10 } } @@ -32908,15 +33116,15 @@ "updateContext": null }, "value": "false", - "start": 7461, - "end": 7466, + "start": 7496, + "end": 7501, "loc": { "start": { - "line": 320, + "line": 321, "column": 11 }, "end": { - "line": 320, + "line": 321, "column": 16 } } @@ -32934,15 +33142,15 @@ "binop": null, "updateContext": null }, - "start": 7466, - "end": 7467, + "start": 7501, + "end": 7502, "loc": { "start": { - "line": 320, + "line": 321, "column": 16 }, "end": { - "line": 320, + "line": 321, "column": 17 } } @@ -32959,15 +33167,15 @@ "postfix": false, "binop": null }, - "start": 7470, - "end": 7471, + "start": 7505, + "end": 7506, "loc": { "start": { - "line": 321, + "line": 322, "column": 2 }, "end": { - "line": 321, + "line": 322, "column": 3 } } @@ -32975,15 +33183,15 @@ { "type": "CommentBlock", "value": "*\n * Traverse to the next page, and update the datasource accordingly.\n * @return {Promise} A promise with a boolean data. True if\n * successfully traversed to next page.\n * False otherwise.\n ", - "start": 7475, - "end": 7717, + "start": 7510, + "end": 7752, "loc": { "start": { - "line": 323, + "line": 324, "column": 2 }, "end": { - "line": 328, + "line": 329, "column": 5 } } @@ -33001,15 +33209,15 @@ "binop": null }, "value": "async", - "start": 7720, - "end": 7725, + "start": 7755, + "end": 7760, "loc": { "start": { - "line": 329, + "line": 330, "column": 2 }, "end": { - "line": 329, + "line": 330, "column": 7 } } @@ -33027,15 +33235,15 @@ "binop": null }, "value": "nextPage", - "start": 7726, - "end": 7734, + "start": 7761, + "end": 7769, "loc": { "start": { - "line": 329, + "line": 330, "column": 8 }, "end": { - "line": 329, + "line": 330, "column": 16 } } @@ -33052,15 +33260,15 @@ "postfix": false, "binop": null }, - "start": 7734, - "end": 7735, + "start": 7769, + "end": 7770, "loc": { "start": { - "line": 329, + "line": 330, "column": 16 }, "end": { - "line": 329, + "line": 330, "column": 17 } } @@ -33077,15 +33285,15 @@ "postfix": false, "binop": null }, - "start": 7735, - "end": 7736, + "start": 7770, + "end": 7771, "loc": { "start": { - "line": 329, + "line": 330, "column": 17 }, "end": { - "line": 329, + "line": 330, "column": 18 } } @@ -33102,15 +33310,15 @@ "postfix": false, "binop": null }, - "start": 7737, - "end": 7738, + "start": 7772, + "end": 7773, "loc": { "start": { - "line": 329, + "line": 330, "column": 19 }, "end": { - "line": 329, + "line": 330, "column": 20 } } @@ -33130,15 +33338,15 @@ "updateContext": null }, "value": "return", - "start": 7743, - "end": 7749, + "start": 7778, + "end": 7784, "loc": { "start": { - "line": 330, + "line": 331, "column": 4 }, "end": { - "line": 330, + "line": 331, "column": 10 } } @@ -33158,15 +33366,15 @@ "updateContext": null }, "value": "this", - "start": 7750, - "end": 7754, + "start": 7785, + "end": 7789, "loc": { "start": { - "line": 330, + "line": 331, "column": 11 }, "end": { - "line": 330, + "line": 331, "column": 15 } } @@ -33184,15 +33392,15 @@ "binop": null, "updateContext": null }, - "start": 7754, - "end": 7755, + "start": 7789, + "end": 7790, "loc": { "start": { - "line": 330, + "line": 331, "column": 15 }, "end": { - "line": 330, + "line": 331, "column": 16 } } @@ -33210,15 +33418,15 @@ "binop": null }, "value": "goToPage", - "start": 7755, - "end": 7763, + "start": 7790, + "end": 7798, "loc": { "start": { - "line": 330, + "line": 331, "column": 16 }, "end": { - "line": 330, + "line": 331, "column": 24 } } @@ -33235,15 +33443,15 @@ "postfix": false, "binop": null }, - "start": 7763, - "end": 7764, + "start": 7798, + "end": 7799, "loc": { "start": { - "line": 330, + "line": 331, "column": 24 }, "end": { - "line": 330, + "line": 331, "column": 25 } } @@ -33263,15 +33471,15 @@ "updateContext": null }, "value": "this", - "start": 7764, - "end": 7768, + "start": 7799, + "end": 7803, "loc": { "start": { - "line": 330, + "line": 331, "column": 25 }, "end": { - "line": 330, + "line": 331, "column": 29 } } @@ -33289,15 +33497,15 @@ "binop": null, "updateContext": null }, - "start": 7768, - "end": 7769, + "start": 7803, + "end": 7804, "loc": { "start": { - "line": 330, + "line": 331, "column": 29 }, "end": { - "line": 330, + "line": 331, "column": 30 } } @@ -33315,15 +33523,15 @@ "binop": null }, "value": "page", - "start": 7769, - "end": 7773, + "start": 7804, + "end": 7808, "loc": { "start": { - "line": 330, + "line": 331, "column": 30 }, "end": { - "line": 330, + "line": 331, "column": 34 } } @@ -33342,15 +33550,15 @@ "updateContext": null }, "value": "+", - "start": 7774, - "end": 7775, + "start": 7809, + "end": 7810, "loc": { "start": { - "line": 330, + "line": 331, "column": 35 }, "end": { - "line": 330, + "line": 331, "column": 36 } } @@ -33369,15 +33577,15 @@ "updateContext": null }, "value": 1, - "start": 7776, - "end": 7777, + "start": 7811, + "end": 7812, "loc": { "start": { - "line": 330, + "line": 331, "column": 37 }, "end": { - "line": 330, + "line": 331, "column": 38 } } @@ -33394,15 +33602,15 @@ "postfix": false, "binop": null }, - "start": 7777, - "end": 7778, + "start": 7812, + "end": 7813, "loc": { "start": { - "line": 330, + "line": 331, "column": 38 }, "end": { - "line": 330, + "line": 331, "column": 39 } } @@ -33420,15 +33628,15 @@ "binop": null, "updateContext": null }, - "start": 7778, - "end": 7779, + "start": 7813, + "end": 7814, "loc": { "start": { - "line": 330, + "line": 331, "column": 39 }, "end": { - "line": 330, + "line": 331, "column": 40 } } @@ -33445,15 +33653,15 @@ "postfix": false, "binop": null }, - "start": 7782, - "end": 7783, + "start": 7817, + "end": 7818, "loc": { "start": { - "line": 331, + "line": 332, "column": 2 }, "end": { - "line": 331, + "line": 332, "column": 3 } } @@ -33461,15 +33669,15 @@ { "type": "CommentBlock", "value": "*\n * Traverse to the previous page, and update the datasource accordingly.\n * @access public\n * @return {Promise} A promise with a boolean data. True if\n * successfully traversed to previous page.\n * False otherwise.\n ", - "start": 7787, - "end": 8057, + "start": 7822, + "end": 8092, "loc": { "start": { - "line": 333, + "line": 334, "column": 2 }, "end": { - "line": 339, + "line": 340, "column": 5 } } @@ -33487,15 +33695,15 @@ "binop": null }, "value": "async", - "start": 8060, - "end": 8065, + "start": 8095, + "end": 8100, "loc": { "start": { - "line": 340, + "line": 341, "column": 2 }, "end": { - "line": 340, + "line": 341, "column": 7 } } @@ -33513,15 +33721,15 @@ "binop": null }, "value": "prevPage", - "start": 8066, - "end": 8074, + "start": 8101, + "end": 8109, "loc": { "start": { - "line": 340, + "line": 341, "column": 8 }, "end": { - "line": 340, + "line": 341, "column": 16 } } @@ -33538,15 +33746,15 @@ "postfix": false, "binop": null }, - "start": 8074, - "end": 8075, + "start": 8109, + "end": 8110, "loc": { "start": { - "line": 340, + "line": 341, "column": 16 }, "end": { - "line": 340, + "line": 341, "column": 17 } } @@ -33563,15 +33771,15 @@ "postfix": false, "binop": null }, - "start": 8075, - "end": 8076, + "start": 8110, + "end": 8111, "loc": { "start": { - "line": 340, + "line": 341, "column": 17 }, "end": { - "line": 340, + "line": 341, "column": 18 } } @@ -33588,15 +33796,15 @@ "postfix": false, "binop": null }, - "start": 8077, - "end": 8078, + "start": 8112, + "end": 8113, "loc": { "start": { - "line": 340, + "line": 341, "column": 19 }, "end": { - "line": 340, + "line": 341, "column": 20 } } @@ -33616,15 +33824,15 @@ "updateContext": null }, "value": "return", - "start": 8083, - "end": 8089, + "start": 8118, + "end": 8124, "loc": { "start": { - "line": 341, + "line": 342, "column": 4 }, "end": { - "line": 341, + "line": 342, "column": 10 } } @@ -33644,15 +33852,15 @@ "updateContext": null }, "value": "this", - "start": 8090, - "end": 8094, + "start": 8125, + "end": 8129, "loc": { "start": { - "line": 341, + "line": 342, "column": 11 }, "end": { - "line": 341, + "line": 342, "column": 15 } } @@ -33670,15 +33878,15 @@ "binop": null, "updateContext": null }, - "start": 8094, - "end": 8095, + "start": 8129, + "end": 8130, "loc": { "start": { - "line": 341, + "line": 342, "column": 15 }, "end": { - "line": 341, + "line": 342, "column": 16 } } @@ -33696,15 +33904,15 @@ "binop": null }, "value": "goToPage", - "start": 8095, - "end": 8103, + "start": 8130, + "end": 8138, "loc": { "start": { - "line": 341, + "line": 342, "column": 16 }, "end": { - "line": 341, + "line": 342, "column": 24 } } @@ -33721,15 +33929,15 @@ "postfix": false, "binop": null }, - "start": 8103, - "end": 8104, + "start": 8138, + "end": 8139, "loc": { "start": { - "line": 341, + "line": 342, "column": 24 }, "end": { - "line": 341, + "line": 342, "column": 25 } } @@ -33749,15 +33957,15 @@ "updateContext": null }, "value": "this", - "start": 8104, - "end": 8108, + "start": 8139, + "end": 8143, "loc": { "start": { - "line": 341, + "line": 342, "column": 25 }, "end": { - "line": 341, + "line": 342, "column": 29 } } @@ -33775,15 +33983,15 @@ "binop": null, "updateContext": null }, - "start": 8108, - "end": 8109, + "start": 8143, + "end": 8144, "loc": { "start": { - "line": 341, + "line": 342, "column": 29 }, "end": { - "line": 341, + "line": 342, "column": 30 } } @@ -33801,15 +34009,15 @@ "binop": null }, "value": "page", - "start": 8109, - "end": 8113, + "start": 8144, + "end": 8148, "loc": { "start": { - "line": 341, + "line": 342, "column": 30 }, "end": { - "line": 341, + "line": 342, "column": 34 } } @@ -33828,15 +34036,15 @@ "updateContext": null }, "value": "-", - "start": 8114, - "end": 8115, + "start": 8149, + "end": 8150, "loc": { "start": { - "line": 341, + "line": 342, "column": 35 }, "end": { - "line": 341, + "line": 342, "column": 36 } } @@ -33855,15 +34063,15 @@ "updateContext": null }, "value": 1, - "start": 8116, - "end": 8117, + "start": 8151, + "end": 8152, "loc": { "start": { - "line": 341, + "line": 342, "column": 37 }, "end": { - "line": 341, + "line": 342, "column": 38 } } @@ -33880,15 +34088,15 @@ "postfix": false, "binop": null }, - "start": 8117, - "end": 8118, + "start": 8152, + "end": 8153, "loc": { "start": { - "line": 341, + "line": 342, "column": 38 }, "end": { - "line": 341, + "line": 342, "column": 39 } } @@ -33906,15 +34114,15 @@ "binop": null, "updateContext": null }, - "start": 8118, - "end": 8119, + "start": 8153, + "end": 8154, "loc": { "start": { - "line": 341, + "line": 342, "column": 39 }, "end": { - "line": 341, + "line": 342, "column": 40 } } @@ -33931,15 +34139,15 @@ "postfix": false, "binop": null }, - "start": 8122, - "end": 8123, + "start": 8157, + "end": 8158, "loc": { "start": { - "line": 342, + "line": 343, "column": 2 }, "end": { - "line": 342, + "line": 343, "column": 3 } } @@ -33947,15 +34155,15 @@ { "type": "CommentBlock", "value": "*\n * Given a search text, filters the data accordingly.\n * @access public\n * @param {String} searchArguments - The search text to filter with, or\n * the search arguments object to filter\n * with specific column filtering.\n * @return {Promise} A promise object, resolved when the search is completed.\n ", - "start": 8127, - "end": 8517, + "start": 8162, + "end": 8552, "loc": { "start": { - "line": 344, + "line": 345, "column": 2 }, "end": { - "line": 351, + "line": 352, "column": 5 } } @@ -33973,15 +34181,15 @@ "binop": null }, "value": "async", - "start": 8520, - "end": 8525, + "start": 8555, + "end": 8560, "loc": { "start": { - "line": 352, + "line": 353, "column": 2 }, "end": { - "line": 352, + "line": 353, "column": 7 } } @@ -33999,15 +34207,15 @@ "binop": null }, "value": "search", - "start": 8526, - "end": 8532, + "start": 8561, + "end": 8567, "loc": { "start": { - "line": 352, + "line": 353, "column": 8 }, "end": { - "line": 352, + "line": 353, "column": 14 } } @@ -34024,15 +34232,15 @@ "postfix": false, "binop": null }, - "start": 8532, - "end": 8533, + "start": 8567, + "end": 8568, "loc": { "start": { - "line": 352, + "line": 353, "column": 14 }, "end": { - "line": 352, + "line": 353, "column": 15 } } @@ -34050,15 +34258,15 @@ "binop": null }, "value": "searchArguments", - "start": 8533, - "end": 8548, + "start": 8568, + "end": 8583, "loc": { "start": { - "line": 352, + "line": 353, "column": 15 }, "end": { - "line": 352, + "line": 353, "column": 30 } } @@ -34075,15 +34283,15 @@ "postfix": false, "binop": null }, - "start": 8548, - "end": 8549, + "start": 8583, + "end": 8584, "loc": { "start": { - "line": 352, + "line": 353, "column": 30 }, "end": { - "line": 352, + "line": 353, "column": 31 } } @@ -34100,15 +34308,15 @@ "postfix": false, "binop": null }, - "start": 8550, - "end": 8551, + "start": 8585, + "end": 8586, "loc": { "start": { - "line": 352, + "line": 353, "column": 32 }, "end": { - "line": 352, + "line": 353, "column": 33 } } @@ -34128,15 +34336,15 @@ "updateContext": null }, "value": "this", - "start": 8556, - "end": 8560, + "start": 8591, + "end": 8595, "loc": { "start": { - "line": 353, + "line": 354, "column": 4 }, "end": { - "line": 353, + "line": 354, "column": 8 } } @@ -34154,15 +34362,15 @@ "binop": null, "updateContext": null }, - "start": 8560, - "end": 8561, + "start": 8595, + "end": 8596, "loc": { "start": { - "line": 353, + "line": 354, "column": 8 }, "end": { - "line": 353, + "line": 354, "column": 9 } } @@ -34180,15 +34388,15 @@ "binop": null }, "value": "searchText", - "start": 8561, - "end": 8571, + "start": 8596, + "end": 8606, "loc": { "start": { - "line": 353, + "line": 354, "column": 9 }, "end": { - "line": 353, + "line": 354, "column": 19 } } @@ -34207,15 +34415,15 @@ "updateContext": null }, "value": "=", - "start": 8572, - "end": 8573, + "start": 8607, + "end": 8608, "loc": { "start": { - "line": 353, + "line": 354, "column": 20 }, "end": { - "line": 353, + "line": 354, "column": 21 } } @@ -34235,15 +34443,15 @@ "updateContext": null }, "value": "null", - "start": 8574, - "end": 8578, + "start": 8609, + "end": 8613, "loc": { "start": { - "line": 353, + "line": 354, "column": 22 }, "end": { - "line": 353, + "line": 354, "column": 26 } } @@ -34261,15 +34469,15 @@ "binop": null, "updateContext": null }, - "start": 8578, - "end": 8579, + "start": 8613, + "end": 8614, "loc": { "start": { - "line": 353, + "line": 354, "column": 26 }, "end": { - "line": 353, + "line": 354, "column": 27 } } @@ -34289,15 +34497,15 @@ "updateContext": null }, "value": "this", - "start": 8584, - "end": 8588, + "start": 8619, + "end": 8623, "loc": { "start": { - "line": 354, + "line": 355, "column": 4 }, "end": { - "line": 354, + "line": 355, "column": 8 } } @@ -34315,15 +34523,15 @@ "binop": null, "updateContext": null }, - "start": 8588, - "end": 8589, + "start": 8623, + "end": 8624, "loc": { "start": { - "line": 354, + "line": 355, "column": 8 }, "end": { - "line": 354, + "line": 355, "column": 9 } } @@ -34341,15 +34549,15 @@ "binop": null }, "value": "searchArguments", - "start": 8589, - "end": 8604, + "start": 8624, + "end": 8639, "loc": { "start": { - "line": 354, + "line": 355, "column": 9 }, "end": { - "line": 354, + "line": 355, "column": 24 } } @@ -34368,15 +34576,15 @@ "updateContext": null }, "value": "=", - "start": 8605, - "end": 8606, + "start": 8640, + "end": 8641, "loc": { "start": { - "line": 354, + "line": 355, "column": 25 }, "end": { - "line": 354, + "line": 355, "column": 26 } } @@ -34396,15 +34604,15 @@ "updateContext": null }, "value": "null", - "start": 8607, - "end": 8611, + "start": 8642, + "end": 8646, "loc": { "start": { - "line": 354, + "line": 355, "column": 27 }, "end": { - "line": 354, + "line": 355, "column": 31 } } @@ -34422,15 +34630,15 @@ "binop": null, "updateContext": null }, - "start": 8611, - "end": 8612, + "start": 8646, + "end": 8647, "loc": { "start": { - "line": 354, + "line": 355, "column": 31 }, "end": { - "line": 354, + "line": 355, "column": 32 } } @@ -34450,15 +34658,15 @@ "updateContext": null }, "value": "if", - "start": 8617, - "end": 8619, + "start": 8652, + "end": 8654, "loc": { "start": { - "line": 355, + "line": 356, "column": 4 }, "end": { - "line": 355, + "line": 356, "column": 6 } } @@ -34475,15 +34683,15 @@ "postfix": false, "binop": null }, - "start": 8620, - "end": 8621, + "start": 8655, + "end": 8656, "loc": { "start": { - "line": 355, + "line": 356, "column": 7 }, "end": { - "line": 355, + "line": 356, "column": 8 } } @@ -34503,15 +34711,15 @@ "updateContext": null }, "value": "typeof", - "start": 8621, - "end": 8627, + "start": 8656, + "end": 8662, "loc": { "start": { - "line": 355, + "line": 356, "column": 8 }, "end": { - "line": 355, + "line": 356, "column": 14 } } @@ -34529,15 +34737,15 @@ "binop": null }, "value": "searchArguments", - "start": 8628, - "end": 8643, + "start": 8663, + "end": 8678, "loc": { "start": { - "line": 355, + "line": 356, "column": 15 }, "end": { - "line": 355, + "line": 356, "column": 30 } } @@ -34556,15 +34764,15 @@ "updateContext": null }, "value": "===", - "start": 8644, - "end": 8647, + "start": 8679, + "end": 8682, "loc": { "start": { - "line": 355, + "line": 356, "column": 31 }, "end": { - "line": 355, + "line": 356, "column": 34 } } @@ -34583,15 +34791,15 @@ "updateContext": null }, "value": "string", - "start": 8648, - "end": 8656, + "start": 8683, + "end": 8691, "loc": { "start": { - "line": 355, + "line": 356, "column": 35 }, "end": { - "line": 355, + "line": 356, "column": 43 } } @@ -34608,15 +34816,15 @@ "postfix": false, "binop": null }, - "start": 8656, - "end": 8657, + "start": 8691, + "end": 8692, "loc": { "start": { - "line": 355, + "line": 356, "column": 43 }, "end": { - "line": 355, + "line": 356, "column": 44 } } @@ -34633,15 +34841,15 @@ "postfix": false, "binop": null }, - "start": 8658, - "end": 8659, + "start": 8693, + "end": 8694, "loc": { "start": { - "line": 355, + "line": 356, "column": 45 }, "end": { - "line": 355, + "line": 356, "column": 46 } } @@ -34661,15 +34869,15 @@ "updateContext": null }, "value": "this", - "start": 8666, - "end": 8670, + "start": 8701, + "end": 8705, "loc": { "start": { - "line": 356, + "line": 357, "column": 6 }, "end": { - "line": 356, + "line": 357, "column": 10 } } @@ -34687,15 +34895,15 @@ "binop": null, "updateContext": null }, - "start": 8670, - "end": 8671, + "start": 8705, + "end": 8706, "loc": { "start": { - "line": 356, + "line": 357, "column": 10 }, "end": { - "line": 356, + "line": 357, "column": 11 } } @@ -34713,15 +34921,15 @@ "binop": null }, "value": "searchText", - "start": 8671, - "end": 8681, + "start": 8706, + "end": 8716, "loc": { "start": { - "line": 356, + "line": 357, "column": 11 }, "end": { - "line": 356, + "line": 357, "column": 21 } } @@ -34740,15 +34948,15 @@ "updateContext": null }, "value": "=", - "start": 8682, - "end": 8683, + "start": 8717, + "end": 8718, "loc": { "start": { - "line": 356, + "line": 357, "column": 22 }, "end": { - "line": 356, + "line": 357, "column": 23 } } @@ -34766,15 +34974,15 @@ "binop": null }, "value": "searchArguments", - "start": 8684, - "end": 8699, + "start": 8719, + "end": 8734, "loc": { "start": { - "line": 356, + "line": 357, "column": 24 }, "end": { - "line": 356, + "line": 357, "column": 39 } } @@ -34792,15 +35000,15 @@ "binop": null, "updateContext": null }, - "start": 8699, - "end": 8700, + "start": 8734, + "end": 8735, "loc": { "start": { - "line": 356, + "line": 357, "column": 39 }, "end": { - "line": 356, + "line": 357, "column": 40 } } @@ -34817,15 +35025,15 @@ "postfix": false, "binop": null }, - "start": 8705, - "end": 8706, + "start": 8740, + "end": 8741, "loc": { "start": { - "line": 357, + "line": 358, "column": 4 }, "end": { - "line": 357, + "line": 358, "column": 5 } } @@ -34845,15 +35053,15 @@ "updateContext": null }, "value": "else", - "start": 8707, - "end": 8711, + "start": 8742, + "end": 8746, "loc": { "start": { - "line": 357, + "line": 358, "column": 6 }, "end": { - "line": 357, + "line": 358, "column": 10 } } @@ -34870,15 +35078,15 @@ "postfix": false, "binop": null }, - "start": 8712, - "end": 8713, + "start": 8747, + "end": 8748, "loc": { "start": { - "line": 357, + "line": 358, "column": 11 }, "end": { - "line": 357, + "line": 358, "column": 12 } } @@ -34898,15 +35106,15 @@ "updateContext": null }, "value": "this", - "start": 8720, - "end": 8724, + "start": 8755, + "end": 8759, "loc": { "start": { - "line": 358, + "line": 359, "column": 6 }, "end": { - "line": 358, + "line": 359, "column": 10 } } @@ -34924,15 +35132,15 @@ "binop": null, "updateContext": null }, - "start": 8724, - "end": 8725, + "start": 8759, + "end": 8760, "loc": { "start": { - "line": 358, + "line": 359, "column": 10 }, "end": { - "line": 358, + "line": 359, "column": 11 } } @@ -34950,15 +35158,15 @@ "binop": null }, "value": "searchArguments", - "start": 8725, - "end": 8740, + "start": 8760, + "end": 8775, "loc": { "start": { - "line": 358, + "line": 359, "column": 11 }, "end": { - "line": 358, + "line": 359, "column": 26 } } @@ -34977,15 +35185,15 @@ "updateContext": null }, "value": "=", - "start": 8741, - "end": 8742, + "start": 8776, + "end": 8777, "loc": { "start": { - "line": 358, + "line": 359, "column": 27 }, "end": { - "line": 358, + "line": 359, "column": 28 } } @@ -35003,15 +35211,15 @@ "binop": null }, "value": "searchArguments", - "start": 8743, - "end": 8758, + "start": 8778, + "end": 8793, "loc": { "start": { - "line": 358, + "line": 359, "column": 29 }, "end": { - "line": 358, + "line": 359, "column": 44 } } @@ -35029,15 +35237,15 @@ "binop": null, "updateContext": null }, - "start": 8758, - "end": 8759, + "start": 8793, + "end": 8794, "loc": { "start": { - "line": 358, + "line": 359, "column": 44 }, "end": { - "line": 358, + "line": 359, "column": 45 } } @@ -35054,15 +35262,15 @@ "postfix": false, "binop": null }, - "start": 8764, - "end": 8765, + "start": 8799, + "end": 8800, "loc": { "start": { - "line": 359, + "line": 360, "column": 4 }, "end": { - "line": 359, + "line": 360, "column": 5 } } @@ -35082,15 +35290,15 @@ "updateContext": null }, "value": "this", - "start": 8770, - "end": 8774, + "start": 8805, + "end": 8809, "loc": { "start": { - "line": 360, + "line": 361, "column": 4 }, "end": { - "line": 360, + "line": 361, "column": 8 } } @@ -35108,15 +35316,15 @@ "binop": null, "updateContext": null }, - "start": 8774, - "end": 8775, + "start": 8809, + "end": 8810, "loc": { "start": { - "line": 360, + "line": 361, "column": 8 }, "end": { - "line": 360, + "line": 361, "column": 9 } } @@ -35134,15 +35342,15 @@ "binop": null }, "value": "offset", - "start": 8775, - "end": 8781, + "start": 8810, + "end": 8816, "loc": { "start": { - "line": 360, + "line": 361, "column": 9 }, "end": { - "line": 360, + "line": 361, "column": 15 } } @@ -35161,15 +35369,15 @@ "updateContext": null }, "value": "=", - "start": 8782, - "end": 8783, + "start": 8817, + "end": 8818, "loc": { "start": { - "line": 360, + "line": 361, "column": 16 }, "end": { - "line": 360, + "line": 361, "column": 17 } } @@ -35188,15 +35396,15 @@ "updateContext": null }, "value": 0, - "start": 8784, - "end": 8785, + "start": 8819, + "end": 8820, "loc": { "start": { - "line": 360, + "line": 361, "column": 18 }, "end": { - "line": 360, + "line": 361, "column": 19 } } @@ -35214,15 +35422,15 @@ "binop": null, "updateContext": null }, - "start": 8785, - "end": 8786, + "start": 8820, + "end": 8821, "loc": { "start": { - "line": 360, + "line": 361, "column": 19 }, "end": { - "line": 360, + "line": 361, "column": 20 } } @@ -35242,15 +35450,15 @@ "updateContext": null }, "value": "return", - "start": 8791, - "end": 8797, + "start": 8826, + "end": 8832, "loc": { "start": { - "line": 361, + "line": 362, "column": 4 }, "end": { - "line": 361, + "line": 362, "column": 10 } } @@ -35270,15 +35478,15 @@ "updateContext": null }, "value": "this", - "start": 8798, - "end": 8802, + "start": 8833, + "end": 8837, "loc": { "start": { - "line": 361, + "line": 362, "column": 11 }, "end": { - "line": 361, + "line": 362, "column": 15 } } @@ -35296,15 +35504,15 @@ "binop": null, "updateContext": null }, - "start": 8802, - "end": 8803, + "start": 8837, + "end": 8838, "loc": { "start": { - "line": 361, + "line": 362, "column": 15 }, "end": { - "line": 361, + "line": 362, "column": 16 } } @@ -35322,15 +35530,15 @@ "binop": null }, "value": "update", - "start": 8803, - "end": 8809, + "start": 8838, + "end": 8844, "loc": { "start": { - "line": 361, + "line": 362, "column": 16 }, "end": { - "line": 361, + "line": 362, "column": 22 } } @@ -35347,15 +35555,15 @@ "postfix": false, "binop": null }, - "start": 8809, - "end": 8810, + "start": 8844, + "end": 8845, "loc": { "start": { - "line": 361, + "line": 362, "column": 22 }, "end": { - "line": 361, + "line": 362, "column": 23 } } @@ -35372,15 +35580,15 @@ "postfix": false, "binop": null }, - "start": 8810, - "end": 8811, + "start": 8845, + "end": 8846, "loc": { "start": { - "line": 361, + "line": 362, "column": 23 }, "end": { - "line": 361, + "line": 362, "column": 24 } } @@ -35398,15 +35606,15 @@ "binop": null, "updateContext": null }, - "start": 8811, - "end": 8812, + "start": 8846, + "end": 8847, "loc": { "start": { - "line": 361, + "line": 362, "column": 24 }, "end": { - "line": 361, + "line": 362, "column": 25 } } @@ -35423,15 +35631,15 @@ "postfix": false, "binop": null }, - "start": 8815, - "end": 8816, + "start": 8850, + "end": 8851, "loc": { "start": { - "line": 362, + "line": 363, "column": 2 }, "end": { - "line": 362, + "line": 363, "column": 3 } } @@ -35439,15 +35647,15 @@ { "type": "CommentBlock", "value": "*\n * Sort the data based on a field and direction.\n * @access public\n * @param {Object} sortArguments - Object with keys as the field names to sort.\n * The values of the object is the sort direction.\n * The sort direction can be 'asc', 'ascend', 'desc',\n * 'descending'\n * @return {Promise} A promise object, resolved when the sorting is completed.\n ", - "start": 8820, - "end": 9290, + "start": 8855, + "end": 9325, "loc": { "start": { - "line": 364, + "line": 365, "column": 2 }, "end": { - "line": 372, + "line": 373, "column": 5 } } @@ -35465,15 +35673,15 @@ "binop": null }, "value": "async", - "start": 9293, - "end": 9298, + "start": 9328, + "end": 9333, "loc": { "start": { - "line": 373, + "line": 374, "column": 2 }, "end": { - "line": 373, + "line": 374, "column": 7 } } @@ -35491,15 +35699,15 @@ "binop": null }, "value": "sort", - "start": 9299, - "end": 9303, + "start": 9334, + "end": 9338, "loc": { "start": { - "line": 373, + "line": 374, "column": 8 }, "end": { - "line": 373, + "line": 374, "column": 12 } } @@ -35516,15 +35724,15 @@ "postfix": false, "binop": null }, - "start": 9303, - "end": 9304, + "start": 9338, + "end": 9339, "loc": { "start": { - "line": 373, + "line": 374, "column": 12 }, "end": { - "line": 373, + "line": 374, "column": 13 } } @@ -35542,15 +35750,15 @@ "binop": null }, "value": "sortArguments", - "start": 9304, - "end": 9317, + "start": 9339, + "end": 9352, "loc": { "start": { - "line": 373, + "line": 374, "column": 13 }, "end": { - "line": 373, + "line": 374, "column": 26 } } @@ -35569,15 +35777,15 @@ "updateContext": null }, "value": "=", - "start": 9318, - "end": 9319, + "start": 9353, + "end": 9354, "loc": { "start": { - "line": 373, + "line": 374, "column": 27 }, "end": { - "line": 373, + "line": 374, "column": 28 } } @@ -35597,15 +35805,15 @@ "updateContext": null }, "value": "null", - "start": 9320, - "end": 9324, + "start": 9355, + "end": 9359, "loc": { "start": { - "line": 373, + "line": 374, "column": 29 }, "end": { - "line": 373, + "line": 374, "column": 33 } } @@ -35622,15 +35830,15 @@ "postfix": false, "binop": null }, - "start": 9324, - "end": 9325, + "start": 9359, + "end": 9360, "loc": { "start": { - "line": 373, + "line": 374, "column": 33 }, "end": { - "line": 373, + "line": 374, "column": 34 } } @@ -35647,15 +35855,15 @@ "postfix": false, "binop": null }, - "start": 9326, - "end": 9327, + "start": 9361, + "end": 9362, "loc": { "start": { - "line": 373, + "line": 374, "column": 35 }, "end": { - "line": 373, + "line": 374, "column": 36 } } @@ -35675,15 +35883,15 @@ "updateContext": null }, "value": "this", - "start": 9332, - "end": 9336, + "start": 9367, + "end": 9371, "loc": { "start": { - "line": 374, + "line": 375, "column": 4 }, "end": { - "line": 374, + "line": 375, "column": 8 } } @@ -35701,15 +35909,15 @@ "binop": null, "updateContext": null }, - "start": 9336, - "end": 9337, + "start": 9371, + "end": 9372, "loc": { "start": { - "line": 374, + "line": 375, "column": 8 }, "end": { - "line": 374, + "line": 375, "column": 9 } } @@ -35727,15 +35935,15 @@ "binop": null }, "value": "sortArguments", - "start": 9337, - "end": 9350, + "start": 9372, + "end": 9385, "loc": { "start": { - "line": 374, + "line": 375, "column": 9 }, "end": { - "line": 374, + "line": 375, "column": 22 } } @@ -35754,15 +35962,15 @@ "updateContext": null }, "value": "=", - "start": 9351, - "end": 9352, + "start": 9386, + "end": 9387, "loc": { "start": { - "line": 374, + "line": 375, "column": 23 }, "end": { - "line": 374, + "line": 375, "column": 24 } } @@ -35780,15 +35988,15 @@ "binop": null }, "value": "sortArguments", - "start": 9353, - "end": 9366, + "start": 9388, + "end": 9401, "loc": { "start": { - "line": 374, + "line": 375, "column": 25 }, "end": { - "line": 374, + "line": 375, "column": 38 } } @@ -35806,15 +36014,15 @@ "binop": null, "updateContext": null }, - "start": 9366, - "end": 9367, + "start": 9401, + "end": 9402, "loc": { "start": { - "line": 374, + "line": 375, "column": 38 }, "end": { - "line": 374, + "line": 375, "column": 39 } } @@ -35834,15 +36042,15 @@ "updateContext": null }, "value": "return", - "start": 9372, - "end": 9378, + "start": 9407, + "end": 9413, "loc": { "start": { - "line": 375, + "line": 376, "column": 4 }, "end": { - "line": 375, + "line": 376, "column": 10 } } @@ -35862,15 +36070,15 @@ "updateContext": null }, "value": "this", - "start": 9379, - "end": 9383, + "start": 9414, + "end": 9418, "loc": { "start": { - "line": 375, + "line": 376, "column": 11 }, "end": { - "line": 375, + "line": 376, "column": 15 } } @@ -35888,15 +36096,15 @@ "binop": null, "updateContext": null }, - "start": 9383, - "end": 9384, + "start": 9418, + "end": 9419, "loc": { "start": { - "line": 375, + "line": 376, "column": 15 }, "end": { - "line": 375, + "line": 376, "column": 16 } } @@ -35914,15 +36122,15 @@ "binop": null }, "value": "update", - "start": 9384, - "end": 9390, + "start": 9419, + "end": 9425, "loc": { "start": { - "line": 375, + "line": 376, "column": 16 }, "end": { - "line": 375, + "line": 376, "column": 22 } } @@ -35939,15 +36147,15 @@ "postfix": false, "binop": null }, - "start": 9390, - "end": 9391, + "start": 9425, + "end": 9426, "loc": { "start": { - "line": 375, + "line": 376, "column": 22 }, "end": { - "line": 375, + "line": 376, "column": 23 } } @@ -35964,15 +36172,15 @@ "postfix": false, "binop": null }, - "start": 9391, - "end": 9392, + "start": 9426, + "end": 9427, "loc": { "start": { - "line": 375, + "line": 376, "column": 23 }, "end": { - "line": 375, + "line": 376, "column": 24 } } @@ -35990,15 +36198,15 @@ "binop": null, "updateContext": null }, - "start": 9392, - "end": 9393, + "start": 9427, + "end": 9428, "loc": { "start": { - "line": 375, + "line": 376, "column": 24 }, "end": { - "line": 375, + "line": 376, "column": 25 } } @@ -36015,15 +36223,15 @@ "postfix": false, "binop": null }, - "start": 9396, - "end": 9397, + "start": 9431, + "end": 9432, "loc": { "start": { - "line": 376, + "line": 377, "column": 2 }, "end": { - "line": 376, + "line": 377, "column": 3 } } @@ -36040,15 +36248,15 @@ "postfix": false, "binop": null }, - "start": 9398, - "end": 9399, + "start": 9433, + "end": 9434, "loc": { "start": { - "line": 377, + "line": 378, "column": 0 }, "end": { - "line": 377, + "line": 378, "column": 1 } } @@ -36066,15 +36274,15 @@ "binop": null }, "value": "DatasourceBase", - "start": 9401, - "end": 9415, + "start": 9436, + "end": 9450, "loc": { "start": { - "line": 379, + "line": 380, "column": 0 }, "end": { - "line": 379, + "line": 380, "column": 14 } } @@ -36092,15 +36300,15 @@ "binop": null, "updateContext": null }, - "start": 9415, - "end": 9416, + "start": 9450, + "end": 9451, "loc": { "start": { - "line": 379, + "line": 380, "column": 14 }, "end": { - "line": 379, + "line": 380, "column": 15 } } @@ -36118,15 +36326,15 @@ "binop": null }, "value": "prototype", - "start": 9416, - "end": 9425, + "start": 9451, + "end": 9460, "loc": { "start": { - "line": 379, + "line": 380, "column": 15 }, "end": { - "line": 379, + "line": 380, "column": 24 } } @@ -36144,15 +36352,15 @@ "binop": null, "updateContext": null }, - "start": 9425, - "end": 9426, + "start": 9460, + "end": 9461, "loc": { "start": { - "line": 379, + "line": 380, "column": 24 }, "end": { - "line": 379, + "line": 380, "column": 25 } } @@ -36170,15 +36378,15 @@ "binop": null }, "value": "defaults", - "start": 9426, - "end": 9434, + "start": 9461, + "end": 9469, "loc": { "start": { - "line": 379, + "line": 380, "column": 25 }, "end": { - "line": 379, + "line": 380, "column": 33 } } @@ -36197,15 +36405,15 @@ "updateContext": null }, "value": "=", - "start": 9435, - "end": 9436, + "start": 9470, + "end": 9471, "loc": { "start": { - "line": 379, + "line": 380, "column": 34 }, "end": { - "line": 379, + "line": 380, "column": 35 } } @@ -36222,15 +36430,15 @@ "postfix": false, "binop": null }, - "start": 9437, - "end": 9438, + "start": 9472, + "end": 9473, "loc": { "start": { - "line": 379, + "line": 380, "column": 36 }, "end": { - "line": 379, + "line": 380, "column": 37 } } @@ -36248,15 +36456,15 @@ "binop": null }, "value": "loading", - "start": 9441, - "end": 9448, + "start": 9476, + "end": 9483, "loc": { "start": { - "line": 380, + "line": 381, "column": 2 }, "end": { - "line": 380, + "line": 381, "column": 9 } } @@ -36274,15 +36482,15 @@ "binop": null, "updateContext": null }, - "start": 9448, - "end": 9449, + "start": 9483, + "end": 9484, "loc": { "start": { - "line": 380, + "line": 381, "column": 9 }, "end": { - "line": 380, + "line": 381, "column": 10 } } @@ -36302,15 +36510,15 @@ "updateContext": null }, "value": "false", - "start": 9450, - "end": 9455, + "start": 9485, + "end": 9490, "loc": { "start": { - "line": 380, + "line": 381, "column": 11 }, "end": { - "line": 380, + "line": 381, "column": 16 } } @@ -36328,15 +36536,15 @@ "binop": null, "updateContext": null }, - "start": 9455, - "end": 9456, + "start": 9490, + "end": 9491, "loc": { "start": { - "line": 380, + "line": 381, "column": 16 }, "end": { - "line": 380, + "line": 381, "column": 17 } } @@ -36354,15 +36562,15 @@ "binop": null }, "value": "offset", - "start": 9459, - "end": 9465, + "start": 9494, + "end": 9500, "loc": { "start": { - "line": 381, + "line": 382, "column": 2 }, "end": { - "line": 381, + "line": 382, "column": 8 } } @@ -36380,15 +36588,15 @@ "binop": null, "updateContext": null }, - "start": 9465, - "end": 9466, + "start": 9500, + "end": 9501, "loc": { "start": { - "line": 381, + "line": 382, "column": 8 }, "end": { - "line": 381, + "line": 382, "column": 9 } } @@ -36407,15 +36615,15 @@ "updateContext": null }, "value": 0, - "start": 9467, - "end": 9468, + "start": 9502, + "end": 9503, "loc": { "start": { - "line": 381, + "line": 382, "column": 10 }, "end": { - "line": 381, + "line": 382, "column": 11 } } @@ -36433,15 +36641,15 @@ "binop": null, "updateContext": null }, - "start": 9468, - "end": 9469, + "start": 9503, + "end": 9504, "loc": { "start": { - "line": 381, + "line": 382, "column": 11 }, "end": { - "line": 381, + "line": 382, "column": 12 } } @@ -36459,15 +36667,15 @@ "binop": null }, "value": "size", - "start": 9472, - "end": 9476, + "start": 9507, + "end": 9511, "loc": { "start": { - "line": 382, + "line": 383, "column": 2 }, "end": { - "line": 382, + "line": 383, "column": 6 } } @@ -36485,15 +36693,15 @@ "binop": null, "updateContext": null }, - "start": 9476, - "end": 9477, + "start": 9511, + "end": 9512, "loc": { "start": { - "line": 382, + "line": 383, "column": 6 }, "end": { - "line": 382, + "line": 383, "column": 7 } } @@ -36512,15 +36720,15 @@ "updateContext": null }, "value": 10, - "start": 9478, - "end": 9480, + "start": 9513, + "end": 9515, "loc": { "start": { - "line": 382, + "line": 383, "column": 8 }, "end": { - "line": 382, + "line": 383, "column": 10 } } @@ -36538,15 +36746,15 @@ "binop": null, "updateContext": null }, - "start": 9480, - "end": 9481, + "start": 9515, + "end": 9516, "loc": { "start": { - "line": 382, + "line": 383, "column": 10 }, "end": { - "line": 382, + "line": 383, "column": 11 } } @@ -36564,15 +36772,15 @@ "binop": null }, "value": "searchText", - "start": 9484, - "end": 9494, + "start": 9519, + "end": 9529, "loc": { "start": { - "line": 383, + "line": 384, "column": 2 }, "end": { - "line": 383, + "line": 384, "column": 12 } } @@ -36590,15 +36798,15 @@ "binop": null, "updateContext": null }, - "start": 9494, - "end": 9495, + "start": 9529, + "end": 9530, "loc": { "start": { - "line": 383, + "line": 384, "column": 12 }, "end": { - "line": 383, + "line": 384, "column": 13 } } @@ -36618,15 +36826,15 @@ "updateContext": null }, "value": "null", - "start": 9496, - "end": 9500, + "start": 9531, + "end": 9535, "loc": { "start": { - "line": 383, + "line": 384, "column": 14 }, "end": { - "line": 383, + "line": 384, "column": 18 } } @@ -36644,15 +36852,15 @@ "binop": null, "updateContext": null }, - "start": 9500, - "end": 9501, + "start": 9535, + "end": 9536, "loc": { "start": { - "line": 383, + "line": 384, "column": 18 }, "end": { - "line": 383, + "line": 384, "column": 19 } } @@ -36670,15 +36878,15 @@ "binop": null }, "value": "searchArguments", - "start": 9504, - "end": 9519, + "start": 9539, + "end": 9554, "loc": { "start": { - "line": 384, + "line": 385, "column": 2 }, "end": { - "line": 384, + "line": 385, "column": 17 } } @@ -36696,15 +36904,15 @@ "binop": null, "updateContext": null }, - "start": 9519, - "end": 9520, + "start": 9554, + "end": 9555, "loc": { "start": { - "line": 384, + "line": 385, "column": 17 }, "end": { - "line": 384, + "line": 385, "column": 18 } } @@ -36724,15 +36932,15 @@ "updateContext": null }, "value": "null", - "start": 9521, - "end": 9525, + "start": 9556, + "end": 9560, "loc": { "start": { - "line": 384, + "line": 385, "column": 19 }, "end": { - "line": 384, + "line": 385, "column": 23 } } @@ -36750,15 +36958,15 @@ "binop": null, "updateContext": null }, - "start": 9525, - "end": 9526, + "start": 9560, + "end": 9561, "loc": { "start": { - "line": 384, + "line": 385, "column": 23 }, "end": { - "line": 384, + "line": 385, "column": 24 } } @@ -36776,15 +36984,15 @@ "binop": null }, "value": "sortArguments", - "start": 9529, - "end": 9542, + "start": 9564, + "end": 9577, "loc": { "start": { - "line": 385, + "line": 386, "column": 2 }, "end": { - "line": 385, + "line": 386, "column": 15 } } @@ -36802,15 +37010,15 @@ "binop": null, "updateContext": null }, - "start": 9542, - "end": 9543, + "start": 9577, + "end": 9578, "loc": { "start": { - "line": 385, + "line": 386, "column": 15 }, "end": { - "line": 385, + "line": 386, "column": 16 } } @@ -36830,15 +37038,15 @@ "updateContext": null }, "value": "null", - "start": 9544, - "end": 9548, + "start": 9579, + "end": 9583, "loc": { "start": { - "line": 385, + "line": 386, "column": 17 }, "end": { - "line": 385, + "line": 386, "column": 21 } } @@ -36856,15 +37064,15 @@ "binop": null, "updateContext": null }, - "start": 9548, - "end": 9549, + "start": 9583, + "end": 9584, "loc": { "start": { - "line": 385, + "line": 386, "column": 21 }, "end": { - "line": 385, + "line": 386, "column": 22 } } @@ -36881,15 +37089,15 @@ "postfix": false, "binop": null }, - "start": 9550, - "end": 9551, + "start": 9585, + "end": 9586, "loc": { "start": { - "line": 386, + "line": 387, "column": 0 }, "end": { - "line": 386, + "line": 387, "column": 1 } } @@ -36907,15 +37115,15 @@ "binop": null, "updateContext": null }, - "start": 9551, - "end": 9552, + "start": 9586, + "end": 9587, "loc": { "start": { - "line": 386, + "line": 387, "column": 1 }, "end": { - "line": 386, + "line": 387, "column": 2 } } @@ -36935,15 +37143,15 @@ "updateContext": null }, "value": "export", - "start": 9554, - "end": 9560, + "start": 9589, + "end": 9595, "loc": { "start": { - "line": 388, + "line": 389, "column": 0 }, "end": { - "line": 388, + "line": 389, "column": 6 } } @@ -36963,15 +37171,15 @@ "updateContext": null }, "value": "default", - "start": 9561, - "end": 9568, + "start": 9596, + "end": 9603, "loc": { "start": { - "line": 388, + "line": 389, "column": 7 }, "end": { - "line": 388, + "line": 389, "column": 14 } } @@ -36989,15 +37197,15 @@ "binop": null }, "value": "DatasourceBase", - "start": 9569, - "end": 9583, + "start": 9604, + "end": 9618, "loc": { "start": { - "line": 388, + "line": 389, "column": 15 }, "end": { - "line": 388, + "line": 389, "column": 29 } } @@ -37015,15 +37223,15 @@ "binop": null, "updateContext": null }, - "start": 9583, - "end": 9584, + "start": 9618, + "end": 9619, "loc": { "start": { - "line": 388, + "line": 389, "column": 29 }, "end": { - "line": 388, + "line": 389, "column": 30 } } @@ -37041,15 +37249,15 @@ "binop": null, "updateContext": null }, - "start": 9585, - "end": 9585, + "start": 9620, + "end": 9620, "loc": { "start": { - "line": 389, + "line": 390, "column": 0 }, "end": { - "line": 389, + "line": 390, "column": 0 } } diff --git a/projects/mitch-datasource-documentation/docs/class/js/DatasourceBase.js~DatasourceBase.html b/projects/mitch-datasource-documentation/docs/class/js/DatasourceBase.js~DatasourceBase.html index 6086d3d..b9dced6 100644 --- a/projects/mitch-datasource-documentation/docs/class/js/DatasourceBase.js~DatasourceBase.html +++ b/projects/mitch-datasource-documentation/docs/class/js/DatasourceBase.js~DatasourceBase.html @@ -1538,7 +1538,7 @@

- source + source

@@ -1614,7 +1614,7 @@

- source + source

@@ -1673,7 +1673,7 @@

- source + source

@@ -1732,7 +1732,7 @@ @@ -1808,7 +1808,7 @@

- source + source

diff --git a/projects/mitch-datasource-documentation/docs/file/js/DatasourceBase.js.html b/projects/mitch-datasource-documentation/docs/file/js/DatasourceBase.js.html index 2dbb7a0..7de1cac 100644 --- a/projects/mitch-datasource-documentation/docs/file/js/DatasourceBase.js.html +++ b/projects/mitch-datasource-documentation/docs/file/js/DatasourceBase.js.html @@ -339,10 +339,11 @@ return null; } const updatedResponse = await this._update(); + this.loading = false; this.emit('updateend', { sender: this, + response: updatedResponse, }); - this.loading = false; return updatedResponse; } catch (ex) { this.loading = false; diff --git a/projects/mitch-datasource-documentation/docs/index.html b/projects/mitch-datasource-documentation/docs/index.html index e03d674..c0e1772 100644 --- a/projects/mitch-datasource-documentation/docs/index.html +++ b/projects/mitch-datasource-documentation/docs/index.html @@ -304,25 +304,36 @@

License

MIT © Michael Tran

}) });

With Components

It's not only primitives that can be passed onto client-side framework components. -Objects can be passed, meaning we can pass in the datasource objects, and the components' main responsibility is simply to wire up the UI to the datasource.

When a component needs to perform pagination, filtering, sorting, it'll use the datasoure methods and properties.

Vue Example

How we pass the datasource to the Vue component:

var app = new Vue({
-  el: '#app',
-  data: {
-    message: 'Hello Vue!'
-  }
-});
-

Our example component SimpleTable.vue:

<template>
+Objects can be passed, meaning we can pass in the datasource objects, and the components' main responsibility is simply to wire up the UI to the datasource.

When a component needs to perform pagination, filtering, sorting, it'll use the datasoure methods and properties.

Vue Example

This package has been tested to work with Vue. You can clone the repo and then take a look at the mitch-datasource-test-vue project folder. Alternatively, you can see below sandbox and code for a more simplified version which only has pagination.

Edit mitch-datasource with Vue

Example component MinimalTable, which uses the datasource (which gets passed to the component as a property) to display data and perform pagination logic:

<template>
   <div>
-    <table>
+    <div v-if="!datasource" style="color: crimson;">
+      No datasource supplied
+    </div>
+    <div v-else-if="componentData.loading" style="color: crimson;">
+      Loading...
+    </div>
+    <div v-else-if="!componentData.data || componentData.data.length <= 0" style="color: crimson;">
+      No data...
+    </div>
+    <table v-else>
       <thead>
         <tr>
+          <th>ID</th>
           <th>First Name</th>
           <th>Last Name</th>
+          <th>Job</th>
+          <th>Gender</th>
+          <th>Has Citizenship?</th>
         </tr>
       </thead>
       <tbody>
-        <tr v-for="item in datasource.data" :key="item.id">
+        <tr v-for="item in componentData.data" :key="item.id">
+          <td>{{ item.id }}</td>
           <td>{{ item.firstName }}</td>
           <td>{{ item.lastName }}</td>
+          <td>{{ item.job }}</td>
+          <td>{{ item.gender }}</td>
+          <td>{{ item.hasCitizenship ? 'Yes' : 'No' }}</td>
         </tr>
       </tbody>
     </table>
@@ -331,22 +342,19 @@ 

License

MIT © Michael Tran

<tbody> <tr> <td> - <div>Page {{ datasource.page }} of {{ datasource.totalPages }}</div> - <div>Total: {{ datasource.total }}</div> - <div>Total Items on Page: {{ datasource.pageTotal }}</div> - <div>Size: {{ datasource.size }}</div> - <div>Offset: {{ datasource.offset }}</div> + <div>Page {{ componentData.page }} of {{ componentData.totalPages }}</div> + <div>Total: {{ componentData.total }}</div> + <div>Total Items on Page: {{ componentData.pageTotal }}</div> + <div>Size: {{ componentData.size }}</div> + <div>Offset: {{ componentData.offset }}</div> </td> <td> <h4>Pagination</h4> - <button @click="firstPage()">&lt;&lt;</button> - <button @click="prevPage()">&lt;</button> - &nbsp;&nbsp; - <input type="number" v-model="pageToGoTo"/> - <button @click="goToPage(pageToGoTo)">Go</button> - &nbsp;&nbsp; - <button @click="nextPage()">&gt;</button> - <button @click="lastPage()">&gt;&gt;</button> + <div> + <button v-for="value in componentData.totalPages" :key="value" @click="goToPage(value)"> + {{value}} + </button> + </div> </td> </tr> </tbody> @@ -356,56 +364,244 @@

License

MIT © Michael Tran

<script> export default { - name: 'SimpleTable', props: { datasource: Object }, data() { return { - loading: this.$props.datasource.loading, - size: this.$props.datasource ? this.$props.datasource.size : 0, - pageToGoTo: '', - searchText: '', + // Declare component states to sync up with the + // datasource properties and to display down the road + componentData: { + loading: false, + page: 0, + totalPages: 0, + total: 0, + pageTotal: 0, + size: 0, + offset: 0, + searchText: 0, + searchArguments: {}, + sortArguments: {}, + data: [], + } } }, created: async function () { - this.loading = this.$props.datasource.loading; - this.$props.datasource.on('updatestart', this.updateStartCallback); - this.$props.datasource.on('updateend', this.updateEndCallback); + this.syncComponentWithDatasource(); + this.$props.datasource.on('updatestart', this.syncComponentWithDatasource); + this.$props.datasource.on('updateend', this.syncComponentWithDatasource); }, beforeDestroy: function() { - this.$props.datasource.off('updatestart', this.updateStartCallback); - this.$props.datasource.off('updateend', this.updateEndCallback); + this.$props.datasource.off('updatestart', this.syncComponentWithDatasource); + this.$props.datasource.off('updateend', this.syncComponentWithDatasource); }, methods: { - async nextPage() { - let success = await this.datasource.nextPage(); - if (!success) { - console.warn('Failed to go to next page...'); - } - }, - async prevPage() { - let success = await this.datasource.prevPage(); - if (!success) { - console.warn('Failed to go to previous page...'); + syncComponentWithDatasource() { + if (!this.$props.datasource) { + return; } + this.componentData = { + loading: this.$props.datasource.loading, + page: this.$props.datasource.page, + totalPages: this.$props.datasource.totalPages, + total: this.$props.datasource.total, + pageTotal: this.$props.datasource.pageTotal, + size: this.$props.datasource.size, + offset: this.$props.datasource.offset, + searchText: this.$props.datasource.searchText, + searchArguments: this.$props.datasource.searchArguments, + sortArguments: this.$props.datasource.sortArguments, + data: this.$props.datasource.data, + }; }, async goToPage(page) { - let success = await this.datasource.goToPage(page); + let success = await this.$props.datasource.goToPage(page); if (!success) { - console.warn(`Failed to go to page ${page}...`); + alert(`Failed to go to page ${page}...`); } }, - async lastPage() { - await this.goToPage(this.datasource.totalPages); - }, - async firstPage() { - await this.goToPage(1); - }, } } </script>
-

React Example

Advanced Usage

Sorting

Multi-Column Sorting

Filtering

Multi-Column Filtering

Events

Making your own Custom Datasource

Modifying the Defaults

Additional Information

For more information on the usage:

The typical App component. It declares and initiates a datasource, and then pass it as a property to the MinimalTable component.

<template>
+  <div id="app">
+    <MinimalTable :datasource="datasource"/>
+  </div>
+</template>
+
+<script>
+  import { ArrayDatasource } from 'mitch-datasource'
+  import MinimalTable from './components/MinimalTable.vue'
+
+  export default {
+    name: 'app',
+    data() {
+      let datasource = new ArrayDatasource({
+        data: [
+          {
+            id: 1,
+            firstName: 'John',
+            lastName: 'Smith'
+          },
+          {
+            id: 2,
+            firstName: 'Mary',
+            lastName: 'Jane'
+          },
+          // ... More
+        ]
+      });
+      datasource.update();
+      return {
+        datasource
+      };
+    },
+    components: {
+      MinimalTable
+    }
+  }
+</script>
+

React Example

This package has been tested to work with React. You can clone the repo and then take a look at the mitch-datasource-test-react project folder. Alternatively, you can see below sandbox and code for a more simplified version which only has pagination.

Edit mitch-datasource-react

Example component MinimalTable, which uses the datasource (which gets passed to the component as a property) to display data and perform pagination logic:

import React, { useState, useCallback, useEffect } from "react";
+
+export default function(props) {
+  // Declare component states to sync up with the
+  // datasource properties and to display down the road
+  const [componentData, setComponentData] = useState({
+    loading: false,
+    page: 0,
+    totalPages: 0,
+    total: 0,
+    pageTotal: 0,
+    size: 0,
+    offset: 0,
+    searchText: 0,
+    searchArguments: {},
+    sortArguments: {},
+    data: [],
+  });
+
+  // Syncs the component's state with the datasource
+  let syncComponentWithDatasource = useCallback(() => {
+    if (!props.datasource) {
+      return;
+    }
+    setComponentData({
+      page: props.datasource.page,
+      totalPages: props.datasource.totalPages,
+      total: props.datasource.total,
+      pageTotal: props.datasource.pageTotal,
+      size: props.datasource.size,
+      offset: props.datasource.offset,
+      data: props.datasource.data,
+    });
+  }, [props.datasource]);
+
+  // Attach listeners to sync component state
+  // when datasource's data changes
+  useEffect(() => {
+    syncComponentWithDatasource();
+    props.datasource.addListener('updatestart', syncComponentWithDatasource);
+    props.datasource.addListener('updateend', syncComponentWithDatasource);
+
+    // Cleanup called on unmount event
+    return () => {
+      props.datasource.removeListener('updatestart', syncComponentWithDatasource);
+      props.datasource.removeListener('updateend', syncComponentWithDatasource);
+    }
+  }, [props.datasource, syncComponentWithDatasource]);
+
+  let goToPage = useCallback(async page => {
+    let success = await props.datasource.goToPage(page);
+    if (!success) {
+      alert(`Failed to go to page ${page}...`);
+    }
+  }, [props.datasource]);
+
+  if (!props.datasource) {
+    return <div style={{ color: "crimson" }}>No datasource supplied</div>;
+  } else if (!componentData.data || componentData.data.length <= 0) {
+    return <div style={{ color: 'crimson' }}> No data... </div>;
+  } else {
+    return (
+      <div>
+        <table>
+          <thead>
+            <tr>
+              <th>ID</th>
+              <th>First Name</th>
+              <th>Last Name</th>
+              <th>Job</th>
+              <th>Gender</th>
+              <th>Has Citizenship?</th>
+            </tr>
+          </thead>
+          <tbody>
+            {componentData.data.map(function(value, index, arr) {
+              return (
+                <tr key={value.id}>
+                  <td>{value.id}</td>
+                  <td>{value.firstName}</td>
+                  <td>{value.lastName}</td>
+                  <td>{value.job}</td>
+                  <td>{value.gender}</td>
+                  <td>{value.hasCitizenship ? "Yes" : "No"}</td>
+                </tr>
+              );
+            })}
+          </tbody>
+        </table>
+        <br />
+        <table border="1">
+          <tbody>
+            <tr>
+              <td>
+                <div>
+                  Page {componentData.page} of {componentData.totalPages}
+                </div>
+                <div>Total: {componentData.total}</div>
+                <div>Total Items on Page: {componentData.pageTotal}</div>
+                <div>Size: {componentData.size}</div>
+                <div>Offset: {componentData.offset}</div>
+              </td>
+              <td>
+                <h4>Pagination</h4>
+                <div>
+                  {
+                    [...Array(componentData.totalPages).keys()].map((value) => {
+                      const pageNumber = value + 1;
+                      return <button key={pageNumber} onClick={() => { goToPage(pageNumber) }}>{pageNumber}</button>;
+                    })
+                  }
+                </div>
+              </td>
+            </tr>
+          </tbody>
+        </table>
+      </div>
+    );
+  }
+}
+

The typical App component. It declares and initiates a datasource, and then pass it as a property to the MinimalTable component.

import React from "react";
+import ReactDOM from "react-dom";
+import MinimalTable from "./components/MinimalTable/MinimalTable";
+import { ArrayDatasource } from "mitch-datasource";
+import stubData from "./stub-data";
+
+function App() {
+  let datasource = new ArrayDatasource({
+    data: stubData
+  });
+  datasource.update();
+  return (
+    <div className="App">
+      <MinimalTable datasource={datasource} />
+    </div>
+  );
+}
+
+const rootElement = document.getElementById("root");
+ReactDOM.render(<App />, rootElement);
+

Advanced Usage

Sorting

Multi-Column Sorting

Filtering

Multi-Column Filtering

Events

Making your own Custom Datasource

Modifying the Defaults

Additional Information

For more information on the usage: