@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
@@ -0,0 +1,461 @@
1
+ import { e as KupDatesNormalize, d as KupDatesFormats } from './kup-manager-1f76a3ef.js';
2
+
3
+ const dom = document.documentElement;
4
+ var DateTimeFormatOptionsMonth;
5
+ (function (DateTimeFormatOptionsMonth) {
6
+ DateTimeFormatOptionsMonth["NUMERIC"] = "numeric";
7
+ DateTimeFormatOptionsMonth["DIGIT2"] = "2-digit";
8
+ DateTimeFormatOptionsMonth["LONG"] = "long";
9
+ DateTimeFormatOptionsMonth["SHORT"] = "short";
10
+ DateTimeFormatOptionsMonth["NARROW"] = "narrow";
11
+ })(DateTimeFormatOptionsMonth || (DateTimeFormatOptionsMonth = {}));
12
+ function identify(array) {
13
+ if (array) {
14
+ for (let i = 0; i < array.length; i++) {
15
+ array[i].id = i.toString();
16
+ }
17
+ }
18
+ }
19
+ function getSeparator(locale, separatorType) {
20
+ const numberWithGroupAndDecimalSeparator = 1000.1;
21
+ return Intl.NumberFormat(locale)
22
+ .formatToParts(numberWithGroupAndDecimalSeparator)
23
+ .find((part) => part.type === separatorType).value;
24
+ }
25
+ function getCurrentTimeFormatFromBrowserLocale(manageSeconds) {
26
+ const options = {
27
+ hour: '2-digit',
28
+ minute: '2-digit',
29
+ hour12: false,
30
+ };
31
+ if (manageSeconds == true) {
32
+ options.second = '2-digit';
33
+ }
34
+ const formatObj = new Intl.DateTimeFormat(dom.ketchup.dates.getLocale() + '-u-hc-h23', options).formatToParts(new Date());
35
+ let timeFormat = formatObj
36
+ .map((obj) => {
37
+ switch (obj.type) {
38
+ case 'hour':
39
+ return 'HH';
40
+ case 'minute':
41
+ return 'mm';
42
+ case 'second':
43
+ return 'ss';
44
+ default:
45
+ return obj.value;
46
+ }
47
+ })
48
+ .join('');
49
+ return timeFormat;
50
+ }
51
+ /**
52
+ * Check if an object is undefined, null or empty
53
+ * @param obj the object to check
54
+ * @returns true or false
55
+ */
56
+ function isEmpty(obj) {
57
+ return (!obj ||
58
+ obj === null ||
59
+ (Object.keys(obj).length === 0 && obj.constructor === Object));
60
+ }
61
+ /**
62
+ * @param value number as string, formatted by actual browser locale
63
+ * @param type - type of number for calculate suffix
64
+ * @returns true if number string in input is a valid number
65
+ */
66
+ function isValidFormattedStringNumber(value, type) {
67
+ if (value == null || value.trim() == '') {
68
+ return false;
69
+ }
70
+ let tmpStr = formattedStringToUnformattedStringNumber(value, type);
71
+ if (isNumber(tmpStr)) {
72
+ return true;
73
+ }
74
+ return false;
75
+ }
76
+ function isNumber(value) {
77
+ //return typeof value === 'number';
78
+ return !isNaN(value);
79
+ }
80
+ /**
81
+ * @param input number as string, formatted by locale US, decimal separator . (like java decimal numbers)
82
+ * @returns number
83
+ **/
84
+ function stringToNumber(input) {
85
+ if (!input || input == null || input.trim() == '') {
86
+ input = '0';
87
+ }
88
+ return dom.ketchup.math.numberify(input);
89
+ }
90
+ /**
91
+ * @param input number
92
+ * @param decimals number of significant decimal digits for output
93
+ * @returns number as string, formatted by actual browser locale
94
+ **/
95
+ function numberToString(input, decimals) {
96
+ if (input == null) {
97
+ return '';
98
+ }
99
+ return _numberToString(input, decimals, dom.ketchup.dates.getLocale(), true);
100
+ }
101
+ /**
102
+ * @param type - type of number for calculate suffix
103
+ * @returns suffix for number, by type
104
+ **/
105
+ function getNumericValueSuffixByType(type) {
106
+ type = type.toUpperCase();
107
+ let nstr = '';
108
+ if (type == 'P') {
109
+ nstr = ' %';
110
+ }
111
+ else if (type == 'VE') {
112
+ nstr = ' €';
113
+ }
114
+ else if (type == 'VL') {
115
+ nstr = ' £';
116
+ }
117
+ else if (type == 'VV') {
118
+ nstr = ' $';
119
+ }
120
+ return nstr;
121
+ }
122
+ /**
123
+ * @param input number
124
+ * @param decimals number of significant decimal digits for output
125
+ * @param type - type of number for calculate suffix
126
+ * @returns number as string, formatted by actual browser locale, with suffix by type
127
+ **/
128
+ function numberToFormattedStringNumber(input, decimals, type) {
129
+ if (input == null || isNaN(input)) {
130
+ return '';
131
+ }
132
+ let nstr = numberToString(input, decimals);
133
+ nstr = nstr + getNumericValueSuffixByType(type);
134
+ return nstr;
135
+ }
136
+ /**
137
+ * @param input number as string, formatted by locale US, decimal separator . (like java decimal numbers)
138
+ * @param decimals number of significant decimal digits for output
139
+ * @param type - type of number for calculate suffix
140
+ * @returns number as string, formatted by actual browser locale, with suffix by type
141
+ **/
142
+ function unformattedStringToFormattedStringNumber(input, decimals, type) {
143
+ return numberToFormattedStringNumber(stringToNumber(input), decimals, type);
144
+ }
145
+ /**
146
+ * @param input number as string, formatted by actual browser locale
147
+ * @param type - type of number for calculate suffix
148
+ * @returns number as string, formatted by locale US, decimal separator . (like java decimal numbers), without group separator
149
+ **/
150
+ function formattedStringToUnformattedStringNumber(input, type) {
151
+ return numberStringToNumberString(input, type, getDecimalSeparator(dom.ketchup.dates.getLocale()));
152
+ }
153
+ /**
154
+ * @param input number as string, formatted by locale US, decimal separator . (like java decimal numbers), with group separator
155
+ * @param type - type of number for calculate suffix
156
+ * @returns number as string, formatted by locale US, decimal separator . (like java decimal numbers), without group separator
157
+ **/
158
+ function unformattedStringNumberToNumber(input, type) {
159
+ return numberStringToNumberString(input, type, '.');
160
+ }
161
+ function numberStringToNumberString(input, type, decFmt) {
162
+ if (input == null || input.trim() == '') {
163
+ return '';
164
+ }
165
+ let originalInputValue = input;
166
+ let suffix = getNumericValueSuffixByType(type);
167
+ if (suffix != '') {
168
+ input = input.replace(suffix, '');
169
+ }
170
+ let regExpr = null;
171
+ if (decFmt == '.') {
172
+ regExpr = /,/g;
173
+ }
174
+ else {
175
+ regExpr = /\./g;
176
+ }
177
+ input = input.replace(regExpr, '');
178
+ if (decFmt != '.') {
179
+ input = input.replace(/,/g, '.');
180
+ }
181
+ if (dom.ketchup.math.numberify(input) == null ||
182
+ isNaN(dom.ketchup.math.numberify(input))) {
183
+ return originalInputValue;
184
+ }
185
+ let unf = stringToNumber(input);
186
+ return _numberToString(unf, -1, 'en-US', false);
187
+ }
188
+ function getDecimalSeparator(locale) {
189
+ return getSeparator(locale, 'decimal');
190
+ }
191
+ function countDecimals(value) {
192
+ if (Math.floor(value) === value)
193
+ return 0;
194
+ let stringValue = value.toString().split('.')[1];
195
+ if (stringValue) {
196
+ return stringValue.length ? stringValue.length : 0;
197
+ }
198
+ else {
199
+ return 0;
200
+ }
201
+ }
202
+ function _numberToString(input, decimals, locale, useGrouping) {
203
+ if (input == null) {
204
+ input = 0;
205
+ }
206
+ if (decimals == null || decimals == -1) {
207
+ decimals = countDecimals(input);
208
+ }
209
+ let n = Number(input);
210
+ let f = decimals > -1
211
+ ? {
212
+ minimumFractionDigits: decimals,
213
+ maximumFractionDigits: decimals,
214
+ useGrouping: useGrouping,
215
+ }
216
+ : { useGrouping: useGrouping };
217
+ return n.toLocaleString(locale, f);
218
+ }
219
+ /**
220
+ * @param time time as Date object
221
+ * @param manageSeconds flag to set seconds managing
222
+ * @return time as string, formatted
223
+ **/
224
+ function formatTime(time, manageSeconds) {
225
+ const options = {
226
+ hour: '2-digit',
227
+ minute: '2-digit',
228
+ hour12: false,
229
+ };
230
+ if (manageSeconds == true) {
231
+ options.second = '2-digit';
232
+ }
233
+ return time.toLocaleTimeString(dom.ketchup.dates.getLocale() + '-u-hc-h23', options);
234
+ }
235
+ /**
236
+ * @param value time string, formatted by actual browser locale
237
+ * @returns true if time string in input is a valid time
238
+ */
239
+ function isValidFormattedStringTime(value, manageSeconds) {
240
+ let format = getCurrentTimeFormatFromBrowserLocale(manageSeconds);
241
+ return dom.ketchup.dates.isValid(value, format, true);
242
+ }
243
+ /**
244
+ * @param value date/time as string, formatted by actual browser locale
245
+ * @returns date/time as string, formatted ISO
246
+ **/
247
+ function formattedStringToDefaultUnformattedStringTimestamp(value) {
248
+ return formattedStringToCustomUnformattedStringTime(value, KupDatesFormats.ISO_DATE_TIME, true);
249
+ }
250
+ /**
251
+ * @param value time as string, formatted by actual browser locale
252
+ * @param outputFormat time format to return
253
+ * @param manageSeconds flag to set seconds managing
254
+ * @returns time as string, formatted
255
+ **/
256
+ function formattedStringToCustomUnformattedStringTime(value, outputFormat, manageSeconds) {
257
+ let inputFormat = getCurrentTimeFormatFromBrowserLocale(manageSeconds);
258
+ if (dom.ketchup.dates.isValid(value, inputFormat)) {
259
+ return dom.ketchup.dates.format(dom.ketchup.dates.normalize(value, KupDatesNormalize.TIME), outputFormat);
260
+ }
261
+ else {
262
+ return '';
263
+ }
264
+ }
265
+ /**
266
+ * @param value time as string, formatted ISO
267
+ * @param manageSeconds flag to set seconds managing
268
+ * @param valueTimeFormat time format (default ISO)
269
+ * @param customedFormat time format from smeupObject
270
+ * @returns time as string, formatted by actual browser locale
271
+ **/
272
+ function unformattedStringToFormattedStringTime(value, manageSeconds, customedFormat) {
273
+ const options = {
274
+ hour: '2-digit',
275
+ minute: '2-digit',
276
+ hour12: false,
277
+ };
278
+ if (manageSeconds == true) {
279
+ options.second = '2-digit';
280
+ }
281
+ let date = dom.ketchup.dates.toDate(dom.ketchup.dates.normalize(value, KupDatesNormalize.TIME));
282
+ return formatByCustomedOutputTimeFormat(value, date, options, customedFormat);
283
+ }
284
+ function formatByCustomedOutputTimeFormat(valueStr, date, options, customedFormat) {
285
+ if (customedFormat == null) {
286
+ return date.toLocaleTimeString(dom.ketchup.dates.getLocale() + '-u-hc-h23', options);
287
+ }
288
+ switch (customedFormat) {
289
+ case 'I13': {
290
+ //hh:mm
291
+ break;
292
+ }
293
+ case 'I12': {
294
+ //hh:mm:ss
295
+ break;
296
+ }
297
+ case 'I11': {
298
+ //???
299
+ //hh:dddd
300
+ //return moment(date).format('HH:DDDD');
301
+ return valueStr;
302
+ }
303
+ case 'I14': {
304
+ //???
305
+ //sssss
306
+ //return moment(date).format('SSSSS');
307
+ return valueStr;
308
+ }
309
+ case 'I1H': {
310
+ //???
311
+ //Ora,Cen/Min HH,xx
312
+ return valueStr;
313
+ }
314
+ case 'I1M': {
315
+ //???
316
+ //Min,Cen/Sec MMMM,xx
317
+ return valueStr;
318
+ }
319
+ case 'I21': {
320
+ //???
321
+ //Giorni,(4 decim)
322
+ return valueStr;
323
+ }
324
+ case 'I22': {
325
+ //???
326
+ //Ore,(4 decim)
327
+ return valueStr;
328
+ }
329
+ case 'I23': {
330
+ //???
331
+ //Minuti,(4 decim)
332
+ return valueStr;
333
+ }
334
+ case 'I24': {
335
+ //???
336
+ //Secondi
337
+ return valueStr;
338
+ }
339
+ case 'I2H': {
340
+ //???
341
+ //Ora,Cen/Min HHHH,xx
342
+ return valueStr;
343
+ }
344
+ case 'I2D': {
345
+ //???
346
+ //Ore Minuti Secondi HHMMS
347
+ return valueStr;
348
+ }
349
+ case 'I2M': {
350
+ //???
351
+ //Min,Cen/Sec MMMM,xx
352
+ return valueStr;
353
+ }
354
+ }
355
+ return date.toLocaleTimeString(dom.ketchup.dates.getLocale() + '-u-hc-h23', options);
356
+ }
357
+ /**
358
+ * @param value date/time as string, formatted ISO
359
+ * @param valueDateFormat date/time format (default ISO)
360
+ * @returns date/time as string, formatted by actual browser locale
361
+ **/
362
+ function unformattedStringToFormattedStringTimestamp(value) {
363
+ const options = {
364
+ day: '2-digit',
365
+ month: '2-digit',
366
+ year: 'numeric',
367
+ hour: '2-digit',
368
+ minute: '2-digit',
369
+ second: '2-digit',
370
+ hour12: false,
371
+ };
372
+ let date = dom.ketchup.dates.toDate(dom.ketchup.dates.normalize(value, KupDatesNormalize.TIMESTAMP));
373
+ return date.toLocaleString(dom.ketchup.dates.getLocale() + '-u-hc-h23', options);
374
+ }
375
+ function getMonthAsStringByLocale(month, format) {
376
+ if (month == null) {
377
+ return '';
378
+ }
379
+ const dateTmp = new Date();
380
+ dateTmp.setDate(1);
381
+ dateTmp.setMonth(month - 1);
382
+ const options = {
383
+ month: format,
384
+ };
385
+ const dateTimeFormat = new Intl.DateTimeFormat(dom.ketchup.dates.getLocale(), options);
386
+ return dateTimeFormat.format(dateTmp);
387
+ }
388
+ function getMonthsAsStringByLocale(format) {
389
+ if (format == null || format.trim() == '') {
390
+ format = DateTimeFormatOptionsMonth.LONG;
391
+ }
392
+ var months = [];
393
+ for (var i = 0; i < 12; i++) {
394
+ months[i] = getMonthAsStringByLocale(i + 1, format);
395
+ }
396
+ return months;
397
+ }
398
+ function deepEqual(object1, object2) {
399
+ if (!(isObject(object1) && isObject(object2))) {
400
+ return object1 === object2;
401
+ }
402
+ const keys1 = Object.keys(object1);
403
+ const keys2 = Object.keys(object2);
404
+ if (keys1.length !== keys2.length) {
405
+ return false;
406
+ }
407
+ for (const key of keys1) {
408
+ const val1 = object1[key];
409
+ const val2 = object2[key];
410
+ const areObjects = isObject(val1) && isObject(val2);
411
+ if ((areObjects && !deepEqual(val1, val2)) ||
412
+ (!areObjects && val1 !== val2)) {
413
+ return false;
414
+ }
415
+ }
416
+ return true;
417
+ }
418
+ function isObject(object) {
419
+ return object != null && typeof object === 'object';
420
+ }
421
+ /**
422
+ * Used to retrieve component's props values.
423
+ * @param {any} comp - Component calling this function.
424
+ * @param {GenericObject} list - Prop list, specific for each component.
425
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
426
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
427
+ */
428
+ function getProps(comp, list, descriptions) {
429
+ let props = {};
430
+ if (descriptions) {
431
+ props = list;
432
+ }
433
+ else {
434
+ for (const key in list) {
435
+ if (Object.prototype.hasOwnProperty.call(list, key)) {
436
+ props[key] = comp[key];
437
+ }
438
+ }
439
+ }
440
+ return props;
441
+ }
442
+ /**
443
+ * Sets the props to the component.
444
+ * @param {any} comp - Component calling this function.
445
+ * @param {GenericObject} list - Prop list, specific for each component.
446
+ * @param {GenericObject} props - Prop to be set.
447
+ */
448
+ function setProps(comp, list, props) {
449
+ for (const key in props) {
450
+ // If key is a custom prop it will be set on the component (i.e.: "data", "customStyle", ecc.)
451
+ if (list[key]) {
452
+ comp[key] = props[key];
453
+ }
454
+ else {
455
+ // Otherwise, it will be set on its HTML element (i.e.: "id", "style", ecc.)
456
+ comp.rootElement[key] = props[key];
457
+ }
458
+ }
459
+ }
460
+
461
+ export { DateTimeFormatOptionsMonth as D, formattedStringToDefaultUnformattedStringTimestamp as a, isValidFormattedStringNumber as b, formattedStringToUnformattedStringNumber as c, stringToNumber as d, isNumber as e, formattedStringToCustomUnformattedStringTime as f, getProps as g, isEmpty as h, isValidFormattedStringTime as i, deepEqual as j, identify as k, getMonthsAsStringByLocale as l, unformattedStringToFormattedStringNumber as m, numberToFormattedStringNumber as n, formatTime as o, unformattedStringToFormattedStringTime as p, unformattedStringToFormattedStringTimestamp as q, getDecimalSeparator as r, setProps as s, unformattedStringNumberToNumber as u };