@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.
Files changed (196) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/{cell-utils-720be0c8.js → cell-utils-5b16c180.js} +4 -4
  3. package/dist/cjs/{f-button-dbf3cd3a.js → f-button-3b9f32af.js} +2 -2
  4. package/dist/cjs/{f-cell-93d984ad.js → f-cell-c6ad973a.js} +6 -6
  5. package/dist/cjs/{f-chip-438213eb.js → f-chip-bed86c4a.js} +3 -3
  6. package/dist/cjs/{f-image-21865ab7.js → f-image-08a3d340.js} +2 -2
  7. package/dist/cjs/{index-ab119fad.js → index-8d7bb3be.js} +4 -1
  8. package/dist/cjs/ketchup.cjs.js +3 -3
  9. package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
  10. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +412 -353
  11. package/dist/cjs/kup-calendar.cjs.entry.js +8 -8
  12. package/dist/cjs/kup-cell.cjs.entry.js +8 -8
  13. package/dist/cjs/kup-dash-list.cjs.entry.js +5 -5
  14. package/dist/cjs/kup-dash_2.cjs.entry.js +5 -5
  15. package/dist/cjs/kup-drawer.cjs.entry.js +8 -5
  16. package/dist/cjs/kup-echart.cjs.entry.js +210 -60
  17. package/dist/cjs/kup-field.cjs.entry.js +3 -3
  18. package/dist/cjs/kup-iframe.cjs.entry.js +4 -4
  19. package/dist/cjs/kup-lazy.cjs.entry.js +4 -4
  20. package/dist/cjs/kup-magic-box.cjs.entry.js +7 -7
  21. package/dist/cjs/{kup-manager-09c0c1fc.js → kup-manager-4227f0a2.js} +2804 -2598
  22. package/dist/cjs/kup-nav-bar.cjs.entry.js +6 -6
  23. package/dist/cjs/kup-photo-frame.cjs.entry.js +179 -0
  24. package/dist/cjs/kup-probe.cjs.entry.js +3 -3
  25. package/dist/cjs/kup-qlik.cjs.entry.js +3 -3
  26. package/dist/cjs/kup-snackbar.cjs.entry.js +7 -7
  27. package/dist/cjs/loader.cjs.js +3 -3
  28. package/dist/cjs/{utils-a60ab5fa.js → utils-b9df398c.js} +4 -38
  29. package/dist/collection/assets/card.js +30 -30
  30. package/dist/collection/assets/data-table.js +24 -30
  31. package/dist/collection/assets/echart.js +481 -0
  32. package/dist/collection/assets/index.js +79 -79
  33. package/dist/collection/assets/kupdata.js +29 -41
  34. package/dist/collection/assets/list.js +6 -6
  35. package/dist/collection/assets/nav-bar.js +4 -4
  36. package/dist/collection/assets/probe.js +18 -18
  37. package/dist/collection/collection-manifest.json +2 -1
  38. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +5 -5
  39. package/dist/collection/components/kup-box/kup-box.js +9 -9
  40. package/dist/collection/components/kup-button-list/kup-button-list.js +4 -4
  41. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +1 -1
  42. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +21 -22
  43. package/dist/collection/components/kup-card/kup-card.js +1 -2
  44. package/dist/collection/components/kup-chip/kup-chip.js +4 -4
  45. package/dist/collection/components/kup-combobox/kup-combobox.js +6 -6
  46. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +0 -2
  47. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +31 -32
  48. package/dist/collection/components/kup-data-table/kup-data-table.js +124 -164
  49. package/dist/collection/components/kup-drawer/kup-drawer.js +4 -1
  50. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +3 -3
  51. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +14 -14
  52. package/dist/collection/components/kup-echart/kup-echart-declarations.js +3 -0
  53. package/dist/collection/components/kup-echart/kup-echart.js +246 -58
  54. package/dist/collection/components/kup-image/assets/svg/instagram.svg +1 -0
  55. package/dist/collection/components/kup-image/assets/svg/pinterest.svg +1 -0
  56. package/dist/collection/components/kup-image/assets/svg/reddit.svg +1 -0
  57. package/dist/collection/components/kup-list/kup-list-helper.js +26 -26
  58. package/dist/collection/components/kup-list/kup-list.css +35 -3
  59. package/dist/collection/components/kup-list/kup-list.js +52 -44
  60. package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
  61. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +2 -2
  62. package/dist/collection/components/kup-photo-frame/kup-photo-frame-declarations.js +10 -0
  63. package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +70 -0
  64. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +382 -0
  65. package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -0
  66. package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +1 -1
  67. package/dist/collection/components/kup-time-picker/kup-time-picker.js +10 -10
  68. package/dist/collection/components/kup-tree/kup-tree.js +100 -51
  69. package/dist/collection/f-components/f-paginator/f-paginator.js +6 -6
  70. package/dist/collection/managers/kup-data/kup-data-cell-helper.js +2 -2
  71. package/dist/collection/managers/kup-data/kup-data-column-helper.js +27 -3
  72. package/dist/collection/managers/kup-data/kup-data-declarations.js +2 -1
  73. package/dist/collection/managers/kup-data/kup-data-node-helper.js +1 -1
  74. package/dist/collection/managers/kup-data/kup-data-row-helper.js +2 -2
  75. package/dist/collection/managers/kup-data/kup-data.js +337 -155
  76. package/dist/collection/managers/kup-dates/kup-dates.js +2 -2
  77. package/dist/collection/managers/kup-debug/kup-debug.js +6 -6
  78. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +1 -1
  79. package/dist/collection/managers/kup-language/kup-language.js +2 -2
  80. package/dist/collection/managers/kup-manager/kup-manager.js +13 -0
  81. package/dist/collection/managers/kup-math/kup-math-declarations.js +13 -0
  82. package/dist/collection/managers/kup-math/kup-math-helper.js +39 -0
  83. package/dist/collection/managers/kup-math/kup-math.js +151 -0
  84. package/dist/collection/managers/kup-objects/kup-objects.js +48 -1
  85. package/dist/collection/managers/kup-theme/kup-theme.js +2 -2
  86. package/dist/collection/utils/cell-utils.js +2 -3
  87. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +1 -1
  88. package/dist/collection/utils/utils.js +3 -74
  89. package/dist/esm/{cell-utils-b80ccb8c.js → cell-utils-69f75e2e.js} +4 -4
  90. package/dist/esm/{f-button-9e835467.js → f-button-7e7607d8.js} +2 -2
  91. package/dist/esm/{f-cell-f8bb2e04.js → f-cell-e4d83c27.js} +6 -6
  92. package/dist/esm/{f-chip-953c6915.js → f-chip-51dfefaf.js} +3 -3
  93. package/dist/esm/{f-image-78c5265e.js → f-image-de331954.js} +2 -2
  94. package/dist/esm/{index-78f3699d.js → index-aeec9835.js} +4 -1
  95. package/dist/esm/ketchup.js +3 -3
  96. package/dist/esm/kup-accordion.entry.js +5 -5
  97. package/dist/esm/kup-autocomplete_27.entry.js +412 -353
  98. package/dist/esm/kup-calendar.entry.js +8 -8
  99. package/dist/esm/kup-cell.entry.js +8 -8
  100. package/dist/esm/kup-dash-list.entry.js +5 -5
  101. package/dist/esm/kup-dash_2.entry.js +5 -5
  102. package/dist/esm/kup-drawer.entry.js +8 -5
  103. package/dist/esm/kup-echart.entry.js +210 -60
  104. package/dist/esm/kup-field.entry.js +3 -3
  105. package/dist/esm/kup-iframe.entry.js +4 -4
  106. package/dist/esm/kup-lazy.entry.js +4 -4
  107. package/dist/esm/kup-magic-box.entry.js +7 -7
  108. package/dist/esm/{kup-manager-bba62291.js → kup-manager-0ab94726.js} +2805 -2598
  109. package/dist/esm/kup-nav-bar.entry.js +6 -6
  110. package/dist/esm/kup-photo-frame.entry.js +175 -0
  111. package/dist/esm/kup-probe.entry.js +3 -3
  112. package/dist/esm/kup-qlik.entry.js +3 -3
  113. package/dist/esm/kup-snackbar.entry.js +7 -7
  114. package/dist/esm/loader.js +3 -3
  115. package/dist/esm/{utils-d1569956.js → utils-35c7a90d.js} +5 -37
  116. package/dist/ketchup/assets/svg/instagram.svg +1 -0
  117. package/dist/ketchup/assets/svg/pinterest.svg +1 -0
  118. package/dist/ketchup/assets/svg/reddit.svg +1 -0
  119. package/dist/ketchup/ketchup.esm.js +1 -1
  120. package/dist/ketchup/p-0751aaf6.entry.js +1 -0
  121. package/dist/ketchup/p-10c8d755.js +1 -0
  122. package/dist/ketchup/{p-aa27f9f7.entry.js → p-24df4f29.entry.js} +2 -2
  123. package/dist/ketchup/{p-29800a2e.js → p-2d4f19f4.js} +1 -1
  124. package/dist/ketchup/p-33073f4a.js +1 -0
  125. package/dist/ketchup/p-3445be1e.entry.js +1 -0
  126. package/dist/ketchup/p-3813281b.entry.js +1 -0
  127. package/dist/ketchup/p-4081f5f7.entry.js +1 -0
  128. package/dist/ketchup/p-47b57d97.js +1 -0
  129. package/dist/ketchup/p-5186885c.entry.js +1 -0
  130. package/dist/ketchup/{p-f993f813.js → p-5d190cf5.js} +1 -1
  131. package/dist/ketchup/p-67c64257.entry.js +1 -0
  132. package/dist/ketchup/p-68fc1428.entry.js +1 -0
  133. package/dist/ketchup/p-8be1337b.js +1 -0
  134. package/dist/ketchup/p-8f735633.entry.js +1 -0
  135. package/dist/ketchup/p-96101f09.entry.js +39 -0
  136. package/dist/ketchup/p-9bcda66f.entry.js +1 -0
  137. package/dist/ketchup/p-b5e1dbfa.entry.js +1 -0
  138. package/dist/ketchup/{p-ebf4cf56.js → p-c314b1e6.js} +1 -1
  139. package/dist/ketchup/p-d7af8156.entry.js +1 -0
  140. package/dist/ketchup/p-dbe87a3f.entry.js +143 -0
  141. package/dist/ketchup/p-ee33cbe9.js +9 -0
  142. package/dist/ketchup/p-f250d42b.entry.js +1 -0
  143. package/dist/ketchup/p-f9c41e20.entry.js +1 -0
  144. package/dist/ketchup/p-fea316ab.entry.js +1 -0
  145. package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +2 -1
  146. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +0 -2
  147. package/dist/types/components/kup-data-table/kup-data-table.d.ts +8 -15
  148. package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +1 -1
  149. package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +3 -0
  150. package/dist/types/components/kup-echart/kup-echart.d.ts +12 -1
  151. package/dist/types/components/kup-list/kup-list-declarations.d.ts +3 -7
  152. package/dist/types/components/kup-list/kup-list-helper.d.ts +6 -6
  153. package/dist/types/components/kup-list/kup-list.d.ts +2 -2
  154. package/dist/types/components/kup-photo-frame/kup-photo-frame-declarations.d.ts +9 -0
  155. package/dist/types/components/kup-photo-frame/kup-photo-frame.d.ts +61 -0
  156. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +1 -1
  157. package/dist/types/components/kup-tree/kup-tree.d.ts +1 -1
  158. package/dist/types/components.d.ts +110 -28
  159. package/dist/types/managers/kup-data/kup-data-column-helper.d.ts +9 -1
  160. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +4 -25
  161. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +1 -1
  162. package/dist/types/managers/kup-data/kup-data.d.ts +63 -27
  163. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +11 -0
  164. package/dist/types/managers/kup-manager/kup-manager.d.ts +2 -0
  165. package/dist/types/managers/kup-math/kup-math-declarations.d.ts +21 -0
  166. package/dist/types/managers/kup-math/kup-math-helper.d.ts +17 -0
  167. package/dist/types/managers/kup-math/kup-math.d.ts +60 -0
  168. package/dist/types/managers/kup-objects/kup-objects.d.ts +22 -0
  169. package/dist/types/utils/utils.d.ts +0 -18
  170. package/package.json +2 -2
  171. package/dist/collection/managers/kup-data/kup-data-dataset-helper.js +0 -262
  172. package/dist/collection/managers/kup-data/kup-data-helper.js +0 -61
  173. package/dist/collection/utils/state-utils.js +0 -9
  174. package/dist/ketchup/p-0032a782.entry.js +0 -1
  175. package/dist/ketchup/p-18c4d083.entry.js +0 -1
  176. package/dist/ketchup/p-199c972e.entry.js +0 -1
  177. package/dist/ketchup/p-34aa8d8a.entry.js +0 -1
  178. package/dist/ketchup/p-542279e9.entry.js +0 -1
  179. package/dist/ketchup/p-5b26a7a8.entry.js +0 -39
  180. package/dist/ketchup/p-5c97e7ab.js +0 -1
  181. package/dist/ketchup/p-6817ca85.entry.js +0 -1
  182. package/dist/ketchup/p-76e674ca.entry.js +0 -1
  183. package/dist/ketchup/p-78aa6f1b.js +0 -1
  184. package/dist/ketchup/p-842b66aa.entry.js +0 -1
  185. package/dist/ketchup/p-894981c0.entry.js +0 -143
  186. package/dist/ketchup/p-8ac2fa75.entry.js +0 -1
  187. package/dist/ketchup/p-907c9e11.entry.js +0 -1
  188. package/dist/ketchup/p-9ae9149b.entry.js +0 -1
  189. package/dist/ketchup/p-b0d1bdd8.js +0 -9
  190. package/dist/ketchup/p-e1e4c951.entry.js +0 -1
  191. package/dist/ketchup/p-eba369d9.entry.js +0 -1
  192. package/dist/ketchup/p-ed0b8666.js +0 -1
  193. package/dist/ketchup/p-fa540f82.js +0 -1
  194. package/dist/types/managers/kup-data/kup-data-dataset-helper.d.ts +0 -42
  195. package/dist/types/managers/kup-data/kup-data-helper.d.ts +0 -11
  196. 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
