@sme.up/ketchup 6.7.0 → 6.9.0-SNAPSHOT

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-bf76ab95.js → f-button-e48df7ac.js} +1 -1
  2. package/dist/cjs/{f-cell-b7a1524a.js → f-cell-73b2fd86.js} +5 -5
  3. package/dist/cjs/{f-chip-a5e100b1.js → f-chip-1d499dc9.js} +2 -2
  4. package/dist/cjs/{f-image-d80a2749.js → f-image-9be73458.js} +1 -1
  5. package/dist/cjs/{f-paginator-utils-c70812fe.js → f-paginator-utils-b1f44f04.js} +2 -2
  6. package/dist/cjs/{f-text-field-48b8bb16.js → f-text-field-43439612.js} +1 -1
  7. package/dist/cjs/ketchup.cjs.js +2 -2
  8. package/dist/cjs/kup-accordion.cjs.entry.js +6 -29
  9. package/dist/cjs/{kup-autocomplete_25.cjs.entry.js → kup-autocomplete_26.cjs.entry.js} +3792 -4304
  10. package/dist/cjs/kup-box.cjs.entry.js +29 -110
  11. package/dist/cjs/kup-calendar.cjs.entry.js +9 -33
  12. package/dist/cjs/kup-cell.cjs.entry.js +8 -27
  13. package/dist/cjs/kup-dash-list.cjs.entry.js +9 -8
  14. package/dist/cjs/kup-dash_2.cjs.entry.js +6 -34
  15. package/dist/cjs/kup-dashboard.cjs.entry.js +8 -30
  16. package/dist/cjs/kup-drawer.cjs.entry.js +3 -18
  17. package/dist/cjs/kup-echart.cjs.entry.js +15 -76
  18. package/dist/cjs/kup-family-tree.cjs.entry.js +11 -47
  19. package/dist/cjs/kup-iframe.cjs.entry.js +4 -16
  20. package/dist/cjs/kup-image-list.cjs.entry.js +14 -32
  21. package/dist/cjs/kup-lazy.cjs.entry.js +9 -36
  22. package/dist/cjs/kup-magic-box.cjs.entry.js +5 -24
  23. package/dist/cjs/{kup-manager-0e38bf48.js → kup-manager-58ba55f4.js} +70 -2
  24. package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -15
  25. package/dist/cjs/kup-numeric-picker.cjs.entry.js +13 -56
  26. package/dist/cjs/kup-photo-frame.cjs.entry.js +8 -30
  27. package/dist/cjs/kup-probe.cjs.entry.js +12 -32
  28. package/dist/cjs/kup-qlik.cjs.entry.js +5 -59
  29. package/dist/cjs/kup-snackbar.cjs.entry.js +6 -37
  30. package/dist/cjs/loader.cjs.js +2 -2
  31. package/dist/collection/assets/data-table.js +0 -44
  32. package/dist/collection/collection-manifest.json +2 -2
  33. package/dist/collection/components/kup-accordion/kup-accordion.js +4 -27
  34. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +15 -64
  35. package/dist/collection/components/kup-badge/kup-badge.js +3 -19
  36. package/dist/collection/components/kup-box/kup-box.js +22 -103
  37. package/dist/collection/components/kup-button/kup-button.js +3 -58
  38. package/dist/collection/components/kup-button-list/kup-button-list.js +3 -38
  39. package/dist/collection/components/kup-calendar/kup-calendar.js +5 -29
  40. package/dist/collection/components/kup-card/box/kup-card-box.js +5 -2
  41. package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +10 -2
  42. package/dist/collection/components/kup-card/built-in/kup-card-form.js +11 -0
  43. package/dist/collection/components/kup-card/kup-card.css +78 -12
  44. package/dist/collection/components/kup-card/kup-card.js +48 -47
  45. package/dist/collection/components/kup-cell/kup-cell.js +3 -22
  46. package/dist/collection/components/kup-chart/kup-chart.js +15 -49
  47. package/dist/collection/components/kup-checkbox/kup-checkbox.js +3 -38
  48. package/dist/collection/components/kup-chip/kup-chip.js +5 -21
  49. package/dist/collection/components/kup-color-picker/kup-color-picker.js +4 -35
  50. package/dist/collection/components/kup-combobox/kup-combobox.js +10 -42
  51. package/dist/collection/components/kup-dash/kup-dash.js +2 -14
  52. package/dist/collection/components/kup-dash-list/kup-dash-list.js +8 -7
  53. package/dist/collection/components/kup-dashboard/kup-dashboard.js +4 -26
  54. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +2 -0
  55. package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
  56. package/dist/collection/components/kup-data-table/kup-data-table.css +9 -0
  57. package/dist/collection/components/kup-data-table/kup-data-table.js +3546 -3385
  58. package/dist/collection/components/kup-date-picker/kup-date-picker.js +7 -35
  59. package/dist/collection/components/kup-drawer/kup-drawer.js +2 -17
  60. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +12 -63
  61. package/dist/collection/components/kup-echart/kup-echart.js +14 -75
  62. package/dist/collection/components/kup-family-tree/kup-family-tree.js +8 -44
  63. package/dist/collection/components/kup-form/kup-form.js +4 -24
  64. package/dist/collection/components/kup-gauge/kup-gauge.js +15 -76
  65. package/dist/collection/components/kup-grid/kup-grid.js +3 -19
  66. package/dist/collection/components/kup-iframe/kup-iframe.js +3 -15
  67. package/dist/collection/components/kup-image/kup-image.js +5 -45
  68. package/dist/collection/components/kup-image-list/kup-image-list.js +8 -26
  69. package/dist/collection/components/kup-lazy/kup-lazy.js +8 -35
  70. package/dist/collection/components/kup-list/kup-list.js +5 -68
  71. package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -22
  72. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +2 -14
  73. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +11 -54
  74. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +7 -29
  75. package/dist/collection/components/kup-probe/kup-probe.js +11 -31
  76. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +3 -35
  77. package/dist/collection/components/kup-qlik/kup-qlik.js +4 -58
  78. package/dist/collection/components/kup-radio/kup-radio.js +3 -34
  79. package/dist/collection/components/kup-rating/kup-rating.js +4 -27
  80. package/dist/collection/components/kup-snackbar/kup-snackbar.js +3 -34
  81. package/dist/collection/components/kup-spinner/kup-spinner.js +3 -39
  82. package/dist/collection/components/kup-switch/kup-switch.js +3 -34
  83. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +4 -24
  84. package/dist/collection/components/kup-text-field/kup-text-field.js +2 -115
  85. package/dist/collection/components/kup-time-picker/kup-time-picker.js +8 -43
  86. package/dist/collection/components/kup-tree/kup-tree.js +39 -129
  87. package/dist/collection/f-components/f-cell/f-cell.js +1 -1
  88. package/dist/collection/managers/kup-data/kup-data-column-helper.js +4 -1
  89. package/dist/collection/managers/kup-language/kup-language-declarations.js +6 -0
  90. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +1 -1
  91. package/dist/components/index.d.ts +68 -0
  92. package/dist/components/index.js +48 -0
  93. package/dist/components/kup-accordion.d.ts +11 -0
  94. package/dist/components/kup-accordion.js +363 -0
  95. package/dist/components/kup-autocomplete.d.ts +11 -0
  96. package/dist/components/kup-autocomplete.js +6 -0
  97. package/dist/components/kup-autocomplete2.js +45995 -0
  98. package/dist/components/kup-badge.d.ts +11 -0
  99. package/dist/components/kup-badge.js +6 -0
  100. package/dist/components/kup-box.d.ts +11 -0
  101. package/dist/components/kup-box.js +6 -0
  102. package/dist/components/kup-box2.js +1412 -0
  103. package/dist/components/kup-button-list.d.ts +11 -0
  104. package/dist/components/kup-button-list.js +6 -0
  105. package/dist/components/kup-button.d.ts +11 -0
  106. package/dist/components/kup-button.js +6 -0
  107. package/dist/components/kup-calendar.d.ts +11 -0
  108. package/dist/components/kup-calendar.js +14818 -0
  109. package/dist/components/kup-card.d.ts +11 -0
  110. package/dist/components/kup-card.js +6 -0
  111. package/dist/components/kup-cell.d.ts +11 -0
  112. package/dist/components/kup-cell.js +332 -0
  113. package/dist/components/kup-chart.d.ts +11 -0
  114. package/dist/components/kup-chart.js +6 -0
  115. package/dist/components/kup-checkbox.d.ts +11 -0
  116. package/dist/components/kup-checkbox.js +6 -0
  117. package/dist/components/kup-chip.d.ts +11 -0
  118. package/dist/components/kup-chip.js +6 -0
  119. package/dist/components/kup-color-picker.d.ts +11 -0
  120. package/dist/components/kup-color-picker.js +6 -0
  121. package/dist/components/kup-combobox.d.ts +11 -0
  122. package/dist/components/kup-combobox.js +6 -0
  123. package/dist/components/kup-dash-list.d.ts +11 -0
  124. package/dist/components/kup-dash-list.js +275 -0
  125. package/dist/components/kup-dash.d.ts +11 -0
  126. package/dist/components/kup-dash.js +6 -0
  127. package/dist/components/kup-dash2.js +223 -0
  128. package/dist/components/kup-dashboard.d.ts +11 -0
  129. package/dist/components/kup-dashboard.js +559 -0
  130. package/dist/components/kup-data-table.d.ts +11 -0
  131. package/dist/components/kup-data-table.js +6 -0
  132. package/dist/components/kup-date-picker.d.ts +11 -0
  133. package/dist/components/kup-date-picker.js +6 -0
  134. package/dist/components/kup-drawer.d.ts +11 -0
  135. package/dist/components/kup-drawer.js +303 -0
  136. package/dist/components/kup-dropdown-button.d.ts +11 -0
  137. package/dist/components/kup-dropdown-button.js +6 -0
  138. package/dist/components/kup-echart.d.ts +11 -0
  139. package/dist/components/kup-echart.js +6 -0
  140. package/dist/components/kup-echart2.js +94317 -0
  141. package/dist/components/kup-family-tree.d.ts +11 -0
  142. package/dist/components/kup-family-tree.js +623 -0
  143. package/dist/components/kup-form.d.ts +11 -0
  144. package/dist/components/kup-form.js +6 -0
  145. package/dist/components/kup-gauge.d.ts +11 -0
  146. package/dist/components/kup-gauge.js +6 -0
  147. package/dist/components/kup-grid.d.ts +11 -0
  148. package/dist/components/kup-grid.js +6 -0
  149. package/dist/components/kup-grid2.js +256 -0
  150. package/dist/components/kup-iframe.d.ts +11 -0
  151. package/dist/components/kup-iframe.js +257 -0
  152. package/dist/components/kup-image-list.d.ts +11 -0
  153. package/dist/components/kup-image-list.js +416 -0
  154. package/dist/components/kup-image.d.ts +11 -0
  155. package/dist/components/kup-image.js +6 -0
  156. package/dist/components/kup-lazy.d.ts +11 -0
  157. package/dist/components/kup-lazy.js +352 -0
  158. package/dist/components/kup-list.d.ts +11 -0
  159. package/dist/components/kup-list.js +6 -0
  160. package/dist/components/kup-magic-box.d.ts +11 -0
  161. package/dist/components/kup-magic-box.js +470 -0
  162. package/dist/components/kup-nav-bar.d.ts +11 -0
  163. package/dist/components/kup-nav-bar.js +292 -0
  164. package/dist/components/kup-numeric-picker.d.ts +11 -0
  165. package/dist/components/kup-numeric-picker.js +536 -0
  166. package/dist/components/kup-photo-frame.d.ts +11 -0
  167. package/dist/components/kup-photo-frame.js +308 -0
  168. package/dist/components/kup-probe.d.ts +11 -0
  169. package/dist/components/kup-probe.js +403 -0
  170. package/dist/components/kup-progress-bar.d.ts +11 -0
  171. package/dist/components/kup-progress-bar.js +6 -0
  172. package/dist/components/kup-qlik.d.ts +11 -0
  173. package/dist/components/kup-qlik.js +302 -0
  174. package/dist/components/kup-radio.d.ts +11 -0
  175. package/dist/components/kup-radio.js +6 -0
  176. package/dist/components/kup-rating.d.ts +11 -0
  177. package/dist/components/kup-rating.js +6 -0
  178. package/dist/components/kup-snackbar.d.ts +11 -0
  179. package/dist/components/kup-snackbar.js +272 -0
  180. package/dist/components/kup-spinner.d.ts +11 -0
  181. package/dist/components/kup-spinner.js +6 -0
  182. package/dist/components/kup-switch.d.ts +11 -0
  183. package/dist/components/kup-switch.js +6 -0
  184. package/dist/components/kup-tab-bar.d.ts +11 -0
  185. package/dist/components/kup-tab-bar.js +6 -0
  186. package/dist/components/kup-text-field.d.ts +11 -0
  187. package/dist/components/kup-text-field.js +6 -0
  188. package/dist/components/kup-time-picker.d.ts +11 -0
  189. package/dist/components/kup-time-picker.js +6 -0
  190. package/dist/components/kup-tree.d.ts +11 -0
  191. package/dist/components/kup-tree.js +6 -0
  192. package/dist/esm/{f-button-e79f7594.js → f-button-b902ad65.js} +1 -1
  193. package/dist/esm/{f-cell-9400374e.js → f-cell-b11d0d5d.js} +5 -5
  194. package/dist/esm/{f-chip-bf740287.js → f-chip-6b8cd306.js} +2 -2
  195. package/dist/esm/{f-image-ab3dc8cb.js → f-image-983805af.js} +1 -1
  196. package/dist/esm/{f-paginator-utils-6909e43b.js → f-paginator-utils-b22bec1f.js} +2 -2
  197. package/dist/esm/{f-text-field-4841dfea.js → f-text-field-3f9a7ba7.js} +1 -1
  198. package/dist/esm/ketchup.js +2 -2
  199. package/dist/esm/kup-accordion.entry.js +6 -29
  200. package/dist/esm/{kup-autocomplete_25.entry.js → kup-autocomplete_26.entry.js} +3790 -4303
  201. package/dist/esm/kup-box.entry.js +29 -110
  202. package/dist/esm/kup-calendar.entry.js +9 -33
  203. package/dist/esm/kup-cell.entry.js +8 -27
  204. package/dist/esm/kup-dash-list.entry.js +9 -8
  205. package/dist/esm/kup-dash_2.entry.js +6 -34
  206. package/dist/esm/kup-dashboard.entry.js +8 -30
  207. package/dist/esm/kup-drawer.entry.js +3 -18
  208. package/dist/esm/kup-echart.entry.js +15 -76
  209. package/dist/esm/kup-family-tree.entry.js +11 -47
  210. package/dist/esm/kup-iframe.entry.js +4 -16
  211. package/dist/esm/kup-image-list.entry.js +14 -32
  212. package/dist/esm/kup-lazy.entry.js +9 -36
  213. package/dist/esm/kup-magic-box.entry.js +5 -24
  214. package/dist/esm/{kup-manager-c54e6df5.js → kup-manager-a1976c1f.js} +71 -3
  215. package/dist/esm/kup-nav-bar.entry.js +3 -15
  216. package/dist/esm/kup-numeric-picker.entry.js +13 -56
  217. package/dist/esm/kup-photo-frame.entry.js +8 -30
  218. package/dist/esm/kup-probe.entry.js +12 -32
  219. package/dist/esm/kup-qlik.entry.js +5 -59
  220. package/dist/esm/kup-snackbar.entry.js +6 -37
  221. package/dist/esm/loader.js +2 -2
  222. package/dist/ketchup/ketchup.esm.js +1 -1
  223. package/dist/ketchup/{p-4a0ccf18.entry.js → p-0e34943f.entry.js} +1 -1
  224. package/dist/ketchup/p-1df3f4b3.js +30 -0
  225. package/dist/ketchup/p-1f1c3e90.entry.js +1 -0
  226. package/dist/ketchup/p-2f274bd1.entry.js +1 -0
  227. package/dist/ketchup/{p-e1d0ea71.js → p-34fb0757.js} +1 -1
  228. package/dist/ketchup/p-43d52a62.js +1 -0
  229. package/dist/ketchup/{p-4f0d3062.js → p-59a78bb2.js} +1 -1
  230. package/dist/ketchup/{p-bffaef6e.entry.js → p-5c6798dc.entry.js} +1 -1
  231. package/dist/ketchup/p-5d4503ff.entry.js +9 -0
  232. package/dist/ketchup/{p-182b869e.entry.js → p-6154123c.entry.js} +1 -1
  233. package/dist/ketchup/p-657eb6db.js +1 -0
  234. package/dist/ketchup/{p-30a63b85.entry.js → p-6686f614.entry.js} +1 -1
  235. package/dist/ketchup/p-67c86b4a.entry.js +1 -0
  236. package/dist/ketchup/{p-25bf0cb6.js → p-751a87a6.js} +1 -1
  237. package/dist/ketchup/{p-60fa0ccf.entry.js → p-7d223413.entry.js} +1 -1
  238. package/dist/ketchup/{p-7e7b6127.entry.js → p-8bed854e.entry.js} +1 -1
  239. package/dist/ketchup/{p-6bd57787.entry.js → p-9003c78d.entry.js} +1 -1
  240. package/dist/ketchup/{p-41620707.entry.js → p-913d78b8.entry.js} +1 -1
  241. package/dist/ketchup/{p-f9d5e553.entry.js → p-a4c30e9a.entry.js} +1 -1
  242. package/dist/ketchup/p-b2bb0feb.entry.js +1 -0
  243. package/dist/ketchup/{p-fb4d772a.entry.js → p-b8de542a.entry.js} +1 -1
  244. package/dist/ketchup/{p-2e184b57.entry.js → p-bb172702.entry.js} +1 -1
  245. package/dist/ketchup/{p-859163c2.entry.js → p-c1d3332f.entry.js} +1 -1
  246. package/dist/ketchup/{p-8e1fa7a8.entry.js → p-ca42bab6.entry.js} +2 -2
  247. package/dist/ketchup/{p-758d03f4.entry.js → p-ca723973.entry.js} +1 -1
  248. package/dist/ketchup/{p-5bea2971.js → p-f08ba5cd.js} +1 -1
  249. package/dist/ketchup/{p-313e376b.entry.js → p-fc1f1a63.entry.js} +2 -2
  250. package/dist/ketchup/{p-1f5c7f21.entry.js → p-fe4d6234.entry.js} +1 -1
  251. package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +7 -2
  252. package/dist/types/components/kup-card/built-in/kup-card-form.d.ts +3 -0
  253. package/dist/types/components/kup-card/kup-card-declarations.d.ts +11 -1
  254. package/dist/types/components/kup-card/kup-card.d.ts +5 -0
  255. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +9 -0
  256. package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
  257. package/dist/types/components/kup-data-table/kup-data-table.d.ts +41 -202
  258. package/dist/types/components/kup-tree/kup-tree.d.ts +0 -1
  259. package/dist/types/components.d.ts +55 -2
  260. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
  261. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +7 -1
  262. package/dist/types/managers/kup-theme/kup-theme-declarations.d.ts +1 -0
  263. package/dist/types/stencil-public-runtime.d.ts +5 -0
  264. package/package.json +2 -2
  265. package/dist/cjs/kup-form.cjs.entry.js +0 -486
  266. package/dist/esm/kup-form.entry.js +0 -482
  267. package/dist/ketchup/p-1dfd2a51.js +0 -30
  268. package/dist/ketchup/p-22ec1ba0.entry.js +0 -9
  269. package/dist/ketchup/p-260ff835.entry.js +0 -1
  270. package/dist/ketchup/p-53d3ae80.entry.js +0 -1
  271. package/dist/ketchup/p-6333388c.js +0 -1
  272. package/dist/ketchup/p-8386e3db.entry.js +0 -1
  273. package/dist/ketchup/p-90860d9e.entry.js +0 -1
  274. package/dist/ketchup/p-b7fdc7aa.entry.js +0 -1
  275. package/dist/ketchup/p-c35c5e05.js +0 -1
