@sme.up/ketchup 4.2.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 (346) hide show
  1. package/README.md +107 -3
  2. package/dist/cjs/{cell-utils-1d44a3f0.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-a5788453.js → f-button-02a7cde4.js} +2 -2
  5. package/dist/cjs/{f-cell-eba6f39e.js → f-cell-4d1450a8.js} +62 -48
  6. package/dist/cjs/f-chip-a50b9f00.js +130 -0
  7. package/dist/cjs/{f-image-e03842eb.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} +5759 -4805
  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-75f1a2cd.js → kup-manager-5877b2ee.js} +3395 -737
  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/built-in/kup-card-calendar.js +458 -0
  49. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +321 -0
  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 +22 -0
  54. package/dist/collection/components/kup-card/kup-card-declarations.js +19 -0
  55. package/dist/collection/components/kup-card/kup-card-helper.js +3 -3
  56. package/dist/collection/components/kup-card/kup-card.css +793 -8
  57. package/dist/collection/components/kup-card/kup-card.js +75 -15
  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 -38
  74. package/dist/collection/components/kup-data-table/kup-data-table.js +366 -168
  75. package/dist/collection/components/kup-date-picker/kup-date-picker.css +0 -82
  76. package/dist/collection/components/kup-date-picker/kup-date-picker.js +41 -312
  77. package/dist/collection/components/kup-drawer/kup-drawer.js +1 -1
  78. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +2 -2
  79. package/dist/collection/components/kup-echart/assets/maps/africa.json +6116 -0
  80. package/dist/collection/components/kup-echart/assets/maps/america.json +5416 -0
  81. package/dist/collection/components/kup-echart/assets/maps/asia.json +6053 -0
  82. package/dist/collection/components/kup-echart/assets/maps/europe.json +5051 -0
  83. package/dist/collection/components/kup-echart/assets/maps/italy.json +3562 -0
  84. package/dist/collection/components/kup-echart/assets/maps/oceania.json +1069 -0
  85. package/dist/collection/components/kup-echart/assets/maps/world.json +23685 -0
  86. package/dist/collection/components/kup-echart/kup-echart-declarations.js +45 -0
  87. package/dist/collection/components/kup-echart/kup-echart.css +13 -0
  88. package/dist/collection/components/kup-echart/kup-echart.js +1165 -0
  89. package/dist/collection/components/kup-field/kup-field.js +2 -2
  90. package/dist/collection/components/kup-gauge/kup-gauge.js +3 -3
  91. package/dist/collection/components/kup-grid/kup-grid.css +2 -2
  92. package/dist/collection/components/kup-grid/kup-grid.js +6 -5
  93. package/dist/collection/components/kup-iframe/kup-iframe.js +2 -2
  94. package/dist/collection/components/kup-image/assets/svg/science.svg +1 -0
  95. package/dist/collection/components/kup-image/kup-image.js +3 -3
  96. package/dist/collection/components/kup-lazy/kup-lazy.css +21 -11
  97. package/dist/collection/components/kup-lazy/kup-lazy.js +62 -3
  98. package/dist/collection/components/kup-list/kup-list-helper.js +7 -1
  99. package/dist/collection/components/kup-list/kup-list.css +3 -0
  100. package/dist/collection/components/kup-list/kup-list.js +219 -288
  101. package/dist/collection/components/kup-magic-box/kup-magic-box-declarations.js +11 -7
  102. package/dist/collection/components/kup-magic-box/kup-magic-box.js +90 -41
  103. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
  104. package/dist/collection/components/kup-probe/kup-probe.js +1 -1
  105. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
  106. package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
  107. package/dist/collection/components/kup-radio/kup-radio.js +1 -1
  108. package/dist/collection/components/kup-rating/kup-rating.js +1 -1
  109. package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
  110. package/dist/collection/components/kup-spinner/kup-spinner.js +1 -1
  111. package/dist/collection/components/kup-state/mock-store.js +1 -1
  112. package/dist/collection/components/kup-switch/kup-switch.js +1 -1
  113. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +3 -3
  114. package/dist/collection/components/kup-text-field/kup-text-field.css +3 -0
  115. package/dist/collection/components/kup-text-field/kup-text-field.js +2 -2
  116. package/dist/collection/components/kup-time-picker/kup-time-picker.css +1 -0
  117. package/dist/collection/components/kup-time-picker/kup-time-picker.js +57 -244
  118. package/dist/collection/components/kup-tooltip/kup-tooltip.js +3 -3
  119. package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -5
  120. package/dist/collection/components/kup-tree/kup-tree-faker.js +2 -3
  121. package/dist/collection/components/kup-tree/kup-tree.css +2 -0
  122. package/dist/collection/components/kup-tree/kup-tree.js +145 -70
  123. package/dist/collection/f-components/f-cell/f-cell-declarations.js +3 -1
  124. package/dist/collection/f-components/f-cell/f-cell.js +53 -39
  125. package/dist/collection/f-components/f-chip/f-chip.js +76 -87
  126. package/dist/collection/f-components/f-image/f-image.js +2 -2
  127. package/dist/collection/f-components/f-paginator/f-paginator-declarations.js +5 -0
  128. package/dist/collection/f-components/f-paginator/f-paginator-utils.js +28 -0
  129. package/dist/collection/f-components/f-paginator/f-paginator.js +91 -0
  130. package/dist/collection/f-components/f-text-field/f-text-field.js +4 -4
  131. package/dist/collection/managers/kup-data/kup-data-cell-helper.js +52 -0
  132. package/dist/collection/managers/kup-data/kup-data-column-helper.js +272 -0
  133. package/dist/collection/managers/kup-data/kup-data-declarations.js +9 -0
  134. package/dist/collection/managers/kup-data/kup-data-node-helper.js +72 -0
  135. package/dist/collection/managers/kup-data/kup-data-row-helper.js +28 -0
  136. package/dist/collection/managers/kup-data/kup-data.js +382 -0
  137. package/dist/collection/{utils → managers}/kup-dates/kup-dates-declarations.js +0 -0
  138. package/dist/collection/{utils → managers}/kup-dates/kup-dates.js +53 -19
  139. package/dist/collection/{utils → managers}/kup-debug/kup-debug-browser-utils.js +1 -1
  140. package/dist/collection/{utils → managers}/kup-debug/kup-debug-declarations.js +0 -0
  141. package/dist/collection/{utils → managers}/kup-debug/kup-debug.js +79 -124
  142. package/dist/collection/{utils → managers}/kup-dynamic-position/kup-dynamic-position-declarations.js +0 -0
  143. package/dist/collection/{utils → managers}/kup-dynamic-position/kup-dynamic-position.js +10 -1
  144. package/dist/collection/{utils → managers}/kup-interact/kup-interact-declarations.js +1 -0
  145. package/dist/collection/{utils → managers}/kup-interact/kup-interact.js +22 -13
  146. package/dist/collection/{utils → managers}/kup-language/kup-language-declarations.js +10 -0
  147. package/dist/collection/{utils → managers}/kup-language/kup-language.js +5 -5
  148. package/dist/collection/{utils → managers}/kup-manager/kup-manager-declarations.js +0 -0
  149. package/dist/collection/{utils → managers}/kup-manager/kup-manager.js +45 -4
  150. package/dist/collection/managers/kup-math/kup-math-declarations.js +13 -0
  151. package/dist/collection/managers/kup-math/kup-math-helper.js +39 -0
  152. package/dist/collection/managers/kup-math/kup-math.js +151 -0
  153. package/dist/collection/{utils → managers}/kup-objects/kup-objects-declarations.js +0 -0
  154. package/dist/collection/{utils → managers}/kup-objects/kup-objects.js +15 -0
  155. package/dist/collection/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover-declarations.js +0 -0
  156. package/dist/collection/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover.js +0 -0
  157. package/dist/collection/{utils → managers}/kup-search/kup-search-declarations.js +0 -0
  158. package/dist/collection/{utils → managers}/kup-search/kup-search.js +0 -1
  159. package/dist/collection/{utils → managers}/kup-theme/kup-theme-declarations.js +99 -0
  160. package/dist/collection/{utils → managers}/kup-theme/kup-theme.js +117 -68
  161. package/dist/collection/{utils → managers}/kup-toolbar/kup-toolbar-declarations.js +0 -0
  162. package/dist/collection/{utils → managers}/kup-toolbar/kup-toolbar.js +0 -0
  163. package/dist/collection/types/GenericTypes.js +48 -1
  164. package/dist/collection/utils/cell-utils.js +3 -4
  165. package/dist/collection/utils/filters/filters-column-menu.js +7 -7
  166. package/dist/collection/utils/filters/filters-rows.js +2 -2
  167. package/dist/collection/utils/filters/filters-tree-items.js +12 -12
  168. package/dist/collection/utils/filters/filters.js +3 -2
  169. package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +1 -0
  170. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +100 -68
  171. package/dist/collection/utils/utils.js +4 -4
  172. package/dist/esm/{cell-utils-9a2914fc.js → cell-utils-571978d6.js} +4 -4
  173. package/dist/esm/{component-d2803feb.js → component-c4eb6153.js} +204 -170
  174. package/dist/esm/{f-button-55a9ed88.js → f-button-b3011cc2.js} +2 -2
  175. package/dist/esm/{f-cell-ac520cb2.js → f-cell-b88b2731.js} +62 -48
  176. package/dist/esm/f-chip-a52489ec.js +128 -0
  177. package/dist/esm/{f-image-70ca9dfe.js → f-image-5e5ed7e2.js} +3 -3
  178. package/dist/esm/{index-e0e67c23.js → index-78f3699d.js} +23 -0
  179. package/dist/esm/ketchup.js +3 -3
  180. package/dist/esm/kup-accordion.entry.js +7 -7
  181. package/dist/esm/{kup-autocomplete_28.entry.js → kup-autocomplete_27.entry.js} +5570 -4615
  182. package/dist/esm/kup-calendar.entry.js +626 -359
  183. package/dist/esm/kup-cell.entry.js +15 -13
  184. package/dist/esm/kup-dash-list.entry.js +4 -4
  185. package/dist/esm/kup-dash_2.entry.js +8 -7
  186. package/dist/esm/kup-drawer.entry.js +3 -3
  187. package/dist/esm/kup-echart.entry.js +93035 -0
  188. package/dist/esm/kup-field.entry.js +2 -2
  189. package/dist/esm/kup-iframe.entry.js +3 -3
  190. package/dist/esm/kup-lazy.entry.js +22 -5
  191. package/dist/esm/kup-magic-box.entry.js +95 -42
  192. package/dist/esm/{kup-manager-bba32828.js → kup-manager-1f76a3ef.js} +3391 -737
  193. package/dist/esm/kup-nav-bar.entry.js +3 -3
  194. package/dist/esm/kup-probe.entry.js +2 -2
  195. package/dist/esm/kup-qlik.entry.js +2 -2
  196. package/dist/esm/kup-snackbar.entry.js +5 -5
  197. package/dist/esm/loader.js +3 -3
  198. package/dist/esm/polyfills/css-shim.js +1 -1
  199. package/dist/esm/{tslib.es6-e6137777.js → tslib.es6-8f2d44b6.js} +13 -1
  200. package/dist/esm/utils-93ae800f.js +461 -0
  201. package/dist/ketchup/assets/maps/africa.json +6116 -0
  202. package/dist/ketchup/assets/maps/america.json +5416 -0
  203. package/dist/ketchup/assets/maps/asia.json +6053 -0
  204. package/dist/ketchup/assets/maps/europe.json +5051 -0
  205. package/dist/ketchup/assets/maps/italy.json +3562 -0
  206. package/dist/ketchup/assets/maps/oceania.json +1069 -0
  207. package/dist/ketchup/assets/maps/world.json +23685 -0
  208. package/dist/ketchup/assets/svg/science.svg +1 -0
  209. package/dist/ketchup/ketchup.esm.js +1 -1
  210. package/dist/ketchup/{p-74259992.entry.js → p-088a886c.entry.js} +1 -1
  211. package/dist/ketchup/p-135cabdc.entry.js +1 -0
  212. package/dist/ketchup/p-1c1e830f.entry.js +1 -0
  213. package/dist/ketchup/{p-69a705ae.entry.js → p-29208220.entry.js} +1 -1
  214. package/dist/ketchup/{p-62208488.entry.js → p-2b9f2019.entry.js} +1 -1
  215. package/dist/ketchup/p-52d0582a.js +1 -0
  216. package/dist/ketchup/p-554bd5f0.entry.js +39 -0
  217. package/dist/ketchup/{p-06c209a5.js → p-5f52e313.js} +1 -1
  218. package/dist/ketchup/{p-e90934b5.entry.js → p-65449480.entry.js} +1 -1
  219. package/dist/ketchup/p-79cf3874.entry.js +1 -0
  220. package/dist/ketchup/p-7a85cda4.js +1 -0
  221. package/dist/ketchup/p-84cce555.entry.js +27 -0
  222. package/dist/ketchup/p-8c44c3b9.js +135 -0
  223. package/dist/ketchup/{p-ff7d590e.entry.js → p-9d49cdb2.entry.js} +1 -1
  224. package/dist/ketchup/{p-5a4a5fdc.js → p-a0b1d769.js} +1 -1
  225. package/dist/ketchup/{p-40df35de.entry.js → p-a2b6672e.entry.js} +1 -1
  226. package/dist/ketchup/{p-5faf7715.entry.js → p-a4be630b.entry.js} +1 -1
  227. package/dist/ketchup/p-c072b270.js +1 -0
  228. package/dist/ketchup/{p-daf03877.entry.js → p-c648972c.entry.js} +1 -1
  229. package/dist/ketchup/{p-03ae1be9.entry.js → p-d67d39c0.entry.js} +1 -1
  230. package/dist/ketchup/p-d6e2f2b0.entry.js +1 -0
  231. package/dist/ketchup/{p-52038ccb.js → p-da387e0e.js} +1 -1
  232. package/dist/ketchup/p-e5c9ec9e.js +1 -0
  233. package/dist/ketchup/{p-cb5f4994.js → p-ed0b8666.js} +0 -0
  234. package/dist/ketchup/p-ef539eda.js +9 -0
  235. package/dist/ketchup/p-f316234c.entry.js +143 -0
  236. package/dist/types/components/kup-accordion/kup-accordion-declarations.d.ts +2 -2
  237. package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +6 -0
  238. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +29 -22
  239. package/dist/types/components/kup-box/kup-box-declarations.d.ts +7 -11
  240. package/dist/types/components/kup-box/kup-box.d.ts +4 -4
  241. package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +6 -1
  242. package/dist/types/components/kup-button-list/kup-button-list.d.ts +4 -3
  243. package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +28 -10
  244. package/dist/types/components/kup-calendar/kup-calendar.d.ts +19 -47
  245. package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +27 -0
  246. package/dist/types/components/kup-card/built-in/kup-card-calendar.d.ts +2 -0
  247. package/dist/types/components/kup-card/built-in/kup-card-clock.d.ts +2 -0
  248. package/dist/types/components/kup-card/built-in/kup-card-column-drop-menu.d.ts +3 -0
  249. package/dist/types/components/kup-card/free/kup-card-free.d.ts +14 -0
  250. package/dist/types/components/kup-card/kup-card-declarations.d.ts +100 -1
  251. package/dist/types/components/kup-card/kup-card.d.ts +12 -5
  252. package/dist/types/components/kup-cell/kup-cell.d.ts +3 -3
  253. package/dist/types/components/kup-chart/kup-chart-builder.d.ts +5 -5
  254. package/dist/types/components/kup-chart/kup-chart-declarations.d.ts +3 -3
  255. package/dist/types/components/kup-chart/kup-chart.d.ts +2 -2
  256. package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +6 -3
  257. package/dist/types/components/kup-chip/kup-chip.d.ts +9 -13
  258. package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +7 -3
  259. package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +4 -0
  260. package/dist/types/components/kup-combobox/kup-combobox.d.ts +11 -33
  261. package/dist/types/components/kup-dash-list/kup-dash-list.d.ts +2 -2
  262. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +45 -109
  263. package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +8 -11
  264. package/dist/types/components/kup-data-table/kup-data-table.d.ts +50 -29
  265. package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +0 -10
  266. package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +55 -0
  267. package/dist/types/components/kup-echart/kup-echart.d.ts +100 -0
  268. package/dist/types/components/kup-lazy/kup-lazy.d.ts +13 -1
  269. package/dist/types/components/kup-list/kup-list-declarations.d.ts +2 -1
  270. package/dist/types/components/kup-list/kup-list.d.ts +4 -35
  271. package/dist/types/components/kup-magic-box/kup-magic-box-declarations.d.ts +6 -10
  272. package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +7 -11
  273. package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +2 -9
  274. package/dist/types/components/kup-tooltip/kup-tooltip-declarations.d.ts +11 -13
  275. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +14 -35
  276. package/dist/types/components/kup-tree/kup-tree-faker.d.ts +10 -10
  277. package/dist/types/components/kup-tree/kup-tree.d.ts +45 -35
  278. package/dist/types/components.d.ts +307 -188
  279. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +11 -10
  280. package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +7 -22
  281. package/dist/types/f-components/f-paginator/f-paginator-declarations.d.ts +22 -0
  282. package/dist/types/f-components/f-paginator/f-paginator-utils.d.ts +2 -0
  283. package/dist/types/f-components/f-paginator/f-paginator.d.ts +3 -0
  284. package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +24 -0
  285. package/dist/types/managers/kup-data/kup-data-column-helper.d.ts +31 -0
  286. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +160 -0
  287. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +23 -0
  288. package/dist/types/managers/kup-data/kup-data-row-helper.d.ts +14 -0
  289. package/dist/types/managers/kup-data/kup-data.d.ts +77 -0
  290. package/dist/types/{utils → managers}/kup-dates/kup-dates-declarations.d.ts +0 -0
  291. package/dist/types/{utils → managers}/kup-dates/kup-dates.d.ts +24 -2
  292. package/dist/types/{utils → managers}/kup-debug/kup-debug-declarations.d.ts +0 -0
  293. package/dist/types/{utils → managers}/kup-debug/kup-debug.d.ts +6 -13
  294. package/dist/types/{utils → managers}/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +1 -0
  295. package/dist/types/{utils → managers}/kup-dynamic-position/kup-dynamic-position.d.ts +0 -0
  296. package/dist/types/{utils → managers}/kup-interact/kup-interact-declarations.d.ts +9 -8
  297. package/dist/types/{utils → managers}/kup-interact/kup-interact.d.ts +7 -6
  298. package/dist/types/{utils → managers}/kup-language/kup-language-declarations.d.ts +11 -1
  299. package/dist/types/{utils → managers}/kup-language/kup-language.d.ts +3 -3
  300. package/dist/types/{utils → managers}/kup-manager/kup-manager-declarations.d.ts +21 -2
  301. package/dist/types/{utils → managers}/kup-manager/kup-manager.d.ts +4 -0
  302. package/dist/types/managers/kup-math/kup-math-declarations.d.ts +21 -0
  303. package/dist/types/managers/kup-math/kup-math-helper.d.ts +17 -0
  304. package/dist/types/managers/kup-math/kup-math.d.ts +60 -0
  305. package/dist/types/{utils → managers}/kup-objects/kup-objects-declarations.d.ts +0 -0
  306. package/dist/types/{utils → managers}/kup-objects/kup-objects.d.ts +6 -0
  307. package/dist/types/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +0 -0
  308. package/dist/types/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +0 -0
  309. package/dist/types/{utils → managers}/kup-search/kup-search-declarations.d.ts +0 -0
  310. package/dist/types/{utils → managers}/kup-search/kup-search.d.ts +0 -0
  311. package/dist/types/{utils → managers}/kup-theme/kup-theme-declarations.d.ts +37 -1
  312. package/dist/types/{utils → managers}/kup-theme/kup-theme.d.ts +19 -19
  313. package/dist/types/{utils → managers}/kup-toolbar/kup-toolbar-declarations.d.ts +0 -0
  314. package/dist/types/{utils → managers}/kup-toolbar/kup-toolbar.d.ts +0 -0
  315. package/dist/types/stencil-public-runtime.d.ts +6 -4
  316. package/dist/types/types/GenericTypes.d.ts +53 -6
  317. package/dist/types/utils/cell-utils.d.ts +7 -6
  318. package/dist/types/utils/filters/filters-column-menu.d.ts +16 -16
  319. package/dist/types/utils/filters/filters-rows.d.ts +10 -10
  320. package/dist/types/utils/filters/filters-tree-items.d.ts +7 -7
  321. package/dist/types/utils/helpers.d.ts +2 -2
  322. package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +1 -0
  323. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +27 -33
  324. package/dist/types/utils/utils.d.ts +4 -2
  325. package/package.json +31 -26
  326. package/dist/cjs/f-chip-ce69b7d2.js +0 -141
  327. package/dist/cjs/utils-b3ec89fe.js +0 -1550
  328. package/dist/collection/components/kup-paginator/kup-paginator-declarations.js +0 -5
  329. package/dist/collection/components/kup-paginator/kup-paginator.css +0 -46
  330. package/dist/collection/components/kup-paginator/kup-paginator.js +0 -408
  331. package/dist/esm/f-chip-babf1740.js +0 -139
  332. package/dist/esm/utils-cfcbe33f.js +0 -1526
  333. package/dist/ketchup/p-1ce9a037.js +0 -1
  334. package/dist/ketchup/p-1e2c3497.js +0 -1
  335. package/dist/ketchup/p-4748be4b.js +0 -8
  336. package/dist/ketchup/p-5db41fae.entry.js +0 -45
  337. package/dist/ketchup/p-6cc8264d.entry.js +0 -1
  338. package/dist/ketchup/p-756aa8b1.entry.js +0 -1
  339. package/dist/ketchup/p-9d02a676.js +0 -134
  340. package/dist/ketchup/p-a7687c0e.entry.js +0 -27
  341. package/dist/ketchup/p-d58dbf0e.js +0 -1
  342. package/dist/ketchup/p-d6ce1ac6.entry.js +0 -1
  343. package/dist/ketchup/p-ea387b49.entry.js +0 -1
  344. package/dist/ketchup/p-f6bff949.js +0 -1
  345. package/dist/types/components/kup-paginator/kup-paginator-declarations.d.ts +0 -11
  346. package/dist/types/components/kup-paginator/kup-paginator.d.ts +0 -48
