@sme.up/ketchup 8.3.2 → 9.0.0

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 (293) hide show
  1. package/dist/cjs/{component-2c7ddef7.js → component-cb3b32f5.js} +7 -2
  2. package/dist/cjs/{f-button-be5c564a.js → f-button-b2cfce1c.js} +3 -3
  3. package/dist/cjs/{f-cell-d034bcb0.js → f-cell-75fca92b.js} +24 -17
  4. package/dist/cjs/{f-checkbox-cff77b2c.js → f-checkbox-48d7af02.js} +1 -1
  5. package/dist/cjs/{f-chip-bc678bf1.js → f-chip-3e504f3e.js} +3 -3
  6. package/dist/cjs/{f-image-8542c984.js → f-image-270d39ae.js} +2 -2
  7. package/dist/cjs/{f-paginator-utils-f48afc35.js → f-paginator-utils-6d0c4678.js} +4 -4
  8. package/dist/cjs/{f-text-field-acfc1717.js → f-text-field-bbcd2143.js} +2 -2
  9. package/dist/cjs/{f-text-field-mdc-d38d80b5.js → f-text-field-mdc-4fda9705.js} +1 -1
  10. package/dist/cjs/{index-a9a3b467.js → index-c3d10561.js} +90 -19
  11. package/dist/cjs/ketchup.cjs.js +3 -6
  12. package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
  13. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +151 -156
  14. package/dist/cjs/kup-box.cjs.entry.js +14 -14
  15. package/dist/cjs/kup-calendar.cjs.entry.js +16 -10
  16. package/dist/cjs/kup-card-list.cjs.entry.js +244 -0
  17. package/dist/cjs/kup-cell.cjs.entry.js +8 -8
  18. package/dist/cjs/kup-dashboard.cjs.entry.js +10 -10
  19. package/dist/cjs/kup-drawer.cjs.entry.js +3 -3
  20. package/dist/cjs/kup-echart.cjs.entry.js +4604 -4444
  21. package/dist/cjs/kup-family-tree.cjs.entry.js +6 -6
  22. package/dist/cjs/kup-grid.cjs.entry.js +109 -0
  23. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  24. package/dist/cjs/kup-image-list.cjs.entry.js +11 -11
  25. package/dist/cjs/kup-lazy.cjs.entry.js +3 -3
  26. package/dist/cjs/kup-magic-box.cjs.entry.js +5 -5
  27. package/dist/cjs/{kup-manager-b3677c1d.js → kup-manager-130bbd9d.js} +7 -7
  28. package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
  29. package/dist/cjs/kup-numeric-picker.cjs.entry.js +6 -6
  30. package/dist/cjs/kup-photo-frame.cjs.entry.js +3 -3
  31. package/dist/cjs/kup-planner.cjs.entry.js +26 -18
  32. package/dist/cjs/kup-probe.cjs.entry.js +3 -3
  33. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  34. package/dist/cjs/kup-snackbar.cjs.entry.js +6 -6
  35. package/dist/cjs/loader.cjs.js +3 -12
  36. package/dist/collection/assets/card-list.js +709 -0
  37. package/dist/collection/assets/data-table-performance.js +6 -0
  38. package/dist/collection/assets/echart.js +168 -90
  39. package/dist/collection/assets/image-list.js +2 -12
  40. package/dist/collection/assets/index.js +4 -4
  41. package/dist/collection/collection-manifest.json +49 -50
  42. package/dist/collection/components/kup-accordion/kup-accordion.js +28 -18
  43. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +47 -29
  44. package/dist/collection/components/kup-badge/kup-badge.js +21 -14
  45. package/dist/collection/components/kup-box/kup-box.js +62 -41
  46. package/dist/collection/components/kup-button/kup-button.js +26 -17
  47. package/dist/collection/components/kup-button-list/kup-button-list.e2e.js +1 -1
  48. package/dist/collection/components/kup-button-list/kup-button-list.js +24 -16
  49. package/dist/collection/components/kup-calendar/kup-calendar-declarations.js +3 -2
  50. package/dist/collection/components/kup-calendar/kup-calendar.css +13 -0
  51. package/dist/collection/components/kup-calendar/kup-calendar.js +73 -35
  52. package/dist/collection/components/kup-card/box/kup-card-box.js +3 -3
  53. package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +7 -7
  54. package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +6 -6
  55. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +5 -5
  56. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +4 -4
  57. package/dist/collection/components/kup-card/built-in/kup-card-message-box.js +4 -4
  58. package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +2 -2
  59. package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +5 -5
  60. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +5 -5
  61. package/dist/collection/components/kup-card/free/kup-card-free.js +2 -2
  62. package/dist/collection/components/kup-card/kup-card-helper.js +5 -5
  63. package/dist/collection/components/kup-card/kup-card.css +20 -7
  64. package/dist/collection/components/kup-card/kup-card.js +67 -52
  65. package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +49 -58
  66. package/dist/collection/components/kup-card/standard/kup-card-standard.js +9 -9
  67. package/dist/collection/components/kup-card-list/kup-card-list-declarations.js +13 -0
  68. package/dist/collection/components/kup-card-list/kup-card-list.css +34 -0
  69. package/dist/collection/components/kup-card-list/kup-card-list.js +481 -0
  70. package/dist/collection/components/kup-cell/kup-cell.js +27 -18
  71. package/dist/collection/components/kup-chart/kup-chart-builder.js +5 -5
  72. package/dist/collection/components/kup-chart/kup-chart.js +47 -28
  73. package/dist/collection/components/kup-checkbox/kup-checkbox.js +22 -14
  74. package/dist/collection/components/kup-chip/kup-chip.js +32 -20
  75. package/dist/collection/components/kup-color-picker/kup-color-picker.js +30 -20
  76. package/dist/collection/components/kup-combobox/kup-combobox.js +47 -29
  77. package/dist/collection/components/kup-dashboard/kup-dashboard.js +26 -19
  78. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +4 -4
  79. package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
  80. package/dist/collection/components/kup-data-table/kup-data-table.js +178 -106
  81. package/dist/collection/components/kup-date-picker/kup-date-picker.js +42 -26
  82. package/dist/collection/components/kup-dialog/kup-dialog.js +30 -18
  83. package/dist/collection/components/kup-drawer/kup-drawer.e2e.js +1 -1
  84. package/dist/collection/components/kup-drawer/kup-drawer.js +29 -17
  85. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +42 -26
  86. package/dist/collection/components/kup-echart/kup-echart.js +64 -39
  87. package/dist/collection/components/kup-family-tree/kup-family-tree.js +42 -26
  88. package/dist/collection/components/kup-form/kup-form.js +32 -21
  89. package/dist/collection/components/kup-gauge/kup-gauge.js +18 -13
  90. package/dist/collection/components/kup-grid/kup-grid.css +10 -0
  91. package/dist/collection/components/kup-grid/kup-grid.js +16 -11
  92. package/dist/collection/components/kup-iframe/kup-iframe.js +21 -13
  93. package/dist/collection/components/kup-image/canvas/kup-image-canvas-declarations.js +1 -1
  94. package/dist/collection/components/kup-image/canvas/kup-image-canvas-helper.js +1 -1
  95. package/dist/collection/components/kup-image/canvas/kup-image-canvas.js +2 -2
  96. package/dist/collection/components/kup-image/kup-image.js +27 -18
  97. package/dist/collection/components/kup-image-list/kup-image-list.js +35 -24
  98. package/dist/collection/components/kup-lazy/kup-lazy.js +25 -15
  99. package/dist/collection/components/kup-list/kup-list-helper.js +1 -1
  100. package/dist/collection/components/kup-list/kup-list.js +45 -27
  101. package/dist/collection/components/kup-magic-box/kup-magic-box.js +23 -17
  102. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +23 -14
  103. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +40 -24
  104. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +23 -14
  105. package/dist/collection/components/kup-planner/kup-planner-helper.js +3 -3
  106. package/dist/collection/components/kup-planner/kup-planner.css +277 -277
  107. package/dist/collection/components/kup-planner/kup-planner.js +51 -33
  108. package/dist/collection/components/kup-probe/kup-probe.js +7 -5
  109. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +15 -10
  110. package/dist/collection/components/kup-qlik/kup-qlik.js +8 -5
  111. package/dist/collection/components/kup-radio/kup-radio.js +23 -14
  112. package/dist/collection/components/kup-rating/kup-rating.js +17 -11
  113. package/dist/collection/components/kup-snackbar/kup-snackbar.js +26 -16
  114. package/dist/collection/components/kup-spinner/kup-spinner.js +17 -11
  115. package/dist/collection/components/kup-state/mock-store.js +1 -1
  116. package/dist/collection/components/kup-switch/kup-switch.js +22 -14
  117. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +31 -20
  118. package/dist/collection/components/kup-text-field/kup-text-field.js +40 -24
  119. package/dist/collection/components/kup-time-picker/kup-time-picker.js +47 -29
  120. package/dist/collection/components/kup-tree/kup-tree.js +104 -63
  121. package/dist/collection/f-components/f-button/f-button.js +3 -3
  122. package/dist/collection/f-components/f-cell/f-cell-declarations.js +2 -1
  123. package/dist/collection/f-components/f-cell/f-cell.js +30 -23
  124. package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -1
  125. package/dist/collection/f-components/f-chip/f-chip.js +5 -5
  126. package/dist/collection/f-components/f-image/f-image.js +3 -3
  127. package/dist/collection/f-components/f-paginator/f-paginator.js +5 -5
  128. package/dist/collection/f-components/f-switch/f-switch.js +1 -1
  129. package/dist/collection/f-components/f-text-field/f-text-field-mdc.js +2 -2
  130. package/dist/collection/f-components/f-text-field/f-text-field.js +2 -2
  131. package/dist/collection/managers/kup-data/kup-data-cell-helper.js +4 -4
  132. package/dist/collection/managers/kup-data/kup-data-column-helper.js +3 -3
  133. package/dist/collection/managers/kup-data/kup-data.js +8 -8
  134. package/dist/collection/managers/kup-dates/kup-dates.js +11 -11
  135. package/dist/collection/managers/kup-debug/kup-debug.js +3 -3
  136. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +2 -2
  137. package/dist/collection/managers/kup-interact/kup-interact.js +2 -2
  138. package/dist/collection/managers/kup-language/kup-language.js +3 -3
  139. package/dist/collection/managers/kup-manager/kup-manager.js +20 -20
  140. package/dist/collection/managers/kup-math/kup-math-helper.js +1 -1
  141. package/dist/collection/managers/kup-math/kup-math.js +12 -12
  142. package/dist/collection/managers/kup-objects/kup-objects.js +1 -1
  143. package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +1 -1
  144. package/dist/collection/managers/kup-search/kup-search.js +2 -2
  145. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +1 -1
  146. package/dist/collection/managers/kup-theme/kup-theme.js +15 -15
  147. package/dist/collection/managers/kup-toolbar/kup-toolbar.js +1 -1
  148. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +1 -1
  149. package/dist/collection/types/GenericTypes.js +1 -2
  150. package/dist/collection/utils/cell-utils.js +1 -1
  151. package/dist/collection/utils/filters/filters-column-menu.js +3 -3
  152. package/dist/collection/utils/filters/filters-rows.js +6 -6
  153. package/dist/collection/utils/filters/filters-tree-items.js +4 -4
  154. package/dist/collection/utils/filters/filters.js +3 -3
  155. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +12 -12
  156. package/dist/collection/utils/utils.js +1 -1
  157. package/dist/components/kup-autocomplete2.js +393 -386
  158. package/dist/components/kup-calendar.js +10 -3
  159. package/dist/components/{kup-dash-list.d.ts → kup-card-list.d.ts} +4 -4
  160. package/dist/components/kup-card-list.js +408 -0
  161. package/dist/components/kup-cell.js +1 -1
  162. package/dist/components/kup-chart.js +1 -1
  163. package/dist/components/kup-checkbox.js +1 -1
  164. package/dist/components/kup-chip.js +1 -1
  165. package/dist/components/kup-color-picker.js +1 -1
  166. package/dist/components/kup-combobox.js +1 -1
  167. package/dist/components/kup-dashboard.js +1 -1
  168. package/dist/components/kup-data-table.js +1 -1
  169. package/dist/components/kup-date-picker.js +1 -1
  170. package/dist/components/kup-dialog.js +1 -1
  171. package/dist/components/kup-dropdown-button.js +1 -1
  172. package/dist/components/kup-echart2.js +4602 -4442
  173. package/dist/components/kup-family-tree.js +1 -1
  174. package/dist/components/kup-form.js +1 -1
  175. package/dist/components/kup-gauge.js +1 -1
  176. package/dist/components/kup-grid2.js +1 -1
  177. package/dist/components/kup-image-list.js +1 -1
  178. package/dist/components/kup-image.js +1 -1
  179. package/dist/components/kup-list.js +1 -1
  180. package/dist/components/kup-magic-box.js +1 -1
  181. package/dist/components/kup-numeric-picker.js +1 -1
  182. package/dist/components/kup-planner.js +21 -13
  183. package/dist/esm/{component-e86c51ea.js → component-879e99bf.js} +7 -2
  184. package/dist/esm/{f-button-3b97025a.js → f-button-baa419dc.js} +3 -3
  185. package/dist/esm/{f-cell-ae537010.js → f-cell-18ee3afa.js} +24 -17
  186. package/dist/esm/{f-checkbox-91358c27.js → f-checkbox-00a1e020.js} +1 -1
  187. package/dist/esm/{f-chip-69df7df4.js → f-chip-311500f4.js} +3 -3
  188. package/dist/esm/{f-image-705c1694.js → f-image-da03494c.js} +2 -2
  189. package/dist/esm/{f-paginator-utils-b7009f00.js → f-paginator-utils-d63a195e.js} +4 -4
  190. package/dist/esm/{f-text-field-fa349928.js → f-text-field-e5f1f1fd.js} +2 -2
  191. package/dist/esm/{f-text-field-mdc-a1b4a919.js → f-text-field-mdc-1143cf21.js} +1 -1
  192. package/dist/esm/{index-bb15ce14.js → index-3336c3b1.js} +91 -19
  193. package/dist/esm/ketchup.js +4 -7
  194. package/dist/esm/kup-accordion.entry.js +5 -5
  195. package/dist/esm/kup-autocomplete_27.entry.js +151 -156
  196. package/dist/esm/kup-box.entry.js +14 -14
  197. package/dist/esm/kup-calendar.entry.js +16 -10
  198. package/dist/esm/kup-card-list.entry.js +240 -0
  199. package/dist/esm/kup-cell.entry.js +8 -8
  200. package/dist/esm/kup-dashboard.entry.js +10 -10
  201. package/dist/esm/kup-drawer.entry.js +3 -3
  202. package/dist/esm/kup-echart.entry.js +4604 -4444
  203. package/dist/esm/kup-family-tree.entry.js +6 -6
  204. package/dist/esm/kup-grid.entry.js +105 -0
  205. package/dist/esm/kup-iframe.entry.js +2 -2
  206. package/dist/esm/kup-image-list.entry.js +11 -11
  207. package/dist/esm/kup-lazy.entry.js +3 -3
  208. package/dist/esm/kup-magic-box.entry.js +5 -5
  209. package/dist/esm/{kup-manager-bad7bec3.js → kup-manager-c8d5c94d.js} +7 -7
  210. package/dist/esm/kup-nav-bar.entry.js +3 -3
  211. package/dist/esm/kup-numeric-picker.entry.js +6 -6
  212. package/dist/esm/kup-photo-frame.entry.js +3 -3
  213. package/dist/esm/kup-planner.entry.js +26 -18
  214. package/dist/esm/kup-probe.entry.js +3 -3
  215. package/dist/esm/kup-qlik.entry.js +2 -2
  216. package/dist/esm/kup-snackbar.entry.js +6 -6
  217. package/dist/esm/loader.js +4 -13
  218. package/dist/ketchup/ketchup.esm.js +1 -1
  219. package/dist/ketchup/{p-fb0b5466.js → p-008ad26c.js} +1 -1
  220. package/dist/ketchup/{p-15ffcd21.entry.js → p-07707cd1.entry.js} +1 -1
  221. package/dist/ketchup/p-0c19d485.entry.js +9 -0
  222. package/dist/ketchup/{p-4c79ea53.entry.js → p-13eac183.entry.js} +1 -1
  223. package/dist/ketchup/{p-bd5ece4c.js → p-25de68e5.js} +1 -1
  224. package/dist/ketchup/{p-bd21cdea.entry.js → p-2a2a18bf.entry.js} +1 -1
  225. package/dist/ketchup/{p-31da4bae.entry.js → p-2d192def.entry.js} +1 -1
  226. package/dist/ketchup/p-2d42477d.js +2 -0
  227. package/dist/ketchup/{p-ee39977d.entry.js → p-2dab9c4f.entry.js} +1 -1
  228. package/dist/ketchup/{p-afa2af1e.js → p-39602629.js} +1 -1
  229. package/dist/ketchup/{p-fd1323da.js → p-4597f25d.js} +1 -1
  230. package/dist/ketchup/{p-7664a38d.entry.js → p-51aa248f.entry.js} +2 -2
  231. package/dist/ketchup/{p-af50bc6b.entry.js → p-55fd3f46.entry.js} +1 -1
  232. package/dist/ketchup/p-5c15661d.entry.js +1 -0
  233. package/dist/ketchup/p-5cfaa673.entry.js +1 -0
  234. package/dist/ketchup/{p-2587abcf.entry.js → p-5f583257.entry.js} +1 -1
  235. package/dist/ketchup/{p-55182fcf.js → p-7555c10d.js} +1 -1
  236. package/dist/ketchup/{p-fefa9ae4.entry.js → p-76130e83.entry.js} +1 -1
  237. package/dist/ketchup/{p-be89bc7b.entry.js → p-7bf649f0.entry.js} +1 -1
  238. package/dist/ketchup/{p-aa373c37.entry.js → p-7e1c8fc0.entry.js} +1 -1
  239. package/dist/ketchup/p-80699a95.js +1 -0
  240. package/dist/ketchup/{p-68c5029f.entry.js → p-81debebe.entry.js} +1 -1
  241. package/dist/ketchup/{p-82b5fac1.js → p-8281c9e5.js} +1 -1
  242. package/dist/ketchup/{p-e1f0ade4.entry.js → p-a0f59b05.entry.js} +1 -1
  243. package/dist/ketchup/{p-b3eeb140.entry.js → p-a8a39b08.entry.js} +1 -1
  244. package/dist/ketchup/{p-a8eccd10.entry.js → p-bb854cf5.entry.js} +1 -1
  245. package/dist/ketchup/{p-fb03f2f5.js → p-cd2af1a6.js} +1 -1
  246. package/dist/ketchup/{p-6507e9eb.js → p-d4a879fc.js} +1 -1
  247. package/dist/ketchup/{p-6c995fb2.entry.js → p-d6a7498b.entry.js} +1 -1
  248. package/dist/ketchup/p-d8384990.entry.js +1 -0
  249. package/dist/ketchup/p-da58f8ab.entry.js +39 -0
  250. package/dist/ketchup/p-ecb9fe91.entry.js +1 -0
  251. package/dist/ketchup/{p-3879be61.js → p-f729449f.js} +1 -1
  252. package/dist/loader/index.d.ts +1 -1
  253. package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +3 -2
  254. package/dist/types/components/kup-calendar/kup-calendar.d.ts +6 -1
  255. package/dist/types/components/kup-card/kup-card.d.ts +3 -3
  256. package/dist/types/components/kup-card-list/kup-card-list-declarations.d.ts +35 -0
  257. package/dist/types/components/kup-card-list/kup-card-list.d.ts +62 -0
  258. package/dist/types/components.d.ts +107 -92
  259. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +1 -0
  260. package/dist/types/managers/kup-math/kup-math.d.ts +1 -1
  261. package/dist/types/stencil-public-runtime.d.ts +12 -2
  262. package/dist/types/types/GenericTypes.d.ts +1 -2
  263. package/package.json +8 -5
  264. package/dist/cjs/kup-dash-list.cjs.entry.js +0 -116
  265. package/dist/cjs/kup-dash_2.cjs.entry.js +0 -179
  266. package/dist/collection/assets/dash-list.js +0 -474
  267. package/dist/collection/components/kup-dash/kup-dash.css +0 -136
  268. package/dist/collection/components/kup-dash/kup-dash.js +0 -171
  269. package/dist/collection/components/kup-dash-list/kup-dash-list.css +0 -10
  270. package/dist/collection/components/kup-dash-list/kup-dash-list.js +0 -327
  271. package/dist/components/kup-dash-list.js +0 -288
  272. package/dist/components/kup-dash.d.ts +0 -11
  273. package/dist/components/kup-dash.js +0 -6
  274. package/dist/components/kup-dash2.js +0 -228
  275. package/dist/esm/kup-dash-list.entry.js +0 -112
  276. package/dist/esm/kup-dash_2.entry.js +0 -174
  277. package/dist/esm/polyfills/css-shim.js +0 -1
  278. package/dist/ketchup/p-0b24a2ed.entry.js +0 -1
  279. package/dist/ketchup/p-15e6bfaf.entry.js +0 -1
  280. package/dist/ketchup/p-1ad1cf92.entry.js +0 -9
  281. package/dist/ketchup/p-68cd7d9a.js +0 -1
  282. package/dist/ketchup/p-b5deb573.js +0 -2
  283. package/dist/ketchup/p-c455cc67.entry.js +0 -39
  284. package/dist/ketchup/p-e6cf7db3.entry.js +0 -1
  285. package/dist/ketchup/p-ef21d377.entry.js +0 -1
  286. package/dist/types/components/kup-dash/kup-dash.d.ts +0 -33
  287. package/dist/types/components/kup-dash-list/kup-dash-list.d.ts +0 -22
  288. /package/dist/cjs/{GenericVariables-9cd88034.js → GenericVariables-1d52ba57.js} +0 -0
  289. /package/dist/cjs/{f-button-declarations-76b4fb4c.js → f-button-declarations-3fd791a8.js} +0 -0
  290. /package/dist/esm/{GenericVariables-6dfdd433.js → GenericVariables-d8d0541e.js} +0 -0
  291. /package/dist/esm/{f-button-declarations-fd4965d1.js → f-button-declarations-8a009df1.js} +0 -0
  292. /package/dist/ketchup/{p-ad2e21d2.js → p-635bb4b3.js} +0 -0
  293. /package/dist/ketchup/{p-0fd98ab4.js → p-b00f3575.js} +0 -0
