asai-vue-designer 0.2.3 → 0.2.4

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.
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as C, reactive as F, watch as L, computed as O, onBeforeUnmount as b, resolveComponent as V, createElementBlock as f, openBlock as m, createElementVNode as d, createCommentVNode as B, Fragment as J, renderList as U, toDisplayString as g, unref as y, createVNode as c, createBlock as $, withCtx as q, createTextVNode as j } from "vue";
2
- import { _ as A } from "./ViewDesignerBtns-D_9X6AjI.mjs";
2
+ import { _ as A } from "./ViewDesignerBtns-iJsByZ-u.mjs";
3
3
  const D = { class: "asf-add-area asfselectarea" }, E = { class: "asf-add asfselectarea" }, I = { class: "asf-add-li" }, T = ["title"], z = { class: "val" }, G = {
4
4
  key: 0,
5
5
  class: "asf-add-add"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as O, reactive as $, watch as E, computed as F, onBeforeUnmount as I, resolveComponent as h, createElementBlock as i, openBlock as o, createElementVNode as l, createCommentVNode as L, Fragment as j, renderList as y, toDisplayString as V, unref as g, createVNode as v, createBlock as q, withCtx as D, createTextVNode as b } from "vue";
2
- import { _ as J } from "./ViewDesignerBtns-D_9X6AjI.mjs";
2
+ import { _ as J } from "./ViewDesignerBtns-iJsByZ-u.mjs";
3
3
  const T = { class: "asf-add-area asfselectarea" }, z = { class: "asf-add asfselectarea" }, G = { class: "asf-add-li" }, H = { class: "opt" }, K = ["onClick"], M = ["title"], P = { class: "val" }, Q = { class: "param" }, R = {
4
4
  key: 0,
5
5
  class: "asf-add-add"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as j, reactive as S, watch as O, computed as B, onBeforeUnmount as J, resolveComponent as _, createElementBlock as m, openBlock as d, createElementVNode as n, createCommentVNode as $, Fragment as b, renderList as x, toDisplayString as v, createVNode as w, createBlock as F, withCtx as L, createTextVNode as g } from "vue";
2
- import { _ as C } from "./ViewDesignerBtns-D_9X6AjI.mjs";
2
+ import { _ as C } from "./ViewDesignerBtns-iJsByZ-u.mjs";
3
3
  const U = { class: "asf-add-area asfselectarea" }, q = { class: "asf-add asfselectarea" }, E = { class: "asf-add-li" }, I = { class: "opt" }, T = ["onClick"], z = ["title"], G = {
4
4
  key: 0,
5
5
  class: "asf-add-add"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, reactive as S, watch as b, computed as F, onBeforeUnmount as L, resolveComponent as y, createElementBlock as m, openBlock as f, createElementVNode as d, createCommentVNode as O, Fragment as B, renderList as J, toDisplayString as V, unref as v, createVNode as u, createBlock as U, withCtx as $, createTextVNode as A } from "vue";
2
- import { _ as w } from "./ViewDesignerBtns-D_9X6AjI.mjs";
2
+ import { _ as w } from "./ViewDesignerBtns-iJsByZ-u.mjs";
3
3
  const q = { class: "asf-add-area asfselectarea" }, D = { class: "asf-add asfselectarea" }, I = { class: "asf-add-li" }, T = ["title"], z = { class: "val" }, G = {
4
4
  key: 0,
5
5
  class: "asf-add-add"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, resolveComponent as e, createBlock as s, openBlock as f, withCtx as n, createTextVNode as o, createElementVNode as c, toDisplayString as m, createVNode as l } from "vue";
