@sme.up/ketchup 8.3.3 → 9.1.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 (227) hide show
  1. package/dist/cjs/{component-24811409.js → component-cb3b32f5.js} +7 -2
  2. package/dist/cjs/{f-button-7687085a.js → f-button-733664a5.js} +2 -2
  3. package/dist/cjs/{f-cell-37ef6f00.js → f-cell-f37757a6.js} +201 -22
  4. package/dist/cjs/{f-checkbox-758d1d34.js → f-checkbox-556771e8.js} +1 -1
  5. package/dist/cjs/{f-chip-cf59bdb3.js → f-chip-3349d130.js} +3 -3
  6. package/dist/cjs/{f-image-1245b0cf.js → f-image-b7a5816b.js} +2 -2
  7. package/dist/cjs/{f-paginator-utils-b1af2a8f.js → f-paginator-utils-1fe1df76.js} +49 -50
  8. package/dist/cjs/{f-text-field-9c745112.js → f-text-field-8557fc3f.js} +38 -4
  9. package/dist/cjs/{f-text-field-mdc-b1fa6fd6.js → f-text-field-mdc-4fda9705.js} +1 -1
  10. package/dist/cjs/{index-eac07680.js → index-4b3a5567.js} +134 -26
  11. package/dist/cjs/ketchup.cjs.js +3 -3
  12. package/dist/cjs/kup-accordion.cjs.entry.js +4 -4
  13. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +295 -338
  14. package/dist/cjs/kup-box.cjs.entry.js +25 -17
  15. package/dist/cjs/kup-calendar.cjs.entry.js +6 -6
  16. package/dist/cjs/kup-card-list.cjs.entry.js +244 -0
  17. package/dist/cjs/kup-cell.cjs.entry.js +9 -7
  18. package/dist/cjs/kup-dashboard.cjs.entry.js +8 -8
  19. package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
  20. package/dist/cjs/kup-echart.cjs.entry.js +4579 -4431
  21. package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
  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 +9 -9
  25. package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
  26. package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
  27. package/dist/cjs/{kup-manager-38caaef3.js → kup-manager-cb73c128.js} +64 -14
  28. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  29. package/dist/cjs/kup-numeric-picker.cjs.entry.js +5 -5
  30. package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
  31. package/dist/cjs/kup-planner.cjs.entry.js +5 -5
  32. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  33. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  34. package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
  35. package/dist/cjs/loader.cjs.js +2 -2
  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/data-table.js +44 -0
  39. package/dist/collection/assets/image-list.js +2 -12
  40. package/dist/collection/assets/index.js +8 -4
  41. package/dist/collection/assets/progress-bar.js +0 -0
  42. package/dist/collection/assets/radio.js +30 -0
  43. package/dist/collection/collection-manifest.json +3 -4
  44. package/dist/collection/components/kup-box/kup-box.js +14 -6
  45. package/dist/collection/components/kup-calendar/kup-calendar-declarations.js +1 -1
  46. package/dist/collection/components/kup-card/kup-card.css +34 -7
  47. package/dist/collection/components/kup-card/kup-card.js +25 -22
  48. package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +45 -54
  49. package/dist/collection/components/kup-card/standard/kup-card-standard.js +10 -5
  50. package/dist/collection/components/kup-card-list/kup-card-list-declarations.js +13 -0
  51. package/dist/collection/components/kup-card-list/kup-card-list.css +34 -0
  52. package/dist/collection/components/kup-card-list/kup-card-list.js +481 -0
  53. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +47 -48
  54. package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
  55. package/dist/collection/components/kup-data-table/kup-data-table.js +36 -22
  56. package/dist/collection/components/kup-echart/kup-echart.js +0 -2
  57. package/dist/collection/components/kup-grid/kup-grid.css +10 -0
  58. package/dist/collection/components/kup-progress-bar/kup-progress-bar.css +1 -242
  59. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +37 -84
  60. package/dist/collection/components/kup-radio/kup-radio.css +0 -161
  61. package/dist/collection/components/kup-radio/kup-radio.js +31 -26
  62. package/dist/collection/components/kup-rating/kup-rating.css +0 -8
  63. package/dist/collection/components/kup-rating/kup-rating.js +27 -52
  64. package/dist/collection/f-components/f-cell/f-cell-declarations.js +2 -0
  65. package/dist/collection/f-components/f-cell/f-cell.js +38 -17
  66. package/dist/collection/f-components/f-progress-bar/f-progress-bar-declarations.js +1 -0
  67. package/dist/collection/f-components/f-progress-bar/f-progress-bar.js +88 -0
  68. package/dist/collection/f-components/f-radio/f-radio-declarations.js +1 -0
  69. package/dist/collection/f-components/f-radio/f-radio.js +28 -0
  70. package/dist/collection/f-components/f-rating/f-rating-declarations.js +1 -0
  71. package/dist/collection/f-components/f-rating/f-rating.js +26 -0
  72. package/dist/collection/f-components/f-text-field/f-text-field.js +36 -2
  73. package/dist/collection/managers/kup-data/kup-data.js +2 -0
  74. package/dist/collection/managers/kup-math/kup-math.js +1 -1
  75. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +33 -0
  76. package/dist/collection/managers/kup-theme/kup-theme.js +13 -1
  77. package/dist/collection/types/GenericTypes.js +1 -2
  78. package/dist/collection/utils/cell-utils.js +6 -7
  79. package/dist/components/index.d.ts +6 -0
  80. package/dist/components/index.js +1 -1
  81. package/dist/components/kup-accordion.js +2 -0
  82. package/dist/components/kup-autocomplete2.js +1555 -1387
  83. package/dist/components/kup-box2.js +24 -6
  84. package/dist/components/kup-calendar.js +4 -1
  85. package/dist/components/{kup-dash-list.d.ts → kup-card-list.d.ts} +4 -4
  86. package/dist/components/kup-card-list.js +408 -0
  87. package/dist/components/kup-cell.js +1 -1
  88. package/dist/components/kup-chart.js +1 -1
  89. package/dist/components/kup-checkbox.js +1 -1
  90. package/dist/components/kup-chip.js +1 -1
  91. package/dist/components/kup-color-picker.js +1 -1
  92. package/dist/components/kup-combobox.js +1 -1
  93. package/dist/components/kup-dashboard.js +3 -1
  94. package/dist/components/kup-data-table.js +1 -1
  95. package/dist/components/kup-date-picker.js +1 -1
  96. package/dist/components/kup-dialog.js +1 -1
  97. package/dist/components/kup-dropdown-button.js +1 -1
  98. package/dist/components/kup-echart2.js +4578 -4430
  99. package/dist/components/kup-family-tree.js +1 -1
  100. package/dist/components/kup-form.js +1 -1
  101. package/dist/components/kup-gauge.js +1 -1
  102. package/dist/components/kup-grid2.js +1 -1
  103. package/dist/components/kup-image-list.js +3 -1
  104. package/dist/components/kup-image.js +1 -1
  105. package/dist/components/kup-list.js +1 -1
  106. package/dist/components/kup-magic-box.js +1 -1
  107. package/dist/components/kup-numeric-picker.js +1 -1
  108. package/dist/components/kup-planner.js +3 -1
  109. package/dist/esm/{component-cc25b031.js → component-879e99bf.js} +7 -2
  110. package/dist/esm/{f-button-e54ce8d5.js → f-button-f247ce10.js} +2 -2
  111. package/dist/esm/{f-cell-4149a05d.js → f-cell-ba94f1b3.js} +199 -23
  112. package/dist/esm/{f-checkbox-7b113dd8.js → f-checkbox-cbf7b3de.js} +1 -1
  113. package/dist/esm/{f-chip-c3c86f7b.js → f-chip-104c4a64.js} +3 -3
  114. package/dist/esm/{f-image-adceee49.js → f-image-d2a9603c.js} +2 -2
  115. package/dist/esm/{f-paginator-utils-e559dac8.js → f-paginator-utils-743522fa.js} +49 -50
  116. package/dist/esm/{f-text-field-aa4497a8.js → f-text-field-4d91ccfc.js} +38 -4
  117. package/dist/esm/{f-text-field-mdc-32a1ffd9.js → f-text-field-mdc-1143cf21.js} +1 -1
  118. package/dist/esm/{index-d413187a.js → index-c161a33e.js} +134 -26
  119. package/dist/esm/ketchup.js +4 -4
  120. package/dist/esm/kup-accordion.entry.js +4 -4
  121. package/dist/esm/kup-autocomplete_27.entry.js +295 -338
  122. package/dist/esm/kup-box.entry.js +25 -17
  123. package/dist/esm/kup-calendar.entry.js +6 -6
  124. package/dist/esm/kup-card-list.entry.js +240 -0
  125. package/dist/esm/kup-cell.entry.js +9 -7
  126. package/dist/esm/kup-dashboard.entry.js +8 -8
  127. package/dist/esm/kup-drawer.entry.js +2 -2
  128. package/dist/esm/kup-echart.entry.js +4579 -4431
  129. package/dist/esm/kup-family-tree.entry.js +4 -4
  130. package/dist/esm/kup-grid.entry.js +105 -0
  131. package/dist/esm/kup-iframe.entry.js +2 -2
  132. package/dist/esm/kup-image-list.entry.js +9 -9
  133. package/dist/esm/kup-lazy.entry.js +2 -2
  134. package/dist/esm/kup-magic-box.entry.js +3 -3
  135. package/dist/esm/{kup-manager-a4153fb2.js → kup-manager-94b3d177.js} +64 -14
  136. package/dist/esm/kup-nav-bar.entry.js +2 -2
  137. package/dist/esm/kup-numeric-picker.entry.js +5 -5
  138. package/dist/esm/kup-photo-frame.entry.js +2 -2
  139. package/dist/esm/kup-planner.entry.js +5 -5
  140. package/dist/esm/kup-probe.entry.js +2 -2
  141. package/dist/esm/kup-qlik.entry.js +2 -2
  142. package/dist/esm/kup-snackbar.entry.js +4 -4
  143. package/dist/esm/loader.js +3 -3
  144. package/dist/ketchup/ketchup.esm.js +1 -1
  145. package/dist/ketchup/p-12e47371.js +1 -0
  146. package/dist/ketchup/{p-3c44e838.entry.js → p-15548f51.entry.js} +1 -1
  147. package/dist/ketchup/p-20e8ab84.js +2 -0
  148. package/dist/ketchup/{p-2739b7ac.entry.js → p-21f1b22a.entry.js} +1 -1
  149. package/dist/ketchup/{p-e76b646c.js → p-2c47b88f.js} +3 -3
  150. package/dist/ketchup/{p-23d54fb2.entry.js → p-304f296e.entry.js} +1 -1
  151. package/dist/ketchup/p-48f8b0d5.entry.js +9 -0
  152. package/dist/ketchup/p-4ca502ce.entry.js +1 -0
  153. package/dist/ketchup/{p-698442ed.js → p-4d7c02f4.js} +1 -1
  154. package/dist/ketchup/{p-3d671241.entry.js → p-5abbf31b.entry.js} +1 -1
  155. package/dist/ketchup/{p-44b5c573.entry.js → p-5c9b10a5.entry.js} +1 -1
  156. package/dist/ketchup/{p-b415fe84.entry.js → p-5cb2dbf3.entry.js} +1 -1
  157. package/dist/ketchup/p-679ccbf8.js +1 -0
  158. package/dist/ketchup/p-6a0ac578.entry.js +1 -0
  159. package/dist/ketchup/{p-f3c8c1da.entry.js → p-87e13738.entry.js} +1 -1
  160. package/dist/ketchup/p-8e5db599.entry.js +1 -0
  161. package/dist/ketchup/{p-c0878519.entry.js → p-a14ede8c.entry.js} +1 -1
  162. package/dist/ketchup/{p-2f0798d3.js → p-a2007880.js} +1 -1
  163. package/dist/ketchup/p-a2b75445.entry.js +39 -0
  164. package/dist/ketchup/{p-47752f3b.js → p-b0678a34.js} +1 -1
  165. package/dist/ketchup/{p-7360a410.js → p-ba003975.js} +1 -1
  166. package/dist/ketchup/{p-d817be2a.js → p-bb80719e.js} +1 -1
  167. package/dist/ketchup/{p-c39ddeae.entry.js → p-bf41d71f.entry.js} +1 -1
  168. package/dist/ketchup/p-c32e8755.entry.js +1 -0
  169. package/dist/ketchup/p-c4b1bde1.entry.js +1 -0
  170. package/dist/ketchup/p-c6b58be6.entry.js +1 -0
  171. package/dist/ketchup/{p-6d9ffb32.js → p-cd2af1a6.js} +1 -1
  172. package/dist/ketchup/{p-124f3f42.js → p-d4a879fc.js} +1 -1
  173. package/dist/ketchup/{p-b623c774.entry.js → p-d56763cf.entry.js} +1 -1
  174. package/dist/ketchup/{p-3081ed82.entry.js → p-e7f57bee.entry.js} +1 -1
  175. package/dist/ketchup/{p-eec864dd.entry.js → p-eb12225c.entry.js} +1 -1
  176. package/dist/ketchup/{p-3bbcae45.entry.js → p-f22abf4e.entry.js} +1 -1
  177. package/dist/ketchup/{p-e917200c.entry.js → p-f82db512.entry.js} +1 -1
  178. package/dist/types/components/kup-box/kup-box.d.ts +1 -0
  179. package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +1 -1
  180. package/dist/types/components/kup-calendar/kup-calendar.d.ts +1 -1
  181. package/dist/types/components/kup-card/kup-card.d.ts +3 -3
  182. package/dist/types/components/kup-card-list/kup-card-list-declarations.d.ts +35 -0
  183. package/dist/types/components/kup-card-list/kup-card-list.d.ts +62 -0
  184. package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
  185. package/dist/types/components/kup-progress-bar/kup-progress-bar.d.ts +0 -1
  186. package/dist/types/components/kup-radio/kup-radio-declarations.d.ts +1 -9
  187. package/dist/types/components/kup-radio/kup-radio.d.ts +3 -2
  188. package/dist/types/components/kup-rating/kup-rating.d.ts +2 -7
  189. package/dist/types/components.d.ts +103 -96
  190. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +2 -0
  191. package/dist/types/f-components/f-progress-bar/f-progress-bar-declarations.d.ts +16 -0
  192. package/dist/types/f-components/f-progress-bar/f-progress-bar.d.ts +3 -0
  193. package/dist/types/f-components/f-radio/f-radio-declarations.d.ts +22 -0
  194. package/dist/types/f-components/f-radio/f-radio.d.ts +3 -0
  195. package/dist/types/f-components/f-rating/f-rating-declarations.d.ts +10 -0
  196. package/dist/types/f-components/f-rating/f-rating.d.ts +3 -0
  197. package/dist/types/managers/kup-math/kup-math.d.ts +1 -1
  198. package/dist/types/managers/kup-theme/kup-theme-declarations.d.ts +12 -0
  199. package/dist/types/stencil-public-runtime.d.ts +16 -4
  200. package/dist/types/types/GenericTypes.d.ts +1 -2
  201. package/package.json +6 -3
  202. package/dist/cjs/kup-dash-list.cjs.entry.js +0 -116
  203. package/dist/cjs/kup-dash_2.cjs.entry.js +0 -179
  204. package/dist/collection/assets/dash-list.js +0 -474
  205. package/dist/collection/components/kup-dash/kup-dash.css +0 -136
  206. package/dist/collection/components/kup-dash/kup-dash.js +0 -171
  207. package/dist/collection/components/kup-dash-list/kup-dash-list.css +0 -10
  208. package/dist/collection/components/kup-dash-list/kup-dash-list.js +0 -331
  209. package/dist/components/kup-dash-list.js +0 -288
  210. package/dist/components/kup-dash.d.ts +0 -11
  211. package/dist/components/kup-dash.js +0 -6
  212. package/dist/components/kup-dash2.js +0 -228
  213. package/dist/esm/kup-dash-list.entry.js +0 -112
  214. package/dist/esm/kup-dash_2.entry.js +0 -174
  215. package/dist/ketchup/p-0848391f.entry.js +0 -1
  216. package/dist/ketchup/p-25d45dc9.entry.js +0 -1
  217. package/dist/ketchup/p-283ca113.entry.js +0 -1
  218. package/dist/ketchup/p-384137d7.entry.js +0 -39
  219. package/dist/ketchup/p-3972b97c.entry.js +0 -1
  220. package/dist/ketchup/p-5ce0e645.entry.js +0 -1
  221. package/dist/ketchup/p-b8fcbcc9.entry.js +0 -1
  222. package/dist/ketchup/p-be864593.entry.js +0 -9
  223. package/dist/ketchup/p-d680bdde.js +0 -1
  224. package/dist/ketchup/p-f79d544a.js +0 -1
  225. package/dist/ketchup/p-fd75d5bf.js +0 -2
  226. package/dist/types/components/kup-dash/kup-dash.d.ts +0 -33
  227. package/dist/types/components/kup-dash-list/kup-dash-list.d.ts +0 -22
