@sme.up/ketchup 9.1.0 → 9.3.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 (720) hide show
  1. package/dist/cjs/bar.helpers-f46a5a83.js +372 -0
  2. package/dist/cjs/f-button-4caf541a.js +105 -0
  3. package/dist/cjs/{f-button-declarations-3fd791a8.js → f-button-declarations-51ef6d9a.js} +5 -5
  4. package/dist/cjs/f-cell-979c26ea.js +670 -0
  5. package/dist/cjs/f-checkbox-41864e53.js +29 -0
  6. package/dist/cjs/f-chip-8957940b.js +133 -0
  7. package/dist/cjs/f-image-e16fe10d.js +115 -0
  8. package/dist/cjs/f-paginator-utils-f2dd0322.js +1577 -0
  9. package/dist/cjs/f-text-field-2fac8078.js +216 -0
  10. package/dist/cjs/{f-text-field-mdc-4fda9705.js → f-text-field-mdc-08a06162.js} +19 -19
  11. package/dist/cjs/{index-4b3a5567.js → index-8f2f4159.js} +134 -27
  12. package/dist/cjs/index.cjs.js +12 -0
  13. package/dist/cjs/ketchup.cjs.js +3 -3
  14. package/dist/cjs/kup-accordion.cjs.entry.js +182 -181
  15. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +14564 -14563
  16. package/dist/cjs/kup-box.cjs.entry.js +1231 -1230
  17. package/dist/cjs/kup-calendar.cjs.entry.js +5413 -5379
  18. package/dist/cjs/kup-card-list.cjs.entry.js +233 -212
  19. package/dist/cjs/kup-cell.cjs.entry.js +153 -152
  20. package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +1317 -0
  21. package/dist/cjs/kup-dashboard.cjs.entry.js +369 -368
  22. package/dist/cjs/kup-dates-0e59b05d.js +782 -0
  23. package/dist/cjs/kup-drawer.cjs.entry.js +122 -121
  24. package/dist/cjs/kup-echart.cjs.entry.js +1192 -1191
  25. package/dist/cjs/kup-family-tree.cjs.entry.js +400 -399
  26. package/dist/cjs/kup-gantt_10.cjs.entry.js +1076 -0
  27. package/dist/cjs/kup-grid.cjs.entry.js +82 -81
  28. package/dist/cjs/kup-iframe.cjs.entry.js +80 -79
  29. package/dist/cjs/kup-image-list.cjs.entry.js +224 -223
  30. package/dist/cjs/kup-lazy.cjs.entry.js +162 -161
  31. package/dist/cjs/kup-magic-box.cjs.entry.js +270 -269
  32. package/dist/cjs/{kup-manager-cb73c128.js → kup-manager-c63f4fb9.js} +5772 -6517
  33. package/dist/cjs/kup-nav-bar.cjs.entry.js +110 -109
  34. package/dist/cjs/kup-numeric-picker.cjs.entry.js +352 -351
  35. package/dist/cjs/kup-photo-frame.cjs.entry.js +126 -125
  36. package/dist/cjs/kup-planner-declarations-d3dec885.js +93 -0
  37. package/dist/cjs/kup-planner-renderer-helper-c2394940.js +410 -0
  38. package/dist/cjs/kup-planner-renderer.cjs.entry.js +278 -0
  39. package/dist/cjs/kup-planner-time-formatter-a74e70f0.js +93 -0
  40. package/dist/cjs/kup-planner.cjs.entry.js +718 -13111
  41. package/dist/cjs/kup-probe.cjs.entry.js +228 -227
  42. package/dist/cjs/kup-qlik.cjs.entry.js +126 -125
  43. package/dist/cjs/kup-snackbar.cjs.entry.js +102 -101
  44. package/dist/cjs/loader.cjs.js +2 -2
  45. package/dist/collection/assets/card-list.js +12 -9
  46. package/dist/collection/assets/index.js +16 -0
  47. package/dist/collection/assets/planner-example-1.js +6337 -0
  48. package/dist/collection/assets/planner-example-2.js +5650 -0
  49. package/dist/collection/assets/planner-example-3.js +6548 -0
  50. package/dist/collection/assets/planner-example-4.js +28473 -0
  51. package/dist/collection/assets/planner.js +3255 -4900
  52. package/dist/collection/collection-manifest.json +17 -2
  53. package/dist/collection/components/kup-accordion/kup-accordion-declarations.js +3 -3
  54. package/dist/collection/components/kup-accordion/kup-accordion.js +423 -423
  55. package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +14 -14
  56. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +882 -882
  57. package/dist/collection/components/kup-badge/kup-badge-declarations.js +3 -3
  58. package/dist/collection/components/kup-badge/kup-badge.js +262 -262
  59. package/dist/collection/components/kup-box/kup-box-declarations.js +26 -26
  60. package/dist/collection/components/kup-box/kup-box-state.js +13 -13
  61. package/dist/collection/components/kup-box/kup-box.js +2068 -2068
  62. package/dist/collection/components/kup-button/kup-button-declarations.js +11 -11
  63. package/dist/collection/components/kup-button/kup-button.js +560 -560
  64. package/dist/collection/components/kup-button-list/kup-button-list-declarations.js +6 -6
  65. package/dist/collection/components/kup-button-list/kup-button-list.e2e.js +141 -141
  66. package/dist/collection/components/kup-button-list/kup-button-list.js +497 -497
  67. package/dist/collection/components/kup-calendar/kup-calendar-declarations.js +17 -17
  68. package/dist/collection/components/kup-calendar/kup-calendar.js +681 -681
  69. package/dist/collection/components/kup-card/box/kup-card-box.js +161 -161
  70. package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +6 -6
  71. package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +324 -324
  72. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +250 -250
  73. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +141 -141
  74. package/dist/collection/components/kup-card/built-in/kup-card-message-box.js +3 -3
  75. package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +98 -98
  76. package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +44 -44
  77. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +135 -135
  78. package/dist/collection/components/kup-card/free/kup-card-free.js +6 -6
  79. package/dist/collection/components/kup-card/kup-card-declarations.js +53 -53
  80. package/dist/collection/components/kup-card/kup-card-helper.js +155 -155
  81. package/dist/collection/components/kup-card/kup-card.js +767 -767
  82. package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +174 -174
  83. package/dist/collection/components/kup-card/standard/kup-card-standard.js +474 -474
  84. package/dist/collection/components/kup-card-list/kup-card-list-declarations.js +16 -6
  85. package/dist/collection/components/kup-card-list/kup-card-list.js +676 -456
  86. package/dist/collection/components/kup-cell/kup-cell-declarations.js +4 -4
  87. package/dist/collection/components/kup-cell/kup-cell.js +382 -382
  88. package/dist/collection/components/kup-chart/kup-chart-builder.js +80 -80
  89. package/dist/collection/components/kup-chart/kup-chart-declarations.js +36 -36
  90. package/dist/collection/components/kup-chart/kup-chart.js +1043 -1043
  91. package/dist/collection/components/kup-checkbox/kup-checkbox-declarations.js +6 -6
  92. package/dist/collection/components/kup-checkbox/kup-checkbox.js +417 -417
  93. package/dist/collection/components/kup-chip/kup-chip-declarations.js +5 -5
  94. package/dist/collection/components/kup-chip/kup-chip.js +538 -538
  95. package/dist/collection/components/kup-color-picker/kup-color-picker-declarations.js +5 -5
  96. package/dist/collection/components/kup-color-picker/kup-color-picker.js +511 -511
  97. package/dist/collection/components/kup-combobox/kup-combobox-declarations.js +8 -8
  98. package/dist/collection/components/kup-combobox/kup-combobox.js +796 -796
  99. package/dist/collection/components/kup-dashboard/kup-dashboard-declarations.js +3 -3
  100. package/dist/collection/components/kup-dashboard/kup-dashboard.js +562 -562
  101. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +95 -95
  102. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +729 -729
  103. package/dist/collection/components/kup-data-table/kup-data-table-state.js +33 -33
  104. package/dist/collection/components/kup-data-table/kup-data-table.js +5398 -5398
  105. package/dist/collection/components/kup-date-picker/kup-date-picker-declarations.js +8 -8
  106. package/dist/collection/components/kup-date-picker/kup-date-picker.js +796 -796
  107. package/dist/collection/components/kup-dialog/kup-dialog-declarations.js +7 -7
  108. package/dist/collection/components/kup-dialog/kup-dialog.js +451 -451
  109. package/dist/collection/components/kup-drawer/kup-drawer-declarations.js +2 -2
  110. package/dist/collection/components/kup-drawer/kup-drawer.e2e.js +6 -6
  111. package/dist/collection/components/kup-drawer/kup-drawer.js +374 -374
  112. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button-declarations.js +11 -11
  113. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +776 -776
  114. package/dist/collection/components/kup-echart/kup-echart-declarations.js +40 -40
  115. package/dist/collection/components/kup-echart/kup-echart.js +1606 -1606
  116. package/dist/collection/components/kup-family-tree/kup-family-tree-declarations.js +8 -8
  117. package/dist/collection/components/kup-family-tree/kup-family-tree.js +789 -789
  118. package/dist/collection/components/kup-form/kup-form-declarations.js +16 -16
  119. package/dist/collection/components/kup-form/kup-form.js +694 -694
  120. package/dist/collection/components/kup-gauge/kup-gauge-declarations.js +19 -19
  121. package/dist/collection/components/kup-gauge/kup-gauge.js +730 -730
  122. package/dist/collection/components/kup-grid/kup-grid-declarations.js +3 -3
  123. package/dist/collection/components/kup-grid/kup-grid.js +238 -238
  124. package/dist/collection/components/kup-iframe/kup-iframe-declarations.js +3 -3
  125. package/dist/collection/components/kup-iframe/kup-iframe.js +268 -268
  126. package/dist/collection/components/kup-image/canvas/kup-image-canvas-declarations.js +167 -167
  127. package/dist/collection/components/kup-image/canvas/kup-image-canvas-helper.js +16 -16
  128. package/dist/collection/components/kup-image/canvas/kup-image-canvas.js +221 -221
  129. package/dist/collection/components/kup-image/kup-image-declarations.js +9 -9
  130. package/dist/collection/components/kup-image/kup-image.js +471 -471
  131. package/dist/collection/components/kup-image-list/kup-image-list-declarations.js +3 -3
  132. package/dist/collection/components/kup-image-list/kup-image-list-state.js +7 -7
  133. package/dist/collection/components/kup-image-list/kup-image-list.js +502 -502
  134. package/dist/collection/components/kup-lazy/kup-lazy-declarations.js +7 -7
  135. package/dist/collection/components/kup-lazy/kup-lazy.js +417 -417
  136. package/dist/collection/components/kup-list/kup-list-declarations.js +18 -18
  137. package/dist/collection/components/kup-list/kup-list-helper.js +105 -105
  138. package/dist/collection/components/kup-list/kup-list.js +914 -914
  139. package/dist/collection/components/kup-magic-box/kup-magic-box-declarations.js +10 -10
  140. package/dist/collection/components/kup-magic-box/kup-magic-box.js +405 -405
  141. package/dist/collection/components/kup-nav-bar/kup-nav-bar-declarations.js +7 -7
  142. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +304 -304
  143. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker-declarations.js +9 -9
  144. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +847 -847
  145. package/dist/collection/components/kup-photo-frame/kup-photo-frame-declarations.js +3 -3
  146. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +359 -359
  147. package/dist/collection/components/kup-planner/kup-planner-declarations.js +69 -66
  148. package/dist/collection/components/kup-planner/kup-planner-helper.js +39 -39
  149. package/dist/collection/components/kup-planner/kup-planner-state.js +14 -14
  150. package/dist/collection/components/kup-planner/kup-planner.css +4 -482
  151. package/dist/collection/components/kup-planner/kup-planner.js +1777 -1675
  152. package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +117 -0
  153. package/dist/collection/components/kup-planner/utils/custom-task-list-header.module.css +79 -0
  154. package/dist/collection/components/kup-planner/utils/custom-task-list-table.js +280 -0
  155. package/dist/collection/components/kup-planner/utils/custom-tool-tip.js +5 -0
  156. package/dist/collection/components/kup-planner/utils/gantt-table.module.css +88 -0
  157. package/dist/collection/components/kup-planner/utils/helpers/bar.helpers.js +328 -0
  158. package/dist/collection/components/kup-planner/utils/helpers/other.helpers.js +48 -0
  159. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.css +40 -0
  160. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +2302 -0
  161. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.css +31 -0
  162. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +466 -0
  163. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.css +60 -0
  164. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +1186 -0
  165. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.css +36 -0
  166. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +177 -0
  167. package/dist/collection/components/kup-planner/utils/kup-planner-adapted-types.js +1 -0
  168. package/dist/collection/components/kup-planner/utils/kup-planner-renderer-helper.js +396 -0
  169. package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +321 -0
  170. package/dist/collection/components/kup-planner/utils/kup-planner-time-formatter.js +87 -0
  171. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.css +30 -0
  172. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +49 -0
  173. package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +215 -0
  174. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +112 -0
  175. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +226 -0
  176. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.css +67 -0
  177. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +638 -0
  178. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +82 -0
  179. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.css +30 -0
  180. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +362 -0
  181. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.css +31 -0
  182. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +170 -0
  183. package/dist/collection/components/kup-probe/kup-probe.js +335 -335
  184. package/dist/collection/components/kup-progress-bar/kup-progress-bar-declarations.js +7 -7
  185. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +346 -346
  186. package/dist/collection/components/kup-qlik/kup-qlik.js +311 -311
  187. package/dist/collection/components/kup-radio/kup-radio-declarations.js +5 -5
  188. package/dist/collection/components/kup-radio/kup-radio.js +392 -392
  189. package/dist/collection/components/kup-rating/kup-rating-declarations.js +4 -4
  190. package/dist/collection/components/kup-rating/kup-rating.js +296 -296
  191. package/dist/collection/components/kup-snackbar/kup-snackbar-declarations.js +5 -5
  192. package/dist/collection/components/kup-snackbar/kup-snackbar.js +380 -380
  193. package/dist/collection/components/kup-spinner/kup-spinner-declarations.js +8 -8
  194. package/dist/collection/components/kup-spinner/kup-spinner.js +449 -449
  195. package/dist/collection/components/kup-state/mock-store.js +10 -10
  196. package/dist/collection/components/kup-switch/kup-switch-declarations.js +5 -5
  197. package/dist/collection/components/kup-switch/kup-switch.js +387 -387
  198. package/dist/collection/components/kup-tab-bar/kup-tab-bar-declarations.js +3 -3
  199. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +423 -423
  200. package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +30 -30
  201. package/dist/collection/components/kup-text-field/kup-text-field.js +1220 -1220
  202. package/dist/collection/components/kup-time-picker/kup-time-picker-declarations.js +7 -7
  203. package/dist/collection/components/kup-time-picker/kup-time-picker.js +914 -914
  204. package/dist/collection/components/kup-tree/kup-tree-declarations.js +28 -28
  205. package/dist/collection/components/kup-tree/kup-tree-faker.js +233 -233
  206. package/dist/collection/components/kup-tree/kup-tree-state.js +13 -13
  207. package/dist/collection/components/kup-tree/kup-tree.js +2424 -2424
  208. package/dist/collection/f-components/f-button/f-button-declarations.js +5 -5
  209. package/dist/collection/f-components/f-button/f-button.js +76 -76
  210. package/dist/collection/f-components/f-cell/f-cell-declarations.js +125 -125
  211. package/dist/collection/f-components/f-cell/f-cell.js +407 -407
  212. package/dist/collection/f-components/f-checkbox/f-checkbox.js +10 -10
  213. package/dist/collection/f-components/f-chip/f-chip-declarations.js +4 -4
  214. package/dist/collection/f-components/f-chip/f-chip.js +82 -82
  215. package/dist/collection/f-components/f-image/f-image-declarations.js +1 -1
  216. package/dist/collection/f-components/f-image/f-image.js +79 -79
  217. package/dist/collection/f-components/f-paginator/f-paginator-declarations.js +2 -2
  218. package/dist/collection/f-components/f-paginator/f-paginator-utils.js +21 -21
  219. package/dist/collection/f-components/f-paginator/f-paginator.js +65 -65
  220. package/dist/collection/f-components/f-progress-bar/f-progress-bar.js +70 -70
  221. package/dist/collection/f-components/f-radio/f-radio.js +21 -21
  222. package/dist/collection/f-components/f-rating/f-rating.js +17 -17
  223. package/dist/collection/f-components/f-switch/f-switch.js +6 -6
  224. package/dist/collection/f-components/f-text-field/f-text-field-mdc.js +19 -19
  225. package/dist/collection/f-components/f-text-field/f-text-field.js +165 -165
  226. package/dist/collection/index.js +5 -0
  227. package/dist/collection/managers/kup-data/kup-data-cell-helper.js +47 -47
  228. package/dist/collection/managers/kup-data/kup-data-column-helper.js +220 -220
  229. package/dist/collection/managers/kup-data/kup-data-declarations.js +4 -4
  230. package/dist/collection/managers/kup-data/kup-data-node-helper.js +107 -107
  231. package/dist/collection/managers/kup-data/kup-data-row-helper.js +11 -11
  232. package/dist/collection/managers/kup-data/kup-data.js +468 -468
  233. package/dist/collection/managers/kup-dates/kup-dates-declarations.js +19 -19
  234. package/dist/collection/managers/kup-dates/kup-dates.js +637 -605
  235. package/dist/collection/managers/kup-debug/kup-debug-declarations.js +8 -8
  236. package/dist/collection/managers/kup-debug/kup-debug.js +626 -626
  237. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position-declarations.js +9 -9
  238. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +232 -232
  239. package/dist/collection/managers/kup-interact/kup-interact-declarations.js +11 -11
  240. package/dist/collection/managers/kup-interact/kup-interact.js +374 -374
  241. package/dist/collection/managers/kup-language/kup-language-declarations.js +127 -127
  242. package/dist/collection/managers/kup-language/kup-language.js +132 -132
  243. package/dist/collection/managers/kup-manager/kup-manager.js +257 -257
  244. package/dist/collection/managers/kup-math/kup-math-declarations.js +7 -7
  245. package/dist/collection/managers/kup-math/kup-math-helper.js +19 -19
  246. package/dist/collection/managers/kup-math/kup-math.js +374 -374
  247. package/dist/collection/managers/kup-objects/kup-objects.js +379 -379
  248. package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.js +4 -4
  249. package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +301 -301
  250. package/dist/collection/managers/kup-search/kup-search.js +65 -65
  251. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +134 -134
  252. package/dist/collection/managers/kup-theme/kup-theme.js +696 -696
  253. package/dist/collection/managers/kup-toolbar/kup-toolbar-declarations.js +3 -3
  254. package/dist/collection/managers/kup-toolbar/kup-toolbar.js +93 -93
  255. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +198 -198
  256. package/dist/collection/types/GenericTypes.js +47 -47
  257. package/dist/collection/utils/cell-utils.js +115 -115
  258. package/dist/collection/utils/filters/filters-column-menu.js +339 -339
  259. package/dist/collection/utils/filters/filters-declarations.js +4 -4
  260. package/dist/collection/utils/filters/filters-rows.js +215 -215
  261. package/dist/collection/utils/filters/filters-tree-items.js +96 -96
  262. package/dist/collection/utils/filters/filters.js +257 -257
  263. package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +14 -14
  264. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +710 -710
  265. package/dist/collection/utils/utils.js +37 -42
  266. package/dist/components/custom-task-list-header.js +44 -0
  267. package/dist/components/custom-task-list-table.js +121 -0
  268. package/dist/components/index.js +8 -0
  269. package/dist/components/kup-accordion.d.ts +2 -2
  270. package/dist/components/kup-accordion.js +333 -332
  271. package/dist/components/kup-autocomplete.d.ts +2 -2
  272. package/dist/components/kup-autocomplete.js +1 -1
  273. package/dist/components/kup-autocomplete2.js +26006 -44605
  274. package/dist/components/kup-badge.d.ts +2 -2
  275. package/dist/components/kup-badge.js +1 -1
  276. package/dist/components/kup-box.d.ts +2 -2
  277. package/dist/components/kup-box2.js +1417 -1416
  278. package/dist/components/kup-button-list.d.ts +2 -2
  279. package/dist/components/kup-button-list.js +1 -1
  280. package/dist/components/kup-button.d.ts +2 -2
  281. package/dist/components/kup-button.js +1 -1
  282. package/dist/components/kup-calendar.d.ts +2 -2
  283. package/dist/components/kup-calendar.js +5547 -5512
  284. package/dist/components/kup-card-list.d.ts +2 -2
  285. package/dist/components/kup-card-list.js +402 -371
  286. package/dist/components/kup-card.d.ts +2 -2
  287. package/dist/components/kup-card.js +1 -1
  288. package/dist/components/kup-cell.d.ts +2 -2
  289. package/dist/components/kup-cell.js +304 -303
  290. package/dist/components/kup-chart.d.ts +2 -2
  291. package/dist/components/kup-chart.js +1 -1
  292. package/dist/components/kup-checkbox.d.ts +2 -2
  293. package/dist/components/kup-checkbox.js +1 -1
  294. package/dist/components/kup-chip.d.ts +2 -2
  295. package/dist/components/kup-chip.js +1 -1
  296. package/dist/components/kup-color-picker.d.ts +2 -2
  297. package/dist/components/kup-color-picker.js +1 -1
  298. package/dist/components/kup-combobox.d.ts +2 -2
  299. package/dist/components/kup-combobox.js +1 -1
  300. package/dist/components/kup-custom-task-list-header.d.ts +11 -0
  301. package/dist/components/kup-custom-task-list-header.js +6 -0
  302. package/dist/components/kup-custom-task-list-table.d.ts +11 -0
  303. package/dist/components/kup-custom-task-list-table.js +6 -0
  304. package/dist/components/kup-dashboard.d.ts +2 -2
  305. package/dist/components/kup-dashboard.js +521 -520
  306. package/dist/components/kup-data-table.d.ts +2 -2
  307. package/dist/components/kup-data-table.js +1 -1
  308. package/dist/components/kup-date-picker.d.ts +2 -2
  309. package/dist/components/kup-date-picker.js +1 -1
  310. package/dist/components/kup-dates.js +777 -0
  311. package/dist/components/kup-dialog.d.ts +2 -2
  312. package/dist/components/kup-dialog.js +1 -1
  313. package/dist/components/kup-drawer.d.ts +2 -2
  314. package/dist/components/kup-drawer.js +280 -279
  315. package/dist/components/kup-dropdown-button.d.ts +2 -2
  316. package/dist/components/kup-dropdown-button.js +1 -1
  317. package/dist/components/kup-echart.d.ts +2 -2
  318. package/dist/components/kup-echart2.js +1359 -1358
  319. package/dist/components/kup-family-tree.d.ts +2 -2
  320. package/dist/components/kup-family-tree.js +565 -564
  321. package/dist/components/kup-form.d.ts +2 -2
  322. package/dist/components/kup-form.js +1 -1
  323. package/dist/components/kup-gantt-calendar.d.ts +11 -0
  324. package/dist/components/kup-gantt-calendar.js +6 -0
  325. package/dist/components/kup-gantt-calendar2.js +323 -0
  326. package/dist/components/kup-gantt.d.ts +11 -0
  327. package/dist/components/kup-gantt.js +6 -0
  328. package/dist/components/kup-gantt2.js +822 -0
  329. package/dist/components/kup-gauge.d.ts +2 -2
  330. package/dist/components/kup-gauge.js +1 -1
  331. package/dist/components/kup-grid-renderer.d.ts +11 -0
  332. package/dist/components/kup-grid-renderer.js +6 -0
  333. package/dist/components/kup-grid-renderer2.js +1416 -0
  334. package/dist/components/kup-grid.d.ts +2 -2
  335. package/dist/components/kup-grid2.js +237 -236
  336. package/dist/components/kup-horizontal-scroll.d.ts +11 -0
  337. package/dist/components/kup-horizontal-scroll.js +6 -0
  338. package/dist/components/kup-horizontal-scroll2.js +77 -0
  339. package/dist/components/kup-iframe.d.ts +2 -2
  340. package/dist/components/kup-iframe.js +235 -234
  341. package/dist/components/kup-image-list.d.ts +2 -2
  342. package/dist/components/kup-image-list.js +379 -378
  343. package/dist/components/kup-image.d.ts +2 -2
  344. package/dist/components/kup-image.js +1 -1
  345. package/dist/components/kup-lazy.d.ts +2 -2
  346. package/dist/components/kup-lazy.js +321 -320
  347. package/dist/components/kup-list.d.ts +2 -2
  348. package/dist/components/kup-list.js +1 -1
  349. package/dist/components/kup-magic-box.d.ts +2 -2
  350. package/dist/components/kup-magic-box.js +433 -432
  351. package/dist/components/kup-manager.js +17861 -0
  352. package/dist/components/kup-nav-bar.d.ts +2 -2
  353. package/dist/components/kup-nav-bar.js +265 -264
  354. package/dist/components/kup-numeric-picker.d.ts +2 -2
  355. package/dist/components/kup-numeric-picker.js +515 -514
  356. package/dist/components/kup-photo-frame.d.ts +2 -2
  357. package/dist/components/kup-photo-frame.js +283 -282
  358. package/dist/components/kup-planner-renderer-helper.js +399 -0
  359. package/dist/components/kup-planner-renderer.d.ts +11 -0
  360. package/dist/components/kup-planner-renderer.js +6 -0
  361. package/dist/components/kup-planner-renderer2.js +390 -0
  362. package/dist/components/kup-planner.d.ts +2 -2
  363. package/dist/components/kup-planner.js +1005 -13306
  364. package/dist/components/kup-probe.d.ts +2 -2
  365. package/dist/components/kup-probe.js +381 -380
  366. package/dist/components/kup-progress-bar.d.ts +2 -2
  367. package/dist/components/kup-progress-bar.js +1 -1
  368. package/dist/components/kup-qlik.d.ts +2 -2
  369. package/dist/components/kup-qlik.js +284 -283
  370. package/dist/components/kup-radio.d.ts +2 -2
  371. package/dist/components/kup-radio.js +1 -1
  372. package/dist/components/kup-rating.d.ts +2 -2
  373. package/dist/components/kup-rating.js +1 -1
  374. package/dist/components/kup-snackbar.d.ts +2 -2
  375. package/dist/components/kup-snackbar.js +259 -258
  376. package/dist/components/kup-spinner.d.ts +2 -2
  377. package/dist/components/kup-spinner.js +1 -1
  378. package/dist/components/kup-standard-tooltip.d.ts +11 -0
  379. package/dist/components/kup-standard-tooltip.js +6 -0
  380. package/dist/components/kup-standard-tooltip2.js +37 -0
  381. package/dist/components/kup-switch.d.ts +2 -2
  382. package/dist/components/kup-switch.js +1 -1
  383. package/dist/components/kup-switcher.d.ts +11 -0
  384. package/dist/components/kup-switcher.js +6 -0
  385. package/dist/components/kup-switcher2.js +36 -0
  386. package/dist/components/kup-tab-bar.d.ts +2 -2
  387. package/dist/components/kup-tab-bar.js +1 -1
  388. package/dist/components/kup-task-gantt.d.ts +11 -0
  389. package/dist/components/kup-task-gantt.js +6 -0
  390. package/dist/components/kup-task-gantt2.js +91 -0
  391. package/dist/components/kup-task-list-header.d.ts +11 -0
  392. package/dist/components/kup-task-list-header.js +6 -0
  393. package/dist/components/kup-task-list-header2.js +55 -0
  394. package/dist/components/kup-task-list-table.d.ts +11 -0
  395. package/dist/components/kup-task-list-table.js +6 -0
  396. package/dist/components/kup-task-list-table2.js +79 -0
  397. package/dist/components/kup-task-list.d.ts +11 -0
  398. package/dist/components/kup-task-list.js +6 -0
  399. package/dist/components/kup-task-list2.js +260 -0
  400. package/dist/components/kup-text-field.d.ts +2 -2
  401. package/dist/components/kup-text-field.js +1 -1
  402. package/dist/components/kup-time-picker.d.ts +2 -2
  403. package/dist/components/kup-time-picker.js +1 -1
  404. package/dist/components/kup-tooltip.d.ts +11 -0
  405. package/dist/components/kup-tooltip.js +6 -0
  406. package/dist/components/kup-tooltip2.js +127 -0
  407. package/dist/components/kup-tree.d.ts +2 -2
  408. package/dist/components/kup-tree.js +1 -1
  409. package/dist/components/kup-vertical-scroll.d.ts +11 -0
  410. package/dist/components/kup-vertical-scroll.js +6 -0
  411. package/dist/components/kup-vertical-scroll2.js +77 -0
  412. package/dist/esm/bar.helpers-0898efb9.js +363 -0
  413. package/dist/esm/f-button-5ccc2e50.js +103 -0
  414. package/dist/esm/{f-button-declarations-8a009df1.js → f-button-declarations-9bdc6f26.js} +5 -5
  415. package/dist/esm/f-cell-6f4290b2.js +664 -0
  416. package/dist/esm/f-checkbox-43481de2.js +27 -0
  417. package/dist/esm/f-chip-465aa432.js +131 -0
  418. package/dist/esm/f-image-c5063342.js +113 -0
  419. package/dist/esm/f-paginator-utils-6903534b.js +1564 -0
  420. package/dist/esm/f-text-field-28b2b26d.js +214 -0
  421. package/dist/esm/{f-text-field-mdc-1143cf21.js → f-text-field-mdc-c88bf688.js} +19 -19
  422. package/dist/esm/{index-c161a33e.js → index-59f83f91.js} +134 -28
  423. package/dist/esm/index.js +9 -0
  424. package/dist/esm/ketchup.js +4 -4
  425. package/dist/esm/kup-accordion.entry.js +182 -181
  426. package/dist/esm/kup-autocomplete_27.entry.js +14564 -14563
  427. package/dist/esm/kup-box.entry.js +1231 -1230
  428. package/dist/esm/kup-calendar.entry.js +5413 -5379
  429. package/dist/esm/kup-card-list.entry.js +233 -212
  430. package/dist/esm/kup-cell.entry.js +153 -152
  431. package/dist/esm/kup-custom-task-list-header_4.entry.js +1310 -0
  432. package/dist/esm/kup-dashboard.entry.js +369 -368
  433. package/dist/esm/kup-dates-15f89ea2.js +777 -0
  434. package/dist/esm/kup-drawer.entry.js +122 -121
  435. package/dist/esm/kup-echart.entry.js +1192 -1191
  436. package/dist/esm/kup-family-tree.entry.js +400 -399
  437. package/dist/esm/kup-gantt_10.entry.js +1063 -0
  438. package/dist/esm/kup-grid.entry.js +82 -81
  439. package/dist/esm/kup-iframe.entry.js +80 -79
  440. package/dist/esm/kup-image-list.entry.js +224 -223
  441. package/dist/esm/kup-lazy.entry.js +162 -161
  442. package/dist/esm/kup-magic-box.entry.js +270 -269
  443. package/dist/esm/{kup-manager-94b3d177.js → kup-manager-bfea4e6f.js} +5750 -6493
  444. package/dist/esm/kup-nav-bar.entry.js +110 -109
  445. package/dist/esm/kup-numeric-picker.entry.js +352 -351
  446. package/dist/esm/kup-photo-frame.entry.js +126 -125
  447. package/dist/esm/kup-planner-declarations-b9345758.js +88 -0
  448. package/dist/esm/kup-planner-renderer-helper-2143d119.js +399 -0
  449. package/dist/esm/kup-planner-renderer.entry.js +274 -0
  450. package/dist/esm/kup-planner-time-formatter-a68e05ba.js +89 -0
  451. package/dist/esm/kup-planner.entry.js +718 -13111
  452. package/dist/esm/kup-probe.entry.js +228 -227
  453. package/dist/esm/kup-qlik.entry.js +126 -125
  454. package/dist/esm/kup-snackbar.entry.js +102 -101
  455. package/dist/esm/loader.js +3 -3
  456. package/dist/ketchup/index.esm.js +1 -0
  457. package/dist/ketchup/ketchup.esm.js +1 -1
  458. package/dist/ketchup/p-01a0b54c.js +1 -0
  459. package/dist/ketchup/{p-679ccbf8.js → p-097500fe.js} +1 -1
  460. package/dist/ketchup/p-0cb5e9ae.entry.js +1 -0
  461. package/dist/ketchup/p-0f91d4de.entry.js +1 -0
  462. package/dist/ketchup/p-1872c92e.entry.js +1 -0
  463. package/dist/ketchup/p-20aa95ae.entry.js +1 -0
  464. package/dist/ketchup/{p-b0678a34.js → p-21c640a5.js} +1 -1
  465. package/dist/ketchup/p-4bc3b3a6.js +29 -0
  466. package/dist/ketchup/{p-4d7c02f4.js → p-4c1ec006.js} +1 -1
  467. package/dist/ketchup/p-51f9b230.entry.js +1 -0
  468. package/dist/ketchup/p-612b46da.entry.js +1 -0
  469. package/dist/ketchup/p-69287f4a.entry.js +1 -0
  470. package/dist/ketchup/p-71acfd3c.entry.js +1 -0
  471. package/dist/ketchup/p-7a72c4fa.entry.js +1 -0
  472. package/dist/ketchup/p-7c5a1357.entry.js +1 -0
  473. package/dist/ketchup/p-829d7060.entry.js +1 -0
  474. package/dist/ketchup/p-84be8f0b.js +1 -0
  475. package/dist/ketchup/p-85279516.entry.js +9 -0
  476. package/dist/ketchup/p-8591ac0b.entry.js +1 -0
  477. package/dist/ketchup/p-8c3ad5ef.entry.js +1 -0
  478. package/dist/ketchup/p-8e180c01.entry.js +1 -0
  479. package/dist/ketchup/p-8e3b6de8.js +1 -0
  480. package/dist/ketchup/p-8ecdd076.entry.js +1 -0
  481. package/dist/ketchup/p-903d1b10.entry.js +1 -0
  482. package/dist/ketchup/p-924b841b.js +1 -0
  483. package/dist/ketchup/p-95272714.entry.js +1 -0
  484. package/dist/ketchup/p-b07ffd18.entry.js +16 -0
  485. package/dist/ketchup/p-c23731ca.js +1 -0
  486. package/dist/ketchup/p-cd9a4274.js +2 -0
  487. package/dist/ketchup/{p-bb80719e.js → p-ce9ef2d5.js} +1 -1
  488. package/dist/ketchup/{p-a2b75445.entry.js → p-d7b8295a.entry.js} +1 -1
  489. package/dist/ketchup/p-db93bc06.entry.js +1 -0
  490. package/dist/ketchup/p-e46470a6.entry.js +1 -0
  491. package/dist/ketchup/p-e841c2ae.js +1 -0
  492. package/dist/ketchup/p-eae42bff.entry.js +1 -0
  493. package/dist/ketchup/p-ee6305f5.js +1 -0
  494. package/dist/ketchup/p-f1efab38.entry.js +1 -0
  495. package/dist/ketchup/p-f2df4ce9.entry.js +1 -0
  496. package/dist/ketchup/{p-ba003975.js → p-f51dbf68.js} +1 -1
  497. package/dist/types/components/kup-accordion/kup-accordion-declarations.d.ts +5 -5
  498. package/dist/types/components/kup-accordion/kup-accordion.d.ts +75 -75
  499. package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +18 -18
  500. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +113 -113
  501. package/dist/types/components/kup-badge/kup-badge-declarations.d.ts +3 -3
  502. package/dist/types/components/kup-badge/kup-badge.d.ts +47 -47
  503. package/dist/types/components/kup-box/kup-box-declarations.d.ts +70 -70
  504. package/dist/types/components/kup-box/kup-box-state.d.ts +7 -7
  505. package/dist/types/components/kup-box/kup-box.d.ts +262 -262
  506. package/dist/types/components/kup-button/kup-button-declarations.d.ts +12 -12
  507. package/dist/types/components/kup-button/kup-button.d.ts +105 -105
  508. package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +11 -11
  509. package/dist/types/components/kup-button-list/kup-button-list.d.ts +75 -75
  510. package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +32 -32
  511. package/dist/types/components/kup-calendar/kup-calendar.d.ts +100 -100
  512. package/dist/types/components/kup-card/kup-card-declarations.d.ts +123 -123
  513. package/dist/types/components/kup-card/kup-card.d.ts +154 -154
  514. package/dist/types/components/kup-card-list/kup-card-list-declarations.d.ts +20 -20
  515. package/dist/types/components/kup-card-list/kup-card-list.d.ts +107 -57
  516. package/dist/types/components/kup-cell/kup-cell-declarations.d.ts +4 -4
  517. package/dist/types/components/kup-cell/kup-cell.d.ts +62 -62
  518. package/dist/types/components/kup-chart/kup-chart-builder.d.ts +2 -2
  519. package/dist/types/components/kup-chart/kup-chart-declarations.d.ts +99 -99
  520. package/dist/types/components/kup-chart/kup-chart.d.ts +164 -164
  521. package/dist/types/components/kup-checkbox/kup-checkbox-declarations.d.ts +8 -8
  522. package/dist/types/components/kup-checkbox/kup-checkbox.d.ts +80 -80
  523. package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +8 -8
  524. package/dist/types/components/kup-chip/kup-chip.d.ts +82 -82
  525. package/dist/types/components/kup-color-picker/kup-color-picker-declarations.d.ts +6 -6
  526. package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +83 -83
  527. package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +12 -12
  528. package/dist/types/components/kup-combobox/kup-combobox.d.ts +89 -89
  529. package/dist/types/components/kup-dashboard/kup-dashboard-declarations.d.ts +28 -28
  530. package/dist/types/components/kup-dashboard/kup-dashboard.d.ts +74 -74
  531. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +156 -156
  532. package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +2 -2
  533. package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +31 -31
  534. package/dist/types/components/kup-data-table/kup-data-table.d.ts +441 -441
  535. package/dist/types/components/kup-date-picker/kup-date-picker-declarations.d.ts +9 -9
  536. package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +105 -105
  537. package/dist/types/components/kup-dialog/kup-dialog-declarations.d.ts +12 -12
  538. package/dist/types/components/kup-dialog/kup-dialog.d.ts +72 -72
  539. package/dist/types/components/kup-drawer/kup-drawer-declarations.d.ts +2 -2
  540. package/dist/types/components/kup-drawer/kup-drawer.d.ts +70 -70
  541. package/dist/types/components/kup-dropdown-button/kup-dropdown-button-declarations.d.ts +12 -12
  542. package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +154 -154
  543. package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +48 -48
  544. package/dist/types/components/kup-echart/kup-echart.d.ts +103 -103
  545. package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +20 -20
  546. package/dist/types/components/kup-family-tree/kup-family-tree.d.ts +82 -82
  547. package/dist/types/components/kup-form/kup-form-declarations.d.ts +40 -40
  548. package/dist/types/components/kup-form/kup-form.d.ts +78 -78
  549. package/dist/types/components/kup-gauge/kup-gauge-declarations.d.ts +19 -19
  550. package/dist/types/components/kup-gauge/kup-gauge.d.ts +144 -144
  551. package/dist/types/components/kup-grid/kup-grid-declarations.d.ts +3 -3
  552. package/dist/types/components/kup-grid/kup-grid.d.ts +45 -45
  553. package/dist/types/components/kup-iframe/kup-iframe-declarations.d.ts +3 -3
  554. package/dist/types/components/kup-iframe/kup-iframe.d.ts +45 -45
  555. package/dist/types/components/kup-image/canvas/kup-image-canvas-declarations.d.ts +19 -19
  556. package/dist/types/components/kup-image/canvas/kup-image-canvas.d.ts +25 -25
  557. package/dist/types/components/kup-image/kup-image-declarations.d.ts +10 -10
  558. package/dist/types/components/kup-image/kup-image.d.ts +96 -96
  559. package/dist/types/components/kup-image-list/kup-image-list-declarations.d.ts +4 -4
  560. package/dist/types/components/kup-image-list/kup-image-list-state.d.ts +3 -3
  561. package/dist/types/components/kup-image-list/kup-image-list.d.ts +64 -64
  562. package/dist/types/components/kup-lazy/kup-lazy-declarations.d.ts +7 -7
  563. package/dist/types/components/kup-lazy/kup-lazy.d.ts +73 -73
  564. package/dist/types/components/kup-list/kup-list-declarations.d.ts +23 -23
  565. package/dist/types/components/kup-list/kup-list.d.ts +122 -122
  566. package/dist/types/components/kup-magic-box/kup-magic-box-declarations.d.ts +10 -10
  567. package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +60 -60
  568. package/dist/types/components/kup-nav-bar/kup-nav-bar-declarations.d.ts +7 -7
  569. package/dist/types/components/kup-nav-bar/kup-nav-bar.d.ts +60 -60
  570. package/dist/types/components/kup-numeric-picker/kup-numeric-picker-declarations.d.ts +10 -10
  571. package/dist/types/components/kup-numeric-picker/kup-numeric-picker.d.ts +116 -116
  572. package/dist/types/components/kup-photo-frame/kup-photo-frame-declarations.d.ts +3 -3
  573. package/dist/types/components/kup-photo-frame/kup-photo-frame.d.ts +57 -57
  574. package/dist/types/components/kup-planner/kup-planner-declarations.d.ts +592 -96
  575. package/dist/types/components/kup-planner/kup-planner-state.d.ts +9 -9
  576. package/dist/types/components/kup-planner/kup-planner.d.ts +269 -259
  577. package/dist/types/components/kup-planner/utils/custom-task-list-header.d.ts +8 -0
  578. package/dist/types/components/kup-planner/utils/custom-task-list-table.d.ts +14 -0
  579. package/dist/types/components/kup-planner/utils/custom-tool-tip.d.ts +2 -0
  580. package/dist/types/components/kup-planner/utils/helpers/bar.helpers.d.ts +33 -0
  581. package/dist/types/components/kup-planner/utils/helpers/other.helpers.d.ts +6 -0
  582. package/dist/types/components/kup-planner/utils/kup-gantt/kup-gantt.d.ts +127 -0
  583. package/dist/types/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.d.ts +27 -0
  584. package/dist/types/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.d.ts +59 -0
  585. package/dist/types/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.d.ts +17 -0
  586. package/dist/types/components/kup-planner/utils/kup-planner-adapted-types.d.ts +28 -0
  587. package/dist/types/components/kup-planner/utils/kup-planner-renderer-helper.d.ts +36 -0
  588. package/dist/types/components/kup-planner/utils/kup-planner-renderer.d.ts +33 -0
  589. package/dist/types/components/kup-planner/utils/kup-planner-time-formatter.d.ts +20 -0
  590. package/dist/types/components/kup-planner/utils/kup-switcher/kup-switcher.d.ts +5 -0
  591. package/dist/types/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.d.ts +20 -0
  592. package/dist/types/components/kup-planner/utils/kup-task-list/kup-task-list-header.d.ts +7 -0
  593. package/dist/types/components/kup-planner/utils/kup-task-list/kup-task-list-table.d.ts +16 -0
  594. package/dist/types/components/kup-planner/utils/kup-task-list/kup-task-list.d.ts +40 -0
  595. package/dist/types/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.d.ts +7 -0
  596. package/dist/types/components/kup-planner/utils/kup-tooltip/kup-tooltip.d.ts +26 -0
  597. package/dist/types/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.d.ts +16 -0
  598. package/dist/types/components/kup-probe/kup-probe.d.ts +70 -70
  599. package/dist/types/components/kup-progress-bar/kup-progress-bar-declarations.d.ts +7 -7
  600. package/dist/types/components/kup-progress-bar/kup-progress-bar.d.ts +65 -65
  601. package/dist/types/components/kup-qlik/kup-qlik-declarations.d.ts +13 -13
  602. package/dist/types/components/kup-qlik/kup-qlik.d.ts +96 -96
  603. package/dist/types/components/kup-radio/kup-radio-declarations.d.ts +6 -6
  604. package/dist/types/components/kup-radio/kup-radio.d.ts +75 -75
  605. package/dist/types/components/kup-rating/kup-rating-declarations.d.ts +5 -5
  606. package/dist/types/components/kup-rating/kup-rating.d.ts +52 -52
  607. package/dist/types/components/kup-snackbar/kup-snackbar-declarations.d.ts +5 -5
  608. package/dist/types/components/kup-snackbar/kup-snackbar.d.ts +78 -78
  609. package/dist/types/components/kup-spinner/kup-spinner-declarations.d.ts +8 -8
  610. package/dist/types/components/kup-spinner/kup-spinner.d.ts +75 -75
  611. package/dist/types/components/kup-state/kup-state.d.ts +1 -1
  612. package/dist/types/components/kup-state/kup-store.d.ts +2 -2
  613. package/dist/types/components/kup-state/mock-store.d.ts +5 -5
  614. package/dist/types/components/kup-switch/kup-switch-declarations.d.ts +6 -6
  615. package/dist/types/components/kup-switch/kup-switch.d.ts +75 -75
  616. package/dist/types/components/kup-tab-bar/kup-tab-bar-declarations.d.ts +6 -6
  617. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +72 -72
  618. package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +31 -31
  619. package/dist/types/components/kup-text-field/kup-text-field.d.ts +258 -258
  620. package/dist/types/components/kup-time-picker/kup-time-picker-declarations.d.ts +8 -8
  621. package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +120 -120
  622. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +56 -56
  623. package/dist/types/components/kup-tree/kup-tree-faker.d.ts +15 -15
  624. package/dist/types/components/kup-tree/kup-tree-state.d.ts +9 -9
  625. package/dist/types/components/kup-tree/kup-tree.d.ts +351 -351
  626. package/dist/types/components.d.ts +1305 -4
  627. package/dist/types/f-components/f-button/f-button-declarations.d.ts +24 -24
  628. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +117 -117
  629. package/dist/types/f-components/f-checkbox/f-checkbox-declarations.d.ts +9 -9
  630. package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +12 -12
  631. package/dist/types/f-components/f-image/f-image-declarations.d.ts +14 -14
  632. package/dist/types/f-components/f-paginator/f-paginator-declarations.d.ts +12 -12
  633. package/dist/types/f-components/f-progress-bar/f-progress-bar-declarations.d.ts +10 -10
  634. package/dist/types/f-components/f-radio/f-radio-declarations.d.ts +11 -11
  635. package/dist/types/f-components/f-rating/f-rating-declarations.d.ts +4 -4
  636. package/dist/types/f-components/f-switch/f-switch-declarations.d.ts +8 -8
  637. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +38 -38
  638. package/dist/types/index.d.ts +4 -0
  639. package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +3 -3
  640. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +88 -88
  641. package/dist/types/managers/kup-data/kup-data.d.ts +76 -76
  642. package/dist/types/managers/kup-dates/kup-dates-declarations.d.ts +19 -19
  643. package/dist/types/managers/kup-dates/kup-dates.d.ts +217 -192
  644. package/dist/types/managers/kup-debug/kup-debug-declarations.d.ts +18 -18
  645. package/dist/types/managers/kup-debug/kup-debug.d.ts +87 -87
  646. package/dist/types/managers/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +19 -19
  647. package/dist/types/managers/kup-dynamic-position/kup-dynamic-position.d.ts +53 -53
  648. package/dist/types/managers/kup-interact/kup-interact-declarations.d.ts +37 -37
  649. package/dist/types/managers/kup-interact/kup-interact.d.ts +95 -95
  650. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +133 -133
  651. package/dist/types/managers/kup-language/kup-language.d.ts +44 -44
  652. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +63 -63
  653. package/dist/types/managers/kup-manager/kup-manager.d.ts +67 -67
  654. package/dist/types/managers/kup-math/kup-math-declarations.d.ts +16 -16
  655. package/dist/types/managers/kup-math/kup-math-helper.d.ts +1 -1
  656. package/dist/types/managers/kup-math/kup-math.d.ts +132 -132
  657. package/dist/types/managers/kup-objects/kup-objects-declarations.d.ts +4 -4
  658. package/dist/types/managers/kup-objects/kup-objects.d.ts +201 -201
  659. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +16 -16
  660. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +55 -55
  661. package/dist/types/managers/kup-search/kup-search-declarations.d.ts +1 -1
  662. package/dist/types/managers/kup-search/kup-search.d.ts +13 -13
  663. package/dist/types/managers/kup-theme/kup-theme-declarations.d.ts +99 -99
  664. package/dist/types/managers/kup-theme/kup-theme.d.ts +119 -119
  665. package/dist/types/managers/kup-toolbar/kup-toolbar-declarations.d.ts +3 -3
  666. package/dist/types/managers/kup-toolbar/kup-toolbar.d.ts +32 -32
  667. package/dist/types/managers/kup-tooltip/kup-tooltip-declarations.d.ts +4 -4
  668. package/dist/types/managers/kup-tooltip/kup-tooltip.d.ts +43 -43
  669. package/dist/types/stencil-public-runtime.d.ts +29 -0
  670. package/dist/types/types/GenericTypes.d.ts +74 -74
  671. package/dist/types/utils/filters/filters-column-menu.d.ts +86 -86
  672. package/dist/types/utils/filters/filters-declarations.d.ts +13 -13
  673. package/dist/types/utils/filters/filters-rows.d.ts +17 -17
  674. package/dist/types/utils/filters/filters-tree-items.d.ts +7 -7
  675. package/dist/types/utils/filters/filters.d.ts +62 -62
  676. package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +14 -14
  677. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +126 -126
  678. package/dist/types/utils/utils.d.ts +0 -2
  679. package/package.json +12 -16
  680. package/dist/cjs/f-button-733664a5.js +0 -105
  681. package/dist/cjs/f-cell-f37757a6.js +0 -670
  682. package/dist/cjs/f-checkbox-556771e8.js +0 -29
  683. package/dist/cjs/f-chip-3349d130.js +0 -133
  684. package/dist/cjs/f-image-b7a5816b.js +0 -115
  685. package/dist/cjs/f-paginator-utils-1fe1df76.js +0 -1576
  686. package/dist/cjs/f-text-field-8557fc3f.js +0 -216
  687. package/dist/esm/f-button-f247ce10.js +0 -103
  688. package/dist/esm/f-cell-ba94f1b3.js +0 -664
  689. package/dist/esm/f-checkbox-cbf7b3de.js +0 -27
  690. package/dist/esm/f-chip-104c4a64.js +0 -131
  691. package/dist/esm/f-image-d2a9603c.js +0 -113
  692. package/dist/esm/f-paginator-utils-743522fa.js +0 -1563
  693. package/dist/esm/f-text-field-4d91ccfc.js +0 -214
  694. package/dist/ketchup/p-12e47371.js +0 -1
  695. package/dist/ketchup/p-15548f51.entry.js +0 -1
  696. package/dist/ketchup/p-20e8ab84.js +0 -2
  697. package/dist/ketchup/p-21f1b22a.entry.js +0 -1
  698. package/dist/ketchup/p-2c47b88f.js +0 -30
  699. package/dist/ketchup/p-304f296e.entry.js +0 -1
  700. package/dist/ketchup/p-48f8b0d5.entry.js +0 -9
  701. package/dist/ketchup/p-4ca502ce.entry.js +0 -1
  702. package/dist/ketchup/p-5abbf31b.entry.js +0 -1
  703. package/dist/ketchup/p-5c9b10a5.entry.js +0 -1
  704. package/dist/ketchup/p-5cb2dbf3.entry.js +0 -1
  705. package/dist/ketchup/p-6a0ac578.entry.js +0 -1
  706. package/dist/ketchup/p-87e13738.entry.js +0 -1
  707. package/dist/ketchup/p-8e5db599.entry.js +0 -1
  708. package/dist/ketchup/p-a14ede8c.entry.js +0 -1
  709. package/dist/ketchup/p-a2007880.js +0 -1
  710. package/dist/ketchup/p-bf41d71f.entry.js +0 -1
  711. package/dist/ketchup/p-c32e8755.entry.js +0 -1
  712. package/dist/ketchup/p-c4b1bde1.entry.js +0 -1
  713. package/dist/ketchup/p-c6b58be6.entry.js +0 -1
  714. package/dist/ketchup/p-d56763cf.entry.js +0 -1
  715. package/dist/ketchup/p-e7f57bee.entry.js +0 -1
  716. package/dist/ketchup/p-eb12225c.entry.js +0 -1
  717. package/dist/ketchup/p-f22abf4e.entry.js +0 -1
  718. package/dist/ketchup/p-f82db512.entry.js +0 -25
  719. /package/dist/ketchup/{p-cd2af1a6.js → p-b3577066.js} +0 -0
  720. /package/dist/ketchup/{p-b00f3575.js → p-c634eb82.js} +0 -0
