@m4l/components 0.1.13 → 0.1.15

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.
Files changed (139) hide show
  1. package/assets/Logo/index.js +91 -0
  2. package/commonjs.js +9 -0
  3. package/components/CommonActions/components/ActionCancel/index.js +15 -0
  4. package/components/CommonActions/components/ActionFormCancel/index.js +62 -0
  5. package/components/CommonActions/components/ActionFormIntro/index.js +35 -0
  6. package/components/CommonActions/components/ActionIntro/index.js +16 -0
  7. package/components/CommonActions/components/Actions/index.js +859 -0
  8. package/components/CompanyLogo/{index.f81c179c.js → index.js} +48 -42
  9. package/components/DataGrid/index.js +1067 -0
  10. package/components/DynamicFilter/index.js +1573 -0
  11. package/components/ErrorLabel/index.js +18 -0
  12. package/components/Icon/index.js +80 -0
  13. package/components/Image/index.js +128 -0
  14. package/components/LanguagePopover/index.js +93 -0
  15. package/components/Loadable/index.js +13 -0
  16. package/components/ModalDialog/index.js +180 -0
  17. package/components/NoItemSelected/{index.12f0ca67.js → index.js} +50 -43
  18. package/components/ObjectLogs/index.js +284 -0
  19. package/components/Page/index.js +36 -0
  20. package/components/PaperForm/index.js +110 -0
  21. package/components/Period/index.js +230 -0
  22. package/components/PropertyValue/index.js +142 -0
  23. package/components/Resizeable/{index.45995d2b.js → index.js} +19 -21
  24. package/components/ScrollBar/index.js +52 -0
  25. package/components/ScrollToTop/index.js +10 -0
  26. package/components/SplitLayout/{index.4032673d.js → index.js} +35 -35
  27. package/components/animate/LoadingScreen/{index.f1cec7db.js → index.js} +27 -29
  28. package/components/animate/MotionContainer/index.js +31 -0
  29. package/components/animate/MotionLazyContainer/index.js +13 -0
  30. package/components/animate/features.js +2 -0
  31. package/components/animate/variants/{bounce.784aaaaa.js → bounce.js} +16 -15
  32. package/components/animate/variants/container.js +20 -0
  33. package/components/animate/variants/fade.js +61 -0
  34. package/components/animate/variants/{index.7a912140.js → index.js} +0 -0
  35. package/components/animate/variants/transition.js +16 -0
  36. package/components/formatters/BooleanFormatter/index.js +52 -0
  37. package/components/formatters/DateFormatter/index.js +66 -0
  38. package/components/formatters/index.js +112 -0
  39. package/components/hook-form/FormProvider/index.js +61 -0
  40. package/components/hook-form/RHFAutocomplete/index.js +144 -0
  41. package/components/hook-form/RHFAutocompleteAsync/index.js +191 -0
  42. package/components/hook-form/RHFCheckbox/index.js +65 -0
  43. package/components/hook-form/RHFDateTime/index.js +79 -0
  44. package/components/hook-form/RHFMultiCheckbox/index.js +32 -0
  45. package/components/hook-form/RHFPeriod/index.js +47 -0
  46. package/components/hook-form/RHFRadioGroup/index.js +41 -0
  47. package/components/hook-form/RHFSelect/index.js +34 -0
  48. package/components/hook-form/RHFTextField/index.js +87 -0
  49. package/components/hook-form/RHFUpload/index.js +255 -0
  50. package/components/mui_extended/Accordion/index.js +105 -0
  51. package/components/mui_extended/Avatar/index.js +33 -0
  52. package/components/mui_extended/BoxIcon/index.js +20 -0
  53. package/components/mui_extended/Breadcrumbs/index.js +92 -0
  54. package/components/mui_extended/Button/index.js +131 -0
  55. package/components/mui_extended/IconButton/index.js +108 -0
  56. package/components/mui_extended/LinkWithRoute/index.js +30 -0
  57. package/components/mui_extended/MenuPopover/index.js +135 -0
  58. package/components/mui_extended/Pager/index.js +137 -0
  59. package/components/mui_extended/Tab/index.js +30 -0
  60. package/components/mui_extended/Typography/index.js +21 -0
  61. package/contexts/ModalContext/index.js +165 -0
  62. package/hooks/useFormAddEdit/index.js +42 -0
  63. package/hooks/useModal/index.js +4 -0
  64. package/index.js +70 -162
  65. package/lodash.js +62 -0
  66. package/node_modules.js +54 -0
  67. package/package.json +2 -1
  68. package/react-data-grid.js +2652 -0
  69. package/react-draggable.js +960 -0
  70. package/react-json-view.js +2764 -0
  71. package/react-lazy-load-image-component.js +792 -0
  72. package/react-resizable.js +541 -0
  73. package/react-splitter-layout.js +165 -0
  74. package/utils/index.js +572 -0
  75. package/assets/Logo/index.228dcb5a.js +0 -86
  76. package/commonjs.565e6834.js +0 -12
  77. package/components/CommonActions/components/ActionCancel/index.cba1b460.js +0 -17
  78. package/components/CommonActions/components/ActionFormCancel/index.be2fe891.js +0 -49
  79. package/components/CommonActions/components/ActionFormIntro/index.ca4d2674.js +0 -31
  80. package/components/CommonActions/components/ActionIntro/index.cc4b1e0e.js +0 -18
  81. package/components/CommonActions/components/Actions/index.e8148d98.js +0 -743
  82. package/components/DataGrid/index.b688877d.js +0 -894
  83. package/components/DynamicFilter/index.82ce857e.js +0 -1158
  84. package/components/ErrorLabel/index.c8615f16.js +0 -19
  85. package/components/Icon/index.cbca79b0.js +0 -70
  86. package/components/Image/index.e790b50b.js +0 -122
  87. package/components/LanguagePopover/index.3d9611cb.js +0 -87
  88. package/components/Loadable/index.f5518558.js +0 -15
  89. package/components/ModalDialog/index.3850c053.js +0 -168
  90. package/components/ObjectLogs/index.27ef875d.js +0 -266
  91. package/components/Page/index.6d69977e.js +0 -35
  92. package/components/PaperForm/index.d7c74064.js +0 -105
  93. package/components/Period/index.5e68286a.js +0 -160
  94. package/components/PropertyValue/index.ab3dd7e9.js +0 -116
  95. package/components/ScrollBar/index.39eeb2de.js +0 -49
  96. package/components/ScrollToTop/index.e06f98f6.js +0 -11
  97. package/components/animate/MotionContainer/index.8d9f9d80.js +0 -30
  98. package/components/animate/MotionLazyContainer/index.572dd012.js +0 -15
  99. package/components/animate/features.0fbf41e1.js +0 -5
  100. package/components/animate/variants/container.11f82b76.js +0 -20
  101. package/components/animate/variants/fade.b561c0fc.js +0 -59
  102. package/components/animate/variants/transition.bd46b9ce.js +0 -15
  103. package/components/formatters/BooleanFormatter/index.cca53b7f.js +0 -42
  104. package/components/formatters/DateFormatter/index.ad8d9b8e.js +0 -57
  105. package/components/formatters/index.55856d65.js +0 -106
  106. package/components/hook-form/FormProvider/index.257acd9f.js +0 -55
  107. package/components/hook-form/RHFAutocomplete/index.6ed76d4c.js +0 -122
  108. package/components/hook-form/RHFAutocompleteAsync/index.8f2c97ea.js +0 -153
  109. package/components/hook-form/RHFCheckbox/index.f9ce6c39.js +0 -59
  110. package/components/hook-form/RHFDateTime/index.fc5cbafe.js +0 -68
  111. package/components/hook-form/RHFMultiCheckbox/index.2680b3b6.js +0 -34
  112. package/components/hook-form/RHFPeriod/index.23c254e9.js +0 -45
  113. package/components/hook-form/RHFRadioGroup/index.b3335e13.js +0 -43
  114. package/components/hook-form/RHFSelect/index.b6ca8bb2.js +0 -36
  115. package/components/hook-form/RHFTextField/index.4c455f75.js +0 -77
  116. package/components/hook-form/RHFUpload/index.ed3d739f.js +0 -244
  117. package/components/mui_extended/Accordion/index.2116e423.js +0 -103
  118. package/components/mui_extended/Avatar/index.0a2a4523.js +0 -32
  119. package/components/mui_extended/BoxIcon/index.e638ecc8.js +0 -22
  120. package/components/mui_extended/Breadcrumbs/index.5e37d903.js +0 -89
  121. package/components/mui_extended/Button/index.84d8898c.js +0 -110
  122. package/components/mui_extended/IconButton/index.88f3aadb.js +0 -98
  123. package/components/mui_extended/LinkWithRoute/index.d4b263de.js +0 -28
  124. package/components/mui_extended/MenuPopover/index.488fc536.js +0 -131
  125. package/components/mui_extended/Pager/index.0576814f.js +0 -126
  126. package/components/mui_extended/Tab/index.e0653a0a.js +0 -28
  127. package/components/mui_extended/Typography/index.0c4604b3.js +0 -22
  128. package/contexts/ModalContext/index.2188b69e.js +0 -150
  129. package/hooks/useFormAddEdit/index.d4845f1a.js +0 -26
  130. package/hooks/useModal/index.6571d2d9.js +0 -6
  131. package/lodash.e09401f0.js +0 -32
  132. package/node_modules.168cb897.js +0 -55
  133. package/react-data-grid.d46d625e.js +0 -2115
  134. package/react-draggable.20e95c61.js +0 -714
  135. package/react-json-view.f56a7f8e.js +0 -2762
  136. package/react-lazy-load-image-component.45b56650.js +0 -784
  137. package/react-resizable.5277deaf.js +0 -371
  138. package/react-splitter-layout.7810ac1b.js +0 -165
  139. package/utils/index.214d9542.js +0 -435