2
- import { _ as u } from "./ViewDesignerBtns-D_9X6AjI.mjs";
2
+ import { _ as u } from "./ViewDesignerBtns-iJsByZ-u.mjs";
3
3
  const y = { class: "asf-add-list" }, k = /* @__PURE__ */ r({
4
4
  __name: "AsaiPos",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, reactive as x, watch as F, computed as I, onBeforeUnmount as L, resolveComponent as y, createElementBlock as f, openBlock as i, createElementVNode as n, createCommentVNode as q, Fragment as D, renderList as E, toDisplayString as j, unref as O, createVNode as V, createBlock as v, withCtx as T, createTextVNode as C } from "vue";
2
- import { _ as z } from "./ViewDesignerBtns-D_9X6AjI.mjs";
2
+ import { _ as z } from "./ViewDesignerBtns-iJsByZ-u.mjs";
3
3
  const G = { class: "asf-add-area asfselectarea" }, H = { class: "asf-add asfselectarea" }, J = { class: "asf-add-li" }, K = { class: "opt" }, M = ["onClick"], P = ["title"], Q = { class: "val" }, R = {
4
4
  key: 0,
5
5
  class: "asf-add-add"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as A, reactive as N, watch as F, computed as L, onBeforeUnmount as x, resolveComponent as y, createElementBlock as c, openBlock as i, createElementVNode as n, createCommentVNode as B, Fragment as E, renderList as $, createVNode as V, createBlock as U, withCtx as q, createTextVNode as h, toDisplayString as p } from "vue";
2
- import { _ as D } from "./ViewDesignerBtns-D_9X6AjI.mjs";
2
+ import { _ as D } from "./ViewDesignerBtns-iJsByZ-u.mjs";
3
3
  const J = { class: "asf-add-area asfselectarea" }, _ = { class: "asf-add asfselectarea" }, I = { class: "asf-add-li" }, T = { class: "opt" }, W = ["onClick"], z = { class: "val" }, G = {
4
4
  key: 0,
5
5
  class: "asf-add-add"
@@ -0,0 +1,528 @@
1
+ import { defineComponent as A, createElementBlock as u, openBlock as o, createCommentVNode as j, createElementVNode as n, toDisplayString as b, unref as p, Fragment as C, renderList as N, normalizeClass as g, normalizeStyle as v, createBlock as x, resolveDynamicComponent as O, createTextVNode as D, resolveComponent as L, createVNode as k, withModifiers as E, resolveDirective as S, withDirectives as I, computed as $, renderSlot as f, reactive as B, defineAsyncComponent as V, withCtx as _ } from "vue";
2
+ import { _ as w, u as F, V as J } from "./ViewDesignerBtns-iJsByZ-u.mjs";
3
+ const P = { class: "as-deslib-area" }, T = {
4
+ key: 0,
5
+ class: "as-deslib-list"
6
+ }, M = { class: "as-table-area-fixed" }, U = { class: "as-table" }, q = { class: "as-table-header" }, W = { class: "as-table-row" }, X = { class: "label-box" }, G = { class: "name-box" }, H = { class: "name-box" }, K = { class: "as-table-body" }, Q = ["onClick"], R = ["onClick"], Y = { class: "as-deslib-view" }, Z = /* @__PURE__ */ A({
7
+ __name: "ViewDesignerLibList",
8
+ props: {
9
+ ujt: {},
10
+ designerdata: {},
11
+ opt: {}
12
+ },
13
+ setup(e) {
14
+ const t = e, { $fn: s, $global: d } = t.ujt;
15
+ function l(i) {
16
+ const a = JSON.parse(
17
+ JSON.stringify(t.designerdata.lib.type[i])
18
+ );
19
+ a.id = s.As.Uuid("ds"), a.label = a.label + "-" + a.id.slice(-4), t.designerdata.data.data.push(a), t.designerdata.ux && (t.designerdata.ux.cur = a.id);
20
+ }
21
+ function c(i, a) {
22
+ i && (t.designerdata.ux.curlib = {
23
+ item: JSON.parse(JSON.stringify(t.designerdata.lib.type[i])),
24
+ index: a
25
+ });
26
+ }
27
+ return console.log(t.designerdata), (i, a) => (o(), u("div", P, [
28
+ t.designerdata.lib.type ? (o(), u("div", T, [
29
+ n("div", M, [
30
+ n("div", U, [
31
+ n("div", q, [
32
+ n("div", W, [
33
+ n("div", X, b(p(d).lang.designersys.listheader.index), 1),
34
+ n("div", G, b(p(d).lang.designersys.listheader.name), 1),
35
+ n("div", H, b(p(d).lang.designersys.listheader.opt), 1)
36
+ ])
37
+ ]),
38
+ n("div", K, [
39
+ (o(!0), u(C, null, N(Object.keys(
40
+ t.designerdata.lib.type
41
+ ), (r, m) => (o(), u("div", {
42
+ key: "lib" + r,
43
+ class: g(`as-table-row${m == t.designerdata.ux.curlib?.index ? " cur" : ""}`)
44
+ }, [
45
+ n("div", null, b(m + 1), 1),
46
+ n("div", {
47
+ class: "lim",
48
+ onClick: (y) => c(r, m)
49
+ }, b(t.designerdata.lib.type[r].label || t.designerdata.lib.type[r].comp), 9, Q),
50
+ n("div", null, [
51
+ n("button", {
52
+ class: "btn",
53
+ onClick: (y) => l(r)
54
+ }, " + ", 8, R)
55
+ ])
56
+ ], 2))), 128))
57
+ ])
58
+ ])
59
+ ])
60
+ ])) : j("", !0),
61
+ n("div", Y, [
62
+ t.designerdata.ux.curlib?.item ? (o(), u("div", {
63
+ key: 0,
64
+ style: v(`overflow:auto;width:${t.designerdata.ux.curlib?.item?.pos?.w}px;height:${t.designerdata.ux.curlib?.item?.pos?.h}px;`)
65
+ }, [
66
+ (o(), x(O(
67
+ t.designerdata.lib.getComp(
68
+ t.designerdata.ux.curlib?.item?.comps?.[0]
69
+ )
70
+ ), {
71
+ ujt: e.ujt,
72
+ designerdata: t.designerdata,
73
+ opt: t.opt,
74
+ itemdata: t.designerdata.ux.curlib
75
+ }, null, 8, ["ujt", "designerdata", "opt", "itemdata"]))
76
+ ], 4)) : (o(), u(C, { key: 1 }, [
77
+ D(" 这里展示内容 ")
78
+ ], 64))
79
+ ])
80
+ ]));
81
+ }
82
+ }), ee = /* @__PURE__ */ w(Z, [["__scopeId", "data-v-69fed62a"]]), te = { class: "as-designattr-area" }, ae = { class: "as-designattr-main" }, se = { class: "as-btn-area" }, ie = /* @__PURE__ */ A({
83
+ __name: "ViewDesignerAttr",
84
+ props: {
85
+ ujt: {},
86
+ designerdata: {},
87
+ opt: {}
88
+ },
89
+ setup(e) {
90
+ const t = e, { $global: s } = t.ujt;
91
+ return t.designerdata.rfAttrData.data = s.pop.popdesignattr?.data?.item, (d, l) => {
92
+ const c = L("AsaiForm");
93
+ return o(), u("div", te, [
94
+ n("div", ae, [
95
+ k(c, {
96
+ ujt: e.ujt,
97
+ asaidata: t.designerdata.rfAttrData
98
+ }, null, 8, ["ujt", "asaidata"])
99
+ ]),
100
+ n("div", se, [
101
+ n("div", {
102
+ class: "as-btn-cur",
103
+ onClick: l[0] || (l[0] = E((i) => p(s).pop.popdesignattr?.fn?.(), ["stop"]))
104
+ }, " 保存 ")
105
+ ])
106
+ ]);
107
+ };
108
+ }
109
+ }), de = /* @__PURE__ */ w(ie, [["__scopeId", "data-v-4822b378"]]), ne = {
110
+ key: 0,
111
+ class: "as-design-opt"
112
+ }, oe = { class: "as-design-drag" }, le = { class: "as-design-resize" }, re = /* @__PURE__ */ A({
113
+ __name: "ViewDesignerItemOpt",
114
+ props: {
115
+ ujt: {},
116
+ designerdata: {},
117
+ opt: {},
118
+ itemdata: {}
119
+ },
120
+ setup(e) {
121
+ const t = e, { deleteItem: s, popItemAttr: d, upItem: l } = F(t);
122
+ return (c, i) => {
123
+ const a = S("dragzoom"), r = S("popresizezoom");
124
+ return t.designerdata.ux.isedit ? (o(), u("div", ne, [
125
+ n("div", {
126
+ class: "as-design-index",
127
+ onClick: i[0] || (i[0] = (m) => p(l)(e.itemdata.index))
128
+ }, b(e.itemdata.index + 1), 1),
129
+ n("div", {
130
+ class: "as-design-close",
131
+ onClick: i[1] || (i[1] = (m) => p(s)(e.itemdata.index))
132
+ }, "X"),
133
+ n("div", {
134
+ class: "as-design-attr",
135
+ onClick: i[2] || (i[2] = (m) => p(d)(e.itemdata.index))
136
+ }, "┅"),
137
+ I((o(), u("div", oe, [...i[3] || (i[3] = [
138
+ D(" ☩ ", -1)
139
+ ])])), [
140
+ [a, {
141
+ ujt: e.ujt,
142
+ pos: e.itemdata.item.pos,
143
+ dommask: "asdesignarea",
144
+ domarea: "box-" + e.itemdata.item.id
145
+ }]
146
+ ]),
147
+ I((o(), u("div", le, [...i[4] || (i[4] = [
148
+ D(" ◢ ", -1)
149
+ ])])), [
150
+ [r, {
151
+ ujt: e.ujt,
152
+ size: e.itemdata.item.pos,
153
+ domresizex: "asai",
154
+ domresize: "box-" + e.itemdata.item.id,
155
+ domarea: "asdesignarea"
156
+ }]
157
+ ])
158
+ ])) : j("", !0);
159
+ };
160
+ }
161
+ }), ue = /* @__PURE__ */ w(re, [["__scopeId", "data-v-1e7891d6"]]), h = {
162
+ addokdo(e = null, t = null) {
163
+ typeof t == "string" ? e.designerdata.ux.ok.includes(t) || e.designerdata.ux.ok.push(t) : Array.isArray(t) && t.length && t.forEach((s) => {
164
+ e.designerdata.ux.ok.includes(s) || e.designerdata.ux.ok.push(s);
165
+ });
166
+ },
167
+ initdo(e = null) {
168
+ e.designerdata.ux.do = [], e.designerdata.ux.cache = [];
169
+ },
170
+ setdo(e = null, t = [], s = "", d = 1) {
171
+ e.designerdata.ux.do = [...t], e.designerdata.ux.cache = [], e.designerdata.ux.typesort = d, s && e.designerdata.ux.cache.push(s);
172
+ },
173
+ setdone(e = null, t) {
174
+ e.designerdata.ux.cache.push(
175
+ ...e.designerdata.ux.do.splice(t, 1)
176
+ );
177
+ },
178
+ evAction(e = null, t = null) {
179
+ const s = e.designerdata?.ux?.do?.findIndex((d) => d == t) || 0;
180
+ s === 0 || s > 0 && e.designerdata.ux?.typesort == 1 ? (this.setdone(e, s), e.designerdata.ux?.do?.length || (this.addokdo(e, e.designerdata.ux.cache), this.setdo(e))) : e.itemdata.item?.events?.[1]?.typedrop ? this.initdo(e) : e.itemdata.item?.events?.[1]?.domev?.length && this.setdo(
181
+ e,
182
+ e.itemdata.item.events?.[1]?.domev,
183
+ e.itemdata.item.id,
184
+ e.itemdata.item.events?.[1]?.typesort
185
+ );
186
+ }
187
+ }, z = {
188
+ getfn(e = "", t = null, s) {
189
+ return e && typeof this?.[e] == "function" ? (d = null) => this[e](t, s, d) : null;
190
+ },
191
+ fnnone(e = null, t = null, s = null) {
192
+ },
193
+ fndownapi(e = null, t = null, s = null) {
194
+ const d = e?.ujt?.$fn?.useWs?.(e.ujt, "web");
195
+ e.itemdata?.item?.events?.[1]?.api && d?.wsSend && d.wsApi({
196
+ ty: e.itemdata?.item?.events?.[1]?.api,
197
+ db: e.itemdata?.item?.events?.[1]?.params
198
+ }).then((l) => {
199
+ e.itemdata?.item?.events?.[1]?.apiok && e?.ujt?.$global?.msg?.fn({
200
+ type: "ok",
201
+ con: e.itemdata?.item?.events?.[1]?.apiok
202
+ });
203
+ }).catch((l) => {
204
+ e.itemdata?.item?.events?.[1]?.apierr && e?.ujt?.$global?.msg?.fn({
205
+ type: "err",
206
+ con: e.itemdata?.item?.events?.[1]?.apierr
207
+ });
208
+ });
209
+ },
210
+ fndownstyle(e = null, t = null, s = null) {
211
+ const d = t.target.closest(".as-design-area");
212
+ d && (d.style.cssText = d.style.cssText + (e.itemdata?.item?.events?.[1]?.style || ""));
213
+ },
214
+ fndownclick(e = null, t = null, s = null) {
215
+ h.addokdo(e, e.itemdata.item.id), h.initdo(e);
216
+ },
217
+ fndownarrclick(e = null, t = null, s = null) {
218
+ h.evAction(e, e.itemdata?.item?.id);
219
+ },
220
+ fndragup(e = null, t = null, s = null) {
221
+ e.designerdata?.ux?.do?.length || h.setdo(
222
+ e,
223
+ e.itemdata.item.events?.[1]?.domev,
224
+ e.itemdata.item.id,
225
+ e.itemdata.item.events?.[1]?.typesort
226
+ ), h.evAction(e, s?.dropid);
227
+ }
228
+ }, ce = ["id"], me = ["id"], ge = ["id"], ve = ["id"], pe = ["id"], ye = /* @__PURE__ */ A({
229
+ __name: "ViewDesignerItemArea",
230
+ props: {
231
+ ujt: {},
232
+ designerdata: {},
233
+ opt: {},
234
+ itemdata: {}
235
+ },
236
+ setup(e) {
237
+ const t = e, { $fn: s } = t.ujt, d = $(() => `transform: translate(${t.itemdata.item.pos.x}px, ${t.itemdata.item.pos.y}px);width: ${t.itemdata.item.pos.w}px;height: ${t.itemdata.item.pos.h}px;`), l = $(() => {
238
+ let a = "";
239
+ return t.designerdata.ux.ok.includes(t.itemdata.item.id) && (a += s.AsStyle.renderStyle(t, "ok", t.itemdata.item)), a;
240
+ }), c = $(() => "box-" + t.itemdata.item.id);
241
+ function i(a) {
242
+ z.getfn(t?.itemdata?.item?.events?.[0], t, a)?.();
243
+ }
244
+ return (a, r) => {
245
+ const m = S("draggame");
246
+ return t.designerdata.ux.isedit ? (o(), u("div", {
247
+ key: 0,
248
+ id: c.value,
249
+ style: v(d.value),
250
+ onClick: r[0] || (r[0] = (y) => t.designerdata.ux.cur = t.itemdata.item.id),
251
+ class: g(`
252
+ ${e.itemdata.item?.edit?.hidden ? "as-design-hidden" : "as-design-box-edit"}${t.designerdata?.ux?.cur === t.itemdata?.item?.id ? " as-design-cur" : ""}`)
253
+ }, [
254
+ n("div", {
255
+ class: g("as-design-area"),
256
+ style: v(l.value)
257
+ }, [
258
+ f(a.$slots, "item", {}, void 0, !0)
259
+ ], 4),
260
+ f(a.$slots, "opt", {}, void 0, !0)
261
+ ], 14, ce)) : t.designerdata.ux.ok.includes(e.itemdata.item.id) ? (o(), u("div", {
262
+ key: 1,
263
+ id: c.value,
264
+ style: v(d.value),
265
+ class: g("as-design-box-ok")
266
+ }, [
267
+ n("div", {
268
+ class: g("as-design-area"),
269
+ style: v(l.value)
270
+ }, [
271
+ f(a.$slots, "item", {}, void 0, !0)
272
+ ], 4)
273
+ ], 12, me)) : e.itemdata.item?.events?.[1]?.typedrop ? I((o(), u("div", {
274
+ key: 2,
275
+ id: c.value,
276
+ style: v(d.value),
277
+ class: g("as-design-box")
278
+ }, [
279
+ n("div", {
280
+ class: g("as-design-area"),
281
+ style: v(l.value)
282
+ }, [
283
+ f(a.$slots, "item", {}, void 0, !0)
284
+ ], 4)
285
+ ], 12, ge)), [
286
+ [m, {
287
+ ujt: e.ujt,
288
+ gameevents: {
289
+ fnup: (y) => p(z).getfn(e.itemdata?.item?.events?.[0], t, y),
290
+ params: e.itemdata.item.events[1]
291
+ },
292
+ pos: e.itemdata.item.pos,
293
+ dommask: "asdesignarea",
294
+ domarea: "box-" + e.itemdata.item.id
295
+ }]
296
+ ]) : e.itemdata.item?.events?.[0] ? (o(), u("div", {
297
+ key: 3,
298
+ id: c.value,
299
+ style: v(d.value),
300
+ class: g("as-design-box"),
301
+ onClick: i
302
+ }, [
303
+ n("div", {
304
+ class: g("as-design-area"),
305
+ style: v(l.value)
306
+ }, [
307
+ f(a.$slots, "item", {}, void 0, !0)
308
+ ], 4)
309
+ ], 12, ve)) : (o(), u("div", {
310
+ key: 4,
311
+ id: c.value,
312
+ style: v(d.value),
313
+ class: g("as-design-box")
314
+ }, [
315
+ n("div", {
316
+ class: g("as-design-area"),
317
+ style: v(l.value)
318
+ }, [
319
+ f(a.$slots, "item", {}, void 0, !0)
320
+ ], 4)
321
+ ], 12, pe));
322
+ };
323
+ }
324
+ }), fe = /* @__PURE__ */ w(ye, [["__scopeId", "data-v-3a0d7c37"]]), be = (e) => {
325
+ const { $db: t, $global: s } = e.ujt, d = /* @__PURE__ */ Object.assign({
326
+ "../_form/AsaiComp.vue": () => import("./AsaiComp-Br12dCtO.mjs"),
327
+ "../_form/AsaiCss.vue": () => import("./AsaiCss-DLW8_-4h.mjs"),
328
+ "../_form/AsaiDom.vue": () => import("./AsaiDom-kFh5fw5w.mjs"),
329
+ "../_form/AsaiEvent.vue": () => import("./AsaiEvent-WCGi4kCL.mjs"),
330
+ "../_form/AsaiPos.vue": () => import("./AsaiPos-BQsThbZR.mjs"),
331
+ "../_form/AsaiStyle.vue": () => import("./AsaiStyle-DLesi0Vd.mjs"),
332
+ "../_form/AsaiStyles.vue": () => import("./AsaiStyles-DcuQUoMu.mjs")
333
+ });
334
+ function l(a) {
335
+ const r = a.match(/([^\\/]+)(?=\.vue$)/);
336
+ return r ? r[1] : null;
337
+ }
338
+ for (let a in d)
339
+ d[l(a) || a] = d[a], delete d[a];
340
+ const c = $(() => e.designerdata.data.data.map((a) => [a.id, a.label || a.comp]).filter(
341
+ (a) => a[0] != s.pop.popdesignattr?.data?.item?.id
342
+ )), i = B({
343
+ comp: d,
344
+ ic: 0,
345
+ eq: 0,
346
+ lang: s.lang.designersys.attrs,
347
+ rule: {
348
+ events: {
349
+ nolabel: 1,
350
+ comp: "AsaiEvent"
351
+ },
352
+ typedrop: {
353
+ comp: "AsaiInput",
354
+ type: "checkbox",
355
+ typedropdata: { 1: "放在当前位置", 2: "返回拖拽起点" }
356
+ },
357
+ typesort: {
358
+ comp: "AsaiInput",
359
+ type: "checkbox",
360
+ typesortdata: { 1: "无序响应", 2: "有序响应" }
361
+ },
362
+ domev: {
363
+ nolabel: 1,
364
+ comp: "AsaiDom",
365
+ opt: {
366
+ selectdata: c
367
+ }
368
+ },
369
+ comps: {
370
+ nolabel: 1,
371
+ comp: "AsaiComp"
372
+ },
373
+ img: {
374
+ comp: "AsaiUploadImg"
375
+ },
376
+ pos: {
377
+ nolabel: 1,
378
+ comp: "AsaiPos"
379
+ },
380
+ fnsdown: {
381
+ comp: "AsaiSelect",
382
+ fnsdowndata: s.lang.designersys.fn
383
+ },
384
+ fnsdragup: {
385
+ comp: "AsaiSelect",
386
+ fnsdragupdata: s.lang.designersys.fn
387
+ },
388
+ styles: {
389
+ nolabel: 1,
390
+ comp: "AsaiStyles"
391
+ },
392
+ styleok: {
393
+ nolabel: 1,
394
+ comp: "AsaiStyle"
395
+ },
396
+ stylearea: {
397
+ nolabel: 1,
398
+ comp: "AsaiStyle"
399
+ },
400
+ style: {
401
+ nolabel: 1,
402
+ comp: "AsaiStyle"
403
+ },
404
+ cssok: {
405
+ nolabel: 1,
406
+ comp: "AsaiCss"
407
+ },
408
+ cssarea: {
409
+ nolabel: 1,
410
+ comp: "AsaiCss"
411
+ },
412
+ css: {
413
+ nolabel: 1,
414
+ comp: "AsaiCss"
415
+ }
416
+ }
417
+ });
418
+ return i.rule.comps.opt = {
419
+ compsdata: t.designerdata.lib.compsdata,
420
+ selectdata: t.designerdata.lib.selectcompsdata
421
+ }, i.rule.events.opt = {
422
+ eventsdata: t.designerdata.lib.eventsdata,
423
+ selectdata: t.designerdata.lib.selecteventsdata
424
+ }, i.rule.styles.opt = {
425
+ stylesdata: s.lang.designersys?.styleslist,
426
+ selectdata: Object.entries(s.lang.designersys?.styleslist || {})
427
+ }, i.rule.style.opt = {
428
+ styledata: t.designerdata.lib.styledata,
429
+ selectdata: t.designerdata.lib.selectstyledata
430
+ }, i.rule.styleok.opt = i.rule.stylearea.opt = i.rule.style.opt, i.rule.css.opt = {
431
+ cssdata: t.designerdata.lib.cssdata,
432
+ selectdata: t.designerdata.lib.selectcssdata
433
+ }, i.rule.cssok.opt = i.rule.cssarea.opt = i.rule.css.opt, {
434
+ rfAttrData: i
435
+ };
436
+ }, he = {
437
+ key: 0,
438
+ id: "asdesignarea"
439
+ }, xe = { class: "as-design-comp" }, $e = /* @__PURE__ */ A({
440
+ __name: "ViewDesigner",
441
+ props: {
442
+ ujt: {},
443
+ designerdata: {},
444
+ opt: {}
445
+ },
446
+ setup(e) {
447
+ const t = e, { $global: s } = t.ujt, { rfAttrData: d } = be(t);
448
+ t.designerdata.rfAttrData = d, t.designerdata.list.cfg && (t.designerdata.list.cfg.cur = s.location.hasharr[1]), t.designerdata.lib.getComp = l;
449
+ function l(i) {
450
+ const a = t.opt?.imComp?.[i];
451
+ try {
452
+ return a?.default ? a.default : V(a);
453
+ } catch {
454
+ return V(t.opt?.imComp?.default);
455
+ }
456
+ }
457
+ t.designerdata.dataid = s.location.hasharr[t.designerdata.ty], t.designerdata.fn.readDesignData();
458
+ const c = $(() => t.designerdata.data.data);
459
+ return (i, a) => {
460
+ const r = L("PopBox");
461
+ return t.designerdata.stat.data ? (o(), u("div", he, [
462
+ (o(!0), u(C, null, N(c.value, (m, y) => (o(), x(fe, {
463
+ key: "box-" + m.id,
464
+ ujt: e.ujt,
465
+ designerdata: t.designerdata,
466
+ opt: t.opt,
467
+ itemdata: { item: m, index: y }
468
+ }, {
469
+ item: _(() => [
470
+ n("div", xe, [
471
+ (o(), x(O(l(m?.comps?.[0])), {
472
+ ujt: e.ujt,
473
+ designerdata: t.designerdata,
474
+ opt: t.opt,
475
+ itemdata: { item: m, index: y }
476
+ }, null, 8, ["ujt", "designerdata", "opt", "itemdata"]))
477
+ ])
478
+ ]),
479
+ opt: _(() => [
480
+ k(ue, {
481
+ ujt: e.ujt,
482
+ designerdata: t.designerdata,
483
+ opt: t.opt,
484
+ itemdata: { item: m, index: y }
485
+ }, null, 8, ["ujt", "designerdata", "opt", "itemdata"])
486
+ ]),
487
+ _: 2
488
+ }, 1032, ["ujt", "designerdata", "opt", "itemdata"]))), 128)),
489
+ k(J, {
490
+ ujt: e.ujt,
491
+ designerdata: t.designerdata,
492
+ opt: t.opt
493
+ }, null, 8, ["ujt", "designerdata", "opt"]),
494
+ k(r, {
495
+ ujt: e.ujt,
496
+ id: "popdesignlib"
497
+ }, {
498
+ default: _(() => [
499
+ p(s).pop.popdesignlib.stat ? (o(), x(ee, {
500
+ key: 0,
501
+ ujt: e.ujt,
502
+ designerdata: t.designerdata,
503
+ opt: t.opt
504
+ }, null, 8, ["ujt", "designerdata", "opt"])) : j("", !0)
505
+ ]),
506
+ _: 1
507
+ }, 8, ["ujt"]),
508
+ k(r, {
509
+ ujt: e.ujt,
510
+ id: "popdesignattr"
511
+ }, {
512
+ default: _(() => [
513
+ p(s).pop.popdesignattr.stat ? (o(), x(de, {
514
+ key: 0,
515
+ ujt: e.ujt,
516
+ designerdata: t.designerdata,
517
+ opt: t.opt
518
+ }, null, 8, ["ujt", "designerdata", "opt"])) : j("", !0)
519
+ ]),
520
+ _: 1
521
+ }, 8, ["ujt"])
522
+ ])) : j("", !0);
523
+ };
524
+ }
525
+ });
526
+ export {
527
+ $e as default
528
+ };
@@ -161,7 +161,7 @@ const x = (n, t) => {
161
161
  t.designerdata.ux.isedit = !t.designerdata.ux.isedit;
162
162
  }
163
163
  function y() {
164
- d.sethash(t.designerdata.id);
164
+ d.sethash(t.designerdata.dir + t.designerdata.id);
165
165
  }
166
166
  function D() {
167
167
  t.designerdata.stat.datasaved || t.designerdata.fn.saveDesignData(), t.designerdata.stat.listsaved || t.designerdata.fn.saveDesignList();
@@ -272,7 +272,7 @@ const x = (n, t) => {
272
272
  ])) : k("", !0);
273
273
  };
274
274
  }
275
- }), dt = /* @__PURE__ */ x(at, [["__scopeId", "data-v-82936dff"]]);
275
+ }), dt = /* @__PURE__ */ x(at, [["__scopeId", "data-v-ad55e71c"]]);
276
276
  export {
277
277
  dt as V,
278
278
  x as _,