@sme.up/ketchup 9.6.3 → 9.6.4

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 (211) hide show
  1. package/dist/cjs/{f-button-9a0eba42.js → f-button-89de2403.js} +1 -1
  2. package/dist/cjs/{f-cell-1ad41071.js → f-cell-75dbd6eb.js} +9 -29
  3. package/dist/cjs/{f-chip-48851b4f.js → f-chip-08857345.js} +2 -2
  4. package/dist/cjs/{f-image-541e5f4d.js → f-image-a41d7f1e.js} +1 -1
  5. package/dist/cjs/{f-paginator-utils-8ff2a9b4.js → f-paginator-utils-ff07301e.js} +3 -3
  6. package/dist/cjs/{f-text-field-ac5d6497.js → f-text-field-eb207a83.js} +1 -1
  7. package/dist/cjs/index.cjs.js +2 -2
  8. package/dist/cjs/ketchup.cjs.js +1 -1
  9. package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
  10. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +47 -47
  11. package/dist/cjs/kup-box.cjs.entry.js +8 -8
  12. package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
  13. package/dist/cjs/kup-card-list.cjs.entry.js +2 -2
  14. package/dist/cjs/kup-cell.cjs.entry.js +7 -7
  15. package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +8 -8
  16. package/dist/cjs/kup-dashboard.cjs.entry.js +5 -5
  17. package/dist/cjs/{kup-dates-b7d53b4d.js → kup-dates-e22ee32c.js} +21 -0
  18. package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
  19. package/dist/cjs/kup-echart.cjs.entry.js +2 -2
  20. package/dist/cjs/kup-editor.cjs.entry.js +2 -2
  21. package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
  22. package/dist/cjs/kup-gantt_10.cjs.entry.js +21 -21
  23. package/dist/cjs/kup-grid.cjs.entry.js +2 -2
  24. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  25. package/dist/cjs/kup-image-list.cjs.entry.js +7 -7
  26. package/dist/cjs/kup-input-panel.cjs.entry.js +298 -0
  27. package/dist/cjs/kup-lazy.cjs.entry.js +13 -13
  28. package/dist/cjs/kup-magic-box.cjs.entry.js +6 -6
  29. package/dist/cjs/{kup-manager-26a9154b.js → kup-manager-abfe4ddd.js} +9 -1
  30. package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
  31. package/dist/cjs/kup-numeric-picker.cjs.entry.js +4 -4
  32. package/dist/cjs/kup-pdf.cjs.entry.js +76600 -0
  33. package/dist/cjs/kup-photo-frame.cjs.entry.js +4 -4
  34. package/dist/cjs/{kup-planner-renderer-helper-680bbd5a.js → kup-planner-renderer-helper-9f776d6e.js} +1 -1
  35. package/dist/cjs/kup-planner-renderer.cjs.entry.js +3 -3
  36. package/dist/cjs/kup-planner.cjs.entry.js +4 -4
  37. package/dist/cjs/kup-probe.cjs.entry.js +3 -3
  38. package/dist/cjs/kup-qlik.cjs.entry.js +3 -3
  39. package/dist/cjs/kup-snackbar.cjs.entry.js +5 -5
  40. package/dist/cjs/loader.cjs.js +1 -1
  41. package/dist/collection/assets/index.js +8 -0
  42. package/dist/collection/assets/input-panel.js +249 -0
  43. package/dist/collection/assets/pdf.js +15 -0
  44. package/dist/collection/collection-manifest.json +2 -0
  45. package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js +8 -0
  46. package/dist/collection/components/kup-input-panel/kup-input-panel.css +132 -0
  47. package/dist/collection/components/kup-input-panel/kup-input-panel.e2e.js +305 -0
  48. package/dist/collection/components/kup-input-panel/kup-input-panel.js +522 -0
  49. package/dist/collection/components/kup-lazy/kup-lazy.js +11 -11
  50. package/dist/collection/components/kup-list/kup-list.js +1 -1
  51. package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
  52. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
  53. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +1 -1
  54. package/dist/collection/components/kup-pdf/kup-pdf-declarations.js +8 -0
  55. package/dist/collection/components/kup-pdf/kup-pdf.css +169 -0
  56. package/dist/collection/components/kup-pdf/kup-pdf.js +262 -0
  57. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +2 -2
  58. package/dist/collection/components/kup-planner/kup-planner.js +1 -1
  59. package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
  60. package/dist/collection/components/kup-planner/utils/custom-task-list-table.js +1 -1
  61. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +1 -1
  62. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +1 -1
  63. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +2 -2
  64. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +2 -2
  65. package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +1 -1
  66. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +1 -1
  67. package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +2 -2
  68. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +7 -7
  69. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
  70. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +1 -1
  71. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +1 -1
  72. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +1 -1
  73. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +2 -2
  74. package/dist/collection/components/kup-probe/kup-probe.js +1 -1
  75. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
  76. package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
  77. package/dist/collection/components/kup-rating/kup-rating.js +1 -1
  78. package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
  79. package/dist/collection/components/kup-spinner/kup-spinner.js +34 -34
  80. package/dist/collection/components/kup-switch/kup-switch.js +1 -1
  81. package/dist/collection/components/kup-time-picker/kup-time-picker.js +1 -1
  82. package/dist/collection/f-components/f-cell/f-cell.js +5 -24
  83. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +7 -0
  84. package/dist/collection/types/GenericTypes.js +1 -0
  85. package/dist/components/custom-task-list-header.js +2 -2
  86. package/dist/components/custom-task-list-table.js +1 -1
  87. package/dist/components/kup-autocomplete2.js +44 -64
  88. package/dist/components/kup-box2.js +1 -1
  89. package/dist/components/kup-calendar.js +1 -1
  90. package/dist/components/kup-cell.js +1 -1
  91. package/dist/components/kup-dashboard.js +1 -1
  92. package/dist/components/kup-dates.js +20 -1
  93. package/dist/components/kup-echart2.js +1 -1
  94. package/dist/components/kup-gantt-calendar2.js +1 -1
  95. package/dist/components/kup-gantt2.js +1 -1
  96. package/dist/components/kup-grid-renderer2.js +2 -2
  97. package/dist/components/kup-grid2.js +1 -1
  98. package/dist/components/kup-horizontal-scroll2.js +2 -2
  99. package/dist/components/kup-iframe.js +1 -1
  100. package/dist/components/kup-image-list.js +1 -1
  101. package/dist/components/kup-input-panel.d.ts +11 -0
  102. package/dist/components/kup-input-panel.js +449 -0
  103. package/dist/components/kup-lazy.js +11 -11
  104. package/dist/components/kup-magic-box.js +4 -4
  105. package/dist/components/kup-manager.js +9 -1
  106. package/dist/components/kup-nav-bar.js +1 -1
  107. package/dist/components/kup-numeric-picker.js +2 -2
  108. package/dist/components/kup-pdf.d.ts +11 -0
  109. package/dist/components/kup-pdf.js +76756 -0
  110. package/dist/components/kup-photo-frame.js +2 -2
  111. package/dist/components/kup-planner-renderer2.js +1 -1
  112. package/dist/components/kup-planner.js +1 -1
  113. package/dist/components/kup-probe.js +1 -1
  114. package/dist/components/kup-qlik.js +1 -1
  115. package/dist/components/kup-snackbar.js +1 -1
  116. package/dist/components/kup-standard-tooltip2.js +1 -1
  117. package/dist/components/kup-switcher2.js +1 -1
  118. package/dist/components/kup-task-gantt2.js +2 -2
  119. package/dist/components/kup-task-list-header2.js +7 -7
  120. package/dist/components/kup-task-list-table2.js +1 -1
  121. package/dist/components/kup-task-list2.js +1 -1
  122. package/dist/components/kup-tooltip2.js +1 -1
  123. package/dist/components/kup-vertical-scroll2.js +2 -2
  124. package/dist/esm/{f-button-45d690a5.js → f-button-1eebd42e.js} +1 -1
  125. package/dist/esm/{f-cell-63db06db.js → f-cell-af19d5c7.js} +9 -29
  126. package/dist/esm/{f-chip-f1ab6c5e.js → f-chip-9e5fdb25.js} +2 -2
  127. package/dist/esm/{f-image-8b382cc5.js → f-image-1e1ed567.js} +1 -1
  128. package/dist/esm/{f-paginator-utils-ae563cd5.js → f-paginator-utils-dede029b.js} +3 -3
  129. package/dist/esm/{f-text-field-b5fcb598.js → f-text-field-802b45fb.js} +1 -1
  130. package/dist/esm/index.js +2 -2
  131. package/dist/esm/ketchup.js +1 -1
  132. package/dist/esm/kup-accordion.entry.js +3 -3
  133. package/dist/esm/kup-autocomplete_27.entry.js +47 -47
  134. package/dist/esm/kup-box.entry.js +8 -8
  135. package/dist/esm/kup-calendar.entry.js +5 -5
  136. package/dist/esm/kup-card-list.entry.js +2 -2
  137. package/dist/esm/kup-cell.entry.js +7 -7
  138. package/dist/esm/kup-custom-task-list-header_4.entry.js +8 -8
  139. package/dist/esm/kup-dashboard.entry.js +5 -5
  140. package/dist/esm/{kup-dates-4ad48be7.js → kup-dates-26a56bf7.js} +20 -1
  141. package/dist/esm/kup-drawer.entry.js +2 -2
  142. package/dist/esm/kup-echart.entry.js +2 -2
  143. package/dist/esm/kup-editor.entry.js +2 -2
  144. package/dist/esm/kup-family-tree.entry.js +4 -4
  145. package/dist/esm/kup-gantt_10.entry.js +21 -21
  146. package/dist/esm/kup-grid.entry.js +2 -2
  147. package/dist/esm/kup-iframe.entry.js +2 -2
  148. package/dist/esm/kup-image-list.entry.js +7 -7
  149. package/dist/esm/kup-input-panel.entry.js +294 -0
  150. package/dist/esm/kup-lazy.entry.js +13 -13
  151. package/dist/esm/kup-magic-box.entry.js +6 -6
  152. package/dist/esm/{kup-manager-cdb4f21a.js → kup-manager-dd24fb5a.js} +9 -1
  153. package/dist/esm/kup-nav-bar.entry.js +3 -3
  154. package/dist/esm/kup-numeric-picker.entry.js +4 -4
  155. package/dist/esm/kup-pdf.entry.js +76596 -0
  156. package/dist/esm/kup-photo-frame.entry.js +4 -4
  157. package/dist/esm/{kup-planner-renderer-helper-da0518be.js → kup-planner-renderer-helper-b4727e44.js} +1 -1
  158. package/dist/esm/kup-planner-renderer.entry.js +3 -3
  159. package/dist/esm/kup-planner.entry.js +4 -4
  160. package/dist/esm/kup-probe.entry.js +3 -3
  161. package/dist/esm/kup-qlik.entry.js +3 -3
  162. package/dist/esm/kup-snackbar.entry.js +5 -5
  163. package/dist/esm/loader.js +1 -1
  164. package/dist/ketchup/index.esm.js +1 -1
  165. package/dist/ketchup/ketchup.esm.js +1 -1
  166. package/dist/ketchup/p-14943de9.entry.js +1 -0
  167. package/dist/ketchup/{p-c6b34763.entry.js → p-158076de.entry.js} +1 -1
  168. package/dist/ketchup/{p-670354ef.entry.js → p-180cd7ab.entry.js} +1 -1
  169. package/dist/ketchup/{p-b6a21b6a.entry.js → p-19a13672.entry.js} +1 -1
  170. package/dist/ketchup/{p-d9284d98.entry.js → p-201f8d7b.entry.js} +1 -1
  171. package/dist/ketchup/{p-41e8402e.entry.js → p-26d42b88.entry.js} +1 -1
  172. package/dist/ketchup/{p-590c34bc.js → p-2d4a9235.js} +1 -1
  173. package/dist/ketchup/{p-090e5097.entry.js → p-2e04042b.entry.js} +1 -1
  174. package/dist/ketchup/{p-e508b2fd.entry.js → p-34d70475.entry.js} +1 -1
  175. package/dist/ketchup/{p-e0a1fbe7.entry.js → p-3b544027.entry.js} +1 -1
  176. package/dist/ketchup/{p-4c100286.entry.js → p-43ce397b.entry.js} +1 -1
  177. package/dist/ketchup/{p-31c0cfc0.entry.js → p-489af77f.entry.js} +1 -1
  178. package/dist/ketchup/{p-ca8a1f53.entry.js → p-4f69f6f9.entry.js} +1 -1
  179. package/dist/ketchup/{p-ba0f28b7.js → p-61e8d573.js} +1 -1
  180. package/dist/ketchup/{p-ca42a421.entry.js → p-636be6f1.entry.js} +2 -2
  181. package/dist/ketchup/{p-ec4050e1.entry.js → p-63c141d9.entry.js} +1 -1
  182. package/dist/ketchup/{p-4dfc5927.entry.js → p-6972fa0c.entry.js} +1 -1
  183. package/dist/ketchup/{p-a5074ce4.js → p-6c888179.js} +1 -1
  184. package/dist/ketchup/{p-1474852d.entry.js → p-79f4dc5b.entry.js} +1 -1
  185. package/dist/ketchup/{p-2b40d9b9.entry.js → p-818e61d5.entry.js} +1 -1
  186. package/dist/ketchup/{p-9a856951.js → p-8229b97a.js} +1 -1
  187. package/dist/ketchup/p-8f3d400a.entry.js +44 -0
  188. package/dist/ketchup/{p-bedabdb5.js → p-8fcdf454.js} +1 -1
  189. package/dist/ketchup/{p-ad6a3c2a.entry.js → p-a2e14d8b.entry.js} +1 -1
  190. package/dist/ketchup/{p-d839ce21.entry.js → p-a2e691b8.entry.js} +2 -2
  191. package/dist/ketchup/p-a46f99d4.js +1 -0
  192. package/dist/ketchup/{p-1cd48eea.entry.js → p-b238cde7.entry.js} +1 -1
  193. package/dist/ketchup/{p-837bd0a6.entry.js → p-b3b50bb5.entry.js} +1 -1
  194. package/dist/ketchup/{p-d50515f7.js → p-c0f660d6.js} +1 -1
  195. package/dist/ketchup/{p-157f0e89.entry.js → p-cd7fec02.entry.js} +1 -1
  196. package/dist/ketchup/{p-cbe42afd.entry.js → p-dcf7e9b6.entry.js} +1 -1
  197. package/dist/ketchup/{p-e0c10de2.entry.js → p-e0e47ca9.entry.js} +1 -1
  198. package/dist/ketchup/{p-9852b1e9.js → p-e4c63684.js} +1 -1
  199. package/dist/ketchup/{p-cc7352a8.entry.js → p-e7507dd6.entry.js} +1 -1
  200. package/dist/ketchup/p-eb8ea3a6.js +1 -0
  201. package/dist/ketchup/{p-d608f866.entry.js → p-f998ff28.entry.js} +1 -1
  202. package/dist/ketchup/{p-21351b19.entry.js → p-f9a7c21c.entry.js} +1 -1
  203. package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +79 -0
  204. package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +67 -0
  205. package/dist/types/components/kup-pdf/kup-pdf-declarations.d.ts +7 -0
  206. package/dist/types/components/kup-pdf/kup-pdf.d.ts +42 -0
  207. package/dist/types/components.d.ts +158 -0
  208. package/dist/types/types/GenericTypes.d.ts +1 -0
  209. package/package.json +2 -1
  210. package/dist/ketchup/p-5c79cb74.js +0 -1
  211. package/dist/ketchup/p-935f58fc.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
