form-imagining 0.0.89-10-cs21 → 0.0.89-10-cs23
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/App-CAbGBGoA.js +32 -0
- package/dist/Col-CmfuBUk1.js +4 -0
- package/dist/Collapse-TrTjLMgG.js +4 -0
- package/dist/{Demo-DlbJA7LJ.js → Demo-CpKOCKjy.js} +1 -2
- package/dist/{Demo-dzSXIWpK.js → Demo-JtUDLPEd.js} +1 -1
- package/dist/FX-CgAUmrL0.js +4 -0
- package/dist/Form-C-tSbG7l.js +37 -0
- package/dist/{FormGridCopy-BszgrjOz.js → FormGridCopy-BOhHj1H1.js} +56 -57
- package/dist/GenerateForm-Bt9MPqZ9.js +4 -0
- package/dist/GenerateReport-8b45o9Md.js +4 -0
- package/dist/{HelloWorld-DxEaFBK_.js → HelloWorld-ztUcA2Xu.js} +1 -1
- package/dist/Input-/345/210/240/351/231/{244-DOQbAvob.js → 244-IpYiezsm.js} +5 -6
- package/dist/Label-/345/210/240/351/231/{244-N6k5wP9V.js → 244-DB-_KlJA.js} +19 -20
- package/dist/{Login-CaymX0uU.js → Login-BJG6PaFF.js} +1 -1
- package/dist/RView-ojAan4uA.js +4 -0
- package/dist/SqlModule-BJlCtfxL.js +4 -0
- package/dist/TableBtnModal-C47Akyz3.js +4 -0
- package/dist/childForm-C0erSm72.js +4 -0
- package/dist/{cssMode-TcsiwTJN.js → cssMode-f-I4VjdL.js} +22 -22
- package/dist/form-imagining.js +1 -1
- package/dist/form-imagining.umd.cjs +365 -305
- package/dist/formTest-CWSCwH2s.js +18 -0
- package/dist/{freemarker2-B_feRuXl.js → freemarker2-B_djpLnu.js} +1 -1
- package/dist/{handlebars-Cfb1XiRJ.js → handlebars-BArw5Hkq.js} +1 -1
- package/dist/{html-BQwHyMur.js → html-BEX6dDa1.js} +1 -1
- package/dist/{htmlMode-BMKhfDGD.js → htmlMode-BIn3RNgb.js} +19 -19
- package/dist/{index-DXrZ-6lr.js → index-CGMwas3a.js} +1 -1
- package/dist/{index-B3dZ4lMY.js → index-Do6kZSR4.js} +3 -4
- package/dist/{index-DuwP6xi5.js → index-tGw013BZ.js} +34223 -23231
- package/dist/{javascript-DZ2Edtau.js → javascript-DD0pNTD4.js} +1 -1
- package/dist/{jsonMode-BKN9BF2h.js → jsonMode-CUWfsEZv.js} +1 -1
- package/dist/{liquid-BEDGbYpP.js → liquid-Dj_BxffR.js} +1 -1
- package/dist/{mdx-DdqfwnYe.js → mdx-IFI3xLS5.js} +1 -1
- package/dist/{python-DFltyZnn.js → python-BztYAMNw.js} +1 -1
- package/dist/{razor-D-F4Mvu2.js → razor-CFNL6Mib.js} +1 -1
- package/dist/{tableSelectDemo-C2uKWxGJ.js → tableSelectDemo-CzXs4mso.js} +29 -30
- package/dist/{tableSelectDemo2-BUSD-J_H.js → tableSelectDemo2-BMacsFkj.js} +26 -27
- package/dist/{tsMode-CKzmTuHZ.js → tsMode-DJXImKg0.js} +10 -10
- package/dist/{typescript-Rv1NUrYE.js → typescript-CsCiBV82.js} +1 -1
- package/dist/{xml-DUbqDhYZ.js → xml-C6mrtxY_.js} +1 -1
- package/dist/{yaml-DnBzREcF.js → yaml-BZ_Yyva0.js} +1 -1
- package/package.json +1 -1
- package/dist/App-Dq1558Up.js +0 -33
- package/dist/Col-C0Y6I1Pa.js +0 -4
- package/dist/Collapse-DD8PvRtU.js +0 -4
- package/dist/FX-Q6aU7d4a.js +0 -4
- package/dist/Form-CsKlmwSd.js +0 -37
- package/dist/GenerateForm-B5g49l84.js +0 -4
- package/dist/GenerateReport-DmGOnSJD.js +0 -4
- package/dist/RView-dE2BKJcf.js +0 -4
- package/dist/SqlModule-D5Zb-Szb.js +0 -4
- package/dist/TableBtnModal-CSiGdXte.js +0 -4
- package/dist/childForm-D8zpF5eU.js +0 -4
- package/dist/formTest-BkvR3UrZ.js +0 -19
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { d as n, u, o as c, f as l, b as o, c as a, w as r, S as p, g as _, h as f, a as e, i, l as d } from "./index-tGw013BZ.js";
|
|
2
|
+
const v = /* @__PURE__ */ n({
|
|
3
|
+
__name: "App",
|
|
4
|
+
setup(m) {
|
|
5
|
+
const t = u();
|
|
6
|
+
return c(() => {
|
|
7
|
+
}), (h, g) => {
|
|
8
|
+
const s = l("a-config-provider");
|
|
9
|
+
return o(), a(s, {
|
|
10
|
+
locale: e(d),
|
|
11
|
+
theme: { token: { fontSize: 13, borderRadius: 5, colorPrimary: "#1890ff" } }
|
|
12
|
+
}, {
|
|
13
|
+
default: r(() => [
|
|
14
|
+
(o(), a(p, null, {
|
|
15
|
+
default: r(() => [
|
|
16
|
+
_(f, {
|
|
17
|
+
"p-router": e(i),
|
|
18
|
+
"p-route": e(t),
|
|
19
|
+
id: "56"
|
|
20
|
+
}, null, 8, ["p-router", "p-route"])
|
|
21
|
+
]),
|
|
22
|
+
_: 1
|
|
23
|
+
}))
|
|
24
|
+
]),
|
|
25
|
+
_: 1
|
|
26
|
+
}, 8, ["locale"]);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
v as default
|
|
32
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, onBeforeUpdate, openBlock, createBlock, unref } from "
|
|
2
|
-
import { d as useFormStore, g as generateReportHtml, e as defHttp } from "./index-DuwP6xi5.js";
|
|
1
|
+
import { d as defineComponent, v as useFormStore, r as ref, x as generateReportHtml, y as onBeforeUpdate, z as defHttp, b as openBlock, c as createBlock, a as unref } from "./index-tGw013BZ.js";
|
|
3
2
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
3
|
__name: "Demo",
|
|
5
4
|
props: {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { d, f as o, b as l, c as n, w as c, e as u } from "./index-tGw013BZ.js";
|
|
2
|
+
const p = /* @__PURE__ */ d({
|
|
3
|
+
__name: "Form",
|
|
4
|
+
props: {
|
|
5
|
+
formData: {
|
|
6
|
+
type: Object,
|
|
7
|
+
default: null
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
setup(a) {
|
|
11
|
+
return (s, e) => {
|
|
12
|
+
const m = o("a-input"), r = o("a-textarea"), f = o("a-form-item");
|
|
13
|
+
return l(), n(f, {
|
|
14
|
+
label: a.formData.name
|
|
15
|
+
}, {
|
|
16
|
+
default: c(() => [
|
|
17
|
+
a.formData.type == "input" ? (l(), n(m, {
|
|
18
|
+
key: 0,
|
|
19
|
+
value: a.formData.defaultValue,
|
|
20
|
+
"onUpdate:value": e[0] || (e[0] = (t) => a.formData.defaultValue = t)
|
|
21
|
+
}, null, 8, ["value"])) : u("", !0),
|
|
22
|
+
a.formData.type == "textarea" ? (l(), n(r, {
|
|
23
|
+
key: 1,
|
|
24
|
+
value: a.formData.defaultValue,
|
|
25
|
+
"onUpdate:value": e[1] || (e[1] = (t) => a.formData.defaultValue = t),
|
|
26
|
+
placeholder: "",
|
|
27
|
+
rows: 2
|
|
28
|
+
}, null, 8, ["value"])) : u("", !0)
|
|
29
|
+
]),
|
|
30
|
+
_: 1
|
|
31
|
+
}, 8, ["label"]);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
p as default
|
|
37
|
+
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const Q = { class: "move" }, T = {
|
|
1
|
+
import { d as J, v as W, r as z, M as L, f as h, b as s, m as u, n as P, g as r, a as f, N as R, e as x, w as g, O as p, I as C, J as k, c as w, P as b, V as j, Q as A, R as K, T as N, U as O, W as Q, _ as T } from "./index-tGw013BZ.js";
|
|
2
|
+
const U = { class: "move" }, q = {
|
|
4
3
|
key: 0,
|
|
5
4
|
class: "widget-view-drag"
|
|
6
|
-
},
|
|
5
|
+
}, H = ["onMousedown"], X = {
|
|
7
6
|
key: 0,
|
|
8
7
|
class: "item-action"
|
|
9
8
|
}, Y = {
|
|
10
9
|
key: 0,
|
|
11
10
|
class: "item-action"
|
|
12
|
-
}, Z = /* @__PURE__ */
|
|
11
|
+
}, Z = /* @__PURE__ */ J({
|
|
13
12
|
__name: "FormGridCopy",
|
|
14
13
|
props: {
|
|
15
14
|
list: {
|
|
@@ -30,80 +29,80 @@ const Q = { class: "move" }, T = {
|
|
|
30
29
|
}
|
|
31
30
|
},
|
|
32
31
|
emits: ["childConfig", "index"],
|
|
33
|
-
setup(e, { emit:
|
|
34
|
-
const
|
|
32
|
+
setup(e, { emit: S }) {
|
|
33
|
+
const D = W(), n = e, i = z("-1");
|
|
35
34
|
L(
|
|
36
|
-
() =>
|
|
37
|
-
(t,
|
|
35
|
+
() => n.activeIndex,
|
|
36
|
+
(t, a) => {
|
|
38
37
|
i.value = t;
|
|
39
38
|
}
|
|
40
39
|
);
|
|
41
|
-
const m =
|
|
42
|
-
function
|
|
43
|
-
i.value =
|
|
40
|
+
const m = S;
|
|
41
|
+
function I(t, a, d) {
|
|
42
|
+
i.value = a, m("childConfig", t), m("index", i.value), d.stopPropagation(), d.preventDefault();
|
|
44
43
|
}
|
|
45
44
|
function $() {
|
|
46
45
|
i.value = "-1", console.log("开始拖拽");
|
|
47
46
|
}
|
|
48
|
-
function M(t,
|
|
49
|
-
t.to.className == "widget-col-list" ? i.value =
|
|
47
|
+
function M(t, a) {
|
|
48
|
+
t.to.className == "widget-col-list" ? i.value = n.index + "-" + a + "-" + t.newIndex : i.value = t.newIndex, m("index", i.value);
|
|
50
49
|
}
|
|
51
50
|
function V(t) {
|
|
52
|
-
const
|
|
53
|
-
if (
|
|
54
|
-
let d =
|
|
55
|
-
d > -1 && (
|
|
51
|
+
const a = JSON.parse(JSON.stringify(t));
|
|
52
|
+
if (n.data.columns && n.data.columns.length > 0) {
|
|
53
|
+
let d = n.data.columns.findIndex((v) => v.key == t.key);
|
|
54
|
+
d > -1 && (a.key = O(), a.id = O(), n.data.columns.splice(d + 1, 0, a));
|
|
56
55
|
}
|
|
57
56
|
}
|
|
58
|
-
function
|
|
59
|
-
let
|
|
60
|
-
|
|
57
|
+
function F(t) {
|
|
58
|
+
let a = n.data.columns.findIndex((d) => d.key == t.key);
|
|
59
|
+
a > -1 && n.data.columns.splice(a, 1);
|
|
61
60
|
}
|
|
62
|
-
function
|
|
63
|
-
if (
|
|
64
|
-
|
|
61
|
+
function B() {
|
|
62
|
+
if (n.data.columns.length > 0)
|
|
63
|
+
Q.confirm({
|
|
65
64
|
title: "确定要删除该栅格布局吗?",
|
|
66
65
|
content: "如果该布局存在表单,将会一并删除",
|
|
67
66
|
onOk() {
|
|
68
|
-
const t =
|
|
69
|
-
t != -1 &&
|
|
67
|
+
const t = n.list.findIndex((a) => a.id == n.data.id);
|
|
68
|
+
t != -1 && n.list.splice(t, 1);
|
|
70
69
|
},
|
|
71
70
|
onCancel() {
|
|
72
71
|
}
|
|
73
72
|
});
|
|
74
73
|
else {
|
|
75
|
-
const t =
|
|
76
|
-
t != -1 &&
|
|
74
|
+
const t = n.list.findIndex((a) => a.id == n.data.id);
|
|
75
|
+
t != -1 && n.list.splice(t, 1);
|
|
77
76
|
}
|
|
78
77
|
}
|
|
79
|
-
return (t,
|
|
80
|
-
const d = h("a-col"), v = h("a-row"),
|
|
81
|
-
return
|
|
82
|
-
|
|
83
|
-
e.activeIndex == e.index ? (
|
|
84
|
-
r(f(
|
|
78
|
+
return (t, a) => {
|
|
79
|
+
const d = h("a-col"), v = h("a-row"), E = h("a-form");
|
|
80
|
+
return s(), u("div", null, [
|
|
81
|
+
P("div", U, [
|
|
82
|
+
e.activeIndex == e.index ? (s(), u("div", q, [
|
|
83
|
+
r(f(R), { style: { padding: "6px" } })
|
|
85
84
|
])) : x("", !0)
|
|
86
85
|
]),
|
|
87
|
-
r(
|
|
88
|
-
style:
|
|
89
|
-
"label-col": { style: { width: f(
|
|
86
|
+
r(E, {
|
|
87
|
+
style: p({ padding: `${e.data.top || 0}px ${e.data.right || 0}px ${e.data.bottom || 0}px ${e.data.left || 0}px` }),
|
|
88
|
+
"label-col": { style: { width: f(D).formData.config.labelWidth + "px" } },
|
|
90
89
|
labelWrap: !0
|
|
91
90
|
}, {
|
|
92
91
|
default: g(() => [
|
|
93
92
|
r(v, {
|
|
94
93
|
gutter: [e.data.options.gutter, 8],
|
|
95
94
|
tyle: "flex",
|
|
96
|
-
style:
|
|
95
|
+
style: p({ marginLeft: -e.data.options.gutter / 2 + "px", marginRight: -e.data.options.gutter / 2 + "px" })
|
|
97
96
|
}, {
|
|
98
97
|
default: g(() => [
|
|
99
|
-
(
|
|
98
|
+
(s(!0), u(C, null, k(e.data.columns, (l, c) => (s(), w(d, {
|
|
100
99
|
class: b(["widget-col-item", { active: i.value == "col-" + e.index + "-" + c }]),
|
|
101
100
|
span: l.options.span,
|
|
102
101
|
offset: l.options.offset,
|
|
103
|
-
onMousedown: (
|
|
102
|
+
onMousedown: (o) => I(l, "col-" + e.index + "-" + c, o)
|
|
104
103
|
}, {
|
|
105
104
|
default: g(() => [
|
|
106
|
-
r(f(
|
|
105
|
+
r(f(j), {
|
|
107
106
|
class: "widget-col-list",
|
|
108
107
|
style: { "min-height": "50px" },
|
|
109
108
|
"ghost-class": "ghost",
|
|
@@ -112,7 +111,7 @@ const Q = { class: "move" }, T = {
|
|
|
112
111
|
"chosen-class": "chosenClass2",
|
|
113
112
|
"drag-class": "dragClass1",
|
|
114
113
|
onStart: $,
|
|
115
|
-
onEnd: (
|
|
114
|
+
onEnd: (o) => M(o, c),
|
|
116
115
|
group: "itxst",
|
|
117
116
|
sort: !1,
|
|
118
117
|
animation: "300",
|
|
@@ -120,37 +119,37 @@ const Q = { class: "move" }, T = {
|
|
|
120
119
|
itemKey: ""
|
|
121
120
|
}, {
|
|
122
121
|
default: g(() => [
|
|
123
|
-
(
|
|
122
|
+
(s(!0), u(C, null, k(l.list, (o, y) => (s(), u("div", {
|
|
124
123
|
class: b(["widget-view", { active: i.value == e.index + "-" + c + "-" + y }]),
|
|
125
|
-
onMousedown: (G) =>
|
|
124
|
+
onMousedown: (G) => I(o, e.index + "-" + c + "-" + y, G)
|
|
126
125
|
}, [
|
|
127
|
-
r(
|
|
128
|
-
data:
|
|
126
|
+
r(A, {
|
|
127
|
+
data: o,
|
|
129
128
|
list: l.list,
|
|
130
129
|
activeIndex: i.value,
|
|
131
130
|
index: e.index + "-" + c + "-" + y
|
|
132
131
|
}, null, 8, ["data", "list", "activeIndex", "index"])
|
|
133
|
-
], 42,
|
|
132
|
+
], 42, H))), 256))
|
|
134
133
|
]),
|
|
135
134
|
_: 2
|
|
136
135
|
}, 1032, ["list", "onEnd"]),
|
|
137
|
-
e.activeIndex === "col-" + e.index + "-" + c ? (
|
|
138
|
-
r(f(
|
|
136
|
+
e.activeIndex === "col-" + e.index + "-" + c ? (s(), u("div", X, [
|
|
137
|
+
r(f(K), {
|
|
139
138
|
style: { padding: "3px 5px" },
|
|
140
|
-
onClick: (
|
|
139
|
+
onClick: (o) => V(l)
|
|
141
140
|
}, null, 8, ["onClick"]),
|
|
142
|
-
e.data.columns.length !== 1 ? (
|
|
141
|
+
e.data.columns.length !== 1 ? (s(), w(f(N), {
|
|
143
142
|
key: 0,
|
|
144
|
-
onClick: (
|
|
143
|
+
onClick: (o) => F(l)
|
|
145
144
|
}, null, 8, ["onClick"])) : x("", !0)
|
|
146
145
|
])) : x("", !0)
|
|
147
146
|
]),
|
|
148
147
|
_: 2
|
|
149
148
|
}, 1032, ["span", "class", "offset", "onMousedown"]))), 256)),
|
|
150
|
-
e.activeIndex === e.index ? (
|
|
151
|
-
r(f(
|
|
149
|
+
e.activeIndex === e.index ? (s(), u("div", Y, [
|
|
150
|
+
r(f(N), {
|
|
152
151
|
style: { padding: "3px 5px", color: "#fff" },
|
|
153
|
-
onClick:
|
|
152
|
+
onClick: a[0] || (a[0] = (l) => B())
|
|
154
153
|
})
|
|
155
154
|
])) : x("", !0)
|
|
156
155
|
]),
|
|
@@ -162,7 +161,7 @@ const Q = { class: "move" }, T = {
|
|
|
162
161
|
]);
|
|
163
162
|
};
|
|
164
163
|
}
|
|
165
|
-
}),
|
|
164
|
+
}), ee = /* @__PURE__ */ T(Z, [["__scopeId", "data-v-b6a6a4fd"]]);
|
|
166
165
|
export {
|
|
167
|
-
|
|
166
|
+
ee as default
|
|
168
167
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const x = /* @__PURE__ */ i({
|
|
1
|
+
import { d as i, v as m, f, b as v, c, w as u, g as t } from "./index-tGw013BZ.js";
|
|
2
|
+
const D = /* @__PURE__ */ i({
|
|
4
3
|
__name: "Input-删除",
|
|
5
4
|
props: {
|
|
6
5
|
configData: {
|
|
@@ -9,9 +8,9 @@ const x = /* @__PURE__ */ i({
|
|
|
9
8
|
}
|
|
10
9
|
},
|
|
11
10
|
setup(e) {
|
|
12
|
-
return
|
|
11
|
+
return m(), (g, a) => {
|
|
13
12
|
const o = f("a-input"), n = f("a-form-item"), d = f("a-textarea"), r = f("a-form");
|
|
14
|
-
return
|
|
13
|
+
return v(), c(r, {
|
|
15
14
|
layout: "vertical",
|
|
16
15
|
model: e.configData,
|
|
17
16
|
autocomplete: "off"
|
|
@@ -83,5 +82,5 @@ const x = /* @__PURE__ */ i({
|
|
|
83
82
|
}
|
|
84
83
|
});
|
|
85
84
|
export {
|
|
86
|
-
|
|
85
|
+
D as default
|
|
87
86
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const L = /* @__PURE__ */ _({
|
|
1
|
+
import { d as _, v as k, f as o, b as n, c as l, w as c, m as d, I as u, J as r, g as x, q as D, K as w, e as U } from "./index-tGw013BZ.js";
|
|
2
|
+
const q = /* @__PURE__ */ _({
|
|
4
3
|
__name: "Label-删除",
|
|
5
4
|
props: {
|
|
6
5
|
configData: {
|
|
@@ -9,7 +8,7 @@ const L = /* @__PURE__ */ _({
|
|
|
9
8
|
}
|
|
10
9
|
},
|
|
11
10
|
setup(a) {
|
|
12
|
-
|
|
11
|
+
k();
|
|
13
12
|
const p = [
|
|
14
13
|
{ title: "标题", bind: "name", type: "input", placeholder: "" },
|
|
15
14
|
{ title: "key", bind: "key", type: "input", placeholder: "" },
|
|
@@ -29,29 +28,29 @@ const L = /* @__PURE__ */ _({
|
|
|
29
28
|
{ title: "样式扩展", bind: "cssextended", type: "textarea", placeholder: "" },
|
|
30
29
|
{ title: "扩展", bind: "extended", type: "textarea", placeholder: "", rows: "5" }
|
|
31
30
|
];
|
|
32
|
-
return (C,
|
|
33
|
-
const
|
|
31
|
+
return (C, i) => {
|
|
32
|
+
const s = o("a-input"), f = o("a-textarea"), b = o("a-input-number"), v = o("a-radio-button"), g = o("a-radio-group"), y = o("a-switch"), m = o("a-form-item"), h = o("a-form");
|
|
34
33
|
return n(), l(h, {
|
|
35
34
|
layout: "vertical",
|
|
36
35
|
model: a.configData,
|
|
37
36
|
autocomplete: "off"
|
|
38
37
|
}, {
|
|
39
|
-
default:
|
|
40
|
-
(n(), d(u, null, r(p, (e, B) =>
|
|
38
|
+
default: c(() => [
|
|
39
|
+
(n(), d(u, null, r(p, (e, B) => x(m, {
|
|
41
40
|
label: e.title
|
|
42
41
|
}, {
|
|
43
|
-
default:
|
|
44
|
-
e.type == "input" ? (n(), l(
|
|
42
|
+
default: c(() => [
|
|
43
|
+
e.type == "input" ? (n(), l(s, {
|
|
45
44
|
key: 0,
|
|
46
45
|
value: a.configData[e.bind],
|
|
47
46
|
"onUpdate:value": (t) => a.configData[e.bind] = t
|
|
48
|
-
}, null, 8, ["value", "onUpdate:value"])) : e.type == "textarea" ? (n(), l(
|
|
47
|
+
}, null, 8, ["value", "onUpdate:value"])) : e.type == "textarea" ? (n(), l(f, {
|
|
49
48
|
key: 1,
|
|
50
49
|
value: a.configData[e.bind],
|
|
51
50
|
"onUpdate:value": (t) => a.configData[e.bind] = t,
|
|
52
51
|
placeholder: "",
|
|
53
52
|
rows: e.rows
|
|
54
|
-
}, null, 8, ["value", "onUpdate:value", "rows"])) : e.type == "inputnumber" ? (n(), l(
|
|
53
|
+
}, null, 8, ["value", "onUpdate:value", "rows"])) : e.type == "inputnumber" ? (n(), l(b, {
|
|
55
54
|
key: 2,
|
|
56
55
|
value: a.configData[e.bind],
|
|
57
56
|
"onUpdate:value": (t) => a.configData[e.bind] = t,
|
|
@@ -60,24 +59,24 @@ const L = /* @__PURE__ */ _({
|
|
|
60
59
|
}, null, 8, ["value", "onUpdate:value"])) : e.type == "radiogroup" ? (n(), l(g, {
|
|
61
60
|
key: 3,
|
|
62
61
|
value: a.configData.align,
|
|
63
|
-
"onUpdate:value":
|
|
62
|
+
"onUpdate:value": i[0] || (i[0] = (t) => a.configData.align = t)
|
|
64
63
|
}, {
|
|
65
|
-
default:
|
|
66
|
-
(n(!0), d(u, null, r(e.children, (t, N) => (n(), l(
|
|
64
|
+
default: c(() => [
|
|
65
|
+
(n(!0), d(u, null, r(e.children, (t, N) => (n(), l(v, {
|
|
67
66
|
value: t.value
|
|
68
67
|
}, {
|
|
69
|
-
default:
|
|
70
|
-
|
|
68
|
+
default: c(() => [
|
|
69
|
+
D(w(t.title), 1)
|
|
71
70
|
]),
|
|
72
71
|
_: 2
|
|
73
72
|
}, 1032, ["value"]))), 256))
|
|
74
73
|
]),
|
|
75
74
|
_: 2
|
|
76
|
-
}, 1032, ["value"])) : e.type == "switch" ? (n(), l(
|
|
75
|
+
}, 1032, ["value"])) : e.type == "switch" ? (n(), l(y, {
|
|
77
76
|
key: 4,
|
|
78
77
|
checked: a.configData[e.bind],
|
|
79
78
|
"onUpdate:checked": (t) => a.configData[e.bind] = t
|
|
80
|
-
}, null, 8, ["checked", "onUpdate:checked"])) :
|
|
79
|
+
}, null, 8, ["checked", "onUpdate:checked"])) : U("", !0)
|
|
81
80
|
]),
|
|
82
81
|
_: 2
|
|
83
82
|
}, 1032, ["label"])), 64))
|
|
@@ -88,5 +87,5 @@ const L = /* @__PURE__ */ _({
|
|
|
88
87
|
}
|
|
89
88
|
});
|
|
90
89
|
export {
|
|
91
|
-
|
|
90
|
+
q as default
|
|
92
91
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Y as et } from "./index-tGw013BZ.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
|
|
@@ -48,13 +48,13 @@ var st = 2 * 60 * 1e3, ut = class {
|
|
|
48
48
|
return this._worker.withSyncedResources(e);
|
|
49
49
|
}).then((i) => n);
|
|
50
50
|
}
|
|
51
|
-
},
|
|
51
|
+
}, J;
|
|
52
52
|
(function(e) {
|
|
53
53
|
function n(i) {
|
|
54
54
|
return typeof i == "string";
|
|
55
55
|
}
|
|
56
56
|
e.is = n;
|
|
57
|
-
})(
|
|
57
|
+
})(J || (J = {}));
|
|
58
58
|
var O;
|
|
59
59
|
(function(e) {
|
|
60
60
|
function n(i) {
|
|
@@ -62,14 +62,14 @@ var O;
|
|
|
62
62
|
}
|
|
63
63
|
e.is = n;
|
|
64
64
|
})(O || (O = {}));
|
|
65
|
-
var
|
|
65
|
+
var T;
|
|
66
66
|
(function(e) {
|
|
67
67
|
e.MIN_VALUE = -2147483648, e.MAX_VALUE = 2147483647;
|
|
68
68
|
function n(i) {
|
|
69
69
|
return typeof i == "number" && e.MIN_VALUE <= i && i <= e.MAX_VALUE;
|
|
70
70
|
}
|
|
71
71
|
e.is = n;
|
|
72
|
-
})(
|
|
72
|
+
})(T || (T = {}));
|
|
73
73
|
var M;
|
|
74
74
|
(function(e) {
|
|
75
75
|
e.MIN_VALUE = 0, e.MAX_VALUE = 2147483647;
|
|
@@ -741,15 +741,15 @@ var Ne;
|
|
|
741
741
|
}
|
|
742
742
|
e.is = i;
|
|
743
743
|
})(Ne || (Ne = {}));
|
|
744
|
-
var
|
|
744
|
+
var Y;
|
|
745
745
|
(function(e) {
|
|
746
746
|
e.Type = 1, e.Parameter = 2;
|
|
747
747
|
function n(i) {
|
|
748
748
|
return i === 1 || i === 2;
|
|
749
749
|
}
|
|
750
750
|
e.is = n;
|
|
751
|
-
})(
|
|
752
|
-
var
|
|
751
|
+
})(Y || (Y = {}));
|
|
752
|
+
var G;
|
|
753
753
|
(function(e) {
|
|
754
754
|
function n(r) {
|
|
755
755
|
return { value: r };
|
|
@@ -760,7 +760,7 @@ var J;
|
|
|
760
760
|
return a.objectLiteral(t) && (t.tooltip === void 0 || a.string(t.tooltip) || P.is(t.tooltip)) && (t.location === void 0 || C.is(t.location)) && (t.command === void 0 || I.is(t.command));
|
|
761
761
|
}
|
|
762
762
|
e.is = i;
|
|
763
|
-
})(
|
|
763
|
+
})(G || (G = {}));
|
|
764
764
|
var Oe;
|
|
765
765
|
(function(e) {
|
|
766
766
|
function n(r, t, o) {
|
|
@@ -770,7 +770,7 @@ var Oe;
|
|
|
770
770
|
e.create = n;
|
|
771
771
|
function i(r) {
|
|
772
772
|
const t = r;
|
|
773
|
-
return a.objectLiteral(t) && w.is(t.position) && (a.string(t.label) || a.typedArray(t.label,
|
|
773
|
+
return a.objectLiteral(t) && w.is(t.position) && (a.string(t.label) || a.typedArray(t.label, G.is)) && (t.kind === void 0 || Y.is(t.kind)) && t.textEdits === void 0 || a.typedArray(t.textEdits, E.is) && (t.tooltip === void 0 || a.string(t.tooltip) || P.is(t.tooltip)) && (t.paddingLeft === void 0 || a.boolean(t.paddingLeft)) && (t.paddingRight === void 0 || a.boolean(t.paddingRight));
|
|
774
774
|
}
|
|
775
775
|
e.is = i;
|
|
776
776
|
})(Oe || (Oe = {}));
|
|
@@ -1231,11 +1231,11 @@ var xt = class {
|
|
|
1231
1231
|
const r = e.uri;
|
|
1232
1232
|
return this._worker(r).then((t) => t.findDefinition(r.toString(), k(n))).then((t) => {
|
|
1233
1233
|
if (t)
|
|
1234
|
-
return [
|
|
1234
|
+
return [Ye(t)];
|
|
1235
1235
|
});
|
|
1236
1236
|
}
|
|
1237
1237
|
};
|
|
1238
|
-
function
|
|
1238
|
+
function Ye(e) {
|
|
1239
1239
|
return {
|
|
1240
1240
|
uri: d.Uri.parse(e.uri),
|
|
1241
1241
|
range: m(e.range)
|
|
@@ -1249,7 +1249,7 @@ var It = class {
|
|
|
1249
1249
|
const t = e.uri;
|
|
1250
1250
|
return this._worker(t).then((o) => o.findReferences(t.toString(), k(n))).then((o) => {
|
|
1251
1251
|
if (o)
|
|
1252
|
-
return o.map(
|
|
1252
|
+
return o.map(Ye);
|
|
1253
1253
|
});
|
|
1254
1254
|
}
|
|
1255
1255
|
}, Et = class {
|
|
@@ -1289,11 +1289,11 @@ var At = class {
|
|
|
1289
1289
|
const i = e.uri;
|
|
1290
1290
|
return this._worker(i).then((r) => r.findDocumentSymbols(i.toString())).then((r) => {
|
|
1291
1291
|
if (r)
|
|
1292
|
-
return r.map((t) => Rt(t) ?
|
|
1292
|
+
return r.map((t) => Rt(t) ? Ge(t) : {
|
|
1293
1293
|
name: t.name,
|
|
1294
1294
|
detail: "",
|
|
1295
1295
|
containerName: t.containerName,
|
|
1296
|
-
kind:
|
|
1296
|
+
kind: Je(t.kind),
|
|
1297
1297
|
range: m(t.location.range),
|
|
1298
1298
|
selectionRange: m(t.location.range),
|
|
1299
1299
|
tags: []
|
|
@@ -1304,18 +1304,18 @@ var At = class {
|
|
|
1304
1304
|
function Rt(e) {
|
|
1305
1305
|
return "children" in e;
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1307
|
+
function Ge(e) {
|
|
1308
1308
|
return {
|
|
1309
1309
|
name: e.name,
|
|
1310
1310
|
detail: e.detail ?? "",
|
|
1311
|
-
kind:
|
|
1311
|
+
kind: Je(e.kind),
|
|
1312
1312
|
range: m(e.range),
|
|
1313
1313
|
selectionRange: m(e.selectionRange),
|
|
1314
1314
|
tags: e.tags ?? [],
|
|
1315
|
-
children: (e.children ?? []).map((n) =>
|
|
1315
|
+
children: (e.children ?? []).map((n) => Ge(n))
|
|
1316
1316
|
};
|
|
1317
1317
|
}
|
|
1318
|
-
function
|
|
1318
|
+
function Je(e) {
|
|
1319
1319
|
let n = d.languages.SymbolKind;
|
|
1320
1320
|
switch (e) {
|
|
1321
1321
|
case p.File:
|
|
@@ -1379,7 +1379,7 @@ var Nt = class {
|
|
|
1379
1379
|
}
|
|
1380
1380
|
provideDocumentFormattingEdits(e, n, i) {
|
|
1381
1381
|
const r = e.uri;
|
|
1382
|
-
return this._worker(r).then((t) => t.format(r.toString(), null,
|
|
1382
|
+
return this._worker(r).then((t) => t.format(r.toString(), null, Te(n)).then((o) => {
|
|
1383
1383
|
if (!(!o || o.length === 0))
|
|
1384
1384
|
return o.map(D);
|
|
1385
1385
|
}));
|
|
@@ -1390,13 +1390,13 @@ var Nt = class {
|
|
|
1390
1390
|
}
|
|
1391
1391
|
provideDocumentRangeFormattingEdits(e, n, i, r) {
|
|
1392
1392
|
const t = e.uri;
|
|
1393
|
-
return this._worker(t).then((o) => o.format(t.toString(), Qe(n),
|
|
1393
|
+
return this._worker(t).then((o) => o.format(t.toString(), Qe(n), Te(i)).then((s) => {
|
|
1394
1394
|
if (!(!s || s.length === 0))
|
|
1395
1395
|
return s.map(D);
|
|
1396
1396
|
}));
|
|
1397
1397
|
}
|
|
1398
1398
|
};
|
|
1399
|
-
function
|
|
1399
|
+
function Te(e) {
|
|
1400
1400
|
return {
|
|
1401
1401
|
tabSize: e.tabSize,
|
|
1402
1402
|
insertSpaces: e.insertSpaces
|
package/dist/form-imagining.js
CHANGED