- text: 'Accordion',
23
- value: 'accordion.html',
22
+ value: 'Accordion',
23
+ id: 'accordion.html',
24
24
  },
25
25
  {
26
- text: 'Autocomplete',
27
- value: 'autocomplete.html',
26
+ value: 'Autocomplete',
27
+ id: 'autocomplete.html',
28
28
  },
29
29
  {
30
- text: 'Box',
31
- value: 'box.html',
30
+ value: 'Box',
31
+ id: 'box.html',
32
32
  },
33
33
  {
34
- text: 'Button',
35
- value: 'button.html',
34
+ value: 'Button',
35
+ id: 'button.html',
36
36
  },
37
37
  {
38
- text: 'Button list',
39
- value: 'button-list.html',
38
+ value: 'Button list',
39
+ id: 'button-list.html',
40
40
  },
41
41
  {
42
- text: 'Calendar',
43
- value: 'calendar.html',
42
+ value: 'Calendar',
43
+ id: 'calendar.html',
44
44
  },
45
45
  {
46
- text: 'Card',
47
- value: 'card.html',
46
+ value: 'Card',
47
+ id: 'card.html',
48
48
  },
49
49
  {
50
- text: 'Cell',
51
- value: 'cell.html',
50
+ value: 'Cell',
51
+ id: 'cell.html',
52
52
  },
