@tatamicks/core 0.0.1 → 0.0.2
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/index.css +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +494 -494
- package/dist/index.mjs.map +1 -1
- package/package.json +79 -79
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './index.css';var kr = Object.defineProperty;
|
|
2
2
|
var Gr = (t, e, n) => e in t ? kr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var Ae = (t, e, n) => Gr(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import Pn, { memo as Y, useCallback as $, useRef as It, useEffect as Ot, useState as dt, createContext as Br, useContext as
|
|
4
|
+
import Pn, { memo as Y, useCallback as $, useRef as It, useEffect as Ot, useState as dt, createContext as Br, useContext as Xe, useMemo as M, forwardRef as qe, useImperativeHandle as Mn } from "react";
|
|
5
5
|
var ve = { exports: {} }, ee = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
@@ -18,11 +18,11 @@ function Vr() {
|
|
|
18
18
|
vn = 1;
|
|
19
19
|
var t = Pn, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, o = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
20
20
|
function i(l, c, f) {
|
|
21
|
-
var h, v = {}, x = null,
|
|
22
|
-
f !== void 0 && (x = "" + f), c.key !== void 0 && (x = "" + c.key), c.ref !== void 0 && (
|
|
21
|
+
var h, v = {}, x = null, g = null;
|
|
22
|
+
f !== void 0 && (x = "" + f), c.key !== void 0 && (x = "" + c.key), c.ref !== void 0 && (g = c.ref);
|
|
23
23
|
for (h in c) s.call(c, h) && !a.hasOwnProperty(h) && (v[h] = c[h]);
|
|
24
24
|
if (l && l.defaultProps) for (h in c = l.defaultProps, c) v[h] === void 0 && (v[h] = c[h]);
|
|
25
|
-
return { $$typeof: e, type: l, key: x, ref:
|
|
25
|
+
return { $$typeof: e, type: l, key: x, ref: g, props: v, _owner: o.current };
|
|
26
26
|
}
|
|
27
27
|
return ee.Fragment = n, ee.jsx = i, ee.jsxs = i, ee;
|
|
28
28
|
}
|
|
@@ -39,45 +39,45 @@ var ne = {};
|
|
|
39
39
|
var xn;
|
|
40
40
|
function Fr() {
|
|
41
41
|
return xn || (xn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
42
|
-
var t = Pn, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), x = Symbol.for("react.lazy"),
|
|
42
|
+
var t = Pn, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), N = Symbol.iterator, w = "@@iterator";
|
|
43
43
|
function p(u) {
|
|
44
44
|
if (u === null || typeof u != "object")
|
|
45
45
|
return null;
|
|
46
|
-
var
|
|
47
|
-
return typeof
|
|
46
|
+
var _ = N && u[N] || u[w];
|
|
47
|
+
return typeof _ == "function" ? _ : null;
|
|
48
48
|
}
|
|
49
49
|
var m = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
50
50
|
function d(u) {
|
|
51
51
|
{
|
|
52
|
-
for (var
|
|
52
|
+
for (var _ = arguments.length, D = new Array(_ > 1 ? _ - 1 : 0), k = 1; k < _; k++)
|
|
53
53
|
D[k - 1] = arguments[k];
|
|
54
|
-
|
|
54
|
+
b("error", u, D);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function b(u, _, D) {
|
|
58
58
|
{
|
|
59
59
|
var k = m.ReactDebugCurrentFrame, z = k.getStackAddendum();
|
|
60
|
-
z !== "" && (
|
|
60
|
+
z !== "" && (_ += "%s", D = D.concat([z]));
|
|
61
61
|
var H = D.map(function(F) {
|
|
62
62
|
return String(F);
|
|
63
63
|
});
|
|
64
|
-
H.unshift("Warning: " +
|
|
64
|
+
H.unshift("Warning: " + _), Function.prototype.apply.call(console[u], console, H);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
var y = !1, R = !1, G = !1, T = !1, j = !1, A;
|
|
68
68
|
A = Symbol.for("react.module.reference");
|
|
69
69
|
function P(u) {
|
|
70
|
-
return !!(typeof u == "string" || typeof u == "function" || u === s || u === a || j || u === o || u === f || u === h || T || u ===
|
|
70
|
+
return !!(typeof u == "string" || typeof u == "function" || u === s || u === a || j || u === o || u === f || u === h || T || u === g || y || R || G || typeof u == "object" && u !== null && (u.$$typeof === x || u.$$typeof === v || u.$$typeof === i || u.$$typeof === l || u.$$typeof === c || // This needs to include all possible module reference object
|
|
71
71
|
// types supported by any Flight configuration anywhere since
|
|
72
72
|
// we don't know which Flight build this will end up being used
|
|
73
73
|
// with.
|
|
74
74
|
u.$$typeof === A || u.getModuleId !== void 0));
|
|
75
75
|
}
|
|
76
|
-
function B(u,
|
|
76
|
+
function B(u, _, D) {
|
|
77
77
|
var k = u.displayName;
|
|
78
78
|
if (k)
|
|
79
79
|
return k;
|
|
80
|
-
var z =
|
|
80
|
+
var z = _.displayName || _.name || "";
|
|
81
81
|
return z !== "" ? D + "(" + z + ")" : D;
|
|
82
82
|
}
|
|
83
83
|
function C(u) {
|
|
@@ -107,8 +107,8 @@ function Fr() {
|
|
|
107
107
|
if (typeof u == "object")
|
|
108
108
|
switch (u.$$typeof) {
|
|
109
109
|
case l:
|
|
110
|
-
var
|
|
111
|
-
return C(
|
|
110
|
+
var _ = u;
|
|
111
|
+
return C(_) + ".Consumer";
|
|
112
112
|
case i:
|
|
113
113
|
var D = u;
|
|
114
114
|
return C(D._context) + ".Provider";
|
|
@@ -128,18 +128,18 @@ function Fr() {
|
|
|
128
128
|
}
|
|
129
129
|
return null;
|
|
130
130
|
}
|
|
131
|
-
var E = Object.assign, I = 0, O, S,
|
|
132
|
-
function
|
|
131
|
+
var E = Object.assign, I = 0, O, S, X, tt, et, ft, ut;
|
|
132
|
+
function q() {
|
|
133
133
|
}
|
|
134
|
-
|
|
134
|
+
q.__reactDisabledLog = !0;
|
|
135
135
|
function St() {
|
|
136
136
|
{
|
|
137
137
|
if (I === 0) {
|
|
138
|
-
O = console.log, S = console.info,
|
|
138
|
+
O = console.log, S = console.info, X = console.warn, tt = console.error, et = console.group, ft = console.groupCollapsed, ut = console.groupEnd;
|
|
139
139
|
var u = {
|
|
140
140
|
configurable: !0,
|
|
141
141
|
enumerable: !0,
|
|
142
|
-
value:
|
|
142
|
+
value: q,
|
|
143
143
|
writable: !0
|
|
144
144
|
};
|
|
145
145
|
Object.defineProperties(console, {
|
|
@@ -171,7 +171,7 @@ function Fr() {
|
|
|
171
171
|
value: S
|
|
172
172
|
}),
|
|
173
173
|
warn: E({}, u, {
|
|
174
|
-
value:
|
|
174
|
+
value: X
|
|
175
175
|
}),
|
|
176
176
|
error: E({}, u, {
|
|
177
177
|
value: tt
|
|
@@ -191,7 +191,7 @@ function Fr() {
|
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
var Zt = m.ReactCurrentDispatcher, Qt;
|
|
194
|
-
function Dt(u,
|
|
194
|
+
function Dt(u, _, D) {
|
|
195
195
|
{
|
|
196
196
|
if (Qt === void 0)
|
|
197
197
|
try {
|
|
@@ -209,7 +209,7 @@ function Fr() {
|
|
|
209
209
|
var De = typeof WeakMap == "function" ? WeakMap : Map;
|
|
210
210
|
Vt = new De();
|
|
211
211
|
}
|
|
212
|
-
function te(u,
|
|
212
|
+
function te(u, _) {
|
|
213
213
|
if (!u || Rt)
|
|
214
214
|
return "";
|
|
215
215
|
{
|
|
@@ -224,7 +224,7 @@ function Fr() {
|
|
|
224
224
|
var H;
|
|
225
225
|
H = Zt.current, Zt.current = null, St();
|
|
226
226
|
try {
|
|
227
|
-
if (
|
|
227
|
+
if (_) {
|
|
228
228
|
var F = function() {
|
|
229
229
|
throw Error();
|
|
230
230
|
};
|
|
@@ -235,29 +235,29 @@ function Fr() {
|
|
|
235
235
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
236
236
|
try {
|
|
237
237
|
Reflect.construct(F, []);
|
|
238
|
-
} catch (
|
|
239
|
-
k =
|
|
238
|
+
} catch (gt) {
|
|
239
|
+
k = gt;
|
|
240
240
|
}
|
|
241
241
|
Reflect.construct(u, [], F);
|
|
242
242
|
} else {
|
|
243
243
|
try {
|
|
244
244
|
F.call();
|
|
245
|
-
} catch (
|
|
246
|
-
k =
|
|
245
|
+
} catch (gt) {
|
|
246
|
+
k = gt;
|
|
247
247
|
}
|
|
248
248
|
u.call(F.prototype);
|
|
249
249
|
}
|
|
250
250
|
} else {
|
|
251
251
|
try {
|
|
252
252
|
throw Error();
|
|
253
|
-
} catch (
|
|
254
|
-
k =
|
|
253
|
+
} catch (gt) {
|
|
254
|
+
k = gt;
|
|
255
255
|
}
|
|
256
256
|
u();
|
|
257
257
|
}
|
|
258
|
-
} catch (
|
|
259
|
-
if (
|
|
260
|
-
for (var V =
|
|
258
|
+
} catch (gt) {
|
|
259
|
+
if (gt && k && typeof gt.stack == "string") {
|
|
260
|
+
for (var V = gt.stack.split(`
|
|
261
261
|
`), pt = k.stack.split(`
|
|
262
262
|
`), nt = V.length - 1, ot = pt.length - 1; nt >= 1 && ot >= 0 && V[nt] !== pt[ot]; )
|
|
263
263
|
ot--;
|
|
@@ -280,14 +280,14 @@ function Fr() {
|
|
|
280
280
|
var Kt = u ? u.displayName || u.name : "", Ut = Kt ? Dt(Kt) : "";
|
|
281
281
|
return typeof u == "function" && Vt.set(u, Ut), Ut;
|
|
282
282
|
}
|
|
283
|
-
function $e(u,
|
|
283
|
+
function $e(u, _, D) {
|
|
284
284
|
return te(u, !1);
|
|
285
285
|
}
|
|
286
286
|
function Re(u) {
|
|
287
|
-
var
|
|
288
|
-
return !!(
|
|
287
|
+
var _ = u.prototype;
|
|
288
|
+
return !!(_ && _.isReactComponent);
|
|
289
289
|
}
|
|
290
|
-
function Yt(u,
|
|
290
|
+
function Yt(u, _, D) {
|
|
291
291
|
if (u == null)
|
|
292
292
|
return "";
|
|
293
293
|
if (typeof u == "function")
|
|
@@ -305,11 +305,11 @@ function Fr() {
|
|
|
305
305
|
case c:
|
|
306
306
|
return $e(u.render);
|
|
307
307
|
case v:
|
|
308
|
-
return Yt(u.type,
|
|
308
|
+
return Yt(u.type, _, D);
|
|
309
309
|
case x: {
|
|
310
310
|
var k = u, z = k._payload, H = k._init;
|
|
311
311
|
try {
|
|
312
|
-
return Yt(H(z),
|
|
312
|
+
return Yt(H(z), _, D);
|
|
313
313
|
} catch {
|
|
314
314
|
}
|
|
315
315
|
}
|
|
@@ -319,12 +319,12 @@ function Fr() {
|
|
|
319
319
|
var Ft = Object.prototype.hasOwnProperty, me = {}, nn = m.ReactDebugCurrentFrame;
|
|
320
320
|
function pe(u) {
|
|
321
321
|
if (u) {
|
|
322
|
-
var
|
|
322
|
+
var _ = u._owner, D = Yt(u.type, u._source, _ ? _.type : null);
|
|
323
323
|
nn.setExtraStackFrame(D);
|
|
324
324
|
} else
|
|
325
325
|
nn.setExtraStackFrame(null);
|
|
326
326
|
}
|
|
327
|
-
function vr(u,
|
|
327
|
+
function vr(u, _, D, k, z) {
|
|
328
328
|
{
|
|
329
329
|
var H = Function.call.bind(Ft);
|
|
330
330
|
for (var F in u)
|
|
@@ -335,7 +335,7 @@ function Fr() {
|
|
|
335
335
|
var pt = Error((k || "React class") + ": " + D + " type `" + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[F] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
336
336
|
throw pt.name = "Invariant Violation", pt;
|
|
337
337
|
}
|
|
338
|
-
V = u[F](
|
|
338
|
+
V = u[F](_, F, k, D, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
339
339
|
} catch (nt) {
|
|
340
340
|
V = nt;
|
|
341
341
|
}
|
|
@@ -347,13 +347,13 @@ function Fr() {
|
|
|
347
347
|
function Te(u) {
|
|
348
348
|
return xr(u);
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function gr(u) {
|
|
351
351
|
{
|
|
352
|
-
var
|
|
352
|
+
var _ = typeof Symbol == "function" && Symbol.toStringTag, D = _ && u[Symbol.toStringTag] || u.constructor.name || "Object";
|
|
353
353
|
return D;
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function br(u) {
|
|
357
357
|
try {
|
|
358
358
|
return rn(u), !1;
|
|
359
359
|
} catch {
|
|
@@ -364,8 +364,8 @@ function Fr() {
|
|
|
364
364
|
return "" + u;
|
|
365
365
|
}
|
|
366
366
|
function on(u) {
|
|
367
|
-
if (
|
|
368
|
-
return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
367
|
+
if (br(u))
|
|
368
|
+
return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", gr(u)), rn(u);
|
|
369
369
|
}
|
|
370
370
|
var sn = m.ReactCurrentOwner, yr = {
|
|
371
371
|
key: !0,
|
|
@@ -373,29 +373,29 @@ function Fr() {
|
|
|
373
373
|
__self: !0,
|
|
374
374
|
__source: !0
|
|
375
375
|
}, an, ln;
|
|
376
|
-
function
|
|
376
|
+
function _r(u) {
|
|
377
377
|
if (Ft.call(u, "ref")) {
|
|
378
|
-
var
|
|
379
|
-
if (
|
|
378
|
+
var _ = Object.getOwnPropertyDescriptor(u, "ref").get;
|
|
379
|
+
if (_ && _.isReactWarning)
|
|
380
380
|
return !1;
|
|
381
381
|
}
|
|
382
382
|
return u.ref !== void 0;
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function wr(u) {
|
|
385
385
|
if (Ft.call(u, "key")) {
|
|
386
|
-
var
|
|
387
|
-
if (
|
|
386
|
+
var _ = Object.getOwnPropertyDescriptor(u, "key").get;
|
|
387
|
+
if (_ && _.isReactWarning)
|
|
388
388
|
return !1;
|
|
389
389
|
}
|
|
390
390
|
return u.key !== void 0;
|
|
391
391
|
}
|
|
392
|
-
function Er(u,
|
|
392
|
+
function Er(u, _) {
|
|
393
393
|
typeof u.ref == "string" && sn.current;
|
|
394
394
|
}
|
|
395
|
-
function jr(u,
|
|
395
|
+
function jr(u, _) {
|
|
396
396
|
{
|
|
397
397
|
var D = function() {
|
|
398
|
-
an || (an = !0, d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
398
|
+
an || (an = !0, d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", _));
|
|
399
399
|
};
|
|
400
400
|
D.isReactWarning = !0, Object.defineProperty(u, "key", {
|
|
401
401
|
get: D,
|
|
@@ -403,10 +403,10 @@ function Fr() {
|
|
|
403
403
|
});
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
function Nr(u,
|
|
406
|
+
function Nr(u, _) {
|
|
407
407
|
{
|
|
408
408
|
var D = function() {
|
|
409
|
-
ln || (ln = !0, d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
409
|
+
ln || (ln = !0, d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", _));
|
|
410
410
|
};
|
|
411
411
|
D.isReactWarning = !0, Object.defineProperty(u, "ref", {
|
|
412
412
|
get: D,
|
|
@@ -414,13 +414,13 @@ function Fr() {
|
|
|
414
414
|
});
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
var Ir = function(u,
|
|
417
|
+
var Ir = function(u, _, D, k, z, H, F) {
|
|
418
418
|
var V = {
|
|
419
419
|
// This tag allows us to uniquely identify this as a React Element
|
|
420
420
|
$$typeof: e,
|
|
421
421
|
// Built-in properties that belong on the element
|
|
422
422
|
type: u,
|
|
423
|
-
key:
|
|
423
|
+
key: _,
|
|
424
424
|
ref: D,
|
|
425
425
|
props: F,
|
|
426
426
|
// Record the component responsible for creating this element.
|
|
@@ -443,12 +443,12 @@ function Fr() {
|
|
|
443
443
|
value: z
|
|
444
444
|
}), Object.freeze && (Object.freeze(V.props), Object.freeze(V)), V;
|
|
445
445
|
};
|
|
446
|
-
function Dr(u,
|
|
446
|
+
function Dr(u, _, D, k, z) {
|
|
447
447
|
{
|
|
448
448
|
var H, F = {}, V = null, pt = null;
|
|
449
|
-
D !== void 0 && (on(D), V = "" + D),
|
|
450
|
-
for (H in
|
|
451
|
-
Ft.call(
|
|
449
|
+
D !== void 0 && (on(D), V = "" + D), wr(_) && (on(_.key), V = "" + _.key), _r(_) && (pt = _.ref, Er(_, z));
|
|
450
|
+
for (H in _)
|
|
451
|
+
Ft.call(_, H) && !yr.hasOwnProperty(H) && (F[H] = _[H]);
|
|
452
452
|
if (u && u.defaultProps) {
|
|
453
453
|
var nt = u.defaultProps;
|
|
454
454
|
for (H in nt)
|
|
@@ -464,7 +464,7 @@ function Fr() {
|
|
|
464
464
|
var Ce = m.ReactCurrentOwner, cn = m.ReactDebugCurrentFrame;
|
|
465
465
|
function zt(u) {
|
|
466
466
|
if (u) {
|
|
467
|
-
var
|
|
467
|
+
var _ = u._owner, D = Yt(u.type, u._source, _ ? _.type : null);
|
|
468
468
|
cn.setExtraStackFrame(D);
|
|
469
469
|
} else
|
|
470
470
|
cn.setExtraStackFrame(null);
|
|
@@ -492,22 +492,22 @@ Check the render method of \`` + u + "`.";
|
|
|
492
492
|
var dn = {};
|
|
493
493
|
function Rr(u) {
|
|
494
494
|
{
|
|
495
|
-
var
|
|
496
|
-
if (!
|
|
495
|
+
var _ = un();
|
|
496
|
+
if (!_) {
|
|
497
497
|
var D = typeof u == "string" ? u : u.displayName || u.name;
|
|
498
|
-
D && (
|
|
498
|
+
D && (_ = `
|
|
499
499
|
|
|
500
500
|
Check the top-level render call using <` + D + ">.");
|
|
501
501
|
}
|
|
502
|
-
return
|
|
502
|
+
return _;
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
function fn(u,
|
|
505
|
+
function fn(u, _) {
|
|
506
506
|
{
|
|
507
507
|
if (!u._store || u._store.validated || u.key != null)
|
|
508
508
|
return;
|
|
509
509
|
u._store.validated = !0;
|
|
510
|
-
var D = Rr(
|
|
510
|
+
var D = Rr(_);
|
|
511
511
|
if (dn[D])
|
|
512
512
|
return;
|
|
513
513
|
dn[D] = !0;
|
|
@@ -515,14 +515,14 @@ Check the top-level render call using <` + D + ">.");
|
|
|
515
515
|
u && u._owner && u._owner !== Ce.current && (k = " It was passed a child from " + L(u._owner.type) + "."), zt(u), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', D, k), zt(null);
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
function hn(u,
|
|
518
|
+
function hn(u, _) {
|
|
519
519
|
{
|
|
520
520
|
if (typeof u != "object")
|
|
521
521
|
return;
|
|
522
522
|
if (Te(u))
|
|
523
523
|
for (var D = 0; D < u.length; D++) {
|
|
524
524
|
var k = u[D];
|
|
525
|
-
Me(k) && fn(k,
|
|
525
|
+
Me(k) && fn(k, _);
|
|
526
526
|
}
|
|
527
527
|
else if (Me(u))
|
|
528
528
|
u._store && (u._store.validated = !0);
|
|
@@ -530,39 +530,39 @@ Check the top-level render call using <` + D + ">.");
|
|
|
530
530
|
var z = p(u);
|
|
531
531
|
if (typeof z == "function" && z !== u.entries)
|
|
532
532
|
for (var H = z.call(u), F; !(F = H.next()).done; )
|
|
533
|
-
Me(F.value) && fn(F.value,
|
|
533
|
+
Me(F.value) && fn(F.value, _);
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
function Tr(u) {
|
|
538
538
|
{
|
|
539
|
-
var
|
|
540
|
-
if (
|
|
539
|
+
var _ = u.type;
|
|
540
|
+
if (_ == null || typeof _ == "string")
|
|
541
541
|
return;
|
|
542
542
|
var D;
|
|
543
|
-
if (typeof
|
|
544
|
-
D =
|
|
545
|
-
else if (typeof
|
|
543
|
+
if (typeof _ == "function")
|
|
544
|
+
D = _.propTypes;
|
|
545
|
+
else if (typeof _ == "object" && (_.$$typeof === c || // Note: Memo only checks outer props here.
|
|
546
546
|
// Inner props are checked in the reconciler.
|
|
547
|
-
|
|
548
|
-
D =
|
|
547
|
+
_.$$typeof === v))
|
|
548
|
+
D = _.propTypes;
|
|
549
549
|
else
|
|
550
550
|
return;
|
|
551
551
|
if (D) {
|
|
552
|
-
var k = L(
|
|
552
|
+
var k = L(_);
|
|
553
553
|
vr(D, u.props, "prop", k, u);
|
|
554
|
-
} else if (
|
|
554
|
+
} else if (_.PropTypes !== void 0 && !Pe) {
|
|
555
555
|
Pe = !0;
|
|
556
|
-
var z = L(
|
|
556
|
+
var z = L(_);
|
|
557
557
|
d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", z || "Unknown");
|
|
558
558
|
}
|
|
559
|
-
typeof
|
|
559
|
+
typeof _.getDefaultProps == "function" && !_.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
562
|
function Cr(u) {
|
|
563
563
|
{
|
|
564
|
-
for (var
|
|
565
|
-
var k =
|
|
564
|
+
for (var _ = Object.keys(u.props), D = 0; D < _.length; D++) {
|
|
565
|
+
var k = _[D];
|
|
566
566
|
if (k !== "children" && k !== "key") {
|
|
567
567
|
zt(u), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", k), zt(null);
|
|
568
568
|
break;
|
|
@@ -572,7 +572,7 @@ Check the top-level render call using <` + D + ">.");
|
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
var mn = {};
|
|
575
|
-
function pn(u,
|
|
575
|
+
function pn(u, _, D, k, z, H) {
|
|
576
576
|
{
|
|
577
577
|
var F = P(u);
|
|
578
578
|
if (!F) {
|
|
@@ -583,11 +583,11 @@ Check the top-level render call using <` + D + ">.");
|
|
|
583
583
|
var nt;
|
|
584
584
|
u === null ? nt = "null" : Te(u) ? nt = "array" : u !== void 0 && u.$$typeof === e ? (nt = "<" + (L(u.type) || "Unknown") + " />", V = " Did you accidentally export a JSX literal instead of a component?") : nt = typeof u, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", nt, V);
|
|
585
585
|
}
|
|
586
|
-
var ot = Dr(u,
|
|
586
|
+
var ot = Dr(u, _, D, z, H);
|
|
587
587
|
if (ot == null)
|
|
588
588
|
return ot;
|
|
589
589
|
if (F) {
|
|
590
|
-
var Et =
|
|
590
|
+
var Et = _.children;
|
|
591
591
|
if (Et !== void 0)
|
|
592
592
|
if (k)
|
|
593
593
|
if (Te(Et)) {
|
|
@@ -599,12 +599,12 @@ Check the top-level render call using <` + D + ">.");
|
|
|
599
599
|
else
|
|
600
600
|
hn(Et, u);
|
|
601
601
|
}
|
|
602
|
-
if (Ft.call(
|
|
603
|
-
var Ut = L(u),
|
|
602
|
+
if (Ft.call(_, "key")) {
|
|
603
|
+
var Ut = L(u), gt = Object.keys(_).filter(function(Sr) {
|
|
604
604
|
return Sr !== "key";
|
|
605
|
-
}), Oe =
|
|
605
|
+
}), Oe = gt.length > 0 ? "{key: someKey, " + gt.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
606
606
|
if (!mn[Ut + Oe]) {
|
|
607
|
-
var Lr =
|
|
607
|
+
var Lr = gt.length > 0 ? "{" + gt.join(": ..., ") + ": ...}" : "{}";
|
|
608
608
|
d(`A props object containing a "key" prop is being spread into JSX:
|
|
609
609
|
let props = %s;
|
|
610
610
|
<%s {...props} />
|
|
@@ -616,19 +616,19 @@ React keys must be passed directly to JSX without using spread:
|
|
|
616
616
|
return u === s ? Cr(ot) : Tr(ot), ot;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
function Pr(u,
|
|
620
|
-
return pn(u,
|
|
619
|
+
function Pr(u, _, D) {
|
|
620
|
+
return pn(u, _, D, !0);
|
|
621
621
|
}
|
|
622
|
-
function Mr(u,
|
|
623
|
-
return pn(u,
|
|
622
|
+
function Mr(u, _, D) {
|
|
623
|
+
return pn(u, _, D, !1);
|
|
624
624
|
}
|
|
625
625
|
var Or = Mr, Ar = Pr;
|
|
626
626
|
ne.Fragment = s, ne.jsx = Or, ne.jsxs = Ar;
|
|
627
627
|
})()), ne;
|
|
628
628
|
}
|
|
629
|
-
var
|
|
629
|
+
var gn;
|
|
630
630
|
function Ur() {
|
|
631
|
-
return
|
|
631
|
+
return gn || (gn = 1, process.env.NODE_ENV === "production" ? ve.exports = Vr() : ve.exports = Fr()), ve.exports;
|
|
632
632
|
}
|
|
633
633
|
var r = Ur();
|
|
634
634
|
const Z = 96, Jt = Y(
|
|
@@ -745,27 +745,27 @@ function ya() {
|
|
|
745
745
|
);
|
|
746
746
|
}
|
|
747
747
|
var se = /* @__PURE__ */ ((t) => (t.left = "flex-start", t.center = "center", t.right = "flex-end", t))(se || {}), ie = /* @__PURE__ */ ((t) => (t.top = "flex-start", t.center = "center", t.bottom = "flex-end", t))(ie || {});
|
|
748
|
-
const Yr = "
|
|
748
|
+
const Yr = "_container_gerw7_9", zr = "_select_gerw7_21", Kr = "_placeholderOverlay_gerw7_87", Le = {
|
|
749
749
|
container: Yr,
|
|
750
750
|
select: zr,
|
|
751
751
|
placeholderOverlay: Kr
|
|
752
752
|
}, Lt = (t) => {
|
|
753
753
|
const { value: e, onChange: n, readOnly: s = !1, config: o } = t, a = t.options ?? (o == null ? void 0 : o.options) ?? [], i = t.placeholder ?? (o == null ? void 0 : o.placeholder) ?? "選択してください", l = t.width ?? (o == null ? void 0 : o.width), c = t.height ?? (o == null ? void 0 : o.height), f = $(
|
|
754
754
|
(N) => {
|
|
755
|
-
const
|
|
756
|
-
if (
|
|
755
|
+
const w = N.target.value;
|
|
756
|
+
if (w === "")
|
|
757
757
|
n(void 0);
|
|
758
758
|
else {
|
|
759
759
|
const p = a.find(
|
|
760
|
-
(m) => String(m.value) ===
|
|
760
|
+
(m) => String(m.value) === w
|
|
761
761
|
);
|
|
762
|
-
n(p ? p.value :
|
|
762
|
+
n(p ? p.value : w);
|
|
763
763
|
}
|
|
764
764
|
},
|
|
765
765
|
[n, a]
|
|
766
766
|
), h = e ?? "", v = e !== void 0 && e !== "", x = {};
|
|
767
767
|
l !== void 0 ? x.width = `${l}px` : x.width = "100%";
|
|
768
|
-
const
|
|
768
|
+
const g = {
|
|
769
769
|
width: "100%",
|
|
770
770
|
height: c ? `${c}px` : void 0
|
|
771
771
|
};
|
|
@@ -774,7 +774,7 @@ const Yr = "_container_1mr3i_5", zr = "_select_1mr3i_11", Kr = "_placeholderOver
|
|
|
774
774
|
"input",
|
|
775
775
|
{
|
|
776
776
|
className: Le.placeholderOverlay,
|
|
777
|
-
style:
|
|
777
|
+
style: g,
|
|
778
778
|
readOnly: !0,
|
|
779
779
|
placeholder: i
|
|
780
780
|
}
|
|
@@ -783,7 +783,7 @@ const Yr = "_container_1mr3i_5", zr = "_select_1mr3i_11", Kr = "_placeholderOver
|
|
|
783
783
|
"select",
|
|
784
784
|
{
|
|
785
785
|
className: Le.select,
|
|
786
|
-
style:
|
|
786
|
+
style: g,
|
|
787
787
|
value: h,
|
|
788
788
|
onChange: f,
|
|
789
789
|
disabled: s,
|
|
@@ -822,9 +822,9 @@ const Hr = {
|
|
|
822
822
|
]
|
|
823
823
|
}
|
|
824
824
|
}
|
|
825
|
-
},
|
|
826
|
-
container:
|
|
827
|
-
input:
|
|
825
|
+
}, Xr = "_container_6u83k_9", qr = "_input_6u83k_25", Jr = "_label_6u83k_57", Se = {
|
|
826
|
+
container: Xr,
|
|
827
|
+
input: qr,
|
|
828
828
|
label: Jr
|
|
829
829
|
}, Pt = ({
|
|
830
830
|
value: t,
|
|
@@ -854,7 +854,7 @@ const Hr = {
|
|
|
854
854
|
] });
|
|
855
855
|
};
|
|
856
856
|
Pt.displayName = "Checkbox";
|
|
857
|
-
const Zr = "
|
|
857
|
+
const Zr = "_container_1gj1n_9", Qr = "_colorButton_1gj1n_25", to = "_textInputWrapper_1gj1n_79", eo = "_textInputPrefix_1gj1n_123", no = "_textInput_1gj1n_79", ro = "_popover_1gj1n_249", oo = "_palette_1gj1n_281", so = "_paletteButton_1gj1n_295", io = "_selected_1gj1n_341", ao = "_transparentPaletteButton_1gj1n_353", lo = "_rgbaInputs_1gj1n_365", co = "_rgbaInputGroup_1gj1n_379", uo = "_rgbaLabel_1gj1n_409", lt = {
|
|
858
858
|
container: Zr,
|
|
859
859
|
colorButton: Qr,
|
|
860
860
|
textInputWrapper: to,
|
|
@@ -869,7 +869,7 @@ const Zr = "_container_qbvob_5", Qr = "_colorButton_qbvob_13", to = "_textInputW
|
|
|
869
869
|
rgbaInputGroup: co,
|
|
870
870
|
rgbaLabel: uo
|
|
871
871
|
};
|
|
872
|
-
function
|
|
872
|
+
function bn(t) {
|
|
873
873
|
if (!t)
|
|
874
874
|
return null;
|
|
875
875
|
const e = t.match(/^#([0-9a-f]{6}|[0-9a-f]{8})$/i);
|
|
@@ -949,7 +949,7 @@ const ho = [
|
|
|
949
949
|
);
|
|
950
950
|
}) });
|
|
951
951
|
On.displayName = "ColorPalette";
|
|
952
|
-
const mo = "
|
|
952
|
+
const mo = "_input_me6tq_9", po = {
|
|
953
953
|
input: mo
|
|
954
954
|
}, yt = ({
|
|
955
955
|
value: t,
|
|
@@ -965,7 +965,7 @@ const mo = "_input_14n56_5", po = {
|
|
|
965
965
|
config: h,
|
|
966
966
|
onBlur: v
|
|
967
967
|
}) => {
|
|
968
|
-
const x = s ?? (h == null ? void 0 : h.min) ?? 1,
|
|
968
|
+
const x = s ?? (h == null ? void 0 : h.min) ?? 1, g = o ?? (h == null ? void 0 : h.max), N = a ?? (h == null ? void 0 : h.step) ?? 1, w = i ?? (h == null ? void 0 : h.integer) ?? !1, p = l ?? (h == null ? void 0 : h.placeholder), m = c ?? (h == null ? void 0 : h.width), d = f ?? (h == null ? void 0 : h.height), b = $(
|
|
969
969
|
(R) => {
|
|
970
970
|
const G = R.target.value;
|
|
971
971
|
if (G === "") {
|
|
@@ -973,9 +973,9 @@ const mo = "_input_14n56_5", po = {
|
|
|
973
973
|
return;
|
|
974
974
|
}
|
|
975
975
|
let T = Number.parseFloat(G);
|
|
976
|
-
Number.isNaN(T) || (
|
|
976
|
+
Number.isNaN(T) || (w && (T = Math.round(T)), x !== void 0 && T < x && (T = x), g !== void 0 && T > g && (T = g), e(T));
|
|
977
977
|
},
|
|
978
|
-
[e, x,
|
|
978
|
+
[e, x, g, w]
|
|
979
979
|
), y = {};
|
|
980
980
|
return m !== void 0 && (y.width = `${m}px`), d !== void 0 && (y.height = `${d}px`, y.paddingTop = 0, y.paddingBottom = 0), /* @__PURE__ */ r.jsx(
|
|
981
981
|
"input",
|
|
@@ -984,11 +984,11 @@ const mo = "_input_14n56_5", po = {
|
|
|
984
984
|
className: po.input,
|
|
985
985
|
style: y,
|
|
986
986
|
value: t ?? "",
|
|
987
|
-
onChange:
|
|
987
|
+
onChange: b,
|
|
988
988
|
onBlur: v,
|
|
989
989
|
disabled: n,
|
|
990
990
|
min: x,
|
|
991
|
-
max:
|
|
991
|
+
max: g,
|
|
992
992
|
step: N,
|
|
993
993
|
placeholder: p
|
|
994
994
|
}
|
|
@@ -1105,7 +1105,7 @@ const Ln = ({
|
|
|
1105
1105
|
) : null;
|
|
1106
1106
|
};
|
|
1107
1107
|
Ln.displayName = "ColorPickerPopover";
|
|
1108
|
-
const
|
|
1108
|
+
const _e = ({
|
|
1109
1109
|
value: t,
|
|
1110
1110
|
onChange: e,
|
|
1111
1111
|
readOnly: n = !1,
|
|
@@ -1116,14 +1116,14 @@ const we = ({
|
|
|
1116
1116
|
height: l,
|
|
1117
1117
|
config: c
|
|
1118
1118
|
}) => {
|
|
1119
|
-
const f = o ?? (c == null ? void 0 : c.allowUndefined) ?? !0, h = a ?? (f ? "未設定" : "#000000"), v = i ?? (c == null ? void 0 : c.width), x = l ?? (c == null ? void 0 : c.height), [
|
|
1119
|
+
const f = o ?? (c == null ? void 0 : c.allowUndefined) ?? !0, h = a ?? (f ? "未設定" : "#000000"), v = i ?? (c == null ? void 0 : c.width), x = l ?? (c == null ? void 0 : c.height), [g, N] = dt(!1), w = It(null), [p, m] = dt(() => bn(t) ?? { r: 0, g: 0, b: 0, a: 1 });
|
|
1120
1120
|
Ot(() => {
|
|
1121
|
-
const E =
|
|
1121
|
+
const E = bn(t);
|
|
1122
1122
|
E && m(E);
|
|
1123
1123
|
}, [t]);
|
|
1124
1124
|
const d = $(() => {
|
|
1125
1125
|
n || N((E) => !E);
|
|
1126
|
-
}, [n]), [
|
|
1126
|
+
}, [n]), [b, y] = dt(
|
|
1127
1127
|
t ? t.replace(/^#/, "") : ""
|
|
1128
1128
|
);
|
|
1129
1129
|
Ot(() => {
|
|
@@ -1169,7 +1169,7 @@ const we = ({
|
|
|
1169
1169
|
), B = t ?? "未設定", C = {};
|
|
1170
1170
|
t && (C.background = t);
|
|
1171
1171
|
const L = {};
|
|
1172
|
-
return v !== void 0 ? L.width = `${v}px` : L.width = "100%", x !== void 0 && (L.height = `${x}px`), /* @__PURE__ */ r.jsxs("div", { className: lt.container, style: L, ref:
|
|
1172
|
+
return v !== void 0 ? L.width = `${v}px` : L.width = "100%", x !== void 0 && (L.height = `${x}px`), /* @__PURE__ */ r.jsxs("div", { className: lt.container, style: L, ref: w, children: [
|
|
1173
1173
|
/* @__PURE__ */ r.jsx(
|
|
1174
1174
|
"button",
|
|
1175
1175
|
{
|
|
@@ -1189,7 +1189,7 @@ const we = ({
|
|
|
1189
1189
|
{
|
|
1190
1190
|
type: "text",
|
|
1191
1191
|
className: lt.textInput,
|
|
1192
|
-
value:
|
|
1192
|
+
value: b,
|
|
1193
1193
|
onChange: R,
|
|
1194
1194
|
onKeyDown: j,
|
|
1195
1195
|
onBlur: T,
|
|
@@ -1202,7 +1202,7 @@ const we = ({
|
|
|
1202
1202
|
/* @__PURE__ */ r.jsx(
|
|
1203
1203
|
Ln,
|
|
1204
1204
|
{
|
|
1205
|
-
isOpen:
|
|
1205
|
+
isOpen: g,
|
|
1206
1206
|
onClose: () => N(!1),
|
|
1207
1207
|
rgba: p,
|
|
1208
1208
|
onRgbaChange: P,
|
|
@@ -1213,17 +1213,17 @@ const we = ({
|
|
|
1213
1213
|
)
|
|
1214
1214
|
] });
|
|
1215
1215
|
};
|
|
1216
|
-
|
|
1217
|
-
const vo = "
|
|
1216
|
+
_e.displayName = "ColorPicker";
|
|
1217
|
+
const vo = "_container_3qavu_9", xo = "_valueInput_3qavu_45", go = "_unitSelect_3qavu_89", ke = {
|
|
1218
1218
|
container: vo,
|
|
1219
1219
|
valueInput: xo,
|
|
1220
|
-
unitSelect:
|
|
1220
|
+
unitSelect: go
|
|
1221
1221
|
}, mt = (t) => {
|
|
1222
|
-
const { value: e, onChange: n, readOnly: s = !1, config: o } = t, a = t.allowedUnits ?? (o == null ? void 0 : o.allowedUnits), i = t.min ?? (o == null ? void 0 : o.min), l = t.max ?? (o == null ? void 0 : o.max), c = t.step ?? (o == null ? void 0 : o.step) ?? 1, f = t.placeholder ?? (o == null ? void 0 : o.placeholder), h = t.width ?? (o == null ? void 0 : o.width), v = t.height ?? (o == null ? void 0 : o.height), x = (e == null ? void 0 : e.unit) ?? (a == null ? void 0 : a[0]),
|
|
1222
|
+
const { value: e, onChange: n, readOnly: s = !1, config: o } = t, a = t.allowedUnits ?? (o == null ? void 0 : o.allowedUnits), i = t.min ?? (o == null ? void 0 : o.min), l = t.max ?? (o == null ? void 0 : o.max), c = t.step ?? (o == null ? void 0 : o.step) ?? 1, f = t.placeholder ?? (o == null ? void 0 : o.placeholder), h = t.width ?? (o == null ? void 0 : o.width), v = t.height ?? (o == null ? void 0 : o.height), x = (e == null ? void 0 : e.unit) ?? (a == null ? void 0 : a[0]), g = $(
|
|
1223
1223
|
(d) => {
|
|
1224
|
-
const
|
|
1225
|
-
if (
|
|
1226
|
-
let y = Number.parseFloat(
|
|
1224
|
+
const b = d.target.value;
|
|
1225
|
+
if (b === "") return;
|
|
1226
|
+
let y = Number.parseFloat(b);
|
|
1227
1227
|
if (Number.isNaN(y)) return;
|
|
1228
1228
|
const R = i ?? 1;
|
|
1229
1229
|
y < R && (y = R), l !== void 0 && y > l && (y = l), n({
|
|
@@ -1235,23 +1235,23 @@ const vo = "_container_1n9lj_5", xo = "_valueInput_1n9lj_23", bo = "_unitSelect_
|
|
|
1235
1235
|
[e, n, x, i, l]
|
|
1236
1236
|
), N = $(
|
|
1237
1237
|
(d) => {
|
|
1238
|
-
const
|
|
1238
|
+
const b = d.target.value;
|
|
1239
1239
|
n({
|
|
1240
1240
|
// 値が未設定ならデフォルト値(例: 0)を入れてオブジェクトを作成
|
|
1241
1241
|
value: (e == null ? void 0 : e.value) ?? 0,
|
|
1242
|
-
unit:
|
|
1242
|
+
unit: b
|
|
1243
1243
|
});
|
|
1244
1244
|
},
|
|
1245
1245
|
[e, n]
|
|
1246
|
-
),
|
|
1246
|
+
), w = (e == null ? void 0 : e.value) ?? "", p = (e == null ? void 0 : e.unit) ?? x ?? "", m = {};
|
|
1247
1247
|
return h !== void 0 ? m.width = `${h}px` : m.width = "100%", v !== void 0 && (m.height = `${v}px`), /* @__PURE__ */ r.jsxs("div", { className: ke.container, style: m, children: [
|
|
1248
1248
|
/* @__PURE__ */ r.jsx(
|
|
1249
1249
|
"input",
|
|
1250
1250
|
{
|
|
1251
1251
|
type: "number",
|
|
1252
1252
|
className: ke.valueInput,
|
|
1253
|
-
value:
|
|
1254
|
-
onChange:
|
|
1253
|
+
value: w,
|
|
1254
|
+
onChange: g,
|
|
1255
1255
|
placeholder: f,
|
|
1256
1256
|
min: i ?? 1,
|
|
1257
1257
|
max: l,
|
|
@@ -1274,11 +1274,11 @@ const vo = "_container_1n9lj_5", xo = "_valueInput_1n9lj_23", bo = "_unitSelect_
|
|
|
1274
1274
|
}
|
|
1275
1275
|
)
|
|
1276
1276
|
] });
|
|
1277
|
-
},
|
|
1278
|
-
root:
|
|
1277
|
+
}, bo = "_root_kb3dm_5", yo = "_list_kb3dm_21", _o = "_trigger_kb3dm_51", wo = "_content_kb3dm_141", we = {
|
|
1278
|
+
root: bo,
|
|
1279
1279
|
list: yo,
|
|
1280
|
-
trigger:
|
|
1281
|
-
content:
|
|
1280
|
+
trigger: _o,
|
|
1281
|
+
content: wo
|
|
1282
1282
|
}, Ee = Br(void 0), Sn = ({
|
|
1283
1283
|
defaultValue: t,
|
|
1284
1284
|
value: e,
|
|
@@ -1290,7 +1290,7 @@ const vo = "_container_1n9lj_5", xo = "_valueInput_1n9lj_23", bo = "_unitSelect_
|
|
|
1290
1290
|
const [i, l] = dt(t), c = e ?? i, f = (h) => {
|
|
1291
1291
|
l(h), n == null || n(h);
|
|
1292
1292
|
};
|
|
1293
|
-
return /* @__PURE__ */ r.jsx(Ee.Provider, { value: { value: c, onChange: f, variant: o }, children: /* @__PURE__ */ r.jsx("div", { className: `${
|
|
1293
|
+
return /* @__PURE__ */ r.jsx(Ee.Provider, { value: { value: c, onChange: f, variant: o }, children: /* @__PURE__ */ r.jsx("div", { className: `${we.root} ${a}`, "data-variant": o, children: s }) });
|
|
1294
1294
|
}, kn = ({
|
|
1295
1295
|
children: t,
|
|
1296
1296
|
className: e = "",
|
|
@@ -1298,14 +1298,14 @@ const vo = "_container_1n9lj_5", xo = "_valueInput_1n9lj_23", bo = "_unitSelect_
|
|
|
1298
1298
|
height: s,
|
|
1299
1299
|
style: o
|
|
1300
1300
|
}) => {
|
|
1301
|
-
const a =
|
|
1301
|
+
const a = Xe(Ee);
|
|
1302
1302
|
if (!a)
|
|
1303
1303
|
throw new Error("TabsList must be used within a Tabs component");
|
|
1304
1304
|
const { variant: i } = a, l = { ...o };
|
|
1305
1305
|
return n !== void 0 && (l.width = `${n}px`), s !== void 0 && (l.height = `${s}px`), /* @__PURE__ */ r.jsx(
|
|
1306
1306
|
"div",
|
|
1307
1307
|
{
|
|
1308
|
-
className: `${
|
|
1308
|
+
className: `${we.list} ${e}`,
|
|
1309
1309
|
"data-variant": i,
|
|
1310
1310
|
style: l,
|
|
1311
1311
|
children: t
|
|
@@ -1320,14 +1320,14 @@ const vo = "_container_1n9lj_5", xo = "_valueInput_1n9lj_23", bo = "_unitSelect_
|
|
|
1320
1320
|
height: a,
|
|
1321
1321
|
style: i
|
|
1322
1322
|
}) => {
|
|
1323
|
-
const l =
|
|
1323
|
+
const l = Xe(Ee);
|
|
1324
1324
|
if (!l)
|
|
1325
1325
|
throw new Error("TabsTrigger must be used within a Tabs component");
|
|
1326
1326
|
const { value: c, onChange: f, variant: h } = l, v = c === t, x = { ...i };
|
|
1327
1327
|
return o !== void 0 && (x.width = `${o}px`), a !== void 0 && (x.height = `${a}px`), /* @__PURE__ */ r.jsx(
|
|
1328
1328
|
"button",
|
|
1329
1329
|
{
|
|
1330
|
-
className: `${
|
|
1330
|
+
className: `${we.trigger} ${n}`,
|
|
1331
1331
|
"data-state": v ? "active" : "inactive",
|
|
1332
1332
|
"data-variant": h,
|
|
1333
1333
|
onClick: () => f(t),
|
|
@@ -1342,12 +1342,12 @@ const vo = "_container_1n9lj_5", xo = "_valueInput_1n9lj_23", bo = "_unitSelect_
|
|
|
1342
1342
|
children: e,
|
|
1343
1343
|
className: n = ""
|
|
1344
1344
|
}) => {
|
|
1345
|
-
const s =
|
|
1345
|
+
const s = Xe(Ee);
|
|
1346
1346
|
if (!s)
|
|
1347
1347
|
throw new Error("TabsContent must be used within a Tabs component");
|
|
1348
1348
|
const { value: o } = s;
|
|
1349
|
-
return o !== t ? null : /* @__PURE__ */ r.jsx("div", { className: `${
|
|
1350
|
-
}, Eo = "
|
|
1349
|
+
return o !== t ? null : /* @__PURE__ */ r.jsx("div", { className: `${we.content} ${n}`, children: e });
|
|
1350
|
+
}, Eo = "_input_hr2wj_9", jo = {
|
|
1351
1351
|
input: Eo
|
|
1352
1352
|
}, de = ({
|
|
1353
1353
|
value: t,
|
|
@@ -1363,10 +1363,10 @@ const vo = "_container_1n9lj_5", xo = "_valueInput_1n9lj_23", bo = "_unitSelect_
|
|
|
1363
1363
|
config: f,
|
|
1364
1364
|
onBlur: h
|
|
1365
1365
|
}) => {
|
|
1366
|
-
const v = s ?? (f == null ? void 0 : f.placeholder), x = o ?? (f == null ? void 0 : f.maxLength),
|
|
1366
|
+
const v = s ?? (f == null ? void 0 : f.placeholder), x = o ?? (f == null ? void 0 : f.maxLength), g = a ?? (f == null ? void 0 : f.multiline) ?? !1, N = i ?? (f == null ? void 0 : f.rows) ?? 3, w = $(
|
|
1367
1367
|
(d) => {
|
|
1368
|
-
const
|
|
1369
|
-
e(
|
|
1368
|
+
const b = d.target.value;
|
|
1369
|
+
e(b);
|
|
1370
1370
|
},
|
|
1371
1371
|
[e]
|
|
1372
1372
|
), p = {};
|
|
@@ -1376,15 +1376,15 @@ const vo = "_container_1n9lj_5", xo = "_valueInput_1n9lj_23", bo = "_unitSelect_
|
|
|
1376
1376
|
style: p,
|
|
1377
1377
|
value: t ?? "",
|
|
1378
1378
|
// undefined なら空文字を表示
|
|
1379
|
-
onChange:
|
|
1379
|
+
onChange: w,
|
|
1380
1380
|
disabled: n,
|
|
1381
1381
|
placeholder: v,
|
|
1382
1382
|
maxLength: x
|
|
1383
1383
|
};
|
|
1384
|
-
return
|
|
1384
|
+
return g ? /* @__PURE__ */ r.jsx("textarea", { ...m, rows: N }) : /* @__PURE__ */ r.jsx("input", { ...m, type: "text", onBlur: h });
|
|
1385
1385
|
};
|
|
1386
1386
|
de.displayName = "TextInput";
|
|
1387
|
-
const
|
|
1387
|
+
const _a = ["mm", "cm", "fr", "inch", "pt", "px", "%"], wa = ["mm", "cm", "pt", "inch", "px"], Ea = ["mm", "cm", "inch"], ja = ["mm", "cm", "fr", "inch", "pt", "px"], No = ["px", "pt", "mm"], Io = ["px", "pt", "mm"], re = ["mm", "pt", "px", "%"], yn = ["mm", "cm", "inch", "pt", "px", "%"], Do = {
|
|
1388
1388
|
// 1. 切り替えスイッチ
|
|
1389
1389
|
isIndividual: {
|
|
1390
1390
|
defaultValue: !1,
|
|
@@ -1489,7 +1489,7 @@ const wa = ["mm", "cm", "fr", "inch", "pt", "px", "%"], _a = ["mm", "cm", "pt",
|
|
|
1489
1489
|
// CSS変数を使用するため未設定
|
|
1490
1490
|
label: "文字色",
|
|
1491
1491
|
group: "フォント",
|
|
1492
|
-
Component:
|
|
1492
|
+
Component: _e,
|
|
1493
1493
|
config: {
|
|
1494
1494
|
allowUndefined: !0
|
|
1495
1495
|
// 明示的に許可(デフォルトtrueなので省略可)
|
|
@@ -1666,7 +1666,7 @@ function Ro(t) {
|
|
|
1666
1666
|
const e = Date.now(), n = Math.random().toString(36).slice(2);
|
|
1667
1667
|
return `${t}_${e}_${n}`;
|
|
1668
1668
|
}
|
|
1669
|
-
function
|
|
1669
|
+
function qt(t, e, n) {
|
|
1670
1670
|
const s = $o(t);
|
|
1671
1671
|
return {
|
|
1672
1672
|
id: Ro(t.kind),
|
|
@@ -1736,7 +1736,7 @@ const Ca = {
|
|
|
1736
1736
|
// 複雑な設定なので複数選択時は無効化が無難
|
|
1737
1737
|
}
|
|
1738
1738
|
};
|
|
1739
|
-
var
|
|
1739
|
+
var _t = /* @__PURE__ */ ((t) => (t.ADD = "add", t.UPDATE = "update", t.DELETE = "delete", t.MOVE = "move", t.RESIZE = "resize", t.DUPLICATE = "duplicate", t.PASTE = "paste", t))(_t || {});
|
|
1740
1740
|
const To = {
|
|
1741
1741
|
cols: Array.from({ length: 12 }).map(() => ({ value: 1, unit: "fr" })),
|
|
1742
1742
|
rows: Array.from({ length: 16 }).map(() => ({ value: 1, unit: "fr" }))
|
|
@@ -1916,7 +1916,7 @@ class fe {
|
|
|
1916
1916
|
} : null;
|
|
1917
1917
|
}
|
|
1918
1918
|
}
|
|
1919
|
-
var
|
|
1919
|
+
var wt = /* @__PURE__ */ ((t) => (t.FORM = "Form", t.EDIT = "Edit", t.VIEW = "View", t))(wt || {}), Ct = /* @__PURE__ */ ((t) => (t.A4 = "A4", t.B5 = "B5", t.A3 = "A3", t.LETTER = "Letter", t.LEGAL = "Legal", t.CUSTOM = "Custom", t))(Ct || {});
|
|
1920
1920
|
const Gn = {
|
|
1921
1921
|
A4: {
|
|
1922
1922
|
preset: "A4",
|
|
@@ -2035,9 +2035,9 @@ const ko = Y(
|
|
|
2035
2035
|
}
|
|
2036
2036
|
);
|
|
2037
2037
|
}
|
|
2038
|
-
), Bo = "
|
|
2038
|
+
), Bo = "_label_fluf5_1", Vo = {
|
|
2039
2039
|
label: Bo
|
|
2040
|
-
}, Fo = "
|
|
2040
|
+
}, Fo = "_editor_1aiew_9", Uo = "_input_1aiew_35", Wo = "_select_1aiew_75", Yo = "_button_1aiew_107", xe = {
|
|
2041
2041
|
editor: Fo,
|
|
2042
2042
|
input: Uo,
|
|
2043
2043
|
select: Wo,
|
|
@@ -2055,7 +2055,7 @@ function zo(t, e) {
|
|
|
2055
2055
|
function Oa(t, e) {
|
|
2056
2056
|
return t.map((n) => zo(n, e));
|
|
2057
2057
|
}
|
|
2058
|
-
const Ko = 10, Ho = 25.4,
|
|
2058
|
+
const Ko = 10, Ho = 25.4, Xo = 0.352778, qo = 0.264583, Q = {
|
|
2059
2059
|
fromCm(t) {
|
|
2060
2060
|
return xt(t, "Centimeter value"), t * Ko;
|
|
2061
2061
|
},
|
|
@@ -2063,11 +2063,11 @@ const Ko = 10, Ho = 25.4, qo = 0.352778, Xo = 0.264583, Q = {
|
|
|
2063
2063
|
return xt(t, "Inch value"), t * Ho;
|
|
2064
2064
|
},
|
|
2065
2065
|
fromPt(t) {
|
|
2066
|
-
return xt(t, "Point value"), t *
|
|
2066
|
+
return xt(t, "Point value"), t * Xo;
|
|
2067
2067
|
},
|
|
2068
2068
|
// データ上のpxはDPI=96として扱う
|
|
2069
2069
|
fromPx(t) {
|
|
2070
|
-
return xt(t, "Pixel value"), t *
|
|
2070
|
+
return xt(t, "Pixel value"), t * qo;
|
|
2071
2071
|
},
|
|
2072
2072
|
fromDim(t) {
|
|
2073
2073
|
switch (xt(t.value, "Dimension value"), t.unit) {
|
|
@@ -2139,7 +2139,7 @@ const Bn = Y(
|
|
|
2139
2139
|
onChange: i,
|
|
2140
2140
|
onCancel: l
|
|
2141
2141
|
}) => {
|
|
2142
|
-
const [c, f] = dt(e.value.toString()), [h, v] = dt(e.unit), x = It(null),
|
|
2142
|
+
const [c, f] = dt(e.value.toString()), [h, v] = dt(e.unit), x = It(null), g = It(null), N = t === "column" ? {
|
|
2143
2143
|
left: `${o + s}px`,
|
|
2144
2144
|
top: `${a + 24}px`,
|
|
2145
2145
|
transform: "translateX(-50%)"
|
|
@@ -2149,31 +2149,31 @@ const Bn = Y(
|
|
|
2149
2149
|
transform: "translateY(-50%)"
|
|
2150
2150
|
};
|
|
2151
2151
|
Ot(() => {
|
|
2152
|
-
var d,
|
|
2153
|
-
(d = x.current) == null || d.focus(), (
|
|
2152
|
+
var d, b;
|
|
2153
|
+
(d = x.current) == null || d.focus(), (b = x.current) == null || b.select();
|
|
2154
2154
|
}, []), Ot(() => {
|
|
2155
|
-
const d = (
|
|
2156
|
-
|
|
2155
|
+
const d = (b) => {
|
|
2156
|
+
g.current && !g.current.contains(b.target) && l();
|
|
2157
2157
|
};
|
|
2158
2158
|
return document.addEventListener("mousedown", d), () => {
|
|
2159
2159
|
document.removeEventListener("mousedown", d);
|
|
2160
2160
|
};
|
|
2161
2161
|
}, [l]);
|
|
2162
|
-
const
|
|
2162
|
+
const w = () => {
|
|
2163
2163
|
const d = Number.parseFloat(c);
|
|
2164
2164
|
!Number.isNaN(d) && d >= 0.1 ? i({ unit: h, value: d }) : l();
|
|
2165
2165
|
}, p = (d) => {
|
|
2166
|
-
d.key === "Enter" ? (d.preventDefault(),
|
|
2166
|
+
d.key === "Enter" ? (d.preventDefault(), w()) : d.key === "Escape" && (d.preventDefault(), l());
|
|
2167
2167
|
}, m = (d) => {
|
|
2168
|
-
const
|
|
2169
|
-
v(
|
|
2170
|
-
const y = Qo(n,
|
|
2168
|
+
const b = d.target.value;
|
|
2169
|
+
v(b);
|
|
2170
|
+
const y = Qo(n, b);
|
|
2171
2171
|
f(y.toString());
|
|
2172
2172
|
};
|
|
2173
2173
|
return /* @__PURE__ */ r.jsxs(
|
|
2174
2174
|
"div",
|
|
2175
2175
|
{
|
|
2176
|
-
ref:
|
|
2176
|
+
ref: g,
|
|
2177
2177
|
className: xe.editor,
|
|
2178
2178
|
style: N,
|
|
2179
2179
|
"data-testid": `grid-unit-editor-${t}`,
|
|
@@ -2205,7 +2205,7 @@ const Bn = Y(
|
|
|
2205
2205
|
{
|
|
2206
2206
|
type: "button",
|
|
2207
2207
|
className: xe.button,
|
|
2208
|
-
onClick:
|
|
2208
|
+
onClick: w,
|
|
2209
2209
|
title: "確定",
|
|
2210
2210
|
children: "✓"
|
|
2211
2211
|
}
|
|
@@ -2278,11 +2278,11 @@ const Ue = Y(
|
|
|
2278
2278
|
top: `${i + s}px`,
|
|
2279
2279
|
transform: "translateY(-50%)",
|
|
2280
2280
|
writingMode: "vertical-rl"
|
|
2281
|
-
},
|
|
2281
|
+
}, g = () => {
|
|
2282
2282
|
v(!0);
|
|
2283
2283
|
}, N = (d) => {
|
|
2284
2284
|
f == null || f(t, e, d), v(!1);
|
|
2285
|
-
},
|
|
2285
|
+
}, w = () => {
|
|
2286
2286
|
v(!1);
|
|
2287
2287
|
}, m = c ? (() => {
|
|
2288
2288
|
const d = ts(
|
|
@@ -2300,7 +2300,7 @@ const Ue = Y(
|
|
|
2300
2300
|
type: "button",
|
|
2301
2301
|
className: Vo.label,
|
|
2302
2302
|
style: x,
|
|
2303
|
-
onDoubleClick:
|
|
2303
|
+
onDoubleClick: g,
|
|
2304
2304
|
"data-testid": `grid-dimension-${t}-${e}`,
|
|
2305
2305
|
"aria-label": `グリッド寸法: ${m}`,
|
|
2306
2306
|
children: m
|
|
@@ -2317,7 +2317,7 @@ const Ue = Y(
|
|
|
2317
2317
|
marginLeftPx: a,
|
|
2318
2318
|
marginTopPx: i,
|
|
2319
2319
|
onChange: N,
|
|
2320
|
-
onCancel:
|
|
2320
|
+
onCancel: w
|
|
2321
2321
|
}
|
|
2322
2322
|
)
|
|
2323
2323
|
] });
|
|
@@ -2381,7 +2381,7 @@ const ns = Y(
|
|
|
2381
2381
|
}
|
|
2382
2382
|
);
|
|
2383
2383
|
}
|
|
2384
|
-
), rs = "
|
|
2384
|
+
), rs = "_handle_c4kku_1", os = "_dragging_c4kku_37", Ge = {
|
|
2385
2385
|
handle: rs,
|
|
2386
2386
|
dragging: os
|
|
2387
2387
|
}, We = Y(
|
|
@@ -2411,16 +2411,16 @@ const ns = Y(
|
|
|
2411
2411
|
width: `${h}px`,
|
|
2412
2412
|
height: `${h}px`,
|
|
2413
2413
|
cursor: "row-resize"
|
|
2414
|
-
},
|
|
2414
|
+
}, g = $(
|
|
2415
2415
|
(N) => {
|
|
2416
2416
|
N.stopPropagation(), N.preventDefault();
|
|
2417
|
-
const
|
|
2417
|
+
const w = t === "column" ? N.clientX : N.clientY;
|
|
2418
2418
|
f(!0), a == null || a(t, e);
|
|
2419
2419
|
const p = (d) => {
|
|
2420
|
-
const y = (t === "column" ? d.clientX : d.clientY) -
|
|
2420
|
+
const y = (t === "column" ? d.clientX : d.clientY) - w;
|
|
2421
2421
|
i == null || i(t, e, y);
|
|
2422
2422
|
}, m = (d) => {
|
|
2423
|
-
const y = (t === "column" ? d.clientX : d.clientY) -
|
|
2423
|
+
const y = (t === "column" ? d.clientX : d.clientY) - w;
|
|
2424
2424
|
f(!1), l == null || l(t, e, y), window.removeEventListener("pointermove", p), window.removeEventListener("pointerup", m);
|
|
2425
2425
|
};
|
|
2426
2426
|
window.addEventListener("pointermove", p), window.addEventListener("pointerup", m);
|
|
@@ -2432,7 +2432,7 @@ const ns = Y(
|
|
|
2432
2432
|
{
|
|
2433
2433
|
className: `${Ge.handle} ${Ge[t]} ${c ? Ge.dragging : ""}`,
|
|
2434
2434
|
style: x,
|
|
2435
|
-
onPointerDown:
|
|
2435
|
+
onPointerDown: g,
|
|
2436
2436
|
"data-testid": `grid-resize-handle-${t}-${e}`
|
|
2437
2437
|
}
|
|
2438
2438
|
);
|
|
@@ -2540,12 +2540,12 @@ const ss = Y(
|
|
|
2540
2540
|
showBorder: h = !0,
|
|
2541
2541
|
showResizeHandles: v = !1,
|
|
2542
2542
|
showDimensionLabels: x = !1,
|
|
2543
|
-
onGridResize:
|
|
2543
|
+
onGridResize: g,
|
|
2544
2544
|
onDimensionChange: N,
|
|
2545
|
-
className:
|
|
2545
|
+
className: w = "",
|
|
2546
2546
|
zIndex: p = {}
|
|
2547
2547
|
}) => {
|
|
2548
|
-
const [m, d] = dt(null), [
|
|
2548
|
+
const [m, d] = dt(null), [b, y] = dt(null), [R, G] = dt(
|
|
2549
2549
|
null
|
|
2550
2550
|
), T = It(null);
|
|
2551
2551
|
Ot(() => {
|
|
@@ -2575,61 +2575,61 @@ const ss = Y(
|
|
|
2575
2575
|
},
|
|
2576
2576
|
[]
|
|
2577
2577
|
), P = M(() => {
|
|
2578
|
-
if (!m || !
|
|
2579
|
-
const E =
|
|
2578
|
+
if (!m || !b) return null;
|
|
2579
|
+
const E = b.direction === "column" ? e.cols : e.rows, I = b.index, O = E[I - 1], S = m.position, X = O !== void 0 ? S - O : 0, tt = m.position, et = E[I + 1], ft = et !== void 0 ? et - tt : 0;
|
|
2580
2580
|
return {
|
|
2581
|
-
direction:
|
|
2581
|
+
direction: b.direction,
|
|
2582
2582
|
prevIndex: I - 1,
|
|
2583
|
-
prevSize:
|
|
2583
|
+
prevSize: X,
|
|
2584
2584
|
nextIndex: I,
|
|
2585
2585
|
nextSize: ft
|
|
2586
2586
|
};
|
|
2587
|
-
}, [m,
|
|
2587
|
+
}, [m, b, e]), B = $(
|
|
2588
2588
|
(E, I, O) => {
|
|
2589
|
-
const S = E === "column" ? e.cols : e.rows,
|
|
2590
|
-
if (
|
|
2589
|
+
const S = E === "column" ? e.cols : e.rows, X = S[I];
|
|
2590
|
+
if (X === void 0) return;
|
|
2591
2591
|
const tt = S[I - 1], et = S[I + 1], ft = 10;
|
|
2592
2592
|
let ut = O;
|
|
2593
2593
|
if (tt !== void 0) {
|
|
2594
|
-
const
|
|
2595
|
-
ut = Math.max(ut,
|
|
2594
|
+
const q = tt + ft - X;
|
|
2595
|
+
ut = Math.max(ut, q);
|
|
2596
2596
|
}
|
|
2597
2597
|
if (et !== void 0) {
|
|
2598
|
-
const
|
|
2599
|
-
ut = Math.min(ut,
|
|
2598
|
+
const q = et - ft - X;
|
|
2599
|
+
ut = Math.min(ut, q);
|
|
2600
2600
|
}
|
|
2601
2601
|
d({
|
|
2602
2602
|
direction: E,
|
|
2603
|
-
position:
|
|
2603
|
+
position: X + ut
|
|
2604
2604
|
});
|
|
2605
2605
|
},
|
|
2606
2606
|
[e]
|
|
2607
2607
|
), C = $(
|
|
2608
2608
|
(E, I, O) => {
|
|
2609
|
-
const S = E === "column" ? e.cols : e.rows,
|
|
2610
|
-
if (
|
|
2609
|
+
const S = E === "column" ? e.cols : e.rows, X = S[I];
|
|
2610
|
+
if (X === void 0) {
|
|
2611
2611
|
d(null);
|
|
2612
2612
|
return;
|
|
2613
2613
|
}
|
|
2614
2614
|
const tt = S[I - 1], et = S[I + 1], ft = 10;
|
|
2615
2615
|
let ut = O;
|
|
2616
2616
|
if (tt !== void 0) {
|
|
2617
|
-
const
|
|
2618
|
-
ut = Math.max(ut,
|
|
2617
|
+
const q = tt + ft - X;
|
|
2618
|
+
ut = Math.max(ut, q);
|
|
2619
2619
|
}
|
|
2620
2620
|
if (et !== void 0) {
|
|
2621
|
-
const
|
|
2622
|
-
ut = Math.min(ut,
|
|
2621
|
+
const q = et - ft - X;
|
|
2622
|
+
ut = Math.min(ut, q);
|
|
2623
2623
|
}
|
|
2624
|
-
d(null), y(null),
|
|
2624
|
+
d(null), y(null), g == null || g(E, I, ut);
|
|
2625
2625
|
},
|
|
2626
|
-
[e,
|
|
2626
|
+
[e, g]
|
|
2627
2627
|
), L = {
|
|
2628
2628
|
position: "relative",
|
|
2629
2629
|
width: "100%",
|
|
2630
2630
|
height: "100%"
|
|
2631
2631
|
};
|
|
2632
|
-
return /* @__PURE__ */ r.jsxs("div", { ref: T, className:
|
|
2632
|
+
return /* @__PURE__ */ r.jsxs("div", { ref: T, className: w, style: L, children: [
|
|
2633
2633
|
/* @__PURE__ */ r.jsx(
|
|
2634
2634
|
Go,
|
|
2635
2635
|
{
|
|
@@ -2637,7 +2637,7 @@ const ss = Y(
|
|
|
2637
2637
|
backgroundColor: a,
|
|
2638
2638
|
boxShadow: i,
|
|
2639
2639
|
zIndex: (p == null ? void 0 : p.canvas) ?? W.GRID_CANVAS,
|
|
2640
|
-
className:
|
|
2640
|
+
className: w
|
|
2641
2641
|
}
|
|
2642
2642
|
),
|
|
2643
2643
|
f && /* @__PURE__ */ r.jsx(
|
|
@@ -2647,7 +2647,7 @@ const ss = Y(
|
|
|
2647
2647
|
visible: f,
|
|
2648
2648
|
marginColor: l,
|
|
2649
2649
|
zIndex: (p == null ? void 0 : p.margin) ?? W.MARGIN_OVERLAY,
|
|
2650
|
-
className:
|
|
2650
|
+
className: w
|
|
2651
2651
|
}
|
|
2652
2652
|
),
|
|
2653
2653
|
c && /* @__PURE__ */ r.jsx(
|
|
@@ -2661,7 +2661,7 @@ const ss = Y(
|
|
|
2661
2661
|
visible: c,
|
|
2662
2662
|
zIndex: (p == null ? void 0 : p.grid) ?? W.GRID_OVERLAY,
|
|
2663
2663
|
dpi: Z,
|
|
2664
|
-
className:
|
|
2664
|
+
className: w
|
|
2665
2665
|
}
|
|
2666
2666
|
),
|
|
2667
2667
|
h && /* @__PURE__ */ r.jsx(
|
|
@@ -2674,10 +2674,10 @@ const ss = Y(
|
|
|
2674
2674
|
visible: h,
|
|
2675
2675
|
dpi: Z,
|
|
2676
2676
|
zIndex: (p == null ? void 0 : p.border) ?? W.BORDER_OVERLAY,
|
|
2677
|
-
className:
|
|
2677
|
+
className: w
|
|
2678
2678
|
}
|
|
2679
2679
|
),
|
|
2680
|
-
v &&
|
|
2680
|
+
v && g && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2681
2681
|
e.cols.map((E, I) => {
|
|
2682
2682
|
if (I === 0 || I === e.cols.length - 1)
|
|
2683
2683
|
return null;
|
|
@@ -2721,7 +2721,7 @@ const ss = Y(
|
|
|
2721
2721
|
n.cols.map((E, I) => {
|
|
2722
2722
|
const O = e.cols[I], S = e.cols[I + 1];
|
|
2723
2723
|
if (O === void 0 || S === void 0) return null;
|
|
2724
|
-
const
|
|
2724
|
+
const X = (b == null ? void 0 : b.direction) === "column" && (b.index === I || b.index === I + 1);
|
|
2725
2725
|
let tt;
|
|
2726
2726
|
P && P.direction === "column" && (P.prevIndex === I ? tt = P.prevSize : P.nextIndex === I && (tt = P.nextSize));
|
|
2727
2727
|
const et = (O + S) / 2, ft = S - O, ut = `col-dim-${I}`;
|
|
@@ -2735,7 +2735,7 @@ const ss = Y(
|
|
|
2735
2735
|
currentPxSize: ft,
|
|
2736
2736
|
marginLeftPx: t.margin.left,
|
|
2737
2737
|
marginTopPx: t.margin.top,
|
|
2738
|
-
isNearCursor: j ||
|
|
2738
|
+
isNearCursor: j || X,
|
|
2739
2739
|
resizingPxSize: tt,
|
|
2740
2740
|
onDimensionChange: N
|
|
2741
2741
|
},
|
|
@@ -2746,7 +2746,7 @@ const ss = Y(
|
|
|
2746
2746
|
n.rows.map((E, I) => {
|
|
2747
2747
|
const O = e.rows[I], S = e.rows[I + 1];
|
|
2748
2748
|
if (O === void 0 || S === void 0) return null;
|
|
2749
|
-
const
|
|
2749
|
+
const X = (b == null ? void 0 : b.direction) === "row" && (b.index === I || b.index === I + 1), tt = (O + S) / 2, et = S - O, ft = `row-dim-${I}`;
|
|
2750
2750
|
return /* @__PURE__ */ r.jsx(
|
|
2751
2751
|
Ue,
|
|
2752
2752
|
{
|
|
@@ -2757,7 +2757,7 @@ const ss = Y(
|
|
|
2757
2757
|
currentPxSize: et,
|
|
2758
2758
|
marginLeftPx: t.margin.left,
|
|
2759
2759
|
marginTopPx: t.margin.top,
|
|
2760
|
-
isNearCursor: j ||
|
|
2760
|
+
isNearCursor: j || X,
|
|
2761
2761
|
onDimensionChange: N
|
|
2762
2762
|
},
|
|
2763
2763
|
ft
|
|
@@ -2916,24 +2916,24 @@ const ss = Y(
|
|
|
2916
2916
|
subZIndex: h = Nt.CONTENT,
|
|
2917
2917
|
validationState: v,
|
|
2918
2918
|
className: x = ""
|
|
2919
|
-
},
|
|
2919
|
+
}, g) => {
|
|
2920
2920
|
const N = It(null);
|
|
2921
2921
|
Mn(
|
|
2922
|
-
|
|
2922
|
+
g,
|
|
2923
2923
|
() => ({
|
|
2924
2924
|
focus: () => {
|
|
2925
|
-
var
|
|
2926
|
-
return (
|
|
2925
|
+
var b;
|
|
2926
|
+
return (b = N.current) == null ? void 0 : b.focus();
|
|
2927
2927
|
}
|
|
2928
2928
|
}),
|
|
2929
2929
|
[]
|
|
2930
2930
|
);
|
|
2931
|
-
const
|
|
2931
|
+
const w = ye(f, h), p = {
|
|
2932
2932
|
position: "absolute",
|
|
2933
2933
|
inset: 0,
|
|
2934
2934
|
width: `${c.width}px`,
|
|
2935
2935
|
height: `${c.height}px`,
|
|
2936
|
-
zIndex:
|
|
2936
|
+
zIndex: w,
|
|
2937
2937
|
pointerEvents: "auto"
|
|
2938
2938
|
// クリックイベントを受け取る
|
|
2939
2939
|
}, m = {
|
|
@@ -2962,7 +2962,7 @@ const ss = Y(
|
|
|
2962
2962
|
children: /* @__PURE__ */ r.jsx(d, { ref: N, ...m })
|
|
2963
2963
|
}
|
|
2964
2964
|
);
|
|
2965
|
-
}, ds =
|
|
2965
|
+
}, ds = qe(us), je = Y(
|
|
2966
2966
|
ds
|
|
2967
2967
|
);
|
|
2968
2968
|
function Vn(t, e) {
|
|
@@ -2977,7 +2977,7 @@ function Vn(t, e) {
|
|
|
2977
2977
|
};
|
|
2978
2978
|
}
|
|
2979
2979
|
const Fn = Y(
|
|
2980
|
-
|
|
2980
|
+
qe(
|
|
2981
2981
|
({
|
|
2982
2982
|
block: t,
|
|
2983
2983
|
plugin: e,
|
|
@@ -2997,10 +2997,10 @@ const Fn = Y(
|
|
|
2997
2997
|
},
|
|
2998
2998
|
defaultGuideBorder: v = Qe,
|
|
2999
2999
|
dpi: x = Z,
|
|
3000
|
-
className:
|
|
3000
|
+
className: g = "",
|
|
3001
3001
|
pointerEvents: N = "none"
|
|
3002
|
-
},
|
|
3003
|
-
var d,
|
|
3002
|
+
}, w) => {
|
|
3003
|
+
var d, b, y, R;
|
|
3004
3004
|
const p = Vn(n, {
|
|
3005
3005
|
zIndex: s,
|
|
3006
3006
|
pointerEvents: N
|
|
@@ -3013,7 +3013,7 @@ const Fn = Y(
|
|
|
3013
3013
|
{
|
|
3014
3014
|
style: p,
|
|
3015
3015
|
"data-block-id": t.id,
|
|
3016
|
-
className:
|
|
3016
|
+
className: g,
|
|
3017
3017
|
children: [
|
|
3018
3018
|
/* @__PURE__ */ r.jsx(
|
|
3019
3019
|
as,
|
|
@@ -3024,7 +3024,7 @@ const Fn = Y(
|
|
|
3024
3024
|
subZIndex: h.bg
|
|
3025
3025
|
}
|
|
3026
3026
|
),
|
|
3027
|
-
c && !((
|
|
3027
|
+
c && !((b = t.style) != null && b.border) && /* @__PURE__ */ r.jsx(
|
|
3028
3028
|
cs,
|
|
3029
3029
|
{
|
|
3030
3030
|
blockSizePx: m,
|
|
@@ -3038,13 +3038,13 @@ const Fn = Y(
|
|
|
3038
3038
|
je,
|
|
3039
3039
|
{
|
|
3040
3040
|
id: t.id,
|
|
3041
|
-
ref:
|
|
3041
|
+
ref: w,
|
|
3042
3042
|
plugin: e,
|
|
3043
3043
|
props: t.props,
|
|
3044
3044
|
value: a,
|
|
3045
3045
|
onChange: i,
|
|
3046
3046
|
onBlur: l,
|
|
3047
|
-
readOnly: o ===
|
|
3047
|
+
readOnly: o === wt.EDIT ? ((y = t.behavior) == null ? void 0 : y.readOnly) ?? !1 : !0,
|
|
3048
3048
|
mode: o,
|
|
3049
3049
|
blockSizePx: m,
|
|
3050
3050
|
blockZIndex: s,
|
|
@@ -3089,17 +3089,17 @@ const Ne = Y(
|
|
|
3089
3089
|
},
|
|
3090
3090
|
defaultGuideBorder: v = Qe,
|
|
3091
3091
|
dpi: x = Z,
|
|
3092
|
-
className:
|
|
3092
|
+
className: g = ""
|
|
3093
3093
|
}) => {
|
|
3094
|
-
const N = It(/* @__PURE__ */ new Map()),
|
|
3094
|
+
const N = It(/* @__PURE__ */ new Map()), w = {
|
|
3095
3095
|
position: "absolute",
|
|
3096
3096
|
inset: 0,
|
|
3097
3097
|
pointerEvents: "none"
|
|
3098
3098
|
};
|
|
3099
|
-
return /* @__PURE__ */ r.jsx("div", { className:
|
|
3099
|
+
return /* @__PURE__ */ r.jsx("div", { className: g, style: w, "data-testid": "block-layer", children: t.map((p, m) => {
|
|
3100
3100
|
const d = e[p.kind];
|
|
3101
3101
|
if (!d) return null;
|
|
3102
|
-
const
|
|
3102
|
+
const b = a(p), y = o.includes(p.id);
|
|
3103
3103
|
let R = Wr(m);
|
|
3104
3104
|
y && (R = W.SELECT_BLOCK);
|
|
3105
3105
|
const G = s[p.id] ?? p.initValue;
|
|
@@ -3111,7 +3111,7 @@ const Ne = Y(
|
|
|
3111
3111
|
},
|
|
3112
3112
|
block: p,
|
|
3113
3113
|
plugin: d,
|
|
3114
|
-
blockRectPx:
|
|
3114
|
+
blockRectPx: b,
|
|
3115
3115
|
blockZIndex: R,
|
|
3116
3116
|
mode: n,
|
|
3117
3117
|
value: G,
|
|
@@ -3182,17 +3182,17 @@ class fs {
|
|
|
3182
3182
|
}
|
|
3183
3183
|
}
|
|
3184
3184
|
const Ye = new fs();
|
|
3185
|
-
function
|
|
3185
|
+
function _n(t, e, n, s) {
|
|
3186
3186
|
if (e < 0 || e >= t.length)
|
|
3187
3187
|
return t;
|
|
3188
3188
|
const o = [...t], a = o[e], i = o[e + 1];
|
|
3189
|
-
return !a || !i ? t : a.unit === "fr" && i.unit === "fr" ? hs(o, e, n, s) : a.unit !== "fr" && i.unit !== "fr" ? ms(o, e, n) : a.unit === "fr" && i.unit !== "fr" ?
|
|
3189
|
+
return !a || !i ? t : a.unit === "fr" && i.unit === "fr" ? hs(o, e, n, s) : a.unit !== "fr" && i.unit !== "fr" ? ms(o, e, n) : a.unit === "fr" && i.unit !== "fr" ? wn(
|
|
3190
3190
|
o,
|
|
3191
3191
|
e,
|
|
3192
3192
|
n,
|
|
3193
3193
|
"next",
|
|
3194
3194
|
s
|
|
3195
|
-
) :
|
|
3195
|
+
) : wn(
|
|
3196
3196
|
o,
|
|
3197
3197
|
e,
|
|
3198
3198
|
n,
|
|
@@ -3204,15 +3204,15 @@ function hs(t, e, n, s) {
|
|
|
3204
3204
|
const o = t[e], a = t[e + 1];
|
|
3205
3205
|
if (!o || !a) return t;
|
|
3206
3206
|
const i = t.reduce(
|
|
3207
|
-
(N,
|
|
3207
|
+
(N, w) => w.unit === "fr" ? N + w.value : N,
|
|
3208
3208
|
0
|
|
3209
|
-
), l = s / i, c = o.value * l, f = a.value * l, h = Math.max(10, c + n), v = Math.max(10, f - n), x = h / l,
|
|
3209
|
+
), l = s / i, c = o.value * l, f = a.value * l, h = Math.max(10, c + n), v = Math.max(10, f - n), x = h / l, g = v / l;
|
|
3210
3210
|
return t[e] = {
|
|
3211
3211
|
...o,
|
|
3212
3212
|
value: Math.round(x * 100) / 100
|
|
3213
3213
|
}, t[e + 1] = {
|
|
3214
3214
|
...a,
|
|
3215
|
-
value: Math.round(
|
|
3215
|
+
value: Math.round(g * 100) / 100
|
|
3216
3216
|
}, t;
|
|
3217
3217
|
}
|
|
3218
3218
|
function ms(t, e, n) {
|
|
@@ -3221,13 +3221,13 @@ function ms(t, e, n) {
|
|
|
3221
3221
|
const a = K.fromDim(s), i = K.fromDim(o), l = Math.max(10, a + n), c = Math.max(10, i - n);
|
|
3222
3222
|
return t[e] = {
|
|
3223
3223
|
...s,
|
|
3224
|
-
value:
|
|
3224
|
+
value: be(l, s.unit)
|
|
3225
3225
|
}, t[e + 1] = {
|
|
3226
3226
|
...o,
|
|
3227
|
-
value:
|
|
3227
|
+
value: be(c, o.unit)
|
|
3228
3228
|
}, t;
|
|
3229
3229
|
}
|
|
3230
|
-
function
|
|
3230
|
+
function wn(t, e, n, s, o) {
|
|
3231
3231
|
const a = t[e], i = t[e + 1];
|
|
3232
3232
|
if (!a || !i) return t;
|
|
3233
3233
|
let l = 0, c = 0;
|
|
@@ -3238,9 +3238,9 @@ function _n(t, e, n, s, o) {
|
|
|
3238
3238
|
const v = K.fromDim(i), x = Math.max(10, v - n);
|
|
3239
3239
|
t[e + 1] = {
|
|
3240
3240
|
...i,
|
|
3241
|
-
value:
|
|
3241
|
+
value: be(x, i.unit)
|
|
3242
3242
|
};
|
|
3243
|
-
const
|
|
3243
|
+
const g = x - v, N = f - g, w = a.value * h, p = Math.max(10, w + n), m = l > 0 ? p / N * l : 1;
|
|
3244
3244
|
t[e] = {
|
|
3245
3245
|
...a,
|
|
3246
3246
|
value: Math.round(m * 100) / 100
|
|
@@ -3249,9 +3249,9 @@ function _n(t, e, n, s, o) {
|
|
|
3249
3249
|
const v = K.fromDim(a), x = Math.max(10, v + n);
|
|
3250
3250
|
t[e] = {
|
|
3251
3251
|
...a,
|
|
3252
|
-
value:
|
|
3252
|
+
value: be(x, a.unit)
|
|
3253
3253
|
};
|
|
3254
|
-
const
|
|
3254
|
+
const g = x - v, N = f - g, w = i.value * h, p = Math.max(10, w - n), m = l > 0 ? p / N * l : 1;
|
|
3255
3255
|
t[e + 1] = {
|
|
3256
3256
|
...i,
|
|
3257
3257
|
value: Math.round(m * 100) / 100
|
|
@@ -3259,7 +3259,7 @@ function _n(t, e, n, s, o) {
|
|
|
3259
3259
|
}
|
|
3260
3260
|
return t;
|
|
3261
3261
|
}
|
|
3262
|
-
function
|
|
3262
|
+
function be(t, e) {
|
|
3263
3263
|
switch (e) {
|
|
3264
3264
|
case "px":
|
|
3265
3265
|
return Math.round(t);
|
|
@@ -3299,9 +3299,9 @@ function ps(t) {
|
|
|
3299
3299
|
}
|
|
3300
3300
|
return e;
|
|
3301
3301
|
}
|
|
3302
|
-
const vs = 8, xs = 32,
|
|
3302
|
+
const vs = 8, xs = 32, gs = 64, bs = 512, En = (t, e, n) => Math.min(Math.max(t, e), n);
|
|
3303
3303
|
function jn(t) {
|
|
3304
|
-
const e = t.length - 1, n = e >= 1 ? t[e] ?? 0 : 0, s = t.length >= 1 ? n / e : 0, o = En(Math.ceil(Math.log2(e + 1)), vs, xs), a = En(s * 2,
|
|
3304
|
+
const e = t.length - 1, n = e >= 1 ? t[e] ?? 0 : 0, s = t.length >= 1 ? n / e : 0, o = En(Math.ceil(Math.log2(e + 1)), vs, xs), a = En(s * 2, gs, bs);
|
|
3305
3305
|
return { step: o, windowPx: a };
|
|
3306
3306
|
}
|
|
3307
3307
|
function Be(t, e) {
|
|
@@ -3404,17 +3404,17 @@ function ys(t) {
|
|
|
3404
3404
|
const n = e.layout;
|
|
3405
3405
|
return !(typeof n.x != "number" || typeof n.y != "number" || typeof n.w != "number" || typeof n.h != "number" || e.props !== void 0 && typeof e.props != "object");
|
|
3406
3406
|
}
|
|
3407
|
-
function
|
|
3407
|
+
function _s(t) {
|
|
3408
3408
|
return t === "fr" || t === "px" || t === "%";
|
|
3409
3409
|
}
|
|
3410
3410
|
function In(t) {
|
|
3411
3411
|
return Array.isArray(t) ? t.every((e) => {
|
|
3412
3412
|
if (typeof e != "object" || e === null) return !1;
|
|
3413
3413
|
const n = e;
|
|
3414
|
-
return typeof n.value == "number" &&
|
|
3414
|
+
return typeof n.value == "number" && _s(n.unit);
|
|
3415
3415
|
}) : !1;
|
|
3416
3416
|
}
|
|
3417
|
-
function
|
|
3417
|
+
function ws(t) {
|
|
3418
3418
|
if (typeof t != "object" || t === null) return !1;
|
|
3419
3419
|
const e = t;
|
|
3420
3420
|
return In(e.cols) && In(e.rows);
|
|
@@ -3448,7 +3448,7 @@ function Ns(t) {
|
|
|
3448
3448
|
const e = t;
|
|
3449
3449
|
if (!Es(e.paper))
|
|
3450
3450
|
throw new Error("Invalid paper definition");
|
|
3451
|
-
if (!
|
|
3451
|
+
if (!ws(e.grid))
|
|
3452
3452
|
throw new Error("Invalid grid definition");
|
|
3453
3453
|
if (!Array.isArray(e.blocks))
|
|
3454
3454
|
throw new Error("blocks must be an array");
|
|
@@ -3543,13 +3543,13 @@ function tn(t, e, n = Z) {
|
|
|
3543
3543
|
), x = M(
|
|
3544
3544
|
() => ze(e.rows, h),
|
|
3545
3545
|
[e.rows, h]
|
|
3546
|
-
),
|
|
3546
|
+
), g = M(
|
|
3547
3547
|
() => K.fromMm(s, n),
|
|
3548
3548
|
[s, n]
|
|
3549
3549
|
), N = M(
|
|
3550
3550
|
() => K.fromMm(o, n),
|
|
3551
3551
|
[o, n]
|
|
3552
|
-
),
|
|
3552
|
+
), w = M(
|
|
3553
3553
|
() => K.fromMm(a, n),
|
|
3554
3554
|
[a, n]
|
|
3555
3555
|
), p = M(
|
|
@@ -3561,26 +3561,26 @@ function tn(t, e, n = Z) {
|
|
|
3561
3561
|
), d = M(
|
|
3562
3562
|
() => K.fromMm(c, n),
|
|
3563
3563
|
[c, n]
|
|
3564
|
-
),
|
|
3564
|
+
), b = M(
|
|
3565
3565
|
() => K.fromMm(f, n),
|
|
3566
3566
|
[f, n]
|
|
3567
3567
|
), y = M(
|
|
3568
3568
|
() => K.fromMm(h, n),
|
|
3569
3569
|
[h, n]
|
|
3570
3570
|
), R = M(() => Ke(v, n), [v, n]), G = M(() => Ke(x, n), [x, n]), T = M(() => {
|
|
3571
|
-
const
|
|
3571
|
+
const q = [0];
|
|
3572
3572
|
for (const St of R) {
|
|
3573
|
-
const kt =
|
|
3574
|
-
|
|
3573
|
+
const kt = q[q.length - 1] ?? 0;
|
|
3574
|
+
q.push(kt + St);
|
|
3575
3575
|
}
|
|
3576
|
-
return
|
|
3576
|
+
return q;
|
|
3577
3577
|
}, [R]), j = M(() => {
|
|
3578
|
-
const
|
|
3578
|
+
const q = [0];
|
|
3579
3579
|
for (const St of G) {
|
|
3580
|
-
const kt =
|
|
3581
|
-
|
|
3580
|
+
const kt = q[q.length - 1] ?? 0;
|
|
3581
|
+
q.push(kt + St);
|
|
3582
3582
|
}
|
|
3583
|
-
return
|
|
3583
|
+
return q;
|
|
3584
3584
|
}, [G]), { step: A, windowPx: P } = M(
|
|
3585
3585
|
() => jn(T),
|
|
3586
3586
|
[T]
|
|
@@ -3594,38 +3594,38 @@ function tn(t, e, n = Z) {
|
|
|
3594
3594
|
() => Nn(j, B, C),
|
|
3595
3595
|
[j, B, C]
|
|
3596
3596
|
), I = $(
|
|
3597
|
-
(
|
|
3597
|
+
(q) => L(q - m),
|
|
3598
3598
|
[L, m]
|
|
3599
3599
|
), O = $(
|
|
3600
|
-
(
|
|
3601
|
-
[E,
|
|
3600
|
+
(q) => E(q - w),
|
|
3601
|
+
[E, w]
|
|
3602
3602
|
), S = M(() => ({
|
|
3603
3603
|
cols: T,
|
|
3604
3604
|
rows: j
|
|
3605
|
-
}), [T, j]),
|
|
3606
|
-
width:
|
|
3605
|
+
}), [T, j]), X = M(() => ({
|
|
3606
|
+
width: g,
|
|
3607
3607
|
height: N
|
|
3608
|
-
}), [
|
|
3609
|
-
top:
|
|
3608
|
+
}), [g, N]), tt = M(() => ({
|
|
3609
|
+
top: w,
|
|
3610
3610
|
bottom: p,
|
|
3611
3611
|
left: m,
|
|
3612
3612
|
right: d
|
|
3613
|
-
}), [
|
|
3614
|
-
width:
|
|
3613
|
+
}), [w, p, m, d]), et = M(() => ({
|
|
3614
|
+
width: b,
|
|
3615
3615
|
height: y
|
|
3616
|
-
}), [
|
|
3617
|
-
canvas:
|
|
3616
|
+
}), [b, y]), ft = M(() => ({
|
|
3617
|
+
canvas: X,
|
|
3618
3618
|
margin: tt,
|
|
3619
3619
|
content: et
|
|
3620
|
-
}), [
|
|
3621
|
-
(
|
|
3622
|
-
const { x: St, y: kt, w: Zt, h: Qt } =
|
|
3620
|
+
}), [X, tt, et]), ut = $(
|
|
3621
|
+
(q) => {
|
|
3622
|
+
const { x: St, y: kt, w: Zt, h: Qt } = q.layout, Dt = S.cols, Rt = S.rows;
|
|
3623
3623
|
if (!Dt.length || !Rt.length)
|
|
3624
3624
|
return { left: 0, top: 0, width: 0, height: 0 };
|
|
3625
|
-
const Vt = Math.min(Math.max(0, St), Dt.length - 1), De = Math.min(Math.max(0, St + Zt), Dt.length - 1), te = Math.min(Math.max(0, kt), Rt.length - 1), $e = Math.min(Math.max(0, kt + Qt), Rt.length - 1), Re = (Dt[Vt] ?? 0) + m, Yt = (Rt[te] ?? 0) +
|
|
3625
|
+
const Vt = Math.min(Math.max(0, St), Dt.length - 1), De = Math.min(Math.max(0, St + Zt), Dt.length - 1), te = Math.min(Math.max(0, kt), Rt.length - 1), $e = Math.min(Math.max(0, kt + Qt), Rt.length - 1), Re = (Dt[Vt] ?? 0) + m, Yt = (Rt[te] ?? 0) + w, Ft = (Dt[De] ?? 0) - (Dt[Vt] ?? 0), me = (Rt[$e] ?? 0) - (Rt[te] ?? 0);
|
|
3626
3626
|
return { left: Re, top: Yt, width: Ft, height: me };
|
|
3627
3627
|
},
|
|
3628
|
-
[S, m,
|
|
3628
|
+
[S, m, w]
|
|
3629
3629
|
);
|
|
3630
3630
|
return {
|
|
3631
3631
|
paperPx: ft,
|
|
@@ -3684,7 +3684,7 @@ const Wn = Y(
|
|
|
3684
3684
|
{
|
|
3685
3685
|
blocks: t.blocks,
|
|
3686
3686
|
pluginRegistry: n,
|
|
3687
|
-
mode:
|
|
3687
|
+
mode: wt.EDIT,
|
|
3688
3688
|
values: e,
|
|
3689
3689
|
getBlockRectPx: c,
|
|
3690
3690
|
onValueChange: f,
|
|
@@ -3856,7 +3856,7 @@ const Ie = {
|
|
|
3856
3856
|
select_border: W.BLOCK_SELECT_BORDER,
|
|
3857
3857
|
block_handles: W.BLOCK_HANDLES,
|
|
3858
3858
|
rubber_band: W.RUBBER_BAND
|
|
3859
|
-
}, $s = "
|
|
3859
|
+
}, $s = "_interactionBlock_7lg72_13", Rs = "_resizeHandle_7lg72_13", Yn = {
|
|
3860
3860
|
interactionBlock: $s,
|
|
3861
3861
|
resizeHandle: Rs
|
|
3862
3862
|
}, Ts = [
|
|
@@ -3882,8 +3882,8 @@ const Ie = {
|
|
|
3882
3882
|
"div",
|
|
3883
3883
|
{
|
|
3884
3884
|
className: Yn.resizeHandle,
|
|
3885
|
-
onPointerDown: (
|
|
3886
|
-
|
|
3885
|
+
onPointerDown: (g) => {
|
|
3886
|
+
g.stopPropagation(), t(g, i);
|
|
3887
3887
|
},
|
|
3888
3888
|
style: {
|
|
3889
3889
|
position: "absolute",
|
|
@@ -4000,30 +4000,30 @@ const Kn = Y(
|
|
|
4000
4000
|
}) => {
|
|
4001
4001
|
const x = t[a];
|
|
4002
4002
|
if (!x) return null;
|
|
4003
|
-
let
|
|
4003
|
+
let g;
|
|
4004
4004
|
if (l && o) {
|
|
4005
|
-
const
|
|
4005
|
+
const w = qt(x, {
|
|
4006
4006
|
x: 0,
|
|
4007
4007
|
y: 0,
|
|
4008
4008
|
w: i.w,
|
|
4009
4009
|
h: i.h
|
|
4010
|
-
}), p = n(
|
|
4011
|
-
|
|
4010
|
+
}), p = n(w);
|
|
4011
|
+
g = {
|
|
4012
4012
|
left: o.x - p.width / 2,
|
|
4013
4013
|
top: o.y - p.height / 2,
|
|
4014
4014
|
width: p.width,
|
|
4015
4015
|
height: p.height
|
|
4016
4016
|
};
|
|
4017
4017
|
} else {
|
|
4018
|
-
const
|
|
4018
|
+
const w = e.cols - i.w, p = e.rows - i.h, m = Math.max(0, Math.min(s.col, w)), d = Math.max(0, Math.min(s.row, p)), b = qt(x, {
|
|
4019
4019
|
x: m,
|
|
4020
4020
|
y: d,
|
|
4021
4021
|
w: i.w,
|
|
4022
4022
|
h: i.h
|
|
4023
4023
|
});
|
|
4024
|
-
|
|
4024
|
+
g = n(b);
|
|
4025
4025
|
}
|
|
4026
|
-
const N =
|
|
4026
|
+
const N = qt(x, {
|
|
4027
4027
|
x: 0,
|
|
4028
4028
|
y: 0,
|
|
4029
4029
|
w: i.w,
|
|
@@ -4044,10 +4044,10 @@ const Kn = Y(
|
|
|
4044
4044
|
{
|
|
4045
4045
|
style: {
|
|
4046
4046
|
position: "absolute",
|
|
4047
|
-
left: `${
|
|
4048
|
-
top: `${
|
|
4049
|
-
width: `${
|
|
4050
|
-
height: `${
|
|
4047
|
+
left: `${g.left}px`,
|
|
4048
|
+
top: `${g.top}px`,
|
|
4049
|
+
width: `${g.width}px`,
|
|
4050
|
+
height: `${g.height}px`,
|
|
4051
4051
|
opacity: l ? 0.3 : 0.6,
|
|
4052
4052
|
filter: l ? "grayscale(100%)" : "none",
|
|
4053
4053
|
zIndex: f
|
|
@@ -4062,8 +4062,8 @@ const Kn = Y(
|
|
|
4062
4062
|
onChange: () => {
|
|
4063
4063
|
},
|
|
4064
4064
|
readOnly: !0,
|
|
4065
|
-
mode:
|
|
4066
|
-
blockSizePx:
|
|
4065
|
+
mode: wt.EDIT,
|
|
4066
|
+
blockSizePx: g,
|
|
4067
4067
|
blockZIndex: f
|
|
4068
4068
|
}
|
|
4069
4069
|
)
|
|
@@ -4073,7 +4073,7 @@ const Kn = Y(
|
|
|
4073
4073
|
he,
|
|
4074
4074
|
{
|
|
4075
4075
|
block: N,
|
|
4076
|
-
rect:
|
|
4076
|
+
rect: g,
|
|
4077
4077
|
selectionStyle: c,
|
|
4078
4078
|
selectBorderZIndex: h,
|
|
4079
4079
|
blockHandlesZIndex: v
|
|
@@ -4091,17 +4091,17 @@ function Hn(t, e, n, s, o) {
|
|
|
4091
4091
|
if (t.length === 1) {
|
|
4092
4092
|
const m = t[0];
|
|
4093
4093
|
if (!m) return [];
|
|
4094
|
-
const d = s - m.layout.w,
|
|
4094
|
+
const d = s - m.layout.w, b = o - m.layout.h, y = Math.max(0, Math.min(m.layout.x + e, d)), R = Math.max(0, Math.min(m.layout.y + n, b));
|
|
4095
4095
|
return [{ blockId: m.id, x: y, y: R }];
|
|
4096
4096
|
}
|
|
4097
|
-
const a = Math.min(...t.map((m) => m.layout.x)), i = Math.min(...t.map((m) => m.layout.y)), l = Math.max(...t.map((m) => m.layout.x + m.layout.w)), c = Math.max(...t.map((m) => m.layout.y + m.layout.h)), f = l - a, h = c - i, v = a + e, x = i + n,
|
|
4097
|
+
const a = Math.min(...t.map((m) => m.layout.x)), i = Math.min(...t.map((m) => m.layout.y)), l = Math.max(...t.map((m) => m.layout.x + m.layout.w)), c = Math.max(...t.map((m) => m.layout.y + m.layout.h)), f = l - a, h = c - i, v = a + e, x = i + n, g = Math.max(0, Math.min(v, s - f)), N = Math.max(0, Math.min(x, o - h)), w = g - a, p = N - i;
|
|
4098
4098
|
return t.map((m) => ({
|
|
4099
4099
|
blockId: m.id,
|
|
4100
|
-
x: m.layout.x +
|
|
4100
|
+
x: m.layout.x + w,
|
|
4101
4101
|
y: m.layout.y + p
|
|
4102
4102
|
}));
|
|
4103
4103
|
}
|
|
4104
|
-
const
|
|
4104
|
+
const Xn = Y(
|
|
4105
4105
|
({
|
|
4106
4106
|
blocks: t,
|
|
4107
4107
|
pluginRegistry: e,
|
|
@@ -4117,8 +4117,8 @@ const qn = Y(
|
|
|
4117
4117
|
selectBorderZIndex: v = ct.select_border,
|
|
4118
4118
|
blockHandlesZIndex: x = ct.block_handles
|
|
4119
4119
|
}) => {
|
|
4120
|
-
const
|
|
4121
|
-
|
|
4120
|
+
const g = o.map((w) => t.find((p) => p.id === w)).filter(Boolean), N = Hn(
|
|
4121
|
+
g,
|
|
4122
4122
|
a,
|
|
4123
4123
|
i,
|
|
4124
4124
|
n.cols,
|
|
@@ -4133,8 +4133,8 @@ const qn = Y(
|
|
|
4133
4133
|
inset: 0,
|
|
4134
4134
|
pointerEvents: "none"
|
|
4135
4135
|
},
|
|
4136
|
-
children: o.map((
|
|
4137
|
-
const p = t.find((y) => y.id ===
|
|
4136
|
+
children: o.map((w) => {
|
|
4137
|
+
const p = t.find((y) => y.id === w);
|
|
4138
4138
|
if (!p) return null;
|
|
4139
4139
|
const m = e[p.kind];
|
|
4140
4140
|
if (!m) return null;
|
|
@@ -4162,7 +4162,7 @@ const qn = Y(
|
|
|
4162
4162
|
};
|
|
4163
4163
|
d = s(R);
|
|
4164
4164
|
}
|
|
4165
|
-
const
|
|
4165
|
+
const b = {
|
|
4166
4166
|
...p,
|
|
4167
4167
|
layout: {
|
|
4168
4168
|
...p.layout,
|
|
@@ -4187,14 +4187,14 @@ const qn = Y(
|
|
|
4187
4187
|
children: /* @__PURE__ */ r.jsx(
|
|
4188
4188
|
je,
|
|
4189
4189
|
{
|
|
4190
|
-
id:
|
|
4190
|
+
id: b.id,
|
|
4191
4191
|
plugin: m,
|
|
4192
|
-
props:
|
|
4193
|
-
value:
|
|
4192
|
+
props: b.props,
|
|
4193
|
+
value: b.initValue,
|
|
4194
4194
|
onChange: () => {
|
|
4195
4195
|
},
|
|
4196
4196
|
readOnly: !0,
|
|
4197
|
-
mode:
|
|
4197
|
+
mode: wt.EDIT,
|
|
4198
4198
|
blockSizePx: d,
|
|
4199
4199
|
blockZIndex: h,
|
|
4200
4200
|
className: "ghost-content"
|
|
@@ -4205,21 +4205,21 @@ const qn = Y(
|
|
|
4205
4205
|
/* @__PURE__ */ r.jsx(
|
|
4206
4206
|
he,
|
|
4207
4207
|
{
|
|
4208
|
-
block:
|
|
4208
|
+
block: b,
|
|
4209
4209
|
rect: d,
|
|
4210
4210
|
selectionStyle: f,
|
|
4211
4211
|
selectBorderZIndex: v,
|
|
4212
4212
|
blockHandlesZIndex: x
|
|
4213
4213
|
}
|
|
4214
4214
|
)
|
|
4215
|
-
] },
|
|
4215
|
+
] }, w);
|
|
4216
4216
|
})
|
|
4217
4217
|
}
|
|
4218
4218
|
);
|
|
4219
4219
|
}
|
|
4220
4220
|
);
|
|
4221
|
-
|
|
4222
|
-
function
|
|
4221
|
+
Xn.displayName = "MovingGhost";
|
|
4222
|
+
function qn({
|
|
4223
4223
|
layout: t,
|
|
4224
4224
|
handle: e,
|
|
4225
4225
|
deltaCol: n,
|
|
@@ -4260,18 +4260,18 @@ const Jn = Y(
|
|
|
4260
4260
|
selectBorderZIndex: v = ct.select_border,
|
|
4261
4261
|
blockHandlesZIndex: x = ct.block_handles
|
|
4262
4262
|
}) => {
|
|
4263
|
-
const
|
|
4264
|
-
if (!
|
|
4265
|
-
const
|
|
4266
|
-
layout:
|
|
4263
|
+
const g = t.find((d) => d.id === o), N = e[(g == null ? void 0 : g.kind) ?? ""];
|
|
4264
|
+
if (!g || !N) return null;
|
|
4265
|
+
const w = qn({
|
|
4266
|
+
layout: g.layout,
|
|
4267
4267
|
handle: a,
|
|
4268
4268
|
deltaCol: i,
|
|
4269
4269
|
deltaRow: l,
|
|
4270
4270
|
gridCols: n.cols,
|
|
4271
4271
|
gridRows: n.rows
|
|
4272
4272
|
}), p = {
|
|
4273
|
-
...
|
|
4274
|
-
layout:
|
|
4273
|
+
...g,
|
|
4274
|
+
layout: w
|
|
4275
4275
|
}, m = s(p);
|
|
4276
4276
|
return /* @__PURE__ */ r.jsx(
|
|
4277
4277
|
"div",
|
|
@@ -4306,7 +4306,7 @@ const Jn = Y(
|
|
|
4306
4306
|
onChange: () => {
|
|
4307
4307
|
},
|
|
4308
4308
|
readOnly: !0,
|
|
4309
|
-
mode:
|
|
4309
|
+
mode: wt.EDIT,
|
|
4310
4310
|
blockSizePx: m,
|
|
4311
4311
|
blockZIndex: h,
|
|
4312
4312
|
className: "resize-ghost-content"
|
|
@@ -4324,7 +4324,7 @@ const Jn = Y(
|
|
|
4324
4324
|
blockHandlesZIndex: x
|
|
4325
4325
|
}
|
|
4326
4326
|
)
|
|
4327
|
-
] },
|
|
4327
|
+
] }, g.id)
|
|
4328
4328
|
}
|
|
4329
4329
|
);
|
|
4330
4330
|
}
|
|
@@ -4348,7 +4348,7 @@ const Zn = Y(
|
|
|
4348
4348
|
// 移動モード
|
|
4349
4349
|
case vt.MOVE:
|
|
4350
4350
|
return /* @__PURE__ */ r.jsx(
|
|
4351
|
-
|
|
4351
|
+
Xn,
|
|
4352
4352
|
{
|
|
4353
4353
|
blocks: t,
|
|
4354
4354
|
pluginRegistry: e,
|
|
@@ -4440,7 +4440,7 @@ const Ps = ({
|
|
|
4440
4440
|
zIndex: l,
|
|
4441
4441
|
pointerEvents: "auto"
|
|
4442
4442
|
// クリックイベントを受け取る
|
|
4443
|
-
}),
|
|
4443
|
+
}), g = {
|
|
4444
4444
|
width: i.width,
|
|
4445
4445
|
height: i.height
|
|
4446
4446
|
}, N = {
|
|
@@ -4451,14 +4451,14 @@ const Ps = ({
|
|
|
4451
4451
|
onBlur: a,
|
|
4452
4452
|
readOnly: !1,
|
|
4453
4453
|
// 編集中は常に編集可能
|
|
4454
|
-
mode:
|
|
4454
|
+
mode: wt.FORM,
|
|
4455
4455
|
// EditingBlockはFormモード専用
|
|
4456
4456
|
dimensions: {
|
|
4457
|
-
widthPx:
|
|
4458
|
-
heightPx:
|
|
4457
|
+
widthPx: g.width,
|
|
4458
|
+
heightPx: g.height
|
|
4459
4459
|
},
|
|
4460
4460
|
validationState: c
|
|
4461
|
-
},
|
|
4461
|
+
}, w = e.Renderer;
|
|
4462
4462
|
return /* @__PURE__ */ r.jsx(
|
|
4463
4463
|
"div",
|
|
4464
4464
|
{
|
|
@@ -4467,10 +4467,10 @@ const Ps = ({
|
|
|
4467
4467
|
"data-testid": "editing-block",
|
|
4468
4468
|
"data-block-id": t,
|
|
4469
4469
|
"data-plugin-kind": e.kind,
|
|
4470
|
-
children: /* @__PURE__ */ r.jsx(
|
|
4470
|
+
children: /* @__PURE__ */ r.jsx(w, { ref: v, ...N })
|
|
4471
4471
|
}
|
|
4472
4472
|
);
|
|
4473
|
-
}, Ms =
|
|
4473
|
+
}, Ms = qe(Ps), Os = Y(
|
|
4474
4474
|
Ms
|
|
4475
4475
|
), Qn = Y(
|
|
4476
4476
|
({
|
|
@@ -4497,23 +4497,23 @@ const Ps = ({
|
|
|
4497
4497
|
pointerEvents: "none"
|
|
4498
4498
|
},
|
|
4499
4499
|
children: v.map((x) => {
|
|
4500
|
-
const
|
|
4501
|
-
if (!
|
|
4502
|
-
const
|
|
4500
|
+
const g = t.find((p) => p.id === x);
|
|
4501
|
+
if (!g) return null;
|
|
4502
|
+
const w = (s == null ? void 0 : s.type) === vt.RESIZE && s.blockIds.includes(x) ? s == null ? void 0 : s.handle : null;
|
|
4503
4503
|
return /* @__PURE__ */ r.jsx(
|
|
4504
4504
|
he,
|
|
4505
4505
|
{
|
|
4506
|
-
block:
|
|
4507
|
-
rect: o(
|
|
4506
|
+
block: g,
|
|
4507
|
+
rect: o(g),
|
|
4508
4508
|
showHandles: !0,
|
|
4509
4509
|
onResizeStart: (p, m) => a(p, m, x),
|
|
4510
|
-
activeHandle:
|
|
4510
|
+
activeHandle: w,
|
|
4511
4511
|
selectionStyle: i,
|
|
4512
4512
|
handleStyle: l,
|
|
4513
4513
|
selectBorderZIndex: c,
|
|
4514
4514
|
blockHandlesZIndex: f
|
|
4515
4515
|
},
|
|
4516
|
-
|
|
4516
|
+
g.id
|
|
4517
4517
|
);
|
|
4518
4518
|
})
|
|
4519
4519
|
}
|
|
@@ -4554,9 +4554,9 @@ const tr = Y(
|
|
|
4554
4554
|
className: h = "",
|
|
4555
4555
|
selectionStyle: v,
|
|
4556
4556
|
handleStyle: x,
|
|
4557
|
-
editBlockZIndex:
|
|
4557
|
+
editBlockZIndex: g = W.EDIT_BLOCK,
|
|
4558
4558
|
selectBorderZIndex: N = ct.select_border,
|
|
4559
|
-
blockHandlesZIndex:
|
|
4559
|
+
blockHandlesZIndex: w = ct.block_handles,
|
|
4560
4560
|
dragGhostZIndex: p = ct.block_ghost
|
|
4561
4561
|
}) => {
|
|
4562
4562
|
const m = It(null), d = It(null);
|
|
@@ -4575,7 +4575,7 @@ const tr = Y(
|
|
|
4575
4575
|
shiftKey: !1
|
|
4576
4576
|
});
|
|
4577
4577
|
}, [t, i.selectedBlockIds, l]);
|
|
4578
|
-
const
|
|
4578
|
+
const b = $(
|
|
4579
4579
|
(j) => {
|
|
4580
4580
|
var I;
|
|
4581
4581
|
if (j.button !== 0) return;
|
|
@@ -4601,7 +4601,7 @@ const tr = Y(
|
|
|
4601
4601
|
}), O && j.shiftKey) {
|
|
4602
4602
|
console.log("[InteractionLayer] Shift+Click deselect:", C);
|
|
4603
4603
|
const S = i.selectedBlockIds.filter(
|
|
4604
|
-
(
|
|
4604
|
+
(X) => X !== C
|
|
4605
4605
|
);
|
|
4606
4606
|
console.log("[InteractionLayer] New selection:", S), l({
|
|
4607
4607
|
type: U.SELECT,
|
|
@@ -4648,10 +4648,10 @@ const tr = Y(
|
|
|
4648
4648
|
if (i.mode !== J.PRESSING && i.mode !== J.DRAGGING || !i.dragging) return;
|
|
4649
4649
|
const A = (et = m.current) == null ? void 0 : et.getBoundingClientRect();
|
|
4650
4650
|
if (!A) return;
|
|
4651
|
-
const P = f ?? 1, B = A.width / P, C = A.height / P, L = (j.clientX - A.left) / P, E = (j.clientY - A.top) / P, I = i.dragging.type !== vt.RESIZE && (L < 0 || L > B || E < 0 || E > C), O = Math.max(0, Math.min(L, B)), S = Math.max(0, Math.min(E, C)),
|
|
4651
|
+
const P = f ?? 1, B = A.width / P, C = A.height / P, L = (j.clientX - A.left) / P, E = (j.clientY - A.top) / P, I = i.dragging.type !== vt.RESIZE && (L < 0 || L > B || E < 0 || E > C), O = Math.max(0, Math.min(L, B)), S = Math.max(0, Math.min(E, C)), X = o(O), tt = a(S);
|
|
4652
4652
|
l({
|
|
4653
4653
|
type: U.UPDATE_DRAG,
|
|
4654
|
-
currentGrid: { col:
|
|
4654
|
+
currentGrid: { col: X, row: tt },
|
|
4655
4655
|
currentMousePx: { x: L, y: E },
|
|
4656
4656
|
isOutside: I
|
|
4657
4657
|
});
|
|
@@ -4662,7 +4662,7 @@ const tr = Y(
|
|
|
4662
4662
|
if (i.mode === J.DRAGGING && i.dragging) {
|
|
4663
4663
|
if (i.dragging.isOutside) {
|
|
4664
4664
|
i.dragging.type === vt.MOVE && (c == null || c({
|
|
4665
|
-
type:
|
|
4665
|
+
type: _t.DELETE,
|
|
4666
4666
|
blockIds: i.dragging.blockIds
|
|
4667
4667
|
}), l({ type: U.DESELECT })), l({ type: U.END_DRAG }), j.currentTarget.releasePointerCapture(j.pointerId);
|
|
4668
4668
|
return;
|
|
@@ -4695,7 +4695,7 @@ const tr = Y(
|
|
|
4695
4695
|
} : E;
|
|
4696
4696
|
});
|
|
4697
4697
|
c == null || c({
|
|
4698
|
-
type:
|
|
4698
|
+
type: _t.MOVE,
|
|
4699
4699
|
blockIds: i.dragging.blockIds,
|
|
4700
4700
|
blocks: L
|
|
4701
4701
|
});
|
|
@@ -4710,14 +4710,14 @@ const tr = Y(
|
|
|
4710
4710
|
{ w: L.w, h: L.h },
|
|
4711
4711
|
n.cols,
|
|
4712
4712
|
n.rows
|
|
4713
|
-
), S =
|
|
4713
|
+
), S = qt(E, {
|
|
4714
4714
|
x: I,
|
|
4715
4715
|
y: O,
|
|
4716
4716
|
w: L.w,
|
|
4717
4717
|
h: L.h
|
|
4718
4718
|
});
|
|
4719
4719
|
c == null || c({
|
|
4720
|
-
type:
|
|
4720
|
+
type: _t.ADD,
|
|
4721
4721
|
blockIds: [S.id],
|
|
4722
4722
|
blocks: [S]
|
|
4723
4723
|
});
|
|
@@ -4726,7 +4726,7 @@ const tr = Y(
|
|
|
4726
4726
|
} else if (i.dragging.type === vt.RESIZE) {
|
|
4727
4727
|
const B = i.dragging.blockIds[0], C = t.find((E) => E.id === B), L = i.dragging.handle;
|
|
4728
4728
|
if (C && L && (A !== 0 || P !== 0)) {
|
|
4729
|
-
const E =
|
|
4729
|
+
const E = qn({
|
|
4730
4730
|
layout: C.layout,
|
|
4731
4731
|
handle: L,
|
|
4732
4732
|
deltaCol: A,
|
|
@@ -4735,7 +4735,7 @@ const tr = Y(
|
|
|
4735
4735
|
gridRows: n.rows
|
|
4736
4736
|
});
|
|
4737
4737
|
(E.x !== C.layout.x || E.y !== C.layout.y || E.w !== C.layout.w || E.h !== C.layout.h) && (c == null || c({
|
|
4738
|
-
type:
|
|
4738
|
+
type: _t.RESIZE,
|
|
4739
4739
|
blockIds: [C.id],
|
|
4740
4740
|
blocks: [{ ...C, layout: E }]
|
|
4741
4741
|
}));
|
|
@@ -4743,7 +4743,7 @@ const tr = Y(
|
|
|
4743
4743
|
}
|
|
4744
4744
|
l({ type: U.END_DRAG });
|
|
4745
4745
|
} else i.mode === J.PRESSING && i.dragging && (i.dragging.isOutside && i.dragging.type === vt.MOVE && (c == null || c({
|
|
4746
|
-
type:
|
|
4746
|
+
type: _t.DELETE,
|
|
4747
4747
|
blockIds: i.dragging.blockIds
|
|
4748
4748
|
}), l({ type: U.DESELECT })), l({ type: U.CANCEL_DRAG }));
|
|
4749
4749
|
j.currentTarget.releasePointerCapture(j.pointerId);
|
|
@@ -4808,7 +4808,7 @@ const tr = Y(
|
|
|
4808
4808
|
role: "application",
|
|
4809
4809
|
"aria-label": "Interactive canvas layer",
|
|
4810
4810
|
tabIndex: -1,
|
|
4811
|
-
onPointerDown:
|
|
4811
|
+
onPointerDown: b,
|
|
4812
4812
|
onPointerMove: y,
|
|
4813
4813
|
onPointerUp: R,
|
|
4814
4814
|
onPointerLeave: T,
|
|
@@ -4829,20 +4829,20 @@ const tr = Y(
|
|
|
4829
4829
|
value: j.initValue,
|
|
4830
4830
|
onChange: (P) => {
|
|
4831
4831
|
c == null || c({
|
|
4832
|
-
type:
|
|
4832
|
+
type: _t.UPDATE,
|
|
4833
4833
|
blockIds: [j.id],
|
|
4834
4834
|
blocks: [{ ...j, initValue: P }]
|
|
4835
4835
|
});
|
|
4836
4836
|
},
|
|
4837
4837
|
onBlur: (P) => {
|
|
4838
4838
|
c == null || c({
|
|
4839
|
-
type:
|
|
4839
|
+
type: _t.UPDATE,
|
|
4840
4840
|
blockIds: [j.id],
|
|
4841
4841
|
blocks: [{ ...j, initValue: P }]
|
|
4842
4842
|
});
|
|
4843
4843
|
},
|
|
4844
4844
|
blockRectPx: s(j),
|
|
4845
|
-
zIndex:
|
|
4845
|
+
zIndex: g
|
|
4846
4846
|
}
|
|
4847
4847
|
);
|
|
4848
4848
|
})(),
|
|
@@ -4873,7 +4873,7 @@ const tr = Y(
|
|
|
4873
4873
|
selectionStyle: v,
|
|
4874
4874
|
handleStyle: x,
|
|
4875
4875
|
selectBorderZIndex: N,
|
|
4876
|
-
blockHandlesZIndex:
|
|
4876
|
+
blockHandlesZIndex: w
|
|
4877
4877
|
}
|
|
4878
4878
|
),
|
|
4879
4879
|
/* @__PURE__ */ r.jsx(
|
|
@@ -4887,7 +4887,7 @@ const tr = Y(
|
|
|
4887
4887
|
selectionStyle: v,
|
|
4888
4888
|
ghostZIndex: p,
|
|
4889
4889
|
selectBorderZIndex: N,
|
|
4890
|
-
blockHandlesZIndex:
|
|
4890
|
+
blockHandlesZIndex: w
|
|
4891
4891
|
}
|
|
4892
4892
|
)
|
|
4893
4893
|
]
|
|
@@ -4905,12 +4905,12 @@ const er = Y(
|
|
|
4905
4905
|
scale: o = 1,
|
|
4906
4906
|
className: a
|
|
4907
4907
|
}) => {
|
|
4908
|
-
const [i, l] = Ds(), { paperPx: c, gridPosPx: f, getBlockRectPx: h, getColIndex: v, getRowIndex: x } = tn(t.paper, t.grid, Z),
|
|
4908
|
+
const [i, l] = Ds(), { paperPx: c, gridPosPx: f, getBlockRectPx: h, getColIndex: v, getRowIndex: x } = tn(t.paper, t.grid, Z), g = $(
|
|
4909
4909
|
(y) => {
|
|
4910
4910
|
if (n)
|
|
4911
4911
|
switch (y.type) {
|
|
4912
|
-
case
|
|
4913
|
-
case
|
|
4912
|
+
case _t.MOVE:
|
|
4913
|
+
case _t.RESIZE: {
|
|
4914
4914
|
if (!y.blocks) return;
|
|
4915
4915
|
const R = t.blocks.map((G) => {
|
|
4916
4916
|
var j;
|
|
@@ -4919,7 +4919,7 @@ const er = Y(
|
|
|
4919
4919
|
n({ ...t, blocks: R });
|
|
4920
4920
|
break;
|
|
4921
4921
|
}
|
|
4922
|
-
case
|
|
4922
|
+
case _t.ADD: {
|
|
4923
4923
|
if (!y.blocks) return;
|
|
4924
4924
|
n({
|
|
4925
4925
|
...t,
|
|
@@ -4927,14 +4927,14 @@ const er = Y(
|
|
|
4927
4927
|
});
|
|
4928
4928
|
break;
|
|
4929
4929
|
}
|
|
4930
|
-
case
|
|
4930
|
+
case _t.DELETE: {
|
|
4931
4931
|
const R = new Set(y.blockIds), G = t.blocks.filter(
|
|
4932
4932
|
(T) => !R.has(T.id)
|
|
4933
4933
|
);
|
|
4934
4934
|
n({ ...t, blocks: G });
|
|
4935
4935
|
break;
|
|
4936
4936
|
}
|
|
4937
|
-
case
|
|
4937
|
+
case _t.UPDATE: {
|
|
4938
4938
|
if (!y.blocks) return;
|
|
4939
4939
|
const R = t.blocks.map((G) => {
|
|
4940
4940
|
var P;
|
|
@@ -4969,12 +4969,12 @@ const er = Y(
|
|
|
4969
4969
|
Ot(() => {
|
|
4970
4970
|
s && s(i.selectedBlockIds);
|
|
4971
4971
|
}, [i.selectedBlockIds, s]);
|
|
4972
|
-
const
|
|
4972
|
+
const w = $(
|
|
4973
4973
|
(y, R, G) => {
|
|
4974
4974
|
if (!n) return;
|
|
4975
4975
|
const T = R - 1;
|
|
4976
4976
|
if (y === "column") {
|
|
4977
|
-
const j =
|
|
4977
|
+
const j = _n(
|
|
4978
4978
|
t.grid.cols,
|
|
4979
4979
|
T,
|
|
4980
4980
|
G,
|
|
@@ -4985,7 +4985,7 @@ const er = Y(
|
|
|
4985
4985
|
grid: { ...t.grid, cols: j }
|
|
4986
4986
|
});
|
|
4987
4987
|
} else {
|
|
4988
|
-
const j =
|
|
4988
|
+
const j = _n(
|
|
4989
4989
|
t.grid.rows,
|
|
4990
4990
|
T,
|
|
4991
4991
|
G,
|
|
@@ -5029,14 +5029,14 @@ const er = Y(
|
|
|
5029
5029
|
pluginKind: y.kind,
|
|
5030
5030
|
defaultSize: y.defaultSize
|
|
5031
5031
|
});
|
|
5032
|
-
}, [i.mode, l]),
|
|
5032
|
+
}, [i.mode, l]), b = $(() => {
|
|
5033
5033
|
}, []);
|
|
5034
5034
|
return /* @__PURE__ */ r.jsxs(
|
|
5035
5035
|
"div",
|
|
5036
5036
|
{
|
|
5037
5037
|
className: a,
|
|
5038
5038
|
onPointerEnter: d,
|
|
5039
|
-
onPointerLeave:
|
|
5039
|
+
onPointerLeave: b,
|
|
5040
5040
|
style: {
|
|
5041
5041
|
position: "relative",
|
|
5042
5042
|
width: `${c.canvas.width}px`,
|
|
@@ -5062,7 +5062,7 @@ const er = Y(
|
|
|
5062
5062
|
showBorder: !0,
|
|
5063
5063
|
showResizeHandles: !0,
|
|
5064
5064
|
showDimensionLabels: !0,
|
|
5065
|
-
onGridResize:
|
|
5065
|
+
onGridResize: w,
|
|
5066
5066
|
onDimensionChange: p,
|
|
5067
5067
|
gridLineStyle: {
|
|
5068
5068
|
color: "#e5e7eb",
|
|
@@ -5083,7 +5083,7 @@ const er = Y(
|
|
|
5083
5083
|
{
|
|
5084
5084
|
blocks: t.blocks,
|
|
5085
5085
|
pluginRegistry: e,
|
|
5086
|
-
mode:
|
|
5086
|
+
mode: wt.FORM,
|
|
5087
5087
|
values: m,
|
|
5088
5088
|
selectedBlockIds: i.selectedBlockIds,
|
|
5089
5089
|
getBlockRectPx: h,
|
|
@@ -5106,7 +5106,7 @@ const er = Y(
|
|
|
5106
5106
|
getRowIndex: x,
|
|
5107
5107
|
state: i,
|
|
5108
5108
|
onChange: l,
|
|
5109
|
-
onBlockChange:
|
|
5109
|
+
onBlockChange: g,
|
|
5110
5110
|
scale: o
|
|
5111
5111
|
}
|
|
5112
5112
|
)
|
|
@@ -5159,7 +5159,7 @@ const nr = Y(
|
|
|
5159
5159
|
{
|
|
5160
5160
|
blocks: t.blocks,
|
|
5161
5161
|
pluginRegistry: n,
|
|
5162
|
-
mode:
|
|
5162
|
+
mode: wt.VIEW,
|
|
5163
5163
|
values: e,
|
|
5164
5164
|
getBlockRectPx: l,
|
|
5165
5165
|
showGuides: !1,
|
|
@@ -5190,7 +5190,7 @@ const Ls = Y(
|
|
|
5190
5190
|
},
|
|
5191
5191
|
[e, a]
|
|
5192
5192
|
);
|
|
5193
|
-
return n ===
|
|
5193
|
+
return n === wt.FORM ? /* @__PURE__ */ r.jsx(
|
|
5194
5194
|
er,
|
|
5195
5195
|
{
|
|
5196
5196
|
schema: t,
|
|
@@ -5200,7 +5200,7 @@ const Ls = Y(
|
|
|
5200
5200
|
scale: l,
|
|
5201
5201
|
className: c
|
|
5202
5202
|
}
|
|
5203
|
-
) : n ===
|
|
5203
|
+
) : n === wt.EDIT ? /* @__PURE__ */ r.jsx(
|
|
5204
5204
|
Wn,
|
|
5205
5205
|
{
|
|
5206
5206
|
schema: t,
|
|
@@ -5236,7 +5236,7 @@ function Mt(t, e) {
|
|
|
5236
5236
|
}, s = e.split("."), o = n(t[0], s);
|
|
5237
5237
|
return t.every((i) => n(i, s) === o) ? o : void 0;
|
|
5238
5238
|
}
|
|
5239
|
-
const Ss = "
|
|
5239
|
+
const Ss = "_container_1nwxd_1", ks = "_row_1nwxd_39", Gs = "_inputWrapper_1nwxd_73", Ve = {
|
|
5240
5240
|
container: Ss,
|
|
5241
5241
|
row: ks,
|
|
5242
5242
|
inputWrapper: Gs
|
|
@@ -5257,7 +5257,7 @@ const Ss = "_container_1tfjv_1", ks = "_row_1tfjv_20", Gs = "_inputWrapper_1tfjv
|
|
|
5257
5257
|
}), e(o);
|
|
5258
5258
|
};
|
|
5259
5259
|
return /* @__PURE__ */ r.jsx("div", { className: Ve.container, children: /* @__PURE__ */ r.jsx("div", { className: Ve.row, children: /* @__PURE__ */ r.jsx("div", { className: Ve.inputWrapper, children: /* @__PURE__ */ r.jsx(
|
|
5260
|
-
|
|
5260
|
+
_e,
|
|
5261
5261
|
{
|
|
5262
5262
|
value: Mt(t, "style.backgroundColor"),
|
|
5263
5263
|
onChange: n,
|
|
@@ -5296,14 +5296,14 @@ const Vs = ({
|
|
|
5296
5296
|
const n = (i, l, c) => {
|
|
5297
5297
|
const f = {};
|
|
5298
5298
|
t.forEach((h) => {
|
|
5299
|
-
var x,
|
|
5299
|
+
var x, g, N;
|
|
5300
5300
|
let v = At(
|
|
5301
5301
|
h.style || {},
|
|
5302
5302
|
`border.${i}.${l}`,
|
|
5303
5303
|
c
|
|
5304
5304
|
);
|
|
5305
5305
|
if (l === "type" && c == null && (v = At(v, `border.${i}.width`, void 0), v = At(v, `border.${i}.color`, void 0)), l === "type" && c !== void 0 && c !== null) {
|
|
5306
|
-
const
|
|
5306
|
+
const w = (x = h.style) == null ? void 0 : x.border, p = w == null ? void 0 : w[i];
|
|
5307
5307
|
p != null && p.width || (v = At(v, `border.${i}.width`, {
|
|
5308
5308
|
value: 1,
|
|
5309
5309
|
unit: "px"
|
|
@@ -5314,7 +5314,7 @@ const Vs = ({
|
|
|
5314
5314
|
));
|
|
5315
5315
|
}
|
|
5316
5316
|
if (l === "color" && c !== void 0 && c !== null) {
|
|
5317
|
-
const
|
|
5317
|
+
const w = (g = h.style) == null ? void 0 : g.border, p = w == null ? void 0 : w[i];
|
|
5318
5318
|
p != null && p.type || (v = At(
|
|
5319
5319
|
v,
|
|
5320
5320
|
`border.${i}.type`,
|
|
@@ -5325,7 +5325,7 @@ const Vs = ({
|
|
|
5325
5325
|
}));
|
|
5326
5326
|
}
|
|
5327
5327
|
if (l === "width" && c !== void 0 && c !== null) {
|
|
5328
|
-
const
|
|
5328
|
+
const w = (N = h.style) == null ? void 0 : N.border, p = w == null ? void 0 : w[i];
|
|
5329
5329
|
p != null && p.type || (v = At(
|
|
5330
5330
|
v,
|
|
5331
5331
|
`border.${i}.type`,
|
|
@@ -5390,7 +5390,7 @@ const Vs = ({
|
|
|
5390
5390
|
}
|
|
5391
5391
|
),
|
|
5392
5392
|
/* @__PURE__ */ r.jsx(
|
|
5393
|
-
|
|
5393
|
+
_e,
|
|
5394
5394
|
{
|
|
5395
5395
|
value: Mt(t, `style.border.${i}.color`),
|
|
5396
5396
|
onChange: (l) => n(i, "color", l),
|
|
@@ -5570,7 +5570,7 @@ const Vs = ({
|
|
|
5570
5570
|
]
|
|
5571
5571
|
}
|
|
5572
5572
|
);
|
|
5573
|
-
}, Fs = "
|
|
5573
|
+
}, Fs = "_container_2914u_1", Us = "_grid_2914u_37", Ws = "_field_2914u_51", Ys = "_label_2914u_65", zs = "_inputWrapper_2914u_85", bt = {
|
|
5574
5574
|
container: Fs,
|
|
5575
5575
|
grid: Us,
|
|
5576
5576
|
field: Ws,
|
|
@@ -5592,10 +5592,10 @@ const Vs = ({
|
|
|
5592
5592
|
...t.map((m) => m.layout.x + m.layout.w)
|
|
5593
5593
|
), x = Math.max(
|
|
5594
5594
|
...t.map((m) => m.layout.y + m.layout.h)
|
|
5595
|
-
),
|
|
5596
|
-
let
|
|
5597
|
-
l === "x" && n ?
|
|
5598
|
-
const p =
|
|
5595
|
+
), g = v - (o ?? 0), N = x - (a ?? 0);
|
|
5596
|
+
let w = c;
|
|
5597
|
+
l === "x" && n ? w = Math.max(0, Math.min(c, n.cols - g)) : l === "y" && n ? w = Math.max(0, Math.min(c, n.rows - N)) : w = Math.max(0, c);
|
|
5598
|
+
const p = w - h;
|
|
5599
5599
|
t.forEach((m) => {
|
|
5600
5600
|
const d = m.layout[l] + p;
|
|
5601
5601
|
f[m.id] = {
|
|
@@ -5622,10 +5622,10 @@ const Vs = ({
|
|
|
5622
5622
|
});
|
|
5623
5623
|
e(f);
|
|
5624
5624
|
};
|
|
5625
|
-
return /* @__PURE__ */ r.jsx("div", { className:
|
|
5626
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
5627
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
5628
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
5625
|
+
return /* @__PURE__ */ r.jsx("div", { className: bt.container, children: /* @__PURE__ */ r.jsxs("div", { className: bt.grid, children: [
|
|
5626
|
+
/* @__PURE__ */ r.jsxs("div", { className: bt.field, children: [
|
|
5627
|
+
/* @__PURE__ */ r.jsx("span", { className: bt.label, children: "X" }),
|
|
5628
|
+
/* @__PURE__ */ r.jsx("div", { className: bt.inputWrapper, children: /* @__PURE__ */ r.jsx(
|
|
5629
5629
|
yt,
|
|
5630
5630
|
{
|
|
5631
5631
|
value: s ? o : Mt(t, "layout.x"),
|
|
@@ -5638,9 +5638,9 @@ const Vs = ({
|
|
|
5638
5638
|
}
|
|
5639
5639
|
) })
|
|
5640
5640
|
] }),
|
|
5641
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
5642
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
5643
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
5641
|
+
/* @__PURE__ */ r.jsxs("div", { className: bt.field, children: [
|
|
5642
|
+
/* @__PURE__ */ r.jsx("span", { className: bt.label, children: "Y" }),
|
|
5643
|
+
/* @__PURE__ */ r.jsx("div", { className: bt.inputWrapper, children: /* @__PURE__ */ r.jsx(
|
|
5644
5644
|
yt,
|
|
5645
5645
|
{
|
|
5646
5646
|
value: s ? a : Mt(t, "layout.y"),
|
|
@@ -5653,9 +5653,9 @@ const Vs = ({
|
|
|
5653
5653
|
}
|
|
5654
5654
|
) })
|
|
5655
5655
|
] }),
|
|
5656
|
-
!s && /* @__PURE__ */ r.jsxs("div", { className:
|
|
5657
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
5658
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
5656
|
+
!s && /* @__PURE__ */ r.jsxs("div", { className: bt.field, children: [
|
|
5657
|
+
/* @__PURE__ */ r.jsx("span", { className: bt.label, children: "W" }),
|
|
5658
|
+
/* @__PURE__ */ r.jsx("div", { className: bt.inputWrapper, children: /* @__PURE__ */ r.jsx(
|
|
5659
5659
|
yt,
|
|
5660
5660
|
{
|
|
5661
5661
|
value: Mt(t, "layout.w"),
|
|
@@ -5668,9 +5668,9 @@ const Vs = ({
|
|
|
5668
5668
|
}
|
|
5669
5669
|
) })
|
|
5670
5670
|
] }),
|
|
5671
|
-
!s && /* @__PURE__ */ r.jsxs("div", { className:
|
|
5672
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
5673
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
5671
|
+
!s && /* @__PURE__ */ r.jsxs("div", { className: bt.field, children: [
|
|
5672
|
+
/* @__PURE__ */ r.jsx("span", { className: bt.label, children: "H" }),
|
|
5673
|
+
/* @__PURE__ */ r.jsx("div", { className: bt.inputWrapper, children: /* @__PURE__ */ r.jsx(
|
|
5674
5674
|
yt,
|
|
5675
5675
|
{
|
|
5676
5676
|
value: Mt(t, "layout.h"),
|
|
@@ -5684,10 +5684,10 @@ const Vs = ({
|
|
|
5684
5684
|
) })
|
|
5685
5685
|
] })
|
|
5686
5686
|
] }) });
|
|
5687
|
-
}, Hs = "
|
|
5687
|
+
}, Hs = "_container_razoq_1", Xs = "_row_razoq_19", qs = "_label_razoq_31", Js = "_inputWrapper_razoq_49", Xt = {
|
|
5688
5688
|
container: Hs,
|
|
5689
|
-
row:
|
|
5690
|
-
label:
|
|
5689
|
+
row: Xs,
|
|
5690
|
+
label: qs,
|
|
5691
5691
|
inputWrapper: Js
|
|
5692
5692
|
}, Zs = ({
|
|
5693
5693
|
selectedBlocks: t,
|
|
@@ -5717,10 +5717,10 @@ const Vs = ({
|
|
|
5717
5717
|
};
|
|
5718
5718
|
}), e(f);
|
|
5719
5719
|
};
|
|
5720
|
-
return /* @__PURE__ */ r.jsxs("div", { className:
|
|
5721
|
-
t.length === 1 && /* @__PURE__ */ r.jsxs("div", { className:
|
|
5722
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
5723
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
5720
|
+
return /* @__PURE__ */ r.jsxs("div", { className: Xt.container, children: [
|
|
5721
|
+
t.length === 1 && /* @__PURE__ */ r.jsxs("div", { className: Xt.row, children: [
|
|
5722
|
+
/* @__PURE__ */ r.jsx("span", { className: Xt.label, children: "ID" }),
|
|
5723
|
+
/* @__PURE__ */ r.jsx("div", { className: Xt.inputWrapper, children: /* @__PURE__ */ r.jsx(
|
|
5724
5724
|
de,
|
|
5725
5725
|
{
|
|
5726
5726
|
value: n,
|
|
@@ -5731,7 +5731,7 @@ const Vs = ({
|
|
|
5731
5731
|
}
|
|
5732
5732
|
) })
|
|
5733
5733
|
] }),
|
|
5734
|
-
t.length > 0 && /* @__PURE__ */ r.jsx("div", { className:
|
|
5734
|
+
t.length > 0 && /* @__PURE__ */ r.jsx("div", { className: Xt.row, children: /* @__PURE__ */ r.jsx("div", { className: Xt.inputWrapper, children: /* @__PURE__ */ r.jsx(
|
|
5735
5735
|
Pt,
|
|
5736
5736
|
{
|
|
5737
5737
|
label: "読み取り専用",
|
|
@@ -5740,7 +5740,7 @@ const Vs = ({
|
|
|
5740
5740
|
}
|
|
5741
5741
|
) }) })
|
|
5742
5742
|
] });
|
|
5743
|
-
}, Qs = "
|
|
5743
|
+
}, Qs = "_container_1axrl_1", ti = "_scrollArea_1axrl_35", ei = "_section_1axrl_51", ni = "_sectionTitle_1axrl_69", ri = "_subsection_1axrl_93", oi = "_subsectionTitle_1axrl_101", si = "_fields_1axrl_117", ii = "_emptyState_1axrl_137", ht = {
|
|
5744
5744
|
container: Qs,
|
|
5745
5745
|
scrollArea: ti,
|
|
5746
5746
|
section: ei,
|
|
@@ -5749,7 +5749,7 @@ const Vs = ({
|
|
|
5749
5749
|
subsectionTitle: oi,
|
|
5750
5750
|
fields: si,
|
|
5751
5751
|
emptyState: ii
|
|
5752
|
-
}, ai = "
|
|
5752
|
+
}, ai = "_field_1f6zx_1", li = "_label_1f6zx_13", ci = "_mixed_1f6zx_29", ui = "_description_1f6zx_43", ge = {
|
|
5753
5753
|
field: ai,
|
|
5754
5754
|
label: li,
|
|
5755
5755
|
mixed: ci,
|
|
@@ -5774,11 +5774,11 @@ const Vs = ({
|
|
|
5774
5774
|
placeholder: c ? "複数選択中 (値が異なります)" : (h = e.config) == null ? void 0 : h.placeholder
|
|
5775
5775
|
}
|
|
5776
5776
|
};
|
|
5777
|
-
return /* @__PURE__ */ r.jsxs("div", { className:
|
|
5778
|
-
e.label && /* @__PURE__ */ r.jsx("div", { className:
|
|
5777
|
+
return /* @__PURE__ */ r.jsxs("div", { className: ge.field, children: [
|
|
5778
|
+
e.label && /* @__PURE__ */ r.jsx("div", { className: ge.label, title: e.description, children: e.label }),
|
|
5779
5779
|
/* @__PURE__ */ r.jsx(o, { ...f }),
|
|
5780
|
-
c && /* @__PURE__ */ r.jsx("span", { className:
|
|
5781
|
-
e.description && /* @__PURE__ */ r.jsx("p", { className:
|
|
5780
|
+
c && /* @__PURE__ */ r.jsx("span", { className: ge.mixed, children: "(混在)" }),
|
|
5781
|
+
e.description && /* @__PURE__ */ r.jsx("p", { className: ge.description, children: e.description })
|
|
5782
5782
|
] });
|
|
5783
5783
|
}
|
|
5784
5784
|
);
|
|
@@ -5808,9 +5808,9 @@ const or = Y(
|
|
|
5808
5808
|
else {
|
|
5809
5809
|
const x = t.map((p) => e[p.kind]).filter((p) => p !== void 0);
|
|
5810
5810
|
if (x.length === 0) return {};
|
|
5811
|
-
const
|
|
5812
|
-
if (!
|
|
5813
|
-
const N = new Set(Object.keys(
|
|
5811
|
+
const g = x[0];
|
|
5812
|
+
if (!g) return {};
|
|
5813
|
+
const N = new Set(Object.keys(g.properties));
|
|
5814
5814
|
v = Array.from(N).filter(
|
|
5815
5815
|
(p) => x.every((m) => p in m.properties)
|
|
5816
5816
|
).map(
|
|
@@ -5822,21 +5822,21 @@ const or = Y(
|
|
|
5822
5822
|
(p) => p !== null
|
|
5823
5823
|
);
|
|
5824
5824
|
}
|
|
5825
|
-
return v.forEach(([x,
|
|
5826
|
-
if (!di(
|
|
5825
|
+
return v.forEach(([x, g]) => {
|
|
5826
|
+
if (!di(g) || t.length > 1 && g.disableInMultiSelection || g.condition && !g.condition(a.props))
|
|
5827
5827
|
return;
|
|
5828
|
-
const N =
|
|
5829
|
-
h[N] || (h[N] = []),
|
|
5828
|
+
const N = g.group || "基本";
|
|
5829
|
+
h[N] || (h[N] = []), g.Component && h[N].push({
|
|
5830
5830
|
key: x,
|
|
5831
|
-
definition:
|
|
5831
|
+
definition: g
|
|
5832
5832
|
});
|
|
5833
5833
|
}), h;
|
|
5834
5834
|
}, [i, e, t, a, l]), f = (h, v) => {
|
|
5835
5835
|
const x = {};
|
|
5836
|
-
t.forEach((
|
|
5837
|
-
x[
|
|
5836
|
+
t.forEach((g) => {
|
|
5837
|
+
x[g.id] = {
|
|
5838
5838
|
props: {
|
|
5839
|
-
...
|
|
5839
|
+
...g.props,
|
|
5840
5840
|
[h]: v
|
|
5841
5841
|
}
|
|
5842
5842
|
};
|
|
@@ -5880,11 +5880,11 @@ const or = Y(
|
|
|
5880
5880
|
] }),
|
|
5881
5881
|
i && Object.keys(c).length > 0 && /* @__PURE__ */ r.jsx("div", { className: ht.section, children: Object.entries(c).map(([h, v]) => /* @__PURE__ */ r.jsxs("div", { className: ht.subsection, children: [
|
|
5882
5882
|
/* @__PURE__ */ r.jsx("div", { className: ht.subsectionTitle, children: h }),
|
|
5883
|
-
/* @__PURE__ */ r.jsx("div", { className: ht.fields, children: v.map(({ key: x, definition:
|
|
5883
|
+
/* @__PURE__ */ r.jsx("div", { className: ht.fields, children: v.map(({ key: x, definition: g }) => /* @__PURE__ */ r.jsx(
|
|
5884
5884
|
rr,
|
|
5885
5885
|
{
|
|
5886
5886
|
propertyKey: x,
|
|
5887
|
-
definition:
|
|
5887
|
+
definition: g,
|
|
5888
5888
|
selectedBlocks: t,
|
|
5889
5889
|
onChange: f
|
|
5890
5890
|
},
|
|
@@ -5905,7 +5905,7 @@ const or = Y(
|
|
|
5905
5905
|
}
|
|
5906
5906
|
);
|
|
5907
5907
|
or.displayName = "BlockPropertyPanel";
|
|
5908
|
-
const fi = "
|
|
5908
|
+
const fi = "_container_8182q_5", hi = "_paletteItems_8182q_63", mi = "_item_8182q_87", pi = "_itemPreview_8182q_153", vi = "_itemName_8182q_211", ue = {
|
|
5909
5909
|
container: fi,
|
|
5910
5910
|
paletteItems: hi,
|
|
5911
5911
|
item: mi,
|
|
@@ -5950,7 +5950,7 @@ const fi = "_container_naj39_3", hi = "_paletteItems_naj39_32", mi = "_item_naj3
|
|
|
5950
5950
|
};
|
|
5951
5951
|
sr.displayName = "PalettePanel";
|
|
5952
5952
|
const ir = ({ plugin: t, onDragStart: e }) => {
|
|
5953
|
-
const n = M(() =>
|
|
5953
|
+
const n = M(() => qt(
|
|
5954
5954
|
t,
|
|
5955
5955
|
{
|
|
5956
5956
|
x: 0,
|
|
@@ -5991,7 +5991,7 @@ const ir = ({ plugin: t, onDragStart: e }) => {
|
|
|
5991
5991
|
onChange: () => {
|
|
5992
5992
|
},
|
|
5993
5993
|
readOnly: !0,
|
|
5994
|
-
mode:
|
|
5994
|
+
mode: wt.FORM
|
|
5995
5995
|
}
|
|
5996
5996
|
) })
|
|
5997
5997
|
]
|
|
@@ -6000,7 +6000,7 @@ const ir = ({ plugin: t, onDragStart: e }) => {
|
|
|
6000
6000
|
};
|
|
6001
6001
|
ir.displayName = "PaletteItem";
|
|
6002
6002
|
const ar = ({ plugin: t, mousePos: e }) => {
|
|
6003
|
-
const n = M(() =>
|
|
6003
|
+
const n = M(() => qt(
|
|
6004
6004
|
t,
|
|
6005
6005
|
{
|
|
6006
6006
|
x: 0,
|
|
@@ -6043,20 +6043,20 @@ const ar = ({ plugin: t, mousePos: e }) => {
|
|
|
6043
6043
|
onChange: () => {
|
|
6044
6044
|
},
|
|
6045
6045
|
readOnly: !0,
|
|
6046
|
-
mode:
|
|
6046
|
+
mode: wt.FORM
|
|
6047
6047
|
}
|
|
6048
6048
|
)
|
|
6049
6049
|
}
|
|
6050
6050
|
);
|
|
6051
6051
|
};
|
|
6052
6052
|
ar.displayName = "DragGhost";
|
|
6053
|
-
const xi = "
|
|
6053
|
+
const xi = "_panel_1p81n_11", gi = "_title_1p81n_19", bi = "_content_1p81n_43", yi = "_description_1p81n_57", _i = "_list_1p81n_69", wi = "_item_1p81n_87", Ei = "_dragging_1p81n_121", ji = "_dragOver_1p81n_131", Ni = "_dragHandle_1p81n_141", Ii = "_itemInfo_1p81n_171", Di = "_itemId_1p81n_185", $i = "_itemMeta_1p81n_195", Ri = "_itemKind_1p81n_209", Ti = "_itemActions_1p81n_225", Ci = "_actionButton_1p81n_235", Pi = "_empty_1p81n_307", it = {
|
|
6054
6054
|
panel: xi,
|
|
6055
|
-
title:
|
|
6056
|
-
content:
|
|
6055
|
+
title: gi,
|
|
6056
|
+
content: bi,
|
|
6057
6057
|
description: yi,
|
|
6058
|
-
list:
|
|
6059
|
-
item:
|
|
6058
|
+
list: _i,
|
|
6059
|
+
item: wi,
|
|
6060
6060
|
dragging: Ei,
|
|
6061
6061
|
dragOver: ji,
|
|
6062
6062
|
dragHandle: Ni,
|
|
@@ -6075,59 +6075,59 @@ const xi = "_panel_1ekwd_6", bi = "_title_1ekwd_10", gi = "_content_1ekwd_22", y
|
|
|
6075
6075
|
(p) => {
|
|
6076
6076
|
const m = t.findIndex((y) => y.id === p);
|
|
6077
6077
|
if (m === -1 || m === t.length - 1) return;
|
|
6078
|
-
const d = [...t], [
|
|
6079
|
-
|
|
6078
|
+
const d = [...t], [b] = d.splice(m, 1);
|
|
6079
|
+
b && (d.push(b), e(d));
|
|
6080
6080
|
},
|
|
6081
6081
|
[t, e]
|
|
6082
6082
|
), c = $(
|
|
6083
6083
|
(p) => {
|
|
6084
6084
|
const m = t.findIndex((y) => y.id === p);
|
|
6085
6085
|
if (m === -1 || m === 0) return;
|
|
6086
|
-
const d = [...t], [
|
|
6087
|
-
|
|
6086
|
+
const d = [...t], [b] = d.splice(m, 1);
|
|
6087
|
+
b && (d.unshift(b), e(d));
|
|
6088
6088
|
},
|
|
6089
6089
|
[t, e]
|
|
6090
6090
|
), f = $(
|
|
6091
6091
|
(p) => {
|
|
6092
6092
|
const m = t.findIndex((R) => R.id === p);
|
|
6093
6093
|
if (m === -1 || m === t.length - 1) return;
|
|
6094
|
-
const d = [...t],
|
|
6095
|
-
!
|
|
6094
|
+
const d = [...t], b = d[m], y = d[m + 1];
|
|
6095
|
+
!b || !y || (d[m] = y, d[m + 1] = b, e(d));
|
|
6096
6096
|
},
|
|
6097
6097
|
[t, e]
|
|
6098
6098
|
), h = $(
|
|
6099
6099
|
(p) => {
|
|
6100
6100
|
const m = t.findIndex((R) => R.id === p);
|
|
6101
6101
|
if (m === -1 || m === 0) return;
|
|
6102
|
-
const d = [...t],
|
|
6103
|
-
!
|
|
6102
|
+
const d = [...t], b = d[m], y = d[m - 1];
|
|
6103
|
+
!b || !y || (d[m] = y, d[m - 1] = b, e(d));
|
|
6104
6104
|
},
|
|
6105
6105
|
[t, e]
|
|
6106
6106
|
), v = $(
|
|
6107
6107
|
(p, m) => {
|
|
6108
|
-
var
|
|
6108
|
+
var b;
|
|
6109
6109
|
s(m), p.dataTransfer.effectAllowed = "move";
|
|
6110
6110
|
const d = t.length - 1 - m;
|
|
6111
|
-
p.currentTarget && p.dataTransfer.setData("text/plain", ((
|
|
6111
|
+
p.currentTarget && p.dataTransfer.setData("text/plain", ((b = t[d]) == null ? void 0 : b.id) || "");
|
|
6112
6112
|
},
|
|
6113
6113
|
[t]
|
|
6114
6114
|
), x = $(() => {
|
|
6115
6115
|
s(null), a(null);
|
|
6116
|
-
}, []),
|
|
6116
|
+
}, []), g = $(
|
|
6117
6117
|
(p, m) => {
|
|
6118
6118
|
p.preventDefault(), p.dataTransfer.dropEffect = "move", !(n === null || n === m) && a(m);
|
|
6119
6119
|
},
|
|
6120
6120
|
[n]
|
|
6121
6121
|
), N = $(() => {
|
|
6122
6122
|
a(null);
|
|
6123
|
-
}, []),
|
|
6123
|
+
}, []), w = $(
|
|
6124
6124
|
(p, m) => {
|
|
6125
6125
|
if (p.preventDefault(), n === null || n === m) {
|
|
6126
6126
|
s(null), a(null);
|
|
6127
6127
|
return;
|
|
6128
6128
|
}
|
|
6129
|
-
const d = t.length - 1 - n,
|
|
6130
|
-
R && (y.splice(
|
|
6129
|
+
const d = t.length - 1 - n, b = t.length - 1 - m, y = [...t], [R] = y.splice(d, 1);
|
|
6130
|
+
R && (y.splice(b, 0, R), e(y), s(null), a(null));
|
|
6131
6131
|
},
|
|
6132
6132
|
[t, n, e]
|
|
6133
6133
|
);
|
|
@@ -6141,9 +6141,9 @@ const xi = "_panel_1ekwd_6", bi = "_title_1ekwd_10", gi = "_content_1ekwd_22", y
|
|
|
6141
6141
|
"li",
|
|
6142
6142
|
{
|
|
6143
6143
|
className: `${it.item} ${n === m ? it.dragging : ""} ${o === m ? it.dragOver : ""}`,
|
|
6144
|
-
onDragOver: (
|
|
6144
|
+
onDragOver: (b) => g(b, m),
|
|
6145
6145
|
onDragLeave: N,
|
|
6146
|
-
onDrop: (
|
|
6146
|
+
onDrop: (b) => w(b, m),
|
|
6147
6147
|
children: [
|
|
6148
6148
|
/* @__PURE__ */ r.jsx(
|
|
6149
6149
|
"button",
|
|
@@ -6152,7 +6152,7 @@ const xi = "_panel_1ekwd_6", bi = "_title_1ekwd_10", gi = "_content_1ekwd_22", y
|
|
|
6152
6152
|
className: it.dragHandle,
|
|
6153
6153
|
title: "ドラッグして並び替え",
|
|
6154
6154
|
draggable: !0,
|
|
6155
|
-
onDragStart: (
|
|
6155
|
+
onDragStart: (b) => v(b, m),
|
|
6156
6156
|
onDragEnd: x,
|
|
6157
6157
|
children: /* @__PURE__ */ r.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: [
|
|
6158
6158
|
/* @__PURE__ */ r.jsx("title", { children: "ドラッグハンドル" }),
|
|
@@ -6271,7 +6271,7 @@ const xi = "_panel_1ekwd_6", bi = "_title_1ekwd_10", gi = "_content_1ekwd_22", y
|
|
|
6271
6271
|
] });
|
|
6272
6272
|
};
|
|
6273
6273
|
lr.displayName = "BlockOrderPanel";
|
|
6274
|
-
const Mi = "
|
|
6274
|
+
const Mi = "_container_1sn14_11", Oi = "_scrollArea_1sn14_45", Ai = "_emptyState_1sn14_61", Fe = {
|
|
6275
6275
|
container: Mi,
|
|
6276
6276
|
scrollArea: Oi,
|
|
6277
6277
|
emptyState: Ai
|
|
@@ -6319,7 +6319,7 @@ const Mi = "_container_1bfk3_6", Oi = "_scrollArea_1bfk3_23", Ai = "_emptyState_
|
|
|
6319
6319
|
] });
|
|
6320
6320
|
};
|
|
6321
6321
|
ur.displayName = "CanvasPanel";
|
|
6322
|
-
const Li = "
|
|
6322
|
+
const Li = "_panel_98kh0_11", Si = "_title_98kh0_19", ki = "_content_98kh0_43", Gi = "_field_98kh0_57", Bi = "_horizontal_98kh0_69", Vi = "_label_98kh0_81", Fi = "_gridSizeRow_98kh0_103", Tt = {
|
|
6323
6323
|
panel: Li,
|
|
6324
6324
|
title: Si,
|
|
6325
6325
|
content: ki,
|
|
@@ -6394,15 +6394,15 @@ const Li = "_panel_1axyd_6", Si = "_title_1axyd_10", ki = "_content_1axyd_22", G
|
|
|
6394
6394
|
] });
|
|
6395
6395
|
};
|
|
6396
6396
|
dr.displayName = "GridSizePanel";
|
|
6397
|
-
const Ui = "
|
|
6397
|
+
const Ui = "_panel_7447e_11", Wi = "_header_7447e_19", Yi = "_title_7447e_39", zi = "_headerActions_7447e_57", Ki = "_content_7447e_65", Hi = "_field_7447e_73", Xi = "_horizontal_7447e_85", qi = "_label_7447e_97", Ji = "_marginsGrid_7447e_119", Zi = "_topMargin_7447e_131", Qi = "_bottomMargin_7447e_133", ta = "_sideMargins_7447e_145", st = {
|
|
6398
6398
|
panel: Ui,
|
|
6399
6399
|
header: Wi,
|
|
6400
6400
|
title: Yi,
|
|
6401
6401
|
headerActions: zi,
|
|
6402
6402
|
content: Ki,
|
|
6403
6403
|
field: Hi,
|
|
6404
|
-
horizontal:
|
|
6405
|
-
label:
|
|
6404
|
+
horizontal: Xi,
|
|
6405
|
+
label: qi,
|
|
6406
6406
|
marginsGrid: Ji,
|
|
6407
6407
|
topMargin: Zi,
|
|
6408
6408
|
bottomMargin: Qi,
|
|
@@ -6545,7 +6545,7 @@ const Ui = "_panel_qlcb6_6", Wi = "_header_qlcb6_10", Yi = "_title_qlcb6_20", zi
|
|
|
6545
6545
|
] });
|
|
6546
6546
|
};
|
|
6547
6547
|
fr.displayName = "MarginPanel";
|
|
6548
|
-
const ea = "
|
|
6548
|
+
const ea = "_panel_18o68_11", na = "_title_18o68_19", ra = "_content_18o68_43", oa = "_field_18o68_57", sa = "_horizontal_18o68_69", ia = "_label_18o68_81", aa = "_dimensionsRow_18o68_103", $t = {
|
|
6549
6549
|
panel: ea,
|
|
6550
6550
|
title: na,
|
|
6551
6551
|
content: ra,
|
|
@@ -6649,7 +6649,7 @@ const ea = "_panel_16d9o_6", na = "_title_16d9o_10", ra = "_content_16d9o_22", o
|
|
|
6649
6649
|
] });
|
|
6650
6650
|
};
|
|
6651
6651
|
hr.displayName = "PaperSizePanel";
|
|
6652
|
-
const la = "
|
|
6652
|
+
const la = "_section_1o2ff_11", ca = "_title_1o2ff_27", ua = "_content_1o2ff_51", da = "_buttonGroup_1o2ff_65", fa = "_button_1o2ff_65", ha = "_error_1o2ff_129", at = {
|
|
6653
6653
|
section: la,
|
|
6654
6654
|
title: ca,
|
|
6655
6655
|
content: ua,
|
|
@@ -6664,7 +6664,7 @@ const la = "_section_p4xnx_6", ca = "_title_p4xnx_14", ua = "_content_p4xnx_26",
|
|
|
6664
6664
|
}) => {
|
|
6665
6665
|
const [o, a] = dt(""), i = It(null), l = It(null), c = $(() => {
|
|
6666
6666
|
try {
|
|
6667
|
-
const d = $n(t, !0),
|
|
6667
|
+
const d = $n(t, !0), b = new Blob([d], { type: "application/json" }), y = URL.createObjectURL(b), R = document.createElement("a");
|
|
6668
6668
|
R.href = y, R.download = "schema.json", R.click(), URL.revokeObjectURL(y), a("");
|
|
6669
6669
|
} catch (d) {
|
|
6670
6670
|
a(
|
|
@@ -6686,8 +6686,8 @@ const la = "_section_p4xnx_6", ca = "_title_p4xnx_14", ua = "_content_p4xnx_26",
|
|
|
6686
6686
|
}, []), v = $(
|
|
6687
6687
|
(d) => {
|
|
6688
6688
|
var R;
|
|
6689
|
-
const
|
|
6690
|
-
if (!
|
|
6689
|
+
const b = (R = d.target.files) == null ? void 0 : R[0];
|
|
6690
|
+
if (!b) return;
|
|
6691
6691
|
const y = new FileReader();
|
|
6692
6692
|
y.onload = (G) => {
|
|
6693
6693
|
var T;
|
|
@@ -6699,21 +6699,21 @@ const la = "_section_p4xnx_6", ca = "_title_p4xnx_14", ua = "_content_p4xnx_26",
|
|
|
6699
6699
|
`インポートエラー: ${j instanceof Error ? j.message : String(j)}`
|
|
6700
6700
|
);
|
|
6701
6701
|
}
|
|
6702
|
-
}, y.readAsText(
|
|
6702
|
+
}, y.readAsText(b), d.target.value = "";
|
|
6703
6703
|
},
|
|
6704
6704
|
[n]
|
|
6705
6705
|
), x = $(async () => {
|
|
6706
6706
|
try {
|
|
6707
|
-
const d = await navigator.clipboard.readText(),
|
|
6708
|
-
n(
|
|
6707
|
+
const d = await navigator.clipboard.readText(), b = Dn(d);
|
|
6708
|
+
n(b), a(""), alert("スキーマをインポートしました");
|
|
6709
6709
|
} catch (d) {
|
|
6710
6710
|
a(
|
|
6711
6711
|
`インポートエラー: ${d instanceof Error ? d.message : String(d)}`
|
|
6712
6712
|
);
|
|
6713
6713
|
}
|
|
6714
|
-
}, [n]),
|
|
6714
|
+
}, [n]), g = $(() => {
|
|
6715
6715
|
try {
|
|
6716
|
-
const d = Tn(e, !0),
|
|
6716
|
+
const d = Tn(e, !0), b = new Blob([d], { type: "application/json" }), y = URL.createObjectURL(b), R = document.createElement("a");
|
|
6717
6717
|
R.href = y, R.download = "values.json", R.click(), URL.revokeObjectURL(y), a("");
|
|
6718
6718
|
} catch (d) {
|
|
6719
6719
|
a(
|
|
@@ -6729,14 +6729,14 @@ const la = "_section_p4xnx_6", ca = "_title_p4xnx_14", ua = "_content_p4xnx_26",
|
|
|
6729
6729
|
`クリップボードエラー: ${d instanceof Error ? d.message : String(d)}`
|
|
6730
6730
|
);
|
|
6731
6731
|
}
|
|
6732
|
-
}, [e]),
|
|
6732
|
+
}, [e]), w = $(() => {
|
|
6733
6733
|
var d;
|
|
6734
6734
|
(d = l.current) == null || d.click();
|
|
6735
6735
|
}, []), p = $(
|
|
6736
6736
|
(d) => {
|
|
6737
6737
|
var R;
|
|
6738
|
-
const
|
|
6739
|
-
if (!
|
|
6738
|
+
const b = (R = d.target.files) == null ? void 0 : R[0];
|
|
6739
|
+
if (!b) return;
|
|
6740
6740
|
const y = new FileReader();
|
|
6741
6741
|
y.onload = (G) => {
|
|
6742
6742
|
var T;
|
|
@@ -6748,13 +6748,13 @@ const la = "_section_p4xnx_6", ca = "_title_p4xnx_14", ua = "_content_p4xnx_26",
|
|
|
6748
6748
|
`インポートエラー: ${j instanceof Error ? j.message : String(j)}`
|
|
6749
6749
|
);
|
|
6750
6750
|
}
|
|
6751
|
-
}, y.readAsText(
|
|
6751
|
+
}, y.readAsText(b), d.target.value = "";
|
|
6752
6752
|
},
|
|
6753
6753
|
[s]
|
|
6754
6754
|
), m = $(async () => {
|
|
6755
6755
|
try {
|
|
6756
|
-
const d = await navigator.clipboard.readText(),
|
|
6757
|
-
s(
|
|
6756
|
+
const d = await navigator.clipboard.readText(), b = Rn(d);
|
|
6757
|
+
s(b), a(""), alert("値をインポートしました");
|
|
6758
6758
|
} catch (d) {
|
|
6759
6759
|
a(
|
|
6760
6760
|
`インポートエラー: ${d instanceof Error ? d.message : String(d)}`
|
|
@@ -6826,7 +6826,7 @@ const la = "_section_p4xnx_6", ca = "_title_p4xnx_14", ua = "_content_p4xnx_26",
|
|
|
6826
6826
|
{
|
|
6827
6827
|
type: "button",
|
|
6828
6828
|
className: at.button,
|
|
6829
|
-
onClick:
|
|
6829
|
+
onClick: g,
|
|
6830
6830
|
children: "📥 ファイルにエクスポート"
|
|
6831
6831
|
}
|
|
6832
6832
|
),
|
|
@@ -6846,7 +6846,7 @@ const la = "_section_p4xnx_6", ca = "_title_p4xnx_14", ua = "_content_p4xnx_26",
|
|
|
6846
6846
|
{
|
|
6847
6847
|
type: "button",
|
|
6848
6848
|
className: at.button,
|
|
6849
|
-
onClick:
|
|
6849
|
+
onClick: w,
|
|
6850
6850
|
children: "📤 ファイルからインポート"
|
|
6851
6851
|
}
|
|
6852
6852
|
),
|
|
@@ -6891,7 +6891,7 @@ const pr = ({
|
|
|
6891
6891
|
}
|
|
6892
6892
|
) });
|
|
6893
6893
|
pr.displayName = "OtherPanel";
|
|
6894
|
-
const ma = "
|
|
6894
|
+
const ma = "_container_k3psy_5", pa = "_tabHeader_k3psy_27", va = "_tabContent_k3psy_41", oe = {
|
|
6895
6895
|
container: ma,
|
|
6896
6896
|
tabHeader: pa,
|
|
6897
6897
|
tabContent: va
|
|
@@ -6911,7 +6911,7 @@ const ma = "_container_rt0ql_3", pa = "_tabHeader_rt0ql_14", va = "_tabContent_r
|
|
|
6911
6911
|
() => Object.values(n),
|
|
6912
6912
|
[n]
|
|
6913
6913
|
), v = M(
|
|
6914
|
-
() => t.filter((
|
|
6914
|
+
() => t.filter((g) => e.includes(g.id)),
|
|
6915
6915
|
[t, e]
|
|
6916
6916
|
), x = e.length > 0;
|
|
6917
6917
|
return /* @__PURE__ */ r.jsx("div", { className: `${oe.container} ${f || ""}`, children: /* @__PURE__ */ r.jsxs(Sn, { defaultValue: "block", variant: "default", children: [
|
|
@@ -6943,17 +6943,17 @@ const ma = "_container_rt0ql_3", pa = "_tabHeader_rt0ql_14", va = "_tabContent_r
|
|
|
6943
6943
|
};
|
|
6944
6944
|
xa.displayName = "Sidebar";
|
|
6945
6945
|
export {
|
|
6946
|
-
|
|
6947
|
-
|
|
6946
|
+
wa as ACTUAL_UNITS,
|
|
6947
|
+
_a as ALL_UNITS,
|
|
6948
6948
|
Nt as BLOCK_SUB_INDEX,
|
|
6949
6949
|
No as BORDER_UNITS,
|
|
6950
|
-
|
|
6950
|
+
_t as BlockChangeType,
|
|
6951
6951
|
or as BlockPropertyPanel,
|
|
6952
6952
|
fe as Border,
|
|
6953
6953
|
ko as BorderOverlay,
|
|
6954
6954
|
Jt as BorderRenderer,
|
|
6955
6955
|
Pt as Checkbox,
|
|
6956
|
-
|
|
6956
|
+
_e as ColorPicker,
|
|
6957
6957
|
To as DEFAULT_GRID,
|
|
6958
6958
|
Lo as DEFAULT_PAPER,
|
|
6959
6959
|
Ao as DEFAULT_PAPER_MARGIN,
|
|
@@ -6974,7 +6974,7 @@ export {
|
|
|
6974
6974
|
Wn as NoteEdit,
|
|
6975
6975
|
Ls as NoteEditor,
|
|
6976
6976
|
er as NoteForm,
|
|
6977
|
-
|
|
6977
|
+
wt as NoteMode,
|
|
6978
6978
|
nr as NoteView,
|
|
6979
6979
|
yt as NumberInput,
|
|
6980
6980
|
re as PADDING_UNITS,
|
|
@@ -6999,8 +6999,8 @@ export {
|
|
|
6999
6999
|
xt as assertPositive,
|
|
7000
7000
|
Co as assertRange,
|
|
7001
7001
|
Be as binarySearch,
|
|
7002
|
-
|
|
7003
|
-
|
|
7002
|
+
_n as calculateGridResize,
|
|
7003
|
+
qt as createBlock,
|
|
7004
7004
|
Ro as createBlockId,
|
|
7005
7005
|
$o as createInitialProps,
|
|
7006
7006
|
Dn as deserializeSchema,
|