bitz-react-admin-ui 2.4.5 → 2.4.7
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/dist/_virtual/Draggable.mjs +4 -0
- package/dist/_virtual/DraggableCore.mjs +4 -0
- package/dist/_virtual/Resizable.mjs +4 -0
- package/dist/_virtual/ResizableBox.mjs +4 -0
- package/dist/_virtual/_commonjsHelpers.mjs +26 -4
- package/dist/_virtual/cjs.mjs +4 -0
- package/dist/_virtual/clsx.m.mjs +6 -0
- package/dist/_virtual/domFns.mjs +4 -0
- package/dist/_virtual/getPrefix.mjs +4 -0
- package/dist/_virtual/index6.mjs +4 -0
- package/dist/_virtual/log.mjs +4 -0
- package/dist/_virtual/positionFns.mjs +4 -0
- package/dist/_virtual/propTypes.mjs +4 -0
- package/dist/_virtual/shims.mjs +4 -0
- package/dist/_virtual/utils.mjs +4 -0
- package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +67 -0
- package/dist/components/BitzTable/Table/index.d.ts +1 -0
- package/dist/components/BitzTable/Table/index.mjs +391 -360
- package/dist/components/BitzTable/TextOverflow/index.d.ts +7 -0
- package/dist/components/BitzTable/TextOverflow/index.mjs +33 -0
- package/dist/components/BitzTable/ToolBar/Modal/style.mjs +6 -6
- package/dist/components/BitzTable/index.d.ts +2 -0
- package/dist/node_modules/.store/clsx@1.2.1/node_modules/clsx/dist/clsx.m.mjs +22 -0
- package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +8 -7
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/Draggable.mjs +343 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/DraggableCore.mjs +324 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/cjs.mjs +14 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/domFns.mjs +174 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +35 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/log.mjs +7 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +107 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/shims.mjs +30 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/Resizable.mjs +201 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/ResizableBox.mjs +162 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/propTypes.mjs +118 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/utils.mjs +54 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs +13 -0
- package/dist/node_modules/.store/use-sync-external-store@1.2.0/node_modules/use-sync-external-store/shim/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { __exports as P } from "../../../../../../_virtual/Resizable.mjs";
|
|
2
|
+
import x from "react";
|
|
3
|
+
import { c as E } from "../../../../react-draggable@4.4.6/node_modules/react-draggable/build/cjs/cjs.mjs";
|
|
4
|
+
import "./utils.mjs";
|
|
5
|
+
import "./propTypes.mjs";
|
|
6
|
+
import { __exports as k } from "../../../../../../_virtual/utils.mjs";
|
|
7
|
+
import { __exports as T } from "../../../../../../_virtual/propTypes.mjs";
|
|
8
|
+
P.__esModule = !0;
|
|
9
|
+
P.default = void 0;
|
|
10
|
+
var h = N(x), $ = E, q = k, I = T, K = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
|
|
11
|
+
function C(e) {
|
|
12
|
+
if (typeof WeakMap != "function")
|
|
13
|
+
return null;
|
|
14
|
+
var o = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new WeakMap();
|
|
15
|
+
return (C = function(r) {
|
|
16
|
+
return r ? i : o;
|
|
17
|
+
})(e);
|
|
18
|
+
}
|
|
19
|
+
function N(e, o) {
|
|
20
|
+
if (!o && e && e.__esModule)
|
|
21
|
+
return e;
|
|
22
|
+
if (e === null || typeof e != "object" && typeof e != "function")
|
|
23
|
+
return { default: e };
|
|
24
|
+
var i = C(o);
|
|
25
|
+
if (i && i.has(e))
|
|
26
|
+
return i.get(e);
|
|
27
|
+
var a = {}, r = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
28
|
+
for (var t in e)
|
|
29
|
+
if (t !== "default" && Object.prototype.hasOwnProperty.call(e, t)) {
|
|
30
|
+
var n = r ? Object.getOwnPropertyDescriptor(e, t) : null;
|
|
31
|
+
n && (n.get || n.set) ? Object.defineProperty(a, t, n) : a[t] = e[t];
|
|
32
|
+
}
|
|
33
|
+
return a.default = e, i && i.set(e, a), a;
|
|
34
|
+
}
|
|
35
|
+
function z() {
|
|
36
|
+
return z = Object.assign ? Object.assign.bind() : function(e) {
|
|
37
|
+
for (var o = 1; o < arguments.length; o++) {
|
|
38
|
+
var i = arguments[o];
|
|
39
|
+
for (var a in i)
|
|
40
|
+
Object.prototype.hasOwnProperty.call(i, a) && (e[a] = i[a]);
|
|
41
|
+
}
|
|
42
|
+
return e;
|
|
43
|
+
}, z.apply(this, arguments);
|
|
44
|
+
}
|
|
45
|
+
function X(e, o) {
|
|
46
|
+
if (e == null)
|
|
47
|
+
return {};
|
|
48
|
+
var i = {}, a = Object.keys(e), r, t;
|
|
49
|
+
for (t = 0; t < a.length; t++)
|
|
50
|
+
r = a[t], !(o.indexOf(r) >= 0) && (i[r] = e[r]);
|
|
51
|
+
return i;
|
|
52
|
+
}
|
|
53
|
+
function D(e, o) {
|
|
54
|
+
var i = Object.keys(e);
|
|
55
|
+
if (Object.getOwnPropertySymbols) {
|
|
56
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
57
|
+
o && (a = a.filter(function(r) {
|
|
58
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
59
|
+
})), i.push.apply(i, a);
|
|
60
|
+
}
|
|
61
|
+
return i;
|
|
62
|
+
}
|
|
63
|
+
function b(e) {
|
|
64
|
+
for (var o = 1; o < arguments.length; o++) {
|
|
65
|
+
var i = arguments[o] != null ? arguments[o] : {};
|
|
66
|
+
o % 2 ? D(Object(i), !0).forEach(function(a) {
|
|
67
|
+
Y(e, a, i[a]);
|
|
68
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : D(Object(i)).forEach(function(a) {
|
|
69
|
+
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(i, a));
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
return e;
|
|
73
|
+
}
|
|
74
|
+
function Y(e, o, i) {
|
|
75
|
+
return o = B(o), o in e ? Object.defineProperty(e, o, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : e[o] = i, e;
|
|
76
|
+
}
|
|
77
|
+
function B(e) {
|
|
78
|
+
var o = L(e, "string");
|
|
79
|
+
return typeof o == "symbol" ? o : String(o);
|
|
80
|
+
}
|
|
81
|
+
function L(e, o) {
|
|
82
|
+
if (typeof e != "object" || e === null)
|
|
83
|
+
return e;
|
|
84
|
+
var i = e[Symbol.toPrimitive];
|
|
85
|
+
if (i !== void 0) {
|
|
86
|
+
var a = i.call(e, o || "default");
|
|
87
|
+
if (typeof a != "object")
|
|
88
|
+
return a;
|
|
89
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
90
|
+
}
|
|
91
|
+
return (o === "string" ? String : Number)(e);
|
|
92
|
+
}
|
|
93
|
+
function U(e, o) {
|
|
94
|
+
e.prototype = Object.create(o.prototype), e.prototype.constructor = e, _(e, o);
|
|
95
|
+
}
|
|
96
|
+
function _(e, o) {
|
|
97
|
+
return _ = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(a, r) {
|
|
98
|
+
return a.__proto__ = r, a;
|
|
99
|
+
}, _(e, o);
|
|
100
|
+
}
|
|
101
|
+
var S = /* @__PURE__ */ function(e) {
|
|
102
|
+
U(o, e);
|
|
103
|
+
function o() {
|
|
104
|
+
for (var a, r = arguments.length, t = new Array(r), n = 0; n < r; n++)
|
|
105
|
+
t[n] = arguments[n];
|
|
106
|
+
return a = e.call.apply(e, [this].concat(t)) || this, a.handleRefs = {}, a.lastHandleRect = null, a.slack = null, a;
|
|
107
|
+
}
|
|
108
|
+
var i = o.prototype;
|
|
109
|
+
return i.componentWillUnmount = function() {
|
|
110
|
+
this.resetData();
|
|
111
|
+
}, i.resetData = function() {
|
|
112
|
+
this.lastHandleRect = this.slack = null;
|
|
113
|
+
}, i.runConstraints = function(r, t) {
|
|
114
|
+
var n = this.props, l = n.minConstraints, p = n.maxConstraints, f = n.lockAspectRatio;
|
|
115
|
+
if (!l && !p && !f)
|
|
116
|
+
return [r, t];
|
|
117
|
+
if (f) {
|
|
118
|
+
var c = this.props.width / this.props.height, s = r - this.props.width, u = t - this.props.height;
|
|
119
|
+
Math.abs(s) > Math.abs(u * c) ? t = r / c : r = t * c;
|
|
120
|
+
}
|
|
121
|
+
var d = r, O = t, m = this.slack || [0, 0], v = m[0], y = m[1];
|
|
122
|
+
return r += v, t += y, l && (r = Math.max(l[0], r), t = Math.max(l[1], t)), p && (r = Math.min(p[0], r), t = Math.min(p[1], t)), this.slack = [v + (d - r), y + (O - t)], [r, t];
|
|
123
|
+
}, i.resizeHandler = function(r, t) {
|
|
124
|
+
var n = this;
|
|
125
|
+
return function(l, p) {
|
|
126
|
+
var f = p.node, c = p.deltaX, s = p.deltaY;
|
|
127
|
+
r === "onResizeStart" && n.resetData();
|
|
128
|
+
var u = (n.props.axis === "both" || n.props.axis === "x") && t !== "n" && t !== "s", d = (n.props.axis === "both" || n.props.axis === "y") && t !== "e" && t !== "w";
|
|
129
|
+
if (!(!u && !d)) {
|
|
130
|
+
var O = t[0], m = t[t.length - 1], v = f.getBoundingClientRect();
|
|
131
|
+
if (n.lastHandleRect != null) {
|
|
132
|
+
if (m === "w") {
|
|
133
|
+
var y = v.left - n.lastHandleRect.left;
|
|
134
|
+
c += y;
|
|
135
|
+
}
|
|
136
|
+
if (O === "n") {
|
|
137
|
+
var j = v.top - n.lastHandleRect.top;
|
|
138
|
+
s += j;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
n.lastHandleRect = v, m === "w" && (c = -c), O === "n" && (s = -s);
|
|
142
|
+
var g = n.props.width + (u ? c / n.props.transformScale : 0), R = n.props.height + (d ? s / n.props.transformScale : 0), H = n.runConstraints(g, R);
|
|
143
|
+
g = H[0], R = H[1];
|
|
144
|
+
var M = g !== n.props.width || R !== n.props.height, w = typeof n.props[r] == "function" ? n.props[r] : null, W = r === "onResize" && !M;
|
|
145
|
+
w && !W && (l.persist == null || l.persist(), w(l, {
|
|
146
|
+
node: f,
|
|
147
|
+
size: {
|
|
148
|
+
width: g,
|
|
149
|
+
height: R
|
|
150
|
+
},
|
|
151
|
+
handle: t
|
|
152
|
+
})), r === "onResizeStop" && n.resetData();
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
}, i.renderResizeHandle = function(r, t) {
|
|
156
|
+
var n = this.props.handle;
|
|
157
|
+
if (!n)
|
|
158
|
+
return /* @__PURE__ */ h.createElement("span", {
|
|
159
|
+
className: "react-resizable-handle react-resizable-handle-" + r,
|
|
160
|
+
ref: t
|
|
161
|
+
});
|
|
162
|
+
if (typeof n == "function")
|
|
163
|
+
return n(r, t);
|
|
164
|
+
var l = typeof n.type == "string", p = b({
|
|
165
|
+
ref: t
|
|
166
|
+
}, l ? {} : {
|
|
167
|
+
handleAxis: r
|
|
168
|
+
});
|
|
169
|
+
return /* @__PURE__ */ h.cloneElement(n, p);
|
|
170
|
+
}, i.render = function() {
|
|
171
|
+
var r = this, t = this.props, n = t.children, l = t.className, p = t.draggableOpts;
|
|
172
|
+
t.width, t.height, t.handle, t.handleSize, t.lockAspectRatio, t.axis, t.minConstraints, t.maxConstraints, t.onResize, t.onResizeStop, t.onResizeStart;
|
|
173
|
+
var f = t.resizeHandles;
|
|
174
|
+
t.transformScale;
|
|
175
|
+
var c = X(t, K);
|
|
176
|
+
return (0, q.cloneElement)(n, b(b({}, c), {}, {
|
|
177
|
+
className: (l ? l + " " : "") + "react-resizable",
|
|
178
|
+
children: [].concat(n.props.children, f.map(function(s) {
|
|
179
|
+
var u, d = (u = r.handleRefs[s]) != null ? u : r.handleRefs[s] = /* @__PURE__ */ h.createRef();
|
|
180
|
+
return /* @__PURE__ */ h.createElement($.DraggableCore, z({}, p, {
|
|
181
|
+
nodeRef: d,
|
|
182
|
+
key: "resizableHandle-" + s,
|
|
183
|
+
onStop: r.resizeHandler("onResizeStop", s),
|
|
184
|
+
onStart: r.resizeHandler("onResizeStart", s),
|
|
185
|
+
onDrag: r.resizeHandler("onResize", s)
|
|
186
|
+
}), r.renderResizeHandle(s, d));
|
|
187
|
+
}))
|
|
188
|
+
}));
|
|
189
|
+
}, o;
|
|
190
|
+
}(h.Component);
|
|
191
|
+
P.default = S;
|
|
192
|
+
S.propTypes = I.resizableProps;
|
|
193
|
+
S.defaultProps = {
|
|
194
|
+
axis: "both",
|
|
195
|
+
handleSize: [20, 20],
|
|
196
|
+
lockAspectRatio: !1,
|
|
197
|
+
minConstraints: [20, 20],
|
|
198
|
+
maxConstraints: [1 / 0, 1 / 0],
|
|
199
|
+
resizeHandles: ["se"],
|
|
200
|
+
transformScale: 1
|
|
201
|
+
};
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { __exports as d } from "../../../../../../_virtual/ResizableBox.mjs";
|
|
2
|
+
import x from "react";
|
|
3
|
+
import { p as D } from "../../../../prop-types@15.8.1/node_modules/prop-types/index.mjs";
|
|
4
|
+
import "./Resizable.mjs";
|
|
5
|
+
import "./propTypes.mjs";
|
|
6
|
+
import { __exports as W } from "../../../../../../_virtual/Resizable.mjs";
|
|
7
|
+
import { __exports as j } from "../../../../../../_virtual/propTypes.mjs";
|
|
8
|
+
d.__esModule = !0;
|
|
9
|
+
d.default = void 0;
|
|
10
|
+
var c = A(x), H = m(D), E = m(W), M = j, T = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
|
|
11
|
+
function m(e) {
|
|
12
|
+
return e && e.__esModule ? e : { default: e };
|
|
13
|
+
}
|
|
14
|
+
function O(e) {
|
|
15
|
+
if (typeof WeakMap != "function")
|
|
16
|
+
return null;
|
|
17
|
+
var r = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
|
|
18
|
+
return (O = function(i) {
|
|
19
|
+
return i ? n : r;
|
|
20
|
+
})(e);
|
|
21
|
+
}
|
|
22
|
+
function A(e, r) {
|
|
23
|
+
if (!r && e && e.__esModule)
|
|
24
|
+
return e;
|
|
25
|
+
if (e === null || typeof e != "object" && typeof e != "function")
|
|
26
|
+
return { default: e };
|
|
27
|
+
var n = O(r);
|
|
28
|
+
if (n && n.has(e))
|
|
29
|
+
return n.get(e);
|
|
30
|
+
var t = {}, i = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
31
|
+
for (var o in e)
|
|
32
|
+
if (o !== "default" && Object.prototype.hasOwnProperty.call(e, o)) {
|
|
33
|
+
var a = i ? Object.getOwnPropertyDescriptor(e, o) : null;
|
|
34
|
+
a && (a.get || a.set) ? Object.defineProperty(t, o, a) : t[o] = e[o];
|
|
35
|
+
}
|
|
36
|
+
return t.default = e, n && n.set(e, t), t;
|
|
37
|
+
}
|
|
38
|
+
function u() {
|
|
39
|
+
return u = Object.assign ? Object.assign.bind() : function(e) {
|
|
40
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
41
|
+
var n = arguments[r];
|
|
42
|
+
for (var t in n)
|
|
43
|
+
Object.prototype.hasOwnProperty.call(n, t) && (e[t] = n[t]);
|
|
44
|
+
}
|
|
45
|
+
return e;
|
|
46
|
+
}, u.apply(this, arguments);
|
|
47
|
+
}
|
|
48
|
+
function g(e, r) {
|
|
49
|
+
var n = Object.keys(e);
|
|
50
|
+
if (Object.getOwnPropertySymbols) {
|
|
51
|
+
var t = Object.getOwnPropertySymbols(e);
|
|
52
|
+
r && (t = t.filter(function(i) {
|
|
53
|
+
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
54
|
+
})), n.push.apply(n, t);
|
|
55
|
+
}
|
|
56
|
+
return n;
|
|
57
|
+
}
|
|
58
|
+
function f(e) {
|
|
59
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
60
|
+
var n = arguments[r] != null ? arguments[r] : {};
|
|
61
|
+
r % 2 ? g(Object(n), !0).forEach(function(t) {
|
|
62
|
+
C(e, t, n[t]);
|
|
63
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g(Object(n)).forEach(function(t) {
|
|
64
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
return e;
|
|
68
|
+
}
|
|
69
|
+
function C(e, r, n) {
|
|
70
|
+
return r = q(r), r in e ? Object.defineProperty(e, r, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = n, e;
|
|
71
|
+
}
|
|
72
|
+
function q(e) {
|
|
73
|
+
var r = B(e, "string");
|
|
74
|
+
return typeof r == "symbol" ? r : String(r);
|
|
75
|
+
}
|
|
76
|
+
function B(e, r) {
|
|
77
|
+
if (typeof e != "object" || e === null)
|
|
78
|
+
return e;
|
|
79
|
+
var n = e[Symbol.toPrimitive];
|
|
80
|
+
if (n !== void 0) {
|
|
81
|
+
var t = n.call(e, r || "default");
|
|
82
|
+
if (typeof t != "object")
|
|
83
|
+
return t;
|
|
84
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
85
|
+
}
|
|
86
|
+
return (r === "string" ? String : Number)(e);
|
|
87
|
+
}
|
|
88
|
+
function K(e, r) {
|
|
89
|
+
if (e == null)
|
|
90
|
+
return {};
|
|
91
|
+
var n = {}, t = Object.keys(e), i, o;
|
|
92
|
+
for (o = 0; o < t.length; o++)
|
|
93
|
+
i = t[o], !(r.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
94
|
+
return n;
|
|
95
|
+
}
|
|
96
|
+
function F(e, r) {
|
|
97
|
+
e.prototype = Object.create(r.prototype), e.prototype.constructor = e, h(e, r);
|
|
98
|
+
}
|
|
99
|
+
function h(e, r) {
|
|
100
|
+
return h = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, i) {
|
|
101
|
+
return t.__proto__ = i, t;
|
|
102
|
+
}, h(e, r);
|
|
103
|
+
}
|
|
104
|
+
var v = /* @__PURE__ */ function(e) {
|
|
105
|
+
F(r, e);
|
|
106
|
+
function r() {
|
|
107
|
+
for (var t, i = arguments.length, o = new Array(i), a = 0; a < i; a++)
|
|
108
|
+
o[a] = arguments[a];
|
|
109
|
+
return t = e.call.apply(e, [this].concat(o)) || this, t.state = {
|
|
110
|
+
width: t.props.width,
|
|
111
|
+
height: t.props.height,
|
|
112
|
+
propsWidth: t.props.width,
|
|
113
|
+
propsHeight: t.props.height
|
|
114
|
+
}, t.onResize = function(s, p) {
|
|
115
|
+
var l = p.size;
|
|
116
|
+
t.props.onResize ? (s.persist == null || s.persist(), t.setState(l, function() {
|
|
117
|
+
return t.props.onResize && t.props.onResize(s, p);
|
|
118
|
+
})) : t.setState(l);
|
|
119
|
+
}, t;
|
|
120
|
+
}
|
|
121
|
+
r.getDerivedStateFromProps = function(i, o) {
|
|
122
|
+
return o.propsWidth !== i.width || o.propsHeight !== i.height ? {
|
|
123
|
+
width: i.width,
|
|
124
|
+
height: i.height,
|
|
125
|
+
propsWidth: i.width,
|
|
126
|
+
propsHeight: i.height
|
|
127
|
+
} : null;
|
|
128
|
+
};
|
|
129
|
+
var n = r.prototype;
|
|
130
|
+
return n.render = function() {
|
|
131
|
+
var i = this.props, o = i.handle, a = i.handleSize;
|
|
132
|
+
i.onResize;
|
|
133
|
+
var s = i.onResizeStart, p = i.onResizeStop, l = i.draggableOpts, y = i.minConstraints, z = i.maxConstraints, _ = i.lockAspectRatio, w = i.axis;
|
|
134
|
+
i.width, i.height;
|
|
135
|
+
var P = i.resizeHandles, R = i.style, S = i.transformScale, b = K(i, T);
|
|
136
|
+
return /* @__PURE__ */ c.createElement(E.default, {
|
|
137
|
+
axis: w,
|
|
138
|
+
draggableOpts: l,
|
|
139
|
+
handle: o,
|
|
140
|
+
handleSize: a,
|
|
141
|
+
height: this.state.height,
|
|
142
|
+
lockAspectRatio: _,
|
|
143
|
+
maxConstraints: z,
|
|
144
|
+
minConstraints: y,
|
|
145
|
+
onResizeStart: s,
|
|
146
|
+
onResize: this.onResize,
|
|
147
|
+
onResizeStop: p,
|
|
148
|
+
resizeHandles: P,
|
|
149
|
+
transformScale: S,
|
|
150
|
+
width: this.state.width
|
|
151
|
+
}, /* @__PURE__ */ c.createElement("div", u({}, b, {
|
|
152
|
+
style: f(f({}, R), {}, {
|
|
153
|
+
width: this.state.width + "px",
|
|
154
|
+
height: this.state.height + "px"
|
|
155
|
+
})
|
|
156
|
+
})));
|
|
157
|
+
}, r;
|
|
158
|
+
}(c.Component);
|
|
159
|
+
d.default = v;
|
|
160
|
+
v.propTypes = f(f({}, M.resizableProps), {}, {
|
|
161
|
+
children: H.default.element
|
|
162
|
+
});
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { __exports as f } from "../../../../../../_virtual/propTypes.mjs";
|
|
2
|
+
import { p as d } from "../../../../prop-types@15.8.1/node_modules/prop-types/index.mjs";
|
|
3
|
+
import "../../../../react-draggable@4.4.6/node_modules/react-draggable/build/cjs/cjs.mjs";
|
|
4
|
+
f.__esModule = !0;
|
|
5
|
+
f.resizableProps = void 0;
|
|
6
|
+
var e = o(d);
|
|
7
|
+
function o(r) {
|
|
8
|
+
return r && r.__esModule ? r : { default: r };
|
|
9
|
+
}
|
|
10
|
+
var s = {
|
|
11
|
+
/*
|
|
12
|
+
* Restricts resizing to a particular axis (default: 'both')
|
|
13
|
+
* 'both' - allows resizing by width or height
|
|
14
|
+
* 'x' - only allows the width to be changed
|
|
15
|
+
* 'y' - only allows the height to be changed
|
|
16
|
+
* 'none' - disables resizing altogether
|
|
17
|
+
* */
|
|
18
|
+
axis: e.default.oneOf(["both", "x", "y", "none"]),
|
|
19
|
+
className: e.default.string,
|
|
20
|
+
/*
|
|
21
|
+
* Require that one and only one child be present.
|
|
22
|
+
* */
|
|
23
|
+
children: e.default.element.isRequired,
|
|
24
|
+
/*
|
|
25
|
+
* These will be passed wholesale to react-draggable's DraggableCore
|
|
26
|
+
* */
|
|
27
|
+
draggableOpts: e.default.shape({
|
|
28
|
+
allowAnyClick: e.default.bool,
|
|
29
|
+
cancel: e.default.string,
|
|
30
|
+
children: e.default.node,
|
|
31
|
+
disabled: e.default.bool,
|
|
32
|
+
enableUserSelectHack: e.default.bool,
|
|
33
|
+
offsetParent: e.default.node,
|
|
34
|
+
grid: e.default.arrayOf(e.default.number),
|
|
35
|
+
handle: e.default.string,
|
|
36
|
+
nodeRef: e.default.object,
|
|
37
|
+
onStart: e.default.func,
|
|
38
|
+
onDrag: e.default.func,
|
|
39
|
+
onStop: e.default.func,
|
|
40
|
+
onMouseDown: e.default.func,
|
|
41
|
+
scale: e.default.number
|
|
42
|
+
}),
|
|
43
|
+
/*
|
|
44
|
+
* Initial height
|
|
45
|
+
* */
|
|
46
|
+
height: function() {
|
|
47
|
+
for (var u = arguments.length, a = new Array(u), t = 0; t < u; t++)
|
|
48
|
+
a[t] = arguments[t];
|
|
49
|
+
var l = a[0];
|
|
50
|
+
if (l.axis === "both" || l.axis === "y") {
|
|
51
|
+
var n;
|
|
52
|
+
return (n = e.default.number).isRequired.apply(n, a);
|
|
53
|
+
}
|
|
54
|
+
return e.default.number.apply(e.default, a);
|
|
55
|
+
},
|
|
56
|
+
/*
|
|
57
|
+
* Customize cursor resize handle
|
|
58
|
+
* */
|
|
59
|
+
handle: e.default.oneOfType([e.default.node, e.default.func]),
|
|
60
|
+
/*
|
|
61
|
+
* If you change this, be sure to update your css
|
|
62
|
+
* */
|
|
63
|
+
handleSize: e.default.arrayOf(e.default.number),
|
|
64
|
+
lockAspectRatio: e.default.bool,
|
|
65
|
+
/*
|
|
66
|
+
* Max X & Y measure
|
|
67
|
+
* */
|
|
68
|
+
maxConstraints: e.default.arrayOf(e.default.number),
|
|
69
|
+
/*
|
|
70
|
+
* Min X & Y measure
|
|
71
|
+
* */
|
|
72
|
+
minConstraints: e.default.arrayOf(e.default.number),
|
|
73
|
+
/*
|
|
74
|
+
* Called on stop resize event
|
|
75
|
+
* */
|
|
76
|
+
onResizeStop: e.default.func,
|
|
77
|
+
/*
|
|
78
|
+
* Called on start resize event
|
|
79
|
+
* */
|
|
80
|
+
onResizeStart: e.default.func,
|
|
81
|
+
/*
|
|
82
|
+
* Called on resize event
|
|
83
|
+
* */
|
|
84
|
+
onResize: e.default.func,
|
|
85
|
+
/*
|
|
86
|
+
* Defines which resize handles should be rendered (default: 'se')
|
|
87
|
+
* 's' - South handle (bottom-center)
|
|
88
|
+
* 'w' - West handle (left-center)
|
|
89
|
+
* 'e' - East handle (right-center)
|
|
90
|
+
* 'n' - North handle (top-center)
|
|
91
|
+
* 'sw' - Southwest handle (bottom-left)
|
|
92
|
+
* 'nw' - Northwest handle (top-left)
|
|
93
|
+
* 'se' - Southeast handle (bottom-right)
|
|
94
|
+
* 'ne' - Northeast handle (top-center)
|
|
95
|
+
* */
|
|
96
|
+
resizeHandles: e.default.arrayOf(e.default.oneOf(["s", "w", "e", "n", "sw", "nw", "se", "ne"])),
|
|
97
|
+
/*
|
|
98
|
+
* If `transform: scale(n)` is set on the parent, this should be set to `n`.
|
|
99
|
+
* */
|
|
100
|
+
transformScale: e.default.number,
|
|
101
|
+
/*
|
|
102
|
+
* Initial width
|
|
103
|
+
*/
|
|
104
|
+
width: function() {
|
|
105
|
+
for (var u = arguments.length, a = new Array(u), t = 0; t < u; t++)
|
|
106
|
+
a[t] = arguments[t];
|
|
107
|
+
var l = a[0];
|
|
108
|
+
if (l.axis === "both" || l.axis === "x") {
|
|
109
|
+
var n;
|
|
110
|
+
return (n = e.default.number).isRequired.apply(n, a);
|
|
111
|
+
}
|
|
112
|
+
return e.default.number.apply(e.default, a);
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
f.resizableProps = s;
|
|
116
|
+
export {
|
|
117
|
+
f as default
|
|
118
|
+
};
|
package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/utils.mjs
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { __exports as a } from "../../../../../../_virtual/utils.mjs";
|
|
2
|
+
import f from "react";
|
|
3
|
+
a.__esModule = !0;
|
|
4
|
+
a.cloneElement = y;
|
|
5
|
+
var l = c(f);
|
|
6
|
+
function c(e) {
|
|
7
|
+
return e && e.__esModule ? e : { default: e };
|
|
8
|
+
}
|
|
9
|
+
function i(e, r) {
|
|
10
|
+
var t = Object.keys(e);
|
|
11
|
+
if (Object.getOwnPropertySymbols) {
|
|
12
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
13
|
+
r && (n = n.filter(function(u) {
|
|
14
|
+
return Object.getOwnPropertyDescriptor(e, u).enumerable;
|
|
15
|
+
})), t.push.apply(t, n);
|
|
16
|
+
}
|
|
17
|
+
return t;
|
|
18
|
+
}
|
|
19
|
+
function o(e) {
|
|
20
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
21
|
+
var t = arguments[r] != null ? arguments[r] : {};
|
|
22
|
+
r % 2 ? i(Object(t), !0).forEach(function(n) {
|
|
23
|
+
s(e, n, t[n]);
|
|
24
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : i(Object(t)).forEach(function(n) {
|
|
25
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
return e;
|
|
29
|
+
}
|
|
30
|
+
function s(e, r, t) {
|
|
31
|
+
return r = m(r), r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
|
|
32
|
+
}
|
|
33
|
+
function m(e) {
|
|
34
|
+
var r = p(e, "string");
|
|
35
|
+
return typeof r == "symbol" ? r : String(r);
|
|
36
|
+
}
|
|
37
|
+
function p(e, r) {
|
|
38
|
+
if (typeof e != "object" || e === null)
|
|
39
|
+
return e;
|
|
40
|
+
var t = e[Symbol.toPrimitive];
|
|
41
|
+
if (t !== void 0) {
|
|
42
|
+
var n = t.call(e, r || "default");
|
|
43
|
+
if (typeof n != "object")
|
|
44
|
+
return n;
|
|
45
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
46
|
+
}
|
|
47
|
+
return (r === "string" ? String : Number)(e);
|
|
48
|
+
}
|
|
49
|
+
function y(e, r) {
|
|
50
|
+
return r.style && e.props.style && (r.style = o(o({}, e.props.style), r.style)), r.className && e.props.className && (r.className = e.props.className + " " + r.className), /* @__PURE__ */ l.default.cloneElement(e, r);
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
a as default
|
|
54
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { __module as e } from "../../../../../_virtual/index5.mjs";
|
|
2
|
+
import "./build/Resizable.mjs";
|
|
3
|
+
import "./build/ResizableBox.mjs";
|
|
4
|
+
import { __exports as r } from "../../../../../_virtual/Resizable.mjs";
|
|
5
|
+
import { __exports as t } from "../../../../../_virtual/ResizableBox.mjs";
|
|
6
|
+
e.exports = function() {
|
|
7
|
+
throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable");
|
|
8
|
+
};
|
|
9
|
+
var p = e.exports.Resizable = r.default;
|
|
10
|
+
e.exports.ResizableBox = t.default;
|
|
11
|
+
export {
|
|
12
|
+
p as Resizable
|
|
13
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as r } from "../../../../../../_virtual/
|
|
1
|
+
import { __module as r } from "../../../../../../_virtual/index6.mjs";
|
|
2
2
|
import { __require as i } from "../cjs/use-sync-external-store-shim.production.min.mjs";
|
|
3
3
|
import { __require as o } from "../cjs/use-sync-external-store-shim.development.mjs";
|
|
4
4
|
var e;
|