@sme.up/ketchup 11.0.0-SNAPSHOT-20250129113902 → 11.0.0-SNAPSHOT-20250129133724

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 (208) hide show
  1. package/dist/cjs/{f-cell-f5c22ae3.js → f-cell-6a44d289.js} +11 -15
  2. package/dist/cjs/{f-chip-18b45cbc.js → f-chip-0cf9aa65.js} +1 -1
  3. package/dist/cjs/{f-object-field-2c4c3ac5.js → f-object-field-bdc84b8c.js} +2 -2
  4. package/dist/cjs/{f-paginator-utils-53078606.js → f-paginator-utils-8a6562a8.js} +6 -5
  5. package/dist/cjs/{f-text-field-6615a856.js → f-text-field-0ba5b010.js} +9 -1
  6. package/dist/cjs/index.cjs.js +1 -1
  7. package/dist/cjs/ketchup.cjs.js +1 -1
  8. package/dist/cjs/kup-accordion.cjs.entry.js +1 -1
  9. package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
  10. package/dist/cjs/kup-autocomplete_28.cjs.entry.js +49 -22
  11. package/dist/cjs/kup-box.cjs.entry.js +7 -7
  12. package/dist/cjs/kup-calendar.cjs.entry.js +2 -2
  13. package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
  14. package/dist/cjs/kup-cell.cjs.entry.js +5 -5
  15. package/dist/cjs/kup-dashboard.cjs.entry.js +2 -2
  16. package/dist/cjs/{kup-data-table-helper-ba879f52.js → kup-data-table-helper-45809a34.js} +1 -1
  17. package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
  18. package/dist/cjs/kup-echart.cjs.entry.js +1 -1
  19. package/dist/cjs/kup-editor.cjs.entry.js +1 -1
  20. package/dist/cjs/kup-family-tree.cjs.entry.js +1 -1
  21. package/dist/cjs/kup-grid.cjs.entry.js +1 -1
  22. package/dist/cjs/kup-htm.cjs.entry.js +1 -1
  23. package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
  24. package/dist/cjs/kup-image-list.cjs.entry.js +5 -5
  25. package/dist/cjs/kup-input-panel.cjs.entry.js +6 -6
  26. package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
  27. package/dist/cjs/kup-magic-box.cjs.entry.js +1 -1
  28. package/dist/cjs/{kup-manager-0bde5b3e.js → kup-manager-577da7ec.js} +115 -9
  29. package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
  30. package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
  31. package/dist/cjs/kup-object-field.cjs.entry.js +3 -3
  32. package/dist/cjs/kup-pdf.cjs.entry.js +1 -1
  33. package/dist/cjs/kup-planner.cjs.entry.js +2 -2
  34. package/dist/cjs/kup-probe.cjs.entry.js +1 -1
  35. package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
  36. package/dist/cjs/kup-snackbar.cjs.entry.js +1 -1
  37. package/dist/cjs/kup-txt.cjs.entry.js +1 -1
  38. package/dist/cjs/kup-typography-list.cjs.entry.js +1 -1
  39. package/dist/cjs/kup-typography.cjs.entry.js +6 -2
  40. package/dist/cjs/loader.cjs.js +1 -1
  41. package/dist/collection/components/kup-data-table/kup-data-table.js +43 -14
  42. package/dist/collection/components/kup-input-panel/kup-input-panel.css +12 -0
  43. package/dist/collection/components/kup-tree/kup-tree.js +2 -1
  44. package/dist/collection/components/kup-typography/kup-typography.js +5 -1
  45. package/dist/collection/f-components/f-cell/f-cell.js +7 -11
  46. package/dist/collection/f-components/f-paginator/f-paginator.js +5 -4
  47. package/dist/collection/f-components/f-text-field/f-text-field.js +8 -0
  48. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +70 -8
  49. package/dist/collection/managers/kup-manager/kup-manager.js +24 -0
  50. package/dist/collection/managers/kup-perf-tuning/kup-perf-tuning-declarations.js +1 -0
  51. package/dist/collection/managers/kup-perf-tuning/kup-perf-tuning.js +24 -0
  52. package/dist/components/index.js +1 -1
  53. package/dist/components/kup-accordion.js +2 -2
  54. package/dist/components/kup-activity-timeline.js +2 -2
  55. package/dist/components/kup-autocomplete.js +1 -1
  56. package/dist/components/kup-badge.js +1 -1
  57. package/dist/components/kup-box.js +1 -1
  58. package/dist/components/kup-button-list.js +1 -1
  59. package/dist/components/kup-button.js +1 -1
  60. package/dist/components/kup-calendar.js +2 -2
  61. package/dist/components/kup-card-list.js +3 -3
  62. package/dist/components/kup-card.js +1 -1
  63. package/dist/components/kup-cell.js +2 -2
  64. package/dist/components/kup-chart.js +1 -1
  65. package/dist/components/kup-checkbox.js +1 -1
  66. package/dist/components/kup-chip.js +1 -1
  67. package/dist/components/kup-color-picker.js +1 -1
  68. package/dist/components/kup-combobox.js +1 -1
  69. package/dist/components/kup-dashboard.js +2 -2
  70. package/dist/components/kup-data-table.js +1 -1
  71. package/dist/components/kup-date-picker.js +1 -1
  72. package/dist/components/kup-dialog.js +1 -1
  73. package/dist/components/kup-drawer.js +2 -2
  74. package/dist/components/kup-dropdown-button.js +1 -1
  75. package/dist/components/kup-echart.js +1 -1
  76. package/dist/components/kup-editor.js +1 -1
  77. package/dist/components/kup-family-tree.js +3 -3
  78. package/dist/components/kup-form.js +1 -1
  79. package/dist/components/kup-gauge.js +1 -1
  80. package/dist/components/kup-grid.js +1 -1
  81. package/dist/components/kup-htm.js +2 -2
  82. package/dist/components/kup-iframe.js +2 -2
  83. package/dist/components/kup-image-list.js +2 -2
  84. package/dist/components/kup-image.js +1 -1
  85. package/dist/components/kup-input-panel.js +4 -4
  86. package/dist/components/kup-lazy.js +2 -2
  87. package/dist/components/kup-list.js +1 -1
  88. package/dist/components/kup-magic-box.js +4 -4
  89. package/dist/components/kup-nav-bar.js +2 -2
  90. package/dist/components/kup-numeric-picker.js +2 -2
  91. package/dist/components/kup-object-field.js +2 -2
  92. package/dist/components/kup-pdf.js +2 -2
  93. package/dist/components/kup-planner.js +2 -2
  94. package/dist/components/kup-probe.js +2 -2
  95. package/dist/components/kup-progress-bar.js +1 -1
  96. package/dist/components/kup-qlik.js +2 -2
  97. package/dist/components/kup-radio.js +1 -1
  98. package/dist/components/kup-rating.js +1 -1
  99. package/dist/components/kup-snackbar.js +2 -2
  100. package/dist/components/kup-spinner.js +1 -1
  101. package/dist/components/kup-switch.js +1 -1
  102. package/dist/components/kup-tab-bar.js +1 -1
  103. package/dist/components/kup-text-field.js +1 -1
  104. package/dist/components/kup-time-picker.js +1 -1
  105. package/dist/components/kup-toolbar.js +1 -1
  106. package/dist/components/kup-tree.js +1 -1
  107. package/dist/components/kup-txt.js +2 -2
  108. package/dist/components/kup-typography-list.js +2 -2
  109. package/dist/components/kup-typography.js +7 -3
  110. package/dist/components/{p-1d28c626.js → p-0cbdfe38.js} +2 -2
  111. package/dist/components/{p-0c4c10f2.js → p-27005da8.js} +115 -9
  112. package/dist/components/{p-4a247d05.js → p-8933ce00.js} +2 -2
  113. package/dist/components/{p-4d78f4b5.js → p-94a659ba.js} +65 -33
  114. package/dist/components/{p-b2085cfb.js → p-94e89d81.js} +2 -2
  115. package/dist/components/{p-08a824b7.js → p-9e382ae3.js} +2 -2
  116. package/dist/esm/{f-cell-40840ce5.js → f-cell-00a8bbea.js} +11 -15
  117. package/dist/esm/{f-chip-db575f2c.js → f-chip-c18c9dbe.js} +1 -1
  118. package/dist/esm/{f-object-field-83a4b83e.js → f-object-field-4ffbdea3.js} +2 -2
  119. package/dist/esm/{f-paginator-utils-6acf3cdb.js → f-paginator-utils-ff6255f2.js} +6 -5
  120. package/dist/esm/{f-text-field-b4ff1e80.js → f-text-field-c6f94648.js} +9 -1
  121. package/dist/esm/index.js +1 -1
  122. package/dist/esm/ketchup.js +1 -1
  123. package/dist/esm/kup-accordion.entry.js +1 -1
  124. package/dist/esm/kup-activity-timeline.entry.js +2 -2
  125. package/dist/esm/kup-autocomplete_28.entry.js +49 -22
  126. package/dist/esm/kup-box.entry.js +7 -7
  127. package/dist/esm/kup-calendar.entry.js +2 -2
  128. package/dist/esm/kup-card-list.entry.js +1 -1
  129. package/dist/esm/kup-cell.entry.js +5 -5
  130. package/dist/esm/kup-dashboard.entry.js +2 -2
  131. package/dist/esm/{kup-data-table-helper-7000285d.js → kup-data-table-helper-c6706fc8.js} +1 -1
  132. package/dist/esm/kup-drawer.entry.js +1 -1
  133. package/dist/esm/kup-echart.entry.js +1 -1
  134. package/dist/esm/kup-editor.entry.js +1 -1
  135. package/dist/esm/kup-family-tree.entry.js +1 -1
  136. package/dist/esm/kup-grid.entry.js +1 -1
  137. package/dist/esm/kup-htm.entry.js +1 -1
  138. package/dist/esm/kup-iframe.entry.js +1 -1
  139. package/dist/esm/kup-image-list.entry.js +5 -5
  140. package/dist/esm/kup-input-panel.entry.js +6 -6
  141. package/dist/esm/kup-lazy.entry.js +1 -1
  142. package/dist/esm/kup-magic-box.entry.js +1 -1
  143. package/dist/esm/{kup-manager-f8d8e705.js → kup-manager-3a2bce62.js} +115 -9
  144. package/dist/esm/kup-nav-bar.entry.js +1 -1
  145. package/dist/esm/kup-numeric-picker.entry.js +2 -2
  146. package/dist/esm/kup-object-field.entry.js +3 -3
  147. package/dist/esm/kup-pdf.entry.js +1 -1
  148. package/dist/esm/kup-planner.entry.js +2 -2
  149. package/dist/esm/kup-probe.entry.js +1 -1
  150. package/dist/esm/kup-qlik.entry.js +1 -1
  151. package/dist/esm/kup-snackbar.entry.js +1 -1
  152. package/dist/esm/kup-txt.entry.js +1 -1
  153. package/dist/esm/kup-typography-list.entry.js +1 -1
  154. package/dist/esm/kup-typography.entry.js +6 -2
  155. package/dist/esm/loader.js +1 -1
  156. package/dist/ketchup/index.esm.js +1 -1
  157. package/dist/ketchup/ketchup.esm.js +1 -1
  158. package/dist/ketchup/{p-0db30c4f.entry.js → p-074dca27.entry.js} +1 -1
  159. package/dist/ketchup/{p-f5c79b56.entry.js → p-1e14e55b.entry.js} +1 -1
  160. package/dist/ketchup/{p-af2136bc.entry.js → p-2115a342.entry.js} +1 -1
  161. package/dist/ketchup/{p-510ccd51.entry.js → p-26204ba1.entry.js} +1 -1
  162. package/dist/ketchup/{p-0983475f.js → p-2b86ed1b.js} +1 -1
  163. package/dist/ketchup/{p-2e053030.entry.js → p-3bdaa6dc.entry.js} +1 -1
  164. package/dist/ketchup/{p-ad179f34.entry.js → p-3f10ba95.entry.js} +1 -1
  165. package/dist/ketchup/{p-6b05ef5c.entry.js → p-4308417c.entry.js} +1 -1
  166. package/dist/ketchup/{p-80b75242.entry.js → p-44ddf701.entry.js} +1 -1
  167. package/dist/ketchup/{p-8f19b40a.entry.js → p-4df33b4b.entry.js} +1 -1
  168. package/dist/ketchup/p-4f7f37d8.js +1 -0
  169. package/dist/ketchup/{p-7863d1c8.entry.js → p-53a2c80a.entry.js} +1 -1
  170. package/dist/ketchup/{p-7ebb4a8d.entry.js → p-6958c8b9.entry.js} +1 -1
  171. package/dist/ketchup/{p-7384259c.entry.js → p-6fcea055.entry.js} +1 -1
  172. package/dist/ketchup/p-736d7763.entry.js +1 -0
  173. package/dist/ketchup/{p-569ef87d.entry.js → p-7a206956.entry.js} +1 -1
  174. package/dist/ketchup/{p-bcf0ea99.entry.js → p-81031736.entry.js} +1 -1
  175. package/dist/ketchup/{p-4e63d6b1.entry.js → p-84cb2ab9.entry.js} +1 -1
  176. package/dist/ketchup/p-8a6aa580.entry.js +9 -0
  177. package/dist/ketchup/{p-7aa6e73b.entry.js → p-9021cdff.entry.js} +1 -1
  178. package/dist/ketchup/{p-5cf744cb.entry.js → p-90379022.entry.js} +1 -1
  179. package/dist/ketchup/{p-6c3981c9.entry.js → p-92d8400c.entry.js} +1 -1
  180. package/dist/ketchup/{p-eca493fc.entry.js → p-98ecd58a.entry.js} +1 -1
  181. package/dist/ketchup/{p-57d98740.entry.js → p-a69a94e6.entry.js} +1 -1
  182. package/dist/ketchup/{p-71bd8943.js → p-ac893be0.js} +1 -1
  183. package/dist/ketchup/p-b3d22966.js +1 -0
  184. package/dist/ketchup/p-b8ba1576.js +21 -0
  185. package/dist/ketchup/{p-c377a18e.entry.js → p-bffe2f25.entry.js} +1 -1
  186. package/dist/ketchup/{p-c4864dc5.js → p-c02e91a6.js} +1 -1
  187. package/dist/ketchup/{p-e9be6c07.entry.js → p-c1be5310.entry.js} +1 -1
  188. package/dist/ketchup/{p-a141d42e.entry.js → p-cbb1a9a9.entry.js} +1 -1
  189. package/dist/ketchup/{p-fe404351.entry.js → p-d49a913c.entry.js} +1 -1
  190. package/dist/ketchup/{p-7dc21d98.entry.js → p-d987d2ef.entry.js} +1 -1
  191. package/dist/ketchup/{p-5a48b2e6.entry.js → p-dc0ad9f2.entry.js} +1 -1
  192. package/dist/ketchup/{p-7a1d21a3.entry.js → p-dfef9eff.entry.js} +1 -1
  193. package/dist/ketchup/p-ef906d70.js +1 -0
  194. package/dist/ketchup/{p-a793d438.entry.js → p-f1d8429d.entry.js} +1 -1
  195. package/dist/types/components/kup-data-table/kup-data-table.d.ts +1 -0
  196. package/dist/types/f-components/f-paginator/f-paginator-declarations.d.ts +1 -0
  197. package/dist/types/managers/kup-dynamic-position/kup-dynamic-position.d.ts +6 -0
  198. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +3 -0
  199. package/dist/types/managers/kup-manager/kup-manager.d.ts +7 -0
  200. package/dist/types/managers/kup-perf-tuning/kup-perf-tuning-declarations.d.ts +3 -0
  201. package/dist/types/managers/kup-perf-tuning/kup-perf-tuning.d.ts +7 -0
  202. package/package.json +1 -1
  203. package/dist/ketchup/p-68e197ca.entry.js +0 -9
  204. package/dist/ketchup/p-728d11e3.js +0 -21
  205. package/dist/ketchup/p-d5d58dd8.js +0 -1
  206. package/dist/ketchup/p-e79cf2e1.js +0 -1
  207. package/dist/ketchup/p-e88c9656.js +0 -1
  208. package/dist/ketchup/p-f07452ae.entry.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { p as proxyCustomElement, H, c as createEvent, f as forceUpdate, h as h$1, d as Host, F as Fragment$1 } from './p-2e5f2e07.js';
