@sme.up/ketchup 5.0.0 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/{cell-utils-720be0c8.js → cell-utils-5b16c180.js} +4 -4
- package/dist/cjs/{f-button-dbf3cd3a.js → f-button-3b9f32af.js} +2 -2
- package/dist/cjs/{f-cell-93d984ad.js → f-cell-c6ad973a.js} +6 -6
- package/dist/cjs/{f-chip-438213eb.js → f-chip-bed86c4a.js} +3 -3
- package/dist/cjs/{f-image-21865ab7.js → f-image-08a3d340.js} +2 -2
- package/dist/cjs/{index-ab119fad.js → index-8d7bb3be.js} +4 -1
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +412 -353
- package/dist/cjs/kup-calendar.cjs.entry.js +8 -8
- package/dist/cjs/kup-cell.cjs.entry.js +8 -8
- package/dist/cjs/kup-dash-list.cjs.entry.js +5 -5
- package/dist/cjs/kup-dash_2.cjs.entry.js +5 -5
- package/dist/cjs/kup-drawer.cjs.entry.js +8 -5
- package/dist/cjs/kup-echart.cjs.entry.js +210 -60
- package/dist/cjs/kup-field.cjs.entry.js +3 -3
- package/dist/cjs/kup-iframe.cjs.entry.js +4 -4
- package/dist/cjs/kup-lazy.cjs.entry.js +4 -4
- package/dist/cjs/kup-magic-box.cjs.entry.js +7 -7
- package/dist/cjs/{kup-manager-09c0c1fc.js → kup-manager-4227f0a2.js} +2804 -2598
- package/dist/cjs/kup-nav-bar.cjs.entry.js +6 -6
- package/dist/cjs/kup-photo-frame.cjs.entry.js +179 -0
- package/dist/cjs/kup-probe.cjs.entry.js +3 -3
- package/dist/cjs/kup-qlik.cjs.entry.js +3 -3
- package/dist/cjs/kup-snackbar.cjs.entry.js +7 -7
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{utils-a60ab5fa.js → utils-b9df398c.js} +4 -38
- package/dist/collection/assets/card.js +30 -30
- package/dist/collection/assets/data-table.js +24 -30
- package/dist/collection/assets/echart.js +481 -0
- package/dist/collection/assets/index.js +79 -79
- package/dist/collection/assets/kupdata.js +29 -41
- package/dist/collection/assets/list.js +6 -6
- package/dist/collection/assets/nav-bar.js +4 -4
- package/dist/collection/assets/probe.js +18 -18
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +5 -5
- package/dist/collection/components/kup-box/kup-box.js +9 -9
- package/dist/collection/components/kup-button-list/kup-button-list.js +4 -4
- package/dist/collection/components/kup-card/built-in/kup-card-clock.js +1 -1
- package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +21 -22
- package/dist/collection/components/kup-card/kup-card.js +1 -2
- package/dist/collection/components/kup-chip/kup-chip.js +4 -4
- package/dist/collection/components/kup-combobox/kup-combobox.js +6 -6
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +0 -2
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +31 -32
- package/dist/collection/components/kup-data-table/kup-data-table.js +124 -164
- package/dist/collection/components/kup-drawer/kup-drawer.js +4 -1
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +3 -3
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +14 -14
- package/dist/collection/components/kup-echart/kup-echart-declarations.js +3 -0
- package/dist/collection/components/kup-echart/kup-echart.js +246 -58
- package/dist/collection/components/kup-image/assets/svg/instagram.svg +1 -0
- package/dist/collection/components/kup-image/assets/svg/pinterest.svg +1 -0
- package/dist/collection/components/kup-image/assets/svg/reddit.svg +1 -0
- package/dist/collection/components/kup-list/kup-list-helper.js +26 -26
- package/dist/collection/components/kup-list/kup-list.css +35 -3
- package/dist/collection/components/kup-list/kup-list.js +52 -44
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +2 -2
- package/dist/collection/components/kup-photo-frame/kup-photo-frame-declarations.js +10 -0
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +70 -0
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +382 -0
- package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -0
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +1 -1
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +10 -10
- package/dist/collection/components/kup-tree/kup-tree.js +100 -51
- package/dist/collection/f-components/f-paginator/f-paginator.js +6 -6
- package/dist/collection/managers/kup-data/kup-data-cell-helper.js +2 -2
- package/dist/collection/managers/kup-data/kup-data-column-helper.js +27 -3
- package/dist/collection/managers/kup-data/kup-data-declarations.js +2 -1
- package/dist/collection/managers/kup-data/kup-data-node-helper.js +1 -1
- package/dist/collection/managers/kup-data/kup-data-row-helper.js +2 -2
- package/dist/collection/managers/kup-data/kup-data.js +337 -155
- package/dist/collection/managers/kup-dates/kup-dates.js +2 -2
- package/dist/collection/managers/kup-debug/kup-debug.js +6 -6
- package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +1 -1
- package/dist/collection/managers/kup-language/kup-language.js +2 -2
- package/dist/collection/managers/kup-manager/kup-manager.js +13 -0
- package/dist/collection/managers/kup-math/kup-math-declarations.js +13 -0
- package/dist/collection/managers/kup-math/kup-math-helper.js +39 -0
- package/dist/collection/managers/kup-math/kup-math.js +151 -0
- package/dist/collection/managers/kup-objects/kup-objects.js +48 -1
- package/dist/collection/managers/kup-theme/kup-theme.js +2 -2
- package/dist/collection/utils/cell-utils.js +2 -3
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +1 -1
- package/dist/collection/utils/utils.js +3 -74
- package/dist/esm/{cell-utils-b80ccb8c.js → cell-utils-69f75e2e.js} +4 -4
- package/dist/esm/{f-button-9e835467.js → f-button-7e7607d8.js} +2 -2
- package/dist/esm/{f-cell-f8bb2e04.js → f-cell-e4d83c27.js} +6 -6
- package/dist/esm/{f-chip-953c6915.js → f-chip-51dfefaf.js} +3 -3
- package/dist/esm/{f-image-78c5265e.js → f-image-de331954.js} +2 -2
- package/dist/esm/{index-78f3699d.js → index-aeec9835.js} +4 -1
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +5 -5
- package/dist/esm/kup-autocomplete_27.entry.js +412 -353
- package/dist/esm/kup-calendar.entry.js +8 -8
- package/dist/esm/kup-cell.entry.js +8 -8
- package/dist/esm/kup-dash-list.entry.js +5 -5
- package/dist/esm/kup-dash_2.entry.js +5 -5
- package/dist/esm/kup-drawer.entry.js +8 -5
- package/dist/esm/kup-echart.entry.js +210 -60
- package/dist/esm/kup-field.entry.js +3 -3
- package/dist/esm/kup-iframe.entry.js +4 -4
- package/dist/esm/kup-lazy.entry.js +4 -4
- package/dist/esm/kup-magic-box.entry.js +7 -7
- package/dist/esm/{kup-manager-bba62291.js → kup-manager-0ab94726.js} +2805 -2598
- package/dist/esm/kup-nav-bar.entry.js +6 -6
- package/dist/esm/kup-photo-frame.entry.js +175 -0
- package/dist/esm/kup-probe.entry.js +3 -3
- package/dist/esm/kup-qlik.entry.js +3 -3
- package/dist/esm/kup-snackbar.entry.js +7 -7
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-d1569956.js → utils-35c7a90d.js} +5 -37
- package/dist/ketchup/assets/svg/instagram.svg +1 -0
- package/dist/ketchup/assets/svg/pinterest.svg +1 -0
- package/dist/ketchup/assets/svg/reddit.svg +1 -0
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-0751aaf6.entry.js +1 -0
- package/dist/ketchup/p-10c8d755.js +1 -0
- package/dist/ketchup/{p-aa27f9f7.entry.js → p-24df4f29.entry.js} +2 -2
- package/dist/ketchup/{p-29800a2e.js → p-2d4f19f4.js} +1 -1
- package/dist/ketchup/p-33073f4a.js +1 -0
- package/dist/ketchup/p-3445be1e.entry.js +1 -0
- package/dist/ketchup/p-3813281b.entry.js +1 -0
- package/dist/ketchup/p-4081f5f7.entry.js +1 -0
- package/dist/ketchup/p-47b57d97.js +1 -0
- package/dist/ketchup/p-5186885c.entry.js +1 -0
- package/dist/ketchup/{p-f993f813.js → p-5d190cf5.js} +1 -1
- package/dist/ketchup/p-67c64257.entry.js +1 -0
- package/dist/ketchup/p-68fc1428.entry.js +1 -0
- package/dist/ketchup/p-8be1337b.js +1 -0
- package/dist/ketchup/p-8f735633.entry.js +1 -0
- package/dist/ketchup/p-96101f09.entry.js +39 -0
- package/dist/ketchup/p-9bcda66f.entry.js +1 -0
- package/dist/ketchup/p-b5e1dbfa.entry.js +1 -0
- package/dist/ketchup/{p-ebf4cf56.js → p-c314b1e6.js} +1 -1
- package/dist/ketchup/p-d7af8156.entry.js +1 -0
- package/dist/ketchup/p-dbe87a3f.entry.js +143 -0
- package/dist/ketchup/p-ee33cbe9.js +9 -0
- package/dist/ketchup/p-f250d42b.entry.js +1 -0
- package/dist/ketchup/p-f9c41e20.entry.js +1 -0
- package/dist/ketchup/p-fea316ab.entry.js +1 -0
- package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +2 -1
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +0 -2
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +8 -15
- package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +1 -1
- package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +3 -0
- package/dist/types/components/kup-echart/kup-echart.d.ts +12 -1
- package/dist/types/components/kup-list/kup-list-declarations.d.ts +3 -7
- package/dist/types/components/kup-list/kup-list-helper.d.ts +6 -6
- package/dist/types/components/kup-list/kup-list.d.ts +2 -2
- package/dist/types/components/kup-photo-frame/kup-photo-frame-declarations.d.ts +9 -0
- package/dist/types/components/kup-photo-frame/kup-photo-frame.d.ts +61 -0
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +1 -1
- package/dist/types/components/kup-tree/kup-tree.d.ts +1 -1
- package/dist/types/components.d.ts +110 -28
- package/dist/types/managers/kup-data/kup-data-column-helper.d.ts +9 -1
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +4 -25
- package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +1 -1
- package/dist/types/managers/kup-data/kup-data.d.ts +63 -27
- package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +11 -0
- package/dist/types/managers/kup-manager/kup-manager.d.ts +2 -0
- package/dist/types/managers/kup-math/kup-math-declarations.d.ts +21 -0
- package/dist/types/managers/kup-math/kup-math-helper.d.ts +17 -0
- package/dist/types/managers/kup-math/kup-math.d.ts +60 -0
- package/dist/types/managers/kup-objects/kup-objects.d.ts +22 -0
- package/dist/types/utils/utils.d.ts +0 -18
- package/package.json +2 -2
- package/dist/collection/managers/kup-data/kup-data-dataset-helper.js +0 -262
- package/dist/collection/managers/kup-data/kup-data-helper.js +0 -61
- package/dist/collection/utils/state-utils.js +0 -9
- package/dist/ketchup/p-0032a782.entry.js +0 -1
- package/dist/ketchup/p-18c4d083.entry.js +0 -1
- package/dist/ketchup/p-199c972e.entry.js +0 -1
- package/dist/ketchup/p-34aa8d8a.entry.js +0 -1
- package/dist/ketchup/p-542279e9.entry.js +0 -1
- package/dist/ketchup/p-5b26a7a8.entry.js +0 -39
- package/dist/ketchup/p-5c97e7ab.js +0 -1
- package/dist/ketchup/p-6817ca85.entry.js +0 -1
- package/dist/ketchup/p-76e674ca.entry.js +0 -1
- package/dist/ketchup/p-78aa6f1b.js +0 -1
- package/dist/ketchup/p-842b66aa.entry.js +0 -1
- package/dist/ketchup/p-894981c0.entry.js +0 -143
- package/dist/ketchup/p-8ac2fa75.entry.js +0 -1
- package/dist/ketchup/p-907c9e11.entry.js +0 -1
- package/dist/ketchup/p-9ae9149b.entry.js +0 -1
- package/dist/ketchup/p-b0d1bdd8.js +0 -9
- package/dist/ketchup/p-e1e4c951.entry.js +0 -1
- package/dist/ketchup/p-eba369d9.entry.js +0 -1
- package/dist/ketchup/p-ed0b8666.js +0 -1
- package/dist/ketchup/p-fa540f82.js +0 -1
- package/dist/types/managers/kup-data/kup-data-dataset-helper.d.ts +0 -42
- package/dist/types/managers/kup-data/kup-data-helper.d.ts +0 -11
- package/dist/types/utils/state-utils.d.ts +0 -1
|
@@ -19,164 +19,164 @@ for (let index = 0; index < cards.length; index++) {
|
|
|
19
19
|
const components = document.querySelector('#components');
|
|
20
20
|
components.data = [
|
|
21
21
|
{
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
value: 'Accordion',
|
|
23
|
+
id: 'accordion.html',
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
value: 'Autocomplete',
|
|
27
|
+
id: 'autocomplete.html',
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
value: 'Box',
|
|
31
|
+
id: 'box.html',
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
value: 'Button',
|
|
35
|
+
id: 'button.html',
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
value: 'Button list',
|
|
39
|
+
id: 'button-list.html',
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
value: 'Calendar',
|
|
43
|
+
id: 'calendar.html',
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
value: 'Card',
|
|
47
|
+
id: 'card.html',
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
value: 'Cell',
|
|
51
|
+
id: 'cell.html',
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
value: 'Chart',
|
|
55
|
+
id: 'chart.html',
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
value: 'Checkbox',
|
|
59
|
+
id: 'checkbox.html',
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
value: 'Chip',
|
|
63
|
+
id: 'chip.html',
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
value: 'Color picker',
|
|
67
|
+
id: 'color-picker.html',
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
value: 'Combobox',
|
|
71
|
+
id: 'combobox.html',
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
value: 'Dash list',
|
|
75
|
+
id: 'dash-list.html',
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
value: 'Data table',
|
|
79
|
+
id: 'data-table.html',
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
value: 'Date picker',
|
|
83
|
+
id: 'date-picker.html',
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
value: 'Drawer',
|
|
87
|
+
id: 'drawer.html',
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
value: 'Dropdown button',
|
|
91
|
+
id: 'dropdown-button.html',
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
value: 'Echart',
|
|
95
|
+
id: 'echart.html',
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
value: 'Gauge',
|
|
99
|
+
id: 'gauge.html',
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
value: 'Image',
|
|
103
|
+
id: 'image.html',
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
value: 'KupData',
|
|
107
|
+
id: 'kupdata.html',
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
value: 'Layout',
|
|
111
|
+
id: 'layout.html',
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
value: 'List',
|
|
115
|
+
id: 'list.html',
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
value: 'Magic box',
|
|
119
|
+
id: 'magic-box.html',
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
value: 'Nav bar',
|
|
123
|
+
id: 'nav-bar.html',
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
value: 'Radio',
|
|
127
|
+
id: 'radio.html',
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
value: 'Rating',
|
|
131
|
+
id: 'rating.html',
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
value: 'Snackbar',
|
|
135
|
+
id: 'snackbar.html',
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
value: 'Switch',
|
|
139
|
+
id: 'switch.html',
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
value: 'Tab bar',
|
|
143
|
+
id: 'tab-bar.html',
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
value: 'Time picker',
|
|
147
|
+
id: 'time-picker.html',
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
value: 'Text field',
|
|
151
|
+
id: 'text-field.html',
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
value: 'Tooltip',
|
|
155
|
+
id: 'tooltip.html',
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
value: 'Tree',
|
|
159
|
+
id: 'tree.html',
|
|
160
160
|
},
|
|
161
161
|
];
|
|
162
162
|
// Setting up performance pages
|
|
163
163
|
const performances = document.querySelector('#performances');
|
|
164
164
|
performances.data = [
|
|
165
165
|
{
|
|
166
|
-
|
|
167
|
-
|
|
166
|
+
value: 'Box',
|
|
167
|
+
id: 'box-performance.html',
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
|
-
|
|
171
|
-
|
|
170
|
+
value: 'Card',
|
|
171
|
+
id: 'card-performance.html',
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
value: 'Data table',
|
|
175
|
+
id: 'data-table-performance.html',
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
value: 'Tree',
|
|
179
|
+
id: 'tree-performance.html',
|
|
180
180
|
},
|
|
181
181
|
];
|
|
182
182
|
// Setting up events
|
|
@@ -214,7 +214,7 @@ document.addEventListener('kup-button-click', (e) => {
|
|
|
214
214
|
}
|
|
215
215
|
});
|
|
216
216
|
document.addEventListener('kup-list-click', (e) => {
|
|
217
|
-
gotoPage(e, e.detail.selected.
|
|
217
|
+
gotoPage(e, e.detail.selected.id);
|
|
218
218
|
});
|
|
219
219
|
|
|
220
220
|
function isDarkMode() {
|
|
@@ -819,7 +819,7 @@ gaussianButtons.forEach((but, index) => {
|
|
|
819
819
|
function newEvent(index) {
|
|
820
820
|
outputTable.data = null;
|
|
821
821
|
const dataset = { ...inputTable.data };
|
|
822
|
-
outputTable.data = kupManager.data.
|
|
822
|
+
outputTable.data = kupManager.data.new(
|
|
823
823
|
dataset,
|
|
824
824
|
index === 0
|
|
825
825
|
? newColumns
|
|
@@ -833,49 +833,37 @@ function replaceEvent(index) {
|
|
|
833
833
|
newEvent(index);
|
|
834
834
|
const newDataset = { ...outputTable.data };
|
|
835
835
|
if (index === 0) {
|
|
836
|
-
kupManager.data.
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
);
|
|
846
|
-
kupManager.data.datasetOperations.cell.replace(
|
|
847
|
-
newDataset,
|
|
848
|
-
{ value: 'From 60 to 99' },
|
|
849
|
-
['6099']
|
|
850
|
-
);
|
|
836
|
+
kupManager.data.cell.replace(newDataset, { value: 'From 20 to 39' }, [
|
|
837
|
+
'2039',
|
|
838
|
+
]);
|
|
839
|
+
kupManager.data.cell.replace(newDataset, { value: 'From 40 to 59' }, [
|
|
840
|
+
'4059',
|
|
841
|
+
]);
|
|
842
|
+
kupManager.data.cell.replace(newDataset, { value: 'From 60 to 99' }, [
|
|
843
|
+
'6099',
|
|
844
|
+
]);
|
|
851
845
|
} else if (index === 1) {
|
|
852
|
-
kupManager.data.
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
);
|
|
862
|
-
kupManager.data.datasetOperations.cell.replace(
|
|
863
|
-
newDataset,
|
|
864
|
-
{ value: 'From Q to Z' },
|
|
865
|
-
['QZ']
|
|
866
|
-
);
|
|
846
|
+
kupManager.data.cell.replace(newDataset, { value: 'From A to C' }, [
|
|
847
|
+
'AC',
|
|
848
|
+
]);
|
|
849
|
+
kupManager.data.cell.replace(newDataset, { value: 'From D to P' }, [
|
|
850
|
+
'DP',
|
|
851
|
+
]);
|
|
852
|
+
kupManager.data.cell.replace(newDataset, { value: 'From Q to Z' }, [
|
|
853
|
+
'QZ',
|
|
854
|
+
]);
|
|
867
855
|
} else if (index === 2) {
|
|
868
|
-
kupManager.data.
|
|
856
|
+
kupManager.data.cell.replace(
|
|
869
857
|
newDataset,
|
|
870
858
|
{ value: 'From 1700 to 1900' },
|
|
871
859
|
['17001900']
|
|
872
860
|
);
|
|
873
|
-
kupManager.data.
|
|
861
|
+
kupManager.data.cell.replace(
|
|
874
862
|
newDataset,
|
|
875
863
|
{ value: 'From 1901 to 1950' },
|
|
876
864
|
['19011950']
|
|
877
865
|
);
|
|
878
|
-
kupManager.data.
|
|
866
|
+
kupManager.data.cell.replace(
|
|
879
867
|
newDataset,
|
|
880
868
|
{ value: 'From 1951 to 2022' },
|
|
881
869
|
['19512022']
|
|
@@ -888,17 +876,17 @@ function mergeEvent(index) {
|
|
|
888
876
|
replaceEvent(index);
|
|
889
877
|
const newDataset = { ...outputTable.data };
|
|
890
878
|
if (index === 0) {
|
|
891
|
-
kupManager.data.
|
|
879
|
+
kupManager.data.column.new(newDataset, 'merge', {
|
|
892
880
|
columns: ['2039', '4059', '6099'],
|
|
893
881
|
newColumn: resultingColumn,
|
|
894
882
|
});
|
|
895
883
|
} else if (index === 1) {
|
|
896
|
-
kupManager.data.
|
|
884
|
+
kupManager.data.column.new(newDataset, 'merge', {
|
|
897
885
|
columns: ['AC', 'DP', 'QZ'],
|
|
898
886
|
newColumn: resultingColumnString,
|
|
899
887
|
});
|
|
900
888
|
} else if (index === 2) {
|
|
901
|
-
kupManager.data.
|
|
889
|
+
kupManager.data.column.new(newDataset, 'merge', {
|
|
902
890
|
columns: ['17001900', '19011950', '19512022'],
|
|
903
891
|
newColumn: resultingColumnDate,
|
|
904
892
|
});
|
|
@@ -908,7 +896,7 @@ function mergeEvent(index) {
|
|
|
908
896
|
|
|
909
897
|
function distinctEvent(index) {
|
|
910
898
|
mergeEvent(index);
|
|
911
|
-
const newDataset = kupManager.data.
|
|
899
|
+
const newDataset = kupManager.data.distinct({
|
|
912
900
|
...outputTable.data,
|
|
913
901
|
});
|
|
914
902
|
outputTable.data = newDataset;
|
|
@@ -919,21 +907,21 @@ function allInOneEvent(index, titleColumn) {
|
|
|
919
907
|
const dataset = { ...inputTable.data };
|
|
920
908
|
let newDataset;
|
|
921
909
|
if (index === 0) {
|
|
922
|
-
newDataset = kupManager.data.
|
|
910
|
+
newDataset = kupManager.data.rangedDistinct(
|
|
923
911
|
dataset,
|
|
924
912
|
newColumns,
|
|
925
913
|
resultingColumn,
|
|
926
914
|
titleColumn
|
|
927
915
|
);
|
|
928
916
|
} else if (index === 1) {
|
|
929
|
-
newDataset = kupManager.data.
|
|
917
|
+
newDataset = kupManager.data.rangedDistinct(
|
|
930
918
|
dataset,
|
|
931
919
|
newColumnsString,
|
|
932
920
|
resultingColumnString,
|
|
933
921
|
titleColumn
|
|
934
922
|
);
|
|
935
923
|
} else if (index === 2) {
|
|
936
|
-
newDataset = kupManager.data.
|
|
924
|
+
newDataset = kupManager.data.rangedDistinct(
|
|
937
925
|
dataset,
|
|
938
926
|
newColumnsDate,
|
|
939
927
|
resultingColumnDate,
|
|
@@ -4,23 +4,23 @@ for (let index = 0; index < lists.length; index++) {
|
|
|
4
4
|
const list = lists[index];
|
|
5
5
|
list.data = [
|
|
6
6
|
{
|
|
7
|
-
|
|
7
|
+
value: 'First item',
|
|
8
8
|
secondaryText: 'I am a description',
|
|
9
|
-
|
|
9
|
+
id: '1',
|
|
10
10
|
icon: 'filter_1',
|
|
11
11
|
selected: false,
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
|
-
|
|
14
|
+
value: 'Second item',
|
|
15
15
|
secondaryText: 'I am a description',
|
|
16
|
-
|
|
16
|
+
id: '2',
|
|
17
17
|
icon: 'filter_2',
|
|
18
18
|
selected: false,
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
|
-
|
|
21
|
+
value: 'Third item',
|
|
22
22
|
secondaryText: 'I am a description',
|
|
23
|
-
|
|
23
|
+
id: '3',
|
|
24
24
|
icon: 'filter_3',
|
|
25
25
|
selected: false,
|
|
26
26
|
},
|
|
@@ -35,40 +35,40 @@ combobox.data = {
|
|
|
35
35
|
'kup-list': {
|
|
36
36
|
data: [
|
|
37
37
|
{
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
value: 'No features',
|
|
39
|
+
id: 'empty',
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
value: 'KupDebug',
|
|
43
|
+
id: 'debug',
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
value: 'KupLanguage',
|
|
47
|
+
id: 'language',
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
value: 'KupTheme',
|
|
51
|
+
id: 'theme',
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
value: 'Long cycle (props)',
|
|
55
|
+
id: 'cycleprops',
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
value: 'Long cycle (variables)',
|
|
59
|
+
id: 'cyclevars',
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
value: 'Long cycle (KupObjects)',
|
|
63
|
+
id: 'cycleobjects',
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
value: 'Long cycle (object function)',
|
|
67
|
+
id: 'cycleobjectsfunction',
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
value: 'All features',
|
|
71
|
+
id: 'full',
|
|
72
72
|
},
|
|
73
73
|
],
|
|
74
74
|
},
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"./components/kup-list/kup-list.js",
|
|
35
35
|
"./components/kup-magic-box/kup-magic-box.js",
|
|
36
36
|
"./components/kup-nav-bar/kup-nav-bar.js",
|
|
37
|
+
"./components/kup-photo-frame/kup-photo-frame.js",
|
|
37
38
|
"./components/kup-probe/kup-probe.js",
|
|
38
39
|
"./components/kup-progress-bar/kup-progress-bar.js",
|
|
39
40
|
"./components/kup-qlik/kup-qlik.js",
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
],
|
|
47
48
|
"compiler": {
|
|
48
49
|
"name": "@stencil/core",
|
|
49
|
-
"version": "2.14.
|
|
50
|
+
"version": "2.14.1",
|
|
50
51
|
"typescriptVersion": "4.5.4"
|
|
51
52
|
},
|
|
52
53
|
"collections": [],
|
|
@@ -158,7 +158,7 @@ export class KupAutocomplete {
|
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
160
|
onKupItemClick(e) {
|
|
161
|
-
this.onKupChange(e.detail.selected.
|
|
161
|
+
this.onKupChange(e.detail.selected.id);
|
|
162
162
|
this.closeList();
|
|
163
163
|
if (this.textfieldEl) {
|
|
164
164
|
this.textfieldEl.focus();
|
|
@@ -304,12 +304,12 @@ export class KupAutocomplete {
|
|
|
304
304
|
isListOpened() {
|
|
305
305
|
return this.listEl.menuVisible == true;
|
|
306
306
|
}
|
|
307
|
-
consistencyCheck(e,
|
|
307
|
+
consistencyCheck(e, idIn) {
|
|
308
308
|
if (!this.doConsistencyCheck) {
|
|
309
309
|
return;
|
|
310
310
|
}
|
|
311
311
|
this.doConsistencyCheck = false;
|
|
312
|
-
const ret = consistencyCheck(
|
|
312
|
+
const ret = consistencyCheck(idIn, this.data['kup-list'], this.listEl, this.selectMode, this.displayMode, e);
|
|
313
313
|
if (ret.exists || this.allowInconsistentValues) {
|
|
314
314
|
this.value = ret.value;
|
|
315
315
|
this.displayedValue = ret.displayedValue;
|
|
@@ -318,9 +318,9 @@ export class KupAutocomplete {
|
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
else {
|
|
321
|
-
this.displayedValue =
|
|
321
|
+
this.displayedValue = idIn;
|
|
322
322
|
if (this.listEl != null && !this.serverHandledFilter) {
|
|
323
|
-
this.listEl.filter =
|
|
323
|
+
this.listEl.filter = idIn;
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
return ret;
|
|
@@ -6,7 +6,7 @@ import { filterRows, sortRows, paginateRows, } from '../kup-data-table/kup-data-
|
|
|
6
6
|
import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
7
7
|
import { KupBoxState } from './kup-box-state';
|
|
8
8
|
import { setTooltip, unsetTooltip } from '../../utils/helpers';
|
|
9
|
-
import {
|
|
9
|
+
import { getProps, identify, setProps } from '../../utils/utils';
|
|
10
10
|
import { FImage } from '../../f-components/f-image/f-image';
|
|
11
11
|
import { FChip } from '../../f-components/f-chip/f-chip';
|
|
12
12
|
import { KupDebugCategory } from '../../managers/kup-debug/kup-debug-declarations';
|
|
@@ -181,19 +181,19 @@ export class KupBox {
|
|
|
181
181
|
persistState() {
|
|
182
182
|
if (this.store && this.stateId) {
|
|
183
183
|
let somethingChanged = false;
|
|
184
|
-
if (!deepEqual(this.state.sortBy, this.sortBy)) {
|
|
184
|
+
if (!this.kupManager.objects.deepEqual(this.state.sortBy, this.sortBy)) {
|
|
185
185
|
this.state.sortBy = this.sortBy;
|
|
186
186
|
somethingChanged = true;
|
|
187
187
|
}
|
|
188
|
-
if (!deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
|
|
188
|
+
if (!this.kupManager.objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
|
|
189
189
|
this.state.globalFilterValue = this.globalFilterValue;
|
|
190
190
|
somethingChanged = true;
|
|
191
191
|
}
|
|
192
|
-
if (!deepEqual(this.state.pageSelected, this.currentPage)) {
|
|
192
|
+
if (!this.kupManager.objects.deepEqual(this.state.pageSelected, this.currentPage)) {
|
|
193
193
|
this.state.pageSelected = this.currentPage;
|
|
194
194
|
somethingChanged = true;
|
|
195
195
|
}
|
|
196
|
-
if (!deepEqual(this.state.rowsPerPage, this.currentRowsPerPage)) {
|
|
196
|
+
if (!this.kupManager.objects.deepEqual(this.state.rowsPerPage, this.currentRowsPerPage)) {
|
|
197
197
|
this.state.rowsPerPage = this.currentRowsPerPage;
|
|
198
198
|
somethingChanged = true;
|
|
199
199
|
}
|
|
@@ -201,7 +201,7 @@ export class KupBox {
|
|
|
201
201
|
const prefix = currentIndex > 0 ? ';' : '';
|
|
202
202
|
return accumulator + prefix + row.id;
|
|
203
203
|
}, '');
|
|
204
|
-
if (!deepEqual(this.state.selectedRowsState, selectedRowsState)) {
|
|
204
|
+
if (!this.kupManager.objects.deepEqual(this.state.selectedRowsState, selectedRowsState)) {
|
|
205
205
|
this.state.selectedRowsState = selectedRowsState;
|
|
206
206
|
somethingChanged = true;
|
|
207
207
|
}
|
|
@@ -1207,13 +1207,13 @@ export class KupBox {
|
|
|
1207
1207
|
// creating items
|
|
1208
1208
|
const visibleColumnsItems = this.visibleColumns.map((column) => {
|
|
1209
1209
|
const item = {
|
|
1210
|
-
|
|
1211
|
-
|
|
1210
|
+
value: column.title,
|
|
1211
|
+
id: column.name,
|
|
1212
1212
|
selected: column.name === this.sortBy,
|
|
1213
1213
|
};
|
|
1214
1214
|
return item;
|
|
1215
1215
|
});
|
|
1216
|
-
const items = [{
|
|
1216
|
+
const items = [{ value: '', id: '' }, ...visibleColumnsItems];
|
|
1217
1217
|
let textfieldData = {
|
|
1218
1218
|
label: this.kupManager.language.translate(KupLanguageGeneric.SORT_BY),
|
|
1219
1219
|
trailingIcon: true,
|
|
@@ -82,7 +82,7 @@ export class KupButtonList {
|
|
|
82
82
|
if (newData.columns) {
|
|
83
83
|
this.kupManager.debug.logMessage(this, 'Detected KupDataDataset: converting rows to nodes.', KupDebugCategory.WARNING);
|
|
84
84
|
const data = this.data;
|
|
85
|
-
this.data = this.kupManager.data.
|
|
85
|
+
this.data = this.kupManager.data.row.toNode(data);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
/*-------------------------------------------------*/
|
|
@@ -216,10 +216,10 @@ export class KupButtonList {
|
|
|
216
216
|
return data;
|
|
217
217
|
}
|
|
218
218
|
getKupListDataForChildren(children) {
|
|
219
|
-
|
|
219
|
+
const ris = [];
|
|
220
220
|
for (let i = 0; i < children.length; i++) {
|
|
221
|
-
|
|
222
|
-
ris.push({
|
|
221
|
+
const tn = children[i];
|
|
222
|
+
ris.push({ icon: tn.icon, id: i.toString(), value: tn.value });
|
|
223
223
|
}
|
|
224
224
|
return ris;
|
|
225
225
|
}
|