@sme.up/ketchup 9.6.2 → 9.6.3

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 (275) hide show
  1. package/dist/cjs/{f-button-4c346ca8.js → f-button-9a0eba42.js} +2 -2
  2. package/dist/cjs/{f-cell-8f3d12fd.js → f-cell-1ad41071.js} +51 -9
  3. package/dist/cjs/{f-checkbox-bfa92ebe.js → f-checkbox-1fa28e76.js} +1 -1
  4. package/dist/cjs/{f-chip-a6c800be.js → f-chip-48851b4f.js} +3 -3
  5. package/dist/cjs/{f-image-40476fa6.js → f-image-541e5f4d.js} +2 -2
  6. package/dist/cjs/{f-paginator-utils-c652ceaa.js → f-paginator-utils-8ff2a9b4.js} +7 -4
  7. package/dist/cjs/{f-text-field-1f77ef23.js → f-text-field-ac5d6497.js} +2 -2
  8. package/dist/cjs/{index-db0a6be6.js → index-958d0399.js} +21 -26
  9. package/dist/cjs/index.cjs.js +3 -3
  10. package/dist/cjs/ketchup.cjs.js +3 -3
  11. package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
  12. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +47 -46
  13. package/dist/cjs/kup-box.cjs.entry.js +60 -20
  14. package/dist/cjs/kup-calendar.cjs.entry.js +7 -7
  15. package/dist/cjs/kup-card-list.cjs.entry.js +4 -4
  16. package/dist/cjs/kup-cell.cjs.entry.js +10 -10
  17. package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +8 -8
  18. package/dist/cjs/kup-dashboard.cjs.entry.js +8 -8
  19. package/dist/cjs/{kup-dates-4aa560f0.js → kup-dates-b7d53b4d.js} +25 -8
  20. package/dist/cjs/kup-drawer.cjs.entry.js +4 -4
  21. package/dist/cjs/kup-echart.cjs.entry.js +4 -4
  22. package/dist/cjs/kup-editor.cjs.entry.js +3 -3
  23. package/dist/cjs/kup-family-tree.cjs.entry.js +6 -6
  24. package/dist/cjs/kup-gantt_10.cjs.entry.js +20 -14
  25. package/dist/cjs/kup-grid.cjs.entry.js +4 -4
  26. package/dist/cjs/kup-iframe.cjs.entry.js +4 -4
  27. package/dist/cjs/kup-image-list.cjs.entry.js +138 -50
  28. package/dist/cjs/kup-lazy.cjs.entry.js +4 -4
  29. package/dist/cjs/kup-magic-box.cjs.entry.js +5 -5
  30. package/dist/cjs/{kup-manager-08f1585b.js → kup-manager-26a9154b.js} +631 -33
  31. package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -4
  32. package/dist/cjs/kup-numeric-picker.cjs.entry.js +5 -5
  33. package/dist/cjs/kup-photo-frame.cjs.entry.js +4 -4
  34. package/dist/cjs/{kup-planner-renderer-helper-f0c869d7.js → kup-planner-renderer-helper-680bbd5a.js} +3 -23
  35. package/dist/cjs/kup-planner-renderer.cjs.entry.js +13 -6
  36. package/dist/cjs/kup-planner.cjs.entry.js +12 -6
  37. package/dist/cjs/kup-probe.cjs.entry.js +3 -3
  38. package/dist/cjs/kup-qlik.cjs.entry.js +4 -4
  39. package/dist/cjs/kup-snackbar.cjs.entry.js +6 -6
  40. package/dist/cjs/loader.cjs.js +2 -2
  41. package/dist/collection/assets/data-table.js +7 -2
  42. package/dist/collection/assets/image-list.js +20 -0
  43. package/dist/collection/assets/index.js +4 -0
  44. package/dist/collection/assets/planner-example-6.js +983 -0
  45. package/dist/collection/collection-manifest.json +1 -1
  46. package/dist/collection/components/kup-accordion/kup-accordion.css +128 -0
  47. package/dist/collection/components/kup-autocomplete/kup-autocomplete.css +128 -0
  48. package/dist/collection/components/kup-badge/kup-badge.css +128 -0
  49. package/dist/collection/components/kup-box/kup-box.css +128 -0
  50. package/dist/collection/components/kup-box/kup-box.js +49 -9
  51. package/dist/collection/components/kup-button/kup-button.css +128 -0
  52. package/dist/collection/components/kup-button-list/kup-button-list.css +128 -0
  53. package/dist/collection/components/kup-calendar/kup-calendar.css +128 -0
  54. package/dist/collection/components/kup-card/kup-card.css +128 -0
  55. package/dist/collection/components/kup-card-list/kup-card-list.css +128 -0
  56. package/dist/collection/components/kup-cell/kup-cell.css +128 -0
  57. package/dist/collection/components/kup-chart/kup-chart.css +128 -0
  58. package/dist/collection/components/kup-checkbox/kup-checkbox.css +128 -0
  59. package/dist/collection/components/kup-chip/kup-chip.css +128 -0
  60. package/dist/collection/components/kup-color-picker/kup-color-picker.css +128 -0
  61. package/dist/collection/components/kup-combobox/kup-combobox.css +128 -0
  62. package/dist/collection/components/kup-dashboard/kup-dashboard.css +128 -0
  63. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -0
  64. package/dist/collection/components/kup-data-table/kup-data-table.css +133 -0
  65. package/dist/collection/components/kup-data-table/kup-data-table.js +28 -9
  66. package/dist/collection/components/kup-date-picker/kup-date-picker.css +128 -0
  67. package/dist/collection/components/kup-dialog/kup-dialog.css +128 -0
  68. package/dist/collection/components/kup-drawer/kup-drawer.css +128 -0
  69. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +128 -0
  70. package/dist/collection/components/kup-echart/kup-echart.css +128 -0
  71. package/dist/collection/components/kup-family-tree/kup-family-tree.css +128 -0
  72. package/dist/collection/components/kup-form/kup-form.css +128 -0
  73. package/dist/collection/components/kup-gauge/kup-gauge.css +128 -0
  74. package/dist/collection/components/kup-grid/kup-grid.css +128 -0
  75. package/dist/collection/components/kup-iframe/kup-iframe.css +128 -0
  76. package/dist/collection/components/kup-image/kup-image.css +128 -0
  77. package/dist/collection/components/kup-image-list/kup-image-list-declarations.js +2 -0
  78. package/dist/collection/components/kup-image-list/kup-image-list.css +158 -18
  79. package/dist/collection/components/kup-image-list/kup-image-list.js +175 -46
  80. package/dist/collection/components/kup-lazy/kup-lazy.css +128 -0
  81. package/dist/collection/components/kup-list/kup-list.css +128 -0
  82. package/dist/collection/components/kup-magic-box/kup-magic-box.css +128 -0
  83. package/dist/collection/components/kup-nav-bar/kup-nav-bar.css +128 -0
  84. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.css +128 -0
  85. package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +128 -0
  86. package/dist/collection/components/kup-planner/kup-planner.css +128 -0
  87. package/dist/collection/components/kup-planner/kup-planner.js +7 -1
  88. package/dist/collection/components/kup-planner/utils/custom-task-list-header.module.css +128 -0
  89. package/dist/collection/components/kup-planner/utils/gantt-table.module.css +128 -0
  90. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.css +128 -0
  91. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +29 -2
  92. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.css +128 -0
  93. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +1 -1
  94. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.css +128 -0
  95. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.css +128 -0
  96. package/dist/collection/components/kup-planner/utils/kup-planner-renderer-helper.js +2 -22
  97. package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +37 -4
  98. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.css +128 -0
  99. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
  100. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.css +128 -0
  101. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.css +128 -0
  102. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.css +128 -0
  103. package/dist/collection/components/kup-progress-bar/kup-progress-bar.css +128 -0
  104. package/dist/collection/components/kup-qlik/kup-qlik.css +128 -0
  105. package/dist/collection/components/kup-radio/kup-radio.css +128 -0
  106. package/dist/collection/components/kup-rating/kup-rating.css +128 -0
  107. package/dist/collection/components/kup-snackbar/kup-snackbar.css +128 -0
  108. package/dist/collection/components/kup-spinner/kup-spinner.css +128 -0
  109. package/dist/collection/components/kup-switch/kup-switch.css +128 -0
  110. package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +128 -0
  111. package/dist/collection/components/kup-text-field/kup-text-field.css +128 -0
  112. package/dist/collection/components/kup-time-picker/kup-time-picker.css +128 -0
  113. package/dist/collection/components/kup-tree/kup-tree.css +128 -0
  114. package/dist/collection/f-components/f-cell/f-cell-declarations.js +1 -0
  115. package/dist/collection/f-components/f-cell/f-cell.js +44 -2
  116. package/dist/collection/f-components/f-paginator/f-paginator.js +3 -0
  117. package/dist/collection/managers/kup-dates/kup-dates.js +18 -8
  118. package/dist/collection/managers/kup-interact/kup-interact.js +7 -0
  119. package/dist/collection/utils/cell-utils.js +2 -2
  120. package/dist/components/custom-task-list-header.js +1 -1
  121. package/dist/components/custom-task-list-table.js +1 -1
  122. package/dist/components/kup-accordion.js +1 -1
  123. package/dist/components/kup-autocomplete2.js +85 -38
  124. package/dist/components/kup-box2.js +50 -10
  125. package/dist/components/kup-calendar.js +1 -1
  126. package/dist/components/kup-card-list.js +1 -1
  127. package/dist/components/kup-cell.js +1 -1
  128. package/dist/components/kup-dashboard.js +1 -1
  129. package/dist/components/kup-dates.js +25 -8
  130. package/dist/components/kup-drawer.js +1 -1
  131. package/dist/components/kup-echart2.js +1 -1
  132. package/dist/components/kup-family-tree.js +1 -1
  133. package/dist/components/kup-gantt-calendar2.js +2 -2
  134. package/dist/components/kup-gantt2.js +11 -4
  135. package/dist/components/kup-grid-renderer2.js +1 -1
  136. package/dist/components/kup-grid2.js +1 -1
  137. package/dist/components/kup-horizontal-scroll2.js +1 -1
  138. package/dist/components/kup-iframe.js +1 -1
  139. package/dist/components/kup-image-list.js +132 -42
  140. package/dist/components/kup-lazy.js +1 -1
  141. package/dist/components/kup-magic-box.js +1 -1
  142. package/dist/components/kup-manager.js +629 -31
  143. package/dist/components/kup-nav-bar.js +1 -1
  144. package/dist/components/kup-numeric-picker.js +1 -1
  145. package/dist/components/kup-photo-frame.js +1 -1
  146. package/dist/components/kup-planner-renderer-helper.js +2 -22
  147. package/dist/components/kup-planner-renderer2.js +12 -4
  148. package/dist/components/kup-planner.js +8 -2
  149. package/dist/components/kup-qlik.js +1 -1
  150. package/dist/components/kup-snackbar.js +1 -1
  151. package/dist/components/kup-standard-tooltip2.js +1 -1
  152. package/dist/components/kup-switcher2.js +1 -1
  153. package/dist/components/kup-task-list-header2.js +1 -1
  154. package/dist/components/kup-task-list-table2.js +2 -2
  155. package/dist/components/kup-task-list2.js +1 -1
  156. package/dist/components/kup-tooltip2.js +1 -1
  157. package/dist/components/kup-vertical-scroll2.js +1 -1
  158. package/dist/esm/{f-button-90a7ea86.js → f-button-45d690a5.js} +2 -2
  159. package/dist/esm/{f-cell-fdd338c5.js → f-cell-63db06db.js} +51 -9
  160. package/dist/esm/{f-checkbox-fdf27ce9.js → f-checkbox-ddb6234e.js} +1 -1
  161. package/dist/esm/{f-chip-4e6341a6.js → f-chip-f1ab6c5e.js} +3 -3
  162. package/dist/esm/{f-image-5210f0b3.js → f-image-8b382cc5.js} +2 -2
  163. package/dist/esm/{f-paginator-utils-3f179999.js → f-paginator-utils-ae563cd5.js} +7 -4
  164. package/dist/esm/{f-text-field-8429a853.js → f-text-field-b5fcb598.js} +2 -2
  165. package/dist/esm/{index-bbef9f2a.js → index-460631fd.js} +21 -26
  166. package/dist/esm/index.js +3 -3
  167. package/dist/esm/ketchup.js +4 -4
  168. package/dist/esm/kup-accordion.entry.js +5 -5
  169. package/dist/esm/kup-autocomplete_27.entry.js +47 -46
  170. package/dist/esm/kup-box.entry.js +60 -20
  171. package/dist/esm/kup-calendar.entry.js +7 -7
  172. package/dist/esm/kup-card-list.entry.js +4 -4
  173. package/dist/esm/kup-cell.entry.js +10 -10
  174. package/dist/esm/kup-custom-task-list-header_4.entry.js +8 -8
  175. package/dist/esm/kup-dashboard.entry.js +8 -8
  176. package/dist/esm/{kup-dates-172954df.js → kup-dates-4ad48be7.js} +25 -8
  177. package/dist/esm/kup-drawer.entry.js +4 -4
  178. package/dist/esm/kup-echart.entry.js +4 -4
  179. package/dist/esm/kup-editor.entry.js +3 -3
  180. package/dist/esm/kup-family-tree.entry.js +6 -6
  181. package/dist/esm/kup-gantt_10.entry.js +20 -14
  182. package/dist/esm/kup-grid.entry.js +4 -4
  183. package/dist/esm/kup-iframe.entry.js +4 -4
  184. package/dist/esm/kup-image-list.entry.js +138 -50
  185. package/dist/esm/kup-lazy.entry.js +4 -4
  186. package/dist/esm/kup-magic-box.entry.js +5 -5
  187. package/dist/esm/{kup-manager-8b39f876.js → kup-manager-cdb4f21a.js} +631 -33
  188. package/dist/esm/kup-nav-bar.entry.js +4 -4
  189. package/dist/esm/kup-numeric-picker.entry.js +5 -5
  190. package/dist/esm/kup-photo-frame.entry.js +4 -4
  191. package/dist/esm/{kup-planner-renderer-helper-5d97e075.js → kup-planner-renderer-helper-da0518be.js} +3 -23
  192. package/dist/esm/kup-planner-renderer.entry.js +13 -6
  193. package/dist/esm/kup-planner.entry.js +12 -6
  194. package/dist/esm/kup-probe.entry.js +3 -3
  195. package/dist/esm/kup-qlik.entry.js +4 -4
  196. package/dist/esm/kup-snackbar.entry.js +6 -6
  197. package/dist/esm/loader.js +3 -3
  198. package/dist/ketchup/index.esm.js +1 -1
  199. package/dist/ketchup/ketchup.esm.js +1 -1
  200. package/dist/ketchup/p-090e5097.entry.js +1 -0
  201. package/dist/ketchup/p-1474852d.entry.js +1 -0
  202. package/dist/ketchup/{p-ee30e274.entry.js → p-157f0e89.entry.js} +1 -1
  203. package/dist/ketchup/p-1cd48eea.entry.js +1 -0
  204. package/dist/ketchup/p-21351b19.entry.js +1 -0
  205. package/dist/ketchup/p-2b40d9b9.entry.js +1 -0
  206. package/dist/ketchup/p-31c0cfc0.entry.js +1 -0
  207. package/dist/ketchup/p-41e8402e.entry.js +1 -0
  208. package/dist/ketchup/p-47040db6.js +2 -0
  209. package/dist/ketchup/{p-82694fad.entry.js → p-4c100286.entry.js} +1 -1
  210. package/dist/ketchup/p-4dfc5927.entry.js +1 -0
  211. package/dist/ketchup/{p-35d503e2.js → p-590c34bc.js} +1 -1
  212. package/dist/ketchup/p-5c79cb74.js +1 -0
  213. package/dist/ketchup/p-670354ef.entry.js +1 -0
  214. package/dist/ketchup/p-837bd0a6.entry.js +1 -0
  215. package/dist/ketchup/p-935f58fc.js +1 -0
  216. package/dist/ketchup/{p-2778f948.js → p-9852b1e9.js} +1 -1
  217. package/dist/ketchup/p-9a856951.js +28 -0
  218. package/dist/ketchup/{p-86f9b0d9.js → p-a5074ce4.js} +1 -1
  219. package/dist/ketchup/p-ad6a3c2a.entry.js +1 -0
  220. package/dist/ketchup/p-b6a21b6a.entry.js +1 -0
  221. package/dist/ketchup/{p-5e16c9d3.js → p-ba0f28b7.js} +1 -1
  222. package/dist/ketchup/{p-f9766625.js → p-bedabdb5.js} +1 -1
  223. package/dist/ketchup/p-c6b34763.entry.js +1 -0
  224. package/dist/ketchup/p-ca42a421.entry.js +16 -0
  225. package/dist/ketchup/{p-4eb70dd2.entry.js → p-ca8a1f53.entry.js} +4 -4
  226. package/dist/ketchup/p-cbe42afd.entry.js +1 -0
  227. package/dist/ketchup/p-cc7352a8.entry.js +1 -0
  228. package/dist/ketchup/{p-c089b961.js → p-d50515f7.js} +1 -1
  229. package/dist/ketchup/p-d608f866.entry.js +1 -0
  230. package/dist/ketchup/p-d839ce21.entry.js +9 -0
  231. package/dist/ketchup/p-d9284d98.entry.js +1 -0
  232. package/dist/ketchup/p-e0a1fbe7.entry.js +1 -0
  233. package/dist/ketchup/p-e0c10de2.entry.js +1 -0
  234. package/dist/ketchup/{p-dc18691c.js → p-e2bf2bb6.js} +1 -1
  235. package/dist/ketchup/{p-4c20fefd.entry.js → p-e508b2fd.entry.js} +1 -1
  236. package/dist/ketchup/p-ec4050e1.entry.js +1 -0
  237. package/dist/types/components/kup-box/kup-box.d.ts +1 -0
  238. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +1 -0
  239. package/dist/types/components/kup-data-table/kup-data-table.d.ts +4 -0
  240. package/dist/types/components/kup-image-list/kup-image-list-declarations.d.ts +19 -4
  241. package/dist/types/components/kup-image-list/kup-image-list.d.ts +13 -11
  242. package/dist/types/components/kup-planner/kup-planner.d.ts +1 -0
  243. package/dist/types/components/kup-planner/utils/kup-gantt/kup-gantt.d.ts +4 -0
  244. package/dist/types/components/kup-planner/utils/kup-planner-renderer.d.ts +6 -0
  245. package/dist/types/components.d.ts +44 -8
  246. package/dist/types/f-components/f-image/f-image-declarations.d.ts +3 -4
  247. package/dist/types/managers/kup-dates/kup-dates.d.ts +2 -2
  248. package/dist/types/managers/kup-interact/kup-interact.d.ts +5 -0
  249. package/package.json +1 -1
  250. package/dist/ketchup/p-02820c2b.entry.js +0 -1
  251. package/dist/ketchup/p-09d853c3.entry.js +0 -1
  252. package/dist/ketchup/p-14e1a36b.entry.js +0 -1
  253. package/dist/ketchup/p-1936c6cd.entry.js +0 -1
  254. package/dist/ketchup/p-1ad7fea0.js +0 -2
  255. package/dist/ketchup/p-318c9ecd.entry.js +0 -1
  256. package/dist/ketchup/p-35dce86e.entry.js +0 -1
  257. package/dist/ketchup/p-3c9ac0fd.entry.js +0 -1
  258. package/dist/ketchup/p-5739cdc2.entry.js +0 -1
  259. package/dist/ketchup/p-5ab3a88a.entry.js +0 -1
  260. package/dist/ketchup/p-6780a391.js +0 -1
  261. package/dist/ketchup/p-67930d7c.entry.js +0 -1
  262. package/dist/ketchup/p-6953f769.entry.js +0 -1
  263. package/dist/ketchup/p-7d2fd8bd.entry.js +0 -1
  264. package/dist/ketchup/p-8257141a.entry.js +0 -1
  265. package/dist/ketchup/p-8ea68d14.entry.js +0 -1
  266. package/dist/ketchup/p-98c72335.entry.js +0 -1
  267. package/dist/ketchup/p-ab8cac45.entry.js +0 -1
  268. package/dist/ketchup/p-b5d3c24d.entry.js +0 -1
  269. package/dist/ketchup/p-cdb24584.entry.js +0 -1
  270. package/dist/ketchup/p-d466d6d1.entry.js +0 -1
  271. package/dist/ketchup/p-de07d17e.js +0 -1
  272. package/dist/ketchup/p-df450df9.entry.js +0 -16
  273. package/dist/ketchup/p-f31530fc.js +0 -28
  274. package/dist/ketchup/p-f353805e.entry.js +0 -1
  275. package/dist/ketchup/p-f515308d.entry.js +0 -9
