lowcoder-comps 0.0.7 → 0.0.8

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 (79) hide show
  1. package/icons/icon-chart.svg +15 -0
  2. package/icons/icon-comp-calendar.svg +22 -0
  3. package/index.html +26 -0
  4. package/index.tsx +19 -0
  5. package/jest.config.js +5 -0
  6. package/package/012a06bb.js +34 -0
  7. package/package/06481cb7.js +1060 -0
  8. package/package/0c8b29d5.js +6 -0
  9. package/package/114884df.js +805 -0
  10. package/package/1264ddb2.js +194 -0
  11. package/package/1cee31ec.js +1095 -0
  12. package/package/269c3ba3.js +46662 -0
  13. package/package/2a2c2e55.js +799 -0
  14. package/package/2b3ab1e4.js +98763 -0
  15. package/package/37590a81.js +967 -0
  16. package/package/3cd7980e.js +184 -0
  17. package/package/40112498.js +424 -0
  18. package/package/4b6e1d6f.js +24 -0
  19. package/package/4bc1082b.js +86 -0
  20. package/package/53e49f9b.js +1600 -0
  21. package/package/55bd5c26.js +266 -0
  22. package/package/591684c8.js +2071 -0
  23. package/package/6c000872.js +16 -0
  24. package/package/756addec.js +775 -0
  25. package/package/7668124e.js +8 -0
  26. package/package/79e8eeeb.js +949 -0
  27. package/package/926fbfec.js +91 -0
  28. package/package/945eefb3.js +2665 -0
  29. package/package/a35f148e.js +1228 -0
  30. package/package/a4d12a43.js +175 -0
  31. package/package/a60de5d1.js +804 -0
  32. package/package/a8dde1ea.js +589 -0
  33. package/package/b4148642.js +7 -0
  34. package/package/b7dd22a2.js +847 -0
  35. package/package/d4f3a2c4.js +18046 -0
  36. package/package/e0f479f3.js +91 -0
  37. package/package/eaa160c9.js +341 -0
  38. package/package/f1bfd8b5.js +311 -0
  39. package/package/f1f9ba79.js +900 -0
  40. package/package/fba61f63.js +2868 -0
  41. package/package/icons/icon-chart.svg +15 -0
  42. package/package/icons/icon-comp-calendar.svg +22 -0
  43. package/package/index.js +5 -0
  44. package/package/package.json +73 -0
  45. package/package.json +1 -4
  46. package/src/__test__/allComp.test.tsx +61 -0
  47. package/src/app-env.d.ts +3 -0
  48. package/src/comps/calendarComp/calendarComp.tsx +442 -0
  49. package/src/comps/calendarComp/calendarConstants.tsx +897 -0
  50. package/src/comps/chartComp/chartComp.tsx +249 -0
  51. package/src/comps/chartComp/chartConfigs/barChartConfig.tsx +51 -0
  52. package/src/comps/chartComp/chartConfigs/cartesianAxisConfig.tsx +307 -0
  53. package/src/comps/chartComp/chartConfigs/chartUrls.tsx +6 -0
  54. package/src/comps/chartComp/chartConfigs/legendConfig.tsx +55 -0
  55. package/src/comps/chartComp/chartConfigs/lineChartConfig.tsx +96 -0
  56. package/src/comps/chartComp/chartConfigs/pieChartConfig.tsx +83 -0
  57. package/src/comps/chartComp/chartConfigs/scatterChartConfig.tsx +62 -0
  58. package/src/comps/chartComp/chartConstants.tsx +243 -0
  59. package/src/comps/chartComp/chartPropertyView.tsx +161 -0
  60. package/src/comps/chartComp/chartUtils.ts +240 -0
  61. package/src/comps/chartComp/reactEcharts/core.tsx +187 -0
  62. package/src/comps/chartComp/reactEcharts/index.ts +20 -0
  63. package/src/comps/chartComp/reactEcharts/types.ts +70 -0
  64. package/src/comps/chartComp/seriesComp.tsx +119 -0
  65. package/src/comps/imageEditorComp/imageEditorClass.tsx +52 -0
  66. package/src/comps/imageEditorComp/imageEditorConstants.tsx +109 -0
  67. package/src/comps/imageEditorComp/index.tsx +184 -0
  68. package/src/comps/mermaidComp/index.tsx +44 -0
  69. package/src/comps/mermaidComp/mermaid.tsx +29 -0
  70. package/src/global.ts +1 -0
  71. package/src/i18n/comps/index.tsx +29 -0
  72. package/src/i18n/comps/locales/en.ts +142 -0
  73. package/src/i18n/comps/locales/enObj.tsx +120 -0
  74. package/src/i18n/comps/locales/index.ts +7 -0
  75. package/src/i18n/comps/locales/types.tsx +9 -0
  76. package/src/i18n/comps/locales/zh.ts +4 -0
  77. package/src/i18n/comps/locales/zhObj.tsx +4 -0
  78. package/src/index.ts +11 -0
  79. package/vite.config.js +10 -0
