@sme.up/ketchup 8.2.0 → 8.2.2
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-797c8e7f.js → f-button-76a75669.js} +2 -2
- package/dist/cjs/{f-cell-9c8ed48b.js → f-cell-6f902849.js} +8 -8
- package/dist/cjs/{f-checkbox-cff77b2c.js → f-checkbox-aa34efd5.js} +1 -1
- package/dist/cjs/{f-chip-318863df.js → f-chip-fe9cffed.js} +3 -3
- package/dist/cjs/{f-image-f10144e9.js → f-image-47976ad7.js} +2 -2
- package/dist/cjs/{f-paginator-utils-8c44a37b.js → f-paginator-utils-f13f036f.js} +3 -3
- package/dist/cjs/{f-text-field-9610c198.js → f-text-field-865a6386.js} +9 -5
- package/dist/cjs/{index-a9a3b467.js → index-dd9f2b9b.js} +0 -3
- package/dist/cjs/ketchup.cjs.js +2 -2
- package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +16 -10
- package/dist/cjs/kup-box.cjs.entry.js +11 -11
- package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
- package/dist/cjs/kup-cell.cjs.entry.js +7 -7
- package/dist/cjs/kup-dash-list.cjs.entry.js +2 -2
- package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
- package/dist/cjs/kup-dashboard.cjs.entry.js +6 -6
- package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
- package/dist/cjs/kup-echart.cjs.entry.js +57 -17
- package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
- package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
- package/dist/cjs/kup-image-list.cjs.entry.js +8 -8
- package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
- package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
- package/dist/cjs/{kup-manager-7747decd.js → kup-manager-695bbbe3.js} +1 -1
- package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
- package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
- package/dist/cjs/kup-planner.cjs.entry.js +3 -3
- package/dist/cjs/kup-probe.cjs.entry.js +2 -2
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/data-table.js +0 -44
- package/dist/collection/assets/echart.js +146 -4
- package/dist/collection/components/kup-box/kup-box.js +1 -1
- package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
- package/dist/collection/components/kup-echart/kup-echart-declarations.js +1 -0
- package/dist/collection/components/kup-echart/kup-echart.js +54 -15
- package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +2 -0
- package/dist/collection/components/kup-text-field/kup-text-field.js +46 -0
- package/dist/collection/f-components/f-cell/f-cell.js +2 -2
- package/dist/collection/f-components/f-text-field/f-text-field.js +7 -3
- package/dist/components/kup-autocomplete2.js +18 -6
- package/dist/components/kup-box2.js +1 -1
- package/dist/components/kup-echart2.js +55 -15
- package/dist/esm/{f-button-e0e6f65f.js → f-button-c5b36ae1.js} +2 -2
- package/dist/esm/{f-cell-359dfe28.js → f-cell-fbfe9fe0.js} +8 -8
- package/dist/esm/{f-checkbox-91358c27.js → f-checkbox-11b32f83.js} +1 -1
- package/dist/esm/{f-chip-0fd043b4.js → f-chip-038e9404.js} +3 -3
- package/dist/esm/{f-image-b853b0cc.js → f-image-c356f4c5.js} +2 -2
- package/dist/esm/{f-paginator-utils-124c146a.js → f-paginator-utils-58466d55.js} +3 -3
- package/dist/esm/{f-text-field-92bb3a1f.js → f-text-field-98905f74.js} +9 -5
- package/dist/esm/{index-bb15ce14.js → index-b45996ce.js} +1 -3
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +3 -3
- package/dist/esm/kup-autocomplete_27.entry.js +16 -10
- package/dist/esm/kup-box.entry.js +11 -11
- package/dist/esm/kup-calendar.entry.js +5 -5
- package/dist/esm/kup-cell.entry.js +7 -7
- package/dist/esm/kup-dash-list.entry.js +2 -2
- package/dist/esm/kup-dash_2.entry.js +2 -2
- package/dist/esm/kup-dashboard.entry.js +6 -6
- package/dist/esm/kup-drawer.entry.js +2 -2
- package/dist/esm/kup-echart.entry.js +57 -17
- package/dist/esm/kup-family-tree.entry.js +4 -4
- package/dist/esm/kup-iframe.entry.js +2 -2
- package/dist/esm/kup-image-list.entry.js +8 -8
- package/dist/esm/kup-lazy.entry.js +2 -2
- package/dist/esm/kup-magic-box.entry.js +3 -3
- package/dist/esm/{kup-manager-1e6ea451.js → kup-manager-74e46edc.js} +1 -1
- package/dist/esm/kup-nav-bar.entry.js +2 -2
- package/dist/esm/kup-numeric-picker.entry.js +3 -3
- package/dist/esm/kup-photo-frame.entry.js +2 -2
- package/dist/esm/kup-planner.entry.js +3 -3
- package/dist/esm/kup-probe.entry.js +2 -2
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +4 -4
- package/dist/esm/loader.js +3 -3
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-b73b3b52.entry.js → p-008cde2a.entry.js} +1 -1
- package/dist/ketchup/{p-c1b10c9c.entry.js → p-0d533d24.entry.js} +1 -1
- package/dist/ketchup/{p-adad6804.entry.js → p-1f5eb8e6.entry.js} +1 -1
- package/dist/ketchup/{p-cf24193b.entry.js → p-26765429.entry.js} +1 -1
- package/dist/ketchup/{p-41c00681.entry.js → p-2ac7d95a.entry.js} +1 -1
- package/dist/ketchup/p-2cc57793.entry.js +1 -0
- package/dist/ketchup/{p-b5deb573.js → p-3da7e4c6.js} +2 -2
- package/dist/ketchup/{p-6d46cbb0.js → p-46daf529.js} +1 -1
- package/dist/ketchup/{p-1cd5785e.entry.js → p-487f4a33.entry.js} +2 -2
- package/dist/ketchup/{p-6837f725.entry.js → p-59919641.entry.js} +1 -1
- package/dist/ketchup/{p-c010483d.entry.js → p-6efda31f.entry.js} +1 -1
- package/dist/ketchup/{p-ad919f87.entry.js → p-73ab15cd.entry.js} +1 -1
- package/dist/ketchup/{p-fb29ba2a.js → p-78eaa526.js} +1 -1
- package/dist/ketchup/{p-6e79b764.entry.js → p-8d992de0.entry.js} +1 -1
- package/dist/ketchup/{p-fd1323da.js → p-90576709.js} +1 -1
- package/dist/ketchup/p-9c7b9ff2.js +1 -0
- package/dist/ketchup/{p-ba0c4019.entry.js → p-a015c95b.entry.js} +1 -1
- package/dist/ketchup/{p-8c1804d7.entry.js → p-a9151ee8.entry.js} +1 -1
- package/dist/ketchup/{p-818a4a09.entry.js → p-b813af24.entry.js} +1 -1
- package/dist/ketchup/{p-85d6bb1f.entry.js → p-bb93aa7e.entry.js} +1 -1
- package/dist/ketchup/p-c20c4f66.js +1 -0
- package/dist/ketchup/{p-81e20baa.entry.js → p-c3e84081.entry.js} +1 -1
- package/dist/ketchup/{p-adebe276.entry.js → p-cd1f9e76.entry.js} +1 -1
- package/dist/ketchup/{p-349d4715.js → p-d5491e4f.js} +1 -1
- package/dist/ketchup/{p-620faa59.entry.js → p-dfab37a3.entry.js} +1 -1
- package/dist/ketchup/p-e16c04d8.js +1 -0
- package/dist/ketchup/{p-c6088459.entry.js → p-e9d2a964.entry.js} +2 -2
- package/dist/ketchup/{p-c28be862.entry.js → p-efd07a7f.entry.js} +1 -1
- package/dist/ketchup/{p-374f867e.entry.js → p-f023195c.entry.js} +1 -1
- package/dist/ketchup/{p-5dbd4402.entry.js → p-f1da8b9c.entry.js} +1 -1
- package/dist/ketchup/{p-1ca9aece.js → p-ffbd77d5.js} +1 -1
- package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
- package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +2 -1
- package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +2 -0
- package/dist/types/components/kup-text-field/kup-text-field.d.ts +10 -0
- package/dist/types/components.d.ts +20 -0
- package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +2 -0
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
- package/package.json +1 -1
- package/dist/ketchup/p-0143e942.js +0 -1
- package/dist/ketchup/p-2ac2c05e.js +0 -1
- package/dist/ketchup/p-e646523d.js +0 -1
- package/dist/ketchup/p-e8977116.entry.js +0 -1
|
@@ -6,6 +6,7 @@ const echart5 = document.getElementById('gaussian2chart');
|
|
|
6
6
|
const echart6 = document.getElementById('funnelChart');
|
|
7
7
|
const echart7 = document.getElementById('radarChart');
|
|
8
8
|
const echart8 = document.getElementById('bubbleChart');
|
|
9
|
+
const echart9 = document.getElementById('sankeyChart');
|
|
9
10
|
|
|
10
11
|
const mockData = {
|
|
11
12
|
columns: [
|
|
@@ -790,10 +791,9 @@ echart7.data = {
|
|
|
790
791
|
],
|
|
791
792
|
};
|
|
792
793
|
|
|
793
|
-
|
|
794
794
|
echart8.consistencyCheck = true;
|
|
795
795
|
echart8.types = ['Bubble'];
|
|
796
|
-
echart8.colors =
|
|
796
|
+
echart8.colors = ['blue'];
|
|
797
797
|
echart8.axis = '';
|
|
798
798
|
echart8.chartTitle = {
|
|
799
799
|
value: 'Bubble',
|
|
@@ -822,7 +822,7 @@ echart8.data = {
|
|
|
822
822
|
{
|
|
823
823
|
name: 'YEAR',
|
|
824
824
|
title: 'Year',
|
|
825
|
-
}
|
|
825
|
+
},
|
|
826
826
|
],
|
|
827
827
|
rows: [
|
|
828
828
|
{
|
|
@@ -961,8 +961,150 @@ echart8.data = {
|
|
|
961
961
|
},
|
|
962
962
|
},
|
|
963
963
|
},
|
|
964
|
-
]
|
|
964
|
+
],
|
|
965
|
+
};
|
|
965
966
|
|
|
967
|
+
echart9.consistencyCheck = true;
|
|
968
|
+
echart9.types = ['Sankey'];
|
|
969
|
+
echart9.colors = ['blue'];
|
|
970
|
+
echart9.axis = '';
|
|
971
|
+
echart9.chartTitle = {
|
|
972
|
+
value: 'Sankey',
|
|
973
|
+
color: 'red',
|
|
974
|
+
position: 'top',
|
|
975
|
+
size: 16,
|
|
976
|
+
};
|
|
977
|
+
echart9.data = {
|
|
978
|
+
// actual dataset
|
|
979
|
+
columns: [
|
|
980
|
+
{
|
|
981
|
+
name: 'SOURCE',
|
|
982
|
+
title: 'Source',
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
name: 'TARGET',
|
|
986
|
+
title: 'Target',
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
name: 'VALUE',
|
|
990
|
+
obj: {
|
|
991
|
+
t: 'NR',
|
|
992
|
+
p: '',
|
|
993
|
+
k: '',
|
|
994
|
+
},
|
|
995
|
+
title: 'Value',
|
|
996
|
+
},
|
|
997
|
+
],
|
|
998
|
+
rows: [
|
|
999
|
+
{
|
|
1000
|
+
cells: {
|
|
1001
|
+
SOURCE: {
|
|
1002
|
+
value: 'a',
|
|
1003
|
+
},
|
|
1004
|
+
TARGET: {
|
|
1005
|
+
value: 'a1',
|
|
1006
|
+
},
|
|
1007
|
+
VALUE: {
|
|
1008
|
+
obj: {
|
|
1009
|
+
t: 'NR',
|
|
1010
|
+
p: '',
|
|
1011
|
+
k: '5',
|
|
1012
|
+
},
|
|
1013
|
+
value: '5',
|
|
1014
|
+
},
|
|
1015
|
+
},
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
cells: {
|
|
1019
|
+
SOURCE: {
|
|
1020
|
+
value: 'a',
|
|
1021
|
+
},
|
|
1022
|
+
TARGET: {
|
|
1023
|
+
value: 'a2',
|
|
1024
|
+
},
|
|
1025
|
+
VALUE: {
|
|
1026
|
+
obj: {
|
|
1027
|
+
t: 'NR',
|
|
1028
|
+
p: '',
|
|
1029
|
+
k: '3',
|
|
1030
|
+
},
|
|
1031
|
+
value: '3',
|
|
1032
|
+
},
|
|
1033
|
+
},
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
cells: {
|
|
1037
|
+
SOURCE: {
|
|
1038
|
+
value: 'b',
|
|
1039
|
+
},
|
|
1040
|
+
TARGET: {
|
|
1041
|
+
value: 'b1',
|
|
1042
|
+
},
|
|
1043
|
+
VALUE: {
|
|
1044
|
+
obj: {
|
|
1045
|
+
t: 'NR',
|
|
1046
|
+
p: '',
|
|
1047
|
+
k: '8',
|
|
1048
|
+
},
|
|
1049
|
+
value: '8',
|
|
1050
|
+
},
|
|
1051
|
+
},
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
cells: {
|
|
1055
|
+
SOURCE: {
|
|
1056
|
+
value: 'a',
|
|
1057
|
+
},
|
|
1058
|
+
TARGET: {
|
|
1059
|
+
value: 'b1',
|
|
1060
|
+
},
|
|
1061
|
+
VALUE: {
|
|
1062
|
+
obj: {
|
|
1063
|
+
t: 'NR',
|
|
1064
|
+
p: '',
|
|
1065
|
+
k: '3',
|
|
1066
|
+
},
|
|
1067
|
+
value: '3',
|
|
1068
|
+
},
|
|
1069
|
+
},
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
cells: {
|
|
1073
|
+
SOURCE: {
|
|
1074
|
+
value: 'b1',
|
|
1075
|
+
},
|
|
1076
|
+
TARGET: {
|
|
1077
|
+
value: 'a1',
|
|
1078
|
+
},
|
|
1079
|
+
VALUE: {
|
|
1080
|
+
obj: {
|
|
1081
|
+
t: 'NR',
|
|
1082
|
+
p: '',
|
|
1083
|
+
k: '1',
|
|
1084
|
+
},
|
|
1085
|
+
value: '1',
|
|
1086
|
+
},
|
|
1087
|
+
},
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
cells: {
|
|
1091
|
+
SOURCE: {
|
|
1092
|
+
value: 'b1',
|
|
1093
|
+
},
|
|
1094
|
+
TARGET: {
|
|
1095
|
+
value: 'c',
|
|
1096
|
+
},
|
|
1097
|
+
VALUE: {
|
|
1098
|
+
obj: {
|
|
1099
|
+
t: 'NR',
|
|
1100
|
+
p: '',
|
|
1101
|
+
k: '2',
|
|
1102
|
+
},
|
|
1103
|
+
value: '2',
|
|
1104
|
+
},
|
|
1105
|
+
},
|
|
1106
|
+
},
|
|
1107
|
+
],
|
|
966
1108
|
};
|
|
967
1109
|
|
|
968
1110
|
document.addEventListener('kup-echart-click', (e) => {
|
|
@@ -1156,7 +1156,7 @@ export class KupBox {
|
|
|
1156
1156
|
} })));
|
|
1157
1157
|
}
|
|
1158
1158
|
let paginator = null;
|
|
1159
|
-
if (this.pagination) {
|
|
1159
|
+
if (!this.lazyLoadRows && this.pagination) {
|
|
1160
1160
|
paginator = (h(FPaginator, { id: top ? 'top-paginator' : 'bottom-paginator', currentPage: this.currentPage, max: this.filteredRows.length, mode: FPaginatorMode.SIMPLE, perPage: this.currentRowsPerPage
|
|
1161
1161
|
? this.currentRowsPerPage
|
|
1162
1162
|
: this.rowsPerPage, onPageChange: (e) => this.handlePageChange(e.detail.value), onRowsChange: (e) => this.handleRowsPerPageChange(e.detail.value) }));
|
|
@@ -5,8 +5,8 @@ export class KupDataTableState {
|
|
|
5
5
|
this.expandGroups = false;
|
|
6
6
|
this.groupLabelDisplay = GroupLabelDisplayMode.BOTH;
|
|
7
7
|
this.density = 'small';
|
|
8
|
-
this.enableExtraColumns = true;
|
|
9
8
|
this.enableSortableColumns = false;
|
|
9
|
+
this.enableExtraColumns = true;
|
|
10
10
|
this.forceOneLine = false;
|
|
11
11
|
this.globalFilter = false;
|
|
12
12
|
this.globalFilterValue = '';
|
|
@@ -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_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_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';
|
|
@@ -655,6 +655,9 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
655
655
|
case KupEchartTypes.BUBBLE:
|
|
656
656
|
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_bubbleChart).call(this);
|
|
657
657
|
break;
|
|
658
|
+
case KupEchartTypes.SANKEY:
|
|
659
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_sankeyChart).call(this);
|
|
660
|
+
break;
|
|
658
661
|
default:
|
|
659
662
|
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setOptions).call(this);
|
|
660
663
|
break;
|
|
@@ -792,13 +795,13 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
792
795
|
}, _KupEchart_bubbleChart = function _KupEchart_bubbleChart() {
|
|
793
796
|
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this), data = [], temp = [], legend = {}, series = [];
|
|
794
797
|
let year = [];
|
|
795
|
-
const content = this.data.columns.map(data => data.title);
|
|
798
|
+
const content = this.data.columns.map((data) => data.title);
|
|
796
799
|
if (content && content.length) {
|
|
797
800
|
for (let i = 0; i < y[content[0]].length; i++) {
|
|
798
801
|
const arr = [];
|
|
799
802
|
for (let j = 0; j < content.length; j++) {
|
|
800
803
|
arr.push(y[content[j]][i]);
|
|
801
|
-
// last value always be a year
|
|
804
|
+
// last value always be a year
|
|
802
805
|
if (j === content.length - 1) {
|
|
803
806
|
year.push(y[content[j]][i]);
|
|
804
807
|
}
|
|
@@ -809,7 +812,7 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
809
812
|
year = [...new Set(year)];
|
|
810
813
|
year.forEach((e, i) => {
|
|
811
814
|
let k = [];
|
|
812
|
-
temp.forEach(data => {
|
|
815
|
+
temp.forEach((data) => {
|
|
813
816
|
if (data.includes(e))
|
|
814
817
|
k.push(data);
|
|
815
818
|
});
|
|
@@ -831,9 +834,9 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
831
834
|
formatter: function (param) {
|
|
832
835
|
return param.data[3];
|
|
833
836
|
},
|
|
834
|
-
position: 'top'
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
+
position: 'top',
|
|
838
|
+
},
|
|
839
|
+
},
|
|
837
840
|
});
|
|
838
841
|
});
|
|
839
842
|
return {
|
|
@@ -845,7 +848,7 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
845
848
|
return `<li> ${e}: ${name[i]} </li>`;
|
|
846
849
|
});
|
|
847
850
|
let showContent = '';
|
|
848
|
-
data.forEach(r => {
|
|
851
|
+
data.forEach((r) => {
|
|
849
852
|
showContent += r;
|
|
850
853
|
});
|
|
851
854
|
return `<ul>${showContent}</ul> `;
|
|
@@ -853,20 +856,56 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
853
856
|
xAxis: {
|
|
854
857
|
splitLine: {
|
|
855
858
|
lineStyle: {
|
|
856
|
-
type: 'dashed'
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
+
type: 'dashed',
|
|
860
|
+
},
|
|
861
|
+
},
|
|
859
862
|
},
|
|
860
863
|
yAxis: {
|
|
861
864
|
splitLine: {
|
|
862
865
|
lineStyle: {
|
|
863
|
-
type: 'dashed'
|
|
864
|
-
}
|
|
866
|
+
type: 'dashed',
|
|
867
|
+
},
|
|
865
868
|
},
|
|
866
|
-
scale: true
|
|
869
|
+
scale: true,
|
|
867
870
|
},
|
|
868
871
|
color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, content.length),
|
|
869
|
-
series: series
|
|
872
|
+
series: series,
|
|
873
|
+
};
|
|
874
|
+
}, _KupEchart_sankeyChart = function _KupEchart_sankeyChart() {
|
|
875
|
+
const links = [], y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this), keys = Object.keys(y);
|
|
876
|
+
// Assuming all arrays in the question object have the same length
|
|
877
|
+
const arrayLength = y[keys[0]].length;
|
|
878
|
+
for (let i = 0; i < arrayLength; i++) {
|
|
879
|
+
const entry = {};
|
|
880
|
+
entry['source'] = y[keys[0]][i];
|
|
881
|
+
entry['target'] = y[keys[1]][i];
|
|
882
|
+
entry['value'] = parseInt(y[keys[2]][i]);
|
|
883
|
+
links.push(entry);
|
|
884
|
+
}
|
|
885
|
+
const data = Array.from(new Set([
|
|
886
|
+
...links.map((link) => link.source),
|
|
887
|
+
...links.map((link) => link.target),
|
|
888
|
+
])).map((name) => ({ name }));
|
|
889
|
+
const legend = {};
|
|
890
|
+
data.forEach((e, i) => {
|
|
891
|
+
legend[e.name] = i;
|
|
892
|
+
});
|
|
893
|
+
return {
|
|
894
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
895
|
+
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, legend),
|
|
896
|
+
color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, arrayLength),
|
|
897
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item' }),
|
|
898
|
+
series: {
|
|
899
|
+
type: 'sankey',
|
|
900
|
+
layout: 'none',
|
|
901
|
+
emphasis: {
|
|
902
|
+
focus: 'adjacency',
|
|
903
|
+
},
|
|
904
|
+
data,
|
|
905
|
+
links,
|
|
906
|
+
right: '10%',
|
|
907
|
+
left: '10%',
|
|
908
|
+
},
|
|
870
909
|
};
|
|
871
910
|
}, _KupEchart_createX = function _KupEchart_createX(dataset = null) {
|
|
872
911
|
const x = [];
|
|
@@ -14,6 +14,7 @@ export var KupTextFieldProps;
|
|
|
14
14
|
KupTextFieldProps["helper"] = "When set, its content will be shown as a help text below the field.";
|
|
15
15
|
KupTextFieldProps["helperEnabled"] = "When true, the helper will be displayed.";
|
|
16
16
|
KupTextFieldProps["helperWhenFocused"] = "When set, the helper will be shown only when the field is focused.";
|
|
17
|
+
KupTextFieldProps["hiddenCounter"] = "Hides the character counter.";
|
|
17
18
|
KupTextFieldProps["icon"] = "When set, the text-field will show this icon.";
|
|
18
19
|
KupTextFieldProps["initialValue"] = "Sets the initial value of the component";
|
|
19
20
|
KupTextFieldProps["inputMode"] = "The HTML inputmode of the input element. It has no effect on text areas.";
|
|
@@ -28,6 +29,7 @@ export var KupTextFieldProps;
|
|
|
28
29
|
KupTextFieldProps["name"] = "The HTML name attribute used for form autocomplete.";
|
|
29
30
|
KupTextFieldProps["outlined"] = "When set to true, the component will be rendered as an outlined field.";
|
|
30
31
|
KupTextFieldProps["readOnly"] = "Sets the component to read only state, making it not editable, but interactable. Used in combobox component when it behaves as a select.";
|
|
32
|
+
KupTextFieldProps["size"] = "The HTML attribute size of the input element.";
|
|
31
33
|
KupTextFieldProps["step"] = "The HTML step of the input element. It has effect only with number input type.";
|
|
32
34
|
KupTextFieldProps["textArea"] = "When set to true, the component will be rendered as a textarea.";
|
|
33
35
|
KupTextFieldProps["trailingIcon"] = "When set, the icon will be shown after the text.";
|
|
@@ -32,6 +32,7 @@ export class KupTextField {
|
|
|
32
32
|
this.helper = null;
|
|
33
33
|
this.helperEnabled = true;
|
|
34
34
|
this.helperWhenFocused = false;
|
|
35
|
+
this.hiddenCounter = false;
|
|
35
36
|
this.icon = null;
|
|
36
37
|
this.initialValue = '';
|
|
37
38
|
this.inputMode = null;
|
|
@@ -46,6 +47,7 @@ export class KupTextField {
|
|
|
46
47
|
this.name = null;
|
|
47
48
|
this.outlined = false;
|
|
48
49
|
this.readOnly = false;
|
|
50
|
+
this.size = null;
|
|
49
51
|
this.step = null;
|
|
50
52
|
this.textArea = false;
|
|
51
53
|
this.trailingIcon = false;
|
|
@@ -221,6 +223,7 @@ export class KupTextField {
|
|
|
221
223
|
helper: this.helper,
|
|
222
224
|
helperEnabled: this.helperEnabled,
|
|
223
225
|
helperWhenFocused: this.helperWhenFocused,
|
|
226
|
+
hiddenCounter: this.hiddenCounter,
|
|
224
227
|
icon: this.icon,
|
|
225
228
|
info: this.rootElement.classList.contains('kup-info')
|
|
226
229
|
? true
|
|
@@ -243,6 +246,7 @@ export class KupTextField {
|
|
|
243
246
|
shaped: this.rootElement.classList.contains('kup-shaped')
|
|
244
247
|
? true
|
|
245
248
|
: false,
|
|
249
|
+
size: this.size,
|
|
246
250
|
step: this.step,
|
|
247
251
|
success: this.rootElement.classList.contains('kup-success')
|
|
248
252
|
? true
|
|
@@ -495,6 +499,27 @@ export class KupTextField {
|
|
|
495
499
|
"reflect": false,
|
|
496
500
|
"defaultValue": "false"
|
|
497
501
|
},
|
|
502
|
+
"hiddenCounter": {
|
|
503
|
+
"type": "boolean",
|
|
504
|
+
"mutable": false,
|
|
505
|
+
"complexType": {
|
|
506
|
+
"original": "boolean",
|
|
507
|
+
"resolved": "boolean",
|
|
508
|
+
"references": {}
|
|
509
|
+
},
|
|
510
|
+
"required": false,
|
|
511
|
+
"optional": false,
|
|
512
|
+
"docs": {
|
|
513
|
+
"tags": [{
|
|
514
|
+
"name": "default",
|
|
515
|
+
"text": "false"
|
|
516
|
+
}],
|
|
517
|
+
"text": "Hides the character counter."
|
|
518
|
+
},
|
|
519
|
+
"attribute": "hidden-counter",
|
|
520
|
+
"reflect": false,
|
|
521
|
+
"defaultValue": "false"
|
|
522
|
+
},
|
|
498
523
|
"icon": {
|
|
499
524
|
"type": "string",
|
|
500
525
|
"mutable": false,
|
|
@@ -789,6 +814,27 @@ export class KupTextField {
|
|
|
789
814
|
"reflect": false,
|
|
790
815
|
"defaultValue": "false"
|
|
791
816
|
},
|
|
817
|
+
"size": {
|
|
818
|
+
"type": "number",
|
|
819
|
+
"mutable": false,
|
|
820
|
+
"complexType": {
|
|
821
|
+
"original": "number",
|
|
822
|
+
"resolved": "number",
|
|
823
|
+
"references": {}
|
|
824
|
+
},
|
|
825
|
+
"required": false,
|
|
826
|
+
"optional": false,
|
|
827
|
+
"docs": {
|
|
828
|
+
"tags": [{
|
|
829
|
+
"name": "default",
|
|
830
|
+
"text": "null"
|
|
831
|
+
}],
|
|
832
|
+
"text": "The HTML attribute size of the input element."
|
|
833
|
+
},
|
|
834
|
+
"attribute": "size",
|
|
835
|
+
"reflect": false,
|
|
836
|
+
"defaultValue": "null"
|
|
837
|
+
},
|
|
792
838
|
"step": {
|
|
793
839
|
"type": "number",
|
|
794
840
|
"mutable": false,
|
|
@@ -104,7 +104,7 @@ export const FCell = (props, children) => {
|
|
|
104
104
|
}
|
|
105
105
|
return (h("div", { onKeyUp: (e) => cellEvent(e, props, cellType, FCellEvents.KEYUP), class: classObj, "kup-get-cell-props": () => {
|
|
106
106
|
return props;
|
|
107
|
-
}, style: cell.style }, h("div", { class: "f-cell__content", style: cell.styleContent, title: cellTitle }, children && children.length > 0
|
|
107
|
+
}, ref: (el) => (cell.element = el), style: cell.style }, h("div", { class: "f-cell__content", style: cell.styleContent, title: cellTitle }, children && children.length > 0
|
|
108
108
|
? children
|
|
109
109
|
: [props.indents, infoEl, icon, content])));
|
|
110
110
|
};
|
|
@@ -236,7 +236,7 @@ function setEditableCell(cellType, classObj, cell, column, props) {
|
|
|
236
236
|
? cell.icon
|
|
237
237
|
: column.icon
|
|
238
238
|
? column.icon
|
|
239
|
-
: null, value: cellType === FCellTypes.NUMBER
|
|
239
|
+
: null, value: cellType === FCellTypes.NUMBER && cell.value
|
|
240
240
|
? dom.ketchup.math
|
|
241
241
|
.numberifySafe(cell.value)
|
|
242
242
|
.toString()
|
|
@@ -67,7 +67,7 @@ function setContent(props) {
|
|
|
67
67
|
}
|
|
68
68
|
return (h("div", { class: classObj }, props.textArea && props.maxLength ? (h("div", { class: "mdc-text-field-character-counter" }, "'0 / ' + ", props.maxLength)) : undefined, !props.trailingIcon ? iconEl : undefined, props.textArea ? (h("span", { class: "mdc-text-field__resizer" }, h("textarea", { class: "mdc-text-field__input", disabled: props.disabled, readOnly: props.readOnly, maxlength: props.maxLength, value: value, onBlur: props.onBlur, onClick: props.onClick, onChange: props.onChange, onFocus: props.onFocus, onInput: props.onInput, onKeyDown: props.onKeyDown }))) : (h("input", { inputmode: props.inputMode ? props.inputMode : undefined, type: inputType, step: props.step, min: props.min, max: props.max, name: props.name, class: "mdc-text-field__input", disabled: props.disabled, readOnly: props.readOnly, placeholder: props.fullWidth && !props.outlined
|
|
69
69
|
? props.label
|
|
70
|
-
: undefined, maxlength: props.maxLength, value: value, onBlur: (e) => {
|
|
70
|
+
: undefined, maxlength: props.maxLength, size: props.size, value: value, onBlur: (e) => {
|
|
71
71
|
var _a;
|
|
72
72
|
if (persManageForNumberFormat) {
|
|
73
73
|
const options = {
|
|
@@ -130,10 +130,14 @@ function setHelper(props) {
|
|
|
130
130
|
'mdc-text-field-helper-text': true,
|
|
131
131
|
'mdc-text-field-helper-text--persistent': !props.helperWhenFocused,
|
|
132
132
|
};
|
|
133
|
-
return (h("div", { class: "mdc-text-field-helper-line" }, h("div", { class: classObj }, props.helper), props.
|
|
133
|
+
return (h("div", { class: "mdc-text-field-helper-line" }, h("div", { class: classObj }, props.helper), props.hiddenCounter !== true &&
|
|
134
|
+
props.maxLength &&
|
|
135
|
+
!props.textArea ? (h("div", { class: "mdc-text-field-character-counter" }, "'0 / ' + ", props.maxLength.toString())) : undefined));
|
|
134
136
|
}
|
|
135
137
|
else {
|
|
136
|
-
if (props.
|
|
138
|
+
if (props.hiddenCounter !== true &&
|
|
139
|
+
props.maxLength &&
|
|
140
|
+
!props.textArea) {
|
|
137
141
|
return (h("div", { class: "mdc-text-field-helper-line" }, h("div", { class: "mdc-text-field-character-counter" }, "'0 / ' + ", props.maxLength)));
|
|
138
142
|
}
|
|
139
143
|
}
|
|
@@ -19834,7 +19834,7 @@ function setContent(props) {
|
|
|
19834
19834
|
props.textArea ? (h("span", { class: "mdc-text-field__resizer" },
|
|
19835
19835
|
h("textarea", { class: "mdc-text-field__input", disabled: props.disabled, readOnly: props.readOnly, maxlength: props.maxLength, value: value, onBlur: props.onBlur, onClick: props.onClick, onChange: props.onChange, onFocus: props.onFocus, onInput: props.onInput, onKeyDown: props.onKeyDown }))) : (h("input", { inputmode: props.inputMode ? props.inputMode : undefined, type: inputType, step: props.step, min: props.min, max: props.max, name: props.name, class: "mdc-text-field__input", disabled: props.disabled, readOnly: props.readOnly, placeholder: props.fullWidth && !props.outlined
|
|
19836
19836
|
? props.label
|
|
19837
|
-
: undefined, maxlength: props.maxLength, value: value, onBlur: (e) => {
|
|
19837
|
+
: undefined, maxlength: props.maxLength, size: props.size, value: value, onBlur: (e) => {
|
|
19838
19838
|
var _a;
|
|
19839
19839
|
if (persManageForNumberFormat) {
|
|
19840
19840
|
const options = {
|
|
@@ -19906,12 +19906,16 @@ function setHelper(props) {
|
|
|
19906
19906
|
};
|
|
19907
19907
|
return (h("div", { class: "mdc-text-field-helper-line" },
|
|
19908
19908
|
h("div", { class: classObj }, props.helper),
|
|
19909
|
-
props.
|
|
19909
|
+
props.hiddenCounter !== true &&
|
|
19910
|
+
props.maxLength &&
|
|
19911
|
+
!props.textArea ? (h("div", { class: "mdc-text-field-character-counter" },
|
|
19910
19912
|
"'0 / ' + ",
|
|
19911
19913
|
props.maxLength.toString())) : undefined));
|
|
19912
19914
|
}
|
|
19913
19915
|
else {
|
|
19914
|
-
if (props.
|
|
19916
|
+
if (props.hiddenCounter !== true &&
|
|
19917
|
+
props.maxLength &&
|
|
19918
|
+
!props.textArea) {
|
|
19915
19919
|
return (h("div", { class: "mdc-text-field-helper-line" },
|
|
19916
19920
|
h("div", { class: "mdc-text-field-character-counter" },
|
|
19917
19921
|
"'0 / ' + ",
|
|
@@ -23097,7 +23101,7 @@ const FCell = (props, children) => {
|
|
|
23097
23101
|
}
|
|
23098
23102
|
return (h("div", { onKeyUp: (e) => cellEvent(e, props, cellType, FCellEvents.KEYUP), class: classObj, "kup-get-cell-props": () => {
|
|
23099
23103
|
return props;
|
|
23100
|
-
}, style: cell.style },
|
|
23104
|
+
}, ref: (el) => (cell.element = el), style: cell.style },
|
|
23101
23105
|
h("div", { class: "f-cell__content", style: cell.styleContent, title: cellTitle }, children && children.length > 0
|
|
23102
23106
|
? children
|
|
23103
23107
|
: [props.indents, infoEl, icon, content])));
|
|
@@ -23233,7 +23237,7 @@ function setEditableCell(cellType, classObj, cell, column, props) {
|
|
|
23233
23237
|
? cell.icon
|
|
23234
23238
|
: column.icon
|
|
23235
23239
|
? column.icon
|
|
23236
|
-
: null, value: cellType === FCellTypes.NUMBER
|
|
23240
|
+
: null, value: cellType === FCellTypes.NUMBER && cell.value
|
|
23237
23241
|
? dom$e.ketchup.math
|
|
23238
23242
|
.numberifySafe(cell.value)
|
|
23239
23243
|
.toString()
|
|
@@ -29172,8 +29176,8 @@ class KupDataTableState {
|
|
|
29172
29176
|
this.expandGroups = false;
|
|
29173
29177
|
this.groupLabelDisplay = GroupLabelDisplayMode.BOTH;
|
|
29174
29178
|
this.density = 'small';
|
|
29175
|
-
this.enableExtraColumns = true;
|
|
29176
29179
|
this.enableSortableColumns = false;
|
|
29180
|
+
this.enableExtraColumns = true;
|
|
29177
29181
|
this.forceOneLine = false;
|
|
29178
29182
|
this.globalFilter = false;
|
|
29179
29183
|
this.globalFilterValue = '';
|
|
@@ -31103,6 +31107,7 @@ var KupTextFieldProps;
|
|
|
31103
31107
|
KupTextFieldProps["helper"] = "When set, its content will be shown as a help text below the field.";
|
|
31104
31108
|
KupTextFieldProps["helperEnabled"] = "When true, the helper will be displayed.";
|
|
31105
31109
|
KupTextFieldProps["helperWhenFocused"] = "When set, the helper will be shown only when the field is focused.";
|
|
31110
|
+
KupTextFieldProps["hiddenCounter"] = "Hides the character counter.";
|
|
31106
31111
|
KupTextFieldProps["icon"] = "When set, the text-field will show this icon.";
|
|
31107
31112
|
KupTextFieldProps["initialValue"] = "Sets the initial value of the component";
|
|
31108
31113
|
KupTextFieldProps["inputMode"] = "The HTML inputmode of the input element. It has no effect on text areas.";
|
|
@@ -31117,6 +31122,7 @@ var KupTextFieldProps;
|
|
|
31117
31122
|
KupTextFieldProps["name"] = "The HTML name attribute used for form autocomplete.";
|
|
31118
31123
|
KupTextFieldProps["outlined"] = "When set to true, the component will be rendered as an outlined field.";
|
|
31119
31124
|
KupTextFieldProps["readOnly"] = "Sets the component to read only state, making it not editable, but interactable. Used in combobox component when it behaves as a select.";
|
|
31125
|
+
KupTextFieldProps["size"] = "The HTML attribute size of the input element.";
|
|
31120
31126
|
KupTextFieldProps["step"] = "The HTML step of the input element. It has effect only with number input type.";
|
|
31121
31127
|
KupTextFieldProps["textArea"] = "When set to true, the component will be rendered as a textarea.";
|
|
31122
31128
|
KupTextFieldProps["trailingIcon"] = "When set, the icon will be shown after the text.";
|
|
@@ -33431,6 +33437,7 @@ const KupTextField = /*@__PURE__*/ proxyCustomElement(class KupTextField extends
|
|
|
33431
33437
|
this.helper = null;
|
|
33432
33438
|
this.helperEnabled = true;
|
|
33433
33439
|
this.helperWhenFocused = false;
|
|
33440
|
+
this.hiddenCounter = false;
|
|
33434
33441
|
this.icon = null;
|
|
33435
33442
|
this.initialValue = '';
|
|
33436
33443
|
this.inputMode = null;
|
|
@@ -33445,6 +33452,7 @@ const KupTextField = /*@__PURE__*/ proxyCustomElement(class KupTextField extends
|
|
|
33445
33452
|
this.name = null;
|
|
33446
33453
|
this.outlined = false;
|
|
33447
33454
|
this.readOnly = false;
|
|
33455
|
+
this.size = null;
|
|
33448
33456
|
this.step = null;
|
|
33449
33457
|
this.textArea = false;
|
|
33450
33458
|
this.trailingIcon = false;
|
|
@@ -33613,6 +33621,7 @@ const KupTextField = /*@__PURE__*/ proxyCustomElement(class KupTextField extends
|
|
|
33613
33621
|
helper: this.helper,
|
|
33614
33622
|
helperEnabled: this.helperEnabled,
|
|
33615
33623
|
helperWhenFocused: this.helperWhenFocused,
|
|
33624
|
+
hiddenCounter: this.hiddenCounter,
|
|
33616
33625
|
icon: this.icon,
|
|
33617
33626
|
info: this.rootElement.classList.contains('kup-info')
|
|
33618
33627
|
? true
|
|
@@ -33635,6 +33644,7 @@ const KupTextField = /*@__PURE__*/ proxyCustomElement(class KupTextField extends
|
|
|
33635
33644
|
shaped: this.rootElement.classList.contains('kup-shaped')
|
|
33636
33645
|
? true
|
|
33637
33646
|
: false,
|
|
33647
|
+
size: this.size,
|
|
33638
33648
|
step: this.step,
|
|
33639
33649
|
success: this.rootElement.classList.contains('kup-success')
|
|
33640
33650
|
? true
|
|
@@ -33673,6 +33683,7 @@ const KupTextField = /*@__PURE__*/ proxyCustomElement(class KupTextField extends
|
|
|
33673
33683
|
"helper": [1],
|
|
33674
33684
|
"helperEnabled": [4, "helper-enabled"],
|
|
33675
33685
|
"helperWhenFocused": [4, "helper-when-focused"],
|
|
33686
|
+
"hiddenCounter": [4, "hidden-counter"],
|
|
33676
33687
|
"icon": [1],
|
|
33677
33688
|
"initialValue": [1, "initial-value"],
|
|
33678
33689
|
"inputMode": [1, "input-mode"],
|
|
@@ -33687,6 +33698,7 @@ const KupTextField = /*@__PURE__*/ proxyCustomElement(class KupTextField extends
|
|
|
33687
33698
|
"name": [1],
|
|
33688
33699
|
"outlined": [4],
|
|
33689
33700
|
"readOnly": [4, "read-only"],
|
|
33701
|
+
"size": [2],
|
|
33690
33702
|
"step": [2],
|
|
33691
33703
|
"textArea": [4, "text-area"],
|
|
33692
33704
|
"trailingIcon": [4, "trailing-icon"],
|
|
@@ -1200,7 +1200,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends HTMLElement
|
|
|
1200
1200
|
} })));
|
|
1201
1201
|
}
|
|
1202
1202
|
let paginator = null;
|
|
1203
|
-
if (this.pagination) {
|
|
1203
|
+
if (!this.lazyLoadRows && this.pagination) {
|
|
1204
1204
|
paginator = (h(FPaginator, { id: top ? 'top-paginator' : 'bottom-paginator', currentPage: this.currentPage, max: this.filteredRows.length, mode: FPaginatorMode.SIMPLE, perPage: this.currentRowsPerPage
|
|
1205
1205
|
? this.currentRowsPerPage
|
|
1206
1206
|
: this.rowsPerPage, onPageChange: (e) => this.handlePageChange(e.detail.value), onRowsChange: (e) => this.handleRowsPerPageChange(e.detail.value) }));
|