@sme.up/ketchup 10.1.0 → 10.2.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 (492) hide show
  1. package/dist/cjs/{f-button-c3ae141e.js → f-button-bfafefb3.js} +3 -3
  2. package/dist/cjs/{f-cell-83ca2b8b.js → f-cell-3ed4ad9e.js} +376 -168
  3. package/dist/cjs/{f-checkbox-59fb7aa5.js → f-checkbox-aaa6d45c.js} +3 -2
  4. package/dist/cjs/{f-chip-286f1c8d.js → f-chip-b936dcaf.js} +146 -10
  5. package/dist/cjs/{f-image-d22b012f.js → f-image-db10b066.js} +1 -1
  6. package/dist/cjs/{f-object-field-0986026c.js → f-object-field-348fa103.js} +13 -6
  7. package/dist/cjs/{f-paginator-utils-ee281217.js → f-paginator-utils-f951cc54.js} +15 -6
  8. package/dist/cjs/{f-text-field-463a6dbe.js → f-text-field-e41f653a.js} +15 -15
  9. package/dist/cjs/{f-typography-271f5037.js → f-typography-85d8238a.js} +1 -1
  10. package/dist/cjs/{index-e8aa3c73.js → index-c7d441d8.js} +8 -3
  11. package/dist/cjs/index.cjs.js +2 -2
  12. package/dist/cjs/ketchup.cjs.js +2 -2
  13. package/dist/cjs/kup-accordion.cjs.entry.js +4 -4
  14. package/dist/cjs/kup-activity-timeline.cjs.entry.js +43 -23
  15. package/dist/cjs/{kup-autocomplete_28.cjs.entry.js → kup-autocomplete_29.cjs.entry.js} +2360 -1472
  16. package/dist/cjs/kup-box.cjs.entry.js +60 -59
  17. package/dist/cjs/kup-calendar.cjs.entry.js +12 -11
  18. package/dist/cjs/kup-card-list.cjs.entry.js +3 -3
  19. package/dist/cjs/kup-cell.cjs.entry.js +17 -12
  20. package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +12 -12
  21. package/dist/cjs/kup-dashboard.cjs.entry.js +7 -7
  22. package/dist/cjs/{kup-data-table-helper-c7d3445e.js → kup-data-table-helper-adaa11bb.js} +52 -84
  23. package/dist/cjs/kup-drawer.cjs.entry.js +3 -3
  24. package/dist/cjs/kup-echart.cjs.entry.js +46 -14
  25. package/dist/cjs/kup-editor.cjs.entry.js +2 -2
  26. package/dist/cjs/kup-family-tree.cjs.entry.js +5 -5
  27. package/dist/cjs/kup-gantt_10.cjs.entry.js +33 -33
  28. package/dist/cjs/kup-grid.cjs.entry.js +3 -3
  29. package/dist/cjs/kup-htm.cjs.entry.js +4 -4
  30. package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
  31. package/dist/cjs/kup-image-list.cjs.entry.js +25 -21
  32. package/dist/cjs/kup-input-panel.cjs.entry.js +102 -73
  33. package/dist/cjs/kup-lazy.cjs.entry.js +14 -14
  34. package/dist/cjs/kup-magic-box.cjs.entry.js +7 -7
  35. package/dist/cjs/{kup-manager-f41ad314.js → kup-manager-39bc2be8.js} +425 -246
  36. package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -4
  37. package/dist/cjs/kup-numeric-picker.cjs.entry.js +6 -6
  38. package/dist/cjs/kup-object-field.cjs.entry.js +7 -7
  39. package/dist/cjs/kup-pdf.cjs.entry.js +4 -4
  40. package/dist/cjs/kup-planner-renderer.cjs.entry.js +3 -3
  41. package/dist/cjs/kup-planner.cjs.entry.js +6 -6
  42. package/dist/cjs/kup-probe.cjs.entry.js +3 -3
  43. package/dist/cjs/kup-qlik.cjs.entry.js +4 -4
  44. package/dist/cjs/kup-snackbar.cjs.entry.js +6 -6
  45. package/dist/cjs/kup-txt.cjs.entry.js +4 -4
  46. package/dist/cjs/kup-typography-list.cjs.entry.js +5 -5
  47. package/dist/cjs/kup-typography.cjs.entry.js +115 -15
  48. package/dist/cjs/loader.cjs.js +2 -2
  49. package/dist/collection/collection-manifest.json +1 -0
  50. package/dist/collection/components/kup-accordion/kup-accordion.css +3 -3
  51. package/dist/collection/components/kup-activity-timeline/kup-activity-timeline-declarations.js +1 -1
  52. package/dist/collection/components/kup-activity-timeline/kup-activity-timeline.css +3 -3
  53. package/dist/collection/components/kup-activity-timeline/kup-activity-timeline.js +37 -17
  54. package/dist/collection/components/kup-autocomplete/kup-autocomplete.css +3 -3
  55. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +49 -13
  56. package/dist/collection/components/kup-badge/kup-badge.css +3 -3
  57. package/dist/collection/components/kup-box/kup-box.css +3 -3
  58. package/dist/collection/components/kup-box/kup-box.js +48 -47
  59. package/dist/collection/components/kup-button/kup-button.css +3 -3
  60. package/dist/collection/components/kup-button-list/kup-button-list.css +3 -3
  61. package/dist/collection/components/kup-button-list/kup-button-list.js +23 -3
  62. package/dist/collection/components/kup-calendar/kup-calendar.css +4 -4
  63. package/dist/collection/components/kup-calendar/kup-calendar.js +6 -5
  64. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +4 -2
  65. package/dist/collection/components/kup-card/built-in/kup-card-message-box.js +5 -1
  66. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +78 -1
  67. package/dist/collection/components/kup-card/kup-card.css +248 -20
  68. package/dist/collection/components/kup-card/kup-card.js +5 -2
  69. package/dist/collection/components/kup-card/standard/kup-card-standard.js +10 -8
  70. package/dist/collection/components/kup-card-list/kup-card-list.css +3 -3
  71. package/dist/collection/components/kup-cell/kup-cell.css +3 -3
  72. package/dist/collection/components/kup-cell/kup-cell.js +28 -3
  73. package/dist/collection/components/kup-chart/kup-chart.css +3 -3
  74. package/dist/collection/components/kup-checkbox/kup-checkbox.css +3 -3
  75. package/dist/collection/components/kup-chip/kup-chip.css +21 -7
  76. package/dist/collection/components/kup-chip/kup-chip.js +104 -33
  77. package/dist/collection/components/kup-color-picker/kup-color-picker.css +3 -3
  78. package/dist/collection/components/kup-combobox/kup-combobox.css +3 -3
  79. package/dist/collection/components/kup-combobox/kup-combobox.js +30 -4
  80. package/dist/collection/components/kup-dashboard/kup-dashboard.css +3 -3
  81. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +13 -0
  82. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +6 -3
  83. package/dist/collection/components/kup-data-table/kup-data-table-state.js +2 -0
  84. package/dist/collection/components/kup-data-table/kup-data-table.css +55 -34
  85. package/dist/collection/components/kup-data-table/kup-data-table.js +707 -232
  86. package/dist/collection/components/kup-date-picker/kup-date-picker.css +3 -3
  87. package/dist/collection/components/kup-date-picker/kup-date-picker.js +11 -6
  88. package/dist/collection/components/kup-dialog/kup-dialog-declarations.js +3 -0
  89. package/dist/collection/components/kup-dialog/kup-dialog.css +31 -6
  90. package/dist/collection/components/kup-dialog/kup-dialog.js +169 -11
  91. package/dist/collection/components/kup-drawer/kup-drawer.css +3 -3
  92. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +3 -3
  93. package/dist/collection/components/kup-echart/kup-echart.css +3 -3
  94. package/dist/collection/components/kup-echart/kup-echart.js +106 -11
  95. package/dist/collection/components/kup-family-tree/kup-family-tree.css +15 -12
  96. package/dist/collection/components/kup-file-upload/kup-file-upload-declarations.js +5 -0
  97. package/dist/collection/components/kup-file-upload/kup-file-upload.css +203 -0
  98. package/dist/collection/components/kup-file-upload/kup-file-upload.js +424 -0
  99. package/dist/collection/components/kup-form/kup-form.css +3 -3
  100. package/dist/collection/components/kup-form/kup-form.js +2 -2
  101. package/dist/collection/components/kup-gauge/kup-gauge.css +3 -3
  102. package/dist/collection/components/kup-grid/kup-grid.css +3 -3
  103. package/dist/collection/components/kup-htm/kup-htm.css +3 -3
  104. package/dist/collection/components/kup-htm/kup-htm.js +1 -1
  105. package/dist/collection/components/kup-iframe/kup-iframe.css +3 -3
  106. package/dist/collection/components/kup-image/assets/svg/circle.svg +3 -0
  107. package/dist/collection/components/kup-image/assets/svg/up.svg +43 -0
  108. package/dist/collection/components/kup-image/kup-image.css +3 -3
  109. package/dist/collection/components/kup-image-list/kup-image-list.css +6 -6
  110. package/dist/collection/components/kup-image-list/kup-image-list.js +15 -11
  111. package/dist/collection/components/kup-input-panel/kup-input-panel-utils.js +13 -4
  112. package/dist/collection/components/kup-input-panel/kup-input-panel.css +12 -5
  113. package/dist/collection/components/kup-input-panel/kup-input-panel.js +89 -59
  114. package/dist/collection/components/kup-lazy/kup-lazy.css +3 -3
  115. package/dist/collection/components/kup-lazy/kup-lazy.js +11 -11
  116. package/dist/collection/components/kup-list/kup-list.css +3 -3
  117. package/dist/collection/components/kup-list/kup-list.js +59 -13
  118. package/dist/collection/components/kup-magic-box/kup-magic-box.css +3 -3
  119. package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
  120. package/dist/collection/components/kup-nav-bar/kup-nav-bar.css +3 -3
  121. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
  122. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.css +3 -3
  123. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +1 -1
  124. package/dist/collection/components/kup-object-field/kup-object-field.js +1 -1
  125. package/dist/collection/components/kup-pdf/kup-pdf.css +3 -3
  126. package/dist/collection/components/kup-pdf/kup-pdf.js +1 -1
  127. package/dist/collection/components/kup-planner/kup-planner.css +3 -3
  128. package/dist/collection/components/kup-planner/kup-planner.js +1 -1
  129. package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
  130. package/dist/collection/components/kup-planner/utils/custom-task-list-header.module.css +3 -3
  131. package/dist/collection/components/kup-planner/utils/gantt-table.module.css +6 -6
  132. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.css +3 -3
  133. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +2 -2
  134. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.css +4 -4
  135. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +2 -2
  136. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.css +3 -3
  137. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +3 -3
  138. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.css +3 -3
  139. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +5 -5
  140. package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +2 -2
  141. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.css +3 -3
  142. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +1 -1
  143. package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +2 -2
  144. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +7 -7
  145. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
  146. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.css +3 -3
  147. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +1 -1
  148. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +1 -1
  149. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.css +3 -3
  150. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +1 -1
  151. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.css +3 -3
  152. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +2 -2
  153. package/dist/collection/components/kup-probe/kup-probe.js +1 -1
  154. package/dist/collection/components/kup-progress-bar/kup-progress-bar.css +3 -3
  155. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
  156. package/dist/collection/components/kup-qlik/kup-qlik.css +3 -3
  157. package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
  158. package/dist/collection/components/kup-radio/kup-radio.css +3 -3
  159. package/dist/collection/components/kup-rating/kup-rating.css +3 -3
  160. package/dist/collection/components/kup-rating/kup-rating.js +1 -1
  161. package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -4
  162. package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
  163. package/dist/collection/components/kup-spinner/kup-spinner.css +3 -3
  164. package/dist/collection/components/kup-spinner/kup-spinner.js +34 -34
  165. package/dist/collection/components/kup-switch/kup-switch.css +3 -3
  166. package/dist/collection/components/kup-switch/kup-switch.js +1 -1
  167. package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +9 -7
  168. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +182 -20
  169. package/dist/collection/components/kup-text-field/kup-text-field.css +3 -3
  170. package/dist/collection/components/kup-time-picker/kup-time-picker.css +3 -3
  171. package/dist/collection/components/kup-time-picker/kup-time-picker.js +57 -9
  172. package/dist/collection/components/kup-toolbar/kup-toolbar.css +9 -12
  173. package/dist/collection/components/kup-tree/kup-tree.css +24 -13
  174. package/dist/collection/components/kup-tree/kup-tree.js +93 -45
  175. package/dist/collection/components/kup-txt/kup-txt.css +3 -3
  176. package/dist/collection/components/kup-txt/kup-txt.js +1 -1
  177. package/dist/collection/components/kup-typography/kup-typography.css +3 -3
  178. package/dist/collection/components/kup-typography/kup-typography.js +198 -28
  179. package/dist/collection/components/kup-typography-list/kup-typography-list.css +3 -3
  180. package/dist/collection/components/kup-typography-list/kup-typography-list.js +1 -1
  181. package/dist/collection/f-components/f-button/f-button.js +1 -1
  182. package/dist/collection/f-components/f-cell/f-cell-declarations.js +6 -1
  183. package/dist/collection/f-components/f-cell/f-cell.js +80 -52
  184. package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -0
  185. package/dist/collection/f-components/f-chip/f-chip.js +12 -7
  186. package/dist/collection/f-components/f-label/f-label-declarations.js +1 -0
  187. package/dist/collection/f-components/f-label/f-label.js +21 -0
  188. package/dist/collection/f-components/f-object-field/f-object-field.js +6 -1
  189. package/dist/collection/f-components/f-paginator/f-paginator.js +10 -2
  190. package/dist/collection/f-components/f-radio/f-radio.js +17 -6
  191. package/dist/collection/f-components/f-text-field/f-text-field.js +12 -12
  192. package/dist/collection/managers/kup-data/kup-data.js +8 -0
  193. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +12 -1
  194. package/dist/collection/managers/kup-interact/kup-interact.js +43 -22
  195. package/dist/collection/managers/kup-keys-binding/kup-keys-binding.js +2 -2
  196. package/dist/collection/managers/kup-language/kup-language-declarations.js +11 -2
  197. package/dist/collection/managers/kup-manager/kup-manager.js +8 -1
  198. package/dist/collection/managers/kup-perf-monitoring/kup-perf-monitoring.js +55 -0
  199. package/dist/collection/managers/kup-perf-tuning/kup-perf-tuning-declarations.js +5 -1
  200. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +3 -0
  201. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +7 -3
  202. package/dist/collection/types/GenericTypes.js +1 -0
  203. package/dist/collection/utils/cell-utils.js +22 -8
  204. package/dist/collection/utils/filters/filters-column-menu.js +9 -22
  205. package/dist/collection/utils/filters/filters-declarations.js +1 -1
  206. package/dist/collection/utils/filters/filters-rows.js +36 -58
  207. package/dist/collection/utils/filters/filters-tree-items.js +11 -11
  208. package/dist/collection/utils/filters/filters.js +19 -9
  209. package/dist/collection/utils/g-cell-style-generator.js +188 -0
  210. package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +0 -2
  211. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +10 -10
  212. package/dist/collection/utils/label-utils.js +58 -0
  213. package/dist/collection/utils/utils.js +1 -1
  214. package/dist/components/index.js +2 -2
  215. package/dist/components/kup-accordion.js +23 -18
  216. package/dist/components/kup-activity-timeline.js +61 -36
  217. package/dist/components/kup-autocomplete.js +1 -1
  218. package/dist/components/kup-badge.js +1 -1
  219. package/dist/components/kup-box.js +1 -1
  220. package/dist/components/kup-button-list.js +1 -1
  221. package/dist/components/kup-button.js +1 -1
  222. package/dist/components/kup-calendar.js +29 -23
  223. package/dist/components/kup-card-list.js +24 -19
  224. package/dist/components/kup-card.js +1 -1
  225. package/dist/components/kup-cell.js +30 -20
  226. package/dist/components/kup-chart.js +1 -1
  227. package/dist/components/kup-checkbox.js +1 -1
  228. package/dist/components/kup-chip.js +1 -1
  229. package/dist/components/kup-color-picker.js +1 -1
  230. package/dist/components/kup-combobox.js +1 -1
  231. package/dist/components/kup-custom-task-list-header.js +1 -1
  232. package/dist/components/kup-custom-task-list-table.js +1 -1
  233. package/dist/components/kup-dashboard.js +23 -18
  234. package/dist/components/kup-data-table.js +1 -1
  235. package/dist/components/kup-date-picker.js +1 -1
  236. package/dist/components/kup-dialog.js +1 -1
  237. package/dist/components/kup-drawer.js +23 -18
  238. package/dist/components/kup-dropdown-button.js +1 -1
  239. package/dist/components/kup-echart.js +1 -1
  240. package/dist/components/kup-editor.js +1 -1
  241. package/dist/components/kup-family-tree.js +25 -20
  242. package/dist/components/kup-file-upload.d.ts +11 -0
  243. package/dist/components/kup-file-upload.js +6 -0
  244. package/dist/components/kup-form.js +1 -1
  245. package/dist/components/kup-gantt-calendar.js +1 -1
  246. package/dist/components/kup-gantt.js +1 -1
  247. package/dist/components/kup-gauge.js +1 -1
  248. package/dist/components/kup-grid-renderer.js +1 -1
  249. package/dist/components/kup-grid.js +1 -1
  250. package/dist/components/kup-horizontal-scroll.js +1 -1
  251. package/dist/components/kup-htm.js +24 -19
  252. package/dist/components/kup-iframe.js +23 -18
  253. package/dist/components/kup-image-list.js +38 -29
  254. package/dist/components/kup-image.js +1 -1
  255. package/dist/components/kup-input-panel.js +117 -83
  256. package/dist/components/kup-lazy.js +34 -29
  257. package/dist/components/kup-list.js +1 -1
  258. package/dist/components/kup-magic-box.js +30 -25
  259. package/dist/components/kup-nav-bar.js +24 -19
  260. package/dist/components/kup-numeric-picker.js +24 -19
  261. package/dist/components/kup-object-field.js +23 -18
  262. package/dist/components/kup-pdf.js +24 -19
  263. package/dist/components/kup-planner-renderer.js +1 -1
  264. package/dist/components/kup-planner.js +41 -36
  265. package/dist/components/kup-probe.js +23 -18
  266. package/dist/components/kup-progress-bar.js +1 -1
  267. package/dist/components/kup-qlik.js +24 -19
  268. package/dist/components/kup-radio.js +1 -1
  269. package/dist/components/kup-rating.js +1 -1
  270. package/dist/components/kup-snackbar.js +24 -19
  271. package/dist/components/kup-spinner.js +1 -1
  272. package/dist/components/kup-standard-tooltip.js +1 -1
  273. package/dist/components/kup-switch.js +1 -1
  274. package/dist/components/kup-switcher.js +1 -1
  275. package/dist/components/kup-tab-bar.js +1 -1
  276. package/dist/components/kup-task-gantt.js +1 -1
  277. package/dist/components/kup-task-list-header.js +1 -1
  278. package/dist/components/kup-task-list-table.js +1 -1
  279. package/dist/components/kup-task-list.js +1 -1
  280. package/dist/components/kup-text-field.js +1 -1
  281. package/dist/components/kup-time-picker.js +1 -1
  282. package/dist/components/kup-toolbar.js +1 -1
  283. package/dist/components/kup-tooltip.js +1 -1
  284. package/dist/components/kup-tree.js +1 -1
  285. package/dist/components/kup-txt.js +24 -19
  286. package/dist/components/kup-typography-list.js +24 -19
  287. package/dist/components/kup-typography.js +136 -29
  288. package/dist/components/kup-vertical-scroll.js +1 -1
  289. package/dist/components/{p-c43d08ab.js → p-0e85ab66.js} +5 -5
  290. package/dist/components/{p-5f307bf2.js → p-3438f15f.js} +71 -65
  291. package/dist/components/p-3b4cdace.js +56 -0
  292. package/dist/components/p-55542b47.js +38 -0
  293. package/dist/components/{p-0e6c0355.js → p-67ba8cd7.js} +2 -2
  294. package/dist/components/{p-5517e8e8.js → p-6992b96f.js} +5 -5
  295. package/dist/components/{p-ea6e4e37.js → p-6bfda249.js} +3 -3
  296. package/dist/components/{p-ef8026e9.js → p-7d0f1f90.js} +3075 -1532
  297. package/dist/components/{p-709a51cf.js → p-8472facf.js} +4 -4
  298. package/dist/components/p-97053b4d.js +45 -0
  299. package/dist/components/{p-0ac9fd6c.js → p-a0258e6f.js} +69 -29
  300. package/dist/components/{p-a3f73a90.js → p-b304b91c.js} +423 -246
  301. package/dist/components/{p-09b28008.js → p-b80494d7.js} +23 -18
  302. package/dist/components/{p-53e38c4a.js → p-bd3047ee.js} +3 -3
  303. package/dist/components/{p-4efa19a7.js → p-c325da75.js} +5 -5
  304. package/dist/components/p-c7c7f760.js +49 -0
  305. package/dist/components/{p-9da8cd93.js → p-d0e33e04.js} +16 -16
  306. package/dist/components/{p-c62695d4.js → p-d7136d08.js} +4 -4
  307. package/dist/components/{p-2fff7268.js → p-de04aef6.js} +17 -17
  308. package/dist/components/{p-e30483fa.js → p-eb8a2811.js} +22 -17
  309. package/dist/components/{p-2e5f2e07.js → p-ef8cbd35.js} +6 -1
  310. package/dist/components/{p-e677dddf.js → p-f2e153e3.js} +7 -7
  311. package/dist/esm/{f-button-f1040575.js → f-button-3c8f4506.js} +3 -3
  312. package/dist/esm/{f-cell-82b9ae70.js → f-cell-6576e009.js} +376 -168
  313. package/dist/esm/{f-checkbox-3ba20ca4.js → f-checkbox-5cdd1cad.js} +3 -2
  314. package/dist/esm/{f-chip-f98be128.js → f-chip-bb62428a.js} +145 -11
  315. package/dist/esm/{f-image-9b15e9ac.js → f-image-a2ecd7c3.js} +1 -1
  316. package/dist/esm/{f-object-field-1a4f54ea.js → f-object-field-b87b6ae6.js} +13 -6
  317. package/dist/esm/{f-paginator-utils-2fc5cd18.js → f-paginator-utils-04903d74.js} +15 -6
  318. package/dist/esm/{f-text-field-e766e681.js → f-text-field-9be88e51.js} +15 -15
  319. package/dist/esm/{f-typography-65229068.js → f-typography-8c914ec6.js} +1 -1
  320. package/dist/esm/{index-c9246a86.js → index-9b0f4a0d.js} +8 -3
  321. package/dist/esm/index.js +2 -2
  322. package/dist/esm/ketchup.js +3 -3
  323. package/dist/esm/kup-accordion.entry.js +4 -4
  324. package/dist/esm/kup-activity-timeline.entry.js +43 -23
  325. package/dist/esm/{kup-autocomplete_28.entry.js → kup-autocomplete_29.entry.js} +2356 -1469
  326. package/dist/esm/kup-box.entry.js +60 -59
  327. package/dist/esm/kup-calendar.entry.js +12 -11
  328. package/dist/esm/kup-card-list.entry.js +3 -3
  329. package/dist/esm/kup-cell.entry.js +17 -12
  330. package/dist/esm/kup-custom-task-list-header_4.entry.js +12 -12
  331. package/dist/esm/kup-dashboard.entry.js +7 -7
  332. package/dist/esm/{kup-data-table-helper-e350cc90.js → kup-data-table-helper-13eb7abf.js} +52 -84
  333. package/dist/esm/kup-drawer.entry.js +3 -3
  334. package/dist/esm/kup-echart.entry.js +46 -14
  335. package/dist/esm/kup-editor.entry.js +2 -2
  336. package/dist/esm/kup-family-tree.entry.js +5 -5
  337. package/dist/esm/kup-gantt_10.entry.js +33 -33
  338. package/dist/esm/kup-grid.entry.js +3 -3
  339. package/dist/esm/kup-htm.entry.js +4 -4
  340. package/dist/esm/kup-iframe.entry.js +3 -3
  341. package/dist/esm/kup-image-list.entry.js +25 -21
  342. package/dist/esm/kup-input-panel.entry.js +102 -73
  343. package/dist/esm/kup-lazy.entry.js +14 -14
  344. package/dist/esm/kup-magic-box.entry.js +7 -7
  345. package/dist/esm/{kup-manager-6c75d73b.js → kup-manager-6aa0a1c7.js} +424 -247
  346. package/dist/esm/kup-nav-bar.entry.js +4 -4
  347. package/dist/esm/kup-numeric-picker.entry.js +6 -6
  348. package/dist/esm/kup-object-field.entry.js +7 -7
  349. package/dist/esm/kup-pdf.entry.js +4 -4
  350. package/dist/esm/kup-planner-renderer.entry.js +3 -3
  351. package/dist/esm/kup-planner.entry.js +6 -6
  352. package/dist/esm/kup-probe.entry.js +3 -3
  353. package/dist/esm/kup-qlik.entry.js +4 -4
  354. package/dist/esm/kup-snackbar.entry.js +6 -6
  355. package/dist/esm/kup-txt.entry.js +4 -4
  356. package/dist/esm/kup-typography-list.entry.js +5 -5
  357. package/dist/esm/kup-typography.entry.js +115 -15
  358. package/dist/esm/loader.js +3 -3
  359. package/dist/ketchup/assets/svg/circle.svg +3 -0
  360. package/dist/ketchup/assets/svg/up.svg +43 -0
  361. package/dist/ketchup/index.esm.js +1 -1
  362. package/dist/ketchup/ketchup.esm.js +1 -1
  363. package/dist/ketchup/p-07f50333.entry.js +1 -0
  364. package/dist/ketchup/p-0b1e0b48.js +1 -0
  365. package/dist/ketchup/p-0de49966.entry.js +1 -0
  366. package/dist/ketchup/{p-93d6f4a9.entry.js → p-100b8ae7.entry.js} +1 -1
  367. package/dist/ketchup/{p-bc37db5b.entry.js → p-15f192f0.entry.js} +1 -1
  368. package/dist/ketchup/p-267d1898.js +1 -0
  369. package/dist/ketchup/p-2d84c26e.entry.js +1 -0
  370. package/dist/ketchup/p-3cab6420.js +1 -0
  371. package/dist/ketchup/p-3dbafa20.entry.js +9 -0
  372. package/dist/ketchup/p-3e42953b.entry.js +1 -0
  373. package/dist/ketchup/p-42a1f9ec.entry.js +1 -0
  374. package/dist/ketchup/p-4677cfd1.entry.js +1 -0
  375. package/dist/ketchup/{p-865ce089.entry.js → p-4ffc1a88.entry.js} +1 -1
  376. package/dist/ketchup/p-55b0991f.entry.js +1 -0
  377. package/dist/ketchup/p-58002a23.entry.js +1 -0
  378. package/dist/ketchup/p-5d9f2d24.entry.js +1 -0
  379. package/dist/ketchup/p-65b23870.entry.js +1 -0
  380. package/dist/ketchup/p-6b529a6f.entry.js +16 -0
  381. package/dist/ketchup/{p-53596bee.entry.js → p-6d628b49.entry.js} +1 -1
  382. package/dist/ketchup/p-6fc1bb18.entry.js +1 -0
  383. package/dist/ketchup/{p-b0368f88.js → p-710d0a7d.js} +1 -1
  384. package/dist/ketchup/p-838d8e97.js +1 -0
  385. package/dist/ketchup/p-8be42f5c.js +1 -0
  386. package/dist/ketchup/p-92431583.entry.js +1 -0
  387. package/dist/ketchup/{p-50b0da0c.entry.js → p-9b907768.entry.js} +1 -1
  388. package/dist/ketchup/p-9bc02da6.entry.js +1 -0
  389. package/dist/ketchup/p-9edd90c2.entry.js +1 -0
  390. package/dist/ketchup/p-9f9428d1.js +1 -0
  391. package/dist/ketchup/p-a4b6d6c5.js +1 -0
  392. package/dist/ketchup/p-a597a851.entry.js +1 -0
  393. package/dist/ketchup/p-b365f2f2.entry.js +1 -0
  394. package/dist/ketchup/{p-543f99d3.entry.js → p-c2ccbaca.entry.js} +1 -1
  395. package/dist/ketchup/p-c4224227.js +1 -0
  396. package/dist/ketchup/{p-60cfddce.js → p-cec0955d.js} +1 -1
  397. package/dist/ketchup/p-d0554d1f.entry.js +1 -0
  398. package/dist/ketchup/p-d084b2d4.entry.js +1 -0
  399. package/dist/ketchup/{p-cdf92c8b.entry.js → p-d8dbf3df.entry.js} +1 -1
  400. package/dist/ketchup/{p-fe190410.entry.js → p-da44226a.entry.js} +1 -1
  401. package/dist/ketchup/p-e104cfb7.js +1 -0
  402. package/dist/ketchup/p-e4fa2cf3.js +21 -0
  403. package/dist/ketchup/{p-d8ef1613.entry.js → p-e6afa8a6.entry.js} +4 -4
  404. package/dist/ketchup/{p-54ebe3bd.entry.js → p-f87b7768.entry.js} +1 -1
  405. package/dist/ketchup/{p-03d1cafc.entry.js → p-f8a027a1.entry.js} +2 -2
  406. package/dist/ketchup/{p-bdd3e0a4.entry.js → p-fb775526.entry.js} +1 -1
  407. package/dist/ketchup/{p-2133fdbb.entry.js → p-fdcb43a2.entry.js} +1 -1
  408. package/dist/types/components/kup-activity-timeline/kup-activity-timeline-declarations.d.ts +2 -2
  409. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +6 -0
  410. package/dist/types/components/kup-button-list/kup-button-list.d.ts +4 -0
  411. package/dist/types/components/kup-card/dialog/kup-card-dialog.d.ts +6 -0
  412. package/dist/types/components/kup-card/kup-card-declarations.d.ts +2 -0
  413. package/dist/types/components/kup-cell/kup-cell.d.ts +3 -0
  414. package/dist/types/components/kup-chip/kup-chip.d.ts +16 -5
  415. package/dist/types/components/kup-combobox/kup-combobox.d.ts +4 -0
  416. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +8 -2
  417. package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +1 -1
  418. package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -0
  419. package/dist/types/components/kup-data-table/kup-data-table.d.ts +36 -1
  420. package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +1 -0
  421. package/dist/types/components/kup-dialog/kup-dialog-declarations.d.ts +3 -0
  422. package/dist/types/components/kup-dialog/kup-dialog.d.ts +16 -0
  423. package/dist/types/components/kup-echart/kup-echart.d.ts +15 -0
  424. package/dist/types/components/kup-file-upload/kup-file-upload-declarations.d.ts +8 -0
  425. package/dist/types/components/kup-file-upload/kup-file-upload.d.ts +62 -0
  426. package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +5 -1
  427. package/dist/types/components/kup-input-panel/kup-input-panel-utils.d.ts +3 -3
  428. package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +2 -1
  429. package/dist/types/components/kup-list/kup-list.d.ts +4 -0
  430. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +27 -6
  431. package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +8 -1
  432. package/dist/types/components/kup-tree/kup-tree.d.ts +2 -0
  433. package/dist/types/components/kup-typography/kup-typography.d.ts +30 -5
  434. package/dist/types/components.d.ts +296 -26
  435. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +7 -3
  436. package/dist/types/f-components/f-checkbox/f-checkbox-declarations.d.ts +2 -1
  437. package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +3 -1
  438. package/dist/types/f-components/f-label/f-label-declarations.d.ts +15 -0
  439. package/dist/types/f-components/f-label/f-label.d.ts +3 -0
  440. package/dist/types/f-components/f-paginator/f-paginator-declarations.d.ts +1 -0
  441. package/dist/types/f-components/f-radio/f-radio-declarations.d.ts +1 -0
  442. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
  443. package/dist/types/managers/kup-interact/kup-interact-declarations.d.ts +20 -1
  444. package/dist/types/managers/kup-interact/kup-interact.d.ts +7 -3
  445. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +12 -4
  446. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +2 -0
  447. package/dist/types/managers/kup-manager/kup-manager.d.ts +2 -0
  448. package/dist/types/managers/kup-perf-monitoring/kup-perf-monitoring.d.ts +7 -0
  449. package/dist/types/managers/kup-perf-tuning/kup-perf-tuning-declarations.d.ts +6 -0
  450. package/dist/types/types/GenericTypes.d.ts +2 -1
  451. package/dist/types/utils/cell-utils.d.ts +4 -6
  452. package/dist/types/utils/filters/filters-rows.d.ts +5 -5
  453. package/dist/types/utils/filters/filters-tree-items.d.ts +1 -1
  454. package/dist/types/utils/filters/filters.d.ts +4 -2
  455. package/dist/types/utils/g-cell-style-generator.d.ts +2 -0
  456. package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +1 -3
  457. package/dist/types/utils/label-utils.d.ts +2 -0
  458. package/package.json +1 -1
  459. package/dist/components/p-01015d54.js +0 -38
  460. package/dist/components/p-304eab56.js +0 -49
  461. package/dist/components/p-76c4c708.js +0 -56
  462. package/dist/components/p-aec44f8f.js +0 -45
  463. package/dist/ketchup/p-1206f77c.entry.js +0 -9
  464. package/dist/ketchup/p-153b7eda.js +0 -1
  465. package/dist/ketchup/p-2d3a89a0.entry.js +0 -1
  466. package/dist/ketchup/p-35e17994.entry.js +0 -1
  467. package/dist/ketchup/p-3f41285f.entry.js +0 -1
  468. package/dist/ketchup/p-4bbc1e40.entry.js +0 -1
  469. package/dist/ketchup/p-4c0d6ec5.entry.js +0 -1
  470. package/dist/ketchup/p-5ee25762.js +0 -1
  471. package/dist/ketchup/p-60cdaa75.entry.js +0 -1
  472. package/dist/ketchup/p-60e8333c.entry.js +0 -1
  473. package/dist/ketchup/p-7585373e.entry.js +0 -1
  474. package/dist/ketchup/p-792e9244.entry.js +0 -1
  475. package/dist/ketchup/p-7a36e244.js +0 -1
  476. package/dist/ketchup/p-7a4f5182.js +0 -1
  477. package/dist/ketchup/p-7c078bc1.entry.js +0 -1
  478. package/dist/ketchup/p-7fbb8a80.entry.js +0 -1
  479. package/dist/ketchup/p-8b97f53e.js +0 -1
  480. package/dist/ketchup/p-97fe2d0c.entry.js +0 -1
  481. package/dist/ketchup/p-9b92dd8f.entry.js +0 -1
  482. package/dist/ketchup/p-a781d278.entry.js +0 -1
  483. package/dist/ketchup/p-b120abd7.js +0 -1
  484. package/dist/ketchup/p-c5614700.js +0 -21
  485. package/dist/ketchup/p-ce31744e.entry.js +0 -1
  486. package/dist/ketchup/p-d104a456.js +0 -1
  487. package/dist/ketchup/p-d39c3267.js +0 -1
  488. package/dist/ketchup/p-e7f6ca6c.entry.js +0 -1
  489. package/dist/ketchup/p-eb908331.entry.js +0 -1
  490. package/dist/ketchup/p-f38c2d0e.entry.js +0 -16
  491. package/dist/ketchup/p-f648a3cb.entry.js +0 -1
  492. package/dist/ketchup/p-f8c8cc84.js +0 -1
