easy-layout 5.1.32 → 6.0.3
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 +231 -257
- package/lib/div/splitter/horizontal.js +14 -14
- package/lib/div/splitter/vertical.js +14 -14
- package/lib/div/splitter.js +13 -18
- package/lib/example/div/column/middle.js +135 -0
- package/lib/example/div/sizeable/bottom.js +2 -2
- package/lib/example/section/text.js +44 -0
- package/lib/example/view.js +4 -2
- package/lib/index.js +1 -5
- package/package.json +1 -1
- package/src/div/splitter/horizontal.js +16 -16
- package/src/div/splitter/vertical.js +16 -16
- package/src/div/splitter.js +13 -20
- package/src/example/div/column/middle.js +17 -0
- package/src/example/div/sizeable/bottom.js +0 -1
- package/src/example/section/text.js +38 -0
- package/src/example/view.js +5 -1
- package/src/index.js +0 -1
- package/lib/section/sizeable.js +0 -193
- package/src/section/sizeable.js +0 -19
|
@@ -15,11 +15,11 @@ class HorizontalSplitter extends Splitter {
|
|
|
15
15
|
const disabled = this.isDisabled();
|
|
16
16
|
|
|
17
17
|
if (!disabled) {
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
const sizeableDiv = this.getSizeableDiv(),
|
|
19
|
+
sizeableDivHeight = sizeableDiv.getHeight(),
|
|
20
|
+
previousSizeableDivHeight = sizeableDivHeight; ///
|
|
21
21
|
|
|
22
|
-
this.
|
|
22
|
+
this.setPreviousSizeableDivHeight(previousSizeableDivHeight);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
this.setCursor();
|
|
@@ -30,12 +30,12 @@ class HorizontalSplitter extends Splitter {
|
|
|
30
30
|
|
|
31
31
|
if (!disabled) {
|
|
32
32
|
const direction = this.getDirection(),
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
height =
|
|
33
|
+
sizeableDiv = this.getSizeableDiv(),
|
|
34
|
+
previousSizeableDivHeight = this.getPreviousSizeableDivHeight(),
|
|
35
|
+
sizeableDivHeight = previousSizeableDivHeight - direction * relativeMouseTop,
|
|
36
|
+
height = sizeableDivHeight; ///
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
sizeableDiv.setHeight(height);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -47,24 +47,24 @@ class HorizontalSplitter extends Splitter {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
getPreviousSizeableDivHeight() {
|
|
51
51
|
const state = this.getState(),
|
|
52
|
-
{
|
|
52
|
+
{ previousSizeableDivHeight } = state;
|
|
53
53
|
|
|
54
|
-
return
|
|
54
|
+
return previousSizeableDivHeight;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
setPreviousSizeableDivHeight(previousSizeableDivHeight) {
|
|
58
58
|
this.updateState({
|
|
59
|
-
|
|
59
|
+
previousSizeableDivHeight
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
setInitialState() {
|
|
64
|
-
const
|
|
64
|
+
const previousSizeableDivHeight = null;
|
|
65
65
|
|
|
66
66
|
this.setState({
|
|
67
|
-
|
|
67
|
+
previousSizeableDivHeight
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -15,11 +15,11 @@ class VerticalSplitter extends Splitter {
|
|
|
15
15
|
const disabled = this.isDisabled();
|
|
16
16
|
|
|
17
17
|
if (!disabled) {
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
const sizeableDiv = this.getSizeableDiv(),
|
|
19
|
+
sizeableDivWidth = sizeableDiv.getWidth(),
|
|
20
|
+
previousSizeableDivWidth = sizeableDivWidth; ///
|
|
21
21
|
|
|
22
|
-
this.
|
|
22
|
+
this.setPreviousSizeableDivWidth(previousSizeableDivWidth);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
this.setCursor();
|
|
@@ -30,12 +30,12 @@ class VerticalSplitter extends Splitter {
|
|
|
30
30
|
|
|
31
31
|
if (!disabled) {
|
|
32
32
|
const direction = this.getDirection(),
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
width =
|
|
33
|
+
sizeableDiv = this.getSizeableDiv(),
|
|
34
|
+
previousSizeableDivWidth = this.getPreviousSizeableDivWidth(),
|
|
35
|
+
sizeableDivWidth = previousSizeableDivWidth - direction * relativeMouseLeft,
|
|
36
|
+
width = sizeableDivWidth; ///
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
sizeableDiv.setWidth(width);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -47,24 +47,24 @@ class VerticalSplitter extends Splitter {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
getPreviousSizeableDivWidth() {
|
|
51
51
|
const state = this.getState(),
|
|
52
|
-
{
|
|
52
|
+
{ previousSizeableDivWidth } = state;
|
|
53
53
|
|
|
54
|
-
return
|
|
54
|
+
return previousSizeableDivWidth;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
setPreviousSizeableDivWidth(previousSizeableDivWidth) {
|
|
58
58
|
this.updateState({
|
|
59
|
-
|
|
59
|
+
previousSizeableDivWidth
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
setInitialState() {
|
|
64
|
-
const
|
|
64
|
+
const previousSizeableDivWidth = null;
|
|
65
65
|
|
|
66
66
|
this.setState({
|
|
67
|
-
|
|
67
|
+
previousSizeableDivWidth
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
|
package/src/div/splitter.js
CHANGED
|
@@ -6,7 +6,6 @@ import { Element } from "easy";
|
|
|
6
6
|
import { dragMixins } from "easy-drag-and-drop";
|
|
7
7
|
|
|
8
8
|
import SizeableDiv from "../div/sizeable";
|
|
9
|
-
import SizeableSection from "../section/sizeable";
|
|
10
9
|
|
|
11
10
|
import { resetCursor } from "../cursor";
|
|
12
11
|
|
|
@@ -21,23 +20,23 @@ class SplitterDiv extends Element {
|
|
|
21
20
|
resetCursor();
|
|
22
21
|
}
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
let
|
|
23
|
+
getSizeableDiv() {
|
|
24
|
+
let sizeableDiv;
|
|
26
25
|
|
|
27
26
|
const nextSiblingElement = this.getNextSiblingElement(),
|
|
28
27
|
previousSiblingElement = this.getPreviousSiblingElement(),
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
nextSiblingElementSizeableDiv = (nextSiblingElement instanceof SizeableDiv),
|
|
29
|
+
previousSiblingElementSizeableDiv = (previousSiblingElement instanceof SizeableDiv);
|
|
31
30
|
|
|
32
|
-
if (
|
|
33
|
-
|
|
31
|
+
if (nextSiblingElementSizeableDiv) {
|
|
32
|
+
sizeableDiv = nextSiblingElement; ///
|
|
34
33
|
}
|
|
35
34
|
|
|
36
|
-
if (
|
|
37
|
-
|
|
35
|
+
if (previousSiblingElementSizeableDiv) {
|
|
36
|
+
sizeableDiv = previousSiblingElement; ///
|
|
38
37
|
}
|
|
39
38
|
|
|
40
|
-
return
|
|
39
|
+
return sizeableDiv;
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
getDirection() {
|
|
@@ -45,14 +44,14 @@ class SplitterDiv extends Element {
|
|
|
45
44
|
|
|
46
45
|
const nextSiblingElement = this.getNextSiblingElement(),
|
|
47
46
|
previousSiblingElement = this.getPreviousSiblingElement(),
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
nextSiblingElementSizeableDiv = (nextSiblingElement instanceof SizeableDiv),
|
|
48
|
+
previousSiblingElementSizeableDiv = (previousSiblingElement instanceof SizeableDiv);
|
|
50
49
|
|
|
51
|
-
if (
|
|
50
|
+
if (nextSiblingElementSizeableDiv) {
|
|
52
51
|
direction = +1;
|
|
53
52
|
}
|
|
54
53
|
|
|
55
|
-
if (
|
|
54
|
+
if (previousSiblingElementSizeableDiv) {
|
|
56
55
|
direction = -1;
|
|
57
56
|
}
|
|
58
57
|
|
|
@@ -132,9 +131,3 @@ export default withStyle(SplitterDiv)`
|
|
|
132
131
|
flex-shrink: 0;
|
|
133
132
|
|
|
134
133
|
`;
|
|
135
|
-
|
|
136
|
-
function isElementSizeableElement(element) {
|
|
137
|
-
const elementSizeableElement = (element instanceof SizeableDiv) || (element instanceof SizeableSection);
|
|
138
|
-
|
|
139
|
-
return elementSizeableElement;
|
|
140
|
-
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import withStyle from "easy-with-style"; ///
|
|
4
|
+
|
|
5
|
+
import { ColumnDiv } from "../../../index"; ///
|
|
6
|
+
|
|
7
|
+
class MiddleColumnDiv extends ColumnDiv {
|
|
8
|
+
static defaultProperties = {
|
|
9
|
+
className: "middle"
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default withStyle(MiddleColumnDiv)`
|
|
14
|
+
|
|
15
|
+
position: relative;
|
|
16
|
+
|
|
17
|
+
`;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import withStyle from "easy-with-style"; ///
|
|
4
|
+
|
|
5
|
+
const TextSection = (properties) => {
|
|
6
|
+
const { className } = properties;
|
|
7
|
+
|
|
8
|
+
return (
|
|
9
|
+
|
|
10
|
+
<section className={`${className} text`}>
|
|
11
|
+
<p>
|
|
12
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam fermentum mauris vitae sem ultrices commodo. Pellentesque dui justo, fermentum quis vestibulum id, molestie vel leo. Maecenas vel consequat sem. Sed a maximus enim. Aenean quis mi sit amet quam sodales consequat. Aliquam justo arcu, lacinia et ultrices sit amet, rutrum id nisi. Suspendisse nec consectetur ante, sed hendrerit augue. Morbi viverra metus id turpis porttitor pellentesque. Donec pretium ex eget urna molestie, eget semper lacus dignissim. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nullam pharetra nunc ac mauris tristique sagittis.
|
|
13
|
+
</p>
|
|
14
|
+
<p>
|
|
15
|
+
Curabitur blandit interdum dolor sed ultrices. Nunc pellentesque aliquet maximus. Suspendisse pellentesque dapibus accumsan. Sed at ipsum eget dolor consectetur vehicula. Quisque ornare eros id tincidunt interdum. Sed pulvinar, turpis sodales volutpat gravida, purus magna hendrerit purus, nec maximus arcu dui ac nisl. Quisque ac pellentesque risus.
|
|
16
|
+
</p>
|
|
17
|
+
<p>
|
|
18
|
+
Nulla ut justo ut nunc eleifend ultricies volutpat vel ex. Fusce quis velit lacus. Proin sagittis semper erat. Duis ut magna eget justo vulputate facilisis. Phasellus ultrices eleifend justo, ut faucibus lectus rutrum id. In pretium porta faucibus. Praesent vehicula ornare justo, sed mattis risus cursus at.
|
|
19
|
+
</p>
|
|
20
|
+
<p>
|
|
21
|
+
Fusce at bibendum nunc, eleifend consectetur sem. Fusce at elit augue. Sed lectus odio, pulvinar sed pharetra et, pharetra sed dolor. Morbi sodales sem odio, a venenatis odio commodo aliquam. Cras id volutpat metus, a maximus orci. Nullam ac rhoncus lorem. Nam scelerisque risus et elit egestas elementum. Fusce nec arcu at enim porttitor aliquam vel vitae est. Maecenas gravida, quam iaculis pellentesque vehicula, risus diam interdum nunc, vitae lobortis elit ante vitae turpis. Nam viverra, felis et faucibus luctus, ex sapien egestas lectus, vestibulum pulvinar turpis risus et nisi. Sed vitae suscipit libero, eu ultricies metus. Proin nibh arcu, blandit in sem vel, scelerisque vulputate arcu. Duis ultrices orci felis, maximus vulputate neque rutrum sit amet.
|
|
22
|
+
</p>
|
|
23
|
+
<p>
|
|
24
|
+
Ut lectus lacus, tempor ut pharetra eget, tempus eget dui. Nunc purus nisl, malesuada vel malesuada a, faucibus in dolor. Integer dictum lobortis est sed maximus. Aliquam ut lorem elementum velit consectetur commodo. Cras et est quis augue pellentesque iaculis. In tincidunt, arcu lobortis hendrerit ultricies, turpis orci vestibulum lacus, id dapibus sapien nibh vel urna. Nam blandit tellus id massa semper pharetra.
|
|
25
|
+
</p>
|
|
26
|
+
</section>
|
|
27
|
+
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default withStyle(TextSection)`
|
|
32
|
+
|
|
33
|
+
width: 100%;
|
|
34
|
+
height: 100%;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
position: absolute;
|
|
37
|
+
|
|
38
|
+
`;
|
package/src/example/view.js
CHANGED
|
@@ -5,8 +5,10 @@ import withStyle from "easy-with-style"; ///
|
|
|
5
5
|
import { RowDiv, RowsDiv, ColumnDiv, ColumnsDiv } from "../index"; ///
|
|
6
6
|
|
|
7
7
|
import BlueRowDiv from "./div/row/blue";
|
|
8
|
+
import TextSection from "./section/text";
|
|
8
9
|
import YellowRowDiv from "./div/row/yellow";
|
|
9
10
|
import BottomLeftDiv from "./div/bottomLeft";
|
|
11
|
+
import MiddleColumnDiv from "./div/column/middle";
|
|
10
12
|
import LeftSizeableDiv from "./div/sizeable/left";
|
|
11
13
|
import RightSizeableDiv from "./div/sizeable/right";
|
|
12
14
|
import PseudoSplitterDiv from "./div/splitter/pseudo";
|
|
@@ -46,7 +48,9 @@ const View = (properties) => {
|
|
|
46
48
|
<RowsDiv>
|
|
47
49
|
<RowDiv>
|
|
48
50
|
<ColumnsDiv>
|
|
49
|
-
<
|
|
51
|
+
<MiddleColumnDiv>
|
|
52
|
+
<TextSection/>
|
|
53
|
+
</MiddleColumnDiv>
|
|
50
54
|
<RightVerticalSplitterDiv/>
|
|
51
55
|
<RightSizeableDiv>
|
|
52
56
|
<RowsDiv>
|
package/src/index.js
CHANGED
|
@@ -8,6 +8,5 @@ export { default as ColumnDiv } from "./div/column";
|
|
|
8
8
|
export { default as ColumnsDiv } from "./div/columns";
|
|
9
9
|
export { default as SplitterDiv } from "./div/splitter";
|
|
10
10
|
export { default as SizeableDiv } from "./div/sizeable";
|
|
11
|
-
export { default as SizeableSection } from "./section/sizeable";
|
|
12
11
|
export { default as VerticalSplitterDiv } from "./div/splitter/vertical";
|
|
13
12
|
export { default as HorizontalSplitterDiv } from "./div/splitter/horizontal";
|
package/lib/section/sizeable.js
DELETED
|
@@ -1,193 +0,0 @@
|
|
|
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__*/ _interopRequireDefault(require("easy-with-style"));
|
|
12
|
-
var _easy = require("easy");
|
|
13
|
-
function _assertThisInitialized(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 _classCallCheck(instance, Constructor) {
|
|
20
|
-
if (!(instance instanceof Constructor)) {
|
|
21
|
-
throw new TypeError("Cannot call a class as a function");
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function isNativeReflectConstruct() {
|
|
25
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
26
|
-
if (Reflect.construct.sham) return false;
|
|
27
|
-
if (typeof Proxy === "function") return true;
|
|
28
|
-
try {
|
|
29
|
-
Date.prototype.toString.call(Reflect.construct(Date, [], function() {}));
|
|
30
|
-
return true;
|
|
31
|
-
} catch (e) {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
function _construct(Parent, args, Class) {
|
|
36
|
-
if (isNativeReflectConstruct()) {
|
|
37
|
-
_construct = Reflect.construct;
|
|
38
|
-
} else {
|
|
39
|
-
_construct = function _construct(Parent, args, Class) {
|
|
40
|
-
var a = [
|
|
41
|
-
null
|
|
42
|
-
];
|
|
43
|
-
a.push.apply(a, args);
|
|
44
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
45
|
-
var instance = new Constructor();
|
|
46
|
-
if (Class) _setPrototypeOf(instance, Class.prototype);
|
|
47
|
-
return instance;
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
return _construct.apply(null, arguments);
|
|
51
|
-
}
|
|
52
|
-
function _defineProperty(obj, key, value) {
|
|
53
|
-
if (key in obj) {
|
|
54
|
-
Object.defineProperty(obj, key, {
|
|
55
|
-
value: value,
|
|
56
|
-
enumerable: true,
|
|
57
|
-
configurable: true,
|
|
58
|
-
writable: true
|
|
59
|
-
});
|
|
60
|
-
} else {
|
|
61
|
-
obj[key] = value;
|
|
62
|
-
}
|
|
63
|
-
return obj;
|
|
64
|
-
}
|
|
65
|
-
function _getPrototypeOf(o) {
|
|
66
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
67
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
68
|
-
};
|
|
69
|
-
return _getPrototypeOf(o);
|
|
70
|
-
}
|
|
71
|
-
function _inherits(subClass, superClass) {
|
|
72
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
73
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
74
|
-
}
|
|
75
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
76
|
-
constructor: {
|
|
77
|
-
value: subClass,
|
|
78
|
-
writable: true,
|
|
79
|
-
configurable: true
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
83
|
-
}
|
|
84
|
-
function _interopRequireDefault(obj) {
|
|
85
|
-
return obj && obj.__esModule ? obj : {
|
|
86
|
-
default: obj
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
function _isNativeFunction(fn) {
|
|
90
|
-
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
91
|
-
}
|
|
92
|
-
function _possibleConstructorReturn(self, call) {
|
|
93
|
-
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
94
|
-
return call;
|
|
95
|
-
}
|
|
96
|
-
return _assertThisInitialized(self);
|
|
97
|
-
}
|
|
98
|
-
function _setPrototypeOf(o, p) {
|
|
99
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
100
|
-
o.__proto__ = p;
|
|
101
|
-
return o;
|
|
102
|
-
};
|
|
103
|
-
return _setPrototypeOf(o, p);
|
|
104
|
-
}
|
|
105
|
-
function _taggedTemplateLiteral(strings, raw) {
|
|
106
|
-
if (!raw) {
|
|
107
|
-
raw = strings.slice(0);
|
|
108
|
-
}
|
|
109
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
110
|
-
raw: {
|
|
111
|
-
value: Object.freeze(raw)
|
|
112
|
-
}
|
|
113
|
-
}));
|
|
114
|
-
}
|
|
115
|
-
var _typeof = function(obj) {
|
|
116
|
-
"@swc/helpers - typeof";
|
|
117
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
118
|
-
};
|
|
119
|
-
function _wrapNativeSuper(Class) {
|
|
120
|
-
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
121
|
-
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
122
|
-
if (Class === null || !_isNativeFunction(Class)) return Class;
|
|
123
|
-
if (typeof Class !== "function") {
|
|
124
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
125
|
-
}
|
|
126
|
-
if (typeof _cache !== "undefined") {
|
|
127
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
|
128
|
-
_cache.set(Class, Wrapper);
|
|
129
|
-
}
|
|
130
|
-
function Wrapper() {
|
|
131
|
-
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
|
132
|
-
}
|
|
133
|
-
Wrapper.prototype = Object.create(Class.prototype, {
|
|
134
|
-
constructor: {
|
|
135
|
-
value: Wrapper,
|
|
136
|
-
enumerable: false,
|
|
137
|
-
writable: true,
|
|
138
|
-
configurable: true
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
return _setPrototypeOf(Wrapper, Class);
|
|
142
|
-
};
|
|
143
|
-
return _wrapNativeSuper(Class);
|
|
144
|
-
}
|
|
145
|
-
function _isNativeReflectConstruct() {
|
|
146
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
147
|
-
if (Reflect.construct.sham) return false;
|
|
148
|
-
if (typeof Proxy === "function") return true;
|
|
149
|
-
try {
|
|
150
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
151
|
-
return true;
|
|
152
|
-
} catch (e) {
|
|
153
|
-
return false;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
function _createSuper(Derived) {
|
|
157
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
158
|
-
return function _createSuperInternal() {
|
|
159
|
-
var Super = _getPrototypeOf(Derived), result;
|
|
160
|
-
if (hasNativeReflectConstruct) {
|
|
161
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
162
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
163
|
-
} else {
|
|
164
|
-
result = Super.apply(this, arguments);
|
|
165
|
-
}
|
|
166
|
-
return _possibleConstructorReturn(this, result);
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
function _templateObject() {
|
|
170
|
-
var data = _taggedTemplateLiteral([
|
|
171
|
-
"\n\n display: flex;\n \n"
|
|
172
|
-
]);
|
|
173
|
-
_templateObject = function _templateObject() {
|
|
174
|
-
return data;
|
|
175
|
-
};
|
|
176
|
-
return data;
|
|
177
|
-
}
|
|
178
|
-
var SizeableSection = /*#__PURE__*/ function(Element) {
|
|
179
|
-
_inherits(SizeableSection, Element);
|
|
180
|
-
var _super = _createSuper(SizeableSection);
|
|
181
|
-
function SizeableSection() {
|
|
182
|
-
_classCallCheck(this, SizeableSection);
|
|
183
|
-
return _super.apply(this, arguments);
|
|
184
|
-
}
|
|
185
|
-
return SizeableSection;
|
|
186
|
-
}(_wrapNativeSuper(_easy.Element));
|
|
187
|
-
_defineProperty(SizeableSection, "tagName", "section");
|
|
188
|
-
_defineProperty(SizeableSection, "defaultProperties", {
|
|
189
|
-
className: "sizeable"
|
|
190
|
-
});
|
|
191
|
-
var _default = (0, _easyWithStyle.default)(SizeableSection)(_templateObject());
|
|
192
|
-
|
|
193
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zZWN0aW9uL3NpemVhYmxlLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgd2l0aFN0eWxlIGZyb20gXCJlYXN5LXdpdGgtc3R5bGVcIjsgIC8vL1xuXG5pbXBvcnQgeyBFbGVtZW50IH0gZnJvbSBcImVhc3lcIjtcblxuY2xhc3MgU2l6ZWFibGVTZWN0aW9uIGV4dGVuZHMgRWxlbWVudCB7XG4gIHN0YXRpYyB0YWdOYW1lID0gXCJzZWN0aW9uXCI7XG5cbiAgc3RhdGljIGRlZmF1bHRQcm9wZXJ0aWVzID0ge1xuICAgIGNsYXNzTmFtZTogXCJzaXplYWJsZVwiXG4gIH07XG59XG5cbmV4cG9ydCBkZWZhdWx0IHdpdGhTdHlsZShTaXplYWJsZVNlY3Rpb24pYFxuXG4gIGRpc3BsYXk6IGZsZXg7XG4gIFxuYDtcbiJdLCJuYW1lcyI6WyJTaXplYWJsZVNlY3Rpb24iLCJFbGVtZW50IiwidGFnTmFtZSIsImRlZmF1bHRQcm9wZXJ0aWVzIiwiY2xhc3NOYW1lIiwid2l0aFN0eWxlIl0sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLENBQUM7Ozs7K0JBY2IsU0FJRTs7O2VBSkYsUUFJRTs7O2tFQWhCb0IsaUJBQWlCO29CQUVmLE1BQU07Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFFOUIsSUFBQSxBQUFNQSxlQUFlLGlCQVFsQixBQVJIO2NBQU1BLGVBQWU7OEJBQWZBLGVBQWU7YUFBZkEsZUFBZTs4QkFBZkEsZUFBZTs7O1dBQWZBLGVBQWU7Q0FNcEIsa0JBTjZCQyxLQUFPLFFBQUEsRUFNcEM7QUFMQyxnQkFESUQsZUFBZSxFQUNaRSxTQUFPLEVBQUcsU0FBUyxDQUFDO0FBRTNCLGdCQUhJRixlQUFlLEVBR1pHLG1CQUFpQixFQUFHO0lBQ3pCQyxTQUFTLEVBQUUsVUFBVTtDQUN0QixDQUFDO0lBR0osUUFJRSxHQUphQyxJQUFBQSxjQUFTLFFBQUEsRUFBQ0wsZUFBZSxDQUFDIn0=
|
package/src/section/sizeable.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import withStyle from "easy-with-style"; ///
|
|
4
|
-
|
|
5
|
-
import { Element } from "easy";
|
|
6
|
-
|
|
7
|
-
class SizeableSection extends Element {
|
|
8
|
-
static tagName = "section";
|
|
9
|
-
|
|
10
|
-
static defaultProperties = {
|
|
11
|
-
className: "sizeable"
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export default withStyle(SizeableSection)`
|
|
16
|
-
|
|
17
|
-
display: flex;
|
|
18
|
-
|
|
19
|
-
`;
|