2
- import { c as KupThemeIconValues, I as ItemsDisplayMode, d as KupLanguageGeneric, a as KupComponentSizing, k as kupManagerInstance, e as KupDynamicPositionPlacement, f as editableTypes, h as kupTypes, F as FCellClasses, i as FCellTypes, b as KupThemeColorValues, R as RADAdapter, C as CMBandACPAdapter, j as KupTagNames, l as FCellShapes, m as getCellValueForDisplay, n as fullWidthFieldsComps, o as autoCenterComps, p as FCellEvents, q as isForceUppercase, r as isForceLowercase, t as KupDebugCategory, u as adaptContentToDisplayMode, v as FCellPadding, w as fillString, x as KupCardBuiltInClockElements, y as KupCardCSSClasses, z as KupLanguageTotals, A as KupLanguageColumn, B as KupDataNewColumnTypes, D as KupCardSubEvents, E as KupCardIds, G as KupLanguageRow, H as getColumnByName, J as KupObjects, L as formatToNumber, M as Filters, N as getValueForDisplay, O as getValueForDisplay2, P as KupData, Q as compareCell, T as TotalMode, S as getRegExpFromString, U as CHKAdapter, V as CHIAdapter, W as SWTAdapter, X as SortMode, Y as GroupLabelDisplayMode, Z as SelectionMode, _ as KupLanguageGrouping, $ as KupLanguageCheckbox, a0 as KupLanguageSearch, a1 as FILTER_ANALIZER, a2 as KupLanguagePage, a3 as addColumnValueFromRow, a4 as KupGlobalFilterMode, g as getProps, s as setProps, a5 as TotalLabel, a6 as KupPointerEventTypes, a7 as kupDynamicPositionAttribute, a8 as KupListProps, a9 as KupCardFamily, aa as KupListRole, ab as identify, ac as LoadMoreMode, ad as PaginatorPos, ae as ShowGrid, af as kupDraggableColumnAttr, ag as kupDragActiveAttr, ah as KupDragEffect, ai as kupDraggableCellAttr, aj as KupDropEventTypes, ak as FixedCellsClasses, al as FixedCellsCSSVarsBase, am as KupLanguageFontsize, an as KupLanguageDensity, ao as KupLanguageGrid, ap as KupDataTableProps, aq as DataTableAreasEnum, ar as iconColumn, as as keyColumn, at as fieldColumn, au as KupCardProps } from './p-0c4c10f2.js';
2
+ import { c as KupThemeIconValues, I as ItemsDisplayMode, d as KupLanguageGeneric, a as KupComponentSizing, k as kupManagerInstance, e as KupDynamicPositionPlacement, f as editableTypes, h as kupTypes, F as FCellClasses, i as FCellTypes, b as KupThemeColorValues, R as RADAdapter, C as CMBandACPAdapter, j as KupTagNames, l as FCellShapes, m as getCellValueForDisplay, n as fullWidthFieldsComps, o as autoCenterComps, p as FCellEvents, q as isForceUppercase, r as isForceLowercase, t as KupDebugCategory, u as adaptContentToDisplayMode, v as FCellPadding, w as fillString, x as KupCardBuiltInClockElements, y as KupCardCSSClasses, z as KupLanguageTotals, A as KupLanguageColumn, B as KupDataNewColumnTypes, D as KupCardSubEvents, E as KupCardIds, G as KupLanguageRow, H as getColumnByName, J as KupObjects, L as formatToNumber, M as Filters, N as getValueForDisplay, O as getValueForDisplay2, P as KupData, Q as compareCell, T as TotalMode, S as getRegExpFromString, U as CHKAdapter, V as CHIAdapter, W as SWTAdapter, X as SortMode, Y as GroupLabelDisplayMode, Z as SelectionMode, _ as KupLanguageGrouping, $ as KupLanguageCheckbox, a0 as KupLanguageSearch, a1 as FILTER_ANALIZER, a2 as KupLanguagePage, a3 as addColumnValueFromRow, a4 as KupGlobalFilterMode, g as getProps, s as setProps, a5 as TotalLabel, a6 as KupPointerEventTypes, a7 as kupDynamicPositionAttribute, a8 as KupListProps, a9 as KupCardFamily, aa as KupListRole, ab as identify, ac as LoadMoreMode, ad as PaginatorPos, ae as ShowGrid, af as kupDraggableColumnAttr, ag as kupDragActiveAttr, ah as KupDragEffect, ai as kupDraggableCellAttr, aj as KupDropEventTypes, ak as FixedCellsClasses, al as FixedCellsCSSVarsBase, am as KupLanguageFontsize, an as KupLanguageDensity, ao as KupLanguageGrid, ap as KupDataTableProps, aq as DataTableAreasEnum, ar as iconColumn, as as keyColumn, at as fieldColumn, au as KupCardProps } from './p-27005da8.js';
3
3
  import { h, g as getAssetPath, F as Fragment } from './p-3aae989f.js';
