@owp/core 2.5.28 → 2.5.30

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 (137) hide show
  1. package/dist/_virtual/index20.js +2 -2
  2. package/dist/_virtual/index21.js +2 -2
  3. package/dist/_virtual/index22.js +2 -2
  4. package/dist/components/OwpTable/OwpDataTable.js +109 -104
  5. package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
  6. package/dist/components/OwpTable/OwpFieldTable.js +1 -1
  7. package/dist/components/OwpTable/OwpFieldTable.js.map +1 -1
  8. package/dist/components/OwpTreeGrid/OwpTreeGrid.js +1 -1
  9. package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
  10. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +475 -427
  11. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
  12. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +335 -288
  13. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
  14. package/dist/constants/gridTheme.js +8 -7
  15. package/dist/constants/gridTheme.js.map +1 -1
  16. package/dist/constants/treeGrid.js +26 -25
  17. package/dist/constants/treeGrid.js.map +1 -1
  18. package/dist/constants.js +25 -24
  19. package/dist/features/themePreview/components/ThemePreviewCanvasSections.js +120 -114
  20. package/dist/features/themePreview/components/ThemePreviewCanvasSections.js.map +1 -1
  21. package/dist/features/themePreview/configs/grid.js +1 -0
  22. package/dist/features/themePreview/configs/grid.js.map +1 -1
  23. package/dist/features/themePreview/utils/themePreviewDefinitions.js +4 -0
  24. package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +1 -1
  25. package/dist/index.js +54 -56
  26. package/dist/index.js.map +1 -1
  27. package/dist/layout/components/menus/PasswordChangeMenu.js +5 -5
  28. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/VisibilityOff.js.map +1 -1
  29. package/dist/node_modules/.pnpm/autosuggest-highlight@3.3.4/node_modules/autosuggest-highlight/match/index.js +1 -1
  30. package/dist/node_modules/.pnpm/autosuggest-highlight@3.3.4/node_modules/autosuggest-highlight/parse/index.js +1 -1
  31. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
  32. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
  33. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
  34. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
  35. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
  36. package/dist/owp-app.css +1 -1
  37. package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +2 -1
  38. package/dist/types/constants/gridTheme.d.ts +2 -0
  39. package/dist/types/constants/treeGrid.d.ts +1 -0
  40. package/dist/types/features/themePreview/configs/grid.d.ts +1 -0
  41. package/dist/types/features/themePreview/configs/settings.d.ts +1 -0
  42. package/dist/types/index.d.ts +0 -1
  43. package/dist/types/types/OwpGridThemeTypes.d.ts +1 -0
  44. package/dist/types/utils/treeGridUtil.d.ts +42 -0
  45. package/dist/utils/treeGridUtil.js +256 -163
  46. package/dist/utils/treeGridUtil.js.map +1 -1
  47. package/dist/utils.js +31 -30
  48. package/package.json +1 -2
  49. package/dist/components/OwpMrtTable/OwpMrtTable.js +0 -717
  50. package/dist/components/OwpMrtTable/OwpMrtTable.js.map +0 -1
  51. package/dist/components/OwpMrtTable/internal/OwpMrtTableNoDataOverlay.js +0 -54
  52. package/dist/components/OwpMrtTable/internal/OwpMrtTableNoDataOverlay.js.map +0 -1
  53. package/dist/components/OwpMrtTable/internal/OwpMrtTableTopToolbar.js +0 -102
  54. package/dist/components/OwpMrtTable/internal/OwpMrtTableTopToolbar.js.map +0 -1
  55. package/dist/components/OwpMrtTable/utils/parseFromValuesOrFunc.js +0 -7
  56. package/dist/components/OwpMrtTable/utils/parseFromValuesOrFunc.js.map +0 -1
  57. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ArrowDownward.js +0 -9
  58. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ArrowDownward.js.map +0 -1
  59. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ArrowDropDownRounded.js +0 -9
  60. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ArrowDropDownRounded.js.map +0 -1
  61. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ArrowRight.js +0 -9
  62. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ArrowRight.js.map +0 -1
  63. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Cancel.js +0 -9
  64. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Cancel.js.map +0 -1
  65. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ClearAll.js +0 -9
  66. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ClearAll.js.map +0 -1
  67. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ContentCopy.js +0 -9
  68. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ContentCopy.js.map +0 -1
  69. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DensityLarge.js +0 -9
  70. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DensityLarge.js.map +0 -1
  71. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DensityMedium.js +0 -9
  72. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DensityMedium.js.map +0 -1
  73. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DensitySmall.js +0 -9
  74. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DensitySmall.js.map +0 -1
  75. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DragHandle.js +0 -9
  76. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DragHandle.js.map +0 -1
  77. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DynamicFeed.js +0 -11
  78. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DynamicFeed.js.map +0 -1
  79. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Edit.js +0 -9
  80. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Edit.js.map +0 -1
  81. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ExpandMore.js +0 -9
  82. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ExpandMore.js.map +0 -1
  83. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FilterAlt.js +0 -9
  84. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FilterAlt.js.map +0 -1
  85. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FilterList.js +0 -9
  86. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FilterList.js.map +0 -1
  87. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FilterListOff.js +0 -9
  88. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FilterListOff.js.map +0 -1
  89. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FirstPage.js +0 -9
  90. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FirstPage.js.map +0 -1
  91. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Fullscreen.js +0 -9
  92. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Fullscreen.js.map +0 -1
  93. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FullscreenExit.js +0 -9
  94. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FullscreenExit.js.map +0 -1
  95. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/KeyboardDoubleArrowDown.js +0 -11
  96. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/KeyboardDoubleArrowDown.js.map +0 -1
  97. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/LastPage.js +0 -9
  98. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/LastPage.js.map +0 -1
  99. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/MoreHoriz.js +0 -9
  100. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/MoreHoriz.js.map +0 -1
  101. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/PushPin.js +0 -10
  102. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/PushPin.js.map +0 -1
  103. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Save.js +0 -9
  104. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Save.js.map +0 -1
  105. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SearchOff.js +0 -11
  106. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SearchOff.js.map +0 -1
  107. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Sort.js +0 -9
  108. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Sort.js.map +0 -1
  109. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SyncAlt.js +0 -9
  110. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SyncAlt.js.map +0 -1
  111. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/UnfoldMoreRounded.js +0 -9
  112. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/UnfoldMoreRounded.js.map +0 -1
  113. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ViewColumn.js +0 -9
  114. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ViewColumn.js.map +0 -1
  115. package/dist/node_modules/.pnpm/@tanstack_match-sorter-utils@8.19.4/node_modules/@tanstack/match-sorter-utils/build/lib/index.js +0 -554
  116. package/dist/node_modules/.pnpm/@tanstack_match-sorter-utils@8.19.4/node_modules/@tanstack/match-sorter-utils/build/lib/index.js.map +0 -1
  117. package/dist/node_modules/.pnpm/@tanstack_react-table@8.20.6_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@tanstack/react-table/build/lib/index.js +0 -95
  118. package/dist/node_modules/.pnpm/@tanstack_react-table@8.20.6_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@tanstack/react-table/build/lib/index.js.map +0 -1
  119. package/dist/node_modules/.pnpm/@tanstack_react-virtual@3.11.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@tanstack/react-virtual/dist/esm/index.js +0 -40
  120. package/dist/node_modules/.pnpm/@tanstack_react-virtual@3.11.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@tanstack/react-virtual/dist/esm/index.js.map +0 -1
  121. package/dist/node_modules/.pnpm/@tanstack_table-core@8.20.5/node_modules/@tanstack/table-core/build/lib/index.js +0 -2055
  122. package/dist/node_modules/.pnpm/@tanstack_table-core@8.20.5/node_modules/@tanstack/table-core/build/lib/index.js.map +0 -1
  123. package/dist/node_modules/.pnpm/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -454
  124. package/dist/node_modules/.pnpm/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/index.js.map +0 -1
  125. package/dist/node_modules/.pnpm/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -54
  126. package/dist/node_modules/.pnpm/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/utils.js.map +0 -1
  127. package/dist/node_modules/.pnpm/highlight-words@2.0.0/node_modules/highlight-words/dist/highlight-words.js +0 -92
  128. package/dist/node_modules/.pnpm/highlight-words@2.0.0/node_modules/highlight-words/dist/highlight-words.js.map +0 -1
  129. package/dist/node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/dist/index.esm.js +0 -2440
  130. package/dist/node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/dist/index.esm.js.map +0 -1
  131. package/dist/node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/locales/ko/index.esm.js +0 -98
  132. package/dist/node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/locales/ko/index.esm.js.map +0 -1
  133. package/dist/types/components/OwpMrtTable/OwpMrtTable.d.ts +0 -25
  134. package/dist/types/components/OwpMrtTable/index.d.ts +0 -1
  135. package/dist/types/components/OwpMrtTable/internal/OwpMrtTableNoDataOverlay.d.ts +0 -14
  136. package/dist/types/components/OwpMrtTable/internal/OwpMrtTableTopToolbar.d.ts +0 -6
  137. package/dist/types/components/OwpMrtTable/utils/parseFromValuesOrFunc.d.ts +0 -11
