@sme.up/ketchup 4.3.0-SNAPSHOT → 5.1.0-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 (343) hide show
  1. package/README.md +107 -3
  2. package/dist/cjs/{cell-utils-dc0884a3.js → cell-utils-9b1d6563.js} +4 -4
  3. package/dist/cjs/{component-8fbc31a2.js → component-d1496215.js} +203 -174
  4. package/dist/cjs/{f-button-2ba74fb5.js → f-button-02a7cde4.js} +2 -2
  5. package/dist/cjs/{f-cell-fe60a08d.js → f-cell-4d1450a8.js} +38 -28
  6. package/dist/cjs/f-chip-a50b9f00.js +130 -0
  7. package/dist/cjs/{f-image-d3bd4e08.js → f-image-db55ac49.js} +3 -3
  8. package/dist/cjs/{index-0416afab.js → index-ab119fad.js} +23 -0
  9. package/dist/cjs/ketchup.cjs.js +3 -3
  10. package/dist/cjs/kup-accordion.cjs.entry.js +7 -7
  11. package/dist/cjs/{kup-autocomplete_28.cjs.entry.js → kup-autocomplete_27.cjs.entry.js} +4636 -4073
  12. package/dist/cjs/kup-calendar.cjs.entry.js +626 -359
  13. package/dist/cjs/kup-cell.cjs.entry.js +15 -13
  14. package/dist/cjs/kup-dash-list.cjs.entry.js +4 -4
  15. package/dist/cjs/kup-dash_2.cjs.entry.js +8 -7
  16. package/dist/cjs/kup-drawer.cjs.entry.js +3 -3
  17. package/dist/cjs/kup-echart.cjs.entry.js +93039 -0
  18. package/dist/cjs/kup-field.cjs.entry.js +2 -2
  19. package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
  20. package/dist/cjs/kup-lazy.cjs.entry.js +22 -5
  21. package/dist/cjs/kup-magic-box.cjs.entry.js +95 -42
  22. package/dist/cjs/{kup-manager-1a2688ca.js → kup-manager-5877b2ee.js} +3392 -753
  23. package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
  24. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  25. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  26. package/dist/cjs/kup-snackbar.cjs.entry.js +5 -5
  27. package/dist/cjs/loader.cjs.js +3 -3
  28. package/dist/cjs/{tslib.es6-4360c099.js → tslib.es6-0ee02c67.js} +13 -0
  29. package/dist/cjs/utils-1b5c8c70.js +482 -0
  30. package/dist/collection/assets/calendar.js +46 -1
  31. package/dist/collection/assets/card.js +15 -15
  32. package/dist/collection/assets/data-table.js +18 -6
  33. package/dist/collection/assets/index.js +8 -0
  34. package/dist/collection/assets/kupdata.js +937 -0
  35. package/dist/collection/collection-manifest.json +4 -4
  36. package/dist/collection/components/kup-accordion/kup-accordion.css +0 -1
  37. package/dist/collection/components/kup-accordion/kup-accordion.js +2 -2
  38. package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +2 -0
  39. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +148 -52
  40. package/dist/collection/components/kup-badge/kup-badge.js +2 -2
  41. package/dist/collection/components/kup-box/kup-box.js +31 -17
  42. package/dist/collection/components/kup-button/kup-button.js +2 -2
  43. package/dist/collection/components/kup-button-list/kup-button-list.js +26 -8
  44. package/dist/collection/components/kup-calendar/kup-calendar-declarations.js +14 -8
  45. package/dist/collection/components/kup-calendar/kup-calendar.css +2 -2
  46. package/dist/collection/components/kup-calendar/kup-calendar.js +185 -315
  47. package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +38 -0
  48. package/dist/collection/components/kup-card/{builtin → built-in}/kup-card-calendar.js +1 -1
  49. package/dist/collection/components/kup-card/{builtin → built-in}/kup-card-clock.js +32 -32
  50. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +167 -0
  51. package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +1 -1
  52. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +2 -2
  53. package/dist/collection/components/kup-card/free/kup-card-free.js +11 -2
  54. package/dist/collection/components/kup-card/kup-card-declarations.js +14 -14
  55. package/dist/collection/components/kup-card/kup-card-helper.js +3 -3
  56. package/dist/collection/components/kup-card/kup-card.css +423 -137
  57. package/dist/collection/components/kup-card/kup-card.js +62 -11
  58. package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +1 -1
  59. package/dist/collection/components/kup-card/standard/kup-card-standard.js +18 -5
  60. package/dist/collection/components/kup-cell/kup-cell.js +15 -13
  61. package/dist/collection/components/kup-chart/kup-chart-builder.js +3 -4
  62. package/dist/collection/components/kup-chart/kup-chart.js +7 -7
  63. package/dist/collection/components/kup-checkbox/kup-checkbox.js +1 -1
  64. package/dist/collection/components/kup-chip/kup-chip.css +1 -0
  65. package/dist/collection/components/kup-chip/kup-chip.js +51 -92
  66. package/dist/collection/components/kup-color-picker/kup-color-picker.css +1 -265
  67. package/dist/collection/components/kup-color-picker/kup-color-picker.js +93 -48
  68. package/dist/collection/components/kup-combobox/kup-combobox.js +148 -115
  69. package/dist/collection/components/kup-dash/kup-dash.js +1 -1
  70. package/dist/collection/components/kup-dash-list/kup-dash-list.js +5 -5
  71. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +3 -1
  72. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +28 -56
  73. package/dist/collection/components/kup-data-table/kup-data-table.css +4 -0
  74. package/dist/collection/components/kup-data-table/kup-data-table.js +345 -158
  75. package/dist/collection/components/kup-date-picker/kup-date-picker.js +8 -5
  76. package/dist/collection/components/kup-drawer/kup-drawer.js +1 -1
  77. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +2 -2
  78. package/dist/collection/components/kup-echart/assets/maps/africa.json +6116 -0
  79. package/dist/collection/components/kup-echart/assets/maps/america.json +5416 -0
  80. package/dist/collection/components/kup-echart/assets/maps/asia.json +6053 -0
  81. package/dist/collection/components/kup-echart/assets/maps/europe.json +5051 -0
  82. package/dist/collection/components/kup-echart/assets/maps/italy.json +3562 -0
  83. package/dist/collection/components/kup-echart/assets/maps/oceania.json +1069 -0
  84. package/dist/collection/components/kup-echart/assets/maps/world.json +23685 -0
  85. package/dist/collection/components/kup-echart/kup-echart-declarations.js +45 -0
  86. package/dist/collection/components/kup-echart/kup-echart.css +13 -0
  87. package/dist/collection/components/kup-echart/kup-echart.js +1165 -0
  88. package/dist/collection/components/kup-field/kup-field.js +2 -2
  89. package/dist/collection/components/kup-gauge/kup-gauge.js +3 -3
  90. package/dist/collection/components/kup-grid/kup-grid.css +2 -2
  91. package/dist/collection/components/kup-grid/kup-grid.js +6 -5
  92. package/dist/collection/components/kup-iframe/kup-iframe.js +2 -2
  93. package/dist/collection/components/kup-image/assets/svg/science.svg +1 -0
  94. package/dist/collection/components/kup-image/kup-image.js +3 -3
  95. package/dist/collection/components/kup-lazy/kup-lazy.css +21 -11
  96. package/dist/collection/components/kup-lazy/kup-lazy.js +62 -3
  97. package/dist/collection/components/kup-list/kup-list-helper.js +7 -1
  98. package/dist/collection/components/kup-list/kup-list.css +3 -0
  99. package/dist/collection/components/kup-list/kup-list.js +219 -288
  100. package/dist/collection/components/kup-magic-box/kup-magic-box-declarations.js +11 -7
  101. package/dist/collection/components/kup-magic-box/kup-magic-box.js +90 -41
  102. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
  103. package/dist/collection/components/kup-probe/kup-probe.js +1 -1
  104. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
  105. package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
  106. package/dist/collection/components/kup-radio/kup-radio.js +1 -1
  107. package/dist/collection/components/kup-rating/kup-rating.js +1 -1
  108. package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
  109. package/dist/collection/components/kup-spinner/kup-spinner.js +1 -1
  110. package/dist/collection/components/kup-state/mock-store.js +1 -1
  111. package/dist/collection/components/kup-switch/kup-switch.js +1 -1
  112. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +3 -3
  113. package/dist/collection/components/kup-text-field/kup-text-field.css +2 -0
  114. package/dist/collection/components/kup-text-field/kup-text-field.js +2 -2
  115. package/dist/collection/components/kup-time-picker/kup-time-picker.js +8 -5
  116. package/dist/collection/components/kup-tooltip/kup-tooltip.js +3 -3
  117. package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -5
  118. package/dist/collection/components/kup-tree/kup-tree-faker.js +2 -3
  119. package/dist/collection/components/kup-tree/kup-tree.css +2 -0
  120. package/dist/collection/components/kup-tree/kup-tree.js +145 -70
  121. package/dist/collection/f-components/f-cell/f-cell-declarations.js +3 -1
  122. package/dist/collection/f-components/f-cell/f-cell.js +29 -19
  123. package/dist/collection/f-components/f-chip/f-chip.js +76 -87
  124. package/dist/collection/f-components/f-image/f-image.js +2 -2
  125. package/dist/collection/f-components/f-paginator/f-paginator-declarations.js +5 -0
  126. package/dist/collection/f-components/f-paginator/f-paginator-utils.js +28 -0
  127. package/dist/collection/f-components/f-paginator/f-paginator.js +91 -0
  128. package/dist/collection/f-components/f-text-field/f-text-field.js +4 -4
  129. package/dist/collection/managers/kup-data/kup-data-cell-helper.js +52 -0
  130. package/dist/collection/managers/kup-data/kup-data-column-helper.js +272 -0
  131. package/dist/collection/managers/kup-data/kup-data-declarations.js +9 -0
  132. package/dist/collection/managers/kup-data/kup-data-node-helper.js +72 -0
  133. package/dist/collection/managers/kup-data/kup-data-row-helper.js +28 -0
  134. package/dist/collection/managers/kup-data/kup-data.js +382 -0
  135. package/dist/collection/{utils → managers}/kup-dates/kup-dates-declarations.js +0 -0
  136. package/dist/collection/{utils → managers}/kup-dates/kup-dates.js +53 -19
  137. package/dist/collection/{utils → managers}/kup-debug/kup-debug-browser-utils.js +1 -1
  138. package/dist/collection/{utils → managers}/kup-debug/kup-debug-declarations.js +0 -0
  139. package/dist/collection/{utils → managers}/kup-debug/kup-debug.js +79 -124
  140. package/dist/collection/{utils → managers}/kup-dynamic-position/kup-dynamic-position-declarations.js +0 -0
  141. package/dist/collection/{utils → managers}/kup-dynamic-position/kup-dynamic-position.js +10 -1
  142. package/dist/collection/{utils → managers}/kup-interact/kup-interact-declarations.js +1 -0
  143. package/dist/collection/{utils → managers}/kup-interact/kup-interact.js +22 -13
  144. package/dist/collection/{utils → managers}/kup-language/kup-language-declarations.js +10 -0
  145. package/dist/collection/{utils → managers}/kup-language/kup-language.js +5 -5
  146. package/dist/collection/{utils → managers}/kup-manager/kup-manager-declarations.js +0 -0
  147. package/dist/collection/{utils → managers}/kup-manager/kup-manager.js +45 -4
  148. package/dist/collection/managers/kup-math/kup-math-declarations.js +13 -0
  149. package/dist/collection/managers/kup-math/kup-math-helper.js +39 -0
  150. package/dist/collection/managers/kup-math/kup-math.js +151 -0
  151. package/dist/collection/{utils → managers}/kup-objects/kup-objects-declarations.js +0 -0
  152. package/dist/collection/{utils → managers}/kup-objects/kup-objects.js +15 -0
  153. package/dist/collection/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover-declarations.js +0 -0
  154. package/dist/collection/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover.js +0 -0
  155. package/dist/collection/{utils → managers}/kup-search/kup-search-declarations.js +0 -0
  156. package/dist/collection/{utils → managers}/kup-search/kup-search.js +0 -0
  157. package/dist/collection/{utils → managers}/kup-theme/kup-theme-declarations.js +99 -0
  158. package/dist/collection/{utils → managers}/kup-theme/kup-theme.js +117 -68
  159. package/dist/collection/{utils → managers}/kup-toolbar/kup-toolbar-declarations.js +0 -0
  160. package/dist/collection/{utils → managers}/kup-toolbar/kup-toolbar.js +0 -0
  161. package/dist/collection/types/GenericTypes.js +48 -1
  162. package/dist/collection/utils/cell-utils.js +3 -4
  163. package/dist/collection/utils/filters/filters-column-menu.js +7 -7
  164. package/dist/collection/utils/filters/filters-rows.js +2 -2
  165. package/dist/collection/utils/filters/filters-tree-items.js +12 -12
  166. package/dist/collection/utils/filters/filters.js +3 -2
  167. package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +1 -0
  168. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +100 -68
  169. package/dist/collection/utils/utils.js +4 -4
  170. package/dist/esm/{cell-utils-8f512ea9.js → cell-utils-571978d6.js} +4 -4
  171. package/dist/esm/{component-d2803feb.js → component-c4eb6153.js} +204 -170
  172. package/dist/esm/{f-button-30dbcaa9.js → f-button-b3011cc2.js} +2 -2
  173. package/dist/esm/{f-cell-95c186c6.js → f-cell-b88b2731.js} +38 -28
  174. package/dist/esm/f-chip-a52489ec.js +128 -0
  175. package/dist/esm/{f-image-3bc8b24f.js → f-image-5e5ed7e2.js} +3 -3
  176. package/dist/esm/{index-e0e67c23.js → index-78f3699d.js} +23 -0
  177. package/dist/esm/ketchup.js +3 -3
  178. package/dist/esm/kup-accordion.entry.js +7 -7
  179. package/dist/esm/{kup-autocomplete_28.entry.js → kup-autocomplete_27.entry.js} +4420 -3856
  180. package/dist/esm/kup-calendar.entry.js +626 -359
  181. package/dist/esm/kup-cell.entry.js +15 -13
  182. package/dist/esm/kup-dash-list.entry.js +4 -4
  183. package/dist/esm/kup-dash_2.entry.js +8 -7
  184. package/dist/esm/kup-drawer.entry.js +3 -3
  185. package/dist/esm/kup-echart.entry.js +93035 -0
  186. package/dist/esm/kup-field.entry.js +2 -2
  187. package/dist/esm/kup-iframe.entry.js +3 -3
  188. package/dist/esm/kup-lazy.entry.js +22 -5
  189. package/dist/esm/kup-magic-box.entry.js +95 -42
  190. package/dist/esm/{kup-manager-7fc234da.js → kup-manager-1f76a3ef.js} +3388 -753
  191. package/dist/esm/kup-nav-bar.entry.js +3 -3
  192. package/dist/esm/kup-probe.entry.js +2 -2
  193. package/dist/esm/kup-qlik.entry.js +2 -2
  194. package/dist/esm/kup-snackbar.entry.js +5 -5
  195. package/dist/esm/loader.js +3 -3
  196. package/dist/esm/polyfills/css-shim.js +1 -1
  197. package/dist/esm/{tslib.es6-e6137777.js → tslib.es6-8f2d44b6.js} +13 -1
  198. package/dist/esm/utils-93ae800f.js +461 -0
  199. package/dist/ketchup/assets/maps/africa.json +6116 -0
  200. package/dist/ketchup/assets/maps/america.json +5416 -0
  201. package/dist/ketchup/assets/maps/asia.json +6053 -0
  202. package/dist/ketchup/assets/maps/europe.json +5051 -0
  203. package/dist/ketchup/assets/maps/italy.json +3562 -0
  204. package/dist/ketchup/assets/maps/oceania.json +1069 -0
  205. package/dist/ketchup/assets/maps/world.json +23685 -0
  206. package/dist/ketchup/assets/svg/science.svg +1 -0
  207. package/dist/ketchup/ketchup.esm.js +1 -1
  208. package/dist/ketchup/{p-a878016f.entry.js → p-088a886c.entry.js} +1 -1
  209. package/dist/ketchup/p-135cabdc.entry.js +1 -0
  210. package/dist/ketchup/{p-1c6178e4.entry.js → p-1c1e830f.entry.js} +1 -1
  211. package/dist/ketchup/{p-62816d0b.entry.js → p-29208220.entry.js} +1 -1
  212. package/dist/ketchup/{p-ca0ca27f.entry.js → p-2b9f2019.entry.js} +1 -1
  213. package/dist/ketchup/p-52d0582a.js +1 -0
  214. package/dist/ketchup/p-554bd5f0.entry.js +39 -0
  215. package/dist/ketchup/{p-de83f2f6.js → p-5f52e313.js} +1 -1
  216. package/dist/ketchup/{p-ccda584a.entry.js → p-65449480.entry.js} +1 -1
  217. package/dist/ketchup/p-79cf3874.entry.js +1 -0
  218. package/dist/ketchup/p-7a85cda4.js +1 -0
  219. package/dist/ketchup/p-84cce555.entry.js +27 -0
  220. package/dist/ketchup/p-8c44c3b9.js +135 -0
  221. package/dist/ketchup/{p-65adc15b.entry.js → p-9d49cdb2.entry.js} +1 -1
  222. package/dist/ketchup/{p-5a4a5fdc.js → p-a0b1d769.js} +1 -1
  223. package/dist/ketchup/{p-dbb6998b.entry.js → p-a2b6672e.entry.js} +1 -1
  224. package/dist/ketchup/{p-a378ba56.entry.js → p-a4be630b.entry.js} +1 -1
  225. package/dist/ketchup/p-c072b270.js +1 -0
  226. package/dist/ketchup/{p-1baf1205.entry.js → p-c648972c.entry.js} +1 -1
  227. package/dist/ketchup/{p-af4a6191.entry.js → p-d67d39c0.entry.js} +1 -1
  228. package/dist/ketchup/p-d6e2f2b0.entry.js +1 -0
  229. package/dist/ketchup/{p-44375e49.js → p-da387e0e.js} +1 -1
  230. package/dist/ketchup/p-e5c9ec9e.js +1 -0
  231. package/dist/ketchup/{p-cb5f4994.js → p-ed0b8666.js} +0 -0
  232. package/dist/ketchup/p-ef539eda.js +9 -0
  233. package/dist/ketchup/p-f316234c.entry.js +143 -0
  234. package/dist/types/components/kup-accordion/kup-accordion-declarations.d.ts +2 -2
  235. package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +6 -0
  236. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +29 -22
  237. package/dist/types/components/kup-box/kup-box-declarations.d.ts +7 -11
  238. package/dist/types/components/kup-box/kup-box.d.ts +4 -4
  239. package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +6 -1
  240. package/dist/types/components/kup-button-list/kup-button-list.d.ts +4 -3
  241. package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +28 -10
  242. package/dist/types/components/kup-calendar/kup-calendar.d.ts +19 -47
  243. package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +27 -0
  244. package/dist/types/components/kup-card/{builtin → built-in}/kup-card-calendar.d.ts +0 -0
  245. package/dist/types/components/kup-card/{builtin → built-in}/kup-card-clock.d.ts +0 -0
  246. package/dist/types/components/kup-card/built-in/kup-card-column-drop-menu.d.ts +3 -0
  247. package/dist/types/components/kup-card/free/kup-card-free.d.ts +7 -1
  248. package/dist/types/components/kup-card/kup-card-declarations.d.ts +46 -21
  249. package/dist/types/components/kup-card/kup-card.d.ts +9 -2
  250. package/dist/types/components/kup-cell/kup-cell.d.ts +3 -3
  251. package/dist/types/components/kup-chart/kup-chart-builder.d.ts +5 -5
  252. package/dist/types/components/kup-chart/kup-chart-declarations.d.ts +3 -3
  253. package/dist/types/components/kup-chart/kup-chart.d.ts +2 -2
  254. package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +6 -3
  255. package/dist/types/components/kup-chip/kup-chip.d.ts +9 -13
  256. package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +7 -3
  257. package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +4 -0
  258. package/dist/types/components/kup-combobox/kup-combobox.d.ts +11 -33
  259. package/dist/types/components/kup-dash-list/kup-dash-list.d.ts +2 -2
  260. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +45 -104
  261. package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +8 -11
  262. package/dist/types/components/kup-data-table/kup-data-table.d.ts +49 -27
  263. package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +55 -0
  264. package/dist/types/components/kup-echart/kup-echart.d.ts +100 -0
  265. package/dist/types/components/kup-lazy/kup-lazy.d.ts +13 -1
  266. package/dist/types/components/kup-list/kup-list-declarations.d.ts +2 -1
  267. package/dist/types/components/kup-list/kup-list.d.ts +4 -35
  268. package/dist/types/components/kup-magic-box/kup-magic-box-declarations.d.ts +6 -10
  269. package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +7 -11
  270. package/dist/types/components/kup-tooltip/kup-tooltip-declarations.d.ts +11 -13
  271. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +14 -35
  272. package/dist/types/components/kup-tree/kup-tree-faker.d.ts +10 -10
  273. package/dist/types/components/kup-tree/kup-tree.d.ts +45 -35
  274. package/dist/types/components.d.ts +305 -186
  275. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +11 -10
  276. package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +7 -22
  277. package/dist/types/f-components/f-paginator/f-paginator-declarations.d.ts +22 -0
  278. package/dist/types/f-components/f-paginator/f-paginator-utils.d.ts +2 -0
  279. package/dist/types/f-components/f-paginator/f-paginator.d.ts +3 -0
  280. package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +24 -0
  281. package/dist/types/managers/kup-data/kup-data-column-helper.d.ts +31 -0
  282. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +160 -0
  283. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +23 -0
  284. package/dist/types/managers/kup-data/kup-data-row-helper.d.ts +14 -0
  285. package/dist/types/managers/kup-data/kup-data.d.ts +77 -0
  286. package/dist/types/{utils → managers}/kup-dates/kup-dates-declarations.d.ts +0 -0
  287. package/dist/types/{utils → managers}/kup-dates/kup-dates.d.ts +24 -2
  288. package/dist/types/{utils → managers}/kup-debug/kup-debug-declarations.d.ts +0 -0
  289. package/dist/types/{utils → managers}/kup-debug/kup-debug.d.ts +6 -13
  290. package/dist/types/{utils → managers}/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +1 -0
  291. package/dist/types/{utils → managers}/kup-dynamic-position/kup-dynamic-position.d.ts +0 -0
  292. package/dist/types/{utils → managers}/kup-interact/kup-interact-declarations.d.ts +9 -8
  293. package/dist/types/{utils → managers}/kup-interact/kup-interact.d.ts +7 -6
  294. package/dist/types/{utils → managers}/kup-language/kup-language-declarations.d.ts +11 -1
  295. package/dist/types/{utils → managers}/kup-language/kup-language.d.ts +3 -3
  296. package/dist/types/{utils → managers}/kup-manager/kup-manager-declarations.d.ts +21 -2
  297. package/dist/types/{utils → managers}/kup-manager/kup-manager.d.ts +4 -0
  298. package/dist/types/managers/kup-math/kup-math-declarations.d.ts +21 -0
  299. package/dist/types/managers/kup-math/kup-math-helper.d.ts +17 -0
  300. package/dist/types/managers/kup-math/kup-math.d.ts +60 -0
  301. package/dist/types/{utils → managers}/kup-objects/kup-objects-declarations.d.ts +0 -0
  302. package/dist/types/{utils → managers}/kup-objects/kup-objects.d.ts +6 -0
  303. package/dist/types/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +0 -0
  304. package/dist/types/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +0 -0
  305. package/dist/types/{utils → managers}/kup-search/kup-search-declarations.d.ts +0 -0
  306. package/dist/types/{utils → managers}/kup-search/kup-search.d.ts +0 -0
  307. package/dist/types/{utils → managers}/kup-theme/kup-theme-declarations.d.ts +37 -1
  308. package/dist/types/{utils → managers}/kup-theme/kup-theme.d.ts +19 -19
  309. package/dist/types/{utils → managers}/kup-toolbar/kup-toolbar-declarations.d.ts +0 -0
  310. package/dist/types/{utils → managers}/kup-toolbar/kup-toolbar.d.ts +0 -0
  311. package/dist/types/stencil-public-runtime.d.ts +6 -4
  312. package/dist/types/types/GenericTypes.d.ts +53 -6
  313. package/dist/types/utils/cell-utils.d.ts +7 -6
  314. package/dist/types/utils/filters/filters-column-menu.d.ts +16 -16
  315. package/dist/types/utils/filters/filters-rows.d.ts +10 -10
  316. package/dist/types/utils/filters/filters-tree-items.d.ts +7 -7
  317. package/dist/types/utils/helpers.d.ts +2 -2
  318. package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +1 -0
  319. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +27 -33
  320. package/dist/types/utils/utils.d.ts +4 -2
  321. package/package.json +31 -26
  322. package/dist/cjs/f-chip-90d95d22.js +0 -141
  323. package/dist/cjs/utils-0cc466b9.js +0 -1492
  324. package/dist/collection/components/kup-card/builtin/kup-card-builtin.js +0 -20
  325. package/dist/collection/components/kup-paginator/kup-paginator-declarations.js +0 -5
  326. package/dist/collection/components/kup-paginator/kup-paginator.css +0 -46
  327. package/dist/collection/components/kup-paginator/kup-paginator.js +0 -408
  328. package/dist/esm/f-chip-c0e9c0ff.js +0 -139
  329. package/dist/esm/utils-6c73709d.js +0 -1470
  330. package/dist/ketchup/p-15321eae.js +0 -1
  331. package/dist/ketchup/p-5a5f2a53.js +0 -1
  332. package/dist/ketchup/p-61faaa38.js +0 -8
  333. package/dist/ketchup/p-7e23ea7c.entry.js +0 -1
  334. package/dist/ketchup/p-9d02a676.js +0 -134
  335. package/dist/ketchup/p-a96e6e32.entry.js +0 -1
  336. package/dist/ketchup/p-ad32821e.entry.js +0 -1
  337. package/dist/ketchup/p-c18c7bb0.entry.js +0 -27
  338. package/dist/ketchup/p-d4aa4922.js +0 -1
  339. package/dist/ketchup/p-ec3a3db9.js +0 -1
  340. package/dist/ketchup/p-ecccb3a4.entry.js +0 -45
  341. package/dist/types/components/kup-card/builtin/kup-card-builtin.d.ts +0 -14
  342. package/dist/types/components/kup-paginator/kup-paginator-declarations.d.ts +0 -11
  343. package/dist/types/components/kup-paginator/kup-paginator.d.ts +0 -48