@@ -0,0 +1,321 @@
1
+ import { h } from '@stencil/core';
2
+ import { FButton } from '../../../f-components/f-button/f-button';
3
+ import { FButtonStyling, } from '../../../f-components/f-button/f-button-declarations';
4
+ import { KupDatesFormats } from '../../../managers/kup-dates/kup-dates-declarations';
5
+ import { KupCardBuiltInClockElements, KupCardCSSClasses, } from '../kup-card-declarations';
6
+ const dom = document.documentElement;
7
+ export function prepareClock(component) {
8
+ const el = component.rootElement;
9
+ el.kupData = {};
10
+ if (component.data && component.data.options) {
11
+ const opts = component.data.options;
12
+ const obj = opts.initialValue;
13
+ if (opts.initialValue) {
14
+ if (obj && obj.k)
15
+ el.kupData.value = obj.k;
16
+ else
17
+ el.kupData.value = opts.initialValue;
18
+ }
19
+ if (opts.manageSeconds != null)
20
+ el.kupData.manageSeconds = opts.manageSeconds;
21
+ if (opts.hoursActive != null)
22
+ el.kupData.hoursActive = opts.hoursActive;
23
+ if (opts.minutesActive != null)
24
+ el.kupData.minutesActive = opts.minutesActive;
25
+ if (opts.secondsActive != null)
26
+ el.kupData.secondsActive = opts.secondsActive;
27
+ }
28
+ else {
29
+ el.kupData.hoursActive = true;
30
+ }
31
+ return prepTimeArea(component);
32
+ }
33
+ function isManageSeconds(component) {
34
+ const el = component.rootElement;
35
+ if (el.kupData.manageSeconds != null)
36
+ return el.kupData.manageSeconds;
37
+ return false;
38
+ }
39
+ function getValue(component) {
40
+ const el = component.rootElement;
41
+ if (el.kupData.value)
42
+ return el.kupData.value;
43
+ return '';
44
+ }
45
+ function setValue(component, value) {
46
+ const el = component.rootElement;
47
+ el.kupData.value = value;
48
+ }
49
+ function getHoursActive(component) {
50
+ const el = component.rootElement;
51
+ if (el.kupData.hoursActive != null)
52
+ return el.kupData.hoursActive;
53
+ return false;
54
+ }
55
+ function getMinutesActive(component) {
56
+ const el = component.rootElement;
57
+ if (el.kupData.minutesActive != null)
58
+ return el.kupData.minutesActive;
59
+ return false;
60
+ }
61
+ function getSecondsActive(component) {
62
+ const el = component.rootElement;
63
+ if (el.kupData.secondsActive != null)
64
+ return el.kupData.secondsActive;
65
+ return false;
66
+ }
67
+ function setElement(component, elem) {
68
+ if (elem) {
69
+ const el = component.rootElement;
70
+ el.kupData[elem.id] = elem;
71
+ }
72
+ }
73
+ function getElement(component, elemId) {
74
+ return component.rootElement.shadowRoot.getElementById(elemId);
75
+ }
76
+ function prepTimeArea(component) {
77
+ return (h("div", { id: "clock-div", onBlur: (e) => {
78
+ if (!isRelatedTargetInThisComponent(e, component)) {
79
+ onKupBlur(component);
80
+ }
81
+ } }, createClock(component)));
82
+ }
83
+ function onKupClockItemClick(e, component, value) {
84
+ if (e != null) {
85
+ if (value == null) {
86
+ value = e.detail.selected.value;
87
+ }
88
+ }
89
+ setClockValueSelected(component, value);
90
+ component.onKupClick(component.rootElement.id, value);
91
+ }
92
+ function setClockValueSelected(component, newValue) {
93
+ if (newValue == null) {
94
+ newValue = getValue(component);
95
+ }
96
+ if (newValue == null) {
97
+ return;
98
+ }
99
+ setValue(component, newValue);
100
+ }
101
+ function isRelatedTargetInThisComponent(e, component) {
102
+ if (!e.relatedTarget) {
103
+ return false;
104
+ }
105
+ let id = e.relatedTarget.id;
106
+ if (id == null || id.trim() == '') {
107
+ return false;
108
+ }
109
+ if (id == getElement(component, KupCardBuiltInClockElements.CLOCK).id) {
110
+ return true;
111
+ }
112
+ let idConc = '#clock-div#confirm#';
113
+ return idConc.indexOf('#' + id + '#') >= 0;
114
+ }
115
+ function onKupBlur(component) {
116
+ component.onKupClick(component.rootElement.id, getValue(component));
117
+ }
118
+ function createClock(component) {
119
+ let selectedTime;
120
+ if (getValue(component)) {
121
+ selectedTime = dom.ketchup.dates.toDate(getValue(component), isManageSeconds(component)
122
+ ? KupDatesFormats.ISO_TIME
123
+ : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS);
124
+ }
125
+ else {
126
+ selectedTime = new Date();
127
+ }
128
+ let hh = selectedTime.getHours().toString();
129
+ let mm = selectedTime.getMinutes().toString();
130
+ if (hh.length === 1) {
131
+ hh = '0' + hh;
132
+ }
133
+ if (mm.length === 1) {
134
+ mm = '0' + mm;
135
+ }
136
+ let ss = '';
137
+ if (isManageSeconds(component)) {
138
+ ss = selectedTime.getSeconds().toString();
139
+ if (ss.length === 1) {
140
+ ss = '0' + ss;
141
+ }
142
+ }
143
+ let seconds;
144
+ let time = [
145
+ h("span", { id: KupCardBuiltInClockElements.HOURS, class: `h ${getHoursActive(component) ? KupCardCSSClasses.VISIBLE : ''}`, ref: (el) => {
146
+ setElement(component, el);
147
+ }, onClick: () => {
148
+ setClockViewActive(component, true, false, false);
149
+ switchView(component, KupCardBuiltInClockElements.HOURS, KupCardBuiltInClockElements.HOURSCIRCLE);
150
+ }, innerHTML: hh }),
151
+ ':',
152
+ h("span", { id: KupCardBuiltInClockElements.MINUTES, class: `m ${getMinutesActive(component) ? KupCardCSSClasses.VISIBLE : ''}`, ref: (el) => {
153
+ setElement(component, el);
154
+ }, onClick: () => {
155
+ setClockViewActive(component, false, true, false);
156
+ switchView(component, KupCardBuiltInClockElements.MINUTES, KupCardBuiltInClockElements.MINUTESCIRCLE);
157
+ }, innerHTML: mm }),
158
+ ];
159
+ if (isManageSeconds(component)) {
160
+ seconds = (h("div", { id: KupCardBuiltInClockElements.SECONDSCIRCLE, class: `circle seconds ${getSecondsActive(component) ? KupCardCSSClasses.VISIBLE : ''}`, ref: (el) => {
161
+ setElement(component, el);
162
+ } },
163
+ buildClock(60, 101, 115, 115, 'sec unit', 0, 5, ss, component),
164
+ h("div", { class: "mid" })));
165
+ time.push(':', h("span", { id: KupCardBuiltInClockElements.SECONDS, class: `s ${getSecondsActive(component) ? KupCardCSSClasses.VISIBLE : ''}`, ref: (el) => {
166
+ setElement(component, el);
167
+ }, onClick: () => {
168
+ setClockViewActive(component, false, false, true);
169
+ switchView(component, KupCardBuiltInClockElements.SECONDS, KupCardBuiltInClockElements.SECONDSCIRCLE);
170
+ }, innerHTML: ss }));
171
+ }
172
+ const confirmButtonProp = {
173
+ label: 'Ok',
174
+ styling: FButtonStyling.FLAT,
175
+ onClick: (e) => {
176
+ setTimeFromClock(e, component);
177
+ },
178
+ };
179
+ return (h("div", { class: "clock", id: KupCardBuiltInClockElements.CLOCK, ref: (el) => {
180
+ setElement(component, el);
181
+ } },
182
+ h("div", { class: "top" }, time),
183
+ h("div", { id: KupCardBuiltInClockElements.HOURSCIRCLE, class: `circle hours ${getHoursActive(component) ? KupCardCSSClasses.VISIBLE : ''}`, ref: (el) => {
184
+ setElement(component, el);
185
+ } },
186
+ buildClock(12, 101, 105, 105, 'hour', 0, 1, hh, component),
187
+ buildClock(12, 64, 110, 110, 'hour2', 12, 1, hh, component),
188
+ h("div", { class: "mid" })),
189
+ h("div", { id: KupCardBuiltInClockElements.MINUTESCIRCLE, class: `circle minutes ${getMinutesActive(component) ? KupCardCSSClasses.VISIBLE : ''}`, ref: (el) => {
190
+ setElement(component, el);
191
+ } },
192
+ buildClock(60, 101, 115, 115, 'min unit', 0, 5, mm, component),
193
+ h("div", { class: "mid" })),
194
+ seconds,
195
+ h("div", { class: "actions" },
196
+ h(FButton, Object.assign({}, confirmButtonProp)))));
197
+ }
198
+ function setClockViewActive(component, hoursAct, minutesAct, secondsAct) {
199
+ const el = component.rootElement;
200
+ el.kupData.hoursActive = hoursAct;
201
+ el.kupData.minutesActive = minutesAct;
202
+ el.kupData.secondsActive = secondsAct;
203
+ }
204
+ function switchView(component, elId, elCircleId) {
205
+ getElement(component, KupCardBuiltInClockElements.HOURS).classList.remove(KupCardCSSClasses.VISIBLE);
206
+ getElement(component, KupCardBuiltInClockElements.HOURSCIRCLE).classList.remove(KupCardCSSClasses.VISIBLE);
207
+ getElement(component, KupCardBuiltInClockElements.MINUTES).classList.remove(KupCardCSSClasses.VISIBLE);
208
+ getElement(component, KupCardBuiltInClockElements.MINUTESCIRCLE).classList.remove(KupCardCSSClasses.VISIBLE);
209
+ if (isManageSeconds(component)) {
210
+ getElement(component, KupCardBuiltInClockElements.SECONDS).classList.remove(KupCardCSSClasses.VISIBLE);
211
+ getElement(component, KupCardBuiltInClockElements.SECONDSCIRCLE).classList.remove(KupCardCSSClasses.VISIBLE);
212
+ }
213
+ getElement(component, elId).classList.add(KupCardCSSClasses.VISIBLE);
214
+ getElement(component, elCircleId).classList.add(KupCardCSSClasses.VISIBLE);
215
+ }
216
+ function buildClock(num, radius, offsetX, offsetY, className, add, separator, selectedValue, component) {
217
+ let x, y;
218
+ const divsArray = [];
219
+ for (let n = 0; n < num; n++) {
220
+ x = radius * Math.cos((n / num) * 2 * Math.PI);
221
+ y = radius * Math.sin((n / num) * 2 * Math.PI);
222
+ let text;
223
+ let dataValue = {};
224
+ let style = {};
225
+ if (separator == 1) {
226
+ if (n + 3 > 12) {
227
+ text = n + 3 - 12 + add + '';
228
+ }
229
+ else {
230
+ let calc = n + 3 + add;
231
+ if (calc !== 24) {
232
+ text = n + 3 + add + '';
233
+ }
234
+ else {
235
+ text = '00';
236
+ }
237
+ }
238
+ dataValue['data-value'] = text;
239
+ }
240
+ else {
241
+ if (n % separator == 0) {
242
+ if (n + 15 >= 60) {
243
+ dataValue['data-value'] = n + 15 - 60 + '';
244
+ text = n + 15 - 60 + add + '';
245
+ }
246
+ else {
247
+ dataValue['data-value'] = n + 15 + '';
248
+ text = n + 15 + add + '';
249
+ }
250
+ }
251
+ else {
252
+ if (n + 15 >= 60) {
253
+ dataValue['data-value'] = n + 15 - 60 + '';
254
+ text = '⋅';
255
+ }
256
+ else {
257
+ dataValue['data-value'] = n + 15 + '';
258
+ text = '\u00B7';
259
+ }
260
+ }
261
+ }
262
+ style['left'] = x + offsetX + 'px';
263
+ style['top'] = y + offsetY + 'px';
264
+ if (dataValue['data-value'].length === 1) {
265
+ dataValue['data-value'] = '0' + dataValue['data-value'];
266
+ }
267
+ let elClass = className;
268
+ if (dataValue['data-value'] === selectedValue) {
269
+ elClass += ' selected';
270
+ }
271
+ let div = (h("div", Object.assign({ class: elClass, style: style }, dataValue, { onClick: (e) => setClockTime(e, component) }), text));
272
+ divsArray.push(div);
273
+ }
274
+ return divsArray;
275
+ }
276
+ function setTimeFromClock(e, component) {
277
+ const hoursEl = getElement(component, KupCardBuiltInClockElements.HOURS);
278
+ const minutesEl = getElement(component, KupCardBuiltInClockElements.MINUTES);
279
+ const secondsEl = getElement(component, KupCardBuiltInClockElements.SECONDS);
280
+ let text = hoursEl.innerText + ':' + minutesEl.innerText;
281
+ if (isManageSeconds(component)) {
282
+ text += ':' + secondsEl.innerText;
283
+ }
284
+ onKupClockItemClick(e, component, text);
285
+ }
286
+ function setClockTime(e, component) {
287
+ const hoursEl = getElement(component, KupCardBuiltInClockElements.HOURS);
288
+ const minutesEl = getElement(component, KupCardBuiltInClockElements.MINUTES);
289
+ const hoursCircleEl = getElement(component, KupCardBuiltInClockElements.HOURSCIRCLE);
290
+ const minutesCircleEl = getElement(component, KupCardBuiltInClockElements.MINUTESCIRCLE);
291
+ const secondsEl = getElement(component, KupCardBuiltInClockElements.SECONDS);
292
+ const secondsCircleEl = getElement(component, KupCardBuiltInClockElements.SECONDSCIRCLE);
293
+ let time = e.target.getAttribute('data-value');
294
+ if (getHoursActive(component)) {
295
+ hoursEl.innerText = time;
296
+ hoursCircleEl.querySelector('.selected').classList.remove('selected');
297
+ setClockViewActive(component, false, true, false);
298
+ switchView(component, KupCardBuiltInClockElements.MINUTES, KupCardBuiltInClockElements.MINUTESCIRCLE);
299
+ }
300
+ else if (getMinutesActive(component)) {
301
+ minutesEl.innerText = time;
302
+ minutesCircleEl.querySelector('.selected').classList.remove('selected');
303
+ if (isManageSeconds(component)) {
304
+ setClockViewActive(component, false, false, true);
305
+ switchView(component, KupCardBuiltInClockElements.SECONDS, KupCardBuiltInClockElements.SECONDSCIRCLE);
306
+ }
307
+ else {
308
+ setTimeFromClock(e, component);
309
+ setClockViewActive(component, true, false, false);
310
+ switchView(component, KupCardBuiltInClockElements.HOURS, KupCardBuiltInClockElements.HOURSCIRCLE);
311
+ }
312
+ }
313
+ else {
314
+ secondsEl.innerText = time;
315
+ secondsCircleEl.querySelector('.selected').classList.remove('selected');
316
+ setTimeFromClock(e, component);
317
+ setClockViewActive(component, true, false, false);
318
+ switchView(component, KupCardBuiltInClockElements.HOURS, KupCardBuiltInClockElements.HOURSCIRCLE);
319
+ }
320
+ e.target.classList.add('selected');
321
+ }
@@ -0,0 +1,167 @@
1
+ import { h } from '@stencil/core';
2
+ import { FButtonStyling } from '../../../f-components/f-button/f-button-declarations';
3
+ import { KupLanguageColumn, KupLanguageGeneric, KupLanguageTotals, } from '../../../managers/kup-language/kup-language-declarations';
4
+ import { KupDataNewColumnTypes } from '../../../managers/kup-data/kup-data-declarations';
5
+ const dom = document.documentElement;
6
+ const premadeFormulas = [
7
+ KupLanguageTotals.AVERAGE,
8
+ KupLanguageTotals.DIFFERENCE,
9
+ KupLanguageTotals.PRODUCT,
10
+ KupLanguageTotals.SUM,
11
+ ];
12
+ export function prepareColumnDropMenu(component) {
13
+ const options = component.data.options;
14
+ const chipData = [];
15
+ let list, combobox, button, chipSet;
16
+ for (let index = 0; index < options.data.columns.length; index++) {
17
+ const column = options.data.columns[index];
18
+ if (column.visible !== false &&
19
+ column.obj &&
20
+ dom.ketchup.objects.isNumber(column.obj)) {
21
+ chipData.push({
22
+ obj: column.obj,
23
+ value: column.name,
24
+ title: column.title,
25
+ id: column.name,
26
+ });
27
+ }
28
+ }
29
+ const numericalColumnsExist = !!(chipData.length > 0);
30
+ if (options.enableMerge || options.enableMove) {
31
+ list = prepareList(options);
32
+ }
33
+ if (options.enableFormula) {
34
+ combobox = prepareCombobox(options, numericalColumnsExist);
35
+ if (numericalColumnsExist) {
36
+ button = (h("kup-button", { "onKup-button-click": () => applyFormula(component), label: dom.ketchup.language.translate(KupLanguageTotals.CALCULATE), styling: FButtonStyling.OUTLINED }));
37
+ chipSet = (h("div", { class: "sub-chip" },
38
+ h("kup-chip", { data: chipData, "onKup-chip-click": (e) => typeColumn(e, component) })));
39
+ }
40
+ }
41
+ return [list, combobox, button, chipSet];
42
+ }
43
+ function prepareList(options) {
44
+ const listData = [];
45
+ if (options.enableMerge) {
46
+ listData.push({
47
+ text: dom.ketchup.language.translate(KupLanguageGeneric.MERGE),
48
+ value: KupLanguageGeneric.MERGE,
49
+ icon: 'library_add',
50
+ });
51
+ }
52
+ if (options.enableMove) {
53
+ listData.push({
54
+ text: dom.ketchup.language.translate(KupLanguageGeneric.MOVE),
55
+ value: KupLanguageGeneric.MOVE,
56
+ icon: 'swap_horiz',
57
+ });
58
+ }
59
+ return listData.length > 0 ? (h("kup-list", { data: listData, showIcons: true, "onkup-list-click": (e) => listClick(e, options) })) : null;
60
+ }
61
+ function prepareCombobox(options, numericalColumnsExist) {
62
+ const comboListData = [];
63
+ const numeric = dom.ketchup.objects.isNumber(options.receivingColumn.obj) &&
64
+ dom.ketchup.objects.isNumber(options.starterColumn.obj);
65
+ if (numeric) {
66
+ comboListData.push({
67
+ text: dom.ketchup.language.translate(KupLanguageTotals.AVERAGE),
68
+ value: KupLanguageTotals.AVERAGE,
69
+ }, {
70
+ text: dom.ketchup.language.translate(KupLanguageTotals.DIFFERENCE),
71
+ value: KupLanguageTotals.DIFFERENCE,
72
+ }, {
73
+ text: dom.ketchup.language.translate(KupLanguageTotals.PRODUCT),
74
+ value: KupLanguageTotals.PRODUCT,
75
+ }, {
76
+ text: dom.ketchup.language.translate(KupLanguageTotals.SUM),
77
+ value: KupLanguageTotals.SUM,
78
+ }, {
79
+ text: `[${options.starterColumn.name}] / [${options.receivingColumn.name}] * 100`,
80
+ value: `([${options.starterColumn.name}]/[${options.receivingColumn.name}])*100`,
81
+ }, {
82
+ text: `[${options.receivingColumn.name}] / [${options.starterColumn.name}] * 100`,
83
+ value: `([${options.receivingColumn.name}]/[${options.starterColumn.name}])*100`,
84
+ });
85
+ }
86
+ else {
87
+ comboListData.push({
88
+ text: dom.ketchup.language.translate(KupLanguageColumn.NO_FORMULA),
89
+ value: KupLanguageColumn.NO_FORMULA,
90
+ });
91
+ }
92
+ const comboData = {
93
+ 'kup-list': {
94
+ data: comboListData,
95
+ selectable: numeric ? true : false,
96
+ },
97
+ 'kup-text-field': {
98
+ helper: !numericalColumnsExist
99
+ ? dom.ketchup.language.translate(KupLanguageColumn.NON_NUMERICAL_IN_TABLE)
100
+ : numeric
101
+ ? `i.e.: [${options.receivingColumn.name}] - [${options.starterColumn.name}] + 1`
102
+ : dom.ketchup.language.translate(KupLanguageColumn.NON_NUMERICAL),
103
+ label: dom.ketchup.language.translate(KupLanguageTotals.FORMULA),
104
+ outlined: true,
105
+ },
106
+ };
107
+ return (h("kup-combobox", { data: comboData, disabled: !numericalColumnsExist }));
108
+ }
109
+ function getCombobox(component) {
110
+ return component.rootElement.shadowRoot.querySelector('kup-combobox');
111
+ }
112
+ function typeColumn(e, component) {
113
+ const combobox = getCombobox(component);
114
+ const value = e.detail.chip.value;
115
+ combobox.getValue().then((res) => {
116
+ let currentFormula = res;
117
+ currentFormula += '[' + value + ']';
118
+ combobox.setValue(currentFormula);
119
+ });
120
+ }
121
+ function listClick(e, options) {
122
+ const value = e.detail.selected.value;
123
+ switch (value) {
124
+ case KupLanguageGeneric.MERGE:
125
+ if (options.mergeCb) {
126
+ options.mergeCb();
127
+ }
128
+ break;
129
+ case KupLanguageGeneric.MOVE:
130
+ if (options.moveCb) {
131
+ options.moveCb();
132
+ }
133
+ break;
134
+ }
135
+ }
136
+ async function applyFormula(component) {
137
+ const options = component.data.options;
138
+ const combobox = getCombobox(component);
139
+ if (combobox) {
140
+ const value = (await combobox.getValue());
141
+ if (premadeFormulas.includes(value)) {
142
+ dom.ketchup.data.column.new(options.data, KupDataNewColumnTypes.MATH, {
143
+ columns: [
144
+ options.receivingColumn.name,
145
+ options.starterColumn.name,
146
+ ],
147
+ operation: value,
148
+ });
149
+ if (options.formulaCb !== undefined) {
150
+ options.formulaCb();
151
+ }
152
+ }
153
+ else {
154
+ const result = dom.ketchup.data.column.new(options.data, KupDataNewColumnTypes.MATH, {
155
+ operation: value,
156
+ });
157
+ if (typeof result === 'string' || result instanceof String) {
158
+ combobox.classList.add('kup-danger');
159
+ combobox.data['kup-text-field'].helper = result;
160
+ combobox.refresh();
161
+ }
162
+ else if (options.formulaCb !== undefined) {
163
+ options.formulaCb();
164
+ }
165
+ }
166
+ }
167
+ }
@@ -2,7 +2,7 @@ import { h } from '@stencil/core';
2
2
  import { FImage } from '../../../f-components/f-image/f-image';