@@ -0,0 +1,15 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48px" height="48px" viewBox="0 0 48 48" version="1.1">
2
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
3
+ <g transform="translate(6.000000, 11.500000)" stroke="#D7D9E0" stroke-linecap="round" stroke-width="2">
4
+ <line x1="-2.00715996e-17" y1="0.5" x2="36" y2="0.5"/>
5
+ <line x1="-2.00715996e-17" y1="8.5" x2="36" y2="8.5"/>
6
+ <line x1="2.70913881e-14" y1="16.5" x2="36" y2="16.5"/>
7
+ <line x1="2.70913881e-14" y1="24.5" x2="36" y2="24.5"/>
8
+ </g>
9
+ <g transform="translate(11.000000, 10.000000)" fill="#3377FF">
10
+ <path d="M11,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,25 L16,25 L10,25 L10,1 C10,0.44771525 10.4477153,7.67586877e-16 11,0 Z"/>
11
+ <path d="M1,13 L5,13 C5.55228475,13 6,13.4477153 6,14 L6,25 L6,25 L0,25 L0,14 C-6.76353751e-17,13.4477153 0.44771525,13 1,13 Z"/>
12
+ <path d="M21,6 L25,6 C25.5522847,6 26,6.44771525 26,7 L26,25 L26,25 L20,25 L20,7 C20,6.44771525 20.4477153,6 21,6 Z"/>
13
+ </g>
14
+ </g>
15
+ </svg>
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="48px" height="48px" viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
4
+ <g transform="translate(6.000000, 5.000000)">
5
+ <rect stroke="#D7D9E0" stroke-width="2" fill="#FFFFFF" x="1" y="4" width="34" height="30" rx="3"></rect>
6
+ <g transform="translate(5.000000, 14.000000)">
7
+ <rect fill="#3377FF" x="14" y="0" width="5" height="5" rx="1.5"></rect>
8
+ <rect fill="#8B8FA3" x="7" y="0" width="5" height="5" rx="1.5"></rect>
9
+ <rect fill="#3377FF" x="14" y="6" width="5" height="5" rx="1.5"></rect>
10
+ <rect fill="#8B8FA3" x="7" y="6" width="5" height="5" rx="1.5"></rect>
11
+ <rect fill="#8B8FA3" x="0" y="6" width="5" height="5" rx="1.5"></rect>
12
+ <rect fill="#8B8FA3" x="7" y="12" width="5" height="5" rx="1.5"></rect>
13
+ <rect fill="#8B8FA3" x="0" y="12" width="5" height="5" rx="1.5"></rect>
14
+ <rect fill="#8B8FA3" x="21" y="0" width="5" height="5" rx="1.5"></rect>
15
+ <rect fill="#8B8FA3" x="21" y="6" width="5" height="5" rx="1.5"></rect>
16
+ </g>
17
+ <path d="M3,3 L33,3 C34.6568542,3 36,4.34314575 36,6 L36,12 L36,12 L0,12 L0,6 C-2.02906125e-16,4.34314575 1.34314575,3 3,3 Z" fill="#D7D9E0"></path>
18
+ <rect fill="#D7D9E0" x="7" y="0" width="4" height="8" rx="1"></rect>
19
+ <rect fill="#D7D9E0" x="25" y="0" width="4" height="8" rx="1"></rect>
20
+ </g>
21
+ </g>
22
+ </svg>
package/index.html ADDED
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Lowcoder Comp Playground</title>
8
+ <style>
9
+ #root {
10
+ height: 100vh;
11
+ }
12
+ #root-loader {
13
+ height: 100vh;
14
+ display: flex;
15
+ justify-content: center;
16
+ align-items: center;
17
+ }
18
+ </style>
19
+ </head>
20
+ <body>
21
+ <div id="root">
22
+ <div id="root-loader">Loading...</div>
23
+ </div>
24
+ <script src="index.tsx" type="module"></script>
25
+ </body>
26
+ </html>
package/index.tsx ADDED
@@ -0,0 +1,19 @@
1
+ import ReactDOM from "react-dom";
2
+ import { CompIDE } from "lowcoder-sdk";
3
+ import { name, version, lowcoder } from "./package.json";
4
+ import compMap from "./src/index";
5
+
6
+ import "lowcoder-sdk/dist/style.css";
7
+
8
+ function CompDevApp() {
9
+ return (
10
+ <CompIDE
11
+ compMap={compMap}
12
+ packageName={name}
13
+ packageVersion={version}
14
+ compMeta={lowcoder.comps}
15
+ />
16
+ );
17
+ }
18
+
19
+ ReactDOM.render(<CompDevApp />, document.querySelector("#root"));
package/jest.config.js ADDED
@@ -0,0 +1,5 @@
1
+ import config from "../../config/test/jest.config.js";
2
+
3
+ export default {
4
+ ...config,
5
+ };
@@ -0,0 +1,34 @@
1
+ import { a as h } from "./0c8b29d5.js";
2
+ import { w as d, c as o } from "./e0f479f3.js";
3
+ import { o as v } from "./2b3ab1e4.js";
4
+ function w(t) {
5
+ return t[0];
6
+ }
7
+ function b(t) {
8
+ return t[1];
9
+ }
10
+ function P(t, u) {
11
+ var s = o(!0), i = null, l = v, r = null, m = d(e);
12
+ t = typeof t == "function" ? t : t === void 0 ? w : o(t), u = typeof u == "function" ? u : u === void 0 ? b : o(u);
13
+ function e(n) {
14
+ var f, g = (n = h(n)).length, p, c = !1, a;
15
+ for (i == null && (r = l(a = m())), f = 0; f <= g; ++f)
16
+ !(f < g && s(p = n[f], f, n)) === c && ((c = !c) ? r.lineStart() : r.lineEnd()), c && r.point(+t(p, f, n), +u(p, f, n));
17
+ if (a)
18
+ return r = null, a + "" || null;
19
+ }
20
+ return e.x = function(n) {
21
+ return arguments.length ? (t = typeof n == "function" ? n : o(+n), e) : t;
22
+ }, e.y = function(n) {
23
+ return arguments.length ? (u = typeof n == "function" ? n : o(+n), e) : u;
24
+ }, e.defined = function(n) {
25
+ return arguments.length ? (s = typeof n == "function" ? n : o(!!n), e) : s;
26
+ }, e.curve = function(n) {
27
+ return arguments.length ? (l = n, i != null && (r = l(i)), e) : l;
28
+ }, e.context = function(n) {
29
+ return arguments.length ? (n == null ? i = r = null : r = l(i = n), e) : i;
30
+ }, e;
31
+ }
32
+ export {
33
+ P as l
34
+ };