@sme.up/ketchup 8.1.0 → 8.2.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.
Files changed (137) hide show
  1. package/dist/cjs/{f-button-a5f661f2.js → f-button-76a75669.js} +2 -2
  2. package/dist/cjs/{f-cell-ca9e4352.js → f-cell-a440d744.js} +14 -8
  3. package/dist/cjs/{f-checkbox-e2c6ecef.js → f-checkbox-aa34efd5.js} +1 -1
  4. package/dist/cjs/{f-chip-e941fa19.js → f-chip-fe9cffed.js} +3 -3
  5. package/dist/cjs/{f-image-466b724f.js → f-image-47976ad7.js} +2 -2
  6. package/dist/cjs/{f-paginator-utils-f775ce67.js → f-paginator-utils-f13f036f.js} +3 -3
  7. package/dist/cjs/{f-text-field-ddb47dda.js → f-text-field-3868b623.js} +3 -3
  8. package/dist/cjs/{index-26fb8571.js → index-dd9f2b9b.js} +13 -1
  9. package/dist/cjs/ketchup.cjs.js +3 -3
  10. package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
  11. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +38 -24
  12. package/dist/cjs/kup-box.cjs.entry.js +11 -16
  13. package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
  14. package/dist/cjs/kup-cell.cjs.entry.js +7 -7
  15. package/dist/cjs/kup-dash-list.cjs.entry.js +2 -2
  16. package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
  17. package/dist/cjs/kup-dashboard.cjs.entry.js +6 -6
  18. package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
  19. package/dist/cjs/kup-echart.cjs.entry.js +126 -3
  20. package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
  21. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  22. package/dist/cjs/kup-image-list.cjs.entry.js +8 -8
  23. package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
  24. package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
  25. package/dist/cjs/{kup-manager-16b684bd.js → kup-manager-695bbbe3.js} +3 -2
  26. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  27. package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
  28. package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
  29. package/dist/cjs/kup-planner.cjs.entry.js +47 -31
  30. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  31. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  32. package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
  33. package/dist/cjs/loader.cjs.js +3 -3
  34. package/dist/collection/assets/data-table.js +1 -0
  35. package/dist/collection/assets/echart.js +318 -0
  36. package/dist/collection/collection-manifest.json +1 -1
  37. package/dist/collection/components/kup-box/kup-box-declarations.js +0 -1
  38. package/dist/collection/components/kup-box/kup-box.js +3 -28
  39. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -0
  40. package/dist/collection/components/kup-data-table/kup-data-table.css +1 -0
  41. package/dist/collection/components/kup-data-table/kup-data-table.js +46 -1
  42. package/dist/collection/components/kup-echart/kup-echart-declarations.js +2 -0
  43. package/dist/collection/components/kup-echart/kup-echart.js +122 -1
  44. package/dist/collection/components/kup-form/kup-form.js +16 -13
  45. package/dist/collection/components/kup-planner/kup-planner.css +2 -2
  46. package/dist/collection/components/kup-planner/kup-planner.js +12 -5
  47. package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +1 -0
  48. package/dist/collection/components/kup-text-field/kup-text-field.js +23 -0
  49. package/dist/collection/f-components/f-cell/f-cell.js +8 -2
  50. package/dist/collection/f-components/f-text-field/f-text-field.js +1 -1
  51. package/dist/components/kup-autocomplete2.js +42 -19
  52. package/dist/components/kup-box2.js +2 -8
  53. package/dist/components/kup-echart2.js +124 -1
  54. package/dist/components/kup-planner.js +44 -28
  55. package/dist/esm/{f-button-c6a69f75.js → f-button-c5b36ae1.js} +2 -2
  56. package/dist/esm/{f-cell-5822ea68.js → f-cell-d48502f1.js} +14 -8
  57. package/dist/esm/{f-checkbox-c15911de.js → f-checkbox-11b32f83.js} +1 -1
  58. package/dist/esm/{f-chip-f46a03f5.js → f-chip-038e9404.js} +3 -3
  59. package/dist/esm/{f-image-f57832fa.js → f-image-c356f4c5.js} +2 -2
  60. package/dist/esm/{f-paginator-utils-bafc463d.js → f-paginator-utils-58466d55.js} +3 -3
  61. package/dist/esm/{f-text-field-15850e05.js → f-text-field-7e2b397b.js} +3 -3
  62. package/dist/esm/{index-238342f2.js → index-b45996ce.js} +13 -1
  63. package/dist/esm/ketchup.js +4 -4
  64. package/dist/esm/kup-accordion.entry.js +3 -3
  65. package/dist/esm/kup-autocomplete_27.entry.js +38 -24
  66. package/dist/esm/kup-box.entry.js +11 -16
  67. package/dist/esm/kup-calendar.entry.js +5 -5
  68. package/dist/esm/kup-cell.entry.js +7 -7
  69. package/dist/esm/kup-dash-list.entry.js +2 -2
  70. package/dist/esm/kup-dash_2.entry.js +2 -2
  71. package/dist/esm/kup-dashboard.entry.js +6 -6
  72. package/dist/esm/kup-drawer.entry.js +2 -2
  73. package/dist/esm/kup-echart.entry.js +126 -3
  74. package/dist/esm/kup-family-tree.entry.js +4 -4
  75. package/dist/esm/kup-iframe.entry.js +2 -2
  76. package/dist/esm/kup-image-list.entry.js +8 -8
  77. package/dist/esm/kup-lazy.entry.js +2 -2
  78. package/dist/esm/kup-magic-box.entry.js +3 -3
  79. package/dist/esm/{kup-manager-89dd9137.js → kup-manager-74e46edc.js} +3 -2
  80. package/dist/esm/kup-nav-bar.entry.js +2 -2
  81. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  82. package/dist/esm/kup-photo-frame.entry.js +2 -2
  83. package/dist/esm/kup-planner.entry.js +47 -31
  84. package/dist/esm/kup-probe.entry.js +2 -2
  85. package/dist/esm/kup-qlik.entry.js +2 -2
  86. package/dist/esm/kup-snackbar.entry.js +4 -4
  87. package/dist/esm/loader.js +4 -4
  88. package/dist/ketchup/ketchup.esm.js +1 -1
  89. package/dist/ketchup/{p-f2fda43b.entry.js → p-008cde2a.entry.js} +1 -1
  90. package/dist/ketchup/{p-7e757c27.entry.js → p-0d533d24.entry.js} +1 -1
  91. package/dist/ketchup/{p-4da77173.entry.js → p-1f5eb8e6.entry.js} +1 -1
  92. package/dist/ketchup/{p-78cc5a2d.entry.js → p-26765429.entry.js} +1 -1
  93. package/dist/ketchup/p-279eab92.js +1 -0
  94. package/dist/ketchup/{p-799f7f10.entry.js → p-2ac7d95a.entry.js} +1 -1
  95. package/dist/ketchup/p-3da7e4c6.js +2 -0
  96. package/dist/ketchup/{p-6ec8629e.js → p-46daf529.js} +1 -1
  97. package/dist/ketchup/{p-785e8d74.entry.js → p-59919641.entry.js} +1 -1
  98. package/dist/ketchup/{p-688478e9.entry.js → p-70a6ab77.entry.js} +1 -1
  99. package/dist/ketchup/p-71f202aa.entry.js +1 -0
  100. package/dist/ketchup/{p-e59c2bc0.entry.js → p-73ab15cd.entry.js} +1 -1
  101. package/dist/ketchup/{p-206245c0.js → p-78eaa526.js} +1 -1
  102. package/dist/ketchup/{p-514dcb7d.entry.js → p-8d992de0.entry.js} +1 -1
  103. package/dist/ketchup/{p-54248440.js → p-90576709.js} +1 -1
  104. package/dist/ketchup/p-9c7b9ff2.js +1 -0
  105. package/dist/ketchup/p-9cc4dd44.js +1 -0
  106. package/dist/ketchup/{p-84d3f676.entry.js → p-a015c95b.entry.js} +1 -1
  107. package/dist/ketchup/p-ad9b5c06.entry.js +9 -0
  108. package/dist/ketchup/{p-843253dd.entry.js → p-afbd769b.entry.js} +1 -1
  109. package/dist/ketchup/{p-5dfa5c49.entry.js → p-b813af24.entry.js} +1 -1
  110. package/dist/ketchup/{p-af7202ff.entry.js → p-bb93aa7e.entry.js} +1 -1
  111. package/dist/ketchup/{p-6a5d95df.entry.js → p-c1c49123.entry.js} +1 -1
  112. package/dist/ketchup/{p-51573263.entry.js → p-cd1f9e76.entry.js} +1 -1
  113. package/dist/ketchup/{p-1a8a06de.js → p-d5491e4f.js} +1 -1
  114. package/dist/ketchup/{p-f4b6aa3f.entry.js → p-da0db0a5.entry.js} +1 -1
  115. package/dist/ketchup/{p-ba959bb5.entry.js → p-dfab37a3.entry.js} +1 -1
  116. package/dist/ketchup/{p-4bd63e97.entry.js → p-e28a3dfb.entry.js} +2 -2
  117. package/dist/ketchup/{p-cd8512d9.entry.js → p-e9d2a964.entry.js} +2 -2
  118. package/dist/ketchup/{p-01d44efe.entry.js → p-f023195c.entry.js} +1 -1
  119. package/dist/ketchup/{p-a5f15864.js → p-ffbd77d5.js} +1 -1
  120. package/dist/types/components/kup-box/kup-box-declarations.d.ts +0 -1
  121. package/dist/types/components/kup-box/kup-box.d.ts +0 -5
  122. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +4 -0
  123. package/dist/types/components/kup-data-table/kup-data-table.d.ts +9 -1
  124. package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +3 -1
  125. package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +1 -0
  126. package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
  127. package/dist/types/components.d.ts +24 -12
  128. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
  129. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
  130. package/dist/types/stencil-public-runtime.d.ts +2 -0
  131. package/package.json +2 -2
  132. package/dist/ketchup/p-673bb93e.js +0 -1
  133. package/dist/ketchup/p-8c1edebd.js +0 -2
  134. package/dist/ketchup/p-c1931214.js +0 -1
  135. package/dist/ketchup/p-c354c5d0.js +0 -1
  136. package/dist/ketchup/p-d4f86197.entry.js +0 -9
  137. package/dist/ketchup/p-f4f5170c.entry.js +0 -1