@@ -1 +1 @@
1
- import{r as t,c as e,f as i,h as a,H as l,d as r}from"./p-b0368f88.js";import{F as o}from"./p-d39c3267.js";import{a as n}from"./p-e3062c19.js";import{F as s}from"./p-b120abd7.js";import{k as f,g as _,s as p,h as m,Q as h}from"./p-c5614700.js";import{c}from"./p-635bb4b3.js";import"./p-1ee561ba.js";var u;!function(t){t.autofitOnExpand="The component will autofit everytime a node is expanded.",t.autofitOnLoad="The component's initial render will fit the container by invoking the runAutofit method.",t.cardData="Used to render the family tree boxes as kup-cards (through kup-box).",t.collapsible="Nodes can be expanded/collapsed.",t.customStyle="Custom style of the component.",t.data="Actual data of the component",t.layout="Layout of the boxes.",t.stackedLeaves="Child nodes that have no children are arranged vertically."}(u||(u={}));var d,y,k,g,v,x,b,w,z,j,C,E,T,W,M,S,D,L,O,P,R,A,F,X,Y,H=function(t,e,i,a){if("a"===i&&!a)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!a:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?a:"a"===i?a.call(t):a?a.value:e.get(t)},$=function(t,e,i,a,l){if("m"===a)throw new TypeError("Private method is not writable");if("a"===a&&!l)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!l:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===a?l.call(t,i):l?l.value=i:e.set(t,i),i};const B=class{constructor(i){t(this,i),this.kupClick=e(this,"kup-familytree-click",6),this.kupContextMenu=e(this,"kup-familytree-contextmenu",6),this.kupDblClick=e(this,"kup-familytree-dblclick",6),d.add(this),y.set(this,[]),k.set(this,!1),g.set(this,0),v.set(this,0),x.set(this,[]),b.set(this,f()),w.set(this,(t=>{const e=t.clientX-H(this,g,"f"),i=t.clientY-H(this,v,"f");this.rootElement.scrollTop-=i,this.rootElement.scrollLeft-=e,$(this,g,t.clientX,"f"),$(this,v,t.clientY,"f")})),z.set(this,!1),j.set(this,null),this.autofitOnExpand=!0,this.autofitOnLoad=!0,this.cardData=null,this.collapsible=!0,this.customStyle="",this.data=null,this.layout=null,this.stackedLeaves=!1}async collapseAll(t=this.data.rows){H(this,b,"f").data.node.setProperties(t,{isExpanded:!1},!0),this.refresh()}async expandAll(t=this.data.rows){H(this,b,"f").data.node.setProperties(t,{isExpanded:!0},!0),this.refresh()}async getProps(t){return _(this,u,t)}async refresh(){i(this)}async runAutofit(){const t=H(this,j,"f").clientWidth,e=H(this,j,"f").children[0].clientWidth,i=.01,a=.85*t,l=.95*t;let r=1,o=2e3,n=e;for(;(n<a||n>l)&&o>0&&r>i;)o--,n<a?r+=i:n>l?r-=i:o=0,n=e*r;H(this,j,"f").style.setProperty("--kup_familytree_scale",r<=1?r.toFixed(2):"1")}async setProps(t){p(this,u,t)}componentWillLoad(){H(this,b,"f").debug.logLoad(this,!1),H(this,b,"f").language.register(this),H(this,b,"f").theme.register(this)}componentDidLoad(){H(this,d,"m",X).call(this),this.autofitOnLoad&&this.runAutofit(),H(this,b,"f").debug.logLoad(this,!0)}componentWillRender(){H(this,b,"f").debug.logRender(this,!1)}componentDidRender(){H(this,z,"f")&&($(this,z,!1,"f"),this.runAutofit()),H(this,b,"f").debug.logRender(this,!0)}render(){return a(l,{key:"a9f9ee994a291bdd1ccf08b30874b2db4bc4259a",onDrag:t=>t.preventDefault(),onPointerDown:t=>{t.preventDefault(),H(this,d,"m",O).call(this,t)},onWheel:t=>{H(this,d,"m",Y).call(this,t)}},a("style",{key:"bd183547c40402c13ff97646b17040ef6a53282d"},H(this,b,"f").theme.setKupStyle(this.rootElement)),a("div",{key:"9cb4e3898a457cd224333306aa6fe8bfda4f89da",id:c},H(this,d,"m",D).call(this)))}disconnectedCallback(){H(this,b,"f").language.unregister(this),H(this,b,"f").theme.unregister(this)}get rootElement(){return r(this)}};y=new WeakMap,k=new WeakMap,g=new WeakMap,v=new WeakMap,x=new WeakMap,b=new WeakMap,w=new WeakMap,z=new WeakMap,j=new WeakMap,d=new WeakSet,C=function(t,e,i,l){const r=[];return r.push(a("td",{class:{"family-tree__line":!0,"family-tree__line--right":!t,"family-tree__line--top":!t}},a("div",{class:"family-tree__line--placeholder"}))),r.push(a("td",{class:{"family-tree__line":!0,"family-tree__line--left":t,"family-tree__line--top":t&&!i||l&&!e}},a("div",{class:"family-tree__line--placeholder"}))),r},E=function t(e){var i;let l=null,r=null;(!this.collapsible||this.collapsible&&e.isExpanded)&&(null===(i=e.children)||void 0===i||i.forEach((t=>{t.isStaff?(r||(r=[]),r.push(t)):(l||(l=[]),l.push(t))})));const s=this.stackedLeaves&&l&&l.every((t=>!t.children||0==t.children.length)),f=l?2*l.length:1,_={"family-tree__line":!0,"family-tree__line--placeholder":!(!l&&!r),"family-tree__line--vertical":!(!l&&!r)},p={columns:[{name:"*TREECOL",title:"Fake column",visible:!1},...this.data.columns],rows:[{cells:Object.assign({"*TREECOL":e},e.cells)}]},h=e.layout||this.layout||1,c={icon:e.isExpanded?"remove":"plus",shaped:!0,slim:!0,styling:n.OUTLINED,title:`${H(this,b,"f").language.translate(m.EXPAND)}/${H(this,b,"f").language.translate(m.COLLAPSE)} (CTRL + Click)`,onClick:t=>{t.ctrlKey&&e.children&&e.children.length>0&&(e.isExpanded?this.collapseAll(e.children):this.expandAll(e.children)),e.isExpanded=!e.isExpanded,this.autofitOnExpand&&$(this,z,!0,"f"),this.refresh()},wrapperClass:"family-tree__item__expand"};let u=null;H(this,d,"m",L).call(this,h)&&(u=a("kup-box",{class:"kup-borderless kup-paddingless",customStyle:"#kup-component { background: var(--kup_familytree_item_background_color); border: 2px solid var(--kup_familytree_lines_color); box-sizing: border-box; height: var(--kup_familytree_item_height); padding: 0 var(--kup_familytree_item_h_padding); } #kup-component .box-component { background: var(--kup_familytree_item_background_color); box-sizing: border-box; height: 100%;} #kup-component .f-cell__text { color: var(--kup_familytree_item_color); }",data:p,cardData:this.cardData,layout:this.cardData?null:h,showSelection:!1}));const y=a("div",{class:"family-tree__item"},a("div",{class:"family-tree__item__wrapper"},H(this,d,"m",L).call(this,h)?u:H(this,d,"m",T).call(this,e,h),this.collapsible&&e.children&&e.children.length>0?a(o,Object.assign({},c)):void 0)),k={"--kup_familytree_staffchildren":(null==r?void 0:r.length.toString())||"0"};return a("table",{class:{"family-tree__node":!0,"family-tree__node--stacked":this.stackedLeaves&&!e.isStaff&&(!e.children||0==e.children.length)}},a("tr",null,a("td",{"data-row":e,colSpan:f},y)),a("tr",null,a("td",{colSpan:f},a("div",{class:_}))),r?[a("tr",null,a("td",{colSpan:f},a("div",{class:Object.assign(Object.assign({},_),{"family-tree__line--staff":!0}),style:k}),a("div",{class:"family-tree__node__staff",style:k},r.map((e=>[a("div",{class:"family-tree__node__staff__item"},H(this,d,"m",t).call(this,e))])))))]:null,r&&l?[a("tr",null,a("td",{colSpan:f},a("div",{class:_})))]:null,l?[a("tr",null,s?a("td",{colSpan:f},a("div",{class:_})):l.map((t=>H(this,d,"m",C).call(this,0==l.indexOf(t),l.indexOf(t)==l.length-1,1==l.length,l.length>2)))),a("tr",null,s?a("td",{colSpan:f},l.map((e=>H(this,d,"m",t).call(this,e)))):l.map((e=>a("td",{colSpan:2},H(this,d,"m",t).call(this,e)))))]:void 0)},T=function(t,e){return 2===e?H(this,d,"m",M).call(this,t):H(this,d,"m",W).call(this,t)},W=function(t){return a("div",{class:"family-tree__item__layout family-tree__item__layout--1"},a("div",{class:"family-tree__item__layout__text__title"},t.value))},M=function(t){return a("div",{class:"family-tree__item__layout family-tree__item__layout--2"},a("div",{class:"family-tree__item__layout__color"}),a("div",{class:"family-tree__item__layout__image"},a(s,{resource:t.icon,placeholderResource:t.placeholderIcon,sizeX:"48px",sizeY:"48px"})),a("div",{class:"family-tree__item__layout__text"},a("div",{class:"family-tree__item__layout__text__title"},t.value),t.title?a("div",{class:"family-tree__item__layout__text__subtitle"},t.title):null))},S=function(t){return t.map((t=>H(this,d,"m",E).call(this,t)))},D=function(){return a("div",{class:"family-tree",onContextMenu:t=>{t.preventDefault()},ref:t=>$(this,j,t,"f")},this.data&&this.data.rows&&this.data.rows.length?H(this,d,"m",S).call(this,this.data.rows):a("div",null,H(this,b,"f").language.translate(m.EMPTY_DATA)))},L=function(t){return!!this.cardData||t&&t.sections&&t.sections.length>0},O=function(t){$(this,g,t.clientX,"f"),$(this,v,t.clientY,"f"),H(this,j,"f").classList.add("family-tree--dragging");const e=()=>{document.removeEventListener("pointermove",H(this,w,"f")),document.removeEventListener("pointerup",e),H(this,j,"f").classList.remove("family-tree--dragging")};document.addEventListener("pointermove",H(this,w,"f")),document.addEventListener("pointerup",e)},P=function(t,e){let i,a;if(t)for(let e=t.length-1;e>=0;e--){const l=t[e];l.tagName&&(l.classList.contains("family-tree__item__expand")&&(i=l),"TD"===l.tagName.toUpperCase())&&(a=l)}let l=null,r=null,o=null;return a&&(l=a["data-cell"],r=a["data-column"],o=a["data-row"]),{cell:l||null,column:r||null,expandButton:i||null,originalEvent:e,row:o||null,td:a||null}},R=function(t){return H(this,d,"m",P).call(this,H(this,b,"f").getEventPath(t.target,this.rootElement),t)},A=function(t){return H(this,d,"m",P).call(this,H(this,b,"f").getEventPath(t.target,this.rootElement),t)},F=function(t){return H(this,d,"m",P).call(this,H(this,b,"f").getEventPath(t.target,this.rootElement),t)},X=function(){H(this,x,"f").push(this.rootElement),H(this,b,"f").interact.on(this.rootElement,h.TAP,(t=>{if(H(this,k,"f"))$(this,k,!1,"f");else switch(t.button){case 0:const e={};for(const i in t)e[i]=t[i];H(this,y,"f").push(setTimeout((()=>{this.kupClick.emit({comp:this,id:this.rootElement.id,details:H(this,d,"m",R).call(this,e)})}),300));break;case 2:this.kupContextMenu.emit({comp:this,id:this.rootElement.id,details:H(this,d,"m",A).call(this,t)})}})),H(this,b,"f").interact.on(this.rootElement,h.DOUBLETAP,(t=>{if(0===t.button){for(let t=0;t<H(this,y,"f").length;t++)clearTimeout(H(this,y,"f")[t]),H(this,b,"f").debug.logMessage(this,"Cleared clickHandler timeout("+H(this,y,"f")[t]+").");$(this,y,[],"f"),this.kupDblClick.emit({comp:this,id:this.rootElement.id,details:H(this,d,"m",F).call(this,t)})}})),H(this,b,"f").interact.on(this.rootElement,h.HOLD,(t=>{"pen"!==t.pointerType&&"touch"!==t.pointerType||($(this,k,!0,"f"),this.kupContextMenu.emit({comp:this,id:this.rootElement.id,details:H(this,d,"m",A).call(this,t)}))}))},Y=function(t){if(t.ctrlKey){t.preventDefault();const e=parseFloat(H(this,j,"f").style.getPropertyValue("--kup_familytree_scale"))||1,i=.05;let a=t.deltaY>0?e-i:e+i;a<i&&(a=i),H(this,j,"f").style.setProperty("--kup_familytree_scale",a.toFixed(2))}},B.style='.kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{--kup_familytree_item_background_color:var(\n --kup-layer-1,\n var(--kup-layer-1)\n );--kup_familytree_border_color:var(\n --kup-familytree-border-color,\n var(--kup-info-color-50)\n );--kup_familytree_item_color:var(\n --kup-familytree-item-color,\n var(--kup-text-color)\n );--kup_familytree_item_height:var(--kup-familytree-item-height, 80px);--kup_familytree_item_h_padding:var(\n --kup-familytree-item-h-padding,\n var(--kup-space-03)\n );--kup_familytree_item_v_padding:var(\n --kup-familytree-item-v-padding,\n var(--kup-space-03)\n );--kup_familytree_item_width:var(--kup-familytree-item-width, 280px);--kup_familytree_lines_color:var(\n --kup-familytree-lines-color,\n var(--kup-border-subtle)\n );display:block;overflow:hidden}.family-tree{cursor:grab;display:flex;transform:scale(var(--kup_familytree_scale, 1));transform-origin:0px 0px}.family-tree--dragging{cursor:grabbing}.family-tree__node{border-collapse:collapse;margin:auto}.family-tree__node--stacked{margin-bottom:4px}.family-tree__node__staff{align-items:center;display:flex;flex-direction:column;height:0;transform:translateX(calc((var(--kup_familytree_item_width) + var(--kup_familytree_item_h_padding) * 2) / 2)) translateY(calc(0px - (var(--kup_familytree_staffchildren) * var(--kup_familytree_item_height) + var(--kup_familytree_staffchildren) * var(--kup_familytree_item_v_padding) * 2)))}.family-tree__node__staff__item{padding:var(--kup_familytree_item_v_padding);text-align:left}.family-tree__node__staff__item:before{border-top:2px solid var(--kup_familytree_lines_color);content:"";position:absolute;transform:translateX(calc(100% + 2px)) translateY(calc(var(--kup_familytree_item_height) / 2));width:var(--kup_familytree_item_h_padding)}.family-tree__node td{vertical-align:top;padding:0}.family-tree__line--left{border-left:2px solid var(--kup_familytree_lines_color)}.family-tree__line--placeholder{height:calc(var(--kup_familytree_item_height) / 2)}.family-tree__line--staff{height:calc(var(--kup_familytree_staffchildren) * var(--kup_familytree_item_height) + var(--kup_familytree_staffchildren) * var(--kup_familytree_item_v_padding) * 2)}.family-tree__line--right{border-right:2px solid var(--kup_familytree_lines_color)}.family-tree__line--top{border-top:2px solid var(--kup_familytree_lines_color)}.family-tree__line--vertical{background-color:var(--kup_familytree_lines_color);margin-left:auto;margin-right:auto;width:2px}.family-tree__item{display:flex}.family-tree__item__wrapper{margin:auto}.family-tree__item__wrapper kup-box{margin:0 auto;overflow:hidden;padding:0 18px;width:var(--kup_familytree_item_width);z-index:1}.family-tree__item__wrapper .f-button{--kup-button-primary-color:var(--kup-text-color);--kup-button-primary-color-rgb:var(--kup-text-color-rgb);--kup-button-primary-color-h:var(--kup-text-color-h);--kup-button-primary-color-s:var(--kup-text-color-s);--kup-button-primary-color-l:var(--kup-text-color-l);margin:0 auto;width:max-content}.family-tree__item__wrapper .f-button button{height:32px;width:32px}.family-tree__item__layout{background-color:var(--kup_familytree_item_background_color);box-sizing:border-box;display:flex;height:var(--kup_familytree_item_height);margin:0 18px;width:var(--kup_familytree_item_width)}.family-tree__item__layout--1{justify-content:center;color:var(--kup_familytree_item_color)}.family-tree__item__layout--1>.family-tree__item__layout__text__title{margin-top:auto;margin-bottom:auto}.family-tree__item__layout--2{background-color:var(--kup_familytree_item_background_color);justify-content:flex-start}.family-tree__item__layout__color{background-color:var(--kup_familytree_border_color);height:100%;width:10px}.family-tree__item__layout__image{display:flex;margin:auto var(--kup-space-03)}.family-tree__item__layout__image img{border-radius:50px;object-fit:cover}.family-tree__item__layout__text{display:flex;flex-direction:column;justify-content:center}.family-tree__item__layout__text__title{font-size:18px;margin-bottom:5px}.family-tree__item__layout__text__subtitle{font-size:14px}.family-tree__item__layout__text__title,.family-tree__item__layout__text__subtitle{max-width:calc(var(--kup_familytree_item_width) - 30%);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}';export{B as kup_family_tree}
1
+ import{r as t,c as e,f as i,h as a,H as l,d as r}from"./p-710d0a7d.js";import{F as o}from"./p-c4224227.js";import{a as n}from"./p-e3062c19.js";import{F as s}from"./p-3cab6420.js";import{k as f,g as _,s as p,h as m,V as h}from"./p-e4fa2cf3.js";import{c}from"./p-635bb4b3.js";import"./p-1ee561ba.js";var u;!function(t){t.autofitOnExpand="The component will autofit everytime a node is expanded.",t.autofitOnLoad="The component's initial render will fit the container by invoking the runAutofit method.",t.cardData="Used to render the family tree boxes as kup-cards (through kup-box).",t.collapsible="Nodes can be expanded/collapsed.",t.customStyle="Custom style of the component.",t.data="Actual data of the component",t.layout="Layout of the boxes.",t.stackedLeaves="Child nodes that have no children are arranged vertically."}(u||(u={}));var d,y,k,g,v,x,b,w,z,j,C,E,T,W,M,S,D,L,O,P,R,A,F,X,Y,H=function(t,e,i,a){if("a"===i&&!a)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!a:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?a:"a"===i?a.call(t):a?a.value:e.get(t)},$=function(t,e,i,a,l){if("m"===a)throw new TypeError("Private method is not writable");if("a"===a&&!l)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!l:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===a?l.call(t,i):l?l.value=i:e.set(t,i),i};const B=class{constructor(i){t(this,i),this.kupClick=e(this,"kup-familytree-click",6),this.kupContextMenu=e(this,"kup-familytree-contextmenu",6),this.kupDblClick=e(this,"kup-familytree-dblclick",6),d.add(this),y.set(this,[]),k.set(this,!1),g.set(this,0),v.set(this,0),x.set(this,[]),b.set(this,f()),w.set(this,(t=>{const e=t.clientX-H(this,g,"f"),i=t.clientY-H(this,v,"f");this.rootElement.scrollTop-=i,this.rootElement.scrollLeft-=e,$(this,g,t.clientX,"f"),$(this,v,t.clientY,"f")})),z.set(this,!1),j.set(this,null),this.autofitOnExpand=!0,this.autofitOnLoad=!0,this.cardData=null,this.collapsible=!0,this.customStyle="",this.data=null,this.layout=null,this.stackedLeaves=!1}async collapseAll(t=this.data.rows){H(this,b,"f").data.node.setProperties(t,{isExpanded:!1},!0),this.refresh()}async expandAll(t=this.data.rows){H(this,b,"f").data.node.setProperties(t,{isExpanded:!0},!0),this.refresh()}async getProps(t){return _(this,u,t)}async refresh(){i(this)}async runAutofit(){const t=H(this,j,"f").clientWidth,e=H(this,j,"f").children[0].clientWidth,i=.01,a=.85*t,l=.95*t;let r=1,o=2e3,n=e;for(;(n<a||n>l)&&o>0&&r>i;)o--,n<a?r+=i:n>l?r-=i:o=0,n=e*r;H(this,j,"f").style.setProperty("--kup_familytree_scale",r<=1?r.toFixed(2):"1")}async setProps(t){p(this,u,t)}componentWillLoad(){H(this,b,"f").debug.logLoad(this,!1),H(this,b,"f").language.register(this),H(this,b,"f").theme.register(this)}componentDidLoad(){H(this,d,"m",X).call(this),this.autofitOnLoad&&this.runAutofit(),H(this,b,"f").debug.logLoad(this,!0)}componentWillRender(){H(this,b,"f").debug.logRender(this,!1)}componentDidRender(){H(this,z,"f")&&($(this,z,!1,"f"),this.runAutofit()),H(this,b,"f").debug.logRender(this,!0)}render(){return a(l,{key:"a9f9ee994a291bdd1ccf08b30874b2db4bc4259a",onDrag:t=>t.preventDefault(),onPointerDown:t=>{t.preventDefault(),H(this,d,"m",O).call(this,t)},onWheel:t=>{H(this,d,"m",Y).call(this,t)}},a("style",{key:"bd183547c40402c13ff97646b17040ef6a53282d"},H(this,b,"f").theme.setKupStyle(this.rootElement)),a("div",{key:"9cb4e3898a457cd224333306aa6fe8bfda4f89da",id:c},H(this,d,"m",D).call(this)))}disconnectedCallback(){H(this,b,"f").language.unregister(this),H(this,b,"f").theme.unregister(this)}get rootElement(){return r(this)}};y=new WeakMap,k=new WeakMap,g=new WeakMap,v=new WeakMap,x=new WeakMap,b=new WeakMap,w=new WeakMap,z=new WeakMap,j=new WeakMap,d=new WeakSet,C=function(t,e,i,l){const r=[];return r.push(a("td",{class:{"family-tree__line":!0,"family-tree__line--right":!t,"family-tree__line--top":!t}},a("div",{class:"family-tree__line--placeholder"}))),r.push(a("td",{class:{"family-tree__line":!0,"family-tree__line--left":t,"family-tree__line--top":t&&!i||l&&!e}},a("div",{class:"family-tree__line--placeholder"}))),r},E=function t(e){var i;let l=null,r=null;(!this.collapsible||this.collapsible&&e.isExpanded)&&(null===(i=e.children)||void 0===i||i.forEach((t=>{t.isStaff?(r||(r=[]),r.push(t)):(l||(l=[]),l.push(t))})));const s=this.stackedLeaves&&l&&l.every((t=>!t.children||0==t.children.length)),f=l?2*l.length:1,_={"family-tree__line":!0,"family-tree__line--placeholder":!(!l&&!r),"family-tree__line--vertical":!(!l&&!r)},p={columns:[{name:"*TREECOL",title:"Fake column",visible:!1},...this.data.columns],rows:[{cells:Object.assign({"*TREECOL":e},e.cells)}]},h=e.layout||this.layout||1,c={icon:e.isExpanded?"remove":"plus",shaped:!0,slim:!0,styling:n.OUTLINED,title:`${H(this,b,"f").language.translate(m.EXPAND)}/${H(this,b,"f").language.translate(m.COLLAPSE)} (CTRL + Click)`,onClick:t=>{t.ctrlKey&&e.children&&e.children.length>0&&(e.isExpanded?this.collapseAll(e.children):this.expandAll(e.children)),e.isExpanded=!e.isExpanded,this.autofitOnExpand&&$(this,z,!0,"f"),this.refresh()},wrapperClass:"family-tree__item__expand"};let u=null;H(this,d,"m",L).call(this,h)&&(u=a("kup-box",{class:"kup-borderless kup-paddingless",customStyle:"#kup-component { background: var(--kup_familytree_item_background_color); border: 2px solid var(--kup_familytree_lines_color); box-sizing: border-box; height: var(--kup_familytree_item_height); padding: 0 var(--kup_familytree_item_h_padding); } #kup-component .box-component { background: var(--kup_familytree_item_background_color); box-sizing: border-box; height: 100%;} #kup-component .f-cell__text { color: var(--kup_familytree_item_color); }",data:p,cardData:this.cardData,layout:this.cardData?null:h,showSelection:!1}));const y=a("div",{class:"family-tree__item"},a("div",{class:"family-tree__item__wrapper"},H(this,d,"m",L).call(this,h)?u:H(this,d,"m",T).call(this,e,h),this.collapsible&&e.children&&e.children.length>0?a(o,Object.assign({},c)):void 0)),k={"--kup_familytree_staffchildren":(null==r?void 0:r.length.toString())||"0"};return a("table",{class:{"family-tree__node":!0,"family-tree__node--stacked":this.stackedLeaves&&!e.isStaff&&(!e.children||0==e.children.length)}},a("tr",null,a("td",{"data-row":e,colSpan:f},y)),a("tr",null,a("td",{colSpan:f},a("div",{class:_}))),r?[a("tr",null,a("td",{colSpan:f},a("div",{class:Object.assign(Object.assign({},_),{"family-tree__line--staff":!0}),style:k}),a("div",{class:"family-tree__node__staff",style:k},r.map((e=>[a("div",{class:"family-tree__node__staff__item"},H(this,d,"m",t).call(this,e))])))))]:null,r&&l?[a("tr",null,a("td",{colSpan:f},a("div",{class:_})))]:null,l?[a("tr",null,s?a("td",{colSpan:f},a("div",{class:_})):l.map((t=>H(this,d,"m",C).call(this,0==l.indexOf(t),l.indexOf(t)==l.length-1,1==l.length,l.length>2)))),a("tr",null,s?a("td",{colSpan:f},l.map((e=>H(this,d,"m",t).call(this,e)))):l.map((e=>a("td",{colSpan:2},H(this,d,"m",t).call(this,e)))))]:void 0)},T=function(t,e){return 2===e?H(this,d,"m",M).call(this,t):H(this,d,"m",W).call(this,t)},W=function(t){return a("div",{class:"family-tree__item__layout family-tree__item__layout--1"},a("div",{class:"family-tree__item__layout__text__title"},t.value))},M=function(t){return a("div",{class:"family-tree__item__layout family-tree__item__layout--2"},a("div",{class:"family-tree__item__layout__color"}),a("div",{class:"family-tree__item__layout__image"},a(s,{resource:t.icon,placeholderResource:t.placeholderIcon,sizeX:"48px",sizeY:"48px"})),a("div",{class:"family-tree__item__layout__text"},a("div",{class:"family-tree__item__layout__text__title"},t.value),t.title?a("div",{class:"family-tree__item__layout__text__subtitle"},t.title):null))},S=function(t){return t.map((t=>H(this,d,"m",E).call(this,t)))},D=function(){return a("div",{class:"family-tree",onContextMenu:t=>{t.preventDefault()},ref:t=>$(this,j,t,"f")},this.data&&this.data.rows&&this.data.rows.length?H(this,d,"m",S).call(this,this.data.rows):a("div",null,H(this,b,"f").language.translate(m.EMPTY_DATA)))},L=function(t){return!!this.cardData||t&&t.sections&&t.sections.length>0},O=function(t){$(this,g,t.clientX,"f"),$(this,v,t.clientY,"f"),H(this,j,"f").classList.add("family-tree--dragging");const e=()=>{document.removeEventListener("pointermove",H(this,w,"f")),document.removeEventListener("pointerup",e),H(this,j,"f").classList.remove("family-tree--dragging")};document.addEventListener("pointermove",H(this,w,"f")),document.addEventListener("pointerup",e)},P=function(t,e){let i,a;if(t)for(let e=t.length-1;e>=0;e--){const l=t[e];l.tagName&&(l.classList.contains("family-tree__item__expand")&&(i=l),"TD"===l.tagName.toUpperCase())&&(a=l)}let l=null,r=null,o=null;return a&&(l=a["data-cell"],r=a["data-column"],o=a["data-row"]),{cell:l||null,column:r||null,expandButton:i||null,originalEvent:e,row:o||null,td:a||null}},R=function(t){return H(this,d,"m",P).call(this,H(this,b,"f").getEventPath(t.target,this.rootElement),t)},A=function(t){return H(this,d,"m",P).call(this,H(this,b,"f").getEventPath(t.target,this.rootElement),t)},F=function(t){return H(this,d,"m",P).call(this,H(this,b,"f").getEventPath(t.target,this.rootElement),t)},X=function(){H(this,x,"f").push(this.rootElement),H(this,b,"f").interact.on(this.rootElement,h.TAP,(t=>{if(H(this,k,"f"))$(this,k,!1,"f");else switch(t.button){case 0:const e={};for(const i in t)e[i]=t[i];H(this,y,"f").push(setTimeout((()=>{this.kupClick.emit({comp:this,id:this.rootElement.id,details:H(this,d,"m",R).call(this,e)})}),300));break;case 2:this.kupContextMenu.emit({comp:this,id:this.rootElement.id,details:H(this,d,"m",A).call(this,t)})}})),H(this,b,"f").interact.on(this.rootElement,h.DOUBLETAP,(t=>{if(0===t.button){for(let t=0;t<H(this,y,"f").length;t++)clearTimeout(H(this,y,"f")[t]),H(this,b,"f").debug.logMessage(this,"Cleared clickHandler timeout("+H(this,y,"f")[t]+").");$(this,y,[],"f"),this.kupDblClick.emit({comp:this,id:this.rootElement.id,details:H(this,d,"m",F).call(this,t)})}})),H(this,b,"f").interact.on(this.rootElement,h.HOLD,(t=>{"pen"!==t.pointerType&&"touch"!==t.pointerType||($(this,k,!0,"f"),this.kupContextMenu.emit({comp:this,id:this.rootElement.id,details:H(this,d,"m",A).call(this,t)}))}))},Y=function(t){if(t.ctrlKey){t.preventDefault();const e=parseFloat(H(this,j,"f").style.getPropertyValue("--kup_familytree_scale"))||1,i=.05;let a=t.deltaY>0?e-i:e+i;a<i&&(a=i),H(this,j,"f").style.setProperty("--kup_familytree_scale",a.toFixed(2))}},B.style='.kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:var(--kup-label-01-font-size, 12px);line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-compact-01-font-size, 14px);line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-01-font-size, 14px);line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{--kup_familytree_item_background_color:var(\n --kup-layer-1,\n var(--kup-layer-1)\n );--kup_familytree_border_color:var(\n --kup-familytree-border-color,\n var(--kup-info-color-50)\n );--kup_familytree_item_color:var(\n --kup-familytree-item-color,\n var(--kup-text-color)\n );--kup_familytree_item_minheight:var(--kup-familytree-item-minheight, 32px);--kup_familytree_item_height:var(--kup-familytree-item-height, 100%);--kup_familytree_item_h_padding:var(\n --kup-familytree-item-h-padding,\n var(--kup-space-00)\n );--kup_familytree_item_v_padding:var(\n --kup-familytree-item-v-padding,\n var(--kup-space-03)\n );--kup_familytree_item_width:var(--kup-familytree-item-width, 280px);--kup_familytree_lines_color:var(\n --kup-familytree-lines-color,\n var(--kup-border-subtle)\n );display:block;overflow:hidden}.family-tree{cursor:grab;display:flex;transform:scale(var(--kup_familytree_scale, 1));transform-origin:0px 0px}.family-tree--dragging{cursor:grabbing}.family-tree__node{border-collapse:collapse;margin:auto}.family-tree__node--stacked{margin-bottom:4px}.family-tree__node__staff{align-items:center;display:flex;flex-direction:column;height:0;transform:translateX(calc((var(--kup_familytree_item_width) + var(--kup_familytree_item_h_padding) * 2) / 2)) translateY(calc(0px - (var(--kup_familytree_staffchildren) * var(--kup_familytree_item_minheight) + var(--kup_familytree_staffchildren) * var(--kup_familytree_item_v_padding) * 2)))}.family-tree__node__staff__item{padding:var(--kup_familytree_item_v_padding);text-align:left}.family-tree__node__staff__item:before{border-top:2px solid var(--kup_familytree_lines_color);content:"";position:absolute;transform:translateX(calc(100% + 2px)) translateY(calc(var(--kup_familytree_item_minheight) / 2));width:var(--kup_familytree_item_h_padding)}.family-tree__node td{vertical-align:top;padding:0}.family-tree__line--left{border-left:2px solid var(--kup_familytree_lines_color)}.family-tree__line--placeholder{height:32px}.family-tree__line--staff{height:calc(var(--kup_familytree_staffchildren) * var(--kup_familytree_item_minheight) + var(--kup_familytree_staffchildren) * var(--kup_familytree_item_v_padding) * 2)}.family-tree__line--right{border-right:2px solid var(--kup_familytree_lines_color)}.family-tree__line--top{border-top:2px solid var(--kup_familytree_lines_color)}.family-tree__line--vertical{background-color:var(--kup_familytree_lines_color);margin-left:auto;margin-right:auto;width:2px}.family-tree__item{display:flex}.family-tree__item__wrapper{margin:auto;display:flex;flex-direction:column}.family-tree__item__wrapper kup-box{margin:0 auto;overflow:hidden;padding:0 var(--kup-space-05);z-index:1}.family-tree__item__wrapper .f-button{--kup-button-primary-color:var(--kup-text-color);--kup-button-primary-color-rgb:var(--kup-text-color-rgb);--kup-button-primary-color-h:var(--kup-text-color-h);--kup-button-primary-color-s:var(--kup-text-color-s);--kup-button-primary-color-l:var(--kup-text-color-l);margin:0 auto;width:max-content}.family-tree__item__wrapper .f-button button{height:32px;width:32px}.family-tree__item__layout{background-color:var(--kup_familytree_item_background_color);box-sizing:border-box;display:flex;height:--kup_familytree_item_minheight;min-height:32px;margin:0 18px;width:var(--kup_familytree_item_width)}.family-tree__item__layout--1{justify-content:center;color:var(--kup_familytree_item_color)}.family-tree__item__layout--1>.family-tree__item__layout__text__title{margin-top:auto;margin-bottom:auto}.family-tree__item__layout--2{background-color:var(--kup_familytree_item_background_color);justify-content:flex-start}.family-tree__item__layout__color{background-color:var(--kup_familytree_border_color);height:100%;width:10px}.family-tree__item__layout__image{display:flex;margin:auto var(--kup-space-03)}.family-tree__item__layout__image img{border-radius:50px;object-fit:cover}.family-tree__item__layout__text{display:flex;flex-direction:column;justify-content:center}.family-tree__item__layout__text__title{font-size:18px;margin-bottom:5px}.family-tree__item__layout__text__subtitle{font-size:14px}.family-tree__item__layout__text__title,.family-tree__item__layout__text__subtitle{max-width:calc(var(--kup_familytree_item_width) - 30%);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}';export{B as kup_family_tree}
@@ -1 +1 @@
1
- import{r as t,c as e,f as i,h as a,H as s,d as o}from"./p-b0368f88.js";import{k as n,g as h,s as r,t as c,ac as l}from"./p-c5614700.js";import{c as p}from"./p-635bb4b3.js";import"./p-1ee561ba.js";var f;!function(t){t.columnsNumber="Sets the number of columns.",t.customStyle="Custom style of the component.",t.data="Actual data of the component.",t.decvalueCol="Sets the decimal value column.",t.descrCol="Sets the description column.",t.fullWidth="Sets whether the component occupies all available width.",t.horizontal="Sets whether the cards are placed horizontally or not.",t.iconCol="Sets the icon column.",t.iconcolorCol="Sets the icon color column.",t.intvalueCol="Sets the integer value column.",t.isClickable="Sets whether a single card is clickable or not.",t.layoutCol="Sets the layout column.",t.measureCol="Sets the unit of measure column.",t.textcolorCol="Sets the text color column.",t.valueCol="Sets the value column.",t.valuecolorCol="Sets the value color column."}(f||(f={}));var u,m=function(t,e,i,a){if("a"===i&&!a)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!a:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?a:"a"===i?a.call(t):a?a.value:e.get(t)};const d=class{constructor(i){t(this,i),this.kupCardListClickEvent=e(this,"kup-cardlist-click",7),u.set(this,n()),this.columnsNumber=1,this.customStyle="",this.data=null,this.fullWidth=!0,this.horizontal=!1,this.descrCol="",this.iconCol="",this.valueCol="",this.measureCol="",this.intvalueCol="",this.decvalueCol="",this.textcolorCol="",this.valuecolorCol="",this.iconcolorCol="",this.layoutCol="",this.isClickable=!1}async getProps(t){return h(this,f,t)}async refresh(){i(this)}async setProps(t){r(this,f,t)}componentWillLoad(){m(this,u,"f").debug.logLoad(this,!1),m(this,u,"f").theme.register(this)}componentDidLoad(){m(this,u,"f").debug.logLoad(this,!0)}componentDidRender(){m(this,u,"f").debug.logRender(this,!0)}render(){if(!this.data||!this.data.columns||!this.data.columns.length)return;const t=[];let e,i,o,n,h,r,f,d,g,k;for(let t=0;t<this.data.columns.length;t++){const a=this.data.columns[t];if(a.name)switch(a.name){case this.decvalueCol:e=a;break;case this.descrCol:i=a;break;case this.iconCol:o=a;break;case this.iconcolorCol:n=a;break;case this.intvalueCol:h=a;break;case this.layoutCol:r=a;break;case this.measureCol:f=a;break;case this.textcolorCol:d=a;break;case this.valueCol:g=a;break;case this.valuecolorCol:k=a}}for(let s=0;s<this.data.rows.length;s++){const p=this.data.rows[s],x={color:[],image:[],text:[]},y=r&&p.cells[r.name].value?parseInt(p.cells[r.name].value):1,w=a("kup-card",{class:this.isClickable?"is-clickable":"",customStyle:"#kup-component, .scalable-card { min-height: var(--kup_cardlist_cardsminheight) }",data:x,layoutFamily:c.SCALABLE,layoutNumber:y,key:s,"onKup-card-click":()=>{this.isClickable&&this.kupCardListClickEvent.emit({comp:this,id:this.rootElement.id,index:s,row:p})},slot:s.toString()}),b=(t,e,i)=>{if(t){const a=p.cells[t.name];if(a){const s=a.value;switch(e){case"color":x[e][i]=m(this,u,"f").theme.colorCheck(s).hexColor;break;case"image":x[e][i]={resource:s};break;default:x[e][i]=l(t,a)}}}};switch(y){case 1:b(d,"color",0),b(k,"color",1),b(i,"text",0),b(g,"text",1);break;case 2:b(n,"color",0),b(k,"color",1),b(o,"image",0),b(h,"text",0),b(e,"text",1),b(f,"text",2);break;case 3:b(k,"color",0),b(d,"color",1),b(g,"text",0),b(i,"text",1);break;case 4:b(n,"color",0),b(k,"color",1),b(d,"color",2),b(o,"image",0),b(h,"text",0),b(e,"text",1),b(f,"text",2),b(i,"text",3);break;case 5:b(n,"color",0),b(d,"color",1),b(k,"color",2),b(o,"image",0),b(i,"text",0),b(g,"text",1);break;case 6:case 7:case 8:b(n,"color",0),b(k,"color",1),b(d,"color",2),b(o,"image",0),b(g,"text",0),b(i,"text",1)}t.push(w)}return a(s,null,a("style",null,m(this,u,"f").theme.setKupStyle(this.rootElement)),a("div",{id:p},a("kup-grid",{class:(this.fullWidth?"kup-full-width":"")+" scalable-cards",columns:this.columnsNumber,singleLine:this.horizontal},t)))}disconnectedCallback(){m(this,u,"f").theme.unregister(this)}get rootElement(){return o(this)}};u=new WeakMap,d.style=".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{--kup_cardlist_cards_max_height:var(--kup-cardlist-cards-max-height, unset);--kup_cardlist_cards_min_height:var(--kup-cardlist-cards-min-height, unset);--kup_cardlist_cards_max_width:var(--kup-cardlist-cards-max-width, unset);--kup_cardlist_cards_min_width:var(--kup-cardlist-cards-min-width, unset);display:block;height:fit-content;width:100%}#kup-component{height:100%;width:100%}kup-card{max-height:var(--kup_cardlist_cards_max_height);min-height:var(--kup_cardlist_cards_min_height);max-width:var(--kup_cardlist_cards_max_width);min-width:var(--kup_cardlist_cards_min_width)}kup-card.is-clickable{cursor:pointer}kup-grid{--kup-grid-padding:0}";export{d as kup_card_list}
1
+ import{r as t,c as e,f as i,h as a,H as s,d as o}from"./p-710d0a7d.js";import{k as n,g as h,s as r,u as c,ah as l}from"./p-e4fa2cf3.js";import{c as p}from"./p-635bb4b3.js";import"./p-1ee561ba.js";var f;!function(t){t.columnsNumber="Sets the number of columns.",t.customStyle="Custom style of the component.",t.data="Actual data of the component.",t.decvalueCol="Sets the decimal value column.",t.descrCol="Sets the description column.",t.fullWidth="Sets whether the component occupies all available width.",t.horizontal="Sets whether the cards are placed horizontally or not.",t.iconCol="Sets the icon column.",t.iconcolorCol="Sets the icon color column.",t.intvalueCol="Sets the integer value column.",t.isClickable="Sets whether a single card is clickable or not.",t.layoutCol="Sets the layout column.",t.measureCol="Sets the unit of measure column.",t.textcolorCol="Sets the text color column.",t.valueCol="Sets the value column.",t.valuecolorCol="Sets the value color column."}(f||(f={}));var u,m=function(t,e,i,a){if("a"===i&&!a)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!a:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?a:"a"===i?a.call(t):a?a.value:e.get(t)};const d=class{constructor(i){t(this,i),this.kupCardListClickEvent=e(this,"kup-cardlist-click",7),u.set(this,n()),this.columnsNumber=1,this.customStyle="",this.data=null,this.fullWidth=!0,this.horizontal=!1,this.descrCol="",this.iconCol="",this.valueCol="",this.measureCol="",this.intvalueCol="",this.decvalueCol="",this.textcolorCol="",this.valuecolorCol="",this.iconcolorCol="",this.layoutCol="",this.isClickable=!1}async getProps(t){return h(this,f,t)}async refresh(){i(this)}async setProps(t){r(this,f,t)}componentWillLoad(){m(this,u,"f").debug.logLoad(this,!1),m(this,u,"f").theme.register(this)}componentDidLoad(){m(this,u,"f").debug.logLoad(this,!0)}componentDidRender(){m(this,u,"f").debug.logRender(this,!0)}render(){if(!this.data||!this.data.columns||!this.data.columns.length)return;const t=[];let e,i,o,n,h,r,f,d,g,k;for(let t=0;t<this.data.columns.length;t++){const a=this.data.columns[t];if(a.name)switch(a.name){case this.decvalueCol:e=a;break;case this.descrCol:i=a;break;case this.iconCol:o=a;break;case this.iconcolorCol:n=a;break;case this.intvalueCol:h=a;break;case this.layoutCol:r=a;break;case this.measureCol:f=a;break;case this.textcolorCol:d=a;break;case this.valueCol:g=a;break;case this.valuecolorCol:k=a}}for(let s=0;s<this.data.rows.length;s++){const p=this.data.rows[s],x={color:[],image:[],text:[]},y=r&&p.cells[r.name].value?parseInt(p.cells[r.name].value):1,w=a("kup-card",{class:this.isClickable?"is-clickable":"",customStyle:"#kup-component, .scalable-card { min-height: var(--kup_cardlist_cardsminheight) }",data:x,layoutFamily:c.SCALABLE,layoutNumber:y,key:s,"onKup-card-click":()=>{this.isClickable&&this.kupCardListClickEvent.emit({comp:this,id:this.rootElement.id,index:s,row:p})},slot:s.toString()}),v=(t,e,i)=>{if(t){const a=p.cells[t.name];if(a){const s=a.value;switch(e){case"color":x[e][i]=m(this,u,"f").theme.colorCheck(s).hexColor;break;case"image":x[e][i]={resource:s};break;default:x[e][i]=l(t,a)}}}};switch(y){case 1:v(d,"color",0),v(k,"color",1),v(i,"text",0),v(g,"text",1);break;case 2:v(n,"color",0),v(k,"color",1),v(o,"image",0),v(h,"text",0),v(e,"text",1),v(f,"text",2);break;case 3:v(k,"color",0),v(d,"color",1),v(g,"text",0),v(i,"text",1);break;case 4:v(n,"color",0),v(k,"color",1),v(d,"color",2),v(o,"image",0),v(h,"text",0),v(e,"text",1),v(f,"text",2),v(i,"text",3);break;case 5:v(n,"color",0),v(d,"color",1),v(k,"color",2),v(o,"image",0),v(i,"text",0),v(g,"text",1);break;case 6:case 7:case 8:v(n,"color",0),v(k,"color",1),v(d,"color",2),v(o,"image",0),v(g,"text",0),v(i,"text",1)}t.push(w)}return a(s,null,a("style",null,m(this,u,"f").theme.setKupStyle(this.rootElement)),a("div",{id:p},a("kup-grid",{class:(this.fullWidth?"kup-full-width":"")+" scalable-cards",columns:this.columnsNumber,singleLine:this.horizontal},t)))}disconnectedCallback(){m(this,u,"f").theme.unregister(this)}get rootElement(){return o(this)}};u=new WeakMap,d.style=".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:var(--kup-label-01-font-size, 12px);line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-compact-01-font-size, 14px);line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-01-font-size, 14px);line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{--kup_cardlist_cards_max_height:var(--kup-cardlist-cards-max-height, unset);--kup_cardlist_cards_min_height:var(--kup-cardlist-cards-min-height, unset);--kup_cardlist_cards_max_width:var(--kup-cardlist-cards-max-width, unset);--kup_cardlist_cards_min_width:var(--kup-cardlist-cards-min-width, unset);display:block;height:fit-content;width:100%}#kup-component{height:100%;width:100%}kup-card{max-height:var(--kup_cardlist_cards_max_height);min-height:var(--kup_cardlist_cards_min_height);max-width:var(--kup_cardlist_cards_max_width);min-width:var(--kup_cardlist_cards_min_width)}kup-card.is-clickable{cursor:pointer}kup-grid{--kup-grid-padding:0}";export{d as kup_card_list}
@@ -4,7 +4,7 @@ export declare enum KupActivityTimelineProps {
4
4
  data = "Dataset containing the activities list",
5
5
  dateColumn = "Column containing dates",
6
6
  timeColumn = "Column containing times",
7
- sortOrder = "Order for sorting"
7
+ sort = "Order for sorting"
8
8
  }
