easy-with-style 3.0.539 → 3.0.540
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/.aiignore +12 -0
- package/.swcrc +4 -3
- package/example.js +277 -1343
- package/lib/constants.js +2 -2
- package/lib/example/constants.js +5 -5
- package/lib/example/cursor.js +11 -11
- package/lib/example/div/column.js +11 -25
- package/lib/example/div/columns.js +12 -25
- package/lib/example/div/rows.js +12 -25
- package/lib/example/div/sizeable.js +13 -25
- package/lib/example/div/splitter/vertical.js +65 -249
- package/lib/example/preamble.js +2 -2
- package/lib/example/subHeading.js +13 -23
- package/lib/example/textarea/bnf.js +22 -125
- package/lib/example/textarea/content.js +22 -125
- package/lib/example/textarea/lexicalEntries.js +22 -125
- package/lib/example/textarea/parseTree.js +26 -129
- package/lib/example/textarea.js +14 -23
- package/lib/example/view.js +61 -234
- package/lib/example.js +6 -6
- package/lib/index.js +3 -3
- package/lib/utilities/class.js +3 -10
- package/lib/withStyle.js +36 -201
- package/package.json +1 -1
package/lib/example/preamble.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
|
|
5
|
+
const _easy = require("easy");
|
|
6
6
|
Object.assign(globalThis, {
|
|
7
7
|
React: _easy.React
|
|
8
8
|
});
|
|
9
9
|
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9leGFtcGxlL3ByZWFtYmxlLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgeyBSZWFjdCB9IGZyb20gXCJlYXN5XCI7XG5cbk9iamVjdC5hc3NpZ24oZ2xvYmFsVGhpcywge1xuICBSZWFjdFxufSk7XG4iXSwibmFtZXMiOlsiT2JqZWN0IiwiYXNzaWduIiwiZ2xvYmFsVGhpcyIsIlJlYWN0Il0sIm1hcHBpbmdzIjoiQUFBQTs7OztzQkFFc0I7QUFFdEJBLE9BQU9DLE1BQU0sQ0FBQ0MsWUFBWTtJQUN4QkMsT0FBQUEsV0FBSztBQUNQIn0=
|
|
@@ -8,32 +8,22 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
11
|
+
const _index = /*#__PURE__*/ _interop_require_default(require("../index"));
|
|
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 = _index.default.h2(_templateObject());
|
|
37
|
-
var _default = SubHeading;
|
|
17
|
+
const SubHeading = _index.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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9leGFtcGxlL3N1YkhlYWRpbmcuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCB3aXRoU3R5bGUgZnJvbSBcIi4uL2luZGV4XCI7ICAvLy9cblxuY29uc3QgU3ViSGVhZGluZyA9IHdpdGhTdHlsZS5oMmBcblxuICBtYXJnaW46IDFyZW0gMCAwLjVyZW0gMDtcbiAgZm9udC1zaXplOiAycmVtO1xuICBcbiAgOmZpcnN0LW9mLXR5cGUge1xuICAgIG1hcmdpbi10b3A6IDA7XG4gIH1cblxuYDtcblxuZXhwb3J0IGRlZmF1bHQgU3ViSGVhZGluZztcbiJdLCJuYW1lcyI6WyJTdWJIZWFkaW5nIiwid2l0aFN0eWxlIiwiaDIiXSwibWFwcGluZ3MiOiJBQUFBOzs7OytCQWVBOzs7ZUFBQTs7OzhEQWJzQjs7Ozs7O0FBRXRCLE1BQU1BLGFBQWFDLGNBQVMsQ0FBQ0MsRUFBRSxDQUFDOzs7Ozs7Ozs7QUFTaEMsQ0FBQztNQUVELFdBQWVGIn0=
|
|
@@ -8,136 +8,33 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
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 _textarea = /*#__PURE__*/ _interop_require_default(require("../textarea"));
|
|
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 BNFTextarea extends _textarea.default {
|
|
18
|
+
getBNF() {
|
|
19
|
+
const value = this.getValue(), bnf = value; ///
|
|
20
|
+
return bnf;
|
|
21
|
+
}
|
|
22
|
+
setBNF(bnf) {
|
|
23
|
+
const value = bnf; ///
|
|
24
|
+
this.setValue(value);
|
|
25
|
+
}
|
|
26
|
+
parentContext() {
|
|
27
|
+
const getBNF = this.getBNF.bind(this), setBNF = this.setBNF.bind(this);
|
|
28
|
+
return {
|
|
29
|
+
getBNF,
|
|
30
|
+
setBNF
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
static defaultProperties = {
|
|
34
|
+
className: "bnf",
|
|
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
|
-
|
|
104
|
-
_inherits(BNFTextarea, Textarea);
|
|
105
|
-
function BNFTextarea() {
|
|
106
|
-
_class_call_check(this, BNFTextarea);
|
|
107
|
-
return _call_super(this, BNFTextarea, arguments);
|
|
108
|
-
}
|
|
109
|
-
_create_class(BNFTextarea, [
|
|
110
|
-
{
|
|
111
|
-
key: "getBNF",
|
|
112
|
-
value: function getBNF() {
|
|
113
|
-
var value = this.getValue(), bnf = value; ///
|
|
114
|
-
return bnf;
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
key: "setBNF",
|
|
119
|
-
value: function setBNF(bnf) {
|
|
120
|
-
var value = bnf; ///
|
|
121
|
-
this.setValue(value);
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
key: "parentContext",
|
|
126
|
-
value: function parentContext() {
|
|
127
|
-
var getBNF = this.getBNF.bind(this), setBNF = this.setBNF.bind(this);
|
|
128
|
-
return {
|
|
129
|
-
getBNF: getBNF,
|
|
130
|
-
setBNF: setBNF
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
]);
|
|
135
|
-
return BNFTextarea;
|
|
136
|
-
}(_textarea.default);
|
|
137
|
-
_define_property(BNFTextarea, "defaultProperties", {
|
|
138
|
-
className: "bnf",
|
|
139
|
-
spellCheck: "false"
|
|
140
|
-
});
|
|
141
|
-
var _default = BNFTextarea;
|
|
38
|
+
const _default = BNFTextarea;
|
|
142
39
|
|
|
143
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9leGFtcGxlL3RleHRhcmVhL2JuZi5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IFRleHRhcmVhIGZyb20gXCIuLi90ZXh0YXJlYVwiO1xuXG5jbGFzcyBCTkZUZXh0YXJlYSBleHRlbmRzIFRleHRhcmVhIHtcbiAgZ2V0Qk5GKCkge1xuICAgIGNvbnN0IHZhbHVl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GLFFBQVFFLEtBQU0sR0FBRztRQUV2QixJQUFJLENBQUNFLFFBQVEsQ0FBQ0o7SUFDaEI7SUFFQUssZ0JBQWdCO1FBQ2QsTUFBTU4sU0FBUyxJQUFJLENBQUNBLE1BQU0sQ0FBQ08sSUFBSSxDQUFDLElBQUksR0FDOUJILFNBQVMsSUFBSSxDQUFDQSxNQUFNLENBQUNHLElBQUksQ0FBQyxJQUFJO1FBRXBDLE9BQVE7WUFDTlA7WUFDQUk7UUFDRjtJQUNGO0lBRUEsT0FBT0ksb0JBQW9CO1FBQ3pCQyxXQUFXO1FBQ1hDLFlBQVk7SUFDZCxFQUFFO0FBQ0o7TUFFQSxXQUFlWiJ9
|
|
@@ -8,136 +8,33 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
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 _textarea = /*#__PURE__*/ _interop_require_default(require("../textarea"));
|
|
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 ContentTextarea extends _textarea.default {
|
|
18
|
+
getContent() {
|
|
19
|
+
const value = this.getValue(), content = value; ///
|
|
20
|
+
return content;
|
|
21
|
+
}
|
|
22
|
+
setContent(content) {
|
|
23
|
+
const value = content; ///
|
|
24
|
+
this.setValue(value);
|
|
25
|
+
}
|
|
26
|
+
parentContext() {
|
|
27
|
+
const getContent = this.getContent.bind(this), setContent = this.setContent.bind(this);
|
|
28
|
+
return {
|
|
29
|
+
getContent,
|
|
30
|
+
setContent
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
static defaultProperties = {
|
|
34
|
+
className: "content",
|
|
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
|
-
|
|
104
|
-
_inherits(ContentTextarea, Textarea);
|
|
105
|
-
function ContentTextarea() {
|
|
106
|
-
_class_call_check(this, ContentTextarea);
|
|
107
|
-
return _call_super(this, ContentTextarea, arguments);
|
|
108
|
-
}
|
|
109
|
-
_create_class(ContentTextarea, [
|
|
110
|
-
{
|
|
111
|
-
key: "getContent",
|
|
112
|
-
value: function getContent() {
|
|
113
|
-
var value = this.getValue(), content = value; ///
|
|
114
|
-
return content;
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
key: "setContent",
|
|
119
|
-
value: function setContent(content) {
|
|
120
|
-
var value = content; ///
|
|
121
|
-
this.setValue(value);
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
key: "parentContext",
|
|
126
|
-
value: function parentContext() {
|
|
127
|
-
var getContent = this.getContent.bind(this), setContent = this.setContent.bind(this);
|
|
128
|
-
return {
|
|
129
|
-
getContent: getContent,
|
|
130
|
-
setContent: setContent
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
]);
|
|
135
|
-
return ContentTextarea;
|
|
136
|
-
}(_textarea.default);
|
|
137
|
-
_define_property(ContentTextarea, "defaultProperties", {
|
|
138
|
-
className: "content",
|
|
139
|
-
spellCheck: "false"
|
|
140
|
-
});
|
|
141
|
-
var _default = ContentTextarea;
|
|
38
|
+
const _default = ContentTextarea;
|
|
142
39
|
|
|
143
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9leGFtcGxlL3RleHRhcmVhL2NvbnRlbnQuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCBUZXh0YXJlYSBmcm9tIFwiLi4vdGV4dGFyZWFcIjtcblxuY2xhc3MgQ29udGVudFRleHRhcmVhIGV4dGVuZHMgVGV4dGFyZWEge1xuICBnZXRDb250ZW50KCkge1xuICAgIGNvbnN0IHZhbHVlID0gdGhpcy5nZXRWYWx1ZSgpLFxuICAgICAgICAgIGNvbnRlbnQgPSB2YWx1ZTsgIC8vL1xuXG4gICAgcmV0dXJuIGNvbnRlbnQ7XG4gIH1cblxuICBzZXRDb250ZW50KGNvbnRlbnQpIHtcbiAgICBjb25zdCB2YWx1ZSA9IGNvbnRlbnQ7ICAvLy9cblxuICAgIHRoaXMuc2V0VmFsdWUodmFsdWUpO1xuICB9XG5cbiAgcGFyZW50Q29udGV4dCgpIH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DQUFDQSxVQUFVLENBQUNHLElBQUksQ0FBQyxJQUFJO1FBRTVDLE9BQVE7WUFDTlA7WUFDQUk7UUFDRjtJQUNGO0lBRUEsT0FBT0ksb0JBQW9CO1FBQ3pCQyxXQUFXO1FBQ1hDLFlBQVk7SUFDZCxFQUFFO0FBQ0o7TUFFQSxXQUFlWiJ9
|
|
@@ -8,136 +8,33 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return LexicalEntriesTextarea;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
function _assert_this_initialized(self) {
|
|
14
|
-
if (self === void 0) {
|
|
15
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16
|
-
}
|
|
17
|
-
return self;
|
|
18
|
-
}
|
|
19
|
-
function _call_super(_this, derived, args) {
|
|
20
|
-
derived = _get_prototype_of(derived);
|
|
21
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
22
|
-
}
|
|
23
|
-
function _class_call_check(instance, Constructor) {
|
|
24
|
-
if (!(instance instanceof Constructor)) {
|
|
25
|
-
throw new TypeError("Cannot call a class as a function");
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function _defineProperties(target, props) {
|
|
29
|
-
for(var i = 0; i < props.length; i++){
|
|
30
|
-
var descriptor = props[i];
|
|
31
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
32
|
-
descriptor.configurable = true;
|
|
33
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
34
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
38
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
39
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
40
|
-
return Constructor;
|
|
41
|
-
}
|
|
42
|
-
function _define_property(obj, key, value) {
|
|
43
|
-
if (key in obj) {
|
|
44
|
-
Object.defineProperty(obj, key, {
|
|
45
|
-
value: value,
|
|
46
|
-
enumerable: true,
|
|
47
|
-
configurable: true,
|
|
48
|
-
writable: true
|
|
49
|
-
});
|
|
50
|
-
} else {
|
|
51
|
-
obj[key] = value;
|
|
52
|
-
}
|
|
53
|
-
return obj;
|
|
54
|
-
}
|
|
55
|
-
function _get_prototype_of(o) {
|
|
56
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
57
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
58
|
-
};
|
|
59
|
-
return _get_prototype_of(o);
|
|
60
|
-
}
|
|
61
|
-
function _inherits(subClass, superClass) {
|
|
62
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
63
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
64
|
-
}
|
|
65
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
66
|
-
constructor: {
|
|
67
|
-
value: subClass,
|
|
68
|
-
writable: true,
|
|
69
|
-
configurable: true
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
73
|
-
}
|
|
11
|
+
const _textarea = /*#__PURE__*/ _interop_require_default(require("../textarea"));
|
|
12
|
+
const _constants = require("../constants");
|
|
74
13
|
function _interop_require_default(obj) {
|
|
75
14
|
return obj && obj.__esModule ? obj : {
|
|
76
15
|
default: obj
|
|
77
16
|
};
|
|
78
17
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
18
|
+
class LexicalEntriesTextarea extends _textarea.default {
|
|
19
|
+
getLexicalEntries() {
|
|
20
|
+
const value = this.getValue(), lexicalEntries = JSON.parse(value);
|
|
21
|
+
return lexicalEntries;
|
|
22
|
+
}
|
|
23
|
+
setLexicalEntries(lexicalEntries) {
|
|
24
|
+
const value = JSON.stringify(lexicalEntries, null, _constants.DOUBLE_SPACE);
|
|
25
|
+
this.setValue(value);
|
|
26
|
+
}
|
|
27
|
+
parentContext() {
|
|
28
|
+
const getLexicalEntries = this.getLexicalEntries.bind(this), setLexicalEntries = this.setLexicalEntries.bind(this);
|
|
29
|
+
return {
|
|
30
|
+
getLexicalEntries,
|
|
31
|
+
setLexicalEntries
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
static defaultProperties = {
|
|
35
|
+
className: "lexical-entries",
|
|
36
|
+
spellCheck: "false"
|
|
89
37
|
};
|
|
90
|
-
return _set_prototype_of(o, p);
|
|
91
|
-
}
|
|
92
|
-
function _type_of(obj) {
|
|
93
|
-
"@swc/helpers - typeof";
|
|
94
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
95
|
-
}
|
|
96
|
-
function _is_native_reflect_construct() {
|
|
97
|
-
try {
|
|
98
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
99
|
-
} catch (_) {}
|
|
100
|
-
return (_is_native_reflect_construct = function() {
|
|
101
|
-
return !!result;
|
|
102
|
-
})();
|
|
103
38
|
}
|
|
104
|
-
var LexicalEntriesTextarea = /*#__PURE__*/ function(Textarea) {
|
|
105
|
-
_inherits(LexicalEntriesTextarea, Textarea);
|
|
106
|
-
function LexicalEntriesTextarea() {
|
|
107
|
-
_class_call_check(this, LexicalEntriesTextarea);
|
|
108
|
-
return _call_super(this, LexicalEntriesTextarea, arguments);
|
|
109
|
-
}
|
|
110
|
-
_create_class(LexicalEntriesTextarea, [
|
|
111
|
-
{
|
|
112
|
-
key: "getLexicalEntries",
|
|
113
|
-
value: function getLexicalEntries() {
|
|
114
|
-
var value = this.getValue(), lexicalEntries = JSON.parse(value);
|
|
115
|
-
return lexicalEntries;
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
key: "setLexicalEntries",
|
|
120
|
-
value: function setLexicalEntries(lexicalEntries) {
|
|
121
|
-
var value = JSON.stringify(lexicalEntries, null, _constants.DOUBLE_SPACE);
|
|
122
|
-
this.setValue(value);
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
key: "parentContext",
|
|
127
|
-
value: function parentContext() {
|
|
128
|
-
var getLexicalEntries = this.getLexicalEntries.bind(this), setLexicalEntries = this.setLexicalEntries.bind(this);
|
|
129
|
-
return {
|
|
130
|
-
getLexicalEntries: getLexicalEntries,
|
|
131
|
-
setLexicalEntries: setLexicalEntries
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
]);
|
|
136
|
-
return LexicalEntriesTextarea;
|
|
137
|
-
}(_textarea.default);
|
|
138
|
-
_define_property(LexicalEntriesTextarea, "defaultProperties", {
|
|
139
|
-
className: "lexical-entries",
|
|
140
|
-
spellCheck: "false"
|
|
141
|
-
});
|
|
142
39
|
|
|
143
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9leGFtcGxlL3RleHRhcmVhL2xleGljYWxFbnRyaWVzLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgVGV4dGFyZWEgZnJvbSBcIi4uL3RleHRhcmVhXCI7XG5cbmltcG9ydCB7IERPVUJMRV9TUEFDRSB9IGZyb20gXCIuLi9jb25zdGFudHNcIjtcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgTGV4aWNhbEVudHJpZXNUZXh0YXJlYSBleHRlbmRzIFRleHRhcmVhIHtcbiAgZ2V0TGV4aWNhbEVudHJpZXMoKSB7XG4gICAgY29uc3QgdmFsdWUgPSB0aGlzLmdldFZhbHVlKCksXG4gICAgICA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