@@ -5,6 +5,8 @@ const echart4 = document.getElementById('gaussian1chart');
5
5
  const echart5 = document.getElementById('gaussian2chart');
6
6
  const echart6 = document.getElementById('funnelChart');
7
7
  const echart7 = document.getElementById('radarChart');
8
+ const echart8 = document.getElementById('bubbleChart');
9
+ const echart9 = document.getElementById('sankeyChart');
8
10
 
9
11
  const mockData = {
10
12
  columns: [
@@ -789,6 +791,322 @@ echart7.data = {
789
791
  ],
790
792
  };
791
793
 
794
+ echart8.consistencyCheck = true;
795
+ echart8.types = ['Bubble'];
796
+ echart8.colors = ['blue'];
797
+ echart8.axis = '';
798
+ echart8.chartTitle = {
799
+ value: 'Bubble',
800
+ color: 'red',
801
+ position: 'top',
802
+ size: 16,
803
+ };
804
+ echart8.data = {
805
+ columns: [
806
+ {
807
+ name: 'GDP',
808
+ title: 'Gdp',
809
+ },
810
+ {
811
+ name: 'AGE',
812
+ title: 'Age',
813
+ },
814
+ {
815
+ name: 'SIZE',
816
+ title: 'Size',
817
+ },
818
+ {
819
+ name: 'COUNTRY',
820
+ title: 'Country',
821
+ },
822
+ {
823
+ name: 'YEAR',
824
+ title: 'Year',
825
+ },
826
+ ],
827
+ rows: [
828
+ {
829
+ cells: {
830
+ COUNTRY: {
831
+ value: 'China',
832
+ },
833
+ GDP: {
834
+ obj: {
835
+ t: 'NR',
836
+ p: '',
837
+ k: '1516',
838
+ },
839
+ value: '1516',
840
+ },
841
+ AGE: {
842
+ obj: {
843
+ t: 'NR',
844
+ p: '',
845
+ k: '68',
846
+ },
847
+ value: '68',
848
+ },
849
+ SIZE: {
850
+ obj: {
851
+ t: 'NR',
852
+ p: '',
853
+ k: '1154605773',
854
+ },
855
+ value: '1154605773',
856
+ },
857
+ YEAR: {
858
+ value: '1990',
859
+ },
860
+ },
861
+ },
862
+ {
863
+ cells: {
864
+ COUNTRY: {
865
+ value: 'China',
866
+ },
867
+ GDP: {
868
+ obj: {
869
+ t: 'NR',
870
+ p: '',
871
+ k: '13334',
872
+ },
873
+ value: '13334',
874
+ },
875
+ AGE: {
876
+ obj: {
877
+ t: 'NR',
878
+ p: '',
879
+ k: '76.9',
880
+ },
881
+ value: '76.9',
882
+ },
883
+ SIZE: {
884
+ obj: {
885
+ t: 'NR',
886
+ p: '',
887
+ k: '1376048943',
888
+ },
889
+ value: '1376048943',
890
+ },
891
+ YEAR: {
892
+ value: '2015',
893
+ },
894
+ },
895
+ },
896
+ {
897
+ cells: {
898
+ COUNTRY: {
899
+ value: 'United States',
900
+ },
901
+ GDP: {
902
+ obj: {
903
+ t: 'NR',
904
+ p: '',
905
+ k: '37062',
906
+ },
907
+ value: '37062',
908
+ },
909
+ AGE: {
910
+ obj: {
911
+ t: 'NR',
912
+ p: '',
913
+ k: '75.4',
914
+ },
915
+ value: '75.4',
916
+ },
917
+ SIZE: {
918
+ obj: {
919
+ t: 'NR',
920
+ p: '',
921
+ k: '252847810',
922
+ },
923
+ value: '252847810',
924
+ },
925
+ YEAR: {
926
+ value: '1990',
927
+ },
928
+ },
929
+ },
930
+ {
931
+ cells: {
932
+ COUNTRY: {
933
+ value: 'United States',
934
+ },
935
+ GDP: {
936
+ obj: {
937
+ t: 'NR',
938
+ p: '',
939
+ k: '53354',
940
+ },
941
+ value: '53354',
942
+ },
943
+ AGE: {
944
+ obj: {
945
+ t: 'NR',
946
+ p: '',
947
+ k: '79.1',
948
+ },
949
+ value: '79.1',
950
+ },
951
+ SIZE: {
952
+ obj: {
953
+ t: 'NR',
954
+ p: '',
955
+ k: '321773631',
956
+ },
957
+ value: '321773631',
958
+ },
959
+ YEAR: {
960
+ value: '2015',
961
+ },
962
+ },
963
+ },
964
+ ],
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
+ ],
1108
+ };
1109
+
792
1110
  document.addEventListener('kup-echart-click', (e) => {
793
1111
  console.log(e);
794
1112
  });