2
- import { k as kupManagerInstance, _ as identify, g as getProps, s as setProps, S as SortMode, z as getColumnByName, c as KupLanguageGeneric, b as KupThemeIconValues, P as KupDebugCategory, X as KupPointerEventTypes, a4 as KupDragEffect, ah as kupDraggableAttr, a6 as KupDropEventTypes, Q as KupLanguageSearch } from './kup-manager.js';
2
+ import { k as kupManagerInstance, _ as identify, g as getProps, s as setProps, S as SortMode, A as getColumnByName, c as KupLanguageGeneric, b as KupThemeIconValues, o as KupDebugCategory, X as KupPointerEventTypes, a4 as KupDragEffect, ah as kupDraggableAttr, a6 as KupDropEventTypes, Q as KupLanguageSearch } from './kup-manager.js';
3
3
  import { D as filterRows, E as paginateRows, G as sortRows, H as pageChange, I as rowsPerPageChange, F as FImage, J as FCell, L as FChip, N as FTextFieldMDC, O as FPaginator, c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r } from './kup-autocomplete2.js';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement as HTMLElement$1, createEvent, getAssetPath, forceUpdate, h as h$1, Host } from '@stencil/core/internal/client';
2
- import { k as kupManagerInstance, g as getProps, s as setProps, c as KupLanguageGeneric, z as getColumnByName } from './kup-manager.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps, c as KupLanguageGeneric, A as getColumnByName } from './kup-manager.js';
3
3
  import { c as componentWrapperId, R as FButton, L as FChip, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s, S as FChipType } from './kup-autocomplete2.js';