53
53
  {
54
- text: 'Chart',
55
- value: 'chart.html',
54
+ value: 'Chart',
55
+ id: 'chart.html',
56
56
  },
57
57
  {
58
- text: 'Checkbox',
59
- value: 'checkbox.html',
58
+ value: 'Checkbox',
59
+ id: 'checkbox.html',
60
60
  },
61
61
  {
62
- text: 'Chip',
63
- value: 'chip.html',
62
+ value: 'Chip',
63
+ id: 'chip.html',
64
64
  },
65
65
  {
66
- text: 'Color picker',
67
- value: 'color-picker.html',
66
+ value: 'Color picker',
67
+ id: 'color-picker.html',
68
68
  },
69
69
  {
70
- text: 'Combobox',
71
- value: 'combobox.html',
70
+ value: 'Combobox',
71
+ id: 'combobox.html',
72
72
  },
73
73
  {
74
- text: 'Dash list',
75
- value: 'dash-list.html',
74
+ value: 'Dash list',
75
+ id: 'dash-list.html',
76
76
  },
77
77
  {
78
- text: 'Data table',
79
- value: 'data-table.html',
78
+ value: 'Data table',
79
+ id: 'data-table.html',
80
80
  },
81
81
  {
82
- text: 'Date picker',
83
- value: 'date-picker.html',
82
+ value: 'Date picker',
83
+ id: 'date-picker.html',
84
84
  },