@@ -0,0 +1,481 @@
1
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
+ if (kind === "a" && !f)
3
+ throw new TypeError("Private accessor was defined without a getter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
5
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
6
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
7
+ };
8
+ var _KupCardList_kupManager;
9
+ import { h, Host, forceUpdate, } from "@stencil/core";
10
+ import { kupManagerInstance, } from "../../managers/kup-manager/kup-manager";
11
+ import { KupCardListProps, } from "./kup-card-list-declarations";
12
+ import { KupCardFamily } from "../kup-card/kup-card-declarations";
13
+ import { componentWrapperId } from "../../variables/GenericVariables";
14
+ import { getCellValueForDisplay } from "../../utils/cell-utils";
15
+ import { getProps, setProps } from "../../utils/utils";
16
+ export class KupCardList {
17
+ constructor() {
18
+ /*-------------------------------------------------*/
19
+ /* I n t e r n a l V a r i a b l e s */
20
+ /*-------------------------------------------------*/
21
+ _KupCardList_kupManager.set(this, kupManagerInstance());
22
+ this.columnsNumber = 1;
23
+ this.customStyle = '';
24
+ this.data = null;
25
+ this.fullWidth = true;
26
+ this.horizontal = false;
27
+ this.isClickable = false;
28
+ }
29
+ /*-------------------------------------------------*/
30
+ /* P u b l i c M e t h o d s */
31
+ /*-------------------------------------------------*/
32
+ /**
33
+ * Used to retrieve component's props values.
34
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
35
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
36
+ */
37
+ async getProps(descriptions) {
38
+ return getProps(this, KupCardListProps, descriptions);
39
+ }
40
+ /**
41
+ * This method is used to trigger a new render of the component.
42
+ */
43
+ async refresh() {
44
+ forceUpdate(this);
45
+ }
46
+ /**
47
+ * Sets the props to the component.
48
+ * @param {GenericObject} props - Object containing props that will be set to the component.
49
+ */
50
+ async setProps(props) {
51
+ setProps(this, KupCardListProps, props);
52
+ }
53
+ /*-------------------------------------------------*/
54
+ /* L i f e c y c l e H o o k s */
55
+ /*-------------------------------------------------*/
56
+ componentWillLoad() {
57
+ __classPrivateFieldGet(this, _KupCardList_kupManager, "f").debug.logLoad(this, false);
58
+ __classPrivateFieldGet(this, _KupCardList_kupManager, "f").theme.register(this);
59
+ }
60
+ componentDidLoad() {
61
+ __classPrivateFieldGet(this, _KupCardList_kupManager, "f").debug.logLoad(this, true);
62
+ }
63
+ componentDidRender() {
64
+ __classPrivateFieldGet(this, _KupCardList_kupManager, "f").debug.logRender(this, true);
65
+ }
66
+ render() {
67
+ if (!this.data || !this.data.columns || !this.data.columns.length) {
68
+ return;
69
+ }
70
+ const content = [];
71
+ let decvalueCol, descrCol, iconCol, iconcolorCol, intvalueCol, layoutCol, measureCol, textcolorCol, valueCol, valuecolorCol;
72
+ for (let index = 0; index < this.data.columns.length; index++) {
73
+ const column = this.data.columns[index];
74
+ if (column.cardListOption) {
75
+ switch (column.cardListOption) {
76
+ case 'decvalue':
77
+ decvalueCol = column;
78
+ break;
79
+ case 'descr':
80
+ descrCol = column;
81
+ break;
82
+ case 'icon':
83
+ iconCol = column;
84
+ break;
85
+ case 'iconcolor':
86
+ iconcolorCol = column;
87
+ break;
88
+ case 'intvalue':
89
+ intvalueCol = column;
90
+ break;
91
+ case 'layout':
92
+ layoutCol = column;
93
+ break;
94
+ case 'measure':
95
+ measureCol = column;
96
+ break;
97
+ case 'textcolor':
98
+ textcolorCol = column;
99
+ break;
100
+ case 'value':
101
+ valueCol = column;
102
+ break;
103
+ case 'valuecolor':
104
+ valuecolorCol = column;
105
+ break;
106
+ }
107
+ }
108
+ }
109
+ for (let index = 0; index < this.data.rows.length; index++) {
110
+ const row = this.data.rows[index];
111
+ const data = {
112
+ color: [],
113
+ image: [],
114
+ text: [],
115
+ };
116
+ const layout = layoutCol && row.cells[layoutCol.name].value
117
+ ? parseInt(row.cells[layoutCol.name].value)
118
+ : 1;
119
+ const card = (h("kup-card", { class: this.isClickable ? 'is-clickable' : '', customStyle: "#kup-component, .scalable-card { min-height: var(--kup_cardlist_cardsminheight) }", data: data, layoutFamily: KupCardFamily.SCALABLE, layoutNumber: layout, key: index, "onKup-card-click": () => {
120
+ if (this.isClickable) {
121
+ this.kupCardListClickEvent.emit({
122
+ comp: this,
123
+ id: this.rootElement.id,
124
+ index,
125
+ row: row,
126
+ });
127
+ }
128
+ }, slot: index.toString() }));
129
+ const loadData = (col, prop, index) => {
130
+ if (col) {
131
+ const cell = row.cells[col.name];
132
+ if (cell) {
133
+ const value = cell.value;
134
+ switch (prop) {
135
+ case 'color':
136
+ data[prop][index] =
137
+ __classPrivateFieldGet(this, _KupCardList_kupManager, "f").theme.colorCheck(value).hexColor;
138
+ break;
139
+ case 'image':
140
+ data[prop][index] = { resource: value };
141
+ break;
142
+ default:
143
+ data[prop][index] = getCellValueForDisplay(col, cell);
144
+ break;
145
+ }
146
+ }
147
+ }
148
+ };
149
+ switch (layout) {
150
+ case 1:
151
+ loadData(textcolorCol, 'color', 0);
152
+ loadData(valuecolorCol, 'color', 1);
153
+ loadData(descrCol, 'text', 0);
154
+ loadData(valueCol, 'text', 1);
155
+ break;
156
+ case 2:
157
+ loadData(iconcolorCol, 'color', 0);
158
+ loadData(valuecolorCol, 'color', 1);
159
+ loadData(iconCol, 'image', 0);
160
+ loadData(intvalueCol, 'text', 0);
161
+ loadData(decvalueCol, 'text', 1);
162
+ loadData(measureCol, 'text', 2);
163
+ break;
164
+ case 3:
165
+ loadData(valuecolorCol, 'color', 0);
166
+ loadData(textcolorCol, 'color', 1);
167
+ loadData(valueCol, 'text', 0);
168
+ loadData(descrCol, 'text', 1);
169
+ break;
170
+ case 4:
171
+ loadData(iconcolorCol, 'color', 0);
172
+ loadData(valuecolorCol, 'color', 1);
173
+ loadData(textcolorCol, 'color', 2);
174
+ loadData(iconCol, 'image', 0);
175
+ loadData(intvalueCol, 'text', 0);
176
+ loadData(decvalueCol, 'text', 1);
177
+ loadData(measureCol, 'text', 2);
178
+ loadData(descrCol, 'text', 3);
179
+ break;
180
+ case 5:
181
+ loadData(iconcolorCol, 'color', 0);
182
+ loadData(textcolorCol, 'color', 1);
183
+ loadData(valuecolorCol, 'color', 2);
184
+ loadData(iconCol, 'image', 0);
185
+ loadData(descrCol, 'text', 0);
186
+ loadData(valueCol, 'text', 1);
187
+ break;
188
+ case 6:
189
+ loadData(iconcolorCol, 'color', 0);
190
+ loadData(valuecolorCol, 'color', 1);
191
+ loadData(textcolorCol, 'color', 2);
192
+ loadData(iconCol, 'image', 0);
193
+ loadData(valueCol, 'text', 0);
194
+ loadData(descrCol, 'text', 1);
195
+ break;
196
+ case 7:
197
+ loadData(iconcolorCol, 'color', 0);
198
+ loadData(valuecolorCol, 'color', 1);
199
+ loadData(textcolorCol, 'color', 2);
200
+ loadData(iconCol, 'image', 0);
201
+ loadData(valueCol, 'text', 0);
202
+ loadData(descrCol, 'text', 1);
203
+ break;
204
+ case 8:
205
+ loadData(iconcolorCol, 'color', 0);
206
+ loadData(valuecolorCol, 'color', 1);
207
+ loadData(textcolorCol, 'color', 2);
208
+ loadData(iconCol, 'image', 0);
209
+ loadData(valueCol, 'text', 0);
210
+ loadData(descrCol, 'text', 1);
211
+ break;
212
+ }
213
+ content.push(card);
214
+ }
215
+ return (h(Host, null, h("style", null, __classPrivateFieldGet(this, _KupCardList_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, h("kup-grid", { class: `${this.fullWidth ? 'kup-full-width' : ''} scalable-cards`, columns: this.columnsNumber, singleLine: this.horizontal }, content))));
216
+ }
217
+ disconnectedCallback() {
218
+ __classPrivateFieldGet(this, _KupCardList_kupManager, "f").theme.unregister(this);
219
+ }
220
+ static get is() { return "kup-card-list"; }
221
+ static get encapsulation() { return "shadow"; }
222
+ static get originalStyleUrls() {
223
+ return {
224
+ "$": ["kup-card-list.scss"]
225
+ };
226
+ }
227
+ static get styleUrls() {
228
+ return {
229
+ "$": ["kup-card-list.css"]
230
+ };
231
+ }
232
+ static get properties() {
233
+ return {
234
+ "columnsNumber": {
235
+ "type": "number",
236
+ "mutable": false,
237
+ "complexType": {
238
+ "original": "number",
239
+ "resolved": "number",
240
+ "references": {}
241
+ },
242
+ "required": false,
243
+ "optional": false,
244
+ "docs": {
245
+ "tags": [{
246
+ "name": "default",
247
+ "text": "1"
248
+ }],
249
+ "text": "Sets the number of columns."
250
+ },
251
+ "attribute": "columns-number",
252
+ "reflect": false,
253
+ "defaultValue": "1"
254
+ },
255
+ "customStyle": {
256
+ "type": "string",
257
+ "mutable": false,
258
+ "complexType": {
259
+ "original": "string",
260
+ "resolved": "string",
261
+ "references": {}
262
+ },
263
+ "required": false,
264
+ "optional": false,
265
+ "docs": {
266
+ "tags": [{
267
+ "name": "default",
268
+ "text": "\"\""
269
+ }, {
270
+ "name": "see",
271
+ "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
272
+ }],
273
+ "text": "Custom style of the component."
274
+ },
275
+ "attribute": "custom-style",
276
+ "reflect": false,
277
+ "defaultValue": "''"
278
+ },
279
+ "data": {
280
+ "type": "unknown",
281
+ "mutable": false,
282
+ "complexType": {
283
+ "original": "KupCardListData",
284
+ "resolved": "KupCardListData",
285
+ "references": {
286
+ "KupCardListData": {
287
+ "location": "import",
288
+ "path": "./kup-card-list-declarations",
289
+ "id": "src/components/kup-card-list/kup-card-list-declarations.ts::KupCardListData"
290
+ }
291
+ }
292
+ },
293
+ "required": false,
294
+ "optional": false,
295
+ "docs": {
296
+ "tags": [{
297
+ "name": "default",
298
+ "text": "null"
299
+ }],
300
+ "text": "Actual data of the component."
301
+ },
302
+ "defaultValue": "null"
303
+ },
304
+ "fullWidth": {
305
+ "type": "boolean",
306
+ "mutable": false,
307
+ "complexType": {
308
+ "original": "boolean",
309
+ "resolved": "boolean",
310
+ "references": {}
311
+ },
312
+ "required": false,
313
+ "optional": false,
314
+ "docs": {
315
+ "tags": [{
316
+ "name": "default",
317
+ "text": "true"
318
+ }],
319
+ "text": "Sets whether the component occupies all available width."
320
+ },
321
+ "attribute": "full-width",
322
+ "reflect": false,
323
+ "defaultValue": "true"
324
+ },
325
+ "horizontal": {
326
+ "type": "boolean",
327
+ "mutable": false,
328
+ "complexType": {
329
+ "original": "boolean",
330
+ "resolved": "boolean",
331
+ "references": {}
332
+ },
333
+ "required": false,
334
+ "optional": false,
335
+ "docs": {
336
+ "tags": [{
337
+ "name": "default",
338
+ "text": "false"
339
+ }],
340
+ "text": "Sets whether the cards are placed horizontally or not."
341
+ },
342
+ "attribute": "horizontal",
343
+ "reflect": false,
344
+ "defaultValue": "false"
345
+ },
346
+ "isClickable": {
347
+ "type": "boolean",
348
+ "mutable": false,
349
+ "complexType": {
350
+ "original": "boolean",
351
+ "resolved": "boolean",
352
+ "references": {}
353
+ },
354
+ "required": false,
355
+ "optional": false,
356
+ "docs": {
357
+ "tags": [{
358
+ "name": "default",
359
+ "text": "false"
360
+ }],
361
+ "text": "Sets whether a single card is clickable or not."
362
+ },
363
+ "attribute": "is-clickable",
364
+ "reflect": false,
365
+ "defaultValue": "false"
366
+ }
367
+ };
368
+ }
369
+ static get events() {
370
+ return [{
371
+ "method": "kupCardListClickEvent",
372
+ "name": "kup-cardlist-click",
373
+ "bubbles": true,
374
+ "cancelable": true,
375
+ "composed": true,
376
+ "docs": {
377
+ "tags": [],
378
+ "text": ""
379
+ },
380
+ "complexType": {
381
+ "original": "KupCardListClickEventPayload",
382
+ "resolved": "KupCardListClickEventPayload",
383
+ "references": {
384
+ "KupCardListClickEventPayload": {
385
+ "location": "import",
386
+ "path": "./kup-card-list-declarations",
387
+ "id": "src/components/kup-card-list/kup-card-list-declarations.ts::KupCardListClickEventPayload"
388
+ }
389
+ }
390
+ }
391
+ }];
392
+ }
393
+ static get methods() {
394
+ return {
395
+ "getProps": {
396
+ "complexType": {
397
+ "signature": "(descriptions?: boolean) => Promise<GenericObject>",
398
+ "parameters": [{
399
+ "tags": [{
400
+ "name": "param",
401
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
402
+ }],
403
+ "text": "- When provided and true, the result will be the list of props with their description."
404
+ }],
405
+ "references": {
406
+ "Promise": {
407
+ "location": "global",
408
+ "id": "global::Promise"
409
+ },
410
+ "GenericObject": {
411
+ "location": "import",
412
+ "path": "../../types/GenericTypes",
413
+ "id": "src/types/GenericTypes.ts::GenericObject"
414
+ }
415
+ },
416
+ "return": "Promise<GenericObject>"
417
+ },
418
+ "docs": {
419
+ "text": "Used to retrieve component's props values.",
420
+ "tags": [{
421
+ "name": "param",
422
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
423
+ }, {
424
+ "name": "returns",
425
+ "text": "List of props as object, each key will be a prop."
426
+ }]
427
+ }
428
+ },
429
+ "refresh": {
430
+ "complexType": {
431
+ "signature": "() => Promise<void>",
432
+ "parameters": [],
433
+ "references": {
434
+ "Promise": {
435
+ "location": "global",
436
+ "id": "global::Promise"
437
+ }
438
+ },
439
+ "return": "Promise<void>"
440
+ },
441
+ "docs": {
442
+ "text": "This method is used to trigger a new render of the component.",
443
+ "tags": []
444
+ }
445
+ },
446
+ "setProps": {
447
+ "complexType": {
448
+ "signature": "(props: GenericObject) => Promise<void>",
449
+ "parameters": [{
450
+ "tags": [{
451
+ "name": "param",
452
+ "text": "props - Object containing props that will be set to the component."
453
+ }],
454
+ "text": "- Object containing props that will be set to the component."
455
+ }],
456
+ "references": {
457
+ "Promise": {
458
+ "location": "global",
459
+ "id": "global::Promise"
460
+ },
461
+ "GenericObject": {
462
+ "location": "import",
463
+ "path": "../../types/GenericTypes",
464
+ "id": "src/types/GenericTypes.ts::GenericObject"
465
+ }
466
+ },
467
+ "return": "Promise<void>"
468
+ },
469
+ "docs": {
470
+ "text": "Sets the props to the component.",
471
+ "tags": [{
472
+ "name": "param",
473
+ "text": "props - Object containing props that will be set to the component."
474
+ }]
475
+ }
476
+ }
477
+ };
478
+ }
479
+ static get elementRef() { return "rootElement"; }
480
+ }
481
+ _KupCardList_kupManager = new WeakMap();
@@ -1,12 +1,12 @@
1
- import { forceUpdate, h, Host, } from '@stencil/core';
2
- import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
3
- import { getProps, setProps } from '../../utils/utils';
4
- import { componentWrapperId } from '../../variables/GenericVariables';
5
- import { KupCellProps } from './kup-cell-declarations';
6
- import { FCell } from '../../f-components/f-cell/f-cell';
7
- import { FCellPadding, } from '../../f-components/f-cell/f-cell-declarations';
8
- import { KupDragEffect, } from '../../managers/kup-interact/kup-interact-declarations';
9
- import { KupLanguageGeneric } from '../../managers/kup-language/kup-language-declarations';
1
+ import { forceUpdate, h, Host, } from "@stencil/core";
2
+ import { kupManagerInstance, } from "../../managers/kup-manager/kup-manager";
3
+ import { getProps, setProps } from "../../utils/utils";
4
+ import { componentWrapperId } from "../../variables/GenericVariables";
5
+ import { KupCellProps } from "./kup-cell-declarations";
6
+ import { FCell } from "../../f-components/f-cell/f-cell";
7
+ import { FCellPadding, } from "../../f-components/f-cell/f-cell-declarations";
8
+ import { KupDragEffect, } from "../../managers/kup-interact/kup-interact-declarations";
9
+ import { KupLanguageGeneric } from "../../managers/kup-language/kup-language-declarations";
10
10
  export class KupCell {
11
11
  constructor() {
12
12
  /*-------------------------------------------------*/
@@ -205,7 +205,8 @@ export class KupCell {
205
205
  "references": {
206
206
  "KupDataCell": {
207
207
  "location": "import",
208
- "path": "../../managers/kup-data/kup-data-declarations"
208
+ "path": "../../managers/kup-data/kup-data-declarations",
209
+ "id": "src/managers/kup-data/kup-data-declarations.ts::KupDataCell"
209
210
  }
210
211
  }
211
212
  },
@@ -229,7 +230,8 @@ export class KupCell {
229
230
  "references": {
230
231
  "FCellPadding": {
231
232
  "location": "import",
232
- "path": "../../f-components/f-cell/f-cell-declarations"
233
+ "path": "../../f-components/f-cell/f-cell-declarations",
234
+ "id": "src/f-components/f-cell/f-cell-declarations.ts::FCellPadding"
233
235
  }
234
236
  }
235
237
  },
@@ -280,7 +282,8 @@ export class KupCell {
280
282
  }],
281
283
  "references": {
282
284
  "Promise": {
283
- "location": "global"
285
+ "location": "global",
286
+ "id": "global::Promise"
284
287
  }
285
288
  },
286
289
  "return": "Promise<void>"
@@ -305,11 +308,13 @@ export class KupCell {
305
308
  }],
306
309
  "references": {
307
310
  "Promise": {
308
- "location": "global"
311
+ "location": "global",
312
+ "id": "global::Promise"
309
313
  },
310
314
  "GenericObject": {
311
315
  "location": "import",
312
- "path": "../../types/GenericTypes"
316
+ "path": "../../types/GenericTypes",
317
+ "id": "src/types/GenericTypes.ts::GenericObject"
313
318
  }
314
319
  },
315
320
  "return": "Promise<GenericObject>"
@@ -331,7 +336,8 @@ export class KupCell {
331
336
  "parameters": [],
332
337
  "references": {
333
338
  "Promise": {
334
- "location": "global"
339
+ "location": "global",
340
+ "id": "global::Promise"
335
341
  }
336
342
  },
337
343
  "return": "Promise<void>"
@@ -353,7 +359,8 @@ export class KupCell {
353
359
  }],
354
360
  "references": {
355
361
  "Promise": {
356
- "location": "global"
362
+ "location": "global",
363
+ "id": "global::Promise"
357
364
  }
358
365
  },
359
366
  "return": "Promise<void>"
@@ -378,11 +385,13 @@ export class KupCell {
378
385
  }],
