bp-aicc-editor 1.0.0

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 (177) hide show
  1. package/LICENSE +21 -0
  2. package/README.EN.md +129 -0
  3. package/README.md +133 -0
  4. package/lib/accounting-BdNhlOvc.js +150 -0
  5. package/lib/arrow-right-ZYLcC6uE.js +24 -0
  6. package/lib/atlas-Dqnvg58g.js +27 -0
  7. package/lib/blueprint-7yYCtfFC.js +28 -0
  8. package/lib/border-box-BoVwKoLu.js +226 -0
  9. package/lib/browser_upgrade/chrome.png +0 -0
  10. package/lib/browser_upgrade/edge.png +0 -0
  11. package/lib/browser_upgrade/index.css +49 -0
  12. package/lib/btn-group-aVjYHP70.js +125 -0
  13. package/lib/btn-return-KOGYYoba.js +37 -0
  14. package/lib/button-base-CUvUtpPb.js +42 -0
  15. package/lib/cache-Cs2VtqJi.js +43 -0
  16. package/lib/capitalize-CJ7zhOsJ.js +46 -0
  17. package/lib/carousel-table-hn7W3uoD.js +163 -0
  18. package/lib/children-manager-CdxNQ6Oe.js +457 -0
  19. package/lib/circle-DdqdosvQ.js +10 -0
  20. package/lib/config-6kqKwjzS.js +783 -0
  21. package/lib/config-B1XQHD5S.js +110 -0
  22. package/lib/config-BqncRAOx.js +167 -0
  23. package/lib/config-CSUhHF5L.js +10 -0
  24. package/lib/config-CXGTRw74.js +743 -0
  25. package/lib/config-CjMfBTu9.js +75 -0
  26. package/lib/config-Cm22p_rY.js +40 -0
  27. package/lib/config-D3z2R85K.js +373 -0
  28. package/lib/config-D846M2Gv.js +813 -0
  29. package/lib/config-DHGpQmWe.js +695 -0
  30. package/lib/config-DJJlRxrQ.js +510 -0
  31. package/lib/config-DOtfpO43.js +64 -0
  32. package/lib/config-DS3NxQuJ.js +427 -0
  33. package/lib/config-DSw2PMKb.js +528 -0
  34. package/lib/config-DwVaqCyN.js +369 -0
  35. package/lib/config-Ec_zeOmT.js +10 -0
  36. package/lib/config-V6sABZH7.js +152 -0
  37. package/lib/config-XBAZDWTe.js +739 -0
  38. package/lib/config-ZZyCB-UG.js +210 -0
  39. package/lib/config-efyvf2nq.js +799 -0
  40. package/lib/context-Bl7hm9BN.js +5 -0
  41. package/lib/context-DXwgwPsi.js +5 -0
  42. package/lib/dashedLine-CJojzUDO.js +23 -0
  43. package/lib/data-CnP9NKXT.js +7 -0
  44. package/lib/data-field-DL4ZWkqD.js +17 -0
  45. package/lib/data-source-9Lgf-grI.js +78 -0
  46. package/lib/datav-BNctF3aF.js +89 -0
  47. package/lib/dater-BmOxJMnU.js +34 -0
  48. package/lib/db-rnJHM_q3.js +22 -0
  49. package/lib/decoration-ByPSHV8P.js +408 -0
  50. package/lib/delete-074QJWYN.js +112 -0
  51. package/lib/dialogBox-D3bwyGqh.js +21 -0
  52. package/lib/dialogSquare-C4KW-cRk.js +43 -0
  53. package/lib/dottedLine-CUbyTDpF.js +23 -0
  54. package/lib/doubleHeadedArrow-ph10_VNV.js +31 -0
  55. package/lib/ds-api-editor-uAArtQJI.js +115 -0
  56. package/lib/ds-global-editor-Cp80r2NN.js +121 -0
  57. package/lib/ds-sql-editor-ijeSFlXA.js +338 -0
  58. package/lib/ds-static-editor-CyEO_12Q.js +21592 -0
  59. package/lib/eightPointedStar-iyNwBma5.js +12 -0
  60. package/lib/empty-panel-C6Y6WgQ5.js +49 -0
  61. package/lib/event-DDj_G-ix.js +130 -0
  62. package/lib/favicon.svg +14 -0
  63. package/lib/filter-panel-BXIsc124.js +573 -0
  64. package/lib/fivePointedStar-CG-mQPKI.js +12 -0
  65. package/lib/fourPointedStar-Cjt9WMZi.js +12 -0
  66. package/lib/full-screen-By33Ud_D.js +34 -0
  67. package/lib/group-Bw2QYoqv.js +24 -0
  68. package/lib/heart-BS_j9yRq.js +4 -0
  69. package/lib/hexagon-BfE9vpeG.js +12 -0
  70. package/lib/hexagonalStar-CDF1zFRy.js +12 -0
  71. package/lib/icon/add.png +0 -0
  72. package/lib/icon/align-center.png +0 -0
  73. package/lib/icon/amplify.png +0 -0
  74. package/lib/icon/audio.png +0 -0
  75. package/lib/icon/bottomUp.png +0 -0
  76. package/lib/icon/carouselList.png +0 -0
  77. package/lib/icon/characters.png +0 -0
  78. package/lib/icon/delete.png +0 -0
  79. package/lib/icon/delete1.png +0 -0
  80. package/lib/icon/edit.png +0 -0
  81. package/lib/icon/file.png +0 -0
  82. package/lib/icon/graphic.png +0 -0
  83. package/lib/icon/icon/357/274/217/346/267/273/345/212/240 /347/231/275/350/211/262 1@2x.png +0 -0
  84. package/lib/icon/icon/357/274/217/346/267/273/345/212/240@2x.png +0 -0
  85. package/lib/icon/img.png +0 -0
  86. package/lib/icon/lock.png +0 -0
  87. package/lib/icon/multiline.png +0 -0
  88. package/lib/icon/navigate.png +0 -0
  89. package/lib/icon/next.png +0 -0
  90. package/lib/icon/pictureScrolling.png +0 -0
  91. package/lib/icon/previous.png +0 -0
  92. package/lib/icon/reduce.png +0 -0
  93. package/lib/icon/return.png +0 -0
  94. package/lib/icon/save.png +0 -0
  95. package/lib/icon/scBg.png +0 -0
  96. package/lib/icon/scrollText.png +0 -0
  97. package/lib/icon/search.png +0 -0
  98. package/lib/icon/share.png +0 -0
  99. package/lib/icon/topUp.png +0 -0
  100. package/lib/icon/upload.png +0 -0
  101. package/lib/icon/video.png +0 -0
  102. package/lib/icon/view.png +0 -0
  103. package/lib/icon//345/244/215/351/200/211/357/274/217/346/234/252/351/200/211@2x.png +0 -0
  104. package/lib/icon//345/244/215/351/200/211/357/274/217/351/200/211/344/270/255@2x(1).png +0 -0
  105. package/lib/icon//345/244/215/351/200/211/357/274/217/351/200/211/344/270/255@2x.png +0 -0
  106. package/lib/iking-utils.es-Ba74AedH.js +13822 -0
  107. package/lib/index-B76XXskt.js +225 -0
  108. package/lib/index-B9lRx-kg.js +85 -0
  109. package/lib/index-B9nm6Rgv.js +142 -0
  110. package/lib/index-BAN9B0Xt.js +176 -0
  111. package/lib/index-BH6iU67J.js +209 -0
  112. package/lib/index-BSeD4M2U.js +988 -0
  113. package/lib/index-BbUCT3bG.js +66 -0
  114. package/lib/index-Bjs1bW2W.js +6291 -0
  115. package/lib/index-Bzc3Ri47.js +472 -0
  116. package/lib/index-C2ezj_lw.js +19 -0
  117. package/lib/index-C8Ni1uMd.js +435 -0
  118. package/lib/index-CCCckUnm.js +19 -0
  119. package/lib/index-CGni9huM.js +339 -0
  120. package/lib/index-CI6xXcR0.js +47 -0
  121. package/lib/index-CTo4-44e.js +2013 -0
  122. package/lib/index-CX6tHoIu.js +208 -0
  123. package/lib/index-Cb06BDgi.js +48 -0
  124. package/lib/index-CuapA_N-.js +586 -0
  125. package/lib/index-D0Kh7c2E.js +142 -0
  126. package/lib/index-D8pryMlS.js +228 -0
  127. package/lib/index-DGErpAp1.js +245 -0
  128. package/lib/index-DHe-NWes.js +415 -0
  129. package/lib/index-DL5IJLR7.js +156 -0
  130. package/lib/index-DN_9YBN_.js +957 -0
  131. package/lib/index-DOYvASbD.js +121 -0
  132. package/lib/index-D_ojDCWy.js +52 -0
  133. package/lib/index-DcmokBSP.js +109 -0
  134. package/lib/index-Dm1le54W.js +226 -0
  135. package/lib/index-Dpg5we85.js +127 -0
  136. package/lib/index-IeVkGUKs.js +146 -0
  137. package/lib/index-VSfx-dDV.js +87 -0
  138. package/lib/index-_Ya8vNUb.js +79 -0
  139. package/lib/index.es.js +5 -0
  140. package/lib/index.umd.js +99 -0
  141. package/lib/kebabCase-CO6lu_Gu.js +250 -0
  142. package/lib/keyMap-wL6Ma83z.js +91 -0
  143. package/lib/layer-setting-panel-C86c3fN0.js +486 -0
  144. package/lib/main-graph-BjOO_j7Y.js +43 -0
  145. package/lib/marquee-B6qUH-Kc.js +49 -0
  146. package/lib/message-carousel-ToN1yK7K.js +34 -0
  147. package/lib/multi-layout-config-DWBvxtbQ.js +312 -0
  148. package/lib/number-title-flop-DUzpC1bo.js +112 -0
  149. package/lib/orderBy--EIhNVJu.js +388 -0
  150. package/lib/page-config-DT1C_kDM.js +5598 -0
  151. package/lib/page-table-U2Zv9dzo.js +169 -0
  152. package/lib/paragraph-D7CutH53.js +51 -0
  153. package/lib/pentagon-6sVh023X.js +12 -0
  154. package/lib/plus-DjE6l8qH.js +24 -0
  155. package/lib/rank-board-Cgj8rzLd.js +121 -0
  156. package/lib/rectangle-BQXP06pk.js +10 -0
  157. package/lib/roundedRectangle-DnEbzLph.js +10 -0
  158. package/lib/scroll-article-BC3pQhTm.js +130 -0
  159. package/lib/scroll-rank-BsbvGjIy.js +191 -0
  160. package/lib/scroll-rank-bar-BfceYhB-.js +189 -0
  161. package/lib/scroll-table-BTbnMVFS.js +303 -0
  162. package/lib/search-DkzwOoCx.js +24 -0
  163. package/lib/select-options-BTOkre7F.js +338 -0
  164. package/lib/setting-panel-CMKniQhs.js +397 -0
  165. package/lib/source-panel-ClGOmTVn.js +557 -0
  166. package/lib/straightLine-DPMRNFNz.js +23 -0
  167. package/lib/style.css +1 -0
  168. package/lib/table-bar-ciEVdDFG.js +117 -0
  169. package/lib/transform-layer.vue_vue_type_style_index_0_scoped_04cdae36_lang-6ixEI9oF.js +593 -0
  170. package/lib/triangle-NkNGdZCH.js +15 -0
  171. package/lib/use-border-BUij5e0F.js +29 -0
  172. package/lib/use-data-center-Cj9FGyCg.js +31 -0
  173. package/lib/use-series-Cmnkexlu.js +18 -0
  174. package/lib/use-swiper-B17v1vT0.js +12 -0
  175. package/lib/vue-util-oCdnLsQn.js +6 -0
  176. package/lib/warning-DYO0amRd.js +25 -0
  177. package/package.json +154 -0