@@ -1,371 +0,0 @@
1
- import T from "react";
2
- import { c as Y } from "./react-draggable.20e95c61.js";
3
- import { u as F } from "./utils/index.214d9542.js";
4
- import k from "prop-types";
5
- var M = { exports: {} }, z = {}, y = {};
6
- y.__esModule = !0;
7
- y.resizableProps = void 0;
8
- var o = V(k);
9
- function V(e) {
10
- return e && e.__esModule ? e : { default: e };
11
- }
12
- var G = {
13
- axis: o.default.oneOf(["both", "x", "y", "none"]),
14
- className: o.default.string,
15
- children: o.default.element.isRequired,
16
- draggableOpts: o.default.shape({
17
- allowAnyClick: o.default.bool,
18
- cancel: o.default.string,
19
- children: o.default.node,
20
- disabled: o.default.bool,
21
- enableUserSelectHack: o.default.bool,
22
- offsetParent: o.default.node,
23
- grid: o.default.arrayOf(o.default.number),
24
- handle: o.default.string,
25
- nodeRef: o.default.object,
26
- onStart: o.default.func,
27
- onDrag: o.default.func,
28
- onStop: o.default.func,
29
- onMouseDown: o.default.func,
30
- scale: o.default.number
31
- }),
32
- height: o.default.number.isRequired,
33
- handle: o.default.oneOfType([o.default.node, o.default.func]),
34
- handleSize: o.default.arrayOf(o.default.number),
35
- lockAspectRatio: o.default.bool,
36
- maxConstraints: o.default.arrayOf(o.default.number),
37
- minConstraints: o.default.arrayOf(o.default.number),
38
- onResizeStop: o.default.func,
39
- onResizeStart: o.default.func,
40
- onResize: o.default.func,
41
- resizeHandles: o.default.arrayOf(o.default.oneOf(["s", "w", "e", "n", "sw", "nw", "se", "ne"])),
42
- transformScale: o.default.number,
43
- width: o.default.number.isRequired
44
- };
45
- y.resizableProps = G;
46
- z.__esModule = !0;
47
- z.default = void 0;
48
- var R = te(T), J = Y.exports, Q = F, Z = y, ee = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
49
- function A(e) {
50
- if (typeof WeakMap != "function")
51
- return null;
52
- var i = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap();
53
- return (A = function(t) {
54
- return t ? a : i;
55
- })(e);
56
- }
57
- function te(e, i) {
58
- if (!i && e && e.__esModule)
59
- return e;
60
- if (e === null || typeof e != "object" && typeof e != "function")
61
- return { default: e };
62
- var a = A(i);
63
- if (a && a.has(e))
64
- return a.get(e);
65
- var r = {}, t = Object.defineProperty && Object.getOwnPropertyDescriptor;
66
- for (var n in e)
67
- if (n !== "default" && Object.prototype.hasOwnProperty.call(e, n)) {
68
- var s = t ? Object.getOwnPropertyDescriptor(e, n) : null;
69
- s && (s.get || s.set) ? Object.defineProperty(r, n, s) : r[n] = e[n];
70
- }
71
- return r.default = e, a && a.set(e, r), r;
72
- }
73
- function D() {
74
- return D = Object.assign || function(e) {
75
- for (var i = 1; i < arguments.length; i++) {
76
- var a = arguments[i];
77
- for (var r in a)
78
- Object.prototype.hasOwnProperty.call(a, r) && (e[r] = a[r]);
79
- }
80
- return e;
81
- }, D.apply(this, arguments);
82
- }
83
- function re(e, i) {
84
- if (e == null)
85
- return {};
86
- var a = {}, r = Object.keys(e), t, n;
87
- for (n = 0; n < r.length; n++)
88
- t = r[n], !(i.indexOf(t) >= 0) && (a[t] = e[t]);
89
- return a;
90
- }
91
- function j(e, i) {
92
- var a = Object.keys(e);
93
- if (Object.getOwnPropertySymbols) {
94
- var r = Object.getOwnPropertySymbols(e);
95
- i && (r = r.filter(function(t) {
96
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
97
- })), a.push.apply(a, r);
98
- }
99
- return a;
100
- }
101
- function _(e) {
102
- for (var i = 1; i < arguments.length; i++) {
103
- var a = arguments[i] != null ? arguments[i] : {};
104
- i % 2 ? j(Object(a), !0).forEach(function(r) {
105
- ne(e, r, a[r]);
106
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : j(Object(a)).forEach(function(r) {
107
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(a, r));
108
- });
109
- }
110
- return e;
111
- }
112
- function ne(e, i, a) {
113
- return i in e ? Object.defineProperty(e, i, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : e[i] = a, e;
114
- }
115
- function ae(e, i) {
116
- e.prototype = Object.create(i.prototype), e.prototype.constructor = e, H(e, i);
117
- }
118
- function H(e, i) {
119
- return H = Object.setPrototypeOf || function(r, t) {
120
- return r.__proto__ = t, r;
121
- }, H(e, i);
122
- }
123
- var W = /* @__PURE__ */ function(e) {
124
- ae(i, e);
125
- function i() {
126
- for (var r, t = arguments.length, n = new Array(t), s = 0; s < t; s++)
127
- n[s] = arguments[s];
128
- return r = e.call.apply(e, [this].concat(n)) || this, r.handleRefs = {}, r.lastHandleRect = null, r.slack = null, r;
129
- }
130
- var a = i.prototype;
131
- return a.componentWillUnmount = function() {
132
- this.resetData();
133
- }, a.resetData = function() {
134
- this.lastHandleRect = this.slack = null;
135
- }, a.runConstraints = function(t, n) {
136
- var s = this.props, l = s.minConstraints, p = s.maxConstraints, u = s.lockAspectRatio;
137
- if (!l && !p && !u)
138
- return [t, n];
139
- if (u) {
140
- var c = this.props.width / this.props.height, f = t - this.props.width, d = n - this.props.height;
141
- Math.abs(f) > Math.abs(d * c) ? n = t / c : t = n * c;
142
- }
143
- var h = t, O = n, g = this.slack || [0, 0], v = g[0], m = g[1];
144
- return t += v, n += m, l && (t = Math.max(l[0], t), n = Math.max(l[1], n)), p && (t = Math.min(p[0], t), n = Math.min(p[1], n)), this.slack = [v + (h - t), m + (O - n)], [t, n];
145
- }, a.resizeHandler = function(t, n) {
146
- var s = this;
147
- return function(l, p) {
148
- var u = p.node, c = p.deltaX, f = p.deltaY;
149
- t === "onResizeStart" && s.resetData();
150
- var d = (s.props.axis === "both" || s.props.axis === "x") && n !== "n" && n !== "s", h = (s.props.axis === "both" || s.props.axis === "y") && n !== "e" && n !== "w";
151
- if (!(!d && !h)) {
152
- var O = n[0], g = n[n.length - 1], v = u.getBoundingClientRect();
153
- if (s.lastHandleRect != null) {
154
- if (g === "w") {
155
- var m = v.left - s.lastHandleRect.left;
156
- c += m;
157
- }
158
- if (O === "n") {
159
- var N = v.top - s.lastHandleRect.top;
160
- f += N;
161
- }
162
- }
163
- s.lastHandleRect = v, g === "w" && (c = -c), O === "n" && (f = -f);
164
- var b = s.props.width + (d ? c / s.props.transformScale : 0), w = s.props.height + (h ? f / s.props.transformScale : 0), q = s.runConstraints(b, w);
165
- b = q[0], w = q[1];
166
- var U = b !== s.props.width || w !== s.props.height, E = typeof s.props[t] == "function" ? s.props[t] : null, X = t === "onResize" && !U;
167
- E && !X && (l.persist == null || l.persist(), E(l, {
168
- node: u,
169
- size: {
170
- width: b,
171
- height: w
172
- },
173
- handle: n
174
- })), t === "onResizeStop" && s.resetData();
175
- }
176
- };
177
- }, a.renderResizeHandle = function(t, n) {
178
- var s = this.props.handle;
179
- if (!s)
180
- return /* @__PURE__ */ R.createElement("span", {
181
- className: "react-resizable-handle react-resizable-handle-" + t,
182
- ref: n
183
- });
184
- if (typeof s == "function")
185
- return s(t, n);
186
- var l = typeof s.type == "string", p = _({
187
- ref: n
188
- }, l ? {} : {
189
- handleAxis: t
190
- });
191
- return /* @__PURE__ */ R.cloneElement(s, p);
192
- }, a.render = function() {
193
- var t = this, n = this.props, s = n.children, l = n.className, p = n.draggableOpts;
194
- n.width, n.height, n.handle, n.handleSize, n.lockAspectRatio, n.axis, n.minConstraints, n.maxConstraints, n.onResize, n.onResizeStop, n.onResizeStart;
195
- var u = n.resizeHandles;
196
- n.transformScale;
197
- var c = re(n, ee);
198
- return (0, Q.cloneElement)(s, _(_({}, c), {}, {
199
- className: (l ? l + " " : "") + "react-resizable",
200
- children: [].concat(s.props.children, u.map(function(f) {
201
- var d, h = (d = t.handleRefs[f]) != null ? d : t.handleRefs[f] = /* @__PURE__ */ R.createRef();
202
- return /* @__PURE__ */ R.createElement(J.DraggableCore, D({}, p, {
203
- nodeRef: h,
204
- key: "resizableHandle-" + f,
205
- onStop: t.resizeHandler("onResizeStop", f),
206
- onStart: t.resizeHandler("onResizeStart", f),
207
- onDrag: t.resizeHandler("onResize", f)
208
- }), t.renderResizeHandle(f, h));
209
- }))
210
- }));
211
- }, i;
212
- }(R.Component);
213
- z.default = W;
214
- W.propTypes = Z.resizableProps;
215
- W.defaultProps = {
216
- axis: "both",
217
- handleSize: [20, 20],
218
- lockAspectRatio: !1,
219
- minConstraints: [20, 20],
220
- maxConstraints: [1 / 0, 1 / 0],
221
- resizeHandles: ["se"],
222
- transformScale: 1
223
- };
224
- var P = {};
225
- P.__esModule = !0;
226
- P.default = void 0;
227
- var x = pe(T), ie = I(k), se = I(z), oe = y, le = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
228
- function I(e) {
229
- return e && e.__esModule ? e : { default: e };
230
- }
231
- function K(e) {
232
- if (typeof WeakMap != "function")
233
- return null;
234
- var i = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap();
235
- return (K = function(t) {
236
- return t ? a : i;
237
- })(e);
238
- }
239
- function pe(e, i) {
240
- if (!i && e && e.__esModule)
241
- return e;
242
- if (e === null || typeof e != "object" && typeof e != "function")
243
- return { default: e };
244
- var a = K(i);
245
- if (a && a.has(e))
246
- return a.get(e);
247
- var r = {}, t = Object.defineProperty && Object.getOwnPropertyDescriptor;
248
- for (var n in e)
249
- if (n !== "default" && Object.prototype.hasOwnProperty.call(e, n)) {
250
- var s = t ? Object.getOwnPropertyDescriptor(e, n) : null;
251
- s && (s.get || s.set) ? Object.defineProperty(r, n, s) : r[n] = e[n];
252
- }
253
- return r.default = e, a && a.set(e, r), r;
254
- }
255
- function C() {
256
- return C = Object.assign || function(e) {
257
- for (var i = 1; i < arguments.length; i++) {
258
- var a = arguments[i];
259
- for (var r in a)
260
- Object.prototype.hasOwnProperty.call(a, r) && (e[r] = a[r]);
261
- }
262
- return e;
263
- }, C.apply(this, arguments);
264
- }
265
- function B(e, i) {
266
- var a = Object.keys(e);
267
- if (Object.getOwnPropertySymbols) {
268
- var r = Object.getOwnPropertySymbols(e);
269
- i && (r = r.filter(function(t) {
270
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
271
- })), a.push.apply(a, r);
272
- }
273
- return a;
274
- }
275
- function S(e) {
276
- for (var i = 1; i < arguments.length; i++) {
277
- var a = arguments[i] != null ? arguments[i] : {};
278
- i % 2 ? B(Object(a), !0).forEach(function(r) {
279
- fe(e, r, a[r]);
280
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : B(Object(a)).forEach(function(r) {
281
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(a, r));
282
- });
283
- }
284
- return e;
285
- }
286
- function fe(e, i, a) {
287
- return i in e ? Object.defineProperty(e, i, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : e[i] = a, e;
288
- }
289
- function ue(e, i) {
290
- if (e == null)
291
- return {};
292
- var a = {}, r = Object.keys(e), t, n;
293
- for (n = 0; n < r.length; n++)
294
- t = r[n], !(i.indexOf(t) >= 0) && (a[t] = e[t]);
295
- return a;
296
- }
297
- function ce(e, i) {
298
- e.prototype = Object.create(i.prototype), e.prototype.constructor = e, $(e, i);
299
- }
300
- function $(e, i) {
301
- return $ = Object.setPrototypeOf || function(r, t) {
302
- return r.__proto__ = t, r;
303
- }, $(e, i);
304
- }
305
- var L = /* @__PURE__ */ function(e) {
306
- ce(i, e);
307
- function i() {
308
- for (var r, t = arguments.length, n = new Array(t), s = 0; s < t; s++)
309
- n[s] = arguments[s];
310
- return r = e.call.apply(e, [this].concat(n)) || this, r.state = {
311
- width: r.props.width,
312
- height: r.props.height,
313
- propsWidth: r.props.width,
314
- propsHeight: r.props.height
315
- }, r.onResize = function(l, p) {
316
- var u = p.size;
317
- r.props.onResize ? (l.persist == null || l.persist(), r.setState(u, function() {
318
- return r.props.onResize && r.props.onResize(l, p);
319
- })) : r.setState(u);
320
- }, r;
321
- }
322
- i.getDerivedStateFromProps = function(t, n) {
323
- return n.propsWidth !== t.width || n.propsHeight !== t.height ? {
324
- width: t.width,
325
- height: t.height,
326
- propsWidth: t.width,
327
- propsHeight: t.height
328
- } : null;
329
- };
330
- var a = i.prototype;
331
- return a.render = function() {
332
- var t = this.props, n = t.handle, s = t.handleSize;
333
- t.onResize;
334
- var l = t.onResizeStart, p = t.onResizeStop, u = t.draggableOpts, c = t.minConstraints, f = t.maxConstraints, d = t.lockAspectRatio, h = t.axis;
335
- t.width, t.height;
336
- var O = t.resizeHandles, g = t.style, v = t.transformScale, m = ue(t, le);
337
- return /* @__PURE__ */ x.createElement(se.default, {
338
- axis: h,
339
- draggableOpts: u,
340
- handle: n,
341
- handleSize: s,
342
- height: this.state.height,
343
- lockAspectRatio: d,
344
- maxConstraints: f,
345
- minConstraints: c,
346
- onResizeStart: l,
347
- onResize: this.onResize,
348
- onResizeStop: p,
349
- resizeHandles: O,
350
- transformScale: v,
351
- width: this.state.width
352
- }, /* @__PURE__ */ x.createElement("div", C({}, m, {
353
- style: S(S({}, g), {}, {
354
- width: this.state.width + "px",
355
- height: this.state.height + "px"
356
- })
357
- })));
358
- }, i;
359
- }(x.Component);
360
- P.default = L;
361
- L.propTypes = S(S({}, oe.resizableProps), {}, {
362
- children: ie.default.element
363
- });
364
- M.exports = function() {
365
- throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable");
366
- };
367
- M.exports.Resizable = z.default;
368
- var Oe = M.exports.ResizableBox = P.default;
369
- export {
370
- Oe as R
371
- };
@@ -1,165 +0,0 @@
1
- import { g as k } from "./commonjs.565e6834.js";
2
- import L from "prop-types";
3
- import I from "react";
4
- var D = { exports: {} };
5
- (function(R, U) {
6
- (function(P, M) {
7
- R.exports = M(L, I);
8
- })(window, function(P, M) {
9
- return function(g) {
10
- var v = {};
11
- function o(t) {
12
- if (v[t])
13
- return v[t].exports;
14
- var r = v[t] = { i: t, l: !1, exports: {} };
15
- return g[t].call(r.exports, r, r.exports, o), r.l = !0, r.exports;
16
- }
17
- return o.m = g, o.c = v, o.d = function(t, r, S) {
18
- o.o(t, r) || Object.defineProperty(t, r, { enumerable: !0, get: S });
19
- }, o.r = function(t) {
20
- typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 });
21
- }, o.t = function(t, r) {
22
- if (1 & r && (t = o(t)), 8 & r || 4 & r && typeof t == "object" && t && t.__esModule)
23
- return t;
24
- var S = /* @__PURE__ */ Object.create(null);
25
- if (o.r(S), Object.defineProperty(S, "default", { enumerable: !0, value: t }), 2 & r && typeof t != "string")
26
- for (var i in t)
27
- o.d(S, i, function(z) {
28
- return t[z];
29
- }.bind(null, i));
30
- return S;
31
- }, o.n = function(t) {
32
- var r = t && t.__esModule ? function() {
33
- return t.default;
34
- } : function() {
35
- return t;
36
- };
37
- return o.d(r, "a", r), r;
38
- }, o.o = function(t, r) {
39
- return Object.prototype.hasOwnProperty.call(t, r);
40
- }, o.p = "", o(o.s = 2);
41
- }([function(g, v) {
42
- g.exports = P;
43
- }, function(g, v) {
44
- g.exports = M;
45
- }, function(g, v, o) {
46
- g.exports = o(3);
47
- }, function(g, v, o) {
48
- o.r(v);
49
- var t = o(1), r = o.n(t), S = o(0), i = o.n(S);
50
- function z(c) {
51
- var a = c.size || 0, h = c.percentage ? "%" : "px", u = "layout-pane", n = {};
52
- return c.primary ? u += " layout-pane-primary" : c.vertical ? n.height = "".concat(a).concat(h) : n.width = "".concat(a).concat(h), r.a.createElement("div", { className: u, style: n }, c.children);
53
- }
54
- z.propTypes = { vertical: i.a.bool, primary: i.a.bool, size: i.a.number, percentage: i.a.bool, children: i.a.oneOfType([i.a.arrayOf(i.a.node), i.a.node]) }, z.defaultProps = { vertical: !1, primary: !1, size: 0, percentage: !1, children: [] };
55
- var T = z;
56
- function x(c) {
57
- return (x = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
58
- return typeof a;
59
- } : function(a) {
60
- return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
61
- })(c);
62
- }
63
- function j(c, a) {
64
- for (var h = 0; h < a.length; h++) {
65
- var u = a[h];
66
- u.enumerable = u.enumerable || !1, u.configurable = !0, "value" in u && (u.writable = !0), Object.defineProperty(c, u.key, u);
67
- }
68
- }
69
- function E(c) {
70
- return (E = Object.setPrototypeOf ? Object.getPrototypeOf : function(a) {
71
- return a.__proto__ || Object.getPrototypeOf(a);
72
- })(c);
73
- }
74
- function O(c, a) {
75
- return (O = Object.setPrototypeOf || function(h, u) {
76
- return h.__proto__ = u, h;
77
- })(c, a);
78
- }
79
- function y(c) {
80
- if (c === void 0)
81
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
82
- return c;
83
- }
84
- function C() {
85
- if (document.body.createTextRange) {
86
- var c = document.body.createTextRange();
87
- c.collapse(), c.select();
88
- } else
89
- window.getSelection ? window.getSelection().empty ? window.getSelection().empty() : window.getSelection().removeAllRanges && window.getSelection().removeAllRanges() : document.selection && document.selection.empty();
90
- }
91
- var w = function(c) {
92
- function a(n) {
93
- var e, s, d;
94
- return function(p, l) {
95
- if (!(p instanceof l))
96
- throw new TypeError("Cannot call a class as a function");
97
- }(this, a), s = this, (e = !(d = E(a).call(this, n)) || x(d) !== "object" && typeof d != "function" ? y(s) : d).handleResize = e.handleResize.bind(y(y(e))), e.handleMouseMove = e.handleMouseMove.bind(y(y(e))), e.handleMouseUp = e.handleMouseUp.bind(y(y(e))), e.handleTouchMove = e.handleTouchMove.bind(y(y(e))), e.handleSplitterMouseDown = e.handleSplitterMouseDown.bind(y(y(e))), e.state = { secondaryPaneSize: 0, resizing: !1 }, e;
98
- }
99
- var h, u;
100
- return function(n, e) {
101
- if (typeof e != "function" && e !== null)
102
- throw new TypeError("Super expression must either be null or a function");
103
- n.prototype = Object.create(e && e.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), e && O(n, e);
104
- }(a, r.a.Component), h = a, (u = [{ key: "componentDidMount", value: function() {
105
- var n;
106
- if (window.addEventListener("resize", this.handleResize), document.addEventListener("mouseup", this.handleMouseUp), document.addEventListener("mousemove", this.handleMouseMove), document.addEventListener("touchend", this.handleMouseUp), document.addEventListener("touchmove", this.handleTouchMove), this.props.secondaryInitialSize !== void 0)
107
- n = this.props.secondaryInitialSize;
108
- else {
109
- var e, s = this.container.getBoundingClientRect();
110
- e = this.splitter ? this.splitter.getBoundingClientRect() : { width: 4, height: 4 }, n = this.getSecondaryPaneSize(s, e, { left: s.left + (s.width - e.width) / 2, top: s.top + (s.height - e.height) / 2 }, !1);
111
- }
112
- this.setState({ secondaryPaneSize: n });
113
- } }, { key: "componentDidUpdate", value: function(n, e) {
114
- e.secondaryPaneSize !== this.state.secondaryPaneSize && this.props.onSecondaryPaneSizeChange && this.props.onSecondaryPaneSizeChange(this.state.secondaryPaneSize), e.resizing !== this.state.resizing && (this.state.resizing ? this.props.onDragStart && this.props.onDragStart() : this.props.onDragEnd && this.props.onDragEnd());
115
- } }, { key: "componentWillUnmount", value: function() {
116
- window.removeEventListener("resize", this.handleResize), document.removeEventListener("mouseup", this.handleMouseUp), document.removeEventListener("mousemove", this.handleMouseMove), document.removeEventListener("touchend", this.handleMouseUp), document.removeEventListener("touchmove", this.handleTouchMove);
117
- } }, { key: "getSecondaryPaneSize", value: function(n, e, s, d) {
118
- var p, l, f, m;
119
- this.props.vertical ? (p = n.height, l = e.height, f = s.top - n.top) : (p = n.width, l = e.width, f = s.left - n.left), d && (f -= l / 2), f < 0 ? f = 0 : f > p - l && (f = p - l);
120
- var b = p - l - (m = this.props.primaryIndex === 1 ? f : p - l - f);
121
- return this.props.percentage && (m = 100 * m / p, b = 100 * b / p, l = 100 * l / p, p = 100), b < this.props.primaryMinSize ? m = Math.max(m - (this.props.primaryMinSize - b), 0) : m < this.props.secondaryMinSize && (m = Math.min(p - l - this.props.primaryMinSize, this.props.secondaryMinSize)), m;
122
- } }, { key: "handleResize", value: function() {
123
- if (this.splitter && !this.props.percentage) {
124
- var n = this.container.getBoundingClientRect(), e = this.splitter.getBoundingClientRect(), s = this.getSecondaryPaneSize(n, e, { left: e.left, top: e.top }, !1);
125
- this.setState({ secondaryPaneSize: s });
126
- }
127
- } }, { key: "handleMouseMove", value: function(n) {
128
- if (this.state.resizing) {
129
- var e = this.container.getBoundingClientRect(), s = this.splitter.getBoundingClientRect(), d = this.getSecondaryPaneSize(e, s, { left: n.clientX, top: n.clientY }, !0);
130
- C(), this.setState({ secondaryPaneSize: d });
131
- }
132
- } }, { key: "handleTouchMove", value: function(n) {
133
- this.handleMouseMove(n.changedTouches[0]);
134
- } }, { key: "handleSplitterMouseDown", value: function() {
135
- C(), this.setState({ resizing: !0 });
136
- } }, { key: "handleMouseUp", value: function() {
137
- this.setState(function(n) {
138
- return n.resizing ? { resizing: !1 } : null;
139
- });
140
- } }, { key: "render", value: function() {
141
- var n = this, e = "splitter-layout";
142
- this.props.customClassName && (e += " ".concat(this.props.customClassName)), this.props.vertical && (e += " splitter-layout-vertical"), this.state.resizing && (e += " layout-changing");
143
- var s = r.a.Children.toArray(this.props.children).slice(0, 2);
144
- s.length === 0 && s.push(r.a.createElement("div", null));
145
- for (var d = [], p = this.props.primaryIndex !== 0 && this.props.primaryIndex !== 1 ? 0 : this.props.primaryIndex, l = 0; l < s.length; ++l) {
146
- var f = !0, m = null;
147
- s.length > 1 && l !== p && (f = !1, m = this.state.secondaryPaneSize), d.push(r.a.createElement(T, { vertical: this.props.vertical, percentage: this.props.percentage, primary: f, size: m }, s[l]));
148
- }
149
- return r.a.createElement("div", { className: e, ref: function(b) {
150
- n.container = b;
151
- } }, d[0], d.length > 1 && r.a.createElement("div", { role: "separator", className: "layout-splitter", ref: function(b) {
152
- n.splitter = b;
153
- }, onMouseDown: this.handleSplitterMouseDown, onTouchStart: this.handleSplitterMouseDown }), d.length > 1 && d[1]);
154
- } }]) && j(h.prototype, u), a;
155
- }();
156
- w.propTypes = { customClassName: i.a.string, vertical: i.a.bool, percentage: i.a.bool, primaryIndex: i.a.number, primaryMinSize: i.a.number, secondaryInitialSize: i.a.number, secondaryMinSize: i.a.number, onDragStart: i.a.func, onDragEnd: i.a.func, onSecondaryPaneSizeChange: i.a.func, children: i.a.arrayOf(i.a.node) }, w.defaultProps = { customClassName: "", vertical: !1, percentage: !1, primaryIndex: 0, primaryMinSize: 0, secondaryInitialSize: void 0, secondaryMinSize: 0, onDragStart: null, onDragEnd: null, onSecondaryPaneSizeChange: null, children: [] };
157
- var _ = w;
158
- v.default = _;
159
- }]);
160
- });
161
- })(D);
162
- const $ = /* @__PURE__ */ k(D.exports);
163
- export {
164
- $ as S
165
- };