3
3
  import { collapsibleBar } from '../kup-card-helper';
4
4
  import { KupCardCSSClasses } from '../kup-card-declarations';
5
- import { KupThemeColorValues } from '../../../utils/kup-theme/kup-theme-declarations';
5
+ import { KupThemeColorValues } from '../../../managers/kup-theme/kup-theme-declarations';
6
6
  const dom = document.documentElement;
7
7
  /**
8
8
  * 1st collapsible card layout, left bar and collapsible chips.
@@ -1,7 +1,7 @@
1
1
  import { h } from '@stencil/core';
2
2
  import { FImage } from '../../../f-components/f-image/f-image';
3
3
  import { compList, dialogHeader } from '../kup-card-helper';
4
- import { KupLanguageRow } from '../../../utils/kup-language/kup-language-declarations';
4
+ import { KupLanguageRow } from '../../../managers/kup-language/kup-language-declarations';
5
5
  import { KupCardCSSClasses, KupCardIds } from '../kup-card-declarations';
6
6
  const dom = document.documentElement;
7
7
  /**
@@ -219,7 +219,7 @@ function nextButton(component) {
219
219
  }
220
220
  /**
221
221
  * Returns the index of the first visible numerical column.
222
- * @param {TableData} data - Table data.
222
+ * @param {KupDataDataset} data - Table data.
223
223
  */