85
85
  {
86
- text: 'Drawer',
87
- value: 'drawer.html',
86
+ value: 'Drawer',
87
+ id: 'drawer.html',
88
88
  },
89
89
  {
90
- text: 'Dropdown button',
91
- value: 'dropdown-button.html',
90
+ value: 'Dropdown button',
91
+ id: 'dropdown-button.html',
92
92
  },
93
93
  {
94
- text: 'Echart',
95
- value: 'echart.html',
94
+ value: 'Echart',
95
+ id: 'echart.html',
96
96
  },
97
97
  {
98
- text: 'Gauge',
99
- value: 'gauge.html',
98
+ value: 'Gauge',
99
+ id: 'gauge.html',
100
100
  },
101
101
  {
102
- text: 'Image',
103
- value: 'image.html',
102
+ value: 'Image',
103
+ id: 'image.html',
104
104
  },
105
105
  {
106
- text: 'KupData',
107
- value: 'kupdata.html',
106
+ value: 'KupData',
107
+ id: 'kupdata.html',
108
108
  },
109
109
  {
110
- text: 'Layout',
111
- value: 'layout.html',
110
+ value: 'Layout',
111
+ id: 'layout.html',
112
112
  },
113
113
  {
114
- text: 'List',
115
- value: 'list.html',
114
+ value: 'List',
115
+ id: 'list.html',
116
116
  },
