epic-designer-gold 1.0.23 → 1.0.24

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.
Files changed (33) hide show
  1. package/dist/{attributeView-BNUb6_IW.js → attributeView-BBN4W9TM.js} +1 -1
  2. package/dist/{attributeView-DWt2LmYW.cjs → attributeView-gzxLavkO.cjs} +1 -1
  3. package/dist/{index-gBxflsvp.cjs → index-4GSgwHdx.cjs} +1 -1
  4. package/dist/index-5XsDINLZ.js +4 -0
  5. package/dist/{index-DOa-ZTwb.js → index-B7wRhLwc.js} +1 -1
  6. package/dist/{index-8d-o3NGf.cjs → index-BAUyJdDp.cjs} +1 -1
  7. package/dist/{index-CKwY7AEV.cjs → index-BBYobbqk.cjs} +1 -1
  8. package/dist/{index-G5QRu6oQ.js → index-BUt-kkII.js} +1 -1
  9. package/dist/{index-DMK88APm.js → index-BokMTYeM.js} +1 -1
  10. package/dist/index-CDH3QO51.cjs +10 -0
  11. package/dist/{index-BUqQozMa.js → index-CItH08Va.js} +1 -1
  12. package/dist/{index-CJwoNKC6.cjs → index-CKI_3hdd.cjs} +1 -1
  13. package/dist/{index-rjUej4xS.js → index-CNtDbtWP.js} +1 -1
  14. package/dist/{index-DiOxIVVT.cjs → index-CSX7EJ3h.cjs} +1 -1
  15. package/dist/{index-BHOIdcXu.cjs → index-ClvhnVWp.cjs} +1 -1
  16. package/dist/{index-BVlZScLX.cjs → index-Cy4M38xz.cjs} +1 -1
  17. package/dist/{index-BFvmsqbe.cjs → index-D50jfb6U.cjs} +1 -1
  18. package/dist/{index-DOoGneHO.js → index-DrBumgPi.js} +1 -1
  19. package/dist/{index-CiD7TDSJ.js → index-hOLbkmql.js} +1 -1
  20. package/dist/{index-C2a8y8Ga.js → index-rQwg6K9E.js} +42 -40
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.js +1 -1
  23. package/dist/{selectPage-CzRf24Dg.js → selectPage-DU5m5Bop.js} +17 -17
  24. package/dist/selectPage-DoF_EREC.cjs +1 -0
  25. package/dist/style.css +1 -1
  26. package/dist/{styleView-BCUpAdf3.cjs → styleView-D3pbuMzI.cjs} +1 -1
  27. package/dist/{styleView-C8AriP_c.js → styleView-DN0aAYgR.js} +1 -1
  28. package/dist/ui/elementPlus/index.cjs +1 -1
  29. package/dist/ui/elementPlus/index.js +1 -1
  30. package/package.json +1 -1
  31. package/dist/index-CqmFt57U.js +0 -4
  32. package/dist/index-XixK3NVo.cjs +0 -10
  33. package/dist/selectPage-DPd8j93L.cjs +0 -1
@@ -1,4 +1,4 @@
1
- import { ref as P, reactive as re, defineComponent as le, openBlock as H, createBlock as Y, unref as R, mergeProps as be, withCtx as T, renderSlot as K, getCurrentInstance as ue, inject as ne, watch as B, useAttrs as Re, provide as Z, shallowRef as Ue, computed as W, watchEffect as he, onUnmounted as $e, resolveComponent as Te, resolveDynamicComponent as Be, createVNode as Q, createCommentVNode as Ne, useSlots as Le, createElementBlock as Ee, Suspense as Fe, createElementVNode as k, Fragment as Je, renderList as ze, nextTick as ce, effectScope as He, isRef as Ke, getCurrentScope as Ze, onScopeDispose as We, onMounted as Ae, normalizeClass as Ge, toRaw as Ie } from "vue";
1
+ import { ref as P, reactive as re, defineComponent as le, openBlock as H, createBlock as Y, unref as U, mergeProps as be, withCtx as T, renderSlot as K, getCurrentInstance as ue, inject as ne, watch as B, useAttrs as Re, provide as Z, shallowRef as Ue, computed as W, watchEffect as he, onUnmounted as $e, resolveComponent as Te, resolveDynamicComponent as Be, createVNode as Q, createCommentVNode as Ne, useSlots as Le, createElementBlock as Ee, Suspense as Fe, createElementVNode as k, Fragment as Je, renderList as ze, nextTick as ce, effectScope as He, isRef as Ke, getCurrentScope as Ze, onScopeDispose as We, onMounted as Ae, normalizeClass as Ge, toRaw as Ie } from "vue";
2
2
  import { p as z, f as Qe, d as ae, a as G, b as Ve, c as Ye, E as j, l as se, g as qe, e as Xe } from "./pluginManager-BCnrHPYv.js";