@@ -52,7 +52,7 @@
52
52
  ],
53
53
  "compiler": {
54
54
  "name": "@stencil/core",
55
- "version": "3.3.0",
55
+ "version": "3.4.0",
56
56
  "typescriptVersion": "5.0.4"
57
57
  },
58
58
  "collections": [],
@@ -19,7 +19,6 @@ export var KupBoxProps;
19
19
  KupBoxProps["lazyLoadRows"] = "When set to true, extra rows will be automatically loaded once the last row enters the viewport.";
20
20
  KupBoxProps["multiSelection"] = "Enable multi selection.";
21
21
  KupBoxProps["pageSelected"] = "Current page number.";
22
- KupBoxProps["pageSize"] = "Number of boxes per page.";
23
22
  KupBoxProps["pagination"] = "Enables pagination.";
24
23
  KupBoxProps["rowsPerPage"] = "Number of current rows per page.";
25
24
  KupBoxProps["scrollOnHover"] = "Activates the scroll on hover function.";
@@ -79,7 +79,6 @@ export class KupBox {
79
79
  this.lazyLoadRows = false;
80
80
  this.multiSelection = false;
81
81
  this.pageSelected = 1;
82
- this.pageSize = 10;
83
82
  this.pagination = false;
84
83
  this.rowsPerPage = undefined;
85
84
  this.scrollOnHover = false;
@@ -1068,9 +1067,6 @@ export class KupBox {
1068
1067
  if (this.rowsPerPage) {
1069
1068
  this.currentRowsPerPage = this.rowsPerPage;
1070
1069
  }
1071
- else if (this.pageSize) {
1072
- this.currentRowsPerPage = this.pageSize;
1073
- }
1074
1070
  if (this.data &&
1075
1071
  this.data.rows &&
1076
1072
  this.currentRowsPerPage > this.data.rows.length) {
@@ -1163,7 +1159,7 @@ export class KupBox {
1163
1159
  if (this.pagination) {
1164
1160
  paginator = (h(FPaginator, { id: top ? 'top-paginator' : 'bottom-paginator', currentPage: this.currentPage, max: this.filteredRows.length, mode: FPaginatorMode.SIMPLE, perPage: this.currentRowsPerPage
1165
1161
  ? this.currentRowsPerPage
1166
- : this.pageSize, onPageChange: (e) => this.handlePageChange(e.detail.value), onRowsChange: (e) => this.handleRowsPerPageChange(e.detail.value) }));
1162
+ : this.rowsPerPage, onPageChange: (e) => this.handlePageChange(e.detail.value), onRowsChange: (e) => this.handleRowsPerPageChange(e.detail.value) }));
1167
1163
  }
1168
1164
  let boxContent = null;
1169
1165
  let containerStyle = {};
@@ -1565,27 +1561,6 @@ export class KupBox {
1565
1561
  "reflect": false,
1566
1562
  "defaultValue": "1"
1567
1563
  },
1568
- "pageSize": {
1569
- "type": "number",
1570
- "mutable": false,
1571
- "complexType": {
1572
- "original": "number",
1573
- "resolved": "number",
1574
- "references": {}
1575
- },
1576
- "required": false,
1577
- "optional": false,
1578
- "docs": {
1579
- "tags": [{
1580
- "name": "default",
1581
- "text": "10"
1582
- }],
1583
- "text": "Number of boxes per page"
1584
- },
1585
- "attribute": "page-size",
1586
- "reflect": false,
1587
- "defaultValue": "10"
1588
- },
1589
1564
  "pagination": {
1590
1565
  "type": "boolean",
1591
1566
  "mutable": false,
@@ -2097,7 +2072,7 @@ export class KupBox {
2097
2072
  static get elementRef() { return "rootElement"; }
2098
2073
  static get watchers() {
2099
2074
  return [{
2100
- "propName": "pageSize",
2075
+ "propName": "rowsPerPage",
2101
2076
  "methodName": "rowsPerPageHandler"
2102
2077
  }, {
2103
2078
  "propName": "globalFilterValue",
@@ -2109,7 +2084,7 @@ export class KupBox {
2109
2084
  "propName": "pagination",
2110
2085
  "methodName": "recalculateRows"
2111
2086
  }, {
2112
- "propName": "pageSize",
2087
+ "propName": "rowsPerPage",
2113
2088
  "methodName": "recalculateRows"
2114
2089
  }, {
2115
2090
  "propName": "currentPage",
@@ -44,6 +44,7 @@ export var KupDataTableProps;
44
44
  KupDataTableProps["showCustomization"] = "If set to true, displays the button to open the customization panel.";
45
45
  KupDataTableProps["selection"] = "Set the type of the rows selection.";
46
46
  KupDataTableProps["showDeleteButton"] = "Enables the delete row button.";
47
+ KupDataTableProps["showHistoryButton"] = "Enables the history datatable button.";
47
48
  KupDataTableProps["showFilters"] = "When set to true enables the column filters.";
48
49
  KupDataTableProps["showFooter"] = "When set to true shows the footer.";
49
50
  KupDataTableProps["showGrid"] = "Can be used to customize the grid view of the table.";
@@ -418,6 +418,7 @@ th.obj:hover span:not(.overlay-action) {
418
418
 
419
419
  .insert-button,
420
420
  .delete-button,
421
+ .history-button,
421
422
  .save-button {
422
423
  padding: 1em 0.5em;
423
424
  }
@@ -203,6 +203,7 @@ export class KupDataTable {
203
203
  this.selection = SelectionMode.SINGLE;
204
204
  this.showCustomization = true;
205
205
  this.showDeleteButton = false;
206
+ this.showHistoryButton = false;
206
207
  this.showFilters = false;
207
208
  this.showFooter = false;
208
209
  this.showGrid = ShowGrid.ROW;
@@ -1261,7 +1262,13 @@ export class KupDataTable {
1261
1262
  }, styling: FButtonStyling.OUTLINED, title: "Save", wrapperClass: "save-button" })) : null, this.showDeleteButton &&
1262
1263
  this.selectedRows.length > 0 ? (h(FButton, { icon: "delete", onClick: () => {
1263
1264
  __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_rowsDelete).call(this);
1264
- }, styling: FButtonStyling.OUTLINED, title: "Delete selected rows", wrapperClass: "delete-button" })) : null), h("div", { class: "droparea", ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
1265
+ }, styling: FButtonStyling.OUTLINED, title: "Delete selected rows", wrapperClass: "delete-button" })) : null, this.showHistoryButton ? (h(FButton, { icon: "history", onClick: () => {
1266
+ this.kupHistory.emit({
1267
+ comp: this,
1268
+ id: this.rootElement.id,
1269
+ selectedRows: this.selectedRows,
1270
+ });
1271
+ }, styling: FButtonStyling.OUTLINED, title: "History", wrapperClass: "history-button" })) : null), h("div", { class: "droparea", ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
1265
1272
  ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
1266
1273
  : null), h("div", { style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
1267
1274
  ? [
@@ -2137,6 +2144,24 @@ export class KupDataTable {
2137
2144
  "reflect": false,
2138
2145
  "defaultValue": "false"
2139
2146
  },
2147
+ "showHistoryButton": {
2148
+ "type": "boolean",
2149
+ "mutable": false,
2150
+ "complexType": {
2151
+ "original": "boolean",
2152
+ "resolved": "boolean",
2153
+ "references": {}
2154
+ },
2155
+ "required": false,
2156
+ "optional": false,
2157
+ "docs": {
2158
+ "tags": [],
2159
+ "text": "Enables the history button."
2160
+ },
2161
+ "attribute": "show-history-button",
2162
+ "reflect": false,
2163
+ "defaultValue": "false"
2164
+ },
2140
2165
  "showFilters": {
2141
2166
  "type": "boolean",
2142
2167
  "mutable": false,
@@ -2704,6 +2729,26 @@ export class KupDataTable {
2704
2729
  }
2705
2730
  }
2706
2731
  }
2732
+ }, {
2733
+ "method": "kupHistory",
2734
+ "name": "kup-datatable-history",
2735
+ "bubbles": true,
2736
+ "cancelable": false,
2737
+ "composed": true,
2738
+ "docs": {
2739
+ "tags": [],
2740
+ "text": "Event fired when the history confirm button is pressed."
2741
+ },
2742
+ "complexType": {
2743
+ "original": "KupDatatableHistoryEventPayload",
2744
+ "resolved": "KupDatatableHistoryEventPayload",
2745
+ "references": {
2746
+ "KupDatatableHistoryEventPayload": {
2747
+ "location": "import",
2748
+ "path": "./kup-data-table-declarations"
2749
+ }
2750
+ }
2751
+ }
2707
2752
  }];
2708
2753
  }
2709
2754
  static get methods() {
@@ -49,4 +49,6 @@ export var KupEchartTypes;
49
49
  KupEchartTypes["SCATTER"] = "Scatter";
50
50
  KupEchartTypes["FUNNEL"] = "Funnel";
51
51
  KupEchartTypes["RADAR"] = "Radar";
52
+ KupEchartTypes["BUBBLE"] = "Bubble";
53
+ KupEchartTypes["SANKEY"] = "Sankey";
52
54
  })(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_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';
@@ -652,6 +652,12 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
652
652
  case KupEchartTypes.RADAR:
653
653
  options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_radarChart).call(this);
