@sme.up/ketchup 8.1.0 → 8.2.0
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-a5f661f2.js → f-button-797c8e7f.js} +2 -2
- package/dist/cjs/{f-cell-ca9e4352.js → f-cell-9c8ed48b.js} +13 -7
- package/dist/cjs/{f-checkbox-e2c6ecef.js → f-checkbox-cff77b2c.js} +1 -1
- package/dist/cjs/{f-chip-e941fa19.js → f-chip-318863df.js} +3 -3
- package/dist/cjs/{f-image-466b724f.js → f-image-f10144e9.js} +2 -2
- package/dist/cjs/{f-paginator-utils-f775ce67.js → f-paginator-utils-8c44a37b.js} +3 -3
- package/dist/cjs/{f-text-field-ddb47dda.js → f-text-field-9610c198.js} +2 -2
- package/dist/cjs/{index-26fb8571.js → index-a9a3b467.js} +16 -1
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +36 -25
- package/dist/cjs/kup-box.cjs.entry.js +12 -17
- 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 +86 -3
- 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-16b684bd.js → kup-manager-7747decd.js} +3 -2
- 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 +47 -31
- 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 +3 -3
- package/dist/collection/assets/data-table.js +45 -0
- package/dist/collection/assets/echart.js +176 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/kup-box/kup-box-declarations.js +0 -1
- package/dist/collection/components/kup-box/kup-box.js +3 -28
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -0
- package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
- package/dist/collection/components/kup-data-table/kup-data-table.css +1 -0
- package/dist/collection/components/kup-data-table/kup-data-table.js +46 -1
- package/dist/collection/components/kup-echart/kup-echart-declarations.js +1 -0
- package/dist/collection/components/kup-echart/kup-echart.js +83 -1
- package/dist/collection/components/kup-form/kup-form.js +16 -13
- package/dist/collection/components/kup-planner/kup-planner.css +2 -2
- package/dist/collection/components/kup-planner/kup-planner.js +12 -5
- package/dist/collection/f-components/f-cell/f-cell.js +7 -1
- package/dist/components/kup-autocomplete2.js +37 -18
- package/dist/components/kup-box2.js +2 -8
- package/dist/components/kup-echart2.js +84 -1
- package/dist/components/kup-planner.js +44 -28
- package/dist/esm/{f-button-c6a69f75.js → f-button-e0e6f65f.js} +2 -2
- package/dist/esm/{f-cell-5822ea68.js → f-cell-359dfe28.js} +13 -7
- package/dist/esm/{f-checkbox-c15911de.js → f-checkbox-91358c27.js} +1 -1
- package/dist/esm/{f-chip-f46a03f5.js → f-chip-0fd043b4.js} +3 -3
- package/dist/esm/{f-image-f57832fa.js → f-image-b853b0cc.js} +2 -2
- package/dist/esm/{f-paginator-utils-bafc463d.js → f-paginator-utils-124c146a.js} +3 -3
- package/dist/esm/{f-text-field-15850e05.js → f-text-field-92bb3a1f.js} +2 -2
- package/dist/esm/{index-238342f2.js → index-bb15ce14.js} +16 -2
- package/dist/esm/ketchup.js +4 -4
- package/dist/esm/kup-accordion.entry.js +3 -3
- package/dist/esm/kup-autocomplete_27.entry.js +36 -25
- package/dist/esm/kup-box.entry.js +12 -17
- 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 +86 -3
- 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-89dd9137.js → kup-manager-1e6ea451.js} +3 -2
- 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 +47 -31
- 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 +4 -4
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-c354c5d0.js → p-0143e942.js} +1 -1
- package/dist/ketchup/{p-a5f15864.js → p-1ca9aece.js} +1 -1
- package/dist/ketchup/p-1cd5785e.entry.js +9 -0
- package/dist/ketchup/{p-673bb93e.js → p-2ac2c05e.js} +1 -1
- package/dist/ketchup/{p-1a8a06de.js → p-349d4715.js} +1 -1
- package/dist/ketchup/{p-01d44efe.entry.js → p-374f867e.entry.js} +1 -1
- package/dist/ketchup/{p-799f7f10.entry.js → p-41c00681.entry.js} +1 -1
- package/dist/ketchup/{p-f4b6aa3f.entry.js → p-5dbd4402.entry.js} +1 -1
- package/dist/ketchup/{p-ba959bb5.entry.js → p-620faa59.entry.js} +1 -1
- package/dist/ketchup/{p-785e8d74.entry.js → p-6837f725.entry.js} +1 -1
- package/dist/ketchup/{p-6ec8629e.js → p-6d46cbb0.js} +1 -1
- package/dist/ketchup/{p-514dcb7d.entry.js → p-6e79b764.entry.js} +1 -1
- package/dist/ketchup/{p-5dfa5c49.entry.js → p-818a4a09.entry.js} +1 -1
- package/dist/ketchup/{p-843253dd.entry.js → p-81e20baa.entry.js} +1 -1
- package/dist/ketchup/{p-af7202ff.entry.js → p-85d6bb1f.entry.js} +1 -1
- package/dist/ketchup/{p-6a5d95df.entry.js → p-8c1804d7.entry.js} +1 -1
- package/dist/ketchup/{p-e59c2bc0.entry.js → p-ad919f87.entry.js} +1 -1
- package/dist/ketchup/{p-4da77173.entry.js → p-adad6804.entry.js} +1 -1
- package/dist/ketchup/{p-51573263.entry.js → p-adebe276.entry.js} +1 -1
- package/dist/ketchup/p-b5deb573.js +2 -0
- package/dist/ketchup/{p-f2fda43b.entry.js → p-b73b3b52.entry.js} +1 -1
- package/dist/ketchup/{p-84d3f676.entry.js → p-ba0c4019.entry.js} +1 -1
- package/dist/ketchup/{p-4bd63e97.entry.js → p-c010483d.entry.js} +2 -2
- package/dist/ketchup/{p-7e757c27.entry.js → p-c1b10c9c.entry.js} +1 -1
- package/dist/ketchup/{p-688478e9.entry.js → p-c28be862.entry.js} +1 -1
- package/dist/ketchup/{p-cd8512d9.entry.js → p-c6088459.entry.js} +2 -2
- package/dist/ketchup/{p-78cc5a2d.entry.js → p-cf24193b.entry.js} +1 -1
- package/dist/ketchup/p-e646523d.js +1 -0
- package/dist/ketchup/p-e8977116.entry.js +1 -0
- package/dist/ketchup/{p-206245c0.js → p-fb29ba2a.js} +1 -1
- package/dist/ketchup/{p-54248440.js → p-fd1323da.js} +1 -1
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +0 -1
- package/dist/types/components/kup-box/kup-box.d.ts +0 -5
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +4 -0
- package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +9 -1
- package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +2 -1
- package/dist/types/components.d.ts +14 -12
- package/dist/types/stencil-public-runtime.d.ts +2 -0
- package/package.json +2 -2
- package/dist/ketchup/p-8c1edebd.js +0 -2
- package/dist/ketchup/p-c1931214.js +0 -1
- package/dist/ketchup/p-d4f86197.entry.js +0 -9
- package/dist/ketchup/p-f4f5170c.entry.js +0 -1
|
@@ -5,6 +5,7 @@ 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');
|
|
8
9
|
|
|
9
10
|
const mockData = {
|
|
10
11
|
columns: [
|
|
@@ -789,6 +790,181 @@ echart7.data = {
|
|
|
789
790
|
],
|
|
790
791
|
};
|
|
791
792
|
|
|
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
|
+
|
|
792
968
|
document.addEventListener('kup-echart-click', (e) => {
|
|
793
969
|
console.log(e);
|
|
794
970
|
});
|
|
@@ -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.
|
|
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": "
|
|
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": "
|
|
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.";
|
|
@@ -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.enableSortableColumns = false;
|
|
9
8
|
this.enableExtraColumns = true;
|
|
9
|
+
this.enableSortableColumns = false;
|
|
10
10
|
this.forceOneLine = false;
|
|
11
11
|
this.globalFilter = false;
|
|
12
12
|
this.globalFilterValue = '';
|
|
@@ -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
|
|
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() {
|
|
@@ -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_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,9 @@ _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;
|
|
655
658
|
default:
|
|
656
659
|
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setOptions).call(this);
|
|
657
660
|
break;
|
|
@@ -786,6 +789,85 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
786
789
|
},
|
|
787
790
|
],
|
|
788
791
|
};
|
|
792
|
+
}, _KupEchart_bubbleChart = function _KupEchart_bubbleChart() {
|
|
793
|
+
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this), data = [], temp = [], legend = {}, series = [];
|
|
794
|
+
let year = [];
|
|
795
|
+
const content = this.data.columns.map(data => data.title);
|
|
796
|
+
if (content && content.length) {
|
|
797
|
+
for (let i = 0; i < y[content[0]].length; i++) {
|
|
798
|
+
const arr = [];
|
|
799
|
+
for (let j = 0; j < content.length; j++) {
|
|
800
|
+
arr.push(y[content[j]][i]);
|
|
801
|
+
// last value always be a year
|
|
802
|
+
if (j === content.length - 1) {
|
|
803
|
+
year.push(y[content[j]][i]);
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
temp.push(arr);
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
year = [...new Set(year)];
|
|
810
|
+
year.forEach((e, i) => {
|
|
811
|
+
let k = [];
|
|
812
|
+
temp.forEach(data => {
|
|
813
|
+
if (data.includes(e))
|
|
814
|
+
k.push(data);
|
|
815
|
+
});
|
|
816
|
+
data.push(k);
|
|
817
|
+
legend[e] = i;
|
|
818
|
+
});
|
|
819
|
+
data.forEach((el, i) => {
|
|
820
|
+
series.push({
|
|
821
|
+
name: year[i],
|
|
822
|
+
data: el,
|
|
823
|
+
type: 'scatter',
|
|
824
|
+
symbolSize: function (data) {
|
|
825
|
+
return Math.sqrt(data[2]) / 5e2;
|
|
826
|
+
},
|
|
827
|
+
emphasis: {
|
|
828
|
+
focus: 'series',
|
|
829
|
+
label: {
|
|
830
|
+
show: true,
|
|
831
|
+
formatter: function (param) {
|
|
832
|
+
return param.data[3];
|
|
833
|
+
},
|
|
834
|
+
position: 'top'
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
});
|
|
838
|
+
});
|
|
839
|
+
return {
|
|
840
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
841
|
+
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, legend),
|
|
842
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: (value) => {
|
|
843
|
+
const name = value.data;
|
|
844
|
+
const data = content.map((e, i) => {
|
|
845
|
+
return `<li> ${e}: ${name[i]} </li>`;
|
|
846
|
+
});
|
|
847
|
+
let showContent = '';
|
|
848
|
+
data.forEach(r => {
|
|
849
|
+
showContent += r;
|
|
850
|
+
});
|
|
851
|
+
return `<ul>${showContent}</ul> `;
|
|
852
|
+
} }),
|
|
853
|
+
xAxis: {
|
|
854
|
+
splitLine: {
|
|
855
|
+
lineStyle: {
|
|
856
|
+
type: 'dashed'
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
},
|
|
860
|
+
yAxis: {
|
|
861
|
+
splitLine: {
|
|
862
|
+
lineStyle: {
|
|
863
|
+
type: 'dashed'
|
|
864
|
+
}
|
|
865
|
+
},
|
|
866
|
+
scale: true
|
|
867
|
+
},
|
|
868
|
+
color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, content.length),
|
|
869
|
+
series: series
|
|
870
|
+
};
|
|
789
871
|
}, _KupEchart_createX = function _KupEchart_createX(dataset = null) {
|
|
790
872
|
const x = [];
|
|
791
873
|
if (!dataset)
|
|
@@ -276,6 +276,22 @@ export class KupForm {
|
|
|
276
276
|
shape: formField.shape,
|
|
277
277
|
};
|
|
278
278
|
const label = formField.label || column.title;
|
|
279
|
+
const resetLabel = () => {
|
|
280
|
+
if (this.kupManager.objects.isButton(cell.obj)) {
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
if (!cell.data) {
|
|
284
|
+
cell.data = {};
|
|
285
|
+
}
|
|
286
|
+
try {
|
|
287
|
+
delete cell.data.label;
|
|
288
|
+
}
|
|
289
|
+
catch (_a) { }
|
|
290
|
+
try {
|
|
291
|
+
delete cell.data.data['kup-text-field'].label;
|
|
292
|
+
}
|
|
293
|
+
catch (_b) { }
|
|
294
|
+
};
|
|
279
295
|
resetLabel();
|
|
280
296
|
const labelPlacement = ((_a = section === null || section === void 0 ? void 0 : section.label) === null || _a === void 0 ? void 0 : _a.placement) || this.labelPlacement;
|
|
281
297
|
switch (labelPlacement) {
|
|
@@ -326,19 +342,6 @@ export class KupForm {
|
|
|
326
342
|
};
|
|
327
343
|
return (h("td", { class: `form__label form__label--${alignment}`, style: style }, h("span", null, label)));
|
|
328
344
|
}
|
|
329
|
-
function resetLabel() {
|
|
330
|
-
if (!cell.data) {
|
|
331
|
-
cell.data = {};
|
|
332
|
-
}
|
|
333
|
-
try {
|
|
334
|
-
delete cell.data.label;
|
|
335
|
-
}
|
|
336
|
-
catch (_a) { }
|
|
337
|
-
try {
|
|
338
|
-
delete cell.data.data['kup-text-field'].label;
|
|
339
|
-
}
|
|
340
|
-
catch (_b) { }
|
|
341
|
-
}
|
|
342
345
|
function setPlaceholderLabel() {
|
|
343
346
|
switch (dom.ketchup.data.cell.getType(cell, cell.shape || column.shape || null)) {
|
|
344
347
|
case FCellTypes.AUTOCOMPLETE:
|
|
@@ -389,7 +389,7 @@
|
|
|
389
389
|
._RU6Aa ._30j6y {
|
|
390
390
|
font-weight: 700;
|
|
391
391
|
width: 100%;
|
|
392
|
-
|
|
392
|
+
padding-left: 4px;
|
|
393
393
|
}
|
|
394
394
|
|
|
395
395
|
._T0HQN {
|
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
._yp2DW ._30j6y {
|
|
448
448
|
font-weight: 700;
|
|
449
449
|
width: 100%;
|
|
450
|
-
|
|
450
|
+
padding-left: 4px;
|
|
451
451
|
}
|
|
452
452
|
._3P0WE {
|
|
453
453
|
display: grid;
|
|
@@ -217,6 +217,16 @@ export class KupPlanner {
|
|
|
217
217
|
return phase;
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
|
+
this.plannerProps.mainGantt.initialScrollX =
|
|
221
|
+
__classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollX;
|
|
222
|
+
this.plannerProps.mainGantt.initialScrollY =
|
|
223
|
+
__classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollY;
|
|
224
|
+
if (this.plannerProps.secondaryGantt) {
|
|
225
|
+
this.plannerProps.secondaryGantt.initialScrollX =
|
|
226
|
+
__classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollX;
|
|
227
|
+
this.plannerProps.secondaryGantt.initialScrollX =
|
|
228
|
+
__classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollY;
|
|
229
|
+
}
|
|
220
230
|
this.plannerProps = Object.assign({}, this.plannerProps);
|
|
221
231
|
}
|
|
222
232
|
//---- Lifecycle hooks ----
|
|
@@ -248,7 +258,7 @@ export class KupPlanner {
|
|
|
248
258
|
let scrollXTimeout;
|
|
249
259
|
let taskScrollYTimeout;
|
|
250
260
|
let detailScrollYTimeout;
|
|
251
|
-
const scrollDelay =
|
|
261
|
+
const scrollDelay = 500;
|
|
252
262
|
this.plannerProps = {
|
|
253
263
|
mainGantt: {
|
|
254
264
|
title: this.titleMess,
|
|
@@ -421,11 +431,8 @@ export class KupPlanner {
|
|
|
421
431
|
this.persistState();
|
|
422
432
|
}
|
|
423
433
|
handleOnSetViewMode(value) {
|
|
424
|
-
var _a;
|
|
425
434
|
__classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").viewMode = value;
|
|
426
|
-
|
|
427
|
-
this.plannerProps.mainGantt.viewMode = value;
|
|
428
|
-
}
|
|
435
|
+
this.plannerProps.viewMode = value;
|
|
429
436
|
this.persistState();
|
|
430
437
|
}
|
|
431
438
|
handleOnScrollX(x) {
|
|
@@ -230,7 +230,13 @@ function setEditableCell(cellType, classObj, cell, column, props) {
|
|
|
230
230
|
classObj[FCellClasses.C_RIGHT_ALIGNED] = true;
|
|
231
231
|
case FCellTypes.LINK:
|
|
232
232
|
case FCellTypes.STRING:
|
|
233
|
-
return (h(FTextField, Object.assign({ inputType: cellType === FCellTypes.NUMBER ? 'number' : null, fullWidth: isFullWidth(props) ? true : false }, cell.data, { icon: cell.
|
|
233
|
+
return (h(FTextField, Object.assign({ inputType: cellType === FCellTypes.NUMBER ? 'number' : null, fullWidth: isFullWidth(props) ? true : false }, cell.data, { icon: cell.data && cell.data.icon
|
|
234
|
+
? cell.data.icon
|
|
235
|
+
: cell.icon
|
|
236
|
+
? cell.icon
|
|
237
|
+
: column.icon
|
|
238
|
+
? column.icon
|
|
239
|
+
: null, value: cellType === FCellTypes.NUMBER
|
|
234
240
|
? dom.ketchup.math
|
|
235
241
|
.numberifySafe(cell.value)
|
|
236
242
|
.toString()
|