4
4
  import { d as KupDatesLocales } from './kup-dates.js';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, forceUpdate, h, Host } from '@stencil/core/internal/client';
2
- import { k as kupManagerInstance, o as FCellPadding, g as getProps, s as setProps, a4 as KupDragEffect, c as KupLanguageGeneric } from './kup-manager.js';
2
+ import { k as kupManagerInstance, p as FCellPadding, g as getProps, s as setProps, a4 as KupDragEffect, c as KupLanguageGeneric } from './kup-manager.js';
3
3
  import { c as componentWrapperId, J as FCell, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s } from './kup-autocomplete2.js';
4
4
 
5
5
  /**
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
2
2
  import { R as FButton, Z as FTextField, _ as FCheckbox, N as FTextFieldMDC, c as componentWrapperId, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s } from './kup-autocomplete2.js';
3
- import { k as kupManagerInstance, g as getProps, s as setProps, ai as KupLanguageDashboard, c as KupLanguageGeneric, a4 as KupDragEffect, P as KupDebugCategory } from './kup-manager.js';
3
+ import { k as kupManagerInstance, g as getProps, s as setProps, ai as KupLanguageDashboard, c as KupLanguageGeneric, a4 as KupDragEffect, o as KupDebugCategory } from './kup-manager.js';
4
4
 
5
5
  /**
6
6
  * Props of the kup-dashboard component.
@@ -4,6 +4,25 @@ function getDefaultExportFromCjs (x) {
4
4
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
5
5
  }
6
6
 
7
+ function getAugmentedNamespace(n) {
8
+ if (n.__esModule) return n;
9
+ var a = Object.defineProperty({}, '__esModule', {value: true});
10
+ Object.keys(n).forEach(function (k) {
11
+ var d = Object.getOwnPropertyDescriptor(n, k);
12
+ Object.defineProperty(a, k, d.get ? d : {
13
+ enumerable: true,
14
+ get: function () {
15
+ return n[k];
16
+ }
17
+ });
18
+ });
19
+ return a;
20
+ }
21
+
22
+ function commonjsRequire (path) {
23
+ throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
24
+ }
25
+
7
26
  /**
8
27
  * Normalization types.
9
28
  */
@@ -805,4 +824,4 @@ class KupDates {
805
824
  }
806
825
  }
807
826
 
808
- export { KupDatesFormats as K, KupDatesNormalize as a, KupDates as b, commonjsGlobal as c, KupDatesLocales as d, KupDateTimeFormatOptionsMonth as e, getDefaultExportFromCjs as g };
827
+ export { KupDatesFormats as K, KupDatesNormalize as a, KupDates as b, commonjsGlobal as c, KupDatesLocales as d, KupDateTimeFormatOptionsMonth as e, getAugmentedNamespace as f, getDefaultExportFromCjs as g, commonjsRequire as h };
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host, getAssetPath } from '@stencil/core/internal/client';
2
- import { k as kupManagerInstance, g as getProps, s as setProps, a as KupThemeColorValues, P as KupDebugCategory, z as getColumnByName, v as KupDataNewColumnTypes } from './kup-manager.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps, a as KupThemeColorValues, o as KupDebugCategory, A as getColumnByName, w as KupDataNewColumnTypes } from './kup-manager.js';
3
3
  import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r } from './kup-autocomplete2.js';
