@sme.up/ketchup 5.0.0 → 5.2.1-SNAPSHOT

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 (224) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/{cell-utils-720be0c8.js → cell-utils-d96b2993.js} +4 -4
  3. package/dist/cjs/{f-button-dbf3cd3a.js → f-button-2b9b99b1.js} +2 -2
  4. package/dist/cjs/{f-cell-93d984ad.js → f-cell-8351cb84.js} +8 -96
  5. package/dist/cjs/{f-chip-438213eb.js → f-chip-df59e1b0.js} +3 -3
  6. package/dist/cjs/{f-image-21865ab7.js → f-image-12bab3b5.js} +2 -2
  7. package/dist/cjs/f-text-field-e7c35b5b.js +94 -0
  8. package/dist/cjs/f-text-field-mdc-a67f5dfe.js +2852 -0
  9. package/dist/cjs/{index-ab119fad.js → index-eb556444.js} +6 -1
  10. package/dist/cjs/ketchup.cjs.js +3 -3
  11. package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
  12. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +641 -3331
  13. package/dist/cjs/kup-calendar.cjs.entry.js +8 -8
  14. package/dist/cjs/kup-cell.cjs.entry.js +9 -8
  15. package/dist/cjs/kup-dash-list.cjs.entry.js +5 -5
  16. package/dist/cjs/kup-dash_2.cjs.entry.js +5 -5
  17. package/dist/cjs/kup-drawer.cjs.entry.js +8 -5
  18. package/dist/cjs/kup-echart.cjs.entry.js +210 -60
  19. package/dist/cjs/kup-field.cjs.entry.js +3 -3
  20. package/dist/cjs/kup-iframe.cjs.entry.js +4 -4
  21. package/dist/cjs/kup-lazy.cjs.entry.js +4 -4
  22. package/dist/cjs/kup-magic-box.cjs.entry.js +7 -7
  23. package/dist/cjs/{kup-manager-09c0c1fc.js → kup-manager-5c03da64.js} +3061 -2642
  24. package/dist/cjs/kup-nav-bar.cjs.entry.js +6 -6
  25. package/dist/cjs/kup-numeric-picker.cjs.entry.js +423 -0
  26. package/dist/cjs/kup-photo-frame.cjs.entry.js +179 -0
  27. package/dist/cjs/kup-probe.cjs.entry.js +3 -3
  28. package/dist/cjs/kup-qlik.cjs.entry.js +3 -3
  29. package/dist/cjs/kup-snackbar.cjs.entry.js +6 -6
  30. package/dist/cjs/loader.cjs.js +3 -3
  31. package/dist/cjs/{utils-a60ab5fa.js → utils-e99921c1.js} +4 -38
  32. package/dist/collection/assets/card.js +30 -30
  33. package/dist/collection/assets/data-table.js +24 -74
  34. package/dist/collection/assets/echart.js +481 -0
  35. package/dist/collection/assets/index.js +87 -79
  36. package/dist/collection/assets/kupdata.js +29 -41
  37. package/dist/collection/assets/kuptooltip.js +608 -0
  38. package/dist/collection/assets/list.js +6 -6
  39. package/dist/collection/assets/nav-bar.js +4 -4
  40. package/dist/collection/assets/probe.js +18 -18
  41. package/dist/collection/collection-manifest.json +3 -1
  42. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +4 -4
  43. package/dist/collection/components/kup-box/kup-box.js +9 -9
  44. package/dist/collection/components/kup-button-list/kup-button-list.js +4 -4
  45. package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +10 -0
  46. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +20 -20
  47. package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +153 -0
  48. package/dist/collection/components/kup-card/kup-card.css +35 -0
  49. package/dist/collection/components/kup-card/kup-card.js +1 -0
  50. package/dist/collection/components/kup-chip/kup-chip.js +4 -4
  51. package/dist/collection/components/kup-combobox/kup-combobox.js +5 -5
  52. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +0 -2
  53. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +31 -32
  54. package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
  55. package/dist/collection/components/kup-data-table/kup-data-table.js +112 -159
  56. package/dist/collection/components/kup-date-picker/kup-date-picker.js +1 -1
  57. package/dist/collection/components/kup-drawer/kup-drawer.js +4 -1
  58. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +3 -3
  59. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +14 -14
  60. package/dist/collection/components/kup-echart/kup-echart-declarations.js +3 -0
  61. package/dist/collection/components/kup-echart/kup-echart.js +246 -58
  62. package/dist/collection/components/kup-image/assets/svg/instagram.svg +1 -0
  63. package/dist/collection/components/kup-image/assets/svg/pinterest.svg +1 -0
  64. package/dist/collection/components/kup-image/assets/svg/reddit.svg +1 -0
  65. package/dist/collection/components/kup-list/kup-list-helper.js +26 -26
  66. package/dist/collection/components/kup-list/kup-list.css +35 -3
  67. package/dist/collection/components/kup-list/kup-list.js +52 -44
  68. package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
  69. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +2 -2
  70. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker-declarations.js +16 -0
  71. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.css +50 -0
  72. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +895 -0
  73. package/dist/collection/components/kup-photo-frame/kup-photo-frame-declarations.js +10 -0
  74. package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +70 -0
  75. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +382 -0
  76. package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +1 -1
  77. package/dist/collection/components/kup-time-picker/kup-time-picker.js +8 -8
  78. package/dist/collection/components/kup-tree/kup-tree.js +25 -38
  79. package/dist/collection/f-components/f-paginator/f-paginator.js +6 -6
  80. package/dist/collection/managers/kup-data/kup-data-cell-helper.js +2 -2
  81. package/dist/collection/managers/kup-data/kup-data-column-helper.js +27 -3
  82. package/dist/collection/managers/kup-data/kup-data-declarations.js +2 -1
  83. package/dist/collection/managers/kup-data/kup-data-node-helper.js +1 -1
  84. package/dist/collection/managers/kup-data/kup-data-row-helper.js +2 -2
  85. package/dist/collection/managers/kup-data/kup-data.js +337 -155
  86. package/dist/collection/managers/kup-dates/kup-dates.js +2 -2
  87. package/dist/collection/managers/kup-debug/kup-debug.js +7 -6
  88. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +1 -1
  89. package/dist/collection/managers/kup-language/kup-language.js +2 -2
  90. package/dist/collection/managers/kup-manager/kup-manager.js +25 -1
  91. package/dist/collection/managers/kup-math/kup-math-declarations.js +13 -0
  92. package/dist/collection/managers/kup-math/kup-math-helper.js +39 -0
  93. package/dist/collection/managers/kup-math/kup-math.js +161 -0
  94. package/dist/collection/managers/kup-objects/kup-objects.js +48 -1
  95. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +1 -0
  96. package/dist/collection/managers/kup-theme/kup-theme.js +2 -2
  97. package/dist/collection/managers/kup-tooltip/kup-tooltip-declarations.js +1 -0
  98. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +191 -0
  99. package/dist/collection/types/GenericTypes.js +1 -0
  100. package/dist/collection/utils/cell-utils.js +2 -3
  101. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +1 -1
  102. package/dist/collection/utils/utils.js +3 -74
  103. package/dist/esm/{cell-utils-b80ccb8c.js → cell-utils-f4bdbbc8.js} +4 -4
  104. package/dist/esm/{f-button-9e835467.js → f-button-54a49fd8.js} +2 -2
  105. package/dist/esm/{f-cell-f8bb2e04.js → f-cell-d5dac50b.js} +8 -95
  106. package/dist/esm/{f-chip-953c6915.js → f-chip-a3035b4b.js} +3 -3
  107. package/dist/esm/{f-image-78c5265e.js → f-image-d32465e3.js} +2 -2
  108. package/dist/esm/f-text-field-c25cc63f.js +92 -0
  109. package/dist/esm/f-text-field-mdc-9fbbefc3.js +2850 -0
  110. package/dist/esm/{index-78f3699d.js → index-baeab1ac.js} +6 -2
  111. package/dist/esm/ketchup.js +3 -3
  112. package/dist/esm/kup-accordion.entry.js +5 -5
  113. package/dist/esm/kup-autocomplete_27.entry.js +625 -3315
  114. package/dist/esm/kup-calendar.entry.js +8 -8
  115. package/dist/esm/kup-cell.entry.js +9 -8
  116. package/dist/esm/kup-dash-list.entry.js +5 -5
  117. package/dist/esm/kup-dash_2.entry.js +5 -5
  118. package/dist/esm/kup-drawer.entry.js +8 -5
  119. package/dist/esm/kup-echart.entry.js +210 -60
  120. package/dist/esm/kup-field.entry.js +3 -3
  121. package/dist/esm/kup-iframe.entry.js +4 -4
  122. package/dist/esm/kup-lazy.entry.js +4 -4
  123. package/dist/esm/kup-magic-box.entry.js +7 -7
  124. package/dist/esm/{kup-manager-bba62291.js → kup-manager-9316a184.js} +3062 -2642
  125. package/dist/esm/kup-nav-bar.entry.js +6 -6
  126. package/dist/esm/kup-numeric-picker.entry.js +419 -0
  127. package/dist/esm/kup-photo-frame.entry.js +175 -0
  128. package/dist/esm/kup-probe.entry.js +3 -3
  129. package/dist/esm/kup-qlik.entry.js +3 -3
  130. package/dist/esm/kup-snackbar.entry.js +6 -6
  131. package/dist/esm/loader.js +3 -3
  132. package/dist/esm/{utils-d1569956.js → utils-f24319a0.js} +5 -37
  133. package/dist/ketchup/assets/svg/instagram.svg +1 -0
  134. package/dist/ketchup/assets/svg/pinterest.svg +1 -0
  135. package/dist/ketchup/assets/svg/reddit.svg +1 -0
  136. package/dist/ketchup/ketchup.esm.js +1 -1
  137. package/dist/ketchup/p-09d708c4.entry.js +1 -0
  138. package/dist/ketchup/p-11e72a8c.entry.js +1 -0
  139. package/dist/ketchup/p-12773ca8.js +9 -0
  140. package/dist/ketchup/p-203d6295.entry.js +1 -0
  141. package/dist/ketchup/p-34748c91.js +1 -0
  142. package/dist/ketchup/p-34b74425.js +1 -0
  143. package/dist/ketchup/p-40f97429.js +1 -0
  144. package/dist/ketchup/p-4173422f.entry.js +1 -0
  145. package/dist/ketchup/p-41741c28.entry.js +1 -0
  146. package/dist/ketchup/p-44192f30.entry.js +1 -0
  147. package/dist/ketchup/{p-ebf4cf56.js → p-44f8da2a.js} +1 -1
  148. package/dist/ketchup/{p-fa540f82.js → p-4f56932b.js} +1 -1
  149. package/dist/ketchup/p-669bde31.js +1 -0
  150. package/dist/ketchup/p-67842f1e.entry.js +1 -0
  151. package/dist/ketchup/{p-f993f813.js → p-7a74ad17.js} +1 -1
  152. package/dist/ketchup/p-7ba8fa4a.entry.js +39 -0
  153. package/dist/ketchup/p-7de0d7e1.js +1 -0
  154. package/dist/ketchup/p-8418e8fa.entry.js +1 -0
  155. package/dist/ketchup/p-96bf19aa.entry.js +1 -0
  156. package/dist/ketchup/p-9a61d8dc.entry.js +1 -0
  157. package/dist/ketchup/p-b0ddcce9.entry.js +9 -0
  158. package/dist/ketchup/{p-aa27f9f7.entry.js → p-b6c21223.entry.js} +2 -2
  159. package/dist/ketchup/p-bb8844bf.entry.js +1 -0
  160. package/dist/ketchup/p-c58a2a81.entry.js +1 -0
  161. package/dist/ketchup/p-ca3d585b.entry.js +1 -0
  162. package/dist/ketchup/p-e6709c26.entry.js +1 -0
  163. package/dist/ketchup/p-e8e3c9da.entry.js +1 -0
  164. package/dist/ketchup/p-ecb7069b.js +135 -0
  165. package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +2 -1
  166. package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +7 -0
  167. package/dist/types/components/kup-card/built-in/kup-card-numeric.d.ts +2 -0
  168. package/dist/types/components/kup-card/kup-card-declarations.d.ts +26 -1
  169. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +2 -2
  170. package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
  171. package/dist/types/components/kup-data-table/kup-data-table.d.ts +7 -15
  172. package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +1 -1
  173. package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +3 -0
  174. package/dist/types/components/kup-echart/kup-echart.d.ts +12 -1
  175. package/dist/types/components/kup-list/kup-list-declarations.d.ts +3 -7
  176. package/dist/types/components/kup-list/kup-list-helper.d.ts +6 -6
  177. package/dist/types/components/kup-list/kup-list.d.ts +2 -2
  178. package/dist/types/components/kup-numeric-picker/kup-numeric-picker-declarations.d.ts +19 -0
  179. package/dist/types/components/kup-numeric-picker/kup-numeric-picker.d.ts +121 -0
  180. package/dist/types/components/kup-photo-frame/kup-photo-frame-declarations.d.ts +9 -0
  181. package/dist/types/components/kup-photo-frame/kup-photo-frame.d.ts +61 -0
  182. package/dist/types/components.d.ts +249 -28
  183. package/dist/types/managers/kup-data/kup-data-column-helper.d.ts +9 -1
  184. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +4 -25
  185. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +1 -1
  186. package/dist/types/managers/kup-data/kup-data.d.ts +63 -27
  187. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +21 -0
  188. package/dist/types/managers/kup-manager/kup-manager.d.ts +4 -0
  189. package/dist/types/managers/kup-math/kup-math-declarations.d.ts +27 -0
  190. package/dist/types/managers/kup-math/kup-math-helper.d.ts +17 -0
  191. package/dist/types/managers/kup-math/kup-math.d.ts +61 -0
  192. package/dist/types/managers/kup-objects/kup-objects.d.ts +22 -0
  193. package/dist/types/managers/kup-tooltip/kup-tooltip-declarations.d.ts +8 -0
  194. package/dist/types/managers/kup-tooltip/kup-tooltip.d.ts +40 -0
  195. package/dist/types/types/GenericTypes.d.ts +1 -0
  196. package/dist/types/utils/utils.d.ts +0 -18
  197. package/package.json +3 -3
  198. package/CHANGELOG.md +0 -5
  199. package/dist/collection/managers/kup-data/kup-data-dataset-helper.js +0 -262
  200. package/dist/collection/managers/kup-data/kup-data-helper.js +0 -61
  201. package/dist/collection/utils/state-utils.js +0 -9
  202. package/dist/ketchup/p-0032a782.entry.js +0 -1
  203. package/dist/ketchup/p-18c4d083.entry.js +0 -1
  204. package/dist/ketchup/p-199c972e.entry.js +0 -1
  205. package/dist/ketchup/p-29800a2e.js +0 -1
  206. package/dist/ketchup/p-34aa8d8a.entry.js +0 -1
  207. package/dist/ketchup/p-542279e9.entry.js +0 -1
  208. package/dist/ketchup/p-5b26a7a8.entry.js +0 -39
  209. package/dist/ketchup/p-5c97e7ab.js +0 -1
  210. package/dist/ketchup/p-6817ca85.entry.js +0 -1
  211. package/dist/ketchup/p-76e674ca.entry.js +0 -1
  212. package/dist/ketchup/p-78aa6f1b.js +0 -1
  213. package/dist/ketchup/p-842b66aa.entry.js +0 -1
  214. package/dist/ketchup/p-894981c0.entry.js +0 -143
  215. package/dist/ketchup/p-8ac2fa75.entry.js +0 -1
  216. package/dist/ketchup/p-907c9e11.entry.js +0 -1
  217. package/dist/ketchup/p-9ae9149b.entry.js +0 -1
  218. package/dist/ketchup/p-b0d1bdd8.js +0 -9
  219. package/dist/ketchup/p-e1e4c951.entry.js +0 -1
  220. package/dist/ketchup/p-eba369d9.entry.js +0 -1
  221. package/dist/ketchup/p-ed0b8666.js +0 -1
  222. package/dist/types/managers/kup-data/kup-data-dataset-helper.d.ts +0 -42
  223. package/dist/types/managers/kup-data/kup-data-helper.d.ts +0 -11
  224. package/dist/types/utils/state-utils.d.ts +0 -1
