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,208 @@
1
+ import { s as N, _ as D, l as M } from "./index-Bjs1bW2W.js";
2
+ import { defineComponent as W, useCssVars as K, computed as d, toRef as P, resolveComponent as O, createElementBlock as y, openBlock as S, normalizeStyle as l, createVNode as q, createSlots as F, renderList as U, withCtx as H, createElementVNode as u, unref as J, createCommentVNode as C, toDisplayString as i } from "vue";
3
+ import { u as Q, a as X, g as Y } from "./use-data-center-Cj9FGyCg.js";
4
+ import { u as Z } from "./event-DDj_G-ix.js";
5
+ const ee = { class: "container" }, oe = { class: "left" }, te = { key: 0 }, re = { class: "right" }, se = /* @__PURE__ */ W({
6
+ __name: "index",
7
+ props: {
8
+ com: {
9
+ type: Object,
10
+ required: !0
11
+ }
12
+ },
13
+ setup(h) {
14
+ K((t) => ({
15
+ v0758120b: E.value
16
+ }));
17
+ const m = h, z = Q();
18
+ Z(), X(m.com);
19
+ const k = d(() => z.dataMap[m.com.id]?.source ?? []), b = d(() => Y(m.com.apis.source.fields)), v = d(() => k.value?.map((t) => ({
20
+ ...t,
21
+ x: t[b.value.x],
22
+ y: t[b.value.y],
23
+ z: t[b.value.z]
24
+ })).sort((t, r) => r[e.value.global.rankKey || b.value.z] - t[e.value.global.rankKey || b.value.z])), e = P(m.com, "config"), T = P(m.com, "attr"), $ = d(() => ({
25
+ width: `${T.value.w}px`,
26
+ height: `${T.value.h}px`
27
+ }));
28
+ function w(t) {
29
+ const r = e.value.series?.[t] || {}, a = { ...e.value.bar, ...r?.config?.bar }, { width: s, borderColor: o, borderType: p, borderWidth: g, borderRadius: c, background: f } = a;
30
+ return {
31
+ all: {
32
+ marginTop: useNumberToPx(e.value.global.barGap ?? 8),
33
+ height: useNumberToPx(s),
34
+ border: `${useNumberToPx(g)} ${p} ${setChartColor(o)}`,
35
+ borderRadius: useNumberToPx(c).join(" ")
36
+ },
37
+ bar: {
38
+ background: e.value.generate.color[t],
39
+ borderRadius: useNumberToPx(c).join(" "),
40
+ width: `${v.value?.[t].z}%`
41
+ },
42
+ bg: {
43
+ ...setChartColor(f),
44
+ borderRadius: useNumberToPx(c).join(" "),
45
+ width: `${100 - v.value?.[t].z}%`
46
+ }
47
+ };
48
+ }
49
+ function R(t) {
50
+ const r = e.value.series?.[t] || {}, a = { ...e.value.title, ...r?.config?.title }, { show: s, font: o } = a;
51
+ return {
52
+ opacity: s ? 1 : 0,
53
+ ...o,
54
+ marginLeft: useNumberToPx(e.value.global.titleLeft ?? 8),
55
+ fontSize: useNumberToPx(o.fontSize),
56
+ ...setChartColor(o.color)
57
+ };
58
+ }
59
+ function L(t) {
60
+ const r = e.value.series?.[t] || {}, a = { ...e.value.count, ...r?.config?.count }, { show: s, font: o } = a;
61
+ return {
62
+ opacity: s ? 1 : 0,
63
+ ...o,
64
+ fontSize: useNumberToPx(o.fontSize),
65
+ ...setChartColor(o.color)
66
+ };
67
+ }
68
+ function V(t) {
69
+ const r = e.value.series?.[t] || {}, a = { ...e.value.progress, ...r?.config?.progress }, { show: s, font: o } = a;
70
+ return {
71
+ opacity: s ? 1 : 0,
72
+ ...o,
73
+ marginLeft: useNumberToPx(e.value.global.progressLeft ?? 8),
74
+ fontSize: useNumberToPx(o.fontSize),
75
+ ...setChartColor(o.color)
76
+ };
77
+ }
78
+ function B() {
79
+ const { width: t, color: r } = e.value.global.streamer;
80
+ return {
81
+ width: useNumberToPx(t),
82
+ ...setChartColor(r)
83
+ };
84
+ }
85
+ function I(t) {
86
+ const r = e.value.series?.[t] || {}, a = { ...e.value.top }, { borderColor: s, borderType: o, borderWidth: p, borderRadius: g, font: c, padding: f, width: x, height: A } = a;
87
+ return {
88
+ border: `${useNumberToPx(p)} ${o} ${setChartColor(s)}`,
89
+ ...c,
90
+ background: e.value.generate.color[t],
91
+ color: setChartColor(c.color),
92
+ borderRadius: useNumberToPx(g),
93
+ fontSize: useNumberToPx(c.fontSize),
94
+ padding: useNumberToPx(f),
95
+ width: useNumberToPx(x),
96
+ height: useNumberToPx(A),
97
+ backgroundImage: r?.config?.top.image ? `url(${N(r?.config?.top.image)})` : "",
98
+ backgroundSize: "100% 100%",
99
+ textAlign: "center"
100
+ };
101
+ }
102
+ function j(t) {
103
+ const { top: r, width: a, height: s, background: o, image: p, borderWidth: g, borderType: c, borderColor: f, borderRadius: x } = e.value.bar.iconStyle;
104
+ return {
105
+ left: `${v.value?.[t].z}%`,
106
+ border: `${useNumberToPx(g)} ${c} ${setChartColor(f)}`,
107
+ borderRadius: useNumberToPx(x),
108
+ top: `-${useNumberToPx(r)}`,
109
+ width: useNumberToPx(a),
110
+ height: useNumberToPx(s),
111
+ ...setChartColor(o),
112
+ backgroundImage: p ? `url(${N(p)})` : "",
113
+ backgroundSize: "100% 100%"
114
+ };
115
+ }
116
+ const E = d(() => `${e.value.global.streamer.speed / 1e3}s`), n = d(() => e.value.swiper), G = useNumberToPx;
117
+ return (t, r) => {
118
+ const a = O("GlSwiper");
119
+ return S(), y("div", {
120
+ class: "datav-wrapper",
121
+ style: l($.value)
122
+ }, [
123
+ q(a, {
124
+ length: v.value.length,
125
+ loop: n.value.loop,
126
+ row: n.value.row,
127
+ col: n.value.col,
128
+ "space-between": n.value.spaceBetween,
129
+ autoplay: {
130
+ autoplay: n.value.autoplay.autoplay,
131
+ delay: n.value.autoplay.delay,
132
+ pauseOnMouseEnter: !0
133
+ },
134
+ direction: n.value.direction,
135
+ effect: n.value.effect,
136
+ "slides-per-group": n.value.slidesPerGroup
137
+ }, F({ _: 2 }, [
138
+ U(v.value, (s, o) => ({
139
+ name: o + 1,
140
+ fn: H(() => [
141
+ u("div", ee, [
142
+ u("div", {
143
+ class: "view",
144
+ style: l({
145
+ marginBottom: J(G)(e.value.global.countLeft ?? 8)
146
+ })
147
+ }, [
148
+ u("div", oe, [
149
+ e.value.top.show && (!e.value.top.showNum || o < e.value.top.showNum) ? (S(), y("div", {
150
+ key: 0,
151
+ class: "top",
152
+ style: l(I(o))
153
+ }, [
154
+ e.value.series[o]?.config.top.image ? C("", !0) : (S(), y("span", te, i(e.value.top.prefix) + " " + i(o + 1), 1))
155
+ ], 4)) : C("", !0),
156
+ u("div", {
157
+ class: "title",
158
+ style: l(R(o))
159
+ }, i(s.x), 5)
160
+ ]),
161
+ u("div", re, [
162
+ u("div", {
163
+ class: "count",
164
+ style: l(L(o))
165
+ }, i(s.y) + i(e.value.series[o]?.count?.suffix || e.value.count?.suffix), 5),
166
+ u("div", {
167
+ class: "progress",
168
+ style: l(V(o))
169
+ }, i(s.z) + i(e.value.series[o]?.progress?.suffix.value || e.value.progress?.suffix?.value), 5)
170
+ ])
171
+ ], 4),
172
+ u("div", {
173
+ class: "chart",
174
+ style: l(w(o).all)
175
+ }, [
176
+ u("div", {
177
+ class: "bar",
178
+ style: l(w(o).bar)
179
+ }, [
180
+ u("div", {
181
+ class: "streamer",
182
+ style: l(B())
183
+ }, null, 4)
184
+ ], 4),
185
+ e.value.bar.showIcon ? (S(), y("div", {
186
+ key: 0,
187
+ class: "icon",
188
+ style: l(j(o))
189
+ }, null, 4)) : C("", !0),
190
+ u("div", {
191
+ class: "bar-bg",
192
+ style: l(w(o).bg)
193
+ }, null, 4)
194
+ ], 4)
195
+ ])
196
+ ])
197
+ }))
198
+ ]), 1032, ["length", "loop", "row", "col", "space-between", "autoplay", "direction", "effect", "slides-per-group"])
199
+ ], 4);
200
+ };
201
+ }
202
+ }), _ = /* @__PURE__ */ D(se, [["__scopeId", "data-v-b9ef7c68"]]);
203
+ _.install = (h) => {
204
+ h.component("VScrollRank", _), h.component("VScrollRankProp", M(() => import("./config-CXGTRw74.js")));
205
+ };
206
+ export {
207
+ _ as default
208
+ };
@@ -0,0 +1,48 @@
1
+ import { defineComponent as f, inject as y, computed as v, ref as g, provide as h, resolveComponent as a, createElementBlock as r, openBlock as n, createVNode as l, createElementVNode as C, createBlock as i, Fragment as m, renderList as k } from "vue";
2
+ import { l as K, _ as j } from "./index-Bjs1bW2W.js";
3
+ import { c as E, a as P } from "./index-B9nm6Rgv.js";
4
+ import { C as $, a as B } from "./children-manager-CdxNQ6Oe.js";
5
+ import { E as I } from "./empty-panel-C6Y6WgQ5.js";
6
+ const N = f({
7
+ name: "DataCenterPanel",
8
+ components: {
9
+ ConfigTitle: B,
10
+ EmptyPanel: I,
11
+ ChildrenManager: $,
12
+ SourcePanel: K(() => import("./source-panel-ClGOmTVn.js"))
13
+ },
14
+ setup() {
15
+ const e = y(E), o = v(() => Object.keys(e.value.apis)), t = g(o.value[0]);
16
+ return h(P, (c) => {
17
+ t.value = t.value === c ? "" : c;
18
+ }), {
19
+ activeName: t,
20
+ com: e,
21
+ dataKeys: o
22
+ };
23
+ }
24
+ }), b = { class: "data-center-panel" }, V = { class: "scroll-container" };
25
+ function A(e, o, t, c, D, F) {
26
+ const p = a("config-title"), d = a("children-manager"), _ = a("source-panel"), u = a("empty-panel");
27
+ return n(), r("div", b, [
28
+ l(p),
29
+ C("div", V, [
30
+ e.dataKeys.length > 0 ? (n(), r(m, { key: 0 }, [
31
+ l(d),
32
+ (n(!0), r(m, null, k(e.dataKeys, (s) => (n(), i(_, {
33
+ key: s,
34
+ "api-name": s,
35
+ "active-name": e.activeName,
36
+ collapse: e.dataKeys.length > 1
37
+ }, null, 8, ["api-name", "active-name", "collapse"]))), 128))
38
+ ], 64)) : (n(), i(u, {
39
+ key: 1,
40
+ content: "该组件不需要配置数据"
41
+ }))
42
+ ])
43
+ ]);
44
+ }
45
+ const q = /* @__PURE__ */ j(N, [["render", A], ["__scopeId", "data-v-a1634f6b"]]);
46
+ export {
47
+ q as default
48
+ };