117
117
  {
118
- text: 'Magic box',
119
- value: 'magic-box.html',
118
+ value: 'Magic box',
119
+ id: 'magic-box.html',
120
120
  },
121
121
  {
122
- text: 'Nav bar',
123
- value: 'nav-bar.html',
122
+ value: 'Nav bar',
123
+ id: 'nav-bar.html',
124
124
  },
125
125
  {
126
- text: 'Radio',
127
- value: 'radio.html',
126
+ value: 'Radio',
127
+ id: 'radio.html',
128
128
  },
129
129
  {
130
- text: 'Rating',
131
- value: 'rating.html',
130
+ value: 'Rating',
131
+ id: 'rating.html',
132
132
  },
133
133
  {
134
- text: 'Snackbar',
135
- value: 'snackbar.html',
134
+ value: 'Snackbar',
135
+ id: 'snackbar.html',
136
136
  },
137
137
  {
138
- text: 'Switch',
139
- value: 'switch.html',
138
+ value: 'Switch',
139
+ id: 'switch.html',
140
140
  },
141
141
  {
142
- text: 'Tab bar',
143
- value: 'tab-bar.html',
142
+ value: 'Tab bar',
143
+ id: 'tab-bar.html',
144
144
  },
145
145
  {
146
- text: 'Time picker',
147
- value: 'time-picker.html',
146
+ value: 'Time picker',
147
+ id: 'time-picker.html',
148
148
  },
149
149
  {
150
- text: 'Text field',
151
- value: 'text-field.html',
150
+ value: 'Text field',
151
+ id: 'text-field.html',
152
152
  },
153
153
  {
154
- text: 'Tooltip',
155
- value: 'tooltip.html',
154
+ value: 'Tooltip',
155
+ id: 'tooltip.html',
156
156
  },
157
157
  {
158
- text: 'Tree',
159
- value: 'tree.html',
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
- text: 'Box',
167
- value: 'box-performance.html',
166
+ value: 'Box',
167
+ id: 'box-performance.html',
168
168
  },
169
169
  {
170
- text: 'Card',
171
- value: 'card-performance.html',
170
+ value: 'Card',
171
+ id: 'card-performance.html',
172
172
  },
173
173
  {
174
- text: 'Data table',
175
- value: 'data-table-performance.html',
174
+ value: 'Data table',
175
+ id: 'data-table-performance.html',
176
176
  },
