@owp/core 2.5.27 → 2.5.29

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 (132) hide show
  1. package/dist/components/OwpTable/OwpDataTable.js +151 -156
  2. package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
  3. package/dist/components/OwpTable/OwpFieldTable.js +1 -1
  4. package/dist/components/OwpTable/OwpFieldTable.js.map +1 -1
  5. package/dist/components/OwpTable/internal/OwpTableTotalCount.js +23 -16
  6. package/dist/components/OwpTable/internal/OwpTableTotalCount.js.map +1 -1
  7. package/dist/components/OwpTable/internal/treeGridTableStyle.js +29 -28
  8. package/dist/components/OwpTable/internal/treeGridTableStyle.js.map +1 -1
  9. package/dist/components/OwpTable/utils/tableSx.js +11 -10
  10. package/dist/components/OwpTable/utils/tableSx.js.map +1 -1
  11. package/dist/components/OwpTreeGrid/OwpTreeGrid.js +297 -265
  12. package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
  13. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js +310 -291
  14. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js.map +1 -1
  15. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +986 -485
  16. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
  17. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +360 -224
  18. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
  19. package/dist/features/themePreview/defs/ThemePreviewGridDef.xml.js +1 -1
  20. package/dist/features/themePreview/defs/ThemePreviewGridDef.xml.js.map +1 -1
  21. package/dist/features/themePreview/defs/ThemePreviewReadonlyGridDef.xml.js +1 -1
  22. package/dist/features/themePreview/defs/ThemePreviewReadonlyGridDef.xml.js.map +1 -1
  23. package/dist/index.js +54 -56
  24. package/dist/index.js.map +1 -1
  25. package/dist/layout/components/menus/PasswordChangeMenu.js +5 -5
  26. 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
  27. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
  28. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
  29. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
  30. package/dist/owp-app.css +1 -1
  31. package/dist/types/components/OwpTable/internal/OwpTableTotalCount.d.ts +11 -4
  32. package/dist/types/components/OwpTable/internal/treeGridTableStyle.d.ts +5 -0
  33. package/dist/types/components/OwpTable/utils/tableSx.d.ts +15 -0
  34. package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +11 -1
  35. package/dist/types/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.d.ts +5 -2
  36. package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +14 -4
  37. package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +1 -0
  38. package/dist/types/index.d.ts +0 -1
  39. package/dist/types/utils/treeGridUtil.d.ts +4 -0
  40. package/dist/utils/treeGridUtil.js +161 -152
  41. package/dist/utils/treeGridUtil.js.map +1 -1
  42. package/package.json +1 -2
  43. package/treegrid/TextKR.xml +1 -1
  44. package/dist/components/OwpMrtTable/OwpMrtTable.js +0 -670
  45. package/dist/components/OwpMrtTable/OwpMrtTable.js.map +0 -1
  46. package/dist/components/OwpMrtTable/internal/OwpMrtTableNoDataOverlay.js +0 -54
  47. package/dist/components/OwpMrtTable/internal/OwpMrtTableNoDataOverlay.js.map +0 -1
  48. package/dist/components/OwpMrtTable/internal/OwpMrtTableTopToolbar.js +0 -102
  49. package/dist/components/OwpMrtTable/internal/OwpMrtTableTopToolbar.js.map +0 -1
  50. package/dist/components/OwpMrtTable/utils/parseFromValuesOrFunc.js +0 -7
  51. package/dist/components/OwpMrtTable/utils/parseFromValuesOrFunc.js.map +0 -1
  52. 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
  53. 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
  54. 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
  55. 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
  56. 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
  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/ArrowRight.js.map +0 -1
  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/Cancel.js +0 -9
  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/Cancel.js.map +0 -1
  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/ClearAll.js +0 -9
  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/ClearAll.js.map +0 -1
  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/ContentCopy.js +0 -9
  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/ContentCopy.js.map +0 -1
  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/DensityLarge.js +0 -9
  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/DensityLarge.js.map +0 -1
  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/DensityMedium.js +0 -9
  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/DensityMedium.js.map +0 -1
  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/DensitySmall.js +0 -9
  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/DensitySmall.js.map +0 -1
  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/DragHandle.js +0 -9
  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/DragHandle.js.map +0 -1
  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/DynamicFeed.js +0 -11
  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/DynamicFeed.js.map +0 -1
  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/Edit.js +0 -9
  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/Edit.js.map +0 -1
  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/ExpandMore.js +0 -9
  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/ExpandMore.js.map +0 -1
  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/FilterAlt.js +0 -9
  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/FilterAlt.js.map +0 -1
  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/FilterList.js +0 -9
  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/FilterList.js.map +0 -1
  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/FilterListOff.js +0 -9
  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/FilterListOff.js.map +0 -1
  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/FirstPage.js +0 -9
  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/FirstPage.js.map +0 -1
  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/Fullscreen.js +0 -9
  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/Fullscreen.js.map +0 -1
  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/FullscreenExit.js +0 -9
  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/FullscreenExit.js.map +0 -1
  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/KeyboardDoubleArrowDown.js +0 -11
  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/KeyboardDoubleArrowDown.js.map +0 -1
  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/LastPage.js +0 -9
  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/LastPage.js.map +0 -1
  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/MoreHoriz.js +0 -9
  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/MoreHoriz.js.map +0 -1
  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/PushPin.js +0 -10
  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/PushPin.js.map +0 -1
  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/Save.js +0 -9
  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/Save.js.map +0 -1
  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/SearchOff.js +0 -11
  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/SearchOff.js.map +0 -1
  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/Sort.js +0 -9
  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/Sort.js.map +0 -1
  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/SyncAlt.js +0 -9
  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/SyncAlt.js.map +0 -1
  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/UnfoldMoreRounded.js +0 -9
  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/UnfoldMoreRounded.js.map +0 -1
  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/ViewColumn.js +0 -9
  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/ViewColumn.js.map +0 -1
  110. package/dist/node_modules/.pnpm/@tanstack_match-sorter-utils@8.19.4/node_modules/@tanstack/match-sorter-utils/build/lib/index.js +0 -554
  111. 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
  112. 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
  113. 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
  114. 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
  115. 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
  116. package/dist/node_modules/.pnpm/@tanstack_table-core@8.20.5/node_modules/@tanstack/table-core/build/lib/index.js +0 -2055
  117. package/dist/node_modules/.pnpm/@tanstack_table-core@8.20.5/node_modules/@tanstack/table-core/build/lib/index.js.map +0 -1
  118. package/dist/node_modules/.pnpm/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -454
  119. package/dist/node_modules/.pnpm/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/index.js.map +0 -1
  120. package/dist/node_modules/.pnpm/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -54
  121. package/dist/node_modules/.pnpm/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/utils.js.map +0 -1
  122. package/dist/node_modules/.pnpm/highlight-words@2.0.0/node_modules/highlight-words/dist/highlight-words.js +0 -92
  123. package/dist/node_modules/.pnpm/highlight-words@2.0.0/node_modules/highlight-words/dist/highlight-words.js.map +0 -1
  124. package/dist/node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/dist/index.esm.js +0 -2440
  125. package/dist/node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/dist/index.esm.js.map +0 -1
  126. package/dist/node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/locales/ko/index.esm.js +0 -98
  127. 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
  128. package/dist/types/components/OwpMrtTable/OwpMrtTable.d.ts +0 -25
  129. package/dist/types/components/OwpMrtTable/index.d.ts +0 -1
  130. package/dist/types/components/OwpMrtTable/internal/OwpMrtTableNoDataOverlay.d.ts +0 -14
  131. package/dist/types/components/OwpMrtTable/internal/OwpMrtTableTopToolbar.d.ts +0 -6
  132. package/dist/types/components/OwpMrtTable/utils/parseFromValuesOrFunc.d.ts +0 -11