@@ -10,7 +10,7 @@ export class FiltersColumnMenu extends Filters {
10
10
  /**
11
11
  * Gets the value of the filter prop.
12
12
  * @param {GenericFilter} filters - Filters of the component.
13
- * @param {Column} column - Name of the column.
13
+ * @param {string} column - Name of the column.
14
14
  * @returns {string} Value of the filter.
15
15
  */
16
16
  getTextFilterValue(filters = {}, column) {
@@ -19,7 +19,7 @@ export class FiltersColumnMenu extends Filters {
19
19
  /**
20
20
  * Gets the value of the filter prop, set temporarly.
21
21
  * @param {GenericFilter} filters - Filters of the component.
22
- * @param {Column} column - Name of the column.
22
+ * @param {string} column - Name of the column.
23
23
  * @returns {string} Value of the filter.
24
24
  */
25
25
  getTextFilterValueTmp(filters = {}, column) {
@@ -40,7 +40,7 @@ export class FiltersColumnMenu extends Filters {
40
40
  /**
41
41
  * Returns whether a column has filters or not.
42
42
  * @param {GenericFilter} filters - Filters of the component.
43
- * @param {Column} column - Name of the column.
43
+ * @param {KupDataColumn} column - Name of the column.
44
44
  * @returns {boolean} True when a given column has filters.
45
45
  */
46
46
  hasFiltersForColumn(filters = {}, column) {
@@ -49,7 +49,7 @@ export class FiltersColumnMenu extends Filters {
49
49
  /**
50
50
  * Returns whether a column has filters or not.
51
51
  * @param {GenericFilter} filters - Filters of the component.
52
- * @param {Column} column - Name of the column.
52
+ * @param {KupDataColumn} column - Name of the column.
53
53
  * @returns {boolean} True when a given column has filters.
54
54
  */
55
55
  hasFiltersForColumnTmp(filters = {}, column) {
@@ -58,7 +58,7 @@ export class FiltersColumnMenu extends Filters {
58
58
  /**
59
59
  * Returns whether a column has filters or not.
60
60
  * @param {GenericFilter} filters - Filters of the component.
61
- * @param {Column} column - Name of the column.
61
+ * @param {KupDataColumn} column - Name of the column.
62
62
  * @returns {boolean} True when a given column has filters.
63
63
  */
64
64
  _hasFiltersForColumn(filters = {}, column, tmp) {
@@ -81,7 +81,7 @@ export class FiltersColumnMenu extends Filters {
81
81
  /**
82
82
  * Returns the values of column menu's checkboxes.
83
83
  * @param {GenericFilter} filters - Filters of the component.
84
- * @param {Column} column - Name of the column.
84
+ * @param {string} column - Name of the column.
85
85
  * @returns {Array<string>} Array of checkboxes values.
86
86
  */
87
87
  getCheckBoxFilterValues(filters = {}, column) {
@@ -102,7 +102,7 @@ export class FiltersColumnMenu extends Filters {
102
102
  /**
103
103
  * Returns whether a text field should be a date or time picker.
104
104
  * @param {GenericFilter} filters - Filters of the component.
105
- * @param {Column} column - Name of the column.
105
+ * @param {KupDataColumn} column - Name of the column.
106
106
  * @returns {boolean} True when the text field is a date or time picker.
107
107
  */
108
108
  hasIntervalTextFieldFilterValues(filters = {}, column) {
@@ -1,9 +1,9 @@
1
- import { SortMode, } from '../../components/kup-data-table/kup-data-table-declarations';
1
+ import { SortMode } from '../../components/kup-data-table/kup-data-table-declarations';
2
2
  import { compareValues, getCellValueForDisplay, getColumnByName, getValueForDisplay, getValueForDisplay2, } from '../cell-utils';
3
3
  import { Filters } from './filters';
4
4
  import { FiltersColumnMenu } from './filters-column-menu';
5
5
  import { treeMainColumnName } from '../../components/kup-tree/kup-tree-declarations';
6
- import { KupObjects } from '../kup-objects/kup-objects';
6
+ import { KupObjects } from '../../managers/kup-objects/kup-objects';
7
7
  const dom = document.documentElement;
8
8
  const kupObjects = dom.ketchup
9
9
  ? dom.ketchup.objects
@@ -7,7 +7,7 @@ import { FiltersRows } from './filters-rows';
7
7
  * @todo Should contain EVERY tree-item-specific filtering method.
8
8
  */
9
9
  export class FiltersTreeItems extends FiltersRows {
10
- filterRows(items = [], filters = {}, globalFilter = '', columns = [], treeExpandedPropName, columnFilters) {
10
+ filterRows(items = [], filters = {}, globalFilter = '', columns = [], columnFilters) {
11
11
  if (!items || items == null) {
12
12
  return [];
13
13
  }
@@ -18,7 +18,7 @@ export class FiltersTreeItems extends FiltersRows {
18
18
  return items;
19
19
  }
20
20
  for (let i = 0; i < items.length; i++) {
21
- if (this.setNodeVisibility(items[i], filters, globalFilter, isUsingGlobalFilter, columns, treeExpandedPropName, columnFilters)) {
21
+ if (this.setNodeVisibility(items[i], filters, globalFilter, isUsingGlobalFilter, columns, columnFilters)) {
22
22
  }
23
23
  }
24
24
  return items;
@@ -38,7 +38,7 @@ export class FiltersTreeItems extends FiltersRows {
38
38
  }
39
39
  return retValue;
40
40
  }
41
- setNodeVisibility(node, filters = {}, globalFilter, isUsingGlobalFilter = false, columns = [], treeExpandedPropName, columnFilters) {
41
+ setNodeVisibility(node, filters = {}, globalFilter, isUsingGlobalFilter = false, columns = [], columnFilters) {
42
42
  if (columnFilters == null) {
43
43
  columnFilters = new FiltersColumnMenu();
44
44
  }
@@ -51,8 +51,8 @@ export class FiltersTreeItems extends FiltersRows {
51
51
  else {
52
52
  if (node.children) {
53
53
  for (let i = 0; i < node.children.length; i++) {
54
- if (this.setNodeVisibility(node.children[i], filters, globalFilter, isUsingGlobalFilter, columns, treeExpandedPropName, columnFilters)) {
55
- this.expandCollapseNode(node, true, treeExpandedPropName);
54
+ if (this.setNodeVisibility(node.children[i], filters, globalFilter, isUsingGlobalFilter, columns, columnFilters)) {
55
+ this.expandCollapseNode(node, true);
56
56
  visibility = true;
57
57
  }
58
58
  }
@@ -88,27 +88,27 @@ export class FiltersTreeItems extends FiltersRows {
88
88
  });
89
89
  return values;
90
90
  }
91
- expandCollapseNode(treeNode, expandNode = false, treeExpandedPropName) {
91
+ expandCollapseNode(treeNode, expandNode = false) {
92
92
  // The node is expandable, which means there are sub trees
93
93
  if (treeNode.expandable) {
94
94
  // If the node does not already have the property to toggle expansion we add it
95
95
  // Notice how, if the property is already set, its first value will be the same value that was provided by the object itself
96
96
  // and only if the node must be expanded automatically then [treeExpandedPropName] is set to true forcibly.
97
- // This is done to allow a TreeNode to force its [treeExpandedPropName] to true so that specific nodes can be already set to open.
98
- treeNode[treeExpandedPropName] = treeNode.hasOwnProperty(treeExpandedPropName)
99
- ? treeNode[treeExpandedPropName] || expandNode
97
+ // This is done to allow a KupTreeNode to force its [treeExpandedPropName] to true so that specific nodes can be already set to open.
98
+ treeNode.isExpanded = treeNode.hasOwnProperty('isExpanded')
99
+ ? treeNode.isExpanded || expandNode
100
100
  : expandNode;
101
101
  }
102
102
  }
103
- expandCollapseAllNodes(treeNode, expandNode = false, treeExpandedPropName) {
103
+ expandCollapseAllNodes(treeNode, expandNode = false) {
104
104
  // The node is expandable, which means there are sub trees
105
105
  if (treeNode.expandable && !treeNode.disabled) {
106
- this.expandCollapseNode(treeNode, expandNode, treeExpandedPropName);
106
+ this.expandCollapseNode(treeNode, expandNode);
107
107
  // Enriches also direct subtrees recursively (if it has children)
108
108
  if (treeNode.children && treeNode.children.length) {
109
109
  // To save some function calls, only child elements which are expandable will be enriched
110
110
  for (let i = 0; i < treeNode.children.length; i++) {
111
- this.expandCollapseAllNodes(treeNode.children[i], expandNode, treeExpandedPropName);
111
+ this.expandCollapseAllNodes(treeNode.children[i], expandNode);
112
112
  }
113
113
  }
114
114
  }
@@ -1,4 +1,5 @@
1
- import { KupDatesFormats, KupDatesNormalize, } from '../kup-dates/kup-dates-declarations';
1
+ import { KupTagNames } from '../../types/GenericTypes';
2
+ import { KupDatesFormats, KupDatesNormalize, } from '../../managers/kup-dates/kup-dates-declarations';
2
3
  import { formattedStringToCustomUnformattedStringTime, formattedStringToDefaultUnformattedStringTimestamp, formattedStringToUnformattedStringNumber, isValidFormattedStringNumber, isValidFormattedStringTime, stringToNumber, unformattedStringNumberToNumber, isNumber as isNumberThisString, } from '../utils';
3
4
  import { FilterInterval, FILTER_ANALIZER, } from './filters-declarations';
4
5
  const dom = document.documentElement;
@@ -14,7 +15,7 @@ export class Filters {
14
15
  * @returns {comp is KupTree} Returns true when the component is KupTree.
15
16
  */
16
17
  static isTree(comp) {
17
- return comp.rootElement.tagName === 'KUP-TREE';
18
+ return comp.rootElement.tagName === KupTagNames.TREE;
18
19
  }
19
20
  isObjFiltrableByInterval(obj) {
20
21
  if (dom.ketchup.objects.isDate(obj)) {
@@ -14,6 +14,7 @@ export var KupColumnMenuIds;
14
14
  KupColumnMenuIds["SWITCH_GROUP"] = "group";
15
15
  KupColumnMenuIds["SWITCH_KEY"] = "key";
16
16
  KupColumnMenuIds["TEXTFIELD_FILTER"] = "filter";
17
+ KupColumnMenuIds["TEXTFIELD_FORMULA"] = "formula";
17
18
  KupColumnMenuIds["TEXTFIELD_FROM"] = "filter-from";
18
19
  KupColumnMenuIds["TEXTFIELD_TO"] = "filter-to";
19
20
  })(KupColumnMenuIds || (KupColumnMenuIds = {}));
@@ -1,16 +1,16 @@
1
- import { KupDynamicPositionPlacement, } from '../kup-dynamic-position/kup-dynamic-position-declarations';
2
- import { treeMainColumnName } from '../../components/kup-tree/kup-tree-declarations';
1
+ import { KupDynamicPositionPlacement, } from '../../managers/kup-dynamic-position/kup-dynamic-position-declarations';
3
2
  import { unsetTooltip } from '../helpers';
4
3
  import { FiltersColumnMenu } from '../filters/filters-column-menu';
5
4
  import { FilterInterval, } from '../filters/filters-declarations';
6
5
  import { getValueForDisplay, getValueForDisplay2 } from '../cell-utils';
7
6
  import { FiltersRows } from '../filters/filters-rows';
8
7
  import { Filters } from '../filters/filters';
9
- import { KupLanguageColumn, KupLanguageSearch, KupLanguageGrouping, KupLanguageCheckbox, KupLanguageGeneric, KupLanguageRow, } from '../kup-language/kup-language-declarations';
8
+ import { KupLanguageColumn, KupLanguageSearch, KupLanguageGrouping, KupLanguageCheckbox, KupLanguageGeneric, KupLanguageRow, KupLanguageTotals, } from '../../managers/kup-language/kup-language-declarations';
10
9
  import { FButtonStyling } from '../../f-components/f-button/f-button-declarations';
11
10
  import { KupColumnMenuIds } from './kup-column-menu-declarations';
12
- import { KupDebugCategory } from '../kup-debug/kup-debug-declarations';
11
+ import { KupDebugCategory } from '../../managers/kup-debug/kup-debug-declarations';
13
12
  import { FChipType, } from '../../f-components/f-chip/f-chip-declarations';
13
+ import { KupDataNewColumnTypes, } from '../../managers/kup-data/kup-data-declarations';
14
14
  const dom = document.documentElement;
15
15
  /**
16
16
  * Definition and events of the column menu card.
@@ -76,7 +76,7 @@ export class KupColumnMenu {
76
76
  /**
77
77
  * Function called by the column menu card to prepare its 'data' prop.
78
78
  * @param {KupDataTable | KupTree} comp - Component using the column menu.
79
- * @param {Column} column - Column of the menu.
79
+ * @param {KupDataColumn} column - Column of the menu.
80
80
  * @param {KupCardData} currentData - 'data' prop of the column menu card when it's already initialized.
81
81
  * @returns {GenericObject} 'data' prop of the column menu card.
82
82
  */
@@ -96,17 +96,14 @@ export class KupColumnMenu {
96
96
  data.tabbar = this.prepTabBar(comp, column);
97
97
  data.text = [column.title];
98
98
  }
99
- data.textfield =
100
- !this.filtersColumnMenuInstance.isColumnFiltrableByInterval(column)
101
- ? this.prepTextfield(comp, column)
102
- : this.prepIntervalTextfield(comp, column);
99
+ data.textfield = this.prepTextfield(comp, column);
103
100
  data.timepicker = this.prepIntervalTimePicker(comp, column);
104
101
  return data;
105
102
  }
106
103
  /**
107
104
  * Handles the column menu's button prop.
108
105
  * @param {KupDataTable | KupTree} comp - Component using the column menu.
109
- * @param {Column} column - Column of the menu.
106
+ * @param {KupDataColumn} column - Column of the menu.
110
107
  * @returns {GenericObject[]} Buttons props.
111
108
  */
112
109
  prepButton(comp, column) {
@@ -173,7 +170,7 @@ export class KupColumnMenu {
173
170
  className: 'printable',
174
171
  label: dom.ketchup.language.translate(KupLanguageGeneric.APPLY),
175
172
  id: KupColumnMenuIds.BUTTON_APPLY,
176
- styling: FButtonStyling.FLAT,
173
+ styling: FButtonStyling.OUTLINED,
177
174
  title: dom.ketchup.language.translate(KupLanguageGeneric.APPLY),
178
175
  });
179
176
  }
@@ -182,7 +179,7 @@ export class KupColumnMenu {
182
179
  /**
183
180
  * Handles the column menu's checkbox prop.
184
181
  * @param {KupDataTable | KupTree} comp - Component using the column menu.
185
- * @param {Column} column - Column of the menu.
182
+ * @param {KupDataColumn} column - Column of the menu.
186
183
  * @returns {GenericObject[]} Checkboxes props.
187
184
  */
188
185
  prepCheckbox(comp, column) {
@@ -229,7 +226,7 @@ export class KupColumnMenu {
229
226
  /**
230
227
  * Handles the column menu's chip prop.
231
228
  * @param {KupDataTable | KupTree} comp - Component using the column menu.
232
- * @param {Column} column - Column of the menu.
229
+ * @param {KupDataColumn} column - Column of the menu.
233
230
  * @returns {GenericObject[]} Chips props (only 1 is handled).
234
231
  */
235
232
  prepChip(comp, column) {
@@ -254,9 +251,9 @@ export class KupColumnMenu {
254
251
  }
255
252
  chipData.push({
256
253
  icon: child.icon ? child.icon : null,
257
- label: childColumn ? childColumn.title : '*Not found!',
254
+ value: childColumn ? childColumn.title : '*Not found!',
258
255
  obj: child.obj ? child.obj : null,
259
- value: childColumn ? childColumn.name : '*NOTFND',
256
+ id: childColumn ? childColumn.name : '*NOTFND',
260
257
  });
261
258
  }
262
259
  chipProps.dataSet = { initialData: [...chipData] };
@@ -269,7 +266,7 @@ export class KupColumnMenu {
269
266
  /**
270
267
  * Handles the column menu's switch prop.
271
268
  * @param {KupDataTable | KupTree} comp - Component using the column menu.
272
- * @param {Column} column - Column of the menu.
269
+ * @param {KupDataColumn} column - Column of the menu.
273
270
  * @returns {GenericObject[]} Switches props.
274
271
  */
275
272
  prepSwitch(comp, column) {
@@ -338,17 +335,19 @@ export class KupColumnMenu {
338
335
  /**
339
336
  * Handles the column menu's textfield prop.
340
337
  * @param {KupDataTable | KupTree} comp - Component using the column menu.
341
- * @param {Column} column - Column of the menu.
338
+ * @param {KupDataColumn} column - Column of the menu.
342
339
  * @returns {GenericObject[]} Text fields props.
343
340
  */
344
341
  prepTextfield(comp, column) {
345
342
  let props = [];
346
- if (comp.showFilters &&
347
- dom.ketchup.objects.isStringObject(column.obj)) {
348
- let filterInitialValue = this.filtersColumnMenuInstance.getTextFilterValue(comp.filters, column.name);
349
- filterInitialValue = getValueForDisplay(filterInitialValue, column.obj, column.decimals);
350
- return [
351
- {
343
+ if (comp.showFilters) {
344
+ if (this.filtersColumnMenuInstance.isColumnFiltrableByInterval(column)) {
345
+ props.concat(this.prepIntervalTextfield(comp, column));
346
+ }
347
+ else if (dom.ketchup.objects.isStringObject(column.obj)) {
348
+ let filterInitialValue = this.filtersColumnMenuInstance.getTextFilterValue(comp.filters, column.name);
349
+ filterInitialValue = getValueForDisplay(filterInitialValue, column.obj, column.decimals);
350
+ props.push({
352
351
  'data-storage': {
353
352
  column: column,
354
353
  },
@@ -359,8 +358,21 @@ export class KupColumnMenu {
359
358
  isClearable: true,
360
359
  label: dom.ketchup.language.translate(KupLanguageSearch.SEARCH),
361
360
  trailingIcon: true,
362
- },
363
- ];
361
+ });
362
+ }
363
+ }
364
+ if (!FiltersColumnMenu.isTree(comp)) {
365
+ if (dom.ketchup.objects.isNumber(column.obj) &&
366
+ comp.enableColumnsFormula) {
367
+ props.push({
368
+ fullWidth: true,
369
+ icon: 'functions',
370
+ id: KupColumnMenuIds.TEXTFIELD_FORMULA,
371
+ helper: `i.e.: [${column.name}] * 2`,
372
+ label: dom.ketchup.language.translate(KupLanguageTotals.FORMULA),
373
+ trailingIcon: true,
374
+ });
375
+ }
364
376
  }
365
377
  return props;
366
378
  }
@@ -416,7 +428,7 @@ export class KupColumnMenu {
416
428
  /**
417
429
  * Handles the column menu's interval timepicker props (time column type).
418
430
  * @param {KupDataTable | KupTree} comp - Component using the column menu.
419
- * @param {Column} column - Column of the menu.
431
+ * @param {KupDataColumn} column - Column of the menu.
420
432
  * @returns {GenericObject[]} Time picker fields props.
421
433
  */
422
434
  prepIntervalTimePicker(comp, column) {
@@ -471,7 +483,7 @@ export class KupColumnMenu {
471
483
  /**
472
484
  * Handles the column menu's interval datepicker props (date/timestamp column type).
473
485
  * @param {KupDataTable | KupTree} comp - Component using the column menu.
474
- * @param {Column} column - Column of the menu.
486
+ * @param {KupDataColumn} column - Column of the menu.
475
487
  * @returns {GenericObject[]} Date picker fields props.
476
488
  */
477
489
  prepIntervalDatePicker(comp, column) {
@@ -492,13 +504,13 @@ export class KupColumnMenu {
492
504
  suffixFrom = ' 00:00:00';
493
505
  suffixTo = ' 23:59:59';
494
506
  if (initialValueFrom && initialValueFrom.length >= 10) {
495
- initialValueFrom = initialValueFrom.substr(0, 10);
507
+ initialValueFrom = initialValueFrom.substring(0, 10);
496
508
  }
497
509
  else {
498
510
  initialValueFrom = '';
499
511
  }
500
512
  if (initialValueTo && initialValueTo.length >= 10) {
501
- initialValueTo = initialValueTo.substr(0, 10);
513
+ initialValueTo = initialValueTo.substring(0, 10);
502
514
  }
503
515
  else {
504
516
  initialValueTo = '';
@@ -560,22 +572,24 @@ export class KupColumnMenu {
560
572
  .toLowerCase()
561
573
  .endsWith('click');
562
574
  switch (compEvent.type) {
563
- case 'kup-checkbox-change':
564
- this.checkboxChange(comp, compEvent.detail.checked, dataStorage['column'], {
565
- value: dataStorage['value'],
566
- displayedValue: dataStorage['displayedValue'],
567
- });
568
- break;
569
575
  case 'kup-button-click':
570
576
  switch (compID) {
571
577
  case KupColumnMenuIds.BUTTON_GROUP:
572
578
  this.toggleGroup(comp, dataStorage['columnName']);
573
579
  break;
574
580
  case KupColumnMenuIds.BUTTON_REMOVE:
575
- this.removeColumn(comp, dataStorage['column']);
581
+ comp.closeColumnMenu().then(() => {
582
+ comp.hideColumn(dataStorage['column']);
583
+ });
576
584
  break;
577
585
  }
578
586
  break;
587
+ case 'kup-checkbox-change':
588
+ this.checkboxChange(comp, compEvent.detail.checked, dataStorage['column'], {
589
+ value: dataStorage['value'],
590
+ displayedValue: dataStorage['displayedValue'],
591
+ });
592
+ break;
579
593
  case 'kup-switch-change':
580
594
  switch (compID) {
581
595
  case KupColumnMenuIds.SWITCH_GROUP:
@@ -589,8 +603,14 @@ export class KupColumnMenu {
589
603
  case 'kup-textfield-submit':
590
604
  case 'kup-datepicker-textfieldsubmit':
591
605
  case 'kup-timepicker-textfieldsubmit':
592
- this.saveTextualFilters(comp, dataStorage['column']);
593
- this.close(card);
606
+ switch (compID) {
607
+ case KupColumnMenuIds.TEXTFIELD_FORMULA:
608
+ break;
609
+ default:
610
+ this.saveTextualFilters(comp, dataStorage['column']);
611
+ this.close(card);
612
+ break;
613
+ }
594
614
  break;
595
615
  case 'kup-textfield-cleariconclick':
596
616
  case 'kup-datepicker-cleariconclick':
@@ -603,23 +623,50 @@ export class KupColumnMenu {
603
623
  }
604
624
  this.saveTextualFilters(comp, dataStorage['column']);
605
625
  break;
626
+ case 'kup-textfield-change':
627
+ switch (compID) {
628
+ case KupColumnMenuIds.TEXTFIELD_FORMULA:
629
+ comp
630
+ .newColumn(KupDataNewColumnTypes.MATH, {
631
+ operation: compEvent.detail.value,
632
+ })
633
+ .then((res) => {
634
+ if (typeof res === 'string' ||
635
+ res instanceof String) {
636
+ const textField = compEvent.detail.comp;
637
+ textField.rootElement.classList.add('kup-danger');
638
+ textField.helper = res;
639
+ }
640
+ else {
641
+ this.close(card);
642
+ }
643
+ });
644
+ break;
645
+ }
646
+ break;
606
647
  case 'kup-textfield-input':
607
648
  case 'kup-datepicker-input':
608
649
  case 'kup-datepicker-itemclick':
609
650
  case 'kup-timepicker-input':
610
651
  case 'kup-timepicker-itemclick':
611
- window.clearTimeout(comp.columnFilterTimeout);
612
- comp.columnFilterTimeout = window.setTimeout(() => {
613
- if (dataStorage['isInterval'] == true) {
614
- this.intervalChange(comp, compEvent.detail.value, dataStorage['column'], dataStorage['intervalIndex'], !isClickEvent, dataStorage['suffix']);
615
- }
616
- else {
617
- this.textfieldChange(comp, compEvent.detail.value, dataStorage['column']);
618
- }
619
- if (isClickEvent) {
620
- this.saveTextualFilters(comp, dataStorage['column']);
621
- }
622
- }, 300);
652
+ switch (compID) {
653
+ case KupColumnMenuIds.TEXTFIELD_FORMULA:
654
+ break;
655
+ default:
656
+ window.clearTimeout(comp.columnFilterTimeout);
657
+ comp.columnFilterTimeout = window.setTimeout(() => {
658
+ if (dataStorage['isInterval'] == true) {
659
+ this.intervalChange(comp, compEvent.detail.value, dataStorage['column'], dataStorage['intervalIndex'], !isClickEvent, dataStorage['suffix']);
660
+ }
661
+ else {
662
+ this.textfieldChange(comp, compEvent.detail.value, dataStorage['column']);
663
+ }
664
+ if (isClickEvent) {
665
+ this.saveTextualFilters(comp, dataStorage['column']);
666
+ }
667
+ }, 300);
668
+ break;
669
+ }
623
670
  break;
624
671
  }
625
672
  }
@@ -627,7 +674,7 @@ export class KupColumnMenu {
627
674
  * Triggered when the text filter changes.
628
675
  * @param {KupDataTable | KupTree} comp - Component using the column menu.
629
676
  * @param {string} value - New value of the filter.
630
- * @param {Column} column - Column of the menu.
677
+ * @param {KupDataColumn} column - Column of the menu.
631
678
  */
632
679
  textfieldChange(comp, value, column) {
633
680
  if (!FiltersColumnMenu.isTree(comp)) {
@@ -668,7 +715,7 @@ export class KupColumnMenu {
668
715
  * Triggered when the checkbox list changes.
669
716
  * @param {KupDataTable | KupTree} comp - Component using the column menu.
670
717
  * @param {boolean} checked - State of the changed checkbox.
671
- * @param {Column} column - Column of the menu.
718
+ * @param {KupDataColumn} column - Column of the menu.
672
719
  * @param {string} filterValue - Value used to filter.
673
720
  */
674
721
  checkboxChange(comp, checked, column, filterValueItem) {
@@ -706,7 +753,7 @@ export class KupColumnMenu {
706
753
  /**
707
754
  * Sets the given column as key for the table.
708
755
  * @param {KupDataTable} comp - Component using the column menu.
709
- * @param {Column} column - Column of the menu.
756
+ * @param {KupDataColumn} column - Column of the menu.
710
757
  * @param {string} value - The status of the switch.
711
758
  */
712
759
  setKey(comp, column, value) {
@@ -723,19 +770,4 @@ export class KupColumnMenu {
723
770
  }
724
771
  comp.refresh();
725
772
  }
726
- /**
727
- * The given column will be set to be hidden.
728
- * @param {KupDataTable | KupTree} comp - Component using the column menu.
729
- * @param {Column} column - Column of the menu.
730
- */
731
- removeColumn(comp, column) {
732
- if (FiltersColumnMenu.isTree(comp) &&
733
- column.name === treeMainColumnName) {
734
- comp.setTreeColumnVisibility(false);
735
- }
736
- else {
737
- column.visible = false;
738
- }
739
- comp.closeColumnMenu();
740
- }
741
773
  }
@@ -1,5 +1,4 @@
1
- import numeral from 'numeral';
2
- import { KupDatesFormats, KupDatesNormalize, } from './kup-dates/kup-dates-declarations';
1
+ import { KupDatesFormats, KupDatesNormalize, } from '../managers/kup-dates/kup-dates-declarations';
3
2
  const dom = document.documentElement;
4
3
  export var DateTimeFormatOptionsMonth;
5
4
  (function (DateTimeFormatOptionsMonth) {
@@ -141,7 +140,7 @@ export function stringToNumber(input) {
141
140
  if (!input || input == null || input.trim() == '') {
142
141
  input = '0';
143
142
  }
144
- return numeral(input).value();
143
+ return dom.ketchup.math.numberify(input);
145
144
  }
146
145
  /**
147
146
  * @param input number
@@ -234,7 +233,8 @@ function numberStringToNumberString(input, type, decFmt) {
234
233
  if (decFmt != '.') {
235
234
  input = input.replace(/,/g, '.');
236
235
  }
237
- if (numeral(input).value() == null || isNaN(numeral(input).value())) {
236
+ if (dom.ketchup.math.numberify(input) == null ||
237
+ isNaN(dom.ketchup.math.numberify(input))) {
238
238
  return originalInputValue;
239
239
  }
240
240
  let unf = stringToNumber(input);
@@ -1,5 +1,5 @@
1
- import { o as unformattedStringToFormattedStringNumber, q as unformattedStringToFormattedStringTime, r as unformattedStringToFormattedStringTimestamp, n as numeral, d as stringToNumber } from './utils-6c73709d.js';
2
- import { c as KupDatesFormats } from './kup-manager-7fc234da.js';
1
+ import { m as unformattedStringToFormattedStringNumber, p as unformattedStringToFormattedStringTime, q as unformattedStringToFormattedStringTimestamp, d as stringToNumber } from './utils-93ae800f.js';
2
+ import { d as KupDatesFormats } from './kup-manager-1f76a3ef.js';
3
3
 
4
4
  const dom = document.documentElement;
5
5
  // -------------
@@ -28,9 +28,9 @@ function getValueForDisplay2(values, column) {
28
28
  }
29
29
  function formatToNumber(cell) {
30
30
  if (cell.obj) {
31
- return numeral(cell.obj.k).value();
31
+ return dom.ketchup.math.numberify(cell.obj.k);
32
32
  }
33
- return numeral(cell.value).value();
33
+ return dom.ketchup.math.numberify(cell.value);
34
34
  }
35
35
  function _getCellValueForDisplay(value, column, cell) {
36
36
  let obj = column != null ? column.obj : null;