@@ -0,0 +1,146 @@
1
+ import { _ as g, b as S, l as C } from "./index-Bjs1bW2W.js";
2
+ import { storeToRefs as M } from "pinia";
3
+ import { createElementBlock as d, openBlock as u, createElementVNode as v, defineComponent as w, computed as p, ref as f, defineAsyncComponent as h, toRef as _, watch as P, normalizeStyle as j, createBlock as O, resolveDynamicComponent as z } from "vue";
4
+ const B = (o, t, i) => {
5
+ const e = o[t];
6
+ return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((n, c) => {
7
+ (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(c.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + t + (t.split("/").length !== i ? ". Note that variables only represent file names one level deep." : ""))));
8
+ });
9
+ }, A = {}, H = { style: { stroke: "#919191", fill: "#919191", width: "100%", height: "100%" } };
10
+ function T(o, t) {
11
+ return u(), d("svg", H, [...t[0] || (t[0] = [
12
+ v("path", {
13
+ fill: "inherit",
14
+ "stroke-linecap": "butt",
15
+ "stroke-width": "30.825",
16
+ d: "M0,205.5 L700.175,205.5"
17
+ }, null, -1),
18
+ v("path", {
19
+ fill: "inherit",
20
+ "stroke-linejoin": "round",
21
+ "stroke-linecap": "round",
22
+ "stroke-width": "30.825",
23
+ d: "M630.8187499999999,159.2625 L715.5875,205.5 L630.8187499999999,251.7375Z"
24
+ }, null, -1)
25
+ ])]);
26
+ }
27
+ const y = /* @__PURE__ */ g(A, [["render", T]]), L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28
+ __proto__: null,
29
+ default: y
30
+ }, Symbol.toStringTag, { value: "Module" })), q = ["viewBox"], U = /* @__PURE__ */ w({
31
+ __name: "heart",
32
+ props: {
33
+ infoWH: {
34
+ type: Object,
35
+ required: !0
36
+ }
37
+ },
38
+ setup(o) {
39
+ const t = o, i = p(() => `0 0 ${t.infoWH.w} ${t.infoWH.h}`);
40
+ return (e, n) => (u(), d("svg", {
41
+ style: { width: "100%", height: "100%" },
42
+ viewBox: i.value
43
+ }, [...n[0] || (n[0] = [
44
+ v("path", { d: `
45
+ M28.9476,65.62437
46
+ C-30.190300000000004,128.232 11.4767,189.06 63.94057,221.94000000000003
47
+ L370.7632,411
48
+ L671.058,221.94000000000003
49
+ C720.035,187.6626 738.3100000000001,150.6726 728.2221999999999,109.49040000000001
50
+ C713.8946,52.5258 640.7946000000001,8.22 550.443,2.055
51
+ C495.1794,-1.82073 438.59999999999997,8.22 402.05,30.413999999999998
52
+ C388.892,36.579 378.658,41.1 365.5,50.5119
53
+ C358.19,41.1 347.22499999999997,34.524 333.336,27.9069
54
+ C285.09000000000003,4.11 219.29999999999998,-4.932 165.937,2.466
55
+ C109.64999999999999,9.3297 60.38060000000001,32.3457 29.240000000000002,65.76Z` }, null, -1)
56
+ ])], 8, q));
57
+ }
58
+ }), E = {}, G = { style: { stroke: "#919191", fill: "#919191", width: "100%", height: "100%" } };
59
+ function R(o, t) {
60
+ return u(), d("svg", G, [...t[0] || (t[0] = [
61
+ v("path", { d: "M511.7,0 L731,123.3 L731,287.7 L511.7,411 L219.29999999999998,411 L0,287.7 L0,123.3 L219.29999999999998,0 L511.7,0Z" }, null, -1)
62
+ ])]);
63
+ }
64
+ const b = /* @__PURE__ */ g(E, [["render", R]]), V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
65
+ __proto__: null,
66
+ default: b
67
+ }, Symbol.toStringTag, { value: "Module" })), W = w({
68
+ name: "VMainGraph",
69
+ components: {
70
+ Heart: U,
71
+ Octagonal: b,
72
+ Arrow: y
73
+ },
74
+ props: {
75
+ com: {
76
+ type: Object,
77
+ required: !0
78
+ }
79
+ },
80
+ setup(o) {
81
+ const t = f(h(() => Promise.resolve().then(() => L))), { pageConfig: i } = M(S()), e = _(o.com, "config"), n = _(o.com, "attr"), c = p(() => i.value.resourceList[e.value.url]), s = f("");
82
+ (async (r) => {
83
+ if (!r)
84
+ return s.value = "";
85
+ r.startsWith("http"), s.value = r;
86
+ })(i.value.resourceList[e.value.url]), P(
87
+ () => e.value.svgName,
88
+ (r) => {
89
+ console.log("dddd", r), k(r);
90
+ },
91
+ {
92
+ deep: !0
93
+ }
94
+ );
95
+ const k = (r) => {
96
+ t.value = h(() => B(/* @__PURE__ */ Object.assign({ "./svgList/arrow.vue": () => Promise.resolve().then(() => L), "./svgList/circle.vue": () => import("./circle-DdqdosvQ.js"), "./svgList/dashedLine.vue": () => import("./dashedLine-CJojzUDO.js"), "./svgList/dialogBox.vue": () => import("./dialogBox-D3bwyGqh.js"), "./svgList/dialogSquare.vue": () => import("./dialogSquare-C4KW-cRk.js"), "./svgList/dottedLine.vue": () => import("./dottedLine-CUbyTDpF.js"), "./svgList/doubleHeadedArrow.vue": () => import("./doubleHeadedArrow-ph10_VNV.js"), "./svgList/eightPointedStar.vue": () => import("./eightPointedStar-iyNwBma5.js"), "./svgList/fivePointedStar.vue": () => import("./fivePointedStar-CG-mQPKI.js"), "./svgList/fourPointedStar.vue": () => import("./fourPointedStar-Cjt9WMZi.js"), "./svgList/heart.vue": () => import("./heart-BS_j9yRq.js"), "./svgList/hexagon.vue": () => import("./hexagon-BfE9vpeG.js"), "./svgList/hexagonalStar.vue": () => import("./hexagonalStar-CDF1zFRy.js"), "./svgList/octagonal.vue": () => Promise.resolve().then(() => V), "./svgList/pentagon.vue": () => import("./pentagon-6sVh023X.js"), "./svgList/rectangle.vue": () => import("./rectangle-BQXP06pk.js"), "./svgList/roundedRectangle.vue": () => import("./roundedRectangle-DnEbzLph.js"), "./svgList/straightLine.vue": () => import("./straightLine-DPMRNFNz.js"), "./svgList/triangle.vue": () => import("./triangle-NkNGdZCH.js") }), `./svgList/${r}.vue`, 3));
97
+ }, $ = p(() => {
98
+ const r = e.value.imageType === "vector";
99
+ let a = `url('${s.value}') 0% 0% / `, l = "";
100
+ return e.value.bgModel && (e.value.repeat === "repeat" ? (a += "auto repeat", l = "auto") : e.value.repeat === "repeat-x" ? (a += "auto 100% repeat-x", l = "auto 100%") : e.value.repeat === "repeat-y" ? (a += "100% repeat-y", l = "100%") : (a += "100% 100% no-repeat", l = "100% 100%")), {
101
+ width: `${n.value.w}px`,
102
+ height: `${n.value.h}px`,
103
+ "image-rendering": "-webkit-optimize-contrast",
104
+ background: r ? e.value.vectorFill : a,
105
+ "-webkit-mask-image": r ? `url(${e.value.vectorImage})` : "none",
106
+ "-webkit-mask-repeat": r ? e.value.repeat : "initial",
107
+ "-webkit-mask-size": r ? l : "initial",
108
+ "border-radius": `${e.value.radius}px`,
109
+ cursor: e.value.cursor ? "pointer" : "default",
110
+ overflow: "hidden"
111
+ };
112
+ }), x = p(() => ({
113
+ width: `${n.value.w}px`,
114
+ height: `${n.value.h}px`
115
+ }));
116
+ return {
117
+ attr: n,
118
+ imgUrl: s,
119
+ bgUrl: c,
120
+ config: e,
121
+ imgStyle: x,
122
+ wrapperStyle: $,
123
+ currentAsyncComponent: t
124
+ };
125
+ }
126
+ });
127
+ function N(o, t, i, e, n, c) {
128
+ return u(), d("div", {
129
+ class: "datav-wrapper",
130
+ style: j(o.wrapperStyle)
131
+ }, [
132
+ (u(), O(z(o.currentAsyncComponent), { "info-w-h": o.attr }, null, 8, ["info-w-h"]))
133
+ ], 4);
134
+ }
135
+ const m = /* @__PURE__ */ g(W, [["render", N]]);
136
+ m.install = (o) => {
137
+ o.component("VMainGraph", m), o.component("VMainGraphProp", C(() => import("./config-ZZyCB-UG.js")));
138
+ };
139
+ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
140
+ __proto__: null,
141
+ default: m
142
+ }, Symbol.toStringTag, { value: "Module" }));
143
+ export {
144
+ U as _,
145
+ J as i
146
+ };
@@ -0,0 +1,87 @@
1
+ import { defineComponent as b, ref as f, computed as p, onMounted as S, createElementBlock as s, openBlock as l, Fragment as L, renderList as k, createElementVNode as g, normalizeStyle as w, toDisplayString as E } from "vue";
2
+ import "element-plus";
3
+ import { u as x, b as D, a as M, h as $, i as c } from "./index-Bjs1bW2W.js";
4
+ import { c as z, l as B } from "./datav-BNctF3aF.js";
5
+ const F = { class: "componentListStyle" }, P = ["onDragstart", "draggable", "onClick"], V = /* @__PURE__ */ b({
6
+ __name: "index",
7
+ setup(T) {
8
+ const n = x(), d = D(), r = M();
9
+ f([]), p(() => n.components.show);
10
+ const h = {
11
+ type: "all",
12
+ name: "全部",
13
+ icon: "v-icon-view-grid",
14
+ data: []
15
+ }, m = $(c);
16
+ m.forEach((t) => {
17
+ t.data.unshift({
18
+ ...h,
19
+ data: t.data.flatMap((a) => a.data)
20
+ });
21
+ }), p(() => [
22
+ ...m,
23
+ {
24
+ type: "favorite",
25
+ name: "收藏",
26
+ icon: "v-icon-favorite",
27
+ data: [
28
+ {
29
+ name: "全部",
30
+ type: "all",
31
+ data: r.collectComs
32
+ },
33
+ {
34
+ name: "公共",
35
+ type: "public",
36
+ data: r.collectComs.filter((t) => t.isPublic)
37
+ },
38
+ {
39
+ name: "我的",
40
+ type: "mine",
41
+ data: r.collectComs.filter((t) => !t.isPublic)
42
+ }
43
+ ]
44
+ }
45
+ ]);
46
+ const v = async (t, a, e) => {
47
+ if (a) {
48
+ n.addLoading();
49
+ const o = await z(t, e);
50
+ if (!o) {
51
+ n.removeLoading();
52
+ return;
53
+ }
54
+ o.attr.x = Math.floor((d.pageConfig.width - o.attr.w) / 2), o.attr.y = Math.floor((d.pageConfig.height - o.attr.h) / 2), await B(o), r.select(o.id), n.removeLoading();
55
+ }
56
+ }, C = (t, a) => {
57
+ t.dataTransfer.setData("text", a);
58
+ }, y = (t) => `url(${new URL(t, import.meta.url).href})`, i = f([]), _ = () => {
59
+ c?.length > 0 && c.forEach((t) => {
60
+ t.data?.length > 0 && t.data.forEach((a) => {
61
+ a.data?.length > 0 && a.data.forEach((e) => {
62
+ i.value.push(e);
63
+ });
64
+ });
65
+ });
66
+ };
67
+ return S(() => {
68
+ i.value = [], _(), console.log("route-------------->", i);
69
+ }), (t, a) => (l(), s("div", F, [
70
+ (l(!0), s(L, null, k(i.value, (e, o) => (l(), s("div", {
71
+ onDragstart: (u) => C(u, e.name),
72
+ key: e.name,
73
+ draggable: e.used,
74
+ onClick: (u) => v(e.name, e.used, e)
75
+ }, [
76
+ g("div", {
77
+ class: "componentListStyle_item",
78
+ style: w(`background-image: ${y(e.img)};background-size: ${e.full ? "cover" : "contain"}`)
79
+ }, null, 4),
80
+ g("p", null, E(e.alias), 1)
81
+ ], 40, P))), 128))
82
+ ]));
83
+ }
84
+ });
85
+ export {
86
+ V as default
87
+ };
@@ -0,0 +1,79 @@
1
+ import { q as M, _ as P, l as V } from "./index-Bjs1bW2W.js";
2
+ import { defineComponent as k, computed as o, toRef as g, ref as s, watch as q, onMounted as A, onUnmounted as Y, nextTick as _, createElementBlock as y, openBlock as S, normalizeStyle as u, createElementVNode as x, createCommentVNode as z, toDisplayString as $ } from "vue";
3
+ import { u as D, a as R, g as B } from "./use-data-center-Cj9FGyCg.js";
4
+ const E = k({
5
+ name: "VParagraph",
6
+ props: {
7
+ com: {
8
+ type: Object,
9
+ required: !0
10
+ }
11
+ },
12
+ setup(e) {
13
+ const v = D();
14
+ R(e.com);
15
+ const d = o(() => v.dataMap[e.com.id]?.source ?? {}), m = o(() => B(e.com.apis.source.fields)), t = g(e.com, "config"), n = g(e.com, "attr"), i = s(null), l = s(""), r = s(""), a = s(0), c = s(0), f = o(() => ({
16
+ overflow: "hidden",
17
+ width: `${n.value.w}px`,
18
+ height: `${n.value.h}px`
19
+ })), T = o(() => ({
20
+ transform: l.value,
21
+ transition: r.value
22
+ })), C = o(() => ({
23
+ "font-family": `${t.value.textStyle.fontFamily}, Arial, sans-serif`,
24
+ "font-size": `${t.value.textStyle.fontSize}px`,
25
+ color: t.value.textStyle.color,
26
+ "font-weight": t.value.textStyle.fontWeight,
27
+ "text-align": t.value.textAlign,
28
+ "line-height": `${t.value.lineHeight}px`,
29
+ "text-indent": `${t.value.textIndent}px`,
30
+ "min-height": `${a.value}px`
31
+ })), b = o(() => d.value[m.value.value] || t.value.content), p = () => {
32
+ _(() => {
33
+ i.value && (a.value = i.value.offsetHeight), a.value > n.value.h ? (l.value = `translateY(-${a.value}px)`, r.value = `transform ${t.value.scroll.duration}ms linear 0s`, c.value = window.setTimeout(() => {
34
+ l.value = "translateY(0)", r.value = "none 0s ease 0s", t.value.scroll.overScroll && p();
35
+ }, t.value.scroll.duration)) : (a.value = n.value.h, l.value = "translateY(0)", r.value = "none 0s ease 0s");
36
+ });
37
+ }, h = M(p, 500);
38
+ return q([f, () => t.value.scroll.overScroll], () => {
39
+ clearTimeout(c.value), a.value = n.value.h, l.value = "translateY(0)", r.value = "none 0s ease 0s", h();
40
+ }), A(() => {
41
+ h();
42
+ }), Y(() => {
43
+ clearTimeout(c.value);
44
+ }), {
45
+ contentRef: i,
46
+ config: t,
47
+ wrapperStyle: f,
48
+ bigContentStyle: T,
49
+ contentStyle: C,
50
+ contentText: b
51
+ };
52
+ }
53
+ });
54
+ function F(e, v, d, m, t, n) {
55
+ return S(), y("div", {
56
+ class: "datav-wrapper",
57
+ style: u(e.wrapperStyle)
58
+ }, [
59
+ x("div", {
60
+ style: u(e.bigContentStyle)
61
+ }, [
62
+ x("div", {
63
+ ref: "contentRef",
64
+ style: u(e.contentStyle)
65
+ }, $(e.contentText), 5),
66
+ e.config.scroll.overScroll ? (S(), y("div", {
67
+ key: 0,
68
+ style: u(e.contentStyle)
69
+ }, $(e.contentText), 5)) : z("", !0)
70
+ ], 4)
71
+ ], 4);
72
+ }
73
+ const w = /* @__PURE__ */ P(E, [["render", F]]);
74
+ w.install = (e) => {
75
+ e.component("VParagraph", w), e.component("VParagraphProp", V(() => import("./config-BqncRAOx.js")));
76
+ };
77
+ export {
78
+ w as default
79
+ };
@@ -0,0 +1,5 @@
1
+ import { aZ as a, a_ as o } from "./index-Bjs1bW2W.js";
2
+ export {
3
+ a as ScreenEditor,
4
+ o as ScreenPreview
5
+ };