3
3
  import { a as pe, u as Oe } from "./index-B1s67XDZ.js";
4
4
  import { a as _e } from "./axios-CXDYiOMX.js";
@@ -23,7 +23,7 @@ function Pe() {
23
23
  }
24
24
  function h(p, D = !1) {
25
25
  const I = Object.entries(z.publicMethods).reduce(
26
- (C, [m, U]) => (C[m] = U.handler, C),
26
+ (C, [m, R]) => (C[m] = R.handler, C),
27
27
  {}
28
28
  );
29
29
  try {
@@ -179,7 +179,7 @@ const je = /* @__PURE__ */ le({
179
179
  const s = z.getComponent("form-item"), r = e, c = n, a = P(), w = () => {
180
180
  c("updateFormItemRef", a.value);
181
181
  };
182
- return (g, h) => r.hasFormItem ? (H(), Y(R(s), be({
182
+ return (g, h) => r.hasFormItem ? (H(), Y(U(s), be({
183
183
  key: 0,
184
184
  ref_key: "formItemRef",
185
185
  ref: a,
@@ -297,7 +297,7 @@ const je = /* @__PURE__ */ le({
297
297
  field: l
298
298
  };
299
299
  return $.children && delete $.children, $;
300
- }), U = W(() => {
300
+ }), R = W(() => {
301
301
  var $, u, _;
302
302
  const o = (($ = L.value) == null ? void 0 : $.bindModel) ?? "modelValue", l = {};
303
303
  return t.on && Object.keys(t.on).forEach((J) => {
@@ -314,7 +314,9 @@ const je = /* @__PURE__ */ le({
314
314
  bindModel: o,
315
315
  ...l
316
316
  };
317
- }), L = W(() => z.getComponentConfingByType(t.type) ?? null);
317
+ });
318
+ console.log("%c [ ]-324", "font-size:13px; background:pink; color:#bf2c9f;", R.value);
319
+ const L = W(() => z.getComponentConfingByType(t.type) ?? null);
318
320
  he(() => {
319
321
  c.value = r.modelValue ?? a[t.field ?? ""];
320
322
  }), B(
@@ -404,7 +406,7 @@ const je = /* @__PURE__ */ le({
404
406
  const $ = Te("ENode");
405
407
  return I.value && C.value ? (H(), Y(je, {
406
408
  key: 0,
407
- hasFormItem: R(t).noFormItem !== !0 && ((u = L.value) == null ? void 0 : u.defaultSchema.input),
409
+ hasFormItem: U(t).noFormItem !== !0 && ((u = L.value) == null ? void 0 : u.defaultSchema.input),
408
410
  formItemProps: m.value,
409
411
  onUpdateFormItemRef: p
410
412
  }, {
@@ -413,11 +415,11 @@ const je = /* @__PURE__ */ le({
413
415
  ref_key: "componentInstance",
414
416
  ref: E,
415
417
  onVnodeMounted: A,
416
- model: R(a)
417
- }, { ...U.value }, {
418
- [U.value.bindModel]: c.value,
419
- ["onUpdate:" + U.value.bindModel]: l[0] || (l[0] = (_) => c.value = _),
420
- [`onUpdate:${U.value.bindModel}` || ""]: i,
418
+ model: U(a)
419
+ }, { ...R.value }, {
420
+ [R.value.bindModel]: c.value,
421
+ ["onUpdate:" + R.value.bindModel]: l[0] || (l[0] = (_) => c.value = _),
422
+ [`onUpdate:${R.value.bindModel}` || ""]: i,
421
423
  "onUpdate:modelValueLabel": f,
422
424
  "onUpdate:dynamicId": F
423
425
  }), {
@@ -470,16 +472,16 @@ function tt() {
470
472
  var E, M;
471
473
  if (y && Object.keys(y).length) {
472
474
  let p = function(m) {
473
- let U = [];
475
+ let R = [];
474
476
  return m.forEach((L) => {
475
- L.children && (U = [...U, ...p(L.children)]), U.push(L);
476
- }), U;
477
+ L.children && (R = [...R, ...p(L.children)]), R.push(L);
478
+ }), R;
477
479
  }, I = function(m) {
478
480
  var L;
479
- let U = p((L = y == null ? void 0 : y.schemas[0]) == null ? void 0 : L.children);
481
+ let R = p((L = y == null ? void 0 : y.schemas[0]) == null ? void 0 : L.children);
480
482
  return Object.keys(m).forEach((A) => {
481
483
  var f, i, F, V, o, l, $;
482
- const v = U.find((u) => u.field === A), ee = ["datetimerange", "daterange", "monthrange", "dates"];
484
+ const v = R.find((u) => u.field === A), ee = ["datetimerange", "daterange", "monthrange", "dates"];
483
485
  if ((v && (v == null ? void 0 : v.type) === "checkbox" || (v == null ? void 0 : v.type) === "select" && ((f = v == null ? void 0 : v.componentProps) != null && f.multiple) || (v == null ? void 0 : v.type) === "cascader" && !((F = (i = v == null ? void 0 : v.componentProps) == null ? void 0 : i.props) != null && F.multiple) || (v == null ? void 0 : v.type) === "date" && ee.includes((V = v == null ? void 0 : v.componentProps) == null ? void 0 : V.type)) && typeof m[A] == "string")
484
486
  m[A] = (o = m[A]) == null ? void 0 : o.split(",");
485
487
  else if ((v == null ? void 0 : v.type) === "cascader" && (($ = (l = v == null ? void 0 : v.componentProps) == null ? void 0 : l.props) != null && $.multiple) && typeof m[A] == "string")
@@ -629,7 +631,7 @@ const nt = {
629
631
  )), V[o]++) : l.children && (l.children = m(l.children, i, F, V));
630
632
  }), V[o] = 0, i;
631
633
  }
632
- function U(f, i, F) {
634
+ function R(f, i, F) {
633
635
  let V = m(G(f), G(i));
634
636
  return {
635
637
  obj: C(f),
@@ -640,7 +642,7 @@ const nt = {
640
642
  let i = D(M.pageSchema.schemas[0].children);
641
643
  a.value = i.filter((l) => l.type === "card" && l.multiple);
642
644
  const F = I(M.pageSchema.schemas[0].children, f);
643
- let { obj: V, dataObj: o } = U(F, f, a.value);
645
+ let { obj: V, dataObj: o } = R(F, f, a.value);
644
646
  return f = o, M.pageSchema.schemas[0].children = V, Object.keys(f).forEach((l) => {
645
647
  var $, u, _, J, q, de, fe;
646
648
  if (l.indexOf("@") < 0) {
@@ -691,13 +693,13 @@ const nt = {
691
693
  setForms: S,
692
694
  validateAll: y,
693
695
  getFormInstance: E
694
- }), (f, i) => R(z).initialized.value ? (H(), Y(Fe, {
696
+ }), (f, i) => U(z).initialized.value ? (H(), Y(Fe, {
695
697
  key: 1,
696
698
  onResolve: ee
697
699
  }, {
698
700
  default: T(() => [
699
701
  k("div", ot, [
700
- (H(!0), Ee(Je, null, ze(p.schemas, (F, V) => (H(), Y(R(et), {
702
+ (H(!0), Ee(Je, null, ze(p.schemas, (F, V) => (H(), Y(U(et), {
701
703
  id: M.id,
702
704
  key: V,
703
705
  sourceDateUrl: M.sourceDateUrl,
@@ -707,7 +709,7 @@ const nt = {
707
709
  ]),
708
710
  fallback: T(() => [
709
711
  k("div", st, [
710
- Q(R(r))
712
+ Q(U(r))
711
713
  ])
712
714
  ]),
713
715
  _: 1
@@ -725,7 +727,7 @@ function lt(e) {
725
727
  return (...a) => (n += 1, r || (r = He(!0), s = r.run(() => e(...a))), xe(c), s);
726
728
  }
727
729
  function ie(e) {
728
- return typeof e == "function" ? e() : R(e);
730
+ return typeof e == "function" ? e() : U(e);
729
731
  }
730
732
  const at = typeof window < "u" && typeof document < "u";
731
733
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
@@ -1072,7 +1074,7 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
1072
1074
  }
1073
1075
  return n({
1074
1076
  handleOpen: d
1075
- }), (y, E) => (H(), Y(R(r), {
1077
+ }), (y, E) => (H(), Y(U(r), {
1076
1078
  modelValue: a.value,
1077
1079
  "onUpdate:modelValue": E[1] || (E[1] = (M) => a.value = M),
1078
1080
  title: "预览",
@@ -1084,13 +1086,13 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
1084
1086
  }, {
1085
1087
  default: T(() => [
1086
1088
  k("div", xt, [
1087
- (H(), Y(R(rt), {
1089
+ (H(), Y(U(rt), {
1088
1090
  key: O.value,
1089
1091
  ref_key: "kb",
1090
1092
  ref: N,
1091
- "page-schema": R(h)
1093
+ "page-schema": U(h)
1092
1094
  }, null, 8, ["page-schema"])),
1093
- Q(R(r), {
1095
+ Q(U(r), {
1094
1096
  modelValue: w.value,
1095
1097
  "onUpdate:modelValue": E[0] || (E[0] = (M) => w.value = M),
1096
1098
  title: "表单数据",
@@ -1101,7 +1103,7 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
1101
1103
  }, {
1102
1104
  default: T(() => [
1103
1105
  k("div", It, [
1104
- Q(R(s), {
1106
+ Q(U(s), {
1105
1107
  ref_key: "monacoEditorRef",
1106
1108
  ref: c,
1107
1109
  autoToggleTheme: "",
@@ -1144,7 +1146,7 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
1144
1146
  "updateSourceData"
1145
1147
  ],
1146
1148
  setup(e, { expose: n, emit: s }) {
1147
- const { t: r } = Oe(), c = se(() => import("./index-IGxCNti8.js")), a = se(() => import("./index-WkZdU_zw.js")), w = se(() => import("./index-CiD7TDSJ.js")), g = se(() => import("./index-Cln9MN7u.js")), h = se(() => import("./index-DgcFxYFp.js")), N = Pe(), O = ke(), t = e;
1149
+ const { t: r } = Oe(), c = se(() => import("./index-IGxCNti8.js")), a = se(() => import("./index-WkZdU_zw.js")), w = se(() => import("./index-hOLbkmql.js")), g = se(() => import("./index-Cln9MN7u.js")), h = se(() => import("./index-DgcFxYFp.js")), N = Pe(), O = ke(), t = e;
1148
1150
  let x = {
1149
1151
  schemas: [
1150
1152
  {
@@ -1251,7 +1253,7 @@ defineExpose({
1251
1253
  async function m(i = !1) {
1252
1254
  y.disableHover = i;
1253
1255
  }
1254
- function U(i) {
1256
+ function R(i) {
1255
1257
  ae(E, G(i));
1256
1258
  }
1257
1259
  function L() {
@@ -1271,11 +1273,11 @@ defineExpose({
1271
1273
  }
1272
1274
  return p(), n({
1273
1275
  revoke: O,
1274
- setData: U,
1276
+ setData: R,
1275
1277
  getData: L,
1276
1278
  reset: A,
1277
1279
  preview: f
1278
- }), (i, F) => R(z).initialized.value ? (H(), Y(Fe, {
1280
+ }), (i, F) => U(z).initialized.value ? (H(), Y(Fe, {
1279
1281
  key: 1,
1280
1282
  onResolve: C
1281
1283
  }, {
@@ -1283,7 +1285,7 @@ defineExpose({
1283
1285
  k("div", Nt, [
1284
1286
  k("div", Ft, [
1285
1287
  K(i.$slots, "header", {}, () => [
1286
- t.hiddenHeader ? Ne("", !0) : (H(), Y(R(c), {
1288
+ t.hiddenHeader ? Ne("", !0) : (H(), Y(U(c), {
1287
1289
  key: 0,
1288
1290
  onPreview: f,
1289
1291
  onSave: v
@@ -1313,9 +1315,9 @@ defineExpose({
1313
1315
  k("div", {
1314
1316
  class: Ge(["epic-split-view-container", { "hidden-header": i.hiddenHeader }])
1315
1317
  }, [
1316
- Q(R(a)),
1317
- Q(R(w)),
1318
- Q(R(g))
1318
+ Q(U(a)),
1319
+ Q(U(w)),
1320
+ Q(U(g))
1319
1321
  ], 2),
1320
1322
  Q(_t, {
1321
1323
  ref_key: "previewRef",
@@ -1325,14 +1327,14 @@ defineExpose({
1325
1327
  ]),
1326
1328
  fallback: T(() => [
1327
1329
  k("div", Vt, [
1328
- Q(R(h))
1330
+ Q(U(h))
1329
1331
  ])
1330
1332
  ]),
1331
1333
  _: 3
1332
1334
  })) : (H(), Ee("div", $t));
1333
1335
  }
1334
1336
  }), Pt = {
1335
- component: async () => await import("./index-DOa-ZTwb.js"),
1337
+ component: async () => await import("./index-B7wRhLwc.js"),
1336
1338
  defaultSchema: {
1337
1339
  label: "代码编辑器",
1338
1340
  type: "monacoEditor",
@@ -1382,7 +1384,7 @@ defineExpose({
1382
1384
  }
1383
1385
  }, { t: me } = Oe();
1384
1386
  function Mt(e) {
1385
- e.component("EInputSize", async () => await import("./index-Cx7gKpkD.js")), e.component("EColEditor", async () => await import("./index-CpTA2IRB.js")), e.component("EActionEditor", async () => await import("./index-G5QRu6oQ.js")), e.component("ERuleEditor", async () => await import("./index-BUqQozMa.js")), e.component("EOptionsEditor", async () => await import("./index-DOoGneHO.js")), e.component("ENode", async () => await import("./index-CqmFt57U.js")), e.component("EDataSource", async () => await import("./index-B0OgKtuT.js")), e.component("EColumnEditor", async () => await import("./index-DMK88APm.js")), e.component("PaddingMarginControl", async () => await import("./index-CdnV7DS4.js")), e.component("ESourceDataSelect", async () => await import("./index-rjUej4xS.js")), e.registerActivitybar({
1387
+ e.component("EInputSize", async () => await import("./index-Cx7gKpkD.js")), e.component("EColEditor", async () => await import("./index-CpTA2IRB.js")), e.component("EActionEditor", async () => await import("./index-BUt-kkII.js")), e.component("ERuleEditor", async () => await import("./index-CItH08Va.js")), e.component("EOptionsEditor", async () => await import("./index-DrBumgPi.js")), e.component("ENode", async () => await import("./index-5XsDINLZ.js")), e.component("EDataSource", async () => await import("./index-B0OgKtuT.js")), e.component("EColumnEditor", async () => await import("./index-BokMTYeM.js")), e.component("PaddingMarginControl", async () => await import("./index-CdnV7DS4.js")), e.component("ESourceDataSelect", async () => await import("./index-CNtDbtWP.js")), e.registerActivitybar({
1386
1388
  id: "component_view",
1387
1389
  title: me("component"),
1388
1390
  icon: "icon--epic--extension-outline",
@@ -1395,11 +1397,11 @@ function Mt(e) {
1395
1397
  }), e.registerRightSidebar({
1396
1398
  id: "attribute_view",
1397
1399
  title: me("attribute"),
1398
- component: async () => await import("./attributeView-BNUb6_IW.js")
1400
+ component: async () => await import("./attributeView-BBN4W9TM.js")
1399
1401
  }), e.registerRightSidebar({
1400
1402
  id: "style_view",
1401
1403
  title: me("style"),
1402
- component: async () => await import("./styleView-C8AriP_c.js")
1404
+ component: async () => await import("./styleView-DN0aAYgR.js")
1403
1405
  }), e.registerRightSidebar({
1404
1406
  id: "event_view",
1405
1407
  title: "事件",
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-XixK3NVo.cjs"),e=require("./pluginManager-DWHAX8kP.cjs");exports.EBuilder=a._sfc_main$1;exports.EDesigner=a._sfc_main$2;exports.ENode=a._sfc_main;exports.debounce=a.debounce;exports.getDarkState=a.getDarkState;exports.initStore=a.initStore;exports.useDark=a.useDark;exports.useElementDrag=a.useElementDrag;exports.useElementZoom=a.useElementZoom;exports.useKeyPress=a.useKeyPress;exports.usePageManager=a.usePageManager;exports.useRevoke=a.useRevoke;exports.useStore=a.useStore;exports.useTheme=a.useTheme;exports.useTimedQuery=a.useTimedQuery;exports.EventBus=e.EventBus;exports.PluginManager=e.PluginManager;exports.capitalizeFirstLetter=e.capitalizeFirstLetter;exports.convertKFormData=e.convertKFormData;exports.deepClone=e.deepClone;exports.deepCompareAndModify=e.deepCompareAndModify;exports.deepEqual=e.deepEqual;exports.findSchemaById=e.findSchemaById;exports.findSchemaInfoById=e.findSchemaInfoById;exports.findSchemas=e.findSchemas;exports.generateNewSchema=e.generateNewSchema;exports.getFormFields=e.getFormFields;exports.getFormSchemas=e.getFormSchemas;exports.getMatchedById=e.getMatchedById;exports.getUUID=e.getUUID;exports.getValueByPath=e.getValueByPath;exports.loadAsyncComponent=e.loadAsyncComponent;exports.mapSchemas=e.mapSchemas;exports.pluginManager=e.pluginManager;exports.recursionConvertedNode=e.recursionConvertedNode;exports.setValueByPath=e.setValueByPath;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-CDH3QO51.cjs"),e=require("./pluginManager-DWHAX8kP.cjs");exports.EBuilder=a._sfc_main$1;exports.EDesigner=a._sfc_main$2;exports.ENode=a._sfc_main;exports.debounce=a.debounce;exports.getDarkState=a.getDarkState;exports.initStore=a.initStore;exports.useDark=a.useDark;exports.useElementDrag=a.useElementDrag;exports.useElementZoom=a.useElementZoom;exports.useKeyPress=a.useKeyPress;exports.usePageManager=a.usePageManager;exports.useRevoke=a.useRevoke;exports.useStore=a.useStore;exports.useTheme=a.useTheme;exports.useTimedQuery=a.useTimedQuery;exports.EventBus=e.EventBus;exports.PluginManager=e.PluginManager;exports.capitalizeFirstLetter=e.capitalizeFirstLetter;exports.convertKFormData=e.convertKFormData;exports.deepClone=e.deepClone;exports.deepCompareAndModify=e.deepCompareAndModify;exports.deepEqual=e.deepEqual;exports.findSchemaById=e.findSchemaById;exports.findSchemaInfoById=e.findSchemaInfoById;exports.findSchemas=e.findSchemas;exports.generateNewSchema=e.generateNewSchema;exports.getFormFields=e.getFormFields;exports.getFormSchemas=e.getFormSchemas;exports.getMatchedById=e.getMatchedById;exports.getUUID=e.getUUID;exports.getValueByPath=e.getValueByPath;exports.loadAsyncComponent=e.loadAsyncComponent;exports.mapSchemas=e.mapSchemas;exports.pluginManager=e.pluginManager;exports.recursionConvertedNode=e.recursionConvertedNode;exports.setValueByPath=e.setValueByPath;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as s, j as t, _ as r, f as o, o as n, p as d, n as m, c as u, e as i, m as g, k as c, l, u as h, h as p, a as f } from "./index-C2a8y8Ga.js";
1
+ import { i as s, j as t, _ as r, f as o, o as n, p as d, n as m, c as u, e as i, m as g, k as c, l, u as h, h as p, a as f } from "./index-rQwg6K9E.js";
2
2
  import { E as S, P as E, c as B, q as D, a as P, d as k, b as F, n as I, o as M, f as v, h as C, j as N, k as b, e as j, g as q, i as x, l as A, m as K, p as T, r as U, s as V } from "./pluginManager-BCnrHPYv.js";
3
3
  export {
4
4
  s as EBuilder,
@@ -21,29 +21,29 @@ const oe = /* @__PURE__ */ W({
21
21
  sourceDateUrl: { type: String, default: "" }
22
22
  },
23
23
  emits: ["update:modelValue", "update:modelValueLabel"],
24
- setup(_, { emit: q }) {
25
- const O = `paginated-select-dropdown-${Math.random().toString(36).slice(2, 8)}`, a = _;
26
- console.log("%c [ ]-37", "font-size:13px; background:pink; color:#bf2c9f;", a.sourceDateUrl);
27
- const k = q, v = u(a.modelValue);
24
+ setup(k, { emit: q }) {
25
+ const _ = `paginated-select-dropdown-${Math.random().toString(36).slice(2, 8)}`, a = k;
26
+ console.log("%c [ ]-37", "font-size:13px; background:pink; color:#bf2c9f;", a), console.log("%c [ ]-37", "font-size:13px; background:pink; color:#bf2c9f;", a.sourceDateUrl);
27
+ const O = q, v = u(a.modelValue);
28
28
  j(
29
29
  () => a.modelValue,
30
30
  (e) => {
31
31
  v.value = e;
32
32
  }
33
33
  ), j(v, (e) => {
34
- k("update:modelValue", e);
34
+ O("update:modelValue", e);
35
35
  let l = n.value.find((t) => t.value === e);
36
- k("update:modelValueLabel", {
36
+ O("update:modelValueLabel", {
37
37
  label: l.label || a.defaultData.label,
38
38
  value: l.value || a.defaultData.value
39
39
  });
40
40
  });
41
- const n = u(a.defaultData && Object.keys(a.defaultData).length ? [a.defaultData] : []), s = u(!1), p = u(0), c = u(1), P = u(""), m = u(!1), i = u(null), f = u(null);
42
- function T() {
41
+ const n = u(a.defaultData && Object.keys(a.defaultData).length ? [a.defaultData] : []), s = u(!1), p = u(0), c = u(1), z = u(""), m = u(!1), i = u(null), f = u(null);
42
+ function P() {
43
43
  n.value = [], p.value = 0, c.value = 1, m.value = !1;
44
44
  }
45
45
  async function g() {
46
- var e, l, t, r, z, x, B, E, K, L;
46
+ var e, l, t, r, T, x, B, E, K, L;
47
47
  if (!(s.value || m.value)) {
48
48
  s.value = !0;
49
49
  try {
@@ -54,7 +54,7 @@ const oe = /* @__PURE__ */ W({
54
54
  params: o.value.params ? {
55
55
  ...JSON.parse(o.value.params),
56
56
  [`${(l = (e = a == null ? void 0 : a.componentSchema) == null ? void 0 : e.componentProps) == null ? void 0 : l.pageKey}`]: c.value,
57
- [`${(r = (t = a == null ? void 0 : a.componentSchema) == null ? void 0 : t.componentProps) == null ? void 0 : r.searchKey}`]: P.value
57
+ [`${(r = (t = a == null ? void 0 : a.componentSchema) == null ? void 0 : t.componentProps) == null ? void 0 : r.searchKey}`]: z.value
58
58
  } : {},
59
59
  headers: {
60
60
  ...JSON.parse(o.value.headers),
@@ -66,7 +66,7 @@ const oe = /* @__PURE__ */ W({
66
66
  }
67
67
  });
68
68
  if (o.value && o.value.dataPath) {
69
- const Z = ((z = o.value) == null ? void 0 : z.dataPath.split(".")).reduce((w, V) => w[V], d.data), C = (x = o.value) == null ? void 0 : x.dataPath.split(".");
69
+ const Z = ((T = o.value) == null ? void 0 : T.dataPath.split(".")).reduce((w, V) => w[V], d.data), C = (x = o.value) == null ? void 0 : x.dataPath.split(".");
70
70
  C.pop();
71
71
  const R = C.reduce((w, V) => w[V], d.data);
72
72
  let N = b(Z, o.value.dataKey, o.value.dataValue);
@@ -115,13 +115,13 @@ const oe = /* @__PURE__ */ W({
115
115
  }
116
116
  I();
117
117
  function $(e) {
118
- P.value = e, c.value = 1, T(), g();
118
+ z.value = e, c.value = 1, P(), g();
119
119
  }
120
120
  function J(e) {
121
- e ? (T(), g(), ee(() => setTimeout(M, 0))) : H();
121
+ e ? (P(), g(), ee(() => setTimeout(M, 0))) : H();
122
122
  }
123
123
  function M() {
124
- const e = document.querySelector(`.${O} .el-select-dropdown__wrap`);
124
+ const e = document.querySelector(`.${_} .el-select-dropdown__wrap`);
125
125
  e ? (i.value = e, e.addEventListener("scroll", y)) : (f.value = new MutationObserver(() => {
126
126
  const l = document.querySelector(".paginated-select-dropdown .el-select-dropdown__wrap");
127
127
  l && (i.value = l, l.addEventListener("scroll", y), f.value.disconnect());
@@ -142,12 +142,12 @@ const oe = /* @__PURE__ */ W({
142
142
  filterable: "",
143
143
  remote: "",
144
144
  clearable: "",
145
- placeholder: _.placeholder,
145
+ placeholder: k.placeholder,
146
146
  "remote-method": $,
147
147
  loading: s.value,
148
148
  teleported: !0,
149
149
  onVisibleChange: J,
150
- "popper-class": O,
150
+ "popper-class": _,
151
151
  style: { width: "100%" }
152
152
  }, {
153
153
  default: G(() => [
@@ -160,7 +160,7 @@ const oe = /* @__PURE__ */ W({
160
160
  _: 1
161
161
  }, 8, ["modelValue", "placeholder", "loading"]));
162
162
  }
163
- }), ie = /* @__PURE__ */ te(oe, [["__scopeId", "data-v-dc041408"]]);
163
+ }), ie = /* @__PURE__ */ te(oe, [["__scopeId", "data-v-20507400"]]);
164
164
  export {
165
165
  ie as default
166
166
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),j=require("./axios-tuVKNgv9.cjs"),h=require("./index-BoL2PSBk.cjs"),C=require("element-plus"),J=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Z=l.defineComponent({__name:"selectPage",props:{modelValue:[String,Number],placeholder:String,requestFn:{type:Function,default:()=>{}},valueKey:{type:String,default:"value"},labelKey:{type:String,default:"label"},pageSize:{type:Number,default:20},defaultData:{type:Object,default:()=>{}},componentSchema:{type:Object,default:()=>{}},sourceDateUrl:{type:String,default:""}},emits:["update:modelValue","update:modelValueLabel"],setup(k,{emit:N}){const D=`paginated-select-dropdown-${Math.random().toString(36).slice(2,8)}`,a=k;console.log("%c [ ]-37","font-size:13px; background:pink; color:#bf2c9f;",a),console.log("%c [ ]-37","font-size:13px; background:pink; color:#bf2c9f;",a.sourceDateUrl);const _=N,v=l.ref(a.modelValue);l.watch(()=>a.modelValue,e=>{v.value=e}),l.watch(v,e=>{_("update:modelValue",e);let t=r.value.find(o=>o.value===e);_("update:modelValueLabel",{label:t.label||a.defaultData.label,value:t.value||a.defaultData.value})});const r=l.ref(a.defaultData&&Object.keys(a.defaultData).length?[a.defaultData]:[]),d=l.ref(!1),p=l.ref(0),c=l.ref(1),x=l.ref(""),f=l.ref(!1),i=l.ref(null),m=l.ref(null);function O(){r.value=[],p.value=0,c.value=1,f.value=!1}async function g(){var e,t,o,u,P,B,T,z,q,E;if(!(d.value||f.value)){d.value=!0;try{const s=await j.axios({url:n.value.url,method:n.value.method,data:n.value.body?JSON.parse(n.value.body):{},params:n.value.params?{...JSON.parse(n.value.params),[`${(t=(e=a==null?void 0:a.componentSchema)==null?void 0:e.componentProps)==null?void 0:t.pageKey}`]:c.value,[`${(u=(o=a==null?void 0:a.componentSchema)==null?void 0:o.componentProps)==null?void 0:u.searchKey}`]:x.value}:{},headers:{...JSON.parse(n.value.headers),Authorization:"Bearer "+h.api.get("Admin-Token"),lang:h.api.get("saas-locale")||"zh-CN",zone:Intl.DateTimeFormat().resolvedOptions().timeZone}});if(n.value&&n.value.dataPath){const $=((P=n.value)==null?void 0:P.dataPath.split(".")).reduce((w,V)=>w[V],s.data),K=(B=n.value)==null?void 0:B.dataPath.split(".");K.pop();const H=K.reduce((w,V)=>w[V],s.data);let L=b($,n.value.dataKey,n.value.dataValue);c.value===1?r.value=L:r.value=r.value.concat(L),p.value=H[(z=(T=a==null?void 0:a.componentSchema)==null?void 0:T.componentProps)==null?void 0:z.pageTotalKey]}else{let S=b(s.data,n.value.dataKey,n.value.dataValue);c.value===1?r.value=S:r.value=r.value.concat(S),p.value=s.data[(E=(q=a==null?void 0:a.componentSchema)==null?void 0:q.componentProps)==null?void 0:E.pageTotalKey]}r.value.length>=p.value&&(f.value=!0)}catch(s){console.error("fetch error:",s)}finally{d.value=!1}}}const n=l.ref();function b(e,t,o){return e&&Object.prototype.toString.call(e)==="[object Array]"?e.map(u=>u.children&&u.children.length?{label:u[t],value:u[o]+"",children:b(u.children,t,o)}:{label:u[t],value:u[o]+""}):[]}async function A(){var t,o;console.log("%c [ ]-171","font-size:13px; background:pink; color:#bf2c9f;",a.sourceDateUrl);let e=await j.axios({url:a.sourceDateUrl,method:"get",params:{id:(o=(t=a==null?void 0:a.componentSchema)==null?void 0:t.componentProps)==null?void 0:o.dynamicId},headers:{Authorization:"Bearer "+h.api.get("Admin-Token"),lang:h.api.get("saas-locale")||"zh-CN",zone:Intl.DateTimeFormat().resolvedOptions().timeZone}});e.data.code===200&&(n.value=e.data.data)}A();function F(e){x.value=e,c.value=1,O(),g()}function U(e){e?(O(),g(),l.nextTick(()=>setTimeout(I,0))):M()}function I(){const e=document.querySelector(`.${D} .el-select-dropdown__wrap`);e?(i.value=e,e.addEventListener("scroll",y)):(m.value=new MutationObserver(()=>{const t=document.querySelector(".paginated-select-dropdown .el-select-dropdown__wrap");t&&(i.value=t,t.addEventListener("scroll",y),m.value.disconnect())}),m.value.observe(document.body,{childList:!0,subtree:!0}))}function M(){var e;i.value&&i.value.removeEventListener("scroll",y),(e=m.value)==null||e.disconnect()}function y(){const e=i.value;if(!e||d.value||f.value)return;e.scrollTop+e.clientHeight>=e.scrollHeight-10&&(c.value++,g())}return(e,t)=>(l.openBlock(),l.createBlock(l.unref(C.ElSelect),{modelValue:v.value,"onUpdate:modelValue":t[0]||(t[0]=o=>v.value=o),filterable:"",remote:"",clearable:"",placeholder:k.placeholder,"remote-method":F,loading:d.value,teleported:!0,onVisibleChange:U,"popper-class":D,style:{width:"100%"}},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,o=>(l.openBlock(),l.createBlock(l.unref(C.ElOption),{key:o.value,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","loading"]))}}),R=J._export_sfc(Z,[["__scopeId","data-v-20507400"]]);exports.default=R;