easy-layout 6.0.290 → 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 +1 -1
|
@@ -8,176 +8,56 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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 _call_super(_this, derived, args) {
|
|
21
|
-
derived = _get_prototype_of(derived);
|
|
22
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
23
|
-
}
|
|
24
|
-
function _class_call_check(instance, Constructor) {
|
|
25
|
-
if (!(instance instanceof Constructor)) {
|
|
26
|
-
throw new TypeError("Cannot call a class as a function");
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
function _defineProperties(target, props) {
|
|
30
|
-
for(var i = 0; i < props.length; i++){
|
|
31
|
-
var descriptor = props[i];
|
|
32
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
33
|
-
descriptor.configurable = true;
|
|
34
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
35
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
39
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
40
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
41
|
-
return Constructor;
|
|
42
|
-
}
|
|
43
|
-
function _define_property(obj, key, value) {
|
|
44
|
-
if (key in obj) {
|
|
45
|
-
Object.defineProperty(obj, key, {
|
|
46
|
-
value: value,
|
|
47
|
-
enumerable: true,
|
|
48
|
-
configurable: true,
|
|
49
|
-
writable: true
|
|
50
|
-
});
|
|
51
|
-
} else {
|
|
52
|
-
obj[key] = value;
|
|
53
|
-
}
|
|
54
|
-
return obj;
|
|
55
|
-
}
|
|
56
|
-
function _get_prototype_of(o) {
|
|
57
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
58
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
59
|
-
};
|
|
60
|
-
return _get_prototype_of(o);
|
|
61
|
-
}
|
|
62
|
-
function _inherits(subClass, superClass) {
|
|
63
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
64
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
65
|
-
}
|
|
66
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
67
|
-
constructor: {
|
|
68
|
-
value: subClass,
|
|
69
|
-
writable: true,
|
|
70
|
-
configurable: true
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
74
|
-
}
|
|
11
|
+
const _easywithstyle = /*#__PURE__*/ _interop_require_default(require("easy-with-style"));
|
|
12
|
+
const _splitter = /*#__PURE__*/ _interop_require_default(require("../splitter"));
|
|
13
|
+
const _cursor = require("../../cursor");
|
|
75
14
|
function _interop_require_default(obj) {
|
|
76
15
|
return obj && obj.__esModule ? obj : {
|
|
77
16
|
default: obj
|
|
78
17
|
};
|
|
79
18
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
function _set_prototype_of(o, p) {
|
|
87
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
88
|
-
o.__proto__ = p;
|
|
89
|
-
return o;
|
|
19
|
+
class VerticalSplitter extends _splitter.default {
|
|
20
|
+
startDragCustomHandler = (event, element)=>{
|
|
21
|
+
const sizeableDiv = this.getSizeableDiv(), sizeableDivWidth = sizeableDiv.getWidth(), previousSizeableDivWidth = sizeableDivWidth; ///
|
|
22
|
+
this.setPreviousSizeableDivWidth(previousSizeableDivWidth);
|
|
23
|
+
this.setCursor();
|
|
90
24
|
};
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
if (!raw) {
|
|
95
|
-
raw = strings.slice(0);
|
|
96
|
-
}
|
|
97
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
98
|
-
raw: {
|
|
99
|
-
value: Object.freeze(raw)
|
|
100
|
-
}
|
|
101
|
-
}));
|
|
102
|
-
}
|
|
103
|
-
function _type_of(obj) {
|
|
104
|
-
"@swc/helpers - typeof";
|
|
105
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
106
|
-
}
|
|
107
|
-
function _is_native_reflect_construct() {
|
|
108
|
-
try {
|
|
109
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
110
|
-
} catch (_) {}
|
|
111
|
-
return (_is_native_reflect_construct = function() {
|
|
112
|
-
return !!result;
|
|
113
|
-
})();
|
|
114
|
-
}
|
|
115
|
-
function _templateObject() {
|
|
116
|
-
var data = _tagged_template_literal([
|
|
117
|
-
"\n\n width: 1rem;\n\n"
|
|
118
|
-
]);
|
|
119
|
-
_templateObject = function _templateObject() {
|
|
120
|
-
return data;
|
|
25
|
+
dragCustomHandler = (event, element, relativeMouseTop, relativeMouseLeft)=>{
|
|
26
|
+
const direction = this.getDirection(), sizeableDiv = this.getSizeableDiv(), previousSizeableDivWidth = this.getPreviousSizeableDivWidth(), sizeableDivWidth = previousSizeableDivWidth - direction * relativeMouseLeft, width = sizeableDivWidth; ///
|
|
27
|
+
sizeableDiv.setWidth(width);
|
|
121
28
|
};
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
29
|
+
mouseOverHandler = (event, element)=>{
|
|
30
|
+
this.setCursor();
|
|
31
|
+
};
|
|
32
|
+
setCursor() {
|
|
33
|
+
const disabled = this.isDisabled();
|
|
34
|
+
if (!disabled) {
|
|
35
|
+
(0, _cursor.columnResizeCursor)();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
getPreviousSizeableDivWidth() {
|
|
39
|
+
const { previousSizeableDivWidth } = this.getState();
|
|
40
|
+
return previousSizeableDivWidth;
|
|
41
|
+
}
|
|
42
|
+
setPreviousSizeableDivWidth(previousSizeableDivWidth) {
|
|
43
|
+
this.updateState({
|
|
44
|
+
previousSizeableDivWidth
|
|
138
45
|
});
|
|
139
|
-
return _this;
|
|
140
46
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
key: "setPreviousSizeableDivWidth",
|
|
160
|
-
value: function setPreviousSizeableDivWidth(previousSizeableDivWidth) {
|
|
161
|
-
this.updateState({
|
|
162
|
-
previousSizeableDivWidth: previousSizeableDivWidth
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
key: "setInitialState",
|
|
168
|
-
value: function setInitialState() {
|
|
169
|
-
var previousSizeableDivWidth = null;
|
|
170
|
-
this.setState({
|
|
171
|
-
previousSizeableDivWidth: previousSizeableDivWidth
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
]);
|
|
176
|
-
return VerticalSplitter;
|
|
177
|
-
}(_splitter.default);
|
|
178
|
-
_define_property(VerticalSplitter, "defaultProperties", {
|
|
179
|
-
className: "vertical"
|
|
180
|
-
});
|
|
181
|
-
var _default = (0, _easywithstyle.default)(VerticalSplitter)(_templateObject());
|
|
47
|
+
setInitialState() {
|
|
48
|
+
const previousSizeableDivWidth = null;
|
|
49
|
+
this.setState({
|
|
50
|
+
previousSizeableDivWidth
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
static defaultProperties = {
|
|
54
|
+
className: "vertical"
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
const _default = (0, _easywithstyle.default)(VerticalSplitter)`
|
|
58
|
+
|
|
59
|
+
width: 1rem;
|
|
60
|
+
|
|
61
|
+
`;
|
|
182
62
|
|
|
183
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW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
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
function _assert_this_initialized(self) {
|
|
17
|
-
if (self === void 0) {
|
|
18
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
19
|
-
}
|
|
20
|
-
return self;
|
|
21
|
-
}
|
|
22
|
-
function _call_super(_this, derived, args) {
|
|
23
|
-
derived = _get_prototype_of(derived);
|
|
24
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
25
|
-
}
|
|
26
|
-
function _class_call_check(instance, Constructor) {
|
|
27
|
-
if (!(instance instanceof Constructor)) {
|
|
28
|
-
throw new TypeError("Cannot call a class as a function");
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function _construct(Parent, args, Class) {
|
|
32
|
-
if (_is_native_reflect_construct()) {
|
|
33
|
-
_construct = Reflect.construct;
|
|
34
|
-
} else {
|
|
35
|
-
_construct = function construct(Parent, args, Class) {
|
|
36
|
-
var a = [
|
|
37
|
-
null
|
|
38
|
-
];
|
|
39
|
-
a.push.apply(a, args);
|
|
40
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
41
|
-
var instance = new Constructor();
|
|
42
|
-
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
43
|
-
return instance;
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
return _construct.apply(null, arguments);
|
|
47
|
-
}
|
|
48
|
-
function _defineProperties(target, props) {
|
|
49
|
-
for(var i = 0; i < props.length; i++){
|
|
50
|
-
var descriptor = props[i];
|
|
51
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
52
|
-
descriptor.configurable = true;
|
|
53
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
54
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
58
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
59
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
60
|
-
return Constructor;
|
|
61
|
-
}
|
|
62
|
-
function _define_property(obj, key, value) {
|
|
63
|
-
if (key in obj) {
|
|
64
|
-
Object.defineProperty(obj, key, {
|
|
65
|
-
value: value,
|
|
66
|
-
enumerable: true,
|
|
67
|
-
configurable: true,
|
|
68
|
-
writable: true
|
|
69
|
-
});
|
|
70
|
-
} else {
|
|
71
|
-
obj[key] = value;
|
|
72
|
-
}
|
|
73
|
-
return obj;
|
|
74
|
-
}
|
|
75
|
-
function _get_prototype_of(o) {
|
|
76
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
77
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
78
|
-
};
|
|
79
|
-
return _get_prototype_of(o);
|
|
80
|
-
}
|
|
81
|
-
function _inherits(subClass, superClass) {
|
|
82
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
83
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
84
|
-
}
|
|
85
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
86
|
-
constructor: {
|
|
87
|
-
value: subClass,
|
|
88
|
-
writable: true,
|
|
89
|
-
configurable: true
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
93
|
-
}
|
|
94
|
-
function _instanceof(left, right) {
|
|
95
|
-
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
96
|
-
return !!right[Symbol.hasInstance](left);
|
|
97
|
-
} else {
|
|
98
|
-
return left instanceof right;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
11
|
+
const _easywithstyle = /*#__PURE__*/ _interop_require_default(require("easy-with-style"));
|
|
12
|
+
const _easy = require("easy");
|
|
13
|
+
const _easydraganddrop = require("easy-drag-and-drop");
|
|
14
|
+
const _sizeable = /*#__PURE__*/ _interop_require_default(require("../div/sizeable"));
|
|
15
|
+
const _cursor = require("../cursor");
|
|
101
16
|
function _interop_require_default(obj) {
|
|
102
17
|
return obj && obj.__esModule ? obj : {
|
|
103
18
|
default: obj
|
|
104
19
|
};
|
|
105
20
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
111
|
-
return call;
|
|
112
|
-
}
|
|
113
|
-
return _assert_this_initialized(self);
|
|
114
|
-
}
|
|
115
|
-
function _set_prototype_of(o, p) {
|
|
116
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
117
|
-
o.__proto__ = p;
|
|
118
|
-
return o;
|
|
21
|
+
class SplitterDiv extends _easy.Element {
|
|
22
|
+
stopDragCustomHandler = (event, element, dropElement, aborted, done)=>{
|
|
23
|
+
(0, _cursor.resetCursor)();
|
|
24
|
+
done();
|
|
119
25
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
26
|
+
mouseOutHandler = (event, element)=>{
|
|
27
|
+
(0, _cursor.resetCursor)();
|
|
28
|
+
};
|
|
29
|
+
getSizeableDiv() {
|
|
30
|
+
let sizeableDiv;
|
|
31
|
+
const nextSiblingElement = this.getNextSiblingElement(), previousSiblingElement = this.getPreviousSiblingElement(), nextSiblingElementSizeableDiv = nextSiblingElement instanceof _sizeable.default, previousSiblingElementSizeableDiv = previousSiblingElement instanceof _sizeable.default;
|
|
32
|
+
if (nextSiblingElementSizeableDiv) {
|
|
33
|
+
sizeableDiv = nextSiblingElement; ///
|
|
34
|
+
}
|
|
35
|
+
if (previousSiblingElementSizeableDiv) {
|
|
36
|
+
sizeableDiv = previousSiblingElement; ///
|
|
37
|
+
}
|
|
38
|
+
return sizeableDiv;
|
|
125
39
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
40
|
+
getDirection() {
|
|
41
|
+
let direction;
|
|
42
|
+
const nextSiblingElement = this.getNextSiblingElement(), previousSiblingElement = this.getPreviousSiblingElement(), nextSiblingElementSizeableDiv = nextSiblingElement instanceof _sizeable.default, previousSiblingElementSizeableDiv = previousSiblingElement instanceof _sizeable.default;
|
|
43
|
+
if (nextSiblingElementSizeableDiv) {
|
|
44
|
+
direction = +1;
|
|
129
45
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
function _type_of(obj) {
|
|
133
|
-
"@swc/helpers - typeof";
|
|
134
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
135
|
-
}
|
|
136
|
-
function _wrap_native_super(Class) {
|
|
137
|
-
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
138
|
-
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
139
|
-
if (Class === null || !_is_native_function(Class)) return Class;
|
|
140
|
-
if (typeof Class !== "function") {
|
|
141
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
46
|
+
if (previousSiblingElementSizeableDiv) {
|
|
47
|
+
direction = -1;
|
|
142
48
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
49
|
+
return direction;
|
|
50
|
+
}
|
|
51
|
+
getReferences() {
|
|
52
|
+
const references = [];
|
|
53
|
+
return references;
|
|
54
|
+
}
|
|
55
|
+
enable() {
|
|
56
|
+
const dragEnabled = this.isDragEnabled();
|
|
57
|
+
if (!dragEnabled) {
|
|
58
|
+
this.enableDrag();
|
|
59
|
+
this.onCustomDrag(this.dragCustomHandler);
|
|
60
|
+
this.onCustomStopDrag(this.stopDragCustomHandler);
|
|
61
|
+
this.onCustomStartDrag(this.startDragCustomHandler);
|
|
146
62
|
}
|
|
147
|
-
|
|
148
|
-
|
|
63
|
+
}
|
|
64
|
+
disable() {
|
|
65
|
+
const dragEnabled = this.isDragEnabled();
|
|
66
|
+
if (dragEnabled) {
|
|
67
|
+
this.offCustomStartDrag(this.startDragCustomHandler);
|
|
68
|
+
this.offCustomStopDrag(this.stopDragCustomHandler);
|
|
69
|
+
this.offCustomDrag(this.dragCustomHandler);
|
|
70
|
+
this.disableDrag();
|
|
149
71
|
}
|
|
150
|
-
Wrapper.prototype = Object.create(Class.prototype, {
|
|
151
|
-
constructor: {
|
|
152
|
-
value: Wrapper,
|
|
153
|
-
enumerable: false,
|
|
154
|
-
writable: true,
|
|
155
|
-
configurable: true
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
return _set_prototype_of(Wrapper, Class);
|
|
159
|
-
};
|
|
160
|
-
return _wrap_native_super(Class);
|
|
161
|
-
}
|
|
162
|
-
function _is_native_reflect_construct() {
|
|
163
|
-
try {
|
|
164
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
165
|
-
} catch (_) {}
|
|
166
|
-
return (_is_native_reflect_construct = function() {
|
|
167
|
-
return !!result;
|
|
168
|
-
})();
|
|
169
|
-
}
|
|
170
|
-
function _templateObject() {
|
|
171
|
-
var data = _tagged_template_literal([
|
|
172
|
-
"\n\n flex-shrink: 0;\n\n"
|
|
173
|
-
]);
|
|
174
|
-
_templateObject = function _templateObject() {
|
|
175
|
-
return data;
|
|
176
|
-
};
|
|
177
|
-
return data;
|
|
178
|
-
}
|
|
179
|
-
var SplitterDiv = /*#__PURE__*/ function(Element) {
|
|
180
|
-
_inherits(SplitterDiv, Element);
|
|
181
|
-
function SplitterDiv() {
|
|
182
|
-
_class_call_check(this, SplitterDiv);
|
|
183
|
-
var _this;
|
|
184
|
-
_this = _call_super(this, SplitterDiv, arguments), _define_property(_this, "stopDragCustomHandler", function(event, element, dropElement, aborted, done) {
|
|
185
|
-
(0, _cursor.resetCursor)();
|
|
186
|
-
done();
|
|
187
|
-
}), _define_property(_this, "mouseOutHandler", function(event, element) {
|
|
188
|
-
(0, _cursor.resetCursor)();
|
|
189
|
-
});
|
|
190
|
-
return _this;
|
|
191
72
|
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}
|
|
201
|
-
if (previousSiblingElementSizeableDiv) {
|
|
202
|
-
sizeableDiv = previousSiblingElement; ///
|
|
203
|
-
}
|
|
204
|
-
return sizeableDiv;
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
key: "getDirection",
|
|
209
|
-
value: function getDirection() {
|
|
210
|
-
var direction;
|
|
211
|
-
var nextSiblingElement = this.getNextSiblingElement(), previousSiblingElement = this.getPreviousSiblingElement(), nextSiblingElementSizeableDiv = _instanceof(nextSiblingElement, _sizeable.default), previousSiblingElementSizeableDiv = _instanceof(previousSiblingElement, _sizeable.default);
|
|
212
|
-
if (nextSiblingElementSizeableDiv) {
|
|
213
|
-
direction = +1;
|
|
214
|
-
}
|
|
215
|
-
if (previousSiblingElementSizeableDiv) {
|
|
216
|
-
direction = -1;
|
|
217
|
-
}
|
|
218
|
-
return direction;
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
key: "getReferences",
|
|
223
|
-
value: function getReferences() {
|
|
224
|
-
var references = [];
|
|
225
|
-
return references;
|
|
226
|
-
}
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
key: "enable",
|
|
230
|
-
value: function enable() {
|
|
231
|
-
var dragEnabled = this.isDragEnabled();
|
|
232
|
-
if (!dragEnabled) {
|
|
233
|
-
this.enableDrag();
|
|
234
|
-
this.onCustomDrag(this.dragCustomHandler);
|
|
235
|
-
this.onCustomStopDrag(this.stopDragCustomHandler);
|
|
236
|
-
this.onCustomStartDrag(this.startDragCustomHandler);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
key: "disable",
|
|
242
|
-
value: function disable() {
|
|
243
|
-
var dragEnabled = this.isDragEnabled();
|
|
244
|
-
if (dragEnabled) {
|
|
245
|
-
this.offCustomStartDrag(this.startDragCustomHandler);
|
|
246
|
-
this.offCustomStopDrag(this.stopDragCustomHandler);
|
|
247
|
-
this.offCustomDrag(this.dragCustomHandler);
|
|
248
|
-
this.disableDrag();
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
key: "isDisabled",
|
|
254
|
-
value: function isDisabled() {
|
|
255
|
-
var dragEnabled = this.isDragEnabled(), disabled = !dragEnabled;
|
|
256
|
-
return disabled;
|
|
257
|
-
}
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
key: "didMount",
|
|
261
|
-
value: function didMount() {
|
|
262
|
-
var _this_properties = this.properties, _this_properties_disabled = _this_properties.disabled, disabled = _this_properties_disabled === void 0 ? false : _this_properties_disabled;
|
|
263
|
-
if (!disabled) {
|
|
264
|
-
this.enable();
|
|
265
|
-
}
|
|
266
|
-
this.onMouseOver(this.mouseOverHandler);
|
|
267
|
-
this.onMouseOut(this.mouseOutHandler);
|
|
268
|
-
}
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
key: "willUnmount",
|
|
272
|
-
value: function willUnmount() {
|
|
273
|
-
var disabled = this.isDisabled();
|
|
274
|
-
this.offMouseOut(this.mouseOutHandler);
|
|
275
|
-
this.offMouseOver(this.mouseOverHandler);
|
|
276
|
-
if (!disabled) {
|
|
277
|
-
this.disable();
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
key: "initialise",
|
|
283
|
-
value: function initialise() {
|
|
284
|
-
this.setInitialState();
|
|
285
|
-
}
|
|
73
|
+
isDisabled() {
|
|
74
|
+
const dragEnabled = this.isDragEnabled(), disabled = !dragEnabled;
|
|
75
|
+
return disabled;
|
|
76
|
+
}
|
|
77
|
+
didMount() {
|
|
78
|
+
const { disabled = false } = this.properties;
|
|
79
|
+
if (!disabled) {
|
|
80
|
+
this.enable();
|
|
286
81
|
}
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
}
|
|
82
|
+
this.onMouseOver(this.mouseOverHandler);
|
|
83
|
+
this.onMouseOut(this.mouseOutHandler);
|
|
84
|
+
}
|
|
85
|
+
willUnmount() {
|
|
86
|
+
const disabled = this.isDisabled();
|
|
87
|
+
this.offMouseOut(this.mouseOutHandler);
|
|
88
|
+
this.offMouseOver(this.mouseOverHandler);
|
|
89
|
+
if (!disabled) {
|
|
90
|
+
this.disable();
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
initialise() {
|
|
94
|
+
this.setInitialState();
|
|
95
|
+
}
|
|
96
|
+
static tagName = "div";
|
|
97
|
+
static ignoredProperties = [
|
|
98
|
+
"disabled"
|
|
99
|
+
];
|
|
100
|
+
static defaultProperties = {
|
|
101
|
+
className: "splitter"
|
|
102
|
+
};
|
|
103
|
+
}
|
|
297
104
|
Object.assign(SplitterDiv.prototype, _easydraganddrop.dragMixins);
|
|
298
|
-
|
|
105
|
+
const _default = (0, _easywithstyle.default)(SplitterDiv)`
|
|
106
|
+
|
|
107
|
+
flex-shrink: 0;
|
|
108
|
+
|
|
109
|
+
`;
|
|
299
110
|
|
|
300
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaXYvc3BsaXR0ZXIuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCB3aXRoU3R5bGUgZnJvbSBcImVhc3ktd2l0aC1zdHlsZVwiOyAgLy8vXG5cbmltcG9ydCB7IEVsZW1lbnQgfSBmcm9tIFwiZWFzeVwiO1xuaW1wb3J0IHsgZHJhZ01peGlucyB9IGZyb20gXCJlYXN5LWRyYWctYW5kLWRyb3BcIjtcblxuaW1wb3J0IFNpemVhYmxlRGl2IGZyb20gXC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