easy-layout 6.0.289 → 6.0.291
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 +566 -2642
- package/lib/constants.js +2 -2
- package/lib/cursor.js +20 -20
- package/lib/cursors.js +5 -5
- package/lib/div/column.js +13 -151
- package/lib/div/columns.js +14 -151
- package/lib/div/row.js +13 -151
- package/lib/div/rows.js +14 -151
- package/lib/div/sizeable.js +12 -151
- package/lib/div/splitter/horizontal.js +43 -163
- package/lib/div/splitter/vertical.js +43 -163
- package/lib/div/splitter.js +86 -275
- package/lib/example/div/bottomLeft.js +11 -25
- package/lib/example/div/column/middle.js +11 -104
- package/lib/example/div/row/blue.js +11 -104
- package/lib/example/div/row/yellow.js +11 -104
- package/lib/example/div/sizeable/bottom.js +11 -104
- package/lib/example/div/sizeable/left.js +13 -104
- package/lib/example/div/sizeable/right.js +12 -104
- package/lib/example/div/splitter/horizontal/main.js +11 -104
- package/lib/example/div/splitter/pseudo.js +12 -25
- package/lib/example/div/splitter/vertical/left.js +11 -104
- package/lib/example/div/splitter/vertical/right.js +11 -104
- package/lib/example/preamble.js +2 -2
- package/lib/example/section/text.js +13 -25
- package/lib/example/view.js +29 -42
- package/lib/example.js +6 -6
- package/lib/index.js +10 -10
- package/package.json +3 -3
package/lib/constants.js
CHANGED
|
@@ -8,6 +8,6 @@ Object.defineProperty(exports, "CURSOR", {
|
|
|
8
8
|
return CURSOR;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
11
|
+
const CURSOR = "cursor";
|
|
12
12
|
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jb25zdGFudHMuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmV4cG9ydCBjb25zdCBDVVJTT1IgPSBcImN1cnNvclwiO1xuIl0sIm5hbWVzIjpbIkNVUlNPUiJdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7K0JBRWFBOzs7ZUFBQUE7OztBQUFOLE1BQU1BLFNBQVMifQ==
|
package/lib/cursor.js
CHANGED
|
@@ -28,53 +28,53 @@ _export(exports, {
|
|
|
28
28
|
return rowResizeCursor;
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
const _easy = require("easy");
|
|
32
|
+
const _constants = require("./constants");
|
|
33
|
+
const _cursors = require("./cursors");
|
|
34
|
+
const body = new _easy.Body();
|
|
35
|
+
let previousCursor; ///
|
|
36
36
|
function autoCursor() {
|
|
37
|
-
|
|
37
|
+
const cursor = _cursors.AUTO_CURSOR;
|
|
38
38
|
updateCursor(cursor);
|
|
39
39
|
}
|
|
40
40
|
function resetCursor() {
|
|
41
41
|
setCursor(previousCursor); ///
|
|
42
42
|
}
|
|
43
43
|
function pointerCursor() {
|
|
44
|
-
|
|
44
|
+
const cursor = _cursors.POINTER_CURSOR;
|
|
45
45
|
updateCursor(cursor);
|
|
46
46
|
}
|
|
47
47
|
function rowResizeCursor() {
|
|
48
|
-
|
|
48
|
+
const cursor = _cursors.ROW_RESIZE_CURSOR;
|
|
49
49
|
updateCursor(cursor);
|
|
50
50
|
}
|
|
51
51
|
function columnResizeCursor() {
|
|
52
|
-
|
|
52
|
+
const cursor = _cursors.COL_RESIZE_CURSOR;
|
|
53
53
|
updateCursor(cursor);
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
autoCursor
|
|
57
|
-
resetCursor
|
|
58
|
-
pointerCursor
|
|
59
|
-
rowResizeCursor
|
|
60
|
-
columnResizeCursor
|
|
55
|
+
const _default = {
|
|
56
|
+
autoCursor,
|
|
57
|
+
resetCursor,
|
|
58
|
+
pointerCursor,
|
|
59
|
+
rowResizeCursor,
|
|
60
|
+
columnResizeCursor
|
|
61
61
|
};
|
|
62
62
|
function setCursor(cursor) {
|
|
63
|
-
|
|
64
|
-
cursor
|
|
63
|
+
const css = {
|
|
64
|
+
cursor
|
|
65
65
|
};
|
|
66
66
|
body.css(css);
|
|
67
67
|
}
|
|
68
68
|
function updateCursor(cursor) {
|
|
69
|
-
|
|
69
|
+
const currentCursor = getCurrentCursor();
|
|
70
70
|
if (currentCursor !== cursor) {
|
|
71
71
|
previousCursor = currentCursor; ///
|
|
72
72
|
setCursor(cursor);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
function getCurrentCursor() {
|
|
76
|
-
|
|
76
|
+
const currentCursor = body.css(_constants.CURSOR) || _cursors.AUTO_CURSOR;
|
|
77
77
|
return currentCursor;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
80
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jdXJzb3IuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCB7IEJvZHkgfSBmcm9tIFwiZWFzeVwiO1xuXG5pbXBvcnQgeyBDVVJTT1IgfSBmcm9tIFwiLi9jb25zdGFudHNcIjtcbmltcG9ydCB7IEFVVE9fQ1VSU09SLCBQT0lOVEVSX0NVUlNPUiwgQ09MX1JFU0laRV9DVVJTT1IsIFJPV19SRVNJWkVfQ1VSU09SIH0gZnJvbSBcIi4vY3Vyc29yc1wiO1xuXG5jb25zdCBib2R5ID0gbmV3IEJvZHkoKTtcblxubGV0IHByZXZpb3VzQ3Vyc29yOyAgLy8vXG5cbmV4cG9ydCBmdW5jdGlvbiBhdXRvQ3Vyc29yKCkge1xuICBjb25zdCBjdXJzb3IgPSBBVVRPX0NVUlNPUjtcblxuICB1cGRhdGVDdXJzb3IoY3Vyc29yKTtcbn1cblxuZXhwb3J0IG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NNLDBCQUFpQjtJQUVoQ0osYUFBYUY7QUFDZjtNQUVBLFdBQWU7SUFDYlI7SUFDQUc7SUFDQUQ7SUFDQUU7SUFDQUg7QUFDRjtBQUVBLFNBQVNVLFVBQVVILE1BQU07SUFDdkIsTUFBTU8sTUFBTTtRQUNWUDtJQUNGO0lBRUFILEtBQUtVLEdBQUcsQ0FBQ0E7QUFDWDtBQUVBLFNBQVNMLGFBQWFGLE1BQU07SUFDMUIsTUFBTVEsZ0JBQWdCQztJQUV0QixJQUFJRCxrQkFBa0JSLFFBQVE7UUFDNUJELGlCQUFpQlMsZUFBZSxHQUFHO1FBRW5DTCxVQUFVSDtJQUNaO0FBQ0Y7QUFFQSxTQUFTUztJQUNQLE1BQU1ELGdCQUFnQlgsS0FBS1UsR0FBRyxDQUFDRyxpQkFBTSxLQUFLVCxvQkFBVztJQUVyRCxPQUFPTztBQUNUIn0=
|
package/lib/cursors.js
CHANGED
|
@@ -22,9 +22,9 @@ _export(exports, {
|
|
|
22
22
|
return ROW_RESIZE_CURSOR;
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
const AUTO_CURSOR = "auto";
|
|
26
|
+
const POINTER_CURSOR = "pointer";
|
|
27
|
+
const COL_RESIZE_CURSOR = "col-resize";
|
|
28
|
+
const ROW_RESIZE_CURSOR = "row-resize";
|
|
29
29
|
|
|
30
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jdXJzb3JzLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5leHBvcnQgY29uc3QgQVVUT19DVVJTT1IgPSBcImF1dG9cIjtcbmV4cG9ydCBjb25zdCBQT0lOVEVSX0NVUlNPUiA9IFwicG9pbnRlclwiO1xuZXhwb3J0IGNvbnN0IENPTF9SRVNJWkVfQ1VSU09SID0gXCJjb2wtcmVzaXplXCI7XG5leHBvcnQgY29uc3QgUk9XX1JFU0laRV9DVVJTT1IgPSBcInJvdy1yZXNpemVcIjtcbiJdLCJuYW1lcyI6WyJBVVRPX0NVUlNPUiIsIkNPTF9SRVNJWkVfQ1VSU09SIiwiUE9JTlRFUl9DVVJTT1IiLCJST1dfUkVTSVpFX0NVUlNPUiJdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7O1FBRWFBO2VBQUFBOztRQUVBQztlQUFBQTs7UUFEQUM7ZUFBQUE7O1FBRUFDO2VBQUFBOzs7QUFITixNQUFNSCxjQUFjO0FBQ3BCLE1BQU1FLGlCQUFpQjtBQUN2QixNQUFNRCxvQkFBb0I7QUFDMUIsTUFBTUUsb0JBQW9CIn0=
|
package/lib/div/column.js
CHANGED
|
@@ -8,162 +8,24 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
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 _construct(Parent, args, Class) {
|
|
29
|
-
if (_is_native_reflect_construct()) {
|
|
30
|
-
_construct = Reflect.construct;
|
|
31
|
-
} else {
|
|
32
|
-
_construct = function construct(Parent, args, Class) {
|
|
33
|
-
var a = [
|
|
34
|
-
null
|
|
35
|
-
];
|
|
36
|
-
a.push.apply(a, args);
|
|
37
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
38
|
-
var instance = new Constructor();
|
|
39
|
-
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
40
|
-
return instance;
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
return _construct.apply(null, arguments);
|
|
44
|
-
}
|
|
45
|
-
function _define_property(obj, key, value) {
|
|
46
|
-
if (key in obj) {
|
|
47
|
-
Object.defineProperty(obj, key, {
|
|
48
|
-
value: value,
|
|
49
|
-
enumerable: true,
|
|
50
|
-
configurable: true,
|
|
51
|
-
writable: true
|
|
52
|
-
});
|
|
53
|
-
} else {
|
|
54
|
-
obj[key] = value;
|
|
55
|
-
}
|
|
56
|
-
return obj;
|
|
57
|
-
}
|
|
58
|
-
function _get_prototype_of(o) {
|
|
59
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
60
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
61
|
-
};
|
|
62
|
-
return _get_prototype_of(o);
|
|
63
|
-
}
|
|
64
|
-
function _inherits(subClass, superClass) {
|
|
65
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
66
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
67
|
-
}
|
|
68
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
69
|
-
constructor: {
|
|
70
|
-
value: subClass,
|
|
71
|
-
writable: true,
|
|
72
|
-
configurable: true
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
76
|
-
}
|
|
11
|
+
const _easywithstyle = /*#__PURE__*/ _interop_require_default(require("easy-with-style"));
|
|
12
|
+
const _easy = require("easy");
|
|
77
13
|
function _interop_require_default(obj) {
|
|
78
14
|
return obj && obj.__esModule ? obj : {
|
|
79
15
|
default: obj
|
|
80
16
|
};
|
|
81
17
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
87
|
-
return call;
|
|
88
|
-
}
|
|
89
|
-
return _assert_this_initialized(self);
|
|
90
|
-
}
|
|
91
|
-
function _set_prototype_of(o, p) {
|
|
92
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
93
|
-
o.__proto__ = p;
|
|
94
|
-
return o;
|
|
95
|
-
};
|
|
96
|
-
return _set_prototype_of(o, p);
|
|
97
|
-
}
|
|
98
|
-
function _tagged_template_literal(strings, raw) {
|
|
99
|
-
if (!raw) {
|
|
100
|
-
raw = strings.slice(0);
|
|
101
|
-
}
|
|
102
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
103
|
-
raw: {
|
|
104
|
-
value: Object.freeze(raw)
|
|
105
|
-
}
|
|
106
|
-
}));
|
|
107
|
-
}
|
|
108
|
-
function _type_of(obj) {
|
|
109
|
-
"@swc/helpers - typeof";
|
|
110
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
111
|
-
}
|
|
112
|
-
function _wrap_native_super(Class) {
|
|
113
|
-
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
114
|
-
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
115
|
-
if (Class === null || !_is_native_function(Class)) return Class;
|
|
116
|
-
if (typeof Class !== "function") {
|
|
117
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
118
|
-
}
|
|
119
|
-
if (typeof _cache !== "undefined") {
|
|
120
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
|
121
|
-
_cache.set(Class, Wrapper);
|
|
122
|
-
}
|
|
123
|
-
function Wrapper() {
|
|
124
|
-
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
125
|
-
}
|
|
126
|
-
Wrapper.prototype = Object.create(Class.prototype, {
|
|
127
|
-
constructor: {
|
|
128
|
-
value: Wrapper,
|
|
129
|
-
enumerable: false,
|
|
130
|
-
writable: true,
|
|
131
|
-
configurable: true
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
return _set_prototype_of(Wrapper, Class);
|
|
135
|
-
};
|
|
136
|
-
return _wrap_native_super(Class);
|
|
137
|
-
}
|
|
138
|
-
function _is_native_reflect_construct() {
|
|
139
|
-
try {
|
|
140
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
141
|
-
} catch (_) {}
|
|
142
|
-
return (_is_native_reflect_construct = function() {
|
|
143
|
-
return !!result;
|
|
144
|
-
})();
|
|
145
|
-
}
|
|
146
|
-
function _templateObject() {
|
|
147
|
-
var data = _tagged_template_literal([
|
|
148
|
-
"\n\n display: flex;\n flex-grow: 1;\n\n"
|
|
149
|
-
]);
|
|
150
|
-
_templateObject = function _templateObject() {
|
|
151
|
-
return data;
|
|
18
|
+
class ColumnDiv extends _easy.Element {
|
|
19
|
+
static tagName = "div";
|
|
20
|
+
static defaultProperties = {
|
|
21
|
+
className: "column"
|
|
152
22
|
};
|
|
153
|
-
return data;
|
|
154
23
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
return ColumnDiv;
|
|
162
|
-
}(_wrap_native_super(_easy.Element));
|
|
163
|
-
_define_property(ColumnDiv, "tagName", "div");
|
|
164
|
-
_define_property(ColumnDiv, "defaultProperties", {
|
|
165
|
-
className: "column"
|
|
166
|
-
});
|
|
167
|
-
var _default = (0, _easywithstyle.default)(ColumnDiv)(_templateObject());
|
|
24
|
+
const _default = (0, _easywithstyle.default)(ColumnDiv)`
|
|
25
|
+
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-grow: 1;
|
|
28
|
+
|
|
29
|
+
`;
|
|
168
30
|
|
|
169
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaXYvY29sdW1uLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgd2l0aFN0eWxlIGZyb20gXCJlYXN5LXdpdGgtc3R5bGVcIjsgIC8vL1xuXG5pbXBvcnQgeyBFbGVtZW50IH0gZnJvbSBcImVhc3lcIjtcblxuY2xhc3MgQ29sdW1uRGl2IGV4dGVuZHMgRWxlbWVudCB7XG4gIHN0YXRpYyB0YWdOYW1lID0gXCJkaXZcIjtcblxuICBzdGF0aWMgZGVmYXVsdFByb3BlcnRpZXMgPSB7XG4gICAgY2xhc3NOYW1lOiBcImNvbHVtblwiXG4gIH07XG59XG5cbmV4cG9ydCBkZWZhdWx0IHdpdGhTdHlsZShDb2x1bW5EaXYpYFxuXG4gIGRpc3BsYXk6IGZsZXg7XG4gIGZsZXgtZ3JvdzogMTtcblxuYDtcbiJdLCJuYW1lcyI6WyJDb2x1bW5EaXYiLCJFbGVtZW50IiwidGFnTmFtZSIsImRlZmF1bHRQcm9wZXJ0aWVzIiwiY2xhc3NOYW1lIiwid2l0aFN0eWxlIl0sIm1hcHBpbmdzIjoiQUFBQTs7OzsrQkFjQTs7O2VBQUE7OztzRUFac0I7c0JBRUU7Ozs7OztBQUV4QixNQUFNQSxrQkFBa0JDLGFBQU87SUFDN0IsT0FBT0MsVUFBVSxNQUFNO0lBRXZCLE9BQU9DLG9CQUFvQjtRQUN6QkMsV0FBVztJQUNiLEVBQUU7QUFDSjtNQUVBLFdBQWVDLElBQUFBLHNCQUFTLEVBQUNMLFVBQVUsQ0FBQzs7Ozs7QUFLcEMsQ0FBQyJ9
|
package/lib/div/columns.js
CHANGED
|
@@ -8,162 +8,25 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
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 _construct(Parent, args, Class) {
|
|
29
|
-
if (_is_native_reflect_construct()) {
|
|
30
|
-
_construct = Reflect.construct;
|
|
31
|
-
} else {
|
|
32
|
-
_construct = function construct(Parent, args, Class) {
|
|
33
|
-
var a = [
|
|
34
|
-
null
|
|
35
|
-
];
|
|
36
|
-
a.push.apply(a, args);
|
|
37
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
38
|
-
var instance = new Constructor();
|
|
39
|
-
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
40
|
-
return instance;
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
return _construct.apply(null, arguments);
|
|
44
|
-
}
|
|
45
|
-
function _define_property(obj, key, value) {
|
|
46
|
-
if (key in obj) {
|
|
47
|
-
Object.defineProperty(obj, key, {
|
|
48
|
-
value: value,
|
|
49
|
-
enumerable: true,
|
|
50
|
-
configurable: true,
|
|
51
|
-
writable: true
|
|
52
|
-
});
|
|
53
|
-
} else {
|
|
54
|
-
obj[key] = value;
|
|
55
|
-
}
|
|
56
|
-
return obj;
|
|
57
|
-
}
|
|
58
|
-
function _get_prototype_of(o) {
|
|
59
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
60
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
61
|
-
};
|
|
62
|
-
return _get_prototype_of(o);
|
|
63
|
-
}
|
|
64
|
-
function _inherits(subClass, superClass) {
|
|
65
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
66
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
67
|
-
}
|
|
68
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
69
|
-
constructor: {
|
|
70
|
-
value: subClass,
|
|
71
|
-
writable: true,
|
|
72
|
-
configurable: true
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
76
|
-
}
|
|
11
|
+
const _easywithstyle = /*#__PURE__*/ _interop_require_default(require("easy-with-style"));
|
|
12
|
+
const _easy = require("easy");
|
|
77
13
|
function _interop_require_default(obj) {
|
|
78
14
|
return obj && obj.__esModule ? obj : {
|
|
79
15
|
default: obj
|
|
80
16
|
};
|
|
81
17
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
87
|
-
return call;
|
|
88
|
-
}
|
|
89
|
-
return _assert_this_initialized(self);
|
|
90
|
-
}
|
|
91
|
-
function _set_prototype_of(o, p) {
|
|
92
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
93
|
-
o.__proto__ = p;
|
|
94
|
-
return o;
|
|
95
|
-
};
|
|
96
|
-
return _set_prototype_of(o, p);
|
|
97
|
-
}
|
|
98
|
-
function _tagged_template_literal(strings, raw) {
|
|
99
|
-
if (!raw) {
|
|
100
|
-
raw = strings.slice(0);
|
|
101
|
-
}
|
|
102
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
103
|
-
raw: {
|
|
104
|
-
value: Object.freeze(raw)
|
|
105
|
-
}
|
|
106
|
-
}));
|
|
107
|
-
}
|
|
108
|
-
function _type_of(obj) {
|
|
109
|
-
"@swc/helpers - typeof";
|
|
110
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
111
|
-
}
|
|
112
|
-
function _wrap_native_super(Class) {
|
|
113
|
-
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
114
|
-
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
115
|
-
if (Class === null || !_is_native_function(Class)) return Class;
|
|
116
|
-
if (typeof Class !== "function") {
|
|
117
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
118
|
-
}
|
|
119
|
-
if (typeof _cache !== "undefined") {
|
|
120
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
|
121
|
-
_cache.set(Class, Wrapper);
|
|
122
|
-
}
|
|
123
|
-
function Wrapper() {
|
|
124
|
-
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
125
|
-
}
|
|
126
|
-
Wrapper.prototype = Object.create(Class.prototype, {
|
|
127
|
-
constructor: {
|
|
128
|
-
value: Wrapper,
|
|
129
|
-
enumerable: false,
|
|
130
|
-
writable: true,
|
|
131
|
-
configurable: true
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
return _set_prototype_of(Wrapper, Class);
|
|
135
|
-
};
|
|
136
|
-
return _wrap_native_super(Class);
|
|
137
|
-
}
|
|
138
|
-
function _is_native_reflect_construct() {
|
|
139
|
-
try {
|
|
140
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
141
|
-
} catch (_) {}
|
|
142
|
-
return (_is_native_reflect_construct = function() {
|
|
143
|
-
return !!result;
|
|
144
|
-
})();
|
|
145
|
-
}
|
|
146
|
-
function _templateObject() {
|
|
147
|
-
var data = _tagged_template_literal([
|
|
148
|
-
"\n\n display: flex;\n flex-grow: 1;\n flex-direction: row;\n\n"
|
|
149
|
-
]);
|
|
150
|
-
_templateObject = function _templateObject() {
|
|
151
|
-
return data;
|
|
18
|
+
class ColumnsDiv extends _easy.Element {
|
|
19
|
+
static tagName = "div";
|
|
20
|
+
static defaultProperties = {
|
|
21
|
+
className: "columns"
|
|
152
22
|
};
|
|
153
|
-
return data;
|
|
154
23
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}(_wrap_native_super(_easy.Element));
|
|
163
|
-
_define_property(ColumnsDiv, "tagName", "div");
|
|
164
|
-
_define_property(ColumnsDiv, "defaultProperties", {
|
|
165
|
-
className: "columns"
|
|
166
|
-
});
|
|
167
|
-
var _default = (0, _easywithstyle.default)(ColumnsDiv)(_templateObject());
|
|
24
|
+
const _default = (0, _easywithstyle.default)(ColumnsDiv)`
|
|
25
|
+
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-grow: 1;
|
|
28
|
+
flex-direction: row;
|
|
29
|
+
|
|
30
|
+
`;
|
|
168
31
|
|
|
169
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaXYvY29sdW1ucy5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IHdpdGhTdHlsZSBmcm9tIFwiZWFzeS13aXRoLXN0eWxlXCI7ICAvLy9cblxuaW1wb3J0IHsgRWxlbWVudCB9IGZyb20gXCJlYXN5XCI7XG5cbmNsYXNzIENvbHVtbnNEaXYgZXh0ZW5kcyBFbGVtZW50IHtcbiAgc3RhdGljIHRhZ05hbWUgPSBcImRpdlwiO1xuXG4gIHN0YXRpYyBkZWZhdWx0UHJvcGVydGllcyA9IHtcbiAgICBjbGFzc05hbWU6IFwiY29sdW1uc1wiXG4gIH07XG59XG5cbmV4cG9ydCBkZWZhdWx0IHdpdGhTdHlsZShDb2x1bW5zRGl2KWBcblxuICBkaXNwbGF5OiBmbGV4O1xuICBmbGV4LWdyb3c6IDE7XG4gIGZsZXgtZGlyZWN0aW9uOiByb3c7XG5cbmA7XG4iXSwibmFtZXMiOlsiQ29sdW1uc0RpdiIsIkVsZW1lbnQiLCJ0YWdOYW1lIiwiZGVmYXVsdFByb3BlcnRpZXMiLCJjbGFzc05hbWUiLCJ3aXRoU3R5bGUiXSwibWFwcGluZ3MiOiJBQUFBOzs7OytCQWNBOzs7ZUFBQTs7O3NFQVpzQjtzQkFFRTs7Ozs7O0FBRXhCLE1BQU1BLG1CQUFtQkMsYUFBTztJQUM5QixPQUFPQyxVQUFVLE1BQU07SUFFdkIsT0FBT0Msb0JBQW9CO1FBQ3pCQyxXQUFXO0lBQ2IsRUFBRTtBQUNKO01BRUEsV0FBZUMsSUFBQUEsc0JBQVMsRUFBQ0wsV0FBVyxDQUFDOzs7Ozs7QUFNckMsQ0FBQyJ9
|
package/lib/div/row.js
CHANGED
|
@@ -8,162 +8,24 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
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 _construct(Parent, args, Class) {
|
|
29
|
-
if (_is_native_reflect_construct()) {
|
|
30
|
-
_construct = Reflect.construct;
|
|
31
|
-
} else {
|
|
32
|
-
_construct = function construct(Parent, args, Class) {
|
|
33
|
-
var a = [
|
|
34
|
-
null
|
|
35
|
-
];
|
|
36
|
-
a.push.apply(a, args);
|
|
37
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
38
|
-
var instance = new Constructor();
|
|
39
|
-
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
40
|
-
return instance;
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
return _construct.apply(null, arguments);
|
|
44
|
-
}
|
|
45
|
-
function _define_property(obj, key, value) {
|
|
46
|
-
if (key in obj) {
|
|
47
|
-
Object.defineProperty(obj, key, {
|
|
48
|
-
value: value,
|
|
49
|
-
enumerable: true,
|
|
50
|
-
configurable: true,
|
|
51
|
-
writable: true
|
|
52
|
-
});
|
|
53
|
-
} else {
|
|
54
|
-
obj[key] = value;
|
|
55
|
-
}
|
|
56
|
-
return obj;
|
|
57
|
-
}
|
|
58
|
-
function _get_prototype_of(o) {
|
|
59
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
60
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
61
|
-
};
|
|
62
|
-
return _get_prototype_of(o);
|
|
63
|
-
}
|
|
64
|
-
function _inherits(subClass, superClass) {
|
|
65
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
66
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
67
|
-
}
|
|
68
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
69
|
-
constructor: {
|
|
70
|
-
value: subClass,
|
|
71
|
-
writable: true,
|
|
72
|
-
configurable: true
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
76
|
-
}
|
|
11
|
+
const _easywithstyle = /*#__PURE__*/ _interop_require_default(require("easy-with-style"));
|
|
12
|
+
const _easy = require("easy");
|
|
77
13
|
function _interop_require_default(obj) {
|
|
78
14
|
return obj && obj.__esModule ? obj : {
|
|
79
15
|
default: obj
|
|
80
16
|
};
|
|
81
17
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
87
|
-
return call;
|
|
88
|
-
}
|
|
89
|
-
return _assert_this_initialized(self);
|
|
90
|
-
}
|
|
91
|
-
function _set_prototype_of(o, p) {
|
|
92
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
93
|
-
o.__proto__ = p;
|
|
94
|
-
return o;
|
|
95
|
-
};
|
|
96
|
-
return _set_prototype_of(o, p);
|
|
97
|
-
}
|
|
98
|
-
function _tagged_template_literal(strings, raw) {
|
|
99
|
-
if (!raw) {
|
|
100
|
-
raw = strings.slice(0);
|
|
101
|
-
}
|
|
102
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
103
|
-
raw: {
|
|
104
|
-
value: Object.freeze(raw)
|
|
105
|
-
}
|
|
106
|
-
}));
|
|
107
|
-
}
|
|
108
|
-
function _type_of(obj) {
|
|
109
|
-
"@swc/helpers - typeof";
|
|
110
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
111
|
-
}
|
|
112
|
-
function _wrap_native_super(Class) {
|
|
113
|
-
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
114
|
-
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
115
|
-
if (Class === null || !_is_native_function(Class)) return Class;
|
|
116
|
-
if (typeof Class !== "function") {
|
|
117
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
118
|
-
}
|
|
119
|
-
if (typeof _cache !== "undefined") {
|
|
120
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
|
121
|
-
_cache.set(Class, Wrapper);
|
|
122
|
-
}
|
|
123
|
-
function Wrapper() {
|
|
124
|
-
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
125
|
-
}
|
|
126
|
-
Wrapper.prototype = Object.create(Class.prototype, {
|
|
127
|
-
constructor: {
|
|
128
|
-
value: Wrapper,
|
|
129
|
-
enumerable: false,
|
|
130
|
-
writable: true,
|
|
131
|
-
configurable: true
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
return _set_prototype_of(Wrapper, Class);
|
|
135
|
-
};
|
|
136
|
-
return _wrap_native_super(Class);
|
|
137
|
-
}
|
|
138
|
-
function _is_native_reflect_construct() {
|
|
139
|
-
try {
|
|
140
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
141
|
-
} catch (_) {}
|
|
142
|
-
return (_is_native_reflect_construct = function() {
|
|
143
|
-
return !!result;
|
|
144
|
-
})();
|
|
145
|
-
}
|
|
146
|
-
function _templateObject() {
|
|
147
|
-
var data = _tagged_template_literal([
|
|
148
|
-
"\n\n display: flex;\n flex-grow: 1;\n\n"
|
|
149
|
-
]);
|
|
150
|
-
_templateObject = function _templateObject() {
|
|
151
|
-
return data;
|
|
18
|
+
class RowDiv extends _easy.Element {
|
|
19
|
+
static tagName = "div";
|
|
20
|
+
static defaultProperties = {
|
|
21
|
+
className: "row"
|
|
152
22
|
};
|
|
153
|
-
return data;
|
|
154
23
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
return RowDiv;
|
|
162
|
-
}(_wrap_native_super(_easy.Element));
|
|
163
|
-
_define_property(RowDiv, "tagName", "div");
|
|
164
|
-
_define_property(RowDiv, "defaultProperties", {
|
|
165
|
-
className: "row"
|
|
166
|
-
});
|
|
167
|
-
var _default = (0, _easywithstyle.default)(RowDiv)(_templateObject());
|
|
24
|
+
const _default = (0, _easywithstyle.default)(RowDiv)`
|
|
25
|
+
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-grow: 1;
|
|
28
|
+
|
|
29
|
+
`;
|
|
168
30
|
|
|
169
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaXYvcm93LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgd2l0aFN0eWxlIGZyb20gXCJlYXN5LXdpdGgtc3R5bGVcIjsgIC8vL1xuXG5pbXBvcnQgeyBFbGVtZW50IH0gZnJvbSBcImVhc3lcIjtcblxuY2xhc3MgUm93RGl2IGV4dGVuZHMgRWxlbWVudCB7XG4gIHN0YXRpYyB0YWdOYW1lID0gXCJkaXZcIjtcblxuICBzdGF0aWMgZGVmYXVsdFByb3BlcnRpZXMgPSB7XG4gICAgY2xhc3NOYW1lOiBcInJvd1wiXG4gIH07XG59XG5cbmV4cG9ydCBkZWZhdWx0IHdpdGhTdHlsZShSb3dEaXYpYFxuXG4gIGRpc3BsYXk6IGZsZXg7XG4gIGZsZXgtZ3JvdzogMTtcblxuYDtcbiJdLCJuYW1lcyI6WyJSb3dEaXYiLCJFbGVtZW50IiwidGFnTmFtZSIsImRlZmF1bHRQcm9wZXJ0aWVzIiwiY2xhc3NOYW1lIiwid2l0aFN0eWxlIl0sIm1hcHBpbmdzIjoiQUFBQTs7OzsrQkFjQTs7O2VBQUE7OztzRUFac0I7c0JBRUU7Ozs7OztBQUV4QixNQUFNQSxlQUFlQyxhQUFPO0lBQzFCLE9BQU9DLFVBQVUsTUFBTTtJQUV2QixPQUFPQyxvQkFBb0I7UUFDekJDLFdBQVc7SUFDYixFQUFFO0FBQ0o7TUFFQSxXQUFlQyxJQUFBQSxzQkFBUyxFQUFDTCxPQUFPLENBQUM7Ozs7O0FBS2pDLENBQUMifQ==
|