224
224
  function getVisibleColumn(data) {
225
225
  for (let index = 0; index < data.columns.length; index++) {
@@ -0,0 +1,22 @@
1
+ import { h } from '@stencil/core';
2
+ import { compList } from '../kup-card-helper';
3
+ /**
4
+ * 1st free card layout, dropdown menu look.
5
+ * @param {KupCard} component - Card component.
6
+ * @returns {VNode} 1st standard layout virtual node.
7
+ */
8
+ export function create1(component) {
9
+ //Slot list
10
+ const slots = Array.prototype.slice.call(component.rootElement.children, 0);
11
+ return (h("div", { class: `free-layout-${component.layoutNumber}` }, slots.length > 0 ? compList(slots, 'slot') : null));
12
+ }
13
+ /**
14
+ * 2nd free card layout, dropdown menu look with no padding.
15
+ * @param {KupCard} component - Card component.
16
+ * @returns {VNode} 1st standard layout virtual node.
17
+ */
18
+ export function create2(component) {
19
+ //Slot list
20
+ const slots = Array.prototype.slice.call(component.rootElement.children, 0);
21
+ return (h("div", { class: `free-layout-${component.layoutNumber}` }, slots.length > 0 ? compList(slots, 'slot') : null));
22
+ }
@@ -13,17 +13,35 @@ export var KupCardProps;
13
13
  KupCardProps["sizeX"] = "The width of the card, defaults to 100%. Accepts any valid CSS format (px, %, vw, etc.).";
14
14
  KupCardProps["sizeY"] = "The height of the card, defaults to 100%. Accepts any valid CSS format (px, %, vh, etc.).";
15
15
  })(KupCardProps || (KupCardProps = {}));
