@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
@@ -1451,7 +1451,7 @@
1451
1451
  }
1452
1452
  .scalable-layout-2 .scalable-element {
1453
1453
  display: grid;
1454
- grid-template-columns: 1fr 1fr 0.5fr 0.5fr;
1454
+ grid-template-columns: 0.25fr 1fr 0.5fr 0.5fr;
1455
1455
  }
1456
1456
  .scalable-layout-2 .icon {
1457
1457
  margin: auto;
@@ -1543,7 +1543,6 @@
1543
1543
  width: 100%;
1544
1544
  min-width: max-content;
1545
1545
  position: relative;
1546
- bottom: -10%;
1547
1546
  }
1548
1547
 
1549
1548
  .scalable-layout-6 #image1 img {
@@ -1587,6 +1586,7 @@
1587
1586
  }
1588
1587
  .scalable-layout-7 .value {
1589
1588
  font-size: 200%;
1589
+ text-align: right;
1590
1590
  }
1591
1591
  .scalable-layout-7 .descr {
1592
1592
  text-align: right;
@@ -1594,7 +1594,6 @@
1594
1594
  width: 100%;
1595
1595
  min-width: max-content;
1596
1596
  position: relative;
1597
- bottom: 10%;
1598
1597
  }
1599
1598
 
1600
1599
  .scalable-layout-8 #image1 img {
@@ -1610,7 +1609,7 @@
1610
1609
  font-size: 75%;
1611
1610
  }
1612
1611
  .scalable-layout-8 .value {
1613
- margin: 0 10%;
1612
+ margin: 0 8px;
1614
1613
  font-size: 250%;
1615
1614
  }
1616
1615
  .scalable-layout-8 .descr {
@@ -1625,7 +1624,6 @@
1625
1624
  display: flex;
1626
1625
  justify-content: unset;
1627
1626
  overflow: auto;
1628
- box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
1629
1627
  border-radius: 4px;
1630
1628
  }