@@ -2,18 +2,19 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-4b3a5567.js');
6
- const kupManager = require('./kup-manager-cb73c128.js');
7
- const fPaginatorUtils = require('./f-paginator-utils-1fe1df76.js');
8
- const fImage = require('./f-image-b7a5816b.js');
9
- const fChip = require('./f-chip-3349d130.js');
5
+ const index = require('./index-8f2f4159.js');
6
+ const kupManager = require('./kup-manager-c63f4fb9.js');
7
+ const fPaginatorUtils = require('./f-paginator-utils-f2dd0322.js');
8
+ const fImage = require('./f-image-e16fe10d.js');
9
+ const fChip = require('./f-chip-8957940b.js');
10
10
  const GenericVariables = require('./GenericVariables-1d52ba57.js');
11
- const fCell = require('./f-cell-f37757a6.js');
12
- const fTextFieldMdc = require('./f-text-field-mdc-4fda9705.js');
13
- require('./f-button-733664a5.js');
14
- require('./f-button-declarations-3fd791a8.js');
15
- require('./f-checkbox-556771e8.js');
16
- require('./f-text-field-8557fc3f.js');
11
+ const fCell = require('./f-cell-979c26ea.js');
12
+ const fTextFieldMdc = require('./f-text-field-mdc-08a06162.js');
13
+ require('./kup-dates-0e59b05d.js');
14
+ require('./f-button-4caf541a.js');
15
+ require('./f-button-declarations-51ef6d9a.js');
16
+ require('./f-checkbox-41864e53.js');
17
+ require('./f-text-field-2fac8078.js');
17
18
  require('./component-cb3b32f5.js');
