@tatamicks/core 1.0.1 → 1.0.3
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/{PalettePanel-Dipvtj7D.cjs → PalettePanel-0cFP3tbA.cjs} +2 -2
- package/dist/PalettePanel-0cFP3tbA.cjs.map +1 -0
- package/dist/{PalettePanel-CtXsH6Cb.js → PalettePanel-N5Y1TJAk.js} +232 -242
- package/dist/PalettePanel-N5Y1TJAk.js.map +1 -0
- package/dist/canvas.cjs +1 -1
- package/dist/canvas.mjs +13 -13
- package/dist/index.cjs +3 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +430 -571
- package/dist/index.mjs.map +1 -1
- package/dist/{paperSettingsWidget-sLJsIUxS.cjs → paperSettingsWidget-CJ4QFjYK.cjs} +1 -1
- package/dist/{paperSettingsWidget-sLJsIUxS.cjs.map → paperSettingsWidget-CJ4QFjYK.cjs.map} +1 -1
- package/dist/{paperSettingsWidget-DgDoBA0P.js → paperSettingsWidget-d93s3Gsr.js} +1 -1
- package/dist/{paperSettingsWidget-DgDoBA0P.js.map → paperSettingsWidget-d93s3Gsr.js.map} +1 -1
- package/dist/shell.cjs +1 -1
- package/dist/shell.mjs +2 -2
- package/dist/sidebarPortal-B2Mk9Aba.js +875 -0
- package/dist/sidebarPortal-B2Mk9Aba.js.map +1 -0
- package/dist/sidebarPortal-BCIVv4yO.cjs +3 -0
- package/dist/sidebarPortal-BCIVv4yO.cjs.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/package.json +1 -1
- package/dist/PalettePanel-CtXsH6Cb.js.map +0 -1
- package/dist/PalettePanel-Dipvtj7D.cjs.map +0 -1
- package/dist/sidebarPortal-C06y4JSP.js +0 -723
- package/dist/sidebarPortal-C06y4JSP.js.map +0 -1
- package/dist/sidebarPortal-C3HszQyp.cjs +0 -1
- package/dist/sidebarPortal-C3HszQyp.cjs.map +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as t, jsxs as p, Fragment as oe } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback as y, useState as O, useRef as ie, useEffect as pe, useContext as
|
|
3
|
-
import { Z as yt,
|
|
2
|
+
import { useCallback as y, useState as O, useRef as ie, useEffect as pe, useContext as Pe, createContext as gt, useMemo as te, memo as fe, useId as an } from "react";
|
|
3
|
+
import { Z as yt, a8 as _t, a5 as xt, a9 as wt, a6 as Nt, P as F, d as Ct, M as K, L as he, B as on, aa as sn, x as rn, T as cn, F as dn, q as ye, J as hn, v as Re, H as Ee, V as Ae, ab as un, s as dt, e as pn, g as ht, l as mn, u as bn, a as vn, C as fn, N as gn } from "./sidebarPortal-B2Mk9Aba.js";
|
|
4
4
|
import { createPortal as St } from "react-dom";
|
|
5
|
-
import './PalettePanel.css';const
|
|
6
|
-
container:
|
|
7
|
-
section:
|
|
8
|
-
divider:
|
|
9
|
-
sectionLabel:
|
|
10
|
-
select:
|
|
11
|
-
numberInput:
|
|
12
|
-
heightModeSwitch:
|
|
13
|
-
switchLabel:
|
|
14
|
-
switchLabelActive:
|
|
15
|
-
toggle:
|
|
16
|
-
thumb:
|
|
17
|
-
},
|
|
18
|
-
|
|
5
|
+
import './PalettePanel.css';const yn = "_container_1xv5c_4", _n = "_section_1xv5c_16", xn = "_divider_1xv5c_23", wn = "_sectionLabel_1xv5c_31", Nn = "_select_1xv5c_38", Cn = "_numberInput_1xv5c_59", Sn = "_heightModeSwitch_1xv5c_87", In = "_switchLabel_1xv5c_93", $n = "_switchLabelActive_1xv5c_101", Ln = "_toggle_1xv5c_105", kn = "_thumb_1xv5c_122", P = {
|
|
6
|
+
container: yn,
|
|
7
|
+
section: _n,
|
|
8
|
+
divider: xn,
|
|
9
|
+
sectionLabel: wn,
|
|
10
|
+
select: Nn,
|
|
11
|
+
numberInput: Cn,
|
|
12
|
+
heightModeSwitch: Sn,
|
|
13
|
+
switchLabel: In,
|
|
14
|
+
switchLabelActive: $n,
|
|
15
|
+
toggle: Ln,
|
|
16
|
+
thumb: kn
|
|
17
|
+
}, Tn = (e) => /* @__PURE__ */ t("div", { className: P.divider, "aria-hidden": "true" });
|
|
18
|
+
Tn.displayName = "ActionBarDivider";
|
|
19
19
|
const Xe = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
|
|
20
20
|
"svg",
|
|
21
21
|
{
|
|
@@ -241,7 +241,7 @@ const kt = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
|
|
|
241
241
|
}
|
|
242
242
|
);
|
|
243
243
|
kt.displayName = "BlockSettingsIcon";
|
|
244
|
-
const
|
|
244
|
+
const En = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
|
|
245
245
|
"svg",
|
|
246
246
|
{
|
|
247
247
|
viewBox: "0 0 24 24",
|
|
@@ -253,8 +253,8 @@ const Tn = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
|
|
|
253
253
|
children: /* @__PURE__ */ t("path", { d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z" })
|
|
254
254
|
}
|
|
255
255
|
);
|
|
256
|
-
|
|
257
|
-
const
|
|
256
|
+
En.displayName = "ChevronLeftIcon";
|
|
257
|
+
const An = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
|
|
258
258
|
"svg",
|
|
259
259
|
{
|
|
260
260
|
viewBox: "0 0 24 24",
|
|
@@ -266,8 +266,8 @@ const En = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
|
|
|
266
266
|
children: /* @__PURE__ */ t("path", { d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" })
|
|
267
267
|
}
|
|
268
268
|
);
|
|
269
|
-
|
|
270
|
-
const
|
|
269
|
+
An.displayName = "ChevronRightIcon";
|
|
270
|
+
const Mn = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
|
|
271
271
|
"svg",
|
|
272
272
|
{
|
|
273
273
|
viewBox: "0 0 24 24",
|
|
@@ -279,8 +279,8 @@ const An = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
|
|
|
279
279
|
children: /* @__PURE__ */ t("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" })
|
|
280
280
|
}
|
|
281
281
|
);
|
|
282
|
-
|
|
283
|
-
const
|
|
282
|
+
Mn.displayName = "AddPageIcon";
|
|
283
|
+
const Dn = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
|
|
284
284
|
"svg",
|
|
285
285
|
{
|
|
286
286
|
viewBox: "0 0 24 24",
|
|
@@ -292,7 +292,7 @@ const Mn = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
|
|
|
292
292
|
children: /* @__PURE__ */ t("path", { d: "M19 13H5v-2h14v2z" })
|
|
293
293
|
}
|
|
294
294
|
);
|
|
295
|
-
|
|
295
|
+
Dn.displayName = "DeletePageIcon";
|
|
296
296
|
const Pn = {
|
|
297
297
|
undo: {
|
|
298
298
|
actionId: "undo",
|
|
@@ -354,10 +354,10 @@ const Pn = {
|
|
|
354
354
|
message: "ページを削除しました",
|
|
355
355
|
shortcut: null
|
|
356
356
|
}
|
|
357
|
-
}, lt = (e) => Pn[e],
|
|
358
|
-
container:
|
|
359
|
-
input:
|
|
360
|
-
label:
|
|
357
|
+
}, lt = (e) => Pn[e], Bn = "_container_1tnp6_5", zn = "_input_1tnp6_13", Wn = "_label_1tnp6_29", Oe = {
|
|
358
|
+
container: Bn,
|
|
359
|
+
input: zn,
|
|
360
|
+
label: Wn
|
|
361
361
|
}, ae = ({
|
|
362
362
|
value: e,
|
|
363
363
|
onChange: n,
|
|
@@ -386,19 +386,19 @@ const Pn = {
|
|
|
386
386
|
] });
|
|
387
387
|
};
|
|
388
388
|
ae.displayName = "Checkbox";
|
|
389
|
-
const
|
|
390
|
-
header:
|
|
391
|
-
title:
|
|
392
|
-
actions:
|
|
393
|
-
titleGroup:
|
|
394
|
-
infoIcon:
|
|
395
|
-
chevron:
|
|
396
|
-
chevronOpen:
|
|
389
|
+
const Rn = "_header_1c1mq_6", On = "_title_1c1mq_32", Fn = "_actions_1c1mq_43", jn = "_titleGroup_1c1mq_49", Un = "_infoIcon_1c1mq_60", Vn = "_chevron_1c1mq_84", qn = "_chevronOpen_1c1mq_92", Gn = "_statusBadge_1c1mq_98", Hn = "_statusBadgeOn_1c1mq_108", Kn = "_statusBadgeOff_1c1mq_113", Zn = "_content_1c1mq_120", Yn = "_contentNoPadding_1c1mq_127", W = {
|
|
390
|
+
header: Rn,
|
|
391
|
+
title: On,
|
|
392
|
+
actions: Fn,
|
|
393
|
+
titleGroup: jn,
|
|
394
|
+
infoIcon: Un,
|
|
395
|
+
chevron: Vn,
|
|
396
|
+
chevronOpen: qn,
|
|
397
397
|
statusBadge: Gn,
|
|
398
|
-
statusBadgeOn:
|
|
399
|
-
statusBadgeOff:
|
|
400
|
-
content:
|
|
401
|
-
contentNoPadding:
|
|
398
|
+
statusBadgeOn: Hn,
|
|
399
|
+
statusBadgeOff: Kn,
|
|
400
|
+
content: Zn,
|
|
401
|
+
contentNoPadding: Yn
|
|
402
402
|
}, V = ({
|
|
403
403
|
title: e,
|
|
404
404
|
children: n,
|
|
@@ -504,7 +504,7 @@ function Le(e) {
|
|
|
504
504
|
}
|
|
505
505
|
return null;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function Jn(e) {
|
|
508
508
|
const { r: n, g: i, b: l, a } = e;
|
|
509
509
|
if (a === 0)
|
|
510
510
|
return;
|
|
@@ -515,7 +515,7 @@ function Yn(e) {
|
|
|
515
515
|
}
|
|
516
516
|
return `#${o}${c}${r}`;
|
|
517
517
|
}
|
|
518
|
-
const
|
|
518
|
+
const Xn = [
|
|
519
519
|
{ label: "無色", value: void 0 },
|
|
520
520
|
{ label: "白", value: "#ffffff" },
|
|
521
521
|
{ label: "グレー1", value: "#efefef" },
|
|
@@ -546,25 +546,25 @@ const Jn = [
|
|
|
546
546
|
{ label: "青紫", value: "#9FC5E8" },
|
|
547
547
|
{ label: "紫", value: "#B4A7D6" },
|
|
548
548
|
{ label: "赤紫", value: "#D5A6BD" }
|
|
549
|
-
],
|
|
550
|
-
container:
|
|
551
|
-
colorButton:
|
|
552
|
-
textInputWrapper:
|
|
553
|
-
textInputPrefix:
|
|
554
|
-
textInput:
|
|
555
|
-
popover:
|
|
556
|
-
palette:
|
|
557
|
-
paletteButton:
|
|
558
|
-
selected:
|
|
559
|
-
transparentPaletteButton:
|
|
560
|
-
rgbaInputs:
|
|
561
|
-
rgbaInputGroup:
|
|
562
|
-
rgbaLabel:
|
|
549
|
+
], Qn = "_container_1cdzu_5", el = "_colorButton_1cdzu_13", tl = "_textInputWrapper_1cdzu_40", nl = "_textInputPrefix_1cdzu_62", ll = "_textInput_1cdzu_40", il = "_popover_1cdzu_96", al = "_palette_1cdzu_112", ol = "_paletteButton_1cdzu_119", sl = "_selected_1cdzu_142", rl = "_transparentPaletteButton_1cdzu_148", cl = "_rgbaInputs_1cdzu_154", dl = "_rgbaInputGroup_1cdzu_161", hl = "_rgbaLabel_1cdzu_175", z = {
|
|
550
|
+
container: Qn,
|
|
551
|
+
colorButton: el,
|
|
552
|
+
textInputWrapper: tl,
|
|
553
|
+
textInputPrefix: nl,
|
|
554
|
+
textInput: ll,
|
|
555
|
+
popover: il,
|
|
556
|
+
palette: al,
|
|
557
|
+
paletteButton: ol,
|
|
558
|
+
selected: sl,
|
|
559
|
+
transparentPaletteButton: rl,
|
|
560
|
+
rgbaInputs: cl,
|
|
561
|
+
rgbaInputGroup: dl,
|
|
562
|
+
rgbaLabel: hl
|
|
563
563
|
}, Tt = ({
|
|
564
564
|
onColorSelect: e,
|
|
565
565
|
selectedColor: n,
|
|
566
566
|
readOnly: i = !1
|
|
567
|
-
}) => /* @__PURE__ */ t("div", { className: z.palette, children:
|
|
567
|
+
}) => /* @__PURE__ */ t("div", { className: z.palette, children: Xn.map((l, a) => {
|
|
568
568
|
const o = l.value === void 0, c = l.value === n, r = o ? {} : { backgroundColor: l.value };
|
|
569
569
|
return /* @__PURE__ */ t(
|
|
570
570
|
"button",
|
|
@@ -581,9 +581,9 @@ const Jn = [
|
|
|
581
581
|
);
|
|
582
582
|
}) });
|
|
583
583
|
Tt.displayName = "ColorPalette";
|
|
584
|
-
const
|
|
585
|
-
input:
|
|
586
|
-
},
|
|
584
|
+
const ul = "_input_14n56_5", pl = {
|
|
585
|
+
input: ul
|
|
586
|
+
}, G = ({
|
|
587
587
|
value: e,
|
|
588
588
|
onChange: n,
|
|
589
589
|
readOnly: i = !1,
|
|
@@ -614,7 +614,7 @@ const hl = "_input_14n56_5", ul = {
|
|
|
614
614
|
"input",
|
|
615
615
|
{
|
|
616
616
|
type: "number",
|
|
617
|
-
className:
|
|
617
|
+
className: pl.input,
|
|
618
618
|
style: I,
|
|
619
619
|
value: e ?? "",
|
|
620
620
|
onChange: k,
|
|
@@ -628,7 +628,7 @@ const hl = "_input_14n56_5", ul = {
|
|
|
628
628
|
}
|
|
629
629
|
);
|
|
630
630
|
};
|
|
631
|
-
|
|
631
|
+
G.displayName = "NumberInput";
|
|
632
632
|
const Et = ({
|
|
633
633
|
rgba: e,
|
|
634
634
|
onChange: n,
|
|
@@ -637,7 +637,7 @@ const Et = ({
|
|
|
637
637
|
/* @__PURE__ */ p("div", { className: z.rgbaInputGroup, children: [
|
|
638
638
|
/* @__PURE__ */ t("span", { className: z.rgbaLabel, children: "R" }),
|
|
639
639
|
/* @__PURE__ */ t(
|
|
640
|
-
|
|
640
|
+
G,
|
|
641
641
|
{
|
|
642
642
|
value: e.r,
|
|
643
643
|
onChange: (l) => n("r", l),
|
|
@@ -653,7 +653,7 @@ const Et = ({
|
|
|
653
653
|
/* @__PURE__ */ p("div", { className: z.rgbaInputGroup, children: [
|
|
654
654
|
/* @__PURE__ */ t("span", { className: z.rgbaLabel, children: "G" }),
|
|
655
655
|
/* @__PURE__ */ t(
|
|
656
|
-
|
|
656
|
+
G,
|
|
657
657
|
{
|
|
658
658
|
value: e.g,
|
|
659
659
|
onChange: (l) => n("g", l),
|
|
@@ -669,7 +669,7 @@ const Et = ({
|
|
|
669
669
|
/* @__PURE__ */ p("div", { className: z.rgbaInputGroup, children: [
|
|
670
670
|
/* @__PURE__ */ t("span", { className: z.rgbaLabel, children: "B" }),
|
|
671
671
|
/* @__PURE__ */ t(
|
|
672
|
-
|
|
672
|
+
G,
|
|
673
673
|
{
|
|
674
674
|
value: e.b,
|
|
675
675
|
onChange: (l) => n("b", l),
|
|
@@ -685,7 +685,7 @@ const Et = ({
|
|
|
685
685
|
/* @__PURE__ */ p("div", { className: z.rgbaInputGroup, children: [
|
|
686
686
|
/* @__PURE__ */ t("span", { className: z.rgbaLabel, children: "A" }),
|
|
687
687
|
/* @__PURE__ */ t(
|
|
688
|
-
|
|
688
|
+
G,
|
|
689
689
|
{
|
|
690
690
|
value: Math.round(e.a * 100),
|
|
691
691
|
onChange: (l) => n("a", l !== void 0 ? l / 100 : void 0),
|
|
@@ -806,11 +806,11 @@ const le = ({
|
|
|
806
806
|
(E, B) => {
|
|
807
807
|
if (B === void 0) return;
|
|
808
808
|
const J = { ..._, [E]: B };
|
|
809
|
-
w(J), n(
|
|
809
|
+
w(J), n(Jn(J));
|
|
810
810
|
},
|
|
811
811
|
[_, n]
|
|
812
|
-
), T = e ?? "未設定",
|
|
813
|
-
e && (
|
|
812
|
+
), T = e ?? "未設定", D = {};
|
|
813
|
+
e && (D.background = e);
|
|
814
814
|
const A = {};
|
|
815
815
|
return h !== void 0 ? A.width = `${h}px` : A.width = "100%", f !== void 0 && (A.height = `${f}px`), /* @__PURE__ */ p("div", { className: z.container, style: A, ref: g, children: [
|
|
816
816
|
/* @__PURE__ */ t(
|
|
@@ -822,7 +822,7 @@ const le = ({
|
|
|
822
822
|
disabled: i,
|
|
823
823
|
title: T,
|
|
824
824
|
"aria-label": "カラーピッカーを開く",
|
|
825
|
-
style:
|
|
825
|
+
style: D
|
|
826
826
|
}
|
|
827
827
|
),
|
|
828
828
|
l && /* @__PURE__ */ p("div", { className: z.textInputWrapper, children: [
|
|
@@ -857,10 +857,10 @@ const le = ({
|
|
|
857
857
|
] });
|
|
858
858
|
};
|
|
859
859
|
le.displayName = "ColorPicker";
|
|
860
|
-
const
|
|
861
|
-
container:
|
|
862
|
-
valueInput:
|
|
863
|
-
unitSelect:
|
|
860
|
+
const ml = "_container_1n9lj_5", bl = "_valueInput_1n9lj_23", vl = "_unitSelect_1n9lj_45", Fe = {
|
|
861
|
+
container: ml,
|
|
862
|
+
valueInput: bl,
|
|
863
|
+
unitSelect: vl
|
|
864
864
|
}, j = (e) => {
|
|
865
865
|
const { value: n, onChange: i, readOnly: l = !1, config: a } = e, o = e.allowedUnits ?? (a == null ? void 0 : a.allowedUnits), c = e.min ?? (a == null ? void 0 : a.min), r = e.max ?? (a == null ? void 0 : a.max), s = e.step ?? (a == null ? void 0 : a.step) ?? 1, d = e.placeholder ?? (a == null ? void 0 : a.placeholder), u = e.width ?? (a == null ? void 0 : a.width), h = e.height ?? (a == null ? void 0 : a.height), f = e.ariaLabel, v = (n == null ? void 0 : n.unit) ?? (o == null ? void 0 : o[0]), m = y(
|
|
866
866
|
(k) => {
|
|
@@ -921,10 +921,10 @@ const pl = "_container_1n9lj_5", ml = "_valueInput_1n9lj_23", bl = "_unitSelect_
|
|
|
921
921
|
}
|
|
922
922
|
)
|
|
923
923
|
] });
|
|
924
|
-
},
|
|
925
|
-
container:
|
|
926
|
-
select:
|
|
927
|
-
placeholderOverlay:
|
|
924
|
+
}, fl = "_container_14f2v_5", gl = "_select_14f2v_11", yl = "_placeholderOverlay_14f2v_44", je = {
|
|
925
|
+
container: fl,
|
|
926
|
+
select: gl,
|
|
927
|
+
placeholderOverlay: yl
|
|
928
928
|
}, ge = (e) => {
|
|
929
929
|
const { value: n, onChange: i, readOnly: l = !1, config: a } = e, o = e.options ?? (a == null ? void 0 : a.options) ?? [], c = e.placeholder ?? (a == null ? void 0 : a.placeholder) ?? "選択してください", r = e.width ?? (a == null ? void 0 : a.width), s = e.height ?? (a == null ? void 0 : a.height), d = e.allowEmpty ?? (a == null ? void 0 : a.allowEmpty) ?? !0, u = y(
|
|
930
930
|
(g) => {
|
|
@@ -965,8 +965,8 @@ const pl = "_container_1n9lj_5", ml = "_valueInput_1n9lj_23", bl = "_unitSelect_
|
|
|
965
965
|
] });
|
|
966
966
|
};
|
|
967
967
|
ge.displayName = "Dropdown";
|
|
968
|
-
const
|
|
969
|
-
button:
|
|
968
|
+
const _l = "_button_16snt_1", xl = {
|
|
969
|
+
button: _l
|
|
970
970
|
}, Z = ({
|
|
971
971
|
icon: e,
|
|
972
972
|
label: n,
|
|
@@ -979,7 +979,7 @@ const yl = "_button_16snt_1", _l = {
|
|
|
979
979
|
"button",
|
|
980
980
|
{
|
|
981
981
|
type: "button",
|
|
982
|
-
className:
|
|
982
|
+
className: xl.button,
|
|
983
983
|
onMouseDown: c ? (r) => r.preventDefault() : void 0,
|
|
984
984
|
onMouseEnter: l,
|
|
985
985
|
onClick: i,
|
|
@@ -990,20 +990,20 @@ const yl = "_button_16snt_1", _l = {
|
|
|
990
990
|
}
|
|
991
991
|
);
|
|
992
992
|
Z.displayName = "IconActionButton";
|
|
993
|
-
const
|
|
994
|
-
container:
|
|
995
|
-
scrollArea:
|
|
996
|
-
emptyState:
|
|
993
|
+
const wl = "_container_ytzac_4", Nl = "_scrollArea_ytzac_21", Cl = "_emptyState_ytzac_29", Ue = {
|
|
994
|
+
container: wl,
|
|
995
|
+
scrollArea: Nl,
|
|
996
|
+
emptyState: Cl
|
|
997
997
|
}, Mt = ({
|
|
998
998
|
children: e,
|
|
999
999
|
emptyMessage: n,
|
|
1000
1000
|
className: i
|
|
1001
|
-
}) => /* @__PURE__ */ t("div", { className: `${Ue.container} ${i || ""}`, children: e ? /* @__PURE__ */ t("div", { className: Ue.scrollArea, children: e }) : n && /* @__PURE__ */ t("div", { className: Ue.emptyState, children: n }) }),
|
|
1002
|
-
root:
|
|
1003
|
-
list:
|
|
1004
|
-
trigger:
|
|
1005
|
-
content:
|
|
1006
|
-
}, We = gt(void 0),
|
|
1001
|
+
}) => /* @__PURE__ */ t("div", { className: `${Ue.container} ${i || ""}`, children: e ? /* @__PURE__ */ t("div", { className: Ue.scrollArea, children: e }) : n && /* @__PURE__ */ t("div", { className: Ue.emptyState, children: n }) }), Sl = "_root_vttth_1", Il = "_list_vttth_9", $l = "_trigger_vttth_24", Ll = "_content_vttth_69", ze = {
|
|
1002
|
+
root: Sl,
|
|
1003
|
+
list: Il,
|
|
1004
|
+
trigger: $l,
|
|
1005
|
+
content: Ll
|
|
1006
|
+
}, We = gt(void 0), kl = ({
|
|
1007
1007
|
defaultValue: e,
|
|
1008
1008
|
value: n,
|
|
1009
1009
|
onValueChange: i,
|
|
@@ -1015,14 +1015,14 @@ const xl = "_container_ytzac_4", wl = "_scrollArea_ytzac_21", Nl = "_emptyState_
|
|
|
1015
1015
|
r(u), i == null || i(u);
|
|
1016
1016
|
};
|
|
1017
1017
|
return /* @__PURE__ */ t(We.Provider, { value: { value: s, onChange: d, variant: a }, children: /* @__PURE__ */ t("div", { className: `${ze.root} ${o}`, "data-variant": a, children: l }) });
|
|
1018
|
-
},
|
|
1018
|
+
}, Tl = ({
|
|
1019
1019
|
children: e,
|
|
1020
1020
|
className: n = "",
|
|
1021
1021
|
width: i,
|
|
1022
1022
|
height: l,
|
|
1023
1023
|
style: a
|
|
1024
1024
|
}) => {
|
|
1025
|
-
const o =
|
|
1025
|
+
const o = Pe(We);
|
|
1026
1026
|
if (!o)
|
|
1027
1027
|
throw new Error("TabsList must be used within a Tabs component");
|
|
1028
1028
|
const { variant: c } = o, r = { ...a };
|
|
@@ -1044,7 +1044,7 @@ const xl = "_container_ytzac_4", wl = "_scrollArea_ytzac_21", Nl = "_emptyState_
|
|
|
1044
1044
|
height: o,
|
|
1045
1045
|
style: c
|
|
1046
1046
|
}) => {
|
|
1047
|
-
const r =
|
|
1047
|
+
const r = Pe(We);
|
|
1048
1048
|
if (!r)
|
|
1049
1049
|
throw new Error("TabsTrigger must be used within a Tabs component");
|
|
1050
1050
|
const { value: s, onChange: d, variant: u } = r, h = s === e, f = { ...c };
|
|
@@ -1066,13 +1066,13 @@ const xl = "_container_ytzac_4", wl = "_scrollArea_ytzac_21", Nl = "_emptyState_
|
|
|
1066
1066
|
children: n,
|
|
1067
1067
|
className: i = ""
|
|
1068
1068
|
}) => {
|
|
1069
|
-
const l =
|
|
1069
|
+
const l = Pe(We);
|
|
1070
1070
|
if (!l)
|
|
1071
1071
|
throw new Error("TabsContent must be used within a Tabs component");
|
|
1072
1072
|
const { value: a } = l;
|
|
1073
1073
|
return a !== e ? null : /* @__PURE__ */ t("div", { className: `${ze.content} ${i}`, children: n });
|
|
1074
|
-
},
|
|
1075
|
-
input:
|
|
1074
|
+
}, El = "_input_jxjyc_5", Al = {
|
|
1075
|
+
input: El
|
|
1076
1076
|
}, Se = ({
|
|
1077
1077
|
value: e,
|
|
1078
1078
|
onChange: n,
|
|
@@ -1095,7 +1095,7 @@ const xl = "_container_ytzac_4", wl = "_scrollArea_ytzac_21", Nl = "_emptyState_
|
|
|
1095
1095
|
), w = {};
|
|
1096
1096
|
r !== void 0 ? w.width = `${r}px` : w.width = "100%", s !== void 0 && (w.height = `${s}px`);
|
|
1097
1097
|
const L = {
|
|
1098
|
-
className:
|
|
1098
|
+
className: Al.input,
|
|
1099
1099
|
style: w,
|
|
1100
1100
|
value: e ?? "",
|
|
1101
1101
|
onChange: _,
|
|
@@ -1107,7 +1107,7 @@ const xl = "_container_ytzac_4", wl = "_scrollArea_ytzac_21", Nl = "_emptyState_
|
|
|
1107
1107
|
return m ? /* @__PURE__ */ t("textarea", { ...L, rows: g }) : /* @__PURE__ */ t("input", { ...L, type: "text", onBlur: h });
|
|
1108
1108
|
};
|
|
1109
1109
|
Se.displayName = "TextInput";
|
|
1110
|
-
const
|
|
1110
|
+
const Ml = ({
|
|
1111
1111
|
actionContext: e,
|
|
1112
1112
|
onActionFeedback: n,
|
|
1113
1113
|
onPrint: i
|
|
@@ -1166,8 +1166,8 @@ const Al = ({
|
|
|
1166
1166
|
)
|
|
1167
1167
|
] });
|
|
1168
1168
|
};
|
|
1169
|
-
|
|
1170
|
-
const ut = { value: 1, unit: "fr" },
|
|
1169
|
+
Ml.displayName = "CanvasActionSection";
|
|
1170
|
+
const ut = { value: 1, unit: "fr" }, Dl = ({
|
|
1171
1171
|
grid: e,
|
|
1172
1172
|
onGridChange: n
|
|
1173
1173
|
}) => {
|
|
@@ -1199,12 +1199,12 @@ const ut = { value: 1, unit: "fr" }, Ml = ({
|
|
|
1199
1199
|
[e, n]
|
|
1200
1200
|
);
|
|
1201
1201
|
return /* @__PURE__ */ p(oe, { children: [
|
|
1202
|
-
/* @__PURE__ */ t("span", { className:
|
|
1202
|
+
/* @__PURE__ */ t("span", { className: P.sectionLabel, children: "列" }),
|
|
1203
1203
|
/* @__PURE__ */ t(
|
|
1204
1204
|
"input",
|
|
1205
1205
|
{
|
|
1206
1206
|
type: "number",
|
|
1207
|
-
className:
|
|
1207
|
+
className: P.numberInput,
|
|
1208
1208
|
value: e.colCount,
|
|
1209
1209
|
min: 1,
|
|
1210
1210
|
max: 100,
|
|
@@ -1213,12 +1213,12 @@ const ut = { value: 1, unit: "fr" }, Ml = ({
|
|
|
1213
1213
|
title: "列数"
|
|
1214
1214
|
}
|
|
1215
1215
|
),
|
|
1216
|
-
/* @__PURE__ */ t("span", { className:
|
|
1216
|
+
/* @__PURE__ */ t("span", { className: P.sectionLabel, children: "行" }),
|
|
1217
1217
|
/* @__PURE__ */ t(
|
|
1218
1218
|
"input",
|
|
1219
1219
|
{
|
|
1220
1220
|
type: "number",
|
|
1221
|
-
className:
|
|
1221
|
+
className: P.numberInput,
|
|
1222
1222
|
value: e.rowCount,
|
|
1223
1223
|
min: 1,
|
|
1224
1224
|
max: 100,
|
|
@@ -1229,7 +1229,7 @@ const ut = { value: 1, unit: "fr" }, Ml = ({
|
|
|
1229
1229
|
)
|
|
1230
1230
|
] });
|
|
1231
1231
|
};
|
|
1232
|
-
|
|
1232
|
+
Dl.displayName = "GridSettingsSection";
|
|
1233
1233
|
function ke(e, n) {
|
|
1234
1234
|
switch (n) {
|
|
1235
1235
|
case "cm":
|
|
@@ -1247,7 +1247,7 @@ const Pl = [
|
|
|
1247
1247
|
{ value: F.LETTER, label: "Letter" },
|
|
1248
1248
|
{ value: F.LEGAL, label: "Legal" },
|
|
1249
1249
|
{ value: F.CUSTOM, label: "カスタム" }
|
|
1250
|
-
],
|
|
1250
|
+
], Bl = ({
|
|
1251
1251
|
paper: e,
|
|
1252
1252
|
onPaperChange: n
|
|
1253
1253
|
}) => {
|
|
@@ -1302,11 +1302,11 @@ const Pl = [
|
|
|
1302
1302
|
n({ ...e, autoWidth: a ? void 0 : !0 });
|
|
1303
1303
|
}, [e, a, n]);
|
|
1304
1304
|
return /* @__PURE__ */ p(oe, { children: [
|
|
1305
|
-
/* @__PURE__ */ t("span", { className:
|
|
1305
|
+
/* @__PURE__ */ t("span", { className: P.sectionLabel, children: "用紙" }),
|
|
1306
1306
|
/* @__PURE__ */ t(
|
|
1307
1307
|
"select",
|
|
1308
1308
|
{
|
|
1309
|
-
className:
|
|
1309
|
+
className: P.select,
|
|
1310
1310
|
value: e.size.preset,
|
|
1311
1311
|
onChange: o,
|
|
1312
1312
|
"aria-label": "用紙サイズ",
|
|
@@ -1314,11 +1314,11 @@ const Pl = [
|
|
|
1314
1314
|
children: Pl.map((h) => /* @__PURE__ */ t("option", { value: h.value, children: h.label }, h.value))
|
|
1315
1315
|
}
|
|
1316
1316
|
),
|
|
1317
|
-
/* @__PURE__ */ p("div", { className:
|
|
1317
|
+
/* @__PURE__ */ p("div", { className: P.heightModeSwitch, children: [
|
|
1318
1318
|
/* @__PURE__ */ t(
|
|
1319
1319
|
"span",
|
|
1320
1320
|
{
|
|
1321
|
-
className: `${
|
|
1321
|
+
className: `${P.switchLabel} ${l ? "" : P.switchLabelActive}`,
|
|
1322
1322
|
children: "固定"
|
|
1323
1323
|
}
|
|
1324
1324
|
),
|
|
@@ -1329,24 +1329,24 @@ const Pl = [
|
|
|
1329
1329
|
role: "switch",
|
|
1330
1330
|
"aria-checked": l,
|
|
1331
1331
|
"aria-label": "高さモード",
|
|
1332
|
-
className:
|
|
1332
|
+
className: P.toggle,
|
|
1333
1333
|
onClick: d,
|
|
1334
|
-
children: /* @__PURE__ */ t("span", { className:
|
|
1334
|
+
children: /* @__PURE__ */ t("span", { className: P.thumb })
|
|
1335
1335
|
}
|
|
1336
1336
|
),
|
|
1337
1337
|
/* @__PURE__ */ t(
|
|
1338
1338
|
"span",
|
|
1339
1339
|
{
|
|
1340
|
-
className: `${
|
|
1340
|
+
className: `${P.switchLabel} ${l ? P.switchLabelActive : ""}`,
|
|
1341
1341
|
children: "自動"
|
|
1342
1342
|
}
|
|
1343
1343
|
)
|
|
1344
1344
|
] }),
|
|
1345
|
-
/* @__PURE__ */ p("div", { className:
|
|
1345
|
+
/* @__PURE__ */ p("div", { className: P.heightModeSwitch, children: [
|
|
1346
1346
|
/* @__PURE__ */ t(
|
|
1347
1347
|
"span",
|
|
1348
1348
|
{
|
|
1349
|
-
className: `${
|
|
1349
|
+
className: `${P.switchLabel} ${a ? "" : P.switchLabelActive}`,
|
|
1350
1350
|
children: "幅固定"
|
|
1351
1351
|
}
|
|
1352
1352
|
),
|
|
@@ -1357,15 +1357,15 @@ const Pl = [
|
|
|
1357
1357
|
role: "switch",
|
|
1358
1358
|
"aria-checked": a,
|
|
1359
1359
|
"aria-label": "幅モード",
|
|
1360
|
-
className:
|
|
1360
|
+
className: P.toggle,
|
|
1361
1361
|
onClick: u,
|
|
1362
|
-
children: /* @__PURE__ */ t("span", { className:
|
|
1362
|
+
children: /* @__PURE__ */ t("span", { className: P.thumb })
|
|
1363
1363
|
}
|
|
1364
1364
|
),
|
|
1365
1365
|
/* @__PURE__ */ t(
|
|
1366
1366
|
"span",
|
|
1367
1367
|
{
|
|
1368
|
-
className: `${
|
|
1368
|
+
className: `${P.switchLabel} ${a ? P.switchLabelActive : ""}`,
|
|
1369
1369
|
children: "幅自動"
|
|
1370
1370
|
}
|
|
1371
1371
|
)
|
|
@@ -1375,7 +1375,7 @@ const Pl = [
|
|
|
1375
1375
|
"input",
|
|
1376
1376
|
{
|
|
1377
1377
|
type: "number",
|
|
1378
|
-
className:
|
|
1378
|
+
className: P.numberInput,
|
|
1379
1379
|
value: e.size.width.value,
|
|
1380
1380
|
min: ke(
|
|
1381
1381
|
K.fromDim(e.margin.left) + K.fromDim(e.margin.right),
|
|
@@ -1388,12 +1388,12 @@ const Pl = [
|
|
|
1388
1388
|
title: "幅"
|
|
1389
1389
|
}
|
|
1390
1390
|
),
|
|
1391
|
-
/* @__PURE__ */ t("span", { className:
|
|
1391
|
+
/* @__PURE__ */ t("span", { className: P.sectionLabel, children: "×" }),
|
|
1392
1392
|
/* @__PURE__ */ t(
|
|
1393
1393
|
"input",
|
|
1394
1394
|
{
|
|
1395
1395
|
type: "number",
|
|
1396
|
-
className:
|
|
1396
|
+
className: P.numberInput,
|
|
1397
1397
|
value: e.size.height.value,
|
|
1398
1398
|
min: ke(
|
|
1399
1399
|
K.fromDim(e.margin.top) + K.fromDim(e.margin.bottom),
|
|
@@ -1409,7 +1409,7 @@ const Pl = [
|
|
|
1409
1409
|
/* @__PURE__ */ p(
|
|
1410
1410
|
"select",
|
|
1411
1411
|
{
|
|
1412
|
-
className:
|
|
1412
|
+
className: P.select,
|
|
1413
1413
|
value: e.size.width.unit,
|
|
1414
1414
|
onChange: s,
|
|
1415
1415
|
"aria-label": "用紙単位",
|
|
@@ -1424,7 +1424,7 @@ const Pl = [
|
|
|
1424
1424
|
] })
|
|
1425
1425
|
] });
|
|
1426
1426
|
};
|
|
1427
|
-
|
|
1427
|
+
Bl.displayName = "PaperSettingsSection";
|
|
1428
1428
|
function ne(e, n, i) {
|
|
1429
1429
|
const l = n.split("."), a = (o, c) => {
|
|
1430
1430
|
const r = l[c];
|
|
@@ -1459,7 +1459,7 @@ function Y(e, n) {
|
|
|
1459
1459
|
(c) => i(c, l) === a
|
|
1460
1460
|
) ? a : void 0;
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1462
|
+
function zl(e, n, i) {
|
|
1463
1463
|
var o, c;
|
|
1464
1464
|
if (!e) return [];
|
|
1465
1465
|
const l = [], a = [
|
|
@@ -1496,22 +1496,6 @@ function Bl(e, n, i) {
|
|
|
1496
1496
|
}
|
|
1497
1497
|
return l;
|
|
1498
1498
|
}
|
|
1499
|
-
function zl(e) {
|
|
1500
|
-
const n = e == null ? void 0 : e.border;
|
|
1501
|
-
if (!n) return;
|
|
1502
|
-
const i = (a) => {
|
|
1503
|
-
const o = n[a] ?? n.all;
|
|
1504
|
-
if (o != null && o.type)
|
|
1505
|
-
return o;
|
|
1506
|
-
}, l = {
|
|
1507
|
-
top: i("top"),
|
|
1508
|
-
right: i("right"),
|
|
1509
|
-
bottom: i("bottom"),
|
|
1510
|
-
left: i("left")
|
|
1511
|
-
};
|
|
1512
|
-
if (!(!l.top && !l.right && !l.bottom && !l.left))
|
|
1513
|
-
return l;
|
|
1514
|
-
}
|
|
1515
1499
|
const it = ({
|
|
1516
1500
|
selectedBlocks: e,
|
|
1517
1501
|
onUpdateBlocks: n
|
|
@@ -1561,11 +1545,12 @@ const it = ({
|
|
|
1561
1545
|
e,
|
|
1562
1546
|
"style.backgroundColor"
|
|
1563
1547
|
), o = te(() => {
|
|
1548
|
+
var h;
|
|
1564
1549
|
if (e.length !== 1) return;
|
|
1565
1550
|
const u = e[0];
|
|
1566
|
-
return
|
|
1551
|
+
return (h = u == null ? void 0 : u.style) == null ? void 0 : h.border;
|
|
1567
1552
|
}, [e]), c = te(
|
|
1568
|
-
() =>
|
|
1553
|
+
() => zl(o, 80, 80),
|
|
1569
1554
|
[o]
|
|
1570
1555
|
);
|
|
1571
1556
|
if (e.length === 0) return null;
|
|
@@ -1761,8 +1746,8 @@ const it = ({
|
|
|
1761
1746
|
allowUndefined: !0
|
|
1762
1747
|
}
|
|
1763
1748
|
),
|
|
1764
|
-
/* @__PURE__ */ t("div", { style: { minWidth: 0 }, children: /* @__PURE__ */ p(
|
|
1765
|
-
/* @__PURE__ */ t("div", { style: { width: "100%" }, children: /* @__PURE__ */ p(
|
|
1749
|
+
/* @__PURE__ */ t("div", { style: { minWidth: 0 }, children: /* @__PURE__ */ p(kl, { defaultValue: "all", variant: "segmented", children: [
|
|
1750
|
+
/* @__PURE__ */ t("div", { style: { width: "100%" }, children: /* @__PURE__ */ p(Tl, { style: { width: "100%", display: "flex" }, children: [
|
|
1766
1751
|
/* @__PURE__ */ t(_e, { value: "all", height: 24, style: d, children: "共通" }),
|
|
1767
1752
|
/* @__PURE__ */ t(_e, { value: "top", height: 24, style: d, children: "上" }),
|
|
1768
1753
|
/* @__PURE__ */ t(_e, { value: "bottom", height: 24, style: d, children: "下" }),
|
|
@@ -1782,7 +1767,7 @@ const it = ({
|
|
|
1782
1767
|
);
|
|
1783
1768
|
};
|
|
1784
1769
|
it.displayName = "BackgroundBorderPanel";
|
|
1785
|
-
const Wl = "_container_1gf2q_1", Rl = "_grid_1gf2q_9", Ol = "_field_1gf2q_15", Fl = "_label_1gf2q_22", jl = "_inputWrapper_1gf2q_32",
|
|
1770
|
+
const Wl = "_container_1gf2q_1", Rl = "_grid_1gf2q_9", Ol = "_field_1gf2q_15", Fl = "_label_1gf2q_22", jl = "_inputWrapper_1gf2q_32", q = {
|
|
1786
1771
|
container: Wl,
|
|
1787
1772
|
grid: Rl,
|
|
1788
1773
|
field: Ol,
|
|
@@ -1835,11 +1820,11 @@ const Wl = "_container_1gf2q_1", Rl = "_grid_1gf2q_9", Ol = "_field_1gf2q_15", F
|
|
|
1835
1820
|
)
|
|
1836
1821
|
});
|
|
1837
1822
|
};
|
|
1838
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1839
|
-
/* @__PURE__ */ p("div", { className:
|
|
1840
|
-
/* @__PURE__ */ t("span", { className:
|
|
1841
|
-
/* @__PURE__ */ t("div", { className:
|
|
1842
|
-
|
|
1823
|
+
return /* @__PURE__ */ t("div", { className: q.container, children: /* @__PURE__ */ p("div", { className: q.grid, children: [
|
|
1824
|
+
/* @__PURE__ */ p("div", { className: q.field, children: [
|
|
1825
|
+
/* @__PURE__ */ t("span", { className: q.label, children: "X" }),
|
|
1826
|
+
/* @__PURE__ */ t("div", { className: q.inputWrapper, children: /* @__PURE__ */ t(
|
|
1827
|
+
G,
|
|
1843
1828
|
{
|
|
1844
1829
|
value: l ? a : Y(e, "layout.x"),
|
|
1845
1830
|
onChange: (r) => c("x", r),
|
|
@@ -1851,10 +1836,10 @@ const Wl = "_container_1gf2q_1", Rl = "_grid_1gf2q_9", Ol = "_field_1gf2q_15", F
|
|
|
1851
1836
|
}
|
|
1852
1837
|
) })
|
|
1853
1838
|
] }),
|
|
1854
|
-
/* @__PURE__ */ p("div", { className:
|
|
1855
|
-
/* @__PURE__ */ t("span", { className:
|
|
1856
|
-
/* @__PURE__ */ t("div", { className:
|
|
1857
|
-
|
|
1839
|
+
/* @__PURE__ */ p("div", { className: q.field, children: [
|
|
1840
|
+
/* @__PURE__ */ t("span", { className: q.label, children: "Y" }),
|
|
1841
|
+
/* @__PURE__ */ t("div", { className: q.inputWrapper, children: /* @__PURE__ */ t(
|
|
1842
|
+
G,
|
|
1858
1843
|
{
|
|
1859
1844
|
value: l ? o : Y(e, "layout.y"),
|
|
1860
1845
|
onChange: (r) => c("y", r),
|
|
@@ -1866,10 +1851,10 @@ const Wl = "_container_1gf2q_1", Rl = "_grid_1gf2q_9", Ol = "_field_1gf2q_15", F
|
|
|
1866
1851
|
}
|
|
1867
1852
|
) })
|
|
1868
1853
|
] }),
|
|
1869
|
-
/* @__PURE__ */ p("div", { className:
|
|
1870
|
-
/* @__PURE__ */ t("span", { className:
|
|
1871
|
-
/* @__PURE__ */ t("div", { className:
|
|
1872
|
-
|
|
1854
|
+
/* @__PURE__ */ p("div", { className: q.field, children: [
|
|
1855
|
+
/* @__PURE__ */ t("span", { className: q.label, children: "W" }),
|
|
1856
|
+
/* @__PURE__ */ t("div", { className: q.inputWrapper, children: /* @__PURE__ */ t(
|
|
1857
|
+
G,
|
|
1873
1858
|
{
|
|
1874
1859
|
value: Y(e, "layout.w"),
|
|
1875
1860
|
onChange: (r) => c("w", r),
|
|
@@ -1881,10 +1866,10 @@ const Wl = "_container_1gf2q_1", Rl = "_grid_1gf2q_9", Ol = "_field_1gf2q_15", F
|
|
|
1881
1866
|
}
|
|
1882
1867
|
) })
|
|
1883
1868
|
] }),
|
|
1884
|
-
/* @__PURE__ */ p("div", { className:
|
|
1885
|
-
/* @__PURE__ */ t("span", { className:
|
|
1886
|
-
/* @__PURE__ */ t("div", { className:
|
|
1887
|
-
|
|
1869
|
+
/* @__PURE__ */ p("div", { className: q.field, children: [
|
|
1870
|
+
/* @__PURE__ */ t("span", { className: q.label, children: "H" }),
|
|
1871
|
+
/* @__PURE__ */ t("div", { className: q.inputWrapper, children: /* @__PURE__ */ t(
|
|
1872
|
+
G,
|
|
1888
1873
|
{
|
|
1889
1874
|
value: Y(e, "layout.h"),
|
|
1890
1875
|
onChange: (r) => c("h", r),
|
|
@@ -1899,10 +1884,10 @@ const Wl = "_container_1gf2q_1", Rl = "_grid_1gf2q_9", Ol = "_field_1gf2q_15", F
|
|
|
1899
1884
|
] }) });
|
|
1900
1885
|
};
|
|
1901
1886
|
at.displayName = "LayoutPanel";
|
|
1902
|
-
const Ul = "_group_xhfvf_1", Vl = "_btn_xhfvf_13",
|
|
1887
|
+
const Ul = "_group_xhfvf_1", Vl = "_btn_xhfvf_13", ql = "_active_xhfvf_46", Ve = {
|
|
1903
1888
|
group: Ul,
|
|
1904
1889
|
btn: Vl,
|
|
1905
|
-
active:
|
|
1890
|
+
active: ql
|
|
1906
1891
|
}, Ze = fe(
|
|
1907
1892
|
({ options: e, current: n, onChange: i }) => /* @__PURE__ */ t("fieldset", { className: Ve.group, children: e.map((l) => {
|
|
1908
1893
|
const a = n === l.value;
|
|
@@ -1932,7 +1917,7 @@ const se = rn.defaultProps.styleConfig, re = {
|
|
|
1932
1917
|
display: "flex",
|
|
1933
1918
|
gap: 4,
|
|
1934
1919
|
alignItems: "center"
|
|
1935
|
-
},
|
|
1920
|
+
}, Dt = ({
|
|
1936
1921
|
value: e,
|
|
1937
1922
|
onChange: n,
|
|
1938
1923
|
readOnly: i = !1
|
|
@@ -2063,9 +2048,9 @@ const se = rn.defaultProps.styleConfig, re = {
|
|
|
2063
2048
|
] })
|
|
2064
2049
|
] });
|
|
2065
2050
|
};
|
|
2066
|
-
|
|
2067
|
-
const
|
|
2068
|
-
group:
|
|
2051
|
+
Dt.displayName = "CheckboxStyleEditor";
|
|
2052
|
+
const Gl = "_group_1uyid_1", Hl = "_btn_1uyid_13", Kl = "_active_1uyid_46", Zl = "_iconBold_1uyid_52", Yl = "_iconItalic_1uyid_59", Jl = "_iconUnderline_1uyid_66", Xl = "_iconLineThrough_1uyid_73", ue = {
|
|
2053
|
+
group: Gl,
|
|
2069
2054
|
btn: Hl,
|
|
2070
2055
|
active: Kl,
|
|
2071
2056
|
iconBold: Zl,
|
|
@@ -2093,7 +2078,7 @@ const ql = "_group_1uyid_1", Hl = "_btn_1uyid_13", Kl = "_active_1uyid_46", Zl =
|
|
|
2093
2078
|
label: "取り消し線",
|
|
2094
2079
|
icon: /* @__PURE__ */ t("span", { className: ue.iconLineThrough, "aria-hidden": "true", children: "S" })
|
|
2095
2080
|
}
|
|
2096
|
-
],
|
|
2081
|
+
], Pt = ({
|
|
2097
2082
|
value: e,
|
|
2098
2083
|
onChange: n,
|
|
2099
2084
|
readOnly: i = !1
|
|
@@ -2119,7 +2104,7 @@ const ql = "_group_1uyid_1", Hl = "_btn_1uyid_13", Kl = "_active_1uyid_46", Zl =
|
|
|
2119
2104
|
);
|
|
2120
2105
|
}) });
|
|
2121
2106
|
};
|
|
2122
|
-
|
|
2107
|
+
Pt.displayName = "FontDecorationToggle";
|
|
2123
2108
|
const ei = "_root_12n4v_6", ti = "_fontFamilyCell_12n4v_13", ni = "_fontSizeCell_12n4v_14", li = "_colorCell_12n4v_15", we = {
|
|
2124
2109
|
root: ei,
|
|
2125
2110
|
fontFamilyCell: ti,
|
|
@@ -2190,7 +2175,7 @@ const ei = "_root_12n4v_6", ti = "_fontFamilyCell_12n4v_13", ni = "_fontSizeCell
|
|
|
2190
2175
|
}
|
|
2191
2176
|
) }),
|
|
2192
2177
|
/* @__PURE__ */ t("div", { className: we.decorationCell, children: /* @__PURE__ */ t(
|
|
2193
|
-
|
|
2178
|
+
Pt,
|
|
2194
2179
|
{
|
|
2195
2180
|
value: s,
|
|
2196
2181
|
onChange: r,
|
|
@@ -2588,12 +2573,12 @@ const Ne = hn.defaultProps, ui = [
|
|
|
2588
2573
|
{ label: "標準", value: Re.normal },
|
|
2589
2574
|
{ label: "単語で折り返し", value: Re.breakWord },
|
|
2590
2575
|
{ label: "文字で折り返し", value: Re.breakAll }
|
|
2591
|
-
],
|
|
2576
|
+
], qe = {
|
|
2592
2577
|
display: "flex",
|
|
2593
2578
|
alignItems: "center",
|
|
2594
2579
|
gap: 6,
|
|
2595
2580
|
marginBottom: 4
|
|
2596
|
-
},
|
|
2581
|
+
}, Ge = {
|
|
2597
2582
|
fontSize: 11,
|
|
2598
2583
|
color: "#666",
|
|
2599
2584
|
minWidth: 72,
|
|
@@ -2605,8 +2590,8 @@ const Ne = hn.defaultProps, ui = [
|
|
|
2605
2590
|
onChange: l,
|
|
2606
2591
|
readOnly: a = !1
|
|
2607
2592
|
}) => /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "column", gap: 2 }, children: [
|
|
2608
|
-
/* @__PURE__ */ p("div", { style:
|
|
2609
|
-
/* @__PURE__ */ t("span", { style:
|
|
2593
|
+
/* @__PURE__ */ p("div", { style: qe, children: [
|
|
2594
|
+
/* @__PURE__ */ t("span", { style: Ge, children: "複数行" }),
|
|
2610
2595
|
/* @__PURE__ */ t(
|
|
2611
2596
|
ae,
|
|
2612
2597
|
{
|
|
@@ -2617,10 +2602,10 @@ const Ne = hn.defaultProps, ui = [
|
|
|
2617
2602
|
}
|
|
2618
2603
|
)
|
|
2619
2604
|
] }),
|
|
2620
|
-
/* @__PURE__ */ p("div", { style:
|
|
2621
|
-
/* @__PURE__ */ t("span", { style:
|
|
2605
|
+
/* @__PURE__ */ p("div", { style: qe, children: [
|
|
2606
|
+
/* @__PURE__ */ t("span", { style: Ge, children: "行間" }),
|
|
2622
2607
|
/* @__PURE__ */ t("div", { style: { flex: 1 }, children: /* @__PURE__ */ t(
|
|
2623
|
-
|
|
2608
|
+
G,
|
|
2624
2609
|
{
|
|
2625
2610
|
value: n ?? Ne.lineHeight,
|
|
2626
2611
|
onChange: (o) => l("lineHeight", o ?? Ne.lineHeight),
|
|
@@ -2632,8 +2617,8 @@ const Ne = hn.defaultProps, ui = [
|
|
|
2632
2617
|
}
|
|
2633
2618
|
) })
|
|
2634
2619
|
] }),
|
|
2635
|
-
/* @__PURE__ */ p("div", { style:
|
|
2636
|
-
/* @__PURE__ */ t("span", { style:
|
|
2620
|
+
/* @__PURE__ */ p("div", { style: qe, children: [
|
|
2621
|
+
/* @__PURE__ */ t("span", { style: Ge, children: "折り返し" }),
|
|
2637
2622
|
/* @__PURE__ */ t("div", { style: { flex: 1 }, children: /* @__PURE__ */ t(
|
|
2638
2623
|
ge,
|
|
2639
2624
|
{
|
|
@@ -2764,7 +2749,7 @@ const Me = [
|
|
|
2764
2749
|
style: { display: "flex", alignItems: "center", gap: 4, flex: 1 },
|
|
2765
2750
|
children: [
|
|
2766
2751
|
/* @__PURE__ */ t("div", { style: { flex: 1 }, children: /* @__PURE__ */ t(
|
|
2767
|
-
|
|
2752
|
+
G,
|
|
2768
2753
|
{
|
|
2769
2754
|
value: n,
|
|
2770
2755
|
onChange: (I) => a("minLength", I ?? null),
|
|
@@ -2776,7 +2761,7 @@ const Me = [
|
|
|
2776
2761
|
) }),
|
|
2777
2762
|
/* @__PURE__ */ t("span", { style: { fontSize: 11, color: "#666" }, children: "〜" }),
|
|
2778
2763
|
/* @__PURE__ */ t("div", { style: { flex: 1 }, children: /* @__PURE__ */ t(
|
|
2779
|
-
|
|
2764
|
+
G,
|
|
2780
2765
|
{
|
|
2781
2766
|
value: i,
|
|
2782
2767
|
onChange: (I) => a("maxLength", I ?? null),
|
|
@@ -3087,7 +3072,7 @@ const ot = fe(
|
|
|
3087
3072
|
case "checkboxStyle": {
|
|
3088
3073
|
const r = i("styleConfig");
|
|
3089
3074
|
return /* @__PURE__ */ t(
|
|
3090
|
-
|
|
3075
|
+
Dt,
|
|
3091
3076
|
{
|
|
3092
3077
|
value: r,
|
|
3093
3078
|
onChange: (s) => l("styleConfig", s)
|
|
@@ -3266,7 +3251,7 @@ const gi = "_bar_13lr1_4", yi = "_divider_13lr1_18", _i = "_barWrapper_13lr1_26"
|
|
|
3266
3251
|
ve.displayName = "SelectionActionBarButton";
|
|
3267
3252
|
const Vt = gt(null);
|
|
3268
3253
|
function wi() {
|
|
3269
|
-
const e =
|
|
3254
|
+
const e = Pe(Vt);
|
|
3270
3255
|
if (e === null)
|
|
3271
3256
|
throw new Error(
|
|
3272
3257
|
"useSelectionActionBar must be used inside SelectionActionBar"
|
|
@@ -3344,7 +3329,7 @@ const Ni = ({
|
|
|
3344
3329
|
);
|
|
3345
3330
|
};
|
|
3346
3331
|
Ni.displayName = "SelectionActionBar";
|
|
3347
|
-
const
|
|
3332
|
+
const De = ({
|
|
3348
3333
|
id: e,
|
|
3349
3334
|
icon: n,
|
|
3350
3335
|
label: i,
|
|
@@ -3381,7 +3366,7 @@ const Pe = ({
|
|
|
3381
3366
|
)
|
|
3382
3367
|
] });
|
|
3383
3368
|
};
|
|
3384
|
-
|
|
3369
|
+
De.displayName = "SelectionActionBarPanel";
|
|
3385
3370
|
function Oa({
|
|
3386
3371
|
context: e,
|
|
3387
3372
|
gridSize: n,
|
|
@@ -3452,7 +3437,7 @@ function Oa({
|
|
|
3452
3437
|
)
|
|
3453
3438
|
), h && g.push(
|
|
3454
3439
|
/* @__PURE__ */ t(
|
|
3455
|
-
|
|
3440
|
+
De,
|
|
3456
3441
|
{
|
|
3457
3442
|
id: "style",
|
|
3458
3443
|
icon: /* @__PURE__ */ t($t, { "aria-hidden": "true" }),
|
|
@@ -3468,7 +3453,7 @@ function Oa({
|
|
|
3468
3453
|
"style"
|
|
3469
3454
|
),
|
|
3470
3455
|
/* @__PURE__ */ t(
|
|
3471
|
-
|
|
3456
|
+
De,
|
|
3472
3457
|
{
|
|
3473
3458
|
id: "layout",
|
|
3474
3459
|
icon: /* @__PURE__ */ t(Lt, { "aria-hidden": "true" }),
|
|
@@ -3486,7 +3471,7 @@ function Oa({
|
|
|
3486
3471
|
)
|
|
3487
3472
|
), f && g.push(
|
|
3488
3473
|
/* @__PURE__ */ t(
|
|
3489
|
-
|
|
3474
|
+
De,
|
|
3490
3475
|
{
|
|
3491
3476
|
id: "plugin",
|
|
3492
3477
|
icon: /* @__PURE__ */ t(kt, { "aria-hidden": "true" }),
|
|
@@ -3592,7 +3577,7 @@ function mt(e, n, i) {
|
|
|
3592
3577
|
const l = e.trim();
|
|
3593
3578
|
return l ? /\s/.test(l) ? "スペースは使用できません" : l !== n && (i != null && i.has(l)) ? "このIDは既に使用されています" : null : "IDを入力してください";
|
|
3594
3579
|
}
|
|
3595
|
-
const
|
|
3580
|
+
const qt = ({
|
|
3596
3581
|
selectedBlocks: e,
|
|
3597
3582
|
onUpdateBlocks: n,
|
|
3598
3583
|
allBlockIds: i
|
|
@@ -3680,7 +3665,7 @@ const Gt = ({
|
|
|
3680
3665
|
) }) })
|
|
3681
3666
|
] });
|
|
3682
3667
|
};
|
|
3683
|
-
|
|
3668
|
+
qt.displayName = "MetaPanel";
|
|
3684
3669
|
const Ti = "_container_2zb6l_1", Ei = "_scrollArea_2zb6l_18", Ai = "_emptyState_2zb6l_33", Ye = {
|
|
3685
3670
|
container: Ti,
|
|
3686
3671
|
scrollArea: Ei,
|
|
@@ -3747,7 +3732,7 @@ const Mi = fe(
|
|
|
3747
3732
|
title: "基本設定",
|
|
3748
3733
|
description: "ブロックのID(識別子)や読み取り専用にするかどうかなど、動作に関わる設定をします",
|
|
3749
3734
|
children: /* @__PURE__ */ t(
|
|
3750
|
-
|
|
3735
|
+
qt,
|
|
3751
3736
|
{
|
|
3752
3737
|
selectedBlocks: s,
|
|
3753
3738
|
onUpdateBlocks: u,
|
|
@@ -3760,13 +3745,13 @@ const Mi = fe(
|
|
|
3760
3745
|
}
|
|
3761
3746
|
);
|
|
3762
3747
|
Mi.displayName = "DefaultBlockPropertyPanel";
|
|
3763
|
-
const
|
|
3764
|
-
kindSelector:
|
|
3765
|
-
kindTab:
|
|
3748
|
+
const Di = "_kindSelector_qrad9_1", Pi = "_kindTab_qrad9_9", Bi = "_kindTabActive_qrad9_30", zi = "_propertyList_qrad9_46", Wi = "_emptyState_qrad9_131", be = {
|
|
3749
|
+
kindSelector: Di,
|
|
3750
|
+
kindTab: Pi,
|
|
3766
3751
|
kindTabActive: Bi,
|
|
3767
3752
|
propertyList: zi,
|
|
3768
3753
|
emptyState: Wi
|
|
3769
|
-
},
|
|
3754
|
+
}, Gt = fe(
|
|
3770
3755
|
({
|
|
3771
3756
|
propDef: e,
|
|
3772
3757
|
kindDefaults: n,
|
|
@@ -3807,7 +3792,7 @@ const Pi = "_kindSelector_qrad9_1", Di = "_kindTab_qrad9_9", Bi = "_kindTabActiv
|
|
|
3807
3792
|
);
|
|
3808
3793
|
}
|
|
3809
3794
|
);
|
|
3810
|
-
|
|
3795
|
+
Gt.displayName = "DefaultsPropField";
|
|
3811
3796
|
const Ht = fe(
|
|
3812
3797
|
({ blockDefaults: e, pluginRegistry: n, onChange: i }) => {
|
|
3813
3798
|
const l = Object.keys(n), [a, o] = O(
|
|
@@ -3841,7 +3826,7 @@ const Ht = fe(
|
|
|
3841
3826
|
);
|
|
3842
3827
|
}) }),
|
|
3843
3828
|
c && /* @__PURE__ */ t("div", { className: be.propertyList, children: c.properties.length === 0 ? /* @__PURE__ */ t("div", { className: be.emptyState, children: "カスタマイズ可能なプロパティがありません" }) : c.properties.map((s) => /* @__PURE__ */ t(
|
|
3844
|
-
|
|
3829
|
+
Gt,
|
|
3845
3830
|
{
|
|
3846
3831
|
propDef: s,
|
|
3847
3832
|
kindDefaults: e[a] ?? {},
|
|
@@ -3855,15 +3840,15 @@ const Ht = fe(
|
|
|
3855
3840
|
}
|
|
3856
3841
|
);
|
|
3857
3842
|
Ht.displayName = "BlockDefaultsPanel";
|
|
3858
|
-
const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", ji = "_dragHandle_12dfx_46", Ui = "_ghost_12dfx_57", Vi = "_itemInfo_12dfx_68",
|
|
3843
|
+
const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", ji = "_dragHandle_12dfx_46", Ui = "_ghost_12dfx_57", Vi = "_itemInfo_12dfx_68", qi = "_itemId_12dfx_75", Gi = "_itemMeta_12dfx_80", Hi = "_itemKind_12dfx_87", Ki = "_itemActions_12dfx_95", Zi = "_actionButton_12dfx_100", Yi = "_empty_12dfx_136", U = {
|
|
3859
3844
|
list: Ri,
|
|
3860
3845
|
item: Oi,
|
|
3861
3846
|
selected: Fi,
|
|
3862
3847
|
dragHandle: ji,
|
|
3863
3848
|
ghost: Ui,
|
|
3864
3849
|
itemInfo: Vi,
|
|
3865
|
-
itemId:
|
|
3866
|
-
itemMeta:
|
|
3850
|
+
itemId: qi,
|
|
3851
|
+
itemMeta: Gi,
|
|
3867
3852
|
itemKind: Hi,
|
|
3868
3853
|
itemActions: Ki,
|
|
3869
3854
|
actionButton: Zi,
|
|
@@ -3886,7 +3871,7 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
|
|
|
3886
3871
|
return h;
|
|
3887
3872
|
const b = h[f];
|
|
3888
3873
|
if (!b) return h;
|
|
3889
|
-
const N = [...h.filter((T,
|
|
3874
|
+
const N = [...h.filter((T, D) => D !== f)], C = Math.max(
|
|
3890
3875
|
0,
|
|
3891
3876
|
Math.min(r, N.length)
|
|
3892
3877
|
);
|
|
@@ -3909,7 +3894,7 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
|
|
|
3909
3894
|
[e, n]
|
|
3910
3895
|
), _ = y(
|
|
3911
3896
|
(b) => {
|
|
3912
|
-
const x = e.findIndex((
|
|
3897
|
+
const x = e.findIndex((D) => D.id === b);
|
|
3913
3898
|
if (x === -1 || x === e.length - 1) return;
|
|
3914
3899
|
const N = [...e], C = N[x], T = N[x + 1];
|
|
3915
3900
|
!C || !T || (N[x] = T, N[x + 1] = C, n(N));
|
|
@@ -3917,7 +3902,7 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
|
|
|
3917
3902
|
[e, n]
|
|
3918
3903
|
), w = y(
|
|
3919
3904
|
(b) => {
|
|
3920
|
-
const x = e.findIndex((
|
|
3905
|
+
const x = e.findIndex((D) => D.id === b);
|
|
3921
3906
|
if (x === -1 || x === 0) return;
|
|
3922
3907
|
const N = [...e], C = N[x], T = N[x - 1];
|
|
3923
3908
|
!C || !T || (N[x] = T, N[x - 1] = C, n(N));
|
|
@@ -3938,7 +3923,7 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
|
|
|
3938
3923
|
}, [n, l, a]), k = y(
|
|
3939
3924
|
(b, x, N) => {
|
|
3940
3925
|
if (b.preventDefault(), b.dataTransfer.dropEffect = "move", o === null || N === o) return;
|
|
3941
|
-
const C = r ?? u.current ?? 0, T = x < C ? x : x - 1,
|
|
3926
|
+
const C = r ?? u.current ?? 0, T = x < C ? x : x - 1, D = b.currentTarget.getBoundingClientRect(), A = D.top + D.height / 2, E = b.clientY < A ? T : T + 1;
|
|
3942
3927
|
if (E === r) return;
|
|
3943
3928
|
s(E);
|
|
3944
3929
|
const B = d.current;
|
|
@@ -3970,11 +3955,11 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
|
|
|
3970
3955
|
Math.min(r, N.length)
|
|
3971
3956
|
), T = [...N];
|
|
3972
3957
|
T.splice(C, 0, x);
|
|
3973
|
-
const
|
|
3974
|
-
|
|
3958
|
+
const D = [...T].reverse();
|
|
3959
|
+
D.every((E, B) => {
|
|
3975
3960
|
var J;
|
|
3976
3961
|
return E.id === ((J = e[B]) == null ? void 0 : J.id);
|
|
3977
|
-
}) || n(
|
|
3962
|
+
}) || n(D);
|
|
3978
3963
|
}
|
|
3979
3964
|
}
|
|
3980
3965
|
c(null), s(null);
|
|
@@ -4001,11 +3986,11 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
|
|
|
4001
3986
|
children: v.map((b, x) => {
|
|
4002
3987
|
const N = h.findIndex(
|
|
4003
3988
|
(A) => A.id === b.id
|
|
4004
|
-
), C = b.id === o, T = e.length - 1 - N,
|
|
3989
|
+
), C = b.id === o, T = e.length - 1 - N, D = (i == null ? void 0 : i.includes(b.id)) ?? !1;
|
|
4005
3990
|
return /* @__PURE__ */ p(
|
|
4006
3991
|
"li",
|
|
4007
3992
|
{
|
|
4008
|
-
className: `${U.item} ${C ? U.ghost : ""} ${
|
|
3993
|
+
className: `${U.item} ${C ? U.ghost : ""} ${D ? U.selected : ""}`,
|
|
4009
3994
|
draggable: !C,
|
|
4010
3995
|
onDragStart: C ? void 0 : (A) => L(A, N),
|
|
4011
3996
|
onDragEnd: $,
|
|
@@ -4230,7 +4215,7 @@ const ea = "_field_69k7e_6", ta = "_horizontal_69k7e_12", na = "_label_69k7e_18"
|
|
|
4230
4215
|
/* @__PURE__ */ p("div", { className: `${de.field} ${de.horizontal}`, children: [
|
|
4231
4216
|
/* @__PURE__ */ t("span", { className: de.label, children: "列数" }),
|
|
4232
4217
|
/* @__PURE__ */ t(
|
|
4233
|
-
|
|
4218
|
+
G,
|
|
4234
4219
|
{
|
|
4235
4220
|
value: e.colCount,
|
|
4236
4221
|
onChange: i,
|
|
@@ -4243,7 +4228,7 @@ const ea = "_field_69k7e_6", ta = "_horizontal_69k7e_12", na = "_label_69k7e_18"
|
|
|
4243
4228
|
/* @__PURE__ */ p("div", { className: `${de.field} ${de.horizontal}`, children: [
|
|
4244
4229
|
/* @__PURE__ */ t("span", { className: de.label, children: "行数" }),
|
|
4245
4230
|
/* @__PURE__ */ t(
|
|
4246
|
-
|
|
4231
|
+
G,
|
|
4247
4232
|
{
|
|
4248
4233
|
value: e.rowCount,
|
|
4249
4234
|
onChange: l,
|
|
@@ -4722,9 +4707,9 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
|
|
|
4722
4707
|
if (!x) return;
|
|
4723
4708
|
const N = new FileReader();
|
|
4724
4709
|
N.onload = (T) => {
|
|
4725
|
-
var
|
|
4710
|
+
var D;
|
|
4726
4711
|
try {
|
|
4727
|
-
u((
|
|
4712
|
+
u((D = T.target) == null ? void 0 : D.result), o(""), alert("インポートしました");
|
|
4728
4713
|
} catch (A) {
|
|
4729
4714
|
o(
|
|
4730
4715
|
`インポートエラー: ${A instanceof Error ? A.message : String(A)}`
|
|
@@ -4770,9 +4755,9 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
|
|
|
4770
4755
|
if (!x) return;
|
|
4771
4756
|
const N = new FileReader();
|
|
4772
4757
|
N.onload = (T) => {
|
|
4773
|
-
var
|
|
4758
|
+
var D;
|
|
4774
4759
|
try {
|
|
4775
|
-
const A = ht((
|
|
4760
|
+
const A = ht((D = T.target) == null ? void 0 : D.result), E = ft(n, A);
|
|
4776
4761
|
l(E), o(""), alert("値をインポートしました");
|
|
4777
4762
|
} catch (A) {
|
|
4778
4763
|
o(
|
|
@@ -4814,9 +4799,14 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
|
|
|
4814
4799
|
if (!x) return;
|
|
4815
4800
|
const N = new FileReader();
|
|
4816
4801
|
N.onload = (T) => {
|
|
4817
|
-
var
|
|
4802
|
+
var D;
|
|
4818
4803
|
try {
|
|
4819
|
-
const A = JSON.parse((
|
|
4804
|
+
const A = JSON.parse((D = T.target) == null ? void 0 : D.result), E = mn({
|
|
4805
|
+
grid: A.grid,
|
|
4806
|
+
blocks: A.blocks ?? [],
|
|
4807
|
+
...A.metaData !== void 0 ? { metaData: A.metaData } : {},
|
|
4808
|
+
...A.blockDefaults !== void 0 ? { blockDefaults: A.blockDefaults } : {}
|
|
4809
|
+
}), B = [...e.pages];
|
|
4820
4810
|
B[0] = E, i({ ...e, pages: B }), o(""), alert("スキーマをインポートしました");
|
|
4821
4811
|
} catch (A) {
|
|
4822
4812
|
o(
|
|
@@ -4996,18 +4986,18 @@ const ka = ({
|
|
|
4996
4986
|
return /* @__PURE__ */ t(Mt, { children: n ?? i });
|
|
4997
4987
|
};
|
|
4998
4988
|
ka.displayName = "OtherPanel";
|
|
4999
|
-
const Ta = "_container_16a0l_1", Ea = "_paletteItems_16a0l_11", Aa = "_item_16a0l_23", Ma = "_itemName_16a0l_49",
|
|
4989
|
+
const Ta = "_container_16a0l_1", Ea = "_paletteItems_16a0l_11", Aa = "_item_16a0l_23", Ma = "_itemName_16a0l_49", Da = "_itemPreview_16a0l_77", Ce = {
|
|
5000
4990
|
container: Ta,
|
|
5001
4991
|
paletteItems: Ea,
|
|
5002
4992
|
item: Aa,
|
|
5003
4993
|
itemName: Ma,
|
|
5004
|
-
itemPreview:
|
|
5005
|
-
},
|
|
4994
|
+
itemPreview: Da
|
|
4995
|
+
}, Pa = ({ context: e, className: n }) => {
|
|
5006
4996
|
const i = Object.values(e.pluginRegistry).filter(
|
|
5007
4997
|
(o) => o !== void 0
|
|
5008
|
-
), l = e.book.pages[e.editorState.pageIdx], { getBlockRectPx: a } =
|
|
4998
|
+
), l = e.book.pages[e.editorState.pageIdx], { getBlockRectPx: a } = bn(
|
|
5009
4999
|
e.book.paper,
|
|
5010
|
-
(l == null ? void 0 : l.grid) ??
|
|
5000
|
+
(l == null ? void 0 : l.grid) ?? vn
|
|
5011
5001
|
);
|
|
5012
5002
|
return /* @__PURE__ */ t("div", { className: `${Ce.container} ${n || ""}`, children: /* @__PURE__ */ t("div", { className: Ce.paletteItems, children: i.map((o) => {
|
|
5013
5003
|
const c = o.meta.defaultSize ?? { w: 1, h: 1 }, r = a({
|
|
@@ -5027,7 +5017,7 @@ const Ta = "_container_16a0l_1", Ea = "_paletteItems_16a0l_11", Aa = "_item_16a0
|
|
|
5027
5017
|
);
|
|
5028
5018
|
}) }) });
|
|
5029
5019
|
};
|
|
5030
|
-
|
|
5020
|
+
Pa.displayName = "PalettePanel";
|
|
5031
5021
|
const tn = ({ plugin: e, ghostWidth: n, ghostHeight: i }) => {
|
|
5032
5022
|
const l = te(() => {
|
|
5033
5023
|
var c, r;
|
|
@@ -5044,7 +5034,7 @@ const tn = ({ plugin: e, ghostWidth: n, ghostHeight: i }) => {
|
|
|
5044
5034
|
};
|
|
5045
5035
|
}, [e]), a = null, o = y(
|
|
5046
5036
|
(c) => {
|
|
5047
|
-
|
|
5037
|
+
fn(c, e.kind, e.meta.defaultSize ?? { w: 1, h: 1 });
|
|
5048
5038
|
const r = Math.round(n), s = Math.round(i), d = document.createElement("div");
|
|
5049
5039
|
d.style.cssText = `position:fixed;top:-9999px;left:-9999px;width:${r}px;height:${s}px;background:rgba(147,197,253,0.45);border-radius:4px;`, document.body.appendChild(d), c.dataTransfer.setDragImage(d, r / 2, s / 2), requestAnimationFrame(() => document.body.removeChild(d));
|
|
5050
5040
|
},
|
|
@@ -5078,7 +5068,7 @@ const tn = ({ plugin: e, ghostWidth: n, ghostHeight: i }) => {
|
|
|
5078
5068
|
onChange: () => {
|
|
5079
5069
|
},
|
|
5080
5070
|
readOnly: !0,
|
|
5081
|
-
mode:
|
|
5071
|
+
mode: gn.FORM
|
|
5082
5072
|
}
|
|
5083
5073
|
)
|
|
5084
5074
|
}
|
|
@@ -5087,36 +5077,36 @@ const tn = ({ plugin: e, ghostWidth: n, ghostHeight: i }) => {
|
|
|
5087
5077
|
};
|
|
5088
5078
|
tn.displayName = "PaletteItem";
|
|
5089
5079
|
export {
|
|
5090
|
-
|
|
5080
|
+
Tn as A,
|
|
5091
5081
|
it as B,
|
|
5092
|
-
|
|
5093
|
-
|
|
5082
|
+
En as C,
|
|
5083
|
+
Dn as D,
|
|
5094
5084
|
Qt as E,
|
|
5095
5085
|
st as F,
|
|
5096
|
-
|
|
5086
|
+
Dl as G,
|
|
5097
5087
|
Ut as H,
|
|
5098
5088
|
Z as I,
|
|
5099
5089
|
ve as J,
|
|
5100
|
-
|
|
5090
|
+
De as K,
|
|
5101
5091
|
at as L,
|
|
5102
5092
|
Xt as M,
|
|
5103
|
-
|
|
5093
|
+
G as N,
|
|
5104
5094
|
ka as O,
|
|
5105
|
-
|
|
5095
|
+
Bl as P,
|
|
5106
5096
|
Mt as Q,
|
|
5107
5097
|
Se as R,
|
|
5108
5098
|
Fa as S,
|
|
5109
|
-
|
|
5099
|
+
kl as T,
|
|
5110
5100
|
wi as U,
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5101
|
+
An as a,
|
|
5102
|
+
Mn as b,
|
|
5103
|
+
Ml as c,
|
|
5114
5104
|
Ni as d,
|
|
5115
5105
|
Mi as e,
|
|
5116
|
-
|
|
5106
|
+
Pa as f,
|
|
5117
5107
|
Oa as g,
|
|
5118
5108
|
Sa as h,
|
|
5119
|
-
|
|
5109
|
+
Tl as i,
|
|
5120
5110
|
_e as j,
|
|
5121
5111
|
xe as k,
|
|
5122
5112
|
Ht as l,
|
|
@@ -5126,12 +5116,12 @@ export {
|
|
|
5126
5116
|
Yt as p,
|
|
5127
5117
|
ae as q,
|
|
5128
5118
|
V as r,
|
|
5129
|
-
|
|
5119
|
+
P as s,
|
|
5130
5120
|
le as t,
|
|
5131
5121
|
ja as u,
|
|
5132
5122
|
j as v,
|
|
5133
5123
|
ge as w,
|
|
5134
5124
|
Jt as x,
|
|
5135
5125
|
en as y,
|
|
5136
|
-
|
|
5126
|
+
qt as z
|
|
5137
5127
|
};
|