highmark-markdown 1.0.40 → 1.0.42
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 +3154 -1252
- package/lib/elementMap.js +4 -1
- package/lib/example/customEventTypes.js +17 -1
- package/lib/example/importer.js +2 -6
- package/lib/example/view/{div/sizeable/right.js → button/tab/css.js} +44 -33
- package/lib/example/view/button/tab/html.js +146 -0
- package/lib/example/view/button/tab/markdown.js +2 -23
- package/lib/example/view/button/tab/markdownStyle.js +2 -23
- package/lib/example/view/button/tab/plainText.js +146 -0
- package/lib/example/view/button/tab/preview.js +146 -0
- package/lib/example/view/button/tab.js +2 -2
- package/lib/example/view/div/container/css.js +186 -0
- package/lib/example/view/div/container/html.js +188 -0
- package/lib/example/view/div/container/plainText.js +186 -0
- package/lib/example/view/div/container/preview.js +212 -0
- package/lib/example/view/div/container.js +2 -2
- package/lib/example/view/div/preview.js +2 -2
- package/lib/example/view/div/tabButtons/left.js +206 -0
- package/lib/example/view/div/tabButtons/right.js +246 -0
- package/lib/example/view/div/tabButtons.js +3 -59
- package/lib/example/view/textarea/css.js +2 -2
- package/lib/example/view/textarea/plainText.js +183 -0
- package/lib/example/view/textarea.js +2 -2
- package/lib/example/view.js +99 -47
- package/lib/node/markdown/tableBodyCell.js +8 -1
- package/lib/node/markdown/tableHeadCell.js +8 -1
- package/package.json +5 -5
- package/src/elementMap.js +5 -0
- package/src/example/customEventTypes.js +4 -0
- package/src/example/importer.js +1 -3
- package/src/example/view/button/tab/css.js +23 -0
- package/src/example/view/button/tab/html.js +23 -0
- package/src/example/view/button/tab/markdown.js +1 -15
- package/src/example/view/button/tab/markdownStyle.js +1 -13
- package/src/example/view/button/tab/plainText.js +23 -0
- package/src/example/view/button/tab/preview.js +23 -0
- package/src/example/view/button/tab.js +4 -5
- package/src/example/view/div/container/css.js +30 -0
- package/src/example/view/div/container/html.js +30 -0
- package/src/example/view/div/container/plainText.js +30 -0
- package/src/example/view/div/container/preview.js +43 -0
- package/src/example/view/div/container.js +0 -3
- package/src/example/view/div/preview.js +1 -2
- package/src/example/view/div/tabButtons/left.js +66 -0
- package/src/example/view/div/tabButtons/right.js +106 -0
- package/src/example/view/div/tabButtons.js +0 -49
- package/src/example/view/textarea/css.js +1 -1
- package/src/example/view/textarea/plainText.js +46 -0
- package/src/example/view/textarea.js +2 -0
- package/src/example/view.js +112 -71
- package/src/node/markdown/tableBodyCell.js +9 -0
- package/src/node/markdown/tableHeadCell.js +9 -0
- package/lib/example/view/subHeading.js +0 -39
- package/src/example/view/div/sizeable/right.js +0 -19
- package/src/example/view/subHeading.js +0 -16
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return PlainTextTabButton;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _tab = /*#__PURE__*/ _interop_require_default(require("../../button/tab"));
|
|
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 _class_call_check(instance, Constructor) {
|
|
19
|
+
if (!(instance instanceof Constructor)) {
|
|
20
|
+
throw new TypeError("Cannot call a class as a function");
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function _defineProperties(target, props) {
|
|
24
|
+
for(var i = 0; i < props.length; i++){
|
|
25
|
+
var descriptor = props[i];
|
|
26
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
27
|
+
descriptor.configurable = true;
|
|
28
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
29
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
33
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
34
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
35
|
+
return Constructor;
|
|
36
|
+
}
|
|
37
|
+
function _define_property(obj, key, value) {
|
|
38
|
+
if (key in obj) {
|
|
39
|
+
Object.defineProperty(obj, key, {
|
|
40
|
+
value: value,
|
|
41
|
+
enumerable: true,
|
|
42
|
+
configurable: true,
|
|
43
|
+
writable: true
|
|
44
|
+
});
|
|
45
|
+
} else {
|
|
46
|
+
obj[key] = value;
|
|
47
|
+
}
|
|
48
|
+
return obj;
|
|
49
|
+
}
|
|
50
|
+
function _get_prototype_of(o) {
|
|
51
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
52
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
53
|
+
};
|
|
54
|
+
return _get_prototype_of(o);
|
|
55
|
+
}
|
|
56
|
+
function _inherits(subClass, superClass) {
|
|
57
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
58
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
59
|
+
}
|
|
60
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
61
|
+
constructor: {
|
|
62
|
+
value: subClass,
|
|
63
|
+
writable: true,
|
|
64
|
+
configurable: true
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
68
|
+
}
|
|
69
|
+
function _interop_require_default(obj) {
|
|
70
|
+
return obj && obj.__esModule ? obj : {
|
|
71
|
+
default: obj
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function _possible_constructor_return(self, call) {
|
|
75
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
76
|
+
return call;
|
|
77
|
+
}
|
|
78
|
+
return _assert_this_initialized(self);
|
|
79
|
+
}
|
|
80
|
+
function _set_prototype_of(o, p) {
|
|
81
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
82
|
+
o.__proto__ = p;
|
|
83
|
+
return o;
|
|
84
|
+
};
|
|
85
|
+
return _set_prototype_of(o, p);
|
|
86
|
+
}
|
|
87
|
+
function _type_of(obj) {
|
|
88
|
+
"@swc/helpers - typeof";
|
|
89
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
90
|
+
}
|
|
91
|
+
function _is_native_reflect_construct() {
|
|
92
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
93
|
+
if (Reflect.construct.sham) return false;
|
|
94
|
+
if (typeof Proxy === "function") return true;
|
|
95
|
+
try {
|
|
96
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
97
|
+
return true;
|
|
98
|
+
} catch (e) {
|
|
99
|
+
return false;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
function _create_super(Derived) {
|
|
103
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
104
|
+
return function _createSuperInternal() {
|
|
105
|
+
var Super = _get_prototype_of(Derived), result;
|
|
106
|
+
if (hasNativeReflectConstruct) {
|
|
107
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
108
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
109
|
+
} else {
|
|
110
|
+
result = Super.apply(this, arguments);
|
|
111
|
+
}
|
|
112
|
+
return _possible_constructor_return(this, result);
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
var PlainTextTabButton = /*#__PURE__*/ function(TabButton) {
|
|
116
|
+
_inherits(PlainTextTabButton, TabButton);
|
|
117
|
+
var _super = _create_super(PlainTextTabButton);
|
|
118
|
+
function PlainTextTabButton() {
|
|
119
|
+
_class_call_check(this, PlainTextTabButton);
|
|
120
|
+
return _super.apply(this, arguments);
|
|
121
|
+
}
|
|
122
|
+
_create_class(PlainTextTabButton, [
|
|
123
|
+
{
|
|
124
|
+
key: "childElements",
|
|
125
|
+
value: function childElements() {
|
|
126
|
+
return "PlainText";
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
key: "parentContext",
|
|
131
|
+
value: function parentContext() {
|
|
132
|
+
var enablePlainTextTabButton = this.enable.bind(this), disablePlainTextTabButton = this.disable.bind(this); ///
|
|
133
|
+
return {
|
|
134
|
+
enablePlainTextTabButton: enablePlainTextTabButton,
|
|
135
|
+
disablePlainTextTabButton: disablePlainTextTabButton
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
]);
|
|
140
|
+
return PlainTextTabButton;
|
|
141
|
+
}(_tab.default);
|
|
142
|
+
_define_property(PlainTextTabButton, "defaultProperties", {
|
|
143
|
+
className: "plainText"
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvYnV0dG9uL3RhYi9wbGFpblRleHQuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCBUYWJCdXR0b24gZnJvbSBcIi4uLy4uL2J1dHRvbi90YWJcIjtcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgUGxhaW5UZXh0VGFiQnV0dG9uIGV4dGVuZHMgVGFiQnV0dG9uIHtcbiAgY2hpbGRFbGVtZW50cygpIHtcbiAgICByZXR1cm4gXCJQbGFpblRleHRcIjtcbiAgfVxuXG4gIHBhcmVudENvbnRleHQoKSB7XG4gICAgY29uc3QgZW5hYmxlUGxhaW5UZXh0VGFiQnV0dG9uID0gdGhpcy5lbmFibGUuYmluZCh0aGlzKSwgLy8vXG4gICAgICAgICAgZGlzYWJsZVBsYWluVGV4dFRhYkJ1dHRvbiA9IHRoaXMuZGlzYWJsZS5ia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PQUFRO29CQUNORiwwQkFBQUE7b0JBQ0FHLDJCQUFBQTtnQkFDRjtZQUNGOzs7V0FibUJOO0VBQTJCUSxZQUFTO0FBZXZELGlCQWZtQlIsb0JBZVpTLHFCQUFvQjtJQUN6QkMsV0FBVztBQUNiIn0=
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return PreviewTabButton;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _tab = /*#__PURE__*/ _interop_require_default(require("../../button/tab"));
|
|
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 _class_call_check(instance, Constructor) {
|
|
19
|
+
if (!(instance instanceof Constructor)) {
|
|
20
|
+
throw new TypeError("Cannot call a class as a function");
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function _defineProperties(target, props) {
|
|
24
|
+
for(var i = 0; i < props.length; i++){
|
|
25
|
+
var descriptor = props[i];
|
|
26
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
27
|
+
descriptor.configurable = true;
|
|
28
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
29
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
33
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
34
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
35
|
+
return Constructor;
|
|
36
|
+
}
|
|
37
|
+
function _define_property(obj, key, value) {
|
|
38
|
+
if (key in obj) {
|
|
39
|
+
Object.defineProperty(obj, key, {
|
|
40
|
+
value: value,
|
|
41
|
+
enumerable: true,
|
|
42
|
+
configurable: true,
|
|
43
|
+
writable: true
|
|
44
|
+
});
|
|
45
|
+
} else {
|
|
46
|
+
obj[key] = value;
|
|
47
|
+
}
|
|
48
|
+
return obj;
|
|
49
|
+
}
|
|
50
|
+
function _get_prototype_of(o) {
|
|
51
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
52
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
53
|
+
};
|
|
54
|
+
return _get_prototype_of(o);
|
|
55
|
+
}
|
|
56
|
+
function _inherits(subClass, superClass) {
|
|
57
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
58
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
59
|
+
}
|
|
60
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
61
|
+
constructor: {
|
|
62
|
+
value: subClass,
|
|
63
|
+
writable: true,
|
|
64
|
+
configurable: true
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
68
|
+
}
|
|
69
|
+
function _interop_require_default(obj) {
|
|
70
|
+
return obj && obj.__esModule ? obj : {
|
|
71
|
+
default: obj
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function _possible_constructor_return(self, call) {
|
|
75
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
76
|
+
return call;
|
|
77
|
+
}
|
|
78
|
+
return _assert_this_initialized(self);
|
|
79
|
+
}
|
|
80
|
+
function _set_prototype_of(o, p) {
|
|
81
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
82
|
+
o.__proto__ = p;
|
|
83
|
+
return o;
|
|
84
|
+
};
|
|
85
|
+
return _set_prototype_of(o, p);
|
|
86
|
+
}
|
|
87
|
+
function _type_of(obj) {
|
|
88
|
+
"@swc/helpers - typeof";
|
|
89
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
90
|
+
}
|
|
91
|
+
function _is_native_reflect_construct() {
|
|
92
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
93
|
+
if (Reflect.construct.sham) return false;
|
|
94
|
+
if (typeof Proxy === "function") return true;
|
|
95
|
+
try {
|
|
96
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
97
|
+
return true;
|
|
98
|
+
} catch (e) {
|
|
99
|
+
return false;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
function _create_super(Derived) {
|
|
103
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
104
|
+
return function _createSuperInternal() {
|
|
105
|
+
var Super = _get_prototype_of(Derived), result;
|
|
106
|
+
if (hasNativeReflectConstruct) {
|
|
107
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
108
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
109
|
+
} else {
|
|
110
|
+
result = Super.apply(this, arguments);
|
|
111
|
+
}
|
|
112
|
+
return _possible_constructor_return(this, result);
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
var PreviewTabButton = /*#__PURE__*/ function(TabButton) {
|
|
116
|
+
_inherits(PreviewTabButton, TabButton);
|
|
117
|
+
var _super = _create_super(PreviewTabButton);
|
|
118
|
+
function PreviewTabButton() {
|
|
119
|
+
_class_call_check(this, PreviewTabButton);
|
|
120
|
+
return _super.apply(this, arguments);
|
|
121
|
+
}
|
|
122
|
+
_create_class(PreviewTabButton, [
|
|
123
|
+
{
|
|
124
|
+
key: "childElements",
|
|
125
|
+
value: function childElements() {
|
|
126
|
+
return "Preview";
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
key: "parentContext",
|
|
131
|
+
value: function parentContext() {
|
|
132
|
+
var enablePreviewTabButton = this.enable.bind(this), disablePreviewTabButton = this.disable.bind(this); ///
|
|
133
|
+
return {
|
|
134
|
+
enablePreviewTabButton: enablePreviewTabButton,
|
|
135
|
+
disablePreviewTabButton: disablePreviewTabButton
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
]);
|
|
140
|
+
return PreviewTabButton;
|
|
141
|
+
}(_tab.default);
|
|
142
|
+
_define_property(PreviewTabButton, "defaultProperties", {
|
|
143
|
+
className: "preview"
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvYnV0dG9uL3RhYi9wcmV2aWV3LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgVGFiQnV0dG9uIGZyb20gXCIuLi8uLi9idXR0b24vdGFiXCI7XG5cbmV4cG9ydCBkZWZhdWx0IGNsYXNzIFByZXZpZXdUYWJCdXR0b24gZXh0ZW5kcyBUYWJCdXR0b24ge1xuICBjaGlsZEVsZW1lbnRzKCkge1xuICAgIHJldHVybiBcIlByZXZpZXdcIjtcbiAgfVxuXG4gIHBhcmVudENvbnRleHQoKSB7XG4gICAgY29uc3QgZW5hYmxlUHJldmlld1RhYkJ1dHRvbiA9IHRoaXMuZW5hYmxlLmJpbmQodGhpcyksIC8vL1xuICAgICAgICAgIGRpc2FibGVQcmV2aWV3VGFiQnV0dG9uID0gdGhpcy5kaXNhYmxlLmJpbmQodGhpcyk7IC8vL1xuXG4gICAgcmV0dXJuICh7XG4gICAgICBlbmFibGVQcmV2aWV3VGFiQnV0dG9uLFxuICAgICAgZGlzYWJsZVByZXZpZXdUYWJCdXR0b25cbiAgICB9KTtcbiAgfVxuXG4gIHN0YXRpYyBkZWZhdWx0UHJvcGVydGllcyA9IHtcbiAgICBjbGFzc05hbWU6IFwicHJldmlld1wiXG4gIH1cbn1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var data = _tagged_template_literal([
|
|
114
|
-
"\n\n color: black;\n cursor: pointer;\n
|
|
114
|
+
"\n\n color: black;\n cursor: pointer;\n padding: 1rem;\n font-size: 2rem;\n background: transparent; \n font-family: serif;\n\n border: 1px solid black;\n font-weight: bold;\n border-bottom: 0;\n \n :enabled {\n border: 0;\n font-weight: normal;\n border-bottom: 1px solid black;\n }\n \n"
|
|
115
115
|
]);
|
|
116
116
|
_templateObject = function _templateObject() {
|
|
117
117
|
return data;
|
|
@@ -132,4 +132,4 @@ _define_property(TabButton, "defaultProperties", {
|
|
|
132
132
|
});
|
|
133
133
|
var _default = (0, _easywithstyle.default)(TabButton)(_templateObject());
|
|
134
134
|
|
|
135
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
135
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvYnV0dG9uL3RhYi5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IHdpdGhTdHlsZSBmcm9tIFwiZWFzeS13aXRoLXN0eWxlXCI7ICAvLy9cblxuaW1wb3J0IHsgQnV0dG9uIH0gZnJvbSBcImVhc3lcIjtcblxuY2xhc3MgVGFiQnV0dG9uIGV4dGVuZHMgQnV0dG9uIHtcbiAgc3RhdGljIGRlZmF1bHRQcm9wZXJ0aWVzID0ge1xuICAgIGNsYXNzTmFtZTogXCJ0YWJcIlxuICB9O1xufVxuXG5leHBvcnQgZGVmYXVsdCB3aXRoU3R5bGUoVGFiQnV0dG9uKWBcblxuICBjb2xvcjogYmxhY2s7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgcGFkZGluZzogMXJlbTtcbiAgZm9udC1zaXplOiAycmVtO1xuICBiYWNrZ3JvdW5kOiB0cmFuc3BhcmVudDsgIFxuICBmb250LWZhbWlseTogc2VyaWY7XG5cbiAgYm9yZGVyOiAxcHggc29saWQgYmxhY2s7XG4gIGZvbnQtd2VpZ2h0OiBib2xkO1xuICBib3JkZXItYm90dG9tOiAwO1xuICBcbiAgOmVuYWJsZWQge1xuICAgIGJvcmRlcjogMDtcbiAgICBmb250LXdlaWdodDogbm9ybWFsO1xuICAgIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCBibGFjaztcbiAgfVxuICBcbmA7XG4iXSwibmFtZXMiOlsiVGFiQnV0dG9uIiwiQnV0dG9uIiwiZGVmYXVsdFByb3BlcnRpZXMiLCJjbGFzc05hbWUiLCJ3aXRoU3R5bGUiXSwibWFwcGluZ3MiOiJBQUFBOzs7OytCQVlBOzs7ZUFBQTs7O29FQVZzQjtvQkFFQzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUV2QixJQUFBLEFBQU1BLDBCQUFELEFBQUw7Y0FBTUE7K0JBQUFBO2FBQUFBO2dDQUFBQTs7O1dBQUFBO0VBQWtCQyxZQUFNO0FBQzVCLGlCQURJRCxXQUNHRSxxQkFBb0I7SUFDekJDLFdBQVc7QUFDYjtJQUdGLFdBQWVDLElBQUFBLHNCQUFTLEVBQUNKIn0=
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return CSSContainerDiv;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _css = /*#__PURE__*/ _interop_require_default(require("../../textarea/css"));
|
|
12
|
+
var _container = /*#__PURE__*/ _interop_require_default(require("../../div/container"));
|
|
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 _class_call_check(instance, Constructor) {
|
|
20
|
+
if (!(instance instanceof Constructor)) {
|
|
21
|
+
throw new TypeError("Cannot call a class as a function");
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function _defineProperties(target, props) {
|
|
25
|
+
for(var i = 0; i < props.length; i++){
|
|
26
|
+
var descriptor = props[i];
|
|
27
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
28
|
+
descriptor.configurable = true;
|
|
29
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
30
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
34
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
35
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
36
|
+
return Constructor;
|
|
37
|
+
}
|
|
38
|
+
function _define_property(obj, key, value) {
|
|
39
|
+
if (key in obj) {
|
|
40
|
+
Object.defineProperty(obj, key, {
|
|
41
|
+
value: value,
|
|
42
|
+
enumerable: true,
|
|
43
|
+
configurable: true,
|
|
44
|
+
writable: true
|
|
45
|
+
});
|
|
46
|
+
} else {
|
|
47
|
+
obj[key] = value;
|
|
48
|
+
}
|
|
49
|
+
return obj;
|
|
50
|
+
}
|
|
51
|
+
function _get_prototype_of(o) {
|
|
52
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
53
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
54
|
+
};
|
|
55
|
+
return _get_prototype_of(o);
|
|
56
|
+
}
|
|
57
|
+
function _inherits(subClass, superClass) {
|
|
58
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
59
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
60
|
+
}
|
|
61
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
62
|
+
constructor: {
|
|
63
|
+
value: subClass,
|
|
64
|
+
writable: true,
|
|
65
|
+
configurable: true
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
69
|
+
}
|
|
70
|
+
function _interop_require_default(obj) {
|
|
71
|
+
return obj && obj.__esModule ? obj : {
|
|
72
|
+
default: obj
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function _object_spread(target) {
|
|
76
|
+
for(var i = 1; i < arguments.length; i++){
|
|
77
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
78
|
+
var ownKeys = Object.keys(source);
|
|
79
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
80
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
81
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
82
|
+
}));
|
|
83
|
+
}
|
|
84
|
+
ownKeys.forEach(function(key) {
|
|
85
|
+
_define_property(target, key, source[key]);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
return target;
|
|
89
|
+
}
|
|
90
|
+
function ownKeys(object, enumerableOnly) {
|
|
91
|
+
var keys = Object.keys(object);
|
|
92
|
+
if (Object.getOwnPropertySymbols) {
|
|
93
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
94
|
+
if (enumerableOnly) {
|
|
95
|
+
symbols = symbols.filter(function(sym) {
|
|
96
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
keys.push.apply(keys, symbols);
|
|
100
|
+
}
|
|
101
|
+
return keys;
|
|
102
|
+
}
|
|
103
|
+
function _object_spread_props(target, source) {
|
|
104
|
+
source = source != null ? source : {};
|
|
105
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
106
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
107
|
+
} else {
|
|
108
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
109
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
return target;
|
|
113
|
+
}
|
|
114
|
+
function _possible_constructor_return(self, call) {
|
|
115
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
116
|
+
return call;
|
|
117
|
+
}
|
|
118
|
+
return _assert_this_initialized(self);
|
|
119
|
+
}
|
|
120
|
+
function _set_prototype_of(o, p) {
|
|
121
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
122
|
+
o.__proto__ = p;
|
|
123
|
+
return o;
|
|
124
|
+
};
|
|
125
|
+
return _set_prototype_of(o, p);
|
|
126
|
+
}
|
|
127
|
+
function _type_of(obj) {
|
|
128
|
+
"@swc/helpers - typeof";
|
|
129
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
130
|
+
}
|
|
131
|
+
function _is_native_reflect_construct() {
|
|
132
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
133
|
+
if (Reflect.construct.sham) return false;
|
|
134
|
+
if (typeof Proxy === "function") return true;
|
|
135
|
+
try {
|
|
136
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
137
|
+
return true;
|
|
138
|
+
} catch (e) {
|
|
139
|
+
return false;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
function _create_super(Derived) {
|
|
143
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
144
|
+
return function _createSuperInternal() {
|
|
145
|
+
var Super = _get_prototype_of(Derived), result;
|
|
146
|
+
if (hasNativeReflectConstruct) {
|
|
147
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
148
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
149
|
+
} else {
|
|
150
|
+
result = Super.apply(this, arguments);
|
|
151
|
+
}
|
|
152
|
+
return _possible_constructor_return(this, result);
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
var CSSContainerDiv = /*#__PURE__*/ function(ContainerDiv) {
|
|
156
|
+
_inherits(CSSContainerDiv, ContainerDiv);
|
|
157
|
+
var _super = _create_super(CSSContainerDiv);
|
|
158
|
+
function CSSContainerDiv() {
|
|
159
|
+
_class_call_check(this, CSSContainerDiv);
|
|
160
|
+
return _super.apply(this, arguments);
|
|
161
|
+
}
|
|
162
|
+
_create_class(CSSContainerDiv, [
|
|
163
|
+
{
|
|
164
|
+
key: "childElements",
|
|
165
|
+
value: function childElements() {
|
|
166
|
+
return /*#__PURE__*/ React.createElement(_css.default, null);
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
key: "parentContext",
|
|
171
|
+
value: function parentContext() {
|
|
172
|
+
var context = this.getContext(), showCSSContainerDiv = this.show.bind(this), hideCSSContainerDiv = this.hide.bind(this); ///
|
|
173
|
+
return _object_spread_props(_object_spread({}, context), {
|
|
174
|
+
showCSSContainerDiv: showCSSContainerDiv,
|
|
175
|
+
hideCSSContainerDiv: hideCSSContainerDiv
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
]);
|
|
180
|
+
return CSSContainerDiv;
|
|
181
|
+
}(_container.default);
|
|
182
|
+
_define_property(CSSContainerDiv, "defaultProperties", {
|
|
183
|
+
className: "css"
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvZGl2L2NvbnRhaW5lci9jc3MuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5c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