@@ -1,14 +1,14 @@
1
- var pe = Object.defineProperty;
2
- var o = (e, t) => pe(e, "name", { value: t, configurable: !0 });
3
- import { getTreeGridTextResourceUrl as Re, TREEGRID_CELL_CHANGED_CLASS as ce, TREEGRID_CELL_HIGHLIGHT_COLOR as _e, resolveTreeGridColorNumber as Ae } from "../../../constants/treeGrid.js";
4
- import { isTreeGridRowAddedById as y, getTreeGridAddedRowHighlightColumns as V, getTreeGridCellComparableValue as se, clearTreeGridCellHighlightById as be, removeTreeGridAddedRowHighlightColumn as ye, highlightTreeGridCellById as Le, appendTreeGridAddedRowHighlightColumn as ge, normalizeTreeGridExternalRows as me, getTreeGridAddedRowBaselineValue as De } from "../../../utils/treeGridUtil.js";
5
- import { applyTreeGridLayoutToGrid as we } from "./treeGridLayout.js";
6
- import { TREE_GRID_PANEL_CHECKBOX_SELECT_CLASS as Ie, TREE_GRID_SELECT_ALL_CHECKED_CLASS as M, TREE_GRID_SELECT_ALL_INDETERMINATE_CLASS as W, TREE_GRID_SELECT_ALL_UNCHECKED_CLASS as K, TREE_GRID_THEME_WRAPPER_CLASS as Oe } from "./treeGridTheme.js";
7
- import { countTreeGridPerf as ue, logTreeGridPerf as Be, measureTreeGridPerf as de } from "./utils/perf.js";
8
- import { debounce as D } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/debounce.js";
9
- import { isEmpty as Pe } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
10
- import { get as ke } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
11
- const Nt = 300, xe = 3, Ne = {
1
+ var We = Object.defineProperty;
2
+ var i = (e, n) => We(e, "name", { value: n, configurable: !0 });
3
+ import { getTreeGridTextResourceUrl as Ke, TREEGRID_CELL_CHANGED_CLASS as me } from "../../../constants/treeGrid.js";
4
+ import { isTreeGridRowAddedById as $, getTreeGridAddedRowHighlightColumns as se, getTreeGridCellComparableValue as xe, clearTreeGridCellHighlightById as je, highlightTreeGridCellById as ze, normalizeTreeGridExternalRows as Ye } from "../../../utils/treeGridUtil.js";
5
+ import { applyTreeGridLayoutToGrid as Ze } from "./treeGridLayout.js";
6
+ import { TREE_GRID_SELECTED_CHANGED_CELL_CLASS as ce, TREE_GRID_PANEL_CHECKBOX_SELECT_CLASS as qe, TREE_GRID_SELECT_ALL_CHECKED_CLASS as le, TREE_GRID_SELECT_ALL_INDETERMINATE_CLASS as de, TREE_GRID_SELECT_ALL_UNCHECKED_CLASS as fe, TREE_GRID_THEME_WRAPPER_CLASS as Qe } from "./treeGridTheme.js";
7
+ import { countTreeGridPerf as Ie, logTreeGridPerf as He, measureTreeGridPerf as Oe } from "./utils/perf.js";
8
+ import { debounce as V } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/debounce.js";
9
+ import { isEmpty as en } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
10
+ import { get as nn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
11
+ const Ft = 300, tn = 3, rn = {
12
12
  1: {
13
13
  onEnter: "TabDownEdit",
14
14
  onEnterEdit: "AcceptEdit AND TabDownEdit,1"
@@ -25,651 +25,1152 @@ const Nt = 300, xe = 3, Ne = {
25
25
  onEnter: "TabRightEditAdd",
26
26
  onEnterEdit: "AcceptEdit AND TabRightEditAdd,1"
27
27
  }
28
- }, Ue = [255, 255, 166], ve = [240, 240, 240], Fe = [248, 248, 248], $e = [255, 255, 255], Ve = [255, 255, 254], Me = [242, 242, 242], J = "Button", We = 0.75, j = ce.split(/\s+/).filter(
28
+ }, on = [240, 240, 240], sn = [248, 248, 248], cn = [255, 255, 255], ln = [255, 255, 254], dn = [242, 242, 242], ue = "Button", Te = me.split(/\s+/).filter(
29
29
  Boolean
30
- ), X = /* @__PURE__ */ o((e) => !!(e && /\b(?:EnterMode|OnEnterEdit|OnEnter)\s*[:=]/.test(e)), "hasTreeGridExplicitEnterMode"), L = /* @__PURE__ */ o((e) => typeof e == "object" && e !== null && !Array.isArray(e), "isTreeGridJsonRecord"), g = /* @__PURE__ */ o((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), I = /* @__PURE__ */ o((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"), k = /* @__PURE__ */ o((e, t) => !g(e) && !I(t), "isTreeGridCheckboxSelectionMode"), Ke = /* @__PURE__ */ o((e) => {
31
- const t = e.Cfg;
32
- return Array.isArray(t) ? t.filter(L) : L(t) ? [t] : [];
33
- }, "getTreeGridJsonCfgRecords"), z = /* @__PURE__ */ o((e, t) => {
34
- let n;
35
- return Ke(e).forEach((r) => {
36
- t in r && (n = r[t]);
37
- }), n;
38
- }, "getTreeGridJsonCfgValue"), H = /* @__PURE__ */ o((e, t) => {
39
- const n = new RegExp(`\\b${t}\\s*=\\s*(['"])(.*?)\\1`, "gi");
40
- let r, s;
41
- for (; r = n.exec(e); )
42
- s = r[2];
43
- return s;
44
- }, "getTreeGridXmlAttributeValue"), Y = /* @__PURE__ */ o((e, t) => new RegExp(`\\b${t}\\s*=`, "i").test(e), "hasTreeGridXmlTagAttribute"), Z = /* @__PURE__ */ o((e, t, n) => {
30
+ ), fn = /* @__PURE__ */ new Set([
31
+ "Text",
32
+ "Lines",
33
+ "Int",
34
+ "Float",
35
+ "Date",
36
+ "Pass"
37
+ ]), ae = /* @__PURE__ */ i((e) => !!(e && /\b(?:EnterMode|OnEnterEdit|OnEnter)\s*[:=]/.test(e)), "hasTreeGridExplicitEnterMode"), un = {
38
+ Visible: "1",
39
+ CanHide: "0",
40
+ Delete: "1",
41
+ Width: "33"
42
+ }, Tn = {
43
+ Spanned: "1"
44
+ }, F = {
45
+ OnClickCell: "Focus"
46
+ }, k = {
47
+ OnClickPanelSelectAll: "SelectAll OR DeselectAll"
48
+ }, be = ["Formula", "FormulaFormula"], an = /<Grid\b[^>]*>/i, pn = /<\/Grid\s*>/i, En = /<Toolbar\b[^>]*\/?>/i, Cn = [
49
+ "Undo",
50
+ "Deleting",
51
+ "Selecting",
52
+ "SelectingSingle",
53
+ "SuppressCfg"
54
+ ], Gn = {
55
+ addRow: ["Add", "AddRows", "AddChildren", "AddRowsChildren"],
56
+ deleteRow: [
57
+ "Delete",
58
+ "DeleteRows",
59
+ "DeleteVisible",
60
+ "DeleteVisibleRows",
61
+ "DeleteChildren",
62
+ "DeleteVisibleChildren",
63
+ "DeleteRowsChildren",
64
+ "DeleteVisibleRowsChildren",
65
+ "Undelete",
66
+ "UndeleteRows",
67
+ "UndeleteVisible",
68
+ "UndeleteVisibleRows",
69
+ "UndeleteChildren",
70
+ "UndeleteVisibleChildren",
71
+ "UndeleteRowsChildren",
72
+ "UndeleteVisibleRowsChildren"
73
+ ],
74
+ selectRow: ["Select", "SelectRows", "Deselect", "DeselectRows"]
75
+ }, S = /* @__PURE__ */ i((e) => typeof e == "object" && e !== null && !Array.isArray(e), "isTreeGridJsonRecord"), b = /* @__PURE__ */ i((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), M = /* @__PURE__ */ i((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"), y = /* @__PURE__ */ i((e, n) => String(e ?? "").trim().toLowerCase() === n.toLowerCase(), "isTreeGridConfigValue"), Z = /* @__PURE__ */ i((e, n) => !b(e) && !M(n), "isTreeGridCheckboxSelectionMode"), Pe = /* @__PURE__ */ i((e) => {
76
+ const n = e.Cfg;
77
+ return Array.isArray(n) ? n.filter(S) : S(n) ? [n] : [];
78
+ }, "getTreeGridJsonCfgRecords"), J = /* @__PURE__ */ i((e, n) => {
79
+ let t;
80
+ return Pe(e).forEach((r) => {
81
+ n in r && (t = r[n]);
82
+ }), t;
83
+ }, "getTreeGridJsonCfgValue"), we = /* @__PURE__ */ i((e, n) => {
84
+ const t = new RegExp(`\\b${n}\\s*=\\s*(['"])(.*?)\\1`, "i").exec(
85
+ e
86
+ );
87
+ return t == null ? void 0 : t[2];
88
+ }, "getTreeGridXmlTagAttributeValue"), P = /* @__PURE__ */ i((e, n) => new RegExp(`\\b${n}\\s*=`, "i").test(e), "hasTreeGridXmlTagAttribute"), ye = /* @__PURE__ */ i((e) => String(e).replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), "escapeTreeGridXmlAttributeValue"), D = /* @__PURE__ */ i((e, n, t) => {
45
89
  const r = e.endsWith("/>") ? e.length - 2 : e.length - 1;
46
- return `${e.slice(0, r)} ${t}="${n}"${e.slice(r)}`;
47
- }, "appendTreeGridXmlTagAttribute"), Je = /* @__PURE__ */ o((e) => {
48
- const t = /<([A-Za-z][\w:-]*)\b[^>]*(?:\/>|>)/g, n = [];
90
+ return `${e.slice(0, r)} ${n}="${ye(
91
+ t
92
+ )}"${e.slice(r)}`;
93
+ }, "appendTreeGridXmlTagAttribute"), W = /* @__PURE__ */ i((e, n, t) => P(e, n) ? e.replace(
94
+ new RegExp(`\\b${n}\\s*=\\s*(['"])(.*?)\\1`, "i"),
95
+ () => `${n}="${ye(t)}"`
96
+ ) : D(e, n, t), "setTreeGridXmlTagAttribute"), $e = /* @__PURE__ */ i((e, n) => {
97
+ let t = e;
98
+ return Object.entries(n).forEach(([r, o]) => {
99
+ t = W(t, r, o);
100
+ }), t;
101
+ }, "setTreeGridXmlTagAttributes"), U = /* @__PURE__ */ i((e, n) => {
102
+ let t = e;
103
+ return Object.entries(n).forEach(([r, o]) => {
104
+ P(t, r) || (t = D(t, r, o));
105
+ }), t;
106
+ }, "appendMissingTreeGridXmlTagAttributes"), x = /* @__PURE__ */ i((e) => {
107
+ var a;
108
+ const n = /<!--[\s\S]*?-->|<\?[\s\S]*?\?>|<!\[CDATA\[[\s\S]*?\]\]>|<\/?([A-Za-z][\w:-]*)\b[^>]*>/g, t = {
109
+ cfgValues: {}
110
+ };
111
+ let r, o = 0, d = !1;
112
+ for (; r = n.exec(e); ) {
113
+ const u = r[0], E = (a = r[1]) == null ? void 0 : a.toLowerCase();
114
+ if (!E || u.startsWith("<!--") || u.startsWith("<?") || u.startsWith("<!"))
115
+ continue;
116
+ !t.hasFastPanel && P(u, "FastPanel") && (t.hasFastPanel = !0);
117
+ const g = u.startsWith("</"), h = /\/>\s*$/.test(u);
118
+ if (!d) {
119
+ !g && E === "grid" && (d = !0, t.gridOpenTagEndIndex = r.index + u.length, o = h ? 0 : 1);
120
+ continue;
121
+ }
122
+ if (g) {
123
+ if (o = Math.max(0, o - 1), E === "grid" && o === 0)
124
+ break;
125
+ continue;
126
+ }
127
+ o === 1 && (E === "cfg" ? (t.defaultCfgTag || (t.defaultCfgTag = {
128
+ index: r.index,
129
+ tag: u
130
+ }), Cn.forEach((A) => {
131
+ const L = we(u, A);
132
+ L !== void 0 && (t.cfgValues[A] = L);
133
+ }), t.lastCfgEndIndex = r.index + u.length) : E === "actions" && !t.defaultActionsTag ? t.defaultActionsTag = {
134
+ index: r.index,
135
+ tag: u
136
+ } : E === "panel" && !t.defaultPanelTag && gn(u) ? t.defaultPanelTag = {
137
+ index: r.index,
138
+ tag: u
139
+ } : E === "animations" && !t.animationsTag && (t.animationsTag = {
140
+ index: r.index,
141
+ tag: u
142
+ })), h || (o += 1);
143
+ }
144
+ return t;
145
+ }, "scanTreeGridXmlDefaultLayout"), gn = /* @__PURE__ */ i((e) => {
146
+ const n = we(e, "Name");
147
+ return n === void 0 || n === "" || n.toLowerCase() === "panel";
148
+ }, "isTreeGridXmlDefaultPanelTag"), Sn = /* @__PURE__ */ i((e) => {
149
+ const n = /<([A-Za-z][\w:-]*)\b[^>]*(?:\/>|>)/g, t = [];
49
150
  let r;
50
- for (; r = t.exec(e); ) {
151
+ for (; r = n.exec(e); ) {
51
152
  if (r[1].toLowerCase() !== "header") {
52
- if (n.length > 0)
153
+ if (t.length > 0)
53
154
  break;
54
- return n;
155
+ return t;
55
156
  }
56
- n.push({
157
+ t.push({
57
158
  index: r.index,
58
159
  tag: r[0]
59
160
  });
60
161
  }
61
- return n;
62
- }, "getLeadingTreeGridXmlHeaderTags"), je = /* @__PURE__ */ o((e) => {
63
- const t = Je(e);
64
- if (t.length <= 1)
162
+ return t;
163
+ }, "getLeadingTreeGridXmlHeaderTags"), hn = /* @__PURE__ */ i((e) => {
164
+ const n = Sn(e);
165
+ if (n.length <= 1)
166
+ return {
167
+ headContent: e,
168
+ isApplied: !1
169
+ };
170
+ const [t, ...r] = n;
171
+ if (P(t.tag, "PanelRowSpan") || r.some(({ tag: d }) => /\bPanel[A-Za-z0-9_]*\s*=/i.test(d)))
172
+ return {
173
+ headContent: e,
174
+ isApplied: !1
175
+ };
176
+ let o = t.tag;
177
+ return P(o, "Spanned") || (o = D(o, "Spanned", 1)), o = D(
178
+ o,
179
+ "PanelRowSpan",
180
+ n.length
181
+ ), {
182
+ headContent: `${e.slice(0, t.index)}${o}${e.slice(
183
+ t.index + t.tag.length
184
+ )}`,
185
+ isApplied: !0
186
+ };
187
+ }, "applyTreeGridXmlHeadPanelRowSpanDefault"), An = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlPanelSpannedInsertionIndex"), Rn = /* @__PURE__ */ i((e) => !!e.defaultPanelTag || q(e.cfgValues) || Fe(e.cfgValues), "isTreeGridXmlPanelSpannedDefaultLayout"), _n = /* @__PURE__ */ i((e, n) => {
188
+ if (n.gridOpenTagEndIndex === void 0 || !Rn(n))
65
189
  return e;
66
- const [n, ...r] = t;
67
- if (Y(n.tag, "PanelRowSpan") || r.some(({ tag: f }) => /\bPanel[A-Za-z0-9_]*\s*=/i.test(f)))
190
+ const t = n.defaultPanelTag;
191
+ if (t) {
192
+ const o = U(
193
+ t.tag,
194
+ Tn
195
+ );
196
+ return o === t.tag ? e : `${e.slice(0, t.index)}${o}${e.slice(
197
+ t.index + t.tag.length
198
+ )}`;
199
+ }
200
+ const r = An(n);
201
+ return r === void 0 ? e : `${e.slice(0, r)}
202
+ <Panel Spanned="1" />${e.slice(
203
+ r
204
+ )}`;
205
+ }, "applyTreeGridXmlDefaultPanelSpannedLayout"), Ln = /* @__PURE__ */ i((e) => {
206
+ if (!/<Head\b/i.test(e) || /\bPanelRowSpan\s*[:=]/i.test(e))
68
207
  return e;
69
- let s = n.tag;
70
- return Y(s, "Spanned") || (s = Z(s, "Spanned", 1)), s = Z(
71
- s,
72
- "PanelRowSpan",
73
- t.length
74
- ), `${e.slice(0, n.index)}${s}${e.slice(
75
- n.index + n.tag.length
208
+ let n = !1;
209
+ const t = e.replace(
210
+ /(<Head\b[^>]*>)([\s\S]*?)(<\/Head>)/i,
211
+ (r, o, d, a) => {
212
+ const u = hn(d);
213
+ return u.isApplied ? (n = !0, `${o}${u.headContent}${a}`) : r;
214
+ }
215
+ );
216
+ return n ? _n(
217
+ t,
218
+ x(t)
219
+ ) : e;
220
+ }, "applyTreeGridDefaultHeaderPanelRowSpanLayout"), De = /* @__PURE__ */ i((e) => Z(
221
+ J(e, "Selecting"),
222
+ J(e, "SelectingSingle")
223
+ ), "isTreeGridJsonCheckboxSelectionLayout"), q = /* @__PURE__ */ i((e) => Z(
224
+ e.Selecting,
225
+ e.SelectingSingle
226
+ ), "isTreeGridXmlCheckboxSelectionLayout"), mn = /* @__PURE__ */ i((e) => !b(e.Selecting), "isTreeGridXmlSelectingLayout"), Fe = /* @__PURE__ */ i((e) => y(e.Undo, "1") && y(e.Deleting, "2") && y(e.Selecting, "0"), "isTreeGridXmlDeletePanelDefaultLayout"), xn = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlCellClickActionInsertionIndex"), In = /* @__PURE__ */ i((e, n) => {
227
+ if (n.gridOpenTagEndIndex === void 0 || !mn(n.cfgValues) || /\bOnClickCell\s*=/i.test(e))
228
+ return e;
229
+ const t = n.defaultActionsTag;
230
+ if (t) {
231
+ const o = U(
232
+ t.tag,
233
+ F
234
+ );
235
+ return o === t.tag ? e : `${e.slice(0, t.index)}${o}${e.slice(
236
+ t.index + t.tag.length
237
+ )}`;
238
+ }
239
+ const r = xn(n);
240
+ return r === void 0 ? e : `${e.slice(0, r)}
241
+ <Actions OnClickCell="Focus" />${e.slice(
242
+ r
243
+ )}`;
244
+ }, "applyTreeGridXmlDefaultCellClickActionLayout"), On = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlSelectAllPanelActionInsertionIndex"), bn = /* @__PURE__ */ i((e, n) => {
245
+ if (n.gridOpenTagEndIndex === void 0 || !q(n.cfgValues) || /\bOnClickPanelSelectAll\s*=/i.test(e))
246
+ return e;
247
+ const t = n.defaultActionsTag;
248
+ if (t) {
249
+ const o = U(
250
+ t.tag,
251
+ k
252
+ );
253
+ return o === t.tag ? e : `${e.slice(0, t.index)}${o}${e.slice(
254
+ t.index + t.tag.length
255
+ )}`;
256
+ }
257
+ const r = On(n);
258
+ return r === void 0 ? e : `${e.slice(
259
+ 0,
260
+ r
261
+ )}
262
+ <Actions OnClickPanelSelectAll="SelectAll OR DeselectAll" />${e.slice(
263
+ r
264
+ )}`;
265
+ }, "applyTreeGridXmlDefaultSelectAllPanelActionLayout"), Pn = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlDeletePanelInsertionIndex"), wn = /* @__PURE__ */ i((e, n) => {
266
+ if (n.gridOpenTagEndIndex === void 0 || !Fe(n.cfgValues))
267
+ return e;
268
+ const t = n.defaultPanelTag;
269
+ if (t) {
270
+ const d = U(
271
+ t.tag,
272
+ un
273
+ );
274
+ return d === t.tag ? e : `${e.slice(0, t.index)}${d}${e.slice(
275
+ t.index + t.tag.length
276
+ )}`;
277
+ }
278
+ const r = Pn(n);
279
+ return r === void 0 ? e : `${e.slice(0, r)}
280
+ <Panel Visible="1" CanHide="0" Delete="1" Width="33" />${e.slice(
281
+ r
282
+ )}`;
283
+ }, "applyTreeGridXmlDefaultDeletePanelLayout"), yn = /* @__PURE__ */ i((e, n) => {
284
+ if (n.hasFastPanel || !q(n.cfgValues))
285
+ return e;
286
+ const t = n.gridOpenTagEndIndex;
287
+ return t === void 0 ? e : `${e.slice(0, t)}
288
+ <Cfg FastPanel="0" />${e.slice(
289
+ t
76
290
  )}`;
77
- }, "applyTreeGridXmlHeadPanelRowSpanDefault"), Xe = /* @__PURE__ */ o((e) => !/<Head\b/i.test(e) || /\bPanelRowSpan\s*[:=]/i.test(e) ? e : e.replace(
78
- /(<Head\b[^>]*>)([\s\S]*?)(<\/Head>)/i,
79
- (t, n, r, s) => {
80
- const f = je(r);
81
- return f === r ? t : `${n}${f}${s}`;
82
- }
83
- ), "applyTreeGridDefaultHeaderPanelRowSpanLayout"), ze = /* @__PURE__ */ o((e) => k(
84
- z(e, "Selecting"),
85
- z(e, "SelectingSingle")
86
- ), "isTreeGridJsonCheckboxSelectionLayout"), He = /* @__PURE__ */ o((e) => k(
87
- H(e, "Selecting"),
88
- H(e, "SelectingSingle")
89
- ), "isTreeGridXmlCheckboxSelectionLayout"), Ye = /* @__PURE__ */ o((e) => {
90
- const t = e.Cfg;
91
- if (Array.isArray(t)) {
92
- t.some((n) => L(n) && "FastPanel" in n) || (e.Cfg = [{ FastPanel: 0 }, ...t]);
291
+ }, "applyTreeGridXmlDefaultFastPanelLayout"), $n = /* @__PURE__ */ i((e) => {
292
+ const n = e.Cfg;
293
+ if (Array.isArray(n)) {
294
+ n.some((t) => S(t) && "FastPanel" in t) || (e.Cfg = [{ FastPanel: 0 }, ...n]);
93
295
  return;
94
296
  }
95
- if (L(t)) {
96
- "FastPanel" in t || (t.FastPanel = 0);
297
+ if (S(n)) {
298
+ "FastPanel" in n || (n.FastPanel = 0);
97
299
  return;
98
300
  }
99
301
  e.Cfg = { FastPanel: 0 };
100
- }, "applyTreeGridJsonFastPanelDefault"), Ze = /* @__PURE__ */ o((e) => {
302
+ }, "applyTreeGridJsonFastPanelDefault"), Dn = /* @__PURE__ */ i((e) => {
303
+ const n = e.Actions;
304
+ if (Array.isArray(n)) {
305
+ n.some(
306
+ (t) => S(t) && "OnClickPanelSelectAll" in t
307
+ ) || (e.Actions = [{ ...k }, ...n]);
308
+ return;
309
+ }
310
+ if (S(n)) {
311
+ "OnClickPanelSelectAll" in n || (n.OnClickPanelSelectAll = k.OnClickPanelSelectAll);
312
+ return;
313
+ }
314
+ n === void 0 && (e.Actions = { ...k });
315
+ }, "applyTreeGridJsonSelectAllPanelActionDefault"), Fn = /* @__PURE__ */ i((e) => {
316
+ const n = e.Actions;
317
+ if (Array.isArray(n)) {
318
+ n.some((t) => S(t) && "OnClickCell" in t) || (e.Actions = [{ ...F }, ...n]);
319
+ return;
320
+ }
321
+ if (S(n)) {
322
+ "OnClickCell" in n || (n.OnClickCell = F.OnClickCell);
323
+ return;
324
+ }
325
+ n === void 0 && (e.Actions = { ...F });
326
+ }, "applyTreeGridJsonCellClickActionDefault"), kn = /* @__PURE__ */ i((e) => {
327
+ try {
328
+ const n = JSON.parse(e);
329
+ return !S(n) || b(J(n, "Selecting")) ? e : (Fn(n), JSON.stringify(n));
330
+ } catch {
331
+ return e;
332
+ }
333
+ }, "applyTreeGridJsonDefaultCellClickActionLayout"), pe = /* @__PURE__ */ i((e, n) => {
334
+ const t = e.trim();
335
+ return t ? t.startsWith("{") ? kn(e) : In(
336
+ e,
337
+ n ?? x(e)
338
+ ) : e;
339
+ }, "applyTreeGridDefaultCellClickActionLayout"), Nn = /* @__PURE__ */ i((e) => {
340
+ try {
341
+ const n = JSON.parse(e);
342
+ return !S(n) || !De(n) ? e : (Dn(n), JSON.stringify(n));
343
+ } catch {
344
+ return e;
345
+ }
346
+ }, "applyTreeGridJsonDefaultSelectAllPanelActionLayout"), Ee = /* @__PURE__ */ i((e, n) => {
347
+ const t = e.trim();
348
+ return t ? t.startsWith("{") ? Nn(e) : bn(
349
+ e,
350
+ n ?? x(e)
351
+ ) : e;
352
+ }, "applyTreeGridDefaultSelectAllPanelActionLayout"), Un = /* @__PURE__ */ i((e, n) => {
353
+ if (n === void 0)
354
+ return e;
355
+ try {
356
+ const t = JSON.parse(e);
357
+ if (!S(t))
358
+ return e;
359
+ const r = Pe(t);
360
+ return r.some((o) => "SuppressCfg" in o) ? e : (r[0] ? r[0].SuppressCfg = n : t.Cfg = { SuppressCfg: n }, JSON.stringify(t));
361
+ } catch {
362
+ return e;
363
+ }
364
+ }, "applyTreeGridJsonDefaultSuppressCfgLayout"), Bn = /* @__PURE__ */ i((e, n, t) => {
365
+ if (t === void 0 || n.cfgValues.SuppressCfg !== void 0)
366
+ return e;
367
+ const r = n.defaultCfgTag;
368
+ if (r) {
369
+ const d = D(r.tag, "SuppressCfg", t);
370
+ return `${e.slice(0, r.index)}${d}${e.slice(
371
+ r.index + r.tag.length
372
+ )}`;
373
+ }
374
+ const o = n.gridOpenTagEndIndex;
375
+ return o === void 0 ? e : `${e.slice(0, o)}
376
+ <Cfg SuppressCfg="${t}" />${e.slice(
377
+ o
378
+ )}`;
379
+ }, "applyTreeGridXmlDefaultSuppressCfgLayout"), vn = /* @__PURE__ */ i((e, n) => {
380
+ const t = e.trim();
381
+ return n === void 0 || !t ? e : t.startsWith("{") ? Un(e, n) : Bn(
382
+ e,
383
+ x(e),
384
+ n
385
+ );
386
+ }, "applyTreeGridDefaultSuppressCfgLayout"), Vn = /* @__PURE__ */ i((e) => be.some((n) => n in e), "hasTreeGridToolbarFormulaField"), Xn = /* @__PURE__ */ i((e) => {
387
+ const n = e.Toolbar, t = e.Solid, r = Array.isArray(n) ? n.filter(S) : S(n) ? [n] : [], o = Array.isArray(t) ? t.filter(
388
+ (d) => S(d) && y(d.Kind, "Toolbar")
389
+ ) : S(t) && y(t.Kind, "Toolbar") ? [t] : [];
390
+ return [...r, ...o];
391
+ }, "getTreeGridJsonToolbarRecords"), Mn = /* @__PURE__ */ i((e, n) => {
392
+ if (!n)
393
+ return e;
101
394
  try {
102
395
  const t = JSON.parse(e);
103
- return !L(t) || !ze(t) ? e : (Ye(t), JSON.stringify(t));
396
+ if (!S(t))
397
+ return e;
398
+ const r = Xn(t);
399
+ return r.some(Vn) ? e : (r[0] ? r[0].FormulaFormula = n : t.Toolbar = { FormulaFormula: n }, JSON.stringify(t));
400
+ } catch {
401
+ return e;
402
+ }
403
+ }, "applyTreeGridJsonDefaultToolbarTotalCountLayout"), Jn = /* @__PURE__ */ i((e) => be.some(
404
+ (n) => P(e, n)
405
+ ), "hasTreeGridXmlToolbarFormulaAttribute"), Wn = /* @__PURE__ */ i((e, n) => {
406
+ if (!n)
407
+ return e;
408
+ const t = En.exec(e);
409
+ if (t) {
410
+ const a = t[0];
411
+ if (Jn(a))
412
+ return e;
413
+ const u = W(
414
+ a,
415
+ "Formula",
416
+ n
417
+ );
418
+ return `${e.slice(0, t.index)}${u}${e.slice(
419
+ t.index + a.length
420
+ )}`;
421
+ }
422
+ const r = W(
423
+ "<Toolbar />",
424
+ "Formula",
425
+ n
426
+ ), o = pn.exec(e);
427
+ if (o)
428
+ return `${e.slice(0, o.index)} ${r}
429
+ ${e.slice(
430
+ o.index
431
+ )}`;
432
+ const d = an.exec(e);
433
+ return d ? `${e.slice(
434
+ 0,
435
+ d.index + d[0].length
436
+ )}
437
+ ${r}${e.slice(d.index + d[0].length)}` : e;
438
+ }, "applyTreeGridXmlDefaultToolbarTotalCountLayout"), Kn = /* @__PURE__ */ i((e, n) => {
439
+ const t = e.trim();
440
+ return !n || !t ? e : t.startsWith("{") ? Mn(
441
+ e,
442
+ n
443
+ ) : Wn(e, n);
444
+ }, "applyTreeGridDefaultToolbarTotalCountLayout"), jn = /* @__PURE__ */ i((e) => {
445
+ try {
446
+ const n = JSON.parse(e);
447
+ return !S(n) || !De(n) ? e : ($n(n), JSON.stringify(n));
104
448
  } catch {
105
449
  return e;
106
450
  }
107
- }, "applyTreeGridJsonDefaultFastPanelLayout"), qe = /* @__PURE__ */ o((e) => {
451
+ }, "applyTreeGridJsonDefaultFastPanelLayout"), Ce = /* @__PURE__ */ i((e, n) => {
108
452
  const t = e.trim();
109
- return !t || /\bFastPanel\s*[:=]/i.test(e) ? e : t.startsWith("{") ? Ze(e) : He(e) && /<Grid\b/i.test(e) ? e.replace(/<Grid\b[^>]*>/i, (n) => `${n}
110
- <Cfg FastPanel="0" />`) : e;
111
- }, "applyTreeGridDefaultFastPanelLayout"), O = /* @__PURE__ */ o((e) => qe(
112
- Xe(e)
113
- ), "applyTreeGridDefaultLayout"), Qe = /* @__PURE__ */ o((e) => {
114
- var t;
115
- return typeof document > "u" ? null : ((t = document.getElementById(e)) == null ? void 0 : t.closest(`.${Oe}`)) ?? null;
116
- }, "getTreeGridWrapperElement"), et = /* @__PURE__ */ o((e) => {
117
- if (I(e.AllSelected))
453
+ return t ? t.startsWith("{") ? /\bFastPanel\s*[:=]/i.test(e) ? e : jn(e) : yn(
454
+ e,
455
+ n ?? x(e)
456
+ ) : e;
457
+ }, "applyTreeGridDefaultFastPanelLayout"), zn = /* @__PURE__ */ i((e) => {
458
+ const n = {};
459
+ return e == null || e.forEach((t) => {
460
+ var r;
461
+ (r = Gn[t]) == null || r.forEach((o) => {
462
+ n[o] = "";
463
+ });
464
+ }), n;
465
+ }, "getTreeGridDisabledAnimationAttributes"), Yn = /* @__PURE__ */ i((e, n) => {
466
+ try {
467
+ const t = JSON.parse(e);
468
+ if (!S(t))
469
+ return e;
470
+ const r = t.Animations;
471
+ if (Array.isArray(r)) {
472
+ const o = r.find(S);
473
+ o ? Object.assign(o, n) : r.unshift({ ...n });
474
+ } else if (S(r))
475
+ Object.assign(r, n);
476
+ else if (r === void 0)
477
+ t.Animations = n;
478
+ else
479
+ return e;
480
+ return JSON.stringify(t);
481
+ } catch {
482
+ return e;
483
+ }
484
+ }, "applyTreeGridJsonDisabledAnimationsLayout"), Zn = /* @__PURE__ */ i((e) => $e("<Animations />", e), "createTreeGridDisabledAnimationsTag"), qn = /* @__PURE__ */ i((e, n) => {
485
+ const t = x(e);
486
+ if (t.gridOpenTagEndIndex === void 0)
487
+ return e;
488
+ const r = t.animationsTag;
489
+ if (r) {
490
+ const d = $e(r.tag, n);
491
+ return d === r.tag ? e : `${e.slice(0, r.index)}${d}${e.slice(
492
+ r.index + r.tag.length
493
+ )}`;
494
+ }
495
+ const o = t.lastCfgEndIndex ?? t.gridOpenTagEndIndex;
496
+ return `${e.slice(0, o)}
497
+ ${Zn(
498
+ n
499
+ )}${e.slice(o)}`;
500
+ }, "applyTreeGridXmlDisabledAnimationsLayout"), Ge = /* @__PURE__ */ i((e, n) => {
501
+ const t = zn(n);
502
+ if (!Object.keys(t).length)
503
+ return e;
504
+ const r = e.trim();
505
+ return r ? r.startsWith("{") ? Yn(e, t) : qn(e, t) : e;
506
+ }, "applyTreeGridDisabledAnimationsLayout"), K = /* @__PURE__ */ i((e, n, t, r) => {
507
+ const o = Kn(
508
+ Ln(
509
+ vn(e, r)
510
+ ),
511
+ t
512
+ ), d = o.trim();
513
+ if (!d || d.startsWith("{"))
514
+ return Ge(
515
+ Ce(
516
+ pe(
517
+ Ee(o)
518
+ )
519
+ ),
520
+ n
521
+ );
522
+ const a = x(o), u = Ee(
523
+ o,
524
+ a
525
+ ), E = u === o ? a : x(u), g = pe(
526
+ u,
527
+ E
528
+ ), h = g === u ? E : x(g);
529
+ return Ge(
530
+ wn(
531
+ Ce(
532
+ g,
533
+ h
534
+ ),
535
+ h
536
+ ),
537
+ n
538
+ );
539
+ }, "applyTreeGridDefaultLayout"), Qn = /* @__PURE__ */ i((e) => {
540
+ var n;
541
+ return typeof document > "u" ? null : ((n = document.getElementById(e)) == null ? void 0 : n.closest(`.${Qe}`)) ?? null;
542
+ }, "getTreeGridWrapperElement"), Hn = /* @__PURE__ */ i((e) => {
543
+ if (M(e.AllSelected))
118
544
  return "checked";
119
- if (g(e.AllSelected))
545
+ if (b(e.AllSelected))
120
546
  return "unchecked";
121
- let t = 0, n = 0;
122
- return Te(e).forEach((r) => {
123
- !p(r) || g(r.CanSelect) || (t += 1, I(e.IsSelected(r)) && (n += 1));
124
- }), n ? t > 0 && n >= t ? "checked" : "indeterminate" : "unchecked";
125
- }, "getTreeGridSelectAllState"), B = /* @__PURE__ */ o((e, t) => {
126
- const n = Qe(t), r = !g(e.Selecting), s = k(
547
+ let n = 0, t = 0;
548
+ return Be(e).forEach((r) => {
549
+ !_(r) || b(r.CanSelect) || (n += 1, M(e.IsSelected(r)) && (t += 1));
550
+ }), t ? n > 0 && t >= n ? "checked" : "indeterminate" : "unchecked";
551
+ }, "getTreeGridSelectAllState"), j = /* @__PURE__ */ i((e, n) => {
552
+ const t = Qn(n), r = !b(e.Selecting), o = Z(
127
553
  e.Selecting,
128
554
  e.SelectingSingle
129
- ), f = e.Header;
130
- if (n == null || n.classList.toggle(
131
- Ie,
132
- s
133
- ), !s)
134
- n == null || n.classList.remove(
135
- M,
136
- W,
137
- K
555
+ ), d = e.Header;
556
+ if (t == null || t.classList.toggle(
557
+ qe,
558
+ o
559
+ ), !o)
560
+ t == null || t.classList.remove(
561
+ le,
562
+ de,
563
+ fe
138
564
  );
139
565
  else {
140
- const T = et(e);
141
- n == null || n.classList.toggle(
142
- M,
143
- T === "checked"
144
- ), n == null || n.classList.toggle(
145
- W,
146
- T === "indeterminate"
147
- ), n == null || n.classList.toggle(
148
- K,
149
- T === "unchecked"
566
+ const a = Hn(e);
567
+ t == null || t.classList.toggle(
568
+ le,
569
+ a === "checked"
570
+ ), t == null || t.classList.toggle(
571
+ de,
572
+ a === "indeterminate"
573
+ ), t == null || t.classList.toggle(
574
+ fe,
575
+ a === "unchecked"
150
576
  );
151
577
  }
152
- f && r && (f.CanSelect = s ? 1 : 0);
153
- }, "syncTreeGridSelectionPanelState"), w = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ o((e, t) => {
578
+ d && r && (d.CanSelect = o ? 1 : 0);
579
+ }, "syncTreeGridSelectionPanelState"), X = /* @__PURE__ */ new Map(), ge = /* @__PURE__ */ i((e, n) => {
154
580
  if (typeof window > "u")
155
581
  return;
156
- const n = w.get(t);
157
- n !== void 0 && window.clearTimeout(n);
582
+ const t = X.get(n);
583
+ t !== void 0 && window.clearTimeout(t);
158
584
  const r = window.setTimeout(() => {
159
- w.delete(t), B(e, t);
585
+ X.delete(n), j(e, n);
160
586
  }, 0);
161
- w.set(t, r);
162
- }, "scheduleTreeGridSelectionPanelStateSync"), tt = /* @__PURE__ */ o((e, t) => {
163
- e.EnterMode = t;
164
- const n = Ne[t];
165
- if (!n)
587
+ X.set(n, r);
588
+ }, "scheduleTreeGridSelectionPanelStateSync"), et = /* @__PURE__ */ i((e, n) => {
589
+ e.EnterMode = n;
590
+ const t = rn[n];
591
+ if (!t)
166
592
  return;
167
593
  const r = e;
168
- r.Actions ?? (r.Actions = {}), r.Actions.OnEnter = n.onEnter, r.Actions.OnEnterEdit = n.onEnterEdit;
169
- }, "applyTreeGridDefaultEnterMode"), le = /* @__PURE__ */ o((e) => (e == null ? void 0 : e.startsWith("data:")) || (e == null ? void 0 : e.startsWith("blob:")), "isTreeGridInlineUrl"), Q = /* @__PURE__ */ new Map(), nt = /* @__PURE__ */ o((e) => {
594
+ r.Actions ?? (r.Actions = {}), r.Actions.OnEnter = t.onEnter, r.Actions.OnEnterEdit = t.onEnterEdit;
595
+ }, "applyTreeGridDefaultEnterMode"), ke = /* @__PURE__ */ i((e) => (e == null ? void 0 : e.startsWith("data:")) || (e == null ? void 0 : e.startsWith("blob:")), "isTreeGridInlineUrl"), Se = /* @__PURE__ */ new Map(), nt = /* @__PURE__ */ i((e) => {
170
596
  if (!e || !e.startsWith("data:"))
171
597
  return e;
172
- const t = Q.get(e);
173
- if (t)
174
- return t;
598
+ const n = Se.get(e);
599
+ if (n)
600
+ return n;
175
601
  try {
176
- const [n, r = ""] = e.split(",", 2), s = /^data:([^;]*)(;base64)?$/i.exec(n), f = (s == null ? void 0 : s[1]) || "application/octet-stream", T = s != null && s[2] ? atob(r) : decodeURIComponent(r), C = new Uint8Array(T.length);
177
- for (let R = 0; R < T.length; R += 1)
178
- C[R] = T.charCodeAt(R);
179
- const h = URL.createObjectURL(new Blob([C], { type: f }));
180
- return Q.set(e, h), h;
602
+ const [t, r = ""] = e.split(",", 2), o = /^data:([^;]*)(;base64)?$/i.exec(t), d = (o == null ? void 0 : o[1]) || "application/octet-stream", a = o != null && o[2] ? atob(r) : decodeURIComponent(r), u = new Uint8Array(a.length);
603
+ for (let g = 0; g < a.length; g += 1)
604
+ u[g] = a.charCodeAt(g);
605
+ const E = URL.createObjectURL(new Blob([u], { type: d }));
606
+ return Se.set(e, E), E;
181
607
  } catch {
182
608
  return e;
183
609
  }
184
- }, "resolveTreeGridInlineUrl"), P = /* @__PURE__ */ o((e) => {
185
- if (!e || le(e))
610
+ }, "resolveTreeGridInlineUrl"), z = /* @__PURE__ */ i((e) => {
611
+ if (!e || ke(e))
186
612
  return nt(e);
187
- const t = e.indexOf("#"), [n, r] = t >= 0 ? [e.slice(0, t), e.slice(t)] : [e, ""], s = n.includes("?") ? "&" : "?";
188
- return `${n}${s}noCache=${Date.now()}${r}`;
189
- }, "appendNoCacheQuery"), ee = /* @__PURE__ */ o((e, t, n) => {
613
+ const n = e.indexOf("#"), [t, r] = n >= 0 ? [e.slice(0, n), e.slice(n)] : [e, ""], o = t.includes("?") ? "&" : "?";
614
+ return `${t}${o}noCache=${Date.now()}${r}`;
615
+ }, "appendNoCacheQuery"), he = /* @__PURE__ */ i((e, n, t) => {
190
616
  if (!e)
191
617
  return;
192
- const r = n.canEdit, s = n.highlightColumns ?? [], f = n.highlightBackgroundColor;
193
- if (!(r === void 0 && !s.length)) {
618
+ const r = t.canEdit, o = t.highlightColumns ?? [], d = t.highlightBackgroundColor;
619
+ if (!(r === void 0 && !o.length)) {
194
620
  typeof e.StartUpdate == "function" && e.StartUpdate();
195
621
  try {
196
- r !== void 0 && (t.CanEdit = r), s.forEach((T) => {
197
- T && (e.SetValue(
198
- t,
199
- `${T}Class`,
200
- f ? ce : "",
622
+ r !== void 0 && (n.CanEdit = r), o.forEach((a) => {
623
+ a && (e.SetValue(
624
+ n,
625
+ `${a}Class`,
626
+ d ? me : "",
201
627
  0
202
- ), e.SetValue(t, `${T}Color`, f ?? "", 0));
628
+ ), e.SetValue(n, `${a}Color`, d ?? "", 0));
203
629
  });
204
630
  } finally {
205
631
  typeof e.EndUpdate == "function" && e.EndUpdate();
206
632
  }
207
- typeof e.RefreshRow == "function" && e.RefreshRow(t);
633
+ typeof e.RefreshRow == "function" && e.RefreshRow(n);
208
634
  }
209
- }, "syncTreeGridDeletedRowState"), rt = /* @__PURE__ */ o((e) => e ? le(e) || e.includes("assets") ? P(e) : P(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), ot = /* @__PURE__ */ o((e) => (typeof e == "object" || typeof e == "function") && e !== null && typeof e.then == "function", "isTreeGridPromiseLike"), it = /* @__PURE__ */ o((e, t, n, r) => {
210
- if (!(!e || n === "cancel")) {
211
- if (n === "remove") {
212
- e.RemoveRow(t), r(e);
635
+ }, "syncTreeGridDeletedRowState"), tt = /* @__PURE__ */ i((e) => e ? ke(e) || e.includes("assets") ? z(e) : z(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), rt = /* @__PURE__ */ i((e) => (typeof e == "object" || typeof e == "function") && e !== null && typeof e.then == "function", "isTreeGridPromiseLike"), it = /* @__PURE__ */ i((e, n, t, r) => {
636
+ if (!(!e || t === "cancel")) {
637
+ if (t === "remove") {
638
+ e.RemoveRow(n), r(e);
213
639
  return;
214
640
  }
215
- e.DeleteRowT(t, 3);
641
+ e.DeleteRowT(n, 3);
216
642
  }
217
- }, "applyTreeGridBeforeRowUndeleteAction"), ct = /* @__PURE__ */ o((e, t, n) => e ? { Url: rt(t) } : { Data: { Body: [Pe(n) ? [] : n] } }, "buildTreeGridDataSource"), Ut = /* @__PURE__ */ o(({
643
+ }, "applyTreeGridBeforeRowUndeleteAction"), ot = /* @__PURE__ */ i((e, n, t) => e ? { Url: tt(n) } : { Data: { Body: [en(t) ? [] : t] } }, "buildTreeGridDataSource"), kt = /* @__PURE__ */ i(({
218
644
  id: e,
219
- layoutUrl: t,
220
- layoutData: n,
221
- dataUrl: r,
222
- bodyData: s,
223
- useDataUrl: f,
224
- width: T,
225
- height: C,
226
- languageId: h
645
+ layoutUrl: n,
646
+ layoutData: t,
647
+ toolbarTotalCountFormula: r,
648
+ suppressCfg: o,
649
+ disabledAnimations: d,
650
+ dataUrl: a,
651
+ bodyData: u,
652
+ useDataUrl: E,
653
+ width: g,
654
+ height: h,
655
+ languageId: A
227
656
  }) => ({
228
657
  id: e,
229
- Layout: n ? { Data: O(n) } : { Url: P(t ?? "") },
230
- Data: ct(f, r, s),
658
+ Layout: t ? {
659
+ Data: K(
660
+ t,
661
+ d,
662
+ r,
663
+ o
664
+ )
665
+ } : { Url: z(n ?? "") },
666
+ Data: ot(E, a, u),
231
667
  Text: {
232
- Url: Re(h)
668
+ Url: Ke(A)
233
669
  },
234
- width: T,
235
- height: C,
670
+ width: g,
671
+ height: h,
236
672
  Debug: "Error"
237
- }), "buildTreeGridInitializationOptions"), te = /* @__PURE__ */ o((e) => ke(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), ne = /* @__PURE__ */ o((e) => {
673
+ }), "buildTreeGridInitializationOptions"), Ae = /* @__PURE__ */ i((e) => nn(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), Re = /* @__PURE__ */ i((e) => {
238
674
  if (typeof e == "number")
239
675
  return Number.isFinite(e) && e > 0 ? e : void 0;
240
676
  if (typeof e != "string")
241
677
  return;
242
- const t = e.trim();
243
- if (!t)
678
+ const n = e.trim();
679
+ if (!n)
244
680
  return;
245
- const n = Number(t);
246
- return Number.isFinite(n) && n > 0 ? n : void 0;
247
- }, "parseTreeGridPositiveNumber"), re = /* @__PURE__ */ o((e, t, n, r) => {
248
- if (!t || !n)
681
+ const t = Number(n);
682
+ return Number.isFinite(t) && t > 0 ? t : void 0;
683
+ }, "parseTreeGridPositiveNumber"), Y = /* @__PURE__ */ i((e, n, t, r) => {
684
+ if (!n || !t)
249
685
  return;
250
- const s = e.GetAttribute(t, n, r), f = ne(s);
251
- return f !== void 0 ? f : ne(
252
- t[`${n}${r}`]
686
+ const o = e.GetAttribute(n, t, r), d = Re(o);
687
+ return d !== void 0 ? d : Re(
688
+ n[`${t}${r}`]
253
689
  );
254
- }, "getTreeGridHeaderCellSpanAttribute"), fe = /* @__PURE__ */ o((e, t, n) => !t || !n || t.Fixed !== "Head" || (re(e, t, n, "Span") ?? 1) <= 1 ? !1 : (re(e, t, n, "RowSpan") ?? 1) === 1, "isTreeGridGroupHeaderCell"), oe = /* @__PURE__ */ o((e, t, n = !1) => {
255
- const r = typeof performance < "u" ? performance.now() : Date.now(), s = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((h) => h.Fixed === "Head") : [], f = typeof e.GetCols == "function" ? e.GetCols() : [];
256
- if (!s.length || !f.length)
690
+ }, "getTreeGridHeaderCellSpanAttribute"), st = /* @__PURE__ */ i((e, n, t) => !n || !t || n.Fixed !== "Head" || (Y(e, n, t, "Span") ?? 1) <= 1 ? !1 : (Y(e, n, t, "RowSpan") ?? 1) === 1, "isTreeGridGroupHeaderCell"), _e = /* @__PURE__ */ i((e, n, t) => {
691
+ const r = e.get(n);
692
+ if (r) {
693
+ r.add(t);
257
694
  return;
258
- const T = /* @__PURE__ */ new Set();
259
- let C = 0;
260
- typeof e.StartUpdate == "function" && e.StartUpdate();
261
- try {
262
- s.forEach((h) => {
263
- f.forEach((R) => {
264
- fe(e, h, R) && e.GetAttribute(h, R, J) !== "" && (e.SetAttribute(h, R, J, "", 0, 0), T.add(h), C += 1);
265
- });
695
+ }
696
+ e.set(n, /* @__PURE__ */ new Set([t]));
697
+ }, "addTreeGridHeaderButtonAttributeTarget"), Ne = /* @__PURE__ */ i((e, n, t, r) => {
698
+ const o = /* @__PURE__ */ new Map();
699
+ return n.forEach((d, a) => {
700
+ t.forEach((u, E) => {
701
+ if (!st(e, d, u) || (_e(o, d, u), !r))
702
+ return;
703
+ const g = Math.floor(Y(e, d, u, "Span") ?? 1), h = Math.min(t.length, E + g);
704
+ for (let A = a + 1; A < n.length; A += 1) {
705
+ const L = n[A];
706
+ for (let I = E; I < h; I += 1)
707
+ _e(o, L, t[I]);
708
+ }
266
709
  });
267
- } finally {
268
- typeof e.EndUpdate == "function" && e.EndUpdate();
269
- }
270
- T.size && (n && T.forEach((h) => {
271
- typeof e.RefreshRow == "function" && e.RefreshRow(h);
272
- }), ue(t, "group header button attribute apply"), de(t, "group header button attribute apply", r, {
273
- updatedCellCount: C,
274
- updatedRowCount: T.size
275
- }));
276
- }, "applyTreeGridGroupHeaderSortButtonAttributes"), st = /* @__PURE__ */ o((e) => Array.isArray(e) ? e.length : 0, "getTreeGridBodyDataCount"), ut = /* @__PURE__ */ o((e) => {
277
- const t = e == null ? void 0 : e.Visible;
278
- return !!e && t !== 0 && t !== !1 && t !== "0";
279
- }, "isVisibleTreeGridRow"), dt = /* @__PURE__ */ o((e) => {
280
- const t = e == null ? void 0 : e.Added;
281
- return !!e && t !== 0 && t !== !1 && t !== "0" && t !== void 0;
282
- }, "isAddedTreeGridRow"), p = /* @__PURE__ */ o((e) => !e || e.Fixed === "Foot" || !ut(e) ? !1 : e.Kind === "Data" || dt(e), "isDisplayTreeGridRow"), ae = /* @__PURE__ */ o((e) => Object.keys(e.Cols ?? {}).filter(Boolean), "getTreeGridColumnNames"), Te = /* @__PURE__ */ o((e) => {
710
+ }), o;
711
+ }, "getTreeGridGroupHeaderSortButtonTargets"), ct = /* @__PURE__ */ i((e, n, t, r) => {
712
+ var a;
713
+ if (!n || !t || n.Fixed !== "Head")
714
+ return !1;
715
+ const o = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((u) => u.Fixed === "Head") : [], d = typeof e.GetCols == "function" ? e.GetCols() : [];
716
+ return !o.length || !d.length ? !1 : ((a = Ne(
717
+ e,
718
+ o,
719
+ d,
720
+ r
721
+ ).get(n)) == null ? void 0 : a.has(t)) === !0;
722
+ }, "isTreeGridGroupHeaderSortButtonTarget"), Le = /* @__PURE__ */ i((e, n, t = !1, r = !0) => {
723
+ const o = typeof performance < "u" ? performance.now() : Date.now(), d = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((h) => h.Fixed === "Head") : [], a = typeof e.GetCols == "function" ? e.GetCols() : [];
724
+ if (!d.length || !a.length)
725
+ return;
726
+ const u = /* @__PURE__ */ new Set();
727
+ let E = 0;
728
+ const g = Ne(
729
+ e,
730
+ d,
731
+ a,
732
+ r
733
+ );
734
+ if (g.size) {
735
+ typeof e.StartUpdate == "function" && e.StartUpdate();
736
+ try {
737
+ g.forEach((h, A) => {
738
+ h.forEach((L) => {
739
+ e.GetAttribute(A, L, ue) !== "" && (e.SetAttribute(A, L, ue, "", 0, 0), u.add(A), E += 1);
740
+ });
741
+ });
742
+ } finally {
743
+ typeof e.EndUpdate == "function" && e.EndUpdate();
744
+ }
745
+ u.size && (t && u.forEach((h) => {
746
+ typeof e.RefreshRow == "function" && e.RefreshRow(h);
747
+ }), Ie(n, "group header button attribute apply"), Oe(n, "group header button attribute apply", o, {
748
+ updatedCellCount: E,
749
+ updatedRowCount: u.size
750
+ }));
751
+ }
752
+ }, "applyTreeGridGroupHeaderSortButtonAttributes"), lt = /* @__PURE__ */ i((e) => Array.isArray(e) ? e.length : 0, "getTreeGridBodyDataCount"), dt = /* @__PURE__ */ i((e) => {
753
+ const n = e == null ? void 0 : e.Visible;
754
+ return !!e && n !== 0 && n !== !1 && n !== "0";
755
+ }, "isVisibleTreeGridRow"), B = /* @__PURE__ */ i((e) => {
756
+ const n = e == null ? void 0 : e.Added;
757
+ return !!e && n !== 0 && n !== !1 && n !== "0" && n !== void 0;
758
+ }, "isAddedTreeGridRow"), _ = /* @__PURE__ */ i((e) => !e || e.Fixed === "Foot" || !dt(e) ? !1 : e.Kind === "Data" || B(e), "isDisplayTreeGridRow"), Ue = /* @__PURE__ */ i((e) => Object.keys(e.Cols ?? {}).filter(Boolean), "getTreeGridColumnNames"), Be = /* @__PURE__ */ i((e) => {
283
759
  if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
284
- const t = [];
285
- let n = e.GetFirst();
286
- for (; n; )
287
- t.push(n), n = e.GetNext(n);
288
- return t;
760
+ const n = [];
761
+ let t = e.GetFirst();
762
+ for (; t; )
763
+ n.push(t), t = e.GetNext(t);
764
+ return n;
289
765
  }
290
766
  return Object.values(e.Rows ?? {});
291
- }, "getTreeGridRows"), lt = /* @__PURE__ */ o((e, t) => {
767
+ }, "getTreeGridRows"), ft = /* @__PURE__ */ i((e, n) => {
292
768
  if (!e)
293
769
  return;
294
- const n = ae(e);
295
- Te(e).forEach((r) => {
296
- p(r) && t.set(
770
+ const t = Ue(e);
771
+ Be(e).forEach((r) => {
772
+ _(r) && n.set(
297
773
  r,
298
- new Map(n.map((s) => [s, se(e, r, s)]))
774
+ new Map(t.map((o) => [o, xe(e, r, o)]))
299
775
  );
300
776
  });
301
- }, "captureTreeGridChangeBaselines"), ft = /* @__PURE__ */ o((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), at = /* @__PURE__ */ o((e, t, n) => {
302
- const r = t;
303
- return ae(e).some((s) => s !== n && ft(r[`${s}Changed`]));
304
- }, "hasOtherTreeGridChangedCells"), Tt = /* @__PURE__ */ o((e, t, n) => {
305
- const r = t;
306
- r[`${n}Changed`] = 0, !y(t) && !at(e, t, n) && (r.Changed = 0);
307
- }, "clearTreeGridCellChangedState"), Gt = /* @__PURE__ */ o((e, t, n) => {
308
- const r = e.get(t);
309
- if (r != null && r.has(n))
310
- return r.get(n);
311
- if (y(t))
312
- return De(t, n) ?? "";
313
- }, "resolveTreeGridCellBaselineValue"), Et = /* @__PURE__ */ o(({
777
+ }, "captureTreeGridChangeBaselines"), ut = /* @__PURE__ */ i((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), Tt = /* @__PURE__ */ i((e, n, t) => {
778
+ const r = n;
779
+ return Ue(e).some((o) => o !== t && ut(r[`${o}Changed`]));
780
+ }, "hasOtherTreeGridChangedCells"), at = /* @__PURE__ */ i((e, n, t) => {
781
+ const r = n;
782
+ r[`${t}Changed`] = 0, !B(n) && !$(n) && !Tt(e, n, t) && (r.Changed = 0);
783
+ }, "clearTreeGridCellChangedState"), pt = /* @__PURE__ */ i((e, n, t) => {
784
+ const r = e.get(n);
785
+ if (r != null && r.has(t))
786
+ return r.get(t);
787
+ }, "resolveTreeGridCellBaselineValue"), Et = /* @__PURE__ */ i(({
314
788
  gridId: e,
315
- grid: t,
316
- row: n,
789
+ grid: n,
790
+ row: t,
317
791
  col: r,
318
- backgroundColor: s,
319
- baselineMap: f
792
+ backgroundColor: o,
793
+ baselineMap: d,
794
+ highlightRefresh: a
320
795
  }) => {
321
- if (!p(n))
796
+ if (!_(t) || B(t) || $(t))
322
797
  return;
323
- const T = Gt(f, n, r), C = se(t, n, r);
324
- if (T !== void 0 && C === T) {
325
- be(e, { row: n, col: r }), Tt(t, n, r), y(n) && ye(n, r);
798
+ const u = pt(d, t, r), E = xe(n, t, r);
799
+ if (u !== void 0 && E === u) {
800
+ je(e, { row: t, col: r }), at(n, t, r);
326
801
  return;
327
802
  }
328
- Le(e, {
329
- row: n,
803
+ ze(e, {
804
+ row: t,
330
805
  col: r,
331
- backgroundColor: s
332
- }), y(n) && ge(n, r);
333
- }, "syncTreeGridChangedCellHighlight"), ht = /* @__PURE__ */ o((e, t, n) => !t || !n || !p(t) ? !1 : e.CanEdit(t, n) === 1, "isEditableTreeGridCell"), Ct = /* @__PURE__ */ o((e, t, n) => {
334
- const r = e.GetAttribute(t, n, "Color");
806
+ backgroundColor: o,
807
+ refresh: a
808
+ });
809
+ }, "syncTreeGridChangedCellHighlight"), Ct = /* @__PURE__ */ i((e, n, t) => !n || !t || !_(n) ? !1 : e.CanEdit(n, t) === 1, "isEditableTreeGridCell"), Gt = /* @__PURE__ */ i((e, n, t) => {
810
+ const r = e.GetAttribute(n, t, "Color");
335
811
  return r != null && r !== "";
336
- }, "hasExplicitTreeGridCellColor"), St = /* @__PURE__ */ o((e, t, n, r) => {
337
- if (!(!t || r === void 0 || !ht(e, t, n) || Ct(e, t, n)))
338
- return r;
339
- }, "getEditableTreeGridCellDefaultColor"), b = /* @__PURE__ */ o((e, t, n, r) => e === r[0] && t === r[1] && n === r[2], "matchesTreeGridRgbColor"), ie = /* @__PURE__ */ o((e) => {
340
- const t = typeof e == "number" ? e : typeof e == "string" ? Ae(e) : void 0;
341
- if (!(t === void 0 || !Number.isFinite(t)))
342
- return [t >> 16 & 255, t >> 8 & 255, t & 255];
343
- }, "resolveTreeGridColorRgb"), pt = /* @__PURE__ */ o((e) => `#${e.map((t) => Math.max(0, Math.min(255, t)).toString(16).padStart(2, "0")).join("")}`, "stringifyTreeGridRgbColor"), Rt = /* @__PURE__ */ o((e, t, n) => {
344
- const r = /* @__PURE__ */ o((s, f) => Math.round(
345
- s * (1 - n) + f * n
346
- ), "blendChannel");
347
- return [
348
- r(e[0], t[0]),
349
- r(e[1], t[1]),
350
- r(e[2], t[2])
351
- ];
352
- }, "blendTreeGridRgbColor"), _t = /* @__PURE__ */ o((e) => (e == null ? void 0 : e.split(/\s+/).filter(Boolean)) ?? [], "getTreeGridClassTokens"), At = /* @__PURE__ */ o((e) => {
353
- const t = typeof e == "string" ? _t(e) : [];
354
- return j.length > 0 && j.every((n) => t.includes(n));
355
- }, "hasTreeGridChangedCellClass"), Ge = /* @__PURE__ */ o((e, t, n) => {
356
- if (!t || !n || !p(t))
812
+ }, "hasExplicitTreeGridCellColor"), Q = /* @__PURE__ */ i((e, n, t) => {
813
+ if (!n || !t || !_(n))
357
814
  return !1;
358
- const r = e.IsSelected(t, n);
815
+ const r = typeof e.IsFocused == "function" ? e.IsFocused(n, t) : e.FRow === n && e.FCol === t;
359
816
  return r !== 0 && r !== !1 && r !== void 0 && r !== null;
360
- }, "isTreeGridSelectedCellState"), bt = /* @__PURE__ */ o((e, t, n, r) => {
361
- if (!t || !Ge(e, t, n) || !At(e.GetAttribute(t, n, "Class")))
362
- return;
363
- const s = ie(r), f = ie(
364
- e.GetAttribute(t, n, "Color") ?? _e
817
+ }, "isTreeGridFocusedCellState"), N = /* @__PURE__ */ i((e, n, t) => {
818
+ if (!n || !t || !_(n))
819
+ return !1;
820
+ const r = e.IsSelected(n, t);
821
+ return r !== 0 && r !== !1 && r !== void 0 && r !== null;
822
+ }, "isTreeGridSelectedCellState"), ve = /* @__PURE__ */ i((e) => {
823
+ if (!Te.length)
824
+ return !1;
825
+ const n = e.split(/\s+/).filter(Boolean);
826
+ return Te.every(
827
+ (t) => n.includes(t)
365
828
  );
366
- if (!(!s || !f))
367
- return pt(
368
- Rt(
369
- s,
370
- f,
371
- We
372
- )
373
- );
374
- }, "resolveTreeGridSelectedHighlightBackgroundColor"), yt = /* @__PURE__ */ o((e, t, n) => !t || !n || !p(t) || e.ARow !== t || e.ACol !== n ? !1 : e.CanEdit(t, n) === 0, "isTreeGridReadonlyHoveredCellState"), Lt = /* @__PURE__ */ o((e, t, n) => !t || !n || !p(t) || e.ARow !== t || e.ACol !== n ? !1 : e.CanEdit(t, n) === 2, "isTreeGridPreviewHoveredCellState"), gt = /* @__PURE__ */ o(({
829
+ }, "hasTreeGridChangedCellDisplayClass"), gt = /* @__PURE__ */ i((e) => {
830
+ if (!(!e || e.split(/\s+/).includes(ce) || !ve(e)))
831
+ return `${e} ${ce}`;
832
+ }, "appendTreeGridSelectedChangedCellDisplayClass"), St = /* @__PURE__ */ i((e) => !e || !_(e) ? !1 : Object.entries(e).some(([n, t]) => n.endsWith("Class") && typeof t == "string" && ve(t)), "hasTreeGridChangedCellDisplayClassInRow"), ht = /* @__PURE__ */ i((e, n) => {
833
+ if (!n || !St(n) || typeof e.RefreshRow != "function")
834
+ return;
835
+ const t = n;
836
+ window.setTimeout(() => {
837
+ e.RefreshRow(t);
838
+ }, 0);
839
+ }, "scheduleTreeGridSelectionChangedClassRefresh"), At = /* @__PURE__ */ i((e, n, t, r) => {
840
+ if (!(!n || r === void 0 || !Ct(e, n, t) || B(n) || $(n) || Q(e, n, t) || N(e, n, t) || Gt(e, n, t)))
841
+ return r;
842
+ }, "getEditableTreeGridCellDefaultColor"), w = /* @__PURE__ */ i((e, n, t, r) => e === r[0] && n === r[1] && t === r[2], "matchesTreeGridRgbColor"), Rt = /* @__PURE__ */ i((e, n, t) => fn.has(e.GetType(n, t)), "isTreeGridNativeInputEditType"), _t = /* @__PURE__ */ i((e, n, t) => !n || !t || !_(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 0, "isTreeGridReadonlyHoveredCellState"), Lt = /* @__PURE__ */ i((e, n, t) => !n || !t || !_(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 2, "isTreeGridPreviewHoveredCellState"), mt = /* @__PURE__ */ i(({
375
843
  grid: e,
376
- row: t,
377
- col: n,
844
+ row: n,
845
+ col: t,
378
846
  r,
379
- g: s,
380
- b: f,
381
- selectedCellBackgroundColor: T,
382
- hoverCellBackgroundColor: C
847
+ g: o,
848
+ b: d,
849
+ focusedCellBackgroundColor: a,
850
+ selectedCellBackgroundColor: u,
851
+ hoverCellBackgroundColor: E
383
852
  }) => {
384
- const h = bt(
385
- e,
386
- t,
387
- n,
388
- T
389
- );
390
- if (h)
391
- return h;
392
- if (Ge(e, t, n) && b(r, s, f, Ue))
393
- return T;
394
- if (yt(e, t, n) && (b(r, s, f, ve) || b(r, s, f, Fe)) || Lt(e, t, n) && (b(r, s, f, $e) || b(r, s, f, Ve) || b(r, s, f, Me)))
395
- return C;
396
- }, "resolveTreeGridStateBackgroundColor"), vt = /* @__PURE__ */ o((e) => {
853
+ if (Q(e, n, t))
854
+ return a;
855
+ if (N(e, n, t))
856
+ return u;
857
+ if (_t(e, n, t) && (w(r, o, d, on) || w(r, o, d, sn)) || Lt(e, n, t) && (w(r, o, d, cn) || w(r, o, d, ln) || w(r, o, d, dn)))
858
+ return E;
859
+ }, "resolveTreeGridStateBackgroundColor"), Nt = /* @__PURE__ */ i((e) => {
397
860
  if (!e)
398
861
  return !1;
399
862
  if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
400
- let t = e.GetFirst();
401
- for (; t; ) {
402
- if (p(t))
863
+ let n = e.GetFirst();
864
+ for (; n; ) {
865
+ if (_(n))
403
866
  return !0;
404
- t = e.GetNext(t);
867
+ n = e.GetNext(n);
405
868
  }
406
869
  return !1;
407
870
  }
408
- return Object.values(e.Rows ?? {}).some((t) => p(t));
409
- }, "hasTreeGridDisplayDataRows"), Ft = /* @__PURE__ */ o((e, t, n) => {
410
- var s;
411
- const r = (s = e.Data) == null ? void 0 : s.Data;
871
+ return Object.values(e.Rows ?? {}).some((n) => _(n));
872
+ }, "hasTreeGridDisplayDataRows"), Ut = /* @__PURE__ */ i((e, n, t) => {
873
+ var o;
874
+ const r = (o = e.Data) == null ? void 0 : o.Data;
412
875
  e.Data.Data = {
413
876
  ...r,
414
- Data: { Body: [t || []] },
877
+ Data: { Body: [n || []] },
415
878
  Url: ""
416
- }, e.ReloadBody(n);
417
- }, "replaceTreeGridBodyData"), $t = /* @__PURE__ */ o(({
879
+ }, e.ReloadBody(t);
880
+ }, "replaceTreeGridBodyData"), Bt = /* @__PURE__ */ i(({
418
881
  id: e,
419
- latestEventHandlersRef: t,
420
- layoutHasExplicitEnterModeRef: n,
882
+ latestEventHandlersRef: n,
883
+ layoutHasExplicitEnterModeRef: t,
421
884
  highlightEditableCellsRef: r,
422
- highlightChangedCellsRef: s,
423
- syncDeletedRowCanEditRef: f,
424
- editableCellBackgroundColorValueRef: T,
425
- changedCellBackgroundColorRef: C,
426
- selectedCellBackgroundColorRef: h,
427
- hoverCellBackgroundColorRef: R,
428
- changedCellBaselineRef: m,
429
- treeGridInstanceRef: x,
430
- treeGridInitStartedAtRef: N,
431
- latestLayoutOverridesRef: Ee,
432
- appliedLayoutOverridesRef: he,
433
- appliedBodyDataPropRef: Ce,
434
- hasAppliedInitialLayoutRef: U,
435
- syncHasDisplayDataRows: A,
436
- setIsTreeGridReady: Se
885
+ highlightChangedCellsRef: o,
886
+ syncDeletedRowCanEditRef: d,
887
+ editableCellBackgroundColorValueRef: a,
888
+ changedCellBackgroundColorRef: u,
889
+ focusedCellBackgroundColorRef: E,
890
+ selectedCellBackgroundColorRef: g,
891
+ hoverCellBackgroundColorRef: h,
892
+ changedCellBaselineRef: A,
893
+ treeGridInstanceRef: L,
894
+ treeGridInitStartedAtRef: I,
895
+ latestLayoutOverridesRef: Ve,
896
+ latestToolbarTotalCountFormulaRef: H,
897
+ latestSuppressCfgRef: ee,
898
+ latestHideChildHeaderSortButtonsRef: v,
899
+ latestDisabledAnimationsRef: ne,
900
+ appliedLayoutOverridesRef: Xe,
901
+ appliedBodyDataPropRef: Me,
902
+ hasAppliedInitialLayoutRef: te,
903
+ syncHasDisplayDataRows: O,
904
+ setIsTreeGridReady: Je
437
905
  }) => {
438
- const E = t.current;
439
- if (window.TGSetEvent("OnRowAdd", e, (i, c) => {
440
- var u, d;
441
- c.CanEdit = 1, c.CanDelete = 1, (d = (u = t.current) == null ? void 0 : u.onRowAdd) == null || d.call(u, i, c);
442
- }), window.TGSetEvent("OnRowAdded", e, (i) => {
443
- A(i);
444
- }), window.TGSetEvent("OnRowRemove", e, (i) => {
445
- A(i);
446
- }), window.TGSetEvent("OnCanRowDelete", e, (i, c, u) => {
447
- var a;
448
- if (u !== 3)
449
- return u;
450
- const d = (a = t.current) == null ? void 0 : a.onBeforeRowUndelete;
451
- if (typeof d != "function")
452
- return u;
453
- const l = /* @__PURE__ */ o((G) => {
906
+ const G = n.current;
907
+ if (window.TGSetEvent("OnRowAdd", e, (s, c) => {
908
+ var l, f;
909
+ c.CanEdit = 1, c.CanDelete = 1, (f = (l = n.current) == null ? void 0 : l.onRowAdd) == null || f.call(l, s, c);
910
+ }), window.TGSetEvent("OnRowAdded", e, (s) => {
911
+ O(s);
912
+ }), window.TGSetEvent("OnRowRemove", e, (s) => {
913
+ O(s);
914
+ }), window.TGSetEvent("OnCanRowDelete", e, (s, c, l) => {
915
+ var p;
916
+ if (l !== 3)
917
+ return l;
918
+ const f = (p = n.current) == null ? void 0 : p.onBeforeRowUndelete;
919
+ if (typeof f != "function")
920
+ return l;
921
+ const T = /* @__PURE__ */ i((C) => {
454
922
  window.setTimeout(() => {
455
923
  it(
456
- x.current ?? i,
924
+ L.current ?? s,
457
925
  c,
458
- G,
459
- A
926
+ C,
927
+ O
460
928
  );
461
929
  }, 0);
462
930
  }, "scheduleAction");
463
931
  try {
464
- const G = d(i, c);
465
- return ot(G) ? (G.then(l).catch(() => {
466
- l("undelete");
467
- }), 0) : (l(G), 0);
932
+ const C = f(s, c);
933
+ return rt(C) ? (C.then(T).catch(() => {
934
+ T("undelete");
935
+ }), 0) : (T(C), 0);
468
936
  } catch {
469
- return l("undelete"), 0;
937
+ return T("undelete"), 0;
470
938
  }
471
- }), typeof (E == null ? void 0 : E.onRowClick) == "function" || typeof (E == null ? void 0 : E.onInternalCellClick) == "function") {
472
- const i = D((c, u, d, l, a, G) => {
473
- var S, _;
474
- (_ = (S = t.current) == null ? void 0 : S.onRowClick) == null || _.call(
475
- S,
939
+ }), typeof (G == null ? void 0 : G.onRowClick) == "function" || typeof (G == null ? void 0 : G.onInternalCellClick) == "function") {
940
+ const s = V((c, l, f, T, p, C) => {
941
+ var R, m;
942
+ (m = (R = n.current) == null ? void 0 : R.onRowClick) == null || m.call(
943
+ R,
476
944
  c,
477
- u,
478
- d,
479
945
  l,
480
- a,
481
- G
946
+ f,
947
+ T,
948
+ p,
949
+ C
482
950
  );
483
951
  }, 300);
484
- window.TGSetEvent("OnClick", e, (c, u, d, l, a, G) => {
485
- var _, F, $;
486
- const S = (F = (_ = t.current) == null ? void 0 : _.onInternalCellClick) == null ? void 0 : F.call(
487
- _,
952
+ window.TGSetEvent("OnClick", e, (c, l, f, T, p, C) => {
953
+ var m, ie, oe;
954
+ const R = (ie = (m = n.current) == null ? void 0 : m.onInternalCellClick) == null ? void 0 : ie.call(
955
+ m,
488
956
  c,
489
- u,
490
- d,
491
957
  l,
492
- a,
493
- G
958
+ f,
959
+ T,
960
+ p,
961
+ C
494
962
  );
495
- if (S !== void 0)
496
- return S;
497
- typeof (($ = t.current) == null ? void 0 : $.onRowClick) == "function" && i(c, u, d, l, a, G);
963
+ if (R !== void 0)
964
+ return R;
965
+ typeof ((oe = n.current) == null ? void 0 : oe.onRowClick) == "function" && s(c, l, f, T, p, C);
498
966
  });
499
967
  }
500
- (typeof (E == null ? void 0 : E.onClickButton) == "function" || typeof (E == null ? void 0 : E.onInternalButtonClick) == "function") && window.TGSetEvent(
968
+ (typeof (G == null ? void 0 : G.onClickButton) == "function" || typeof (G == null ? void 0 : G.onInternalButtonClick) == "function") && window.TGSetEvent(
501
969
  "OnClickButton",
502
970
  e,
503
- (i, c, u, d) => {
504
- var a, G, S, _;
505
- const l = (G = (a = t.current) == null ? void 0 : a.onInternalButtonClick) == null ? void 0 : G.call(
506
- a,
507
- i,
971
+ (s, c, l, f) => {
972
+ var p, C, R, m;
973
+ const T = (C = (p = n.current) == null ? void 0 : p.onInternalButtonClick) == null ? void 0 : C.call(
974
+ p,
975
+ s,
508
976
  c,
509
- u,
510
- d
977
+ l,
978
+ f
511
979
  );
512
- if (l !== void 0)
513
- return l;
514
- (_ = (S = t.current) == null ? void 0 : S.onClickButton) == null || _.call(
515
- S,
516
- i,
980
+ if (T !== void 0)
981
+ return T;
982
+ (m = (R = n.current) == null ? void 0 : R.onClickButton) == null || m.call(
983
+ R,
984
+ s,
517
985
  c,
518
- u,
519
- d
986
+ l,
987
+ f
520
988
  );
521
989
  }
522
- ), typeof (E == null ? void 0 : E.onInternalKeyDown) == "function" && (window.TGSetEvent(
990
+ ), typeof (G == null ? void 0 : G.onInternalKeyDown) == "function" && (window.TGSetEvent(
523
991
  "OnKeyDown",
524
992
  e,
525
- (i, c, u, d, l) => {
526
- var a, G;
527
- return (G = (a = t.current) == null ? void 0 : a.onInternalKeyDown) == null ? void 0 : G.call(a, i, c, u, d, l);
993
+ (s, c, l, f, T) => {
994
+ var p, C;
995
+ return (C = (p = n.current) == null ? void 0 : p.onInternalKeyDown) == null ? void 0 : C.call(p, s, c, l, f, T);
528
996
  }
529
997
  ), window.TGSetEvent(
530
998
  "OnKeyPress",
531
999
  e,
532
- (i, c, u, d, l) => {
533
- var a, G;
534
- return (G = (a = t.current) == null ? void 0 : a.onInternalKeyDown) == null ? void 0 : G.call(a, i, c, u, d, l);
1000
+ (s, c, l, f, T) => {
1001
+ var p, C;
1002
+ return (C = (p = n.current) == null ? void 0 : p.onInternalKeyDown) == null ? void 0 : C.call(p, s, c, l, f, T);
535
1003
  }
536
- )), typeof (E == null ? void 0 : E.onInternalStartEdit) == "function" && window.TGSetEvent(
1004
+ )), typeof (G == null ? void 0 : G.onInternalStartEdit) == "function" && window.TGSetEvent(
537
1005
  "OnStartEdit",
538
1006
  e,
539
- (i, c, u) => {
540
- var d, l;
541
- return (l = (d = t.current) == null ? void 0 : d.onInternalStartEdit) == null ? void 0 : l.call(
542
- d,
543
- i,
1007
+ (s, c, l) => {
1008
+ var f, T;
1009
+ return (T = (f = n.current) == null ? void 0 : f.onInternalStartEdit) == null ? void 0 : T.call(
1010
+ f,
1011
+ s,
544
1012
  c,
545
- u
1013
+ l
546
1014
  );
547
1015
  }
548
- ), window.TGSetEvent("OnRowDelete", e, (i, c, u) => {
549
- var l, a;
550
- const d = y(c) ? V(c) : [];
551
- ee(i, c, {
552
- canEdit: f.current !== !1 ? 2 : void 0,
553
- highlightColumns: d
554
- }), A(i), (a = (l = t.current) == null ? void 0 : l.onRowDelete) == null || a.call(
555
- l,
556
- i,
1016
+ ), window.TGSetEvent("OnRowDelete", e, (s, c, l) => {
1017
+ var T, p;
1018
+ const f = $(c) ? se(c) : [];
1019
+ he(s, c, {
1020
+ canEdit: d.current !== !1 ? 2 : void 0,
1021
+ highlightColumns: f
1022
+ }), O(s), (p = (T = n.current) == null ? void 0 : T.onRowDelete) == null || p.call(
1023
+ T,
1024
+ s,
557
1025
  c,
558
- u
1026
+ l
559
1027
  );
560
- }), window.TGSetEvent("OnRowUndelete", e, (i, c) => {
561
- var d, l;
562
- const u = y(c) ? V(c) : [];
563
- ee(i, c, {
564
- canEdit: f.current !== !1 ? 1 : void 0,
565
- highlightColumns: u,
566
- highlightBackgroundColor: u.length ? C.current : void 0
567
- }), A(i), (l = (d = t.current) == null ? void 0 : d.onRowUndelete) == null || l.call(d, i, c);
568
- }), window.TGSetEvent("OnGetDefaultColor", e, (i, c, u) => {
569
- if (!(!r.current || !p(c)))
570
- return St(
571
- i,
1028
+ }), window.TGSetEvent("OnRowUndelete", e, (s, c) => {
1029
+ var f, T;
1030
+ const l = $(c) ? se(c) : [];
1031
+ he(s, c, {
1032
+ canEdit: d.current !== !1 ? 1 : void 0,
1033
+ highlightColumns: l,
1034
+ highlightBackgroundColor: l.length ? u.current : void 0
1035
+ }), O(s), (T = (f = n.current) == null ? void 0 : f.onRowUndelete) == null || T.call(f, s, c);
1036
+ }), window.TGSetEvent("OnGetDefaultColor", e, (s, c, l) => {
1037
+ if (!(!r.current || !_(c)))
1038
+ return At(
1039
+ s,
572
1040
  c,
573
- u,
574
- T.current
1041
+ l,
1042
+ a.current
575
1043
  );
576
- }), window.TGSetEvent("OnGetColor", e, (i, c, u, d, l, a, G) => {
577
- if (!G)
578
- return gt({
579
- grid: i,
1044
+ }), window.TGSetEvent("OnGetColor", e, (s, c, l, f, T, p, C) => {
1045
+ if (!C)
1046
+ return mt({
1047
+ grid: s,
580
1048
  row: c,
581
- col: u,
582
- r: d,
583
- g: l,
584
- b: a,
585
- selectedCellBackgroundColor: h.current,
586
- hoverCellBackgroundColor: R.current
1049
+ col: l,
1050
+ r: f,
1051
+ g: T,
1052
+ b: p,
1053
+ focusedCellBackgroundColor: E.current,
1054
+ selectedCellBackgroundColor: g.current,
1055
+ hoverCellBackgroundColor: h.current
587
1056
  });
588
- }), window.TGSetEvent("OnAfterValueChanged", e, (i, c, u, d) => {
589
- var a, G;
590
- s.current && p(c) && Et({
591
- gridId: e,
592
- grid: i,
593
- row: c,
594
- col: u,
595
- backgroundColor: C.current,
596
- baselineMap: m.current
597
- });
598
- const l = ((a = t.current) == null ? void 0 : a.onAfterValueChanged) ?? ((G = t.current) == null ? void 0 : G.onRowChange);
599
- l == null || l(i, c, u, d);
1057
+ }), window.TGSetEvent("OnGetClass", e, (s, c, l, f) => {
1058
+ if (!(typeof f != "string" || !N(s, c, l)))
1059
+ return gt(f);
1060
+ }), window.TGSetEvent("OnAfterValueChanged", e, (s, c, l, f) => {
1061
+ var p, C;
1062
+ if (o.current && _(c)) {
1063
+ const R = !Rt(s, c, l) || N(s, c, l) && !Q(s, c, l);
1064
+ Et({
1065
+ gridId: e,
1066
+ grid: s,
1067
+ row: c,
1068
+ col: l,
1069
+ backgroundColor: u.current,
1070
+ baselineMap: A.current,
1071
+ highlightRefresh: R
1072
+ });
1073
+ }
1074
+ const T = ((p = n.current) == null ? void 0 : p.onAfterValueChanged) ?? ((C = n.current) == null ? void 0 : C.onRowChange);
1075
+ T == null || T(s, c, l, f);
600
1076
  });
601
- const v = D((i) => {
602
- var u, d;
603
- const c = i.GetSelRows() ?? [];
604
- (d = (u = t.current) == null ? void 0 : u.onSelect) == null || d.call(
605
- u,
606
- me(i, c)
1077
+ const re = V((s) => {
1078
+ var l, f;
1079
+ const c = s.GetSelRows() ?? [];
1080
+ (f = (l = n.current) == null ? void 0 : l.onSelect) == null || f.call(
1081
+ l,
1082
+ Ye(s, c)
607
1083
  );
608
1084
  }, 100);
609
- window.TGSetEvent("OnSelect", e, (i, c, u, d, l) => {
610
- var a;
611
- l || (q(i, e), typeof ((a = t.current) == null ? void 0 : a.onSelect) == "function" && v(i));
612
- }), window.TGSetEvent("OnSelectAll", e, (i, c, u, d) => {
613
- var l;
614
- d || (q(i, e), typeof ((l = t.current) == null ? void 0 : l.onSelect) == "function" && v(i));
615
- }), typeof (E == null ? void 0 : E.onSave) == "function" && window.TGSetEvent("OnSave", e, (i, c, u) => {
616
- var d, l;
617
- (l = (d = t.current) == null ? void 0 : d.onSave) == null || l.call(
618
- d,
619
- i,
1085
+ window.TGSetEvent("OnSelect", e, (s, c, l, f, T) => {
1086
+ var p;
1087
+ T || (ht(s, c), ge(s, e), typeof ((p = n.current) == null ? void 0 : p.onSelect) == "function" && re(s));
1088
+ }), window.TGSetEvent("OnSelectAll", e, (s, c, l, f) => {
1089
+ var T;
1090
+ f || (ge(s, e), typeof ((T = n.current) == null ? void 0 : T.onSelect) == "function" && re(s));
1091
+ }), typeof (G == null ? void 0 : G.onSave) == "function" && window.TGSetEvent("OnSave", e, (s, c, l) => {
1092
+ var f, T;
1093
+ (T = (f = n.current) == null ? void 0 : f.onSave) == null || T.call(
1094
+ f,
1095
+ s,
620
1096
  c,
621
- u
1097
+ l
622
1098
  );
623
- }), window.TGSetEvent("OnSort", e, (i, c) => {
624
- var u;
625
- if (!(!c || !fe(i, i.ARow, c)))
626
- return ue(e, "group header sort blocked"), Be(e, "group header sort blocked", {
627
- rowId: (u = i.ARow) == null ? void 0 : u.id,
1099
+ }), window.TGSetEvent("OnSort", e, (s, c) => {
1100
+ var l;
1101
+ if (!(!c || !ct(
1102
+ s,
1103
+ s.ARow,
1104
+ c,
1105
+ v.current !== !1
1106
+ )))
1107
+ return Ie(e, "group header sort blocked"), He(e, "group header sort blocked", {
1108
+ rowId: (l = s.ARow) == null ? void 0 : l.id,
628
1109
  col: c
629
1110
  }), -1;
630
- }), window.TGSetEvent("OnRenderStart", e, (i) => {
631
- B(i, e), oe(i, e, !1);
632
- }), window.TGSetEvent("OnRenderFinish", e, (i) => {
633
- B(i, e);
634
- }), window.TGSetEvent("OnDataGet", e, (i, c, u) => {
635
- if ((c == null ? void 0 : c.Name) === "Layout" && typeof u == "string") {
636
- n.current = X(u);
637
- const d = O(u);
638
- return d === u ? null : d;
1111
+ }), window.TGSetEvent("OnRenderStart", e, (s) => {
1112
+ j(s, e), Le(
1113
+ s,
1114
+ e,
1115
+ !1,
1116
+ v.current !== !1
1117
+ );
1118
+ }), window.TGSetEvent("OnRenderFinish", e, (s) => {
1119
+ j(s, e);
1120
+ }), window.TGSetEvent("OnDataGet", e, (s, c, l) => {
1121
+ if ((c == null ? void 0 : c.Name) === "Layout" && typeof l == "string") {
1122
+ t.current = ae(l);
1123
+ const f = K(
1124
+ l,
1125
+ ne.current,
1126
+ H.current,
1127
+ ee.current
1128
+ );
1129
+ return f === l ? null : f;
639
1130
  }
640
1131
  return null;
641
- }), window.TGSetEvent("OnDataParse", e, (i, c, u) => {
642
- if ((c == null ? void 0 : c.Name) === "Layout" && typeof u == "string") {
643
- n.current = X(u);
644
- const d = O(u);
645
- return d === u ? null : d;
1132
+ }), window.TGSetEvent("OnDataParse", e, (s, c, l) => {
1133
+ if ((c == null ? void 0 : c.Name) === "Layout" && typeof l == "string") {
1134
+ t.current = ae(l);
1135
+ const f = K(
1136
+ l,
1137
+ ne.current,
1138
+ H.current,
1139
+ ee.current
1140
+ );
1141
+ return f === l ? null : f;
646
1142
  }
647
1143
  return null;
648
1144
  }), window.TGSetEvent(
649
1145
  "OnReady",
650
1146
  e,
651
- D((i) => {
652
- var c, u;
653
- if (!U.current) {
654
- const d = Ee.current;
655
- U.current = !0, !n.current && (i.EnterMode === void 0 || i.EnterMode === null || i.EnterMode === 0) && tt(i, xe), we(i, d), x.current = i, he.current = d, Ce.current = te(i), m.current = /* @__PURE__ */ new WeakMap(), lt(i, m.current), A(i), Se(!0), oe(i, e, !0), de(e, "TreeGrid init ready", N.current, {
656
- bodyRowCount: st(
657
- te(i)
1147
+ V((s) => {
1148
+ var c, l;
1149
+ if (!te.current) {
1150
+ const f = Ve.current;
1151
+ te.current = !0, !t.current && (s.EnterMode === void 0 || s.EnterMode === null || s.EnterMode === 0) && et(s, tn), Ze(s, f), L.current = s, Xe.current = f, Me.current = Ae(s), A.current = /* @__PURE__ */ new WeakMap(), ft(s, A.current), O(s), Je(!0), Le(
1152
+ s,
1153
+ e,
1154
+ !0,
1155
+ v.current !== !1
1156
+ ), Oe(e, "TreeGrid init ready", I.current, {
1157
+ bodyRowCount: lt(
1158
+ Ae(s)
658
1159
  )
659
- }), N.current = null, (u = (c = t.current) == null ? void 0 : c.onReady) == null || u.call(c, i);
1160
+ }), I.current = null, (l = (c = n.current) == null ? void 0 : c.onReady) == null || l.call(c, s);
660
1161
  }
661
1162
  }, 100)
662
1163
  );
663
1164
  }, "bindTreeGridEvents");
664
1165
  export {
665
- Nt as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
666
- $t as bindTreeGridEvents,
667
- Ut as buildTreeGridInitializationOptions,
668
- lt as captureTreeGridChangeBaselines,
669
- st as getTreeGridBodyDataCount,
670
- vt as hasTreeGridDisplayDataRows,
671
- X as hasTreeGridExplicitEnterMode,
672
- Ft as replaceTreeGridBodyData,
1166
+ Ft as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
1167
+ Bt as bindTreeGridEvents,
1168
+ kt as buildTreeGridInitializationOptions,
1169
+ ft as captureTreeGridChangeBaselines,
1170
+ lt as getTreeGridBodyDataCount,
1171
+ Nt as hasTreeGridDisplayDataRows,
1172
+ ae as hasTreeGridExplicitEnterMode,
1173
+ Ut as replaceTreeGridBodyData,
673
1174
  Et as syncTreeGridChangedCellHighlight
674
1175
  };
675
1176
  //# sourceMappingURL=treeGridRuntime.js.map