lowcoder-comps 0.0.31 → 0.0.33

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 (87) hide show
  1. package/00bb478a.js +1102 -0
  2. package/02bef5a4.js +505 -0
  3. package/057d2a44.js +1127 -0
  4. package/0964fcc6.js +34 -0
  5. package/14220e98.js +1276 -0
  6. package/1c074fe4.js +25 -0
  7. package/250a6954.js +804 -0
  8. package/256b619e.js +92 -0
  9. package/2cd27cf0.js +2501 -0
  10. package/2f064957.js +64 -0
  11. package/2ff2c7a6.js +6 -0
  12. package/2ff7471d.js +9 -0
  13. package/30c4916b.js +8 -0
  14. package/36ec7270.js +915 -0
  15. package/38c14832.js +960 -0
  16. package/3ae34bed.js +819 -0
  17. package/3e2939fa.js +237 -0
  18. package/3f5f874f.js +86 -0
  19. package/3fb86fb9.js +447 -0
  20. package/415177f9.js +1579 -0
  21. package/47848c42.js +11636 -0
  22. package/4c6a0ece.js +162535 -0
  23. package/4db8e48b.js +2284 -0
  24. package/531065f1.js +1089 -0
  25. package/5a398ea8.js +881 -0
  26. package/5ab1614c.js +268 -0
  27. package/65bbb6ae.js +1536 -0
  28. package/777cd15c.js +48428 -0
  29. package/7dacfa82.js +220 -0
  30. package/800cf0d0.js +796 -0
  31. package/92e85b65.js +65 -0
  32. package/93e9bd3a.js +391 -0
  33. package/98622dfa.js +16582 -0
  34. package/a2e74e62.js +2967 -0
  35. package/a61c3bd3.js +5 -0
  36. package/b8f48ff4.js +769 -0
  37. package/bd0f5f65.js +319 -0
  38. package/bf4428f5.js +1269 -0
  39. package/cb1972f7.js +455 -0
  40. package/dfc10c94.js +818 -0
  41. package/ed2c9753.js +208 -0
  42. package/ef2833e6.js +927 -0
  43. package/f9637058.js +16 -0
  44. package/f9e72519.js +1284 -0
  45. package/fe063d15.js +19339 -0
  46. package/index.js +5 -0
  47. package/package.json +30 -3
  48. package/README.md +0 -120
  49. package/index.html +0 -26
  50. package/index.tsx +0 -21
  51. package/jest.config.js +0 -6
  52. package/src/__test__/allComp.test.tsx +0 -61
  53. package/src/app-env.d.ts +0 -3
  54. package/src/comps/calendarComp/calendarComp.tsx +0 -633
  55. package/src/comps/calendarComp/calendarConstants.tsx +0 -1048
  56. package/src/comps/calendarComp/errorBoundary.tsx +0 -30
  57. package/src/comps/chartComp/chartComp.tsx +0 -442
  58. package/src/comps/chartComp/chartConfigs/barChartConfig.tsx +0 -51
  59. package/src/comps/chartComp/chartConfigs/cartesianAxisConfig.tsx +0 -307
  60. package/src/comps/chartComp/chartConfigs/chartUrls.tsx +0 -9
  61. package/src/comps/chartComp/chartConfigs/legendConfig.tsx +0 -55
  62. package/src/comps/chartComp/chartConfigs/lineChartConfig.tsx +0 -96
  63. package/src/comps/chartComp/chartConfigs/pieChartConfig.tsx +0 -83
  64. package/src/comps/chartComp/chartConfigs/scatterChartConfig.tsx +0 -62
  65. package/src/comps/chartComp/chartConstants.tsx +0 -299
  66. package/src/comps/chartComp/chartPropertyView.tsx +0 -235
  67. package/src/comps/chartComp/chartUtils.ts +0 -291
  68. package/src/comps/chartComp/reactEcharts/core.tsx +0 -194
  69. package/src/comps/chartComp/reactEcharts/index.ts +0 -21
  70. package/src/comps/chartComp/reactEcharts/types.ts +0 -76
  71. package/src/comps/chartComp/seriesComp.tsx +0 -119
  72. package/src/comps/imageEditorComp/imageEditorClass.tsx +0 -52
  73. package/src/comps/imageEditorComp/imageEditorConstants.tsx +0 -109
  74. package/src/comps/imageEditorComp/index.tsx +0 -184
  75. package/src/comps/mermaidComp/index.tsx +0 -44
  76. package/src/comps/mermaidComp/mermaid.tsx +0 -29
  77. package/src/global.ts +0 -1
  78. package/src/i18n/comps/index.tsx +0 -29
  79. package/src/i18n/comps/locales/en.ts +0 -163
  80. package/src/i18n/comps/locales/enObj.tsx +0 -198
  81. package/src/i18n/comps/locales/index.ts +0 -7
  82. package/src/i18n/comps/locales/types.tsx +0 -10
  83. package/src/i18n/comps/locales/zh.ts +0 -156
  84. package/src/i18n/comps/locales/zhObj.tsx +0 -4
  85. package/src/index.ts +0 -11
  86. package/tsconfig.json +0 -22
  87. package/vite.config.js +0 -10
