highmark-cli 0.0.138 → 0.0.140
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/bin/action/publish.js +2 -0
- package/bin/constants.js +6 -2
- package/bin/handler/liveReload.js +18 -0
- package/bin/importer.js +7 -4
- package/bin/operation/copyCheckmark.js +32 -0
- package/bin/operation/copyClient.js +5 -5
- package/bin/operation/markdownHTML.js +31 -9
- package/bin/operation/markdownStylesCSS.js +17 -10
- package/bin/operation/server.js +7 -10
- package/bin/router/static.js +17 -0
- package/checkmark.svg +12 -0
- package/client.js +6126 -1527
- package/css/loading.css +32 -32
- package/lib/client.js +48 -6
- package/lib/constants.js +28 -12
- package/lib/createMethods.js +64 -0
- package/lib/customEventTypes.js +9 -1
- package/lib/eventTypes.js +5 -1
- package/lib/localStorage.js +56 -0
- package/lib/mixins/fullsrean.js +63 -0
- package/lib/mixins/touch.js +101 -32
- package/lib/selectors.js +5 -9
- package/lib/state.js +133 -0
- package/lib/styles.js +78 -0
- package/lib/utilities/element.js +11 -11
- package/lib/utilities/fullScreen.js +16 -0
- package/lib/utilities/orientation.js +39 -0
- package/lib/view/button/closeMenu.js +121 -0
- package/lib/view/button/fullScreen.js +121 -0
- package/lib/view/button/zoomMenuIn.js +121 -0
- package/lib/view/button/zoomMenuOut.js +121 -0
- package/lib/view/button.js +160 -0
- package/lib/view/checkbox.js +193 -0
- package/lib/view/div/buttons.js +215 -0
- package/lib/view/div/checkbox/invertColours.js +151 -0
- package/lib/view/div/checkbox/restoreNativeGestures.js +147 -0
- package/lib/view/div/checkbox.js +220 -0
- package/lib/view/div/checkboxes.js +211 -0
- package/lib/view/div/menu.js +122 -28
- package/lib/view/div/overlay.js +639 -0
- package/lib/view/div/preloader.js +204 -0
- package/lib/view/{div/leaf.js → div.js} +21 -32
- package/lib/view/element.js +164 -0
- package/lib/view/span.js +182 -0
- package/lib/view/svg/closeMenu.js +138 -0
- package/lib/view/svg/fullScreen.js +138 -0
- package/lib/view/svg/zoomMenuIn.js +146 -0
- package/lib/view/svg/zoomMenuOut.js +141 -0
- package/lib/view/svg.js +184 -0
- package/lib/view.js +23 -396
- package/package.json +3 -2
- package/src/client.js +34 -8
- package/src/constants.js +7 -3
- package/src/createMethods.js +66 -0
- package/src/customEventTypes.js +2 -0
- package/src/eventTypes.js +1 -0
- package/src/localStorage.js +48 -0
- package/src/mixins/fullsrean.js +75 -0
- package/src/mixins/touch.js +98 -39
- package/src/selectors.js +1 -2
- package/src/state.js +130 -0
- package/src/styles.js +18 -0
- package/src/utilities/element.js +18 -15
- package/src/utilities/fullScreen.js +8 -0
- package/src/utilities/orientation.js +34 -0
- package/src/view/button/closeMenu.js +16 -0
- package/src/view/button/fullScreen.js +16 -0
- package/src/view/button/zoomMenuIn.js +16 -0
- package/src/view/button/zoomMenuOut.js +16 -0
- package/src/view/button.js +38 -0
- package/src/view/checkbox.js +68 -0
- package/src/view/div/buttons.js +39 -0
- package/src/view/div/checkbox/invertColours.js +33 -0
- package/src/view/div/checkbox/restoreNativeGestures.js +29 -0
- package/src/view/div/checkbox.js +45 -0
- package/src/view/div/checkboxes.js +36 -0
- package/src/view/div/menu.js +83 -26
- package/src/view/div/overlay.js +547 -0
- package/src/view/div/preloader.js +25 -0
- package/src/view/{div/leaf.js → div.js} +13 -21
- package/src/view/element.js +16 -0
- package/src/view/span.js +22 -0
- package/src/view/svg/closeMenu.js +19 -0
- package/src/view/svg/fullScreen.js +19 -0
- package/src/view/svg/zoomMenuIn.js +20 -0
- package/src/view/svg/zoomMenuOut.js +19 -0
- package/src/view/svg.js +24 -0
- package/src/view.js +20 -482
- package/lib/style.js +0 -13
- package/lib/utilities/tree.js +0 -55
- package/src/style.js +0 -3
- package/src/utilities/tree.js +0 -29
|
@@ -0,0 +1,204 @@
|
|
|
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 _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _easywithstyle = /*#__PURE__*/ _interop_require_default(require("easy-with-style"));
|
|
12
|
+
var _easy = require("easy");
|
|
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 _construct(Parent, args, Class) {
|
|
25
|
+
if (_is_native_reflect_construct()) {
|
|
26
|
+
_construct = Reflect.construct;
|
|
27
|
+
} else {
|
|
28
|
+
_construct = function construct(Parent, args, Class) {
|
|
29
|
+
var a = [
|
|
30
|
+
null
|
|
31
|
+
];
|
|
32
|
+
a.push.apply(a, args);
|
|
33
|
+
var Constructor = Function.bind.apply(Parent, a);
|
|
34
|
+
var instance = new Constructor();
|
|
35
|
+
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
36
|
+
return instance;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
return _construct.apply(null, arguments);
|
|
40
|
+
}
|
|
41
|
+
function _defineProperties(target, props) {
|
|
42
|
+
for(var i = 0; i < props.length; i++){
|
|
43
|
+
var descriptor = props[i];
|
|
44
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
45
|
+
descriptor.configurable = true;
|
|
46
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
47
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
51
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
52
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
53
|
+
return Constructor;
|
|
54
|
+
}
|
|
55
|
+
function _define_property(obj, key, value) {
|
|
56
|
+
if (key in obj) {
|
|
57
|
+
Object.defineProperty(obj, key, {
|
|
58
|
+
value: value,
|
|
59
|
+
enumerable: true,
|
|
60
|
+
configurable: true,
|
|
61
|
+
writable: true
|
|
62
|
+
});
|
|
63
|
+
} else {
|
|
64
|
+
obj[key] = value;
|
|
65
|
+
}
|
|
66
|
+
return obj;
|
|
67
|
+
}
|
|
68
|
+
function _get_prototype_of(o) {
|
|
69
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
70
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
71
|
+
};
|
|
72
|
+
return _get_prototype_of(o);
|
|
73
|
+
}
|
|
74
|
+
function _inherits(subClass, superClass) {
|
|
75
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
76
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
77
|
+
}
|
|
78
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
79
|
+
constructor: {
|
|
80
|
+
value: subClass,
|
|
81
|
+
writable: true,
|
|
82
|
+
configurable: true
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
86
|
+
}
|
|
87
|
+
function _interop_require_default(obj) {
|
|
88
|
+
return obj && obj.__esModule ? obj : {
|
|
89
|
+
default: obj
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
function _is_native_function(fn) {
|
|
93
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
94
|
+
}
|
|
95
|
+
function _possible_constructor_return(self, call) {
|
|
96
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
97
|
+
return call;
|
|
98
|
+
}
|
|
99
|
+
return _assert_this_initialized(self);
|
|
100
|
+
}
|
|
101
|
+
function _set_prototype_of(o, p) {
|
|
102
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
103
|
+
o.__proto__ = p;
|
|
104
|
+
return o;
|
|
105
|
+
};
|
|
106
|
+
return _set_prototype_of(o, p);
|
|
107
|
+
}
|
|
108
|
+
function _tagged_template_literal(strings, raw) {
|
|
109
|
+
if (!raw) {
|
|
110
|
+
raw = strings.slice(0);
|
|
111
|
+
}
|
|
112
|
+
return Object.freeze(Object.defineProperties(strings, {
|
|
113
|
+
raw: {
|
|
114
|
+
value: Object.freeze(raw)
|
|
115
|
+
}
|
|
116
|
+
}));
|
|
117
|
+
}
|
|
118
|
+
function _type_of(obj) {
|
|
119
|
+
"@swc/helpers - typeof";
|
|
120
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
121
|
+
}
|
|
122
|
+
function _wrap_native_super(Class) {
|
|
123
|
+
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
124
|
+
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
125
|
+
if (Class === null || !_is_native_function(Class)) return Class;
|
|
126
|
+
if (typeof Class !== "function") {
|
|
127
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
128
|
+
}
|
|
129
|
+
if (typeof _cache !== "undefined") {
|
|
130
|
+
if (_cache.has(Class)) return _cache.get(Class);
|
|
131
|
+
_cache.set(Class, Wrapper);
|
|
132
|
+
}
|
|
133
|
+
function Wrapper() {
|
|
134
|
+
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
135
|
+
}
|
|
136
|
+
Wrapper.prototype = Object.create(Class.prototype, {
|
|
137
|
+
constructor: {
|
|
138
|
+
value: Wrapper,
|
|
139
|
+
enumerable: false,
|
|
140
|
+
writable: true,
|
|
141
|
+
configurable: true
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
return _set_prototype_of(Wrapper, Class);
|
|
145
|
+
};
|
|
146
|
+
return _wrap_native_super(Class);
|
|
147
|
+
}
|
|
148
|
+
function _is_native_reflect_construct() {
|
|
149
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
150
|
+
if (Reflect.construct.sham) return false;
|
|
151
|
+
if (typeof Proxy === "function") return true;
|
|
152
|
+
try {
|
|
153
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
154
|
+
return true;
|
|
155
|
+
} catch (e) {
|
|
156
|
+
return false;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
function _create_super(Derived) {
|
|
160
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
161
|
+
return function _createSuperInternal() {
|
|
162
|
+
var Super = _get_prototype_of(Derived), result;
|
|
163
|
+
if (hasNativeReflectConstruct) {
|
|
164
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
165
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
166
|
+
} else {
|
|
167
|
+
result = Super.apply(this, arguments);
|
|
168
|
+
}
|
|
169
|
+
return _possible_constructor_return(this, result);
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
function _templateObject() {
|
|
173
|
+
var data = _tagged_template_literal([
|
|
174
|
+
'\n\n height: 0;\n overflow: hidden;\n background-image: url("checkmark.svg");\n \n'
|
|
175
|
+
]);
|
|
176
|
+
_templateObject = function _templateObject() {
|
|
177
|
+
return data;
|
|
178
|
+
};
|
|
179
|
+
return data;
|
|
180
|
+
}
|
|
181
|
+
var PreloaderDiv = /*#__PURE__*/ function(Element) {
|
|
182
|
+
_inherits(PreloaderDiv, Element);
|
|
183
|
+
var _super = _create_super(PreloaderDiv);
|
|
184
|
+
function PreloaderDiv() {
|
|
185
|
+
_class_call_check(this, PreloaderDiv);
|
|
186
|
+
return _super.apply(this, arguments);
|
|
187
|
+
}
|
|
188
|
+
_create_class(PreloaderDiv, [
|
|
189
|
+
{
|
|
190
|
+
key: "childElements",
|
|
191
|
+
value: function childElements() {
|
|
192
|
+
return "PRELOAD";
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
]);
|
|
196
|
+
return PreloaderDiv;
|
|
197
|
+
}(_wrap_native_super(_easy.Element));
|
|
198
|
+
_define_property(PreloaderDiv, "tagName", "div");
|
|
199
|
+
_define_property(PreloaderDiv, "defaultProperties", {
|
|
200
|
+
className: "preloader"
|
|
201
|
+
});
|
|
202
|
+
var _default = (0, _easywithstyle.default)(PreloaderDiv)(_templateObject());
|
|
203
|
+
|
|
204
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy92aWV3L2Rpdi9wcmVsb2FkZXIuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCB3aXRoU3R5bGUgZnJvbSBcImVhc3ktd2l0aC1zdHlsZVwiOyAgLy8vXG5cbmltcG9ydCB7IEVsZW1lbnQgfSBmcm9tIFwiZWFzeVwiO1xuXG5jbGFzcyBQcmVsb2FkZXJEaXYgZXh0ZW5kcyBFbGVtZW50IHtcbiAgY2hpbGRFbGVtZW50cygpIHtcbiAgICByZXR1cm4gXCJQUkVMT0FEXCI7XG4gIH1cblxuICBzdGF0aWMgdGFnTmFtZSA9IFwiZGl2XCI7XG5cbiAgc3RhdGljIGRlZmF1bHRQcm9wZXJ0aWVzID0ge1xuICAgIGNsYXNzTmFtZTogXCJwcmVsb2FkZXJcIlxuICB9O1xufVxuXG5leHBvcnQgZGVmYXVsdCB3aXRoU3R5bGUoUHJlbG9hZGVyRGl2KWBcblxuICBoZWlnaHQ6IDA7XG4gIG92ZXJmbG93OiBoaWRkZW47XG4gIGJhY2tncm91bmQtaW1hZ2U6IHVybChcImNoZWNrbWFyay5zdmdcIik7XG4gICAgXG5gOyJdLCJuYW1lcyI6WyJQcmVsb2FkZXJEaXYiLCJjaGlsZEVsZW1lbnRzIiwiRWxlbWVudCIsInRhZ05hbWUiLCJkZWZhdWx0UHJvcGVydGllcyIs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n0=
|
|
@@ -8,8 +8,9 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
var _easy = require("easy");
|
|
12
11
|
var _easywithstyle = /*#__PURE__*/ _interop_require_default(require("easy-with-style"));
|
|
12
|
+
var _easy = require("easy");
|
|
13
|
+
var _constants = require("../constants");
|
|
13
14
|
function _assert_this_initialized(self) {
|
|
14
15
|
if (self === void 0) {
|
|
15
16
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -171,55 +172,43 @@ function _create_super(Derived) {
|
|
|
171
172
|
}
|
|
172
173
|
function _templateObject() {
|
|
173
174
|
var data = _tagged_template_literal([
|
|
174
|
-
"\n\n width: 100%;\n min-height: 100%;\n transform-origin: top left;\n \n"
|
|
175
|
+
"\n\n width: 100%;\n display: none;\n min-height: 100%;\n pointer-events: none;\n transform-origin: top left;\n \n"
|
|
175
176
|
]);
|
|
176
177
|
_templateObject = function _templateObject() {
|
|
177
178
|
return data;
|
|
178
179
|
};
|
|
179
180
|
return data;
|
|
180
181
|
}
|
|
181
|
-
var
|
|
182
|
-
_inherits(
|
|
183
|
-
var _super = _create_super(
|
|
184
|
-
function
|
|
185
|
-
_class_call_check(this,
|
|
182
|
+
var Div = /*#__PURE__*/ function(Element) {
|
|
183
|
+
_inherits(Div, Element);
|
|
184
|
+
var _super = _create_super(Div);
|
|
185
|
+
function Div() {
|
|
186
|
+
_class_call_check(this, Div);
|
|
186
187
|
return _super.apply(this, arguments);
|
|
187
188
|
}
|
|
188
|
-
_create_class(
|
|
189
|
+
_create_class(Div, [
|
|
190
|
+
{
|
|
191
|
+
key: "getBackgroundColour",
|
|
192
|
+
value: function getBackgroundColour() {
|
|
193
|
+
var backgroundColour = this.css(_constants.BACKGROUND_COLOUR) || null;
|
|
194
|
+
return backgroundColour;
|
|
195
|
+
}
|
|
196
|
+
},
|
|
189
197
|
{
|
|
190
198
|
key: "zoom",
|
|
191
199
|
value: function zoom(zoom) {
|
|
192
|
-
var width = "".concat(100 / zoom, "%"),
|
|
200
|
+
var width = "".concat(100 / zoom, "%"), transform = "scale(".concat(zoom, ")");
|
|
193
201
|
var css = {
|
|
194
202
|
width: width,
|
|
195
|
-
minHeight: minHeight,
|
|
196
203
|
transform: transform
|
|
197
204
|
};
|
|
198
205
|
this.css(css);
|
|
199
206
|
}
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
key: "setInitialState",
|
|
203
|
-
value: function setInitialState() {
|
|
204
|
-
var zoom = 1;
|
|
205
|
-
this.setState({
|
|
206
|
-
zoom: zoom
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
key: "initialise",
|
|
212
|
-
value: function initialise() {
|
|
213
|
-
this.setInitialState();
|
|
214
|
-
}
|
|
215
207
|
}
|
|
216
208
|
]);
|
|
217
|
-
return
|
|
209
|
+
return Div;
|
|
218
210
|
}(_wrap_native_super(_easy.Element));
|
|
219
|
-
_define_property(
|
|
220
|
-
|
|
221
|
-
className: "leaf"
|
|
222
|
-
});
|
|
223
|
-
var _default = (0, _easywithstyle.default)(LeafDiv)(_templateObject());
|
|
211
|
+
_define_property(Div, "tagName", "div");
|
|
212
|
+
var _default = (0, _easywithstyle.default)(Div)(_templateObject());
|
|
224
213
|
|
|
225
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
214
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy92aWV3L2Rpdi5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IHdpdGhTdHlsZSBmcm9tIFwiZWFzeS13aXRoLXN0eWxlXCI7ICAvLy9cblxuaW1wb3J0IHsgRWxlbWVudCB9IGZyb20gXCJlYXN5XCI7XG5cbmltcG9ydCB7IEJBQ0tHUk9VTkRfQ09MT1VSIH0gZnJvbSBc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FBSSxDQUFDSixHQUFHLENBQUNBO1lBQ1g7OztXQWpCSUg7cUJBQVlRLGFBQU87QUFtQnZCLGlCQW5CSVIsS0FtQkdTLFdBQVU7SUFHbkIsV0FBZUMsSUFBQUEsc0JBQVMsRUFBQ1YifQ==
|
|
@@ -0,0 +1,164 @@
|
|
|
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 _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _easywithstyle = /*#__PURE__*/ _interop_require_default(require("easy-with-style"));
|
|
12
|
+
var _easy = require("easy");
|
|
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 _construct(Parent, args, Class) {
|
|
25
|
+
if (_is_native_reflect_construct()) {
|
|
26
|
+
_construct = Reflect.construct;
|
|
27
|
+
} else {
|
|
28
|
+
_construct = function construct(Parent, args, Class) {
|
|
29
|
+
var a = [
|
|
30
|
+
null
|
|
31
|
+
];
|
|
32
|
+
a.push.apply(a, args);
|
|
33
|
+
var Constructor = Function.bind.apply(Parent, a);
|
|
34
|
+
var instance = new Constructor();
|
|
35
|
+
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
36
|
+
return instance;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
return _construct.apply(null, arguments);
|
|
40
|
+
}
|
|
41
|
+
function _get_prototype_of(o) {
|
|
42
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
43
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
44
|
+
};
|
|
45
|
+
return _get_prototype_of(o);
|
|
46
|
+
}
|
|
47
|
+
function _inherits(subClass, superClass) {
|
|
48
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
49
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
50
|
+
}
|
|
51
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
52
|
+
constructor: {
|
|
53
|
+
value: subClass,
|
|
54
|
+
writable: true,
|
|
55
|
+
configurable: true
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
59
|
+
}
|
|
60
|
+
function _interop_require_default(obj) {
|
|
61
|
+
return obj && obj.__esModule ? obj : {
|
|
62
|
+
default: obj
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function _is_native_function(fn) {
|
|
66
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
67
|
+
}
|
|
68
|
+
function _possible_constructor_return(self, call) {
|
|
69
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
70
|
+
return call;
|
|
71
|
+
}
|
|
72
|
+
return _assert_this_initialized(self);
|
|
73
|
+
}
|
|
74
|
+
function _set_prototype_of(o, p) {
|
|
75
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
76
|
+
o.__proto__ = p;
|
|
77
|
+
return o;
|
|
78
|
+
};
|
|
79
|
+
return _set_prototype_of(o, p);
|
|
80
|
+
}
|
|
81
|
+
function _tagged_template_literal(strings, raw) {
|
|
82
|
+
if (!raw) {
|
|
83
|
+
raw = strings.slice(0);
|
|
84
|
+
}
|
|
85
|
+
return Object.freeze(Object.defineProperties(strings, {
|
|
86
|
+
raw: {
|
|
87
|
+
value: Object.freeze(raw)
|
|
88
|
+
}
|
|
89
|
+
}));
|
|
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 _wrap_native_super(Class) {
|
|
96
|
+
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
97
|
+
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
98
|
+
if (Class === null || !_is_native_function(Class)) return Class;
|
|
99
|
+
if (typeof Class !== "function") {
|
|
100
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
101
|
+
}
|
|
102
|
+
if (typeof _cache !== "undefined") {
|
|
103
|
+
if (_cache.has(Class)) return _cache.get(Class);
|
|
104
|
+
_cache.set(Class, Wrapper);
|
|
105
|
+
}
|
|
106
|
+
function Wrapper() {
|
|
107
|
+
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
108
|
+
}
|
|
109
|
+
Wrapper.prototype = Object.create(Class.prototype, {
|
|
110
|
+
constructor: {
|
|
111
|
+
value: Wrapper,
|
|
112
|
+
enumerable: false,
|
|
113
|
+
writable: true,
|
|
114
|
+
configurable: true
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
return _set_prototype_of(Wrapper, Class);
|
|
118
|
+
};
|
|
119
|
+
return _wrap_native_super(Class);
|
|
120
|
+
}
|
|
121
|
+
function _is_native_reflect_construct() {
|
|
122
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
123
|
+
if (Reflect.construct.sham) return false;
|
|
124
|
+
if (typeof Proxy === "function") return true;
|
|
125
|
+
try {
|
|
126
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
127
|
+
return true;
|
|
128
|
+
} catch (e) {
|
|
129
|
+
return false;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
function _create_super(Derived) {
|
|
133
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
134
|
+
return function _createSuperInternal() {
|
|
135
|
+
var Super = _get_prototype_of(Derived), result;
|
|
136
|
+
if (hasNativeReflectConstruct) {
|
|
137
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
138
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
139
|
+
} else {
|
|
140
|
+
result = Super.apply(this, arguments);
|
|
141
|
+
}
|
|
142
|
+
return _possible_constructor_return(this, result);
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
function _templateObject() {
|
|
146
|
+
var data = _tagged_template_literal([
|
|
147
|
+
"\n\n border: 0;\n margin: 0;\n padding: 0;\n background: transparent;\n \n"
|
|
148
|
+
]);
|
|
149
|
+
_templateObject = function _templateObject() {
|
|
150
|
+
return data;
|
|
151
|
+
};
|
|
152
|
+
return data;
|
|
153
|
+
}
|
|
154
|
+
var _default = (0, _easywithstyle.default)(/*#__PURE__*/ function(Element) {
|
|
155
|
+
_inherits(_class, Element);
|
|
156
|
+
var _super = _create_super(_class);
|
|
157
|
+
function _class() {
|
|
158
|
+
_class_call_check(this, _class);
|
|
159
|
+
return _super.apply(this, arguments);
|
|
160
|
+
}
|
|
161
|
+
return _class;
|
|
162
|
+
}(_wrap_native_super(_easy.Element)))(_templateObject());
|
|
163
|
+
|
|
164
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy92aWV3L2VsZW1lbnQuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCB3aXRoU3R5bGUgZnJvbSBcImVhc3ktd2l0aC1zdHlsZVwiOyAgLy8vXG5cbmltcG9ydCB7IEVsZW1lbnQgfSBmcm9tIFwiZWFzeVwiO1xuXG5leHBvcnQgZGVmYXVsdCB3aXRoU3R5bGUoY2xhc3MgZXh0ZW5kcyBFbGVtZW50IHtcbiAgLy8vXG59KWBcblxuICBib3JkZXI6IDA7XG4gIG1hcmdpbjogMDtc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("easy-with-style"));
|
|
12
|
+
var _element = /*#__PURE__*/ _interop_require_default(require("./element"));
|
|
13
|
+
var _styles = require("../styles");
|
|
14
|
+
function _assert_this_initialized(self) {
|
|
15
|
+
if (self === void 0) {
|
|
16
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
17
|
+
}
|
|
18
|
+
return self;
|
|
19
|
+
}
|
|
20
|
+
function _class_call_check(instance, Constructor) {
|
|
21
|
+
if (!(instance instanceof Constructor)) {
|
|
22
|
+
throw new TypeError("Cannot call a class as a function");
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function _construct(Parent, args, Class) {
|
|
26
|
+
if (_is_native_reflect_construct()) {
|
|
27
|
+
_construct = Reflect.construct;
|
|
28
|
+
} else {
|
|
29
|
+
_construct = function construct(Parent, args, Class) {
|
|
30
|
+
var a = [
|
|
31
|
+
null
|
|
32
|
+
];
|
|
33
|
+
a.push.apply(a, args);
|
|
34
|
+
var Constructor = Function.bind.apply(Parent, a);
|
|
35
|
+
var instance = new Constructor();
|
|
36
|
+
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
37
|
+
return instance;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
return _construct.apply(null, arguments);
|
|
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
|
+
}
|
|
74
|
+
function _interop_require_default(obj) {
|
|
75
|
+
return obj && obj.__esModule ? obj : {
|
|
76
|
+
default: obj
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function _is_native_function(fn) {
|
|
80
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
81
|
+
}
|
|
82
|
+
function _possible_constructor_return(self, call) {
|
|
83
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
84
|
+
return call;
|
|
85
|
+
}
|
|
86
|
+
return _assert_this_initialized(self);
|
|
87
|
+
}
|
|
88
|
+
function _set_prototype_of(o, p) {
|
|
89
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
90
|
+
o.__proto__ = p;
|
|
91
|
+
return o;
|
|
92
|
+
};
|
|
93
|
+
return _set_prototype_of(o, p);
|
|
94
|
+
}
|
|
95
|
+
function _tagged_template_literal(strings, raw) {
|
|
96
|
+
if (!raw) {
|
|
97
|
+
raw = strings.slice(0);
|
|
98
|
+
}
|
|
99
|
+
return Object.freeze(Object.defineProperties(strings, {
|
|
100
|
+
raw: {
|
|
101
|
+
value: Object.freeze(raw)
|
|
102
|
+
}
|
|
103
|
+
}));
|
|
104
|
+
}
|
|
105
|
+
function _type_of(obj) {
|
|
106
|
+
"@swc/helpers - typeof";
|
|
107
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
108
|
+
}
|
|
109
|
+
function _wrap_native_super(Class) {
|
|
110
|
+
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
111
|
+
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
112
|
+
if (Class === null || !_is_native_function(Class)) return Class;
|
|
113
|
+
if (typeof Class !== "function") {
|
|
114
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
115
|
+
}
|
|
116
|
+
if (typeof _cache !== "undefined") {
|
|
117
|
+
if (_cache.has(Class)) return _cache.get(Class);
|
|
118
|
+
_cache.set(Class, Wrapper);
|
|
119
|
+
}
|
|
120
|
+
function Wrapper() {
|
|
121
|
+
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
122
|
+
}
|
|
123
|
+
Wrapper.prototype = Object.create(Class.prototype, {
|
|
124
|
+
constructor: {
|
|
125
|
+
value: Wrapper,
|
|
126
|
+
enumerable: false,
|
|
127
|
+
writable: true,
|
|
128
|
+
configurable: true
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
return _set_prototype_of(Wrapper, Class);
|
|
132
|
+
};
|
|
133
|
+
return _wrap_native_super(Class);
|
|
134
|
+
}
|
|
135
|
+
function _is_native_reflect_construct() {
|
|
136
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
137
|
+
if (Reflect.construct.sham) return false;
|
|
138
|
+
if (typeof Proxy === "function") return true;
|
|
139
|
+
try {
|
|
140
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
141
|
+
return true;
|
|
142
|
+
} catch (e) {
|
|
143
|
+
return false;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
function _create_super(Derived) {
|
|
147
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
148
|
+
return function _createSuperInternal() {
|
|
149
|
+
var Super = _get_prototype_of(Derived), result;
|
|
150
|
+
if (hasNativeReflectConstruct) {
|
|
151
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
152
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
153
|
+
} else {
|
|
154
|
+
result = Super.apply(this, arguments);
|
|
155
|
+
}
|
|
156
|
+
return _possible_constructor_return(this, result);
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
function _templateObject() {
|
|
160
|
+
var data = _tagged_template_literal([
|
|
161
|
+
"\n\n color: ",
|
|
162
|
+
";\n display: inline-block;\n font-size: ",
|
|
163
|
+
";\n line-height: 1;\n white-space: pre;\n font-family: serif;\n \n"
|
|
164
|
+
]);
|
|
165
|
+
_templateObject = function _templateObject() {
|
|
166
|
+
return data;
|
|
167
|
+
};
|
|
168
|
+
return data;
|
|
169
|
+
}
|
|
170
|
+
var Span = /*#__PURE__*/ function(Element) {
|
|
171
|
+
_inherits(Span, Element);
|
|
172
|
+
var _super = _create_super(Span);
|
|
173
|
+
function Span() {
|
|
174
|
+
_class_call_check(this, Span);
|
|
175
|
+
return _super.apply(this, arguments);
|
|
176
|
+
}
|
|
177
|
+
return Span;
|
|
178
|
+
}(_wrap_native_super(_element.default));
|
|
179
|
+
_define_property(Span, "tagName", "span");
|
|
180
|
+
var _default = (0, _easywithstyle.default)(Span)(_templateObject(), _styles.spanColour, _styles.spanFontSize);
|
|
181
|
+
|
|
182
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy92aWV3L3NwYW4uanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCB3aXRoU3R5bGUgZnJvbSBcImVhc3ktd2l0aC1zdHlsZVwiOyAgLy8vXG5cbmltcG9ydCBFbGVtZW50IGZyb20gXCIuL2VsZW1lbnRcIjtcblxuaW1wb3J0IHsgc3BhbkNvbG91ciwgc3BhbkZvbnRTaXplIH0gZnJvbSBcIi4uL3N0eWxlc1wiO1xuXG5jbGFzcyBTcGFuIGV4dGVuZHMgRWxlbWVudCB7XG4gIHN0YXRpYyB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