18
19
 
19
20
  /**
@@ -22,1289 +23,1289 @@ require('./component-cb3b32f5.js');
22
23
  */
23
24
  var KupBoxProps;
24
25
  (function (KupBoxProps) {
25
- KupBoxProps["cardData"] = "Data of the card linked to the box when the latter's layout must be a premade template.";
26
- KupBoxProps["columns"] = "Number of columns.";
27
- KupBoxProps["customStyle"] = "Custom style of the component.";
28
- KupBoxProps["data"] = "Actual data of the box.";
29
- KupBoxProps["dragEnabled"] = "Enable dragging.";
30
- KupBoxProps["dropEnabled"] = "Enable dropping.";
31
- KupBoxProps["dropOnSection"] = "Drop can be done in section.";
32
- KupBoxProps["enableRowActions"] = "If enabled, a button to load / display the row actions will be displayed on the right of every box.";
33
- KupBoxProps["globalFilter"] = "When set to true it activates the global filter.";
34
- KupBoxProps["globalFilterValue"] = "The value of the global filter.";
35
- KupBoxProps["kanban"] = "Displays the boxlist as a Kanban.";
36
- KupBoxProps["layout"] = "How the field will be displayed. If not present, a default one will be created.";
37
- KupBoxProps["lazyLoadRows"] = "When set to true, extra rows will be automatically loaded once the last row enters the viewport.";
38
- KupBoxProps["multiSelection"] = "Enable multi selection.";
39
- KupBoxProps["pageSelected"] = "Current page number.";
40
- KupBoxProps["pagination"] = "Enables pagination.";
41
- KupBoxProps["rowsPerPage"] = "Number of current rows per page.";
42
- KupBoxProps["scrollOnHover"] = "Activates the scroll on hover function.";
43
- KupBoxProps["selectBox"] = "Automatically selects the box at the specified index.";
44
- KupBoxProps["selectedRowsState"] = "Multiple selection.";
45
- KupBoxProps["showSelection"] = "If enabled, highlights the selected box/boxes.";
46
- KupBoxProps["sortBy"] = "If sorting is enabled, specifies which column to sort.";
47
- KupBoxProps["sortEnabled"] = "Enable sorting.";
48
- KupBoxProps["stateId"] = "";
49
- KupBoxProps["store"] = "";
50
- KupBoxProps["swipeDisabled"] = "Disable swipe.";
26
+ KupBoxProps["cardData"] = "Data of the card linked to the box when the latter's layout must be a premade template.";
27
+ KupBoxProps["columns"] = "Number of columns.";
28
+ KupBoxProps["customStyle"] = "Custom style of the component.";
29
+ KupBoxProps["data"] = "Actual data of the box.";
30
+ KupBoxProps["dragEnabled"] = "Enable dragging.";
31
+ KupBoxProps["dropEnabled"] = "Enable dropping.";
32
+ KupBoxProps["dropOnSection"] = "Drop can be done in section.";
33
+ KupBoxProps["enableRowActions"] = "If enabled, a button to load / display the row actions will be displayed on the right of every box.";
34
+ KupBoxProps["globalFilter"] = "When set to true it activates the global filter.";
35
+ KupBoxProps["globalFilterValue"] = "The value of the global filter.";
36
+ KupBoxProps["kanban"] = "Displays the boxlist as a Kanban.";
37
+ KupBoxProps["layout"] = "How the field will be displayed. If not present, a default one will be created.";
38
+ KupBoxProps["lazyLoadRows"] = "When set to true, extra rows will be automatically loaded once the last row enters the viewport.";
39
+ KupBoxProps["multiSelection"] = "Enable multi selection.";
40
+ KupBoxProps["pageSelected"] = "Current page number.";
41
+ KupBoxProps["pagination"] = "Enables pagination.";
42
+ KupBoxProps["rowsPerPage"] = "Number of current rows per page.";
43
+ KupBoxProps["scrollOnHover"] = "Activates the scroll on hover function.";
44
+ KupBoxProps["selectBox"] = "Automatically selects the box at the specified index.";
45
+ KupBoxProps["selectedRowsState"] = "Multiple selection.";
46
+ KupBoxProps["showSelection"] = "If enabled, highlights the selected box/boxes.";
47
+ KupBoxProps["sortBy"] = "If sorting is enabled, specifies which column to sort.";
48
+ KupBoxProps["sortEnabled"] = "Enable sorting.";
49
+ KupBoxProps["stateId"] = "";
50
+ KupBoxProps["store"] = "";
51
+ KupBoxProps["swipeDisabled"] = "Disable swipe.";
51
52
  })(KupBoxProps || (KupBoxProps = {}));
52
53
 
53
54
  class KupBoxState {
54
- constructor() {
55
- this.globalFilterValue = '';
56
- this.sortBy = '';
57
- this.selectedRowsState = '';
58
- this.pageSelected = 1;
59
- this.rowsPerPage = 0;
60
- this.load = false;
61
- }
62
- /*Add attribute*/
63
- toDebugString() {
64
- // TODO
65
- return 'box state';
66
- }
55
+ constructor() {
56
+ this.globalFilterValue = '';
57
+ this.sortBy = '';
58
+ this.selectedRowsState = '';
59
+ this.pageSelected = 1;
60
+ this.rowsPerPage = 0;
61
+ this.load = false;
62
+ }
63
+ /*Add attribute*/
64
+ toDebugString() {
65
+ // TODO
66
+ return 'box state';
67
+ }
67
68
  }
68
69
 
