UNPKG

awv3

Version:
1,318 lines 191 kB
{ "type": "Program", "start": 0, "end": 1993, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 82, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 39, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 39 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 7, "end": 14, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 14 } }, "local": { "type": "Identifier", "start": 7, "end": 14, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 14 } }, "name": "Element" } } ], "importKind": "value", "source": { "type": "Literal", "start": 20, "end": 39, "loc": { "start": { "line": 1, "column": 20 }, "end": { "line": 1, "column": 39 } }, "value": "../plugin/element", "rawValue": "../plugin/element", "raw": "'../plugin/element'" } }, { "type": "ExportNamedDeclaration", "start": 43, "end": 212, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 7, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 50, "end": 212, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 7, "column": 1 } }, "id": { "type": "Identifier", "start": 56, "end": 61, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 18 } }, "name": "Label" }, "superClass": { "type": "Identifier", "start": 70, "end": 77, "loc": { "start": { "line": 3, "column": 27 }, "end": { "line": 3, "column": 34 } }, "name": "Element" }, "body": { "type": "ClassBody", "start": 78, "end": 212, "loc": { "start": { "line": 3, "column": 35 }, "end": { "line": 7, "column": 1 } }, "body": [ { "type": "MethodDefinition", "start": 85, "end": 209, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 6, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 85, "end": 96, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 15 } }, "name": "constructor" }, "static": false, "kind": "constructor", "value": { "type": "FunctionExpression", "start": 96, "end": 209, "loc": { "start": { "line": 4, "column": 15 }, "end": { "line": 6, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 97, "end": 104, "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 4, "column": 23 } }, "name": "options" } ], "body": { "type": "BlockStatement", "start": 106, "end": 209, "loc": { "start": { "line": 4, "column": 25 }, "end": { "line": 6, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 117, "end": 202, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 93 } }, "expression": { "type": "CallExpression", "start": 117, "end": 201, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 92 } }, "callee": { "type": "Super", "start": 117, "end": 122, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 13 } } }, "arguments": [ { "type": "ObjectExpression", "start": 123, "end": 200, "loc": { "start": { "line": 5, "column": 14 }, "end": { "line": 5, "column": 91 } }, "properties": [ { "type": "Property", "start": 125, "end": 133, "loc": { "start": { "line": 5, "column": 16 }, "end": { "line": 5, "column": 24 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 125, "end": 129, "loc": { "start": { "line": 5, "column": 16 }, "end": { "line": 5, "column": 20 } }, "name": "icon" }, "value": { "type": "Literal", "start": 131, "end": 133, "loc": { "start": { "line": 5, "column": 22 }, "end": { "line": 5, "column": 24 } }, "value": "", "rawValue": "", "raw": "\"\"" }, "kind": "init" }, { "type": "Property", "start": 135, "end": 144, "loc": { "start": { "line": 5, "column": 26 }, "end": { "line": 5, "column": 35 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 135, "end": 140, "loc": { "start": { "line": 5, "column": 26 }, "end": { "line": 5, "column": 31 } }, "name": "value" }, "value": { "type": "Literal", "start": 142, "end": 144, "loc": { "start": { "line": 5, "column": 33 }, "end": { "line": 5, "column": 35 } }, "value": "", "rawValue": "", "raw": "\"\"" }, "kind": "init" }, { "type": "Property", "start": 146, "end": 160, "loc": { "start": { "line": 5, "column": 37 }, "end": { "line": 5, "column": 51 } }, "method": true, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 146, "end": 154, "loc": { "start": { "line": 5, "column": 37 }, "end": { "line": 5, "column": 45 } }, "name": "onReject" }, "kind": "init", "value": { "type": "FunctionExpression", "start": 154, "end": 160, "loc": { "start": { "line": 5, "column": 45 }, "end": { "line": 5, "column": 51 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 157, "end": 160, "loc": { "start": { "line": 5, "column": 48 }, "end": { "line": 5, "column": 51 } }, "body": [] } } }, { "type": "SpreadProperty", "start": 162, "end": 172, "loc": { "start": { "line": 5, "column": 53 }, "end": { "line": 5, "column": 63 } }, "argument": { "type": "Identifier", "start": 165, "end": 172, "loc": { "start": { "line": 5, "column": 56 }, "end": { "line": 5, "column": 63 } }, "name": "options" } }, { "type": "Property", "start": 174, "end": 198, "loc": { "start": { "line": 5, "column": 65 }, "end": { "line": 5, "column": 89 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 174, "end": 178, "loc": { "start": { "line": 5, "column": 65 }, "end": { "line": 5, "column": 69 } }, "name": "type" }, "value": { "type": "MemberExpression", "start": 180, "end": 198, "loc": { "start": { "line": 5, "column": 71 }, "end": { "line": 5, "column": 89 } }, "object": { "type": "MemberExpression", "start": 180, "end": 192, "loc": { "start": { "line": 5, "column": 71 }, "end": { "line": 5, "column": 83 } }, "object": { "type": "Identifier", "start": 180, "end": 187, "loc": { "start": { "line": 5, "column": 71 }, "end": { "line": 5, "column": 78 } }, "name": "Element" }, "property": { "type": "Identifier", "start": 188, "end": 192, "loc": { "start": { "line": 5, "column": 79 }, "end": { "line": 5, "column": 83 } }, "name": "Type" }, "computed": false }, "property": { "type": "Identifier", "start": 193, "end": 198, "loc": { "start": { "line": 5, "column": 84 }, "end": { "line": 5, "column": 89 } }, "name": "Label" }, "computed": false }, "kind": "init" } ] } ] } } ] } } } ] }, "leadingComments": [], "trailingComments": [] }, "specifiers": [], "source": null }, { "type": "ExportNamedDeclaration", "start": 216, "end": 620, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 24, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 223, "end": 620, "loc": { "start": { "line": 9, "column": 7 }, "end": { "line": 24, "column": 1 } }, "id": { "type": "Identifier", "start": 229, "end": 234, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 18 } }, "name": "Input" }, "superClass": { "type": "Identifier", "start": 243, "end": 250, "loc": { "start": { "line": 9, "column": 27 }, "end": { "line": 9, "column": 34 } }, "name": "Element" }, "body": { "type": "ClassBody", "start": 251, "end": 620, "loc": { "start": { "line": 9, "column": 35 }, "end": { "line": 24, "column": 1 } }, "body": [ { "type": "MethodDefinition", "start": 258, "end": 617, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 23, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 258, "end": 269, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 15 } }, "name": "constructor" }, "static": false, "kind": "constructor", "value": { "type": "FunctionExpression", "start": 269, "end": 617, "loc": { "start": { "line": 10, "column": 15 }, "end": { "line": 23, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 270, "end": 277, "loc": { "start": { "line": 10, "column": 16 }, "end": { "line": 10, "column": 23 } }, "name": "options" } ], "body": { "type": "BlockStatement", "start": 279, "end": 617, "loc": { "start": { "line": 10, "column": 25 }, "end": { "line": 23, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 290, "end": 610, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 22, "column": 11 } }, "expression": { "type": "CallExpression", "start": 290, "end": 609, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 22, "column": 10 } }, "callee": { "type": "Super", "start": 290, "end": 295, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 13 } } }, "arguments": [ { "type": "ObjectExpression", "start": 296, "end": 608, "loc": { "start": { "line": 11, "column": 14 }, "end": { "line": 22, "column": 9 } }, "properties": [ { "type": "Property", "start": 311, "end": 335, "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 36 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 311, "end": 316, "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 17 } }, "name": "class" }, "value": { "type": "MemberExpression", "start": 318, "end": 335, "loc": { "start": { "line": 12, "column": 19 }, "end": { "line": 12, "column": 36 } }, "object": { "type": "MemberExpression", "start": 318, "end": 328, "loc": { "start": { "line": 12, "column": 19 }, "end": { "line": 12, "column": 29 } }, "object": { "type": "Identifier", "start": 318, "end": 323, "loc": { "start": { "line": 12, "column": 19 }, "end": { "line": 12, "column": 24 } }, "name": "Input" }, "property": { "type": "Identifier", "start": 324, "end": 328, "loc": { "start": { "line": 12, "column": 25 }, "end": { "line": 12, "column": 29 } }, "name": "Type" }, "computed": false }, "property": { "type": "Identifier", "start": 329, "end": 335, "loc": { "start": { "line": 12, "column": 30 }, "end": { "line": 12, "column": 36 } }, "name": "String" }, "computed": false }, "kind": "init" }, { "type": "Property", "start": 350, "end": 359, "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 21 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 350, "end": 355, "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 17 } }, "name": "value" }, "value": { "type": "Literal", "start": 357, "end": 359, "loc": { "start": { "line": 13, "column": 19 }, "end": { "line": 13, "column": 21 } }, "value": "", "rawValue": "", "raw": "\"\"" }, "kind": "init" }, { "type": "Property", "start": 374, "end": 390, "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 14, "column": 28 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 374, "end": 379, "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 14, "column": 17 } }, "name": "label" }, "value": { "type": "Identifier", "start": 381, "end": 390, "loc": { "start": { "line": 14, "column": 19 }, "end": { "line": 14, "column": 28 } }, "name": "undefined" }, "kind": "init" }, { "type": "Property", "start": 405, "end": 418, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 25 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 405, "end": 408, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 15 } }, "name": "min" }, "value": { "type": "Identifier", "start": 410, "end": 418, "loc": { "start": { "line": 15, "column": 17 }, "end": { "line": 15, "column": 25 } }, "name": "Infinity" }, "kind": "init" }, { "type": "Property", "start": 433, "end": 446, "loc": { "start": { "line": 16, "column": 12 }, "end": { "line": 16, "column": 25 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 433, "end": 436, "loc": { "start": { "line": 16, "column": 12 }, "end": { "line": 16, "column": 15 } }, "name": "max" }, "value": { "type": "Identifier", "start": 438, "end": 446, "loc": { "start": { "line": 16, "column": 17 }, "end": { "line": 16, "column": 25 } }, "name": "Infinity" }, "kind": "init" }, { "type": "Property", "start": 461, "end": 476, "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 27 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 461, "end": 466, "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 17 } }, "name": "limit" }, "value": { "type": "Identifier", "start": 468, "end": 476, "loc": { "start": { "line": 17, "column": 19 }, "end": { "line": 17, "column": 27 } }, "name": "Infinity" }, "kind": "init" }, { "type": "Property", "start": 491, "end": 504, "loc": { "start": { "line": 18, "column": 12 }, "end": { "line": 18, "column": 25 } }, "method": true, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 491, "end": 498, "loc": { "start": { "line": 18, "column": 12 }, "end": { "line": 18, "column": 19 } }, "name": "onEnter" }, "kind": "init", "value": { "type": "FunctionExpression", "start": 498, "end": 504, "loc": { "start": { "line": 18, "column": 19 }, "end": { "line": 18, "column": 25 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 501, "end": 504, "loc": { "start": { "line": 18, "column": 22 }, "end": { "line": 18, "column": 25 } }, "body": [] } } }, { "type": "Property", "start": 519, "end": 533, "loc": { "start": { "line": 19, "column": 12 }, "end": { "line": 19, "column": 26 } }, "method": true, "shorthand"