@@ -19,164 +19,172 @@ 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: 'KupTooltip',
111
+ id: 'kuptooltip.html',
112
112
  },
113
113
  {
114
- text: 'List',
115
- value: 'list.html',
114
+ value: 'Layout',
115
+ id: 'layout.html',
116
116
  },
117
117
  {
118
- text: 'Magic box',
119
- value: 'magic-box.html',
118
+ value: 'List',
119
+ id: 'list.html',
120
120
  },
121
121
  {
122
- text: 'Nav bar',
123
- value: 'nav-bar.html',
122
+ value: 'Magic box',
123
+ id: 'magic-box.html',
124
124
  },
125
125
  {
126
- text: 'Radio',
127
- value: 'radio.html',
126
+ value: 'Nav bar',
127
+ id: 'nav-bar.html',
128
128
  },
129
129
  {
130
- text: 'Rating',
131
- value: 'rating.html',
130
+ value: 'Numeric picker',
131
+ id: 'numeric-picker.html',
132
132
  },
133
133
  {
134
- text: 'Snackbar',
135
- value: 'snackbar.html',
134
+ value: 'Radio',
135
+ id: 'radio.html',
136
136
  },
137
137
  {
138
- text: 'Switch',
139
- value: 'switch.html',
138
+ value: 'Rating',
139
+ id: 'rating.html',
140
140
  },
