@sme.up/ketchup 8.2.2 → 8.3.1
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.
- package/dist/cjs/{f-button-76a75669.js → f-button-d073c79d.js} +1 -1
- package/dist/cjs/{f-cell-6f902849.js → f-cell-b7ddd6b3.js} +6 -4
- package/dist/cjs/{f-chip-fe9cffed.js → f-chip-e51596be.js} +2 -2
- package/dist/cjs/{f-image-47976ad7.js → f-image-fb2721a7.js} +1 -1
- package/dist/cjs/{f-paginator-utils-f13f036f.js → f-paginator-utils-5bce6819.js} +2 -2
- package/dist/cjs/{f-text-field-865a6386.js → f-text-field-acb225f3.js} +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +2 -2
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +10 -8
- package/dist/cjs/kup-box.cjs.entry.js +7 -7
- package/dist/cjs/kup-calendar.cjs.entry.js +4 -4
- package/dist/cjs/kup-cell.cjs.entry.js +5 -5
- package/dist/cjs/kup-dash-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-dash_2.cjs.entry.js +1 -1
- package/dist/cjs/kup-dashboard.cjs.entry.js +4 -4
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +128 -2
- package/dist/cjs/kup-family-tree.cjs.entry.js +3 -3
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-image-list.cjs.entry.js +6 -6
- package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
- package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
- package/dist/cjs/{kup-manager-695bbbe3.js → kup-manager-39f99670.js} +2 -0
- package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
- package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
- package/dist/cjs/kup-planner.cjs.entry.js +2 -2
- package/dist/cjs/kup-probe.cjs.entry.js +1 -1
- package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
- package/dist/cjs/kup-snackbar.cjs.entry.js +3 -3
- package/dist/collection/assets/echart.js +248 -0
- package/dist/collection/components/kup-data-table/kup-data-table.js +2 -0
- package/dist/collection/components/kup-echart/kup-echart-declarations.js +2 -0
- package/dist/collection/components/kup-echart/kup-echart.js +125 -1
- package/dist/collection/components/kup-form/kup-form.css +3 -1
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +2 -0
- package/dist/collection/f-components/f-cell/f-cell.js +2 -0
- package/dist/components/kup-autocomplete2.js +7 -1
- package/dist/components/kup-echart2.js +127 -1
- package/dist/esm/{f-button-c5b36ae1.js → f-button-38ee97e6.js} +1 -1
- package/dist/esm/{f-cell-fbfe9fe0.js → f-cell-763793f8.js} +6 -4
- package/dist/esm/{f-chip-038e9404.js → f-chip-010179a2.js} +2 -2
- package/dist/esm/{f-image-c356f4c5.js → f-image-77ac3ca0.js} +1 -1
- package/dist/esm/{f-paginator-utils-58466d55.js → f-paginator-utils-32b2c046.js} +2 -2
- package/dist/esm/{f-text-field-98905f74.js → f-text-field-8a683258.js} +1 -1
- package/dist/esm/kup-accordion.entry.js +2 -2
- package/dist/esm/kup-autocomplete_27.entry.js +10 -8
- package/dist/esm/kup-box.entry.js +7 -7
- package/dist/esm/kup-calendar.entry.js +4 -4
- package/dist/esm/kup-cell.entry.js +5 -5
- package/dist/esm/kup-dash-list.entry.js +1 -1
- package/dist/esm/kup-dash_2.entry.js +1 -1
- package/dist/esm/kup-dashboard.entry.js +4 -4
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +128 -2
- package/dist/esm/kup-family-tree.entry.js +3 -3
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-image-list.entry.js +6 -6
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +2 -2
- package/dist/esm/{kup-manager-74e46edc.js → kup-manager-e2f7edf1.js} +2 -0
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +2 -2
- package/dist/esm/kup-photo-frame.entry.js +1 -1
- package/dist/esm/kup-planner.entry.js +2 -2
- package/dist/esm/kup-probe.entry.js +1 -1
- package/dist/esm/kup-qlik.entry.js +1 -1
- package/dist/esm/kup-snackbar.entry.js +3 -3
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-b813af24.entry.js → p-07e56ef4.entry.js} +1 -1
- package/dist/ketchup/{p-9c7b9ff2.js → p-0e961148.js} +1 -1
- package/dist/ketchup/{p-f1da8b9c.entry.js → p-166356dc.entry.js} +1 -1
- package/dist/ketchup/{p-46daf529.js → p-2751c4ba.js} +1 -1
- package/dist/ketchup/p-2866e08c.entry.js +1 -0
- package/dist/ketchup/{p-0d533d24.entry.js → p-3a64fbe0.entry.js} +1 -1
- package/dist/ketchup/{p-487f4a33.entry.js → p-3fe1eada.entry.js} +2 -2
- package/dist/ketchup/{p-1f5eb8e6.entry.js → p-40312367.entry.js} +1 -1
- package/dist/ketchup/{p-2cc57793.entry.js → p-46ad61d1.entry.js} +1 -1
- package/dist/ketchup/{p-008cde2a.entry.js → p-4cb43c62.entry.js} +1 -1
- package/dist/ketchup/{p-e16c04d8.js → p-5443df89.js} +1 -1
- package/dist/ketchup/{p-78eaa526.js → p-5b1ae769.js} +1 -1
- package/dist/ketchup/{p-73ab15cd.entry.js → p-5d7b542c.entry.js} +1 -1
- package/dist/ketchup/{p-6efda31f.entry.js → p-6814b44c.entry.js} +1 -1
- package/dist/ketchup/{p-c20c4f66.js → p-79f78bdc.js} +1 -1
- package/dist/ketchup/{p-a9151ee8.entry.js → p-7c9ca424.entry.js} +1 -1
- package/dist/ketchup/{p-cd1f9e76.entry.js → p-86a3a9ef.entry.js} +1 -1
- package/dist/ketchup/{p-efd07a7f.entry.js → p-9fe8bcf4.entry.js} +1 -1
- package/dist/ketchup/{p-c3e84081.entry.js → p-bab43d3f.entry.js} +1 -1
- package/dist/ketchup/{p-8d992de0.entry.js → p-be933dfa.entry.js} +1 -1
- package/dist/ketchup/{p-d5491e4f.js → p-d938d1cd.js} +1 -1
- package/dist/ketchup/{p-2ac7d95a.entry.js → p-d942bfd3.entry.js} +1 -1
- package/dist/ketchup/{p-26765429.entry.js → p-dd183d2f.entry.js} +1 -1
- package/dist/ketchup/{p-a015c95b.entry.js → p-e0e4e3e2.entry.js} +1 -1
- package/dist/ketchup/{p-bb93aa7e.entry.js → p-e96d0d28.entry.js} +1 -1
- package/dist/ketchup/{p-f023195c.entry.js → p-eb42d212.entry.js} +1 -1
- package/dist/ketchup/{p-e9d2a964.entry.js → p-f3c25aae.entry.js} +4 -4
- package/dist/ketchup/{p-dfab37a3.entry.js → p-f520b898.entry.js} +1 -1
- package/dist/ketchup/{p-ffbd77d5.js → p-fe8c8e11.js} +1 -1
- package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +3 -1
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +2 -0
- package/package.json +1 -1
- package/dist/ketchup/p-59919641.entry.js +0 -1
|
@@ -7,6 +7,10 @@ const echart6 = document.getElementById('funnelChart');
|
|
|
7
7
|
const echart7 = document.getElementById('radarChart');
|
|
8
8
|
const echart8 = document.getElementById('bubbleChart');
|
|
9
9
|
const echart9 = document.getElementById('sankeyChart');
|
|
10
|
+
const echart10 = document.getElementById('candleStickChart');
|
|
11
|
+
const echart11 = document.getElementById('calendarChart');
|
|
12
|
+
|
|
13
|
+
|
|
10
14
|
|
|
11
15
|
const mockData = {
|
|
12
16
|
columns: [
|
|
@@ -1107,6 +1111,250 @@ echart9.data = {
|
|
|
1107
1111
|
],
|
|
1108
1112
|
};
|
|
1109
1113
|
|
|
1114
|
+
echart10.consistencyCheck = true;
|
|
1115
|
+
echart10.types = ['Candle'];
|
|
1116
|
+
echart10.colors = ['blue'];
|
|
1117
|
+
echart10.axis = '';
|
|
1118
|
+
echart10.chartTitle = {
|
|
1119
|
+
value: 'Candle',
|
|
1120
|
+
color: 'red',
|
|
1121
|
+
position: 'top',
|
|
1122
|
+
size: 16,
|
|
1123
|
+
};
|
|
1124
|
+
echart10.data = { // actual dataset
|
|
1125
|
+
columns: [
|
|
1126
|
+
{
|
|
1127
|
+
name: 'DATE',
|
|
1128
|
+
obj: {
|
|
1129
|
+
t: 'D8',
|
|
1130
|
+
p: '*YYMD',
|
|
1131
|
+
k: '',
|
|
1132
|
+
},
|
|
1133
|
+
title: 'Date',
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
name: 'LOW',
|
|
1137
|
+
obj: {
|
|
1138
|
+
t: 'NR',
|
|
1139
|
+
p: '',
|
|
1140
|
+
k: '',
|
|
1141
|
+
},
|
|
1142
|
+
title: 'Low',
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
name: 'HIGH',
|
|
1146
|
+
obj: {
|
|
1147
|
+
t: 'NR',
|
|
1148
|
+
p: '',
|
|
1149
|
+
k: '',
|
|
1150
|
+
},
|
|
1151
|
+
title: 'High',
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
name: 'OPEN',
|
|
1155
|
+
obj: {
|
|
1156
|
+
t: 'NR',
|
|
1157
|
+
p: '',
|
|
1158
|
+
k: '',
|
|
1159
|
+
},
|
|
1160
|
+
title: 'Open',
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
name: 'CLOSE',
|
|
1164
|
+
obj: {
|
|
1165
|
+
t: 'NR',
|
|
1166
|
+
p: '',
|
|
1167
|
+
k: '',
|
|
1168
|
+
},
|
|
1169
|
+
title: 'Close',
|
|
1170
|
+
},
|
|
1171
|
+
],
|
|
1172
|
+
rows: [
|
|
1173
|
+
{
|
|
1174
|
+
cells: {
|
|
1175
|
+
DATE: {
|
|
1176
|
+
obj: {
|
|
1177
|
+
t: 'D8',
|
|
1178
|
+
p: '*YYMD',
|
|
1179
|
+
k: '20171024',
|
|
1180
|
+
},
|
|
1181
|
+
value: '2017-10-24',
|
|
1182
|
+
},
|
|
1183
|
+
HIGH: {
|
|
1184
|
+
obj: {
|
|
1185
|
+
t: 'NR',
|
|
1186
|
+
p: '',
|
|
1187
|
+
k: '38',
|
|
1188
|
+
},
|
|
1189
|
+
value: '38',
|
|
1190
|
+
},
|
|
1191
|
+
LOW: {
|
|
1192
|
+
obj: {
|
|
1193
|
+
t: 'NR',
|
|
1194
|
+
p: '',
|
|
1195
|
+
k: '10',
|
|
1196
|
+
},
|
|
1197
|
+
value: '10',
|
|
1198
|
+
},
|
|
1199
|
+
OPEN: {
|
|
1200
|
+
obj: {
|
|
1201
|
+
t: 'NR',
|
|
1202
|
+
p: '',
|
|
1203
|
+
k: '34',
|
|
1204
|
+
},
|
|
1205
|
+
value: '34',
|
|
1206
|
+
},
|
|
1207
|
+
CLOSE: {
|
|
1208
|
+
obj: {
|
|
1209
|
+
t: 'NR',
|
|
1210
|
+
p: '',
|
|
1211
|
+
k: '20',
|
|
1212
|
+
},
|
|
1213
|
+
value: '20',
|
|
1214
|
+
},
|
|
1215
|
+
},
|
|
1216
|
+
},{
|
|
1217
|
+
cells: {
|
|
1218
|
+
DATE: {
|
|
1219
|
+
obj: {
|
|
1220
|
+
t: 'D8',
|
|
1221
|
+
p: '*YYMD',
|
|
1222
|
+
k: '20171025',
|
|
1223
|
+
},
|
|
1224
|
+
value: '2017-10-25',
|
|
1225
|
+
},
|
|
1226
|
+
HIGH: {
|
|
1227
|
+
obj: {
|
|
1228
|
+
t: 'NR',
|
|
1229
|
+
p: '',
|
|
1230
|
+
k: '50',
|
|
1231
|
+
},
|
|
1232
|
+
value: '50',
|
|
1233
|
+
},
|
|
1234
|
+
LOW: {
|
|
1235
|
+
obj: {
|
|
1236
|
+
t: 'NR',
|
|
1237
|
+
p: '',
|
|
1238
|
+
k: '30',
|
|
1239
|
+
},
|
|
1240
|
+
value: '30',
|
|
1241
|
+
},
|
|
1242
|
+
OPEN: {
|
|
1243
|
+
obj: {
|
|
1244
|
+
t: 'NR',
|
|
1245
|
+
p: '',
|
|
1246
|
+
k: '35',
|
|
1247
|
+
},
|
|
1248
|
+
value: '35',
|
|
1249
|
+
},
|
|
1250
|
+
CLOSE: {
|
|
1251
|
+
obj: {
|
|
1252
|
+
t: 'NR',
|
|
1253
|
+
p: '',
|
|
1254
|
+
k: '40',
|
|
1255
|
+
},
|
|
1256
|
+
value: '40',
|
|
1257
|
+
},
|
|
1258
|
+
},
|
|
1259
|
+
},
|
|
1260
|
+
]
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
echart11.consistencyCheck = true;
|
|
1264
|
+
echart11.types = ['Calendar'];
|
|
1265
|
+
echart11.colors = ['blue'];
|
|
1266
|
+
echart11.axis = '';
|
|
1267
|
+
echart11.chartTitle = {
|
|
1268
|
+
value: 'Calendar',
|
|
1269
|
+
color: 'red',
|
|
1270
|
+
position: 'top',
|
|
1271
|
+
size: 16,
|
|
1272
|
+
};
|
|
1273
|
+
echart11.data = { // actual dataset
|
|
1274
|
+
columns: [
|
|
1275
|
+
{
|
|
1276
|
+
name: 'DATE',
|
|
1277
|
+
obj: {
|
|
1278
|
+
t: 'D8',
|
|
1279
|
+
p: '*YYMD',
|
|
1280
|
+
k: '',
|
|
1281
|
+
},
|
|
1282
|
+
title: 'Date',
|
|
1283
|
+
},
|
|
1284
|
+
{
|
|
1285
|
+
name: 'VALUE',
|
|
1286
|
+
obj: {
|
|
1287
|
+
t: 'NR',
|
|
1288
|
+
p: '',
|
|
1289
|
+
k: '',
|
|
1290
|
+
},
|
|
1291
|
+
title: 'Value',
|
|
1292
|
+
},
|
|
1293
|
+
],
|
|
1294
|
+
rows: [
|
|
1295
|
+
{
|
|
1296
|
+
cells: {
|
|
1297
|
+
DATE: {
|
|
1298
|
+
obj: {
|
|
1299
|
+
t: 'D8',
|
|
1300
|
+
p: '*YYMD',
|
|
1301
|
+
k: '20230401',
|
|
1302
|
+
},
|
|
1303
|
+
value: '2023-04-01',
|
|
1304
|
+
},
|
|
1305
|
+
VALUE: {
|
|
1306
|
+
obj: {
|
|
1307
|
+
t: 'NR',
|
|
1308
|
+
p: '',
|
|
1309
|
+
k: '50',
|
|
1310
|
+
},
|
|
1311
|
+
value: '50',
|
|
1312
|
+
},
|
|
1313
|
+
},
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
cells: {
|
|
1317
|
+
DATE: {
|
|
1318
|
+
obj: {
|
|
1319
|
+
t: 'D8',
|
|
1320
|
+
p: '*YYMD',
|
|
1321
|
+
k: '20230415',
|
|
1322
|
+
},
|
|
1323
|
+
value: '2023-04-15',
|
|
1324
|
+
},
|
|
1325
|
+
VALUE: {
|
|
1326
|
+
obj: {
|
|
1327
|
+
t: 'NR',
|
|
1328
|
+
p: '',
|
|
1329
|
+
k: '25',
|
|
1330
|
+
},
|
|
1331
|
+
value: '25',
|
|
1332
|
+
},
|
|
1333
|
+
},
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
cells: {
|
|
1337
|
+
DATE: {
|
|
1338
|
+
obj: {
|
|
1339
|
+
t: 'D8',
|
|
1340
|
+
p: '*YYMD',
|
|
1341
|
+
k: '20230430',
|
|
1342
|
+
},
|
|
1343
|
+
value: '2023-04-30',
|
|
1344
|
+
},
|
|
1345
|
+
VALUE: {
|
|
1346
|
+
obj: {
|
|
1347
|
+
t: 'NR',
|
|
1348
|
+
p: '',
|
|
1349
|
+
k: '100',
|
|
1350
|
+
},
|
|
1351
|
+
value: '100',
|
|
1352
|
+
},
|
|
1353
|
+
},
|
|
1354
|
+
},
|
|
1355
|
+
],
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1110
1358
|
document.addEventListener('kup-echart-click', (e) => {
|
|
1111
1359
|
console.log(e);
|
|
1112
1360
|
});
|
|
@@ -1237,6 +1237,8 @@ export class KupDataTable {
|
|
|
1237
1237
|
for (let index = 0; index < this.data.columns.length; index++) {
|
|
1238
1238
|
const column = this.data.columns[index];
|
|
1239
1239
|
cells[column.name] = {
|
|
1240
|
+
data: column.cellData,
|
|
1241
|
+
slotData: column.cellSlotData,
|
|
1240
1242
|
isEditable: column.isKey ||
|
|
1241
1243
|
column.isEditable,
|
|
1242
1244
|
obj: Object.assign({}, column.obj),
|
|
@@ -51,4 +51,6 @@ export var KupEchartTypes;
|
|
|
51
51
|
KupEchartTypes["RADAR"] = "Radar";
|
|
52
52
|
KupEchartTypes["BUBBLE"] = "Bubble";
|
|
53
53
|
KupEchartTypes["SANKEY"] = "Sankey";
|
|
54
|
+
KupEchartTypes["CANDLE"] = "Candle";
|
|
55
|
+
KupEchartTypes["CALENDAR"] = "Calendar";
|
|
54
56
|
})(KupEchartTypes || (KupEchartTypes = {}));
|
|
@@ -14,7 +14,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
14
14
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
15
15
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
16
16
|
};
|
|
17
|
-
var _KupEchart_instances, _KupEchart_chartContainer, _KupEchart_chartEl, _KupEchart_gaussianDatasets, _KupEchart_kupManager, _KupEchart_mapObj, _KupEchart_resizeTimeout, _KupEchart_sortedDataset, _KupEchart_themeBorder, _KupEchart_themeBackground, _KupEchart_minColorHeatMap, _KupEchart_maxColorHeatMap, _KupEchart_themeFont, _KupEchart_themeText, _KupEchart_initChart, _KupEchart_createChart, _KupEchart_funnelChart, _KupEchart_radarChart, _KupEchart_bubbleChart, _KupEchart_sankeyChart, _KupEchart_createX, _KupEchart_createY, _KupEchart_setAxisColors, _KupEchart_setLegend, _KupEchart_setTitle, _KupEchart_setTooltip, _KupEchart_setVisualMap, _KupEchart_setMapOptions, _KupEchart_setPieOptions, _KupEchart_setGaussianOptions, _KupEchart_addSeries, _KupEchart_setOptions, _KupEchart_setColors, _KupEchart_checks;
|
|
17
|
+
var _KupEchart_instances, _KupEchart_chartContainer, _KupEchart_chartEl, _KupEchart_gaussianDatasets, _KupEchart_kupManager, _KupEchart_mapObj, _KupEchart_resizeTimeout, _KupEchart_sortedDataset, _KupEchart_themeBorder, _KupEchart_themeBackground, _KupEchart_minColorHeatMap, _KupEchart_maxColorHeatMap, _KupEchart_themeFont, _KupEchart_themeText, _KupEchart_initChart, _KupEchart_createChart, _KupEchart_funnelChart, _KupEchart_radarChart, _KupEchart_bubbleChart, _KupEchart_sankeyChart, _KupEchart_candleChart, _KupEchart_calendarChart, _KupEchart_createX, _KupEchart_createY, _KupEchart_setAxisColors, _KupEchart_setLegend, _KupEchart_setTitle, _KupEchart_setTooltip, _KupEchart_setVisualMap, _KupEchart_setMapOptions, _KupEchart_setPieOptions, _KupEchart_setGaussianOptions, _KupEchart_addSeries, _KupEchart_setOptions, _KupEchart_setColors, _KupEchart_checks;
|
|
18
18
|
import { forceUpdate, getAssetPath, Host, h, } from '@stencil/core';
|
|
19
19
|
import * as echarts from 'echarts';
|
|
20
20
|
import { KupEchartLegendPlacement, KupEchartMaps, KupEchartProps, KupEchartTypes, } from './kup-echart-declarations';
|
|
@@ -658,6 +658,13 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
658
658
|
case KupEchartTypes.SANKEY:
|
|
659
659
|
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_sankeyChart).call(this);
|
|
660
660
|
break;
|
|
661
|
+
case KupEchartTypes.CANDLE:
|
|
662
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_candleChart).call(this);
|
|
663
|
+
break;
|
|
664
|
+
case KupEchartTypes.CALENDAR:
|
|
665
|
+
console.log('virtual 0');
|
|
666
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_calendarChart).call(this);
|
|
667
|
+
break;
|
|
661
668
|
default:
|
|
662
669
|
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setOptions).call(this);
|
|
663
670
|
break;
|
|
@@ -907,6 +914,123 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
907
914
|
left: '10%',
|
|
908
915
|
},
|
|
909
916
|
};
|
|
917
|
+
}, _KupEchart_candleChart = function _KupEchart_candleChart() {
|
|
918
|
+
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this), answer = [], itemStyle = {
|
|
919
|
+
color: 'red',
|
|
920
|
+
borderColor: 'red',
|
|
921
|
+
color0: 'green',
|
|
922
|
+
borderColor0: 'green',
|
|
923
|
+
};
|
|
924
|
+
let caseInsensitiveObj = new Proxy(y, {
|
|
925
|
+
get: function (target, prop) {
|
|
926
|
+
// Convert the property name to lowercase
|
|
927
|
+
const lowercaseProp = prop.toLowerCase();
|
|
928
|
+
// Search for the property case-insensitively
|
|
929
|
+
for (let key in target) {
|
|
930
|
+
if (key.toLowerCase() === lowercaseProp) {
|
|
931
|
+
return target[key];
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
// Property not found, return undefined
|
|
935
|
+
return undefined;
|
|
936
|
+
},
|
|
937
|
+
});
|
|
938
|
+
const date = caseInsensitiveObj['date'];
|
|
939
|
+
for (let i = 0; i < caseInsensitiveObj['Open'].length; i++) {
|
|
940
|
+
answer.push([
|
|
941
|
+
parseInt(caseInsensitiveObj['close'][i]),
|
|
942
|
+
parseInt(caseInsensitiveObj['Open'][i]),
|
|
943
|
+
parseInt(caseInsensitiveObj['Low'][i]),
|
|
944
|
+
parseInt(caseInsensitiveObj['High'][i]),
|
|
945
|
+
]);
|
|
946
|
+
}
|
|
947
|
+
let legend = {};
|
|
948
|
+
date.forEach((e, i) => {
|
|
949
|
+
legend[e] = i;
|
|
950
|
+
});
|
|
951
|
+
return {
|
|
952
|
+
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, legend),
|
|
953
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item' }),
|
|
954
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
955
|
+
xAxis: {
|
|
956
|
+
data: date,
|
|
957
|
+
},
|
|
958
|
+
yAxis: {},
|
|
959
|
+
series: [
|
|
960
|
+
{
|
|
961
|
+
type: 'candlestick',
|
|
962
|
+
data: answer,
|
|
963
|
+
itemStyle: itemStyle,
|
|
964
|
+
},
|
|
965
|
+
],
|
|
966
|
+
};
|
|
967
|
+
}, _KupEchart_calendarChart = function _KupEchart_calendarChart() {
|
|
968
|
+
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this);
|
|
969
|
+
let caseInsensitiveObj = new Proxy(y, {
|
|
970
|
+
get: function (target, prop) {
|
|
971
|
+
// Convert the property name to lowercase
|
|
972
|
+
const lowercaseProp = prop.toLowerCase();
|
|
973
|
+
// Search for the property case-insensitively
|
|
974
|
+
for (let key in target) {
|
|
975
|
+
if (key.toLowerCase() === lowercaseProp) {
|
|
976
|
+
return target[key];
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
// Property not found, return undefined
|
|
980
|
+
return undefined;
|
|
981
|
+
},
|
|
982
|
+
});
|
|
983
|
+
const date = caseInsensitiveObj['Date'], answer = [], keys = Object.keys(y), year = new Date(date[0]).getFullYear(), arrayLength = date.length;
|
|
984
|
+
date.forEach((element, i) => {
|
|
985
|
+
answer.push([element, caseInsensitiveObj['Value'][i]]);
|
|
986
|
+
});
|
|
987
|
+
return {
|
|
988
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: (value) => {
|
|
989
|
+
const name = value.data;
|
|
990
|
+
console.log('data', name);
|
|
991
|
+
const data = keys.map((e, i) => {
|
|
992
|
+
return `<li> ${e}: ${name[i]} </li>`;
|
|
993
|
+
});
|
|
994
|
+
let showContent = '';
|
|
995
|
+
data.forEach((r) => {
|
|
996
|
+
showContent += r;
|
|
997
|
+
});
|
|
998
|
+
return `<ul>${showContent}</ul> `;
|
|
999
|
+
} }),
|
|
1000
|
+
gradientColor: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, arrayLength),
|
|
1001
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
1002
|
+
visualMap: {
|
|
1003
|
+
show: false,
|
|
1004
|
+
min: 0,
|
|
1005
|
+
max: 10000,
|
|
1006
|
+
},
|
|
1007
|
+
calendar: {
|
|
1008
|
+
range: year,
|
|
1009
|
+
itemStyle: {
|
|
1010
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeBackground, "f"),
|
|
1011
|
+
},
|
|
1012
|
+
dayLabel: {
|
|
1013
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
1014
|
+
},
|
|
1015
|
+
yearLabel: {
|
|
1016
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
1017
|
+
},
|
|
1018
|
+
monthLabel: {
|
|
1019
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
1020
|
+
},
|
|
1021
|
+
splitLine: {
|
|
1022
|
+
show: true,
|
|
1023
|
+
lineStyle: {
|
|
1024
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
1025
|
+
},
|
|
1026
|
+
},
|
|
1027
|
+
},
|
|
1028
|
+
series: {
|
|
1029
|
+
type: 'heatmap',
|
|
1030
|
+
coordinateSystem: 'calendar',
|
|
1031
|
+
data: answer,
|
|
1032
|
+
},
|
|
1033
|
+
};
|
|
910
1034
|
}, _KupEchart_createX = function _KupEchart_createX(dataset = null) {
|
|
911
1035
|
const x = [];
|
|
912
1036
|
if (!dataset)
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* @prop --kup-form-font-size: Sets font size of the component.
|
|
6
6
|
* @prop --kup-form-label-alignment: Sets the text alignment of labels.
|
|
7
7
|
* @prop --kup-form-label-width: Sets the width of labels.
|
|
8
|
+
* @prop --kup-form-padding: Sets the padding of the form.
|
|
8
9
|
*/
|
|
9
10
|
:host {
|
|
10
11
|
--kup_form_background_color: var(
|
|
@@ -16,6 +17,7 @@
|
|
|
16
17
|
--kup_form_font_size: var(--kup-form-font-size, var(--kup-font-size));
|
|
17
18
|
--kup_form_label_alignment: var(--kup-form-label-alignment);
|
|
18
19
|
--kup_form_label_width: var(--kup-form-label-width);
|
|
20
|
+
--kup_form_padding: var(--kup-form-padding, 1em 0);
|
|
19
21
|
display: block;
|
|
20
22
|
font-family: var(--kup_form_font_family);
|
|
21
23
|
font-size: var(--kup_form_font_size);
|
|
@@ -27,7 +29,7 @@
|
|
|
27
29
|
display: flex;
|
|
28
30
|
flex-grow: 1;
|
|
29
31
|
overflow: auto;
|
|
30
|
-
padding:
|
|
32
|
+
padding: var(--kup_form_padding);
|
|
31
33
|
position: relative;
|
|
32
34
|
}
|
|
33
35
|
.form--column {
|
|
@@ -331,6 +331,8 @@ function setKupCell(cellType, classObj, subcomponentProps, cell, row, column, pr
|
|
|
331
331
|
classObj[FCellClasses.C_CENTERED] = true;
|
|
332
332
|
}
|
|
333
333
|
return (h("kup-chart", Object.assign({ key: column.name + props.row.id }, subcomponentProps)));
|
|
334
|
+
case FCellTypes.MULTI_AUTOCOMPLETE:
|
|
335
|
+
case FCellTypes.MULTI_COMBOBOX:
|
|
334
336
|
case FCellTypes.CHIP:
|
|
335
337
|
return h(FChip, Object.assign({}, subcomponentProps));
|
|
336
338
|
case FCellTypes.COLOR_PICKER:
|
|
@@ -8304,6 +8304,8 @@ const kupTypes = [
|
|
|
8304
8304
|
FCellTypes.COLOR_PICKER,
|
|
8305
8305
|
FCellTypes.GAUGE,
|
|
8306
8306
|
FCellTypes.KNOB,
|
|
8307
|
+
FCellTypes.MULTI_AUTOCOMPLETE,
|
|
8308
|
+
FCellTypes.MULTI_COMBOBOX,
|
|
8307
8309
|
FCellTypes.PROGRESS_BAR,
|
|
8308
8310
|
FCellTypes.RADIO,
|
|
8309
8311
|
FCellTypes.RATING,
|
|
@@ -23333,6 +23335,8 @@ function setKupCell(cellType, classObj, subcomponentProps, cell, row, column, pr
|
|
|
23333
23335
|
classObj[FCellClasses.C_CENTERED] = true;
|
|
23334
23336
|
}
|
|
23335
23337
|
return (h("kup-chart", Object.assign({ key: column.name + props.row.id }, subcomponentProps)));
|
|
23338
|
+
case FCellTypes.MULTI_AUTOCOMPLETE:
|
|
23339
|
+
case FCellTypes.MULTI_COMBOBOX:
|
|
23336
23340
|
case FCellTypes.CHIP:
|
|
23337
23341
|
return h(FChip, Object.assign({}, subcomponentProps));
|
|
23338
23342
|
case FCellTypes.COLOR_PICKER:
|
|
@@ -38336,7 +38340,7 @@ var KupFormLabelPlacement;
|
|
|
38336
38340
|
KupFormLabelPlacement["TOP"] = "top";
|
|
38337
38341
|
})(KupFormLabelPlacement || (KupFormLabelPlacement = {}));
|
|
38338
38342
|
|
|
38339
|
-
const kupFormCss = ":host{--kup_form_background_color:var(\n --kup-form-background-color,\n var(--kup-background-color)\n );--kup_form_color:var(--kup-form-color, var(--kup-text-color));--kup_form_font_family:var(--kup-form-font-family, var(--kup-font-family));--kup_form_font_size:var(--kup-form-font-size, var(--kup-font-size));--kup_form_label_alignment:var(--kup-form-label-alignment);--kup_form_label_width:var(--kup-form-label-width);display:block;font-family:var(--kup_form_font_family);font-size:var(--kup_form_font_size)}.form{background:var(--kup_form_background_color);color:var(--kup_form_color);display:flex;flex-grow:1;overflow:auto;padding:
|
|
38343
|
+
const kupFormCss = ":host{--kup_form_background_color:var(\n --kup-form-background-color,\n var(--kup-background-color)\n );--kup_form_color:var(--kup-form-color, var(--kup-text-color));--kup_form_font_family:var(--kup-form-font-family, var(--kup-font-family));--kup_form_font_size:var(--kup-form-font-size, var(--kup-font-size));--kup_form_label_alignment:var(--kup-form-label-alignment);--kup_form_label_width:var(--kup-form-label-width);--kup_form_padding:var(--kup-form-padding, 1em 0);display:block;font-family:var(--kup_form_font_family);font-size:var(--kup_form_font_size)}.form{background:var(--kup_form_background_color);color:var(--kup_form_color);display:flex;flex-grow:1;overflow:auto;padding:var(--kup_form_padding);position:relative}.form--column{flex-direction:column}.form__section{display:flex;flex:1 1 1%;flex-direction:row;flex-wrap:wrap}.form__section--column{flex-direction:column;flex-wrap:unset}.form__section--column>.form__section{flex:0 0 auto}.form__section--grid{display:grid}.form__section--titled{border:1px solid var(--kup-border-color);padding-top:5px;position:relative;margin:10px}.form__section--titled>h3{background:var(--kup-background-color);font-size:calc(var(--kup-font-size) * 1.15);position:absolute;margin:0px;padding:0 8px;top:-11px;left:5px;transition:background-color 0.25s ease}.form__section--left .form__label{width:var(--kup_form_label_width, 0)}.form__section--right .form__field{min-width:200px;width:0}.form__label{-webkit-font-smoothing:antialiased;box-sizing:border-box;font-size:0.875em;letter-spacing:0.0178571429em;white-space:nowrap;width:var(--kup_form_label_width)}.form__label--center{text-align:var(--kup_form_label_alignment, center)}.form__label--left{text-align:var(--kup_form_label_alignment, left)}.form__label--right{text-align:var(--kup_form_label_alignment, right)}.form__field{min-height:16px}.form__field img{height:auto}.form__submit{height:0;opacity:0;overflow:hidden;position:absolute;width:0}.form .f-cell.c-right-aligned:not(.c-centered) .f-cell__content{justify-content:flex-start}";
|
|
38340
38344
|
|
|
38341
38345
|
const dom = document.documentElement;
|
|
38342
38346
|
const KupForm = /*@__PURE__*/ proxyCustomElement(class KupForm extends HTMLElement$1 {
|
|
@@ -40142,6 +40146,8 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
40142
40146
|
for (let index = 0; index < this.data.columns.length; index++) {
|
|
40143
40147
|
const column = this.data.columns[index];
|
|
40144
40148
|
cells[column.name] = {
|
|
40149
|
+
data: column.cellData,
|
|
40150
|
+
slotData: column.cellSlotData,
|
|
40145
40151
|
isEditable: column.isKey ||
|
|
40146
40152
|
column.isEditable,
|
|
40147
40153
|
obj: Object.assign({}, column.obj),
|
|
@@ -93855,6 +93855,8 @@ var KupEchartTypes;
|
|
|
93855
93855
|
KupEchartTypes["RADAR"] = "Radar";
|
|
93856
93856
|
KupEchartTypes["BUBBLE"] = "Bubble";
|
|
93857
93857
|
KupEchartTypes["SANKEY"] = "Sankey";
|
|
93858
|
+
KupEchartTypes["CANDLE"] = "Candle";
|
|
93859
|
+
KupEchartTypes["CALENDAR"] = "Calendar";
|
|
93858
93860
|
})(KupEchartTypes || (KupEchartTypes = {}));
|
|
93859
93861
|
|
|
93860
93862
|
const kupEchartCss = ":host{display:block;height:var(--kup_echart_height, 100%);min-height:var(--kup_echart_height, 100%);min-width:var(--kup_echart_width, 100%);width:var(--kup_echart_width, 100%)}#kup-component{width:100%;height:100%;position:relative}";
|
|
@@ -93875,7 +93877,7 @@ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) ||
|
|
|
93875
93877
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
93876
93878
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
93877
93879
|
};
|
|
93878
|
-
var _KupEchart_instances, _KupEchart_chartContainer, _KupEchart_chartEl, _KupEchart_gaussianDatasets, _KupEchart_kupManager, _KupEchart_mapObj, _KupEchart_resizeTimeout, _KupEchart_sortedDataset, _KupEchart_themeBorder, _KupEchart_themeBackground, _KupEchart_minColorHeatMap, _KupEchart_maxColorHeatMap, _KupEchart_themeFont, _KupEchart_themeText, _KupEchart_initChart, _KupEchart_createChart, _KupEchart_funnelChart, _KupEchart_radarChart, _KupEchart_bubbleChart, _KupEchart_sankeyChart, _KupEchart_createX, _KupEchart_createY, _KupEchart_setAxisColors, _KupEchart_setLegend, _KupEchart_setTitle, _KupEchart_setTooltip, _KupEchart_setVisualMap, _KupEchart_setMapOptions, _KupEchart_setPieOptions, _KupEchart_setGaussianOptions, _KupEchart_addSeries, _KupEchart_setOptions, _KupEchart_setColors, _KupEchart_checks;
|
|
93880
|
+
var _KupEchart_instances, _KupEchart_chartContainer, _KupEchart_chartEl, _KupEchart_gaussianDatasets, _KupEchart_kupManager, _KupEchart_mapObj, _KupEchart_resizeTimeout, _KupEchart_sortedDataset, _KupEchart_themeBorder, _KupEchart_themeBackground, _KupEchart_minColorHeatMap, _KupEchart_maxColorHeatMap, _KupEchart_themeFont, _KupEchart_themeText, _KupEchart_initChart, _KupEchart_createChart, _KupEchart_funnelChart, _KupEchart_radarChart, _KupEchart_bubbleChart, _KupEchart_sankeyChart, _KupEchart_candleChart, _KupEchart_calendarChart, _KupEchart_createX, _KupEchart_createY, _KupEchart_setAxisColors, _KupEchart_setLegend, _KupEchart_setTitle, _KupEchart_setTooltip, _KupEchart_setVisualMap, _KupEchart_setMapOptions, _KupEchart_setPieOptions, _KupEchart_setGaussianOptions, _KupEchart_addSeries, _KupEchart_setOptions, _KupEchart_setColors, _KupEchart_checks;
|
|
93879
93881
|
const KupEchart = /*@__PURE__*/ proxyCustomElement(class KupEchart extends HTMLElement {
|
|
93880
93882
|
constructor() {
|
|
93881
93883
|
super();
|
|
@@ -94075,6 +94077,13 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
94075
94077
|
case KupEchartTypes.SANKEY:
|
|
94076
94078
|
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_sankeyChart).call(this);
|
|
94077
94079
|
break;
|
|
94080
|
+
case KupEchartTypes.CANDLE:
|
|
94081
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_candleChart).call(this);
|
|
94082
|
+
break;
|
|
94083
|
+
case KupEchartTypes.CALENDAR:
|
|
94084
|
+
console.log('virtual 0');
|
|
94085
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_calendarChart).call(this);
|
|
94086
|
+
break;
|
|
94078
94087
|
default:
|
|
94079
94088
|
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setOptions).call(this);
|
|
94080
94089
|
break;
|
|
@@ -94324,6 +94333,123 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
94324
94333
|
left: '10%',
|
|
94325
94334
|
},
|
|
94326
94335
|
};
|
|
94336
|
+
}, _KupEchart_candleChart = function _KupEchart_candleChart() {
|
|
94337
|
+
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this), answer = [], itemStyle = {
|
|
94338
|
+
color: 'red',
|
|
94339
|
+
borderColor: 'red',
|
|
94340
|
+
color0: 'green',
|
|
94341
|
+
borderColor0: 'green',
|
|
94342
|
+
};
|
|
94343
|
+
let caseInsensitiveObj = new Proxy(y, {
|
|
94344
|
+
get: function (target, prop) {
|
|
94345
|
+
// Convert the property name to lowercase
|
|
94346
|
+
const lowercaseProp = prop.toLowerCase();
|
|
94347
|
+
// Search for the property case-insensitively
|
|
94348
|
+
for (let key in target) {
|
|
94349
|
+
if (key.toLowerCase() === lowercaseProp) {
|
|
94350
|
+
return target[key];
|
|
94351
|
+
}
|
|
94352
|
+
}
|
|
94353
|
+
// Property not found, return undefined
|
|
94354
|
+
return undefined;
|
|
94355
|
+
},
|
|
94356
|
+
});
|
|
94357
|
+
const date = caseInsensitiveObj['date'];
|
|
94358
|
+
for (let i = 0; i < caseInsensitiveObj['Open'].length; i++) {
|
|
94359
|
+
answer.push([
|
|
94360
|
+
parseInt(caseInsensitiveObj['close'][i]),
|
|
94361
|
+
parseInt(caseInsensitiveObj['Open'][i]),
|
|
94362
|
+
parseInt(caseInsensitiveObj['Low'][i]),
|
|
94363
|
+
parseInt(caseInsensitiveObj['High'][i]),
|
|
94364
|
+
]);
|
|
94365
|
+
}
|
|
94366
|
+
let legend = {};
|
|
94367
|
+
date.forEach((e, i) => {
|
|
94368
|
+
legend[e] = i;
|
|
94369
|
+
});
|
|
94370
|
+
return {
|
|
94371
|
+
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, legend),
|
|
94372
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item' }),
|
|
94373
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
94374
|
+
xAxis: {
|
|
94375
|
+
data: date,
|
|
94376
|
+
},
|
|
94377
|
+
yAxis: {},
|
|
94378
|
+
series: [
|
|
94379
|
+
{
|
|
94380
|
+
type: 'candlestick',
|
|
94381
|
+
data: answer,
|
|
94382
|
+
itemStyle: itemStyle,
|
|
94383
|
+
},
|
|
94384
|
+
],
|
|
94385
|
+
};
|
|
94386
|
+
}, _KupEchart_calendarChart = function _KupEchart_calendarChart() {
|
|
94387
|
+
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this);
|
|
94388
|
+
let caseInsensitiveObj = new Proxy(y, {
|
|
94389
|
+
get: function (target, prop) {
|
|
94390
|
+
// Convert the property name to lowercase
|
|
94391
|
+
const lowercaseProp = prop.toLowerCase();
|
|
94392
|
+
// Search for the property case-insensitively
|
|
94393
|
+
for (let key in target) {
|
|
94394
|
+
if (key.toLowerCase() === lowercaseProp) {
|
|
94395
|
+
return target[key];
|
|
94396
|
+
}
|
|
94397
|
+
}
|
|
94398
|
+
// Property not found, return undefined
|
|
94399
|
+
return undefined;
|
|
94400
|
+
},
|
|
94401
|
+
});
|
|
94402
|
+
const date = caseInsensitiveObj['Date'], answer = [], keys = Object.keys(y), year = new Date(date[0]).getFullYear(), arrayLength = date.length;
|
|
94403
|
+
date.forEach((element, i) => {
|
|
94404
|
+
answer.push([element, caseInsensitiveObj['Value'][i]]);
|
|
94405
|
+
});
|
|
94406
|
+
return {
|
|
94407
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: (value) => {
|
|
94408
|
+
const name = value.data;
|
|
94409
|
+
console.log('data', name);
|
|
94410
|
+
const data = keys.map((e, i) => {
|
|
94411
|
+
return `<li> ${e}: ${name[i]} </li>`;
|
|
94412
|
+
});
|
|
94413
|
+
let showContent = '';
|
|
94414
|
+
data.forEach((r) => {
|
|
94415
|
+
showContent += r;
|
|
94416
|
+
});
|
|
94417
|
+
return `<ul>${showContent}</ul> `;
|
|
94418
|
+
} }),
|
|
94419
|
+
gradientColor: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, arrayLength),
|
|
94420
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
94421
|
+
visualMap: {
|
|
94422
|
+
show: false,
|
|
94423
|
+
min: 0,
|
|
94424
|
+
max: 10000,
|
|
94425
|
+
},
|
|
94426
|
+
calendar: {
|
|
94427
|
+
range: year,
|
|
94428
|
+
itemStyle: {
|
|
94429
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeBackground, "f"),
|
|
94430
|
+
},
|
|
94431
|
+
dayLabel: {
|
|
94432
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
94433
|
+
},
|
|
94434
|
+
yearLabel: {
|
|
94435
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
94436
|
+
},
|
|
94437
|
+
monthLabel: {
|
|
94438
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
94439
|
+
},
|
|
94440
|
+
splitLine: {
|
|
94441
|
+
show: true,
|
|
94442
|
+
lineStyle: {
|
|
94443
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
94444
|
+
},
|
|
94445
|
+
},
|
|
94446
|
+
},
|
|
94447
|
+
series: {
|
|
94448
|
+
type: 'heatmap',
|
|
94449
|
+
coordinateSystem: 'calendar',
|
|
94450
|
+
data: answer,
|
|
94451
|
+
},
|
|
94452
|
+
};
|
|
94327
94453
|
}, _KupEchart_createX = function _KupEchart_createX(dataset = null) {
|
|
94328
94454
|
const x = [];
|
|
94329
94455
|
if (!dataset)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from './index-b45996ce.js';
|
|
2
2
|
import { F as FButtonStyling } from './f-button-declarations-fd4965d1.js';
|
|
3
|
-
import { F as FImage } from './f-image-
|
|
3
|
+
import { F as FImage } from './f-image-77ac3ca0.js';
|
|
4
4
|
|
|
5
5
|
/*-------------------------------------------------*/
|
|
6
6
|
/* C o m p o n e n t */
|