easy-with-style 3.0.198 → 3.0.201
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/example.js +3805 -3747
- package/lib/example/div/column.js +5 -5
- package/lib/example/div/columns.js +5 -5
- package/lib/example/div/rows.js +5 -5
- package/lib/example/div/sizeable.js +5 -5
- package/lib/example/div/splitter/vertical.js +44 -55
- package/lib/example/subHeading.js +5 -5
- package/lib/example/textarea/bnf.js +29 -29
- package/lib/example/textarea/content.js +29 -29
- package/lib/example/textarea/lexicalEntries.js +29 -29
- package/lib/example/textarea/parseTree.js +29 -29
- package/lib/example/textarea.js +5 -5
- package/lib/example/view.js +55 -66
- package/lib/example.js +4 -4
- package/lib/index.js +3 -3
- package/lib/withStyle.js +44 -44
- package/package.json +2 -2
|
@@ -8,14 +8,14 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
var _textarea = /*#__PURE__*/
|
|
12
|
-
function
|
|
11
|
+
var _textarea = /*#__PURE__*/ _interop_require_default(require("../textarea"));
|
|
12
|
+
function _assert_this_initialized(self) {
|
|
13
13
|
if (self === void 0) {
|
|
14
14
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15
15
|
}
|
|
16
16
|
return self;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function _class_call_check(instance, Constructor) {
|
|
19
19
|
if (!(instance instanceof Constructor)) {
|
|
20
20
|
throw new TypeError("Cannot call a class as a function");
|
|
21
21
|
}
|
|
@@ -29,12 +29,12 @@ function _defineProperties(target, props) {
|
|
|
29
29
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
33
33
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
34
34
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
35
35
|
return Constructor;
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function _define_property(obj, key, value) {
|
|
38
38
|
if (key in obj) {
|
|
39
39
|
Object.defineProperty(obj, key, {
|
|
40
40
|
value: value,
|
|
@@ -47,11 +47,11 @@ function _defineProperty(obj, key, value) {
|
|
|
47
47
|
}
|
|
48
48
|
return obj;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
50
|
+
function _get_prototype_of(o) {
|
|
51
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
52
52
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
53
53
|
};
|
|
54
|
-
return
|
|
54
|
+
return _get_prototype_of(o);
|
|
55
55
|
}
|
|
56
56
|
function _inherits(subClass, superClass) {
|
|
57
57
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -64,31 +64,31 @@ function _inherits(subClass, superClass) {
|
|
|
64
64
|
configurable: true
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
|
-
if (superClass)
|
|
67
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function _interop_require_default(obj) {
|
|
70
70
|
return obj && obj.__esModule ? obj : {
|
|
71
71
|
default: obj
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
if (call && (
|
|
74
|
+
function _possible_constructor_return(self, call) {
|
|
75
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
76
76
|
return call;
|
|
77
77
|
}
|
|
78
|
-
return
|
|
78
|
+
return _assert_this_initialized(self);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
|
|
80
|
+
function _set_prototype_of(o, p) {
|
|
81
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
82
82
|
o.__proto__ = p;
|
|
83
83
|
return o;
|
|
84
84
|
};
|
|
85
|
-
return
|
|
85
|
+
return _set_prototype_of(o, p);
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
function _type_of(obj) {
|
|
88
88
|
"@swc/helpers - typeof";
|
|
89
89
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
90
|
-
}
|
|
91
|
-
function
|
|
90
|
+
}
|
|
91
|
+
function _is_native_reflect_construct() {
|
|
92
92
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
93
93
|
if (Reflect.construct.sham) return false;
|
|
94
94
|
if (typeof Proxy === "function") return true;
|
|
@@ -99,27 +99,27 @@ function _isNativeReflectConstruct() {
|
|
|
99
99
|
return false;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
var hasNativeReflectConstruct =
|
|
102
|
+
function _create_super(Derived) {
|
|
103
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
104
104
|
return function _createSuperInternal() {
|
|
105
|
-
var Super =
|
|
105
|
+
var Super = _get_prototype_of(Derived), result;
|
|
106
106
|
if (hasNativeReflectConstruct) {
|
|
107
|
-
var NewTarget =
|
|
107
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
108
108
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
109
109
|
} else {
|
|
110
110
|
result = Super.apply(this, arguments);
|
|
111
111
|
}
|
|
112
|
-
return
|
|
112
|
+
return _possible_constructor_return(this, result);
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
115
|
var ContentTextarea = /*#__PURE__*/ function(Textarea) {
|
|
116
116
|
_inherits(ContentTextarea, Textarea);
|
|
117
|
-
var _super =
|
|
117
|
+
var _super = _create_super(ContentTextarea);
|
|
118
118
|
function ContentTextarea() {
|
|
119
|
-
|
|
119
|
+
_class_call_check(this, ContentTextarea);
|
|
120
120
|
return _super.apply(this, arguments);
|
|
121
121
|
}
|
|
122
|
-
|
|
122
|
+
_create_class(ContentTextarea, [
|
|
123
123
|
{
|
|
124
124
|
key: "getContent",
|
|
125
125
|
value: function getContent() {
|
|
@@ -147,10 +147,10 @@ var ContentTextarea = /*#__PURE__*/ function(Textarea) {
|
|
|
147
147
|
]);
|
|
148
148
|
return ContentTextarea;
|
|
149
149
|
}(_textarea.default);
|
|
150
|
-
|
|
150
|
+
_define_property(ContentTextarea, "defaultProperties", {
|
|
151
151
|
className: "content",
|
|
152
152
|
spellCheck: "false"
|
|
153
153
|
});
|
|
154
154
|
var _default = ContentTextarea;
|
|
155
155
|
|
|
156
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
156
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9leGFtcGxlL3RleHRhcmVhL2NvbnRlbnQuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCBUZXh0YXJlYSBmcm9tIFwiLi4vdGV4dGFyZWFcIjtcblxuY2xhc3MgQ29udGVudFRleHRhcmVhIGV4dGVuZHMgVGV4dGFyZWEge1xuICBnZXRDb250ZW50KCkge1xuICAgIGNvbnN0IHZhbHVlID0gdGhpcy5nZXRWYWx1ZSgpLFxuICAgICAgICAgIGNvbnRlbnQgPSB2YWx1ZTsgIC8vL1xuXG4gICAgcmV0dXJuIGNvbnRlbnQ7XG4gIH1cblxuICBzZXRDb250ZW50KGNvbnRlbnQpIHtcbiAgICBjb25zdCB2YWx1ZSA9IGNvbnRlbnQ7ICAvLy9cblxuICAgIHRoaXMuc2V0VmFsdWUodmFsdWUpO1xuICB9XG5cbiAgcGFyZW50Q29udGV4dCgpIHtcbiAgICBjb25zdCBnZXRDb250ZW50ID0gdGhpcy5nZXRDb250ZW50LmJpbmQodGhpcyksXG4gICAgICAgICAgc2V0Q29udGVudCA9IHRoaXMuc2V0Q29udGVudC5iaW5kKHRoaXMpO1xuXG4gICAgcmV0dXJuICh7XG4gICAgICBnZXRDb250ZW50LFx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Ozs7WUFFQUssS0FBQUE7bUJBQUFBLFNBQUFBLGdCQUFnQjtnQkFDZCxJQUFNTixhQUFhLElBQUksQ0FBQ0EsVUFBVSxDQUFDTyxJQUFJLENBQUMsSUFBSSxHQUN0Q0gsYUFBYSxJQUFJLENBQUNBLFVBQVUsQ0FBQ0csSUFBSSxDQUFDLElBQUk7Z0JBRTVDLE9BQVE7b0JBQ05QLFlBQUFBO29CQUNBSSxZQUFBQTtnQkFDRjtZQUNGOzs7V0F0QklMO0VBQXdCUyxpQkFBUTtBQXdCcEMsaUJBeEJJVCxpQkF3QkdVLHFCQUFvQjtJQUN6QkMsV0FBVztJQUNYQyxZQUFZO0FBQ2Q7SUFHRixXQUFlWiJ9
|
|
@@ -8,15 +8,15 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return LexicalEntriesTextarea;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
var _textarea = /*#__PURE__*/
|
|
11
|
+
var _textarea = /*#__PURE__*/ _interop_require_default(require("../textarea"));
|
|
12
12
|
var _constants = require("../constants");
|
|
13
|
-
function
|
|
13
|
+
function _assert_this_initialized(self) {
|
|
14
14
|
if (self === void 0) {
|
|
15
15
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16
16
|
}
|
|
17
17
|
return self;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function _class_call_check(instance, Constructor) {
|
|
20
20
|
if (!(instance instanceof Constructor)) {
|
|
21
21
|
throw new TypeError("Cannot call a class as a function");
|
|
22
22
|
}
|
|
@@ -30,12 +30,12 @@ function _defineProperties(target, props) {
|
|
|
30
30
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
34
34
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
35
35
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
36
36
|
return Constructor;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function _define_property(obj, key, value) {
|
|
39
39
|
if (key in obj) {
|
|
40
40
|
Object.defineProperty(obj, key, {
|
|
41
41
|
value: value,
|
|
@@ -48,11 +48,11 @@ function _defineProperty(obj, key, value) {
|
|
|
48
48
|
}
|
|
49
49
|
return obj;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
|
|
51
|
+
function _get_prototype_of(o) {
|
|
52
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
53
53
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
54
54
|
};
|
|
55
|
-
return
|
|
55
|
+
return _get_prototype_of(o);
|
|
56
56
|
}
|
|
57
57
|
function _inherits(subClass, superClass) {
|
|
58
58
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -65,31 +65,31 @@ function _inherits(subClass, superClass) {
|
|
|
65
65
|
configurable: true
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
|
-
if (superClass)
|
|
68
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function _interop_require_default(obj) {
|
|
71
71
|
return obj && obj.__esModule ? obj : {
|
|
72
72
|
default: obj
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
if (call && (
|
|
75
|
+
function _possible_constructor_return(self, call) {
|
|
76
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
77
77
|
return call;
|
|
78
78
|
}
|
|
79
|
-
return
|
|
79
|
+
return _assert_this_initialized(self);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
|
|
81
|
+
function _set_prototype_of(o, p) {
|
|
82
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
83
83
|
o.__proto__ = p;
|
|
84
84
|
return o;
|
|
85
85
|
};
|
|
86
|
-
return
|
|
86
|
+
return _set_prototype_of(o, p);
|
|
87
87
|
}
|
|
88
|
-
|
|
88
|
+
function _type_of(obj) {
|
|
89
89
|
"@swc/helpers - typeof";
|
|
90
90
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
91
|
-
}
|
|
92
|
-
function
|
|
91
|
+
}
|
|
92
|
+
function _is_native_reflect_construct() {
|
|
93
93
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
94
94
|
if (Reflect.construct.sham) return false;
|
|
95
95
|
if (typeof Proxy === "function") return true;
|
|
@@ -100,27 +100,27 @@ function _isNativeReflectConstruct() {
|
|
|
100
100
|
return false;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
var hasNativeReflectConstruct =
|
|
103
|
+
function _create_super(Derived) {
|
|
104
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
105
105
|
return function _createSuperInternal() {
|
|
106
|
-
var Super =
|
|
106
|
+
var Super = _get_prototype_of(Derived), result;
|
|
107
107
|
if (hasNativeReflectConstruct) {
|
|
108
|
-
var NewTarget =
|
|
108
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
109
109
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
110
110
|
} else {
|
|
111
111
|
result = Super.apply(this, arguments);
|
|
112
112
|
}
|
|
113
|
-
return
|
|
113
|
+
return _possible_constructor_return(this, result);
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
var LexicalEntriesTextarea = /*#__PURE__*/ function(Textarea) {
|
|
117
117
|
_inherits(LexicalEntriesTextarea, Textarea);
|
|
118
|
-
var _super =
|
|
118
|
+
var _super = _create_super(LexicalEntriesTextarea);
|
|
119
119
|
function LexicalEntriesTextarea() {
|
|
120
|
-
|
|
120
|
+
_class_call_check(this, LexicalEntriesTextarea);
|
|
121
121
|
return _super.apply(this, arguments);
|
|
122
122
|
}
|
|
123
|
-
|
|
123
|
+
_create_class(LexicalEntriesTextarea, [
|
|
124
124
|
{
|
|
125
125
|
key: "getLexicalEntries",
|
|
126
126
|
value: function getLexicalEntries() {
|
|
@@ -148,9 +148,9 @@ var LexicalEntriesTextarea = /*#__PURE__*/ function(Textarea) {
|
|
|
148
148
|
]);
|
|
149
149
|
return LexicalEntriesTextarea;
|
|
150
150
|
}(_textarea.default);
|
|
151
|
-
|
|
151
|
+
_define_property(LexicalEntriesTextarea, "defaultProperties", {
|
|
152
152
|
className: "lexical-entries",
|
|
153
153
|
spellCheck: "false"
|
|
154
154
|
});
|
|
155
155
|
|
|
156
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9leGFtcGxlL3RleHRhcmVhL2xleGljYWxFbnRyaWVzLmpzIiwiPDxqc3gtY29uZmlnLXByYWdtYS5qcz4+
|
|
156
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9leGFtcGxlL3RleHRhcmVhL2xleGljYWxFbnRyaWVzLmpzIiwiPDxqc3gtY29uZmlnLXByYWdtYS5qcz4+Il0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgVGV4dGFyZWEgZnJvbSBcIi4uL3RleHRhcmVhXCI7XG5cbmltcG9ydCB7IERPVUJMRV9TUEFDRSB9IGZyb20gXCIuLi9jb25zdGFudHNcIjtcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgTGV4aWNhbEVudHJpZXNUZXh0YXJlYSBleHRlbmRzIFRleHRhcmVhIHtcbiAgZ2V0TGV4aWNhbEVudHJpZXMoKSB7XG4gICAgY29uc3QgdmFsdWUgPSB0aGlzLmdldFZhbHVlKCksXG4gICAgICAgICAgbGV4aWNhbEVudHJpZXMgPSBKU09OLnBhcnNlKHZhbHVlKTtcblxuICAgIHJldHVybiBsZXhpY2FsRW50cmllcztcbiAgfVxuXG4gI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11
|
-
var _textarea = /*#__PURE__*/
|
|
12
|
-
function
|
|
11
|
+
var _textarea = /*#__PURE__*/ _interop_require_default(require("../textarea"));
|
|
12
|
+
function _assert_this_initialized(self) {
|
|
13
13
|
if (self === void 0) {
|
|
14
14
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15
15
|
}
|
|
16
16
|
return self;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function _class_call_check(instance, Constructor) {
|
|
19
19
|
if (!(instance instanceof Constructor)) {
|
|
20
20
|
throw new TypeError("Cannot call a class as a function");
|
|
21
21
|
}
|
|
@@ -29,12 +29,12 @@ function _defineProperties(target, props) {
|
|
|
29
29
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
33
33
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
34
34
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
35
35
|
return Constructor;
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function _define_property(obj, key, value) {
|
|
38
38
|
if (key in obj) {
|
|
39
39
|
Object.defineProperty(obj, key, {
|
|
40
40
|
value: value,
|
|
@@ -47,11 +47,11 @@ function _defineProperty(obj, key, value) {
|
|
|
47
47
|
}
|
|
48
48
|
return obj;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
50
|
+
function _get_prototype_of(o) {
|
|
51
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
52
52
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
53
53
|
};
|
|
54
|
-
return
|
|
54
|
+
return _get_prototype_of(o);
|
|
55
55
|
}
|
|
56
56
|
function _inherits(subClass, superClass) {
|
|
57
57
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -64,31 +64,31 @@ function _inherits(subClass, superClass) {
|
|
|
64
64
|
configurable: true
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
|
-
if (superClass)
|
|
67
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function _interop_require_default(obj) {
|
|
70
70
|
return obj && obj.__esModule ? obj : {
|
|
71
71
|
default: obj
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
if (call && (
|
|
74
|
+
function _possible_constructor_return(self, call) {
|
|
75
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
76
76
|
return call;
|
|
77
77
|
}
|
|
78
|
-
return
|
|
78
|
+
return _assert_this_initialized(self);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
|
|
80
|
+
function _set_prototype_of(o, p) {
|
|
81
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
82
82
|
o.__proto__ = p;
|
|
83
83
|
return o;
|
|
84
84
|
};
|
|
85
|
-
return
|
|
85
|
+
return _set_prototype_of(o, p);
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
function _type_of(obj) {
|
|
88
88
|
"@swc/helpers - typeof";
|
|
89
89
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
90
|
-
}
|
|
91
|
-
function
|
|
90
|
+
}
|
|
91
|
+
function _is_native_reflect_construct() {
|
|
92
92
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
93
93
|
if (Reflect.construct.sham) return false;
|
|
94
94
|
if (typeof Proxy === "function") return true;
|
|
@@ -99,27 +99,27 @@ function _isNativeReflectConstruct() {
|
|
|
99
99
|
return false;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
var hasNativeReflectConstruct =
|
|
102
|
+
function _create_super(Derived) {
|
|
103
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
104
104
|
return function _createSuperInternal() {
|
|
105
|
-
var Super =
|
|
105
|
+
var Super = _get_prototype_of(Derived), result;
|
|
106
106
|
if (hasNativeReflectConstruct) {
|
|
107
|
-
var NewTarget =
|
|
107
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
108
108
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
109
109
|
} else {
|
|
110
110
|
result = Super.apply(this, arguments);
|
|
111
111
|
}
|
|
112
|
-
return
|
|
112
|
+
return _possible_constructor_return(this, result);
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
115
|
var ParseTreeTextarea = /*#__PURE__*/ function(Textarea) {
|
|
116
116
|
_inherits(ParseTreeTextarea, Textarea);
|
|
117
|
-
var _super =
|
|
117
|
+
var _super = _create_super(ParseTreeTextarea);
|
|
118
118
|
function ParseTreeTextarea() {
|
|
119
|
-
|
|
119
|
+
_class_call_check(this, ParseTreeTextarea);
|
|
120
120
|
return _super.apply(this, arguments);
|
|
121
121
|
}
|
|
122
|
-
|
|
122
|
+
_create_class(ParseTreeTextarea, [
|
|
123
123
|
{
|
|
124
124
|
key: "setParseTree",
|
|
125
125
|
value: function setParseTree(parseTree) {
|
|
@@ -152,10 +152,10 @@ var ParseTreeTextarea = /*#__PURE__*/ function(Textarea) {
|
|
|
152
152
|
]);
|
|
153
153
|
return ParseTreeTextarea;
|
|
154
154
|
}(_textarea.default);
|
|
155
|
-
|
|
155
|
+
_define_property(ParseTreeTextarea, "defaultProperties", {
|
|
156
156
|
readOnly: true,
|
|
157
157
|
className: "parse-tree",
|
|
158
158
|
spellCheck: "false"
|
|
159
159
|
});
|
|
160
160
|
|
|
161
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9leGFtcGxlL3RleHRhcmVhL3BhcnNlVHJlZS5qcyIsIjw8anN4LWNvbmZpZy1wcmFnbWEuanM+
|
|
161
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJz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jQUFjO2dCQUNyQixDQUFDO1lBQ0g7OztZQUVBQSxLQUFBQTttQkFBQUEsU0FBQUEsaUJBQWlCO2dCQUNmLElBQU1GLFFBQVE7Z0JBRWQsSUFBSSxDQUFDQyxRQUFRLENBQUNEO1lBQ2hCOzs7WUFFQUcsS0FBQUE7bUJBQUFBLFNBQUFBLGdCQUFnQjtnQkFDZCxJQUFNUixlQUFlLElBQUksQ0FBQ0EsWUFBWSxDQUFDUyxJQUFJLENBQUMsSUFBSSxHQUMxQ0YsaUJBQWlCLElBQUksQ0FBQ0EsY0FBYyxDQUFDRSxJQUFJLENBQUMsSUFBSTtnQkFFcEQsT0FBUTtvQkFDTlQsY0FBQUE7b0JBQ0FPLGdCQUFBQTtnQkFDRjtZQUNGOzs7V0E1Qm1CUjtFQUEwQlcsaUJBQVE7QUE4QnJELGlCQTlCbUJYLG1CQThCWlkscUJBQW9CO0lBQ3pCQyxVQUFVLElBQUk7SUFDZEMsV0FBVztJQUNYQyxZQUFZO0FBQ2QifQ==
|
package/lib/example/textarea.js
CHANGED
|
@@ -8,14 +8,14 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
var _index = /*#__PURE__*/
|
|
11
|
+
var _index = /*#__PURE__*/ _interop_require_default(require("../index"));
|
|
12
12
|
var _easy = require("easy");
|
|
13
|
-
function
|
|
13
|
+
function _interop_require_default(obj) {
|
|
14
14
|
return obj && obj.__esModule ? obj : {
|
|
15
15
|
default: obj
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function _tagged_template_literal(strings, raw) {
|
|
19
19
|
if (!raw) {
|
|
20
20
|
raw = strings.slice(0);
|
|
21
21
|
}
|
|
@@ -26,7 +26,7 @@ function _taggedTemplateLiteral(strings, raw) {
|
|
|
26
26
|
}));
|
|
27
27
|
}
|
|
28
28
|
function _templateObject() {
|
|
29
|
-
var data =
|
|
29
|
+
var data = _tagged_template_literal([
|
|
30
30
|
"\n\n border: 1px solid darkgrey;\n height: 24rem;\n resize: vertical;\n padding: 0.25rem;\n font-size: 1.2rem;\n white-space: pre;\n font-family: monospace;\n\n"
|
|
31
31
|
]);
|
|
32
32
|
_templateObject = function _templateObject() {
|
|
@@ -36,4 +36,4 @@ function _templateObject() {
|
|
|
36
36
|
}
|
|
37
37
|
var _default = (0, _index.default)(_easy.Textarea)(_templateObject());
|
|
38
38
|
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9leGFtcGxlL3RleHRhcmVhLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgd2l0aFN0eWxlIGZyb20gXCIuLi9pbmRleFwiOyAgLy8vXG5cbmltcG9ydCB7IFRleHRhcmVhIH0gZnJvbSBcImVhc3lcIjtcblxuZXhwb3J0IGRlZmF1bHQgd2l0aFN0eWxlKFRleHRhcmVhKWBcblxuICBib3JkZXI6IDFweCBzb2xpZCBkYXJrZ3JleTtcbiAgaGVpZ2h0OiAyNHJlbTtcbiAgcmVzaXplOiB2ZXJ0aWNhbDtcbiAgcGFkZGluZzogMC4yNXJlbTtcbiAgZm9udC1zaXplOiAxLjJyZW07XG4gIHdoaXRlLXNwYWNlOiBwcmU7XG4gIGZvbnQtZmFtaWx5OiBtb25vc3BhY2U7XG5cbmA7XG4iXSwibmFtZXMiOlsid2l0aFN0eWxlIiwiVGV4dGFyZWEiXSwibWFwcGluZ3MiOiJBQUFBOzs7OytCQU1BOzs7ZUFBQTs7OzREQUpzQjtvQkFFRzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztJQUV6QixXQUFlQSxJQUFBQSxjQUFTLEVBQUNDLGNBQVEifQ==
|