diff --git a/docs/ast/source/modules/dateType.js.json b/docs/ast/source/modules/dateType.js.json index e60b8c51..b2bed401 100644 --- a/docs/ast/source/modules/dateType.js.json +++ b/docs/ast/source/modules/dateType.js.json @@ -453,22 +453,113 @@ "line": 5, "column": 30 } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "root", + "range": [ + 191, + 195 + ], + "loc": { + "start": { + "line": 6, + "column": 8 + }, + "end": { + "line": 6, + "column": 12 + } + } + }, + "imported": { + "type": "Identifier", + "name": "root", + "range": [ + 191, + 195 + ], + "loc": { + "start": { + "line": 6, + "column": 8 + }, + "end": { + "line": 6, + "column": 12 + } + } + }, + "range": [ + 191, + 195 + ], + "loc": { + "start": { + "line": 6, + "column": 8 + }, + "end": { + "line": 6, + "column": 12 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../root", + "raw": "'../root'", + "range": [ + 202, + 211 + ], + "loc": { + "start": { + "line": 6, + "column": 19 + }, + "end": { + "line": 6, + "column": 28 + } + } + }, + "range": [ + 183, + 212 + ], + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 29 + } }, "trailingComments": [ { "type": "Block", "value": "*\n * Wrapper for Sugar Date module providing datetime helpers and locales\n * @export\n * @class DateType\n ", "range": [ - 184, - 293 + 214, + 323 ], "loc": { "start": { - "line": 7, + "line": 8, "column": 0 }, "end": { - "line": 11, + "line": 12, "column": 3 } } @@ -483,16 +574,16 @@ "type": "Identifier", "name": "DateType", "range": [ - 307, - 315 + 337, + 345 ], "loc": { "start": { - "line": 12, + "line": 13, "column": 13 }, "end": { - "line": 12, + "line": 13, "column": 21 } } @@ -501,16 +592,16 @@ "type": "Identifier", "name": "Feature", "range": [ - 324, - 331 + 354, + 361 ], "loc": { "start": { - "line": 12, + "line": 13, "column": 30 }, "end": { - "line": 12, + "line": 13, "column": 37 } } @@ -524,16 +615,16 @@ "type": "Identifier", "name": "constructor", "range": [ - 446, - 457 + 476, + 487 ], "loc": { "start": { - "line": 18, + "line": 19, "column": 4 }, "end": { - "line": 18, + "line": 19, "column": 15 } } @@ -546,16 +637,16 @@ "type": "Identifier", "name": "tf", "range": [ - 458, - 460 + 488, + 490 ], "loc": { "start": { - "line": 18, + "line": 19, "column": 16 }, "end": { - "line": 18, + "line": 19, "column": 18 } } @@ -571,16 +662,16 @@ "callee": { "type": "Super", "range": [ - 472, - 477 + 502, + 507 ], "loc": { "start": { - "line": 19, + "line": 20, "column": 8 }, "end": { - "line": 19, + "line": 20, "column": 13 } } @@ -590,16 +681,16 @@ "type": "Identifier", "name": "tf", "range": [ - 478, - 480 + 508, + 510 ], "loc": { "start": { - "line": 19, + "line": 20, "column": 14 }, "end": { - "line": 19, + "line": 20, "column": 16 } } @@ -609,47 +700,47 @@ "value": "dateType", "raw": "'dateType'", "range": [ - 482, - 492 + 512, + 522 ], "loc": { "start": { - "line": 19, + "line": 20, "column": 18 }, "end": { - "line": 19, + "line": 20, "column": 28 } } } ], "range": [ - 472, - 493 + 502, + 523 ], "loc": { "start": { - "line": 19, + "line": 20, "column": 8 }, "end": { - "line": 19, + "line": 20, "column": 29 } } }, "range": [ - 472, - 494 + 502, + 524 ], "loc": { "start": { - "line": 19, + "line": 20, "column": 8 }, "end": { - "line": 19, + "line": 20, "column": 30 } }, @@ -658,16 +749,16 @@ "type": "Block", "value": "*\n * Global locale\n * @type {String}\n ", "range": [ - 504, - 570 + 534, + 600 ], "loc": { "start": { - "line": 21, + "line": 22, "column": 8 }, "end": { - "line": 24, + "line": 25, "column": 11 } } @@ -685,16 +776,16 @@ "object": { "type": "ThisExpression", "range": [ - 579, - 583 + 609, + 613 ], "loc": { "start": { - "line": 25, + "line": 26, "column": 8 }, "end": { - "line": 25, + "line": 26, "column": 12 } } @@ -703,31 +794,31 @@ "type": "Identifier", "name": "locale", "range": [ - 584, - 590 + 614, + 620 ], "loc": { "start": { - "line": 25, + "line": 26, "column": 13 }, "end": { - "line": 25, + "line": 26, "column": 19 } } }, "range": [ - 579, - 590 + 609, + 620 ], "loc": { "start": { - "line": 25, + "line": 26, "column": 8 }, "end": { - "line": 25, + "line": 26, "column": 19 } } @@ -739,16 +830,16 @@ "type": "Identifier", "name": "tf", "range": [ - 593, - 595 + 623, + 625 ], "loc": { "start": { - "line": 25, + "line": 26, "column": 22 }, "end": { - "line": 25, + "line": 26, "column": 24 } } @@ -757,61 +848,61 @@ "type": "Identifier", "name": "locale", "range": [ - 596, - 602 + 626, + 632 ], "loc": { "start": { - "line": 25, + "line": 26, "column": 25 }, "end": { - "line": 25, + "line": 26, "column": 31 } } }, "range": [ - 593, - 602 + 623, + 632 ], "loc": { "start": { - "line": 25, + "line": 26, "column": 22 }, "end": { - "line": 25, + "line": 26, "column": 31 } } }, "range": [ - 579, - 602 + 609, + 632 ], "loc": { "start": { - "line": 25, + "line": 26, "column": 8 }, "end": { - "line": 25, + "line": 26, "column": 31 } } }, "range": [ - 579, - 603 + 609, + 633 ], "loc": { "start": { - "line": 25, + "line": 26, "column": 8 }, "end": { - "line": 25, + "line": 26, "column": 32 } }, @@ -820,16 +911,16 @@ "type": "Block", "value": "*\n * Global locale\n * @type {String}\n ", "range": [ - 504, - 570 + 534, + 600 ], "loc": { "start": { - "line": 21, + "line": 22, "column": 8 }, "end": { - "line": 24, + "line": 25, "column": 11 } } @@ -840,16 +931,16 @@ "type": "Block", "value": "*\n * Sugar Date instance\n * @type {Object}\n ", "range": [ - 613, - 685 + 643, + 715 ], "loc": { "start": { - "line": 27, + "line": 28, "column": 8 }, "end": { - "line": 30, + "line": 31, "column": 11 } } @@ -867,16 +958,16 @@ "object": { "type": "ThisExpression", "range": [ - 694, - 698 + 724, + 728 ], "loc": { "start": { - "line": 31, + "line": 32, "column": 8 }, "end": { - "line": 31, + "line": 32, "column": 12 } } @@ -885,31 +976,31 @@ "type": "Identifier", "name": "datetime", "range": [ - 699, - 707 + 729, + 737 ], "loc": { "start": { - "line": 31, + "line": 32, "column": 13 }, "end": { - "line": 31, + "line": 32, "column": 21 } } }, "range": [ - 694, - 707 + 724, + 737 ], "loc": { "start": { - "line": 31, + "line": 32, "column": 8 }, "end": { - "line": 31, + "line": 32, "column": 21 } } @@ -918,46 +1009,46 @@ "type": "Identifier", "name": "SugarDate", "range": [ - 710, - 719 + 740, + 749 ], "loc": { "start": { - "line": 31, + "line": 32, "column": 24 }, "end": { - "line": 31, + "line": 32, "column": 33 } } }, "range": [ - 694, - 719 + 724, + 749 ], "loc": { "start": { - "line": 31, + "line": 32, "column": 8 }, "end": { - "line": 31, + "line": 32, "column": 33 } } }, "range": [ - 694, - 720 + 724, + 750 ], "loc": { "start": { - "line": 31, + "line": 32, "column": 8 }, "end": { - "line": 31, + "line": 32, "column": 34 } }, @@ -966,16 +1057,16 @@ "type": "Block", "value": "*\n * Sugar Date instance\n * @type {Object}\n ", "range": [ - 613, - 685 + 643, + 715 ], "loc": { "start": { - "line": 27, + "line": 28, "column": 8 }, "end": { - "line": 30, + "line": 31, "column": 11 } } @@ -992,16 +1083,16 @@ "object": { "type": "ThisExpression", "range": [ - 730, - 734 + 760, + 764 ], "loc": { "start": { - "line": 33, + "line": 34, "column": 8 }, "end": { - "line": 33, + "line": 34, "column": 12 } } @@ -1010,78 +1101,78 @@ "type": "Identifier", "name": "enable", "range": [ - 735, - 741 + 765, + 771 ], "loc": { "start": { - "line": 33, + "line": 34, "column": 13 }, "end": { - "line": 33, + "line": 34, "column": 19 } } }, "range": [ - 730, - 741 + 760, + 771 ], "loc": { "start": { - "line": 33, + "line": 34, "column": 8 }, "end": { - "line": 33, + "line": 34, "column": 19 } } }, "arguments": [], "range": [ - 730, - 743 + 760, + 773 ], "loc": { "start": { - "line": 33, + "line": 34, "column": 8 }, "end": { - "line": 33, + "line": 34, "column": 21 } } }, "range": [ - 730, - 744 + 760, + 774 ], "loc": { "start": { - "line": 33, + "line": 34, "column": 8 }, "end": { - "line": 33, + "line": 34, "column": 22 } } } ], "range": [ - 462, - 750 + 492, + 780 ], "loc": { "start": { - "line": 18, + "line": 19, "column": 20 }, "end": { - "line": 34, + "line": 35, "column": 5 } } @@ -1089,16 +1180,16 @@ "generator": false, "expression": false, "range": [ - 457, - 750 + 487, + 780 ], "loc": { "start": { - "line": 18, + "line": 19, "column": 15 }, "end": { - "line": 34, + "line": 35, "column": 5 } } @@ -1106,16 +1197,16 @@ "kind": "constructor", "computed": false, "range": [ - 446, - 750 + 476, + 780 ], "loc": { "start": { - "line": 18, + "line": 19, "column": 4 }, "end": { - "line": 34, + "line": 35, "column": 5 } }, @@ -1124,16 +1215,16 @@ "type": "Block", "value": "*\n * Creates an instance of DateType\n * @param {TableFilter} tf TableFilter instance\n ", "range": [ - 339, - 441 + 369, + 471 ], "loc": { "start": { - "line": 14, + "line": 15, "column": 4 }, "end": { - "line": 17, + "line": 18, "column": 7 } } @@ -1144,16 +1235,16 @@ "type": "Block", "value": "*\n * Initialize DateType instance\n ", "range": [ - 756, - 803 + 786, + 833 ], "loc": { "start": { - "line": 36, + "line": 37, "column": 4 }, "end": { - "line": 38, + "line": 39, "column": 7 } } @@ -1167,16 +1258,16 @@ "type": "Identifier", "name": "init", "range": [ - 808, - 812 + 838, + 842 ], "loc": { "start": { - "line": 39, + "line": 40, "column": 4 }, "end": { - "line": 39, + "line": 40, "column": 8 } } @@ -1196,16 +1287,16 @@ "object": { "type": "ThisExpression", "range": [ - 829, - 833 + 859, + 863 ], "loc": { "start": { - "line": 40, + "line": 41, "column": 12 }, "end": { - "line": 40, + "line": 41, "column": 16 } } @@ -1214,31 +1305,31 @@ "type": "Identifier", "name": "initialized", "range": [ - 834, - 845 + 864, + 875 ], "loc": { "start": { - "line": 40, + "line": 41, "column": 17 }, "end": { - "line": 40, + "line": 41, "column": 28 } } }, "range": [ - 829, - 845 + 859, + 875 ], "loc": { "start": { - "line": 40, + "line": 41, "column": 12 }, "end": { - "line": 40, + "line": 41, "column": 28 } } @@ -1250,48 +1341,48 @@ "type": "ReturnStatement", "argument": null, "range": [ - 861, - 868 + 891, + 898 ], "loc": { "start": { - "line": 41, + "line": 42, "column": 12 }, "end": { - "line": 41, + "line": 42, "column": 19 } } } ], "range": [ - 847, - 878 + 877, + 908 ], "loc": { "start": { - "line": 40, + "line": 41, "column": 30 }, "end": { - "line": 42, + "line": 43, "column": 9 } } }, "alternate": null, "range": [ - 825, - 878 + 855, + 908 ], "loc": { "start": { - "line": 40, + "line": 41, "column": 8 }, "end": { - "line": 42, + "line": 43, "column": 9 } }, @@ -1300,16 +1391,16 @@ "type": "Line", "value": " Set global locale", "range": [ - 888, - 908 + 918, + 938 ], "loc": { "start": { - "line": 44, + "line": 45, "column": 8 }, "end": { - "line": 44, + "line": 45, "column": 28 } } @@ -1329,16 +1420,16 @@ "object": { "type": "ThisExpression", "range": [ - 917, - 921 + 947, + 951 ], "loc": { "start": { - "line": 45, + "line": 46, "column": 8 }, "end": { - "line": 45, + "line": 46, "column": 12 } } @@ -1347,31 +1438,31 @@ "type": "Identifier", "name": "datetime", "range": [ - 922, - 930 + 952, + 960 ], "loc": { "start": { - "line": 45, + "line": 46, "column": 13 }, "end": { - "line": 45, + "line": 46, "column": 21 } } }, "range": [ - 917, - 930 + 947, + 960 ], "loc": { "start": { - "line": 45, + "line": 46, "column": 8 }, "end": { - "line": 45, + "line": 46, "column": 21 } } @@ -1380,31 +1471,31 @@ "type": "Identifier", "name": "setLocale", "range": [ - 931, - 940 + 961, + 970 ], "loc": { "start": { - "line": 45, + "line": 46, "column": 22 }, "end": { - "line": 45, + "line": 46, "column": 31 } } }, "range": [ - 917, - 940 + 947, + 970 ], "loc": { "start": { - "line": 45, + "line": 46, "column": 8 }, "end": { - "line": 45, + "line": 46, "column": 31 } } @@ -1416,16 +1507,16 @@ "object": { "type": "ThisExpression", "range": [ - 941, - 945 + 971, + 975 ], "loc": { "start": { - "line": 45, + "line": 46, "column": 32 }, "end": { - "line": 45, + "line": 46, "column": 36 } } @@ -1434,62 +1525,62 @@ "type": "Identifier", "name": "locale", "range": [ - 946, - 952 + 976, + 982 ], "loc": { "start": { - "line": 45, + "line": 46, "column": 37 }, "end": { - "line": 45, + "line": 46, "column": 43 } } }, "range": [ - 941, - 952 + 971, + 982 ], "loc": { "start": { - "line": 45, + "line": 46, "column": 32 }, "end": { - "line": 45, + "line": 46, "column": 43 } } } ], "range": [ - 917, - 953 + 947, + 983 ], "loc": { "start": { - "line": 45, + "line": 46, "column": 8 }, "end": { - "line": 45, + "line": 46, "column": 44 } } }, "range": [ - 917, - 954 + 947, + 984 ], "loc": { "start": { - "line": 45, + "line": 46, "column": 8 }, "end": { - "line": 45, + "line": 46, "column": 45 } }, @@ -1498,16 +1589,16 @@ "type": "Line", "value": " Set global locale", "range": [ - 888, - 908 + 918, + 938 ], "loc": { "start": { - "line": 44, + "line": 45, "column": 8 }, "end": { - "line": 44, + "line": 45, "column": 28 } } @@ -1518,16 +1609,16 @@ "type": "Line", "value": " Add formats from column types configuration if any", "range": [ - 964, - 1017 + 994, + 1047 ], "loc": { "start": { - "line": 47, + "line": 48, "column": 8 }, "end": { - "line": 47, + "line": 48, "column": 61 } } @@ -1544,16 +1635,16 @@ "object": { "type": "ThisExpression", "range": [ - 1026, - 1030 + 1056, + 1060 ], "loc": { "start": { - "line": 48, + "line": 49, "column": 8 }, "end": { - "line": 48, + "line": 49, "column": 12 } } @@ -1562,31 +1653,31 @@ "type": "Identifier", "name": "addConfigFormats", "range": [ - 1031, - 1047 + 1061, + 1077 ], "loc": { "start": { - "line": 48, + "line": 49, "column": 13 }, "end": { - "line": 48, + "line": 49, "column": 29 } } }, "range": [ - 1026, - 1047 + 1056, + 1077 ], "loc": { "start": { - "line": 48, + "line": 49, "column": 8 }, "end": { - "line": 48, + "line": 49, "column": 29 } } @@ -1601,16 +1692,16 @@ "object": { "type": "ThisExpression", "range": [ - 1048, - 1052 + 1078, + 1082 ], "loc": { "start": { - "line": 48, + "line": 49, "column": 30 }, "end": { - "line": 48, + "line": 49, "column": 34 } } @@ -1619,31 +1710,31 @@ "type": "Identifier", "name": "tf", "range": [ - 1053, - 1055 + 1083, + 1085 ], "loc": { "start": { - "line": 48, + "line": 49, "column": 35 }, "end": { - "line": 48, + "line": 49, "column": 37 } } }, "range": [ - 1048, - 1055 + 1078, + 1085 ], "loc": { "start": { - "line": 48, + "line": 49, "column": 30 }, "end": { - "line": 48, + "line": 49, "column": 37 } } @@ -1652,62 +1743,62 @@ "type": "Identifier", "name": "colTypes", "range": [ - 1056, - 1064 + 1086, + 1094 ], "loc": { "start": { - "line": 48, + "line": 49, "column": 38 }, "end": { - "line": 48, + "line": 49, "column": 46 } } }, "range": [ - 1048, - 1064 + 1078, + 1094 ], "loc": { "start": { - "line": 48, + "line": 49, "column": 30 }, "end": { - "line": 48, + "line": 49, "column": 46 } } } ], "range": [ - 1026, - 1065 + 1056, + 1095 ], "loc": { "start": { - "line": 48, + "line": 49, "column": 8 }, "end": { - "line": 48, + "line": 49, "column": 47 } } }, "range": [ - 1026, - 1066 + 1056, + 1096 ], "loc": { "start": { - "line": 48, + "line": 49, "column": 8 }, "end": { - "line": 48, + "line": 49, "column": 48 } }, @@ -1716,16 +1807,16 @@ "type": "Line", "value": " Add formats from column types configuration if any", "range": [ - 964, - 1017 + 994, + 1047 ], "loc": { "start": { - "line": 47, + "line": 48, "column": 8 }, "end": { - "line": 47, + "line": 48, "column": 61 } } @@ -1745,16 +1836,16 @@ "object": { "type": "ThisExpression", "range": [ - 1076, - 1080 + 1106, + 1110 ], "loc": { "start": { - "line": 50, + "line": 51, "column": 8 }, "end": { - "line": 50, + "line": 51, "column": 12 } } @@ -1763,31 +1854,31 @@ "type": "Identifier", "name": "emitter", "range": [ - 1081, - 1088 + 1111, + 1118 ], "loc": { "start": { - "line": 50, + "line": 51, "column": 13 }, "end": { - "line": 50, + "line": 51, "column": 20 } } }, "range": [ - 1076, - 1088 + 1106, + 1118 ], "loc": { "start": { - "line": 50, + "line": 51, "column": 8 }, "end": { - "line": 50, + "line": 51, "column": 20 } } @@ -1796,31 +1887,31 @@ "type": "Identifier", "name": "on", "range": [ - 1089, - 1091 + 1119, + 1121 ], "loc": { "start": { - "line": 50, + "line": 51, "column": 21 }, "end": { - "line": 50, + "line": 51, "column": 23 } } }, "range": [ - 1076, - 1091 + 1106, + 1121 ], "loc": { "start": { - "line": 50, + "line": 51, "column": 8 }, "end": { - "line": 50, + "line": 51, "column": 23 } } @@ -1834,32 +1925,32 @@ "value": "add-date-type-formats", "raw": "'add-date-type-formats'", "range": [ - 1106, - 1129 + 1136, + 1159 ], "loc": { "start": { - "line": 51, + "line": 52, "column": 13 }, "end": { - "line": 51, + "line": 52, "column": 36 } } } ], "range": [ - 1105, - 1130 + 1135, + 1160 ], "loc": { "start": { - "line": 51, + "line": 52, "column": 12 }, "end": { - "line": 51, + "line": 52, "column": 37 } } @@ -1872,16 +1963,16 @@ "type": "Identifier", "name": "tf", "range": [ - 1145, - 1147 + 1175, + 1177 ], "loc": { "start": { - "line": 52, + "line": 53, "column": 13 }, "end": { - "line": 52, + "line": 53, "column": 15 } } @@ -1890,16 +1981,16 @@ "type": "Identifier", "name": "types", "range": [ - 1149, - 1154 + 1179, + 1184 ], "loc": { "start": { - "line": 52, + "line": 53, "column": 17 }, "end": { - "line": 52, + "line": 53, "column": 22 } } @@ -1913,16 +2004,16 @@ "object": { "type": "ThisExpression", "range": [ - 1159, - 1163 + 1189, + 1193 ], "loc": { "start": { - "line": 52, + "line": 53, "column": 27 }, "end": { - "line": 52, + "line": 53, "column": 31 } } @@ -1931,31 +2022,31 @@ "type": "Identifier", "name": "addConfigFormats", "range": [ - 1164, - 1180 + 1194, + 1210 ], "loc": { "start": { - "line": 52, + "line": 53, "column": 32 }, "end": { - "line": 52, + "line": 53, "column": 48 } } }, "range": [ - 1159, - 1180 + 1189, + 1210 ], "loc": { "start": { - "line": 52, + "line": 53, "column": 27 }, "end": { - "line": 52, + "line": 53, "column": 48 } } @@ -1965,32 +2056,32 @@ "type": "Identifier", "name": "types", "range": [ - 1181, - 1186 + 1211, + 1216 ], "loc": { "start": { - "line": 52, + "line": 53, "column": 49 }, "end": { - "line": 52, + "line": 53, "column": 54 } } } ], "range": [ - 1159, - 1187 + 1189, + 1217 ], "loc": { "start": { - "line": 52, + "line": 53, "column": 27 }, "end": { - "line": 52, + "line": 53, "column": 55 } } @@ -1998,47 +2089,47 @@ "generator": false, "expression": true, "range": [ - 1144, - 1187 + 1174, + 1217 ], "loc": { "start": { - "line": 52, + "line": 53, "column": 12 }, "end": { - "line": 52, + "line": 53, "column": 55 } } } ], "range": [ - 1076, - 1197 + 1106, + 1227 ], "loc": { "start": { - "line": 50, + "line": 51, "column": 8 }, "end": { - "line": 53, + "line": 54, "column": 9 } } }, "range": [ - 1076, - 1198 + 1106, + 1228 ], "loc": { "start": { - "line": 50, + "line": 51, "column": 8 }, "end": { - "line": 53, + "line": 54, "column": 10 } }, @@ -2047,16 +2138,16 @@ "type": "Line", "value": " Broadcast date-type initialization", "range": [ - 1208, - 1245 + 1238, + 1275 ], "loc": { "start": { - "line": 55, + "line": 56, "column": 8 }, "end": { - "line": 55, + "line": 56, "column": 45 } } @@ -2076,16 +2167,16 @@ "object": { "type": "ThisExpression", "range": [ - 1254, - 1258 + 1284, + 1288 ], "loc": { "start": { - "line": 56, + "line": 57, "column": 8 }, "end": { - "line": 56, + "line": 57, "column": 12 } } @@ -2094,31 +2185,31 @@ "type": "Identifier", "name": "emitter", "range": [ - 1259, - 1266 + 1289, + 1296 ], "loc": { "start": { - "line": 56, + "line": 57, "column": 13 }, "end": { - "line": 56, + "line": 57, "column": 20 } } }, "range": [ - 1254, - 1266 + 1284, + 1296 ], "loc": { "start": { - "line": 56, + "line": 57, "column": 8 }, "end": { - "line": 56, + "line": 57, "column": 20 } } @@ -2127,31 +2218,31 @@ "type": "Identifier", "name": "emit", "range": [ - 1267, - 1271 + 1297, + 1301 ], "loc": { "start": { - "line": 56, + "line": 57, "column": 21 }, "end": { - "line": 56, + "line": 57, "column": 25 } } }, "range": [ - 1254, - 1271 + 1284, + 1301 ], "loc": { "start": { - "line": 56, + "line": 57, "column": 8 }, "end": { - "line": 56, + "line": 57, "column": 25 } } @@ -2162,16 +2253,16 @@ "value": "date-type-initialized", "raw": "'date-type-initialized'", "range": [ - 1272, - 1295 + 1302, + 1325 ], "loc": { "start": { - "line": 56, + "line": 57, "column": 26 }, "end": { - "line": 56, + "line": 57, "column": 49 } } @@ -2182,16 +2273,16 @@ "object": { "type": "ThisExpression", "range": [ - 1297, - 1301 + 1327, + 1331 ], "loc": { "start": { - "line": 56, + "line": 57, "column": 51 }, "end": { - "line": 56, + "line": 57, "column": 55 } } @@ -2200,31 +2291,31 @@ "type": "Identifier", "name": "tf", "range": [ - 1302, - 1304 + 1332, + 1334 ], "loc": { "start": { - "line": 56, + "line": 57, "column": 56 }, "end": { - "line": 56, + "line": 57, "column": 58 } } }, "range": [ - 1297, - 1304 + 1327, + 1334 ], "loc": { "start": { - "line": 56, + "line": 57, "column": 51 }, "end": { - "line": 56, + "line": 57, "column": 58 } } @@ -2232,47 +2323,47 @@ { "type": "ThisExpression", "range": [ - 1306, - 1310 + 1336, + 1340 ], "loc": { "start": { - "line": 56, + "line": 57, "column": 60 }, "end": { - "line": 56, + "line": 57, "column": 64 } } } ], "range": [ - 1254, - 1311 + 1284, + 1341 ], "loc": { "start": { - "line": 56, + "line": 57, "column": 8 }, "end": { - "line": 56, + "line": 57, "column": 65 } } }, "range": [ - 1254, - 1312 + 1284, + 1342 ], "loc": { "start": { - "line": 56, + "line": 57, "column": 8 }, "end": { - "line": 56, + "line": 57, "column": 66 } }, @@ -2281,16 +2372,16 @@ "type": "Line", "value": " Broadcast date-type initialization", "range": [ - 1208, - 1245 + 1238, + 1275 ], "loc": { "start": { - "line": 55, + "line": 56, "column": 8 }, "end": { - "line": 55, + "line": 56, "column": 45 } } @@ -2301,16 +2392,16 @@ "type": "Block", "value": "* @inherited ", "range": [ - 1322, - 1339 + 1352, + 1369 ], "loc": { "start": { - "line": 58, + "line": 59, "column": 8 }, "end": { - "line": 58, + "line": 59, "column": 25 } } @@ -2328,16 +2419,16 @@ "object": { "type": "ThisExpression", "range": [ - 1348, - 1352 + 1378, + 1382 ], "loc": { "start": { - "line": 59, + "line": 60, "column": 8 }, "end": { - "line": 59, + "line": 60, "column": 12 } } @@ -2346,31 +2437,31 @@ "type": "Identifier", "name": "initialized", "range": [ - 1353, - 1364 + 1383, + 1394 ], "loc": { "start": { - "line": 59, + "line": 60, "column": 13 }, "end": { - "line": 59, + "line": 60, "column": 24 } } }, "range": [ - 1348, - 1364 + 1378, + 1394 ], "loc": { "start": { - "line": 59, + "line": 60, "column": 8 }, "end": { - "line": 59, + "line": 60, "column": 24 } } @@ -2380,46 +2471,46 @@ "value": true, "raw": "true", "range": [ - 1367, - 1371 + 1397, + 1401 ], "loc": { "start": { - "line": 59, + "line": 60, "column": 27 }, "end": { - "line": 59, + "line": 60, "column": 31 } } }, "range": [ - 1348, - 1371 + 1378, + 1401 ], "loc": { "start": { - "line": 59, + "line": 60, "column": 8 }, "end": { - "line": 59, + "line": 60, "column": 31 } } }, "range": [ - 1348, - 1372 + 1378, + 1402 ], "loc": { "start": { - "line": 59, + "line": 60, "column": 8 }, "end": { - "line": 59, + "line": 60, "column": 32 } }, @@ -2428,16 +2519,16 @@ "type": "Block", "value": "* @inherited ", "range": [ - 1322, - 1339 + 1352, + 1369 ], "loc": { "start": { - "line": 58, + "line": 59, "column": 8 }, "end": { - "line": 58, + "line": 59, "column": 25 } } @@ -2446,16 +2537,16 @@ } ], "range": [ - 815, - 1378 + 845, + 1408 ], "loc": { "start": { - "line": 39, + "line": 40, "column": 11 }, "end": { - "line": 60, + "line": 61, "column": 5 } } @@ -2463,16 +2554,16 @@ "generator": false, "expression": false, "range": [ - 812, - 1378 + 842, + 1408 ], "loc": { "start": { - "line": 39, + "line": 40, "column": 8 }, "end": { - "line": 60, + "line": 61, "column": 5 } } @@ -2480,16 +2571,16 @@ "kind": "method", "computed": false, "range": [ - 808, - 1378 + 838, + 1408 ], "loc": { "start": { - "line": 39, + "line": 40, "column": 4 }, "end": { - "line": 60, + "line": 61, "column": 5 } }, @@ -2498,16 +2589,16 @@ "type": "Block", "value": "*\n * Initialize DateType instance\n ", "range": [ - 756, - 803 + 786, + 833 ], "loc": { "start": { - "line": 36, + "line": 37, "column": 4 }, "end": { - "line": 38, + "line": 39, "column": 7 } } @@ -2518,16 +2609,16 @@ "type": "Block", "value": "*\n * Parse a string representation of a date for a specified locale and return\n * a date object\n * @param {String} dateStr String representation of a date\n * @param {String} localeCode Locale code (ie 'en-us')\n * @returns {Date}\n ", "range": [ - 1384, - 1642 + 1414, + 1672 ], "loc": { "start": { - "line": 62, + "line": 63, "column": 4 }, "end": { - "line": 68, + "line": 69, "column": 7 } } @@ -2541,16 +2632,16 @@ "type": "Identifier", "name": "parse", "range": [ - 1647, - 1652 + 1677, + 1682 ], "loc": { "start": { - "line": 69, + "line": 70, "column": 4 }, "end": { - "line": 69, + "line": 70, "column": 9 } } @@ -2563,16 +2654,16 @@ "type": "Identifier", "name": "dateStr", "range": [ - 1653, - 1660 + 1683, + 1690 ], "loc": { "start": { - "line": 69, + "line": 70, "column": 10 }, "end": { - "line": 69, + "line": 70, "column": 17 } } @@ -2581,16 +2672,16 @@ "type": "Identifier", "name": "localeCode", "range": [ - 1662, - 1672 + 1692, + 1702 ], "loc": { "start": { - "line": 69, + "line": 70, "column": 19 }, "end": { - "line": 69, + "line": 70, "column": 29 } } @@ -2612,16 +2703,16 @@ "object": { "type": "ThisExpression", "range": [ - 1691, - 1695 + 1721, + 1725 ], "loc": { "start": { - "line": 70, + "line": 71, "column": 15 }, "end": { - "line": 70, + "line": 71, "column": 19 } } @@ -2630,31 +2721,31 @@ "type": "Identifier", "name": "datetime", "range": [ - 1696, - 1704 + 1726, + 1734 ], "loc": { "start": { - "line": 70, + "line": 71, "column": 20 }, "end": { - "line": 70, + "line": 71, "column": 28 } } }, "range": [ - 1691, - 1704 + 1721, + 1734 ], "loc": { "start": { - "line": 70, + "line": 71, "column": 15 }, "end": { - "line": 70, + "line": 71, "column": 28 } } @@ -2663,31 +2754,31 @@ "type": "Identifier", "name": "create", "range": [ - 1705, - 1711 + 1735, + 1741 ], "loc": { "start": { - "line": 70, + "line": 71, "column": 29 }, "end": { - "line": 70, + "line": 71, "column": 35 } } }, "range": [ - 1691, - 1711 + 1721, + 1741 ], "loc": { "start": { - "line": 70, + "line": 71, "column": 15 }, "end": { - "line": 70, + "line": 71, "column": 35 } } @@ -2697,16 +2788,16 @@ "type": "Identifier", "name": "dateStr", "range": [ - 1712, - 1719 + 1742, + 1749 ], "loc": { "start": { - "line": 70, + "line": 71, "column": 36 }, "end": { - "line": 70, + "line": 71, "column": 43 } } @@ -2715,63 +2806,63 @@ "type": "Identifier", "name": "localeCode", "range": [ - 1721, - 1731 + 1751, + 1761 ], "loc": { "start": { - "line": 70, + "line": 71, "column": 45 }, "end": { - "line": 70, + "line": 71, "column": 55 } } } ], "range": [ - 1691, - 1732 + 1721, + 1762 ], "loc": { "start": { - "line": 70, + "line": 71, "column": 15 }, "end": { - "line": 70, + "line": 71, "column": 56 } } }, "range": [ - 1684, - 1733 + 1714, + 1763 ], "loc": { "start": { - "line": 70, + "line": 71, "column": 8 }, "end": { - "line": 70, + "line": 71, "column": 57 } } } ], "range": [ - 1674, - 1739 + 1704, + 1769 ], "loc": { "start": { - "line": 69, + "line": 70, "column": 31 }, "end": { - "line": 71, + "line": 72, "column": 5 } } @@ -2779,16 +2870,16 @@ "generator": false, "expression": false, "range": [ - 1652, - 1739 + 1682, + 1769 ], "loc": { "start": { - "line": 69, + "line": 70, "column": 9 }, "end": { - "line": 71, + "line": 72, "column": 5 } } @@ -2796,16 +2887,16 @@ "kind": "method", "computed": false, "range": [ - 1647, - 1739 + 1677, + 1769 ], "loc": { "start": { - "line": 69, + "line": 70, "column": 4 }, "end": { - "line": 71, + "line": 72, "column": 5 } }, @@ -2814,16 +2905,16 @@ "type": "Block", "value": "*\n * Parse a string representation of a date for a specified locale and return\n * a date object\n * @param {String} dateStr String representation of a date\n * @param {String} localeCode Locale code (ie 'en-us')\n * @returns {Date}\n ", "range": [ - 1384, - 1642 + 1414, + 1672 ], "loc": { "start": { - "line": 62, + "line": 63, "column": 4 }, "end": { - "line": 68, + "line": 69, "column": 7 } } @@ -2834,16 +2925,16 @@ "type": "Block", "value": "*\n * Check string representation of a date for a specified locale is valid\n * @param {any} dateStr String representation of a date\n * @param {any} localeCode Locale code (ie 'en-us')\n * @returns {Boolean}\n ", "range": [ - 1745, - 1975 + 1775, + 2005 ], "loc": { "start": { - "line": 73, + "line": 74, "column": 4 }, "end": { - "line": 78, + "line": 79, "column": 7 } } @@ -2857,16 +2948,16 @@ "type": "Identifier", "name": "isValid", "range": [ - 1980, - 1987 + 2010, + 2017 ], "loc": { "start": { - "line": 79, + "line": 80, "column": 4 }, "end": { - "line": 79, + "line": 80, "column": 11 } } @@ -2879,16 +2970,16 @@ "type": "Identifier", "name": "dateStr", "range": [ - 1988, - 1995 + 2018, + 2025 ], "loc": { "start": { - "line": 79, + "line": 80, "column": 12 }, "end": { - "line": 79, + "line": 80, "column": 19 } } @@ -2897,16 +2988,16 @@ "type": "Identifier", "name": "localeCode", "range": [ - 1997, - 2007 + 2027, + 2037 ], "loc": { "start": { - "line": 79, + "line": 80, "column": 21 }, "end": { - "line": 79, + "line": 80, "column": 31 } } @@ -2928,16 +3019,16 @@ "object": { "type": "ThisExpression", "range": [ - 2026, - 2030 + 2056, + 2060 ], "loc": { "start": { - "line": 80, + "line": 81, "column": 15 }, "end": { - "line": 80, + "line": 81, "column": 19 } } @@ -2946,31 +3037,31 @@ "type": "Identifier", "name": "datetime", "range": [ - 2031, - 2039 + 2061, + 2069 ], "loc": { "start": { - "line": 80, + "line": 81, "column": 20 }, "end": { - "line": 80, + "line": 81, "column": 28 } } }, "range": [ - 2026, - 2039 + 2056, + 2069 ], "loc": { "start": { - "line": 80, + "line": 81, "column": 15 }, "end": { - "line": 80, + "line": 81, "column": 28 } } @@ -2979,31 +3070,31 @@ "type": "Identifier", "name": "isValid", "range": [ - 2040, - 2047 + 2070, + 2077 ], "loc": { "start": { - "line": 80, + "line": 81, "column": 29 }, "end": { - "line": 80, + "line": 81, "column": 36 } } }, "range": [ - 2026, - 2047 + 2056, + 2077 ], "loc": { "start": { - "line": 80, + "line": 81, "column": 15 }, "end": { - "line": 80, + "line": 81, "column": 36 } } @@ -3017,16 +3108,16 @@ "object": { "type": "ThisExpression", "range": [ - 2048, - 2052 + 2078, + 2082 ], "loc": { "start": { - "line": 80, + "line": 81, "column": 37 }, "end": { - "line": 80, + "line": 81, "column": 41 } } @@ -3035,31 +3126,31 @@ "type": "Identifier", "name": "parse", "range": [ - 2053, - 2058 + 2083, + 2088 ], "loc": { "start": { - "line": 80, + "line": 81, "column": 42 }, "end": { - "line": 80, + "line": 81, "column": 47 } } }, "range": [ - 2048, - 2058 + 2078, + 2088 ], "loc": { "start": { - "line": 80, + "line": 81, "column": 37 }, "end": { - "line": 80, + "line": 81, "column": 47 } } @@ -3069,16 +3160,16 @@ "type": "Identifier", "name": "dateStr", "range": [ - 2059, - 2066 + 2089, + 2096 ], "loc": { "start": { - "line": 80, + "line": 81, "column": 48 }, "end": { - "line": 80, + "line": 81, "column": 55 } } @@ -3087,79 +3178,79 @@ "type": "Identifier", "name": "localeCode", "range": [ - 2068, - 2078 + 2098, + 2108 ], "loc": { "start": { - "line": 80, + "line": 81, "column": 57 }, "end": { - "line": 80, + "line": 81, "column": 67 } } } ], "range": [ - 2048, - 2079 + 2078, + 2109 ], "loc": { "start": { - "line": 80, + "line": 81, "column": 37 }, "end": { - "line": 80, + "line": 81, "column": 68 } } } ], "range": [ - 2026, - 2080 + 2056, + 2110 ], "loc": { "start": { - "line": 80, + "line": 81, "column": 15 }, "end": { - "line": 80, + "line": 81, "column": 69 } } }, "range": [ - 2019, - 2081 + 2049, + 2111 ], "loc": { "start": { - "line": 80, + "line": 81, "column": 8 }, "end": { - "line": 80, + "line": 81, "column": 70 } } } ], "range": [ - 2009, - 2087 + 2039, + 2117 ], "loc": { "start": { - "line": 79, + "line": 80, "column": 33 }, "end": { - "line": 81, + "line": 82, "column": 5 } } @@ -3167,16 +3258,16 @@ "generator": false, "expression": false, "range": [ - 1987, - 2087 + 2017, + 2117 ], "loc": { "start": { - "line": 79, + "line": 80, "column": 11 }, "end": { - "line": 81, + "line": 82, "column": 5 } } @@ -3184,16 +3275,16 @@ "kind": "method", "computed": false, "range": [ - 1980, - 2087 + 2010, + 2117 ], "loc": { "start": { - "line": 79, + "line": 80, "column": 4 }, "end": { - "line": 81, + "line": 82, "column": 5 } }, @@ -3202,16 +3293,16 @@ "type": "Block", "value": "*\n * Check string representation of a date for a specified locale is valid\n * @param {any} dateStr String representation of a date\n * @param {any} localeCode Locale code (ie 'en-us')\n * @returns {Boolean}\n ", "range": [ - 1745, - 1975 + 1775, + 2005 ], "loc": { "start": { - "line": 73, + "line": 74, "column": 4 }, "end": { - "line": 78, + "line": 79, "column": 7 } } @@ -3222,16 +3313,16 @@ "type": "Block", "value": "*\n * Return the type object of a specified column as per configuration or\n * passed collection\n * @param {Number} colIndex Column index\n * @param {Array} types Collection of column types, optional\n * @returns {Object}\n ", "range": [ - 2093, - 2340 + 2123, + 2370 ], "loc": { "start": { - "line": 83, + "line": 84, "column": 4 }, "end": { - "line": 89, + "line": 90, "column": 7 } } @@ -3245,16 +3336,16 @@ "type": "Identifier", "name": "getOptions", "range": [ - 2345, - 2355 + 2375, + 2385 ], "loc": { "start": { - "line": 90, + "line": 91, "column": 4 }, "end": { - "line": 90, + "line": 91, "column": 14 } } @@ -3267,16 +3358,16 @@ "type": "Identifier", "name": "colIndex", "range": [ - 2356, - 2364 + 2386, + 2394 ], "loc": { "start": { - "line": 90, + "line": 91, "column": 15 }, "end": { - "line": 90, + "line": 91, "column": 23 } } @@ -3285,16 +3376,16 @@ "type": "Identifier", "name": "types", "range": [ - 2366, - 2371 + 2396, + 2401 ], "loc": { "start": { - "line": 90, + "line": 91, "column": 25 }, "end": { - "line": 90, + "line": 91, "column": 30 } } @@ -3312,16 +3403,16 @@ "type": "Identifier", "name": "types", "range": [ - 2383, - 2388 + 2413, + 2418 ], "loc": { "start": { - "line": 91, + "line": 92, "column": 8 }, "end": { - "line": 91, + "line": 92, "column": 13 } } @@ -3333,16 +3424,16 @@ "type": "Identifier", "name": "types", "range": [ - 2391, - 2396 + 2421, + 2426 ], "loc": { "start": { - "line": 91, + "line": 92, "column": 16 }, "end": { - "line": 91, + "line": 92, "column": 21 } } @@ -3356,16 +3447,16 @@ "object": { "type": "ThisExpression", "range": [ - 2400, - 2404 + 2430, + 2434 ], "loc": { "start": { - "line": 91, + "line": 92, "column": 25 }, "end": { - "line": 91, + "line": 92, "column": 29 } } @@ -3374,31 +3465,31 @@ "type": "Identifier", "name": "tf", "range": [ - 2405, - 2407 + 2435, + 2437 ], "loc": { "start": { - "line": 91, + "line": 92, "column": 30 }, "end": { - "line": 91, + "line": 92, "column": 32 } } }, "range": [ - 2400, - 2407 + 2430, + 2437 ], "loc": { "start": { - "line": 91, + "line": 92, "column": 25 }, "end": { - "line": 91, + "line": 92, "column": 32 } } @@ -3407,76 +3498,76 @@ "type": "Identifier", "name": "colTypes", "range": [ - 2408, - 2416 + 2438, + 2446 ], "loc": { "start": { - "line": 91, + "line": 92, "column": 33 }, "end": { - "line": 91, + "line": 92, "column": 41 } } }, "range": [ - 2400, - 2416 + 2430, + 2446 ], "loc": { "start": { - "line": 91, + "line": 92, "column": 25 }, "end": { - "line": 91, + "line": 92, "column": 41 } } }, "range": [ - 2391, - 2416 + 2421, + 2446 ], "loc": { "start": { - "line": 91, + "line": 92, "column": 16 }, "end": { - "line": 91, + "line": 92, "column": 41 } } }, "range": [ - 2383, - 2416 + 2413, + 2446 ], "loc": { "start": { - "line": 91, + "line": 92, "column": 8 }, "end": { - "line": 91, + "line": 92, "column": 41 } } }, "range": [ - 2383, - 2417 + 2413, + 2447 ], "loc": { "start": { - "line": 91, + "line": 92, "column": 8 }, "end": { - "line": 91, + "line": 92, "column": 42 } } @@ -3490,16 +3581,16 @@ "type": "Identifier", "name": "colType", "range": [ - 2430, - 2437 + 2460, + 2467 ], "loc": { "start": { - "line": 92, + "line": 93, "column": 12 }, "end": { - "line": 92, + "line": 93, "column": 19 } } @@ -3511,16 +3602,16 @@ "type": "Identifier", "name": "types", "range": [ - 2440, - 2445 + 2470, + 2475 ], "loc": { "start": { - "line": 92, + "line": 93, "column": 22 }, "end": { - "line": 92, + "line": 93, "column": 27 } } @@ -3529,46 +3620,46 @@ "type": "Identifier", "name": "colIndex", "range": [ - 2446, - 2454 + 2476, + 2484 ], "loc": { "start": { - "line": 92, + "line": 93, "column": 28 }, "end": { - "line": 92, + "line": 93, "column": 36 } } }, "range": [ - 2440, - 2455 + 2470, + 2485 ], "loc": { "start": { - "line": 92, + "line": 93, "column": 22 }, "end": { - "line": 92, + "line": 93, "column": 37 } } }, "range": [ - 2430, - 2455 + 2460, + 2485 ], "loc": { "start": { - "line": 92, + "line": 93, "column": 12 }, "end": { - "line": 92, + "line": 93, "column": 37 } } @@ -3576,16 +3667,16 @@ ], "kind": "let", "range": [ - 2426, - 2456 + 2456, + 2486 ], "loc": { "start": { - "line": 92, + "line": 93, "column": 8 }, "end": { - "line": 92, + "line": 93, "column": 38 } } @@ -3600,16 +3691,16 @@ "type": "Identifier", "name": "isObj", "range": [ - 2472, - 2477 + 2502, + 2507 ], "loc": { "start": { - "line": 93, + "line": 94, "column": 15 }, "end": { - "line": 93, + "line": 94, "column": 20 } } @@ -3619,32 +3710,32 @@ "type": "Identifier", "name": "colType", "range": [ - 2478, - 2485 + 2508, + 2515 ], "loc": { "start": { - "line": 93, + "line": 94, "column": 21 }, "end": { - "line": 93, + "line": 94, "column": 28 } } } ], "range": [ - 2472, - 2486 + 2502, + 2516 ], "loc": { "start": { - "line": 93, + "line": 94, "column": 15 }, "end": { - "line": 93, + "line": 94, "column": 29 } } @@ -3653,16 +3744,16 @@ "type": "Identifier", "name": "colType", "range": [ - 2489, - 2496 + 2519, + 2526 ], "loc": { "start": { - "line": 93, + "line": 94, "column": 32 }, "end": { - "line": 93, + "line": 94, "column": 39 } } @@ -3671,62 +3762,62 @@ "type": "ObjectExpression", "properties": [], "range": [ - 2499, - 2501 + 2529, + 2531 ], "loc": { "start": { - "line": 93, + "line": 94, "column": 42 }, "end": { - "line": 93, + "line": 94, "column": 44 } } }, "range": [ - 2472, - 2501 + 2502, + 2531 ], "loc": { "start": { - "line": 93, + "line": 94, "column": 15 }, "end": { - "line": 93, + "line": 94, "column": 44 } } }, "range": [ - 2465, - 2502 + 2495, + 2532 ], "loc": { "start": { - "line": 93, + "line": 94, "column": 8 }, "end": { - "line": 93, + "line": 94, "column": 45 } } } ], "range": [ - 2373, - 2508 + 2403, + 2538 ], "loc": { "start": { - "line": 90, + "line": 91, "column": 32 }, "end": { - "line": 94, + "line": 95, "column": 5 } } @@ -3734,16 +3825,16 @@ "generator": false, "expression": false, "range": [ - 2355, - 2508 + 2385, + 2538 ], "loc": { "start": { - "line": 90, + "line": 91, "column": 14 }, "end": { - "line": 94, + "line": 95, "column": 5 } } @@ -3751,16 +3842,16 @@ "kind": "method", "computed": false, "range": [ - 2345, - 2508 + 2375, + 2538 ], "loc": { "start": { - "line": 90, + "line": 91, "column": 4 }, "end": { - "line": 94, + "line": 95, "column": 5 } }, @@ -3769,16 +3860,16 @@ "type": "Block", "value": "*\n * Return the type object of a specified column as per configuration or\n * passed collection\n * @param {Number} colIndex Column index\n * @param {Array} types Collection of column types, optional\n * @returns {Object}\n ", "range": [ - 2093, - 2340 + 2123, + 2370 ], "loc": { "start": { - "line": 83, + "line": 84, "column": 4 }, "end": { - "line": 89, + "line": 90, "column": 7 } } @@ -3789,16 +3880,16 @@ "type": "Block", "value": "*\n * Add date time format(s) to a locale as specified by the passed\n * collection of column types, ie:\n * [\n * 'string',\n * 'number',\n * { type: 'date', locale: 'en', format: ['{dd}/{MM}/{yyyy}']}\n * ]\n *\n * @param {Array} [types=[]] Collection of column types\n ", "range": [ - 2514, - 2836 + 2544, + 2866 ], "loc": { "start": { - "line": 96, + "line": 97, "column": 4 }, "end": { - "line": 106, + "line": 107, "column": 7 } } @@ -3812,16 +3903,16 @@ "type": "Identifier", "name": "addConfigFormats", "range": [ - 2841, - 2857 + 2871, + 2887 ], "loc": { "start": { - "line": 107, + "line": 108, "column": 4 }, "end": { - "line": 107, + "line": 108, "column": 20 } } @@ -3836,16 +3927,16 @@ "type": "Identifier", "name": "types", "range": [ - 2858, - 2863 + 2888, + 2893 ], "loc": { "start": { - "line": 107, + "line": 108, "column": 21 }, "end": { - "line": 107, + "line": 108, "column": 26 } } @@ -3854,31 +3945,31 @@ "type": "ArrayExpression", "elements": [], "range": [ - 2864, - 2866 + 2894, + 2896 ], "loc": { "start": { - "line": 107, + "line": 108, "column": 27 }, "end": { - "line": 107, + "line": 108, "column": 29 } } }, "range": [ - 2858, - 2866 + 2888, + 2896 ], "loc": { "start": { - "line": 107, + "line": 108, "column": 21 }, "end": { - "line": 107, + "line": 108, "column": 29 } } @@ -3898,16 +3989,16 @@ "type": "Identifier", "name": "types", "range": [ - 2878, - 2883 + 2908, + 2913 ], "loc": { "start": { - "line": 108, + "line": 109, "column": 8 }, "end": { - "line": 108, + "line": 109, "column": 13 } } @@ -3916,31 +4007,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 2884, - 2891 + 2914, + 2921 ], "loc": { "start": { - "line": 108, + "line": 109, "column": 14 }, "end": { - "line": 108, + "line": 109, "column": 21 } } }, "range": [ - 2878, - 2891 + 2908, + 2921 ], "loc": { "start": { - "line": 108, + "line": 109, "column": 8 }, "end": { - "line": 108, + "line": 109, "column": 21 } } @@ -3954,16 +4045,16 @@ "type": "Identifier", "name": "type", "range": [ - 2893, - 2897 + 2923, + 2927 ], "loc": { "start": { - "line": 108, + "line": 109, "column": 23 }, "end": { - "line": 108, + "line": 109, "column": 27 } } @@ -3972,16 +4063,16 @@ "type": "Identifier", "name": "idx", "range": [ - 2899, - 2902 + 2929, + 2932 ], "loc": { "start": { - "line": 108, + "line": 109, "column": 29 }, "end": { - "line": 108, + "line": 109, "column": 32 } } @@ -3999,16 +4090,16 @@ "type": "Identifier", "name": "options", "range": [ - 2925, - 2932 + 2955, + 2962 ], "loc": { "start": { - "line": 109, + "line": 110, "column": 16 }, "end": { - "line": 109, + "line": 110, "column": 23 } } @@ -4021,16 +4112,16 @@ "object": { "type": "ThisExpression", "range": [ - 2935, - 2939 + 2965, + 2969 ], "loc": { "start": { - "line": 109, + "line": 110, "column": 26 }, "end": { - "line": 109, + "line": 110, "column": 30 } } @@ -4039,31 +4130,31 @@ "type": "Identifier", "name": "getOptions", "range": [ - 2940, - 2950 + 2970, + 2980 ], "loc": { "start": { - "line": 109, + "line": 110, "column": 31 }, "end": { - "line": 109, + "line": 110, "column": 41 } } }, "range": [ - 2935, - 2950 + 2965, + 2980 ], "loc": { "start": { - "line": 109, + "line": 110, "column": 26 }, "end": { - "line": 109, + "line": 110, "column": 41 } } @@ -4073,16 +4164,16 @@ "type": "Identifier", "name": "idx", "range": [ - 2951, - 2954 + 2981, + 2984 ], "loc": { "start": { - "line": 109, + "line": 110, "column": 42 }, "end": { - "line": 109, + "line": 110, "column": 45 } } @@ -4091,47 +4182,47 @@ "type": "Identifier", "name": "types", "range": [ - 2956, - 2961 + 2986, + 2991 ], "loc": { "start": { - "line": 109, + "line": 110, "column": 47 }, "end": { - "line": 109, + "line": 110, "column": 52 } } } ], "range": [ - 2935, - 2962 + 2965, + 2992 ], "loc": { "start": { - "line": 109, + "line": 110, "column": 26 }, "end": { - "line": 109, + "line": 110, "column": 53 } } }, "range": [ - 2925, - 2962 + 2955, + 2992 ], "loc": { "start": { - "line": 109, + "line": 110, "column": 16 }, "end": { - "line": 109, + "line": 110, "column": 53 } } @@ -4139,16 +4230,16 @@ ], "kind": "let", "range": [ - 2921, - 2963 + 2951, + 2993 ], "loc": { "start": { - "line": 109, + "line": 110, "column": 12 }, "end": { - "line": 109, + "line": 110, "column": 54 } } @@ -4168,16 +4259,16 @@ "type": "Identifier", "name": "options", "range": [ - 2980, - 2987 + 3010, + 3017 ], "loc": { "start": { - "line": 110, + "line": 111, "column": 16 }, "end": { - "line": 110, + "line": 111, "column": 23 } } @@ -4186,31 +4277,31 @@ "type": "Identifier", "name": "type", "range": [ - 2988, - 2992 + 3018, + 3022 ], "loc": { "start": { - "line": 110, + "line": 111, "column": 24 }, "end": { - "line": 110, + "line": 111, "column": 28 } } }, "range": [ - 2980, - 2992 + 3010, + 3022 ], "loc": { "start": { - "line": 110, + "line": 111, "column": 16 }, "end": { - "line": 110, + "line": 111, "column": 28 } } @@ -4219,31 +4310,31 @@ "type": "Identifier", "name": "DATE", "range": [ - 2997, - 3001 + 3027, + 3031 ], "loc": { "start": { - "line": 110, + "line": 111, "column": 33 }, "end": { - "line": 110, + "line": 111, "column": 37 } } }, "range": [ - 2980, - 3001 + 3010, + 3031 ], "loc": { "start": { - "line": 110, + "line": 111, "column": 16 }, "end": { - "line": 110, + "line": 111, "column": 37 } } @@ -4257,16 +4348,16 @@ "type": "Identifier", "name": "options", "range": [ - 3005, - 3012 + 3035, + 3042 ], "loc": { "start": { - "line": 110, + "line": 111, "column": 41 }, "end": { - "line": 110, + "line": 111, "column": 48 } } @@ -4275,31 +4366,31 @@ "type": "Identifier", "name": "hasOwnProperty", "range": [ - 3013, - 3027 + 3043, + 3057 ], "loc": { "start": { - "line": 110, + "line": 111, "column": 49 }, "end": { - "line": 110, + "line": 111, "column": 63 } } }, "range": [ - 3005, - 3027 + 3035, + 3057 ], "loc": { "start": { - "line": 110, + "line": 111, "column": 41 }, "end": { - "line": 110, + "line": 111, "column": 63 } } @@ -4310,47 +4401,47 @@ "value": "format", "raw": "'format'", "range": [ - 3028, - 3036 + 3058, + 3066 ], "loc": { "start": { - "line": 110, + "line": 111, "column": 64 }, "end": { - "line": 110, + "line": 111, "column": 72 } } } ], "range": [ - 3005, - 3037 + 3035, + 3067 ], "loc": { "start": { - "line": 110, + "line": 111, "column": 41 }, "end": { - "line": 110, + "line": 111, "column": 73 } } }, "range": [ - 2980, - 3037 + 3010, + 3067 ], "loc": { "start": { - "line": 110, + "line": 111, "column": 16 }, "end": { - "line": 110, + "line": 111, "column": 73 } } @@ -4367,16 +4458,16 @@ "type": "Identifier", "name": "locale", "range": [ - 3061, - 3067 + 3091, + 3097 ], "loc": { "start": { - "line": 111, + "line": 112, "column": 20 }, "end": { - "line": 111, + "line": 112, "column": 26 } } @@ -4392,16 +4483,16 @@ "object": { "type": "ThisExpression", "range": [ - 3070, - 3074 + 3100, + 3104 ], "loc": { "start": { - "line": 111, + "line": 112, "column": 29 }, "end": { - "line": 111, + "line": 112, "column": 33 } } @@ -4410,31 +4501,31 @@ "type": "Identifier", "name": "datetime", "range": [ - 3075, - 3083 + 3105, + 3113 ], "loc": { "start": { - "line": 111, + "line": 112, "column": 34 }, "end": { - "line": 111, + "line": 112, "column": 42 } } }, "range": [ - 3070, - 3083 + 3100, + 3113 ], "loc": { "start": { - "line": 111, + "line": 112, "column": 29 }, "end": { - "line": 111, + "line": 112, "column": 42 } } @@ -4443,31 +4534,31 @@ "type": "Identifier", "name": "getLocale", "range": [ - 3084, - 3093 + 3114, + 3123 ], "loc": { "start": { - "line": 111, + "line": 112, "column": 43 }, "end": { - "line": 111, + "line": 112, "column": 52 } } }, "range": [ - 3070, - 3093 + 3100, + 3123 ], "loc": { "start": { - "line": 111, + "line": 112, "column": 29 }, "end": { - "line": 111, + "line": 112, "column": 52 } } @@ -4483,16 +4574,16 @@ "type": "Identifier", "name": "options", "range": [ - 3115, - 3122 + 3145, + 3152 ], "loc": { "start": { - "line": 112, + "line": 113, "column": 20 }, "end": { - "line": 112, + "line": 113, "column": 27 } } @@ -4501,31 +4592,31 @@ "type": "Identifier", "name": "locale", "range": [ - 3123, - 3129 + 3153, + 3159 ], "loc": { "start": { - "line": 112, + "line": 113, "column": 28 }, "end": { - "line": 112, + "line": 113, "column": 34 } } }, "range": [ - 3115, - 3129 + 3145, + 3159 ], "loc": { "start": { - "line": 112, + "line": 113, "column": 20 }, "end": { - "line": 112, + "line": 113, "column": 34 } } @@ -4536,16 +4627,16 @@ "object": { "type": "ThisExpression", "range": [ - 3133, - 3137 + 3163, + 3167 ], "loc": { "start": { - "line": 112, + "line": 113, "column": 38 }, "end": { - "line": 112, + "line": 113, "column": 42 } } @@ -4554,77 +4645,77 @@ "type": "Identifier", "name": "locale", "range": [ - 3138, - 3144 + 3168, + 3174 ], "loc": { "start": { - "line": 112, + "line": 113, "column": 43 }, "end": { - "line": 112, + "line": 113, "column": 49 } } }, "range": [ - 3133, - 3144 + 3163, + 3174 ], "loc": { "start": { - "line": 112, + "line": 113, "column": 38 }, "end": { - "line": 112, + "line": 113, "column": 49 } } }, "range": [ - 3115, - 3144 + 3145, + 3174 ], "loc": { "start": { - "line": 112, + "line": 113, "column": 20 }, "end": { - "line": 112, + "line": 113, "column": 49 } } } ], "range": [ - 3070, - 3162 + 3100, + 3192 ], "loc": { "start": { - "line": 111, + "line": 112, "column": 29 }, "end": { - "line": 113, + "line": 114, "column": 17 } } }, "range": [ - 3061, - 3162 + 3091, + 3192 ], "loc": { "start": { - "line": 111, + "line": 112, "column": 20 }, "end": { - "line": 113, + "line": 114, "column": 17 } } @@ -4632,114 +4723,333 @@ ], "kind": "let", "range": [ - 3057, - 3163 + 3087, + 3193 ], "loc": { "start": { - "line": 111, + "line": 112, "column": 16 }, "end": { - "line": 113, + "line": 114, "column": 18 } } }, { - "type": "IfStatement", - "test": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "isArray", - "range": [ - 3184, - 3191 - ], - "loc": { - "start": { - "line": 114, - "column": 20 - }, - "end": { - "line": 114, - "column": 27 + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "formats", + "range": [ + 3214, + 3221 + ], + "loc": { + "start": { + "line": 115, + "column": 20 + }, + "end": { + "line": 115, + "column": 27 + } } - } - }, - "arguments": [ - { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "options", + }, + "init": { + "type": "ConditionalExpression", + "test": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "isArray", + "range": [ + 3224, + 3231 + ], + "loc": { + "start": { + "line": 115, + "column": 30 + }, + "end": { + "line": 115, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "options", + "range": [ + 3232, + 3239 + ], + "loc": { + "start": { + "line": 115, + "column": 38 + }, + "end": { + "line": 115, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "format", + "range": [ + 3240, + 3246 + ], + "loc": { + "start": { + "line": 115, + "column": 46 + }, + "end": { + "line": 115, + "column": 52 + } + } + }, + "range": [ + 3232, + 3246 + ], + "loc": { + "start": { + "line": 115, + "column": 38 + }, + "end": { + "line": 115, + "column": 52 + } + } + } + ], "range": [ - 3192, - 3199 + 3224, + 3247 ], "loc": { "start": { - "line": 114, - "column": 28 + "line": 115, + "column": 30 }, "end": { - "line": 114, - "column": 35 + "line": 115, + "column": 53 } } }, - "property": { - "type": "Identifier", - "name": "format", + "consequent": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "options", + "range": [ + 3270, + 3277 + ], + "loc": { + "start": { + "line": 116, + "column": 20 + }, + "end": { + "line": 116, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "format", + "range": [ + 3278, + 3284 + ], + "loc": { + "start": { + "line": 116, + "column": 28 + }, + "end": { + "line": 116, + "column": 34 + } + } + }, "range": [ - 3200, - 3206 + 3270, + 3284 ], "loc": { "start": { - "line": 114, - "column": 36 + "line": 116, + "column": 20 }, "end": { - "line": 114, - "column": 42 + "line": 116, + "column": 34 + } + } + }, + "alternate": { + "type": "ArrayExpression", + "elements": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "options", + "range": [ + 3288, + 3295 + ], + "loc": { + "start": { + "line": 116, + "column": 38 + }, + "end": { + "line": 116, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "format", + "range": [ + 3296, + 3302 + ], + "loc": { + "start": { + "line": 116, + "column": 46 + }, + "end": { + "line": 116, + "column": 52 + } + } + }, + "range": [ + 3288, + 3302 + ], + "loc": { + "start": { + "line": 116, + "column": 38 + }, + "end": { + "line": 116, + "column": 52 + } + } + } + ], + "range": [ + 3287, + 3303 + ], + "loc": { + "start": { + "line": 116, + "column": 37 + }, + "end": { + "line": 116, + "column": 53 } } }, "range": [ - 3192, - 3206 + 3224, + 3303 ], "loc": { "start": { - "line": 114, - "column": 28 + "line": 115, + "column": 30 }, "end": { - "line": 114, - "column": 42 + "line": 116, + "column": 53 } } - } - ], - "range": [ - 3184, - 3207 - ], - "loc": { - "start": { - "line": 114, - "column": 20 }, - "end": { - "line": 114, - "column": 43 + "range": [ + 3214, + 3303 + ], + "loc": { + "start": { + "line": 115, + "column": 20 + }, + "end": { + "line": 116, + "column": 53 + } } } + ], + "kind": "let", + "range": [ + 3210, + 3304 + ], + "loc": { + "start": { + "line": 115, + "column": 16 + }, + "end": { + "line": 116, + "column": 54 + } }, - "consequent": { + "trailingComments": [ + { + "type": "Line", + "value": " Sugar date module throws exceptions with locale.addFormat", + "range": [ + 3322, + 3382 + ], + "loc": { + "start": { + "line": 118, + "column": 16 + }, + "end": { + "line": 118, + "column": 76 + } + } + } + ] + }, + { + "type": "TryStatement", + "block": { "type": "BlockStatement", "body": [ { @@ -4750,56 +5060,20 @@ "type": "MemberExpression", "computed": false, "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "options", - "range": [ - 3231, - 3238 - ], - "loc": { - "start": { - "line": 115, - "column": 20 - }, - "end": { - "line": 115, - "column": 27 - } - } - }, - "property": { - "type": "Identifier", - "name": "format", - "range": [ - 3239, - 3245 - ], - "loc": { - "start": { - "line": 115, - "column": 28 - }, - "end": { - "line": 115, - "column": 34 - } - } - }, + "type": "Identifier", + "name": "formats", "range": [ - 3231, - 3245 + 3425, + 3432 ], "loc": { "start": { - "line": 115, + "line": 120, "column": 20 }, "end": { - "line": 115, - "column": 34 + "line": 120, + "column": 27 } } }, @@ -4807,32 +5081,32 @@ "type": "Identifier", "name": "forEach", "range": [ - 3246, - 3253 + 3433, + 3440 ], "loc": { "start": { - "line": 115, - "column": 35 + "line": 120, + "column": 28 }, "end": { - "line": 115, - "column": 42 + "line": 120, + "column": 35 } } }, "range": [ - 3231, - 3253 + 3425, + 3440 ], "loc": { "start": { - "line": 115, + "line": 120, "column": 20 }, "end": { - "line": 115, - "column": 42 + "line": 120, + "column": 35 } } }, @@ -4845,17 +5119,17 @@ "type": "Identifier", "name": "format", "range": [ - 3255, - 3261 + 3442, + 3448 ], "loc": { "start": { - "line": 115, - "column": 44 + "line": 120, + "column": 37 }, "end": { - "line": 115, - "column": 50 + "line": 120, + "column": 43 } } } @@ -4874,16 +5148,16 @@ "type": "Identifier", "name": "locale", "range": [ - 3292, - 3298 + 3479, + 3485 ], "loc": { "start": { - "line": 116, + "line": 121, "column": 24 }, "end": { - "line": 116, + "line": 121, "column": 30 } } @@ -4892,31 +5166,31 @@ "type": "Identifier", "name": "addFormat", "range": [ - 3299, - 3308 + 3486, + 3495 ], "loc": { "start": { - "line": 116, + "line": 121, "column": 31 }, "end": { - "line": 116, + "line": 121, "column": 40 } } }, "range": [ - 3292, - 3308 + 3479, + 3495 ], "loc": { "start": { - "line": 116, + "line": 121, "column": 24 }, "end": { - "line": 116, + "line": 121, "column": 40 } } @@ -4926,63 +5200,63 @@ "type": "Identifier", "name": "format", "range": [ - 3309, - 3315 + 3496, + 3502 ], "loc": { "start": { - "line": 116, + "line": 121, "column": 41 }, "end": { - "line": 116, + "line": 121, "column": 47 } } } ], "range": [ - 3292, - 3316 + 3479, + 3503 ], "loc": { "start": { - "line": 116, + "line": 121, "column": 24 }, "end": { - "line": 116, + "line": 121, "column": 48 } } }, "range": [ - 3292, - 3317 + 3479, + 3504 ], "loc": { "start": { - "line": 116, + "line": 121, "column": 24 }, "end": { - "line": 116, + "line": 121, "column": 49 } } } ], "range": [ - 3266, - 3339 + 3453, + 3526 ], "loc": { "start": { - "line": 115, - "column": 55 + "line": 120, + "column": 48 }, "end": { - "line": 117, + "line": 122, "column": 21 } } @@ -4990,289 +5264,345 @@ "generator": false, "expression": false, "range": [ - 3254, - 3339 + 3441, + 3526 ], "loc": { "start": { - "line": 115, - "column": 43 + "line": 120, + "column": 36 }, "end": { - "line": 117, + "line": 122, "column": 21 } } } ], "range": [ - 3231, - 3340 + 3425, + 3527 ], "loc": { "start": { - "line": 115, + "line": 120, "column": 20 }, "end": { - "line": 117, + "line": 122, "column": 22 } } }, "range": [ - 3231, - 3341 + 3425, + 3528 ], "loc": { "start": { - "line": 115, + "line": 120, "column": 20 }, "end": { - "line": 117, + "line": 122, "column": 23 } } } ], "range": [ - 3209, - 3359 + 3403, + 3546 ], "loc": { "start": { - "line": 114, - "column": 45 + "line": 119, + "column": 20 }, "end": { - "line": 118, + "line": 123, "column": 17 } } }, - "alternate": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "CallExpression", - "callee": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "locale", - "range": [ - 3387, - 3393 - ], - "loc": { - "start": { - "line": 119, - "column": 20 - }, - "end": { - "line": 119, - "column": 26 - } - } - }, - "property": { - "type": "Identifier", - "name": "addFormat", - "range": [ - 3394, - 3403 - ], - "loc": { - "start": { - "line": 119, - "column": 27 - }, - "end": { - "line": 119, - "column": 36 - } - } - }, - "range": [ - 3387, - 3403 - ], - "loc": { - "start": { - "line": 119, - "column": 20 - }, - "end": { - "line": 119, - "column": 36 - } - } - }, - "arguments": [ - { + "handler": { + "type": "CatchClause", + "param": { + "type": "Identifier", + "name": "ex", + "range": [ + 3554, + 3556 + ], + "loc": { + "start": { + "line": 123, + "column": 25 + }, + "end": { + "line": 123, + "column": 27 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { "type": "MemberExpression", "computed": false, "object": { - "type": "Identifier", - "name": "options", + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "root", + "range": [ + 3580, + 3584 + ], + "loc": { + "start": { + "line": 124, + "column": 20 + }, + "end": { + "line": 124, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "console", + "range": [ + 3585, + 3592 + ], + "loc": { + "start": { + "line": 124, + "column": 25 + }, + "end": { + "line": 124, + "column": 32 + } + } + }, "range": [ - 3404, - 3411 + 3580, + 3592 ], "loc": { "start": { - "line": 119, - "column": 37 + "line": 124, + "column": 20 }, "end": { - "line": 119, - "column": 44 + "line": 124, + "column": 32 } } }, "property": { "type": "Identifier", - "name": "format", + "name": "error", "range": [ - 3412, - 3418 + 3593, + 3598 ], "loc": { "start": { - "line": 119, - "column": 45 + "line": 124, + "column": 33 }, "end": { - "line": 119, - "column": 51 + "line": 124, + "column": 38 } } }, "range": [ - 3404, - 3418 + 3580, + 3598 ], "loc": { "start": { - "line": 119, - "column": 37 + "line": 124, + "column": 20 }, "end": { - "line": 119, - "column": 51 + "line": 124, + "column": 38 } } + }, + "arguments": [ + { + "type": "Identifier", + "name": "ex", + "range": [ + 3599, + 3601 + ], + "loc": { + "start": { + "line": 124, + "column": 39 + }, + "end": { + "line": 124, + "column": 41 + } + } + } + ], + "range": [ + 3580, + 3602 + ], + "loc": { + "start": { + "line": 124, + "column": 20 + }, + "end": { + "line": 124, + "column": 42 + } } - ], + }, "range": [ - 3387, - 3419 + 3580, + 3603 ], "loc": { "start": { - "line": 119, + "line": 124, "column": 20 }, "end": { - "line": 119, - "column": 52 + "line": 124, + "column": 43 } } + } + ], + "range": [ + 3558, + 3621 + ], + "loc": { + "start": { + "line": 123, + "column": 29 }, - "range": [ - 3387, - 3420 - ], - "loc": { - "start": { - "line": 119, - "column": 20 - }, - "end": { - "line": 119, - "column": 53 - } + "end": { + "line": 125, + "column": 17 } } - ], + }, "range": [ - 3365, - 3438 + 3547, + 3621 ], "loc": { "start": { - "line": 118, - "column": 23 + "line": 123, + "column": 18 }, "end": { - "line": 120, + "line": 125, "column": 17 } } }, + "finalizer": null, "range": [ - 3180, - 3438 + 3399, + 3621 ], "loc": { "start": { - "line": 114, + "line": 119, "column": 16 }, "end": { - "line": 120, + "line": 125, "column": 17 } - } + }, + "leadingComments": [ + { + "type": "Line", + "value": " Sugar date module throws exceptions with locale.addFormat", + "range": [ + 3322, + 3382 + ], + "loc": { + "start": { + "line": 118, + "column": 16 + }, + "end": { + "line": 118, + "column": 76 + } + } + } + ] } ], "range": [ - 3039, - 3452 + 3069, + 3635 ], "loc": { "start": { - "line": 110, + "line": 111, "column": 75 }, "end": { - "line": 121, + "line": 126, "column": 13 } } }, "alternate": null, "range": [ - 2976, - 3452 + 3006, + 3635 ], "loc": { "start": { - "line": 110, + "line": 111, "column": 12 }, "end": { - "line": 121, + "line": 126, "column": 13 } } } ], "range": [ - 2907, - 3462 + 2937, + 3645 ], "loc": { "start": { - "line": 108, + "line": 109, "column": 37 }, "end": { - "line": 122, + "line": 127, "column": 9 } } @@ -5280,63 +5610,63 @@ "generator": false, "expression": false, "range": [ - 2892, - 3462 + 2922, + 3645 ], "loc": { "start": { - "line": 108, + "line": 109, "column": 22 }, "end": { - "line": 122, + "line": 127, "column": 9 } } } ], "range": [ - 2878, - 3463 + 2908, + 3646 ], "loc": { "start": { - "line": 108, + "line": 109, "column": 8 }, "end": { - "line": 122, + "line": 127, "column": 10 } } }, "range": [ - 2878, - 3464 + 2908, + 3647 ], "loc": { "start": { - "line": 108, + "line": 109, "column": 8 }, "end": { - "line": 122, + "line": 127, "column": 11 } } } ], "range": [ - 2868, - 3470 + 2898, + 3653 ], "loc": { "start": { - "line": 107, + "line": 108, "column": 31 }, "end": { - "line": 123, + "line": 128, "column": 5 } } @@ -5344,16 +5674,16 @@ "generator": false, "expression": false, "range": [ - 2857, - 3470 + 2887, + 3653 ], "loc": { "start": { - "line": 107, + "line": 108, "column": 20 }, "end": { - "line": 123, + "line": 128, "column": 5 } } @@ -5361,16 +5691,16 @@ "kind": "method", "computed": false, "range": [ - 2841, - 3470 + 2871, + 3653 ], "loc": { "start": { - "line": 107, + "line": 108, "column": 4 }, "end": { - "line": 123, + "line": 128, "column": 5 } }, @@ -5379,16 +5709,16 @@ "type": "Block", "value": "*\n * Add date time format(s) to a locale as specified by the passed\n * collection of column types, ie:\n * [\n * 'string',\n * 'number',\n * { type: 'date', locale: 'en', format: ['{dd}/{MM}/{yyyy}']}\n * ]\n *\n * @param {Array} [types=[]] Collection of column types\n ", "range": [ - 2514, - 2836 + 2544, + 2866 ], "loc": { "start": { - "line": 96, + "line": 97, "column": 4 }, "end": { - "line": 106, + "line": 107, "column": 7 } } @@ -5399,16 +5729,16 @@ "type": "Block", "value": "*\n * Remove DateType instance\n ", "range": [ - 3476, - 3519 + 3659, + 3702 ], "loc": { "start": { - "line": 125, + "line": 130, "column": 4 }, "end": { - "line": 127, + "line": 132, "column": 7 } } @@ -5422,16 +5752,16 @@ "type": "Identifier", "name": "destroy", "range": [ - 3524, - 3531 + 3707, + 3714 ], "loc": { "start": { - "line": 128, + "line": 133, "column": 4 }, "end": { - "line": 128, + "line": 133, "column": 11 } } @@ -5454,16 +5784,16 @@ "object": { "type": "ThisExpression", "range": [ - 3549, - 3553 + 3732, + 3736 ], "loc": { "start": { - "line": 129, + "line": 134, "column": 13 }, "end": { - "line": 129, + "line": 134, "column": 17 } } @@ -5472,47 +5802,47 @@ "type": "Identifier", "name": "initialized", "range": [ - 3554, - 3565 + 3737, + 3748 ], "loc": { "start": { - "line": 129, + "line": 134, "column": 18 }, "end": { - "line": 129, + "line": 134, "column": 29 } } }, "range": [ - 3549, - 3565 + 3732, + 3748 ], "loc": { "start": { - "line": 129, + "line": 134, "column": 13 }, "end": { - "line": 129, + "line": 134, "column": 29 } } }, "prefix": true, "range": [ - 3548, - 3565 + 3731, + 3748 ], "loc": { "start": { - "line": 129, + "line": 134, "column": 12 }, "end": { - "line": 129, + "line": 134, "column": 29 } } @@ -5524,48 +5854,48 @@ "type": "ReturnStatement", "argument": null, "range": [ - 3581, - 3588 + 3764, + 3771 ], "loc": { "start": { - "line": 130, + "line": 135, "column": 12 }, "end": { - "line": 130, + "line": 135, "column": 19 } } } ], "range": [ - 3567, - 3598 + 3750, + 3781 ], "loc": { "start": { - "line": 129, + "line": 134, "column": 31 }, "end": { - "line": 131, + "line": 136, "column": 9 } } }, "alternate": null, "range": [ - 3544, - 3598 + 3727, + 3781 ], "loc": { "start": { - "line": 129, + "line": 134, "column": 8 }, "end": { - "line": 131, + "line": 136, "column": 9 } }, @@ -5574,16 +5904,16 @@ "type": "Line", "value": " TODO: remove added formats", "range": [ - 3608, - 3637 + 3791, + 3820 ], "loc": { "start": { - "line": 133, + "line": 138, "column": 8 }, "end": { - "line": 133, + "line": 138, "column": 37 } } @@ -5603,16 +5933,16 @@ "object": { "type": "ThisExpression", "range": [ - 3647, - 3651 + 3830, + 3834 ], "loc": { "start": { - "line": 135, + "line": 140, "column": 8 }, "end": { - "line": 135, + "line": 140, "column": 12 } } @@ -5621,31 +5951,31 @@ "type": "Identifier", "name": "emitter", "range": [ - 3652, - 3659 + 3835, + 3842 ], "loc": { "start": { - "line": 135, + "line": 140, "column": 13 }, "end": { - "line": 135, + "line": 140, "column": 20 } } }, "range": [ - 3647, - 3659 + 3830, + 3842 ], "loc": { "start": { - "line": 135, + "line": 140, "column": 8 }, "end": { - "line": 135, + "line": 140, "column": 20 } } @@ -5654,31 +5984,31 @@ "type": "Identifier", "name": "off", "range": [ - 3660, - 3663 + 3843, + 3846 ], "loc": { "start": { - "line": 135, + "line": 140, "column": 21 }, "end": { - "line": 135, + "line": 140, "column": 24 } } }, "range": [ - 3647, - 3663 + 3830, + 3846 ], "loc": { "start": { - "line": 135, + "line": 140, "column": 8 }, "end": { - "line": 135, + "line": 140, "column": 24 } } @@ -5692,32 +6022,32 @@ "value": "add-date-type-formats", "raw": "'add-date-type-formats'", "range": [ - 3678, - 3701 + 3861, + 3884 ], "loc": { "start": { - "line": 136, + "line": 141, "column": 13 }, "end": { - "line": 136, + "line": 141, "column": 36 } } } ], "range": [ - 3677, - 3702 + 3860, + 3885 ], "loc": { "start": { - "line": 136, + "line": 141, "column": 12 }, "end": { - "line": 136, + "line": 141, "column": 37 } } @@ -5730,16 +6060,16 @@ "type": "Identifier", "name": "tf", "range": [ - 3717, - 3719 + 3900, + 3902 ], "loc": { "start": { - "line": 137, + "line": 142, "column": 13 }, "end": { - "line": 137, + "line": 142, "column": 15 } } @@ -5748,16 +6078,16 @@ "type": "Identifier", "name": "types", "range": [ - 3721, - 3726 + 3904, + 3909 ], "loc": { "start": { - "line": 137, + "line": 142, "column": 17 }, "end": { - "line": 137, + "line": 142, "column": 22 } } @@ -5771,16 +6101,16 @@ "object": { "type": "ThisExpression", "range": [ - 3731, - 3735 + 3914, + 3918 ], "loc": { "start": { - "line": 137, + "line": 142, "column": 27 }, "end": { - "line": 137, + "line": 142, "column": 31 } } @@ -5789,31 +6119,31 @@ "type": "Identifier", "name": "addConfigFormats", "range": [ - 3736, - 3752 + 3919, + 3935 ], "loc": { "start": { - "line": 137, + "line": 142, "column": 32 }, "end": { - "line": 137, + "line": 142, "column": 48 } } }, "range": [ - 3731, - 3752 + 3914, + 3935 ], "loc": { "start": { - "line": 137, + "line": 142, "column": 27 }, "end": { - "line": 137, + "line": 142, "column": 48 } } @@ -5823,32 +6153,32 @@ "type": "Identifier", "name": "types", "range": [ - 3753, - 3758 + 3936, + 3941 ], "loc": { "start": { - "line": 137, + "line": 142, "column": 49 }, "end": { - "line": 137, + "line": 142, "column": 54 } } } ], "range": [ - 3731, - 3759 + 3914, + 3942 ], "loc": { "start": { - "line": 137, + "line": 142, "column": 27 }, "end": { - "line": 137, + "line": 142, "column": 55 } } @@ -5856,47 +6186,47 @@ "generator": false, "expression": true, "range": [ - 3716, - 3759 + 3899, + 3942 ], "loc": { "start": { - "line": 137, + "line": 142, "column": 12 }, "end": { - "line": 137, + "line": 142, "column": 55 } } } ], "range": [ - 3647, - 3769 + 3830, + 3952 ], "loc": { "start": { - "line": 135, + "line": 140, "column": 8 }, "end": { - "line": 138, + "line": 143, "column": 9 } } }, "range": [ - 3647, - 3770 + 3830, + 3953 ], "loc": { "start": { - "line": 135, + "line": 140, "column": 8 }, "end": { - "line": 138, + "line": 143, "column": 10 } }, @@ -5905,16 +6235,16 @@ "type": "Line", "value": " TODO: remove added formats", "range": [ - 3608, - 3637 + 3791, + 3820 ], "loc": { "start": { - "line": 133, + "line": 138, "column": 8 }, "end": { - "line": 133, + "line": 138, "column": 37 } } @@ -5932,16 +6262,16 @@ "object": { "type": "ThisExpression", "range": [ - 3780, - 3784 + 3963, + 3967 ], "loc": { "start": { - "line": 140, + "line": 145, "column": 8 }, "end": { - "line": 140, + "line": 145, "column": 12 } } @@ -5950,31 +6280,31 @@ "type": "Identifier", "name": "initialized", "range": [ - 3785, - 3796 + 3968, + 3979 ], "loc": { "start": { - "line": 140, + "line": 145, "column": 13 }, "end": { - "line": 140, + "line": 145, "column": 24 } } }, "range": [ - 3780, - 3796 + 3963, + 3979 ], "loc": { "start": { - "line": 140, + "line": 145, "column": 8 }, "end": { - "line": 140, + "line": 145, "column": 24 } } @@ -5984,62 +6314,62 @@ "value": false, "raw": "false", "range": [ - 3799, - 3804 + 3982, + 3987 ], "loc": { "start": { - "line": 140, + "line": 145, "column": 27 }, "end": { - "line": 140, + "line": 145, "column": 32 } } }, "range": [ - 3780, - 3804 + 3963, + 3987 ], "loc": { "start": { - "line": 140, + "line": 145, "column": 8 }, "end": { - "line": 140, + "line": 145, "column": 32 } } }, "range": [ - 3780, - 3805 + 3963, + 3988 ], "loc": { "start": { - "line": 140, + "line": 145, "column": 8 }, "end": { - "line": 140, + "line": 145, "column": 33 } } } ], "range": [ - 3534, - 3811 + 3717, + 3994 ], "loc": { "start": { - "line": 128, + "line": 133, "column": 14 }, "end": { - "line": 141, + "line": 146, "column": 5 } } @@ -6047,16 +6377,16 @@ "generator": false, "expression": false, "range": [ - 3531, - 3811 + 3714, + 3994 ], "loc": { "start": { - "line": 128, + "line": 133, "column": 11 }, "end": { - "line": 141, + "line": 146, "column": 5 } } @@ -6064,16 +6394,16 @@ "kind": "method", "computed": false, "range": [ - 3524, - 3811 + 3707, + 3994 ], "loc": { "start": { - "line": 128, + "line": 133, "column": 4 }, "end": { - "line": 141, + "line": 146, "column": 5 } }, @@ -6082,16 +6412,16 @@ "type": "Block", "value": "*\n * Remove DateType instance\n ", "range": [ - 3476, - 3519 + 3659, + 3702 ], "loc": { "start": { - "line": 125, + "line": 130, "column": 4 }, "end": { - "line": 127, + "line": 132, "column": 7 } } @@ -6101,31 +6431,31 @@ } ], "range": [ - 332, - 3813 + 362, + 3996 ], "loc": { "start": { - "line": 12, + "line": 13, "column": 38 }, "end": { - "line": 142, + "line": 147, "column": 1 } } }, "range": [ - 301, - 3813 + 331, + 3996 ], "loc": { "start": { - "line": 12, + "line": 13, "column": 7 }, "end": { - "line": 142, + "line": 147, "column": 1 } }, @@ -6134,16 +6464,16 @@ "type": "Block", "value": "*\n * Wrapper for Sugar Date module providing datetime helpers and locales\n * @export\n * @class DateType\n ", "range": [ - 184, - 293 + 214, + 323 ], "loc": { "start": { - "line": 7, + "line": 8, "column": 0 }, "end": { - "line": 11, + "line": 12, "column": 3 } } @@ -6154,16 +6484,16 @@ "specifiers": [], "source": null, "range": [ - 294, - 3813 + 324, + 3996 ], "loc": { "start": { - "line": 12, + "line": 13, "column": 0 }, "end": { - "line": 142, + "line": 147, "column": 1 } }, @@ -6172,16 +6502,16 @@ "type": "Block", "value": "*\n * Wrapper for Sugar Date module providing datetime helpers and locales\n * @export\n * @class DateType\n ", "range": [ - 184, - 293 + 214, + 323 ], "loc": { "start": { - "line": 7, + "line": 8, "column": 0 }, "end": { - "line": 11, + "line": 12, "column": 3 } } @@ -6192,7 +6522,7 @@ "sourceType": "module", "range": [ 0, - 3813 + 3996 ], "loc": { "start": { @@ -6200,7 +6530,7 @@ "column": 0 }, "end": { - "line": 142, + "line": 147, "column": 1 } }, @@ -6209,16 +6539,16 @@ "type": "Block", "value": "*\n * Wrapper for Sugar Date module providing datetime helpers and locales\n * @export\n * @class DateType\n ", "range": [ - 184, - 293 + 214, + 323 ], "loc": { "start": { - "line": 7, + "line": 8, "column": 0 }, "end": { - "line": 11, + "line": 12, "column": 3 } } @@ -6227,16 +6557,16 @@ "type": "Block", "value": "*\n * Creates an instance of DateType\n * @param {TableFilter} tf TableFilter instance\n ", "range": [ - 339, - 441 + 369, + 471 ], "loc": { "start": { - "line": 14, + "line": 15, "column": 4 }, "end": { - "line": 17, + "line": 18, "column": 7 } } @@ -6245,16 +6575,16 @@ "type": "Block", "value": "*\n * Global locale\n * @type {String}\n ", "range": [ - 504, - 570 + 534, + 600 ], "loc": { "start": { - "line": 21, + "line": 22, "column": 8 }, "end": { - "line": 24, + "line": 25, "column": 11 } } @@ -6263,16 +6593,16 @@ "type": "Block", "value": "*\n * Sugar Date instance\n * @type {Object}\n ", "range": [ - 613, - 685 + 643, + 715 ], "loc": { "start": { - "line": 27, + "line": 28, "column": 8 }, "end": { - "line": 30, + "line": 31, "column": 11 } } @@ -6281,16 +6611,16 @@ "type": "Block", "value": "*\n * Initialize DateType instance\n ", "range": [ - 756, - 803 + 786, + 833 ], "loc": { "start": { - "line": 36, + "line": 37, "column": 4 }, "end": { - "line": 38, + "line": 39, "column": 7 } } @@ -6299,16 +6629,16 @@ "type": "Line", "value": " Set global locale", "range": [ - 888, - 908 + 918, + 938 ], "loc": { "start": { - "line": 44, + "line": 45, "column": 8 }, "end": { - "line": 44, + "line": 45, "column": 28 } } @@ -6317,16 +6647,16 @@ "type": "Line", "value": " Add formats from column types configuration if any", "range": [ - 964, - 1017 + 994, + 1047 ], "loc": { "start": { - "line": 47, + "line": 48, "column": 8 }, "end": { - "line": 47, + "line": 48, "column": 61 } } @@ -6335,16 +6665,16 @@ "type": "Line", "value": " Broadcast date-type initialization", "range": [ - 1208, - 1245 + 1238, + 1275 ], "loc": { "start": { - "line": 55, + "line": 56, "column": 8 }, "end": { - "line": 55, + "line": 56, "column": 45 } } @@ -6353,16 +6683,16 @@ "type": "Block", "value": "* @inherited ", "range": [ - 1322, - 1339 + 1352, + 1369 ], "loc": { "start": { - "line": 58, + "line": 59, "column": 8 }, "end": { - "line": 58, + "line": 59, "column": 25 } } @@ -6371,16 +6701,16 @@ "type": "Block", "value": "*\n * Parse a string representation of a date for a specified locale and return\n * a date object\n * @param {String} dateStr String representation of a date\n * @param {String} localeCode Locale code (ie 'en-us')\n * @returns {Date}\n ", "range": [ - 1384, - 1642 + 1414, + 1672 ], "loc": { "start": { - "line": 62, + "line": 63, "column": 4 }, "end": { - "line": 68, + "line": 69, "column": 7 } } @@ -6389,16 +6719,16 @@ "type": "Block", "value": "*\n * Check string representation of a date for a specified locale is valid\n * @param {any} dateStr String representation of a date\n * @param {any} localeCode Locale code (ie 'en-us')\n * @returns {Boolean}\n ", "range": [ - 1745, - 1975 + 1775, + 2005 ], "loc": { "start": { - "line": 73, + "line": 74, "column": 4 }, "end": { - "line": 78, + "line": 79, "column": 7 } } @@ -6407,16 +6737,16 @@ "type": "Block", "value": "*\n * Return the type object of a specified column as per configuration or\n * passed collection\n * @param {Number} colIndex Column index\n * @param {Array} types Collection of column types, optional\n * @returns {Object}\n ", "range": [ - 2093, - 2340 + 2123, + 2370 ], "loc": { "start": { - "line": 83, + "line": 84, "column": 4 }, "end": { - "line": 89, + "line": 90, "column": 7 } } @@ -6425,34 +6755,52 @@ "type": "Block", "value": "*\n * Add date time format(s) to a locale as specified by the passed\n * collection of column types, ie:\n * [\n * 'string',\n * 'number',\n * { type: 'date', locale: 'en', format: ['{dd}/{MM}/{yyyy}']}\n * ]\n *\n * @param {Array} [types=[]] Collection of column types\n ", "range": [ - 2514, - 2836 + 2544, + 2866 ], "loc": { "start": { - "line": 96, + "line": 97, "column": 4 }, "end": { - "line": 106, + "line": 107, "column": 7 } } }, + { + "type": "Line", + "value": " Sugar date module throws exceptions with locale.addFormat", + "range": [ + 3322, + 3382 + ], + "loc": { + "start": { + "line": 118, + "column": 16 + }, + "end": { + "line": 118, + "column": 76 + } + } + }, { "type": "Block", "value": "*\n * Remove DateType instance\n ", "range": [ - 3476, - 3519 + 3659, + 3702 ], "loc": { "start": { - "line": 125, + "line": 130, "column": 4 }, "end": { - "line": 127, + "line": 132, "column": 7 } } @@ -6461,16 +6809,16 @@ "type": "Line", "value": " TODO: remove added formats", "range": [ - 3608, - 3637 + 3791, + 3820 ], "loc": { "start": { - "line": 133, + "line": 138, "column": 8 }, "end": { - "line": 133, + "line": 138, "column": 37 } } diff --git a/docs/class/src/emitter.js~Emitter.html b/docs/class/src/emitter.js~Emitter.html index 10b1475a..25c9f98e 100644 --- a/docs/class/src/emitter.js~Emitter.html +++ b/docs/class/src/emitter.js~Emitter.html @@ -3,7 +3,7 @@ - Emitter | tablefilter v0.3.3 API Document + Emitter | tablefilter v0.3.4 API Document diff --git a/docs/class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html b/docs/class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html index 276856ec..7eae9525 100644 --- a/docs/class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html +++ b/docs/class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html @@ -3,7 +3,7 @@ - AdapterEzEditTable | tablefilter v0.3.3 API Document + AdapterEzEditTable | tablefilter v0.3.4 API Document diff --git a/docs/class/src/extensions/colOps/colOps.js~ColOps.html b/docs/class/src/extensions/colOps/colOps.js~ColOps.html index c5d24622..4fb837c3 100644 --- a/docs/class/src/extensions/colOps/colOps.js~ColOps.html +++ b/docs/class/src/extensions/colOps/colOps.js~ColOps.html @@ -3,7 +3,7 @@ - ColOps | tablefilter v0.3.3 API Document + ColOps | tablefilter v0.3.4 API Document diff --git a/docs/class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html b/docs/class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html index 9bc6c5fb..3e28aba1 100644 --- a/docs/class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html +++ b/docs/class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html @@ -3,7 +3,7 @@ - ColsVisibility | tablefilter v0.3.3 API Document + ColsVisibility | tablefilter v0.3.4 API Document diff --git a/docs/class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html b/docs/class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html index 7c43c591..76550f51 100644 --- a/docs/class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html +++ b/docs/class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html @@ -3,7 +3,7 @@ - FiltersVisibility | tablefilter v0.3.3 API Document + FiltersVisibility | tablefilter v0.3.4 API Document diff --git a/docs/class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html b/docs/class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html index 9e418763..2c71d0a1 100644 --- a/docs/class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html +++ b/docs/class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html @@ -3,7 +3,7 @@ - AdapterSortableTable | tablefilter v0.3.3 API Document + AdapterSortableTable | tablefilter v0.3.4 API Document diff --git a/docs/class/src/feature.js~Feature.html b/docs/class/src/feature.js~Feature.html index cf88caf4..1abee457 100644 --- a/docs/class/src/feature.js~Feature.html +++ b/docs/class/src/feature.js~Feature.html @@ -3,7 +3,7 @@ - Feature | tablefilter v0.3.3 API Document + Feature | tablefilter v0.3.4 API Document diff --git a/docs/class/src/modules/alternateRows.js~AlternateRows.html b/docs/class/src/modules/alternateRows.js~AlternateRows.html index 865fa0f4..4910e9e8 100644 --- a/docs/class/src/modules/alternateRows.js~AlternateRows.html +++ b/docs/class/src/modules/alternateRows.js~AlternateRows.html @@ -3,7 +3,7 @@ - AlternateRows | tablefilter v0.3.3 API Document + AlternateRows | tablefilter v0.3.4 API Document diff --git a/docs/class/src/modules/checkList.js~CheckList.html b/docs/class/src/modules/checkList.js~CheckList.html index a101d74d..38b8b8dc 100644 --- a/docs/class/src/modules/checkList.js~CheckList.html +++ b/docs/class/src/modules/checkList.js~CheckList.html @@ -3,7 +3,7 @@ - CheckList | tablefilter v0.3.3 API Document + CheckList | tablefilter v0.3.4 API Document diff --git a/docs/class/src/modules/clearButton.js~ClearButton.html b/docs/class/src/modules/clearButton.js~ClearButton.html index cef7c2a4..df2cd371 100644 --- a/docs/class/src/modules/clearButton.js~ClearButton.html +++ b/docs/class/src/modules/clearButton.js~ClearButton.html @@ -3,7 +3,7 @@ - ClearButton | tablefilter v0.3.3 API Document + ClearButton | tablefilter v0.3.4 API Document diff --git a/docs/class/src/modules/dateType.js~DateType.html b/docs/class/src/modules/dateType.js~DateType.html index 9cb95a15..4e313c5d 100644 --- a/docs/class/src/modules/dateType.js~DateType.html +++ b/docs/class/src/modules/dateType.js~DateType.html @@ -3,7 +3,7 @@ - DateType | tablefilter v0.3.3 API Document + DateType | tablefilter v0.3.4 API Document @@ -119,13 +119,13 @@
-
import {DateType} from 'tablefilter/src/modules/dateType.js'
+
import {DateType} from 'tablefilter/src/modules/dateType.js'
public class - | source + | source
@@ -783,7 +783,7 @@ a date object

- source + source @@ -844,7 +844,7 @@ a date object

- source + source @@ -885,7 +885,7 @@ a date object

- source + source @@ -925,7 +925,7 @@ a date object

- source + source @@ -969,7 +969,7 @@ a date object

- source + source @@ -1034,7 +1034,7 @@ collection of column types, ie: - source + source @@ -1075,7 +1075,7 @@ collection of column types, ie: - source + source @@ -1151,7 +1151,7 @@ passed collection

- source + source @@ -1192,7 +1192,7 @@ passed collection

- source + source @@ -1267,7 +1267,7 @@ passed collection

- source + source diff --git a/docs/class/src/modules/dropdown.js~Dropdown.html b/docs/class/src/modules/dropdown.js~Dropdown.html index 51588438..a8197496 100644 --- a/docs/class/src/modules/dropdown.js~Dropdown.html +++ b/docs/class/src/modules/dropdown.js~Dropdown.html @@ -3,7 +3,7 @@ - Dropdown | tablefilter v0.3.3 API Document + Dropdown | tablefilter v0.3.4 API Document diff --git a/docs/class/src/modules/gridLayout.js~GridLayout.html b/docs/class/src/modules/gridLayout.js~GridLayout.html index c0bef7b2..7a3ee291 100644 --- a/docs/class/src/modules/gridLayout.js~GridLayout.html +++ b/docs/class/src/modules/gridLayout.js~GridLayout.html @@ -3,7 +3,7 @@ - GridLayout | tablefilter v0.3.3 API Document + GridLayout | tablefilter v0.3.4 API Document diff --git a/docs/class/src/modules/hash.js~Hash.html b/docs/class/src/modules/hash.js~Hash.html index f39d121b..56c5c835 100644 --- a/docs/class/src/modules/hash.js~Hash.html +++ b/docs/class/src/modules/hash.js~Hash.html @@ -3,7 +3,7 @@ - Hash | tablefilter v0.3.3 API Document + Hash | tablefilter v0.3.4 API Document diff --git a/docs/class/src/modules/help.js~Help.html b/docs/class/src/modules/help.js~Help.html index ca5dffd1..7f322e6e 100644 --- a/docs/class/src/modules/help.js~Help.html +++ b/docs/class/src/modules/help.js~Help.html @@ -3,7 +3,7 @@ - Help | tablefilter v0.3.3 API Document + Help | tablefilter v0.3.4 API Document diff --git a/docs/class/src/modules/highlightKeywords.js~HighlightKeyword.html b/docs/class/src/modules/highlightKeywords.js~HighlightKeyword.html index 30187a5e..d5806022 100644 --- a/docs/class/src/modules/highlightKeywords.js~HighlightKeyword.html +++ b/docs/class/src/modules/highlightKeywords.js~HighlightKeyword.html @@ -3,7 +3,7 @@ - HighlightKeyword | tablefilter v0.3.3 API Document + HighlightKeyword | tablefilter v0.3.4 API Document diff --git a/docs/class/src/modules/loader.js~Loader.html b/docs/class/src/modules/loader.js~Loader.html index 9accc8d6..caf5cffa 100644 --- a/docs/class/src/modules/loader.js~Loader.html +++ b/docs/class/src/modules/loader.js~Loader.html @@ -3,7 +3,7 @@ - Loader | tablefilter v0.3.3 API Document + Loader | tablefilter v0.3.4 API Document diff --git a/docs/class/src/modules/noResults.js~NoResults.html b/docs/class/src/modules/noResults.js~NoResults.html index 7c632873..4f2c2d81 100644 --- a/docs/class/src/modules/noResults.js~NoResults.html +++ b/docs/class/src/modules/noResults.js~NoResults.html @@ -3,7 +3,7 @@ - NoResults | tablefilter v0.3.3 API Document + NoResults | tablefilter v0.3.4 API Document diff --git a/docs/class/src/modules/paging.js~Paging.html b/docs/class/src/modules/paging.js~Paging.html index 9688ddec..6be724b9 100644 --- a/docs/class/src/modules/paging.js~Paging.html +++ b/docs/class/src/modules/paging.js~Paging.html @@ -3,7 +3,7 @@ - Paging | tablefilter v0.3.3 API Document + Paging | tablefilter v0.3.4 API Document diff --git a/docs/class/src/modules/popupFilter.js~PopupFilter.html b/docs/class/src/modules/popupFilter.js~PopupFilter.html index 8e913ec4..6060d600 100644 --- a/docs/class/src/modules/popupFilter.js~PopupFilter.html +++ b/docs/class/src/modules/popupFilter.js~PopupFilter.html @@ -3,7 +3,7 @@ - PopupFilter | tablefilter v0.3.3 API Document + PopupFilter | tablefilter v0.3.4 API Document diff --git a/docs/class/src/modules/rowsCounter.js~RowsCounter.html b/docs/class/src/modules/rowsCounter.js~RowsCounter.html index 284bead9..10dd4873 100644 --- a/docs/class/src/modules/rowsCounter.js~RowsCounter.html +++ b/docs/class/src/modules/rowsCounter.js~RowsCounter.html @@ -3,7 +3,7 @@ - RowsCounter | tablefilter v0.3.3 API Document + RowsCounter | tablefilter v0.3.4 API Document diff --git a/docs/class/src/modules/state.js~State.html b/docs/class/src/modules/state.js~State.html index 4a0c6f5a..1c9129ab 100644 --- a/docs/class/src/modules/state.js~State.html +++ b/docs/class/src/modules/state.js~State.html @@ -3,7 +3,7 @@ - State | tablefilter v0.3.3 API Document + State | tablefilter v0.3.4 API Document diff --git a/docs/class/src/modules/statusBar.js~StatusBar.html b/docs/class/src/modules/statusBar.js~StatusBar.html index 9c580c21..4b466fee 100644 --- a/docs/class/src/modules/statusBar.js~StatusBar.html +++ b/docs/class/src/modules/statusBar.js~StatusBar.html @@ -3,7 +3,7 @@ - StatusBar | tablefilter v0.3.3 API Document + StatusBar | tablefilter v0.3.4 API Document diff --git a/docs/class/src/modules/storage.js~Storage.html b/docs/class/src/modules/storage.js~Storage.html index dd51f086..c5484921 100644 --- a/docs/class/src/modules/storage.js~Storage.html +++ b/docs/class/src/modules/storage.js~Storage.html @@ -3,7 +3,7 @@ - Storage | tablefilter v0.3.3 API Document + Storage | tablefilter v0.3.4 API Document diff --git a/docs/class/src/tablefilter.js~TableFilter.html b/docs/class/src/tablefilter.js~TableFilter.html index 93dac43e..5540e569 100644 --- a/docs/class/src/tablefilter.js~TableFilter.html +++ b/docs/class/src/tablefilter.js~TableFilter.html @@ -3,7 +3,7 @@ - TableFilter | tablefilter v0.3.3 API Document + TableFilter | tablefilter v0.3.4 API Document diff --git a/docs/dump.json b/docs/dump.json index 921dfc25..c10a5441 100644 --- a/docs/dump.json +++ b/docs/dump.json @@ -6790,7 +6790,7 @@ "access": null, "description": null, "lineNumber": 1, - "content": "import {Date as SugarDate} from 'sugar-date';\nimport 'sugar-date/locales';\nimport {Feature} from '../feature';\nimport {isObj, isArray} from '../types';\nimport {DATE} from '../const';\n\n/**\n * Wrapper for Sugar Date module providing datetime helpers and locales\n * @export\n * @class DateType\n */\nexport class DateType extends Feature {\n\n /**\n * Creates an instance of DateType\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'dateType');\n\n /**\n * Global locale\n * @type {String}\n */\n this.locale = tf.locale;\n\n /**\n * Sugar Date instance\n * @type {Object}\n */\n this.datetime = SugarDate;\n\n this.enable();\n }\n\n /**\n * Initialize DateType instance\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n // Set global locale\n this.datetime.setLocale(this.locale);\n\n // Add formats from column types configuration if any\n this.addConfigFormats(this.tf.colTypes);\n\n this.emitter.on(\n ['add-date-type-formats'],\n (tf, types) => this.addConfigFormats(types)\n );\n\n // Broadcast date-type initialization\n this.emitter.emit('date-type-initialized', this.tf, this);\n\n /** @inherited */\n this.initialized = true;\n }\n\n /**\n * Parse a string representation of a date for a specified locale and return\n * a date object\n * @param {String} dateStr String representation of a date\n * @param {String} localeCode Locale code (ie 'en-us')\n * @returns {Date}\n */\n parse(dateStr, localeCode) {\n return this.datetime.create(dateStr, localeCode);\n }\n\n /**\n * Check string representation of a date for a specified locale is valid\n * @param {any} dateStr String representation of a date\n * @param {any} localeCode Locale code (ie 'en-us')\n * @returns {Boolean}\n */\n isValid(dateStr, localeCode) {\n return this.datetime.isValid(this.parse(dateStr, localeCode));\n }\n\n /**\n * Return the type object of a specified column as per configuration or\n * passed collection\n * @param {Number} colIndex Column index\n * @param {Array} types Collection of column types, optional\n * @returns {Object}\n */\n getOptions(colIndex, types) {\n types = types || this.tf.colTypes;\n let colType = types[colIndex];\n return isObj(colType) ? colType : {};\n }\n\n /**\n * Add date time format(s) to a locale as specified by the passed\n * collection of column types, ie:\n * [\n * 'string',\n * 'number',\n * { type: 'date', locale: 'en', format: ['{dd}/{MM}/{yyyy}']}\n * ]\n *\n * @param {Array} [types=[]] Collection of column types\n */\n addConfigFormats(types=[]) {\n types.forEach((type, idx) => {\n let options = this.getOptions(idx, types);\n if (options.type === DATE && options.hasOwnProperty('format')) {\n let locale = this.datetime.getLocale(\n options.locale || this.locale\n );\n if (isArray(options.format)) {\n options.format.forEach((format) => {\n locale.addFormat(format);\n });\n } else {\n locale.addFormat(options.format);\n }\n }\n });\n }\n\n /**\n * Remove DateType instance\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n\n // TODO: remove added formats\n\n this.emitter.off(\n ['add-date-type-formats'],\n (tf, types) => this.addConfigFormats(types)\n );\n\n this.initialized = false;\n }\n}\n" + "content": "import {Date as SugarDate} from 'sugar-date';\nimport 'sugar-date/locales';\nimport {Feature} from '../feature';\nimport {isObj, isArray} from '../types';\nimport {DATE} from '../const';\nimport {root} from '../root';\n\n/**\n * Wrapper for Sugar Date module providing datetime helpers and locales\n * @export\n * @class DateType\n */\nexport class DateType extends Feature {\n\n /**\n * Creates an instance of DateType\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'dateType');\n\n /**\n * Global locale\n * @type {String}\n */\n this.locale = tf.locale;\n\n /**\n * Sugar Date instance\n * @type {Object}\n */\n this.datetime = SugarDate;\n\n this.enable();\n }\n\n /**\n * Initialize DateType instance\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n // Set global locale\n this.datetime.setLocale(this.locale);\n\n // Add formats from column types configuration if any\n this.addConfigFormats(this.tf.colTypes);\n\n this.emitter.on(\n ['add-date-type-formats'],\n (tf, types) => this.addConfigFormats(types)\n );\n\n // Broadcast date-type initialization\n this.emitter.emit('date-type-initialized', this.tf, this);\n\n /** @inherited */\n this.initialized = true;\n }\n\n /**\n * Parse a string representation of a date for a specified locale and return\n * a date object\n * @param {String} dateStr String representation of a date\n * @param {String} localeCode Locale code (ie 'en-us')\n * @returns {Date}\n */\n parse(dateStr, localeCode) {\n return this.datetime.create(dateStr, localeCode);\n }\n\n /**\n * Check string representation of a date for a specified locale is valid\n * @param {any} dateStr String representation of a date\n * @param {any} localeCode Locale code (ie 'en-us')\n * @returns {Boolean}\n */\n isValid(dateStr, localeCode) {\n return this.datetime.isValid(this.parse(dateStr, localeCode));\n }\n\n /**\n * Return the type object of a specified column as per configuration or\n * passed collection\n * @param {Number} colIndex Column index\n * @param {Array} types Collection of column types, optional\n * @returns {Object}\n */\n getOptions(colIndex, types) {\n types = types || this.tf.colTypes;\n let colType = types[colIndex];\n return isObj(colType) ? colType : {};\n }\n\n /**\n * Add date time format(s) to a locale as specified by the passed\n * collection of column types, ie:\n * [\n * 'string',\n * 'number',\n * { type: 'date', locale: 'en', format: ['{dd}/{MM}/{yyyy}']}\n * ]\n *\n * @param {Array} [types=[]] Collection of column types\n */\n addConfigFormats(types=[]) {\n types.forEach((type, idx) => {\n let options = this.getOptions(idx, types);\n if (options.type === DATE && options.hasOwnProperty('format')) {\n let locale = this.datetime.getLocale(\n options.locale || this.locale\n );\n let formats = isArray(options.format) ?\n options.format : [options.format];\n\n // Sugar date module throws exceptions with locale.addFormat\n try {\n formats.forEach((format) => {\n locale.addFormat(format);\n });\n } catch (ex) {\n root.console.error(ex);\n }\n }\n });\n }\n\n /**\n * Remove DateType instance\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n\n // TODO: remove added formats\n\n this.emitter.off(\n ['add-date-type-formats'],\n (tf, types) => this.addConfigFormats(types)\n );\n\n this.initialized = false;\n }\n}\n" }, { "__docId__": 311, @@ -6805,7 +6805,7 @@ "importPath": "tablefilter/src/modules/dateType.js", "importStyle": "{DateType}", "description": "Wrapper for Sugar Date module providing datetime helpers and locales", - "lineNumber": 12, + "lineNumber": 13, "unknown": [ { "tagName": "@export", @@ -6831,7 +6831,7 @@ "longname": "src/modules/dateType.js~DateType#constructor", "access": null, "description": "Creates an instance of DateType", - "lineNumber": 18, + "lineNumber": 19, "params": [ { "nullable": null, @@ -6856,7 +6856,7 @@ "longname": "src/modules/dateType.js~DateType#locale", "access": null, "description": "Global locale", - "lineNumber": 25, + "lineNumber": 26, "type": { "nullable": null, "types": [ @@ -6876,7 +6876,7 @@ "longname": "src/modules/dateType.js~DateType#datetime", "access": null, "description": "Sugar Date instance", - "lineNumber": 31, + "lineNumber": 32, "type": { "nullable": null, "types": [ @@ -6896,7 +6896,7 @@ "longname": "src/modules/dateType.js~DateType#init", "access": null, "description": "Initialize DateType instance", - "lineNumber": 39, + "lineNumber": 40, "params": [], "generator": false }, @@ -6910,7 +6910,7 @@ "longname": "src/modules/dateType.js~DateType#initialized", "access": null, "description": null, - "lineNumber": 59, + "lineNumber": 60, "unknown": [ { "tagName": "@inherited", @@ -6933,7 +6933,7 @@ "longname": "src/modules/dateType.js~DateType#parse", "access": null, "description": "Parse a string representation of a date for a specified locale and return\na date object", - "lineNumber": 69, + "lineNumber": 70, "unknown": [ { "tagName": "@returns", @@ -6982,7 +6982,7 @@ "longname": "src/modules/dateType.js~DateType#isValid", "access": null, "description": "Check string representation of a date for a specified locale is valid", - "lineNumber": 79, + "lineNumber": 80, "unknown": [ { "tagName": "@returns", @@ -7031,7 +7031,7 @@ "longname": "src/modules/dateType.js~DateType#getOptions", "access": null, "description": "Return the type object of a specified column as per configuration or\npassed collection", - "lineNumber": 90, + "lineNumber": 91, "unknown": [ { "tagName": "@returns", @@ -7080,7 +7080,7 @@ "longname": "src/modules/dateType.js~DateType#addConfigFormats", "access": null, "description": "Add date time format(s) to a locale as specified by the passed\ncollection of column types, ie:\n [\n 'string',\n 'number',\n { type: 'date', locale: 'en', format: ['{dd}/{MM}/{yyyy}']}\n]", - "lineNumber": 107, + "lineNumber": 108, "params": [ { "nullable": null, @@ -7107,7 +7107,7 @@ "longname": "src/modules/dateType.js~DateType#destroy", "access": null, "description": "Remove DateType instance", - "lineNumber": 128, + "lineNumber": 133, "params": [], "generator": false }, @@ -7121,7 +7121,7 @@ "longname": "src/modules/dateType.js~DateType#initialized", "access": null, "description": null, - "lineNumber": 140, + "lineNumber": 145, "undocument": true, "type": { "types": [ diff --git a/docs/file/src/array.js.html b/docs/file/src/array.js.html index e03490b7..0ed3db9e 100644 --- a/docs/file/src/array.js.html +++ b/docs/file/src/array.js.html @@ -3,7 +3,7 @@ - src/array.js | tablefilter v0.3.3 API Document + src/array.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/const.js.html b/docs/file/src/const.js.html index 9c0cff39..6d1a9f56 100644 --- a/docs/file/src/const.js.html +++ b/docs/file/src/const.js.html @@ -3,7 +3,7 @@ - src/const.js | tablefilter v0.3.3 API Document + src/const.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/cookie.js.html b/docs/file/src/cookie.js.html index 72d0dc29..bcd07cc2 100644 --- a/docs/file/src/cookie.js.html +++ b/docs/file/src/cookie.js.html @@ -3,7 +3,7 @@ - src/cookie.js | tablefilter v0.3.3 API Document + src/cookie.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/dom.js.html b/docs/file/src/dom.js.html index dde9538c..c3c34f79 100644 --- a/docs/file/src/dom.js.html +++ b/docs/file/src/dom.js.html @@ -3,7 +3,7 @@ - src/dom.js | tablefilter v0.3.3 API Document + src/dom.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/emitter.js.html b/docs/file/src/emitter.js.html index 93fb4ec6..030ba4a8 100644 --- a/docs/file/src/emitter.js.html +++ b/docs/file/src/emitter.js.html @@ -3,7 +3,7 @@ - src/emitter.js | tablefilter v0.3.3 API Document + src/emitter.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/event.js.html b/docs/file/src/event.js.html index 5a22e28b..3ff91872 100644 --- a/docs/file/src/event.js.html +++ b/docs/file/src/event.js.html @@ -3,7 +3,7 @@ - src/event.js | tablefilter v0.3.3 API Document + src/event.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/extensions/advancedGrid/adapterEzEditTable.js.html b/docs/file/src/extensions/advancedGrid/adapterEzEditTable.js.html index a740f527..250bac76 100644 --- a/docs/file/src/extensions/advancedGrid/adapterEzEditTable.js.html +++ b/docs/file/src/extensions/advancedGrid/adapterEzEditTable.js.html @@ -3,7 +3,7 @@ - src/extensions/advancedGrid/adapterEzEditTable.js | tablefilter v0.3.3 API Document + src/extensions/advancedGrid/adapterEzEditTable.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/extensions/advancedGrid/advancedGrid.js.html b/docs/file/src/extensions/advancedGrid/advancedGrid.js.html index aa1ee05d..c295a048 100644 --- a/docs/file/src/extensions/advancedGrid/advancedGrid.js.html +++ b/docs/file/src/extensions/advancedGrid/advancedGrid.js.html @@ -3,7 +3,7 @@ - src/extensions/advancedGrid/advancedGrid.js | tablefilter v0.3.3 API Document + src/extensions/advancedGrid/advancedGrid.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/extensions/colOps/colOps.js.html b/docs/file/src/extensions/colOps/colOps.js.html index f1f74540..ba4cf6c7 100644 --- a/docs/file/src/extensions/colOps/colOps.js.html +++ b/docs/file/src/extensions/colOps/colOps.js.html @@ -3,7 +3,7 @@ - src/extensions/colOps/colOps.js | tablefilter v0.3.3 API Document + src/extensions/colOps/colOps.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/extensions/colsVisibility/colsVisibility.js.html b/docs/file/src/extensions/colsVisibility/colsVisibility.js.html index b00d1cb1..3ac0005a 100644 --- a/docs/file/src/extensions/colsVisibility/colsVisibility.js.html +++ b/docs/file/src/extensions/colsVisibility/colsVisibility.js.html @@ -3,7 +3,7 @@ - src/extensions/colsVisibility/colsVisibility.js | tablefilter v0.3.3 API Document + src/extensions/colsVisibility/colsVisibility.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/extensions/filtersVisibility/filtersVisibility.js.html b/docs/file/src/extensions/filtersVisibility/filtersVisibility.js.html index 025e882f..3b38cd9f 100644 --- a/docs/file/src/extensions/filtersVisibility/filtersVisibility.js.html +++ b/docs/file/src/extensions/filtersVisibility/filtersVisibility.js.html @@ -3,7 +3,7 @@ - src/extensions/filtersVisibility/filtersVisibility.js | tablefilter v0.3.3 API Document + src/extensions/filtersVisibility/filtersVisibility.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/extensions/sort/adapterSortabletable.js.html b/docs/file/src/extensions/sort/adapterSortabletable.js.html index e6bd3cd4..05cbff31 100644 --- a/docs/file/src/extensions/sort/adapterSortabletable.js.html +++ b/docs/file/src/extensions/sort/adapterSortabletable.js.html @@ -3,7 +3,7 @@ - src/extensions/sort/adapterSortabletable.js | tablefilter v0.3.3 API Document + src/extensions/sort/adapterSortabletable.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/extensions/sort/sort.js.html b/docs/file/src/extensions/sort/sort.js.html index bd810f4d..cef5d3c8 100644 --- a/docs/file/src/extensions/sort/sort.js.html +++ b/docs/file/src/extensions/sort/sort.js.html @@ -3,7 +3,7 @@ - src/extensions/sort/sort.js | tablefilter v0.3.3 API Document + src/extensions/sort/sort.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/feature.js.html b/docs/file/src/feature.js.html index e51b4663..7f7a6022 100644 --- a/docs/file/src/feature.js.html +++ b/docs/file/src/feature.js.html @@ -3,7 +3,7 @@ - src/feature.js | tablefilter v0.3.3 API Document + src/feature.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/modules/alternateRows.js.html b/docs/file/src/modules/alternateRows.js.html index 769854bc..54d679b3 100644 --- a/docs/file/src/modules/alternateRows.js.html +++ b/docs/file/src/modules/alternateRows.js.html @@ -3,7 +3,7 @@ - src/modules/alternateRows.js | tablefilter v0.3.3 API Document + src/modules/alternateRows.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/modules/checkList.js.html b/docs/file/src/modules/checkList.js.html index 00832f9c..f1898b83 100644 --- a/docs/file/src/modules/checkList.js.html +++ b/docs/file/src/modules/checkList.js.html @@ -3,7 +3,7 @@ - src/modules/checkList.js | tablefilter v0.3.3 API Document + src/modules/checkList.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/modules/clearButton.js.html b/docs/file/src/modules/clearButton.js.html index ba137300..94e1309a 100644 --- a/docs/file/src/modules/clearButton.js.html +++ b/docs/file/src/modules/clearButton.js.html @@ -3,7 +3,7 @@ - src/modules/clearButton.js | tablefilter v0.3.3 API Document + src/modules/clearButton.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/modules/dateType.js.html b/docs/file/src/modules/dateType.js.html index 0951a402..12c20d27 100644 --- a/docs/file/src/modules/dateType.js.html +++ b/docs/file/src/modules/dateType.js.html @@ -3,7 +3,7 @@ - src/modules/dateType.js | tablefilter v0.3.3 API Document + src/modules/dateType.js | tablefilter v0.3.4 API Document @@ -124,6 +124,7 @@ import 'sugar-date/locales'; import {Feature} from '../feature'; import {isObj, isArray} from '../types'; import {DATE} from '../const'; +import {root} from '../root'; /** * Wrapper for Sugar Date module providing datetime helpers and locales @@ -232,12 +233,16 @@ export class DateType extends Feature { let locale = this.datetime.getLocale( options.locale || this.locale ); - if (isArray(options.format)) { - options.format.forEach((format) => { + let formats = isArray(options.format) ? + options.format : [options.format]; + + // Sugar date module throws exceptions with locale.addFormat + try { + formats.forEach((format) => { locale.addFormat(format); }); - } else { - locale.addFormat(options.format); + } catch (ex) { + root.console.error(ex); } } }); diff --git a/docs/file/src/modules/dropdown.js.html b/docs/file/src/modules/dropdown.js.html index 8724aaaa..1dc73cff 100644 --- a/docs/file/src/modules/dropdown.js.html +++ b/docs/file/src/modules/dropdown.js.html @@ -3,7 +3,7 @@ - src/modules/dropdown.js | tablefilter v0.3.3 API Document + src/modules/dropdown.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/modules/gridLayout.js.html b/docs/file/src/modules/gridLayout.js.html index 69ae6fb2..2819e826 100644 --- a/docs/file/src/modules/gridLayout.js.html +++ b/docs/file/src/modules/gridLayout.js.html @@ -3,7 +3,7 @@ - src/modules/gridLayout.js | tablefilter v0.3.3 API Document + src/modules/gridLayout.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/modules/hash.js.html b/docs/file/src/modules/hash.js.html index 3912327f..c3a430c6 100644 --- a/docs/file/src/modules/hash.js.html +++ b/docs/file/src/modules/hash.js.html @@ -3,7 +3,7 @@ - src/modules/hash.js | tablefilter v0.3.3 API Document + src/modules/hash.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/modules/help.js.html b/docs/file/src/modules/help.js.html index ae9c2c92..1de3b017 100644 --- a/docs/file/src/modules/help.js.html +++ b/docs/file/src/modules/help.js.html @@ -3,7 +3,7 @@ - src/modules/help.js | tablefilter v0.3.3 API Document + src/modules/help.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/modules/highlightKeywords.js.html b/docs/file/src/modules/highlightKeywords.js.html index 5e0e0368..45f06491 100644 --- a/docs/file/src/modules/highlightKeywords.js.html +++ b/docs/file/src/modules/highlightKeywords.js.html @@ -3,7 +3,7 @@ - src/modules/highlightKeywords.js | tablefilter v0.3.3 API Document + src/modules/highlightKeywords.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/modules/loader.js.html b/docs/file/src/modules/loader.js.html index d60b42cd..812a24bd 100644 --- a/docs/file/src/modules/loader.js.html +++ b/docs/file/src/modules/loader.js.html @@ -3,7 +3,7 @@ - src/modules/loader.js | tablefilter v0.3.3 API Document + src/modules/loader.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/modules/noResults.js.html b/docs/file/src/modules/noResults.js.html index 2a3d26bc..c6c2a9da 100644 --- a/docs/file/src/modules/noResults.js.html +++ b/docs/file/src/modules/noResults.js.html @@ -3,7 +3,7 @@ - src/modules/noResults.js | tablefilter v0.3.3 API Document + src/modules/noResults.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/modules/paging.js.html b/docs/file/src/modules/paging.js.html index 20390814..724e343c 100644 --- a/docs/file/src/modules/paging.js.html +++ b/docs/file/src/modules/paging.js.html @@ -3,7 +3,7 @@ - src/modules/paging.js | tablefilter v0.3.3 API Document + src/modules/paging.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/modules/popupFilter.js.html b/docs/file/src/modules/popupFilter.js.html index 902bd945..594da9e4 100644 --- a/docs/file/src/modules/popupFilter.js.html +++ b/docs/file/src/modules/popupFilter.js.html @@ -3,7 +3,7 @@ - src/modules/popupFilter.js | tablefilter v0.3.3 API Document + src/modules/popupFilter.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/modules/rowsCounter.js.html b/docs/file/src/modules/rowsCounter.js.html index 8ffa3d07..78e014c8 100644 --- a/docs/file/src/modules/rowsCounter.js.html +++ b/docs/file/src/modules/rowsCounter.js.html @@ -3,7 +3,7 @@ - src/modules/rowsCounter.js | tablefilter v0.3.3 API Document + src/modules/rowsCounter.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/modules/state.js.html b/docs/file/src/modules/state.js.html index 53c6c982..820ca136 100644 --- a/docs/file/src/modules/state.js.html +++ b/docs/file/src/modules/state.js.html @@ -3,7 +3,7 @@ - src/modules/state.js | tablefilter v0.3.3 API Document + src/modules/state.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/modules/statusBar.js.html b/docs/file/src/modules/statusBar.js.html index 8c7c4d0c..f8b292e0 100644 --- a/docs/file/src/modules/statusBar.js.html +++ b/docs/file/src/modules/statusBar.js.html @@ -3,7 +3,7 @@ - src/modules/statusBar.js | tablefilter v0.3.3 API Document + src/modules/statusBar.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/modules/storage.js.html b/docs/file/src/modules/storage.js.html index 163f59c5..8edb6cd4 100644 --- a/docs/file/src/modules/storage.js.html +++ b/docs/file/src/modules/storage.js.html @@ -3,7 +3,7 @@ - src/modules/storage.js | tablefilter v0.3.3 API Document + src/modules/storage.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/number.js.html b/docs/file/src/number.js.html index 3051862d..b52a28e9 100644 --- a/docs/file/src/number.js.html +++ b/docs/file/src/number.js.html @@ -3,7 +3,7 @@ - src/number.js | tablefilter v0.3.3 API Document + src/number.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/root.js.html b/docs/file/src/root.js.html index 31223c31..4c87f47e 100644 --- a/docs/file/src/root.js.html +++ b/docs/file/src/root.js.html @@ -3,7 +3,7 @@ - src/root.js | tablefilter v0.3.3 API Document + src/root.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/sort.js.html b/docs/file/src/sort.js.html index 72bb6c4a..6d01faf2 100644 --- a/docs/file/src/sort.js.html +++ b/docs/file/src/sort.js.html @@ -3,7 +3,7 @@ - src/sort.js | tablefilter v0.3.3 API Document + src/sort.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/string.js.html b/docs/file/src/string.js.html index 7c1a5454..e3902708 100644 --- a/docs/file/src/string.js.html +++ b/docs/file/src/string.js.html @@ -3,7 +3,7 @@ - src/string.js | tablefilter v0.3.3 API Document + src/string.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/tablefilter.js.html b/docs/file/src/tablefilter.js.html index 9c177427..7c155edf 100644 --- a/docs/file/src/tablefilter.js.html +++ b/docs/file/src/tablefilter.js.html @@ -3,7 +3,7 @@ - src/tablefilter.js | tablefilter v0.3.3 API Document + src/tablefilter.js | tablefilter v0.3.4 API Document diff --git a/docs/file/src/types.js.html b/docs/file/src/types.js.html index dc28a5d9..26ccb8b5 100644 --- a/docs/file/src/types.js.html +++ b/docs/file/src/types.js.html @@ -3,7 +3,7 @@ - src/types.js | tablefilter v0.3.3 API Document + src/types.js | tablefilter v0.3.4 API Document diff --git a/docs/identifiers.html b/docs/identifiers.html index 2f2c1705..891e538f 100644 --- a/docs/identifiers.html +++ b/docs/identifiers.html @@ -3,7 +3,7 @@ - Index | tablefilter v0.3.3 API Document + Index | tablefilter v0.3.4 API Document diff --git a/docs/index.html b/docs/index.html index 98662473..4a607359 100644 --- a/docs/index.html +++ b/docs/index.html @@ -3,7 +3,7 @@ - tablefilter v0.3.3 API Document + tablefilter v0.3.4 API Document diff --git a/docs/package.json b/docs/package.json index cb7a1e69..d6eb53b9 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,6 +1,6 @@ { "name": "tablefilter", - "version": "0.3.3", + "version": "0.3.4", "description": "A Javascript library making HTML tables filterable and a bit more", "license": "MIT", "author": { diff --git a/docs/source.html b/docs/source.html index 896f3933..7982fa99 100644 --- a/docs/source.html +++ b/docs/source.html @@ -3,7 +3,7 @@ - Source | tablefilter v0.3.3 API Document + Source | tablefilter v0.3.4 API Document @@ -139,7 +139,7 @@ 100 %1/1 545 byte 22 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/const.js @@ -164,7 +164,7 @@ 100 %18/18 1536 byte 118 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/cookie.js @@ -172,7 +172,7 @@ - 1412 byte 57 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/dom.js @@ -191,7 +191,7 @@ 100 %12/12 4787 byte 191 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/emitter.js @@ -199,7 +199,7 @@ 100 %6/6 1323 byte 53 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/event.js @@ -212,7 +212,7 @@ 100 %6/6 2378 byte 102 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/extensions/advancedGrid/adapterEzEditTable.js @@ -220,7 +220,7 @@ 100 %13/13 18919 byte 502 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/extensions/advancedGrid/advancedGrid.js @@ -228,7 +228,7 @@ - 90 byte 2 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/extensions/colOps/colOps.js @@ -236,7 +236,7 @@ 100 %9/9 13540 byte 362 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/extensions/colsVisibility/colsVisibility.js @@ -244,7 +244,7 @@ 100 %49/49 20919 byte 724 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/extensions/filtersVisibility/filtersVisibility.js @@ -252,7 +252,7 @@ 100 %25/25 7994 byte 311 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/extensions/sort/adapterSortabletable.js @@ -260,7 +260,7 @@ 100 %23/23 16473 byte 537 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/extensions/sort/sort.js @@ -268,7 +268,7 @@ - 197 byte 8 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/feature.js @@ -276,7 +276,7 @@ 100 %14/14 1761 byte 94 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/modules/alternateRows.js @@ -284,7 +284,7 @@ 100 %9/9 3527 byte 140 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/modules/checkList.js @@ -292,7 +292,7 @@ 100 %21/21 18567 byte 567 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/modules/clearButton.js @@ -300,15 +300,15 @@ 100 %10/10 3225 byte 133 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/modules/dateType.js DateType 100 %11/11 - 3814 byte - 142 - 2016-10-05 02:25:55 (UTC) + 3997 byte + 147 + 2016-10-04 02:55:05 (UTC) src/modules/dropdown.js @@ -316,7 +316,7 @@ 100 %13/13 13641 byte 432 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/modules/gridLayout.js @@ -324,7 +324,7 @@ 100 %16/16 15046 byte 528 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/modules/hash.js @@ -333,7 +333,7 @@ 100 %10/10 2981 byte 126 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/modules/help.js @@ -341,7 +341,7 @@ 100 %17/17 6347 byte 217 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/modules/highlightKeywords.js @@ -349,7 +349,7 @@ 100 %10/10 4360 byte 147 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/modules/loader.js @@ -357,7 +357,7 @@ 100 %14/14 5298 byte 211 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/modules/noResults.js @@ -365,7 +365,7 @@ 100 %17/17 5178 byte 215 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/modules/paging.js @@ -373,7 +373,7 @@ 100 %45/45 29379 byte 955 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/modules/popupFilter.js @@ -381,7 +381,7 @@ 100 %22/22 10937 byte 377 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/modules/rowsCounter.js @@ -389,7 +389,7 @@ 100 %13/13 6357 byte 224 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/modules/state.js @@ -397,7 +397,7 @@ 100 %24/24 14771 byte 541 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/modules/statusBar.js @@ -405,7 +405,7 @@ 100 %22/22 9553 byte 333 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/modules/storage.js @@ -414,7 +414,7 @@ 100 %10/10 3544 byte 162 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/number.js @@ -422,7 +422,7 @@ 100 %1/1 998 byte 29 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/root.js @@ -430,7 +430,7 @@ 100 %1/1 235 byte 6 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/sort.js @@ -440,7 +440,7 @@ 100 %3/3 930 byte 33 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/string.js @@ -452,7 +452,7 @@ 100 %5/5 1854 byte 69 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/tablefilter.js @@ -460,7 +460,7 @@ 100 %165/165 89845 byte 2948 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) src/types.js @@ -475,7 +475,7 @@ 100 %8/8 1451 byte 67 - 2016-10-05 02:25:55 (UTC) + 2016-10-04 02:55:05 (UTC) diff --git a/docs/variable/index.html b/docs/variable/index.html index 22e352e7..746cc730 100644 --- a/docs/variable/index.html +++ b/docs/variable/index.html @@ -3,7 +3,7 @@ - Variable | tablefilter v0.3.3 API Document + Variable | tablefilter v0.3.4 API Document