654
654
  break;
655
+ case KupEchartTypes.BUBBLE:
656
+ options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_bubbleChart).call(this);
657
+ break;
658
+ case KupEchartTypes.SANKEY:
659
+ options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_sankeyChart).call(this);
660
+ break;
655
661
  default:
656
662
  options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setOptions).call(this);
657
663
  break;
@@ -786,6 +792,121 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
786
792
  },
787
793
  ],
788
794
  };
795
+ }, _KupEchart_bubbleChart = function _KupEchart_bubbleChart() {
796
+ const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this), data = [], temp = [], legend = {}, series = [];
797
+ let year = [];
798
+ const content = this.data.columns.map((data) => data.title);
799
+ if (content && content.length) {
800
+ for (let i = 0; i < y[content[0]].length; i++) {
801
+ const arr = [];
802
+ for (let j = 0; j < content.length; j++) {
803
+ arr.push(y[content[j]][i]);
804
+ // last value always be a year
805
+ if (j === content.length - 1) {
806
+ year.push(y[content[j]][i]);
807
+ }
808
+ }
809
+ temp.push(arr);
810
+ }
811
+ }
812
+ year = [...new Set(year)];
813
+ year.forEach((e, i) => {
814
+ let k = [];
815
+ temp.forEach((data) => {
816
+ if (data.includes(e))
817
+ k.push(data);
818
+ });
819
+ data.push(k);
820
+ legend[e] = i;
821
+ });
822
+ data.forEach((el, i) => {
823
+ series.push({
824
+ name: year[i],
825
+ data: el,
826
+ type: 'scatter',
827
+ symbolSize: function (data) {
828
+ return Math.sqrt(data[2]) / 5e2;
829
+ },
830
+ emphasis: {
831
+ focus: 'series',
832
+ label: {
833
+ show: true,
834
+ formatter: function (param) {
835
+ return param.data[3];
836
+ },
837
+ position: 'top',
838
+ },
839
+ },
840
+ });
841
+ });
842
+ return {
843
+ title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
844
+ legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, legend),
845
+ tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: (value) => {
846
+ const name = value.data;
847
+ const data = content.map((e, i) => {
848
+ return `<li> ${e}: ${name[i]} </li>`;
849
+ });
850
+ let showContent = '';
851
+ data.forEach((r) => {
852
+ showContent += r;
853
+ });
854
+ return `<ul>${showContent}</ul> `;
855
+ } }),
856
+ xAxis: {
857
+ splitLine: {
858
+ lineStyle: {
859
+ type: 'dashed',
860
+ },
861
+ },
862
+ },
863
+ yAxis: {
864
+ splitLine: {
865
+ lineStyle: {
866
+ type: 'dashed',
867
+ },
868
+ },
869
+ scale: true,
870
+ },
871
+ color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, content.length),
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
+ },
909
+ };
789
910
  }, _KupEchart_createX = function _KupEchart_createX(dataset = null) {
790
911
  const x = [];
791
912
  if (!dataset)