69
70
  const kupBoxCss = ":host{--kup_box_background_color:var(\n --kup-box-background-color,\n var(--kup-background-color)\n );--kup_box_color:var(--kup-box-color, var(--kup-text-color));--kup_box_font_family:var(--kup-box-font-family, var(--kup-font-family));--kup_box_font_size:var(--kup-box-font-size, var(--kup-font-size));--kup_box_grid_gap:var(--kup-box-grid-gap, 1em);--kup_box_hover_box_shadow:var(\n --kup-box-hover-box-shadow,\n 0px 0px 7.5px 0px rgba(128, 128, 128, 0.5)\n );--kup_box_primary_color_rgb:var(\n --kup-box-primary-color-rgb,\n var(--kup-primary-color-rgb)\n );--kup_box_transition:var(--kup-box-transition, 0.25s);display:block;font-family:var(--kup_box_font_family);font-size:var(--kup_box_font_size)}.box-component{background:var(--kup_box_background_color);transition:border var(--kup_box_transition) ease}.box-component[kup-drag-over]{position:relative;border:3px dashed var(--kup-border-color)}#box-container{display:grid;grid-gap:var(--kup_box_grid_gap);color:var(--kup_box_color);overflow:auto}#box-container.is-kanban .kanban-section{overflow:auto}#box-container.is-kanban .box-wrapper{padding-top:1em}#box-container.is-kanban .box-wrapper .box{overflow:auto}#box-container *{box-sizing:border-box}#box-container .box-wrapper{display:flex;align-items:center}#box-container .box-wrapper .box{flex-grow:1;cursor:pointer;position:relative;display:flex;transition:background-color var(--kup_box_transition) ease, box-shadow var(--kup_box_transition) ease, border var(--kup_box_transition) ease}#box-container .box-wrapper .box.draggable{touch-action:none;user-select:none}#box-container .box-wrapper .box.column{flex-direction:column}#box-container .box-wrapper .box:hover{box-shadow:var(--kup_box_hover_box_shadow)}#box-container .box-wrapper .box.selected{background-color:rgba(var(--kup_box_primary_color_rgb), 0.175)}#box-container .box-wrapper .box.selected .box-section.titled>h3{background-color:transparent}#box-container .box-wrapper .box[kup-draggable]{opacity:0.5}#box-container .box-wrapper .box[kup-drag-over]{border:3px dashed var(--kup-border-color);position:relative;z-index:2}#box-container .box-wrapper .box .box-section{display:flex;flex-direction:row;flex:1 1 1%;flex-wrap:wrap}#box-container .box-wrapper .box .box-section.column{flex-direction:column;justify-content:center;flex-wrap:unset}#box-container .box-wrapper .box .box-section.column>.box-section{flex:0 0 auto}#box-container .box-wrapper .box .box-section.grid{display:grid}#box-container .box-wrapper .box .box-section .box-object{min-height:16px}#box-container .box-wrapper .box .box-section .box-object img{height:auto}#box-container .box-wrapper .box .box-section.collapse-section .header{border-top:1px solid var(--kup-border-color);color:rgba(var(--kup-text-color-rgb), 0.75);display:flex;justify-content:space-around;width:100%}#box-container .box-wrapper .box .box-section.collapse-section .header .header-content{margin:0.5em;display:flex;align-items:center}#box-container .box-wrapper .box .box-section.collapse-section .header .header-content .f-image{transition:transform 0.15s}#box-container .box-wrapper .box .box-section.collapse-section .header .header-content .f-image.toggled{transform:rotate(-180deg)}#box-container .box-wrapper .box .box-section.collapse-section .header .header-content .kup-icon.kup-dropdown-icon{margin:0;-webkit-mask:var(--kup-dropdown-icon);mask:var(--kup-dropdown-icon)}#box-container .box-wrapper .box .box-section.collapse-section .content{display:none;width:100%}#box-container .box-wrapper .box .box-section.collapse-section.open .content{display:block}#box-container .box-wrapper .box .box-section.titled{border:1px solid var(--kup-border-color);padding-top:5px;position:relative;margin:10px}#box-container .box-wrapper .box .box-section.titled>h3{background:var(--kup-background-color);font-size:calc(var(--kup-font-size) * 1.15);position:absolute;margin:0px;padding:0 8px;top:-11px;left:5px;transition:background-color 0.25s ease}#box-container .box-wrapper .box .box-selection{position:absolute;top:0.5em;right:0.5em;z-index:1}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler{position:relative;width:24px;height:24px;margin-left:3px}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler svg{cursor:pointer;opacity:0;fill:var(--kup-text-color);transition:opacity 500ms ease-out}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu{background:var(--kup-background-color);border:1px solid var(--kup-border-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);position:absolute;top:0;right:24px;display:none;z-index:10}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu ul{list-style-type:none;margin:0;padding:0}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu ul>li{cursor:pointer;white-space:nowrap;padding:0 12px;display:flex;align-items:center;line-height:30px}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu ul>li:not(:last-child){border-bottom:1px solid var(--kup-border-color)}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu.open{display:block}#box-container .box-wrapper:hover .row-actions-wrapper .row-actions-toggler svg{opacity:1}#sort-panel,#global-filter{margin-bottom:1em}:host(.kup-center-aligned) #kup-component .box-section{text-align:center}:host(.kup-center-aligned) #kup-component .box-section .f-cell{justify-content:center;margin:auto;text-align:center}:host(.kup-center-aligned) #kup-component .box-section .f-cell .f-cell__content{justify-content:center;margin:auto;text-align:center}:host(.kup-center-aligned) #kup-component .box-section .f-cell img{margin:auto}:host(.kup-right-aligned) #kup-component .box-section{text-align:right}:host(.kup-right-aligned) #kup-component .box-section .f-cell{justify-content:flex-end;margin-left:auto;margin-right:0;text-align:right}:host(.kup-right-aligned) #kup-component .box-section .f-cell .f-cell__content{justify-content:flex-end;margin-left:auto;margin-right:0;text-align:right}:host(.kup-right-aligned) #kup-component .box-section .f-cell img{margin-left:auto;margin-right:0}:host(.kup-top-aligned) #box-container .box-wrapper .box .box-section .column{justify-content:flex-start}:host(.kup-bottom-aligned) #box-container .box-wrapper .box .box-section .column{justify-content:flex-end}:host(:not(.kup-borderless)) .box{border:1px solid var(--kup-border-color)}:host(.kup-flat-on-hover) #box-container .box-wrapper .box:hover{box-shadow:none}:host(.kup-shaped) .box{border-radius:10px}:host(.kup-round) .box{border-radius:25px}:host(.kup-dashed-sections) .box-section{border:2px dashed var(--kup-text-color)}:host(:not(.kup-paddingless)) #box-container .box{padding:3px}:host(:not(.kup-paddingless)) #box-container .box .box-section .box-object{padding:1px 4px}:host(:not(.kup-paddingless)) #box-container .box .box-section.last-child{margin:3px 4px}:host(.kup-danger){--kup-box-primary-color-rgb:var(--kup-danger-color-rgb)}:host(.kup-info){--kup-box-primary-color-rgb:var(--kup-info-color-rgb)}:host(.kup-secondary){--kup-box-primary-color-rgb:var(--kup-secondary-color-rgb)}:host(.kup-success){--kup-box-primary-color-rgb:var(--kup-success-color-rgb)}:host(.kup-warning){--kup-box-primary-color-rgb:var(--kup-warning-color-rgb)}";
70
71
 
71
72
  var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
72
- if (kind === "a" && !f)
73
- throw new TypeError("Private accessor was defined without a getter");
74
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
75
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
76
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
73
+ if (kind === "a" && !f)
74
+ throw new TypeError("Private accessor was defined without a getter");
75
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
76
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
77
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
77
78
  };
78
79
  var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
79
- if (kind === "m")
80
- throw new TypeError("Private method is not writable");
81
- if (kind === "a" && !f)
82
- throw new TypeError("Private accessor was defined without a setter");
83
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
84
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
85
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
80
+ if (kind === "m")
81
+ throw new TypeError("Private method is not writable");
82
+ if (kind === "a" && !f)
83
+ throw new TypeError("Private accessor was defined without a setter");
84
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
85
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
86
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
86
87
  };
87
88
  var _KupBox_instances, _KupBox_intObserver, _KupBox_rowsRefs, _KupBox_navBarHeight, _KupBox_didRenderObservers, _KupBox_setObserver;