@@ -1 +1 @@
1
- import{r as t,c as e,f as h,h as i,H as s,g as a}from"./p-4fdb684f.js";import{k as o,g as n,s as l}from"./p-1dfd2a51.js";import{c as p}from"./p-97e8ea42.js";var r,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."}(r||(r={})),function(t){t.VIEWPORT="viewport",t.PROPS="props",t.BOTH="both"}(c||(c={}));const d=class{constructor(h){t(this,h),this.kupLazyLoaded=e(this,"kup-lazy-loaded",6),this.isInViewport=!1,this.componentName=null,this.customStyle="",this.data=null,this.renderMode=c.BOTH,this.showPlaceholder=!0,this.intObserver=null,this.kupManager=o(),this.lazyComponent=null,this.lazyComponentLoaded=!1}async getProps(t){return n(this,r,t)}async getComponent(){return this.lazyComponent}async refresh(){h(this)}async setProps(t){l(this,r,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,h=this.componentName;switch(this.componentName){case"kup-button":e=i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},i("path",{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=i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},i("path",{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=i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},i("path",{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=i("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",viewBox:"0 0 24 24"},i("path",{d:"M22,21H2V3H4V19H6V10H10V19H12V6H16V19H18V14H22V21Z"}));break;case"kup-data-table":e=i("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",viewBox:"0 0 24 24"},i("path",{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=i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},i("path",{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=i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},i("path",{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=i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},i("path",{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=i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},i("path",{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=i(this.componentName,Object.assign({},this.data,{ref:t=>this.lazyComponent=t})),h+=" kup-loaded"):this.showPlaceholder&&(t=e,h+=" kup-to-be-loaded"),i(s,{class:h},i("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),i("div",{id:p},t))}disconnectedCallback(){this.kupManager.theme.unregister(this),this.intObserver.unobserve(this.rootElement)}get rootElement(){return a(this)}};d.style=":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{d as kup_lazy}
1
+ import{r as t,c as e,f as h,h as i,H as s,g as a}from"./p-4fdb684f.js";import{k as o,g as n,s as l}from"./p-1df3f4b3.js";import{c as p}from"./p-97e8ea42.js";var r,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."}(r||(r={})),function(t){t.VIEWPORT="viewport",t.PROPS="props",t.BOTH="both"}(c||(c={}));const d=class{constructor(h){t(this,h),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 n(this,r,t)}async getComponent(){return this.lazyComponent}async refresh(){h(this)}async setProps(t){l(this,r,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,h=this.componentName;switch(this.componentName){case"kup-button":e=i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},i("path",{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=i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},i("path",{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=i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},i("path",{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=i("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",viewBox:"0 0 24 24"},i("path",{d:"M22,21H2V3H4V19H6V10H10V19H12V6H16V19H18V14H22V21Z"}));break;case"kup-data-table":e=i("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",viewBox:"0 0 24 24"},i("path",{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=i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},i("path",{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=i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},i("path",{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=i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},i("path",{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=i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},i("path",{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=i(this.componentName,Object.assign({},this.data,{ref:t=>this.lazyComponent=t})),h+=" kup-loaded"):this.showPlaceholder&&(t=e,h+=" kup-to-be-loaded"),i(s,{class:h},i("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),i("div",{id:p},t))}disconnectedCallback(){var t;this.kupManager.theme.unregister(this),null===(t=this.intObserver)||void 0===t||t.unobserve(this.rootElement)}get rootElement(){return a(this)}};d.style=":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{d as kup_lazy}
@@ -27,8 +27,13 @@ export declare function create3(component: KupCard): VNode;
27
27
  export declare function create4(component: KupCard): VNode;