@@ -490,10 +490,12 @@ export function create14(component) {
490
490
  textfieldsIds.push(textfield['id']);
491
491
  }
492
492
  }
493
- return (h("div", { class: `standard-layout-${component.layoutNumber} ` }, objectArray[0] ? (h("div", { class: "section-1" }, imageArray[0] ? (h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "84px", sizeY: "84px" }))) : (h("div", { class: "sub-spinner" }, h("kup-spinner", { active: true, dimensions: "7px", layout: 14 }))), h("div", { class: "sub-1" }, textArray[0] ? (h("div", { class: "title" }, h("span", { class: `label ${KupCardCSSClasses.CLICKABLE_LINK}`, id: "title-link" }, textArray[0]), buttonsIds.includes(KupColumnMenuIds.BUTTON_OPEN_IN_NEW) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
493
+ return (h("div", { class: `standard-layout-${component.layoutNumber} ` }, objectArray[0] ? (h("div", { class: "section-1" }, imageArray[0] ? (h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "84px", sizeY: "84px" }))) : (h("div", { class: "sub-spinner" }, h("kup-spinner", { active: true, dimensions: "7px", layout: 14 }))), h("div", { class: "sub-1" }, textArray[0] ||
494
+ buttonsIds.includes(KupColumnMenuIds.BUTTON_OPEN_IN_NEW) ||
495
+ buttonsIds.includes(KupColumnMenuIds.BUTTON_SEARCH) ? (h("div", { class: "top" }, textArray[0] ? (h("div", { class: "title" }, h("span", { class: `label ${KupCardCSSClasses.CLICKABLE_LINK}`, id: "title-link" }, textArray[0]))) : null, buttonsIds.includes(KupColumnMenuIds.BUTTON_OPEN_IN_NEW) ||
496
+ buttonsIds.includes(KupColumnMenuIds.BUTTON_SEARCH) ? (h("div", { class: "buttons" }, buttonsIds.includes(KupColumnMenuIds.BUTTON_SEARCH) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
494
497
  KupColumnMenuIds.BUTTON_OPEN_IN_NEW)))) : null, buttonsIds.includes(KupColumnMenuIds.BUTTON_SEARCH) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
495
- KupColumnMenuIds.BUTTON_SEARCH)))) : null, buttonsIds.includes(KupColumnMenuIds.BUTTON_NEW) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
496
- KupColumnMenuIds.BUTTON_NEW)))) : null)) : null, textArray[1] && textArray[2] ? (h("div", { class: "info" }, h("span", { class: "label" }, textArray[1]), h("span", { class: "value" }, textArray[2]))) : null, textArray[3] && textArray[4] ? (h("div", { class: "info" }, h("span", { class: "label" }, textArray[3]), h("span", { class: "value" }, textArray[4]))) : null))) : null, h("div", { class: "section-2" }, tabbarArray[0] ? (h("kup-tab-bar", Object.assign({}, tabbarArray[0], { id: KupCardIds.VIEW_SELECTOR }))) : null), h("div", { class: "section-3" }, tabsValues.includes(KupLanguageGeneric.FILTERS) ? (h("div", { class: `${KupCardCSSClasses.CARD_VIEW} ${KupCardCSSClasses.VIEW_PREFIX}${viewIndex} ${visibleView === viewIndex++
498
+ KupColumnMenuIds.BUTTON_SEARCH)))) : null)) : null)) : null, textArray[1] && textArray[2] ? (h("div", { class: "info" }, h("span", { class: "label" }, textArray[1]), h("span", { class: "value" }, textArray[2]))) : null, textArray[3] && textArray[4] ? (h("div", { class: "info" }, h("span", { class: "label" }, textArray[3]), h("span", { class: "value" }, textArray[4]))) : null))) : null, h("div", { class: "section-2" }, tabbarArray[0] ? (h("kup-tab-bar", Object.assign({}, tabbarArray[0], { id: KupCardIds.VIEW_SELECTOR }))) : null), h("div", { class: "section-3" }, tabsValues.includes(KupLanguageGeneric.FILTERS) ? (h("div", { class: `${KupCardCSSClasses.CARD_VIEW} ${KupCardCSSClasses.VIEW_PREFIX}${viewIndex} ${visibleView === viewIndex++
497
499
  ? KupCardCSSClasses.VISIBLE
498
500
  : ''}` }, h("div", { class: `sub-field ${textfieldArray.length > 0 ||
499
501
  datepickerArray.length > 0 ||
@@ -585,9 +587,12 @@ export function create15(component) {
585
587
  }
586
588
  return (h("kup-dropdown-button", Object.assign({}, props, { title: dom.ketchup.language.translate(KupLanguageGeneric.OPTIONS) })));
587
589
  };
588
- return (h("div", { class: `standard-layout-${component.layoutNumber}` }, h("div", { class: "section-1" }, imageArray[0] ? (h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "84px", sizeY: "84px" }))) : (h("div", { class: "sub-spinner" }, h("kup-spinner", { active: true, dimensions: "7px", layout: 14 }))), h("div", { class: "sub-1" }, textArray[0] ? (h("div", { class: "title" }, h("span", { class: `label ${KupCardCSSClasses.CLICKABLE_LINK}`, id: "title-link" }, textArray[0]), buttonsIds.includes(KupColumnMenuIds.BUTTON_OPEN_IN_NEW) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
590
+ return (h("div", { class: `standard-layout-${component.layoutNumber}` }, h("div", { class: "section-1" }, imageArray[0] ? (h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "84px", sizeY: "84px" }))) : (h("div", { class: "sub-spinner" }, h("kup-spinner", { active: true, dimensions: "7px", layout: 14 }))), h("div", { class: "sub-1" }, textArray[0] ||
591
+ buttonsIds.includes(KupColumnMenuIds.BUTTON_OPEN_IN_NEW) ||
592
+ buttonsIds.includes(KupColumnMenuIds.BUTTON_SEARCH) ? (h("div", { class: "top" }, textArray[0] ? (h("div", { class: "title" }, h("span", { class: `label ${KupCardCSSClasses.CLICKABLE_LINK}`, id: "title-link" }, textArray[0]))) : null, buttonsIds.includes(KupColumnMenuIds.BUTTON_OPEN_IN_NEW) ||
593
+ buttonsIds.includes(KupColumnMenuIds.BUTTON_SEARCH) ? (h("div", { class: "buttons" }, buttonsIds.includes(KupColumnMenuIds.BUTTON_SEARCH) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
589
594
  KupColumnMenuIds.BUTTON_OPEN_IN_NEW)))) : null, buttonsIds.includes(KupColumnMenuIds.BUTTON_SEARCH) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
590
- KupColumnMenuIds.BUTTON_SEARCH)))) : null)) : null, sectionOneArray[1] && sectionOneArray[2] ? (h("div", { class: "info" }, h("span", { class: "label" }, sectionOneArray[1]), h("span", { class: "value" }, sectionOneArray[2]))) : null, sectionOneArray[3] && sectionOneArray[4] ? (h("div", { class: "info" }, h("span", { class: "label" }, sectionOneArray[3]), h("span", { class: "value" }, sectionOneArray[4]))) : null)), h("div", { class: "section-2" }, h("div", { class: `${KupCardCSSClasses.CARD_VIEW} ${KupCardCSSClasses.VIEW_PREFIX}${viewIndex} ${KupCardCSSClasses.VISIBLE}` }, h("div", { class: "info" }, sectionTwoDetails.length > 0
595
+ KupColumnMenuIds.BUTTON_SEARCH)))) : null)) : null)) : null, sectionOneArray[1] && sectionOneArray[2] ? (h("div", { class: "info" }, h("span", { class: "label" }, sectionOneArray[1]), h("span", { class: "value" }, sectionOneArray[2]))) : null, sectionOneArray[3] && sectionOneArray[4] ? (h("div", { class: "info" }, h("span", { class: "label" }, sectionOneArray[3]), h("span", { class: "value" }, sectionOneArray[4]))) : null)), h("div", { class: "section-2" }, h("div", { class: `${KupCardCSSClasses.CARD_VIEW} ${KupCardCSSClasses.VIEW_PREFIX}${viewIndex} ${KupCardCSSClasses.VISIBLE}` }, h("div", { class: "info" }, sectionTwoDetails.length > 0
591
596
  ? sectionTwoDetails
592
597
  : null)), h("div", { class: `${KupCardCSSClasses.CARD_VIEW} ${KupCardCSSClasses.VIEW_PREFIX}${viewIndex + 1}` }, treeArray[0] ? (h("kup-tree", Object.assign({ class: "kup-full-width" }, treeArray[0]))) : null)), genericButtons.length > 0 ? (h("div", { class: "section-3" }, compList(genericButtons.slice(0, 5), 'button'), genericButtons.length > 5 ? createDropdown() : null, treeArray[0] ? (h("kup-button", { title: dom.ketchup.language.translate(KupLanguageGeneric.SHOW_ROW_OPTIONS), id: "view-selector", icon: "menu" })) : null)) : null));
593
598
  }
@@ -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
+ }
@@ -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();