9
9
  export interface KupActivityTimelineData {
10
10
  title: string;
@@ -13,7 +13,7 @@ export interface KupActivityTimelineData {
13
13
  rowId: string;
14
14
  }
15
15
  export interface KupActivityTimelineActivity {
16
- columns: KupActivityTimelineData[];
16
+ cells: KupActivityTimelineData[];
17
17
  }
18
18
  export interface KupActivityTimelineDatapoint {
19
19
  date: string;
@@ -41,6 +41,10 @@ export declare class KupAutocomplete {
41
41
  * @default ItemsDisplayMode.DESCRIPTION
42
42
  */
43
43
  displayMode: ItemsDisplayMode;
44
+ /**
45
+ * Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
46
+ */
47
+ listDisplayMode: ItemsDisplayMode;
44
48
  /**
45
49
  * Set error message
46
50
  * @default '''
@@ -139,6 +143,8 @@ export declare class KupAutocomplete {
139
143
  onKupInput(): void;
140
144
  onKupIconClick(): void;
141
145
  onKupItemClick(e: CustomEvent<KupListEventPayload>): void;
146
+ initialValueChange(newValue: string): void;
147
+ initialValueDecodeChange(newValue: string): void;
142
148
  listenKeydown(e: KeyboardEvent): void;
143
149
  /**
144
150
  * Used to retrieve component's props values.
@@ -59,6 +59,10 @@ export declare class KupButtonList {
59
59
  * @default FButtonStyling.RAISED
60
60
  */
61
61
  styling: FButtonStyling;
62
+ /**
63
+ * When set to false buttons don't show the text, only the icon if it is present.
64
+ */
65
+ showText: boolean;
62
66
  /**
63
67
  * Instance of the KupManager class.
64
68
  */
@@ -42,3 +42,9 @@ export declare function create6(component: KupCard): VNode;
42
42
  * @returns {VNode} 1st standard layout virtual node.
43
43
  */
44
44
  export declare function create7(component: KupCard): VNode;
45
+ /**
46
+ * 8th dialog card layout for fixed and draggable tooltip, a raw slot.
47
+ * @param {KupCard} component - Card component.
48
+ * @returns {VNode} 1st standard layout virtual node.
49
+ */
50
+ export declare function create8(component: KupCard): VNode;
@@ -61,6 +61,8 @@ export interface KupCardBuiltInMessageBoxOptions {
61
61
  cancelCb?: (e: MouseEvent) => unknown;
62
62
  confirmCb?: (e: MouseEvent) => unknown;
63
63
  text?: string;
64
+ cancelLabel?: string;
65
+ confirmLabel?: string;
64
66
  }
65
67
  /**
66
68
  * Options of the built-in Open AI interface.
@@ -3,6 +3,7 @@ import { GenericObject } from '../../types/GenericTypes';
3
3
  import { KupCellElementsPosition, KupCellSubmitClickEventPayload } from './kup-cell-declarations';
4
4
  import { FCellPadding } from '../../f-components/f-cell/f-cell-declarations';
5
5
  import { KupDataCell } from '../../managers/kup-data/kup-data-declarations';
6
+ import { KupFileUploadEventPayload } from '../kup-file-upload/kup-file-upload-declarations';
6
7
  export declare class KupCell {
7
8
  #private;
8
9
  /**
@@ -38,6 +39,7 @@ export declare class KupCell {
38
39
  */
39
40
  submitPosition: KupCellElementsPosition;
40
41
  kupCellSubmitClick: EventEmitter<KupCellSubmitClickEventPayload>;
42
+ kupCellUpload: EventEmitter<KupFileUploadEventPayload>;
41
43
  /**
42
44
  * Adds the given CSS classes to the cell's data.
43
45
  * @param {string[]} classes - Array of CSS classes.
@@ -67,6 +69,7 @@ export declare class KupCell {
67
69
  private generateColumn;
68
70
  private generateRow;
69
71
  private submitClick;
72
+ private upload;
70
73
  componentWillLoad(): void;
71
74
  componentDidLoad(): void;
72
75
  componentWillRender(): void;
@@ -3,6 +3,7 @@ import { FChipSize, FChipStyling, FChipType } from '../../f-components/f-chip/f-
3
3
  import { KupChipChangeEventPayload, KupChipEventPayload, KupChipNode } from './kup-chip-declarations';
4
4
  import { GenericObject } from '../../types/GenericTypes';
5
5
  import { KupDataDataset } from '../../managers/kup-data/kup-data-declarations';
6
+ import { ItemsDisplayMode } from '../kup-list/kup-list-declarations';
6
7
  export declare class KupChip {
7
8
  #private;
8
9
  /**
@@ -21,15 +22,15 @@ export declare class KupChip {
21
22
  */
22
23
  data: KupChipNode[];
23
24
  /**
24
- * When enabled, the chip's text will display both the id and the value.
25
+ * When enabled, it's possible to add items to the chip's dataset through an input slot (kup-autocomplete, kup-combobox, kup-text-field).
25
26
  * @default false
26
27
  */
27
- displayId: boolean;
28
+ enableInput: boolean;
28
29
  /**
29
- * When enabled, it's possible to add items to the chip's dataset through an input slot (kup-autocomplete, kup-combobox, kup-text-field).
30
+ * When true, the chip cannot be edited, nor removed.
30
31
  * @default false
31
32
  */
32
- enableInput: boolean;
33
+ disabled: boolean;
33
34
  /**
34
35
  * The type of chip. Available types: input, filter, choice or empty for default.
35
36
  * @default FChipType.STANDARD
@@ -37,7 +38,7 @@ export declare class KupChip {
37
38
  type: FChipType;
38
39
  /**
39
40
  * Sets the size of the chip
40
- * @default FChipSize.MEDIUM
41
+ * @default FChipSize.SMALL
41
42
  */
42
43
  sizing: FChipSize;
43
44
  /**
@@ -45,6 +46,16 @@ export declare class KupChip {
45
46
  * @default FChipStyling.RAISED
46
47
  */
47
48
  styling: FChipStyling;
49
+ /**
50
+ * When enabled, the chip's text will display both the id and description.
51
+ * @default ItemsDisplayMode.DESCRIPTION
52
+ */
53
+ displayMode: ItemsDisplayMode;
54
+ /**
55
+ * When set,will be shown a label on the chips
56
+ * @default null
57
+ */
58
+ label: string;
48
59
  /**
49
60
  * Instance of the KupManager class.
50
61
  */
@@ -30,6 +30,10 @@ export declare class KupCombobox {
30
30
  * Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
31
31
  */
32
32
  displayMode: ItemsDisplayMode;
33
+ /**
34
+ * Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
35
+ */
36
+ listDisplayMode: ItemsDisplayMode;
33
37
  /**
34
38
  * Set error message
35
39
  * @default '''
@@ -3,6 +3,7 @@ import { KupObj } from '../../managers/kup-objects/kup-objects-declarations';
3
3
  import type { PointerEvent } from '@interactjs/types/index';
4
4
  import { KupCardEventPayload } from '../kup-card/kup-card-declarations';
5
5
  import { DropDownAction, KupDataCell, KupDataColumn, KupDataCommand, KupDataRow, KupDataRowAction } from '../../managers/kup-data/kup-data-declarations';
6
+ import { FCellTypes } from '../../f-components/f-cell/f-cell-declarations';
6
7
  /**
7
8
  * Props of the kup-data-table component.
8
9
  * Used to export every prop in an object.
@@ -68,7 +69,8 @@ export declare enum KupDataTableProps {
68
69
  tableWidth = "Sets the width of the table.",
69
70
  totals = "Defines the current totals options.",
70
71
  transpose = "Transposes the data of the data table.",
71
- updatableData = "When set to true, editable cells will be rendered using input components and update button will appair below the matrix"
72
+ updatableData = "When set to true, editable cells will be rendered using input components and update button will appair below the matrix",
73
+ updateOnClick = "When set to true, editable checkbox will call update"
72
74
  }
73
75
  export interface KupDataTableDataset {
74
76
  columns?: KupDataColumn[];
@@ -205,7 +207,7 @@ export declare const totalMenuOpenID = "TOMEOPID";
205
207
  * Contains all the data of an event.
206
208
  */
207
209
  export interface KupDatatableEventHandlerDetails {
208
- area: string;
210
+ area: 'header' | 'body' | 'footer';
209
211
  cell: KupDataTableCell;
210
212
  column: KupDataColumn;
211
213
  filterRemove: HTMLElement;
@@ -297,3 +299,7 @@ export interface KupDatatableCellCheckPayload extends KupEventPayload {
297
299
  updatedData: KupDataTableDataset;
298
300
  cell?: KupDataCell;
299
301
  }
302
+ /**
303
+ * List of types that can duplicate value in all column's cell
304
+ */
305
+ export declare const TypesToDuplicate: FCellTypes[];
@@ -14,7 +14,7 @@ export declare function sortRows(rows?: Array<KupDataTableRow>, sort?: Array<Sor
14
14
  * @todo This function can be improved in its speed by a refactor in which from two different cycles of execution for
15
15
  * single filters and global filter, all controls on a single column are done in a single cycle.
16
16
  */
17
- export declare function filterRows(rows?: Array<KupDataTableRow>, filters?: GenericFilter, globalFilter?: string, columns?: KupDataColumn[], columnFilters?: FiltersColumnMenu, filtersRows?: FiltersRows): Array<KupDataTableRow>;
17
+ export declare function filterRows(rows?: Array<KupDataTableRow>, filters?: GenericFilter, globalFilter?: string, columns?: KupDataColumn[], columnFilters?: FiltersColumnMenu, filtersRows?: FiltersRows, visibleColumns?: string[]): Array<KupDataTableRow>;
18
18
  export declare function groupRows(columns?: KupDataColumn[], rows?: KupDataTableRow[], groups?: GroupObject[], totals?: TotalsMap): Array<KupDataTableRow>;
19
19
  export declare function normalizeRows(columns: Array<KupDataColumn>, rows: Array<KupDataTableRow>): Array<KupDataTableRow>;
20
20
  export declare function calcTotals(totals: TotalsMap, columns: KupDataColumn[], rows: Array<KupDataTableRow>): {
@@ -22,6 +22,7 @@ export declare class KupDataTableState implements KupState {
22
22
  showHeader: boolean;
23
23
  showLoadMore: boolean;
24
24
  showPaginator: boolean;
25
+ hiddenSubmitButton: boolean;
25
26
  sortEnabled: boolean;
26
27
  sort: Array<SortObject>;
27
28
  sortableColumnsMutateData: boolean;
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
- import { GroupLabelDisplayMode, GroupObject, LoadMoreMode, PaginatorPos, ShowGrid, SortObject, TotalsMap, SelectionMode, KupDatatableRowSelectedEventPayload, KupDatatableClickEventPayload, KupDatatableColumnMenuEventPayload, KupDatatableLoadMoreClickEventPayload, KupDatatableColumnRemoveEventPayload, KupDatatableColumnMoveEventPayload, KupDataTableDataset, KupDataTableRow, KupDatatableDeleteRowEventPayload, KupDatatableInsertRowEventPayload, KupDataTableInsertMode, KupDatatableHistoryEventPayload, KupDatatableRowActionItemClickEventPayload, KupDatatableUpdatePayload, KupDatatableCellCheckPayload } from './kup-data-table-declarations';
2
+ import { GroupLabelDisplayMode, GroupObject, LoadMoreMode, PaginatorPos, ShowGrid, SortObject, TotalsMap, SelectionMode, KupDatatableRowSelectedEventPayload, KupDatatableClickEventPayload, KupDatatableColumnMenuEventPayload, KupDatatableLoadMoreClickEventPayload, KupDatatableColumnRemoveEventPayload, KupDatatableColumnMoveEventPayload, KupDataTableDataset, KupDataTableRow, KupDataTableCell, KupDatatableDeleteRowEventPayload, KupDatatableInsertRowEventPayload, KupDataTableInsertMode, KupDatatableHistoryEventPayload, KupDatatableRowActionItemClickEventPayload, KupDatatableUpdatePayload, KupDatatableCellCheckPayload } from './kup-data-table-declarations';
3
3
  import { GenericObject, KupEventPayload } from '../../types/GenericTypes';
4
4
  import { KupDataTableState } from './kup-data-table-state';
5
5
  import { KupStore } from '../kup-state/kup-store';
@@ -173,6 +173,10 @@ export declare class KupDataTable {
173
173
  * When enabled, the extra whitespaces will be displayed and the font will be set to monospace by default.
174
174
  */
175
175
  legacyLook: boolean;
176
+ /**
177
+ * When enabled, the table wrapper won't have overflow in order to make the fixed column and footer adapt to the webupjs dsh mode
178
+ */
179
+ isDashboardMode: boolean;
176
180
  /**
177
181
  * Sets the possibility to remove the selected column.
178
182
  */
@@ -242,6 +246,11 @@ export declare class KupDataTable {
242
246
  * Set the paginator visibility
243
247
  */
244
248
  showPaginator: boolean;
249
+ /**
250
+ * When set to true, the subimt button is hidden
251
+ * @default false
252
+ */
253
+ hiddenSubmitButton: boolean;
245
254
  /**
246
255
  * Defines the current sorting options.
247
256
  */
@@ -492,10 +501,34 @@ export declare class KupDataTable {
492
501
  * @param {boolean} scrollIntoView - If true, the component will scroll to the first selected row.
493
502
  */
494
503
  setSelectedRows(rowsIdentifiers: string[] | number[], emitEvent?: boolean, scrollIntoView?: boolean): Promise<void>;
504
+ /**
505
+ * This method will scroll the component to rowIdentifier row.
506
+ * @param {string|number} rowIdentifier - Id (dataset) or indexe (rendered rows).
507
+ */
508
+ scrollToRow(rowIdentifier: string | number): Promise<void>;
509
+ /**
510
+ * Public method to wait until the component is fully ready.
511
+ */
512
+ waitForReady(): Promise<void>;
495
513
  /**
496
514
  * This method is used to retrieve last focused row or the first if there's no row focused
497
515
  */
498
516
  getLastFocusedRow(): Promise<KupDataTableRow>;
517
+ /**
518
+ * This method is used to retrieve last focused cell
519
+ */
520
+ getLastFocusedCell(): Promise<KupDataTableCell>;
521
+ /**
522
+ * This method is used to retrieve last focused column
523
+ */
524
+ getLastFocusedColumn(): Promise<KupDataColumn>;
525
+ /**
526
+ * This method is used to force tooltip request for current focused cell
527
+ */
528
+ tooltipRequest(): Promise<void>;
529
+ listenEnterKeydown(e: KeyboardEvent): void;
530
+ listenCopyCellValueInColumnListener(e: KeyboardEvent): void;
531
+ connectedCallback(): void;
499
532
  componentWillLoad(): void;
500
533
  componentWillRender(): void;
501
534
  componentDidRender(): void;
@@ -518,6 +551,8 @@ export declare class KupDataTable {
518
551
  onTotalsChange(event: any, column: any): void;
519
552
  renderFooter(): any;
520
553
  renderCustomizePanel(): any;
554
+ calculateScrollToRowOffset(): number;
555
+ componentShouldUpdate(_newValue: any, _oldValue: any, propName: string): boolean;
521
556
  render(): any;
522
557
  disconnectedCallback(): void;
523
558
  }
@@ -102,6 +102,7 @@ export declare class KupDatePicker {
102
102
  onKupIconClick(): Promise<void>;
103
103
  listenKeyup(e: KeyboardEvent): void;
104
104
  watchFirstDayIndex(): void;
105
+ watchInitialValue(): void;
105
106
  /**
106
107
  * Retrieves the component's value.
107
108
  * @returns {string} Value of the component.
@@ -8,6 +8,9 @@ export declare enum KupDialogProps {
8
8
  header = "Header options.",
9
9
  modal = "Set of options to display the dialog as a modal.",
10
10
  resizable = "Sets whether the dialog is resizable or not.",
11
+ anchor = "Sets anchor position (\"none\", \"left\", \"top\", \"right\", \"bottom\")",
12
+ minSizeY = "The min height of the dialog.",
13
+ minSizeX = "The min width of the dialog.",
11
14
  sizeX = "The width of the dialog, defaults to auto. Accepts any valid CSS format (px, %, vw, etc.).",
12
15
  sizeY = "The height of the dialog, defaults to auto. Accepts any valid CSS format (px, %, vh, etc.).",
13
16
  maxSizeY = "The max height of the dialog, defaults to 90dvh.",
@@ -33,6 +33,21 @@ export declare class KupDialog {
33
33
  * @default "true"
34
34
  */
35
35
  resizable: boolean;
36
+ /**
37
+ * Sets anchor position ("none", "left", "top", "right", "bottom").
38
+ * @default "none"
39
+ */
40
+ anchor: 'none' | 'left' | 'top' | 'right' | 'bottom';
41
+ /**
42
+ * The min width of the dialog.
43
+ * @default "auto"
44
+ */
45
+ minSizeX: string;
46
+ /**
47
+ * The min height of the dialog.
48
+ * @default "auto"
49
+ */
50
+ minSizeY: string;
36
51
  /**
37
52
  * The width of the dialog, defaults to auto. Accepts any valid CSS format (px, %, vw, etc.).
38
53
  * @default "auto"
@@ -80,6 +95,7 @@ export declare class KupDialog {
80
95
  setProps(props: GenericObject): Promise<void>;
81
96
  componentWillLoad(): void;
82
97
  componentDidLoad(): void;
98
+ componentDidUpdate(): void;
83
99
  componentWillRender(): void;
84
100
  componentDidRender(): void;
85
101
  render(): any;
@@ -91,6 +91,21 @@ export declare class KupEchart {
91
91
  * @default null
92
92
  */
93
93
  yAxis: KupEchartYAxis;
94
+ /**
95
+ * Minimum for the y Axis.
96
+ * @default null
97
+ */
98
+ axisYMin: string;
99
+ /**
100
+ * Maximum for the y Axis.
101
+ * @default null
102
+ */
103
+ axisYMax: string;
104
+ /**
105
+ * Multiple axes for y
106
+ * @default null
107
+ */
108
+ multipleYAxes: string;
94
109
  kupEchartClick: EventEmitter<KupEchartClickEventPayload>;
95
110
  /**
96
111
  * Used to retrieve component's props values.
@@ -0,0 +1,8 @@
1
+ import { KupEventPayload } from '../../types/GenericTypes';
2
+ export declare enum KupFileUploadProps {
3
+ customStyle = "Custom style of the component.",
4
+ data = "Actual data of the input file upload."
5
+ }
6
+ export interface KupFileUploadEventPayload extends KupEventPayload {
7
+ files: File[];
8
+ }
@@ -0,0 +1,62 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { GenericObject, KupEventPayload } from '../../types/GenericTypes';
3
+ import { KupFileUploadEventPayload } from './kup-file-upload-declarations';
4
+ export declare class KupFileUpload {
5
+ #private;
6
+ /**
7
+ * References the root HTML element of the component (<kup-file-upload>).
8
+ */
9
+ rootElement: HTMLElement;
10
+ /**
11
+ * Custom style of the component.
12
+ * @default ""
13
+ * @see https://smeup.github.io/ketchup/#/customization
14
+ */
15
+ customStyle: string;
16
+ /**
17
+ * Actual data of the input field.
18
+ * @default null
19
+ */
20
+ data: any;
21
+ inputRef?: HTMLInputElement;
22
+ files?: File[];
23
+ uploadSuccess?: boolean;
24
+ showSpinner?: boolean;
25
+ onDataChanged(): void;
26
+ /**
27
+ * Used to retrieve component's props values.
28
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
29
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
30
+ */
31
+ getProps(descriptions?: boolean): Promise<GenericObject>;
32
+ /**
33
+ * This method is used to trigger a new render of the component.
34
+ */
35
+ refresh(): Promise<void>;
36
+ /**
37
+ * Sets the props to the component.
38
+ * @param {GenericObject} props - Object containing props that will be set to the component.
39
+ */
40
+ setProps(props: GenericObject): Promise<void>;
41
+ /**
42
+ * Sets upload has been successfull to show success message.
43
+ * @param {boolean} success - Boolean to set if upload has been successfull.
44
+ */
45
+ setSuccess(success: boolean): Promise<void>;
46
+ /**
47
+ * Sets to show spinner during upload.
48
+ * @param {boolean} loading - Boolean to set if is loading.
49
+ */
50
+ setLoading(loading: boolean): Promise<void>;
51
+ /**
52
+ * When component load is complete
53
+ */
54
+ kupReady: EventEmitter<KupEventPayload>;
55
+ kupUpload: EventEmitter<KupFileUploadEventPayload>;
56
+ componentWillLoad(): void;
57
+ componentDidLoad(): void;
58
+ componentWillRender(): void;
59
+ componentDidRender(): void;
60
+ render(): any;
61
+ disconnectedCallback(): void;
62
+ }
@@ -35,7 +35,6 @@ export interface KupInputPanelRowCells {
35
35
  [key: string]: KupInputPanelCell;
36
36
  }
37
37
  export interface KupInputPanelCell extends KupDataCellOptions {
38
- editable?: boolean;
39
38
  mandatory?: boolean;
40
39
  inputSettings?: GenericObject;
41
40
  fun?: string;
@@ -68,6 +67,7 @@ export interface KupInputPanelLayoutSection {
68
67
  }
69
68
  export interface KupInputPanelLayoutField {
70
69
  id: string;
70
+ shape: FCellShapes;
71
71
  colSpan?: number;
72
72
  colStart?: number;
73
73
  colEnd?: number;
@@ -160,4 +160,8 @@ export declare const CheckConditionsByEventType: {
160
160
  blur: (value: FCellShapes) => value is "ACP" | "CHK" | "CMB" | "SWT";
161
161
  itemclick: (value: FCellShapes) => boolean;
162
162
  };
163
+ export interface AbsoluteTblPositioningData {
164
+ absoluteRow?: number;
165
+ absoluteHeight?: number;
166
+ }
163
167
  export {};
@@ -1,12 +1,12 @@
1
- import { KupInputPanelLayout } from './kup-input-panel-declarations';
1
+ import { AbsoluteTblPositioningData, KupInputPanelLayout } from './kup-input-panel-declarations';
2
2
  export declare const CHAR_WIDTH = 10;
3
- export declare const ROW_HEIGHT = 22;
3
+ export declare const ROW_HEIGHT = 20;
4
4
  export declare const getAbsoluteWidth: (length: number) => number;
5
5
  export declare const FONT_SIZE = 12;
6
6
  export declare const FONT_SIZE_TO_WIDTH_RATIO = 1.666666666666667;
7
7
  export declare const SINGLE_CHAR_WIDTH: number;
8
8
  export declare const getLabelAbsoluteWidth: (length: number) => number;
9
9
  export declare const getAbsoluteHeight: (height: number) => number;
10
- export declare const getAbsoluteTop: (row: number) => number;
10
+ export declare const getAbsoluteTop: (row: number, absoluteTblPositioningData?: AbsoluteTblPositioningData) => number;
11
11
  export declare const getAbsoluteLeft: (col: number) => number;
12
12
  export declare const getInpComponentAbsoluteHeight: (layout: KupInputPanelLayout) => number;
@@ -30,7 +30,7 @@ export declare class KupInputPanel {
30
30
  */
31
31
  data: KupInputPanelData;
32
32
  /**
33
- * Creates a hidden submit button in order to submit the form with enter.
33
+ * Creates a hidden submit button in order to submit the form with enter.``
34
34
  * @default false
35
35
  */
36
36
  hiddenSubmitButton: boolean;
@@ -95,6 +95,7 @@ export declare class KupInputPanel {
95
95
  */
96
96
  private tabSelected;
97
97
  onDataChanged(): void;
98
+ listenKeydown(e: KeyboardEvent): void;
98
99
  /**
99
100
  * Public method to wait until the component is fully ready.
100
101
  */
@@ -90,6 +90,10 @@ export declare class KupList {
90
90
  onKupBlur(): void;
91
91
  onKupFocus(): void;
92
92
  onKupClick(index: number): void;
93
+ /**
94
+ * Focuses the first element of the list.
95
+ */
96
+ setFocusOnFirstEl(): Promise<void>;
93
97
  /**
94
98
  * Focuses the next element of the list.
95
99
  */