28
28
  /**
29
29
  * 5th built-in layout, numeric picker.
30
- * This layout is rendered after the render cycle completes.
31
30
  * @param {KupCard} component - Card component.
32
- * @returns {VNode} 4th built-in layout virtual node.
31
+ * @returns {VNode} 5th built-in layout virtual node.
33
32
  */
34
33
  export declare function create5(component: KupCard): VNode;
34
+ /**
35
+ * 6th built-in layout, form with submit button.
36
+ * @param {KupCard} component - Card component.
37
+ * @returns {VNode} 6th built-in layout virtual node.
38
+ */
39
+ export declare function create6(component: KupCard): VNode;
@@ -0,0 +1,3 @@
1
+ import { VNode } from '../../../stencil-public-runtime';
2
+ import { KupCard } from '../kup-card';
3
+ export declare function prepareForm(component: KupCard): VNode[];
@@ -3,6 +3,7 @@ import { KupObj } from '../../managers/kup-objects/kup-objects-declarations';
3
3
  import { SourceEvent } from '../kup-date-picker/kup-date-picker-declarations';
4
4
  import Picker from 'vanilla-picker';
5
5
  import { KupDataColumn, KupDataDataset } from '../../managers/kup-data/kup-data-declarations';
6
+ import { KupFormData } from '../kup-form/kup-form-declarations';
6
7
  /**
7
8
  * Props of the kup-card component.
8
9
  * Used to export every prop in an object.
@@ -52,6 +53,15 @@ export interface KupCardBuiltInClockOptions {
52
53
  minutesActive?: boolean;
53
54
  secondsActive?: boolean;
54
55
  }
56
+ /**
57
+ * Options of the built-in form.
58
+ */
59
+ export interface KupCardFormOptions {
60
+ form: KupFormData;
61
+ errors: boolean;
62
+ cancelCb?: () => void;
63
+ submitCb?: () => void;
64
+ }
55
65
  /**
56
66
  * Options of the built-in column drop menu.
57
67
  */