@@ -1,160 +1,217 @@
1
- var w = Object.defineProperty;
2
- var l = (t, e) => w(t, "name", { value: e, configurable: !0 });
3
- import { TREEGRID_CELL_CHANGED_CLASS as $, TREEGRID_CELL_HIGHLIGHT_COLOR as H } from "../constants/treeGrid.js";
4
- import { TREEGRID_INPUT_CELL_COLOR as Ne, TREEGRID_WARNING_CELL_COLOR as Pe } from "../constants/treeGrid.js";
5
- import { parseTreeGridXmlToJson as L } from "../components/OwpTreeGrid/internal/treeGridLayout.js";
6
- import { emitTreeGridBodyRowsChanged as C } from "./internal/treeGridBodyRowsEvent.js";
7
- import { isArray as h } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArray.js";
8
- import { lowerCase as x } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/string/lowerCase.js";
9
- import { isPlainObject as j } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isPlainObject.js";
10
- import { get as F } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
11
- import { omit as K } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/omit.js";
12
- import { isEmpty as D } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
13
- import { without as v } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/array/without.js";
14
- const N = ["Added", "Changed"], P = ["OWP", "IPX"], k = /^H{1,2}(?::m{1,2})?(?::s{1,2})?$/, _ = "__owpAddedByAddTreeGridRowById", m = "__owpAddedRowHighlightColumns", A = "__owpAddedRowInitialValueKeys", I = "__owpAddedRowBaselineValues", u = "__owpCellStyleBaselineValues", E = /* @__PURE__ */ l((t) => h(t) ? t.filter((e) => typeof e == "string" && e !== "") : [], "normalizeTreeGridStringValues"), y = E, z = /* @__PURE__ */ l((t) => {
15
- t && (t[_] = 1);
16
- }, "markTreeGridRowAddedById"), ye = /* @__PURE__ */ l((t) => {
17
- const e = t == null ? void 0 : t[_];
1
+ var z = Object.defineProperty;
2
+ var l = (t, e) => z(t, "name", { value: e, configurable: !0 });
3
+ import { TREEGRID_CELL_CHANGED_CLASS as N, TREEGRID_CELL_HIGHLIGHT_COLOR as q } from "../constants/treeGrid.js";
4
+ import { TREEGRID_INPUT_CELL_COLOR as nt, TREEGRID_WARNING_CELL_COLOR as st } from "../constants/treeGrid.js";
5
+ import { parseTreeGridXmlToJson as w } from "../components/OwpTreeGrid/internal/treeGridLayout.js";
6
+ import { emitTreeGridBodyRowsChanged as m } from "./internal/treeGridBodyRowsEvent.js";
7
+ import { isArray as y } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArray.js";
8
+ import { lowerCase as O } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/string/lowerCase.js";
9
+ import { isPlainObject as b } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isPlainObject.js";
10
+ import { get as P } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
11
+ import { omit as U } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/omit.js";
12
+ import { isEmpty as I } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
13
+ import { without as W } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/array/without.js";
14
+ const g = ["Added", "Changed"], M = ["OWP", "IPX"], Y = /^H{1,2}(?::m{1,2})?(?::s{1,2})?$/, S = "__owpAddedByAddTreeGridRowById", C = "__owpAddedRowHighlightColumns", B = "__owpAddedRowInitialValueKeys", V = "__owpAddedRowBaselineValues", T = "__owpCellStyleBaselineValues", X = /* @__PURE__ */ l(({
15
+ label: t
16
+ }) => `${t} 필수 입력`, "DEFAULT_TREE_GRID_REQUIRED_CELL_MESSAGE_FACTORY"), Q = [
17
+ "added"
18
+ ], h = /* @__PURE__ */ l((t) => y(t) ? t.filter((e) => typeof e == "string" && e !== "") : [], "normalizeTreeGridStringValues"), _ = h, J = /* @__PURE__ */ l((t) => {
19
+ t && (t[S] = 1);
20
+ }, "markTreeGridRowAddedById"), Z = /* @__PURE__ */ l((t) => {
21
+ const e = t == null ? void 0 : t[S];
18
22
  return !!t && e !== 0 && e !== !1 && e !== void 0;
19
- }, "isTreeGridRowAddedById"), he = /* @__PURE__ */ l((t, e) => {
23
+ }, "isTreeGridRowAddedById"), E = /* @__PURE__ */ l((t) => {
24
+ const e = t == null ? void 0 : t.Added;
25
+ return e === 1 || e === "1" || e === !0 || Z(t);
26
+ }, "isTreeGridAddedRow"), p = /* @__PURE__ */ l((t) => {
27
+ const e = t == null ? void 0 : t.Changed;
28
+ return !E(t) && (e === 1 || e === "1" || e === !0);
29
+ }, "isTreeGridChangedRow"), ee = /* @__PURE__ */ l((t) => {
30
+ const e = t == null ? void 0 : t.Deleted;
31
+ return e === 1 || e === "1" || e === !0;
32
+ }, "isTreeGridDeletedRow"), te = /* @__PURE__ */ l((t) => {
33
+ const e = y(t) ? t : t ? [t] : Q;
34
+ return e.includes("all") ? /* @__PURE__ */ new Set(["all"]) : new Set(
35
+ e.filter(
36
+ (r) => r === "added" || r === "changed"
37
+ )
38
+ );
39
+ }, "normalizeTreeGridRequiredCellTargetRows"), re = /* @__PURE__ */ l((t, e) => ee(t) ? !1 : e.has("all") ? t.Kind === "Data" || E(t) : e.has("added") && E(t) || e.has("changed") && p(t), "shouldValidateTreeGridRequiredCellRow"), ze = /* @__PURE__ */ l((t, e) => {
20
40
  if (!t || !e)
21
41
  return;
22
- const r = t, n = y(
23
- r[m]
42
+ const r = t, n = _(
43
+ r[C]
24
44
  );
25
- n.includes(e) || (r[m] = [...n, e]);
26
- }, "appendTreeGridAddedRowHighlightColumn"), De = /* @__PURE__ */ l((t, e) => {
45
+ n.includes(e) || (r[C] = [...n, e]);
46
+ }, "appendTreeGridAddedRowHighlightColumn"), Ne = /* @__PURE__ */ l((t, e) => {
27
47
  if (!t || !e)
28
48
  return;
29
- const r = t, s = y(
30
- r[m]
31
- ).filter((c) => c !== e);
49
+ const r = t, s = _(
50
+ r[C]
51
+ ).filter((a) => a !== e);
32
52
  if (s.length) {
33
- r[m] = s;
53
+ r[C] = s;
34
54
  return;
35
55
  }
36
- delete r[m];
37
- }, "removeTreeGridAddedRowHighlightColumn"), _e = /* @__PURE__ */ l((t) => y(
38
- t == null ? void 0 : t[m]
39
- ), "getTreeGridAddedRowHighlightColumns"), W = /* @__PURE__ */ l((t, e, r) => {
40
- var c, a, i, d, T;
41
- const n = ((c = t.GetType) == null ? void 0 : c.call(t, e, r)) || ((i = (a = t.Cols) == null ? void 0 : a[r]) == null ? void 0 : i.Type) || "", s = ((d = t.GetValue) == null ? void 0 : d.call(t, e, r)) ?? e[r];
56
+ delete r[C];
57
+ }, "removeTreeGridAddedRowHighlightColumn"), qe = /* @__PURE__ */ l((t) => _(
58
+ t == null ? void 0 : t[C]
59
+ ), "getTreeGridAddedRowHighlightColumns"), L = /* @__PURE__ */ l((t, e, r) => {
60
+ var a, i, d, c, f;
61
+ const n = ((a = t.GetType) == null ? void 0 : a.call(t, e, r)) || ((d = (i = t.Cols) == null ? void 0 : i[r]) == null ? void 0 : d.Type) || "", s = ((c = t.GetValue) == null ? void 0 : c.call(t, e, r)) ?? e[r];
42
62
  if (n === "Enum" || n === "Select")
43
63
  return s == null ? "" : `${s}`;
44
64
  try {
45
- const G = (T = t.GetString) == null ? void 0 : T.call(t, e, r);
46
- if (G != null)
47
- return `${G}`;
65
+ const o = (f = t.GetString) == null ? void 0 : f.call(t, e, r);
66
+ if (o != null)
67
+ return `${o}`;
48
68
  } catch {
49
69
  }
50
70
  return s == null ? "" : `${s}`;
51
- }, "getTreeGridCellComparableValue"), U = /* @__PURE__ */ l((t, e) => {
71
+ }, "getTreeGridCellComparableValue"), ne = /* @__PURE__ */ l((t, e) => {
52
72
  const r = Object.fromEntries(
53
73
  Object.keys(t.Cols ?? {}).map((n) => [
54
74
  n,
55
- W(t, e, n)
75
+ L(t, e, n)
56
76
  ])
57
77
  );
58
- e[I] = r;
59
- }, "markTreeGridAddedRowBaselineValues"), Ae = /* @__PURE__ */ l((t, e) => {
78
+ e[V] = r;
79
+ }, "markTreeGridAddedRowBaselineValues"), we = /* @__PURE__ */ l((t, e) => {
60
80
  var r;
61
- return (r = t == null ? void 0 : t[I]) == null ? void 0 : r[e];
62
- }, "getTreeGridAddedRowBaselineValue"), O = /* @__PURE__ */ l((t, e, r) => {
81
+ return (r = t == null ? void 0 : t[V]) == null ? void 0 : r[e];
82
+ }, "getTreeGridAddedRowBaselineValue"), se = /* @__PURE__ */ l((t, e, r) => {
63
83
  var s;
64
84
  const n = e;
65
- n[u] ?? (n[u] = {}), !((s = n[u]) != null && s[r]) && (n[u][r] = {
85
+ n[T] ?? (n[T] = {}), !((s = n[T]) != null && s[r]) && (n[T][r] = {
66
86
  className: t.GetAttribute(e, r, "Class"),
67
87
  color: t.GetAttribute(e, r, "Color")
68
88
  });
69
- }, "preserveTreeGridCellStyleBaseline"), X = /* @__PURE__ */ l((t, e) => {
89
+ }, "preserveTreeGridCellStyleBaseline"), le = /* @__PURE__ */ l((t, e) => {
70
90
  var r;
71
- return (r = t[u]) == null ? void 0 : r[e];
72
- }, "getTreeGridCellStyleBaseline"), Y = /* @__PURE__ */ l(async () => {
91
+ return (r = t[T]) == null ? void 0 : r[e];
92
+ }, "getTreeGridCellStyleBaseline"), ae = /* @__PURE__ */ l(async () => {
73
93
  const { exportTreeGridExcel: t } = await import("./treeGridExportExcelUtil.js");
74
94
  return t;
75
- }, "loadExportTreeGridExcel"), M = /* @__PURE__ */ l((t) => Object.values((t == null ? void 0 : t.Rows) ?? {}).filter((e) => e.Kind === "Data"), "getDataRows"), f = /* @__PURE__ */ l((t) => typeof t == "string" && k.test(t.trim()), "isTreeGridTimeDateFormat"), b = /* @__PURE__ */ l((t, e, r) => {
76
- var c;
77
- const n = e, s = (c = t.Cols) == null ? void 0 : c[r];
78
- return (s == null ? void 0 : s.Type) === "Date" && (f(n[`${r}EditFormat`]) || f(n[`${r}Format`]) || f(s.EditFormat) || f(s.Format));
79
- }, "isTreeGridTimeDateColumn"), S = /* @__PURE__ */ l((t, e, r) => {
95
+ }, "loadExportTreeGridExcel"), ie = /* @__PURE__ */ l((t) => Object.values((t == null ? void 0 : t.Rows) ?? {}).filter((e) => e.Kind === "Data"), "getDataRows"), ce = /* @__PURE__ */ l((t) => t != null && t.length ? t.map((e) => {
96
+ if (typeof e == "string") {
97
+ const n = e.trim();
98
+ return n ? { key: n } : null;
99
+ }
100
+ if (!b(e) || typeof e.key != "string")
101
+ return null;
102
+ const r = e.key.trim();
103
+ return r ? {
104
+ key: r,
105
+ label: typeof e.label == "string" ? e.label.trim() : void 0,
106
+ message: typeof e.message == "string" ? e.message : void 0
107
+ } : null;
108
+ }).filter((e) => !!e) : [], "normalizeTreeGridRequiredCellColumns"), k = /* @__PURE__ */ l((t, e, r) => {
109
+ var s;
110
+ const n = (s = t.CanEdit) == null ? void 0 : s.call(t, e, r);
111
+ return n === 1 || n === "1" || n === !0;
112
+ }, "isTreeGridEditableCell"), de = /* @__PURE__ */ l((t, e, r) => {
113
+ const n = ce(r.columns);
114
+ return n.length ? n.filter((s) => {
115
+ var a;
116
+ return !!((a = t.Cols) != null && a[s.key]);
117
+ }) : r.editableOnly ? Object.keys(t.Cols ?? {}).filter((s) => x(t, s) && k(t, e, s)).map((s) => ({ key: s })) : [];
118
+ }, "getTreeGridRequiredCellColumns"), ue = /* @__PURE__ */ l((t, e) => {
119
+ var n, s, a;
120
+ if (e.label)
121
+ return e.label;
122
+ try {
123
+ const i = (n = t.GetCaption) == null ? void 0 : n.call(t, e.key);
124
+ if (i)
125
+ return `${i}`.trim();
126
+ } catch {
127
+ }
128
+ const r = (a = (s = t.Cols) == null ? void 0 : s[e.key]) == null ? void 0 : a.Caption;
129
+ return r ? `${r}`.trim() : e.key;
130
+ }, "getTreeGridRequiredCellLabel"), oe = /* @__PURE__ */ l((t, e, r) => e.message ? e.message : (r ?? X)(t), "getTreeGridRequiredCellMessage"), fe = /* @__PURE__ */ l((t) => t.trim() === "", "isBlankTreeGridRequiredCellValue"), Re = /* @__PURE__ */ l((t, e, r) => {
131
+ !e || r.focusFirstError === !1 || (t.Focus(e.row, e.col), r.startEditFirstError !== !1 && k(t, e.row, e.col) && t.StartEdit(e.row, e.col));
132
+ }, "focusFirstTreeGridRequiredCellError"), G = /* @__PURE__ */ l((t) => typeof t == "string" && Y.test(t.trim()), "isTreeGridTimeDateFormat"), F = /* @__PURE__ */ l((t, e, r) => {
133
+ var a;
134
+ const n = e, s = (a = t.Cols) == null ? void 0 : a[r];
135
+ return (s == null ? void 0 : s.Type) === "Date" && (G(n[`${r}EditFormat`]) || G(n[`${r}Format`]) || G(s.EditFormat) || G(s.Format));
136
+ }, "isTreeGridTimeDateColumn"), $ = /* @__PURE__ */ l((t, e, r) => {
80
137
  var s;
81
138
  const n = e[r];
82
139
  try {
83
- const c = (s = t.GetString) == null ? void 0 : s.call(t, e, r);
84
- if (c != null && `${c}` != "")
85
- return `${c}`;
140
+ const a = (s = t.GetString) == null ? void 0 : s.call(t, e, r);
141
+ if (a != null && `${a}` != "")
142
+ return `${a}`;
86
143
  } catch {
87
144
  }
88
145
  return n == null ? "" : `${n}`;
89
- }, "getTreeGridTimeDateDisplayValue"), J = /* @__PURE__ */ l((t, e) => {
146
+ }, "getTreeGridTimeDateDisplayValue"), Te = /* @__PURE__ */ l((t, e) => {
90
147
  const r = { ...e };
91
148
  return Object.keys(t.Cols ?? {}).forEach((n) => {
92
- b(t, e, n) && (r[n] = S(t, e, n));
149
+ F(t, e, n) && (r[n] = $(t, e, n));
93
150
  }), r;
94
- }, "normalizeTreeGridExternalRow"), B = /* @__PURE__ */ l((t, e) => e.map((r) => J(t, r)), "normalizeTreeGridExternalRows"), g = /* @__PURE__ */ l((t, e) => {
151
+ }, "normalizeTreeGridExternalRow"), v = /* @__PURE__ */ l((t, e) => e.map((r) => Te(t, r)), "normalizeTreeGridExternalRows"), Ce = /* @__PURE__ */ l((t, e) => {
95
152
  const r = (e == null ? void 0 : e.insertPosition) ?? "top", n = e == null ? void 0 : e.parent, s = e == null ? void 0 : e.anchorRow;
96
- let c = n ?? (s ? s.parentNode : null) ?? t.GetFirst(), a = null;
153
+ let a = n ?? (s ? s.parentNode : null) ?? t.GetFirst(), i = null;
97
154
  switch (r) {
98
155
  case "top":
99
- a = t.GetFirst();
156
+ i = t.GetFirst();
100
157
  break;
101
158
  case "last":
102
- c = t.GetNext(t.GetLast(), t.RowCount > 0 ? t.RowCount + 1 : 0), a = c;
159
+ a = t.GetNext(t.GetLast(), t.RowCount > 0 ? t.RowCount + 1 : 0), i = a;
103
160
  break;
104
161
  case "above":
105
- a = s ?? t.GetFirst();
162
+ i = s ?? t.GetFirst();
106
163
  break;
107
164
  case "below":
108
- a = (s == null ? void 0 : s.nextSibling) ?? t.GetFirst();
165
+ i = (s == null ? void 0 : s.nextSibling) ?? t.GetFirst();
109
166
  break;
110
167
  }
111
- return { resolvedParent: c, next: a };
112
- }, "resolveRowInsertionTarget"), q = /* @__PURE__ */ l((t, e, r) => {
113
- if (!j(r))
168
+ return { resolvedParent: a, next: i };
169
+ }, "resolveRowInsertionTarget"), Ge = /* @__PURE__ */ l((t, e, r) => {
170
+ if (!b(r))
114
171
  return;
115
172
  const n = Object.keys(r).filter(Boolean);
116
- e[A] = n, Object.entries(r).forEach(([s, c]) => {
117
- var a, i;
118
- if (((i = (a = t.Cols) == null ? void 0 : a[s]) == null ? void 0 : i.Type) === "Date" && typeof c == "string") {
119
- t.SetString(e, s, c, 0);
173
+ e[B] = n, Object.entries(r).forEach(([s, a]) => {
174
+ var i, d;
175
+ if (((d = (i = t.Cols) == null ? void 0 : i[s]) == null ? void 0 : d.Type) === "Date" && typeof a == "string") {
176
+ t.SetString(e, s, a, 0);
120
177
  return;
121
178
  }
122
- e[s] = c;
179
+ e[s] = a;
123
180
  });
124
- }, "assignInitialRowValues"), Q = /* @__PURE__ */ l((t, e, r) => {
125
- const n = E(r);
181
+ }, "assignInitialRowValues"), Ee = /* @__PURE__ */ l((t, e, r) => {
182
+ const n = h(r);
126
183
  if (!n.length)
127
184
  return;
128
185
  const s = e;
129
- n.forEach((c) => {
130
- var a;
131
- (a = t.Cols) != null && a[c] && (s[`${c}CanEdit`] = 1);
186
+ n.forEach((a) => {
187
+ var i;
188
+ (i = t.Cols) != null && i[a] && (s[`${a}CanEdit`] = 1);
132
189
  });
133
- }, "assignEditableAddedRowColumns"), Z = /* @__PURE__ */ l((t) => P.some((e) => t.startsWith(e)), "isTreeGridDataKey"), p = /* @__PURE__ */ l((t) => t === 0 || t === !1 || t === "0", "isHiddenTreeGridValue"), ee = /* @__PURE__ */ l((t, e) => {
190
+ }, "assignEditableAddedRowColumns"), me = /* @__PURE__ */ l((t) => M.some((e) => t.startsWith(e)), "isTreeGridDataKey"), ye = /* @__PURE__ */ l((t) => t === 0 || t === !1 || t === "0", "isHiddenTreeGridValue"), x = /* @__PURE__ */ l((t, e) => {
134
191
  var r, n;
135
- return !p((n = (r = t == null ? void 0 : t.Cols) == null ? void 0 : r[e]) == null ? void 0 : n.Visible);
136
- }, "isVisibleTreeGridColumn"), te = /* @__PURE__ */ l((t, e) => E(
137
- t == null ? void 0 : t[A]
138
- ).includes(e), "isTreeGridAddedRowInitialValueKey"), re = /* @__PURE__ */ l((t, e) => {
192
+ return !ye((n = (r = t == null ? void 0 : t.Cols) == null ? void 0 : r[e]) == null ? void 0 : n.Visible);
193
+ }, "isVisibleTreeGridColumn"), he = /* @__PURE__ */ l((t, e) => h(
194
+ t == null ? void 0 : t[B]
195
+ ).includes(e), "isTreeGridAddedRowInitialValueKey"), _e = /* @__PURE__ */ l((t, e) => {
139
196
  var r;
140
197
  return typeof e.id == "string" ? (r = t == null ? void 0 : t.Rows) == null ? void 0 : r[e.id] : null;
141
- }, "getLiveTreeGridChangedRow"), ne = /* @__PURE__ */ l((t, e, r) => !Z(r) || D(e[r]) ? !1 : ee(t, r) ? !0 : te(re(t, e), r), "shouldIncludeAddedRowDataKey"), se = /* @__PURE__ */ l((t, e) => Object.fromEntries(
142
- v(Object.keys(e), "id").filter((r) => ne(t, e, r)).map((r) => [r, e[r]])
143
- ), "normalizeAddedRow"), le = /* @__PURE__ */ l((t, e, r) => e.filter((n) => F(n, r) === "1" && n.Deleted !== "1").map(
144
- (n) => r === "Changed" ? K(n, ["id", "Changed"]) : se(t, n)
145
- ).filter((n) => !D(n)), "getChangedRowsByStatus"), ce = /* @__PURE__ */ l((t, e) => t ? e.map((r) => {
198
+ }, "getLiveTreeGridChangedRow"), De = /* @__PURE__ */ l((t, e, r) => !me(r) || I(e[r]) ? !1 : x(t, r) ? !0 : he(_e(t, e), r), "shouldIncludeAddedRowDataKey"), Ae = /* @__PURE__ */ l((t, e) => Object.fromEntries(
199
+ W(Object.keys(e), "id").filter((r) => De(t, e, r)).map((r) => [r, e[r]])
200
+ ), "normalizeAddedRow"), be = /* @__PURE__ */ l((t, e, r) => e.filter((n) => P(n, r) === "1" && n.Deleted !== "1").map(
201
+ (n) => r === "Changed" ? U(n, ["id", "Changed"]) : Ae(t, n)
202
+ ).filter((n) => !I(n)), "getChangedRowsByStatus"), Ie = /* @__PURE__ */ l((t, e) => t ? e.map((r) => {
146
203
  const n = typeof r.id == "string" ? t.Rows[r.id] : null;
147
204
  if (!n)
148
205
  return r;
149
206
  const s = { ...r };
150
- return Object.keys(r).forEach((c) => {
151
- b(t, n, c) && (s[c] = S(t, n, c));
207
+ return Object.keys(r).forEach((a) => {
208
+ F(t, n, a) && (s[a] = $(t, n, a));
152
209
  }), s;
153
- }) : e, "normalizeTreeGridChangedRows"), o = /* @__PURE__ */ l((t) => Grids[t], "getTreeGridById"), Ie = /* @__PURE__ */ l((t) => {
154
- const e = o(t);
155
- return e ? B(e, M(e)) : [];
156
- }, "getTreeGridDataRowsById"), be = /* @__PURE__ */ l((t, e) => {
157
- const r = o(t);
210
+ }) : e, "normalizeTreeGridChangedRows"), u = /* @__PURE__ */ l((t) => Grids[t], "getTreeGridById"), Oe = /* @__PURE__ */ l((t) => {
211
+ const e = u(t);
212
+ return e ? v(e, ie(e)) : [];
213
+ }, "getTreeGridDataRowsById"), Pe = /* @__PURE__ */ l((t, e) => {
214
+ const r = u(t);
158
215
  if (!r)
159
216
  return;
160
217
  const n = r.Data.Data;
@@ -163,38 +220,73 @@ const N = ["Added", "Changed"], P = ["OWP", "IPX"], k = /^H{1,2}(?::m{1,2})?(?::
163
220
  Data: { Body: [e || []] },
164
221
  Url: ""
165
222
  }, r.ReloadBody(), window.setTimeout(() => {
166
- C(t);
223
+ m(t);
167
224
  }, 0);
168
- }, "reloadTreeGridBodyById"), Se = /* @__PURE__ */ l((t, e) => {
169
- const r = o(t);
225
+ }, "reloadTreeGridBodyById"), Ue = /* @__PURE__ */ l((t, e) => {
226
+ const r = u(t);
170
227
  if (!r)
171
228
  return;
172
- const n = e == null ? void 0 : e.canSelect, s = e == null ? void 0 : e.initialValues, c = e == null ? void 0 : e.editableColumns, { resolvedParent: a, next: i } = g(r, e), d = r.AddRow(a, i, 1);
173
- z(d), q(r, d, s), U(r, d), d.CanEdit = 1, d.CanDelete = 1, d.CanSelect = n ? 1 : 0, Q(r, d, c), r.Focus(d), r.RefreshRow(d), window.setTimeout(() => {
174
- C(t);
229
+ const n = e == null ? void 0 : e.canSelect, s = e == null ? void 0 : e.initialValues, a = e == null ? void 0 : e.editableColumns, { resolvedParent: i, next: d } = Ce(r, e), c = r.AddRow(i, d, 1);
230
+ J(c), Ge(r, c, s), ne(r, c), c.CanEdit = 1, c.CanDelete = 1, c.CanSelect = n ? 1 : 0, Ee(r, c, a), r.Focus(c), r.RefreshRow(c), r.Calculate(1, 1), window.setTimeout(() => {
231
+ m(t);
175
232
  }, 0);
176
- }, "addTreeGridRowById"), Be = /* @__PURE__ */ l((t) => {
177
- const e = o(t), r = L(e == null ? void 0 : e.GetXmlData("changes,allcols,nogrid,noio"));
178
- return h(r) ? Object.fromEntries(
179
- N.map((n) => [
180
- x(n),
181
- le(
233
+ }, "addTreeGridRowById"), We = /* @__PURE__ */ l((t, e) => {
234
+ const r = u(t);
235
+ if (!r)
236
+ return { valid: !1, errors: [] };
237
+ const n = te(e.targetRows), s = Object.values(r.Rows ?? {}).filter(
238
+ (c) => re(c, n)
239
+ ), a = [], i = e.refresh === !1 ? 0 : 1;
240
+ s.forEach((c) => {
241
+ de(r, c, e).forEach((f) => {
242
+ const o = f.key, R = L(r, c, o), j = ue(r, f), D = {
243
+ grid: r,
244
+ row: c,
245
+ col: o,
246
+ key: o,
247
+ label: j,
248
+ value: R
249
+ };
250
+ if (!fe(R)) {
251
+ r.SetAttribute(c, o, "Error", "", i);
252
+ return;
253
+ }
254
+ const A = oe(
255
+ D,
256
+ f,
257
+ e.messageFactory
258
+ ), K = { ...D, message: A };
259
+ r.SetAttribute(c, o, "Error", A, i), a.push(K);
260
+ });
261
+ });
262
+ const d = a[0];
263
+ return Re(r, d, e), {
264
+ valid: !d,
265
+ errors: a,
266
+ firstError: d
267
+ };
268
+ }, "validateTreeGridRequiredCellsById"), ge = /* @__PURE__ */ l((t) => {
269
+ const e = u(t), r = w(e == null ? void 0 : e.GetXmlData("changes,allcols,nogrid,noio"));
270
+ return y(r) ? Object.fromEntries(
271
+ g.map((n) => [
272
+ O(n),
273
+ be(
182
274
  e,
183
- ce(e, r),
275
+ Ie(e, r),
184
276
  n
185
277
  )
186
278
  ])
187
279
  ) : { added: [], changed: [] };
188
- }, "getTreeGridRowChangesById"), Ve = /* @__PURE__ */ l((t, e) => {
189
- const r = o(t);
190
- r && Y().then(
280
+ }, "getTreeGridRowChangesById"), Me = /* @__PURE__ */ l((t, e) => {
281
+ const r = u(t);
282
+ r && ae().then(
191
283
  (n) => n(r, { exportName: e ?? "" })
192
284
  );
193
- }, "exportTreeGridToExcelById"), we = /* @__PURE__ */ l((t) => {
194
- const e = o(t), r = e == null ? void 0 : e.GetSelRows();
195
- return e && r ? B(e, r) : [];
196
- }, "getTreeGridSelectedRowsById"), $e = /* @__PURE__ */ l((t, e) => {
197
- const r = o(t);
285
+ }, "exportTreeGridToExcelById"), Ye = /* @__PURE__ */ l((t) => {
286
+ const e = u(t), r = e == null ? void 0 : e.GetSelRows();
287
+ return e && r ? v(e, r) : [];
288
+ }, "getTreeGridSelectedRowsById"), Xe = /* @__PURE__ */ l((t, e) => {
289
+ const r = u(t);
198
290
  if (!r || !(e != null && e.targetKey))
199
291
  return;
200
292
  const n = e == null ? void 0 : e.targetKey;
@@ -203,65 +295,66 @@ const N = ["Added", "Changed"], P = ["OWP", "IPX"], k = /^H{1,2}(?::m{1,2})?(?::
203
295
  return;
204
296
  }
205
297
  r.HideCol(n);
206
- }, "setTreeGridColumnVisibilityById"), He = /* @__PURE__ */ l((t, e) => {
207
- const r = o(t), n = e == null ? void 0 : e.row, s = e == null ? void 0 : e.col;
208
- !r || !n || !s || (O(r, n, s), r.SetValue(n, `${s}Class`, $), r.SetValue(n, `${s}Color`, e.backgroundColor ?? H), e.refresh !== !1 && r.RefreshCell(n, s));
209
- }, "highlightTreeGridCellById"), Le = /* @__PURE__ */ l((t, e) => {
210
- const r = o(t), n = e == null ? void 0 : e.row, s = e == null ? void 0 : e.col;
298
+ }, "setTreeGridColumnVisibilityById"), Qe = /* @__PURE__ */ l((t, e) => {
299
+ const r = u(t), n = e == null ? void 0 : e.row, s = e == null ? void 0 : e.col;
300
+ !r || !n || !s || (se(r, n, s), r.SetValue(n, `${s}Class`, N), r.SetValue(n, `${s}Color`, e.backgroundColor ?? q), e.refresh !== !1 && r.RefreshCell(n, s));
301
+ }, "highlightTreeGridCellById"), Je = /* @__PURE__ */ l((t, e) => {
302
+ const r = u(t), n = e == null ? void 0 : e.row, s = e == null ? void 0 : e.col;
211
303
  if (!r || !n || !s)
212
304
  return;
213
- const c = X(n, s);
214
- r.SetValue(n, `${s}Class`, (c == null ? void 0 : c.className) ?? ""), r.SetValue(n, `${s}Color`, (c == null ? void 0 : c.color) ?? ""), r.RefreshCell(n, s);
215
- }, "clearTreeGridCellHighlightById"), V = /* @__PURE__ */ l((t) => {
216
- const e = o(t);
305
+ const a = le(n, s);
306
+ r.SetValue(n, `${s}Class`, (a == null ? void 0 : a.className) ?? ""), r.SetValue(n, `${s}Color`, (a == null ? void 0 : a.color) ?? ""), r.RefreshCell(n, s);
307
+ }, "clearTreeGridCellHighlightById"), H = /* @__PURE__ */ l((t) => {
308
+ const e = u(t);
217
309
  e && e.ActionDeselectAll(1, 0);
218
- }, "resetTreeGridSelectionById"), xe = /* @__PURE__ */ l((t) => {
219
- t.forEach(V);
220
- }, "resetTreeGridSelectionsByIds"), ae = /* @__PURE__ */ l((t) => {
221
- const e = o(t);
222
- e && (e.ActionUndoAll(1, 0), V(t), window.setTimeout(() => {
223
- C(t);
310
+ }, "resetTreeGridSelectionById"), Ze = /* @__PURE__ */ l((t) => {
311
+ t.forEach(H);
312
+ }, "resetTreeGridSelectionsByIds"), Se = /* @__PURE__ */ l((t) => {
313
+ const e = u(t);
314
+ e && (e.ActionUndoAll(1, 0), H(t), e.Calculate(1, 1), window.setTimeout(() => {
315
+ m(t);
224
316
  }, 0));
225
- }, "resetTreeGridChangesById"), je = /* @__PURE__ */ l((t) => {
226
- t.forEach(ae);
227
- }, "resetTreeGridChangesByIds"), Fe = /* @__PURE__ */ l((t, e, r, n, s) => {
317
+ }, "resetTreeGridChangesById"), pe = /* @__PURE__ */ l((t) => {
318
+ t.forEach(Se);
319
+ }, "resetTreeGridChangesByIds"), et = /* @__PURE__ */ l((t, e, r, n, s) => {
228
320
  if (!(r != null && r.length))
229
321
  return;
230
- const c = o(t);
231
- if (!c)
322
+ const a = u(t);
323
+ if (!a)
232
324
  return;
233
- const a = r.map((d) => {
234
- const T = d;
235
- return `${s.map((R) => T[R]).find((R) => R != null && R !== "") ?? ""}`;
236
- }).join("|"), i = r.map((d) => `${d[n] ?? ""}`).join("|");
237
- c.SetAttribute(null, e, "Type", "Enum", 0, 0), c.SetAttribute(null, e, "Enum", `|${a}`, 0, 0), c.SetAttribute(null, e, "EnumKeys", `|${i}`, 1, 0);
325
+ const i = r.map((c) => {
326
+ const f = c;
327
+ return `${s.map((R) => f[R]).find((R) => R != null && R !== "") ?? ""}`;
328
+ }).join("|"), d = r.map((c) => `${c[n] ?? ""}`).join("|");
329
+ a.SetAttribute(null, e, "Type", "Enum", 0, 0), a.SetAttribute(null, e, "Enum", `|${i}`, 0, 0), a.SetAttribute(null, e, "EnumKeys", `|${d}`, 1, 0);
238
330
  }, "setTreeGridColumnEnumOptionsById");
239
331
  export {
240
- $ as TREEGRID_CELL_CHANGED_CLASS,
241
- H as TREEGRID_CELL_HIGHLIGHT_COLOR,
242
- Ne as TREEGRID_INPUT_CELL_COLOR,
243
- Pe as TREEGRID_WARNING_CELL_COLOR,
244
- Se as addTreeGridRowById,
245
- he as appendTreeGridAddedRowHighlightColumn,
246
- Le as clearTreeGridCellHighlightById,
247
- Ve as exportTreeGridToExcelById,
248
- Ae as getTreeGridAddedRowBaselineValue,
249
- _e as getTreeGridAddedRowHighlightColumns,
250
- o as getTreeGridById,
251
- W as getTreeGridCellComparableValue,
252
- Ie as getTreeGridDataRowsById,
253
- Be as getTreeGridRowChangesById,
254
- we as getTreeGridSelectedRowsById,
255
- He as highlightTreeGridCellById,
256
- ye as isTreeGridRowAddedById,
257
- B as normalizeTreeGridExternalRows,
258
- be as reloadTreeGridBodyById,
259
- De as removeTreeGridAddedRowHighlightColumn,
260
- ae as resetTreeGridChangesById,
261
- je as resetTreeGridChangesByIds,
262
- V as resetTreeGridSelectionById,
263
- xe as resetTreeGridSelectionsByIds,
264
- Fe as setTreeGridColumnEnumOptionsById,
265
- $e as setTreeGridColumnVisibilityById
332
+ N as TREEGRID_CELL_CHANGED_CLASS,
333
+ q as TREEGRID_CELL_HIGHLIGHT_COLOR,
334
+ nt as TREEGRID_INPUT_CELL_COLOR,
335
+ st as TREEGRID_WARNING_CELL_COLOR,
336
+ Ue as addTreeGridRowById,
337
+ ze as appendTreeGridAddedRowHighlightColumn,
338
+ Je as clearTreeGridCellHighlightById,
339
+ Me as exportTreeGridToExcelById,
340
+ we as getTreeGridAddedRowBaselineValue,
341
+ qe as getTreeGridAddedRowHighlightColumns,
342
+ u as getTreeGridById,
343
+ L as getTreeGridCellComparableValue,
344
+ Oe as getTreeGridDataRowsById,
345
+ ge as getTreeGridRowChangesById,
346
+ Ye as getTreeGridSelectedRowsById,
347
+ Qe as highlightTreeGridCellById,
348
+ Z as isTreeGridRowAddedById,
349
+ v as normalizeTreeGridExternalRows,
350
+ Pe as reloadTreeGridBodyById,
351
+ Ne as removeTreeGridAddedRowHighlightColumn,
352
+ Se as resetTreeGridChangesById,
353
+ pe as resetTreeGridChangesByIds,
354
+ H as resetTreeGridSelectionById,
355
+ Ze as resetTreeGridSelectionsByIds,
356
+ et as setTreeGridColumnEnumOptionsById,
357
+ Xe as setTreeGridColumnVisibilityById,
358
+ We as validateTreeGridRequiredCellsById
266
359
  };
267
360
  //# sourceMappingURL=treeGridUtil.js.map