1631
1629
  .scalable-layout-9 .section-1 {
@@ -1660,10 +1658,10 @@
1660
1658
 
1661
1659
  .scalable-card {
1662
1660
  align-items: center;
1663
- box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
1661
+ box-shadow: var(--kup_card_scalable_box_shadow);
1664
1662
  border-radius: 4px;
1665
1663
  display: flex;
1666
- font-size: calc(var(--kup-font-size) * var(--kup_card_multiplier));
1664
+ font-size: var(--kup_card_scalable_static_font_size, calc(var(--kup_card_scalable_starting_font_size) * var(--kup_card_scalable_multiplier, 1)));
1667
1665
  height: 100%;
1668
1666
  justify-content: center;
1669
1667
  position: relative;
@@ -2841,6 +2839,8 @@
2841
2839
  /**
2842
2840
  * @prop --kup-card-backdrop: Backdrop of the component when is visible.
2843
2841
  * @prop --kup-card-ripple-color: Sets color of ripple effect (for Material layouts).
2842
+ * @prop --kup-card-scalable-box-shadow: Box shadow of the scalable layouts.
2843
+ * @prop --kup-card-scalable-starting-font-size: Starting font size for scalable cards.
2844
2844
  */
2845
2845
  :host {
2846
2846
  --kup_card_backdrop: var(--kup-card-backdrop, rgba(0, 0, 0, 0.32));
@@ -2848,6 +2848,19 @@
2848
2848
  --kup-card-ripple-color,
2849
2849
  var(--kup-primary-color)
2850
2850
  );
2851
+ --kup_card_scalable_box_shadow: var(
2852
+ --kup-card-scalable-box-shadow,
2853
+ 0 2px 1px -1px rgba(0, 0, 0, 0.2),
2854
+ 0 1px 1px 0 rgba(0, 0, 0, 0.14),
2855
+ 0 1px 3px 0 rgba(0, 0, 0, 0.12)
2856
+ );
2857
+ --kup_card_scalable_starting_font_size: var(
2858
+ --kup-card-scalable-starting-font-size,
2859
+ 3em
2860
+ );
2861
+ --kup_card_scalable_static_font_size: var(
2862
+ --kup-card-scalable-static-font-size
2863
+ );
2851
2864
  display: block;
2852
2865
  font-size: var(--kup-font-size);
2853
2866
  height: var(--kup_card_height);
@@ -1,21 +1,21 @@
1
- import { forceUpdate, h, Host, } from '@stencil/core';
2
- import { MDCRipple } from '@material/ripple';
3
- import * as boxLayouts from './box/kup-card-box';
4
- import * as builtInLayouts from './built-in/kup-card-built-in';
5
- import * as collapsibleLayouts from './collapsible/kup-card-collapsible';
6
- import * as dialogLayouts from './dialog/kup-card-dialog';
7
- import * as freeLayouts from './free/kup-card-free';
8
- import * as scalableLayouts from './scalable/kup-card-scalable';
9
- import * as standardLayouts from './standard/kup-card-standard';
10
- import Picker from 'vanilla-picker';
11
- import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
12
- import { KupCardFamily, KupCardCSSClasses, KupCardIds, KupCardProps, } from './kup-card-declarations';
13
- import { FImage } from '../../f-components/f-image/f-image';
14
- import { KupDebugCategory } from '../../managers/kup-debug/kup-debug-declarations';
15
- import { KupLanguageGeneric } from '../../managers/kup-language/kup-language-declarations';
16
- import { layoutSpecificEvents } from './kup-card-helper';
17
- import { getProps, setProps } from '../../utils/utils';
18
- import { componentWrapperId } from '../../variables/GenericVariables';
1
+ import { forceUpdate, h, Host, } from "@stencil/core";
2
+ import { MDCRipple } from "@material/ripple";
3
+ import * as boxLayouts from "./box/kup-card-box";
4
+ import * as builtInLayouts from "./built-in/kup-card-built-in";
5
+ import * as collapsibleLayouts from "./collapsible/kup-card-collapsible";
6
+ import * as dialogLayouts from "./dialog/kup-card-dialog";
7
+ import * as freeLayouts from "./free/kup-card-free";
8
+ import * as scalableLayouts from "./scalable/kup-card-scalable";
9
+ import * as standardLayouts from "./standard/kup-card-standard";
10
+ import Picker from "vanilla-picker";
11
+ import { kupManagerInstance, } from "../../managers/kup-manager/kup-manager";
12
+ import { KupCardFamily, KupCardCSSClasses, KupCardIds, KupCardProps, } from "./kup-card-declarations";
13
+ import { FImage } from "../../f-components/f-image/f-image";
14
+ import { KupDebugCategory } from "../../managers/kup-debug/kup-debug-declarations";
15
+ import { KupLanguageGeneric } from "../../managers/kup-language/kup-language-declarations";
16
+ import { layoutSpecificEvents } from "./kup-card-helper";
17
+ import { getProps, setProps } from "../../utils/utils";
18
+ import { componentWrapperId } from "../../variables/GenericVariables";
19
19
  export class KupCard {
20
20
  constructor() {
21
21
  /*-------------------------------------------------*/
@@ -324,17 +324,16 @@ export class KupCard {
324
324
  }
325
325
  /**
326
326
  * This method is invoked by the layout manager when the layout family is scalable.
327
- * The content of the card (.scalable-element) will be resized to fit the wrapper (.scalable-card).
328
- * The scaling is performed by using a CSS variable (--kup_card_multiplier) which will impact the card's font-size.
327
+ * The content of the card (.scalable-element) will be resized to fit the wrapper (kup-card).
328
+ * The scaling is performed by using a CSS variable (--kup_card_scalable_multiplier) which will impact the card's font-size.
329
329
  * When there is empty space, the multiplier will be increased, as will the content.
330
330
  * Viceversa, when the content exceeds the boundaries, the multiplier will be decreased.
331
331
  */
332
- scalable() {
332
+ async scalable() {
333
333
  this.scalingActive = true;
334
334
  const root = this.rootElement.shadowRoot;
335
335
  const el = root.querySelector('.scalable-element');
336
- const card = root.querySelector('.scalable-card');
337
- const multiplierStep = 0.1;
336
+ const card = this.rootElement;
338
337
  /**
339
338
  * cardHeight sets the maximum height of the content, when exceeded the multiplier will be reduced (90%).
340
339
  */
@@ -344,37 +343,41 @@ export class KupCard {
344
343
  */
345
344
  const cardWidthLow = (85 / 100) * card.clientWidth;
346
345
  const cardWidthHigh = (95 / 100) * card.clientWidth;
347
- let tooManyAttempts = 2000;
348
- let multiplier = parseFloat(card.style.getPropertyValue('--kup_card_multiplier'));
349
- if (multiplier < 0.1) {
350
- multiplier = 1;
351
- }
346
+ const multiplierStep = 0.1;
347
+ let tooManyAttempts = 75;
348
+ let multiplier = 1;
349
+ let redrawCount = 0;
350
+ const redraw = async () => {
351
+ card.style.setProperty('--kup_card_scalable_multiplier', multiplier.toFixed(1) + '');
352
+ this.kupManager.debug.logMessage(this, 'Redrawing scalable card (' + ++redrawCount + ').', KupDebugCategory.INFO);
353
+ };
354
+ const roundMultiplier = (m) => {
355
+ return parseFloat(m.toFixed(1));
356
+ };
357
+ card.style.opacity = '0';
358
+ card.style.transition = 'opacity 125ms ease-in';
352
359
  /**
353
360
  * Cycle to adjust the width.
354
361
  */
362
+ await redraw();
355
363
  while ((el.clientWidth < cardWidthLow || el.clientWidth > cardWidthHigh) &&
356
364
  tooManyAttempts > 0 &&
357
365
  multiplier > multiplierStep) {
358
366
  tooManyAttempts--;
359
- if (el.clientWidth < cardWidthLow) {
360
- multiplier = multiplier + multiplierStep;
361
- card.style.setProperty('--kup_card_multiplier', multiplier + '');
367
+ if (el.clientWidth < cardWidthLow &&
368
+ el.clientHeight <= cardHeight) {
369
+ multiplier = roundMultiplier(multiplier + multiplierStep);
370
+ await redraw();
362
371
  }
363
372
  else if (el.clientWidth > cardWidthHigh) {
364
- multiplier = multiplier - multiplierStep;
365
- card.style.setProperty('--kup_card_multiplier', multiplier + '');
373
+ multiplier = roundMultiplier(multiplier - multiplierStep);
374
+ await redraw();
366
375
  }
367
376
  else {
368
377
  tooManyAttempts = 0;
369
378
  }
370
379
  }
371
- /**
372
- * Cycle to adjust the height, in case it exceeds its boundaries after having adjusted width.
373
- */
374
- while (el.clientHeight > cardHeight && multiplier > multiplierStep) {
375
- multiplier = multiplier - multiplierStep;
376
- card.style.setProperty('--kup_card_multiplier', multiplier + '');
377
- }
380
+ card.style.opacity = '1';
378
381
  this.scalingActive = false;
379
382
  }
380
383
  /*-------------------------------------------------*/
@@ -477,7 +480,8 @@ export class KupCard {
477
480
  "references": {
478
481
  "KupCardData": {
479
482
  "location": "import",
480
- "path": "./kup-card-declarations"
483
+ "path": "./kup-card-declarations",
484
+ "id": "src/components/kup-card/kup-card-declarations.ts::KupCardData"
481
485
  }
482
486
  }
483
487
  },
@@ -522,7 +526,8 @@ export class KupCard {
522
526
  "references": {
523
527
  "KupCardFamily": {
524
528
  "location": "import",
525
- "path": "./kup-card-declarations"
529
+ "path": "./kup-card-declarations",
530
+ "id": "src/components/kup-card/kup-card-declarations.ts::KupCardFamily"
526
531
  }
527
532
  }
528
533
  },
@@ -642,7 +647,8 @@ export class KupCard {
642
647
  "references": {
643
648
  "KupCardClickPayload": {
644
649
  "location": "import",
645
- "path": "./kup-card-declarations"
650
+ "path": "./kup-card-declarations",
651
+ "id": "src/components/kup-card/kup-card-declarations.ts::KupCardClickPayload"
646
652
  }
647
653
  }
648
654
  }
@@ -662,7 +668,8 @@ export class KupCard {
662
668
  "references": {
663
669
  "KupEventPayload": {
664
670
  "location": "import",
665
- "path": "../../types/GenericTypes"
671
+ "path": "../../types/GenericTypes",
672
+ "id": "src/types/GenericTypes.ts::KupEventPayload"
666
673
  }
667
674
  }
668
675
  }
@@ -682,7 +689,8 @@ export class KupCard {
682
689
  "references": {
683
690
  "KupCardEventPayload": {
684
691
  "location": "import",
685
- "path": "./kup-card-declarations"
692
+ "path": "./kup-card-declarations",
693
+ "id": "src/components/kup-card/kup-card-declarations.ts::KupCardEventPayload"
686
694
  }
687
695
  }
688
696
  }
@@ -702,7 +710,8 @@ export class KupCard {
702
710
  "references": {
703
711
  "KupEventPayload": {
704
712
  "location": "import",
705
- "path": "../../types/GenericTypes"
713
+ "path": "../../types/GenericTypes",
714
+ "id": "src/types/GenericTypes.ts::KupEventPayload"
706
715
  }
707
716
  }
708
717
  }
@@ -722,11 +731,13 @@ export class KupCard {
722
731
  }],
723
732
  "references": {
724
733
  "Promise": {
725
- "location": "global"
734
+ "location": "global",
735
+ "id": "global::Promise"
726
736
  },
727
737
  "GenericObject": {
728
738
  "location": "import",
729
- "path": "../../types/GenericTypes"
739
+ "path": "../../types/GenericTypes",
740
+ "id": "src/types/GenericTypes.ts::GenericObject"
730
741
  }
731
742
  },
732
743
  "return": "Promise<GenericObject>"
@@ -748,7 +759,8 @@ export class KupCard {
748
759
  "parameters": [],
749
760
  "references": {
750
761
  "Promise": {
751
- "location": "global"
762
+ "location": "global",
763
+ "id": "global::Promise"
752
764
  }
753
765
  },
754
766
  "return": "Promise<void>"
@@ -764,7 +776,8 @@ export class KupCard {
764
776
  "parameters": [],
765
777
  "references": {
766
778
  "Promise": {
767
- "location": "global"
779
+ "location": "global",
780
+ "id": "global::Promise"
768
781
  }
769
782
  },
770
783
  "return": "Promise<void>"
@@ -786,11 +799,13 @@ export class KupCard {
786
799
  }],
787
800
  "references": {
788
801
  "Promise": {
789
- "location": "global"
802
+ "location": "global",
803
+ "id": "global::Promise"
790
804
  },
791
805
  "GenericObject": {
792
806
  "location": "import",
793
- "path": "../../types/GenericTypes"
807
+ "path": "../../types/GenericTypes",
808
+ "id": "src/types/GenericTypes.ts::GenericObject"
794
809
  }
795
810
  },
796
811
  "return": "Promise<void>"
@@ -1,7 +1,7 @@
1
- import { h } from '@stencil/core';
2
- import { FImage } from '../../../f-components/f-image/f-image';
3
- import { KupThemeColorValues } from '../../../managers/kup-theme/kup-theme-declarations';
4
- import { FButton } from '../../../f-components/f-button/f-button';
1
+ import { h } from "@stencil/core";
2
+ import { FImage } from "../../../f-components/f-image/f-image";
3
+ import { KupThemeColorValues } from "../../../managers/kup-theme/kup-theme-declarations";
4
+ import { FButton } from "../../../f-components/f-button/f-button";
5
5
  const dom = document.documentElement;
6
6
  /**
7
7
  * 1st scalable card layout, column of 2 texts.
@@ -9,16 +9,16 @@ const dom = document.documentElement;
9
9
  * @returns {VNode} 1st scalable layout virtual node.
10
10
  */
11
11
  export function create1(component) {
12
+ //Image color
13
+ const colorArray = component.data['color']
14
+ ? component.data['color']
15
+ : [];
12
16
  //Title, subtitle
13
17
  let textIndex = 0;
14
18
  const textArray = component.data['text']
15
19
  ? component.data['text']
16
20
  : [];
17
- //Dynamic CSS variables
18
- let CSSVariables = {
19
- ['--kup_card_multiplier']: '1',
20
- };
21
- return (h("div", { class: `scalable-layout-${component.layoutNumber} scalable-card`, style: CSSVariables }, h("div", { class: "scalable-element" }, h("div", { class: "descr" }, h("div", null, textArray[textIndex] ? textArray[textIndex] : '')), h("div", { class: "value" }, h("div", null, textArray[++textIndex] ? textArray[textIndex] : '')))));
21
+ return (h("div", { class: `scalable-layout-${component.layoutNumber} scalable-card` }, h("div", { class: "scalable-element" }, h("div", { class: "descr" }, h("div", { style: colorArray[0] ? { color: colorArray[0] } : undefined }, textArray[textIndex] ? textArray[textIndex] : '')), h("div", { class: "value" }, h("div", { style: colorArray[1] ? { color: colorArray[1] } : undefined }, textArray[++textIndex] ? textArray[textIndex] : '')))));
22
22
  }
23
23
  /**
24
24
  * 2nd scalable card layout, used to display numerical values.
@@ -35,17 +35,16 @@ export function create2(component) {
35
35
  ? component.data['image']
36
36
  : [];
37
37
  //Value, decimal value, measurement unit
38
- let textIndex = 0;
39
38
  const textArray = component.data['text']
40
39
  ? component.data['text']
41
40
  : [];
42
- //Dynamic CSS variables
43
- let CSSVariables = {
44
- ['--kup_card_multiplier']: '1',
45
- };
46
- return (h("div", { class: `scalable-layout-${component.layoutNumber} scalable-card`, style: CSSVariables }, h("div", { class: "scalable-element" }, h("div", { class: "icon" }, imageArray[0] ? (h(FImage, Object.assign({ color: colorArray[0]
41
+ return (h("div", { class: `scalable-layout-${component.layoutNumber} scalable-card` }, h("div", { class: "scalable-element" }, h("div", { class: "icon" }, imageArray[0] ? (h(FImage, Object.assign({ color: colorArray[0]
47
42
  ? colorArray[0]
48
- : `var(${KupThemeColorValues.PRIMARY})`, id: "image1" }, imageArray[0], { sizeX: "1.25em", sizeY: "1.25em" }))) : null), h("div", { class: "value-int" }, h("div", null, textArray[textIndex] ? textArray[textIndex] : '', ",")), h("div", { class: "value-dec" }, h("div", null, textArray[++textIndex] ? textArray[textIndex] : '')), h("div", { class: "unit" }, h("div", null, textArray[++textIndex] ? textArray[textIndex] : '')))));
43
+ : `var(${KupThemeColorValues.PRIMARY})`, id: "image1" }, imageArray[0], { sizeX: "1.25em", sizeY: "1.25em" }))) : null), h("div", { class: "value-int" }, h("div", { style: colorArray[1] ? { color: colorArray[1] } : undefined }, textArray[0] ? textArray[0] : '', textArray[1]
44
+ ? dom.ketchup.math.decimalSeparator()
45
+ : '')), textArray[1] ? (h("div", { class: "value-dec" }, h("div", { style: colorArray[1]
46
+ ? { color: colorArray[1] }
47
+ : undefined }, textArray[1]))) : null, h("div", { class: "unit" }, h("div", { style: colorArray[1] ? { color: colorArray[1] } : undefined }, textArray[2] ? textArray[2] : '')))));
49
48
  }
50
49
  /**
51
50
  * 3rd scalable card layout, column of 2 texts.
@@ -53,16 +52,16 @@ export function create2(component) {
53
52
  * @returns {VNode} 3rd scalable layout virtual node.
54
53
  */
55
54
  export function create3(component) {
55
+ //Image color
56
+ const colorArray = component.data['color']
57
+ ? component.data['color']
58
+ : [];
56
59
  //Title, subtitle
57
60
  let textIndex = 0;
58
61
  const textArray = component.data['text']
59
62
  ? component.data['text']
60
63
  : [];
61
- //Dynamic CSS variables
62
- let CSSVariables = {
63
- ['--kup_card_multiplier']: '1',
64
- };
65
- return (h("div", { class: `scalable-layout-${component.layoutNumber} scalable-card`, style: CSSVariables }, h("div", { class: "scalable-element" }, h("div", { class: "value" }, h("div", null, textArray[textIndex] ? textArray[textIndex] : '')), h("div", { class: "descr" }, h("div", null, textArray[++textIndex] ? textArray[textIndex] : '')))));
64
+ return (h("div", { class: `scalable-layout-${component.layoutNumber} scalable-card` }, h("div", { class: "scalable-element" }, h("div", { class: "value" }, h("div", { style: colorArray[0] ? { color: colorArray[0] } : undefined }, textArray[textIndex] ? textArray[textIndex] : '')), h("div", { class: "descr" }, h("div", { style: colorArray[1] ? { color: colorArray[1] } : undefined }, textArray[++textIndex] ? textArray[textIndex] : '')))));
66
65
  }
67
66
  /**
68
67
  * 4th scalable card layout, used to display numerical values with subtitle.
@@ -79,20 +78,20 @@ export function create4(component) {
79
78
  ? component.data['image']
80
79
  : [];
81
80
  //Value, decimal value, measurement unit, subtitle
82
- let textIndex = 0;
83
81
  const textArray = component.data['text']
84
82
  ? component.data['text']
85
83
  : [];
86
- //Dynamic CSS variables
87
- let CSSVariables = {
88
- [`--color-0`]: colorArray[0]
84
+ return (h("div", { class: `scalable-layout-${component.layoutNumber} scalable-card` }, h("div", { class: "scalable-element" }, h("div", { class: "icon" }, imageArray[0] ? (h(FImage, Object.assign({ color: colorArray[0]
89
85
  ? colorArray[0]
90
- : `var(${KupThemeColorValues.PRIMARY})`,
91
- ['--kup_card_multiplier']: '1',
92
- };
93
- return (h("div", { class: `scalable-layout-${component.layoutNumber} scalable-card`, style: CSSVariables }, h("div", { class: "scalable-element" }, h("div", { class: "icon" }, imageArray[0] ? (h(FImage, Object.assign({ color: colorArray[0]
94
- ? colorArray[0]
95
- : `var(${KupThemeColorValues.PRIMARY})`, id: "image1" }, imageArray[0], { sizeX: "1.25em", sizeY: "1.25em" }))) : null), h("div", { class: "value-and-unit" }, h("div", { class: "value-int" }, h("div", null, textArray[textIndex] ? textArray[textIndex] : '', ",")), h("div", { class: "value-dec" }, h("div", null, textArray[++textIndex] ? textArray[textIndex] : '')), h("div", { class: "unit" }, h("div", null, textArray[++textIndex] ? textArray[textIndex] : ''))), h("div", { class: "empty-placeholder" }), h("div", { class: "descr" }, h("div", null, textArray[++textIndex] ? textArray[textIndex] : '')))));
86
+ : `var(${KupThemeColorValues.PRIMARY})`, id: "image1" }, imageArray[0], { sizeX: "1.25em", sizeY: "1.25em" }))) : null), h("div", { class: "value-and-unit" }, h("div", { class: "value-int" }, h("div", { style: colorArray[1]
87
+ ? { color: colorArray[1] }
88
+ : undefined }, textArray[0] ? textArray[0] : '', textArray[1]
89
+ ? dom.ketchup.math.decimalSeparator()
90
+ : '')), textArray[1] ? (h("div", { class: "value-dec" }, h("div", { style: colorArray[1]
91
+ ? { color: colorArray[1] }
92
+ : undefined }, textArray[1]))) : null, h("div", { class: "unit" }, h("div", { style: colorArray[1]
93
+ ? { color: colorArray[1] }
94
+ : undefined }, textArray[2] ? textArray[2] : ''))), h("div", { class: "empty-placeholder" }), h("div", { class: "descr" }, h("div", { style: colorArray[2] ? { color: colorArray[2] } : undefined }, textArray[3] ? textArray[3] : '')))));
96
95
  }
97
96
  /**
98
97
  * 5th scalable card layout, icon with title and subtitle.
@@ -113,11 +112,11 @@ export function create5(component) {
113
112
  const textArray = component.data['text']
114
113
  ? component.data['text']
115
114
  : [];
116
- //Dynamic CSS variables
117
- let CSSVariables = {
118
- ['--kup_card_multiplier']: '1',
119
- };
120
- return (h("div", { class: `scalable-layout-${component.layoutNumber} scalable-card`, style: CSSVariables }, h("div", { class: "scalable-element" }, h("div", { class: "text-wrapper" }, h("div", { class: "descr" }, h("div", null, textArray[textIndex] ? textArray[textIndex] : '')), h("div", { class: "value" }, h("div", null, textArray[++textIndex] ? textArray[textIndex] : ''))), h("div", { class: "icon" }, imageArray[0] ? (h(FImage, Object.assign({ color: colorArray[0]
115
+ return (h("div", { class: `scalable-layout-${component.layoutNumber} scalable-card` }, h("div", { class: "scalable-element" }, h("div", { class: "text-wrapper" }, h("div", { class: "descr" }, h("div", { style: colorArray[1]
116
+ ? { color: colorArray[1] }
117
+ : undefined }, textArray[textIndex] ? textArray[textIndex] : '')), h("div", { class: "value" }, h("div", { style: colorArray[2]
118
+ ? { color: colorArray[2] }
119
+ : undefined }, textArray[++textIndex] ? textArray[textIndex] : ''))), h("div", { class: "icon" }, imageArray[0] ? (h(FImage, Object.assign({ color: colorArray[0]
121
120
  ? colorArray[0]
122
121
  : `var(${KupThemeColorValues.PRIMARY})`, id: "image1" }, imageArray[0], { sizeX: "1em", sizeY: "1em" }))) : null))));
123
122
  }
@@ -140,13 +139,13 @@ export function create6(component) {
140
139
  const textArray = component.data['text']
141
140
  ? component.data['text']
142
141
  : [];
143
- //Dynamic CSS variables
144
- let CSSVariables = {
145
- ['--kup_card_multiplier']: '1',
146
- };
147
- return (h("div", { class: `scalable-layout-${component.layoutNumber} scalable-card`, style: CSSVariables }, h("div", { class: "scalable-element" }, h("div", { class: "icon" }, imageArray[0] ? (h(FImage, Object.assign({ color: colorArray[0]
142
+ return (h("div", { class: `scalable-layout-${component.layoutNumber} scalable-card` }, h("div", { class: "scalable-element" }, h("div", { class: "icon" }, imageArray[0] ? (h(FImage, Object.assign({ color: colorArray[0]
148
143
  ? colorArray[0]
149
- : `var(${KupThemeColorValues.PRIMARY})`, id: "image1" }, imageArray[0], { sizeX: "1em", sizeY: "1em" }))) : null), h("div", { class: "text-wrapper" }, h("div", { class: "value" }, h("div", null, textArray[textIndex] ? textArray[textIndex] : '')), h("div", { class: "descr" }, h("div", null, textArray[++textIndex] ? textArray[textIndex] : ''))))));
144
+ : `var(${KupThemeColorValues.PRIMARY})`, id: "image1" }, imageArray[0], { sizeX: "1em", sizeY: "1em" }))) : null), h("div", { class: "text-wrapper" }, h("div", { class: "value" }, h("div", { style: colorArray[1]
145
+ ? { color: colorArray[1] }
146
+ : undefined }, textArray[textIndex] ? textArray[textIndex] : '')), h("div", { class: "descr" }, h("div", { style: colorArray[2]
147
+ ? { color: colorArray[2] }
148
+ : undefined }, textArray[++textIndex] ? textArray[textIndex] : ''))))));
150
149
  }
151
150
  /**
152
151
  * 7th scalable card layout, icon with title and subtitle.
@@ -167,11 +166,11 @@ export function create7(component) {
167
166
  const textArray = component.data['text']
168
167
  ? component.data['text']
169
168
  : [];
170
- //Dynamic CSS variables
171
- let CSSVariables = {
172
- ['--kup_card_multiplier']: '1',
173
- };
174
- return (h("div", { class: `scalable-layout-${component.layoutNumber} scalable-card`, style: CSSVariables }, h("div", { class: "scalable-element" }, h("div", { class: "text-wrapper" }, h("div", { class: "value" }, h("div", null, textArray[textIndex] ? textArray[textIndex] : '')), h("div", { class: "descr" }, h("div", null, textArray[++textIndex] ? textArray[textIndex] : ''))), h("div", { class: "icon" }, imageArray[0] ? (h(FImage, Object.assign({ color: colorArray[0]
169
+ return (h("div", { class: `scalable-layout-${component.layoutNumber} scalable-card` }, h("div", { class: "scalable-element" }, h("div", { class: "text-wrapper" }, h("div", { class: "value" }, h("div", { style: colorArray[1]
170
+ ? { color: colorArray[1] }
171
+ : undefined }, textArray[textIndex] ? textArray[textIndex] : '')), h("div", { class: "descr" }, h("div", { style: colorArray[2]
172
+ ? { color: colorArray[2] }
173
+ : undefined }, textArray[++textIndex] ? textArray[textIndex] : ''))), h("div", { class: "icon" }, imageArray[0] ? (h(FImage, Object.assign({ color: colorArray[0]
175
174
  ? colorArray[0]
176
175
  : `var(${KupThemeColorValues.PRIMARY})`, id: "image1" }, imageArray[0], { sizeX: "1em", sizeY: "1em" }))) : null))));
177
176
  }
@@ -194,13 +193,9 @@ export function create8(component) {
194
193
  const textArray = component.data['text']
195
194
  ? component.data['text']
196
195
  : [];
197
- //Dynamic CSS variables
198
- let CSSVariables = {
199
- ['--kup_card_multiplier']: '1',
200
- };
201
- return (h("div", { class: `scalable-layout-${component.layoutNumber} scalable-card`, style: CSSVariables }, h("div", { class: "scalable-element" }, h("div", { class: "icon" }, imageArray[0] ? (h(FImage, Object.assign({ color: colorArray[0]
196
+ return (h("div", { class: `scalable-layout-${component.layoutNumber} scalable-card` }, h("div", { class: "scalable-element" }, h("div", { class: "icon" }, imageArray[0] ? (h(FImage, Object.assign({ color: colorArray[0]
202
197
  ? colorArray[0]
203
- : `var(${KupThemeColorValues.PRIMARY})`, id: "image1" }, imageArray[0], { sizeX: "1em", sizeY: "1em" }))) : null), h("div", { class: "value" }, h("div", null, textArray[textIndex] ? textArray[textIndex] : '')), h("div", { class: "descr" }, h("div", null, textArray[++textIndex] ? textArray[textIndex] : '')))));
198
+ : `var(${KupThemeColorValues.PRIMARY})`, id: "image1" }, imageArray[0], { sizeX: "1em", sizeY: "1em" }))) : null), h("div", { class: "value" }, h("div", { style: colorArray[1] ? { color: colorArray[1] } : undefined }, textArray[textIndex] ? textArray[textIndex] : '')), h("div", { class: "descr" }, h("div", { style: colorArray[2] ? { color: colorArray[2] } : undefined }, textArray[++textIndex] ? textArray[textIndex] : '')))));
204
199
  }
205
200
  /**
206
201
  * 9th scalable card layout, tile view.
@@ -243,9 +238,5 @@ export function create9(component) {
243
238
  ['--color-1']: componentBg,
244
239
  ['--color-2']: textFg,
245
240
  };
246
- const CSSVariablesChild = {
247
- ['--kup_card_multiplier']: '1',
248
- ['box-shadow']: 'none',
249
- };
250
- return (h("div", { class: `scalable-layout-${component.layoutNumber}`, style: CSSVariables }, h("div", { class: "section-1" }), h("div", { class: "section-2" }, h("div", { class: "scalable-card", style: CSSVariablesChild }, h("div", { class: "text scalable-element" }, h("div", { class: "value" }, mainText), h("div", { class: "descr" }, subText))), buttons.length > 0 ? (h("div", { class: "buttons" }, buttons.map((b) => (h(FButton, { icon: b.icon, title: b.title, styling: b.styling, wrapperClass: b.class, onClick: () => component.onKupClick(component.rootElement.id, b.id) }))))) : undefined)));
241
+ return (h("div", { class: `scalable-layout-${component.layoutNumber}`, style: CSSVariables }, h("div", { class: "section-1" }), h("div", { class: "section-2" }, h("div", { class: "scalable-card" }, h("div", { class: "text scalable-element" }, h("div", { class: "value" }, mainText), h("div", { class: "descr" }, subText))), buttons.length > 0 ? (h("div", { class: "buttons" }, buttons.map((b) => (h(FButton, { icon: b.icon, title: b.title, styling: b.styling, wrapperClass: b.class, onClick: () => component.onKupClick(component.rootElement.id, b.id) }))))) : undefined)));
251
242
  }
@@ -1,12 +1,12 @@
1
- import { h } from '@stencil/core';
2
- import { FImage } from '../../../f-components/f-image/f-image';
3
- import { compList } from '../kup-card-helper';
4
- import { KupLanguageColumn, KupLanguageGeneric, } from '../../../managers/kup-language/kup-language-declarations';
5
- import { FChipType } from '../../../f-components/f-chip/f-chip-declarations';
6
- import { KupCardCSSClasses, KupCardIds } from '../kup-card-declarations';
7
- import { KupColumnMenuIds } from '../../../utils/kup-column-menu/kup-column-menu-declarations';
8
- import { KupThemeColorValues } from '../../../managers/kup-theme/kup-theme-declarations';
9
- import { FButtonStyling } from '../../../f-components/f-button/f-button-declarations';
1
+ import { h } from "@stencil/core";
2
+ import { FImage } from "../../../f-components/f-image/f-image";
3
+ import { compList } from "../kup-card-helper";
4
+ import { KupLanguageColumn, KupLanguageGeneric, } from "../../../managers/kup-language/kup-language-declarations";
5
+ import { FChipType } from "../../../f-components/f-chip/f-chip-declarations";
6
+ import { KupCardCSSClasses, KupCardIds } from "../kup-card-declarations";
7
+ import { KupColumnMenuIds } from "../../../utils/kup-column-menu/kup-column-menu-declarations";
8
+ import { KupThemeColorValues } from "../../../managers/kup-theme/kup-theme-declarations";
9
+ import { FButtonStyling } from "../../../f-components/f-button/f-button-declarations";
10
10
  const dom = document.documentElement;
11
11
  /**
12
12
  * 1st standard card layout, inspired by Material Design.
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Props of the kup-card-list component.
3
+ * Used to export every prop in an object.
4
+ */
5
+ export var KupCardListProps;
6
+ (function (KupCardListProps) {
7
+ KupCardListProps["columnsNumber"] = "Sets the number of columns.";
8
+ KupCardListProps["customStyle"] = "Custom style of the component.";
9
+ KupCardListProps["data"] = "Actual data of the component.";
10
+ KupCardListProps["fullWidth"] = "Sets whether the component occupies all available width.";
11
+ KupCardListProps["horizontal"] = "Sets whether the cards are placed horizontally or not.";
12
+ KupCardListProps["isClickable"] = "Sets whether a single card is clickable or not.";
13
+ })(KupCardListProps || (KupCardListProps = {}));
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @prop --kup-cardlist-cards-max-height: Sets the max height of the cards.
3
+ * @prop --kup-cardlist-cards-min-height: Sets the min height of the cards.
4
+ * @prop --kup-cardlist-cards-max-width: Sets the max width of the cards.
5
+ * @prop --kup-cardlist-cards-min-width: Sets the min width of the cards.
6
+ */
7
+ :host {
8
+ --kup_cardlist_cards_max_height: var(--kup-cardlist-cards-max-height, unset);
9
+ --kup_cardlist_cards_min_height: var(--kup-cardlist-cards-min-height, unset);
10
+ --kup_cardlist_cards_max_width: var(--kup-cardlist-cards-max-width, unset);
11
+ --kup_cardlist_cards_min_width: var(--kup-cardlist-cards-min-width, unset);
12
+ display: block;
13
+ height: 100%;
14
+ width: 100%;
15
+ }
16
+
17
+ #kup-component {
18
+ height: 100%;
19
+ width: 100%;
20
+ }
21
+
22
+ kup-card {
23
+ max-height: var(--kup_cardlist_cards_max_height);
24
+ min-height: var(--kup_cardlist_cards_min_height);
25
+ max-width: var(--kup_cardlist_cards_max_width);
26
+ min-width: var(--kup_cardlist_cards_min_width);
27
+ }
28
+ kup-card.is-clickable {
29
+ cursor: pointer;
30
+ }
31
+
32
+ kup-grid {
33
+ --kup-grid-padding: 0;
34
+ }