4
4
  import { c as KupDateTimeFormatOptionsMonth, K as KupDatesFormats, a as KupDates } from './p-1581348d.js';
5
5
 
@@ -1391,6 +1391,14 @@ function setContent(props) {
1391
1391
  };
1392
1392
  value = formatValue(value, options, false);
1393
1393
  }
1394
+ if (props.textArea) {
1395
+ try {
1396
+ value = JSON.parse(`"${value}"`);
1397
+ }
1398
+ catch (e) {
1399
+ value = JSON.parse(JSON.stringify(value));
1400
+ }
1401
+ }
1394
1402
  return (h("div", { class: classContainerObj },
1395
1403
  !props.fullWidth ? labelEl : undefined,
1396
1404
  h("div", { class: classObj },
@@ -5426,12 +5434,6 @@ function setEditableCell(cellType, classObj, cell, column, props) {
5426
5434
  case FCellTypes.DATE:
5427
5435
  return (h("kup-date-picker", Object.assign({ key: column.name + props.row.id, initialValue: cell.value }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', "onkup-datepicker-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-datepicker-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onKup-datepicker-blur": (e) => cellEvent(e, props, cellType, FCellEvents.BLUR), "onkup-datepicker-textfieldsubmit": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) })));
5428
5436
  case FCellTypes.EDITOR:
5429
- try {
5430
- cell.value = JSON.parse(`"${cell.value}"`);
5431
- }
5432
- catch (e) {
5433
- cell.value = JSON.parse(JSON.stringify(cell.value));
5434
- }
5435
5437
  return (h(FTextField, Object.assign({}, cell.data, { textArea: true, sizing: KupComponentSizing.EXTRA_LARGE, label: column.title, fullWidth: isFullWidth(props) ? true : false, maxLength: cell.data.maxLength, value: cell.value, onChange: (e) => {
5436
5438
  cellEvent(e, props, cellType, FCellEvents.UPDATE);
5437
5439
  }, onInput: (e) => {
@@ -5481,7 +5483,7 @@ function setEditableCell(cellType, classObj, cell, column, props) {
5481
5483
  const onKeyDown = (e) => {
5482
5484
  var _a, _b;
5483
5485
  (_b = (_a = cell.data) === null || _a === void 0 ? void 0 : _a.onKeyDown) === null || _b === void 0 ? void 0 : _b.call(_a, e); // call onKeyDown handler if it is set as prop
5484
- if (e.key === 'Enter' || /^F[1-9]|F1[0-2]$/.test(e.key)) {
5486
+ if (/^F[1-9]|F1[0-2]$/.test(e.key)) {
5485
5487
  cellEvent(e, props, cellType, FCellEvents.UPDATE);
5486
5488
  }
5487
5489
  };
@@ -5493,10 +5495,11 @@ function setEditableCell(cellType, classObj, cell, column, props) {
5493
5495
  return (h("input", { class: 'input-field', onChange: onChange, onInput: onInput, onKeyDown: onKeyDown, type: type, value: value, maxLength: (_d = (_c = column.cellData) === null || _c === void 0 ? void 0 : _c.maxLength) !== null && _d !== void 0 ? _d : -1 }));
5494
5496
  }
5495
5497
  else {
5496
- return (h(FTextField, Object.assign({ textArea: (cell.shape
5497
- ? cell.shape === FCellShapes.MEMO
5498
- : false) ||
5499
- (cellType ? cellType === FCellTypes.MEMO : false), inputType: type, fullWidth: isFullWidth(props) ? true : false }, cell.data, { maxLength: (cellType == FCellTypes.NUMBER &&
5498
+ const isTextArea = (cell.shape ? cell.shape === FCellShapes.MEMO : false) ||
5499
+ (cellType ? cellType === FCellTypes.MEMO : false);
5500
+ return (h(FTextField, Object.assign({}, cell.data, { textArea: isTextArea, sizing: isTextArea
5501
+ ? KupComponentSizing.EXTRA_LARGE
5502
+ : KupComponentSizing.SMALL, inputType: type, fullWidth: isFullWidth(props) ? true : false, maxLength: (cellType == FCellTypes.NUMBER &&
5500
5503
  ((props.column.decimals &&
5501
5504
  props.column.decimals > 0) ||
5502
5505
  props.column.group)) ||
@@ -5851,6 +5854,7 @@ function cellEvent(e, props, cellType, cellEventName) {
5851
5854
  }
5852
5855
  break;
5853
5856
  case FCellTypes.EDITOR:
5857
+ case FCellTypes.STRING:
5854
5858
  value = JSON.stringify(value).slice(1, -1);
5855
5859
  break;
5856
5860
  }
@@ -12661,11 +12665,12 @@ function getPageItems(props, maxNumberOfPage) {
12661
12665
  }
12662
12666
  function getRowsItems(props) {
12663
12667
  const rowsPerPageItems = [];
12668
+ const max = Math.min(props.max, props.maxRowsPerPage);
12664
12669
  let i = props.perPage;
12665
12670
  if (i === 0) {
12666
12671
  return rowsPerPageItems;
12667
12672
  }
12668
- while (i < props.max) {
12673
+ while (i < max) {
12669
12674
  const selected = i == props.perPage;
12670
12675
  rowsPerPageItems.push({
12671
12676
  id: i.toString(),
@@ -12674,11 +12679,11 @@ function getRowsItems(props) {
12674
12679
  });
12675
12680
  i = i * 2;
12676
12681
  }
12677
- const selected = props.max == props.perPage;
12682
+ const selected = max == props.perPage;
12678
12683
  rowsPerPageItems.push({
12679
- id: props.max.toString(),
12684
+ id: max.toString(),
12680
12685
  selected: selected,
12681
- value: props.max.toString(),
12686
+ value: max.toString(),
12682
12687
  });
12683
12688
  return rowsPerPageItems;
12684
12689
  }
@@ -15332,9 +15337,10 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class KupTree extends H {
15332
15337
  : null)))));
15333
15338
  }
15334
15339
  disconnectedCallback() {
15335
- __classPrivateFieldGet$9(this, _KupTree_kupManager, "f").language.register(this);
15340
+ __classPrivateFieldGet$9(this, _KupTree_kupManager, "f").language.unregister(this);
15336
15341
  __classPrivateFieldGet$9(this, _KupTree_kupManager, "f").resize.unobserve(this.rootElement);
15337
15342
  __classPrivateFieldGet$9(this, _KupTree_kupManager, "f").theme.unregister(this);
15343
+ __classPrivateFieldGet$9(this, _KupTree_kupManager, "f").interact.unregister([this.treeWrapperRef]);
15338
15344
  const dynamicPositionElements = this.rootElement.shadowRoot.querySelectorAll('[' + kupDynamicPositionAttribute + ']');
15339
15345
  if (dynamicPositionElements.length > 0) {
15340
15346
  __classPrivateFieldGet$9(this, _KupTree_kupManager, "f").dynamicPosition.unregister(Array.prototype.slice.call(dynamicPositionElements));
@@ -22367,7 +22373,7 @@ var __classPrivateFieldSet$2 = (undefined && undefined.__classPrivateFieldSet) |
22367
22373
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
22368
22374
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
22369
22375
  };
22370
- var _KupDataTable_instances, _KupDataTable_initialized, _KupDataTable_rows, _KupDataTable_rowsLength, _KupDataTable_paginatedRows, _KupDataTable_paginatedRowsLength, _KupDataTable_footer, _KupDataTable_kupManager, _KupDataTable_renderedRows, _KupDataTable_loadMoreEventCounter, _KupDataTable_loadMoreEventPreviousQuantity, _KupDataTable_theadRef, _KupDataTable_tableRef, _KupDataTable_originalData, _KupDataTable_originalDataLoaded, _KupDataTable_originalDataLoadedMaxId, _KupDataTable_insertedRowIds, _KupDataTable_tableAreaRef, _KupDataTable_stickyTheadRef, _KupDataTable_lastPointerDetails, _KupDataTable_customizeTopButtonRef, _KupDataTable_customizeTopPanelRef, _KupDataTable_sizedColumns, _KupDataTable_intObserver, _KupDataTable_navBarHeight, _KupDataTable_theadIntersecting, _KupDataTable_tableIntersecting, _KupDataTable_isSafariBrowser, _KupDataTable_isRestoringState, _KupDataTable_globalFilterTimeout, _KupDataTable_totalMenuCoords, _KupDataTable_clickTimeout, _KupDataTable_thRefs, _KupDataTable_rowsRefs, _KupDataTable_oldWidth, _KupDataTable_hold, _KupDataTable_interactableDrag, _KupDataTable_interactableDrop, _KupDataTable_interactableResize, _KupDataTable_interactableTouch, _KupDataTable_dropareaRef, _KupDataTable_removeDropareaRef, _KupDataTable_groupsDropareaRef, _KupDataTable_clickCb, _KupDataTable_clickCbCustomPanel, _KupDataTable_clickCbDropCard, _KupDataTable_resizeTimeout, _KupDataTable_columnMenuInstance, _KupDataTable_filtersColumnMenuInstance, _KupDataTable_filtersRowsInstance, _KupDataTable_detailCard, _KupDataTable_insertCard, _KupDataTable_actionsCard, _KupDataTable_confirmDeleteCard, _KupDataTable_confirmDeleteDialog, _KupDataTable_columnMenuCard, _KupDataTable_columnDropCard, _KupDataTable_columnDropCardAnchor, _KupDataTable_dropDownActionCardAnchor, _KupDataTable_insertCount, _KupDataTable_lastFocusedRow, _KupDataTable_BUTTON_CANCEL_ID, _KupDataTable_BUTTON_SUBMIT_ID, _KupDataTable_FIELDS_FORM_ID, _KupDataTable_MESSAGE_ID, _KupDataTable_MESSAGE_WRAPPER_ID, _KupDataTable_INSERT_PREFIX, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, _KupDataTable_eventBlurNames, _KupDataTable_closeDropCard, _KupDataTable_createDropCard, _KupDataTable_calculateData, _KupDataTable_getRow, _KupDataTable__getRow, _KupDataTable_getTransposedData, _KupDataTable_setTransposedData, _KupDataTable_switchToTotalsMatrix, _KupDataTable_setObjForTotalsMatrix, _KupDataTable_stickyHeaderPosition, _KupDataTable_updateStickyHeaderSize, _KupDataTable_setObserver, _KupDataTable_didLoadInteractables, _KupDataTable_didRenderInteractables, _KupDataTable_didLoadObservers, _KupDataTable_didRenderObservers, _KupDataTable_didLoadEventHandling, _KupDataTable_scrollStickyHeader, _KupDataTable_checkScrollOnHover, _KupDataTable_customizePanelPosition, _KupDataTable_rowsPointLength, _KupDataTable_paginatedRowsPointLength, _KupDataTable__rowsLength, _KupDataTable_resetSelectedRows, _KupDataTable_getSizedColumns, _KupDataTable_rowDetail, _KupDataTable_dropDownActions, _KupDataTable_createDropDownActionsCard, _KupDataTable_clearSearchActionsCard, _KupDataTable_filterRowActionsCard, _KupDataTable_closeRowActionsCard, _KupDataTable_closeColumnMenuCard, _KupDataTable_prepareDataForActionsCard, _KupDataTable_rowInsertForm, _KupDataTable_rowsDelete, _KupDataTable_getEventDetails, _KupDataTable_clickHandler, _KupDataTable_cellActionsMenuHandler, _KupDataTable_contextMenuHandler, _KupDataTable_dblClickHandler, _KupDataTable_initRows, _KupDataTable_filterRows, _KupDataTable_isGrouping, _KupDataTable_hasRowActions, _KupDataTable_removeGroup, _KupDataTable_hasTotals, _KupDataTable_tableHasAutoWidth, _KupDataTable_forceGroupExpansion, _KupDataTable_forceRowGroupExpansion, _KupDataTable_adjustPaginator, _KupDataTable_setCellEditability, _KupDataTable_composeFixedCellStyleAndClass, _KupDataTable_updateFixedRowsAndColumnsCssVariables, _KupDataTable_onColumnSort, _KupDataTable_onRemoveFilter, _KupDataTable_getFilterValueForTooltip, _KupDataTable_onGlobalFilterChange, _KupDataTable_handlePageChange, _KupDataTable_handleRowsPerPageChange, _KupDataTable_onRowClick, _KupDataTable_selectColumn, _KupDataTable_deselectColumn, _KupDataTable_onRowActionExpanderClick, _KupDataTable_handleRowSelect, _KupDataTable_onRowExpand, _KupDataTable_onSelectAll, _KupDataTable_openTotalMenu, _KupDataTable_closeTotalMenu, _KupDataTable_isOpenedTotalMenuForColumn, _KupDataTable_groupRows, _KupDataTable_onLoadMoreClick, _KupDataTable_adjustGroupState, _KupDataTable_adjustGroupStateFromRow, _KupDataTable_sortRows, _KupDataTable_getSortIcon, _KupDataTable_getSortDecode, _KupDataTable_calculateColspan, _KupDataTable_isGroupExpanded, _KupDataTable_handleColumnSort, _KupDataTable_moveSortedColumns, _KupDataTable_handleUpdateClick, _KupDataTable_onBlurHandler, _KupDataTable_applyLineBreaks, _KupDataTable_composeHeaderCellClassAndStyle, _KupDataTable_renderHeader, _KupDataTable_renderStickyHeader, _KupDataTable_totalMenuPosition, _KupDataTable_onTotalMenuOpen, _KupDataTable_renderRow, _KupDataTable_onCustomSettingsClick, _KupDataTable_openCustomSettings, _KupDataTable_closeCustomSettings, _KupDataTable_renderPaginator, _KupDataTable_columnRemoveArea, _KupDataTable_columnGroupArea, _KupDataTable_hideShowColumnDropArea, _KupDataTable_handleColumnGroup, _KupDataTable_transcodeItem, _KupDataTable_createListData, _KupDataTable_FONTSIZE_CODES, _KupDataTable_FONTSIZE_DECODES, _KupDataTable_FONTSIZE_ICONS, _KupDataTable_getFontSizeCodeFromDecode, _KupDataTable_renderFontSizePanel, _KupDataTable_DENSITY_DECODES, _KupDataTable_DENSITY_ICONS, _KupDataTable_getDensityCodeFromDecode, _KupDataTable_renderDensityPanel, _KupDataTable_GRID_CODES, _KupDataTable_GRID_DECODES, _KupDataTable_GRID_ICONS, _KupDataTable_getGridCodeFromDecode, _KupDataTable_renderTransposeSwitch, _KupDataTable_renderTotalsMatrix, _KupDataTable_renderGridPanel, _KupDataTable_renderCommandButton, _KupDataTable_renderCommandDropDownButton, _KupDataTable_renderUpdateButtons;
22376
+ var _KupDataTable_instances, _KupDataTable_initialized, _KupDataTable_rows, _KupDataTable_rowsLength, _KupDataTable_paginatedRows, _KupDataTable_paginatedRowsLength, _KupDataTable_footer, _KupDataTable_kupManager, _KupDataTable_renderedRows, _KupDataTable_loadMoreEventCounter, _KupDataTable_loadMoreEventPreviousQuantity, _KupDataTable_theadRef, _KupDataTable_tableRef, _KupDataTable_originalData, _KupDataTable_originalDataLoaded, _KupDataTable_originalDataLoadedMaxId, _KupDataTable_insertedRowIds, _KupDataTable_tableAreaRef, _KupDataTable_stickyTheadRef, _KupDataTable_lastPointerDetails, _KupDataTable_customizeTopButtonRef, _KupDataTable_customizeTopPanelRef, _KupDataTable_sizedColumns, _KupDataTable_intObserver, _KupDataTable_navBarHeight, _KupDataTable_theadIntersecting, _KupDataTable_tableIntersecting, _KupDataTable_isSafariBrowser, _KupDataTable_isRestoringState, _KupDataTable_globalFilterTimeout, _KupDataTable_totalMenuCoords, _KupDataTable_clickTimeout, _KupDataTable_thRefs, _KupDataTable_rowsRefs, _KupDataTable_oldWidth, _KupDataTable_hold, _KupDataTable_interactableDrag, _KupDataTable_interactableDrop, _KupDataTable_interactableResize, _KupDataTable_interactableTouch, _KupDataTable_dropareaRef, _KupDataTable_removeDropareaRef, _KupDataTable_groupsDropareaRef, _KupDataTable_clickCb, _KupDataTable_clickCbCustomPanel, _KupDataTable_clickCbDropCard, _KupDataTable_resizeTimeout, _KupDataTable_columnMenuInstance, _KupDataTable_filtersColumnMenuInstance, _KupDataTable_filtersRowsInstance, _KupDataTable_detailCard, _KupDataTable_insertCard, _KupDataTable_actionsCard, _KupDataTable_confirmDeleteCard, _KupDataTable_confirmDeleteDialog, _KupDataTable_columnMenuCard, _KupDataTable_columnDropCard, _KupDataTable_columnDropCardAnchor, _KupDataTable_dropDownActionCardAnchor, _KupDataTable_insertCount, _KupDataTable_lastFocusedRow, _KupDataTable_maxRowsPerPage, _KupDataTable_BUTTON_CANCEL_ID, _KupDataTable_BUTTON_SUBMIT_ID, _KupDataTable_FIELDS_FORM_ID, _KupDataTable_MESSAGE_ID, _KupDataTable_MESSAGE_WRAPPER_ID, _KupDataTable_INSERT_PREFIX, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, _KupDataTable_eventBlurNames, _KupDataTable_closeDropCard, _KupDataTable_createDropCard, _KupDataTable_calculateData, _KupDataTable_getRow, _KupDataTable__getRow, _KupDataTable_getTransposedData, _KupDataTable_setTransposedData, _KupDataTable_switchToTotalsMatrix, _KupDataTable_setObjForTotalsMatrix, _KupDataTable_stickyHeaderPosition, _KupDataTable_updateStickyHeaderSize, _KupDataTable_setObserver, _KupDataTable_didLoadInteractables, _KupDataTable_didRenderInteractables, _KupDataTable_didLoadObservers, _KupDataTable_didRenderObservers, _KupDataTable_didLoadEventHandling, _KupDataTable_scrollStickyHeader, _KupDataTable_checkScrollOnHover, _KupDataTable_customizePanelPosition, _KupDataTable_rowsPointLength, _KupDataTable_paginatedRowsPointLength, _KupDataTable__rowsLength, _KupDataTable_resetSelectedRows, _KupDataTable_getSizedColumns, _KupDataTable_rowDetail, _KupDataTable_dropDownActions, _KupDataTable_createDropDownActionsCard, _KupDataTable_clearSearchActionsCard, _KupDataTable_filterRowActionsCard, _KupDataTable_closeRowActionsCard, _KupDataTable_closeColumnMenuCard, _KupDataTable_prepareDataForActionsCard, _KupDataTable_rowInsertForm, _KupDataTable_rowsDelete, _KupDataTable_getEventDetails, _KupDataTable_clickHandler, _KupDataTable_cellActionsMenuHandler, _KupDataTable_contextMenuHandler, _KupDataTable_dblClickHandler, _KupDataTable_initRows, _KupDataTable_filterRows, _KupDataTable_isGrouping, _KupDataTable_hasRowActions, _KupDataTable_removeGroup, _KupDataTable_hasTotals, _KupDataTable_tableHasAutoWidth, _KupDataTable_forceGroupExpansion, _KupDataTable_forceRowGroupExpansion, _KupDataTable_adjustPaginator, _KupDataTable_setCellEditability, _KupDataTable_composeFixedCellStyleAndClass, _KupDataTable_updateFixedRowsAndColumnsCssVariables, _KupDataTable_onColumnSort, _KupDataTable_onRemoveFilter, _KupDataTable_getFilterValueForTooltip, _KupDataTable_onGlobalFilterChange, _KupDataTable_handlePageChange, _KupDataTable_handleRowsPerPageChange, _KupDataTable_onRowClick, _KupDataTable_selectColumn, _KupDataTable_deselectColumn, _KupDataTable_onRowActionExpanderClick, _KupDataTable_handleRowSelect, _KupDataTable_onRowExpand, _KupDataTable_onSelectAll, _KupDataTable_openTotalMenu, _KupDataTable_closeTotalMenu, _KupDataTable_isOpenedTotalMenuForColumn, _KupDataTable_groupRows, _KupDataTable_onLoadMoreClick, _KupDataTable_adjustGroupState, _KupDataTable_adjustGroupStateFromRow, _KupDataTable_sortRows, _KupDataTable_getSortIcon, _KupDataTable_getSortDecode, _KupDataTable_calculateColspan, _KupDataTable_isGroupExpanded, _KupDataTable_handleColumnSort, _KupDataTable_moveSortedColumns, _KupDataTable_handleUpdateClick, _KupDataTable_onBlurHandler, _KupDataTable_applyLineBreaks, _KupDataTable_composeHeaderCellClassAndStyle, _KupDataTable_renderHeader, _KupDataTable_renderStickyHeader, _KupDataTable_totalMenuPosition, _KupDataTable_onTotalMenuOpen, _KupDataTable_renderRow, _KupDataTable_onCustomSettingsClick, _KupDataTable_openCustomSettings, _KupDataTable_closeCustomSettings, _KupDataTable_renderPaginator, _KupDataTable_columnRemoveArea, _KupDataTable_columnGroupArea, _KupDataTable_hideShowColumnDropArea, _KupDataTable_handleColumnGroup, _KupDataTable_transcodeItem, _KupDataTable_createListData, _KupDataTable_FONTSIZE_CODES, _KupDataTable_FONTSIZE_DECODES, _KupDataTable_FONTSIZE_ICONS, _KupDataTable_getFontSizeCodeFromDecode, _KupDataTable_renderFontSizePanel, _KupDataTable_DENSITY_DECODES, _KupDataTable_DENSITY_ICONS, _KupDataTable_getDensityCodeFromDecode, _KupDataTable_renderDensityPanel, _KupDataTable_GRID_CODES, _KupDataTable_GRID_DECODES, _KupDataTable_GRID_ICONS, _KupDataTable_getGridCodeFromDecode, _KupDataTable_renderTransposeSwitch, _KupDataTable_renderTotalsMatrix, _KupDataTable_renderGridPanel, _KupDataTable_renderCommandButton, _KupDataTable_renderCommandDropDownButton, _KupDataTable_renderUpdateButtons;
22371
22377
  const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends H {
22372
22378
  constructor() {
22373
22379
  super();
@@ -22487,6 +22493,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
22487
22493
  _KupDataTable_dropDownActionCardAnchor.set(this, null);
22488
22494
  _KupDataTable_insertCount.set(this, 0);
22489
22495
  _KupDataTable_lastFocusedRow.set(this, null);
22496
+ _KupDataTable_maxRowsPerPage.set(this, void 0);
22490
22497
  _KupDataTable_BUTTON_CANCEL_ID.set(this, 'cancel');
22491
22498
  _KupDataTable_BUTTON_SUBMIT_ID.set(this, 'submit');
22492
22499
  _KupDataTable_FIELDS_FORM_ID.set(this, 'fieldsForm');
@@ -22846,6 +22853,20 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
22846
22853
  : -1, "f");
22847
22854
  }
22848
22855
  }
22856
+ computeMaxRowsPerPage() {
22857
+ var _a, _b, _c, _d;
22858
+ if (((_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.columns) === null || _b === void 0 ? void 0 : _b.length) > 0 && ((_d = (_c = this.data) === null || _c === void 0 ? void 0 : _c.rows) === null || _d === void 0 ? void 0 : _d.length) > 0) {
22859
+ const columnsNumber = this.data.columns.length;
22860
+ const cellsNumber = this.data.rows.reduce((acc, r) => acc + Object.keys(r.cells).length, 0);
22861
+ const maxCellsNumberPerPage = __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").perfTuning.data.maxCellsPerPage;
22862
+ if (cellsNumber > maxCellsNumberPerPage) {
22863
+ // Rounds a number up to the nearest multiple of ten.
22864
+ __classPrivateFieldSet$2(this, _KupDataTable_maxRowsPerPage, Math.ceil(maxCellsNumberPerPage / columnsNumber / 10) * 10, "f");
22865
+ }
22866
+ if (this.rowsPerPage > __classPrivateFieldGet$3(this, _KupDataTable_maxRowsPerPage, "f"))
22867
+ this.rowsPerPage = __classPrivateFieldGet$3(this, _KupDataTable_maxRowsPerPage, "f");
22868
+ }
22869
+ }
22849
22870
  recalculateRowsAndUndoSelections() {
22850
22871
  if (!__classPrivateFieldGet$3(this, _KupDataTable_isRestoringState, "f")) {
22851
22872
  this.recalculateRows();
@@ -23309,6 +23330,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
23309
23330
  if (this.pageSelected > 0) {
23310
23331
  this.currentPage = this.pageSelected;
23311
23332
  }
23333
+ this.computeMaxRowsPerPage();
23312
23334
  this.currentRowsPerPage = this.rowsPerPage;
23313
23335
  __classPrivateFieldSet$2(this, _KupDataTable_isRestoringState, false, "f");
23314
23336
  //this.identifyAndInitRows();
@@ -23336,6 +23358,10 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
23336
23358
  __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").debug.logRender(this, false);
23337
23359
  }
23338
23360
  componentDidRender() {
23361
+ // If the component is not connected this method must not be executed
23362
+ if (!this.rootElement.isConnected) {
23363
+ return;
23364
+ }
23339
23365
  const root = this.rootElement.shadowRoot;
23340
23366
  if (root) {
23341
23367
  const fs = root.querySelectorAll('.f-text-field');
@@ -23677,7 +23703,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
23677
23703
  }
23678
23704
  let rows = null;
23679
23705
  if (__classPrivateFieldGet$3(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
23680
- rows = (h$1("tr", { key: '5ea64b218672da840081c5bf02cdc94ddef0324b', ref: (el) => __classPrivateFieldGet$3(this, _KupDataTable_rowsRefs, "f").push(el) }, h$1("td", { key: '432ffb2cac603e2b68b9e8cf640501c1673d968d', colSpan: __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
23706
+ rows = (h$1("tr", { key: '6d9d16167f4002b03b7c74ac1b98d2e0a94c4638', ref: (el) => __classPrivateFieldGet$3(this, _KupDataTable_rowsRefs, "f").push(el) }, h$1("td", { key: '443765e1268b32685159b10edb405f52d306363e', colSpan: __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
23681
23707
  }
23682
23708
  else {
23683
23709
  rows = [];
@@ -23742,7 +23768,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
23742
23768
  for (let i = 0; i < chipsData.length; i++) {
23743
23769
  props.onIconClick.push(() => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_removeGroup).call(this, i));
23744
23770
  }
23745
- groupChips = h$1(FChip, Object.assign({ key: '46b690b3112c1e54d3eb6dcc297222270e264872' }, props));
23771
+ groupChips = h$1(FChip, Object.assign({ key: '199d6b555188e62513d0a7bf9c63907ef4f7d885' }, props));
23746
23772
  }
23747
23773
  }
23748
23774
  const tableClass = {
@@ -23774,7 +23800,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
23774
23800
  if (this.headerIsPersistent &&
23775
23801
  this.tableHeight === undefined &&
23776
23802
  this.tableWidth === undefined) {
23777
- stickyEl = (h$1("sticky-header", { key: 'ad4427c0f8c874acc175e3265787504bc7368404', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_stickyTheadRef, el, "f")) }, h$1("thead-sticky", { key: '96eef0b1b399de25aa16d0f6ab7f7b6195ee2294' }, h$1("tr-sticky", { key: '3e9739c131e68e64a345b0c97a5f503bd28723a5' }, stickyHeader))));
23803
+ stickyEl = (h$1("sticky-header", { key: '88f5e4ab2045c7c73ec4c9b867988a1676cd612c', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_stickyTheadRef, el, "f")) }, h$1("thead-sticky", { key: '3b369852380887a46c52dd891d83173aec6adcdc' }, h$1("tr-sticky", { key: '5d4d2eb2c1c859742ff0cdd828edca2663420f67' }, stickyHeader))));
23778
23804
  }
23779
23805
  let belowClass = 'below-wrapper';
23780
23806
  if (!!this.tableHeight || !!this.tableWidth) {
@@ -23820,7 +23846,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
23820
23846
  const useGlobalFilter = !this.legacyLook &&
23821
23847
  (this.globalFilter ||
23822
23848
  this.getRows().length > __classPrivateFieldGet$3(this, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, "f"));
23823
- const compCreated = (h$1(Host, { key: 'fb5ac0fe168288eb48b8cd7ef6d131924ac64d3d', "onKup-drop": (e) => {
23849
+ const compCreated = (h$1(Host, { key: '12778f3149ab617e0e59865f5649af9bf5ca2ec0', "onKup-drop": (e) => {
23824
23850
  this.kupDataTableDrop.emit(e.detail);
23825
23851
  }, "onKup-cell-input": (e) => {
23826
23852
  autoselectOnAction(e);
@@ -23835,11 +23861,11 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
23835
23861
  this.kupDataTableObjectFieldOpenSearchMenu.emit(e.detail);
23836
23862
  }, "onKup-objectfield-selectedmenuitem": (e) => {
23837
23863
  this.kupDataTableObjectFieldSelectedMenuItem.emit(e.detail);
23838
- } }, h$1("style", { key: '8c64b0c405aa7a0e8d3825c4f63e2322a39b4480' }, __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, h$1("div", { key: '32206172f7bd83fb6617e787194e6bc77856a32d', id: componentWrapperId, class: wrapClass }, h$1("div", { key: '0e75faa91fe043a3dfedffb13562d5b1bdcae868', class: "group-wrapper" }, groupChips), h$1("div", { key: '9055b81861aa50281fb7be1538d52baaefec472e', class: "actions-wrapper", style: actionWrapperWidth }, useGlobalFilter ? (h$1("div", { id: "global-filter" }, h$1(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), value: this.globalFilterValue, onInput: (event) => {
23864
+ } }, h$1("style", { key: '0217d86bf4de1547426ac289ec5acc71066eb7fe' }, __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, h$1("div", { key: '577c666a4101c0bc7dd2fab660edb414be45a92d', id: componentWrapperId, class: wrapClass }, h$1("div", { key: '847bfb77ff66455d1160149986dca0fc6f40073b', class: "group-wrapper" }, groupChips), h$1("div", { key: '3e07732ced2c982eab556b444caecc57c77627fb', class: "actions-wrapper", style: actionWrapperWidth }, useGlobalFilter ? (h$1("div", { id: "global-filter" }, h$1(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), value: this.globalFilterValue, onInput: (event) => {
23839
23865
  const t = event.target;
23840
23866
  window.clearTimeout(__classPrivateFieldGet$3(this, _KupDataTable_globalFilterTimeout, "f"));
23841
23867
  __classPrivateFieldSet$2(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
23842
- } }))) : null, h$1("div", { key: '770456c9c7377628bc9f2d031f8afbd271351d9c', class: "above-wrapper paginator-top" }, paginatorTop), this.insertMode !== '' &&
23868
+ } }))) : null, h$1("div", { key: 'a16daa7a120a68fbe51d78e283241840be42638d', class: "above-wrapper paginator-top" }, paginatorTop), this.insertMode !== '' &&
23843
23869
  this.selectedRows.length > 0 ? (h$1(FButton, { icon: "save", onClick: () => {
23844
23870
  this.kupSave.emit({
23845
23871
  comp: this,
@@ -23889,9 +23915,9 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
23889
23915
  this.data.rows.unshift(row);
23890
23916
  await this.refresh(true);
23891
23917
  }
23892
- }, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h$1("div", { key: '51e4244dd325c21dd8d2f8d03ad5ff3b3cd04786', class: "droparea", ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
23918
+ }, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h$1("div", { key: '902ecd2774e059728e3d8154d57d79224988488c', class: "droparea", ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
23893
23919
  ? __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
23894
- : null), h$1("div", { key: 'f129997ef39c8722e3b309db11d73fb7e9ab73b9', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
23920
+ : null), h$1("div", { key: 'fd68ebe495ff8c2494f0d554f7cf029784fe49ed', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
23895
23921
  ? [
23896
23922
  h$1("div", { class: "settings-trigger", onClick: () => {
23897
23923
  __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
@@ -23900,7 +23926,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
23900
23926
  } }, h$1(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
23901
23927
  this.renderCustomizePanel(),
23902
23928
  ]
23903
- : null, h$1("table", { key: 'a3702096a93aad8283972d9e6865ef5cf3f9bc39', class: tableClass, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_tableRef, el, "f")), onMouseLeave: (ev) => {
23929
+ : null, h$1("table", { key: 'b62b7bebd0e9637778de0277921a92704986eb31', class: tableClass, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_tableRef, el, "f")), onMouseLeave: (ev) => {
23904
23930
  ev.stopPropagation();
23905
23931
  }, onPointerDown: (e) => {
23906
23932
  __classPrivateFieldSet$2(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
@@ -23908,7 +23934,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
23908
23934
  __classPrivateFieldSet$2(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
23909
23935
  }, onContextMenu: (e) => {
23910
23936
  e.preventDefault();
23911
- } }, h$1("thead", { key: '5f530f4e85b709564c0f0d07034147a423c736e5', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_theadRef, el, "f")) }, h$1("tr", { key: '708cf966753f1e1b15c91103c526307cf3ac8eb3' }, header)), h$1("tbody", { key: '5b9fe64f7ca2fe430747adec0768471daace5895' }, rows), this.showFooter || __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_hasTotals).call(this)
23937
+ } }, h$1("thead", { key: '15d2f44898034c0c43c9afe444cb9f8a00d4ac3c', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_theadRef, el, "f")) }, h$1("tr", { key: '74e064a7d69f840c32757d4c1dd1c9e30f6eda37' }, header)), h$1("tbody", { key: '0703f5ed36888fe194963fbfcb43405281eae5b8' }, rows), this.showFooter || __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_hasTotals).call(this)
23912
23938
  ? this.renderFooter()
23913
23939
  : null), stickyEl), paginatorBottom)));
23914
23940
  return compCreated;
@@ -23917,6 +23943,11 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
23917
23943
  __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").interact.unregister(__classPrivateFieldGet$3(this, _KupDataTable_interactableDrag, "f").concat(__classPrivateFieldGet$3(this, _KupDataTable_interactableDrop, "f"), __classPrivateFieldGet$3(this, _KupDataTable_interactableResize, "f"), __classPrivateFieldGet$3(this, _KupDataTable_interactableTouch, "f")));
23918
23944
  __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.unregister(this);
23919
23945
  __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").theme.unregister(this);
23946
+ __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").toolbar.unregister([this.rootElement]);
23947
+ if (__classPrivateFieldGet$3(this, _KupDataTable_customizeTopPanelRef, "f"))
23948
+ __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").dynamicPosition.unregister([
23949
+ __classPrivateFieldGet$3(this, _KupDataTable_customizeTopPanelRef, "f"),
23950
+ ]);
23920
23951
  const dynamicPositionElements = this.rootElement.shadowRoot.querySelectorAll('[' + kupDynamicPositionAttribute + ']');
23921
23952
  if (dynamicPositionElements.length > 0) {
23922
23953
  __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").dynamicPosition.unregister(Array.prototype.slice.call(dynamicPositionElements));
@@ -23943,7 +23974,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
23943
23974
  "totals": ["recalculateRows"],
23944
23975
  "currentPage": ["recalculateRows"],
23945
23976
  "currentRowsPerPage": ["recalculateRows"],
23946
- "data": ["identifyAndInitRows", "decorateAndInitForUpdTable"],
23977
+ "data": ["identifyAndInitRows", "decorateAndInitForUpdTable", "computeMaxRowsPerPage"],
23947
23978
  "groups": ["recalculateRowsAndUndoSelections"],
23948
23979
  "fixedColumns": ["controlFixedRowsColumns"],
23949
23980
  "fixedColumnsR": ["controlFixedRowsColumns"],
@@ -23991,7 +24022,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
23991
24022
  "resizableColumns": [4, "resizable-columns"],
23992
24023
  "rowActions": [16],
23993
24024
  "commands": [16],
23994
- "rowsPerPage": [2, "rows-per-page"],
24025
+ "rowsPerPage": [1026, "rows-per-page"],
23995
24026
  "scrollOnHover": [4, "scroll-on-hover"],
23996
24027
  "selection": [1],
23997
24028
  "showCustomization": [4, "show-customization"],
@@ -24056,14 +24087,14 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
24056
24087
  "totals": ["recalculateRows"],
24057
24088
  "currentPage": ["recalculateRows"],
24058
24089
  "currentRowsPerPage": ["recalculateRows"],
24059
- "data": ["identifyAndInitRows", "decorateAndInitForUpdTable"],
24090
+ "data": ["identifyAndInitRows", "decorateAndInitForUpdTable", "computeMaxRowsPerPage"],
24060
24091
  "groups": ["recalculateRowsAndUndoSelections"],
24061
24092
  "fixedColumns": ["controlFixedRowsColumns"],
24062
24093
  "fixedColumnsR": ["controlFixedRowsColumns"],
24063
24094
  "fixedRows": ["controlFixedRowsColumns"],
24064
24095
  "transpose": ["recalculateData"]
24065
24096
  }]);
24066
- _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _KupDataTable_rowsLength = new WeakMap(), _KupDataTable_paginatedRows = new WeakMap(), _KupDataTable_paginatedRowsLength = new WeakMap(), _KupDataTable_footer = new WeakMap(), _KupDataTable_kupManager = new WeakMap(), _KupDataTable_renderedRows = new WeakMap(), _KupDataTable_loadMoreEventCounter = new WeakMap(), _KupDataTable_loadMoreEventPreviousQuantity = new WeakMap(), _KupDataTable_theadRef = new WeakMap(), _KupDataTable_tableRef = new WeakMap(), _KupDataTable_originalData = new WeakMap(), _KupDataTable_originalDataLoaded = new WeakMap(), _KupDataTable_originalDataLoadedMaxId = new WeakMap(), _KupDataTable_insertedRowIds = new WeakMap(), _KupDataTable_tableAreaRef = new WeakMap(), _KupDataTable_stickyTheadRef = new WeakMap(), _KupDataTable_lastPointerDetails = new WeakMap(), _KupDataTable_customizeTopButtonRef = new WeakMap(), _KupDataTable_customizeTopPanelRef = new WeakMap(), _KupDataTable_sizedColumns = new WeakMap(), _KupDataTable_intObserver = new WeakMap(), _KupDataTable_navBarHeight = new WeakMap(), _KupDataTable_theadIntersecting = new WeakMap(), _KupDataTable_tableIntersecting = new WeakMap(), _KupDataTable_isSafariBrowser = new WeakMap(), _KupDataTable_isRestoringState = new WeakMap(), _KupDataTable_globalFilterTimeout = new WeakMap(), _KupDataTable_totalMenuCoords = new WeakMap(), _KupDataTable_clickTimeout = new WeakMap(), _KupDataTable_thRefs = new WeakMap(), _KupDataTable_rowsRefs = new WeakMap(), _KupDataTable_oldWidth = new WeakMap(), _KupDataTable_hold = new WeakMap(), _KupDataTable_interactableDrag = new WeakMap(), _KupDataTable_interactableDrop = new WeakMap(), _KupDataTable_interactableResize = new WeakMap(), _KupDataTable_interactableTouch = new WeakMap(), _KupDataTable_dropareaRef = new WeakMap(), _KupDataTable_removeDropareaRef = new WeakMap(), _KupDataTable_groupsDropareaRef = new WeakMap(), _KupDataTable_clickCb = new WeakMap(), _KupDataTable_clickCbCustomPanel = new WeakMap(), _KupDataTable_clickCbDropCard = new WeakMap(), _KupDataTable_resizeTimeout = new WeakMap(), _KupDataTable_columnMenuInstance = new WeakMap(), _KupDataTable_filtersColumnMenuInstance = new WeakMap(), _KupDataTable_filtersRowsInstance = new WeakMap(), _KupDataTable_detailCard = new WeakMap(), _KupDataTable_insertCard = new WeakMap(), _KupDataTable_actionsCard = new WeakMap(), _KupDataTable_confirmDeleteCard = new WeakMap(), _KupDataTable_confirmDeleteDialog = new WeakMap(), _KupDataTable_columnMenuCard = new WeakMap(), _KupDataTable_columnDropCard = new WeakMap(), _KupDataTable_columnDropCardAnchor = new WeakMap(), _KupDataTable_dropDownActionCardAnchor = new WeakMap(), _KupDataTable_insertCount = new WeakMap(), _KupDataTable_lastFocusedRow = new WeakMap(), _KupDataTable_BUTTON_CANCEL_ID = new WeakMap(), _KupDataTable_BUTTON_SUBMIT_ID = new WeakMap(), _KupDataTable_FIELDS_FORM_ID = new WeakMap(), _KupDataTable_MESSAGE_ID = new WeakMap(), _KupDataTable_MESSAGE_WRAPPER_ID = new WeakMap(), _KupDataTable_INSERT_PREFIX = new WeakMap(), _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER = new WeakMap(), _KupDataTable_eventBlurNames = new WeakMap(), _KupDataTable_stickyHeaderPosition = new WeakMap(), _KupDataTable_handleUpdateClick = new WeakMap(), _KupDataTable_FONTSIZE_CODES = new WeakMap(), _KupDataTable_FONTSIZE_DECODES = new WeakMap(), _KupDataTable_FONTSIZE_ICONS = new WeakMap(), _KupDataTable_DENSITY_DECODES = new WeakMap(), _KupDataTable_DENSITY_ICONS = new WeakMap(), _KupDataTable_GRID_CODES = new WeakMap(), _KupDataTable_GRID_DECODES = new WeakMap(), _KupDataTable_GRID_ICONS = new WeakMap(), _KupDataTable_instances = new WeakSet(), _KupDataTable_closeDropCard = function _KupDataTable_closeDropCard() {
24097
+ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _KupDataTable_rowsLength = new WeakMap(), _KupDataTable_paginatedRows = new WeakMap(), _KupDataTable_paginatedRowsLength = new WeakMap(), _KupDataTable_footer = new WeakMap(), _KupDataTable_kupManager = new WeakMap(), _KupDataTable_renderedRows = new WeakMap(), _KupDataTable_loadMoreEventCounter = new WeakMap(), _KupDataTable_loadMoreEventPreviousQuantity = new WeakMap(), _KupDataTable_theadRef = new WeakMap(), _KupDataTable_tableRef = new WeakMap(), _KupDataTable_originalData = new WeakMap(), _KupDataTable_originalDataLoaded = new WeakMap(), _KupDataTable_originalDataLoadedMaxId = new WeakMap(), _KupDataTable_insertedRowIds = new WeakMap(), _KupDataTable_tableAreaRef = new WeakMap(), _KupDataTable_stickyTheadRef = new WeakMap(), _KupDataTable_lastPointerDetails = new WeakMap(), _KupDataTable_customizeTopButtonRef = new WeakMap(), _KupDataTable_customizeTopPanelRef = new WeakMap(), _KupDataTable_sizedColumns = new WeakMap(), _KupDataTable_intObserver = new WeakMap(), _KupDataTable_navBarHeight = new WeakMap(), _KupDataTable_theadIntersecting = new WeakMap(), _KupDataTable_tableIntersecting = new WeakMap(), _KupDataTable_isSafariBrowser = new WeakMap(), _KupDataTable_isRestoringState = new WeakMap(), _KupDataTable_globalFilterTimeout = new WeakMap(), _KupDataTable_totalMenuCoords = new WeakMap(), _KupDataTable_clickTimeout = new WeakMap(), _KupDataTable_thRefs = new WeakMap(), _KupDataTable_rowsRefs = new WeakMap(), _KupDataTable_oldWidth = new WeakMap(), _KupDataTable_hold = new WeakMap(), _KupDataTable_interactableDrag = new WeakMap(), _KupDataTable_interactableDrop = new WeakMap(), _KupDataTable_interactableResize = new WeakMap(), _KupDataTable_interactableTouch = new WeakMap(), _KupDataTable_dropareaRef = new WeakMap(), _KupDataTable_removeDropareaRef = new WeakMap(), _KupDataTable_groupsDropareaRef = new WeakMap(), _KupDataTable_clickCb = new WeakMap(), _KupDataTable_clickCbCustomPanel = new WeakMap(), _KupDataTable_clickCbDropCard = new WeakMap(), _KupDataTable_resizeTimeout = new WeakMap(), _KupDataTable_columnMenuInstance = new WeakMap(), _KupDataTable_filtersColumnMenuInstance = new WeakMap(), _KupDataTable_filtersRowsInstance = new WeakMap(), _KupDataTable_detailCard = new WeakMap(), _KupDataTable_insertCard = new WeakMap(), _KupDataTable_actionsCard = new WeakMap(), _KupDataTable_confirmDeleteCard = new WeakMap(), _KupDataTable_confirmDeleteDialog = new WeakMap(), _KupDataTable_columnMenuCard = new WeakMap(), _KupDataTable_columnDropCard = new WeakMap(), _KupDataTable_columnDropCardAnchor = new WeakMap(), _KupDataTable_dropDownActionCardAnchor = new WeakMap(), _KupDataTable_insertCount = new WeakMap(), _KupDataTable_lastFocusedRow = new WeakMap(), _KupDataTable_maxRowsPerPage = new WeakMap(), _KupDataTable_BUTTON_CANCEL_ID = new WeakMap(), _KupDataTable_BUTTON_SUBMIT_ID = new WeakMap(), _KupDataTable_FIELDS_FORM_ID = new WeakMap(), _KupDataTable_MESSAGE_ID = new WeakMap(), _KupDataTable_MESSAGE_WRAPPER_ID = new WeakMap(), _KupDataTable_INSERT_PREFIX = new WeakMap(), _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER = new WeakMap(), _KupDataTable_eventBlurNames = new WeakMap(), _KupDataTable_stickyHeaderPosition = new WeakMap(), _KupDataTable_handleUpdateClick = new WeakMap(), _KupDataTable_FONTSIZE_CODES = new WeakMap(), _KupDataTable_FONTSIZE_DECODES = new WeakMap(), _KupDataTable_FONTSIZE_ICONS = new WeakMap(), _KupDataTable_DENSITY_DECODES = new WeakMap(), _KupDataTable_DENSITY_ICONS = new WeakMap(), _KupDataTable_GRID_CODES = new WeakMap(), _KupDataTable_GRID_DECODES = new WeakMap(), _KupDataTable_GRID_ICONS = new WeakMap(), _KupDataTable_instances = new WeakSet(), _KupDataTable_closeDropCard = function _KupDataTable_closeDropCard() {
24067
24098
  __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$3(this, _KupDataTable_columnDropCard, "f"));
24068
24099
  __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet$3(this, _KupDataTable_clickCbDropCard, "f"));
24069
24100
  __classPrivateFieldGet$3(this, _KupDataTable_columnDropCard, "f").remove();
@@ -26265,11 +26296,12 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
26265
26296
  this.openedCustomSettings = false;
26266
26297
  __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet$3(this, _KupDataTable_clickCbCustomPanel, "f"));
26267
26298
  }, _KupDataTable_renderPaginator = function _KupDataTable_renderPaginator(top) {
26299
+ var _a;
26268
26300
  return (h$1("div", { class: "paginator-wrapper" }, h$1("div", { class: "paginator-tabs" }, this.showLoadMore ||
26269
26301
  (!this.lazyLoadRows &&
26270
26302
  __classPrivateFieldGet$3(this, _KupDataTable_rowsLength, "f") > this.rowsPerPage) ? (h$1(FPaginator, { id: top ? 'top-paginator' : 'bottom-paginator', currentPage: this.currentPage, max: __classPrivateFieldGet$3(this, _KupDataTable_rowsLength, "f"), perPage: this.currentRowsPerPage
26271
26303
  ? this.currentRowsPerPage
26272
- : this.rowsPerPage, onLoadMore: this.showLoadMore
26304
+ : this.rowsPerPage, maxRowsPerPage: (_a = __classPrivateFieldGet$3(this, _KupDataTable_maxRowsPerPage, "f")) !== null && _a !== void 0 ? _a : __classPrivateFieldGet$3(this, _KupDataTable_rowsLength, "f"), onLoadMore: this.showLoadMore
26273
26305
  ? () => {
26274
26306
  __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onLoadMoreClick).call(this);
26275
26307
  }
@@ -1,6 +1,6 @@
1
1
  import { p as proxyCustomElement, H, c as createEvent, f as forceUpdate, h, d as Host } from './p-2e5f2e07.js';
2
- import { k as kupManagerInstance, g as getProps, s as setProps } from './p-0c4c10f2.js';
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, C as defineCustomElement$s } from './p-4d78f4b5.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps } from './p-27005da8.js';
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, C as defineCustomElement$s } from './p-94a659ba.js';
4
4
  import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './p-5882e117.js';
5
5
 
6
6
  var toastuiEditor = {exports: {}};
@@ -1,6 +1,6 @@
1
1
  import { p as proxyCustomElement, H, c as createEvent, f as forceUpdate, h, d as Host, g as getAssetPath } from './p-2e5f2e07.js';
2
- import { k as kupManagerInstance, g as getProps, s as setProps, b as KupThemeColorValues, t as KupDebugCategory, H as getColumnByName, B as KupDataNewColumnTypes } from './p-0c4c10f2.js';
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, C as defineCustomElement$s } from './p-4d78f4b5.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps, b as KupThemeColorValues, t as KupDebugCategory, H as getColumnByName, B as KupDataNewColumnTypes } from './p-27005da8.js';
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, C as defineCustomElement$s } from './p-94a659ba.js';
4
4
 
5
5
  /*! *****************************************************************************
6
6
  Copyright (c) Microsoft Corporation.
@@ -1,11 +1,11 @@
1
1
  import { h, g as getAssetPath, F as Fragment } from './index-c9246a86.js';
2
- import { ak as editableTypes, al as kupTypes, am as FCellClasses, a7 as FCellTypes, d as KupThemeColorValues, ag as RADAdapter, af as CMBandACPAdapter, an as KupTagNames, F as FCellShapes, ac as getCellValueForDisplay, ao as fullWidthFieldsComps, I as ItemsDisplayMode, a as KupComponentSizing, ap as autoCenterComps, aq as adaptContentToDisplayMode, ar as FCellEvents, as as isForceUppercase, at as isForceLowercase, e as KupDebugCategory } from './kup-manager-f8d8e705.js';
2
+ import { ak as editableTypes, al as kupTypes, am as FCellClasses, a7 as FCellTypes, d as KupThemeColorValues, ag as RADAdapter, af as CMBandACPAdapter, an as KupTagNames, F as FCellShapes, ac as getCellValueForDisplay, a as KupComponentSizing, ao as fullWidthFieldsComps, I as ItemsDisplayMode, ap as autoCenterComps, aq as adaptContentToDisplayMode, ar as FCellEvents, as as isForceUppercase, at as isForceLowercase, e as KupDebugCategory } from './kup-manager-3a2bce62.js';
3
3
  import { F as FButton } from './f-button-f1040575.js';
4
4
  import { F as FCheckbox } from './f-checkbox-3ba20ca4.js';
5
- import { F as FChipType, c as FChip } from './f-chip-db575f2c.js';
5
+ import { F as FChipType, c as FChip } from './f-chip-c18c9dbe.js';
6
6
  import { F as FImage } from './f-image-9b15e9ac.js';
7
- import { F as FObjectField } from './f-object-field-83a4b83e.js';
8
- import { F as FTextField } from './f-text-field-b4ff1e80.js';
7
+ import { F as FObjectField } from './f-object-field-4ffbdea3.js';
8
+ import { F as FTextField } from './f-text-field-c6f94648.js';
9
9
 
10
10
  /*-------------------------------------------------*/
11
11
  /* C o m p o n e n t */
@@ -624,12 +624,6 @@ function setEditableCell(cellType, classObj, cell, column, props) {
624
624
  case FCellTypes.DATE:
625
625
  return (h("kup-date-picker", Object.assign({ key: column.name + props.row.id, initialValue: cell.value }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', "onkup-datepicker-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-datepicker-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onKup-datepicker-blur": (e) => cellEvent(e, props, cellType, FCellEvents.BLUR), "onkup-datepicker-textfieldsubmit": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) })));
626
626
  case FCellTypes.EDITOR:
627
- try {
628
- cell.value = JSON.parse(`"${cell.value}"`);
629
- }
630
- catch (e) {
631
- cell.value = JSON.parse(JSON.stringify(cell.value));
632
- }
633
627
  return (h(FTextField, Object.assign({}, cell.data, { textArea: true, sizing: KupComponentSizing.EXTRA_LARGE, label: column.title, fullWidth: isFullWidth(props) ? true : false, maxLength: cell.data.maxLength, value: cell.value, onChange: (e) => {
634
628
  cellEvent(e, props, cellType, FCellEvents.UPDATE);
635
629
  }, onInput: (e) => {
@@ -679,7 +673,7 @@ function setEditableCell(cellType, classObj, cell, column, props) {
679
673
  const onKeyDown = (e) => {
680
674
  var _a, _b;
681
675
  (_b = (_a = cell.data) === null || _a === void 0 ? void 0 : _a.onKeyDown) === null || _b === void 0 ? void 0 : _b.call(_a, e); // call onKeyDown handler if it is set as prop
682
- if (e.key === 'Enter' || /^F[1-9]|F1[0-2]$/.test(e.key)) {
676
+ if (/^F[1-9]|F1[0-2]$/.test(e.key)) {
683
677
  cellEvent(e, props, cellType, FCellEvents.UPDATE);
684
678
  }
685
679
  };
@@ -691,10 +685,11 @@ function setEditableCell(cellType, classObj, cell, column, props) {
691
685
  return (h("input", { class: 'input-field', onChange: onChange, onInput: onInput, onKeyDown: onKeyDown, type: type, value: value, maxLength: (_d = (_c = column.cellData) === null || _c === void 0 ? void 0 : _c.maxLength) !== null && _d !== void 0 ? _d : -1 }));
692
686
  }
693
687
  else {
694
- return (h(FTextField, Object.assign({ textArea: (cell.shape
695
- ? cell.shape === FCellShapes.MEMO
696
- : false) ||
697
- (cellType ? cellType === FCellTypes.MEMO : false), inputType: type, fullWidth: isFullWidth(props) ? true : false }, cell.data, { maxLength: (cellType == FCellTypes.NUMBER &&
688
+ const isTextArea = (cell.shape ? cell.shape === FCellShapes.MEMO : false) ||
689
+ (cellType ? cellType === FCellTypes.MEMO : false);
690
+ return (h(FTextField, Object.assign({}, cell.data, { textArea: isTextArea, sizing: isTextArea
691
+ ? KupComponentSizing.EXTRA_LARGE
692
+ : KupComponentSizing.SMALL, inputType: type, fullWidth: isFullWidth(props) ? true : false, maxLength: (cellType == FCellTypes.NUMBER &&
698
693
  ((props.column.decimals &&
699
694
  props.column.decimals > 0) ||
700
695
  props.column.group)) ||
@@ -1049,6 +1044,7 @@ function cellEvent(e, props, cellType, cellEventName) {
1049
1044
  }
1050
1045
  break;
1051
1046
  case FCellTypes.EDITOR:
1047
+ case FCellTypes.STRING:
1052
1048
  value = JSON.stringify(value).slice(1, -1);
1053
1049
  break;
1054
1050
  }
@@ -1,6 +1,6 @@
1
1
  import { h } from './index-c9246a86.js';
2
2
  import { F as FImage } from './f-image-9b15e9ac.js';
3
- import { b as KupThemeIconValues, h as KupLanguageGeneric } from './kup-manager-f8d8e705.js';
3
+ import { b as KupThemeIconValues, h as KupLanguageGeneric } from './kup-manager-3a2bce62.js';
4
4
 
5
5
  /**
6
6
  * Types of the f-chip component.
@@ -1,8 +1,8 @@
1
1
  import { h } from './index-c9246a86.js';
2
- import { a as KupComponentSizing, k as kupManagerInstance, c as KupDynamicPositionPlacement } from './kup-manager-f8d8e705.js';
2
+ import { a as KupComponentSizing, k as kupManagerInstance, c as KupDynamicPositionPlacement } from './kup-manager-3a2bce62.js';
3
3
  import { F as FButton } from './f-button-f1040575.js';
4
4
  import { a as FButtonStyling } from './f-button-declarations-6c8f8abe.js';
5
- import { F as FTextField } from './f-text-field-b4ff1e80.js';
5
+ import { F as FTextField } from './f-text-field-c6f94648.js';
6
6
 
7
7
  const STATE = new WeakMap();
8
8
  const FObjectField = (props) => {
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-c9246a86.js';
2
- import { au as KupLanguagePage, r as KupLanguageRow, a as KupComponentSizing, h as KupLanguageGeneric } from './kup-manager-f8d8e705.js';
2
+ import { au as KupLanguagePage, r as KupLanguageRow, a as KupComponentSizing, h as KupLanguageGeneric } from './kup-manager-3a2bce62.js';
3
3
  import { F as FButton } from './f-button-f1040575.js';
4
4
  import { a as FButtonStyling } from './f-button-declarations-6c8f8abe.js';
5
5
 
@@ -72,11 +72,12 @@ function getPageItems(props, maxNumberOfPage) {
72
72
  }
73
73
  function getRowsItems(props) {
74
74
  const rowsPerPageItems = [];
75
+ const max = Math.min(props.max, props.maxRowsPerPage);
75
76
  let i = props.perPage;
76
77
  if (i === 0) {
77
78
  return rowsPerPageItems;
78
79
  }
79
- while (i < props.max) {
80
+ while (i < max) {
80
81
  const selected = i == props.perPage;
81
82
  rowsPerPageItems.push({
82
83
  id: i.toString(),
@@ -85,11 +86,11 @@ function getRowsItems(props) {
85
86
  });
86
87
  i = i * 2;
87
88
  }
88
- const selected = props.max == props.perPage;
89
+ const selected = max == props.perPage;
89
90
  rowsPerPageItems.push({
90
- id: props.max.toString(),
91
+ id: max.toString(),
91
92
  selected: selected,
92
- value: props.max.toString(),
93
+ value: max.toString(),
93
94
  });
94
95
  return rowsPerPageItems;
95
96
  }
@@ -1,5 +1,5 @@
1
1
  import { h, g as getAssetPath } from './index-c9246a86.js';
2
- import { b as KupThemeIconValues } from './kup-manager-f8d8e705.js';
2
+ import { b as KupThemeIconValues } from './kup-manager-3a2bce62.js';
3
3
  import { F as FImage } from './f-image-9b15e9ac.js';
4
4
 
5
5
  const dom = document.documentElement;
@@ -132,6 +132,14 @@ function setContent(props) {
132
132
  };
133
133
  value = formatValue(value, options, false);
134
134
  }
135
+ if (props.textArea) {
136
+ try {
137
+ value = JSON.parse(`"${value}"`);
138
+ }
139
+ catch (e) {
140
+ value = JSON.parse(JSON.stringify(value));
141
+ }
142
+ }
135
143
  return (h("div", { class: classContainerObj },
136
144
  !props.fullWidth ? labelEl : undefined,
137
145
  h("div", { class: classObj },
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { K as KupManager } from './kup-manager-f8d8e705.js';
1
+ import { K as KupManager } from './kup-manager-3a2bce62.js';
2
2
  import './kup-dates-da19044e.js';
3
3
  import './index-c9246a86.js';
4
4