88
89
  const KupBox = class {
89
- constructor(hostRef) {
90
- index.registerInstance(this, hostRef);
91
- this.kupBoxClick = index.createEvent(this, "kup-box-click", 6);
92
- this.kupBoxSelected = index.createEvent(this, "kup-box-selected", 6);
93
- this.kupAutoBoxSelect = index.createEvent(this, "kup-box-autoselect", 6);
94
- this.kupRowActionMenuClick = index.createEvent(this, "kup-box-rowactionmenuclick", 6);
95
- this.kupRowActionClick = index.createEvent(this, "kup-box-rowactionclick", 6);
96
- this.kupDidLoad = index.createEvent(this, "kup-box-didload", 6);
97
- this.kupDidUnload = index.createEvent(this, "kup-box-didunload", 6);
98
- this.kupBoxContextMenu = index.createEvent(this, "kup-box-contextmenu", 6);
99
- _KupBox_instances.add(this);
100
- this.state = new KupBoxState();
101
- /*-------------------------------------------------*/
102
- /* I n t e r n a l V a r i a b l e s */
103
- /*-------------------------------------------------*/
104
- /**
105
- * Instance of the KupManager class.
106
- */
107
- this.kupManager = kupManager.kupManagerInstance();
108
- this.visibleColumns = [];
109
- this.rows = [];
110
- this.filteredRows = [];
111
- this.sectionRef = null;
112
- this.rowsRefs = [];
113
- this.hold = false;
114
- this.interactableDrag = [];
115
- this.interactableDrop = [];
116
- this.interactableTouch = [];
117
- _KupBox_intObserver.set(this, undefined);
118
- _KupBox_rowsRefs.set(this, []);
119
- _KupBox_navBarHeight.set(this, 0);
120
- this.collapsedSection = {};
121
- this.selectedRows = [];
122
- this.rowActionMenuOpened = undefined;
123
- this.currentPage = 1;
124
- this.currentRowsPerPage = 10;
125
- this.cardData = null;
126
- this.columns = 1;
127
- this.customStyle = '';
128
- this.data = null;
129
- this.dragEnabled = false;
130
- this.dropEnabled = false;
131
- this.dropOnSection = false;
132
- this.editableData = false;
133
- this.enableRowActions = false;
134
- this.globalFilter = false;
135
- this.globalFilterValue = '';
136
- this.kanban = null;
137
- this.layout = undefined;
138
- this.lazyLoadRows = false;
139
- this.multiSelection = false;
140
- this.pageSelected = 1;
141
- this.pagination = false;
142
- this.rowsPerPage = undefined;
143
- this.scrollOnHover = false;
144
- this.selectBox = undefined;
145
- this.selectedRowsState = undefined;
146
- this.showSelection = true;
147
- this.sortBy = undefined;
148
- this.sortEnabled = false;
149
- this.stateId = '';
150
- this.store = undefined;
151
- this.swipeDisabled = false;
152
- }
153
- initWithPersistedState() {
154
- if (this.store && this.stateId) {
155
- const state = this.store.getState(this.stateId);
156
- if (state != null) {
157
- this.kupManager.debug.logMessage(this, 'Initialize with state for stateId ' +
158
- this.stateId +
159
- ': ' +
160
- state);
161
- // *** PROPS ***
162
- this.sortBy = this.state.sortBy;
163
- this.globalFilterValue = this.state.globalFilterValue;
164
- this.selectedRowsState = this.state.selectedRowsState;
165
- this.pageSelected = this.state.pageSelected;
166
- this.rowsPerPage = this.state.rowsPerPage;
167
- }
168
- }
169
- }
170
- persistState() {
171
- if (this.store && this.stateId) {
172
- let somethingChanged = false;
173
- if (!this.kupManager.objects.deepEqual(this.state.sortBy, this.sortBy)) {
174
- this.state.sortBy = this.sortBy;
175
- somethingChanged = true;
176
- }
177
- if (!this.kupManager.objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
178
- this.state.globalFilterValue = this.globalFilterValue;
179
- somethingChanged = true;
180
- }
181
- if (!this.kupManager.objects.deepEqual(this.state.pageSelected, this.currentPage)) {
182
- this.state.pageSelected = this.currentPage;
183
- somethingChanged = true;
184
- }
185
- if (!this.kupManager.objects.deepEqual(this.state.rowsPerPage, this.currentRowsPerPage)) {
186
- this.state.rowsPerPage = this.currentRowsPerPage;
187
- somethingChanged = true;
188
- }
189
- const selectedRowsState = this.selectedRows.reduce((accumulator, row, currentIndex) => {
190
- const prefix = currentIndex > 0 ? ';' : '';
191
- return accumulator + prefix + row.id;
192
- }, '');
193
- if (!this.kupManager.objects.deepEqual(this.state.selectedRowsState, selectedRowsState)) {
194
- this.state.selectedRowsState = selectedRowsState;
195
- somethingChanged = true;
196
- }
197
- if (!this.state.load) {
198
- this.state.load = true;
199
- return;
200
- }
201
- if (somethingChanged) {
202
- this.kupManager.debug.logMessage(this, 'Persisting state for stateId ' +
203
- this.stateId +
204
- ': ' +
205
- this.state);
206
- this.store.persistState(this.stateId, this.state);
207
- }
208
- }
209
- }
210
- /*-------------------------------------------------*/
211
- /* W a t c h e r s */
212
- /*-------------------------------------------------*/
213
- rowsPerPageHandler(newValue) {
214
- this.currentRowsPerPage = newValue;
215
- }
216
- recalculateRows() {
217
- this.initRows();
218
- }
219
- onDataChanged() {
220
- kupManager.identify(this.getRows());
221
- this.initVisibleColumns();
222
- this.initRows();
223
- this.checkLayout();
224
- }
225
- onLayoutChanged() {
226
- this.checkLayout();
227
- }
228
- onSelectBoxChanged() {
229
- this.handleAutomaticBoxSelection();
230
- }
231
- /*-------------------------------------------------*/
232
- /* P u b l i c M e t h o d s */
233
- /*-------------------------------------------------*/
234
- /**
235
- * Used to retrieve component's props values.
236
- * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
237
- * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
238
- */
239
- async getProps(descriptions) {
240
- return kupManager.getProps(this, KupBoxProps, descriptions);
241
- }
242
- async loadRowActions(row, actions) {
243
- row.actions = actions;
244
- // show menu
245
- this.rowActionMenuOpened = row;
246
- }
247
- /**
248
- * This method is used to trigger a new render of the component.
249
- */
250
- async refresh() {
251
- index.forceUpdate(this);
252
- }
253
- /**
254
- * Sets the props to the component.
255
- * @param {GenericObject} props - Object containing props that will be set to the component.
256
- */
257
- async setProps(props) {
258
- kupManager.setProps(this, KupBoxProps, props);
259
- }
260
- /*-------------------------------------------------*/
261
- /* P r i v a t e M e t h o d s */
262
- /*-------------------------------------------------*/
263
- getColumns() {
264
- return this.data && this.data.columns
265
- ? this.data.columns
266
- : [{ title: '', name: '', size: undefined }];
267
- }
268
- initVisibleColumns() {
269
- this.visibleColumns = this.getColumns().filter((column) => {
270
- if (column.hasOwnProperty('visible')) {
271
- return column.visible;
272
- }
273
- return true;
274
- });
275
- }
276
- getRows() {
277
- return this.data && this.data.rows ? this.data.rows : [];
278
- }
279
- initRows() {
280
- this.filteredRows = this.getRows();
281
- if (this.globalFilter && this.globalFilterValue) {
282
- // filtering rows
283
- this.filteredRows = fPaginatorUtils.filterRows(this.filteredRows, null, this.globalFilterValue, this.visibleColumns);
284
- }
285
- this.rows = this.sortRows(this.filteredRows);
286
- if (this.pagination) {
287
- this.rows = fPaginatorUtils.paginateRows(this.rows, this.currentPage, this.currentRowsPerPage, false);
288
- }
289
- }
290
- sortRows(rows) {
291
- let sortedRows = rows;
292
- if (this.sortBy) {
293
- sortedRows = fPaginatorUtils.sortRows(sortedRows, this.toSortObjectList());
294
- }
295
- return sortedRows;
296
- }
297
- toSortObjectList() {
298
- const sortByArray = this.sortBy.split('|').map((col) => {
299
- const colNameAndSortMode = col.split(',');
300
- const sortObject = {
301
- column: colNameAndSortMode[0],
302
- sortMode: colNameAndSortMode.length > 1
303
- ? kupManager.SortMode[colNameAndSortMode[1]]
304
- : kupManager.SortMode.A,
305
- };
306
- return sortObject;
307
- });
308
- return sortByArray;
309
- }
310
- checkScrollOnHover() {
311
- if (!this.kupManager.scrollOnHover.isRegistered(this.boxContainer)) {
312
- if (this.scrollOnHover) {
313
- this.kupManager.scrollOnHover.register(this.boxContainer);
314
- }
315
- }
316
- else {
317
- if (!this.scrollOnHover) {
318
- this.kupManager.scrollOnHover.unregister(this.boxContainer);
319
- }
90
+ constructor(hostRef) {
91
+ index.registerInstance(this, hostRef);
92
+ this.kupBoxClick = index.createEvent(this, "kup-box-click", 6);
93
+ this.kupBoxSelected = index.createEvent(this, "kup-box-selected", 6);
94
+ this.kupAutoBoxSelect = index.createEvent(this, "kup-box-autoselect", 6);
95
+ this.kupRowActionMenuClick = index.createEvent(this, "kup-box-rowactionmenuclick", 6);
96
+ this.kupRowActionClick = index.createEvent(this, "kup-box-rowactionclick", 6);
97
+ this.kupDidLoad = index.createEvent(this, "kup-box-didload", 6);
98
+ this.kupDidUnload = index.createEvent(this, "kup-box-didunload", 6);
99
+ this.kupBoxContextMenu = index.createEvent(this, "kup-box-contextmenu", 6);
100
+ _KupBox_instances.add(this);
101
+ this.state = new KupBoxState();
102
+ /*-------------------------------------------------*/
103
+ /* I n t e r n a l V a r i a b l e s */
104
+ /*-------------------------------------------------*/
105
+ /**
106
+ * Instance of the KupManager class.
107
+ */
108
+ this.kupManager = kupManager.kupManagerInstance();
109
+ this.visibleColumns = [];
110
+ this.rows = [];
111
+ this.filteredRows = [];
112
+ this.sectionRef = null;
113
+ this.rowsRefs = [];
114
+ this.hold = false;
115
+ this.interactableDrag = [];
116
+ this.interactableDrop = [];
117
+ this.interactableTouch = [];
118
+ _KupBox_intObserver.set(this, undefined);
119
+ _KupBox_rowsRefs.set(this, []);
120
+ _KupBox_navBarHeight.set(this, 0);
121
+ this.collapsedSection = {};
122
+ this.selectedRows = [];
123
+ this.rowActionMenuOpened = undefined;
124
+ this.currentPage = 1;
125
+ this.currentRowsPerPage = 10;
126
+ this.cardData = null;
127
+ this.columns = 1;
128
+ this.customStyle = '';
129
+ this.data = null;
130
+ this.dragEnabled = false;
131
+ this.dropEnabled = false;
132
+ this.dropOnSection = false;
133
+ this.editableData = false;
134
+ this.enableRowActions = false;
135
+ this.globalFilter = false;
136
+ this.globalFilterValue = '';
137
+ this.kanban = null;
138
+ this.layout = undefined;
139
+ this.lazyLoadRows = false;
140
+ this.multiSelection = false;
141
+ this.pageSelected = 1;
142
+ this.pagination = false;
143
+ this.rowsPerPage = undefined;
144
+ this.scrollOnHover = false;
145
+ this.selectBox = undefined;
146
+ this.selectedRowsState = undefined;
147
+ this.showSelection = true;
148
+ this.sortBy = undefined;
149
+ this.sortEnabled = false;
150
+ this.stateId = '';
151
+ this.store = undefined;
152
+ this.swipeDisabled = false;
153
+ }
154
+ initWithPersistedState() {
155
+ if (this.store && this.stateId) {
156
+ const state = this.store.getState(this.stateId);
157
+ if (state != null) {
158
+ this.kupManager.debug.logMessage(this, 'Initialize with state for stateId ' +
159
+ this.stateId +
160
+ ': ' +
161
+ state);
162
+ // *** PROPS ***
163
+ this.sortBy = this.state.sortBy;
164
+ this.globalFilterValue = this.state.globalFilterValue;
165
+ this.selectedRowsState = this.state.selectedRowsState;
166
+ this.pageSelected = this.state.pageSelected;
167
+ this.rowsPerPage = this.state.rowsPerPage;
168
+ }
169
+ }
320
170
  }
321
- }
322
- checkLayout() {
323
- // check if there is a layout.
324
- // if not, create a default layout
325
- if (this.layout) {
326
- this.boxLayout = this.layout;
327
- return;
171
+ persistState() {
172
+ if (this.store && this.stateId) {
173
+ let somethingChanged = false;
174
+ if (!this.kupManager.objects.deepEqual(this.state.sortBy, this.sortBy)) {
175
+ this.state.sortBy = this.sortBy;
176
+ somethingChanged = true;
177
+ }
178
+ if (!this.kupManager.objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
179
+ this.state.globalFilterValue = this.globalFilterValue;
180
+ somethingChanged = true;
181
+ }
182
+ if (!this.kupManager.objects.deepEqual(this.state.pageSelected, this.currentPage)) {
183
+ this.state.pageSelected = this.currentPage;
184
+ somethingChanged = true;
185
+ }
186
+ if (!this.kupManager.objects.deepEqual(this.state.rowsPerPage, this.currentRowsPerPage)) {
187
+ this.state.rowsPerPage = this.currentRowsPerPage;
188
+ somethingChanged = true;
189
+ }
190
+ const selectedRowsState = this.selectedRows.reduce((accumulator, row, currentIndex) => {
191
+ const prefix = currentIndex > 0 ? ';' : '';
192
+ return accumulator + prefix + row.id;
193
+ }, '');
194
+ if (!this.kupManager.objects.deepEqual(this.state.selectedRowsState, selectedRowsState)) {
195
+ this.state.selectedRowsState = selectedRowsState;
196
+ somethingChanged = true;
197
+ }
198
+ if (!this.state.load) {
199
+ this.state.load = true;
200
+ return;
201
+ }
202
+ if (somethingChanged) {
203
+ this.kupManager.debug.logMessage(this, 'Persisting state for stateId ' +
204
+ this.stateId +
205
+ ': ' +
206
+ this.state);
207
+ this.store.persistState(this.stateId, this.state);
208
+ }
209
+ }
328
210
  }
329
- // only one section, containing all visible fields
330
- const section = {
331
- horizontal: false,
332
- sections: [],
333
- };
334
- // adding box objects to section
335
- const visibleColumns = this.visibleColumns;
336
- let size = visibleColumns.length;
337
- let content = [];
338
- let cnt = 0;
339
- while (size-- > 0) {
340
- content.push({
341
- column: visibleColumns[cnt++].name,
342
- });
211
+ /*-------------------------------------------------*/
212
+ /* W a t c h e r s */
213
+ /*-------------------------------------------------*/
214
+ rowsPerPageHandler(newValue) {
215
+ this.currentRowsPerPage = newValue;
343
216
  }
344
- section.content = content;
345
- // creating a new layout
346
- this.boxLayout = {
347
- sections: [section],
348
- };
349
- }
350
- onSortChange(e) {
351
- let column = kupManager.getColumnByName(this.visibleColumns, e.detail.value);
352
- this.sortBy = column.name;
353
- }
354
- onGlobalFilterChange({ detail }) {
355
- let value = '';
356
- if (detail && detail.value) {
357
- value = detail.value;
217
+ recalculateRows() {
218
+ this.initRows();
358
219
  }
359
- this.globalFilterValue = value;
360
- }
361
- isSectionExpanded(row, section) {
362
- if (!row.id || !section.id) {
363
- return false;
220
+ onDataChanged() {
221
+ kupManager.identify(this.getRows());
222
+ this.initVisibleColumns();
223
+ this.initRows();
224
+ this.checkLayout();
364
225
  }
365
- return (this.collapsedSection[section.id] &&
366
- this.collapsedSection[section.id][row.id]);
367
- }
368
- handleAutomaticBoxSelection() {
369
- if (this.selectBox &&
370
- this.selectBox > 0 &&
371
- this.selectBox <= this.data.rows.length) {
372
- this.selectedRows = [];
373
- for (let boxRow of this.data.rows) {
374
- if (boxRow.id === (this.selectBox - 1).toString()) {
375
- this.selectedRows.push(boxRow);
376
- break;
377
- }
378
- }
379
- this.kupAutoBoxSelect.emit({
380
- comp: this,
381
- id: this.rootElement.id,
382
- row: this.selectedRows[0],
383
- });
226
+ onLayoutChanged() {
227
+ this.checkLayout();
384
228
  }
385
- }
386
- getEventDetails(el, e) {
387
- let boxObject = null;
388
- let cell = null;
389
- let row = null;
390
- let column = null;
391
- if (el) {
392
- boxObject =
393
- el.closest('.box-object') ||
394
- el.querySelector('.box-object') ||
395
- el.closest('.f-cell');
229
+ onSelectBoxChanged() {
230
+ this.handleAutomaticBoxSelection();
396
231
  }
397
- if (boxObject) {
398
- if (boxObject.classList.contains('f-cell')) {
399
- const props = boxObject['kup-get-cell-props']();
400
- cell = props.cell;
401
- column = props.column;
402
- row = props.row;
403
- }
404
- else {
405
- cell = boxObject['data-cell'];
406
- row = boxObject['data-row'];
407
- column = kupManager.getColumnByName(this.visibleColumns, boxObject.dataset.column);
408
- }
232
+ /*-------------------------------------------------*/
233
+ /* P u b l i c M e t h o d s */
234
+ /*-------------------------------------------------*/
235
+ /**
236
+ * Used to retrieve component's props values.
237
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
238
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
239
+ */
240
+ async getProps(descriptions) {
241
+ return kupManager.getProps(this, KupBoxProps, descriptions);
409
242
  }
410
- return {
411
- boxObject: boxObject ? boxObject : null,
412
- column: column ? column : null,
413
- cell: cell ? cell : null,
414
- originalEvent: e,
415
- row: row ? row : null,
416
- };
417
- }
418
- contextMenuHandler(e) {
419
- const details = this.getEventDetails(e.target, e);
420
- return details;
421
- }
422
- /**
423
- * Checks if the element is the svg that opens the "row actions menu"
424
- * @param element the element to check
425
- */
426
- checkIfElementIsActionMenuIcon(element) {
427
- if (element.tagName && element.parentElement) {
428
- return (element.tagName === 'svg' &&
429
- element.parentElement.classList.contains('row-actions-toggler'));
243
+ async loadRowActions(row, actions) {
244
+ row.actions = actions;
245
+ // show menu
246
+ this.rowActionMenuOpened = row;
430
247
  }
431
- return false;
432
- }
433
- // event listeners
434
- onBoxClick({ target }, row) {
435
- if (!(target instanceof HTMLElement)) {
436
- return;
248
+ /**
249
+ * This method is used to trigger a new render of the component.
250
+ */
251
+ async refresh() {
252
+ index.forceUpdate(this);
437
253
  }
438
- // searching parent
439
- let element = target;
440
- let classList = element.classList;
441
- while (!classList.contains('box-object') &&
442
- !classList.contains('box-section') &&
443
- !classList.contains('box')) {
444
- element = element.parentElement;
445
- if (element === null) {
446
- break;
447
- }
448
- classList = element.classList;
254
+ /**
255
+ * Sets the props to the component.
256
+ * @param {GenericObject} props - Object containing props that will be set to the component.
257
+ */
258
+ async setProps(props) {
259
+ kupManager.setProps(this, KupBoxProps, props);
449
260
  }
450
- // evaluating column
451
- let column = null;
452
- if (classList.contains('box-object')) {
453
- column = element.dataset.column;
261
+ /*-------------------------------------------------*/
262
+ /* P r i v a t e M e t h o d s */
263
+ /*-------------------------------------------------*/
264
+ getColumns() {
265
+ return this.data && this.data.columns
266
+ ? this.data.columns
267
+ : [{ title: '', name: '', size: undefined }];
268
+ }
269
+ initVisibleColumns() {
270
+ this.visibleColumns = this.getColumns().filter((column) => {
271
+ if (column.hasOwnProperty('visible')) {
272
+ return column.visible;
273
+ }
274
+ return true;
275
+ });
454
276
  }
455
- this.kupBoxClick.emit({
456
- comp: this,
457
- id: this.rootElement.id,
458
- row,
459
- column,
460
- });
461
- // selecting box
462
- if (this.multiSelection) {
463
- // triggering multi selection
464
- this.onSelectionCheckChange(row);
277
+ getRows() {
278
+ return this.data && this.data.rows ? this.data.rows : [];
465
279
  }
466
- else {
467
- this.selectedRows = [row];
280
+ initRows() {
281
+ this.filteredRows = this.getRows();
282
+ if (this.globalFilter && this.globalFilterValue) {
283
+ // filtering rows
284
+ this.filteredRows = fPaginatorUtils.filterRows(this.filteredRows, null, this.globalFilterValue, this.visibleColumns);
285
+ }
286
+ this.rows = this.sortRows(this.filteredRows);
287
+ if (this.pagination) {
288
+ this.rows = fPaginatorUtils.paginateRows(this.rows, this.currentPage, this.currentRowsPerPage, false);
289
+ }
468
290
  }
469
- }
470
- onSelectionCheckChange(row) {
471
- var index = -1;
472
- for (let i = 0; i < this.selectedRows.length; i++) {
473
- const select = this.selectedRows[i];
474
- if (select.id === row.id) {
475
- index = i;
476
- break;
477
- }
291
+ sortRows(rows) {
292
+ let sortedRows = rows;
293
+ if (this.sortBy) {
294
+ sortedRows = fPaginatorUtils.sortRows(sortedRows, this.toSortObjectList());
295
+ }
296
+ return sortedRows;
297
+ }
298
+ toSortObjectList() {
299
+ const sortByArray = this.sortBy.split('|').map((col) => {
300
+ const colNameAndSortMode = col.split(',');
301
+ const sortObject = {
302
+ column: colNameAndSortMode[0],
303
+ sortMode: colNameAndSortMode.length > 1
304
+ ? kupManager.SortMode[colNameAndSortMode[1]]
305
+ : kupManager.SortMode.A,
306
+ };
307
+ return sortObject;
308
+ });
309
+ return sortByArray;
478
310
  }
479
- if (index >= 0) {
480
- // remove row
481
- this.selectedRows.splice(index, 1);
482
- this.selectedRows = [...this.selectedRows];
311
+ checkScrollOnHover() {
312
+ if (!this.kupManager.scrollOnHover.isRegistered(this.boxContainer)) {
313
+ if (this.scrollOnHover) {
314
+ this.kupManager.scrollOnHover.register(this.boxContainer);
315
+ }
316
+ }
317
+ else {
318
+ if (!this.scrollOnHover) {
319
+ this.kupManager.scrollOnHover.unregister(this.boxContainer);
320
+ }
321
+ }
483
322
  }
484
- else {
485
- // add row
486
- this.selectedRows = [...this.selectedRows, row];
323
+ checkLayout() {
324
+ // check if there is a layout.
325
+ // if not, create a default layout
326
+ if (this.layout) {
327
+ this.boxLayout = this.layout;
328
+ return;
329
+ }
330
+ // only one section, containing all visible fields
331
+ const section = {
332
+ horizontal: false,
333
+ sections: [],
334
+ };
335
+ // adding box objects to section
336
+ const visibleColumns = this.visibleColumns;
337
+ let size = visibleColumns.length;
338
+ let content = [];
339
+ let cnt = 0;
340
+ while (size-- > 0) {
341
+ content.push({
342
+ column: visibleColumns[cnt++].name,
343
+ });
344
+ }
345
+ section.content = content;
346
+ // creating a new layout
347
+ this.boxLayout = {
348
+ sections: [section],
349
+ };
487
350
  }
488
- this.kupBoxSelected.emit({
489
- comp: this,
490
- id: this.rootElement.id,
491
- rows: this.selectedRows,
492
- });
493
- }
494
- toggleSectionExpand(row, section) {
495
- // check if section / row has id
496
- if (!section.id) {
497
- // error
498
- console.error('cannot expand / collapse a section withoun an ID');
499
- return;
351
+ onSortChange(e) {
352
+ let column = kupManager.getColumnByName(this.visibleColumns, e.detail.value);
353
+ this.sortBy = column.name;
500
354
  }
501
- if (!row.id) {
502
- // error
503
- console.error('cannot expand / collapse a section of a row without ad id');
504
- return;
355
+ onGlobalFilterChange({ detail }) {
356
+ let value = '';
357
+ if (detail && detail.value) {
358
+ value = detail.value;
359
+ }
360
+ this.globalFilterValue = value;
505
361
  }
506
- // check if section already in collapsedSection
507
- if (!this.collapsedSection[section.id]) {
508
- // adding element and row, setting it to expanded
509
- this.collapsedSection[section.id] = {};
510
- this.collapsedSection[section.id][row.id] = true;
362
+ isSectionExpanded(row, section) {
363
+ if (!row.id || !section.id) {
364
+ return false;
365
+ }
366
+ return (this.collapsedSection[section.id] &&
367
+ this.collapsedSection[section.id][row.id]);
368
+ }
369
+ handleAutomaticBoxSelection() {
370
+ if (this.selectBox &&
371
+ this.selectBox > 0 &&
372
+ this.selectBox <= this.data.rows.length) {
373
+ this.selectedRows = [];
374
+ for (let boxRow of this.data.rows) {
375
+ if (boxRow.id === (this.selectBox - 1).toString()) {
376
+ this.selectedRows.push(boxRow);
377
+ break;
378
+ }
379
+ }
380
+ this.kupAutoBoxSelect.emit({
381
+ comp: this,
382
+ id: this.rootElement.id,
383
+ row: this.selectedRows[0],
384
+ });
385
+ }
511
386
  }
512
- else {
513
- const s = this.collapsedSection[section.id];
514
- if (!s[row.id]) {
515
- s[row.id] = true;
516
- }
517
- else {
518
- s[row.id] = !s[row.id];
519
- }
387
+ getEventDetails(el, e) {
388
+ let boxObject = null;
389
+ let cell = null;
390
+ let row = null;
391
+ let column = null;
392
+ if (el) {
393
+ boxObject =
394
+ el.closest('.box-object') ||
395
+ el.querySelector('.box-object') ||
396
+ el.closest('.f-cell');
397
+ }
398
+ if (boxObject) {
399
+ if (boxObject.classList.contains('f-cell')) {
400
+ const props = boxObject['kup-get-cell-props']();
401
+ cell = props.cell;
402
+ column = props.column;
403
+ row = props.row;
404
+ }
405
+ else {
406
+ cell = boxObject['data-cell'];
407
+ row = boxObject['data-row'];
408
+ column = kupManager.getColumnByName(this.visibleColumns, boxObject.dataset.column);
409
+ }
410
+ }
411
+ return {
412
+ boxObject: boxObject ? boxObject : null,
413
+ column: column ? column : null,
414
+ cell: cell ? cell : null,
415
+ originalEvent: e,
416
+ row: row ? row : null,
417
+ };
520
418
  }
521
- // triggering rendering
522
- this.collapsedSection = Object.assign({}, this.collapsedSection);
523
- }
524
- onRowAction(row) {
525
- if (!row) {
526
- return;
419
+ contextMenuHandler(e) {
420
+ const details = this.getEventDetails(e.target, e);
421
+ return details;
527
422
  }
528
- if (row === this.rowActionMenuOpened) {
529
- // closing menu
530
- this.rowActionMenuOpened = null;
531
- return;
423
+ /**
424
+ * Checks if the element is the svg that opens the "row actions menu"
425
+ * @param element the element to check
426
+ */
427
+ checkIfElementIsActionMenuIcon(element) {
428
+ if (element.tagName && element.parentElement) {
429
+ return (element.tagName === 'svg' &&
430
+ element.parentElement.classList.contains('row-actions-toggler'));
431
+ }
432
+ return false;
532
433
  }
533
- if (row.actions) {
534
- // actions already loaded -> show menu
535
- this.rowActionMenuOpened = row;
434
+ // event listeners
435
+ onBoxClick({ target }, row) {
436
+ if (!(target instanceof HTMLElement)) {
437
+ return;
438
+ }
439
+ // searching parent
440
+ let element = target;
441
+ let classList = element.classList;
442
+ while (!classList.contains('box-object') &&
443
+ !classList.contains('box-section') &&
444
+ !classList.contains('box')) {
445
+ element = element.parentElement;
446
+ if (element === null) {
447
+ break;
448
+ }
449
+ classList = element.classList;
450
+ }
451
+ // evaluating column
452
+ let column = null;
453
+ if (classList.contains('box-object')) {
454
+ column = element.dataset.column;
455
+ }
456
+ this.kupBoxClick.emit({
457
+ comp: this,
458
+ id: this.rootElement.id,
459
+ row,
460
+ column,
461
+ });
462
+ // selecting box
463
+ if (this.multiSelection) {
464
+ // triggering multi selection
465
+ this.onSelectionCheckChange(row);
466
+ }
467
+ else {
468
+ this.selectedRows = [row];
469
+ }
536
470
  }
537
- else {
538
- // no actions -> triggering event
539
- this.kupRowActionMenuClick.emit({
540
- comp: this,
541
- id: this.rootElement.id,
542
- row,
543
- });
471
+ onSelectionCheckChange(row) {
472
+ var index = -1;
473
+ for (let i = 0; i < this.selectedRows.length; i++) {
474
+ const select = this.selectedRows[i];
475
+ if (select.id === row.id) {
476
+ index = i;
477
+ break;
478
+ }
479
+ }
480
+ if (index >= 0) {
481
+ // remove row
482
+ this.selectedRows.splice(index, 1);
483
+ this.selectedRows = [...this.selectedRows];
484
+ }
485
+ else {
486
+ // add row
487
+ this.selectedRows = [...this.selectedRows, row];
488
+ }
489
+ this.kupBoxSelected.emit({
490
+ comp: this,
491
+ id: this.rootElement.id,
492
+ rows: this.selectedRows,
493
+ });
544
494
  }
545
- }
546
- onRowActionClick(row, action, index) {
547
- this.kupRowActionClick.emit({
548
- comp: this,
549
- id: this.rootElement.id,
550
- row,
551
- action,
552
- index,
553
- });
554
- }
555
- /**
556
- * see onDocumentClick in kup-combo
557
- */
558
- clickFunction(event) {
559
- try {
560
- const targets = event.composedPath();
561
- for (let target of targets) {
562
- if (this.checkIfElementIsActionMenuIcon(target)) {
563
- return;
564
- }
565
- }
495
+ toggleSectionExpand(row, section) {
496
+ // check if section / row has id
497
+ if (!section.id) {
498
+ // error
499
+ console.error('cannot expand / collapse a section withoun an ID');
500
+ return;
501
+ }
502
+ if (!row.id) {
503
+ // error
504
+ console.error('cannot expand / collapse a section of a row without ad id');
505
+ return;
506
+ }
507
+ // check if section already in collapsedSection
508
+ if (!this.collapsedSection[section.id]) {
509
+ // adding element and row, setting it to expanded
510
+ this.collapsedSection[section.id] = {};
511
+ this.collapsedSection[section.id][row.id] = true;
512
+ }
513
+ else {
514
+ const s = this.collapsedSection[section.id];
515
+ if (!s[row.id]) {
516
+ s[row.id] = true;
517
+ }
518
+ else {
519
+ s[row.id] = !s[row.id];
520
+ }
521
+ }
522
+ // triggering rendering
523
+ this.collapsedSection = Object.assign({}, this.collapsedSection);
566
524
  }
567
- catch (err) {
568
- if (this.checkIfElementIsActionMenuIcon(event.target)) {
569
- return;
570
- }
525
+ onRowAction(row) {
526
+ if (!row) {
527
+ return;
528
+ }
529
+ if (row === this.rowActionMenuOpened) {
530
+ // closing menu
531
+ this.rowActionMenuOpened = null;
532
+ return;
533
+ }
534
+ if (row.actions) {
535
+ // actions already loaded -> show menu
536
+ this.rowActionMenuOpened = row;
537
+ }
538
+ else {
539
+ // no actions -> triggering event
540
+ this.kupRowActionMenuClick.emit({
541
+ comp: this,
542
+ id: this.rootElement.id,
543
+ row,
544
+ });
545
+ }
571
546
  }
572
- this.rowActionMenuOpened = null;
573
- }
574
- handlePageChange(pageNumber) {
575
- const newPage = fPaginatorUtils.pageChange(pageNumber, this.filteredRows.length, this.currentRowsPerPage);
576
- if (newPage) {
577
- this.currentPage = newPage;
547
+ onRowActionClick(row, action, index) {
548
+ this.kupRowActionClick.emit({
549
+ comp: this,
550
+ id: this.rootElement.id,
551
+ row,
552
+ action,
553
+ index,
554
+ });
578
555
  }
579
- }
580
- handleRowsPerPageChange(rowsNumber) {
581
- const newRows = fPaginatorUtils.rowsPerPageChange(rowsNumber, this.filteredRows.length);
582
- if (newRows) {
583
- this.currentRowsPerPage = newRows;
584
- this.adjustPaginator();
556
+ /**
557
+ * see onDocumentClick in kup-combo
558
+ */
559
+ clickFunction(event) {
560
+ try {
561
+ const targets = event.composedPath();
562
+ for (let target of targets) {
563
+ if (this.checkIfElementIsActionMenuIcon(target)) {
564
+ return;
565
+ }
566
+ }
567
+ }
568
+ catch (err) {
569
+ if (this.checkIfElementIsActionMenuIcon(event.target)) {
570
+ return;
571
+ }
572
+ }
573
+ this.rowActionMenuOpened = null;
585
574
  }
586
- }
587
- adjustPaginator() {
588
- const numberOfRows = this.rows.length;
589
- // check if current page is valid
590
- const numberOfPages = Math.ceil(numberOfRows / this.currentRowsPerPage);
591
- if (this.currentPage > numberOfPages) {
592
- // reset page
593
- this.currentPage = 1;
575
+ handlePageChange(pageNumber) {
576
+ const newPage = fPaginatorUtils.pageChange(pageNumber, this.filteredRows.length, this.currentRowsPerPage);
577
+ if (newPage) {
578
+ this.currentPage = newPage;
579
+ }
594
580
  }
595
- }
596
- // render methods
597
- renderSectionAsCard(row) {
598
- let skipPush = false;
599
- const cardData = {
600
- button: [],
601
- cell: [],
602
- columns: [],
603
- image: [],
604
- progressbar: [],
605
- text: [],
606
- };
607
- for (let index = 0; index < this.data.columns.length; index++) {
608
- const column = this.data.columns[index];
609
- if (column.visible !== false) {
610
- cardData.cell.push(row.cells[column.name]);
611
- cardData.columns.push(column);
612
- }
581
+ handleRowsPerPageChange(rowsNumber) {
582
+ const newRows = fPaginatorUtils.rowsPerPageChange(rowsNumber, this.filteredRows.length);
583
+ if (newRows) {
584
+ this.currentRowsPerPage = newRows;
585
+ this.adjustPaginator();
586
+ }
613
587
  }
614
- //First cycle sets specific binds between cardIDs and cells
615
- for (const key in row.cells) {
616
- if (row.cells.hasOwnProperty(key)) {
617
- const cell = row.cells[key];
618
- if (cell.cardID !== undefined && cell.obj) {
619
- switch (cell.obj.p) {
620
- case 'BTN':
621
- do {
622
- cardData.button.push({});
623
- } while (cardData.button.length < cell.cardID);
624
- cardData.button[cell.cardID] = {
625
- label: cell.value,
626
- };
627
- break;
628
- case 'IMG':
629
- do {
630
- cardData.image.push({});
631
- } while (cardData.image.length < cell.cardID);
632
- cardData.image[cell.cardID] = {
633
- resource: cell.value,
634
- };
635
- break;
636
- case 'PGB':
637
- do {
638
- cardData.progressbar.push({});
639
- } while (cardData.progressbar.length < cell.cardID);
640
- cardData.progressbar[cell.cardID] = {
641
- value: cell.value,
642
- };
643
- break;
644
- default:
645
- do {
646
- cardData.text.push('');
647
- } while (cardData.text.length < cell.cardID);
648
- cardData.text[cell.cardID] = cell.value;
649
- break;
650
- }
651
- }
652
- }
588
+ adjustPaginator() {
589
+ const numberOfRows = this.rows.length;
590
+ // check if current page is valid
591
+ const numberOfPages = Math.ceil(numberOfRows / this.currentRowsPerPage);
592
+ if (this.currentPage > numberOfPages) {
593
+ // reset page
594
+ this.currentPage = 1;
595
+ }
653
596
  }
654
- //Second cycle sets leftover binds automatically
655
- for (const key in row.cells) {
656
- if (row.cells.hasOwnProperty(key)) {
657
- const cell = row.cells[key];
658
- if (cell.cardID === undefined && cell.obj) {
659
- skipPush = false;
660
- switch (cell.obj.p) {
661
- case 'BTN':
662
- for (let index = 0; index < cardData.button.length; index++) {
663
- //If there are empty elements, the first one will be used
664
- if (!Object.keys(cardData.button[index]).length) {
665
- cardData.button[index] = {
666
- label: cell.value,
667
- };
668
- skipPush = true;
669
- break;
597
+ // render methods
598
+ renderSectionAsCard(row) {
599
+ let skipPush = false;
600
+ const cardData = {
601
+ button: [],
602
+ cell: [],
603
+ columns: [],
604
+ image: [],
605
+ progressbar: [],
606
+ text: [],
607
+ };
608
+ for (let index = 0; index < this.data.columns.length; index++) {
609
+ const column = this.data.columns[index];
610
+ if (column.visible !== false) {
611
+ cardData.cell.push(row.cells[column.name]);
612
+ cardData.columns.push(column);
613
+ }
614
+ }
615
+ //First cycle sets specific binds between cardIDs and cells
616
+ for (const key in row.cells) {
617
+ if (row.cells.hasOwnProperty(key)) {
618
+ const cell = row.cells[key];
619
+ if (cell.cardID !== undefined && cell.obj) {
620
+ switch (cell.obj.p) {
621
+ case 'BTN':
622
+ do {
623
+ cardData.button.push({});
624
+ } while (cardData.button.length < cell.cardID);
625
+ cardData.button[cell.cardID] = {
626
+ label: cell.value,
627
+ };
628
+ break;
629
+ case 'IMG':
630
+ do {
631
+ cardData.image.push({});
632
+ } while (cardData.image.length < cell.cardID);
633
+ cardData.image[cell.cardID] = {
634
+ resource: cell.value,
635
+ };
636
+ break;
637
+ case 'PGB':
638
+ do {
639
+ cardData.progressbar.push({});
640
+ } while (cardData.progressbar.length < cell.cardID);
641
+ cardData.progressbar[cell.cardID] = {
642
+ value: cell.value,
643
+ };
644
+ break;
645
+ default:
646
+ do {
647
+ cardData.text.push('');
648
+ } while (cardData.text.length < cell.cardID);
649
+ cardData.text[cell.cardID] = cell.value;
650
+ break;
651
+ }
670
652
  }
671
- }
672
- //Otherwise a new element will be pushed
673
- if (!skipPush) {
674
- cardData.button.push({
675
- label: cell.value,
676
- });
677
- }
678
- break;
679
- case 'IMG':
680
- for (let index = 0; index < cardData.image.length; index++) {
681
- //If there are empty elements, the first one will be used
682
- if (!Object.keys(cardData.image[index]).length) {
683
- cardData.image[index] = {
684
- resource: cell.value,
685
- };
686
- skipPush = true;
687
- break;
653
+ }
654
+ }
655
+ //Second cycle sets leftover binds automatically
656
+ for (const key in row.cells) {
657
+ if (row.cells.hasOwnProperty(key)) {
658
+ const cell = row.cells[key];
659
+ if (cell.cardID === undefined && cell.obj) {
660
+ skipPush = false;
661
+ switch (cell.obj.p) {
662
+ case 'BTN':
663
+ for (let index = 0; index < cardData.button.length; index++) {
664
+ //If there are empty elements, the first one will be used
665
+ if (!Object.keys(cardData.button[index]).length) {
666
+ cardData.button[index] = {
667
+ label: cell.value,
668
+ };
669
+ skipPush = true;
670
+ break;
671
+ }
672
+ }
673
+ //Otherwise a new element will be pushed
674
+ if (!skipPush) {
675
+ cardData.button.push({
676
+ label: cell.value,
677
+ });
678
+ }
679
+ break;
680
+ case 'IMG':
681
+ for (let index = 0; index < cardData.image.length; index++) {
682
+ //If there are empty elements, the first one will be used
683
+ if (!Object.keys(cardData.image[index]).length) {
684
+ cardData.image[index] = {
685
+ resource: cell.value,
686
+ };
687
+ skipPush = true;
688
+ break;
689
+ }
690
+ }
691
+ //Otherwise a new element will be pushed
692
+ if (!skipPush) {
693
+ cardData.image.push({
694
+ resource: cell.value,
695
+ });
696
+ }
697
+ break;
698
+ case 'PGB':
699
+ for (let index = 0; index < cardData.progressbar.length; index++) {
700
+ //If there are empty elements, the first one will be used
701
+ if (!Object.keys(cardData.progressbar[index])
702
+ .length) {
703
+ cardData.progressbar[index] = {
704
+ value: cell.value,
705
+ };
706
+ skipPush = true;
707
+ break;
708
+ }
709
+ }
710
+ //Otherwise a new element will be pushed
711
+ if (!skipPush) {
712
+ cardData.progressbar.push({
713
+ value: cell.value,
714
+ });
715
+ }
716
+ break;
717
+ default:
718
+ for (let index = 0; index < cardData.text.length; index++) {
719
+ //If there are empty elements, the first one will be used
720
+ if (cardData.text[index] === '') {
721
+ cardData.text[index] = cell.value;
722
+ skipPush = true;
723
+ break;
724
+ }
725
+ }
726
+ //Otherwise a new element will be pushed
727
+ if (!skipPush) {
728
+ cardData.text.push(cell.value);
729
+ }
730
+ break;
731
+ }
688
732
  }
689
- }
690
- //Otherwise a new element will be pushed
691
- if (!skipPush) {
692
- cardData.image.push({
693
- resource: cell.value,
694
- });
695
- }
696
- break;
697
- case 'PGB':
698
- for (let index = 0; index < cardData.progressbar.length; index++) {
699
- //If there are empty elements, the first one will be used
700
- if (!Object.keys(cardData.progressbar[index])
701
- .length) {
702
- cardData.progressbar[index] = {
703
- value: cell.value,
704
- };
705
- skipPush = true;
706
- break;
733
+ }
734
+ }
735
+ return index.h("kup-card", Object.assign({ data: cardData }, this.cardData));
736
+ }
737
+ renderRow(row) {
738
+ const visibleColumns = [...this.visibleColumns];
739
+ let boxContent = null;
740
+ // if layout in row, use that one
741
+ let rowLayout = row.layout;
742
+ if (!rowLayout) {
743
+ // otherwise, use 'default' layout
744
+ rowLayout = this.boxLayout;
745
+ }
746
+ let horizontal = false;
747
+ if (rowLayout) {
748
+ if (rowLayout.horizontal) {
749
+ horizontal = true;
750
+ }
751
+ const sections = rowLayout.sections;
752
+ let size = sections.length;
753
+ let cnt = 0;
754
+ if (size > 0) {
755
+ boxContent = [];
756
+ }
757
+ // create fake parent section
758
+ const parent = {
759
+ horizontal: horizontal,
760
+ };
761
+ while (size-- > 0) {
762
+ if (this.cardData !== null &&
763
+ this.cardData !== undefined &&
764
+ typeof this.cardData === 'object') {
765
+ boxContent.push(this.renderSectionAsCard(row));
707
766
  }
708
- }
709
- //Otherwise a new element will be pushed
710
- if (!skipPush) {
711
- cardData.progressbar.push({
712
- value: cell.value,
713
- });
714
- }
715
- break;
716
- default:
717
- for (let index = 0; index < cardData.text.length; index++) {
718
- //If there are empty elements, the first one will be used
719
- if (cardData.text[index] === '') {
720
- cardData.text[index] = cell.value;
721
- skipPush = true;
722
- break;
767
+ else {
768
+ boxContent.push(this.renderSection(sections[cnt++], parent, row, visibleColumns));
723
769
  }
724
- }
725
- //Otherwise a new element will be pushed
726
- if (!skipPush) {
727
- cardData.text.push(cell.value);
728
- }
729
- break;
730
- }
731
- }
732
- }
733
- }
734
- return index.h("kup-card", Object.assign({ data: cardData }, this.cardData));
735
- }
736
- renderRow(row) {
737
- const visibleColumns = [...this.visibleColumns];
738
- let boxContent = null;
739
- // if layout in row, use that one
740
- let rowLayout = row.layout;
741
- if (!rowLayout) {
742
- // otherwise, use 'default' layout
743
- rowLayout = this.boxLayout;
744
- }
745
- let horizontal = false;
746
- if (rowLayout) {
747
- if (rowLayout.horizontal) {
748
- horizontal = true;
749
- }
750
- const sections = rowLayout.sections;
751
- let size = sections.length;
752
- let cnt = 0;
753
- if (size > 0) {
754
- boxContent = [];
755
- }
756
- // create fake parent section
757
- const parent = {
758
- horizontal: horizontal,
759
- };
760
- while (size-- > 0) {
761
- if (this.cardData !== null &&
762
- this.cardData !== undefined &&
763
- typeof this.cardData === 'object') {
764
- boxContent.push(this.renderSectionAsCard(row));
770
+ }
771
+ }
772
+ var isSelected = false;
773
+ for (let select of this.selectedRows) {
774
+ if (select.id === row.id) {
775
+ isSelected = true;
776
+ }
777
+ }
778
+ let multiSel = null;
779
+ if (this.multiSelection) {
780
+ multiSel = (index.h("div", { class: "box-selection" }, index.h("kup-checkbox", { checked: isSelected })));
781
+ }
782
+ let rowObject = null;
783
+ if (this.enableRowActions && !this.swipeDisabled) {
784
+ const menuClass = {
785
+ 'row-action-menu': true,
786
+ open: row === this.rowActionMenuOpened,
787
+ };
788
+ let rowActionMenuContent = null;
789
+ if (row.actions) {
790
+ const actionItems = row.actions.map((item, index$1) => {
791
+ const iconClass = `icon ${item.icon}`;
792
+ return (index.h("li", { tabindex: "0", onClick: () => this.onRowActionClick(row, item, index$1) }, index.h("div", { class: iconClass }), index.h("div", { class: "text" }, item.text)));
793
+ });
794
+ rowActionMenuContent = index.h("ul", null, actionItems);
795
+ }
796
+ rowObject = (index.h("div", { class: "row-actions-wrapper" }, index.h("div", { class: "row-actions-toggler" }, index.h("svg", { version: "1.1", width: "24", height: "24", viewBox: "0 0 24 24", onClick: () => this.onRowAction(row) }, index.h("path", { d: "M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z" })), index.h("div", { class: menuClass }, rowActionMenuContent))));
797
+ }
798
+ let badges = null;
799
+ if (row.badgeData && row.badgeData.length > 0) {
800
+ badges = row.badgeData.map((badge) => (index.h("kup-badge", { text: badge.text, class: badge['className']
801
+ ? `centered ${badge['className']}`
802
+ : 'centered', imageData: badge.imageData })));
803
+ }
804
+ const boxClass = {
805
+ box: true,
806
+ draggable: this.dragEnabled,
807
+ selected: this.showSelection && isSelected,
808
+ column: !horizontal,
809
+ };
810
+ const rowStyle = row.style || {};
811
+ return (index.h("div", { class: "box-wrapper", style: rowStyle, ref: (el) => __classPrivateFieldGet(this, _KupBox_rowsRefs, "f").push(el) }, index.h("div", { class: boxClass, onClick: (e) => this.onBoxClick(e, row), ref: (el) => this.rowsRefs.push(el) }, multiSel, boxContent, badges), rowObject));
812
+ }
813
+ renderSection(section, parent, row, visibleColumns) {
814
+ let sectionContent = null;
815
+ if (section.sections && section.sections.length > 0) {
816
+ // rendering child
817
+ const sections = section.sections;
818
+ let size = sections.length;
819
+ let cnt = 0;
820
+ if (size > 0) {
821
+ sectionContent = [];
822
+ }
823
+ while (size-- > 0) {
824
+ sectionContent.push(this.renderSection(sections[cnt++], section, row, visibleColumns));
825
+ }
826
+ }
827
+ else if (section.content) {
828
+ // rendering box objects
829
+ const content = section.content;
830
+ let size = content.length;
831
+ let cnt = 0;
832
+ if (size > 0) {
833
+ sectionContent = [];
834
+ }
835
+ while (size-- > 0) {
836
+ sectionContent.push(this.renderBoxObject({
837
+ boxObject: content[cnt++],
838
+ row,
839
+ visibleColumns,
840
+ }, true));
841
+ }
842
+ }
843
+ else if (visibleColumns.length > 0) {
844
+ const column = visibleColumns[0];
845
+ sectionContent = this.renderBoxObject({
846
+ boxObject: { column: column.name },
847
+ row,
848
+ visibleColumns,
849
+ });
850
+ }
851
+ const sectionExpanded = this.isSectionExpanded(row, section);
852
+ const isGrid = !!section.columns;
853
+ const sectionClass = {
854
+ 'box-section': true,
855
+ open: sectionExpanded,
856
+ column: !isGrid && !section.horizontal,
857
+ grid: isGrid,
858
+ titled: !!section.title,
859
+ 'last-child': !section.sections || section.sections.length === 0,
860
+ };
861
+ const sectionStyle = section.style || {};
862
+ if (section.dim && parent) {
863
+ sectionStyle.flex = `0 0 ${section.dim}`;
864
+ sectionStyle.overflow = 'hidden';
865
+ if (parent.horizontal) {
866
+ sectionStyle.maxWidth = section.dim;
867
+ }
868
+ else {
869
+ sectionStyle.maxHeight = section.dim;
870
+ }
871
+ }
872
+ if (isGrid) {
873
+ sectionStyle['grid-template-columns'] = `repeat(${section.columns}, 1fr)`;
874
+ }
875
+ let sectionContainer = null;
876
+ if (section.collapsible) {
877
+ sectionClass['collapse-section'] = true;
878
+ const contentClass = {
879
+ content: true,
880
+ };
881
+ // TODO I18N
882
+ let headerTitle = '';
883
+ if (section.title) {
884
+ headerTitle = section.title;
885
+ }
886
+ else if (sectionExpanded) {
887
+ headerTitle = this.kupManager.language.translate(kupManager.KupLanguageGeneric.COLLAPSE);
888
+ }
889
+ else {
890
+ headerTitle = this.kupManager.language.translate(kupManager.KupLanguageGeneric.EXPAND);
891
+ }
892
+ sectionContainer = (index.h("div", { class: sectionClass, style: sectionStyle }, index.h("div", { class: contentClass }, sectionContent), index.h("div", { class: "header", role: "button", onClick: (e) => {
893
+ e.stopPropagation();
894
+ this.toggleSectionExpand(row, section);
895
+ } }, index.h("div", { class: "header-content" }, index.h("span", null, headerTitle), index.h(fImage.FImage, { resource: `${kupManager.KupThemeIconValues.DROPDOWN}`, sizeX: "1.25em", sizeY: "1.25em", wrapperClass: sectionExpanded ? 'toggled' : '' })))));
765
896
  }
766
897
  else {
767
- boxContent.push(this.renderSection(sections[cnt++], parent, row, visibleColumns));
898
+ const title = section.title ? index.h("h3", null, section.title) : null;
899
+ sectionContainer = (index.h("div", { class: sectionClass, style: sectionStyle }, title, sectionContent));
768
900
  }
769
- }
770
- }
771
- var isSelected = false;
772
- for (let select of this.selectedRows) {
773
- if (select.id === row.id) {
774
- isSelected = true;
775
- }
776
- }
777
- let multiSel = null;
778
- if (this.multiSelection) {
779
- multiSel = (index.h("div", { class: "box-selection" }, index.h("kup-checkbox", { checked: isSelected })));
780
- }
781
- let rowObject = null;
782
- if (this.enableRowActions && !this.swipeDisabled) {
783
- const menuClass = {
784
- 'row-action-menu': true,
785
- open: row === this.rowActionMenuOpened,
786
- };
787
- let rowActionMenuContent = null;
788
- if (row.actions) {
789
- const actionItems = row.actions.map((item, index$1) => {
790
- const iconClass = `icon ${item.icon}`;
791
- return (index.h("li", { tabindex: "0", onClick: () => this.onRowActionClick(row, item, index$1) }, index.h("div", { class: iconClass }), index.h("div", { class: "text" }, item.text)));
792
- });
793
- rowActionMenuContent = index.h("ul", null, actionItems);
794
- }
795
- rowObject = (index.h("div", { class: "row-actions-wrapper" }, index.h("div", { class: "row-actions-toggler" }, index.h("svg", { version: "1.1", width: "24", height: "24", viewBox: "0 0 24 24", onClick: () => this.onRowAction(row) }, index.h("path", { d: "M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z" })), index.h("div", { class: menuClass }, rowActionMenuContent))));
796
- }
797
- let badges = null;
798
- if (row.badgeData && row.badgeData.length > 0) {
799
- badges = row.badgeData.map((badge) => (index.h("kup-badge", { text: badge.text, class: badge['className']
800
- ? `centered ${badge['className']}`
801
- : 'centered', imageData: badge.imageData })));
802
- }
803
- const boxClass = {
804
- box: true,
805
- draggable: this.dragEnabled,
806
- selected: this.showSelection && isSelected,
807
- column: !horizontal,
808
- };
809
- const rowStyle = row.style || {};
810
- return (index.h("div", { class: "box-wrapper", style: rowStyle, ref: (el) => __classPrivateFieldGet(this, _KupBox_rowsRefs, "f").push(el) }, index.h("div", { class: boxClass, onClick: (e) => this.onBoxClick(e, row), ref: (el) => this.rowsRefs.push(el) }, multiSel, boxContent, badges), rowObject));
811
- }
812
- renderSection(section, parent, row, visibleColumns) {
813
- let sectionContent = null;
814
- if (section.sections && section.sections.length > 0) {
815
- // rendering child
816
- const sections = section.sections;
817
- let size = sections.length;
818
- let cnt = 0;
819
- if (size > 0) {
820
- sectionContent = [];
821
- }
822
- while (size-- > 0) {
823
- sectionContent.push(this.renderSection(sections[cnt++], section, row, visibleColumns));
824
- }
825
- }
826
- else if (section.content) {
827
- // rendering box objects
828
- const content = section.content;
829
- let size = content.length;
830
- let cnt = 0;
831
- if (size > 0) {
832
- sectionContent = [];
833
- }
834
- while (size-- > 0) {
835
- sectionContent.push(this.renderBoxObject({
836
- boxObject: content[cnt++],
837
- row,
838
- visibleColumns,
839
- }, true));
840
- }
841
- }
842
- else if (visibleColumns.length > 0) {
843
- const column = visibleColumns[0];
844
- sectionContent = this.renderBoxObject({
845
- boxObject: { column: column.name },
846
- row,
847
- visibleColumns,
848
- });
849
- }
850
- const sectionExpanded = this.isSectionExpanded(row, section);
851
- const isGrid = !!section.columns;
852
- const sectionClass = {
853
- 'box-section': true,
854
- open: sectionExpanded,
855
- column: !isGrid && !section.horizontal,
856
- grid: isGrid,
857
- titled: !!section.title,
858
- 'last-child': !section.sections || section.sections.length === 0,
859
- };
860
- const sectionStyle = section.style || {};
861
- if (section.dim && parent) {
862
- sectionStyle.flex = `0 0 ${section.dim}`;
863
- sectionStyle.overflow = 'hidden';
864
- if (parent.horizontal) {
865
- sectionStyle.maxWidth = section.dim;
866
- }
867
- else {
868
- sectionStyle.maxHeight = section.dim;
869
- }
870
- }
871
- if (isGrid) {
872
- sectionStyle['grid-template-columns'] = `repeat(${section.columns}, 1fr)`;
873
- }
874
- let sectionContainer = null;
875
- if (section.collapsible) {
876
- sectionClass['collapse-section'] = true;
877
- const contentClass = {
878
- content: true,
879
- };
880
- // TODO I18N
881
- let headerTitle = '';
882
- if (section.title) {
883
- headerTitle = section.title;
884
- }
885
- else if (sectionExpanded) {
886
- headerTitle = this.kupManager.language.translate(kupManager.KupLanguageGeneric.COLLAPSE);
887
- }
888
- else {
889
- headerTitle = this.kupManager.language.translate(kupManager.KupLanguageGeneric.EXPAND);
890
- }
891
- sectionContainer = (index.h("div", { class: sectionClass, style: sectionStyle }, index.h("div", { class: contentClass }, sectionContent), index.h("div", { class: "header", role: "button", onClick: (e) => {
892
- e.stopPropagation();
893
- this.toggleSectionExpand(row, section);
894
- } }, index.h("div", { class: "header-content" }, index.h("span", null, headerTitle), index.h(fImage.FImage, { resource: `${kupManager.KupThemeIconValues.DROPDOWN}`, sizeX: "1.25em", sizeY: "1.25em", wrapperClass: sectionExpanded ? 'toggled' : '' })))));
895
- }
896
- else {
897
- const title = section.title ? index.h("h3", null, section.title) : null;
898
- sectionContainer = (index.h("div", { class: sectionClass, style: sectionStyle }, title, sectionContent));
899
- }
900
- return sectionContainer;
901
- }
902
- renderBoxObject({ boxObject, row, visibleColumns, }, fromSection) {
903
- const classObj = {
904
- 'box-object': true,
905
- };
906
- const boStyle = {};
907
- let column = null;
908
- let index$1 = -1;
909
- for (let i = 0; i < visibleColumns.length; i++) {
910
- const c = visibleColumns[i];
911
- if (c.name === boxObject.column) {
912
- index$1 = i;
913
- break;
914
- }
915
- }
916
- if (index$1 >= 0) {
917
- column = visibleColumns[index$1];
918
- visibleColumns.splice(index$1, 1);
919
- }
920
- else if (fromSection) {
921
- column = this.data.columns.find((x) => x.name === boxObject.column);
922
- }
923
- const cell = row.cells[boxObject.column];
924
- let title = undefined;
925
- if (cell && !this.kupManager.objects.isEmptyKupObj(cell.obj)) {
926
- classObj['is-obj'] = true;
927
- if (this.kupManager.debug.isDebug()) {
928
- title =
929
- cell.obj.t + '; ' + cell.obj.p + '; ' + cell.obj.k + ';';
930
- }
931
- }
932
- const cellProps = {
933
- cell: cell,
934
- column: column,
935
- component: this,
936
- editable: this.editableData,
937
- renderKup: true,
938
- row: row,
939
- setSizes: true,
940
- shape: boxObject.shape,
941
- };
942
- return (index.h("div", { "data-cell": cell, "data-row": row, "data-column": boxObject.column, class: classObj, style: boStyle, title: title }, cell && column ? (index.h(fCell.FCell, Object.assign({}, cellProps))) : (index.h("span", null, boxObject.value))));
943
- }
944
- /**
945
- * Prepares the kanban sections by sorting the boxlist's data.
946
- * @returns {{jsx: VNode[], style: { [index: string]: string }}} jsx contains the virtual nodes of the Kanban sections, style contains the grid CSS settings.
947
- */
948
- kanbanMode() {
949
- // Testing whether there are columns to group by
950
- if (!this.kanban.columns || this.kanban.columns.length === 0) {
951
- this.kupManager.debug.logMessage(this, 'No columns to group by detected.', kupManager.KupDebugCategory.ERROR);
952
- return {
953
- jsx: (index.h("div", { id: "empty-data-message", class: "box-wrapper" }, index.h("div", { ref: (el) => this.rowsRefs.push(el) }), this.kupManager.language.translate(kupManager.KupLanguageGeneric.EMPTY_DATA))),
954
- style: { 'grid-template-columns': `repeat(1, 1fr)` },
955
- };
956
- }
957
- const kanbanSections = [];
958
- // Creating empty sections from prop-defined labels
959
- if (this.kanban.labels) {
960
- for (let index = 0; index < this.kanban.labels.length; index++) {
961
- const key = this.kanban.labels[index];
962
- kanbanSections.push({ labels: key, nodes: [] });
963
- }
964
- }
965
- // Browsing all rows
966
- for (let index = 0; index < this.rows.length; index++) {
967
- let key = [];
968
- // Creating the key for the current row
969
- for (let j = 0; j < this.kanban.columns.length; j++) {
970
- try {
971
- key.push(this.rows[index].cells[this.kanban.columns[j]].value);
972
- }
973
- catch (error) {
974
- this.kupManager.debug.logMessage(this, error, kupManager.KupDebugCategory.WARNING);
975
- }
976
- }
977
- const check = {
978
- found: false,
979
- index: null,
980
- };
981
- // Browsing key array to search whether the current key exists or not
982
- for (let j = 0; j < kanbanSections.length; j++) {
983
- let sortingKey = kanbanSections[j].labels;
984
- let found = true;
985
- for (let i = 0; i < sortingKey.length; i++) {
986
- if (key[i] !== sortingKey[i]) {
987
- found = false;
988
- break;
989
- }
990
- }
991
- if (found) {
992
- check.found = true;
993
- check.index = j;
994
- break;
995
- }
996
- }
997
- // If current key exists, box will be pushed into the existing array of virtual nodes
998
- if (check.found) {
999
- kanbanSections[check.index].nodes.push(this.renderRow(this.rows[index]));
1000
- }
1001
- else {
1002
- // Otherwise, a new section will be defined starting with just the current virtal node
1003
- kanbanSections.push({
1004
- labels: key,
1005
- nodes: [this.renderRow(this.rows[index])],
1006
- });
1007
- }
1008
- }
1009
- // Once the arrays are set, they need to be emptied into columns
1010
- const kanbanJSX = [];
1011
- for (let index$1 = 0; index$1 < kanbanSections.length; index$1++) {
1012
- const sortingKey = kanbanSections[index$1].labels;
1013
- const props = {
1014
- data: [],
1015
- };
1016
- for (let index = 0; index < sortingKey.length; index++) {
1017
- props.data.push({
1018
- value: sortingKey[index],
1019
- id: sortingKey[index],
1020
- });
1021
- }
1022
- kanbanJSX.push(index.h("div", { class: "kanban-section" }, index.h(fChip.FChip, Object.assign({}, props)), kanbanSections[index$1].nodes));
901
+ return sectionContainer;
1023
902
  }
1024
- return {
1025
- jsx: kanbanJSX,
1026
- style: {
1027
- 'grid-template-columns': this.kanban.isStacked
1028
- ? 'repeat(1fr)'
1029
- : this.kanban.size
1030
- ? `repeat(${Object.keys(kanbanSections).length}, ${this.kanban.size})`
1031
- : `repeat(${Object.keys(kanbanSections).length}, 1fr)`,
1032
- },
1033
- };
1034
- }
1035
- didLoadInteractables() {
1036
- this.interactableTouch.push(this.boxContainer);
1037
- const tapCb = (e) => {
1038
- if (this.hold) {
1039
- this.hold = false;
1040
- return;
1041
- }
1042
- switch (e.button) {
1043
- case 2:
1044
- this.kupBoxContextMenu.emit({
1045
- comp: this,
1046
- id: this.rootElement.id,
1047
- details: this.contextMenuHandler(e),
1048
- });
1049
- break;
1050
- }
1051
- };
1052
- const holdCb = (e) => {
1053
- if (e.pointerType === 'pen' || e.pointerType === 'touch') {
1054
- this.hold = true;
1055
- this.kupBoxContextMenu.emit({
1056
- comp: this,
1057
- id: this.rootElement.id,
1058
- details: this.contextMenuHandler(e),
1059
- });
1060
- }
1061
- };
1062
- this.kupManager.interact.on(this.boxContainer, kupManager.KupPointerEventTypes.TAP, tapCb);
1063
- this.kupManager.interact.on(this.boxContainer, kupManager.KupPointerEventTypes.HOLD, holdCb);
1064
- }
1065
- didRenderInteractables() {
1066
- if (this.dragEnabled) {
1067
- for (let index = 0; index < this.rowsRefs.length; index++) {
1068
- const row = this.rowsRefs[index];
1069
- const dataCb = () => {
1070
- const cellEl = this.rootElement.shadowRoot.querySelector('.box-object:hover');
1071
- return {
1072
- cell: cellEl['data-cell'],
1073
- column: kupManager.getColumnByName(this.visibleColumns, cellEl.dataset.column),
1074
- id: this.rootElement.id,
1075
- multiple: this.multiSelection,
1076
- row: cellEl['data-row'],
1077
- selectedRows: this.selectedRows,
1078
- };
903
+ renderBoxObject({ boxObject, row, visibleColumns, }, fromSection) {
904
+ const classObj = {
905
+ 'box-object': true,
1079
906
  };
1080
- if (row && !this.interactableDrag.includes(row)) {
1081
- this.interactableDrag.push(row);
1082
- this.kupManager.interact.draggable(row, {
1083
- allowFrom: '.box-object',
1084
- cursorChecker() {
1085
- return null;
1086
- },
1087
- }, {
1088
- callback: dataCb,
1089
- }, kupManager.KupDragEffect.BADGE);
907
+ const boStyle = {};
908
+ let column = null;
909
+ let index$1 = -1;
910
+ for (let i = 0; i < visibleColumns.length; i++) {
911
+ const c = visibleColumns[i];
912
+ if (c.name === boxObject.column) {
913
+ index$1 = i;
914
+ break;
915
+ }
916
+ }
917
+ if (index$1 >= 0) {
918
+ column = visibleColumns[index$1];
919
+ visibleColumns.splice(index$1, 1);
920
+ }
921
+ else if (fromSection) {
922
+ column = this.data.columns.find((x) => x.name === boxObject.column);
1090
923
  }
1091
- }
924
+ const cell = row.cells[boxObject.column];
925
+ let title = undefined;
926
+ if (cell && !this.kupManager.objects.isEmptyKupObj(cell.obj)) {
927
+ classObj['is-obj'] = true;
928
+ if (this.kupManager.debug.isDebug()) {
929
+ title =
930
+ cell.obj.t + '; ' + cell.obj.p + '; ' + cell.obj.k + ';';
931
+ }
932
+ }
933
+ const cellProps = {
934
+ cell: cell,
935
+ column: column,
936
+ component: this,
937
+ editable: this.editableData,
938
+ renderKup: true,
939
+ row: row,
940
+ setSizes: true,
941
+ shape: boxObject.shape,
942
+ };
943
+ return (index.h("div", { "data-cell": cell, "data-row": row, "data-column": boxObject.column, class: classObj, style: boStyle, title: title }, cell && column ? (index.h(fCell.FCell, Object.assign({}, cellProps))) : (index.h("span", null, boxObject.value))));
1092
944
  }
1093
- if (this.dropEnabled) {
1094
- const dataCb = () => {
1095
- const receivingDetails = this.getEventDetails(this.rootElement.shadowRoot.querySelector('.box:hover'));
945
+ /**
946
+ * Prepares the kanban sections by sorting the boxlist's data.
947
+ * @returns {{jsx: VNode[], style: { [index: string]: string }}} jsx contains the virtual nodes of the Kanban sections, style contains the grid CSS settings.
948
+ */
949
+ kanbanMode() {
950
+ // Testing whether there are columns to group by
951
+ if (!this.kanban.columns || this.kanban.columns.length === 0) {
952
+ this.kupManager.debug.logMessage(this, 'No columns to group by detected.', kupManager.KupDebugCategory.ERROR);
953
+ return {
954
+ jsx: (index.h("div", { id: "empty-data-message", class: "box-wrapper" }, index.h("div", { ref: (el) => this.rowsRefs.push(el) }), this.kupManager.language.translate(kupManager.KupLanguageGeneric.EMPTY_DATA))),
955
+ style: { 'grid-template-columns': `repeat(1, 1fr)` },
956
+ };
957
+ }
958
+ const kanbanSections = [];
959
+ // Creating empty sections from prop-defined labels
960
+ if (this.kanban.labels) {
961
+ for (let index = 0; index < this.kanban.labels.length; index++) {
962
+ const key = this.kanban.labels[index];
963
+ kanbanSections.push({ labels: key, nodes: [] });
964
+ }
965
+ }
966
+ // Browsing all rows
967
+ for (let index = 0; index < this.rows.length; index++) {
968
+ let key = [];
969
+ // Creating the key for the current row
970
+ for (let j = 0; j < this.kanban.columns.length; j++) {
971
+ try {
972
+ key.push(this.rows[index].cells[this.kanban.columns[j]].value);
973
+ }
974
+ catch (error) {
975
+ this.kupManager.debug.logMessage(this, error, kupManager.KupDebugCategory.WARNING);
976
+ }
977
+ }
978
+ const check = {
979
+ found: false,
980
+ index: null,
981
+ };
982
+ // Browsing key array to search whether the current key exists or not
983
+ for (let j = 0; j < kanbanSections.length; j++) {
984
+ let sortingKey = kanbanSections[j].labels;
985
+ let found = true;
986
+ for (let i = 0; i < sortingKey.length; i++) {
987
+ if (key[i] !== sortingKey[i]) {
988
+ found = false;
989
+ break;
990
+ }
991
+ }
992
+ if (found) {
993
+ check.found = true;
994
+ check.index = j;
995
+ break;
996
+ }
997
+ }
998
+ // If current key exists, box will be pushed into the existing array of virtual nodes
999
+ if (check.found) {
1000
+ kanbanSections[check.index].nodes.push(this.renderRow(this.rows[index]));
1001
+ }
1002
+ else {
1003
+ // Otherwise, a new section will be defined starting with just the current virtal node
1004
+ kanbanSections.push({
1005
+ labels: key,
1006
+ nodes: [this.renderRow(this.rows[index])],
1007
+ });
1008
+ }
1009
+ }
1010
+ // Once the arrays are set, they need to be emptied into columns
1011
+ const kanbanJSX = [];
1012
+ for (let index$1 = 0; index$1 < kanbanSections.length; index$1++) {
1013
+ const sortingKey = kanbanSections[index$1].labels;
1014
+ const props = {
1015
+ data: [],
1016
+ };
1017
+ for (let index = 0; index < sortingKey.length; index++) {
1018
+ props.data.push({
1019
+ value: sortingKey[index],
1020
+ id: sortingKey[index],
1021
+ });
1022
+ }
1023
+ kanbanJSX.push(index.h("div", { class: "kanban-section" }, index.h(fChip.FChip, Object.assign({}, props)), kanbanSections[index$1].nodes));
1024
+ }
1096
1025
  return {
1097
- cell: receivingDetails.cell,
1098
- column: receivingDetails.column,
1099
- id: this.rootElement.id,
1100
- row: receivingDetails.row,
1026
+ jsx: kanbanJSX,
1027
+ style: {
1028
+ 'grid-template-columns': this.kanban.isStacked
1029
+ ? 'repeat(1fr)'
1030
+ : this.kanban.size
1031
+ ? `repeat(${Object.keys(kanbanSections).length}, ${this.kanban.size})`
1032
+ : `repeat(${Object.keys(kanbanSections).length}, 1fr)`,
1033
+ },
1101
1034
  };
1102
- };
1103
- if (!this.interactableDrop.includes(this.sectionRef)) {
1104
- this.interactableDrop.push(this.sectionRef);
1105
- this.kupManager.interact.dropzone(this.sectionRef, {
1106
- accept: `[${kupManager.kupDraggableCellAttr}]`,
1107
- }, {
1108
- dispatcher: this.rootElement,
1109
- type: kupManager.KupDropEventTypes.BOX,
1110
- });
1111
- }
1112
- for (let index = 0; index < this.rowsRefs.length; index++) {
1113
- const row = this.rowsRefs[index];
1114
- if (row && !this.interactableDrop.includes(row)) {
1115
- this.interactableDrop.push(row);
1116
- this.kupManager.interact.dropzone(row, {
1117
- accept: `[${kupManager.kupDraggableCellAttr}]`,
1118
- }, {
1119
- callback: dataCb,
1120
- dispatcher: this.rootElement,
1121
- type: kupManager.KupDropEventTypes.BOX,
1122
- });
1123
- }
1124
- }
1125
- }
1126
- }
1127
- /*-------------------------------------------------*/
1128
- /* L i f e c y c l e H o o k s */
1129
- /*-------------------------------------------------*/
1130
- componentWillLoad() {
1131
- this.kupManager.debug.logLoad(this, false);
1132
- if (this.rowsPerPage) {
1133
- this.currentRowsPerPage = this.rowsPerPage;
1134
- }
1135
- if (this.data &&
1136
- this.data.rows &&
1137
- this.currentRowsPerPage > this.data.rows.length) {
1138
- this.currentRowsPerPage = this.data.rows.length;
1139
- }
1140
- this.kupManager.language.register(this);
1141
- this.kupManager.theme.register(this);
1142
- this.onDataChanged();
1143
- this.adjustPaginator();
1144
- if (document.querySelector('.header')) {
1145
- __classPrivateFieldSet(this, _KupBox_navBarHeight, document.querySelector('.header').clientHeight, "f");
1146
- }
1147
- else {
1148
- __classPrivateFieldSet(this, _KupBox_navBarHeight, 0, "f");
1149
- }
1150
- if (document.querySelector('.topbar')) {
1151
- __classPrivateFieldSet(this, _KupBox_navBarHeight, __classPrivateFieldGet(this, _KupBox_navBarHeight, "f") + document.querySelector('.topbar').clientHeight, "f");
1152
- }
1153
- __classPrivateFieldGet(this, _KupBox_instances, "m", _KupBox_setObserver).call(this);
1154
- }
1155
- componentDidLoad() {
1156
- this.handleAutomaticBoxSelection();
1157
- // When component is created, then the listener is set. @See clickFunction for more details
1158
- document.addEventListener('click', this.clickFunction.bind(this));
1159
- this.currentPage = this.pageSelected;
1160
- if (this.multiSelection && this.selectedRowsState) {
1161
- this.selectedRows = [];
1162
- let selectedIds = this.selectedRowsState.split(';');
1163
- this.selectedRows = this.data.rows.filter((r) => {
1164
- return selectedIds.indexOf(r.id) >= 0;
1165
- });
1166
- }
1167
- this.didLoadInteractables();
1168
- this.kupDidLoad.emit({ comp: this, id: this.rootElement.id });
1169
- this.kupManager.debug.logLoad(this, true);
1170
- }
1171
- componentWillRender() {
1172
- this.kupManager.debug.logRender(this, false);
1173
- }
1174
- componentDidRender() {
1175
- const root = this.rootElement.shadowRoot;
1176
- if (root) {
1177
- const fs = root.querySelectorAll('.f-text-field');
1178
- for (let index = 0; index < fs.length; index++) {
1179
- fTextFieldMdc.FTextFieldMDC(fs[index]);
1180
- }
1181
1035
  }
1182
- this.checkScrollOnHover();
1183
- this.persistState();
1184
- this.didRenderInteractables();
1185
- __classPrivateFieldGet(this, _KupBox_instances, "m", _KupBox_didRenderObservers).call(this);
1186
- this.kupManager.debug.logRender(this, true);
1187
- }
1188
- render() {
1189
- const isKanban = !!(typeof this.kanban === 'object' && this.kanban !== null);
1190
- let sortPanel = null;
1191
- if (this.sortEnabled) {
1192
- // creating items
1193
- const visibleColumnsItems = this.visibleColumns.map((column) => {
1194
- const item = {
1195
- value: column.title,
1196
- id: column.name,
1197
- selected: column.name === this.sortBy,
1036
+ didLoadInteractables() {
1037
+ this.interactableTouch.push(this.boxContainer);
1038
+ const tapCb = (e) => {
1039
+ if (this.hold) {
1040
+ this.hold = false;
1041
+ return;
1042
+ }
1043
+ switch (e.button) {
1044
+ case 2:
1045
+ this.kupBoxContextMenu.emit({
1046
+ comp: this,
1047
+ id: this.rootElement.id,
1048
+ details: this.contextMenuHandler(e),
1049
+ });
1050
+ break;
1051
+ }
1198
1052
  };
1199
- return item;
1200
- });
1201
- const items = [{ value: '', id: '' }, ...visibleColumnsItems];
1202
- let textfieldData = {
1203
- label: this.kupManager.language.translate(kupManager.KupLanguageGeneric.SORT_BY),
1204
- trailingIcon: true,
1205
- };
1206
- let listData = {
1207
- data: items,
1208
- selectable: true,
1209
- };
1210
- let data = {
1211
- 'kup-text-field': textfieldData,
1212
- 'kup-list': listData,
1213
- };
1214
- sortPanel = (index.h("div", { id: "sort-panel" }, index.h("kup-combobox", { data: data, initialValue: this.sortBy, "onkup-combobox-itemclick": (e) => this.onSortChange(e) })));
1215
- }
1216
- let filterPanel = null;
1217
- if (this.globalFilter) {
1218
- filterPanel = (index.h("div", { id: "global-filter" }, index.h("kup-text-field", { fullWidth: true, label: this.kupManager.language.translate(kupManager.KupLanguageSearch.SEARCH), icon: kupManager.KupThemeIconValues.SEARCH, initialValue: this.globalFilterValue, "onkup-textfield-input": (event) => {
1219
- window.clearTimeout(this.globalFilterTimeout);
1220
- this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
1221
- } })));
1222
- }
1223
- let paginator = null;
1224
- if (!this.lazyLoadRows && this.pagination) {
1225
- paginator = (index.h(fPaginatorUtils.FPaginator, { id: top ? 'top-paginator' : 'bottom-paginator', currentPage: this.currentPage, max: this.filteredRows.length, mode: fPaginatorUtils.FPaginatorMode.SIMPLE, perPage: this.currentRowsPerPage
1226
- ? this.currentRowsPerPage
1227
- : this.rowsPerPage, onPageChange: (e) => this.handlePageChange(e.detail.value), onRowsChange: (e) => this.handleRowsPerPageChange(e.detail.value) }));
1228
- }
1229
- let boxContent = null;
1230
- let containerStyle = {};
1231
- if (this.rows.length === 0) {
1232
- boxContent = (index.h("div", { id: "empty-data-message", class: "box-wrapper" }, index.h("div", { class: "box", ref: (el) => this.rowsRefs.push(el) }, this.kupManager.language.translate(kupManager.KupLanguageGeneric.EMPTY_DATA))));
1233
- containerStyle = { 'grid-template-columns': `repeat(1, 1fr)` };
1234
- }
1235
- else if (isKanban) {
1236
- const kanban = this.kanbanMode();
1237
- boxContent = kanban.jsx;
1238
- containerStyle = kanban.style;
1239
- }
1240
- else {
1241
- containerStyle = {
1242
- 'grid-template-columns': `repeat(${this.columns}, 1fr)`,
1243
- };
1244
- const rows = this.rows;
1245
- let size = rows.length;
1246
- let cnt = 0;
1247
- boxContent = [];
1248
- while (size-- > 0) {
1249
- boxContent.push(this.renderRow(rows[cnt++]));
1250
- }
1251
- }
1252
- return (index.h(index.Host, null, index.h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { id: GenericVariables.componentWrapperId }, index.h("div", { class: 'box-component', ref: (el) => (this.sectionRef = el) }, sortPanel, filterPanel, paginator, index.h("div", { class: isKanban ? 'is-kanban' : '', id: 'box-container', style: containerStyle, onContextMenu: (e) => {
1253
- e.preventDefault();
1254
- }, ref: (el) => (this.boxContainer =
1255
- el) }, boxContent)))));
1256
- }
1257
- disconnectedCallback() {
1258
- this.kupManager.interact.unregister(this.interactableDrag.concat(this.interactableDrop));
1259
- this.kupManager.language.unregister(this);
1260
- this.kupManager.theme.unregister(this);
1261
- if (this.scrollOnHover) {
1262
- this.kupManager.scrollOnHover.unregister(this.boxContainer);
1053
+ const holdCb = (e) => {
1054
+ if (e.pointerType === 'pen' || e.pointerType === 'touch') {
1055
+ this.hold = true;
1056
+ this.kupBoxContextMenu.emit({
1057
+ comp: this,
1058
+ id: this.rootElement.id,
1059
+ details: this.contextMenuHandler(e),
1060
+ });
1061
+ }
1062
+ };
1063
+ this.kupManager.interact.on(this.boxContainer, kupManager.KupPointerEventTypes.TAP, tapCb);
1064
+ this.kupManager.interact.on(this.boxContainer, kupManager.KupPointerEventTypes.HOLD, holdCb);
1065
+ }
1066
+ didRenderInteractables() {
1067
+ if (this.dragEnabled) {
1068
+ for (let index = 0; index < this.rowsRefs.length; index++) {
1069
+ const row = this.rowsRefs[index];
1070
+ const dataCb = () => {
1071
+ const cellEl = this.rootElement.shadowRoot.querySelector('.box-object:hover');
1072
+ return {
1073
+ cell: cellEl['data-cell'],
1074
+ column: kupManager.getColumnByName(this.visibleColumns, cellEl.dataset.column),
1075
+ id: this.rootElement.id,
1076
+ multiple: this.multiSelection,
1077
+ row: cellEl['data-row'],
1078
+ selectedRows: this.selectedRows,
1079
+ };
1080
+ };
1081
+ if (row && !this.interactableDrag.includes(row)) {
1082
+ this.interactableDrag.push(row);
1083
+ this.kupManager.interact.draggable(row, {
1084
+ allowFrom: '.box-object',
1085
+ cursorChecker() {
1086
+ return null;
1087
+ },
1088
+ }, {
1089
+ callback: dataCb,
1090
+ }, kupManager.KupDragEffect.BADGE);
1091
+ }
1092
+ }
1093
+ }
1094
+ if (this.dropEnabled) {
1095
+ const dataCb = () => {
1096
+ const receivingDetails = this.getEventDetails(this.rootElement.shadowRoot.querySelector('.box:hover'));
1097
+ return {
1098
+ cell: receivingDetails.cell,
1099
+ column: receivingDetails.column,
1100
+ id: this.rootElement.id,
1101
+ row: receivingDetails.row,
1102
+ };
1103
+ };
1104
+ if (!this.interactableDrop.includes(this.sectionRef)) {
1105
+ this.interactableDrop.push(this.sectionRef);
1106
+ this.kupManager.interact.dropzone(this.sectionRef, {
1107
+ accept: `[${kupManager.kupDraggableCellAttr}]`,
1108
+ }, {
1109
+ dispatcher: this.rootElement,
1110
+ type: kupManager.KupDropEventTypes.BOX,
1111
+ });
1112
+ }
1113
+ for (let index = 0; index < this.rowsRefs.length; index++) {
1114
+ const row = this.rowsRefs[index];
1115
+ if (row && !this.interactableDrop.includes(row)) {
1116
+ this.interactableDrop.push(row);
1117
+ this.kupManager.interact.dropzone(row, {
1118
+ accept: `[${kupManager.kupDraggableCellAttr}]`,
1119
+ }, {
1120
+ callback: dataCb,
1121
+ dispatcher: this.rootElement,
1122
+ type: kupManager.KupDropEventTypes.BOX,
1123
+ });
1124
+ }
1125
+ }
1126
+ }
1263
1127
  }
1264
- // When component is destroyed, then the listener is removed. @See clickFunction for more details
1265
- document.removeEventListener('click', this.clickFunction.bind(this));
1266
- this.kupDidUnload.emit({ comp: this, id: this.rootElement.id });
1267
- }
1268
- get rootElement() { return index.getElement(this); }
1269
- static get watchers() { return {
1270
- "rowsPerPage": ["rowsPerPageHandler", "recalculateRows"],
1271
- "globalFilterValue": ["recalculateRows"],
1272
- "sortBy": ["recalculateRows"],
1273
- "pagination": ["recalculateRows"],
1274
- "currentPage": ["recalculateRows"],
1275
- "currentRowsPerPage": ["recalculateRows"],
1276
- "data": ["onDataChanged"],
1277
- "layout": ["onLayoutChanged"],
1278
- "selectBox": ["onSelectBoxChanged"]
1279
- }; }
1128
+ /*-------------------------------------------------*/
1129
+ /* L i f e c y c l e H o o k s */
1130
+ /*-------------------------------------------------*/
1131
+ componentWillLoad() {
1132
+ this.kupManager.debug.logLoad(this, false);
1133
+ if (this.rowsPerPage) {
1134
+ this.currentRowsPerPage = this.rowsPerPage;
1135
+ }
1136
+ if (this.data &&
1137
+ this.data.rows &&
1138
+ this.currentRowsPerPage > this.data.rows.length) {
1139
+ this.currentRowsPerPage = this.data.rows.length;
1140
+ }
1141
+ this.kupManager.language.register(this);
1142
+ this.kupManager.theme.register(this);
1143
+ this.onDataChanged();
1144
+ this.adjustPaginator();
1145
+ if (document.querySelector('.header')) {
1146
+ __classPrivateFieldSet(this, _KupBox_navBarHeight, document.querySelector('.header').clientHeight, "f");
1147
+ }
1148
+ else {
1149
+ __classPrivateFieldSet(this, _KupBox_navBarHeight, 0, "f");
1150
+ }
1151
+ if (document.querySelector('.topbar')) {
1152
+ __classPrivateFieldSet(this, _KupBox_navBarHeight, __classPrivateFieldGet(this, _KupBox_navBarHeight, "f") + document.querySelector('.topbar').clientHeight, "f");
1153
+ }
1154
+ __classPrivateFieldGet(this, _KupBox_instances, "m", _KupBox_setObserver).call(this);
1155
+ }
1156
+ componentDidLoad() {
1157
+ this.handleAutomaticBoxSelection();
1158
+ // When component is created, then the listener is set. @See clickFunction for more details
1159
+ document.addEventListener('click', this.clickFunction.bind(this));
1160
+ this.currentPage = this.pageSelected;
1161
+ if (this.multiSelection && this.selectedRowsState) {
1162
+ this.selectedRows = [];
1163
+ let selectedIds = this.selectedRowsState.split(';');
1164
+ this.selectedRows = this.data.rows.filter((r) => {
1165
+ return selectedIds.indexOf(r.id) >= 0;
1166
+ });
1167
+ }
1168
+ this.didLoadInteractables();
1169
+ this.kupDidLoad.emit({ comp: this, id: this.rootElement.id });
1170
+ this.kupManager.debug.logLoad(this, true);
1171
+ }
1172
+ componentWillRender() {
1173
+ this.kupManager.debug.logRender(this, false);
1174
+ }
1175
+ componentDidRender() {
1176
+ const root = this.rootElement.shadowRoot;
1177
+ if (root) {
1178
+ const fs = root.querySelectorAll('.f-text-field');
1179
+ for (let index = 0; index < fs.length; index++) {
1180
+ fTextFieldMdc.FTextFieldMDC(fs[index]);
1181
+ }
1182
+ }
1183
+ this.checkScrollOnHover();
1184
+ this.persistState();
1185
+ this.didRenderInteractables();
1186
+ __classPrivateFieldGet(this, _KupBox_instances, "m", _KupBox_didRenderObservers).call(this);
1187
+ this.kupManager.debug.logRender(this, true);
1188
+ }
1189
+ render() {
1190
+ const isKanban = !!(typeof this.kanban === 'object' && this.kanban !== null);
1191
+ let sortPanel = null;
1192
+ if (this.sortEnabled) {
1193
+ // creating items
1194
+ const visibleColumnsItems = this.visibleColumns.map((column) => {
1195
+ const item = {
1196
+ value: column.title,
1197
+ id: column.name,
1198
+ selected: column.name === this.sortBy,
1199
+ };
1200
+ return item;
1201
+ });
1202
+ const items = [{ value: '', id: '' }, ...visibleColumnsItems];
1203
+ let textfieldData = {
1204
+ label: this.kupManager.language.translate(kupManager.KupLanguageGeneric.SORT_BY),
1205
+ trailingIcon: true,
1206
+ };
1207
+ let listData = {
1208
+ data: items,
1209
+ selectable: true,
1210
+ };
1211
+ let data = {
1212
+ 'kup-text-field': textfieldData,
1213
+ 'kup-list': listData,
1214
+ };
1215
+ sortPanel = (index.h("div", { id: "sort-panel" }, index.h("kup-combobox", { data: data, initialValue: this.sortBy, "onkup-combobox-itemclick": (e) => this.onSortChange(e) })));
1216
+ }
1217
+ let filterPanel = null;
1218
+ if (this.globalFilter) {
1219
+ filterPanel = (index.h("div", { id: "global-filter" }, index.h("kup-text-field", { fullWidth: true, label: this.kupManager.language.translate(kupManager.KupLanguageSearch.SEARCH), icon: kupManager.KupThemeIconValues.SEARCH, initialValue: this.globalFilterValue, "onkup-textfield-input": (event) => {
1220
+ window.clearTimeout(this.globalFilterTimeout);
1221
+ this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
1222
+ } })));
1223
+ }
1224
+ let paginator = null;
1225
+ if (!this.lazyLoadRows && this.pagination) {
1226
+ paginator = (index.h(fPaginatorUtils.FPaginator, { id: top ? 'top-paginator' : 'bottom-paginator', currentPage: this.currentPage, max: this.filteredRows.length, mode: fPaginatorUtils.FPaginatorMode.SIMPLE, perPage: this.currentRowsPerPage
1227
+ ? this.currentRowsPerPage
1228
+ : this.rowsPerPage, onPageChange: (e) => this.handlePageChange(e.detail.value), onRowsChange: (e) => this.handleRowsPerPageChange(e.detail.value) }));
1229
+ }
1230
+ let boxContent = null;
1231
+ let containerStyle = {};
1232
+ if (this.rows.length === 0) {
1233
+ boxContent = (index.h("div", { id: "empty-data-message", class: "box-wrapper" }, index.h("div", { class: "box", ref: (el) => this.rowsRefs.push(el) }, this.kupManager.language.translate(kupManager.KupLanguageGeneric.EMPTY_DATA))));
1234
+ containerStyle = { 'grid-template-columns': `repeat(1, 1fr)` };
1235
+ }
1236
+ else if (isKanban) {
1237
+ const kanban = this.kanbanMode();
1238
+ boxContent = kanban.jsx;
1239
+ containerStyle = kanban.style;
1240
+ }
1241
+ else {
1242
+ containerStyle = {
1243
+ 'grid-template-columns': `repeat(${this.columns}, 1fr)`,
1244
+ };
1245
+ const rows = this.rows;
1246
+ let size = rows.length;
1247
+ let cnt = 0;
1248
+ boxContent = [];
1249
+ while (size-- > 0) {
1250
+ boxContent.push(this.renderRow(rows[cnt++]));
1251
+ }
1252
+ }
1253
+ return (index.h(index.Host, null, index.h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { id: GenericVariables.componentWrapperId }, index.h("div", { class: 'box-component', ref: (el) => (this.sectionRef = el) }, sortPanel, filterPanel, paginator, index.h("div", { class: isKanban ? 'is-kanban' : '', id: 'box-container', style: containerStyle, onContextMenu: (e) => {
1254
+ e.preventDefault();
1255
+ }, ref: (el) => (this.boxContainer =
1256
+ el) }, boxContent)))));
1257
+ }
1258
+ disconnectedCallback() {
1259
+ this.kupManager.interact.unregister(this.interactableDrag.concat(this.interactableDrop));
1260
+ this.kupManager.language.unregister(this);
1261
+ this.kupManager.theme.unregister(this);
1262
+ if (this.scrollOnHover) {
1263
+ this.kupManager.scrollOnHover.unregister(this.boxContainer);
1264
+ }
1265
+ // When component is destroyed, then the listener is removed. @See clickFunction for more details
1266
+ document.removeEventListener('click', this.clickFunction.bind(this));
1267
+ this.kupDidUnload.emit({ comp: this, id: this.rootElement.id });
1268
+ }
1269
+ get rootElement() { return index.getElement(this); }
1270
+ static get watchers() { return {
1271
+ "rowsPerPage": ["rowsPerPageHandler", "recalculateRows"],
1272
+ "globalFilterValue": ["recalculateRows"],
1273
+ "sortBy": ["recalculateRows"],
1274
+ "pagination": ["recalculateRows"],
1275
+ "currentPage": ["recalculateRows"],
1276
+ "currentRowsPerPage": ["recalculateRows"],
1277
+ "data": ["onDataChanged"],
1278
+ "layout": ["onLayoutChanged"],
1279
+ "selectBox": ["onSelectBoxChanged"]
1280
+ }; }
1280
1281
  };
1281
1282
  _KupBox_intObserver = new WeakMap(), _KupBox_rowsRefs = new WeakMap(), _KupBox_navBarHeight = new WeakMap(), _KupBox_instances = new WeakSet(), _KupBox_didRenderObservers = function _KupBox_didRenderObservers() {
1282
- if (this.lazyLoadRows &&
1283
- this.currentRowsPerPage < this.data.rows.length) {
1284
- __classPrivateFieldGet(this, _KupBox_intObserver, "f").observe(__classPrivateFieldGet(this, _KupBox_rowsRefs, "f")[__classPrivateFieldGet(this, _KupBox_rowsRefs, "f").length - 1]);
1285
- }
1283
+ if (this.lazyLoadRows &&
1284
+ this.currentRowsPerPage < this.data.rows.length) {
1285
+ __classPrivateFieldGet(this, _KupBox_intObserver, "f").observe(__classPrivateFieldGet(this, _KupBox_rowsRefs, "f")[__classPrivateFieldGet(this, _KupBox_rowsRefs, "f").length - 1]);
1286
+ }
1286
1287
  }, _KupBox_setObserver = function _KupBox_setObserver() {
1287
- const callback = (entries) => {
1288
- entries.forEach((entry) => {
1289
- if (entry.isIntersecting) {
1290
- this.kupManager.debug.logMessage(this, 'Last row entering the viewport, loading more elements.');
1291
- const delta = this.data.rows.length - this.currentRowsPerPage;
1292
- if (delta < 10) {
1293
- this.currentRowsPerPage += delta;
1294
- }
1295
- else {
1296
- this.currentRowsPerPage += 10;
1297
- }
1298
- entry.target.classList.remove('last-row');
1299
- __classPrivateFieldGet(this, _KupBox_intObserver, "f").unobserve(entry.target);
1300
- }
1301
- });
1302
- };
1303
- const options = {
1304
- threshold: 0,
1305
- rootMargin: '-' + __classPrivateFieldGet(this, _KupBox_navBarHeight, "f") + 'px 0px 0px 0px',
1306
- };
1307
- __classPrivateFieldSet(this, _KupBox_intObserver, new IntersectionObserver(callback, options), "f");
1288
+ const callback = (entries) => {
1289
+ entries.forEach((entry) => {
1290
+ if (entry.isIntersecting) {
1291
+ this.kupManager.debug.logMessage(this, 'Last row entering the viewport, loading more elements.');
1292
+ const delta = this.data.rows.length - this.currentRowsPerPage;
1293
+ if (delta < 10) {
1294
+ this.currentRowsPerPage += delta;
1295
+ }
1296
+ else {
1297
+ this.currentRowsPerPage += 10;
1298
+ }
1299
+ entry.target.classList.remove('last-row');
1300
+ __classPrivateFieldGet(this, _KupBox_intObserver, "f").unobserve(entry.target);
1301
+ }
1302
+ });
1303
+ };
1304
+ const options = {
1305
+ threshold: 0,
1306
+ rootMargin: '-' + __classPrivateFieldGet(this, _KupBox_navBarHeight, "f") + 'px 0px 0px 0px',
1307
+ };
1308
+ __classPrivateFieldSet(this, _KupBox_intObserver, new IntersectionObserver(callback, options), "f");
1308
1309
  };
1309
1310
  KupBox.style = kupBoxCss;
1310
1311