379
386
  "references": {
380
387
  "Promise": {
381
- "location": "global"
388
+ "location": "global",
389
+ "id": "global::Promise"
382
390
  },
383
391
  "GenericObject": {
384
392
  "location": "import",
385
- "path": "../../types/GenericTypes"
393
+ "path": "../../types/GenericTypes",
394
+ "id": "src/types/GenericTypes.ts::GenericObject"
386
395
  }
387
396
  },
388
397
  "return": "Promise<void>"
@@ -1,8 +1,8 @@
1
- import { formatToNumber } from '../../utils/cell-utils';
2
- import { getColumnByName } from '../../utils/cell-utils';
3
- import { KupObjects } from '../../managers/kup-objects/kup-objects';
4
- import { KupDates } from '../../managers/kup-dates/kup-dates';
5
- import { KupDatesNormalize } from '../../managers/kup-dates/kup-dates-declarations';
1
+ import { formatToNumber } from "../../utils/cell-utils";
2
+ import { getColumnByName } from "../../utils/cell-utils";
3
+ import { KupObjects } from "../../managers/kup-objects/kup-objects";
4
+ import { KupDates } from "../../managers/kup-dates/kup-dates";
5
+ import { KupDatesNormalize } from "../../managers/kup-dates/kup-dates-declarations";
6
6
  export function getSerieDecode(serie, series) {
7
7
  if (serie == null || series == null) {
8
8
  return null;