@@ -1 +1 @@
1
- import{h as e,g as l}from"./p-1ad7fea0.js";import{a as t}from"./p-f31530fc.js";const i=document.documentElement,n=(l,t)=>e("div",Object.assign({class:`f-text-field ${l.danger?"kup-danger":""} ${l.fullHeight?"kup-full-height":""} ${l.fullWidth?"kup-full-width":""} ${l.info?"kup-info":""} ${l.secondary?"kup-secondary":""} ${l.shaped?"kup-shaped":""} ${l.success?"kup-success":""} ${l.warning?"kup-warning":""} ${l.wrapperClass?l.wrapperClass:""}`},l.dataSet,{id:l.id,title:l.title}),l.leadingLabel||l.trailingLabel?e("div",{class:"mdc-form-field "+(l.leadingLabel?"mdc-form-field--align-end":"")},[d(l),c(l),e("label",null,l.label)]):[d(l),c(l)],t);function d(n){var d,c;const o=n.textArea||n.outlined;let s,r;if(!n.label||n.leadingLabel||n.trailingLabel||(s=e("label",{class:"mdc-floating-label",htmlFor:"kup-input"},n.label)),n.icon){let i,d="";if(Object.values(t).indexOf(n.icon)>-1)d=n.icon.replace("--","");else{let e=`url('${l(`./assets/svg/${n.icon}.svg`)}') no-repeat center`;i={mask:e,webkitMask:e}}r=e("span",{style:i,onClick:n.onIconClick,class:`mdc-text-field__icon kup-icon action ${d}`})}const u={"is-clearable":n.isClearable,"mdc-text-field":!0,"mdc-text-field--disabled":n.disabled,"mdc-text-field--filled":!n.fullWidth&&!o,"mdc-text-field--no-label":!n.label,"mdc-text-field--fullwidth":n.fullWidth,"mdc-text-field--outlined":o,"mdc-text-field--textarea":n.textArea,"mdc-text-field--with-leading-icon":n.icon&&!n.trailingIcon,"mdc-text-field--with-trailing-icon":n.icon&&n.trailingIcon};let f=n.value,m=null!==(d=n.inputType)&&void 0!==d?d:"text",p=!1;if("number"===n.inputType&&(n.decimals&&n.decimals>0||n.group)&&(m="text",p=!0),"number"===n.inputType){const e={allowNegative:null===(c=n.allowNegative)||void 0===c||c,decimal:n.decimals,group:n.group,integer:n.integers};f=a(f,e,!1)}return e("div",{class:u},n.textArea&&n.maxLength?e("div",{class:"mdc-text-field-character-counter"},"'0 / ' + ",n.maxLength):void 0,n.trailingIcon?void 0:r,n.textArea?e("span",{class:"mdc-text-field__resizer"},e("textarea",{class:"mdc-text-field__input",disabled:n.disabled,readOnly:n.readOnly,maxlength:n.maxLength,value:f,onBlur:n.onBlur,onClick:n.onClick,onChange:n.onChange,onFocus:n.onFocus,onInput:n.onInput,onKeyDown:n.onKeyDown})):e("input",{inputmode:n.inputMode?n.inputMode:void 0,type:m,step:n.step,min:n.min,max:n.max,name:n.name,class:"mdc-text-field__input",disabled:n.disabled,readOnly:n.readOnly,placeholder:n.fullWidth&&!n.outlined?n.label:void 0,maxlength:n.maxLength,size:n.size,value:f,onBlur:e=>{var l;if(p){const t={allowNegative:null===(l=n.allowNegative)||void 0===l||l,decimal:n.decimals,group:n.group,integer:n.integers};e.target.value=a(e.target.value,t,!0)}n.onBlur&&n.onBlur(e)},onChange:e=>{var l;if(p){const t={allowNegative:null===(l=n.allowNegative)||void 0===l||l,decimal:n.decimals,group:n.group,integer:n.integers};e.target.value=null!=n.min&&n.min>parseFloat(e.target.value)?a(n.min.toString(),t,!0):null!=n.max&&n.max<parseFloat(e.target.value)?a(n.max.toString(),t,!0):a(e.target.value,t,!0)}else null!=n.min&&n.min>parseFloat(e.target.value)?e.target.value=n.min.toString():null!=n.max&&n.max<parseFloat(e.target.value)&&(e.target.value=n.max.toString());n.onChange&&n.onChange(e)},onClick:n.onClick,onFocus:n.onFocus,onInput:n.onInput,onKeyDown:n.onKeyDown,onKeyPress:e=>{var l;if(!p)return;if(e.ctrlKey)return;if(e.key.length>1)return;const t={allowNegative:null===(l=n.allowNegative)||void 0===l||l,decimal:n.decimals,group:n.group,integer:n.integers};let d=e.target,c=d.value,a=c.substring(0,d.selectionStart),o=c.substring(d.selectionEnd,d.selectionEnd+c.length-1);i.ketchup.math.matchNumericValueWithOptions(a+e.key+o,t)||e.preventDefault()}}),n.isClearable?e("span",{class:`mdc-text-field__icon kup-icon ${t.CLEAR.replace("--","")}`,onClick:n.onClearIconClick}):void 0,n.trailingIcon?r:void 0,n.fullWidth||o?void 0:s,o?e("div",{class:"mdc-notched-outline"},e("div",{class:"mdc-notched-outline__leading"}),e("div",{class:"mdc-notched-outline__notch"},s),e("div",{class:"mdc-notched-outline__trailing"})):e("span",{class:"mdc-line-ripple"}))}function c(l){if(!1!==l.helperEnabled){if(l.helper)return e("div",{class:"mdc-text-field-helper-line"},e("div",{class:{"mdc-text-field-helper-text":!0,"mdc-text-field-helper-text--persistent":!l.helperWhenFocused}},l.helper),!0!==l.hiddenCounter&&l.maxLength&&!l.textArea?e("div",{class:"mdc-text-field-character-counter"},"'0 / ' + ",l.maxLength.toString()):void 0);if(!0!==l.hiddenCounter&&l.maxLength&&!l.textArea)return e("div",{class:"mdc-text-field-helper-line"},e("div",{class:"mdc-text-field-character-counter"},"'0 / ' + ",l.maxLength))}}const a=function(e,l,t){let n=e;return n?"-"==n?"":i.ketchup.math.format(n,i.ketchup.math.createFormatPattern(l.group,l.decimal),t):n};export{n as F}
1
+ import{h as e,g as l}from"./p-47040db6.js";import{a as t}from"./p-9a856951.js";const i=document.documentElement,n=(l,t)=>e("div",Object.assign({class:`f-text-field ${l.danger?"kup-danger":""} ${l.fullHeight?"kup-full-height":""} ${l.fullWidth?"kup-full-width":""} ${l.info?"kup-info":""} ${l.secondary?"kup-secondary":""} ${l.shaped?"kup-shaped":""} ${l.success?"kup-success":""} ${l.warning?"kup-warning":""} ${l.wrapperClass?l.wrapperClass:""}`},l.dataSet,{id:l.id,title:l.title}),l.leadingLabel||l.trailingLabel?e("div",{class:"mdc-form-field "+(l.leadingLabel?"mdc-form-field--align-end":"")},[d(l),c(l),e("label",null,l.label)]):[d(l),c(l)],t);function d(n){var d,c;const o=n.textArea||n.outlined;let s,r;if(!n.label||n.leadingLabel||n.trailingLabel||(s=e("label",{class:"mdc-floating-label",htmlFor:"kup-input"},n.label)),n.icon){let i,d="";if(Object.values(t).indexOf(n.icon)>-1)d=n.icon.replace("--","");else{let e=`url('${l(`./assets/svg/${n.icon}.svg`)}') no-repeat center`;i={mask:e,webkitMask:e}}r=e("span",{style:i,onClick:n.onIconClick,class:`mdc-text-field__icon kup-icon action ${d}`})}const u={"is-clearable":n.isClearable,"mdc-text-field":!0,"mdc-text-field--disabled":n.disabled,"mdc-text-field--filled":!n.fullWidth&&!o,"mdc-text-field--no-label":!n.label,"mdc-text-field--fullwidth":n.fullWidth,"mdc-text-field--outlined":o,"mdc-text-field--textarea":n.textArea,"mdc-text-field--with-leading-icon":n.icon&&!n.trailingIcon,"mdc-text-field--with-trailing-icon":n.icon&&n.trailingIcon};let m=n.value,f=null!==(d=n.inputType)&&void 0!==d?d:"text",p=!1;if("number"===n.inputType&&(n.decimals&&n.decimals>0||n.group)&&(f="text",p=!0),"number"===n.inputType){const e={allowNegative:null===(c=n.allowNegative)||void 0===c||c,decimal:n.decimals,group:n.group,integer:n.integers};m=a(m,e,!1)}return e("div",{class:u},n.textArea&&n.maxLength?e("div",{class:"mdc-text-field-character-counter"},"'0 / ' + ",n.maxLength):void 0,n.trailingIcon?void 0:r,n.textArea?e("span",{class:"mdc-text-field__resizer"},e("textarea",{class:"mdc-text-field__input",disabled:n.disabled,readOnly:n.readOnly,maxlength:n.maxLength,value:m,onBlur:n.onBlur,onClick:n.onClick,onChange:n.onChange,onFocus:n.onFocus,onInput:n.onInput,onKeyDown:n.onKeyDown})):e("input",{inputmode:n.inputMode?n.inputMode:void 0,type:f,step:n.step,min:n.min,max:n.max,name:n.name,class:"mdc-text-field__input",disabled:n.disabled,readOnly:n.readOnly,placeholder:n.fullWidth&&!n.outlined?n.label:void 0,maxlength:n.maxLength,size:n.size,value:m,onBlur:e=>{var l;if(p){const t={allowNegative:null===(l=n.allowNegative)||void 0===l||l,decimal:n.decimals,group:n.group,integer:n.integers};e.target.value=a(e.target.value,t,!0)}n.onBlur&&n.onBlur(e)},onChange:e=>{var l;if(p){const t={allowNegative:null===(l=n.allowNegative)||void 0===l||l,decimal:n.decimals,group:n.group,integer:n.integers};e.target.value=null!=n.min&&n.min>parseFloat(e.target.value)?a(n.min.toString(),t,!0):null!=n.max&&n.max<parseFloat(e.target.value)?a(n.max.toString(),t,!0):a(e.target.value,t,!0)}else null!=n.min&&n.min>parseFloat(e.target.value)?e.target.value=n.min.toString():null!=n.max&&n.max<parseFloat(e.target.value)&&(e.target.value=n.max.toString());n.onChange&&n.onChange(e)},onClick:n.onClick,onFocus:n.onFocus,onInput:n.onInput,onKeyDown:n.onKeyDown,onKeyPress:e=>{var l;if(!p)return;if(e.ctrlKey)return;if(e.key.length>1)return;const t={allowNegative:null===(l=n.allowNegative)||void 0===l||l,decimal:n.decimals,group:n.group,integer:n.integers};let d=e.target,c=d.value,a=c.substring(0,d.selectionStart),o=c.substring(d.selectionEnd,d.selectionEnd+c.length-1);i.ketchup.math.matchNumericValueWithOptions(a+e.key+o,t)||e.preventDefault()}}),n.isClearable?e("span",{class:`mdc-text-field__icon kup-icon ${t.CLEAR.replace("--","")}`,onClick:n.onClearIconClick}):void 0,n.trailingIcon?r:void 0,n.fullWidth||o?void 0:s,o?e("div",{class:"mdc-notched-outline"},e("div",{class:"mdc-notched-outline__leading"}),e("div",{class:"mdc-notched-outline__notch"},s),e("div",{class:"mdc-notched-outline__trailing"})):e("span",{class:"mdc-line-ripple"}))}function c(l){if(!1!==l.helperEnabled){if(l.helper)return e("div",{class:"mdc-text-field-helper-line"},e("div",{class:{"mdc-text-field-helper-text":!0,"mdc-text-field-helper-text--persistent":!l.helperWhenFocused}},l.helper),!0!==l.hiddenCounter&&l.maxLength&&!l.textArea?e("div",{class:"mdc-text-field-character-counter"},"'0 / ' + ",l.maxLength.toString()):void 0);if(!0!==l.hiddenCounter&&l.maxLength&&!l.textArea)return e("div",{class:"mdc-text-field-helper-line"},e("div",{class:"mdc-text-field-character-counter"},"'0 / ' + ",l.maxLength))}}const a=function(e,l,t){let n=e;return n?"-"==n?"":i.ketchup.math.format(n,i.ketchup.math.createFormatPattern(l.group,l.decimal),t):n};export{n as F}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,f as i,h as a,H as h,d as n}from"./p-47040db6.js";import{k as o,g as p,s}from"./p-9a856951.js";import{c as l}from"./p-635bb4b3.js";import"./p-935f58fc.js";var f,c;!function(t){t.componentName="Sets the tag name of the component to be lazy loaded.",t.customStyle="Custom style of the component.",t.data="Sets the data of the component to be lazy loaded.",t.showPlaceholder="Displays an animated SVG placeholder until the component is loaded."}(f||(f={})),function(t){t.VIEWPORT="viewport",t.PROPS="props",t.BOTH="both"}(c||(c={}));const r=class{constructor(i){t(this,i),this.kupLazyLoaded=e(this,"kup-lazy-loaded",6),this.intObserver=null,this.kupManager=o(),this.lazyComponent=null,this.lazyComponentLoaded=!1,this.isInViewport=!1,this.componentName=null,this.customStyle="",this.data=null,this.renderMode=c.BOTH,this.showPlaceholder=!0}async getProps(t){return p(this,f,t)}async getComponent(){return this.lazyComponent}async refresh(){i(this)}async setProps(t){s(this,f,t)}setObserver(){this.intObserver=new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting&&(this.kupManager.debug.logMessage(this,"kup-lazy entering the viewport, rendering "+this.componentName+"."),this.isInViewport=!0,this.intObserver.unobserve(this.rootElement))}))}),{threshold:.25})}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.theme.register(this),this.setObserver()}componentDidLoad(){this.intObserver.observe(this.rootElement),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.lazyComponent&&!this.lazyComponentLoaded&&(this.lazyComponentLoaded=!0,this.kupLazyLoaded.emit({comp:this,id:this.rootElement.id})),this.kupManager.debug.logRender(this,!0)}render(){let t,e,i=this.componentName;switch(this.componentName){case"kup-button":e=a("svg",{key:"443fa9b66f9c77621cb7a377eb920bc60c59bde9",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},a("path",{key:"89cf45ecbcd72a193b5a34c767870de6c29c12ca",d:"M42 6H6c-2.2 0-4 1.8-4 4v28c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4V10c0-2.2-1.8-4-4-4zm0 32H6v-6h36v6z"}));break;case"kup-card":e=a("svg",{key:"dd9f6feeb37d8a9e35e7666bad5a01891f35379d",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},a("path",{key:"63a2e64edf16b4536a0229ea2a8bcc61b5edfd34",d:"M44 26H28v-4h16v4zm0-12H28v4h16v-4zM28 34h16v-4H28v4zm-4-16v12c0 2.2-1.8 4-4 4H8c-2.2 0-4-1.8-4-4V18c0-2.2 1.8-4 4-4h12c2.2 0 4 1.8 4 4zm-3 12l-4.5-6-3.5 4.51-2.5-3.01L7 30h14z"}));break;case"kup-checkbox":e=a("svg",{key:"974137d7bdc5d82995437999b798c5b559a4dcbf",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},a("path",{key:"a74fe51dc66ed1f8780d52d99424f53cd6357877",d:"M38 10v28H10V10h28m0-4H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4z"}));break;case"kup-chart":e=a("svg",{key:"721b36d96e2b04b83a81cf90f3cf687983ab2cec",xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",viewBox:"0 0 24 24"},a("path",{key:"58b44e235faeec04c16fd483e06f2319d06c0d46",d:"M22,21H2V3H4V19H6V10H10V19H12V6H16V19H18V14H22V21Z"}));break;case"kup-data-table":e=a("svg",{key:"f3afac4818e7716418876a9aa31fccef8ec01065",xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",viewBox:"0 0 24 24"},a("path",{key:"5f65fcb7cfe13a5ceb622277c0254ea5fc10cbfd",d:"M4,3H20A2,2 0 0,1 22,5V20A2,2 0 0,1 20,22H4A2,2 0 0,1 2,20V5A2,2 0 0,1 4,3M4,7V10H8V7H4M10,7V10H14V7H10M20,10V7H16V10H20M4,12V15H8V12H4M4,20H8V17H4V20M10,12V15H14V12H10M10,20H14V17H10V20M20,20V17H16V20H20M20,12H16V15H20V12Z"}));break;case"kup-image":e=a("svg",{key:"9ef1ec66b4d9f1bfb857050c7675bc603a6e3c28",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},a("path",{key:"b7af93b41b90594b3796845fcdbfef1b58da2e9f",d:"M42 38V10c0-2.21-1.79-4-4-4H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4zM17 27l5 6.01L29 24l9 12H10l7-9z"}));break;case"kup-progress-bar":e=a("svg",{key:"927e099e9635eaa351c215038215b16c482cbb4e",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},a("path",{key:"19b0203ffa92bef2fccfab60d1d371991f27e9fe",d:"M39 19c-2.05 0-3.81 1.23-4.58 3h-5.84c-.77-1.77-2.53-3-4.58-3s-3.81 1.23-4.58 3h-5.84c-.77-1.77-2.53-3-4.58-3-2.77 0-5 2.23-5 5s2.23 5 5 5c2.05 0 3.81-1.23 4.58-3h5.84c.77 1.77 2.53 3 4.58 3s3.81-1.23 4.58-3h5.84c.77 1.77 2.53 3 4.58 3 2.77 0 5-2.23 5-5s-2.23-5-5-5z"}));break;case"kup-radio":e=a("svg",{key:"54722f3674a50a06b25d6b522b3e6c16f17bc38f",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},a("path",{key:"4072725741e4e13718719a58a04e7b38d970474c",d:"M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}));break;default:e=a("svg",{key:"6f01bf46027c471e23977744437b772389f11373",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},a("path",{key:"a06e38a7b791a7bbbfdfa214410118c354db1bba",d:"M44 26H28v-4h16v4zm0-12H28v4h16v-4zM28 34h16v-4H28v4zm-4-16v12c0 2.2-1.8 4-4 4H8c-2.2 0-4-1.8-4-4V18c0-2.2 1.8-4 4-4h12c2.2 0 4 1.8 4 4zm-3 12l-4.5-6-3.5 4.51-2.5-3.01L7 30h14z"}))}return this.renderMode===c.VIEWPORT&&this.isInViewport||this.renderMode===c.PROPS&&this.data||this.renderMode===c.BOTH&&this.data&&this.isInViewport?(t=a(this.componentName,Object.assign({key:"b11a009ad63262e8fd26d8e672fecb829b89d190"},this.data,{ref:t=>this.lazyComponent=t})),i+=" kup-loaded"):this.showPlaceholder&&(t=e,i+=" kup-to-be-loaded"),a(h,{key:"c7c2773d030703d7034705075df18657481ecbe6",class:i},a("style",{key:"b83be89f8a9f9b394dba345e6b764361e890c8ed"},this.kupManager.theme.setKupStyle(this.rootElement)),a("div",{key:"262125d048ac9f2d99c2f6a3ccb99f8286a35e99",id:l},t))}disconnectedCallback(){var t;this.kupManager.theme.unregister(this),null===(t=this.intObserver)||void 0===t||t.unobserve(this.rootElement)}get rootElement(){return n(this)}};r.style=".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{--kup_lazy_animation_time:var(--kup-lazy-animation-time, 2s);--kup_lazy_hor_alignment:var(--kup-lazy-hor-alignment, center);--kup_lazy_placeholder_color:var(\n --kup-lazy-placeholder-color,\n var(--kup-icon-color)\n );--kup_lazy_height:var(--kup-lazy-height, 100%);--kup_lazy_ver_alignment:var(--kup-lazy-ver-alignment, center);--kup_lazy_width:var(--kup-lazy-width, 100%);display:block;height:var(--kup_lazy_height);width:var(--kup_lazy_width);position:relative}#kup-component{align-items:var(--kup_lazy_ver_alignment);display:flex;justify-content:var(--kup_lazy_hor_alignment);height:var(--kup_lazy_height);width:var(--kup_lazy_width)}#kup-component>*{height:var(--kup_lazy_height)}#kup-component kup-data-table{min-width:100%}.kup-loaded,.kup-to-be-loaded{height:var(--kup_lazy_height);width:var(--kup_lazy_width)}svg{fill:var(--kup_lazy_placeholder_color);animation:shine ease var(--kup_lazy_animation_time) infinite}@keyframes shine{0%{opacity:0.4}50%{opacity:0.8}100%{opacity:0.4}}:host(.kup-bottom-aligned){--kup-lazy-ver-alignment:flex-end}:host(.kup-left-aligned){--kup-lazy-hor-alignment:flex-start}:host(.kup-right-aligned){--kup-lazy-hor-alignment:flex-end}:host(.kup-top-aligned){--kup-lazy-ver-alignment:flex-start}:host(.kup-to-be-loaded) #kup-component{position:absolute}:host(.kup-to-be-loaded) #kup-component>*{margin:auto}";export{r as kup_lazy}
@@ -0,0 +1 @@
1
+ import{r,c as t,f as e,h as o,H as i,d as a}from"./p-47040db6.js";import{k as p,g as n,s}from"./p-9a856951.js";import{c as l}from"./p-635bb4b3.js";import"./p-935f58fc.js";const d="drawer";var h;!function(r){r.customStyle="Custom style of the component.",r.opened="Defaults at false. When set to true, the drawer appears."}(h||(h={}));const c=class{constructor(e){r(this,e),this.kupDrawerClose=t(this,"kup-drawer-close",6),this.kupDrawerOpen=t(this,"kup-drawer-open",6),this.kupDrawerReady=t(this,"kup-drawer-ready",6),this.kupManager=p(),this.opened=!1,this.customStyle=""}async close(){this.opened=!1,this.kupDrawerClose.emit({comp:this,id:this.rootElement.id})}async getProps(r){return n(this,h,r)}async isOpened(){return this.opened}async open(){this.opened=!0,this.kupDrawerOpen.emit({comp:this,id:this.rootElement.id})}async refresh(){e(this)}async setProps(r){s(this,h,r)}async toggle(){this.opened?this.close():this.open()}content(){const r=[],t=Array.prototype.slice.call(this.rootElement.children,0),e=[];for(let e=0;e<t.length;e++)r.push(o("slot",null));return e.push(o("div",{class:`${d}__content`},r)),e}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.theme.register(this)}componentDidLoad(){this.kupDrawerReady.emit({comp:this,id:this.rootElement.id}),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){return o(i,{key:"862fc022944ee0862f4d53ae589e9266e18adf3a","kup-opened":this.opened},o("style",{key:"428062c25d92fa7f034365196319c36a3d43d417"},this.kupManager.theme.setKupStyle(this.rootElement)),o("div",{key:"0cd3e4d4363dd338cc0b47aecc3a505a716cc0cc",class:"backdrop",onClick:r=>{r.preventDefault(),r.stopPropagation()},onPointerDown:r=>{r.preventDefault(),r.stopPropagation(),this.close()},onTouchStart:r=>{r.preventDefault(),r.stopPropagation()}}),o("div",{key:"1c65d469467e3efddf3a58a729670037ecefb0f3",id:l},o("div",{key:"75e507b1574cf744216c9eeee76967f8eda2633a",class:d},this.content())))}disconnectedCallback(){this.kupManager.theme.unregister(this)}get rootElement(){return a(this)}};c.style=".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{--kup_drawer_backdrop:var(--kup-drawer-backdrop, rgba(0, 0, 0, 0.32));--kup_drawer_box_shadow:var(\n --kup-drawer-box-shadow,\n 0 8px 10px -5px rgba(0, 0, 0, 0.2),\n 0 16px 24px 2px rgba(0, 0, 0, 0.14),\n 0 6px 30px 5px rgba(0, 0, 0, 0.12)\n );--kup_drawer_permanent_border:var(\n --kup-drawer-permanent-border,\n 1px solid var(--kup-border-color)\n );--kup_drawer_slide_transition:var(--kup-drawer-slide-transition, 750ms);--kup_drawer_transition:var(--kup-drawer-transition, 250ms);box-shadow:var(--kup_drawer_box_shadow);display:block;font-size:var(--kup-font-size);height:100vh;left:calc(var(--kup-drawer-width) * -1);position:fixed;top:0;transition:left var(--kup_drawer_slide_transition) cubic-bezier(0.4, 0, 0.2, 1), right var(--kup_drawer_slide_transition) cubic-bezier(0.4, 0, 0.2, 1);width:var(--kup-drawer-width);z-index:var(--kup-drawer-zindex)}#kup-component{height:100%;width:100%}.backdrop{background:var(--kup_drawer_backdrop);display:none;height:100%;left:0;position:fixed;top:0;width:100%;z-index:var(--kup-drawer-zindex)}.drawer{height:100%;position:fixed;width:var(--kup-drawer-width);z-index:calc(var(--kup-drawer-zindex) + 1)}.drawer__content{background-color:var(--kup-drawer-background-color);box-sizing:border-box;height:100%;overflow-y:auto;width:100%}.drawer ::slotted(*){--kup-button-primary-color:var(--kup-drawer-color);--kup-button-primary-color-rgb:var(--kup-drawer-color-rgb);--kup-button-primary-color-h:var(--kup-drawer-color-h);--kup-button-primary-color-s:var(--kup-drawer-color-s);--kup-button-primary-color-l:var(--kup-drawer-color-l);--kup-switch-label-color:var(--kup-drawer-color);--kup-switch-primary-color:var(--kup-drawer-color);--kup-switch-primary-color-rgb:var(--kup-drawer-color-rgb);--kup-textfield-color:var(--kup-drawer-color);--kup-textfield-color-rgb:var(--kup-drawer-color-rgb);--kup-textfield-primary-color:var(--kup-drawer-color);--kup-textfield-primary-color-rgb:var(--kup-drawer-color-rgb);--kup-tree-color:var(--kup-drawer-color);--kup-tree-color-rgb:var(--kup-drawer-color-rgb);--kup-tree-filter-background-color:var(--kup-drawer-background-color);--kup-tree-icon-color:var(--kup-drawer-color);color:var(--kup-drawer-color);fill:var(--kup-drawer-color)}:host([kup-opened]){left:0}:host([kup-opened]) .backdrop{display:block}:host(.kup-right){left:unset;right:-100%}:host([kup-opened].kup-right){right:0}:host(.kup-permanent){box-shadow:unset;transition:all 250ms}:host(.kup-permanent) .backdrop{display:none}:host(.kup-permanent) .drawer{position:relative}:host(.kup-permanent) .drawer__content{border-right:var(--kup_drawer_permanent_border)}";export{c as kup_drawer}
@@ -1 +1 @@
1
- import{h as c}from"./p-1ad7fea0.js";import{F as i}from"./p-c089b961.js";import{a as s,l as e,c as n}from"./p-f31530fc.js";var p;!function(c){c.CHOICE="choice",c.FILTER="filter",c.INPUT="input",c.STANDARD="standard"}(p||(p={}));const l=document.documentElement,a=a=>{a.type||(a.type=p.STANDARD);const r=a.type.toLowerCase()===p.CHOICE,t=a.type.toLowerCase()===p.FILTER,o=a.type.toLowerCase()===p.INPUT,d={"chip-set":!0,"chip-set--choice":!!r,"chip-set--filter":!!t,"chip-set--input":!!o};return c("div",Object.assign({class:`f-chip ${a.danger?"kup-danger":""} ${a.info?"kup-info":""} ${a.secondary?"kup-secondary":""} ${a.success?"kup-success":""} ${a.warning?"kup-warning":""} ${a.wrapperClass?a.wrapperClass:""}`},a.dataSet,{id:a.id,title:a.title}),c("div",{class:d,role:"grid"},function(p,a,r,t){const o=[];for(let d=0;p.data&&d<p.data.length;d++){const h=[];function u(n,a){const r=!!(n.children&&n.children.length>0),t=!(!r||!n.isExpanded),o={"--kup_chip_indent_offset":a.toString()};if(h.push(c("div",{class:"chip-set__wrapper "+(r&&!t?"chip-set__wrapper--hidden-children":"")},c("div",{class:"chip-set__indent",style:o}),r?c(i,{onClick:p.onExpansionClick&&p.onExpansionClick[d]?p.onExpansionClick[d].bind(p.onExpansionClick[d],n):null,resource:`${s.DROPDOWN}`,sizeX:"18px",sizeY:"18px",title:l.ketchup.language.translate(e.EXPAND)+"/"+l.ketchup.language.translate(e.COLLAPSE)+" (CTRL + Click)",wrapperClass:"dropdown-icon"}):a?c(i,{resource:"blank",sizeX:"18px",sizeY:"18px",wrapperClass:"dropdown-icon"}):null,_(n))),t)for(let c=0;c<n.children.length;c++)n.children[c]&&u(n.children[c],a+1)}function _(e){let l="chip "+(e.icon&&!e.value?"chip--only-icon":""),o=[],h="chip__icon chip__icon--leading";return(r||a)&&e.checked&&(l+=" chip--selected",r&&(h+=" chip__icon--leading-hidden")),e.icon&&o.push(c(i,Object.assign({},{color:a&&e.checked?`var(${n.PRIMARY})`:`var(${n.TEXT})`,resource:e.icon,sizeX:"18px",sizeY:"18px",wrapperClass:h}))),r&&o.push(c("span",{class:"chip__checkmark"},c("svg",{class:"chip__checkmark-svg",viewBox:"-2 -3 30 30"},c("path",{class:"chip__checkmark-path",fill:"none",stroke:"black",d:"M1.73,12.91 8.1,19.28 22.79,4.59"})))),c("div",{class:l,"data-value":e.id,onClick:p.onClick&&p.onClick[d]?p.onClick[d].bind(p.onClick[d],e):null,role:"row",title:e.title?e.title:""},c("span",{class:"chip-set__indent"}),o,c("span",{role:"gridcell"},c("span",{role:"button",tabindex:d,class:"chip__primary-action",value:e.id,checked:e.checked,onBlur:p.onBlur&&p.onBlur[d]?p.onBlur[d].bind(p.onBlur[d],e):null,onFocus:p.onFocus&&p.onFocus[d]?p.onFocus[d].bind(p.onFocus[d],e):null},c("span",{class:"chip__text"},p.displayId?e.id+" - "+e.value:e.value))),t?c("span",{role:"gridcell"},c("span",{tabindex:"-1",class:`kup-icon chip__icon ${s.CLEAR.replace("--","")}`,onClick:p.onIconClick&&p.onIconClick[d]?p.onIconClick[d].bind(p.onIconClick[d],e):null})):null)}u(p.data[d],0),o.push(c("div",{class:"chip-set__item"},...h))}return o}(a,r,t,o)))};export{p as F,a}
1
+ import{h as c}from"./p-47040db6.js";import{F as i}from"./p-d50515f7.js";import{a as s,l as e,c as n}from"./p-9a856951.js";var p;!function(c){c.CHOICE="choice",c.FILTER="filter",c.INPUT="input",c.STANDARD="standard"}(p||(p={}));const l=document.documentElement,a=a=>{a.type||(a.type=p.STANDARD);const r=a.type.toLowerCase()===p.CHOICE,t=a.type.toLowerCase()===p.FILTER,o=a.type.toLowerCase()===p.INPUT,d={"chip-set":!0,"chip-set--choice":!!r,"chip-set--filter":!!t,"chip-set--input":!!o};return c("div",Object.assign({class:`f-chip ${a.danger?"kup-danger":""} ${a.info?"kup-info":""} ${a.secondary?"kup-secondary":""} ${a.success?"kup-success":""} ${a.warning?"kup-warning":""} ${a.wrapperClass?a.wrapperClass:""}`},a.dataSet,{id:a.id,title:a.title}),c("div",{class:d,role:"grid"},function(p,a,r,t){const o=[];for(let d=0;p.data&&d<p.data.length;d++){const h=[];function u(n,a){const r=!!(n.children&&n.children.length>0),t=!(!r||!n.isExpanded),o={"--kup_chip_indent_offset":a.toString()};if(h.push(c("div",{class:"chip-set__wrapper "+(r&&!t?"chip-set__wrapper--hidden-children":"")},c("div",{class:"chip-set__indent",style:o}),r?c(i,{onClick:p.onExpansionClick&&p.onExpansionClick[d]?p.onExpansionClick[d].bind(p.onExpansionClick[d],n):null,resource:`${s.DROPDOWN}`,sizeX:"18px",sizeY:"18px",title:l.ketchup.language.translate(e.EXPAND)+"/"+l.ketchup.language.translate(e.COLLAPSE)+" (CTRL + Click)",wrapperClass:"dropdown-icon"}):a?c(i,{resource:"blank",sizeX:"18px",sizeY:"18px",wrapperClass:"dropdown-icon"}):null,_(n))),t)for(let c=0;c<n.children.length;c++)n.children[c]&&u(n.children[c],a+1)}function _(e){let l="chip "+(e.icon&&!e.value?"chip--only-icon":""),o=[],h="chip__icon chip__icon--leading";return(r||a)&&e.checked&&(l+=" chip--selected",r&&(h+=" chip__icon--leading-hidden")),e.icon&&o.push(c(i,Object.assign({},{color:a&&e.checked?`var(${n.PRIMARY})`:`var(${n.TEXT})`,resource:e.icon,sizeX:"18px",sizeY:"18px",wrapperClass:h}))),r&&o.push(c("span",{class:"chip__checkmark"},c("svg",{class:"chip__checkmark-svg",viewBox:"-2 -3 30 30"},c("path",{class:"chip__checkmark-path",fill:"none",stroke:"black",d:"M1.73,12.91 8.1,19.28 22.79,4.59"})))),c("div",{class:l,"data-value":e.id,onClick:p.onClick&&p.onClick[d]?p.onClick[d].bind(p.onClick[d],e):null,role:"row",title:e.title?e.title:""},c("span",{class:"chip-set__indent"}),o,c("span",{role:"gridcell"},c("span",{role:"button",tabindex:d,class:"chip__primary-action",value:e.id,checked:e.checked,onBlur:p.onBlur&&p.onBlur[d]?p.onBlur[d].bind(p.onBlur[d],e):null,onFocus:p.onFocus&&p.onFocus[d]?p.onFocus[d].bind(p.onFocus[d],e):null},c("span",{class:"chip__text"},p.displayId?e.id+" - "+e.value:e.value))),t?c("span",{role:"gridcell"},c("span",{tabindex:"-1",class:`kup-icon chip__icon ${s.CLEAR.replace("--","")}`,onClick:p.onIconClick&&p.onIconClick[d]?p.onIconClick[d].bind(p.onIconClick[d],e):null})):null)}u(p.data[d],0),o.push(c("div",{class:"chip-set__item"},...h))}return o}(a,r,t,o)))};export{p as F,a}
@@ -1 +1 @@
1
- import{B as e,E as t,C as l,A as n,ac as r,u as i,w as o,ae as s,af as a,I as u,$ as c,ag as f,q as h,l as d}from"./p-f31530fc.js";import{K as p}from"./p-de07d17e.js";import{h as m}from"./p-1ad7fea0.js";import{F as b}from"./p-35d503e2.js";import{F as v}from"./p-c634eb82.js";class F extends e{getTextFilterValue(e={},t){return this._getTextFilterValue(e,t,!1)}getTextFilterValueTmp(e={},t){return this._getTextFilterValue(e,t,!0)}_getTextFilterValue(e={},t,l){let n="";if(null==e)return n;let r=e[t];return null==r||(n=l?r.textFieldTmp:r.textField),n}hasFiltersForColumn(e={},t){return this._hasFiltersForColumn(e,t,!1)}hasFiltersForColumnTmp(e={},t){return this._hasFiltersForColumn(e,t,!0)}_hasFiltersForColumn(e={},t,l){if(!t)return!1;let n=this._getTextFilterValue(e,t.name,l);if(null!=n&&""!=n.trim())return!0;if(this._hasIntervalTextFieldFilterValues(e,t,l))return!0;let r=this.getCheckBoxFilterValues(e,t.name);return!(null==r||r.length<1)}getCheckBoxFilterValues(e={},t){let l=[];if(null==e)return l;let n=e[t];return null==n||null==n.checkBoxes||(l=n.checkBoxes),l}hasIntervalTextFieldFilterValues(e={},t){return this._hasIntervalTextFieldFilterValues(e,t,!1)}hasIntervalTextFieldFilterValuesTmp(e={},t){return this._hasIntervalTextFieldFilterValues(e,t,!0)}_hasIntervalTextFieldFilterValues(e={},l,n){if(null==l)return!1;if(!this.isColumnFiltrableByInterval(l))return!1;let r=this._getIntervalTextFieldFilterValue(e,l.name,t.FROM,n);if(null!=r&&""!=r.trim())return!0;let i=this._getIntervalTextFieldFilterValue(e,l.name,t.TO,n);return null!=i&&""!=i.trim()}addCheckboxFilter(t={},l,n){if(null==t)return;let r=t[l];null==r&&(r={textField:"",textFieldTmp:"",checkBoxes:[],interval:null,intervalTmp:null},t[l]=r),null==r.checkBoxes&&(r.checkBoxes=[]),null==n||null==n.value?r.checkBoxes=[]:e.valuesArrayContainsValue(r.checkBoxes,n.value)||(r.checkBoxes[r.checkBoxes.length]=n)}removeCheckboxFilter(t={},l,n){if(null==t||null==n)return;let r=t[l];if(null==r)return;null==r.checkBoxes&&(r.checkBoxes=[]);let i=e.indexOfValueInValuesArray(r.checkBoxes,n);if(i>=0){let e=[];for(let t=0;t<r.checkBoxes.length;t++)t!=i&&(e[e.length]=r.checkBoxes[t]);r.checkBoxes=[...e]}}isColumnFiltrableByInterval(e){return this.isObjFiltrableByInterval(e.obj)}getIntervalTextFieldFilterValues(e={},t){return this._getIntervalTextFieldFilterValues(e,t,!1)}getIntervalTextFieldFilterValuesTmp(e={},t){return this._getIntervalTextFieldFilterValues(e,t,!0)}_getIntervalTextFieldFilterValues(e={},l,n){return this._hasIntervalTextFieldFilterValues(e,l,n)?[this._getIntervalTextFieldFilterValue(e,l.name,t.FROM,n),this._getIntervalTextFieldFilterValue(e,l.name,t.TO,n)]:["",""]}getIntervalTextFieldFilterValue(e={},t,l){return this._getIntervalTextFieldFilterValue(e,t,l,!1)}getIntervalTextFieldFilterValueTmp(e={},t,l){return this._getIntervalTextFieldFilterValue(e,t,l,!0)}_getIntervalTextFieldFilterValue(e={},t,l,n){let r="";if(null==e)return r;let i=e[t];return null==i||n&&null==i.intervalTmp?r:n||null!=i.interval?(r=n?i.intervalTmp[l]:i.interval[l],r):r}setTextFieldFilterValue(e={},t,l){this._setTextFieldFilterValue(e,t,l,!0)}_setTextFieldFilterValue(e={},t,l,n){if(null==e)return;let r=e[t];null==r&&(r={textField:"",textFieldTmp:"",checkBoxes:[],interval:null,intervalTmp:null},e[t]=r),n?r.textFieldTmp=null!=l?l.trim():l:r.textField=null!=l?l.trim():l}setIntervalTextFieldFilterValue(e={},t,l,n){this._setIntervalTextFieldFilterValue(e,t,l,n,!0)}_setIntervalTextFieldFilterValue(e={},t,l,n,r){if(null==e)return;let i=e[t];null==i&&(i={textField:"",textFieldTmp:"",checkBoxes:[],interval:null,intervalTmp:null},e[t]=i),null==i.interval&&(i.interval=[],i.interval.push("","")),null==i.intervalTmp&&(i.intervalTmp=[],i.intervalTmp.push("","")),r?i.intervalTmp[n]=null!=l?l.trim():l:i.interval[n]=null!=l?l.trim():l}saveTextualFilters(e={},l){this._setTextFieldFilterValue(e,l,this.getTextFilterValueTmp(e,l),!1),this._setIntervalTextFieldFilterValue(e,l,this.getIntervalTextFieldFilterValueTmp(e,l,t.FROM),t.FROM,!1),this._setIntervalTextFieldFilterValue(e,l,this.getIntervalTextFieldFilterValueTmp(e,l,t.TO),t.TO,!1)}resetTextualFilters(e={},l){this._setTextFieldFilterValue(e,l,this.getTextFilterValue(e,l),!0),this._setIntervalTextFieldFilterValue(e,l,this.getIntervalTextFieldFilterValue(e,l,t.FROM),t.FROM,!0),this._setIntervalTextFieldFilterValue(e,l,this.getIntervalTextFieldFilterValue(e,l,t.TO),t.TO,!0)}getFilterValueForTooltip(e={},r){let i=this.getTextFilterValue(e,r.name),o=this.getIntervalTextFieldFilterValues(e,r),s=this.getCheckBoxFilterValues(e,r.name),a="",u=l(i,r.obj,r.decimals);""!=i&&(a=" AND "),""!=o[t.FROM]&&(u+=a+"(>= "+l(o[t.FROM],r.obj,r.decimals)+")",a=" AND "),""!=o[t.TO]&&(u+=a+"(<= "+l(o[t.TO],r.obj,r.decimals)+")",a=" AND "),a="";let c="";return s.forEach((e=>{c+=a+n(e,r),a=" OR "})),""!=c&&(c="("+c+")",""!=u&&(c=" AND "+c)),c=u+c,c}removeFilter(e={},t){e[t]={textField:"",textFieldTmp:"",checkBoxes:[],interval:null,intervalTmp:null}}}var x;!function(e){e.asAccordion="When enabled, the first level of depth will give an accordion look to nodes.",e.columns="The columns of the tree when tree visualization is active.",e.customStyle="Custom style of the component.",e.data="The json data used to populate the tree view: the basic, always visible tree nodes.",e.density="The density of the rows, defaults at 'medium' and can also be set to 'dense' or 'wide'.",e.dynamicExpansionCallback="Function that gets invoked when a new set of nodes must be loaded as children of a node. When useDynamicExpansion is set, the tree component will have two different behaviors depending on the value of this prop. If this prop is set to null, no callback to download data is available: the component will emit an event requiring the parent to load the children of the given node. If this prop is set to have a callback, then the component will automatically make requests to load children of a given node. After the load has been completed, a different event will be fired to alert the parent of the change.",e.enableExtraColumns="Enables adding extra columns.",e.expanded="Flag: the nodes of the whole tree must be already expanded upon loading. Disabled nodes do NOT get expanded.",e.expansionMode="Behavior of nodes' expansion: it can be chosen between expanding a node by clicking on the dropdown icon, or by clicking on the whole node.",e.filters="List of filters set by the user.",e.globalFilter="When set to true it activates the global filter.",e.globalFilterValue="The value of the global filter.",e.globalFilterMode="The mode of the global filter.",e.removableColumns="Sets the possibility to remove the selected column.",e.preventXScroll="Experimental feature: when active, the tree will try to prevent horizontal overflowing elements by setting a width on the content of the table cells. It works only on cells of the main column.",e.ripple="When enabled displays Material's ripple effect on nodes (only when no columns are displayed).",e.scrollOnHover="Activates the scroll on hover function.",e.showColumns="Shows the tree data as a table.",e.showFilters="When set to true enables the column filters.",e.showFooter="When set to true shows the footer.",e.showHeader="Flag: shows the header of the tree when the tree is displayed as a table.",e.showIcons="Shows the icons of the nodes.",e.stateId="",e.store="",e.totals="Defines the current totals options.",e.useDynamicExpansion="When the component must use the dynamic expansion feature to open its nodes, it means that not all the nodes of the tree have been passed inside the data property. Therefore, when expanding a node, the tree must emit an event (or run a given callback) and wait for the child nodes to be downloaded from the server."}(x||(x={}));const w="TREE_COLUMN";var g;!function(e){e.DROPDOWN="dropdown",e.NODE="node"}(g||(g={}));const k=document.documentElement,T=k.ketchup?k.ketchup.objects:new o,y=k.ketchup?k.ketchup.data:new s;class j extends e{isFilterCompliantForCell(e,t,l){return!!e&&this.isFilterCompliantForSimpleValue(e.value,e.obj,t,l)}isFilterCompliantForCellObj(e,t,l){return!!e&&!!e.obj&&this.isFilterCompliantForSimpleValue(e.obj.k,e.obj,t,l)}isRowCompliant(e,t={},l="",n=!1,r=[],i){return this.areCellsCompliant(e.cells,t,l,n,r,i)}areCellsCompliant(e,t={},l="",n=!1,o=[],s){if(n){let t=!0;if(o&&null!=o&&o.length>0){t=!1;let n=this.filterIsNegative(l);for(let i=0;i<o.length;i++){if(0==o[i].visible)continue;const s=e[o[i].name];if(null==s)continue;t=this.isFilterCompliantForValue(s.value,l);let a=r(o[i],s);if(a!=s.value&&(t=t||this.isFilterCompliantForValue(a,l)),1==t&&!n)break;if(0==t&&n)break}}if(!t)return!1}if(null==s&&(s=new F),!this.hasFilters(t,o,s))return!0;let a=Object.keys(t);for(let l=0;l<a.length;l++){let n=a[l];const r=e[n];if(!r)return!1;let u=s.getTextFilterValue(t,n),c=s.getIntervalTextFieldFilterValues(t,i(o,n));const f=this.filterIsNegative(u);let h=this.isFilterCompliantForCell(r,u,c),d=f;if(T.isNumber(r.obj)||T.isDate(r.obj)||T.isTime(r.obj)||T.isTimestamp(r.obj)||(d=this.isFilterCompliantForCellObj(r,u,c)),f){if(!h||!d)return!1}else if(!h&&!d)return!1;let p=s.getCheckBoxFilterValues(t,n);if(0==p.length)continue;let m=!1;for(let e=0;e<p.length;e++){let t=p[e];if(null!=t&&null!=t.value){if(null!=r.value&&r.value.toLowerCase().trim()==t.value.toLowerCase().trim()){m=!0;break}if(null!=r.obj&&r.obj.k.toLowerCase().trim()==t.value.toLowerCase().trim()){m=!0;break}}}if(!m)return!1}return!0}hasFilters(e={},t,l){if(null==e)return!1;let n=Object.keys(e);if(null==n||n.length<1)return!1;null==l&&(l=new F);for(let r=0;r<n.length;r++){let o=n[r],s=null;if(s=o===w?{name:w,title:""}:i(t,o),l.hasFiltersForColumn(e,s))return!0}return!1}filterRows(e=[],t={},l="",n=[],r){if(!e||null==e)return[];let i=[];const o=!(!l||!n);if(this.hasFilters(t,n,r)||o)for(let s=0;s<e.length;s++){let a=e[s];(a.id&&a.id.indexOf("insert_")>-1||this.isRowCompliant(a,t,l,o,n,r))&&(i[i.length]=a)}else i=[...e];return i}getColumnValues(t,n,r,i){let o=new Array;null==i&&(i=new F);let s=i.getTextFilterValueTmp(t.filters,n.name),a=i.getIntervalTextFieldFilterValuesTmp(t.filters,n),u=i.getCheckBoxFilterValues(t.filters,n.name);if(null!=n.valuesForFilter&&n.valuesForFilter.length>0)return n.valuesForFilter.forEach((t=>{let r=t;(e.valuesArrayContainsValue(u,r)||""==s||i.isFilterCompliantForSimpleValue(r,n.obj,s,a))&&o.push({value:r,displayedValue:l(r,n.obj,n.decimals)})})),o;let c=Object.assign({},t.filters);c[n.name]={textField:s,textFieldTmp:s,checkBoxes:[],interval:a,intervalTmp:a};let f=this.filterRows(t.getRows(),c,r,t.getVisibleColumns(),i);for(let e=0;e<u.length;e++)o.push(u[e]);return y.cell.getUnivocalValue({rows:f},n,!0)}}const C=document.documentElement;function V(e=[],t=[]){if(!e||0===e.length)return[];if(e[0].group)return function(e=[],t=[]){if(!e||0===e.length)return[];const l=e[0].group.column;let n=function(e="",t=[]){if(!e||!t||0===t.length)return null;for(let l of t)if(l.column===e)return l;return null}(l,t);return n||(n={column:l,sortMode:c.A}),e.sort(((e,t)=>a({obj:e.group.obj,value:e.group.id},{obj:t.group.obj,value:t.group.id},n.sortMode))),e.forEach((e=>{e.group.children=V(e.group.children,t)})),e}(e,t);if(!t||0===t.length)return e;const l=t.length>1;return e.slice(0).sort(((e,n)=>{if(l){for(let l=0;l<t.length;l++){const r=O(e,n,t[l]);if(0!==r)return r}return 0}return O(e,n,t[0])}))}function O(e,t,l){const n=e.cells[l.column],r=t.cells[l.column];return n||r?n?r?a(n,r,l.sortMode):-1:1:0}function I(e=[],t={},l="",n=[],r,i){return null==i&&(i=new j),i.filterRows(e,t,l,n,r)}function M(e=[],t=[],l=[],n={}){if(!t)return[];if(!l||0===l.length||!e||0===e.length)return t;const o={},s=l.filter((({column:t})=>{for(let{name:l,title:n}of e)if(l===t)return o[l]=n,!0;return!1}));if(0===s.length)return t;const a=[];let c={};return t.forEach((t=>{const l=s[0].column,f=t.cells[l];if(f){const h=i(e,l),d=r(h,f),m=f.value;let b=null;for(let e of a)if(e.group.label===d){b=e;break}null===b&&(b={group:{id:m,parent:null,column:l,columnLabel:o[l],expanded:!1,label:d,children:[],obj:f.obj,totals:{}},cells:{}},a.push(b));for(let l=1;l<s.length;l++){const n=s[l],a=t.cells[n.column];if(a){const t=i(e,n.column),l=r(t,a),s=a.value;let u=null;for(let e=0;e<b.group.children.length;e++){const t=b.group.children[e];if(t.group.label===l){u=t;break}}u||(u={cells:{},group:{id:s,parent:b,column:n.column,columnLabel:o[n.column],children:[],expanded:!1,label:l,totals:{},obj:a.obj}},$(u),b.group.children.push(u)),b=u}}b.group.children.push(t),function(e,t,l,n){if(!e||!t)return;const r=Object.keys(t);0!==r.length&&r.forEach((r=>{const i=l.cells[r];if(i){const l=C.ketchup.objects.isNumber(i.obj),o=t[r];switch(o){case u.COUNT:let t=e.group.totals[r]||0;e.group.totals[r]=++t;let s=e.group.parent;for(;null!=s;){let e=s.group.totals[r]||0;s.group.totals[r]=++e,s=s.group.parent}break;case u.DISTINCT:let a;if(a=l?C.ketchup.math.numberify(C.ketchup.math.numberifySafe(i.value)):i.value,n[e.group.id]){let t=n[e.group.id][r];t?t.push(a):(n[e.group.id][r]=[],n[e.group.id][r].push(a))}else n[e.group.id]={},n[e.group.id][r]=[],n[e.group.id][r].push(a);let c=e.group.parent;for(;null!=c;){if(n[c.group.id]){let e=n[c.group.id][r];e?e.push(a):(n[c.group.id][r]=[],n[c.group.id][r].push(a))}else n[c.group.id]={},n[c.group.id][r]=[],n[c.group.id][r].push(a);c=c.group.parent}break;case u.SUM:case u.AVERAGE:if(l&&i.value){const t=C.ketchup.math.numberify(C.ketchup.math.numberifySafe(i.value));e.group.totals[r]=t+(e.group.totals[r]||0);let l=e.group.parent;for(;null!=l;){const e=C.ketchup.math.numberify(l.group.totals[r]||0);l.group.totals[r]=t+e,l=l.group.parent}}break;case u.MIN:if(l&&i.value){const t=e.group.totals[r],l=C.ketchup.math.numberify(C.ketchup.math.numberifySafe(i.value));e.group.totals[r]=t?Math.min(t,l):l;let n=e.group.parent;for(;null!=n;){const e=n.group.totals[r];n.group.totals[r]=e?Math.min(e,l):l,n=n.group.parent}}else if(i.value&&C.ketchup.objects.isDate(i.obj)){const t=C.ketchup.dates.toDayjs(i.value);if(C.ketchup.dates.isValid(t)){const l=e.group.totals[r];if(l){let n=[];n.push(t),n.push(C.ketchup.dates.toDayjs(l)),e.group.totals[r]=C.ketchup.dates.format(C.ketchup.dates.min(n),p.ISO_DATE)}else e.group.totals[r]=C.ketchup.dates.format(t,p.ISO_DATE);let n=e.group.parent;for(;null!=n;){const e=n.group.totals[r];if(e){let l=[];l.push(t),l.push(C.ketchup.dates.toDayjs(e)),n.group.totals[r]=C.ketchup.dates.format(C.ketchup.dates.min(l),p.ISO_DATE)}else n.group.totals[r]=C.ketchup.dates.format(t,p.ISO_DATE);n=n.group.parent}}}break;case u.MAX:if(l&&i.value){const t=e.group.totals[r],l=C.ketchup.math.numberify(C.ketchup.math.numberifySafe(i.value));e.group.totals[r]=t?Math.max(t,l):l;let n=e.group.parent;for(;null!=n;){const e=n.group.totals[r];n.group.totals[r]=e?Math.max(e,l):l,n=n.group.parent}}else if(i.value&&C.ketchup.objects.isDate(i.obj)){const t=C.ketchup.dates.toDayjs(i.value);if(C.ketchup.dates.isValid(t)){const l=e.group.totals[r];if(l){let n=[];n.push(t),n.push(C.ketchup.dates.toDayjs(l)),e.group.totals[r]=C.ketchup.dates.format(C.ketchup.dates.max(n),p.ISO_DATE)}else e.group.totals[r]=C.ketchup.dates.format(t,p.ISO_DATE);let n=e.group.parent;for(;null!=n;){const e=n.group.totals[r];if(e){let l=[];l.push(t),l.push(C.ketchup.dates.toDayjs(e)),n.group.totals[r]=C.ketchup.dates.format(C.ketchup.dates.max(l),p.ISO_DATE)}else n.group.totals[r]=C.ketchup.dates.format(t,p.ISO_DATE);n=n.group.parent}}}break;default:0!=o.indexOf(u.MATH)&&console.warn(`invalid total mode: ${o}`)}}}))}(b,n,t,c)}})),function(e,t,l){if(!e||!t)return;const n=Object.keys(t);if(0===e.length||!e[0].group||0===n.length)return;let r=n.filter((e=>u.DISTINCT===t[e]));r.length>0&&e.filter((e=>e.group.children.length>0)).forEach((e=>A(e,r,l)))}(a,n,c),_(a,u.AVERAGE,n),_(a,u.MATH,n),a}function _(e,t,l){if(!e||!l)return;const n=Object.keys(l);if(0===e.length||!e[0].group||0===n.length)return;let r;t==u.AVERAGE&&(r=n.filter((e=>u.AVERAGE===l[e]))),t==u.MATH&&(r=n.filter((e=>0==l[e].indexOf(u.MATH)))),r.length>0&&e.filter((e=>e.group.children.length>0)).forEach((e=>B(e,t,r,l)))}function A(e,t,l){const n=e.group.children;0!==n.length&&(n[0].group&&n.forEach((e=>{A(e,t,l)})),t.forEach((t=>{e.group.totals[t]=new Set(l[e.group.id][t]).size})))}function B(e,t,l,n){const r=e.group.children;if(0===r.length)return 0;let i=0;return r[0].group?r.forEach((e=>{i+=B(e,t,l,n)})):i=r.length,l.forEach((l=>{if(t==u.AVERAGE&&(e.group.totals[l]=e.group.totals[l]/i),t==u.MATH){let t=n[l].substring(u.MATH.length);e.group.totals[l]=C.ketchup.math.formulas.custom(t,e.group.totals)}})),i}function W(e,t){if(t){const l=Object.assign(t);return t.forEach((t=>{e.forEach((e=>{if(t.cells){const l=t.cells[e.name];l&&e.obj&&!l.obj&&(l.obj={t:e.obj.t,p:e.obj.p,k:l.value})}}))})),l}}function N(e=[],t={}){if(C.ketchup.objects.isEmptyJsObject(e)||C.ketchup.objects.isEmptyJsObject(t))return{};const l=Object.keys(t),n={},r=new Array;if(0===l.length||l.every((e=>t[e]===u.COUNT)))l.forEach((t=>n[t]=e.length));else{let i={};e.forEach(((e,o,s)=>{l.filter((e=>u.COUNT!==t[e]&&0!=t[e].indexOf(u.MATH))).forEach((l=>{const a=e.cells[l];if(a)if(t[l]===u.DISTINCT){let e;e=C.ketchup.objects.isNumber(a.obj)?C.ketchup.math.numberify(C.ketchup.math.numberifySafe(a.value)):a.value;let t=i[l];t?t.push(e):(i[l]=[],i[l].push(e))}else if(C.ketchup.objects.isNumber(a.obj)){const e=C.ketchup.math.numberify(C.ketchup.math.numberifySafe(a.value));let r=n[l];switch(!0){case t[l]===u.MIN:n[l]=r?Math.min(r,e):e;break;case t[l]===u.MAX:n[l]=r?Math.max(r,e):e;break;default:r=n[l]||0,n[l]=e+C.ketchup.math.numberify(r)}}else if(C.ketchup.objects.isDate(a.obj)){-1==r.indexOf(l)&&r.push(l);const e=C.ketchup.dates.toDayjs(a.value);if(C.ketchup.dates.isValid(e)){const r=C.ketchup.dates.toDate(e),i=n[l]?C.ketchup.dates.toDate(C.ketchup.dates.toDayjs(n[l])):null;switch(!0){case t[l]===u.MIN:if(i){let e=[];e.push(r),e.push(i),n[l]=C.ketchup.dates.format(C.ketchup.dates.min(e),p.ISO_DATE)}else n[l]=C.ketchup.dates.format(r,p.ISO_DATE);break;case t[l]===u.MAX:if(i){let e=[];e.push(r),e.push(i),n[l]=C.ketchup.dates.format(C.ketchup.dates.max(e),p.ISO_DATE)}else n[l]=C.ketchup.dates.format(r,p.ISO_DATE)}}}o===s.length-1&&t[l]===u.DISTINCT&&(n[l]=new Set(i[l]).size,i[l]=[])}))}))}for(let i of l){switch(!0){case t[i]===u.AVERAGE:const l=n[i];l&&e.length>0&&(n[i]=l/e.length);break;case t[i]===u.COUNT:n[i]=e.length;break;case 0==t[i].indexOf(u.MATH):n[i]=C.ketchup.math.formulas.custom(t[i].substring(u.MATH.length),n)}n[i]&&(-1!=r.indexOf(i)?n[i]=C.ketchup.dates.format(n[i]):C.ketchup.math.isNumber(n[i])&&(n[i]=+n[i].toFixed(2)))}return n}function $(e){if(!e.group)return;let t=e.group.id,l=e.group.parent;for(;null!==l;)t=`${l.group.id};${t}`,l=l.group.parent;e.group.id=t}function D(e,t,l,n){const r=t*l-l,i=r+Number(l);if(0==n)return e.slice(r,i);let o=[];return E(e,o,r,Number(l),0),o}function E(e,t,l,n,r){let i=!1;for(let o=0;o<e.length;o++){let s=e[o],a=L(e[o]);if(null!=s.group&&null!=s.group.children&&s.group.children.length>0){a.group.children=[];let e=E(s.group.children,a.group.children,l,n,r);r=e.ci,i=e.added,1==i&&(t[t.length]=a)}else r>=l&&(t[t.length]=a,i=!0),r++;if(r>=l+n)break}return{ci:r,added:i}}function L(e){return null==e?null:{id:e.id,cells:Object.assign({},e.cells),actions:e.actions?[...e.actions]:null,group:R(e.group),clonedFrom:e,readOnly:e.readOnly,cssClass:e.cssClass}}function S(e){if(null==e)return null;let t=[];for(let l=0;l<e.length;l++)t[t.length]=L(e[l]);return t}function R(e){return null==e?null:{id:e.id,parent:Object.assign({},e.parent),column:e.column,columnLabel:e.columnLabel,expanded:e.expanded,label:e.label,children:S(e.children),obj:Object.assign({},e.obj),totals:Object.assign({},e.totals)}}var q;!function(e){e.SIMPLE="simple",e.FULL="full"}(q||(q={}));const z=document.documentElement,K=e=>{const t=Math.ceil(e.max/e.perPage),l=function(e,t){const l=[];for(let n=1;n<=t;n++){const t=n==e.currentPage;l.push({id:n.toString(),selected:t,value:n.toString()})}return l}(e,t),n=function(e){const t=[];let l=e.perPage;if(0===l)return t;for(;l<e.max;){const n=l==e.perPage;t.push({id:l.toString(),selected:n,value:l.toString()}),l*=2}const n=e.max==e.perPage;return t.push({id:e.max.toString(),selected:n,value:e.max.toString()}),t}(e),r={"kup-list":{data:l},"kup-text-field":{label:z.ketchup.language.translate(f.PAGE),helper:z.ketchup.language.translate(f.TOTAL)+`: ${t}`,helperWhenFocused:!0,inputType:"number",max:t,min:1}},i={"kup-list":{data:n},"kup-text-field":{label:z.ketchup.language.translate(h.ROWS)+" / "+z.ketchup.language.translate(f.PAGE),helper:z.ketchup.language.translate(h.TOTAL)+`: ${e.max}`,helperWhenFocused:!0,inputType:"number",max:e.max,min:1}};return m("div",Object.assign({class:`f-paginator ${e.mode?e.mode:""} ${e.wrapperClass?e.wrapperClass:""}`},e.dataSet,{id:e.id,title:e.title}),e.mode!==q.SIMPLE?m(b,{icon:"chevron_left",disabled:G(e),onClick:e.onPrevPage,wrapperClass:"prev-page"}):null,m("kup-combobox",{class:"page-selector",data:r,initialValue:e.currentPage.toString(),"onkup-combobox-change":e.onPageChange}),e.mode!==q.SIMPLE?m(b,{icon:"chevron_right",disabled:U(e),onClick:e.onNextPage,wrapperClass:"next-page"}):null,m("kup-combobox",{class:"rows-selector",data:i,initialValue:e.perPage.toString(),"onkup-combobox-change":e.onRowsChange}),e.onLoadMore?m(b,{icon:"plus",onClick:e.onLoadMore,label:z.ketchup.language.translate(d.LOAD_MORE),styling:v.FLAT,wrapperClass:"load-more-button"}):null)};function U(e){return e.currentPage*e.perPage>=e.max}function G(e){return 1==e.currentPage}const H=document.documentElement;function J(e,t,l){if(H.ketchup.math.isNumber(e)){const n=Math.ceil(t/l);let r=e;return r>n&&(r=n),r<1&&(r=1),r}return null}function P(e,t){if(H.ketchup.math.isNumber(e)){let l=e;return l>t&&(l=t),l<1&&(l=1),l}return null}export{F,g as K,j as a,K as b,N as c,J as d,x as e,I as f,M as g,W as n,D as p,P as r,V as s,w as t}
1
+ import{B as e,E as t,C as l,A as n,ac as r,u as i,w as o,ae as s,af as a,I as u,$ as c,ag as f,q as h,l as d}from"./p-9a856951.js";import{K as p}from"./p-935f58fc.js";import{h as b}from"./p-47040db6.js";import{F as m}from"./p-590c34bc.js";import{F as v}from"./p-c634eb82.js";class F extends e{getTextFilterValue(e={},t){return this._getTextFilterValue(e,t,!1)}getTextFilterValueTmp(e={},t){return this._getTextFilterValue(e,t,!0)}_getTextFilterValue(e={},t,l){let n="";if(null==e)return n;let r=e[t];return null==r||(n=l?r.textFieldTmp:r.textField),n}hasFiltersForColumn(e={},t){return this._hasFiltersForColumn(e,t,!1)}hasFiltersForColumnTmp(e={},t){return this._hasFiltersForColumn(e,t,!0)}_hasFiltersForColumn(e={},t,l){if(!t)return!1;let n=this._getTextFilterValue(e,t.name,l);if(null!=n&&""!=n.trim())return!0;if(this._hasIntervalTextFieldFilterValues(e,t,l))return!0;let r=this.getCheckBoxFilterValues(e,t.name);return!(null==r||r.length<1)}getCheckBoxFilterValues(e={},t){let l=[];if(null==e)return l;let n=e[t];return null==n||null==n.checkBoxes||(l=n.checkBoxes),l}hasIntervalTextFieldFilterValues(e={},t){return this._hasIntervalTextFieldFilterValues(e,t,!1)}hasIntervalTextFieldFilterValuesTmp(e={},t){return this._hasIntervalTextFieldFilterValues(e,t,!0)}_hasIntervalTextFieldFilterValues(e={},l,n){if(null==l)return!1;if(!this.isColumnFiltrableByInterval(l))return!1;let r=this._getIntervalTextFieldFilterValue(e,l.name,t.FROM,n);if(null!=r&&""!=r.trim())return!0;let i=this._getIntervalTextFieldFilterValue(e,l.name,t.TO,n);return null!=i&&""!=i.trim()}addCheckboxFilter(t={},l,n){if(null==t)return;let r=t[l];null==r&&(r={textField:"",textFieldTmp:"",checkBoxes:[],interval:null,intervalTmp:null},t[l]=r),null==r.checkBoxes&&(r.checkBoxes=[]),null==n||null==n.value?r.checkBoxes=[]:e.valuesArrayContainsValue(r.checkBoxes,n.value)||(r.checkBoxes[r.checkBoxes.length]=n)}removeCheckboxFilter(t={},l,n){if(null==t||null==n)return;let r=t[l];if(null==r)return;null==r.checkBoxes&&(r.checkBoxes=[]);let i=e.indexOfValueInValuesArray(r.checkBoxes,n);if(i>=0){let e=[];for(let t=0;t<r.checkBoxes.length;t++)t!=i&&(e[e.length]=r.checkBoxes[t]);r.checkBoxes=[...e]}}isColumnFiltrableByInterval(e){return this.isObjFiltrableByInterval(e.obj)}getIntervalTextFieldFilterValues(e={},t){return this._getIntervalTextFieldFilterValues(e,t,!1)}getIntervalTextFieldFilterValuesTmp(e={},t){return this._getIntervalTextFieldFilterValues(e,t,!0)}_getIntervalTextFieldFilterValues(e={},l,n){return this._hasIntervalTextFieldFilterValues(e,l,n)?[this._getIntervalTextFieldFilterValue(e,l.name,t.FROM,n),this._getIntervalTextFieldFilterValue(e,l.name,t.TO,n)]:["",""]}getIntervalTextFieldFilterValue(e={},t,l){return this._getIntervalTextFieldFilterValue(e,t,l,!1)}getIntervalTextFieldFilterValueTmp(e={},t,l){return this._getIntervalTextFieldFilterValue(e,t,l,!0)}_getIntervalTextFieldFilterValue(e={},t,l,n){let r="";if(null==e)return r;let i=e[t];return null==i||n&&null==i.intervalTmp?r:n||null!=i.interval?(r=n?i.intervalTmp[l]:i.interval[l],r):r}setTextFieldFilterValue(e={},t,l){this._setTextFieldFilterValue(e,t,l,!0)}_setTextFieldFilterValue(e={},t,l,n){if(null==e)return;let r=e[t];null==r&&(r={textField:"",textFieldTmp:"",checkBoxes:[],interval:null,intervalTmp:null},e[t]=r),n?r.textFieldTmp=null!=l?l.trim():l:r.textField=null!=l?l.trim():l}setIntervalTextFieldFilterValue(e={},t,l,n){this._setIntervalTextFieldFilterValue(e,t,l,n,!0)}_setIntervalTextFieldFilterValue(e={},t,l,n,r){if(null==e)return;let i=e[t];null==i&&(i={textField:"",textFieldTmp:"",checkBoxes:[],interval:null,intervalTmp:null},e[t]=i),null==i.interval&&(i.interval=[],i.interval.push("","")),null==i.intervalTmp&&(i.intervalTmp=[],i.intervalTmp.push("","")),r?i.intervalTmp[n]=null!=l?l.trim():l:i.interval[n]=null!=l?l.trim():l}saveTextualFilters(e={},l){this._setTextFieldFilterValue(e,l,this.getTextFilterValueTmp(e,l),!1),this._setIntervalTextFieldFilterValue(e,l,this.getIntervalTextFieldFilterValueTmp(e,l,t.FROM),t.FROM,!1),this._setIntervalTextFieldFilterValue(e,l,this.getIntervalTextFieldFilterValueTmp(e,l,t.TO),t.TO,!1)}resetTextualFilters(e={},l){this._setTextFieldFilterValue(e,l,this.getTextFilterValue(e,l),!0),this._setIntervalTextFieldFilterValue(e,l,this.getIntervalTextFieldFilterValue(e,l,t.FROM),t.FROM,!0),this._setIntervalTextFieldFilterValue(e,l,this.getIntervalTextFieldFilterValue(e,l,t.TO),t.TO,!0)}getFilterValueForTooltip(e={},r){let i=this.getTextFilterValue(e,r.name),o=this.getIntervalTextFieldFilterValues(e,r),s=this.getCheckBoxFilterValues(e,r.name),a="",u=l(i,r.obj,r.decimals);""!=i&&(a=" AND "),""!=o[t.FROM]&&(u+=a+"(>= "+l(o[t.FROM],r.obj,r.decimals)+")",a=" AND "),""!=o[t.TO]&&(u+=a+"(<= "+l(o[t.TO],r.obj,r.decimals)+")",a=" AND "),a="";let c="";return s.forEach((e=>{c+=a+n(e,r),a=" OR "})),""!=c&&(c="("+c+")",""!=u&&(c=" AND "+c)),c=u+c,c}removeFilter(e={},t){e[t]={textField:"",textFieldTmp:"",checkBoxes:[],interval:null,intervalTmp:null}}}var x;!function(e){e.asAccordion="When enabled, the first level of depth will give an accordion look to nodes.",e.columns="The columns of the tree when tree visualization is active.",e.customStyle="Custom style of the component.",e.data="The json data used to populate the tree view: the basic, always visible tree nodes.",e.density="The density of the rows, defaults at 'medium' and can also be set to 'dense' or 'wide'.",e.dynamicExpansionCallback="Function that gets invoked when a new set of nodes must be loaded as children of a node. When useDynamicExpansion is set, the tree component will have two different behaviors depending on the value of this prop. If this prop is set to null, no callback to download data is available: the component will emit an event requiring the parent to load the children of the given node. If this prop is set to have a callback, then the component will automatically make requests to load children of a given node. After the load has been completed, a different event will be fired to alert the parent of the change.",e.enableExtraColumns="Enables adding extra columns.",e.expanded="Flag: the nodes of the whole tree must be already expanded upon loading. Disabled nodes do NOT get expanded.",e.expansionMode="Behavior of nodes' expansion: it can be chosen between expanding a node by clicking on the dropdown icon, or by clicking on the whole node.",e.filters="List of filters set by the user.",e.globalFilter="When set to true it activates the global filter.",e.globalFilterValue="The value of the global filter.",e.globalFilterMode="The mode of the global filter.",e.removableColumns="Sets the possibility to remove the selected column.",e.preventXScroll="Experimental feature: when active, the tree will try to prevent horizontal overflowing elements by setting a width on the content of the table cells. It works only on cells of the main column.",e.ripple="When enabled displays Material's ripple effect on nodes (only when no columns are displayed).",e.scrollOnHover="Activates the scroll on hover function.",e.showColumns="Shows the tree data as a table.",e.showFilters="When set to true enables the column filters.",e.showFooter="When set to true shows the footer.",e.showHeader="Flag: shows the header of the tree when the tree is displayed as a table.",e.showIcons="Shows the icons of the nodes.",e.stateId="",e.store="",e.totals="Defines the current totals options.",e.useDynamicExpansion="When the component must use the dynamic expansion feature to open its nodes, it means that not all the nodes of the tree have been passed inside the data property. Therefore, when expanding a node, the tree must emit an event (or run a given callback) and wait for the child nodes to be downloaded from the server."}(x||(x={}));const w="TREE_COLUMN";var g;!function(e){e.DROPDOWN="dropdown",e.NODE="node"}(g||(g={}));const k=document.documentElement,T=k.ketchup?k.ketchup.objects:new o,y=k.ketchup?k.ketchup.data:new s;class j extends e{isFilterCompliantForCell(e,t,l){return!!e&&this.isFilterCompliantForSimpleValue(e.value,e.obj,t,l)}isFilterCompliantForCellObj(e,t,l){return!!e&&!!e.obj&&this.isFilterCompliantForSimpleValue(e.obj.k,e.obj,t,l)}isRowCompliant(e,t={},l="",n=!1,r=[],i){return this.areCellsCompliant(e.cells,t,l,n,r,i)}areCellsCompliant(e,t={},l="",n=!1,o=[],s){if(n){let t=!0;if(o&&null!=o&&o.length>0){t=!1;let n=this.filterIsNegative(l);for(let i=0;i<o.length;i++){if(0==o[i].visible)continue;const s=e[o[i].name];if(null==s)continue;t=this.isFilterCompliantForValue(s.value,l);let a=r(o[i],s);if(a!=s.value&&(t=t||this.isFilterCompliantForValue(a,l)),1==t&&!n)break;if(0==t&&n)break}}if(!t)return!1}if(null==s&&(s=new F),!this.hasFilters(t,o,s))return!0;let a=Object.keys(t);for(let l=0;l<a.length;l++){let n=a[l];const r=e[n];if(!r)return!1;let u=s.getTextFilterValue(t,n),c=s.getIntervalTextFieldFilterValues(t,i(o,n));const f=this.filterIsNegative(u);let h=this.isFilterCompliantForCell(r,u,c),d=f;if(T.isNumber(r.obj)||T.isDate(r.obj)||T.isTime(r.obj)||T.isTimestamp(r.obj)||(d=this.isFilterCompliantForCellObj(r,u,c)),f){if(!h||!d)return!1}else if(!h&&!d)return!1;let p=s.getCheckBoxFilterValues(t,n);if(0==p.length)continue;let b=!1;for(let e=0;e<p.length;e++){let t=p[e];if(null!=t&&null!=t.value){if(null!=r.value&&r.value.toLowerCase().trim()==t.value.toLowerCase().trim()){b=!0;break}if(null!=r.obj&&r.obj.k.toLowerCase().trim()==t.value.toLowerCase().trim()){b=!0;break}}}if(!b)return!1}return!0}hasFilters(e={},t,l){if(null==e)return!1;let n=Object.keys(e);if(null==n||n.length<1)return!1;null==l&&(l=new F);for(let r=0;r<n.length;r++){let o=n[r],s=null;if(s=o===w?{name:w,title:""}:i(t,o),l.hasFiltersForColumn(e,s))return!0}return!1}filterRows(e=[],t={},l="",n=[],r){if(!e||null==e)return[];let i=[];const o=!(!l||!n);if(this.hasFilters(t,n,r)||o)for(let s=0;s<e.length;s++){let a=e[s];(a.id&&a.id.indexOf("insert_")>-1||this.isRowCompliant(a,t,l,o,n,r))&&(i[i.length]=a)}else i=[...e];return i}getColumnValues(t,n,r,i){let o=new Array;null==i&&(i=new F);let s=i.getTextFilterValueTmp(t.filters,n.name),a=i.getIntervalTextFieldFilterValuesTmp(t.filters,n),u=i.getCheckBoxFilterValues(t.filters,n.name);if(null!=n.valuesForFilter&&n.valuesForFilter.length>0)return n.valuesForFilter.forEach((t=>{let r=t;(e.valuesArrayContainsValue(u,r)||""==s||i.isFilterCompliantForSimpleValue(r,n.obj,s,a))&&o.push({value:r,displayedValue:l(r,n.obj,n.decimals)})})),o;let c=Object.assign({},t.filters);c[n.name]={textField:s,textFieldTmp:s,checkBoxes:[],interval:a,intervalTmp:a};let f=this.filterRows(t.getRows(),c,r,t.getVisibleColumns(),i);for(let e=0;e<u.length;e++)o.push(u[e]);return y.cell.getUnivocalValue({rows:f},n,!0)}}const C=document.documentElement;function V(e=[],t=[]){if(!e||0===e.length)return[];if(e[0].group)return function(e=[],t=[]){if(!e||0===e.length)return[];const l=e[0].group.column;let n=function(e="",t=[]){if(!e||!t||0===t.length)return null;for(let l of t)if(l.column===e)return l;return null}(l,t);return n||(n={column:l,sortMode:c.A}),e.sort(((e,t)=>a({obj:e.group.obj,value:e.group.id},{obj:t.group.obj,value:t.group.id},n.sortMode))),e.forEach((e=>{e.group.children=V(e.group.children,t)})),e}(e,t);if(!t||0===t.length)return e;const l=t.length>1;return e.slice(0).sort(((e,n)=>{if(l){for(let l=0;l<t.length;l++){const r=O(e,n,t[l]);if(0!==r)return r}return 0}return O(e,n,t[0])}))}function O(e,t,l){const n=e.cells[l.column],r=t.cells[l.column];return n||r?n?r?a(n,r,l.sortMode):-1:1:0}function I(e=[],t={},l="",n=[],r,i){return null==i&&(i=new j),i.filterRows(e,t,l,n,r)}function M(e=[],t=[],l=[],n={}){if(!t)return[];if(!l||0===l.length||!e||0===e.length)return t;const o={},s=l.filter((({column:t})=>{for(let{name:l,title:n}of e)if(l===t)return o[l]=n,!0;return!1}));if(0===s.length)return t;const a=[];let c={};return t.forEach((t=>{const l=s[0].column,f=t.cells[l];if(f){const h=i(e,l),d=r(h,f),b=f.value;let m=null;for(let e of a)if(e.group.label===d){m=e;break}null===m&&(m={group:{id:b,parent:null,column:l,columnLabel:o[l],expanded:!1,label:d,children:[],obj:f.obj,totals:{}},cells:{}},a.push(m));for(let l=1;l<s.length;l++){const n=s[l],a=t.cells[n.column];if(a){const t=i(e,n.column),l=r(t,a),s=a.value;let u=null;for(let e=0;e<m.group.children.length;e++){const t=m.group.children[e];if(t.group.label===l){u=t;break}}u||(u={cells:{},group:{id:s,parent:m,column:n.column,columnLabel:o[n.column],children:[],expanded:!1,label:l,totals:{},obj:a.obj}},$(u),m.group.children.push(u)),m=u}}m.group.children.push(t),function(e,t,l,n){if(!e||!t)return;const r=Object.keys(t);0!==r.length&&r.forEach((r=>{const i=l.cells[r];if(i){const l=C.ketchup.objects.isNumber(i.obj),o=t[r];switch(o){case u.COUNT:let t=e.group.totals[r]||0;e.group.totals[r]=++t;let s=e.group.parent;for(;null!=s;){let e=s.group.totals[r]||0;s.group.totals[r]=++e,s=s.group.parent}break;case u.DISTINCT:let a;if(a=l?C.ketchup.math.numberify(C.ketchup.math.numberifySafe(i.value)):i.value,n[e.group.id]){let t=n[e.group.id][r];t?t.push(a):(n[e.group.id][r]=[],n[e.group.id][r].push(a))}else n[e.group.id]={},n[e.group.id][r]=[],n[e.group.id][r].push(a);let c=e.group.parent;for(;null!=c;){if(n[c.group.id]){let e=n[c.group.id][r];e?e.push(a):(n[c.group.id][r]=[],n[c.group.id][r].push(a))}else n[c.group.id]={},n[c.group.id][r]=[],n[c.group.id][r].push(a);c=c.group.parent}break;case u.SUM:case u.AVERAGE:if(l&&i.value){const t=C.ketchup.math.numberify(C.ketchup.math.numberifySafe(i.value));e.group.totals[r]=t+(e.group.totals[r]||0);let l=e.group.parent;for(;null!=l;){const e=C.ketchup.math.numberify(l.group.totals[r]||0);l.group.totals[r]=t+e,l=l.group.parent}}break;case u.MIN:if(l&&i.value){const t=e.group.totals[r],l=C.ketchup.math.numberify(C.ketchup.math.numberifySafe(i.value));e.group.totals[r]=t?Math.min(t,l):l;let n=e.group.parent;for(;null!=n;){const e=n.group.totals[r];n.group.totals[r]=e?Math.min(e,l):l,n=n.group.parent}}else if(i.value&&C.ketchup.objects.isDate(i.obj)){const t=C.ketchup.dates.toDayjs(i.value);if(C.ketchup.dates.isValid(t)){const l=e.group.totals[r];if(l){let n=[];n.push(t),n.push(C.ketchup.dates.toDayjs(l)),e.group.totals[r]=C.ketchup.dates.format(C.ketchup.dates.min(n),p.ISO_DATE)}else e.group.totals[r]=C.ketchup.dates.format(t,p.ISO_DATE);let n=e.group.parent;for(;null!=n;){const e=n.group.totals[r];if(e){let l=[];l.push(t),l.push(C.ketchup.dates.toDayjs(e)),n.group.totals[r]=C.ketchup.dates.format(C.ketchup.dates.min(l),p.ISO_DATE)}else n.group.totals[r]=C.ketchup.dates.format(t,p.ISO_DATE);n=n.group.parent}}}break;case u.MAX:if(l&&i.value){const t=e.group.totals[r],l=C.ketchup.math.numberify(C.ketchup.math.numberifySafe(i.value));e.group.totals[r]=t?Math.max(t,l):l;let n=e.group.parent;for(;null!=n;){const e=n.group.totals[r];n.group.totals[r]=e?Math.max(e,l):l,n=n.group.parent}}else if(i.value&&C.ketchup.objects.isDate(i.obj)){const t=C.ketchup.dates.toDayjs(i.value);if(C.ketchup.dates.isValid(t)){const l=e.group.totals[r];if(l){let n=[];n.push(t),n.push(C.ketchup.dates.toDayjs(l)),e.group.totals[r]=C.ketchup.dates.format(C.ketchup.dates.max(n),p.ISO_DATE)}else e.group.totals[r]=C.ketchup.dates.format(t,p.ISO_DATE);let n=e.group.parent;for(;null!=n;){const e=n.group.totals[r];if(e){let l=[];l.push(t),l.push(C.ketchup.dates.toDayjs(e)),n.group.totals[r]=C.ketchup.dates.format(C.ketchup.dates.max(l),p.ISO_DATE)}else n.group.totals[r]=C.ketchup.dates.format(t,p.ISO_DATE);n=n.group.parent}}}break;default:0!=o.indexOf(u.MATH)&&console.warn(`invalid total mode: ${o}`)}}}))}(m,n,t,c)}})),function(e,t,l){if(!e||!t)return;const n=Object.keys(t);if(0===e.length||!e[0].group||0===n.length)return;let r=n.filter((e=>u.DISTINCT===t[e]));r.length>0&&e.filter((e=>e.group.children.length>0)).forEach((e=>A(e,r,l)))}(a,n,c),_(a,u.AVERAGE,n),_(a,u.MATH,n),a}function _(e,t,l){if(!e||!l)return;const n=Object.keys(l);if(0===e.length||!e[0].group||0===n.length)return;let r;t==u.AVERAGE&&(r=n.filter((e=>u.AVERAGE===l[e]))),t==u.MATH&&(r=n.filter((e=>0==l[e].indexOf(u.MATH)))),r.length>0&&e.filter((e=>e.group.children.length>0)).forEach((e=>B(e,t,r,l)))}function A(e,t,l){const n=e.group.children;0!==n.length&&(n[0].group&&n.forEach((e=>{A(e,t,l)})),t.forEach((t=>{e.group.totals[t]=new Set(l[e.group.id][t]).size})))}function B(e,t,l,n){const r=e.group.children;if(0===r.length)return 0;let i=0;return r[0].group?r.forEach((e=>{i+=B(e,t,l,n)})):i=r.length,l.forEach((l=>{if(t==u.AVERAGE&&(e.group.totals[l]=e.group.totals[l]/i),t==u.MATH){let t=n[l].substring(u.MATH.length);e.group.totals[l]=C.ketchup.math.formulas.custom(t,e.group.totals)}})),i}function W(e,t){if(t){const l=Object.assign(t);return t.forEach((t=>{e.forEach((e=>{if(t.cells){const l=t.cells[e.name];l&&e.obj&&!l.obj&&(l.obj={t:e.obj.t,p:e.obj.p,k:l.value})}}))})),l}}function N(e=[],t={}){if(C.ketchup.objects.isEmptyJsObject(e)||C.ketchup.objects.isEmptyJsObject(t))return{};const l=Object.keys(t),n={},r=new Array;if(0===l.length||l.every((e=>t[e]===u.COUNT)))l.forEach((t=>n[t]=e.length));else{let i={};e.forEach(((e,o,s)=>{l.filter((e=>u.COUNT!==t[e]&&0!=t[e].indexOf(u.MATH))).forEach((l=>{const a=e.cells[l];if(a)if(t[l]===u.DISTINCT){let e;e=C.ketchup.objects.isNumber(a.obj)?C.ketchup.math.numberify(C.ketchup.math.numberifySafe(a.value)):a.value;let t=i[l];t?t.push(e):(i[l]=[],i[l].push(e))}else if(C.ketchup.objects.isNumber(a.obj)){const e=C.ketchup.math.numberify(C.ketchup.math.numberifySafe(a.value));let r=n[l];switch(!0){case t[l]===u.MIN:n[l]=r?Math.min(r,e):e;break;case t[l]===u.MAX:n[l]=r?Math.max(r,e):e;break;default:r=n[l]||0,n[l]=e+C.ketchup.math.numberify(r)}}else if(C.ketchup.objects.isDate(a.obj)){-1==r.indexOf(l)&&r.push(l);const e=C.ketchup.dates.toDayjs(a.value);if(C.ketchup.dates.isValid(e)){const r=C.ketchup.dates.toDate(e),i=n[l]?C.ketchup.dates.toDate(C.ketchup.dates.toDayjs(n[l])):null;switch(!0){case t[l]===u.MIN:if(i){let e=[];e.push(r),e.push(i),n[l]=C.ketchup.dates.format(C.ketchup.dates.min(e),p.ISO_DATE)}else n[l]=C.ketchup.dates.format(r,p.ISO_DATE);break;case t[l]===u.MAX:if(i){let e=[];e.push(r),e.push(i),n[l]=C.ketchup.dates.format(C.ketchup.dates.max(e),p.ISO_DATE)}else n[l]=C.ketchup.dates.format(r,p.ISO_DATE)}}}o===s.length-1&&t[l]===u.DISTINCT&&(n[l]=new Set(i[l]).size,i[l]=[])}))}))}for(let i of l){switch(!0){case t[i]===u.AVERAGE:const l=n[i];l&&e.length>0&&(n[i]=l/e.length);break;case t[i]===u.COUNT:n[i]=e.length;break;case 0==t[i].indexOf(u.MATH):n[i]=C.ketchup.math.formulas.custom(t[i].substring(u.MATH.length),n)}n[i]&&(-1!=r.indexOf(i)?n[i]=C.ketchup.dates.format(n[i]):C.ketchup.math.isNumber(n[i])&&(n[i]=+n[i].toFixed(2)))}return n}function $(e){if(!e.group)return;let t=e.group.id,l=e.group.parent;for(;null!==l;)t=`${l.group.id};${t}`,l=l.group.parent;e.group.id=t}function D(e,t,l,n){const r=t*l-l,i=r+Number(l);if(0==n)return e.slice(r,i);let o=[];return E(e,o,r,Number(l),0),o}function E(e,t,l,n,r){let i=!1;for(let o=0;o<e.length;o++){let s=e[o],a=L(e[o]);if(null!=s.group&&null!=s.group.children&&s.group.children.length>0){a.group.children=[];let e=E(s.group.children,a.group.children,l,n,r);r=e.ci,i=e.added,1==i&&(t[t.length]=a)}else r>=l&&(t[t.length]=a,i=!0),r++;if(r>=l+n)break}return{ci:r,added:i}}function L(e){return null==e?null:{id:e.id,cells:Object.assign({},e.cells),actions:e.actions?[...e.actions]:null,group:R(e.group),clonedFrom:e,readOnly:e.readOnly,cssClass:e.cssClass}}function S(e){if(null==e)return null;let t=[];for(let l=0;l<e.length;l++)t[t.length]=L(e[l]);return t}function R(e){return null==e?null:{id:e.id,parent:Object.assign({},e.parent),column:e.column,columnLabel:e.columnLabel,expanded:e.expanded,label:e.label,children:S(e.children),obj:Object.assign({},e.obj),totals:Object.assign({},e.totals)}}var q;!function(e){e.SIMPLE="simple",e.FULL="full"}(q||(q={}));const z=document.documentElement,K=e=>{e.perPage||(e.perPage=10);const t=Math.ceil(e.max/e.perPage),l=function(e,t){const l=[];for(let n=1;n<=t;n++){const t=n==e.currentPage;l.push({id:n.toString(),selected:t,value:n.toString()})}return l}(e,t),n=function(e){const t=[];let l=e.perPage;if(0===l)return t;for(;l<e.max;){const n=l==e.perPage;t.push({id:l.toString(),selected:n,value:l.toString()}),l*=2}const n=e.max==e.perPage;return t.push({id:e.max.toString(),selected:n,value:e.max.toString()}),t}(e),r={"kup-list":{data:l},"kup-text-field":{label:z.ketchup.language.translate(f.PAGE),helper:z.ketchup.language.translate(f.TOTAL)+`: ${t}`,helperWhenFocused:!0,inputType:"number",max:t,min:1}},i={"kup-list":{data:n},"kup-text-field":{label:z.ketchup.language.translate(h.ROWS)+" / "+z.ketchup.language.translate(f.PAGE),helper:z.ketchup.language.translate(h.TOTAL)+`: ${e.max}`,helperWhenFocused:!0,inputType:"number",max:e.max,min:1}};return b("div",Object.assign({class:`f-paginator ${e.mode?e.mode:""} ${e.wrapperClass?e.wrapperClass:""}`},e.dataSet,{id:e.id,title:e.title}),e.mode!==q.SIMPLE?b(m,{icon:"chevron_left",disabled:G(e),onClick:e.onPrevPage,wrapperClass:"prev-page"}):null,b("kup-combobox",{class:"page-selector",data:r,initialValue:e.currentPage.toString(),"onkup-combobox-change":e.onPageChange}),e.mode!==q.SIMPLE?b(m,{icon:"chevron_right",disabled:U(e),onClick:e.onNextPage,wrapperClass:"next-page"}):null,b("kup-combobox",{class:"rows-selector",data:i,initialValue:e.perPage.toString(),"onkup-combobox-change":e.onRowsChange}),e.onLoadMore?b(m,{icon:"plus",onClick:e.onLoadMore,label:z.ketchup.language.translate(d.LOAD_MORE),styling:v.FLAT,wrapperClass:"load-more-button"}):null)};function U(e){return e.currentPage*e.perPage>=e.max}function G(e){return 1==e.currentPage}const H=document.documentElement;function J(e,t,l){if(H.ketchup.math.isNumber(e)){const n=Math.ceil(t/l);let r=e;return r>n&&(r=n),r<1&&(r=1),r}return null}function P(e,t){if(H.ketchup.math.isNumber(e)){let l=e;return l>t&&(l=t),l<1&&(l=1),l}return null}export{F,g as K,j as a,K as b,N as c,J as d,x as e,I as f,M as g,W as n,D as p,P as r,V as s,w as t}
@@ -0,0 +1 @@
1
+ import{r as i,h as t,d as e}from"./p-47040db6.js";import{k as o}from"./p-9a856951.js";import"./p-935f58fc.js";const n=class{constructor(t){i(this,t),this.kupManager=o(),this.config=void 0,this.qlik=void 0,this.appid="",this.app=!1,this.grid=[],this.debug=!1,this.fluid=!1,this.bordered=!1,this.defobjsize="400px",this.divlist=[]}getObjects(i){let t;return new Promise((e=>{i.rows.forEach((i=>{i.columns.forEach((i=>{t=!1,i.noSelections&&(t=i.noSelections),this.app.getObject(i.obj,i.obj,{noInteraction:!1,noSelections:t})}))})),e(!0)}))}doSelection(i){return new Promise((t=>{i.selections&&i.selections.forEach((i=>{this.app.field(i.field).selectValues(i.values,!1,!0)})),t(!0)}))}setRender(i){return new Promise((e=>{this.divlist=[],i.rows.forEach((i=>{let e=[];i.columns.forEach((i=>{let o="qvobject ";this.bordered&&(o+="bordered "),o=o+"width-"+i.colDim+" size-"+i.size,e.push(t("div",""!=i.obj?{id:i.obj,class:o}:{class:o}))})),this.divlist.push(t("div",{class:"kup-qlik-row"},e))})),e(!0)}))}componentWillLoad(){this.kupManager.debug.logLoad(this,!1)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1),this.setRender(this.grid)}render(){let i=null,e=null;return i=this.fluid?{"kup-qlik-container-fluid":!0}:{"kup-qlik-container":!0},e={"--lyo_obj-height":this.defobjsize},t("div",{key:"533e892f582c7ee663b5e41b44617c00edd1d48b",class:i,style:e},this.divlist)}componentDidRender(){this.debug&&console.log("Grid",this.grid),this.qlik&&(""==this.appid||this.app?this.debug&&console.log("App already open:",this.app):this.app=this.qlik.openApp(this.appid,this.config),this.app&&this.getObjects(this.grid).then((()=>{this.doSelection(this.grid)}))),this.kupManager.debug.logRender(this,!0)}get rootElement(){return e(this)}};n.style=".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.kup-qlik-container-fluid{width:100%}.kup-qlik-container{width:100%}@media (min-width: 576px){.kup-qlik-container{width:576px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 768px){.kup-qlik-container{width:768px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 992px){.kup-qlik-container{width:992px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 1200px){.kup-qlik-container{width:1200px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}.kup-qlik-row{display:flex;display:ms-flexbox;flex-wrap:wrap;-ms-flex-wrap:wrap;margin-bottom:5px}.kup-qlik-row .size-M{height:var(--lyo_obj-height)}.kup-qlik-row .size-S{height:calc(var(--lyo_obj-height) / 2)}.kup-qlik-row .size-XS{height:calc(var(--lyo_obj-height) / 3)}.kup-qlik-row .size-L{height:calc(var(--lyo_obj-height) * 2)}.kup-qlik-row .size-XL{height:calc(var(--lyo_obj-height) * 3)}.kup-qlik-row .bordered{border:1px solid var(--kup-border-color, #969696)}.kup-qlik-row .width-1{width:8.3333%}.kup-qlik-row .width-2{width:16.6666%}.kup-qlik-row .width-3{width:25%}.kup-qlik-row .width-4{width:33.3333%}.kup-qlik-row .width-5{width:41.6666%}.kup-qlik-row .width-6{width:50%}.kup-qlik-row .width-7{width:58.3333%}.kup-qlik-row .width-8{width:66.6666%}.kup-qlik-row .width-9{width:75%}.kup-qlik-row .width-10{width:83.3333%}.kup-qlik-row .width-11{width:91.6666%}.kup-qlik-row .width-12{width:100%}";export{n as kup_qlik}
@@ -0,0 +1,16 @@
1
+ import{r as t,h as i,F as e}from"./p-47040db6.js";import{b as s,c as n}from"./p-935f58fc.js";import{d as o,a}from"./p-e841c2ae.js";import{h}from"./p-9852b1e9.js";import{i as r,g as l,h as f}from"./p-8e3b6de8.js";const p=class{constructor(i){t(this,i),this.label="",this.doubleView=!1,this.setDoubleView=void 0,this.fontFamily=void 0,this.fontSize=void 0}render(){return i("div",{key:"25542e1e426f9f035bdd3b894acf915100609cec",class:"custom-task-list-wrapper",style:{height:"50px",fontFamily:this.fontFamily,fontSize:this.fontSize}},i("div",{key:"b64868e8a15fda0a259e30e77a1572fef34cf9a9",class:"title"},i("span",{key:"4bb87686a421a211ff7caa2c53105764f2e15c0a"},this.label)),void 0!==this.setDoubleView&&i("div",{class:"toggler"},i("label",{htmlFor:"ch2",class:"switch"},i("input",{class:"input",id:"ch2",type:"checkbox",checked:this.doubleView,onClick:()=>this.setDoubleView(!this.doubleView)}),i("span",{class:"slider"})),i("span",{class:"label"},"Previsioni")))}};p.style='.kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.custom-task-list-wrapper{display:flex;justify-content:space-around;max-width:330px;place-items:"center";text-align:center;align-items:center}.title{font-weight:bold;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toggler{max-width:max-content;padding:0 4px;text-align:right}.switch{position:relative;display:inline-block;width:30px;height:17px}.input{opacity:0;width:0;height:0}.input:checked+.slider{background-color:#003b77}.input:checked+.slider:before{-webkit-transform:translateX(13px);-ms-transform:translateX(13px);transform:translateX(13px)}.input:focus+.slider{box-shadow:0 0 1px #003b77}.slider{-webkit-transition:0.4s;cursor:pointer;background-color:#ccc;bottom:0;border-radius:17px;left:0;position:absolute;right:0;top:0;transition:0.4s}.slider:before{-webkit-transition:0.1s;background-color:white;border-radius:50%;bottom:2px;content:"";height:13px;left:2px;position:absolute;transition:0.1s;width:13px}.label{font-size:12px;padding:6px}.filter{font-size:12px}';const c=class{constructor(i){t(this,i),this.ganttId=void 0,this.tasks=[],this.rowHeight=0,this.rowWidth="",this.fontFamily="",this.fontSize="",this.setSelectedTask=void 0,this.onclickTaskList=void 0,this.ondblclickTaskList=void 0,this.oncontextmenuTaskList=void 0}render(){const t=new s;return i("div",{key:"aa6299da80dde8682f3fe8c1a8e244d6c15e5c5c",class:"container"},this.tasks.map((s=>{var n,o,a;return i(e,null,"project"===s.type?i("div",{class:"project",style:{height:`${this.rowHeight}px`,width:this.rowWidth,fontFamily:this.fontFamily,fontSize:this.fontSize,gridTemplateColumns:`repeat(${s.valuesToShow.length}, 1fr)`},onClick:()=>{this.setSelectedTask(s.id),this.onclickTaskList(s.id)},onDblClick:()=>{this.setSelectedTask(s.id),this.ondblclickTaskList(s.id)},onContextMenu:t=>{t.preventDefault(),this.setSelectedTask(s.id),this.oncontextmenuTaskList(t,s.id)}},null===(n=s.valuesToShow)||void 0===n?void 0:n.map(((e,n)=>i("span",{class:0===n?"main":void 0,title:e.length>10?e:void 0,key:`task_${s.id}_valuesToShow_${n}`},"#START#"===e?t.formatToLocaleSimple(s.start):"#END#"===e?t.formatToLocaleSimple(s.end):e)))):"task"===s.type?i("div",{class:"subrow",style:{height:`${this.rowHeight}px`,width:this.rowWidth,fontFamily:this.fontFamily,fontSize:this.fontSize,gridTemplateColumns:`repeat(${s.valuesToShow.length+1}, 1fr)`},onClick:()=>{this.setSelectedTask(s.id),this.onclickTaskList(s.id)},onDblClick:()=>{this.setSelectedTask(s.id),this.ondblclickTaskList(s.id)},onContextMenu:t=>{t.preventDefault(),this.setSelectedTask(s.id),this.oncontextmenuTaskList(t,s.id)}},i("span",{key:`phase_${s.id}_valuesToShow_color`,style:{height:"16px",width:"16px",backgroundColor:null===(o=s.styles)||void 0===o?void 0:o.backgroundColor}}),null===(a=s.valuesToShow)||void 0===a?void 0:a.map(((e,n)=>i("span",{class:0===n?"main":void 0,title:e.length>10?e:void 0,key:`phase_${s.id}_valuesToShow_${n}`},"#START#"===e?t.formatToLocaleSimple(s.start):"#END#"===e?t.formatToLocaleSimple(s.end):e)))):(()=>{var t;let e="";for(let t=0;t<s.valuesToShow.length;t++)e+="1fr ";return i("div",{class:"timeline",style:{height:`${this.rowHeight}px`,width:this.rowWidth,fontFamily:this.fontFamily,fontSize:this.fontSize,"--grid-fasi-columns":e},onContextMenu:t=>{t.preventDefault(),this.setSelectedTask(s.id),this.oncontextmenuTaskList(t,s.id)}},null===(t=s.valuesToShow)||void 0===t?void 0:t.map(((t,e)=>i("span",{class:0===e?"main":void 0,title:t.length>10?t:void 0,key:`detail_${s.id}_valuesToShow_${e}`},t))))})())})))}};c.style=".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.container{padding:0 10px;margin-right:10px}.project{background:var(--kup-background-color, #ffffff);border:1px solid var(--kup-border-color, #acacac);border-radius:4px;box-sizing:border-box;color:var(--kup-text-color, #595959);cursor:pointer;display:grid;font-weight:400;grid-template-columns:var(--grid-project-columns, 1fr 1fr 1fr);place-items:center}.project>*{font-size:14px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.project .main{font-weight:700;width:100%;padding-left:4px}.subrow{cursor:pointer;display:grid;border-width:1px;border-style:solid;border-color:#acacac;border-bottom-left-radius:4px;border-bottom-right-radius:4px;box-sizing:border-box;grid-template-columns:var(--grid-fasi-columns, 1fr 1fr 1fr);place-items:center;background:#ffffff;color:#595959;font-weight:400}.subrow>*{font-size:12px;line-height:14px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.subrow:has(+.subrow),.project:has(+.subrow){border-bottom-left-radius:0;border-bottom-right-radius:0}.timeline{cursor:pointer;display:grid;border-width:1px;border-style:solid;border-color:#cbcbcb;border-radius:4px;grid-template-columns:var(--grid-fasi-columns, 1fr 1fr 1fr);place-items:center;background:#fff;color:#595959;font-weight:400;box-sizing:border-box}.timeline>*{font-size:14px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.timeline .main{font-weight:700;width:100%;padding-left:4px}";const d=class{constructor(i){t(this,i),this.dateSetup=void 0,this.locale=void 0,this.rtl=void 0,this.headerHeight=void 0,this.columnWidth=void 0,this.fontFamily=void 0,this.fontSize=void 0,this.dateTimeFormatters=void 0,this.singleLineHeader=!1,this.currentDateIndicator=void 0,this.svgWidth=void 0,this.simplifiedHeader=void 0}componentWillLoad(){this.simplifiedHeader=this.singleLineHeader&&"year"!==this.dateSetup.viewMode}formatYear(t){var i,e;return(null===(i=this.dateTimeFormatters)||void 0===i?void 0:i.year)?null===(e=this.dateTimeFormatters)||void 0===e?void 0:e.year(t,this.locale):o.year(t,this.locale)}formatMonth(t){var i,e;return(null===(i=this.dateTimeFormatters)||void 0===i?void 0:i.month)?null===(e=this.dateTimeFormatters)||void 0===e?void 0:e.month(t,this.locale):o.month(t,this.locale)}formatMonthAndYear(t){var i,e;return(null===(i=this.dateTimeFormatters)||void 0===i?void 0:i.monthAndYear)?null===(e=this.dateTimeFormatters)||void 0===e?void 0:e.monthAndYear(t,this.locale):o.monthAndYear(t,this.locale)}formatWeek(t){var i,e;return(null===(i=this.dateTimeFormatters)||void 0===i?void 0:i.week)?null===(e=this.dateTimeFormatters)||void 0===e?void 0:e.week(t,this.locale):o.week(t,this.locale)}formatDay(t){var i,e;return(null===(i=this.dateTimeFormatters)||void 0===i?void 0:i.day)?null===(e=this.dateTimeFormatters)||void 0===e?void 0:e.day(t,this.locale):o.day(t,this.locale)}getCalendarValuesForYear(){const t=[],e=[],s=.5*this.headerHeight,n=this.dateSetup.dates;for(let o=0;o<n.length;o++){const a=n[o],h=this.formatYear(a);if(e.push(i("text",{key:h,y:.8*this.headerHeight,x:this.columnWidth*o+.5*this.columnWidth,class:"calendarBottomText"},h)),0===o||a.getFullYear()!==n[o-1].getFullYear()){const i=a.getFullYear().toString();let e;e=this.rtl?(6+o+a.getFullYear()+1)*this.columnWidth:(6+o-a.getFullYear())*this.columnWidth,t.push({key:i,value:i,x1Line:this.columnWidth*o,y1Line:0,y2Line:this.headerHeight,xText:e,yText:.9*s})}}return[t,e]}getCalendarValuesForMonth(){const t=[],e=[],s=.5*this.headerHeight,n=this.dateSetup.dates;for(let o=0;o<n.length;o++){const a=n[o],h=this.formatMonth(a);if(e.push(i("text",{key:h+a.getFullYear(),y:.8*this.headerHeight,x:this.columnWidth*o+.5*this.columnWidth,class:"calendarBottomText"},h)),0===o||a.getFullYear()!==n[o-1].getFullYear()){const i=this.formatYear(a);let e;e=this.rtl?(6+o+a.getMonth()+1)*this.columnWidth:(6+o-a.getMonth())*this.columnWidth,t.push({key:i,value:i,x1Line:this.columnWidth*o,y1Line:0,y2Line:s,xText:e,yText:.9*s})}}return[t,e]}getCalendarValuesForWeek(){const t=[],e=[];let s=1;const n=.5*this.headerHeight,o=this.dateSetup.dates;for(let a=o.length-1;a>=0;a--){const h=o[a];let r="";0!==a&&h.getMonth()===o[a-1].getMonth()||(r=this.formatMonthAndYear(h));const l=this.formatWeek(h);e.push(i("text",{key:h.getTime(),y:.8*this.headerHeight,x:this.columnWidth*(a+ +this.rtl),class:"calendarBottomText"},l)),r&&(a!==o.length-1&&t.push({key:r,value:r,x1Line:this.columnWidth*a+s*this.columnWidth,y1Line:0,y2Line:n,xText:this.columnWidth*a+this.columnWidth*s*.5,yText:.9*n}),s=0),s++}return[t,e]}getCalendarValuesForDay(){const t=[],e=[],s=.5*this.headerHeight,n=this.dateSetup.dates;for(let o=0;o<n.length;o++){const h=n[o],r=this.formatDay(h);if(e.push(i("text",{key:h.getTime(),y:.8*this.headerHeight,x:this.columnWidth*o+.5*this.columnWidth,class:"calendarBottomText"},r)),o+1!==n.length&&h.getMonth()!==n[o+1].getMonth()){const i=this.formatMonth(h);t.push({key:i+h.getFullYear(),value:i,x1Line:this.columnWidth*(o+1),y1Line:0,y2Line:s,xText:this.columnWidth*(o+1)-a(h.getMonth(),h.getFullYear())*this.columnWidth*.5,yText:.9*s})}}return[t,e]}getTopAndBottomValues(){switch(this.dateSetup.viewMode){case"day":return this.getCalendarValuesForDay();case"week":return this.getCalendarValuesForWeek();case"month":return this.getCalendarValuesForMonth();case"year":return this.getCalendarValuesForYear()}}render(){this.simplifiedHeader=this.singleLineHeader&&"year"!==this.dateSetup.viewMode;const[t,e]=this.getTopAndBottomValues();return i("svg",{key:"171a0a61231f0c68b1df22766f06d5c6a6ee6488",xmlns:"http://www.w3.org/2000/svg",width:this.svgWidth,height:this.headerHeight},i("g",{key:"bb77cf35555bfe7e4e9dffe476de550b06253235",class:"calendar","font-size":this.fontSize,"font-family":this.fontFamily},i("rect",{key:"b99cc1d617b4ad05fa319423ac985a078d53794d",x:0,y:0,width:this.columnWidth*this.dateSetup.dates.length,height:this.headerHeight,class:"calendarHeader"}),this.simplifiedHeader?null:e,t.map(this.simplifiedHeader?t=>i("g",{class:"calendarTop"},i("line",{x1:t.x1Line,y1:2*t.y2Line,x2:t.x1Line,y2:t.y2Line,class:"calendarTopTick",key:t.value+"line"}),i("text",{key:t.value+"text",y:t.yText,x:t.xText,class:"calendarTopText"},t.value)):t=>i("g",{class:"calendarTop"},i("line",{x1:t.x1Line,y1:t.y1Line,x2:t.x1Line,y2:t.y2Line,class:"calendarTopTick",key:t.value+"line"}),i("text",{key:t.value+"text",y:t.yText,x:t.xText,class:"calendarTopText"},t.value))),this.currentDateIndicator&&i("circle",{fill:this.currentDateIndicator.color,cx:this.currentDateIndicator.x+2.5,cy:this.headerHeight-8,r:"8"})))}};d.style=".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.calendarBottomText{text-anchor:middle;fill:#333;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.calendarTopTick{stroke:#e6e4e4}.calendarTopText{text-anchor:middle;fill:#555;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.calendarHeader{fill:#ffffff;stroke:#e0e0e0;stroke-width:1.4}";var u,g,x,v,y,m={exports:{}};u=m.exports,g=function(){function t(t,i,e){this.r=0,this.g=0,this.b=0,this.set(t,i,e)}return t.prototype.set=function(t,i,e){this.r=this.clamp(t),this.g=this.clamp(i),this.b=this.clamp(e)},t.prototype.hueRotate=function(t){void 0===t&&(t=0),t=t/180*Math.PI;var i=Math.sin(t),e=Math.cos(t);this.multiply([.213+.787*e-.213*i,.715-.715*e-.715*i,.072-.072*e+.928*i,.213-.213*e+.143*i,.715+.285*e+.14*i,.072-.072*e-.283*i,.213-.213*e-.787*i,.715-.715*e+.715*i,.072+.928*e+.072*i])},t.prototype.grayscale=function(t){void 0===t&&(t=1),this.multiply([.2126+.7874*(1-t),.7152-.7152*(1-t),.0722-.0722*(1-t),.2126-.2126*(1-t),.7152+.2848*(1-t),.0722-.0722*(1-t),.2126-.2126*(1-t),.7152-.7152*(1-t),.0722+.9278*(1-t)])},t.prototype.sepia=function(t){void 0===t&&(t=1),this.multiply([.393+.607*(1-t),.769-.769*(1-t),.189-.189*(1-t),.349-.349*(1-t),.686+.314*(1-t),.168-.168*(1-t),.272-.272*(1-t),.534-.534*(1-t),.131+.869*(1-t)])},t.prototype.saturate=function(t){void 0===t&&(t=1),this.multiply([.213+.787*t,.715-.715*t,.072-.072*t,.213-.213*t,.715+.285*t,.072-.072*t,.213-.213*t,.715-.715*t,.072+.928*t])},t.prototype.multiply=function(t){var i=this.clamp(this.r*t[0]+this.g*t[1]+this.b*t[2]),e=this.clamp(this.r*t[3]+this.g*t[4]+this.b*t[5]),s=this.clamp(this.r*t[6]+this.g*t[7]+this.b*t[8]);this.r=i,this.g=e,this.b=s},t.prototype.brightness=function(t){void 0===t&&(t=1),this.linear(t)},t.prototype.contrast=function(t){void 0===t&&(t=1),this.linear(t,-.5*t+.5)},t.prototype.linear=function(t,i){void 0===t&&(t=1),void 0===i&&(i=0),this.r=this.clamp(this.r*t+255*i),this.g=this.clamp(this.g*t+255*i),this.b=this.clamp(this.b*t+255*i)},t.prototype.invert=function(t){void 0===t&&(t=1),this.r=this.clamp(255*(t+this.r/255*(1-2*t))),this.g=this.clamp(255*(t+this.g/255*(1-2*t))),this.b=this.clamp(255*(t+this.b/255*(1-2*t)))},t.prototype.hsl=function(){var t=this.r/255,i=this.g/255,e=this.b/255,s=Math.max(t,i,e),n=Math.min(t,i,e),o=0,a=(s+n)/2;if(s===n)return{h:0,s:0,l:100*a};var h=s-n;return s===t?o=(i-e)/h+(i<e?6:0):s===i?o=(e-t)/h+2:s===e&&(o=(t-i)/h+4),{h:100*(o/=6),s:100*(a>.5?h/(2-s-n):h/(s+n)),l:100*a}},t.prototype.clamp=function(t){return Math.min(Math.max(t,0),255)},t}(),x=function(){function t(t,i){this.target=t,this.targetHSL=t.hsl(),this.options=Object.assign({},{acceptanceLossPercentage:5,maxChecks:15},i),this.reusedColor=new g(0,0,0)}return t.prototype.solve=function(){var t=this.solveNarrow(this.solveWide());return{values:t.values,called:t.called,loss:t.loss,filter:this.css(t.values)}},t.prototype.solveWide=function(){for(var t=[60,180,18e3,600,1.2,1.2],i={loss:1/0},e=0;i.loss>this.options.acceptanceLossPercentage;){var s=this.spsa({A:5,a:t,c:15,values:[50,20,3750,50,100,100],maxTriesInLoop:1e3});if(s.loss<i.loss&&(i=s),(e+=1)>=this.options.maxChecks)break}return Object.assign({},i,{called:e})},t.prototype.solveNarrow=function(t){var i=t.loss,e=i+1;return this.spsa({A:i,a:[.25*e,.25*e,e,.25*e,.2*e,.2*e],c:2,values:t.values,maxTriesInLoop:500,called:t.called})},t.prototype.fixValueByFilterIDX=function(t,i){var e=100;return 2===i?e=7500:4!==i&&5!==i||(e=200),3===i?t>e?t%=e:t<0&&(t=e+t%e):t<0?t=0:t>e&&(t=e),t},t.prototype.spsa=function(t){for(var i=t.A,e=t.a,s=t.c,n=t.values,o=t.maxTriesInLoop,a=void 0===o?500:o,h=t.called,r=void 0===h?0:h,l=null,f=1/0,p=new Array(6),c=new Array(6),d=new Array(6),u=0;u<a;u++){for(var g=s/Math.pow(u+1,.16666666666666666),x=0;x<6;x++)p[x]=Math.random()>.5?1:-1,c[x]=n[x]+g*p[x],d[x]=n[x]-g*p[x];var v=this.loss(c)-this.loss(d);for(x=0;x<6;x++){var y=v/(2*g)*p[x],m=e[x]/Math.pow(i+u+1,1);n[x]=this.fixValueByFilterIDX(n[x]-m*y,x)}var k=this.loss(n);k<f&&(l=n.slice(0),f=k)}return{values:l,loss:f,called:r}},t.prototype.loss=function(t){var i=this.reusedColor;i.set(0,0,0),i.invert(t[0]/100),i.sepia(t[1]/100),i.saturate(t[2]/100),i.hueRotate(3.6*t[3]),i.brightness(t[4]/100),i.contrast(t[5]/100);var e=i.hsl();return Math.abs(i.r-this.target.r)+Math.abs(i.g-this.target.g)+Math.abs(i.b-this.target.b)+Math.abs(e.h-this.targetHSL.h)+Math.abs(e.s-this.targetHSL.s)+Math.abs(e.l-this.targetHSL.l)},t.prototype.css=function(t){var i=function(i,e){return void 0===e&&(e=1),Math.round(t[i]*e)};return["invert("+i(0)+"%)","sepia("+i(1)+"%)","saturate("+i(2)+"%)","hue-rotate("+i(3,3.6)+"deg)","brightness("+i(4)+"%)","contrast("+i(5)+"%);"].join(" ")},t}(),v=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},y={},u.clearCache=function(t){t?y[t]&&delete y[t]:y={}},u.hexToCSSFilter=function(t,i){var e,s,n,o,a,h;if(void 0===i&&(i={}),y[t]&&!i.forceFilterRecalculation)return Object.assign({},y[t],{cache:!0});try{if(n=(e=
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */
16
+ function(t,i){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var s,n,o=e.call(t),a=[];try{for(;(void 0===i||i-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(t){n={error:t}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(n)throw n.error}}return a}((h=t,4===h.length?[parseInt("0x"+h[1]+h[1]),parseInt("0x"+h[2]+h[2]),parseInt("0x"+h[3]+h[3])]:7===h.length?[parseInt("0x"+h[1]+h[2]),parseInt("0x"+h[3]+h[4]),parseInt("0x"+h[5]+h[6])]:[]),3))[1],o=e[2],!v(s=e[0])||!v(n)||!v(o))throw new Error("hextToRgb returned an invalid value for '"+t+"'");a=new g(Number(s),Number(n),Number(o))}catch(t){throw new Error("Color value should be in HEX format. "+t)}var r=new x(a,Object.assign({},{acceptanceLossPercentage:5,maxChecks:30,forceFilterRecalculation:!1},i));return y[t]=Object.assign({},r.solve(),{hex:t,rgb:[s,n,o],cache:!1})},Object.defineProperty(u,"__esModule",{value:!0});const k=class{constructor(i){t(this,i),this.tasks=void 0,this.dates=void 0,this.ganttEvent=void 0,this.selectedTask=void 0,this.rowHeight=0,this.columnWidth=0,this.timeStep=0,this.taskHeight=0,this.arrowColor="",this.arrowIndent=0,this.fontFamily="",this.fontSize="",this.rtl=!1,this.hideLabel=!1,this.showSecondaryDates=!1,this.currentDateIndicator=void 0,this.projection=void 0,this.readOnly=!1,this.gridProps=void 0,this.dateChange=void 0,this.progressChange=void 0,this.doubleClick=void 0,this.barClick=void 0,this.barDblClick=void 0,this.barContextMenu=void 0,this.delete=void 0,this.setFailedTask=void 0,this.setSelectedTask=void 0,this.eventStart=void 0,this.eMouseDown=void 0,this.setGanttEvent=void 0,this.xStep=0,this.initEventX1Delta=0,this.initEventXClick=0,this.isMoving=!1,this.point=void 0,this.svg=void 0}componentDidLoad(){this.point=this.createSVGPoint(),this.updateXStep()}createSVGPoint(){if(this.svg)return this.svg.createSVGPoint()}updateXStep(){const t=this.dates[1].getTime()-this.dates[0].getTime()-60*this.dates[1].getTimezoneOffset()*1e3+60*this.dates[0].getTimezoneOffset()*1e3;this.xStep=this.timeStep*this.columnWidth/t}updateSvgMove(){const t=async t=>{var i,e;if(!this.ganttEvent.changedTask||!this.point||!this.svg)return;t.preventDefault(),this.point.x=t.clientX;const s=this.point.matrixTransform(null===(e=null===(i=this.svg)||void 0===i?void 0:i.getScreenCTM())||void 0===e?void 0:e.inverse()),{isChanged:n,changedTask:o}=f(s.x,this.ganttEvent.action,this.ganttEvent.changedTask,this.xStep,this.timeStep,this.initEventX1Delta,this.rtl);n&&this.setGanttEvent(Object.assign(Object.assign({},this.ganttEvent),{action:this.ganttEvent.action,changedTask:o}))},i=async e=>{var s,n;const{action:o,originalSelectedTask:a,changedTask:h}=this.ganttEvent;if(!(h&&this.point&&this.svg&&a))return;e.preventDefault(),this.point.x=e.clientX;const r=this.point.matrixTransform(null===(n=null===(s=this.svg)||void 0===s?void 0:s.getScreenCTM())||void 0===n?void 0:n.inverse()),{changedTask:l}=f(r.x,o,h,this.xStep,this.timeStep,this.initEventX1Delta,this.rtl),p=a.start!==l.start||a.end!==l.end||a.progress!==l.progress;this.svg.removeEventListener("mousemove",t),this.svg.removeEventListener("mouseup",i),this.setGanttEvent({action:""}),this.isMoving=!1;let c=!0;if(("move"===o||"end"===o||"start"===o)&&this.dateChange&&p)try{const t=await this.dateChange(l,l.barChildren);void 0!==t&&(c=t)}catch(t){c=!1}else if(this.progressChange&&p)try{const t=this.progressChange(l,l.barChildren);void 0!==t&&(c=t)}catch(t){c=!1}c||this.setFailedTask(a)};this.isMoving||"move"!==this.ganttEvent.action&&"end"!==this.ganttEvent.action&&"start"!==this.ganttEvent.action&&"progress"!==this.ganttEvent.action||!this.svg||(this.svg.addEventListener("mousemove",t),this.svg.addEventListener("mouseup",i),this.isMoving=!0)}hasMovedHorizontally(t){return!this.readOnly&&this.initEventXClick!==t.clientX}handleBarEventStart(t,i,e){var s;if(e)if(r(e)){if("delete"===t&&this.delete)try{const e=this.delete(i);void 0!==e&&e&&this.setGanttEvent({action:t,changedTask:i})}catch(t){console.error("Error on Delete. "+t)}}else if("mouseenter"===t)this.ganttEvent.action||this.setGanttEvent({action:t,changedTask:i,originalSelectedTask:i});else if("mouseleave"===t)"mouseenter"===this.ganttEvent.action&&this.setGanttEvent({action:""});else if("dblclick"===t)this.doubleClick&&this.doubleClick(i);else if("click"===t)!this.hasMovedHorizontally(e)&&this.barClick&&this.barClick(i);else if("contextmenu"===t)e.preventDefault(),this.barContextMenu&&this.barContextMenu(e,i);else if("move"===t){if(!this.svg||!this.point)return;this.point.x=e.clientX;const n=this.point.matrixTransform(null===(s=this.svg.getScreenCTM())||void 0===s?void 0:s.inverse());this.initEventX1Delta=n.x-i.x1,this.initEventXClick=e.clientX,this.setGanttEvent({action:t,changedTask:i,originalSelectedTask:i})}else this.setGanttEvent({action:t,changedTask:i,originalSelectedTask:i});else"select"===t&&this.setSelectedTask(i.id)}getTaskIcon(t){const e=m.exports.hexToCSSFilter(t.color);return i("image",{href:t.url,filter:e.filter.replace(";",""),x:t.x,y:t.y,width:t.width,height:t.height})}renderKupBar(t,e,s,n){var o,a,h;return i("g",{class:"barWrapper","tab-index":0},this.renderKupBarDisplay(t.x1,t.y,t.x2-t.x1,t.height,t.progressX,t.progressWidth,t.barCornerRadius,t.styles,e,!this.readOnly&&!!this.dateChange&&!t.isDisabled,t,t.x1secondary,(null!==(o=t.x2secondary)&&void 0!==o?o:0)-(null!==(a=t.x1secondary)&&void 0!==a?a:0)),i("g",{class:"handleGroup"},s&&i("g",null,this.renderKupBarDateHandle(t.x1+1,t.y+1,t.handleWidth,t.height-2,t.barCornerRadius,t,"start"),this.renderKupBarDateHandle(t.x2-t.handleWidth-1,t.y+1,t.handleWidth,t.height-2,t.barCornerRadius,t,"end")),n&&i("polygon",{class:"barHandle",points:this.calculateProgressPoint(t),onMouseDown:i=>{this.handleBarEventStart("progress",t,i)}})),t.icon&&t.icon.url&&this.getTaskIcon({color:null!==(h=t.icon.color)&&void 0!==h?h:"#000000",url:t.icon.url,width:t.height/2+"px",height:t.height/2+"px",x:t.x1+(t.x2-t.x1)-t.height/2/2,y:t.y-t.height/2/2/2+(this.showSecondaryDates?t.height/2:0)}))}renderKupBarDisplay(t,e,s,n,o,a,h,r,l,f,p,c,d){if(this.showSecondaryDates&&void 0!==c){const u=n/2;return i("g",{onMouseDown:t=>f&&this.handleBarEventStart("move",p,t)},i("rect",{key:"top semi-transparent bar",x:c,width:d,y:e,height:u,ry:h,rx:h,fill:this.getBarColor(l,r),opacity:.5,class:"barBackground"}),i("rect",{key:"main bar",x:t,width:s,y:e+u,height:u,ry:h,rx:h,fill:this.getBarColor(l,r),class:"barBackground"}),i("rect",{key:"progress bar",x:o,width:a,y:e+u,height:u,ry:h,rx:h,fill:this.getProcessColor(l,r)}))}return i("g",{onMouseDown:t=>{f&&this.handleBarEventStart("move",p,t)}},i("rect",{x:t,width:s,y:e,height:n,ry:h,rx:h,fill:this.getBarColor(l,r),class:"barBackground"}),i("rect",{x:o,width:a,y:e,height:n,ry:h,rx:h,fill:this.getProcessColor(l,r)}))}renderKupBarDateHandle(t,e,s,n,o,a,h){return i("rect",{x:t,y:e,width:s,height:n,class:"barHandle",ry:o,rx:o,onMouseDown:t=>this.handleBarEventStart(h,a,t)})}renderKupBarSmall(t,e,s,n){return i("g",{class:"barWrapper","tab-index":0},this.renderKupBarDisplay(t.x1,t.y,t.x2-t.x1,t.height,t.progressX,t.progressWidth,t.barCornerRadius,t.styles,e,s,t),i("g",{class:"handleGroup"},n&&i("polygon",{class:"barHandle",points:this.calculateProgressPoint(t,"small"),onMouseDown:i=>{this.handleBarEventStart("progress",t,i)}})))}renderKupBarTimeLine(t,s){return i("g",{"tab-index":0},i("rect",{fill:s,x:"0",width:"100%",y:t.y,height:t.height,rx:0,ry:0}),t.barChildren.map((t=>{var s;return i(e,null,i("rect",{style:{cursor:"pointer"},key:t.id,fill:t.styles.backgroundColor,x:t.x1,width:t.x2-t.x1,y:t.y,height:t.height,rx:t.barCornerRadius,ry:t.barCornerRadius}),t.icon&&t.icon.url&&this.getTaskIcon({color:null!==(s=t.icon.color)&&void 0!==s?s:"#000000",url:t.icon.url,width:t.height+"px",height:t.height+"px",x:t.x1+(t.x2-t.x1)-t.height/2,y:t.y-t.height/2/2}))})))}renderKupArrow(t,e){const[s,n]=this.rtl?this.drownPathAndTriangleRTL(t,this.tasks[e.index],this.rowHeight,this.taskHeight,this.arrowIndent):this.drownPathAndTriangle(t,this.tasks[e.index],this.rowHeight,this.taskHeight,this.arrowIndent);return i("g",{class:"arrow"},i("path",{"stroke-width":"1.5",d:s,fill:"none"}),i("polygon",{points:n}))}drownPathAndTriangle(t,i,e,s,n){const o=i.y+s/2,a=t.x2+2*n;return[`M ${t.x2} ${t.y+s/2}\n h ${n}\n v ${(t.index>i.index?-1:1)*e/2}\n ${a<i.x1?"":"H "+(i.x1-n)}\n V ${o}\n h ${a>i.x1?n:i.x1-t.x2-n}`,`${i.x1},${o}\n ${i.x1-5},${o-5}\n ${i.x1-5},${o+5}`]}drownPathAndTriangleRTL(t,i,e,s,n){const o=i.y+s/2,a=t.x1-2*n;return[`M ${t.x1} ${t.y+s/2}\n h ${-n}\n v ${(t.index>i.index?-1:1)*e/2}\n ${a>i.x2?"":`H ${i.x2+n}`}\n V ${o}\n h ${a<i.x2?-n:i.x2-t.x1+n}`,`${i.x2},${o}\n ${i.x2+5},${o+5}\n ${i.x2+5},${o-5}`]}getBarColor(t,i){return t?i.backgroundSelectedColor:i.backgroundColor}getProcessColor(t,i){return t?i.progressSelectedColor:i.progressColor}calculateProgressPoint(t,i="bar"){return l("bar"==i?+!this.rtl*t.progressWidth+t.progressX:t.progressWidth+t.x1,t.y,t.height)}render(){let t=0;const e=[],s=[i("line",{key:"RowLineFirst",x1:0,y1:0,x2:this.gridProps.svgWidth,y2:0,class:"gridRowLine"})];for(const n of this.tasks)e.push(i("rect",{key:"Row"+n.id,x:0,y:t,width:this.gridProps.svgWidth,height:this.rowHeight,class:"gridRow"})),s.push(i("line",{key:"RowLine"+n.id,x1:0,y1:t+this.rowHeight,x2:this.gridProps.svgWidth,y2:t+this.rowHeight,class:"gridRowLine"})),t+=this.rowHeight;const n=new Date;let o=0;const a=[];for(let e=0;e<this.dates.length;e++){const s=this.dates[e];a.push(i("line",{key:s.getTime(),x1:o,y1:0,x2:o,y2:t,class:"gridTick"})),e+1!==this.dates.length&&s.getTime()<n.getTime()&&this.dates[e+1].getTime()>=n.getTime()||0!==e&&e+1===this.dates.length&&s.getTime()<n.getTime()&&(h(s,s.getTime()-this.dates[e-1].getTime(),"millisecond").getTime(),n.getTime()),o+=this.columnWidth}return i("svg",{key:"453f06f9849218010409d444adb13500f22b6cfa",xmlns:"http://www.w3.org/2000/svg",width:this.gridProps.svgWidth,height:this.rowHeight*this.tasks.length+"px","font-family":this.fontFamily,ref:t=>this.svg=t},i("g",{key:"a671a9e0c1c44ef1b3d86d679d68dda934246e59",class:"grid"},i("g",{key:"3741633c839e757fa4d4cc0999d9e34ad5284173",class:"rows"},e),i("g",{key:"34bdba123cff205d0769e6492055a72f51b85bd7",class:"rowLines"},s),i("g",{key:"0d2b321b587e8cc4a65ac356ea1a5903c1fa61f6",class:"ticks"},a)),i("g",{key:"891e706099f2c83dcabf5a0bb62a2c8139c10ac1",class:"content"},this.currentDateIndicator&&i("rect",{fill:this.currentDateIndicator.color,x:this.currentDateIndicator.x+1.5,y:"0",width:"2",height:"100%"}),this.projection&&i("rect",{fill:this.projection.color,x:this.projection.x0,y:"0",width:this.projection.xf-this.projection.x0,height:"100%","fill-opacity":"0.35"}),i("g",{key:"6e36b71942a8619b800210d189629c0856cb57f6",class:"arrows",fill:this.arrowColor,stroke:this.arrowColor},this.tasks.map((t=>t.barChildren.map((i=>{"timeline"!==t.type&&this.renderKupArrow(t,i)}))))),i("g",{key:"38643adf911e2b0ff25b0ffe4f8c8c645171c55d",class:"bar","font-family":this.fontFamily,"font-size":this.fontSize},this.tasks.map((t=>{const e="project"===t.type;return i("g",{onKeyDown:i=>{"Delete"===i.key&&(t.isDisabled||this.handleBarEventStart("delete",t,i)),i.stopPropagation()},onMouseEnter:i=>{this.handleBarEventStart("mouseenter",t,i)},onMouseLeave:i=>{this.handleBarEventStart("mouseleave",t,i)},onDblClick:()=>{this.barDblClick(t)},onClick:i=>{this.handleBarEventStart("click",t,i)},onContextMenu:i=>{this.handleBarEventStart("contextmenu",t,i)},onFocus:()=>{this.handleBarEventStart("select",t)},class:"task-wrapper"},(()=>{const i={task:t,arrowIndent:this.arrowIndent,isDelete:!t.isDisabled,taskHeight:this.taskHeight,isSelected:!!this.selectedTask&&t.id===this.selectedTask.id,rtl:this.rtl,hideLabel:this.hideLabel},s=t.styles,n=i.isSelected?s.backgroundSelectedColor:s.backgroundColor,o=!(this.readOnly||!this.dateChange||t.isDisabled||e),a=!this.readOnly&&!!this.progressChange&&!t.isDisabled,h=!this.readOnly&&!!this.dateChange&&!t.isDisabled;switch(t.typeInternal){case"project":default:return this.renderKupBar(t,i.isSelected,o,a);case"smalltask":return this.renderKupBarSmall(t,i.isSelected,h,a);case"timeline":return this.renderKupBarTimeLine(t,n)}})())})))))}static get watchers(){return{columnWidth:["updateXStep"],dates:["updateXStep"],timeStep:["updateXStep","updateSvgMove"],ganttEvent:["updateSvgMove"],xStep:["updateSvgMove"],svg:["updateSvgMove"],initEventX1Delta:["updateSvgMove"],point:["updateSvgMove"],rtl:["updateSvgMove"],onProgressChange:["updateSvgMove"],onDateChange:["updateSvgMove"]}}};k.style=".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.gridRow{fill:#fff}.gridRowLine{stroke:transparent}.gridTick{stroke:#e6e4e4}.barHandle{fill:#ddd;cursor:ew-resize;opacity:0;visibility:hidden}.barBackground{user-select:none;stroke-width:0}.barWrapper{cursor:pointer;outline:none}.task-wrapper{outline:none !important}.barWrapper:hover .barHandle{visibility:visible;opacity:1}.barLabel{fill:#fff;text-anchor:middle;font-weight:lighter;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.barLabelOutside{fill:#555;text-anchor:start;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}";export{p as kup_custom_task_list_header,c as kup_custom_task_list_table,d as kup_gantt_calendar,k as kup_grid_renderer}