16
+ /**
17
+ * Element ids for built-in clock.
18
+ */
19
+ export var KupCardBuiltInClockElements;
20
+ (function (KupCardBuiltInClockElements) {
21
+ KupCardBuiltInClockElements["CLOCK"] = "clockEl";
22
+ KupCardBuiltInClockElements["HOURS"] = "hoursEl";
23
+ KupCardBuiltInClockElements["MINUTES"] = "minutesEl";
24
+ KupCardBuiltInClockElements["SECONDS"] = "secondsEl";
25
+ KupCardBuiltInClockElements["HOURSCIRCLE"] = "hoursCircleEl";
26
+ KupCardBuiltInClockElements["MINUTESCIRCLE"] = "minutesCircleEl";
27
+ KupCardBuiltInClockElements["SECONDSCIRCLE"] = "secondsCircleEl";
28
+ })(KupCardBuiltInClockElements || (KupCardBuiltInClockElements = {}));
16
29
  /**
17
30
  * Layout families of the kup-card component.
18
31
  * @enum {string}
32
+ * @property {string} BUILT_IN - Cards belonging to this family will be created automatically by the library and will have premade behaviors.
19
33
  * @property {string} COLLAPSIBLE - Cards belonging to this family will display an area usable to expand the content of the card.
34
+ * @property {string} DIALOG - Cards belonging to this family will be movable and usually closable.
35
+ * @property {string} FREE - This family of card will only receive slots, usually already arranged from the outside style.
20
36
  * @property {string} SCALABLE - Content will fit its container, resizing itself automatically.
21
37
  * @property {string} STANDARD - Stndard layouts.
22
38
  */
