easy-layout 5.1.33 → 6.0.1
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 +39 -255
- 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/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/index.js +0 -1
- package/lib/section/sizeable.js +0 -193
- package/src/section/sizeable.js +0 -19
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zZWN0aW9uL3NpemVhYmxlLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgd2l0aFN0eWxlIGZyb20gXCJlYXN5LXdpdGgtc3R5bGVcIjsgIC8vL1xuXG5pbXBvcnQgeyBFbGVtZW50IH0gZnJvbSBcImVhc3lcIjtcblxuY2xhc3MgU2l6ZWFibGVTZWN0aW9uIGV4dGVuZHMgRWxlbWVudCB7XG4gIHN0YXRpYyB0YWdOYW1lID0gXCJzZWN0aW9uXCI7XG5cbiAgc3RhdGljIGRlZmF1bHRQcm9wZXJ0aWVzID0ge1xuICAgIGNsYXNzTmFtZTogXCJzaXplYWJsZVwiXG4gIH07XG59XG5cbmV4cG9ydCBkZWZhdWx0IHdpdGhTdHlsZShTaXplYWJsZVNlY3Rpb24pYFxuXG4gIGRpc3BsYXk6IGZsZXg7XG4gIFxuYDtcbiJdLCJuYW1lcyI6WyJTaXplYWJsZVNlY3R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|
|
9
|
-
|
|
10
|
-
static defaultProperties = {
|
|
11
|
-
className: "sizeable"
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export default withStyle(SizeableSection)`
|
|
16
|
-
|
|
17
|
-
display: flex;
|
|
18
|
-
|
|
19
|
-
`;
|