141
141
  {
142
- text: 'Tab bar',
143
- value: 'tab-bar.html',
142
+ value: 'Snackbar',
143
+ id: 'snackbar.html',
144
144
  },
145
145
  {
146
- text: 'Time picker',
147
- value: 'time-picker.html',
146
+ value: 'Switch',
147
+ id: 'switch.html',
148
148
  },
149
149
  {
150
- text: 'Text field',
151
- value: 'text-field.html',
150
+ value: 'Tab bar',
151
+ id: 'tab-bar.html',
152
152
  },
153
153
  {
154
- text: 'Tooltip',
155
- value: 'tooltip.html',
154
+ value: 'Time picker',
155
+ id: 'time-picker.html',
156
156
  },
157
157
  {
158
- text: 'Tree',
159
- value: 'tree.html',
158
+ value: 'Text field',
159
+ id: 'text-field.html',
160
+ },
161
+ {
162
+ value: 'Tooltip',
163
+ id: 'tooltip.html',
164
+ },
165
+ {
166
+ value: 'Tree',
167
+ id: 'tree.html',
160
168
  },
161
169
  ];
162
170
  // Setting up performance pages
163
171
  const performances = document.querySelector('#performances');
164
172
  performances.data = [
165
173
  {
166
- text: 'Box',
167
- value: 'box-performance.html',
174
+ value: 'Box',
175
+ id: 'box-performance.html',
168
176
  },
169
177
  {
170
- text: 'Card',
171
- value: 'card-performance.html',
178
+ value: 'Card',
179
+ id: 'card-performance.html',
172
180
  },
173
181
  {
174
- text: 'Data table',
175
- value: 'data-table-performance.html',
182
+ value: 'Data table',
183
+ id: 'data-table-performance.html',
176
184
  },
177
185
  {
178
- text: 'Tree',
179
- value: 'tree-performance.html',
186
+ value: 'Tree',
187
+ id: 'tree-performance.html',
180
188
  },
181
189
  ];
182
190
  // Setting up events
@@ -214,7 +222,7 @@ document.addEventListener('kup-button-click', (e) => {
214
222
  }
215
223
  });
216
224
  document.addEventListener('kup-list-click', (e) => {
217
- gotoPage(e, e.detail.selected.value);
225
+ gotoPage(e, e.detail.selected.id);
218
226
  });
219
227
 
220
228
  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,