23
39
  export var KupCardFamily;
24
40
  (function (KupCardFamily) {
41
+ KupCardFamily["BUILT_IN"] = "built-in";
25
42
  KupCardFamily["COLLAPSIBLE"] = "collapsible";
26
43
  KupCardFamily["DIALOG"] = "dialog";
44
+ KupCardFamily["FREE"] = "free";
27
45
  KupCardFamily["SCALABLE"] = "scalable";
28
46
  KupCardFamily["STANDARD"] = "standard";
29
47
  })(KupCardFamily || (KupCardFamily = {}));
@@ -47,6 +65,7 @@ export var KupCardIds;
47
65
  */
48
66
  export var KupCardCSSClasses;
49
67
  (function (KupCardCSSClasses) {
68
+ KupCardCSSClasses["BUILT_IN_CARD"] = "built-in-card";
50
69
  KupCardCSSClasses["CARD_VIEW"] = "card-view";
51
70
  KupCardCSSClasses["CLICKABLE_LINK"] = "clickable-link";
52
71
  KupCardCSSClasses["COLLAPSIBLE_ACTIVE"] = "collapsible-active";
@@ -2,7 +2,7 @@ import { h } from '@stencil/core';
2
2
  import { FImage } from '../../f-components/f-image/f-image';
3
3
  import { KupCardCSSClasses, KupCardIds, KupCardSubEvents, } from './kup-card-declarations';
4
4
  import { KupColumnMenuIds } from '../../utils/kup-column-menu/kup-column-menu-declarations';
5
- import { KupThemeColorValues } from '../../utils/kup-theme/kup-theme-declarations';
5
+ import { KupThemeColorValues } from '../../managers/kup-theme/kup-theme-declarations';
6
6
  /**
7
7
  * This function returns a list of components.
8
8
  * @param {GenericObject[]} compArray - Components' props.
@@ -144,9 +144,9 @@ export function layoutSpecificEvents(component, e) {
144
144
  else {
145
145
  chipData.push({
146
146
  icon: node.icon,
147
- label: node.value,
147
+ value: node.value,
148
148
  obj: node.obj,
149
- value: key,
149
+ id: key,
150
150
  });
151
151
  }
152
152
  apply.classList.add('visible');