@@ -1,198 +0,0 @@
1
- import { I18nObjects } from "./types";
2
- import { chartColorPalette } from "lowcoder-sdk";
3
-
4
-
5
- const defaultMapData = {
6
- tooltip: {
7
- trigger: "item"
8
- },
9
- animation: true,
10
- series: [
11
- {
12
- name: 'Population',
13
- type: 'scatter',
14
- coordinateSystem: 'gmap',
15
- itemStyle: {
16
- color: "#00c1de"
17
- },
18
- data: [
19
- { "name":"Azerbaijan","value":[47.395,40.43,8352021] },
20
- { "name":"Albania","value":[20.068,41.143,3153731] },
21
- { "name":"Armenia","value":[44.563,40.534,3017661] },
22
- { "name":"Bosnia and Herzegovina","value":[17.786,44.169,3915238] },
23
- { "name":"Bulgaria","value":[25.231,42.761,7744591] },
24
- { "name":"Cyprus","value":[33.219,35.043,836321] },
25
- { "name":"Denmark","value":[9.264,56.058,5416945] },
26
- { "name":"Ireland","value":[-8.152,53.177,4143294] },
27
- { "name":"Estonia","value":[25.793,58.674,1344312] },
28
- { "name":"Austria","value":[14.912,47.683,8291979] },
29
- { "name":"Czech Republic","value":[15.338,49.743,10191762] },
30
- { "name":"Finland","value":[26.272,64.504,5246004] },
31
- { "name":"France","value":[2.55,46.565,60990544] },
32
- { "name":"Georgia","value":[43.518,42.176,4473409] },
33
- { "name":"Germany","value":[9.851,51.11,82652369] },
34
- { "name":"Greece","value":[21.766,39.666,11099737] },
35
- { "name":"Croatia","value":[16.693,45.723,455149] },
36
- { "name":"Hungary","value":[19.134,47.07,10086387] },
37
- { "name":"Iceland","value":[-18.48,64.764,295732] },
38
- { "name":"Israel","value":[34.851,31.026,6692037] },
39
- { "name":"Italy","value":[12.8,42.7,5864636] },
40
- { "name":"Latvia","value":[25.641,56.858,2301793] },
41
- { "name":"Belarus","value":[28.047,53.54,9795287] },
42
- { "name":"Lithuania","value":[23.897,55.336,3425077] },
43
- { "name":"Slovakia","value":[19.491,48.707,5386995] },
44
- { "name":"Liechtenstein","value":[9.555,47.153,34598] },
45
- { "name":"The former Yugoslav Republic of Macedonia","value":[21.698,41.6,2033655] },
46
- { "name":"Malta","value":[14.442,35.89,402617] },
47
- { "name":"Belgium","value":[4.664,50.643,10398049] },
48
- { "name":"Faroe Islands","value":[-6.864,62.05,48205] },
49
- { "name":"Andorra","value":[1.576,42.549,73483] },
50
- { "name":"Luxembourg","value":[6.088,49.771,456613] },
51
- { "name":"Monaco","value":[7.412,43.75,325] },
52
- { "name":"Montenegro","value":[19.254,42.792,607969] },
53
- { "name":"Netherlands","value":[5.389,52.077,1632769] },
54
- { "name":"Norway","value":[8.74,61.152,4638836] },
55
- { "name":"Poland","value":[19.401,52.125,38195558] },
56
- { "name":"Portugal","value":[-8.058,40.309,10528226] },
57
- { "name":"Romania","value":[24.969,45.844,21627557] },
58
- { "name":"Republic of Moldova","value":[28.599,47.193,3876661] },
59
- { "name":"Slovenia","value":[14.827,46.124,1999425] },
60
- { "name":"Spain","value":[-3.649,40.227,43397491] },
61
- { "name":"Sweden","value":[15.27,62.011,9038049] },
62
- { "name":"Switzerland","value":[7.908,46.861,7424389] },
63
- { "name":"Turkey","value":[35.179,39.061,72969723] },
64
- { "name":"United Kingdom","value":[-1.6,53,60244834] },
65
- { "name":"Ukraine","value":[31.388,49.016,46917544] },
66
- { "name":"San Marino","value":[12.46,43.942,30214] },
67
- { "name":"Serbia","value":[20.806,44.032,9863026] },
68
- { "name":"Holy See (Vatican City)","value":[12.451,41.904,783] },
69
- { "name":"Russia","value":[96.689,61.988,143953092]}
70
- ],
71
- encode: {
72
- value: 2,
73
- lng: 0,
74
- lat: 1
75
- }
76
- }
77
- ]
78
- }
79
-
80
- export const enObj: I18nObjects = {
81
- defaultDataSource: [
82
- {
83
- date: "2021-09",
84
- department: "Administration",
85
- spending: 9003,
86
- budget: 8000,
87
- },
88
- {
89
- date: "2021-09",
90
- department: "Finance",
91
- spending: 3033,
92
- budget: 4000,
93
- },
94
- {
95
- date: "2021-09",
96
- department: "Sales",
97
- spending: 9230,
98
- budget: 8000,
99
- },
100
- {
101
- date: "2021-10",
102
- department: "Administration",
103
- spending: 13032,
104
- budget: 15000,
105
- },
106
- {
107
- date: "2021-10",
108
- department: "Finance",
109
- spending: 2300,
110
- budget: 5000,
111
- },
112
- {
113
- date: "2021-10",
114
- department: "Sales",
115
- spending: 7323.5,
116
- budget: 8000,
117
- },
118
- {
119
- date: "2021-11",
120
- department: "Administration",
121
- spending: 13000,
122
- budget: 16023,
123
- },
124
- {
125
- date: "2021-11",
126
- department: "Finance",
127
- spending: 3569.5,
128
- budget: 3000,
129
- },
130
- {
131
- date: "2021-11",
132
- department: "Sales",
133
- spending: 10000,
134
- budget: 9932,
135
- },
136
- {
137
- date: "2021-12",
138
- department: "Administration",
139
- spending: 18033,
140
- budget: 20000,
141
- },
142
- {
143
- date: "2021-12",
144
- department: "Finance",
145
- spending: 4890,
146
- budget: 4500,
147
- },
148
- {
149
- date: "2021-12",
150
- department: "Sales",
151
- spending: 9322,
152
- budget: 8000,
153
- },
154
- ],
155
-
156
- defaultEchartsJsonOption: {
157
- title: {
158
- text: "Funnel Chart",
159
- left: "center",
160
- },
161
- backgroundColor: "#ffffff",
162
- color: chartColorPalette,
163
- tooltip: {
164
- trigger: "item",
165
- formatter: "{a} <br/>{b} : {c}%",
166
- },
167
- legend: {
168
- data: ["Show", "Click", "Visit", "Query", "Buy"],
169
- top: "bottom",
170
- },
171
- series: [
172
- {
173
- name: "Funnel",
174
- type: "funnel",
175
- left: "10%",
176
- top: 60,
177
- bottom: 60,
178
- width: "80%",
179
- min: 0,
180
- max: 100,
181
- gap: 2,
182
- label: {
183
- show: true,
184
- position: "inside",
185
- },
186
- data: [
187
- { value: 100, name: "Show" },
188
- { value: 80, name: "Click" },
189
- { value: 60, name: "Visit" },
190
- { value: 40, name: "Query" },
191
- { value: 20, name: "Buy" },
192
- ],
193
- },
194
- ],
195
- },
196
-
197
- defaultMapJsonOption: defaultMapData,
198
- };
@@ -1,7 +0,0 @@
1
- // file examples: en, enGB, zh, zhHK
2
- // fallback example: current locale is zh-HK, fallback order is zhHK => zh => en
3
- export * from "./en";
4
- export * from "./zh";
5
-
6
- export * from "./enObj";
7
- export * from "./zhObj";
@@ -1,10 +0,0 @@
1
- import { JSONObject } from "lowcoder-sdk";
2
- import { XAXisComponentOption } from "echarts";
3
-
4
- export type I18nObjects = {
5
- defaultDataSource: JSONObject[];
6
- defaultEchartsJsonOption: Record<string, unknown>;
7
- defaultMapJsonOption: Record<string, unknown>;
8
- timeXAxisLabel?: XAXisComponentOption["axisLabel"];
9
- imageEditorLocale?: Record<string, string>;
10
- };
@@ -1,156 +0,0 @@
1
- export const zh = {
2
- chart: {
3
- delete: "删除",
4
- data: "数据",
5
- mode: "模式",
6
- config: "配置",
7
- UIMode: "UI模式",
8
- chartType: "图表类型",
9
- xAxis: "X轴",
10
- chartSeries: "图表系列",
11
- customSeries: "自定义系列",
12
- add: "添加",
13
- confirmDelete: "确认删除:",
14
- seriesName: "系列名称",
15
- dataColumns: "数据列",
16
- title: "标题",
17
- xAxisDirection: "X轴方向",
18
- xAxisName: "X轴名称",
19
- xAxisType: "X轴类型",
20
- xAxisTypeTooltip: "默认情况下,根据X轴数据自动检测.有关类型描述,请参考:",
21
- logBase: "对数底数",
22
- yAxisName: "Y轴名称",
23
- yAxisType: "Y轴类型",
24
- yAxisDataFormat: "Y轴数据格式",
25
- yAxisDataFormatTooltip: `值表示每个坐标的值.示例:'{{value * 100 + "%"}}'`,
26
- basicBar: "基本柱状图",
27
- stackedBar: "堆叠柱状图",
28
- barType: "柱状图类型",
29
- categoryAxis: "分类轴",
30
- valueAxis: "值轴",
31
- timeAxis: "时间轴",
32
- logAxis: "对数轴",
33
- auto: "自动",
34
- legendPosition: "图例位置",
35
- basicLine: "基本折线图",
36
- stackedLine: "堆叠折线图",
37
- areaLine: "区域折线图",
38
- smooth: "平滑曲线",
39
- lineType: "折线图类型",
40
- basicPie: "基本饼图",
41
- doughnutPie: "环形饼图",
42
- rosePie: "玫瑰饼图",
43
- pieType: "饼图类型",
44
- spending: "支出",
45
- budget: "预算",
46
- bar: "柱状图",
47
- line: "折线图",
48
- scatter: "散点图",
49
- pie: "饼图",
50
- horizontal: "水平",
51
- vertical: "垂直",
52
- noData: "无数据",
53
- unknown: "未知",
54
- select: "选择",
55
- unSelect: "取消选择",
56
- echartsOptionLabel: "选项",
57
- echartsOptionTooltip: "ECharts选项",
58
- echartsOptionExamples: "ECharts示例",
59
- echartsMapOptionTooltip: "ECharts地图选项",
60
- echartsMapOptionExamples: "ECharts地图示例",
61
- selectDesc: "当用户选择图表中的部分数据时触发",
62
- unselectDesc: "当用户取消选择图表中的部分数据时触发",
63
- selectedPointsDesc: "已选中的数据点",
64
- lastInteractionDataDesc: "最后交互数据",
65
- dataDesc: "当前图表使用的原始数据",
66
- titleDesc: "当前图表标题",
67
- scatterShape: "散点形状",
68
- circle: "圆形",
69
- rect: "矩形",
70
- triangle: "三角形",
71
- diamond: "菱形",
72
- pin: "图钉",
73
- arrow: "箭头",
74
- pointColorLabel: "数据点颜色",
75
- pointColorTooltip: `根据系列名称和当前数据点值设置数据点颜色,可选变量:seriesName、value.示例:'{{value < 25000 ? "red" : "green"}}'`,
76
- mapReady: "地图就绪",
77
- mapReadyDesc: "地图准备好时触发",
78
- zoomLevelChange: "缩放级别更改",
79
- zoomLevelChangeDesc: "地图缩放级别更改时触发",
80
- centerPositionChange: "中心位置变化",
81
- centerPositionChangeDesc: "地图中心位置改变时触发",
82
- chartEventHandlers: "图表事件处理程序",
83
- },
84
- imageEditor: {
85
- defaultSrc: "",
86
- save: "保存",
87
- saveDesc: "保存图像",
88
- src: "图像来源",
89
- name: "图像名称",
90
- buttonText: "按钮文本",
91
- srcDesc: "图像来源",
92
- nameDesc: "图像名称",
93
- dataURIDesc: "图像数据URI",
94
- dataDesc: "图像数据",
95
- buttonTextDesc: "按钮文本",
96
- },
97
- calendar: {
98
- events: "事件数据",
99
- resources: "资源数据",
100
- resourcesDefault: "客房",
101
- resourcesEvents: "资源事件",
102
- resourcesName: "资源名称",
103
- license : "许可证密钥",
104
- licenseTooltip: "从 https://fullcalendar.io/purchase 获取许可证密钥,启用资源时间轴和资源网格等高级视图。",
105
- editable: "可编辑",
106
- defaultDate: "默认日期",
107
- defaultDateTooltip: "日历最初显示的日期",
108
- defaultView: "默认视图",
109
- defaultViewTooltip: "日历最初显示的视图",
110
- showEventTime: "显示事件时间",
111
- showEventTimeTooltip: "是否显示事件的时间文本",
112
- showWeekends: "显示周末",
113
- showAllDay: "显示全天",
114
- showAllDayTooltip: "是否在周视图和日视图中显示全天时间段",
115
- dayMaxEvents: "每日最多事件数",
116
- dayMaxEventsTooltip: "在月视图中每天显示的事件最大数量,为0表示限制为单元格的高度",
117
- eventMaxStack: "事件最大堆叠数",
118
- eventMaxStackTooltip: "在周视图和日视图中水平堆叠的事件的最大数量,为0表示没有限制",
119
- selectInterval: "日历上选择的时间间隔",
120
- selectEvent: "已选事件",
121
- changeSet: "拖动日历中更改的事件对象,键为eventId,值为事件对象",
122
- headerBtnBackground: "按钮背景",
123
- btnText: "按钮文本",
124
- title: "标题",
125
- selectBackground: "选择背景",
126
- today: "今天",
127
- month: "月",
128
- week: "周",
129
- day: "日",
130
- list: "列表",
131
- timeline: "时间轴",
132
- resourceTimeGridDay: "资源时间网格日",
133
- monday: "星期一",
134
- tuesday: "星期二",
135
- wednesday: "星期三",
136
- thursday: "星期四",
137
- friday: "星期五",
138
- saturday: "星期六",
139
- sunday: "星期日",
140
- startWeek: "起始星期",
141
- creatEvent: "创建事件",
142
- editEvent: "编辑事件",
143
- eventName: "事件名称",
144
- eventColor: "事件颜色",
145
- eventGroupId: "分组ID",
146
- groupIdTooltip: "分组ID用于将不同的事件分组,同一组内的事件可以一起拖动和调整大小.",
147
- more: "更多",
148
- allDay: "全天",
149
- eventNameRequire: "请输入事件名称",
150
- eventId: "事件ID",
151
- eventIdRequire: "请输入事件ID",
152
- eventIdTooltip: "每个事件的唯一标识符",
153
- eventIdExist: "ID已存在",
154
- dragDropEventHandlers: "拖/放事件处理程序",
155
- },
156
- };
@@ -1,4 +0,0 @@
1
- import { I18nObjects } from "./types";
2
-
3
- export const zhObj: I18nObjects | undefined = undefined;
4
-
package/src/index.ts DELETED
@@ -1,11 +0,0 @@
1
- import { ChartCompWithDefault } from "./comps/chartComp/chartComp";
2
- import { ImageEditorComp } from "./comps/imageEditorComp/index";
3
- import { CalendarComp } from "./comps/calendarComp/calendarComp";
4
- import { MermaidComp } from "comps/mermaidComp";
5
-
6
- export default {
7
- chart: ChartCompWithDefault,
8
- imageEditor: ImageEditorComp,
9
- calendar: CalendarComp,
10
- mermaid: MermaidComp,
11
- };
package/tsconfig.json DELETED
@@ -1,22 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ESNext",
4
- "experimentalDecorators": true,
5
- "lib": ["dom", "dom.iterable", "esnext"],
6
- "allowJs": true,
7
- "skipLibCheck": true,
8
- "esModuleInterop": true,
9
- "allowSyntheticDefaultImports": true,
10
- "strict": true,
11
- "forceConsistentCasingInFileNames": true,
12
- "noFallthroughCasesInSwitch": true,
13
- "module": "esnext",
14
- "moduleResolution": "node",
15
- "resolveJsonModule": true,
16
- "isolatedModules": true,
17
- "noEmit": true,
18
- "jsx": "react-jsx",
19
- "baseUrl": "./src"
20
- },
21
- "include": ["src", "index.tsx"]
22
- }
package/vite.config.js DELETED
@@ -1,10 +0,0 @@
1
- import config from "lowcoder-cli/config/vite.config";
2
- import viteTsconfigPaths from "vite-tsconfig-paths";
3
- export default {
4
- ...config,
5
- plugins: [...config.plugins, viteTsconfigPaths()],
6
- server: {
7
- open: true,
8
- port: 9000,
9
- },
10
- };