177
177
  {
178
- text: 'Tree',
179
- value: 'tree-performance.html',
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.value);
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.datasetOperations.new(
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.datasetOperations.cell.replace(
837
- newDataset,
838
- { value: 'From 20 to 39' },
839
- ['2039']
840
- );
841
- kupManager.data.datasetOperations.cell.replace(
842
- newDataset,
843
- { value: 'From 40 to 59' },
844
- ['4059']
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.datasetOperations.cell.replace(
853
- newDataset,
854
- { value: 'From A to C' },
855
- ['AC']
856
- );
857
- kupManager.data.datasetOperations.cell.replace(
858
- newDataset,
859
- { value: 'From D to P' },
860
- ['DP']
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.datasetOperations.cell.replace(
856
+ kupManager.data.cell.replace(
869
857
  newDataset,
870
858
  { value: 'From 1700 to 1900' },
871
859
  ['17001900']
872
860
  );
873
- kupManager.data.datasetOperations.cell.replace(
861
+ kupManager.data.cell.replace(
874
862
  newDataset,
875
863
  { value: 'From 1901 to 1950' },
876
864
  ['19011950']
877
865
  );
878
- kupManager.data.datasetOperations.cell.replace(
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.datasetOperations.column.new(newDataset, 'merge', {
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.datasetOperations.column.new(newDataset, 'merge', {
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.datasetOperations.column.new(newDataset, 'merge', {
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.datasetOperations.distinct({
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.datasetOperations.rangedDistinct(
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.datasetOperations.rangedDistinct(
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.datasetOperations.rangedDistinct(
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
- text: 'First item',
7
+ value: 'First item',
8
8
  secondaryText: 'I am a description',
9
- value: '1',
9
+ id: '1',
10
10
  icon: 'filter_1',
11
11
  selected: false,
12
12
  },
13
13
  {
14
- text: 'Second item',
14
+ value: 'Second item',
15
15
  secondaryText: 'I am a description',
16
- value: '2',
16
+ id: '2',
17
17
  icon: 'filter_2',
18
18
  selected: false,
19
19
  },
20
20
  {
21
- text: 'Third item',
21
+ value: 'Third item',
22
22
  secondaryText: 'I am a description',
23
- value: '3',
23
+ id: '3',
24
24
  icon: 'filter_3',
25
25
  selected: false,
26
26
  },
@@ -12,12 +12,12 @@ dropdownEl.data = {
12
12
  'kup-list': {
13
13
  data: [
14
14
  {
15
- text: 'Short',
16
- value: 'short',
15
+ value: 'Short',
16
+ id: 'short',
17
17
  },
18
18
  {
19
- text: 'Standard',
20
- value: 'standard',
19
+ value: 'Standard',
20
+ id: 'standard',
21
21
  },
22
22
  ],
23
23
  },
@@ -35,40 +35,40 @@ combobox.data = {
35
35
  'kup-list': {
36
36
  data: [
37
37
  {
38
- text: 'No features',
39
- value: 'empty',
38
+ value: 'No features',
39
+ id: 'empty',
40
40
  },
41
41
  {
42
- text: 'KupDebug',
43
- value: 'debug',
42
+ value: 'KupDebug',
43
+ id: 'debug',
44
44
  },
45
45
  {
46
- text: 'KupLanguage',
47
- value: 'language',
46
+ value: 'KupLanguage',
47
+ id: 'language',
48
48
  },
49
49
  {
50
- text: 'KupTheme',
51
- value: 'theme',
50
+ value: 'KupTheme',
51
+ id: 'theme',
52
52
  },
53
53
  {
54
- text: 'Long cycle (props)',
55
- value: 'cycleprops',
54
+ value: 'Long cycle (props)',
55
+ id: 'cycleprops',
56
56
  },
57
57
  {
58
- text: 'Long cycle (variables)',
59
- value: 'cyclevars',
58
+ value: 'Long cycle (variables)',
59
+ id: 'cyclevars',
60
60
  },
61
61
  {
62
- text: 'Long cycle (KupObjects)',
63
- value: 'cycleobjects',
62
+ value: 'Long cycle (KupObjects)',
63
+ id: 'cycleobjects',
64
64
  },
65
65
  {
66
- text: 'Long cycle (object function)',
67
- value: 'cycleobjectsfunction',
66
+ value: 'Long cycle (object function)',
67
+ id: 'cycleobjectsfunction',
68
68
  },
69
69
  {
70
- text: 'All features',
71
- value: 'full',
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.0",
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.value);
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, valueIn) {
307
+ consistencyCheck(e, idIn) {
308
308
  if (!this.doConsistencyCheck) {
309
309
  return;
310
310
  }
311
311
  this.doConsistencyCheck = false;
312
- const ret = consistencyCheck(valueIn, this.data['kup-list'], this.listEl, this.selectMode, this.displayMode, e);
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 = valueIn;
321
+ this.displayedValue = idIn;
322
322
  if (this.listEl != null && !this.serverHandledFilter) {
323
- this.listEl.filter = valueIn;
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 { deepEqual, getProps, identify, setProps } from '../../utils/utils';
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
- text: column.title,
1211
- value: column.name,
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 = [{ text: '', value: '' }, ...visibleColumnsItems];
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.datasetOperations.row.toNode(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
- let ris = [];
219
+ const ris = [];
220
220
  for (let i = 0; i < children.length; i++) {
221
- let tn = children[i];
222
- ris.push({ text: tn.value, icon: tn.icon, value: i.toString() });
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
  }
@@ -83,7 +83,7 @@ function prepTimeArea(component) {
83
83
  function onKupClockItemClick(e, component, value) {
84
84
  if (e != null) {
85
85
  if (value == null) {
86
- value = e.detail.selected.value;
86
+ value = e.detail.selected.id;
87
87
  }
88
88
  }
89
89
  setClockValueSelected(component, value);