4
4
 
5
5
  /*! *****************************************************************************
@@ -286,7 +286,7 @@ const KupGanttCalendar = /*@__PURE__*/ proxyCustomElement(class KupGanttCalendar
286
286
  this.simplifiedHeader =
287
287
  this.singleLineHeader && this.dateSetup.viewMode !== 'year';
288
288
  const [topValues, bottomValues] = this.getTopAndBottomValues();
289
- return (h("svg", { key: '171a0a61231f0c68b1df22766f06d5c6a6ee6488', xmlns: "http://www.w3.org/2000/svg", width: this.svgWidth, height: this.headerHeight }, h("g", { key: 'bb77cf35555bfe7e4e9dffe476de550b06253235', class: "calendar", "font-size": this.fontSize, "font-family": this.fontFamily }, h("rect", { key: 'b99cc1d617b4ad05fa319423ac985a078d53794d', x: 0, y: 0, width: this.columnWidth * this.dateSetup.dates.length, height: this.headerHeight, class: "calendarHeader" }), this.simplifiedHeader ? null : bottomValues, this.simplifiedHeader
289
+ return (h("svg", { key: 'afbc0f59b413dd491ba4eec43ae3ad275b083617', xmlns: "http://www.w3.org/2000/svg", width: this.svgWidth, height: this.headerHeight }, h("g", { key: '52d441353903b6f5b5310c0e1b8b494c6294084a', class: "calendar", "font-size": this.fontSize, "font-family": this.fontFamily }, h("rect", { key: '4f5880bcc29c37d1e5f71b65cc752d510a690917', x: 0, y: 0, width: this.columnWidth * this.dateSetup.dates.length, height: this.headerHeight, class: "calendarHeader" }), this.simplifiedHeader ? null : bottomValues, this.simplifiedHeader
290
290
  ? topValues.map((topValue) => (h("g", { class: "calendarTop" }, h("line", { x1: topValue.x1Line, y1: topValue.y2Line * 2, x2: topValue.x1Line, y2: topValue.y2Line, class: "calendarTopTick", key: topValue.value + 'line' }), h("text", { key: topValue.value + 'text', y: topValue.yText, x: topValue.xText, class: "calendarTopText" }, topValue.value))))
291
291
  : topValues.map((topValue) => (h("g", { class: "calendarTop" }, h("line", { x1: topValue.x1Line, y1: topValue.y1Line, x2: topValue.x1Line, y2: topValue.y2Line, class: "calendarTopTick", key: topValue.value + 'line' }), h("text", { key: topValue.value + 'text', y: topValue.yText, x: topValue.xText, class: "calendarTopText" }, topValue.value)))), this.currentDateIndicator && (
292
292
  // current date indicator
@@ -566,7 +566,7 @@ const KupGantt = /*@__PURE__*/ proxyCustomElement(class KupGantt extends HTMLEle
566
566
  TaskListHeader: this.TaskListHeader,
567
567
  TaskListTable: this.TaskListTable,
568
568
  };
569
- return (h("div", { key: 'f7f84291517b74796502599d7005f0902432da84', class: "gannt-wrapper-main" }, h("div", { key: 'bbf2af26ac05a9c67a82eddedbeb7641c9b75e04', class: "wrapper", onKeyDown: this.handleKeyDown.bind(this), tabIndex: 0, ref: (el) => (this.wrapperRef = el) }, this.listCellWidth && (h("kup-task-list", Object.assign({ currentTasks: this.currentTasks, handleClick: this.handleClick, handleDblClick: this.handleDblClick, handleContextMenu: this.handleContextMenu, ganttOnClick: this.ganttOnClick, ganttOnDblClick: this.ganttOnDblClick, ganttonOnContextMenu: this.ganttonOnContextMenu, label: this.label, doubleView: this.doubleView, setDoubleView: this.setDoubleView }, tableProps, { class: "tasks", ref: (el) => (this.taskListTrueRef = el) }))), h("kup-task-gantt", { key: '138391819549ea113ba52f3d218afbc74e4e92bb', gridProps: gridProps, calendarProps: calendarProps, barProps: barProps, ganttHeight: this.ganttHeight, taskGanttRef: this.taskGanttRef, scrollY: this.scrollY, scrollX: this.scrollX, class: "ganttContainer" }), this.ganttEvent.changedTask && (h("kup-tooltip", { arrowIndent: this.arrowIndent, rowHeight: this.rowHeight, svgContainerHeight: this.svgContainerHeight, svgContainerWidth: this.svgContainerWidth, fontFamily: this.fontFamily, fontSize: this.fontSize, scrollX: this.scrollX, scrollY: this.scrollY, task: this.ganttEvent.changedTask, headerHeight: this.headerHeight, taskListWidth: this.taskListWidth, TooltipContent: this.TooltipContent, rtl: this.rtl, svgWidth: this.svgWidth })), h("kup-vertical-scroll", { key: 'da4e17e28991a3fbc7793c90d17d42cdb3f29383', ganttFullHeight: this.ganttFullHeight, ganttHeight: this.ganttHeight, headerHeight: this.headerHeight, scrollNumber: this.scrollY, verticalScroll: this.handleScrollY.bind(this), rtl: this.rtl })), this.taskGanttRef && (h("kup-horizontal-scroll", { svgWidth: this.svgWidth, taskListTrueRef: this.taskListTrueRef, taskListWidth: this.taskListWidth, scrollNumber: this.scrollX, rtl: this.rtl, horizontalScroll: this.handleScrollX.bind(this) }))));
569
+ return (h("div", { key: '6cfa74263599c97bcae3f8f473f94c69bcaf8258', class: "gannt-wrapper-main" }, h("div", { key: 'ebc15fab0f8675bb5f21230175b7b50842e0974e', class: "wrapper", onKeyDown: this.handleKeyDown.bind(this), tabIndex: 0, ref: (el) => (this.wrapperRef = el) }, this.listCellWidth && (h("kup-task-list", Object.assign({ currentTasks: this.currentTasks, handleClick: this.handleClick, handleDblClick: this.handleDblClick, handleContextMenu: this.handleContextMenu, ganttOnClick: this.ganttOnClick, ganttOnDblClick: this.ganttOnDblClick, ganttonOnContextMenu: this.ganttonOnContextMenu, label: this.label, doubleView: this.doubleView, setDoubleView: this.setDoubleView }, tableProps, { class: "tasks", ref: (el) => (this.taskListTrueRef = el) }))), h("kup-task-gantt", { key: '6c9bdf420f5660fbae4f9c9d40f772e9fa93671b', gridProps: gridProps, calendarProps: calendarProps, barProps: barProps, ganttHeight: this.ganttHeight, taskGanttRef: this.taskGanttRef, scrollY: this.scrollY, scrollX: this.scrollX, class: "ganttContainer" }), this.ganttEvent.changedTask && (h("kup-tooltip", { arrowIndent: this.arrowIndent, rowHeight: this.rowHeight, svgContainerHeight: this.svgContainerHeight, svgContainerWidth: this.svgContainerWidth, fontFamily: this.fontFamily, fontSize: this.fontSize, scrollX: this.scrollX, scrollY: this.scrollY, task: this.ganttEvent.changedTask, headerHeight: this.headerHeight, taskListWidth: this.taskListWidth, TooltipContent: this.TooltipContent, rtl: this.rtl, svgWidth: this.svgWidth })), h("kup-vertical-scroll", { key: '09d624d5a440649b8b2a032d4257cd64356f2421', ganttFullHeight: this.ganttFullHeight, ganttHeight: this.ganttHeight, headerHeight: this.headerHeight, scrollNumber: this.scrollY, verticalScroll: this.handleScrollY.bind(this), rtl: this.rtl })), this.taskGanttRef && (h("kup-horizontal-scroll", { svgWidth: this.svgWidth, taskListTrueRef: this.taskListTrueRef, taskListWidth: this.taskListWidth, scrollNumber: this.scrollX, rtl: this.rtl, horizontalScroll: this.handleScrollX.bind(this) }))));
570
570
  }
571
571
  get rootElement() { return this; }
572
572
  static get watchers() { return {
@@ -1269,13 +1269,13 @@ const KupGridRenderer = /*@__PURE__*/ proxyCustomElement(class KupGridRenderer e
1269
1269
  addToDate(date, date.getTime() - this.dates[i - 1].getTime(), 'millisecond').getTime() >= now.getTime())) ;
1270
1270
  tickX += this.columnWidth;
1271
1271
  }
1272
- return (h("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: (el) => (this.svg = el) }, h("g", { key: 'a671a9e0c1c44ef1b3d86d679d68dda934246e59', class: "grid" }, h("g", { key: '3741633c839e757fa4d4cc0999d9e34ad5284173', class: "rows" }, gridRows), h("g", { key: '34bdba123cff205d0769e6492055a72f51b85bd7', class: "rowLines" }, rowLines), h("g", { key: '0d2b321b587e8cc4a65ac356ea1a5903c1fa61f6', class: "ticks" }, ticks)), h("g", { key: '891e706099f2c83dcabf5a0bb62a2c8139c10ac1', class: "content" }, this.currentDateIndicator && (h("rect", { fill: this.currentDateIndicator.color, x: this.currentDateIndicator.x + 1.5, y: "0", width: "2", height: "100%" })), this.projection && (h("rect", { fill: this.projection.color, x: this.projection.x0, y: "0", width: this.projection.xf - this.projection.x0, height: "100%", "fill-opacity": "0.35" })), h("g", { key: '6e36b71942a8619b800210d189629c0856cb57f6', class: "arrows", fill: this.arrowColor, stroke: this.arrowColor }, this.tasks.map((task) => {
1272
+ return (h("svg", { key: '520a50739aa00f72aeb4e43ba03a3b5f126e289a', xmlns: "http://www.w3.org/2000/svg", width: this.gridProps.svgWidth, height: `${this.rowHeight * this.tasks.length}px`, "font-family": this.fontFamily, ref: (el) => (this.svg = el) }, h("g", { key: '2681f573ab6f0c7ae9c9f316b77a05c9a634e100', class: "grid" }, h("g", { key: '085ea28cdbb6ee28354cd255c0f1b00a56c5588f', class: "rows" }, gridRows), h("g", { key: 'cb02f6b77af725f514f4eaf63624ff4ace5cf9e2', class: "rowLines" }, rowLines), h("g", { key: 'bed7254aeb03e0fbd1ab3e9d40c14f84b346bffc', class: "ticks" }, ticks)), h("g", { key: 'b22b4e0c75d7cef3336a8e069b243d6296200272', class: "content" }, this.currentDateIndicator && (h("rect", { fill: this.currentDateIndicator.color, x: this.currentDateIndicator.x + 1.5, y: "0", width: "2", height: "100%" })), this.projection && (h("rect", { fill: this.projection.color, x: this.projection.x0, y: "0", width: this.projection.xf - this.projection.x0, height: "100%", "fill-opacity": "0.35" })), h("g", { key: '594dd1e9af2f037f0599019a3082a58115907d3b', class: "arrows", fill: this.arrowColor, stroke: this.arrowColor }, this.tasks.map((task) => {
1273
1273
  return task.barChildren.map((child) => {
1274
1274
  if (task.type !== 'timeline') {
1275
1275
  this.renderKupArrow(task, child);
1276
1276
  }
1277
1277
  });
1278
- })), h("g", { key: '38643adf911e2b0ff25b0ffe4f8c8c645171c55d', class: "bar", "font-family": this.fontFamily, "font-size": this.fontSize }, this.tasks.map((task) => {
1278
+ })), h("g", { key: '9d41cb46ff1373cf3a34fcebf7f9bc02ab961a8b', class: "bar", "font-family": this.fontFamily, "font-size": this.fontSize }, this.tasks.map((task) => {
1279
1279
  const forbidResize = task.type === 'project';
1280
1280
  return (h("g", { onKeyDown: (e) => {
1281
1281
  switch (e.key) {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, forceUpdate, h, Host } from '@stencil/core/internal/client';
2
- import { k as kupManagerInstance, g as getProps, s as setProps, P as KupDebugCategory } from './kup-manager.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps, o as KupDebugCategory } from './kup-manager.js';
3
3
  import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r } from './kup-autocomplete2.js';
4
4
 
5
5
  /**
@@ -38,11 +38,11 @@ const HorizontalScroll = /*@__PURE__*/ proxyCustomElement(class HorizontalScroll
38
38
  render() {
39
39
  var _a, _b;
40
40
  const w = (_b = ((_a = this.taskListTrueRef) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width) + 24 * 1.5) !== null && _b !== void 0 ? _b : 0; // 24 * 2 is the sum of padding and margin for both list and gantt, multiplied by 1.5 cause we need to add the other half to the right
41
- return (h("div", { key: '6900ce2b4ff33f7f48403c085861d25d8a55ae51', dir: "ltr", style: {
41
+ return (h("div", { key: 'a560e1597e9122df0d98d0508ace8ec5c04a5513', dir: "ltr", style: {
42
42
  margin: this.rtl
43
43
  ? `0px ${w}px 0px 12px`
44
44
  : `0px 12px 0px ${w}px`,
45
- }, class: "scrollWrapper", "data-scrollx": "true", onScroll: this.horizontalScroll }, h("div", { key: 'd5cd1e9ec9d4dc2a1c249eef3c485dc3eb9f82ad', style: { width: `${this.svgWidth}px` }, class: "scroll" })));
45
+ }, class: "scrollWrapper", "data-scrollx": "true", onScroll: this.horizontalScroll }, h("div", { key: 'd1f0693a7a2f4ae545d48c0708f91770c1fee717', style: { width: `${this.svgWidth}px` }, class: "scroll" })));
46
46
  }
47
47
  get rootElement() { return this; }
48
48
  static get watchers() { return {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
2
- import { k as kupManagerInstance, g as getProps, s as setProps, P as KupDebugCategory } from './kup-manager.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps, o as KupDebugCategory } from './kup-manager.js';
3
3
  import { d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s } from './kup-autocomplete2.js';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
2
- import { k as kupManagerInstance, g as getProps, s as setProps, c as KupLanguageGeneric, X as KupPointerEventTypes, o as FCellPadding } from './kup-manager.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps, c as KupLanguageGeneric, X as KupPointerEventTypes, p as FCellPadding } from './kup-manager.js';
3
3
  import { a3 as FButtonStyling, M as MDCRipple, c as componentWrapperId, F as FImage, R as FButton, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s, J as FCell } from './kup-autocomplete2.js';
4
4
 
5
5
  /**
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface KupInputPanel extends Components.KupInputPanel, HTMLElement {}
4
+ export const KupInputPanel: {
5
+ prototype: KupInputPanel;
6
+ new (): KupInputPanel;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,449 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps, c as KupLanguageGeneric, F as FCellTypes } from './kup-manager.js';
3
+ import { N as FTextFieldMDC, c as componentWrapperId, R as FButton, J as FCell, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s } from './kup-autocomplete2.js';
4
+
5
+ var KupInputPanelProps;
6
+ (function (KupInputPanelProps) {
7
+ KupInputPanelProps["customStyle"] = "Custom style of the component.";
8
+ KupInputPanelProps["data"] = "Actual data of the input panel.";
9
+ KupInputPanelProps["hiddenSubmitButton"] = "Creates a hidden submit button in order to submit the form with enter.";
10
+ KupInputPanelProps["submitCb"] = "Sets the callback function on submit form";
11
+ KupInputPanelProps["valueChangeCb"] = "Sets the callback function on value change event";
12
+ })(KupInputPanelProps || (KupInputPanelProps = {}));
13
+
14
+ const kupInputPanelCss = ".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}.input-panel .f-cell .f-checkbox .checkbox .checkbox__native-control{height:40px;width:40px}";
15
+ const KupInputPanelStyle0 = kupInputPanelCss;
16
+
17
+ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
18
+ if (kind === "a" && !f)
19
+ throw new TypeError("Private accessor was defined without a getter");
20
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
21
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
22
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
23
+ };
24
+ var _KupInputPanel_instances, _KupInputPanel_kupManager, _KupInputPanel_renderRow, _KupInputPanel_renderCell, _KupInputPanel_mapCells, _KupInputPanel_mapData, _KupInputPanel_slotData, _KupInputPanel_CHIAdapter, _KupInputPanel_GRAAdapter, _KupInputPanel_BTNAdapter, _KupInputPanel_CMBandACPAdapter, _KupInputPanel_CHKAdapter, _KupInputPanel_CLPAdapter, _KupInputPanel_ITXAdapter, _KupInputPanel_RADAdapter;
25
+ const dom = document.documentElement;
26
+ const KupInputPanel$1 = /*@__PURE__*/ proxyCustomElement(class KupInputPanel extends HTMLElement {
27
+ constructor() {
28
+ super();
29
+ this.__registerHost();
30
+ this.__attachShadow();
31
+ this.kupReady = createEvent(this, "kup-input-panel-ready", 6);
32
+ _KupInputPanel_instances.add(this);
33
+ //#endregion
34
+ //#region VARIABLES
35
+ /*-------------------------------------------------*/
36
+ /* I n t e r n a l V a r i a b l e s */
37
+ /*-------------------------------------------------*/
38
+ _KupInputPanel_kupManager.set(this, kupManagerInstance());
39
+ this.customStyle = '';
40
+ this.data = null;
41
+ this.hiddenSubmitButton = false;
42
+ this.submitCb = null;
43
+ this.handleEventsCallbacks = [];
44
+ this.inputPanelCells = [];
45
+ }
46
+ //#endregion
47
+ //#region WATCHERS
48
+ /*-------------------------------------------------*/
49
+ /* W a t c h e r s */
50
+ /*-------------------------------------------------*/
51
+ onDataChanged() {
52
+ __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_mapCells).call(this, this.data);
53
+ }
54
+ //#endregion
55
+ //#region PUBLIC METHODS
56
+ /*-------------------------------------------------*/
57
+ /* P u b l i c M e t h o d s */
58
+ /*-------------------------------------------------*/
59
+ /**
60
+ * Used to retrieve component's props values.
61
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
62
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
63
+ */
64
+ async getProps(descriptions) {
65
+ return getProps(this, KupInputPanelProps, descriptions);
66
+ }
67
+ /**
68
+ * This method is used to trigger a new render of the component.
69
+ */
70
+ async refresh() {
71
+ forceUpdate(this);
72
+ }
73
+ /**
74
+ * Sets the props to the component.
75
+ * @param {GenericObject} props - Object containing props that will be set to the component.
76
+ */
77
+ async setProps(props) {
78
+ setProps(this, KupInputPanelProps, props);
79
+ }
80
+ //#endregion
81
+ //#region LIFECYCLE HOOKS
82
+ /*-------------------------------------------------*/
83
+ /* L i f e c y c l e H o o k s */
84
+ /*-------------------------------------------------*/
85
+ componentWillLoad() {
86
+ __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").debug.logLoad(this, false);
87
+ __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.register(this);
88
+ __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.register(this);
89
+ this.onDataChanged();
90
+ }
91
+ componentDidLoad() {
92
+ this.kupReady.emit({ comp: this, id: this.rootElement.id });
93
+ __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").debug.logLoad(this, true);
94
+ this.handleEventsCallbacks.map((cbData) => {
95
+ this.rootElement.addEventListener(cbData.eventName, (e) => {
96
+ const inputPanelEvent = {
97
+ state: this.inputPanelCells.find((data) => data.cells.find((cell) => cell.column.name === e.detail.id)).cells,
98
+ data: {
99
+ field: e.detail.id,
100
+ value: e.detail.inputValue || e.detail.value,
101
+ },
102
+ };
103
+ cbData.eventCallback(inputPanelEvent);
104
+ });
105
+ });
106
+ }
107
+ componentWillRender() {
108
+ __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").debug.logRender(this, false);
109
+ }
110
+ componentDidRender() {
111
+ const root = this.rootElement.shadowRoot;
112
+ if (root) {
113
+ const fs = root.querySelectorAll('.f-text-field');
114
+ for (let index = 0; index < fs.length; index++) {
115
+ FTextFieldMDC(fs[index]);
116
+ }
117
+ }
118
+ __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").debug.logRender(this, true);
119
+ }
120
+ render() {
121
+ const isEmptyData = Boolean(!this.inputPanelCells.length);
122
+ const inputPanelContent = isEmptyData
123
+ ? [
124
+ h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA)),
125
+ ]
126
+ : this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
127
+ return (h(Host, { key: '47b1cbfae920b48873c3c5c5629ed1d9f4ac7290' }, h("style", { key: 'd48cfa1e1f470e9b991745ef30ebc236c6399b98' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '257d3d98795b32e59abee2c5aa8be341880f37be', id: componentWrapperId }, inputPanelContent)));
128
+ }
129
+ disconnectedCallback() {
130
+ __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);
131
+ __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.unregister(this);
132
+ }
133
+ get rootElement() { return this; }
134
+ static get watchers() { return {
135
+ "data": ["onDataChanged"]
136
+ }; }
137
+ static get style() { return KupInputPanelStyle0; }
138
+ }, [1, "kup-input-panel", {
139
+ "customStyle": [1, "custom-style"],
140
+ "data": [16],
141
+ "hiddenSubmitButton": [4, "hidden-submit-button"],
142
+ "submitCb": [16],
143
+ "handleEventsCallbacks": [16],
144
+ "inputPanelCells": [32],
145
+ "getProps": [64],
146
+ "refresh": [64],
147
+ "setProps": [64]
148
+ }, undefined, {
149
+ "data": ["onDataChanged"]
150
+ }]);
151
+ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_instances = new WeakSet(), _KupInputPanel_renderRow = function _KupInputPanel_renderRow(inputPanelCell) {
152
+ var _a;
153
+ // todo layout
154
+ const horizontal = ((_a = inputPanelCell.row.layout) === null || _a === void 0 ? void 0 : _a.horizontal) || false;
155
+ const rowContent = inputPanelCell.cells.map((cell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderCell).call(this, cell.cell, inputPanelCell.row, cell.column));
156
+ const classObj = {
157
+ form: true,
158
+ 'input-panel': true,
159
+ 'form--column': !horizontal,
160
+ };
161
+ // We create a form for each row in data
162
+ return (h("form", { class: classObj, name: this.rootElement.id, onSubmit: this.submitCb }, rowContent, this.hiddenSubmitButton ? (h(FButton, { buttonType: "submit", label: __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM), wrapperClass: "form__submit" })) : null));
163
+ }, _KupInputPanel_renderCell = function _KupInputPanel_renderCell(cell, row, column) {
164
+ const cellProps = {
165
+ cell,
166
+ column,
167
+ row,
168
+ component: this,
169
+ editable: cell.isEditable,
170
+ renderKup: true,
171
+ setSizes: true,
172
+ };
173
+ return h(FCell, Object.assign({}, cellProps));
174
+ }, _KupInputPanel_mapCells = function _KupInputPanel_mapCells(data) {
175
+ var _a;
176
+ const inpuPanelCells = ((_a = data === null || data === void 0 ? void 0 : data.rows) === null || _a === void 0 ? void 0 : _a.length)
177
+ ? data.rows.reduce((inpuPanelCells, row) => {
178
+ const cells = data.columns
179
+ .filter((column) => column.visible)
180
+ .map((column) => {
181
+ const cell = row.cells[column.name];
182
+ const mappedCell = Object.assign(Object.assign({}, cell), { data: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_mapData).call(this, cell, column)), { id: column.name }), slotData: __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_slotData).call(this, cell, column), isEditable: cell.editable });
183
+ return { column, cell: mappedCell };
184
+ });
185
+ return [...inpuPanelCells, { cells, row }];
186
+ }, [])
187
+ : [];
188
+ this.inputPanelCells = inpuPanelCells;
189
+ }, _KupInputPanel_mapData = function _KupInputPanel_mapData(cell, col) {
190
+ const options = cell.options;
191
+ const fieldLabel = col.title;
192
+ const currentValue = cell.value;
193
+ const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
194
+ const dataAdapterMap = new Map([
195
+ [FCellTypes.AUTOCOMPLETE, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CMBandACPAdapter)],
196
+ [FCellTypes.BUTTON_LIST, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_BTNAdapter)],
197
+ [FCellTypes.CHART, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_GRAAdapter)],
198
+ [FCellTypes.CHIP, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CHIAdapter)],
199
+ [FCellTypes.CHECKBOX, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CHKAdapter)],
200
+ [FCellTypes.COLOR_PICKER, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CLPAdapter)],
201
+ [FCellTypes.COMBOBOX, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CMBandACPAdapter)],
202
+ [FCellTypes.RADIO, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_RADAdapter)],
203
+ [FCellTypes.STRING, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_ITXAdapter)],
204
+ ]);
205
+ const adapter = dataAdapterMap.get(cellType);
206
+ return adapter ? adapter(options, fieldLabel, currentValue) : null;
207
+ }, _KupInputPanel_slotData = function _KupInputPanel_slotData(cell, col) {
208
+ const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
209
+ if (cellType !== FCellTypes.CHIP &&
210
+ cellType !== FCellTypes.MULTI_AUTOCOMPLETE &&
211
+ cellType !== FCellTypes.MULTI_COMBOBOX &&
212
+ !cell.editable) {
213
+ return null;
214
+ }
215
+ return {
216
+ trailingIcon: true,
217
+ label: col.title,
218
+ };
219
+ }, _KupInputPanel_CHIAdapter = function _KupInputPanel_CHIAdapter(options, _fieldLabel, currentValue) {
220
+ return {
221
+ data: (options === null || options === void 0 ? void 0 : options.length)
222
+ ? options.map((option) => ({
223
+ value: option.label,
224
+ id: option.id,
225
+ selected: currentValue === option.id,
226
+ }))
227
+ : [{ id: currentValue, value: currentValue }],
228
+ };
229
+ }, _KupInputPanel_GRAAdapter = function _KupInputPanel_GRAAdapter() {
230
+ //TODO: definire mapping
231
+ return {
232
+ data: {
233
+ sizeX: '50px',
234
+ offlineMode: {
235
+ value: '8;4;5',
236
+ },
237
+ id: 'i1012_GREF_0',
238
+ cellId: 'i1012_GREF_0',
239
+ sizeY: '50px',
240
+ },
241
+ };
242
+ }, _KupInputPanel_BTNAdapter = function _KupInputPanel_BTNAdapter(_options, _fieldLabel, _currentValue) {
243
+ //TODO: come gestire i button list dal protocollo?
244
+ return {
245
+ data: [
246
+ {
247
+ data: { dropdownOnly: false, label: 'Pier' },
248
+ },
249
+ { data: { dropdownOnly: false, label: 'Valerio' } },
250
+ ],
251
+ };
252
+ }, _KupInputPanel_CMBandACPAdapter = function _KupInputPanel_CMBandACPAdapter(options, fieldLabel, currentValue) {
253
+ return {
254
+ data: {
255
+ 'kup-text-field': {
256
+ trailingIcon: true,
257
+ label: fieldLabel,
258
+ icon: 'arrow_drop_down',
259
+ },
260
+ 'kup-list': {
261
+ showIcons: true,
262
+ data: (options === null || options === void 0 ? void 0 : options.length)
263
+ ? options.map((option) => ({
264
+ value: option.label,
265
+ id: option.id,
266
+ selected: currentValue === option.id,
267
+ }))
268
+ : [],
269
+ },
270
+ },
271
+ label: fieldLabel,
272
+ };
273
+ }, _KupInputPanel_CHKAdapter = function _KupInputPanel_CHKAdapter(_options, fieldLabel, currentValue) {
274
+ return {
275
+ checked: currentValue === 'on' || currentValue === '1',
276
+ label: fieldLabel,
277
+ };
278
+ }, _KupInputPanel_CLPAdapter = function _KupInputPanel_CLPAdapter(_options, fieldLabel, _currentValue) {
279
+ return {
280
+ data: {
281
+ 'kup-text-field': {
282
+ label: fieldLabel,
283
+ },
284
+ },
285
+ };
286
+ }, _KupInputPanel_ITXAdapter = function _KupInputPanel_ITXAdapter(_options, fieldLabel, _currentValue) {
287
+ return { label: fieldLabel };
288
+ }, _KupInputPanel_RADAdapter = function _KupInputPanel_RADAdapter(options, _fieldLabel, currentValue) {
289
+ return {
290
+ data: options.map((option) => ({
291
+ value: option.id,
292
+ label: option.label,
293
+ checked: option.id === currentValue,
294
+ })),
295
+ };
296
+ };
297
+ function defineCustomElement$1() {
298
+ if (typeof customElements === "undefined") {
299
+ return;
300
+ }
301
+ const components = ["kup-input-panel", "kup-autocomplete", "kup-badge", "kup-button", "kup-button-list", "kup-card", "kup-chart", "kup-checkbox", "kup-chip", "kup-color-picker", "kup-combobox", "kup-data-table", "kup-date-picker", "kup-dialog", "kup-dropdown-button", "kup-form", "kup-gauge", "kup-image", "kup-list", "kup-progress-bar", "kup-radio", "kup-rating", "kup-spinner", "kup-switch", "kup-tab-bar", "kup-text-field", "kup-time-picker", "kup-tree"];
302
+ components.forEach(tagName => { switch (tagName) {
303
+ case "kup-input-panel":
304
+ if (!customElements.get(tagName)) {
305
+ customElements.define(tagName, KupInputPanel$1);
306
+ }
307
+ break;
308
+ case "kup-autocomplete":
309
+ if (!customElements.get(tagName)) {
310
+ defineCustomElement$s();
311
+ }
312
+ break;
313
+ case "kup-badge":
314
+ if (!customElements.get(tagName)) {
315
+ defineCustomElement$r();
316
+ }
317
+ break;
318
+ case "kup-button":
319
+ if (!customElements.get(tagName)) {
320
+ defineCustomElement$q();
321
+ }
322
+ break;
323
+ case "kup-button-list":
324
+ if (!customElements.get(tagName)) {
325
+ defineCustomElement$p();
326
+ }
327
+ break;
328
+ case "kup-card":
329
+ if (!customElements.get(tagName)) {
330
+ defineCustomElement$o();
331
+ }
332
+ break;
333
+ case "kup-chart":
334
+ if (!customElements.get(tagName)) {
335
+ defineCustomElement$n();
336
+ }
337
+ break;
338
+ case "kup-checkbox":
339
+ if (!customElements.get(tagName)) {
340
+ defineCustomElement$m();
341
+ }
342
+ break;
343
+ case "kup-chip":
344
+ if (!customElements.get(tagName)) {
345
+ defineCustomElement$l();
346
+ }
347
+ break;
348
+ case "kup-color-picker":
349
+ if (!customElements.get(tagName)) {
350
+ defineCustomElement$k();
351
+ }
352
+ break;
353
+ case "kup-combobox":
354
+ if (!customElements.get(tagName)) {
355
+ defineCustomElement$j();
356
+ }
357
+ break;
358
+ case "kup-data-table":
359
+ if (!customElements.get(tagName)) {
360
+ defineCustomElement$i();
361
+ }
362
+ break;
363
+ case "kup-date-picker":
364
+ if (!customElements.get(tagName)) {
365
+ defineCustomElement$h();
366
+ }
367
+ break;
368
+ case "kup-dialog":
369
+ if (!customElements.get(tagName)) {
370
+ defineCustomElement$g();
371
+ }
372
+ break;
373
+ case "kup-dropdown-button":
374
+ if (!customElements.get(tagName)) {
375
+ defineCustomElement$f();
376
+ }
377
+ break;
378
+ case "kup-form":
379
+ if (!customElements.get(tagName)) {
380
+ defineCustomElement$e();
381
+ }
382
+ break;
383
+ case "kup-gauge":
384
+ if (!customElements.get(tagName)) {
385
+ defineCustomElement$d();
386
+ }
387
+ break;
388
+ case "kup-image":
389
+ if (!customElements.get(tagName)) {
390
+ defineCustomElement$c();
391
+ }
392
+ break;
393
+ case "kup-list":
394
+ if (!customElements.get(tagName)) {
395
+ defineCustomElement$b();
396
+ }
397
+ break;
398
+ case "kup-progress-bar":
399
+ if (!customElements.get(tagName)) {
400
+ defineCustomElement$a();
401
+ }
402
+ break;
403
+ case "kup-radio":
404
+ if (!customElements.get(tagName)) {
405
+ defineCustomElement$9();
406
+ }
407
+ break;
408
+ case "kup-rating":
409
+ if (!customElements.get(tagName)) {
410
+ defineCustomElement$8();
411
+ }
412
+ break;
413
+ case "kup-spinner":
414
+ if (!customElements.get(tagName)) {
415
+ defineCustomElement$7();
416
+ }
417
+ break;
418
+ case "kup-switch":
419
+ if (!customElements.get(tagName)) {
420
+ defineCustomElement$6();
421
+ }
422
+ break;
423
+ case "kup-tab-bar":
424
+ if (!customElements.get(tagName)) {
425
+ defineCustomElement$5();
426
+ }
427
+ break;
428
+ case "kup-text-field":
429
+ if (!customElements.get(tagName)) {
430
+ defineCustomElement$4();
431
+ }
432
+ break;
433
+ case "kup-time-picker":
434
+ if (!customElements.get(tagName)) {
435
+ defineCustomElement$3();
436
+ }
437
+ break;
438
+ case "kup-tree":
439
+ if (!customElements.get(tagName)) {
440
+ defineCustomElement$2();
441
+ }
442
+ break;
443
+ } });
444
+ }
445
+
446
+ const KupInputPanel = KupInputPanel$1;
447
+ const defineCustomElement = defineCustomElement$1;
448
+
449
+ export { KupInputPanel, defineCustomElement };