@cluadwong/form-designer 0.3.0 → 0.3.1
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/README.md +2 -1
- package/dist/chunks/renderer-core.js +114 -115
- package/dist/designer.js +12 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -237,7 +237,7 @@ JS 与 CSS 若不是同一次构建的产物,哈希对不上,scoped 样式
|
|
|
237
237
|
|
|
238
238
|
### 验证基线
|
|
239
239
|
|
|
240
|
-
- `npx vitest run`:**
|
|
240
|
+
- `npx vitest run`:**427 passed(50 文件)**
|
|
241
241
|
- `npx vue-tsc --noEmit`:无错误
|
|
242
242
|
|
|
243
243
|
## 文档
|
|
@@ -249,6 +249,7 @@ JS 与 CSS 若不是同一次构建的产物,哈希对不上,scoped 样式
|
|
|
249
249
|
| [docs/design-biz.md](./docs/design-biz.md) | 业务与交互设计 |
|
|
250
250
|
| [docs/engine.md](./docs/engine.md) | 渲染引擎契约(索引/校验/渲染/尺寸/边框/打印) |
|
|
251
251
|
| [docs/user-guide.md](./docs/user-guide.md) | 用户操作指南(与应用内「帮助」同源) |
|
|
252
|
+
| [docs/lib-build.md](./docs/lib-build.md) | 库构建与产物契约(三个入口 / `exports` 映射 / CSS 三档归属 / chunk 单向依赖与环的排查) |
|
|
252
253
|
|
|
253
254
|
## 分支
|
|
254
255
|
|
|
@@ -2,12 +2,11 @@ var bt = Object.defineProperty;
|
|
|
2
2
|
var vt = (e, t, n) => t in e ? bt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Je = (e, t, n) => vt(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { defineComponent as Te, ref as J, onMounted as Fe, watch as ge, openBlock as x, createElementBlock as R, computed as U, resolveComponent as Et, mergeProps as se, Fragment as j, renderList as Y, normalizeStyle as ce, createBlock as ye, toDisplayString as G, createCommentVNode as xe, normalizeClass as Be, createTextVNode as Tt, createElementVNode as O, onUnmounted as St, nextTick as Xe, onBeforeUnmount as Mt, renderSlot as At, withCtx as xt, createVNode as Rt } from "vue";
|
|
5
|
-
import "./designer-ui.js";
|
|
6
5
|
import Nt from "dompurify";
|
|
7
6
|
import Ft from "@panzoom/panzoom";
|
|
8
7
|
import { VuePrintNext as kt } from "vue-print-next";
|
|
9
8
|
const It = 10;
|
|
10
|
-
function
|
|
9
|
+
function wn(e) {
|
|
11
10
|
return !!(e && e.type !== "grid-row" && e.type !== "grid-cell" && e.type !== "table-cell-template");
|
|
12
11
|
}
|
|
13
12
|
const Ct = {
|
|
@@ -21,15 +20,15 @@ function ze(e) {
|
|
|
21
20
|
function it(e, t) {
|
|
22
21
|
return ie(e).get(t);
|
|
23
22
|
}
|
|
24
|
-
function
|
|
23
|
+
function bn(e, t) {
|
|
25
24
|
var n;
|
|
26
25
|
return (n = it(e, t)) == null ? void 0 : n.node;
|
|
27
26
|
}
|
|
28
|
-
function
|
|
27
|
+
function vn(e, t) {
|
|
29
28
|
var n;
|
|
30
29
|
return (n = it(e, t)) == null ? void 0 : n.ownerCell;
|
|
31
30
|
}
|
|
32
|
-
function
|
|
31
|
+
function En(e, t) {
|
|
33
32
|
const n = ie(e), r = n.get(t);
|
|
34
33
|
if (!r) return [];
|
|
35
34
|
const i = [];
|
|
@@ -334,38 +333,38 @@ function Xt(e, t, n, r) {
|
|
|
334
333
|
return a.splice(o, 0, n), { ...i, rows: a };
|
|
335
334
|
});
|
|
336
335
|
}
|
|
337
|
-
function
|
|
336
|
+
function Tn(e, t, n = 1) {
|
|
338
337
|
return L(e, t, (r) => r.type !== "table" ? r : { ...r, minRows: Math.max(0, r.minRows + n) });
|
|
339
338
|
}
|
|
340
|
-
function
|
|
339
|
+
function Sn(e, t, n) {
|
|
341
340
|
return L(
|
|
342
341
|
e,
|
|
343
342
|
t,
|
|
344
343
|
(r) => r.type === "grid" ? { ...r, border: n } : r
|
|
345
344
|
);
|
|
346
345
|
}
|
|
347
|
-
function
|
|
346
|
+
function Mn(e, t, n) {
|
|
348
347
|
return L(
|
|
349
348
|
e,
|
|
350
349
|
t,
|
|
351
350
|
(r) => r.type === "table" ? { ...r, border: n } : r
|
|
352
351
|
);
|
|
353
352
|
}
|
|
354
|
-
function
|
|
353
|
+
function An(e, t, n) {
|
|
355
354
|
return L(
|
|
356
355
|
e,
|
|
357
356
|
t,
|
|
358
357
|
(r) => r.type === "grid-row" ? { ...r, height: n } : r
|
|
359
358
|
);
|
|
360
359
|
}
|
|
361
|
-
function
|
|
360
|
+
function xn(e, t, n) {
|
|
362
361
|
return L(
|
|
363
362
|
e,
|
|
364
363
|
t,
|
|
365
364
|
(r) => r.type === "grid-cell" ? { ...r, width: n } : r
|
|
366
365
|
);
|
|
367
366
|
}
|
|
368
|
-
function
|
|
367
|
+
function Rn(e, t, n) {
|
|
369
368
|
const r = Number.isFinite(n) && n > 0 ? n : 0;
|
|
370
369
|
return L(
|
|
371
370
|
e,
|
|
@@ -373,28 +372,28 @@ function Nn(e, t, n) {
|
|
|
373
372
|
(i) => i.type === "grid-cell" ? { ...i, padding: r } : i
|
|
374
373
|
);
|
|
375
374
|
}
|
|
376
|
-
function
|
|
375
|
+
function Nn(e, t, n) {
|
|
377
376
|
return L(
|
|
378
377
|
e,
|
|
379
378
|
t,
|
|
380
379
|
(r) => r.type === "grid-cell" ? { ...r, align: n } : r
|
|
381
380
|
);
|
|
382
381
|
}
|
|
383
|
-
function
|
|
382
|
+
function Fn(e, t, n) {
|
|
384
383
|
return L(
|
|
385
384
|
e,
|
|
386
385
|
t,
|
|
387
386
|
(r) => r.type === "grid-cell" ? { ...r, verticalAlign: n } : r
|
|
388
387
|
);
|
|
389
388
|
}
|
|
390
|
-
function
|
|
389
|
+
function kn(e, t, n) {
|
|
391
390
|
return L(
|
|
392
391
|
e,
|
|
393
392
|
t,
|
|
394
393
|
(r) => r.type === "grid" ? { ...r, ...n } : r
|
|
395
394
|
);
|
|
396
395
|
}
|
|
397
|
-
function
|
|
396
|
+
function In(e, t, n) {
|
|
398
397
|
const r = typeof n == "number" && Number.isFinite(n) && n > 0 ? n : void 0;
|
|
399
398
|
return L(
|
|
400
399
|
e,
|
|
@@ -406,14 +405,14 @@ function Re(e) {
|
|
|
406
405
|
const t = e.gap;
|
|
407
406
|
return typeof t == "number" && Number.isFinite(t) && t > 0 ? t : 0;
|
|
408
407
|
}
|
|
409
|
-
function
|
|
408
|
+
function Cn(e, t, n) {
|
|
410
409
|
return L(
|
|
411
410
|
e,
|
|
412
411
|
t,
|
|
413
412
|
(r) => r.type === "table" ? { ...r, minRows: Math.max(0, Math.floor(n)) } : r
|
|
414
413
|
);
|
|
415
414
|
}
|
|
416
|
-
function
|
|
415
|
+
function Ln(e, t, n) {
|
|
417
416
|
return L(e, t, (r) => {
|
|
418
417
|
if (r.type !== "table") return r;
|
|
419
418
|
const i = new Set(r.columns.map((u) => u.key));
|
|
@@ -448,14 +447,14 @@ function $n(e, t, n) {
|
|
|
448
447
|
};
|
|
449
448
|
});
|
|
450
449
|
}
|
|
451
|
-
function
|
|
450
|
+
function $n(e, t, n) {
|
|
452
451
|
return L(e, t, (r) => r.type !== "table" || r.columns.length <= 1 ? r : {
|
|
453
452
|
...r,
|
|
454
453
|
columns: r.columns.filter((i) => i.key !== n),
|
|
455
454
|
rowTemplate: r.rowTemplate.filter((i) => i.columnKey !== n)
|
|
456
455
|
});
|
|
457
456
|
}
|
|
458
|
-
function
|
|
457
|
+
function Dn(e, t, n, r) {
|
|
459
458
|
const i = r.trim();
|
|
460
459
|
return !i || i === n ? e : L(e, t, (o) => o.type !== "table" || o.columns.some((a) => a.key === i) ? o : {
|
|
461
460
|
...o,
|
|
@@ -467,7 +466,7 @@ function Hn(e, t, n, r) {
|
|
|
467
466
|
)
|
|
468
467
|
});
|
|
469
468
|
}
|
|
470
|
-
function
|
|
469
|
+
function Hn(e, t, n, r) {
|
|
471
470
|
return L(e, t, (i) => i.type !== "table" ? i : {
|
|
472
471
|
...i,
|
|
473
472
|
columns: i.columns.map(
|
|
@@ -475,13 +474,13 @@ function Pn(e, t, n, r) {
|
|
|
475
474
|
)
|
|
476
475
|
});
|
|
477
476
|
}
|
|
478
|
-
function
|
|
477
|
+
function Pn(e, t) {
|
|
479
478
|
return { ...e, baseRowHeight: Math.max(1, Math.min(99, Math.floor(t))) };
|
|
480
479
|
}
|
|
481
|
-
function
|
|
480
|
+
function Vn(e, t) {
|
|
482
481
|
return { ...e, paper: t };
|
|
483
482
|
}
|
|
484
|
-
function
|
|
483
|
+
function _n() {
|
|
485
484
|
return {
|
|
486
485
|
version: 2,
|
|
487
486
|
paper: { size: "A4" },
|
|
@@ -518,7 +517,7 @@ function Zt(e, t, n) {
|
|
|
518
517
|
(r) => r.type === "grid-cell" || r.type === "table-cell-template" ? { ...r, children: [...r.children, n] } : r
|
|
519
518
|
);
|
|
520
519
|
}
|
|
521
|
-
function
|
|
520
|
+
function On(e, t, n) {
|
|
522
521
|
var l, c;
|
|
523
522
|
const r = ie(e), i = r.get(t), o = r.get(n);
|
|
524
523
|
if ((i == null ? void 0 : i.node.type) !== "grid-cell" || (o == null ? void 0 : o.node.type) !== "grid-cell" || ((l = i.parent) == null ? void 0 : l.type) !== "grid-row" || i.parent.id !== ((c = o.parent) == null ? void 0 : c.id)) return e;
|
|
@@ -540,7 +539,7 @@ function Gn(e, t, n) {
|
|
|
540
539
|
};
|
|
541
540
|
});
|
|
542
541
|
}
|
|
543
|
-
function
|
|
542
|
+
function Gn(e, t) {
|
|
544
543
|
const r = ie(e).get(t);
|
|
545
544
|
if ((r == null ? void 0 : r.node.type) !== "grid-cell") return e;
|
|
546
545
|
const i = r.node.colspan ?? 1;
|
|
@@ -566,7 +565,7 @@ function Bn(e, t) {
|
|
|
566
565
|
};
|
|
567
566
|
});
|
|
568
567
|
}
|
|
569
|
-
function
|
|
568
|
+
function Bn(e, t) {
|
|
570
569
|
return L(e, t, (n) => {
|
|
571
570
|
if (n.type !== "grid-cell" || n.children.length === 0) return n;
|
|
572
571
|
const r = Ke({ rows: 1, columns: 1, border: "none" });
|
|
@@ -599,7 +598,7 @@ function st(e, t) {
|
|
|
599
598
|
}))
|
|
600
599
|
}, node: n };
|
|
601
600
|
}
|
|
602
|
-
function
|
|
601
|
+
function zn(e, t, n) {
|
|
603
602
|
var u, m;
|
|
604
603
|
const r = ie(e), i = r.get(t), o = r.get(n);
|
|
605
604
|
if (!i || !o || o.node.type !== "grid-cell" && o.node.type !== "table-cell-template" || i.node.type === "page" || i.node.type === "grid-row" || i.node.type === "grid-cell" || i.node.type === "table-cell-template" || ((u = i.parent) == null ? void 0 : u.id) === n) return e;
|
|
@@ -611,8 +610,8 @@ function Wn(e, t, n) {
|
|
|
611
610
|
const { schema: l, node: c } = st(e, t);
|
|
612
611
|
return c ? Zt(l, n, c) : e;
|
|
613
612
|
}
|
|
614
|
-
const
|
|
615
|
-
function
|
|
613
|
+
const Wn = "application/x-ticket-node-move";
|
|
614
|
+
function Un(e, t, n, r) {
|
|
616
615
|
var b;
|
|
617
616
|
const i = ie(e), o = i.get(t), a = i.get(n);
|
|
618
617
|
if (!o || !a || a.node.type !== "grid-cell" && a.node.type !== "table-cell-template" || o.node.type === "page" || o.node.type === "grid-row" || o.node.type === "grid-cell" || o.node.type === "table-cell-template") return e;
|
|
@@ -632,7 +631,7 @@ function jn(e, t, n, r) {
|
|
|
632
631
|
return { ...f, children: [...f.children.slice(0, h), w, ...f.children.slice(h)] };
|
|
633
632
|
});
|
|
634
633
|
}
|
|
635
|
-
function
|
|
634
|
+
function jn(e, t, n) {
|
|
636
635
|
var c;
|
|
637
636
|
const i = (c = ie(e).get(t)) == null ? void 0 : c.parent;
|
|
638
637
|
if (!i) return e;
|
|
@@ -655,7 +654,7 @@ function Kn(e, t, n) {
|
|
|
655
654
|
});
|
|
656
655
|
return a ? l : e;
|
|
657
656
|
}
|
|
658
|
-
function
|
|
657
|
+
function Kn(e, t) {
|
|
659
658
|
var c, u;
|
|
660
659
|
const n = ie(e), r = t ? (u = (c = n.get(t)) == null ? void 0 : c.parent) == null ? void 0 : u.id : void 0, i = (m) => {
|
|
661
660
|
var v, w;
|
|
@@ -687,7 +686,7 @@ function qn(e, t) {
|
|
|
687
686
|
};
|
|
688
687
|
return e.pages.forEach((m) => l(m.children, "")), a;
|
|
689
688
|
}
|
|
690
|
-
function
|
|
689
|
+
function qn(e, t) {
|
|
691
690
|
return e.pages[0] ? {
|
|
692
691
|
...e,
|
|
693
692
|
pages: e.pages.map(
|
|
@@ -695,10 +694,10 @@ function Yn(e, t) {
|
|
|
695
694
|
)
|
|
696
695
|
} : e;
|
|
697
696
|
}
|
|
698
|
-
function
|
|
697
|
+
function Yn(e, t, n) {
|
|
699
698
|
return Xt(e, t, n);
|
|
700
699
|
}
|
|
701
|
-
function
|
|
700
|
+
function Jn(e, t, n) {
|
|
702
701
|
const r = (i) => {
|
|
703
702
|
if (i.type === "grid") {
|
|
704
703
|
const o = i.rows.findIndex((a) => a.id === t);
|
|
@@ -727,7 +726,7 @@ function Xn(e, t, n) {
|
|
|
727
726
|
pages: e.pages.map((i) => ({ ...i, children: i.children.map(r) }))
|
|
728
727
|
};
|
|
729
728
|
}
|
|
730
|
-
function
|
|
729
|
+
function Xn(e, t) {
|
|
731
730
|
const n = (r) => r.type === "grid" ? {
|
|
732
731
|
...r,
|
|
733
732
|
rows: r.rows.filter((i) => i.id !== t).map((i) => ({
|
|
@@ -772,7 +771,7 @@ function Ve(e, t) {
|
|
|
772
771
|
}))
|
|
773
772
|
} : e;
|
|
774
773
|
}
|
|
775
|
-
function
|
|
774
|
+
function Zn(e, t) {
|
|
776
775
|
return {
|
|
777
776
|
...e,
|
|
778
777
|
pages: e.pages.filter((n) => n.id !== t).map((n) => ({
|
|
@@ -781,7 +780,7 @@ function Qn(e, t) {
|
|
|
781
780
|
}))
|
|
782
781
|
};
|
|
783
782
|
}
|
|
784
|
-
function
|
|
783
|
+
function Qn(e, t, n) {
|
|
785
784
|
return {
|
|
786
785
|
...e,
|
|
787
786
|
pages: e.pages.map((r) => ({
|
|
@@ -798,7 +797,7 @@ function ei(e, t, n) {
|
|
|
798
797
|
}))
|
|
799
798
|
};
|
|
800
799
|
}
|
|
801
|
-
function
|
|
800
|
+
function ei(e, t, n) {
|
|
802
801
|
const r = Math.max(1, Math.floor(n));
|
|
803
802
|
return L(e, t, (i) => {
|
|
804
803
|
if (i.type !== "grid-row") return i;
|
|
@@ -831,7 +830,7 @@ function ct(e, t) {
|
|
|
831
830
|
}
|
|
832
831
|
return { ...e, cells: n };
|
|
833
832
|
}
|
|
834
|
-
function
|
|
833
|
+
function ti(e, t, n, r) {
|
|
835
834
|
const i = Math.max(1, Math.floor(n)), o = Math.max(1, Math.floor(r));
|
|
836
835
|
return L(e, t, (a) => {
|
|
837
836
|
var m, g;
|
|
@@ -859,7 +858,7 @@ function er(e) {
|
|
|
859
858
|
}
|
|
860
859
|
return n;
|
|
861
860
|
}
|
|
862
|
-
function
|
|
861
|
+
function ri(e, t, n, r) {
|
|
863
862
|
return L(e, t, (i) => {
|
|
864
863
|
if (i.type !== "grid") return i;
|
|
865
864
|
const a = (i.columns ?? er(i)).slice();
|
|
@@ -897,10 +896,10 @@ function tr(e, t, n, r) {
|
|
|
897
896
|
return c.rows[0].cells[0].children = a.children, { ...a, children: [c] };
|
|
898
897
|
});
|
|
899
898
|
}
|
|
900
|
-
function
|
|
899
|
+
function ni(e, t, n) {
|
|
901
900
|
return tr(e, t, n, 1);
|
|
902
901
|
}
|
|
903
|
-
function
|
|
902
|
+
function ii(e = ke(), t = "all") {
|
|
904
903
|
return "type" in e ? {
|
|
905
904
|
id: V("grid"),
|
|
906
905
|
type: "grid",
|
|
@@ -924,13 +923,13 @@ function Ke(e = {}) {
|
|
|
924
923
|
})
|
|
925
924
|
};
|
|
926
925
|
}
|
|
927
|
-
function
|
|
926
|
+
function oi(e = "固定文本") {
|
|
928
927
|
return { id: V("text"), type: "text", text: e };
|
|
929
928
|
}
|
|
930
|
-
function
|
|
929
|
+
function ai(e = "字段") {
|
|
931
930
|
return { id: V("p-field"), type: "p", mode: "field", field: e, underline: !0 };
|
|
932
931
|
}
|
|
933
|
-
function
|
|
932
|
+
function li() {
|
|
934
933
|
const e = V("table"), t = [
|
|
935
934
|
{ key: "col1", title: "列 1", width: "1fr" },
|
|
936
935
|
{ key: "col2", title: "列 2", width: "1fr" }
|
|
@@ -957,14 +956,14 @@ function si() {
|
|
|
957
956
|
border: "all"
|
|
958
957
|
};
|
|
959
958
|
}
|
|
960
|
-
function
|
|
959
|
+
function si(e = "") {
|
|
961
960
|
return {
|
|
962
961
|
id: V("html"),
|
|
963
962
|
type: "html",
|
|
964
963
|
html: e
|
|
965
964
|
};
|
|
966
965
|
}
|
|
967
|
-
function
|
|
966
|
+
function ci() {
|
|
968
967
|
return {
|
|
969
968
|
id: V("image"),
|
|
970
969
|
type: "image",
|
|
@@ -1092,12 +1091,12 @@ function ut(e) {
|
|
|
1092
1091
|
})
|
|
1093
1092
|
};
|
|
1094
1093
|
}
|
|
1095
|
-
function
|
|
1094
|
+
function ui(e, t = !1) {
|
|
1096
1095
|
const r = Ue(e).filter((i) => i.level === "error");
|
|
1097
1096
|
if (r.length) throw new ee("Cannot serialize invalid Schema V2", r);
|
|
1098
1097
|
return JSON.stringify(e, null, t ? 2 : 0);
|
|
1099
1098
|
}
|
|
1100
|
-
function
|
|
1099
|
+
function di(e) {
|
|
1101
1100
|
let t = e;
|
|
1102
1101
|
if (typeof e == "string")
|
|
1103
1102
|
try {
|
|
@@ -1109,7 +1108,7 @@ function fi(e) {
|
|
|
1109
1108
|
if (i.length) throw new ee("Schema V2 validation failed", i);
|
|
1110
1109
|
return n;
|
|
1111
1110
|
}
|
|
1112
|
-
function
|
|
1111
|
+
function fi(e) {
|
|
1113
1112
|
let t = e;
|
|
1114
1113
|
if (typeof e == "string")
|
|
1115
1114
|
try {
|
|
@@ -1340,7 +1339,7 @@ function we(e, t) {
|
|
|
1340
1339
|
}
|
|
1341
1340
|
return Math.max(n, r);
|
|
1342
1341
|
}
|
|
1343
|
-
function
|
|
1342
|
+
function mi(e, t) {
|
|
1344
1343
|
const n = [], r = (i, o) => {
|
|
1345
1344
|
if (i.type === "p" && i.mode === "field") {
|
|
1346
1345
|
o ? n.push({
|
|
@@ -1760,7 +1759,7 @@ function Pr() {
|
|
|
1760
1759
|
$e.delete(e), $e.size === 0 && K && (K.remove(), K = null);
|
|
1761
1760
|
};
|
|
1762
1761
|
}
|
|
1763
|
-
function
|
|
1762
|
+
function hi() {
|
|
1764
1763
|
return (K == null ? void 0 : K.textContent) ?? "";
|
|
1765
1764
|
}
|
|
1766
1765
|
const Vr = 96 / 25.4;
|
|
@@ -2174,7 +2173,7 @@ const zr = ["data-node-id"], Wr = { class: "grid-form-band__zone" }, Ur = { clas
|
|
|
2174
2173
|
}), 128))
|
|
2175
2174
|
], 2));
|
|
2176
2175
|
}
|
|
2177
|
-
}), rt = /* @__PURE__ */ Ie(Jr, [["__scopeId", "data-v-f826627e"]]),
|
|
2176
|
+
}), rt = /* @__PURE__ */ Ie(Jr, [["__scopeId", "data-v-f826627e"]]), gi = "data-node-id", pi = "data-layout-id", yi = "application/x-ticket-node-kind", Xr = {
|
|
2178
2177
|
class: "paper-viewport__bar",
|
|
2179
2178
|
role: "toolbar",
|
|
2180
2179
|
"aria-label": "缩放控制"
|
|
@@ -2372,14 +2371,14 @@ const zr = ["data-node-id"], Wr = { class: "grid-form-band__zone" }, Ur = { clas
|
|
|
2372
2371
|
"zh-CN": rn,
|
|
2373
2372
|
en: nn
|
|
2374
2373
|
}, yt = J(Ge);
|
|
2375
|
-
function
|
|
2374
|
+
function wi(e) {
|
|
2376
2375
|
on.includes(e) && (yt.value = e);
|
|
2377
2376
|
}
|
|
2378
2377
|
function an(e, t, n) {
|
|
2379
2378
|
let i = (De[e] ?? De[Ge])[t];
|
|
2380
2379
|
return i == null && (i = De[Ge][t] ?? t), i;
|
|
2381
2380
|
}
|
|
2382
|
-
function
|
|
2381
|
+
function bi(e, t, n) {
|
|
2383
2382
|
return an(n ?? yt.value, e);
|
|
2384
2383
|
}
|
|
2385
2384
|
const ln = ".grid-form-paper", sn = ".grid-form-canvas", wt = ".layout-html", He = "data-v2-print-scope";
|
|
@@ -2446,7 +2445,7 @@ function fn(e = {}) {
|
|
|
2446
2445
|
}
|
|
2447
2446
|
return !0;
|
|
2448
2447
|
}
|
|
2449
|
-
function
|
|
2448
|
+
function vi(e, t = {}) {
|
|
2450
2449
|
const { baseData: n, maskHidden: r } = t, i = {}, a = [
|
|
2451
2450
|
...e instanceof Element && e.matches("[data-field]") ? [e] : [],
|
|
2452
2451
|
...e.querySelectorAll("[data-field]")
|
|
@@ -2511,7 +2510,7 @@ function Ei(e, t = {}) {
|
|
|
2511
2510
|
}
|
|
2512
2511
|
return i;
|
|
2513
2512
|
}
|
|
2514
|
-
const nt = "preview",
|
|
2513
|
+
const nt = "preview", Ei = /* @__PURE__ */ Te({
|
|
2515
2514
|
__name: "FormRenderer",
|
|
2516
2515
|
props: {
|
|
2517
2516
|
schema: {},
|
|
@@ -2593,71 +2592,71 @@ const nt = "preview", Ti = /* @__PURE__ */ Te({
|
|
|
2593
2592
|
export {
|
|
2594
2593
|
sn as $,
|
|
2595
2594
|
Zt as A,
|
|
2596
|
-
|
|
2597
|
-
|
|
2595
|
+
Un as B,
|
|
2596
|
+
Gn as C,
|
|
2598
2597
|
It as D,
|
|
2599
|
-
|
|
2598
|
+
On as E,
|
|
2600
2599
|
jt as F,
|
|
2601
2600
|
rt as G,
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2601
|
+
Zn as H,
|
|
2602
|
+
oi as I,
|
|
2603
|
+
ai as J,
|
|
2604
|
+
li as K,
|
|
2605
|
+
pi as L,
|
|
2606
|
+
si as M,
|
|
2607
|
+
gi as N,
|
|
2608
|
+
ci as O,
|
|
2609
|
+
yi as P,
|
|
2610
|
+
wi as Q,
|
|
2612
2611
|
Ue as R,
|
|
2613
2612
|
Br as S,
|
|
2614
2613
|
tn as T,
|
|
2615
2614
|
fn as U,
|
|
2616
2615
|
Ge as V,
|
|
2617
|
-
|
|
2616
|
+
Ei as W,
|
|
2618
2617
|
Lr as X,
|
|
2619
2618
|
Ct as Y,
|
|
2620
2619
|
ln as Z,
|
|
2621
2620
|
Ie as _,
|
|
2622
|
-
|
|
2621
|
+
Wn as a,
|
|
2623
2622
|
ee as a0,
|
|
2624
|
-
|
|
2625
|
-
|
|
2623
|
+
Yn as a1,
|
|
2624
|
+
Tn as a2,
|
|
2626
2625
|
ht as a3,
|
|
2627
2626
|
mt as a4,
|
|
2628
2627
|
Ze as a5,
|
|
2629
|
-
|
|
2630
|
-
|
|
2628
|
+
mi as a6,
|
|
2629
|
+
Jn as a7,
|
|
2631
2630
|
Ke as a8,
|
|
2632
2631
|
ke as a9,
|
|
2633
|
-
|
|
2634
|
-
|
|
2632
|
+
ni as aA,
|
|
2633
|
+
ei as aB,
|
|
2635
2634
|
Oe as aC,
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2635
|
+
Nn as aD,
|
|
2636
|
+
Rn as aE,
|
|
2637
|
+
Fn as aF,
|
|
2638
|
+
xn as aG,
|
|
2639
|
+
An as aH,
|
|
2640
|
+
Bn as aI,
|
|
2642
2641
|
V as aa,
|
|
2643
|
-
|
|
2642
|
+
hi as ab,
|
|
2644
2643
|
br as ac,
|
|
2645
|
-
|
|
2646
|
-
|
|
2644
|
+
En as ad,
|
|
2645
|
+
bn as ae,
|
|
2647
2646
|
it as af,
|
|
2648
|
-
|
|
2647
|
+
vn as ag,
|
|
2649
2648
|
_e as ah,
|
|
2650
2649
|
Ne as ai,
|
|
2651
2650
|
Xt as aj,
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2651
|
+
Kn as ak,
|
|
2652
|
+
Qn as al,
|
|
2653
|
+
zn as am,
|
|
2654
|
+
jn as an,
|
|
2656
2655
|
ut as ao,
|
|
2657
2656
|
pt as ap,
|
|
2658
|
-
|
|
2657
|
+
fi as aq,
|
|
2659
2658
|
Pr as ar,
|
|
2660
|
-
|
|
2659
|
+
Xn as as,
|
|
2661
2660
|
tr as at,
|
|
2662
2661
|
ct as au,
|
|
2663
2662
|
Re as av,
|
|
@@ -2666,28 +2665,28 @@ export {
|
|
|
2666
2665
|
we as ay,
|
|
2667
2666
|
Hr as az,
|
|
2668
2667
|
ie as b,
|
|
2669
|
-
|
|
2668
|
+
vi as c,
|
|
2670
2669
|
mr as d,
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2670
|
+
_n as e,
|
|
2671
|
+
ii as f,
|
|
2672
|
+
qn as g,
|
|
2673
|
+
Pn as h,
|
|
2674
|
+
wn as i,
|
|
2675
|
+
In as j,
|
|
2676
|
+
kn as k,
|
|
2677
|
+
ri as l,
|
|
2678
|
+
Hn as m,
|
|
2679
|
+
Dn as n,
|
|
2680
|
+
$n as o,
|
|
2681
|
+
di as p,
|
|
2682
|
+
Ln as q,
|
|
2684
2683
|
yr as r,
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2684
|
+
ui as s,
|
|
2685
|
+
bi as t,
|
|
2686
|
+
Vn as u,
|
|
2687
|
+
Cn as v,
|
|
2688
|
+
ti as w,
|
|
2689
|
+
Mn as x,
|
|
2690
|
+
Sn as y,
|
|
2692
2691
|
L as z
|
|
2693
2692
|
};
|
package/dist/designer.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { F as
|
|
1
|
+
import { F as o, a as i, J as r, S as n, b as l, c as m, d as F, e as c, f as g, n as t, r as D, s as I, g as E } from "./chunks/designer-ui.js";
|
|
2
|
+
import "./chunks/renderer-core.js";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
o as FILL_DATA_EXPORT_PREFIX,
|
|
5
|
+
i as FormDesigner,
|
|
6
|
+
r as JSON_INDENT,
|
|
6
7
|
n as SCHEMA_EXPORT_PREFIX,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
l as buildBlankSchema,
|
|
9
|
+
m as collectFormData,
|
|
10
|
+
F as defaultDesignerUIConfig,
|
|
11
|
+
c as downloadJsonFile,
|
|
12
|
+
g as exportFileName,
|
|
13
|
+
t as normalizeIncomingSchema,
|
|
13
14
|
D as resolveDesignerUIConfig,
|
|
14
15
|
I as serializeFormDataJson,
|
|
15
|
-
|
|
16
|
+
E as serializeSchemaJson
|
|
16
17
|
};
|