@@ -145,7 +155,7 @@ export interface KupCardData {
145
155
  image?: GenericObject[];
146
156
  list?: GenericObject[];
147
157
  object?: KupObj[];
148
- options?: KupCardBuiltInCalendarOptions | KupCardBuiltInClockOptions | KupCardColumnDropMenuOptions | KupCardColorPickerOptions | KupCardBuiltInNumericOptions;
158
+ options?: KupCardBuiltInCalendarOptions | KupCardBuiltInClockOptions | KupCardColumnDropMenuOptions | KupCardColorPickerOptions | KupCardBuiltInNumericOptions | KupCardFormOptions;
149
159
  progressbar?: GenericObject[];
150
160
  switch?: GenericObject[];
151
161
  tabbar?: GenericObject[];
@@ -39,6 +39,11 @@ export declare class KupCard {
39
39
  * @default false
40
40
  */
41
41
  menuVisible: boolean;
42
+ /**
43
+ * Sets the card as modal window
44
+ * @default false
45
+ */
46
+ showModal: boolean;
42
47
  /**
43
48
  * The width of the card, defaults to 100%. Accepts any valid CSS format (px, %, vw, etc.).
44
49
  * @default "100%"
@@ -30,6 +30,7 @@ export declare enum KupDataTableProps {
30
30
  groupLabelDisplay = "How the label of a group must be displayed. For available values",
31
31
  groups = "The list of groups.",
32
32
  headerIsPersistent = "When set to true the header will stick on top of the table when scrolling.",
33
+ insertMode = "Enables insert mode.",
33
34
  isFocusable = "When set to true, clicked-on rows will have a visual feedback.",
34
35
  lazyLoadRows = "When set to true, extra rows will be automatically loaded once the last row enters the viewport. When groups are present, the number of rows is referred to groups and not to their content. Paginator is disabled.",
35
36
  lineBreakCharacter = "Defines the placeholder character which will be replaced by a line break inside table header cells, normal or sticky.",
@@ -45,6 +46,7 @@ export declare enum KupDataTableProps {
45
46
  rowsPerPage = "Sets the number of rows per page to display.",
46
47
  scrollOnHover = "Activates the scroll on hover function.",
47
48
  showCustomization = "If set to true, displays the button to open the customization panel.",
49
+ showDeleteButton = "Enables the delete row button.",
48
50
  showFilters = "When set to true enables the column filters.",
49
51
  showFooter = "When set to true shows the footer.",
50
52
  showGrid = "Can be used to customize the grid view of the table.",
@@ -99,6 +101,7 @@ export declare enum SortMode {
99
101
  A = "A",
100
102
  D = "D"
101
103
  }
104
+ export declare type KupDataTableInsertMode = 'form' | 'row' | '';
102
105
  export interface TotalsMap {
103
106
  [index: string]: TotalMode;
104
107
  }
@@ -241,3 +244,9 @@ export interface KupDataTableCellButtonClickEventPayload extends KupEventPayload
241
244
  export interface KupDatatableLoadMoreClickEventPayload extends KupEventPayload {
242
245
  loadItems: number;
243
246
  }
247
+ export interface KupDatatableDeleteRowEventPayload extends KupEventPayload {
248
+ selectedRows: KupDataTableRow[];
249
+ }
250
+ export interface KupDatatableInsertRowEventPayload extends KupEventPayload {
251
+ row: KupDataTableRow;
252
+ }
@@ -6,8 +6,8 @@ export declare class KupDataTableState implements KupState {
6
6
  expandGroups: boolean;
7
7
  groupLabelDisplay: GroupLabelDisplayMode;
8
8
  density: string;
9
- enableExtraColumns: boolean;
10
9
  enableSortableColumns: boolean;
10
+ enableExtraColumns: boolean;
11
11
  forceOneLine: boolean;
12
12
  globalFilter: boolean;
13
13
  globalFilterValue: string;
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
- import { GroupLabelDisplayMode, GroupObject, LoadMoreMode, PaginatorPos, ShowGrid, SortObject, TotalsMap, SelectionMode, KupDatatableRowSelectedEventPayload, KupDatatableClickEventPayload, KupDatatableColumnMenuEventPayload, KupDatatableRowActionClickEventPayload, KupDatatableLoadMoreClickEventPayload, KupDatatableColumnRemoveEventPayload, KupDatatableColumnMoveEventPayload, KupDataTableDataset, KupDataTableRow } from './kup-data-table-declarations';
2
+ import { GroupLabelDisplayMode, GroupObject, LoadMoreMode, PaginatorPos, ShowGrid, SortObject, TotalsMap, SelectionMode, KupDatatableRowSelectedEventPayload, KupDatatableClickEventPayload, KupDatatableColumnMenuEventPayload, KupDatatableRowActionClickEventPayload, KupDatatableLoadMoreClickEventPayload, KupDatatableColumnRemoveEventPayload, KupDatatableColumnMoveEventPayload, KupDataTableDataset, KupDataTableRow, KupDatatableDeleteRowEventPayload, KupDatatableInsertRowEventPayload, KupDataTableInsertMode } from './kup-data-table-declarations';
3
3
  import { GenericObject, KupEventPayload } from '../../types/GenericTypes';
4
4
  import { KupDataTableState } from './kup-data-table-state';
5
5
  import { KupStore } from '../kup-state/kup-store';
@@ -7,6 +7,7 @@ import { GenericFilter, ValueDisplayedValue } from '../../utils/filters/filters-
7
7
  import { FCellPadding } from '../../f-components/f-cell/f-cell-declarations';
8
8
  import { KupDataColumn, KupDataNewColumnOptions, KupDataNewColumnTypes, KupDataRowAction } from '../../managers/kup-data/kup-data-declarations';
9
9
  export declare class KupDataTable {
10
+ #private;
10
11
  stateId: string;
11
12
  store: KupStore;
12
13
  state: KupDataTableState;
@@ -113,6 +114,11 @@ export declare class KupDataTable {
113
114
  * When set to true the header will stick on top of the table when scrolling.
114
115
  */
115
116
  headerIsPersistent: boolean;
117
+ /**
118
+ * Enables insert mode.
119
+ * @default '''
120
+ */
121
+ insertMode: KupDataTableInsertMode;
116
122
  /**
117
123
  * When set to true, clicked-on rows will have a visual feedback.
118
124
  * @default false
@@ -183,13 +189,13 @@ export declare class KupDataTable {
183
189
  */
184
190
  showCustomization: boolean;
185
191
  /**
186
- * When set to true enables the column filters.
192
+ * Enables the delete row button.
187
193
  */
188
- showFilters: boolean;
194
+ showDeleteButton: boolean;
189
195
  /**
190
- * When set to true enables the column grouping.
196
+ * When set to true enables the column filters.
191
197
  */
192
- showGroups: boolean;
198
+ showFilters: boolean;
193
199
  /**
194
200
  * When set to true shows the footer.
195
201
  */
@@ -198,6 +204,10 @@ export declare class KupDataTable {
198
204
  * Can be used to customize the grid view of the table.
199
205
  */
200
206
  showGrid: ShowGrid;
207
+ /**
208
+ * When set to true enables the column grouping.
209
+ */
210
+ showGroups: boolean;
201
211
  /**
202
212
  * Enables rendering of the table header.
203
213
  * @namespace KupDataTable.showHeader
@@ -257,73 +267,7 @@ export declare class KupDataTable {
257
267
  recalculateRowsAndUndoSelections(): void;
258
268
  controlFixedRowsColumns(): void;
259
269
  recalculateData(): void;
260
- private initialized;
261
- private rows;
262
- private rowsLength;
263
- private paginatedRows;
264
- private paginatedRowsLength;
265
- private footer;
266
- /**
267
- * Instance of the KupManager class.
268
- */
269
- private kupManager;
270
- private renderedRows;
271
- private loadMoreEventCounter;
272
- private loadMoreEventPreviousQuantity;
273
- /**
274
- * Reference for the thead element
275
- * @private
276
- */
277
- private theadRef;
278
- private tableRef;
279
- /**
280
- * contains the original data, used in transposed function
281
- * @private
282
- */
283
- private originalData;
284
- /**
285
- * Reference to the working area of the table. This is the below-wrapper reference.
286
- */
287
- private tableAreaRef;
288
- private stickyTheadRef;
289
- private customizeTopButtonRef;
290
- private customizeTopPanelRef;
291
- private sizedColumns;
292
- private intObserver;
293
- private navBarHeight;
294
- private theadIntersecting;
295
- private tableIntersecting;
296
- private isSafariBrowser;
297
- private isRestoringState;
298
- private globalFilterTimeout;
299
- private totalMenuCoords;
300
270
  columnFilterTimeout: number;
301
- private clickTimeout;
302
- private thRefs;
303
- private rowsRefs;
304
- private oldWidth;
305
- private hold;
306
- private interactableDrag;
307
- private interactableDrop;
308
- private interactableResize;
309
- private interactableTouch;
310
- private dropareaRef;
311
- private removeDropareaRef;
312
- private groupsDropareaRef;
313
- private clickCb;
314
- private clickCbCustomPanel;
315
- private clickCbDropCard;
316
- /**
317
- * Used to prevent too many resizes callbacks at once.
318
- */
319
- private resizeTimeout;
320
- private columnMenuInstance;
321
- private filtersColumnMenuInstance;
322
- private filtersRowsInstance;
323
- private detailCard;
324
- private columnMenuCard;
325
- private columnDropCard;
326
- private columnDropCardAnchor;
327
271
  /**
328
272
  * When component unload is complete
329
273
  */
@@ -369,6 +313,14 @@ export declare class KupDataTable {
369
313
  * Event fired when columns are removed (set to hidden).
370
314
  */
371
315
  kupColumnRemove: EventEmitter<KupDatatableColumnRemoveEventPayload>;
316
+ /**
317
+ * Event fired when the delete row button is pressed.
318
+ */
319
+ kupDeleteRow: EventEmitter<KupDatatableDeleteRowEventPayload>;
320
+ /**
321
+ * Event fired when the insert row confirm button is pressed.
322
+ */
323
+ kupInsertRow: EventEmitter<KupDatatableInsertRowEventPayload>;
372
324
  /**
373
325
  * Closes any opened column menu.
374
326
  */
@@ -383,6 +335,23 @@ export declare class KupDataTable {
383
335
  * @returns {Promise<Array<KupDataTableRow>>} Deleted rows.
384
336
  */
385
337
  deleteRows(ids?: string[]): Promise<Array<KupDataTableRow>>;
338
+ /**
339
+ * Closes the insert new record card (called by backend, on success)
340
+ */
341
+ closeInsertCard(): Promise<void>;
342
+ /**
343
+ * Closes the delete confirm card (called by backend, on success)
344
+ */
345
+ closeConfirmDeleteCard(): Promise<void>;
346
+ /**
347
+ * Returns cards and sub components
348
+ */
349
+ getCards(): Promise<any>;
350
+ /**
351
+ * Adds a new row to the list data
352
+ * @param row new row
353
+ */
354
+ insertNewRow(row: KupDataTableRow): Promise<void>;
386
355
  /**
387
356
  * Expands all groups.
388
357
  */
@@ -417,7 +386,7 @@ export declare class KupDataTable {
417
386
  /**
418
387
  * This method is used to trigger a new render of the component.
419
388
  */
420
- refresh(): Promise<void>;
389
+ refresh(recalcRows?: boolean): Promise<void>;
421
390
  /**
422
391
  * This method is invoked by KupManager whenever the component changes size.
423
392
  */
@@ -446,156 +415,26 @@ export declare class KupDataTable {
446
415
  * @param {boolean} emitEvent - The event will always be emitted unless emitEvent is set to false.
447
416
  */
448
417
  setSelectedRows(rowsIdentifiers: string[] | number[], emitEvent?: boolean): Promise<void>;
449
- private closeDropCard;
450
- private createDropCard;
451
- private calculateData;
452
- private getRow;
453
- private getTransposedData;
454
- private setTransposedData;
455
- private switchToTotalsMatrix;
456
- private setObjForTotalsMatrix;
457
- private stickyHeaderPosition;
458
- private updateStickyHeaderSize;
459
- private setObserver;
460
- private didLoadInteractables;
461
- private didRenderInteractables;
462
- private didLoadObservers;
463
- private didRenderObservers;
464
- private didLoadEventHandling;
465
- private scrollStickyHeader;
466
- private checkScrollOnHover;
467
- private customizePanelPosition;
468
- private rowsPointLength;
469
- private paginatedRowsPointLength;
470
- private _rowsLength;
471
- private setDynPosElements;
472
418
  componentWillLoad(): void;
473
419
  componentWillRender(): void;
474
420
  componentDidRender(): void;
475
421
  componentDidLoad(): void;
476
- private getEventPath;
477
- private resetSelectedRows;
478
422
  resetCurrentPage(): void;
479
423
  getColumns(): Array<KupDataColumn>;
480
- private getSizedColumns;
481
- /**
482
- * Opens a card containing the detail of the given row.
483
- * @param {KupDataTableRow} row - Row for which the detail was requested.
484
- * @param {number} x - Initial x coordinates of the card.
485
- * @param {number} y - Initial y coordinates of the card.
486
- * @private
487
- * @memberof KupDataTable
488
- */
489
- private rowDetail;
490
- private getEventDetails;
491
- private clickHandler;
492
- private contextMenuHandler;
493
- private dblClickHandler;
494
424
  getVisibleColumns(): Array<KupDataColumn>;
495
425
  getGroupByName(column: string): GroupObject;
496
426
  getColumnValues(column: KupDataColumn): ValueDisplayedValue[];
497
427
  getRows(): Array<KupDataTableRow>;
498
- private initRows;
499
- private filterRows;
500
- private isGrouping;
501
- private hasRowActions;
502
- private removeGroup;
503
- private hasTotals;
504
- /**
505
- * Returns if the current data table must have the with set to auto to make table as large as the sum
506
- * of the table columns fixed width.
507
- * Table margin gets set to auto to center it.
508
- */
509
- private tableHasAutoWidth;
510
- private forceGroupExpansion;
511
- private forceRowGroupExpansion;
512
- private adjustPaginator;
513
- private composeFixedCellStyleAndClass;
514
- private updateFixedRowsAndColumnsCssVariables;
515
- private onColumnSort;
516
- private onRemoveFilter;
517
- private getFilterValueForTooltip;
518
- private onGlobalFilterChange;
519
- private handlePageChange;
520
- private handleRowsPerPageChange;
521
- private onRowClick;
522
- private selectColumn;
523
- private deselectColumn;
524
- private onDefaultRowActionClick;
525
- private onRowActionExpanderClick;
526
- private handleRowSelect;
527
- private onRowExpand;
528
- private onSelectAll;
529
- private openTotalMenu;
530
- private closeTotalMenu;
531
- private isOpenedTotalMenuForColumn;
532
- private groupRows;
533
428
  getInternalState(): Promise<{
534
429
  groups: GroupObject[];
535
430
  filters: GenericFilter;
536
431
  data: KupDataTableDataset;
537
432
  }>;
538
- private onLoadMoreClick;
539
- private adjustGroupState;
540
- private adjustGroupStateFromRow;
541
- private sortRows;
542
- private getSortIcon;
543
- private getSortDecode;
544
- private calculateColspan;
545
- private isGroupExpanded;
546
- private handleColumnSort;
547
- /**
548
- * After a drop of a column header, if the table can update its own data, does so and triggers rerender.
549
- * @param columns - The columns to sort
550
- * @param receivingColumnIndex - The index where the column will be inserted
551
- * @param sortedColumnIndex - The index where the column will be removed
552
- */
553
- private moveSortedColumns;
554
433
  defaultSortingFunction(columns: KupDataColumn[], receivingColumnIndex: number, sortedColumnIndex: number, useNewObject?: boolean): Promise<KupDataColumn[]>;
555
- private applyLineBreaks;
556
- /**
557
- * Given the parameters return the classes and style for each table header cell
558
- * @param columnName - The name of the columns currently being examinated
559
- * @param columnIndex - The index of the current column
560
- * @param extraCells - the extra cells rendered into the table
561
- */
562
- private composeHeaderCellClassAndStyle;
563
- private renderHeader;
564
- private renderStickyHeader;
565
434
  areTotalsSelected(column: KupDataColumn): boolean;
566
435
  onTotalsChange(event: any, column: any): void;
567
- private totalMenuPosition;
568
- private onTotalMenuOpen;
569
436
  renderFooter(): any;
570
- private renderRow;
571
- private renderActions;
572
- private onCustomSettingsClick;
573
- private openCustomSettings;
574
- private closeCustomSettings;
575
- private renderPaginator;
576
437
  renderCustomizePanel(): any;
577
- private columnRemoveArea;
578
- private columnGroupArea;
579
- private hideShowColumnDropArea;
580
- private handleColumnGroup;
581
- private transcodeItem;
582
- private createListData;
583
- private FONTSIZE_CODES;
584
- private FONTSIZE_DECODES;
585
- private FONTSIZE_ICONS;
586
- private getFontSizeCodeFromDecode;
587
- private renderFontSizePanel;
588
- private DENSITY_DECODES;
589
- private DENSITY_ICONS;
590
- private getDensityCodeFromDecode;
591
- private renderDensityPanel;
592
- private GRID_CODES;
593
- private GRID_DECODES;
594
- private GRID_ICONS;
595
- private getGridCodeFromDecode;
596
- private renderTransposeSwitch;
597
- private renderTotalsMatrix;
598
- private renderGridPanel;
599
438
  render(): any;
600
439
  disconnectedCallback(): void;
601
440
  }
@@ -162,7 +162,6 @@ export declare class KupTree {
162
162
  */
163
163
  private columnMenuCard;
164
164
  private treeWrapperRef;
165
- private selectedColumn;
166
165
  private clickTimeout;
167
166
  private globalFilterTimeout;
168
167
  private footer;
@@ -25,7 +25,7 @@ import { FChipType } from "./f-components/f-chip/f-chip-declarations";
25
25
  import { KupColorPickerEventPayload } from "./components/kup-color-picker/kup-color-picker-declarations";
26
26
  import { KupComboboxEventPayload, KupComboboxIconClickEventPayload } from "./components/kup-combobox/kup-combobox-declarations";
27
27
  import { KupDashboardEventPayload, KupDataDashboard } from "./components/kup-dashboard/kup-dashboard-declarations";
28
- import { GroupLabelDisplayMode, GroupObject, KupDatatableClickEventPayload, KupDatatableColumnMenuEventPayload, KupDatatableColumnMoveEventPayload, KupDatatableColumnRemoveEventPayload, KupDataTableDataset, KupDatatableLoadMoreClickEventPayload, KupDataTableRow, KupDatatableRowActionClickEventPayload, KupDatatableRowSelectedEventPayload, LoadMoreMode, PaginatorPos, SelectionMode, ShowGrid, SortObject, TotalsMap } from "./components/kup-data-table/kup-data-table-declarations";
28
+ import { GroupLabelDisplayMode, GroupObject, KupDatatableClickEventPayload, KupDatatableColumnMenuEventPayload, KupDatatableColumnMoveEventPayload, KupDatatableColumnRemoveEventPayload, KupDataTableDataset, KupDatatableDeleteRowEventPayload, KupDataTableInsertMode, KupDatatableInsertRowEventPayload, KupDatatableLoadMoreClickEventPayload, KupDataTableRow, KupDatatableRowActionClickEventPayload, KupDatatableRowSelectedEventPayload, LoadMoreMode, PaginatorPos, SelectionMode, ShowGrid, SortObject, TotalsMap } from "./components/kup-data-table/kup-data-table-declarations";
29
29
  import { GenericFilter, KupGlobalFilterMode } from "./utils/filters/filters-declarations";
30
30
  import { KupDatePickerEventPayload } from "./components/kup-date-picker/kup-date-picker-declarations";
31
31
  import { KupDropdownButtonEventPayload } from "./components/kup-dropdown-button/kup-dropdown-button-declarations";
@@ -581,6 +581,11 @@ export namespace Components {
581
581
  * @param props - Object containing props that will be set to the component.
582
582
  */
583
583
  "setProps": (props: GenericObject) => Promise<void>;
584
+ /**
585
+ * Sets the card as modal window
586
+ * @default false
587
+ */
588
+ "showModal": boolean;
584
589
  /**
585
590
  * The width of the card, defaults to 100%. Accepts any valid CSS format (px, %, vw, etc.).
586
591
  * @default "100%"
@@ -1038,6 +1043,14 @@ export namespace Components {
1038
1043
  * Closes any opened column menu.
1039
1044
  */
1040
1045
  "closeColumnMenu": () => Promise<void>;
1046
+ /**
1047
+ * Closes the delete confirm card (called by backend, on success)
1048
+ */
1049
+ "closeConfirmDeleteCard": () => Promise<void>;
1050
+ /**
1051
+ * Closes the insert new record card (called by backend, on success)
1052
+ */
1053
+ "closeInsertCard": () => Promise<void>;
1041
1054
  /**
1042
1055
  * Collapses all groups.
1043
1056
  */
@@ -1122,6 +1135,10 @@ export namespace Components {
1122
1135
  * Forces cells with long text and a fixed column size to have an ellipsis set on their text. The reflect attribute is mandatory to allow styling.
1123
1136
  */
1124
1137
  "forceOneLine": boolean;
1138
+ /**
1139
+ * Returns cards and sub components
1140
+ */
1141
+ "getCards": () => Promise<any>;
1125
1142
  "getInternalState": () => Promise<{ groups: GroupObject[]; filters: GenericFilter; data: KupDataTableDataset; }>;
1126
1143
  /**
1127
1144
  * Used to retrieve component's props values.
@@ -1158,6 +1175,16 @@ export namespace Components {
1158
1175
  * @param column - Column to hide.
1159
1176
  */
1160
1177
  "hideColumn": (column: KupDataColumn) => Promise<void>;
1178
+ /**
1179
+ * Enables insert mode.
1180
+ * @default '''
1181
+ */
1182
+ "insertMode": KupDataTableInsertMode;
1183
+ /**
1184
+ * Adds a new row to the list data
1185
+ * @param row new row
1186
+ */
1187
+ "insertNewRow": (row: KupDataTableRow) => Promise<void>;
1161
1188
  /**
1162
1189
  * When set to true, clicked-on rows will have a visual feedback.
1163
1190
  * @default false
@@ -1210,7 +1237,7 @@ export namespace Components {
1210
1237
  /**
1211
1238
  * This method is used to trigger a new render of the component.
1212
1239
  */
1213
- "refresh": () => Promise<void>;
1240
+ "refresh": (recalcRows?: boolean) => Promise<void>;
1214
1241
  /**
1215
1242
  * Sets the possibility to remove the selected column.
1216
1243
  */
@@ -1267,6 +1294,10 @@ export namespace Components {
1267
1294
  * If set to true, displays the button to open the customization panel.
1268
1295
  */
1269
1296
  "showCustomization": boolean;
1297
+ /**
1298
+ * Enables the delete row button.
1299
+ */
1300
+ "showDeleteButton": boolean;
1270
1301
  /**
1271
1302
  * When set to true enables the column filters.
1272
1303
  */
@@ -4015,6 +4046,11 @@ declare namespace LocalJSX {
4015
4046
  * Triggered when the component is ready.
4016
4047
  */
4017
4048
  "onKup-card-ready"?: (event: KupCardCustomEvent<KupEventPayload>) => void;
4049
+ /**
4050
+ * Sets the card as modal window
4051
+ * @default false
4052
+ */
4053
+ "showModal"?: boolean;
4018
4054
  /**
4019
4055
  * The width of the card, defaults to 100%. Accepts any valid CSS format (px, %, vw, etc.).
4020
4056
  * @default "100%"
@@ -4457,6 +4493,11 @@ declare namespace LocalJSX {
4457
4493
  * When set to true the header will stick on top of the table when scrolling.
4458
4494
  */
4459
4495
  "headerIsPersistent"?: boolean;
4496
+ /**
4497
+ * Enables insert mode.
4498
+ * @default '''
4499
+ */
4500
+ "insertMode"?: KupDataTableInsertMode;
4460
4501
  /**
4461
4502
  * When set to true, clicked-on rows will have a visual feedback.
4462
4503
  * @default false
@@ -4510,6 +4551,10 @@ declare namespace LocalJSX {
4510
4551
  * Generic double click event on data table.
4511
4552
  */
4512
4553
  "onKup-datatable-dblclick"?: (event: KupDataTableCustomEvent<KupDatatableClickEventPayload>) => void;
4554
+ /**
4555
+ * Event fired when the delete row button is pressed.
4556
+ */
4557
+ "onKup-datatable-delete-row"?: (event: KupDataTableCustomEvent<KupDatatableDeleteRowEventPayload>) => void;
4513
4558
  /**
4514
4559
  * When component load is complete
4515
4560
  */
@@ -4518,6 +4563,10 @@ declare namespace LocalJSX {
4518
4563
  * When component unload is complete
4519
4564
  */
4520
4565
  "onKup-datatable-didunload"?: (event: KupDataTableCustomEvent<KupEventPayload>) => void;
4566
+ /**
4567
+ * Event fired when the insert row confirm button is pressed.
4568
+ */
4569
+ "onKup-datatable-insert-row"?: (event: KupDataTableCustomEvent<KupDatatableInsertRowEventPayload>) => void;
4521
4570
  "onKup-datatable-loadmoreclick"?: (event: KupDataTableCustomEvent<KupDatatableLoadMoreClickEventPayload>) => void;
4522
4571
  /**
4523
4572
  * When rows selections reset
@@ -4567,6 +4616,10 @@ declare namespace LocalJSX {
4567
4616
  * If set to true, displays the button to open the customization panel.
4568
4617
  */
4569
4618
  "showCustomization"?: boolean;
4619
+ /**
4620
+ * Enables the delete row button.
4621
+ */
4622
+ "showDeleteButton"?: boolean;
4570
4623
  /**
4571
4624
  * When set to true enables the column filters.
4572
4625
  */
@@ -20,6 +20,7 @@ export interface KupDataColumn {
20
20
  formula?: string;
21
21
  hideValuesRepetitions?: boolean;
22
22
  icon?: string;
23
+ isEditable?: boolean;
23
24
  isKey?: boolean;
24
25
  mergedFrom?: string[];
25
26
  obj?: KupObj;
@@ -111,10 +111,14 @@ export declare enum KupLanguageFontsize {
111
111
  * Generic user interface action/messages.
112
112
  */
113
113
  export declare enum KupLanguageGeneric {
114
+ ABORT = "genericAbort",
114
115
  ADD_NEW = "genericAddNew",
115
116
  APPLY = "genericApply",
116
117
  BACK = "genericBack",
117
118
  COLLAPSE = "genericCollapse",
119
+ CONFIRM = "genericConfirm",
120
+ CONFIRM_DELETE = "genericConfirmDelete",
121
+ CONFIRM_DELETE_X_ROWS = "genericConfirmDeleteXRows",
118
122
  DAY = "genericDay",
119
123
  DRAG_AND_DROP = "genericDragAndDrop",
120
124
  DROP_YOUR_DATA = "genericDropYourData",
@@ -135,6 +139,7 @@ export declare enum KupLanguageGeneric {
135
139
  MONTH = "genericMonth",
136
140
  MOVE = "genericMove",
137
141
  NEXT = "genericNext",
142
+ NO = "genericNo",
138
143
  OPEN_NAVIGATION_MENU = "genericOpenNavigationMenu",
139
144
  OPEN_IN_NEW_TAB = "genericOpenInNewTab",
140
145
  OPEN_IN_NEW_WINDOW = "genericOpenInNewWindow",
@@ -152,7 +157,8 @@ export declare enum KupLanguageGeneric {
152
157
  TOTALS_TABLE = "genericTotalsTable",
153
158
  TRANSPOSE_DATA = "genericTransposeData",
154
159
  VIEW_AS = "genericViewAs",
155
- WEEK = "genericWeek"
160
+ WEEK = "genericWeek",
161
+ YES = "genericYes"
156
162
  }
157
163
  /**
158
164
  * Grid decodes (data table customization settings).