occam-query 4.1.149 → 4.1.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/constants.js +2 -2
- package/lib/example/utilities/token.js +3 -3
- package/lib/example/view/div/sizeable.js +9 -23
- package/lib/example/view/input/expressionString.js +21 -124
- package/lib/example/view/input/maximumDepth.js +22 -125
- package/lib/example/view/input.js +11 -23
- package/lib/example/view/subHeading.js +13 -23
- package/lib/example/view/textarea/content.js +21 -124
- package/lib/example/view/textarea/nodes.js +34 -137
- package/lib/example/view/textarea/parseTree.js +30 -148
- package/lib/example/view/textarea.js +15 -23
- package/lib/example/view.js +59 -218
- package/lib/example.js +6 -6
- package/lib/expression/bnf.js +61 -3
- package/lib/expression/entries.js +3 -3
- package/lib/expression/lexer.js +23 -126
- package/lib/expression/parser.js +13 -116
- package/lib/expression.js +43 -91
- package/lib/index.js +6 -6
- package/lib/path.js +18 -54
- package/lib/query.js +103 -174
- package/lib/ruleNames.js +11 -11
- package/lib/spread.js +53 -89
- package/lib/subExpression.js +35 -80
- package/lib/utilities/array.js +9 -14
- package/lib/utilities/node.js +85 -85
- package/lib/utilities/query.js +8 -8
- package/package.json +5 -1
- package/.swcrc +0 -11
- package/bin/main.js +0 -15
- package/example.js +0 -38760
- package/index.html +0 -47
package/lib/constants.js
CHANGED
|
@@ -8,6 +8,6 @@ Object.defineProperty(exports, "EMPTY_STRING", {
|
|
|
8
8
|
return EMPTY_STRING;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
11
|
+
const EMPTY_STRING = "";
|
|
12
12
|
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jb25zdGFudHMuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmV4cG9ydCBjb25zdCBFTVBUWV9TVFJJTkcgPSBcIlwiO1xuIl0sIm5hbWVzIjpbIkVNUFRZX1NUUklORyJdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7K0JBRWFBOzs7ZUFBQUE7OztBQUFOLE1BQU1BLGVBQWUifQ==
|
|
@@ -17,12 +17,12 @@ _export(exports, {
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
function tokenIndexFromTerminalNodeAndTokens(terminalNode, tokens) {
|
|
20
|
-
|
|
20
|
+
const significantToken = terminalNode.getSignificantToken(), significantTokenIndex = tokens.indexOf(significantToken), tokenIndex = `(${significantTokenIndex})`;
|
|
21
21
|
return tokenIndex;
|
|
22
22
|
}
|
|
23
23
|
function tokenIndexesFromNonTerminalNodeAndTokens(nonTerminalNode, tokens) {
|
|
24
|
-
|
|
24
|
+
const firstSignificantTokenIndex = nonTerminalNode.getFirstSignificantTokenIndex(tokens), lastSignificantTokenIndex = nonTerminalNode.getLastSignificantTokenIndex(tokens), tokenIndexes = firstSignificantTokenIndex !== lastSignificantTokenIndex ? `(${firstSignificantTokenIndex}-${lastSignificantTokenIndex})` : `(${firstSignificantTokenIndex})`;
|
|
25
25
|
return tokenIndexes;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9leGFtcGxlL3V0aWxpdGllcy90b2tlbi5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuZXhwb3J0IGZ1bmN0aW9uIHRva2VuSW5kZXhGcm9tVGVybWluYWxOb2RlQW5kVG9rZW5zKHRlcm1pbmFsTm9kZSwgdG9rZW5zKSB7XG4gIGNvbnN0IHNpZ25pZmljYW50VG9rZW4gPSB0ZXJtaW5hbE5vZGUuZ2V0U2lnbmlmaWNhbnRUb2tlbigpLFxuICAgICAgICBza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("easy-with-style"));
|
|
12
|
+
const _easylayout = require("easy-layout");
|
|
13
13
|
function _interop_require_default(obj) {
|
|
14
14
|
return obj && obj.__esModule ? obj : {
|
|
15
15
|
default: obj
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
value: Object.freeze(raw)
|
|
25
|
-
}
|
|
26
|
-
}));
|
|
27
|
-
}
|
|
28
|
-
function _templateObject() {
|
|
29
|
-
var data = _tagged_template_literal([
|
|
30
|
-
"\n\n width: 64rem;\n min-width: 24rem;\n \n"
|
|
31
|
-
]);
|
|
32
|
-
_templateObject = function _templateObject() {
|
|
33
|
-
return data;
|
|
34
|
-
};
|
|
35
|
-
return data;
|
|
36
|
-
}
|
|
37
|
-
var _default = (0, _easywithstyle.default)(_easylayout.SizeableDiv)(_templateObject());
|
|
18
|
+
const _default = (0, _easywithstyle.default)(_easylayout.SizeableDiv)`
|
|
19
|
+
|
|
20
|
+
width: 64rem;
|
|
21
|
+
min-width: 24rem;
|
|
22
|
+
|
|
23
|
+
`;
|
|
38
24
|
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvZGl2L3NpemVhYmxlLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgd2l0aFN0eWxlIGZyb20gXCJlYXN5LXdpdGgtc3R5bGVcIjsgIC8vL1xuXG5pbXBvcnQgeyBTaXplYWJsZURpdiB9IGZyb20gXCJlYXN5LWxheW91dFwiO1xuXG5leHBvcnQgZGVmYXVsdCB3aXRoU3R5bGUoU2l6ZWFibGVEaXYpYFxuXG4gIHdpZHRoOiA2NHJlbTtcbiAgbWluLXdpZHRoOiAyNHJlbTtcbiAgXG5gO1xuIl0sIm5hbWVzIjpbIndpdGhTdHlsZSIsIlNpemVhYmxlRGl2Il0sIm1hcHBpbmdzIjoiQUFBQTs7OzsrQkFNQTs7O2VBQUE7OztzRUFKc0I7NEJBRU07Ozs7OztNQUU1QixXQUFlQSxJQUFBQSxzQkFBUyxFQUFDQyx1QkFBVyxDQUFDLENBQUM7Ozs7O0FBS3RDLENBQUMifQ==
|
|
@@ -8,135 +8,32 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return ExpressionStringInput;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
function _assert_this_initialized(self) {
|
|
13
|
-
if (self === void 0) {
|
|
14
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15
|
-
}
|
|
16
|
-
return self;
|
|
17
|
-
}
|
|
18
|
-
function _call_super(_this, derived, args) {
|
|
19
|
-
derived = _get_prototype_of(derived);
|
|
20
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
21
|
-
}
|
|
22
|
-
function _class_call_check(instance, Constructor) {
|
|
23
|
-
if (!(instance instanceof Constructor)) {
|
|
24
|
-
throw new TypeError("Cannot call a class as a function");
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
function _defineProperties(target, props) {
|
|
28
|
-
for(var i = 0; i < props.length; i++){
|
|
29
|
-
var descriptor = props[i];
|
|
30
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
31
|
-
descriptor.configurable = true;
|
|
32
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
33
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
37
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
38
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
39
|
-
return Constructor;
|
|
40
|
-
}
|
|
41
|
-
function _define_property(obj, key, value) {
|
|
42
|
-
if (key in obj) {
|
|
43
|
-
Object.defineProperty(obj, key, {
|
|
44
|
-
value: value,
|
|
45
|
-
enumerable: true,
|
|
46
|
-
configurable: true,
|
|
47
|
-
writable: true
|
|
48
|
-
});
|
|
49
|
-
} else {
|
|
50
|
-
obj[key] = value;
|
|
51
|
-
}
|
|
52
|
-
return obj;
|
|
53
|
-
}
|
|
54
|
-
function _get_prototype_of(o) {
|
|
55
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
56
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
57
|
-
};
|
|
58
|
-
return _get_prototype_of(o);
|
|
59
|
-
}
|
|
60
|
-
function _inherits(subClass, superClass) {
|
|
61
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
62
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
63
|
-
}
|
|
64
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
65
|
-
constructor: {
|
|
66
|
-
value: subClass,
|
|
67
|
-
writable: true,
|
|
68
|
-
configurable: true
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
72
|
-
}
|
|
11
|
+
const _input = /*#__PURE__*/ _interop_require_default(require("../input"));
|
|
73
12
|
function _interop_require_default(obj) {
|
|
74
13
|
return obj && obj.__esModule ? obj : {
|
|
75
14
|
default: obj
|
|
76
15
|
};
|
|
77
16
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
17
|
+
class ExpressionStringInput extends _input.default {
|
|
18
|
+
getExpressionString() {
|
|
19
|
+
const value = this.getValue(), expression = value; ///
|
|
20
|
+
return expression;
|
|
21
|
+
}
|
|
22
|
+
setExpressionString(expressionString) {
|
|
23
|
+
const value = expressionString; ///
|
|
24
|
+
this.setValue(value);
|
|
25
|
+
}
|
|
26
|
+
parentContext() {
|
|
27
|
+
const getExpressionString = this.getExpressionString.bind(this), setExpressionString = this.setExpressionString.bind(this); ///;
|
|
28
|
+
return {
|
|
29
|
+
getExpressionString,
|
|
30
|
+
setExpressionString
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
static defaultProperties = {
|
|
34
|
+
className: "expression-string",
|
|
35
|
+
spellCheck: "false"
|
|
88
36
|
};
|
|
89
|
-
return _set_prototype_of(o, p);
|
|
90
|
-
}
|
|
91
|
-
function _type_of(obj) {
|
|
92
|
-
"@swc/helpers - typeof";
|
|
93
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
94
|
-
}
|
|
95
|
-
function _is_native_reflect_construct() {
|
|
96
|
-
try {
|
|
97
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
98
|
-
} catch (_) {}
|
|
99
|
-
return (_is_native_reflect_construct = function() {
|
|
100
|
-
return !!result;
|
|
101
|
-
})();
|
|
102
37
|
}
|
|
103
|
-
var ExpressionStringInput = /*#__PURE__*/ function(Input) {
|
|
104
|
-
_inherits(ExpressionStringInput, Input);
|
|
105
|
-
function ExpressionStringInput() {
|
|
106
|
-
_class_call_check(this, ExpressionStringInput);
|
|
107
|
-
return _call_super(this, ExpressionStringInput, arguments);
|
|
108
|
-
}
|
|
109
|
-
_create_class(ExpressionStringInput, [
|
|
110
|
-
{
|
|
111
|
-
key: "getExpressionString",
|
|
112
|
-
value: function getExpressionString() {
|
|
113
|
-
var value = this.getValue(), expression = value; ///
|
|
114
|
-
return expression;
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
key: "setExpressionString",
|
|
119
|
-
value: function setExpressionString(expressionString) {
|
|
120
|
-
var value = expressionString; ///
|
|
121
|
-
this.setValue(value);
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
key: "parentContext",
|
|
126
|
-
value: function parentContext() {
|
|
127
|
-
var getExpressionString = this.getExpressionString.bind(this), setExpressionString = this.setExpressionString.bind(this); ///;
|
|
128
|
-
return {
|
|
129
|
-
getExpressionString: getExpressionString,
|
|
130
|
-
setExpressionString: setExpressionString
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
]);
|
|
135
|
-
return ExpressionStringInput;
|
|
136
|
-
}(_input.default);
|
|
137
|
-
_define_property(ExpressionStringInput, "defaultProperties", {
|
|
138
|
-
className: "expression-string",
|
|
139
|
-
spellCheck: "false"
|
|
140
|
-
});
|
|
141
38
|
|
|
142
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvaW5wdXQvZXhwcmVzc2lvblN0cmluZy5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IElucHV0IGZyb20gXCIuLi9pbnB1dFwiO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBFeHByZXNzaW9uU3RyaW5nSW5wdXQgZXh0ZW5kcyBJbnB1dCB7XG4gIGdldEV4cHJlc3Npb25TdHJpbmcoKSB7XG4gICAgY29uc3QgdmFsdWUgPSB0aGlzLmdldFZhbHVlKCksXG4gICAgICAgICAgZXhwcmVzc2lvbiA9IHZhbHVlOyAvLy9cblxuICAgIHJldHVybiBleHByZXNzaW9uO1xuICB9XG5cbiAgc2V0RXhwcmVzc2lvblN0cmluZyhleHByZXNzaW9uU3RyaW5nKSB7XG4gICAgY29uc3QgdmFsdWUgPSBleHByZXNzaW9uU3RyaW5nOyAvLy9cblxuICAgIHRoaXMuc2V0VmFsdWUodmFsdWUpO1xuICB9XG5cbiAgcG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QUFDTDtJQUNoQjtJQUVBTSxnQkFBZ0I7UUFDZCxNQUFNUCxzQkFBc0IsSUFBSSxDQUFDQSxtQkFBbUIsQ0FBQ1EsSUFBSSxDQUFDLElBQUksR0FDeERKLHNCQUFzQixJQUFJLENBQUNBLG1CQUFtQixDQUFDSSxJQUFJLENBQUMsSUFBSSxHQUFHLElBQUk7UUFFckUsT0FBUTtZQUNOUjtZQUNBSTtRQUNGO0lBQ0Y7SUFFQSxPQUFPSyxvQkFBb0I7UUFDekJDLFdBQVc7UUFDWEMsWUFBWTtJQUNkLEVBQUU7QUFDSiJ9
|
|
@@ -8,136 +8,33 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return MaximumDepthInput;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
function _assert_this_initialized(self) {
|
|
13
|
-
if (self === void 0) {
|
|
14
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15
|
-
}
|
|
16
|
-
return self;
|
|
17
|
-
}
|
|
18
|
-
function _call_super(_this, derived, args) {
|
|
19
|
-
derived = _get_prototype_of(derived);
|
|
20
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
21
|
-
}
|
|
22
|
-
function _class_call_check(instance, Constructor) {
|
|
23
|
-
if (!(instance instanceof Constructor)) {
|
|
24
|
-
throw new TypeError("Cannot call a class as a function");
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
function _defineProperties(target, props) {
|
|
28
|
-
for(var i = 0; i < props.length; i++){
|
|
29
|
-
var descriptor = props[i];
|
|
30
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
31
|
-
descriptor.configurable = true;
|
|
32
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
33
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
37
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
38
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
39
|
-
return Constructor;
|
|
40
|
-
}
|
|
41
|
-
function _define_property(obj, key, value) {
|
|
42
|
-
if (key in obj) {
|
|
43
|
-
Object.defineProperty(obj, key, {
|
|
44
|
-
value: value,
|
|
45
|
-
enumerable: true,
|
|
46
|
-
configurable: true,
|
|
47
|
-
writable: true
|
|
48
|
-
});
|
|
49
|
-
} else {
|
|
50
|
-
obj[key] = value;
|
|
51
|
-
}
|
|
52
|
-
return obj;
|
|
53
|
-
}
|
|
54
|
-
function _get_prototype_of(o) {
|
|
55
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
56
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
57
|
-
};
|
|
58
|
-
return _get_prototype_of(o);
|
|
59
|
-
}
|
|
60
|
-
function _inherits(subClass, superClass) {
|
|
61
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
62
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
63
|
-
}
|
|
64
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
65
|
-
constructor: {
|
|
66
|
-
value: subClass,
|
|
67
|
-
writable: true,
|
|
68
|
-
configurable: true
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
72
|
-
}
|
|
11
|
+
const _input = /*#__PURE__*/ _interop_require_default(require("../input"));
|
|
73
12
|
function _interop_require_default(obj) {
|
|
74
13
|
return obj && obj.__esModule ? obj : {
|
|
75
14
|
default: obj
|
|
76
15
|
};
|
|
77
16
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
17
|
+
class MaximumDepthInput extends _input.default {
|
|
18
|
+
getMaximumDepth() {
|
|
19
|
+
const value = this.getValue(), maximumDepth = Number(value);
|
|
20
|
+
return maximumDepth;
|
|
21
|
+
}
|
|
22
|
+
setMaximumDepth(maximumDepth) {
|
|
23
|
+
const value = maximumDepth; ///
|
|
24
|
+
this.setValue(value);
|
|
25
|
+
}
|
|
26
|
+
parentContext() {
|
|
27
|
+
const getMaximumDepth = this.getMaximumDepth.bind(this), setMaximumDepth = this.setMaximumDepth.bind(this), setMaximumDepthReadOnly = this.setReadOnly.bind(this); ///;
|
|
28
|
+
return {
|
|
29
|
+
getMaximumDepth,
|
|
30
|
+
setMaximumDepth,
|
|
31
|
+
setMaximumDepthReadOnly
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
static defaultProperties = {
|
|
35
|
+
className: "maximum-depth",
|
|
36
|
+
spellCheck: "false"
|
|
88
37
|
};
|
|
89
|
-
return _set_prototype_of(o, p);
|
|
90
|
-
}
|
|
91
|
-
function _type_of(obj) {
|
|
92
|
-
"@swc/helpers - typeof";
|
|
93
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
94
|
-
}
|
|
95
|
-
function _is_native_reflect_construct() {
|
|
96
|
-
try {
|
|
97
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
98
|
-
} catch (_) {}
|
|
99
|
-
return (_is_native_reflect_construct = function() {
|
|
100
|
-
return !!result;
|
|
101
|
-
})();
|
|
102
38
|
}
|
|
103
|
-
var MaximumDepthInput = /*#__PURE__*/ function(Input) {
|
|
104
|
-
_inherits(MaximumDepthInput, Input);
|
|
105
|
-
function MaximumDepthInput() {
|
|
106
|
-
_class_call_check(this, MaximumDepthInput);
|
|
107
|
-
return _call_super(this, MaximumDepthInput, arguments);
|
|
108
|
-
}
|
|
109
|
-
_create_class(MaximumDepthInput, [
|
|
110
|
-
{
|
|
111
|
-
key: "getMaximumDepth",
|
|
112
|
-
value: function getMaximumDepth() {
|
|
113
|
-
var value = this.getValue(), maximumDepth = Number(value);
|
|
114
|
-
return maximumDepth;
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
key: "setMaximumDepth",
|
|
119
|
-
value: function setMaximumDepth(maximumDepth) {
|
|
120
|
-
var value = maximumDepth; ///
|
|
121
|
-
this.setValue(value);
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
key: "parentContext",
|
|
126
|
-
value: function parentContext() {
|
|
127
|
-
var getMaximumDepth = this.getMaximumDepth.bind(this), setMaximumDepth = this.setMaximumDepth.bind(this), setMaximumDepthReadOnly = this.setReadOnly.bind(this); ///;
|
|
128
|
-
return {
|
|
129
|
-
getMaximumDepth: getMaximumDepth,
|
|
130
|
-
setMaximumDepth: setMaximumDepth,
|
|
131
|
-
setMaximumDepthReadOnly: setMaximumDepthReadOnly
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
]);
|
|
136
|
-
return MaximumDepthInput;
|
|
137
|
-
}(_input.default);
|
|
138
|
-
_define_property(MaximumDepthInput, "defaultProperties", {
|
|
139
|
-
className: "maximum-depth",
|
|
140
|
-
spellCheck: "false"
|
|
141
|
-
});
|
|
142
39
|
|
|
143
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvaW5wdXQvbWF4aW11bURlcHRoLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgSW5wdXQgZnJvbSBcIi4uL2lucHV0XCI7XG5cbmV4cG9ydCBkZWZhdWx0IGNsYXNzIE1heGltdW1EZXB0aElucHV0IGV4dGVuZHMgSW5wdXQge1xuICBnZXRNYXhpbXVtRGVwdGgoKSB7XG4gICAgY29uc3Qgd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WFkT25seSIsImRlZmF1bHRQcm9wZXJ0aWVzIiwiY2xhc3NOYW1lIiwic3BlbGxDaGVjayJdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7K0JBSUE7OztlQUFxQkE7Ozs4REFGSDs7Ozs7O0FBRUgsTUFBTUEsMEJBQTBCQyxjQUFLO0lBQ2xEQyxrQkFBa0I7UUFDaEIsTUFBTUMsUUFBUSxJQUFJLENBQUNDLFFBQVEsSUFDckJDLGVBQWVDLE9BQU9IO1FBRTVCLE9BQU9FO0lBQ1Q7SUFFQUUsZ0JBQWdCRixZQUFZLEVBQUU7UUFDNUIsTUFBTUYsUUFBUUUsY0FBYyxHQUFHO1FBRS9CLElBQUksQ0FBQ0csUUFBUSxDQUFDTDtJQUNoQjtJQUVBTSxnQkFBZ0I7UUFDZCxNQUFNUCxrQkFBa0IsSUFBSSxDQUFDQSxlQUFlLENBQUNRLElBQUksQ0FBQyxJQUFJLEdBQ2hESCxrQkFBa0IsSUFBSSxDQUFDQSxlQUFlLENBQUNHLElBQUksQ0FBQyxJQUFJLEdBQ2hEQywwQkFBMEIsSUFBSSxDQUFDQyxXQUFXLENBQUNGLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSTtRQUVqRSxPQUFRO1lBQ05SO1lBQ0FLO1lBQ0FJO1FBQ0Y7SUFDRjtJQUVBLE9BQU9FLG9CQUFvQjtRQUN6QkMsV0FBVztRQUNYQyxZQUFZO0lBQ2QsRUFBRTtBQUNKIn0=
|
|
@@ -8,32 +8,20 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
const _easywithstyle = /*#__PURE__*/ _interop_require_default(require("easy-with-style"));
|
|
12
|
+
const _easy = require("easy");
|
|
13
13
|
function _interop_require_default(obj) {
|
|
14
14
|
return obj && obj.__esModule ? obj : {
|
|
15
15
|
default: obj
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}));
|
|
27
|
-
}
|
|
28
|
-
function _templateObject() {
|
|
29
|
-
var data = _tagged_template_literal([
|
|
30
|
-
"\n\n border: 1px solid darkgrey;\n padding: 0.25rem;\n font-size: 1.2rem;\n font-family: monospace;\n\n"
|
|
31
|
-
]);
|
|
32
|
-
_templateObject = function _templateObject() {
|
|
33
|
-
return data;
|
|
34
|
-
};
|
|
35
|
-
return data;
|
|
36
|
-
}
|
|
37
|
-
var _default = (0, _easywithstyle.default)(_easy.Input)(_templateObject());
|
|
18
|
+
const _default = (0, _easywithstyle.default)(_easy.Input)`
|
|
19
|
+
|
|
20
|
+
border: 1px solid darkgrey;
|
|
21
|
+
padding: 0.25rem;
|
|
22
|
+
font-size: 1.2rem;
|
|
23
|
+
font-family: monospace;
|
|
24
|
+
|
|
25
|
+
`;
|
|
38
26
|
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvaW5wdXQuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCB3aXRoU3R5bGUgZnJvbSBcImVhc3ktd2l0aC1zdHlsZVwiOyAgLy8vXG5cbmltcG9ydCB7IElucHV0IH0gZnJvbSBcImVhc3lcIjtcblxuZXhwb3J0IGRlZmF1bHQgd2l0aFN0eWxlKElucHV0KWBcblxuICBib3JkZXI6IDFweCBzb2xpZCBkYXJrZ3JleTtcbiAgcGFkZGluZzogMC4yNXJlbTtcbiAgZm9udC1zaXplOiAxLjJyZW07XG4gIGZvbnQtZmFtaWx5OiBtb25vc3BhY2U7XG5cbmA7XG4iXSwibmFtZXMiOlsid2l0aFN0eWxlIiwiSW5wdXQiXSwibWFwcGluZ3MiOiJBQUFBOzs7OytCQU1BOzs7ZUFBQTs7O3NFQUpzQjtzQkFFQTs7Ozs7O01BRXRCLFdBQWVBLElBQUFBLHNCQUFTLEVBQUNDLFdBQUssQ0FBQyxDQUFDOzs7Ozs7O0FBT2hDLENBQUMifQ==
|
|
@@ -8,32 +8,22 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
11
|
+
const _easywithstyle = /*#__PURE__*/ _interop_require_default(require("easy-with-style"));
|
|
12
12
|
function _interop_require_default(obj) {
|
|
13
13
|
return obj && obj.__esModule ? obj : {
|
|
14
14
|
default: obj
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
var data = _tagged_template_literal([
|
|
29
|
-
"\n\n margin: 1rem 0 0.5rem 0;\n font-size: 2rem;\n \n :first-of-type {\n margin-top: 0;\n }\n\n"
|
|
30
|
-
]);
|
|
31
|
-
_templateObject = function _templateObject() {
|
|
32
|
-
return data;
|
|
33
|
-
};
|
|
34
|
-
return data;
|
|
35
|
-
}
|
|
36
|
-
var SubHeading = _easywithstyle.default.h2(_templateObject());
|
|
37
|
-
var _default = SubHeading;
|
|
17
|
+
const SubHeading = _easywithstyle.default.h2`
|
|
18
|
+
|
|
19
|
+
margin: 1rem 0 0.5rem 0;
|
|
20
|
+
font-size: 2rem;
|
|
21
|
+
|
|
22
|
+
:first-of-type {
|
|
23
|
+
margin-top: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
`;
|
|
27
|
+
const _default = SubHeading;
|
|
38
28
|
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvc3ViSGVhZGluZy5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IHdpdGhTdHlsZSBmcm9tIFwiZWFzeS13aXRoLXN0eWxlXCI7ICAvLy9cblxuY29uc3QgU3ViSGVhZGluZyA9IHdpdGhTdHlsZS5oMmBcblxuICBtYXJnaW46IDFyZW0gMCAwLjVyZW0gMDtcbiAgZm9udC1zaXplOiAycmVtO1xuICBcbiAgOmZpcnN0LW9mLXR5cGUge1xuICAgIG1hcmdpbi10b3A6IDA7XG4gIH1cblxuYDtcblxuZXhwb3J0IGRlZmF1bHQgU3ViSGVhZGluZztcbiJdLCJuYW1lcyI6WyJTdWJIZWFkaW5nIiwid2l0aFN0eWxlIiwiaDIiXSwibWFwcGluZ3MiOiJBQUFBOzs7OytCQWVBOzs7ZUFBQTs7O3NFQWJzQjs7Ozs7O0FBRXRCLE1BQU1BLGFBQWFDLHNCQUFTLENBQUNDLEVBQUUsQ0FBQzs7Ozs7Ozs7O0FBU2hDLENBQUM7TUFFRCxXQUFlRiJ9
|