@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.
- package/dist/_virtual/index20.js +2 -2
- package/dist/_virtual/index21.js +2 -2
- package/dist/_virtual/index22.js +2 -2
- package/dist/components/OwpTable/OwpDataTable.js +109 -104
- package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
- package/dist/components/OwpTable/OwpFieldTable.js +1 -1
- package/dist/components/OwpTable/OwpFieldTable.js.map +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +475 -427
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +335 -288
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/constants/gridTheme.js +8 -7
- package/dist/constants/gridTheme.js.map +1 -1
- package/dist/constants/treeGrid.js +26 -25
- package/dist/constants/treeGrid.js.map +1 -1
- package/dist/constants.js +25 -24
- package/dist/features/themePreview/components/ThemePreviewCanvasSections.js +120 -114
- package/dist/features/themePreview/components/ThemePreviewCanvasSections.js.map +1 -1
- package/dist/features/themePreview/configs/grid.js +1 -0
- package/dist/features/themePreview/configs/grid.js.map +1 -1
- package/dist/features/themePreview/utils/themePreviewDefinitions.js +4 -0
- package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +1 -1
- package/dist/index.js +54 -56
- package/dist/index.js.map +1 -1
- package/dist/layout/components/menus/PasswordChangeMenu.js +5 -5
- 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
- package/dist/node_modules/.pnpm/autosuggest-highlight@3.3.4/node_modules/autosuggest-highlight/match/index.js +1 -1
- package/dist/node_modules/.pnpm/autosuggest-highlight@3.3.4/node_modules/autosuggest-highlight/parse/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
- package/dist/owp-app.css +1 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +2 -1
- package/dist/types/constants/gridTheme.d.ts +2 -0
- package/dist/types/constants/treeGrid.d.ts +1 -0
- package/dist/types/features/themePreview/configs/grid.d.ts +1 -0
- package/dist/types/features/themePreview/configs/settings.d.ts +1 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types/types/OwpGridThemeTypes.d.ts +1 -0
- package/dist/types/utils/treeGridUtil.d.ts +42 -0
- package/dist/utils/treeGridUtil.js +256 -163
- package/dist/utils/treeGridUtil.js.map +1 -1
- package/dist/utils.js +31 -30
- package/package.json +1 -2
- package/dist/components/OwpMrtTable/OwpMrtTable.js +0 -717
- package/dist/components/OwpMrtTable/OwpMrtTable.js.map +0 -1
- package/dist/components/OwpMrtTable/internal/OwpMrtTableNoDataOverlay.js +0 -54
- package/dist/components/OwpMrtTable/internal/OwpMrtTableNoDataOverlay.js.map +0 -1
- package/dist/components/OwpMrtTable/internal/OwpMrtTableTopToolbar.js +0 -102
- package/dist/components/OwpMrtTable/internal/OwpMrtTableTopToolbar.js.map +0 -1
- package/dist/components/OwpMrtTable/utils/parseFromValuesOrFunc.js +0 -7
- package/dist/components/OwpMrtTable/utils/parseFromValuesOrFunc.js.map +0 -1
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/node_modules/.pnpm/@tanstack_match-sorter-utils@8.19.4/node_modules/@tanstack/match-sorter-utils/build/lib/index.js +0 -554
- 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
- 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
- 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
- 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
- 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
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.20.5/node_modules/@tanstack/table-core/build/lib/index.js +0 -2055
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.20.5/node_modules/@tanstack/table-core/build/lib/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -454
- package/dist/node_modules/.pnpm/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -54
- package/dist/node_modules/.pnpm/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/utils.js.map +0 -1
- package/dist/node_modules/.pnpm/highlight-words@2.0.0/node_modules/highlight-words/dist/highlight-words.js +0 -92
- package/dist/node_modules/.pnpm/highlight-words@2.0.0/node_modules/highlight-words/dist/highlight-words.js.map +0 -1
- package/dist/node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/dist/index.esm.js +0 -2440
- package/dist/node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/dist/index.esm.js.map +0 -1
- package/dist/node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/locales/ko/index.esm.js +0 -98
- 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
- package/dist/types/components/OwpMrtTable/OwpMrtTable.d.ts +0 -25
- package/dist/types/components/OwpMrtTable/index.d.ts +0 -1
- package/dist/types/components/OwpMrtTable/internal/OwpMrtTableNoDataOverlay.d.ts +0 -14
- package/dist/types/components/OwpMrtTable/internal/OwpMrtTableTopToolbar.d.ts +0 -6
- package/dist/types/components/OwpMrtTable/utils/parseFromValuesOrFunc.d.ts +0 -11
|
@@ -1,160 +1,217 @@
|
|
|
1
|
-
var
|
|
2
|
-
var l = (t, e) =>
|
|
3
|
-
import { TREEGRID_CELL_CHANGED_CLASS as
|
|
4
|
-
import { TREEGRID_INPUT_CELL_COLOR as
|
|
5
|
-
import { parseTreeGridXmlToJson as
|
|
6
|
-
import { emitTreeGridBodyRowsChanged as
|
|
7
|
-
import { isArray as
|
|
8
|
-
import { lowerCase as
|
|
9
|
-
import { isPlainObject as
|
|
10
|
-
import { get as
|
|
11
|
-
import { omit as
|
|
12
|
-
import { isEmpty as
|
|
13
|
-
import { without as
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
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"),
|
|
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 =
|
|
23
|
-
r[
|
|
42
|
+
const r = t, n = _(
|
|
43
|
+
r[C]
|
|
24
44
|
);
|
|
25
|
-
n.includes(e) || (r[
|
|
26
|
-
}, "appendTreeGridAddedRowHighlightColumn"),
|
|
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 =
|
|
30
|
-
r[
|
|
31
|
-
).filter((
|
|
49
|
+
const r = t, s = _(
|
|
50
|
+
r[C]
|
|
51
|
+
).filter((a) => a !== e);
|
|
32
52
|
if (s.length) {
|
|
33
|
-
r[
|
|
53
|
+
r[C] = s;
|
|
34
54
|
return;
|
|
35
55
|
}
|
|
36
|
-
delete r[
|
|
37
|
-
}, "removeTreeGridAddedRowHighlightColumn"),
|
|
38
|
-
t == null ? void 0 : t[
|
|
39
|
-
), "getTreeGridAddedRowHighlightColumns"),
|
|
40
|
-
var
|
|
41
|
-
const n = ((
|
|
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
|
|
46
|
-
if (
|
|
47
|
-
return `${
|
|
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"),
|
|
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
|
-
|
|
75
|
+
L(t, e, n)
|
|
56
76
|
])
|
|
57
77
|
);
|
|
58
|
-
e[
|
|
59
|
-
}, "markTreeGridAddedRowBaselineValues"),
|
|
78
|
+
e[V] = r;
|
|
79
|
+
}, "markTreeGridAddedRowBaselineValues"), we = /* @__PURE__ */ l((t, e) => {
|
|
60
80
|
var r;
|
|
61
|
-
return (r = t == null ? void 0 : t[
|
|
62
|
-
}, "getTreeGridAddedRowBaselineValue"),
|
|
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[
|
|
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"),
|
|
89
|
+
}, "preserveTreeGridCellStyleBaseline"), le = /* @__PURE__ */ l((t, e) => {
|
|
70
90
|
var r;
|
|
71
|
-
return (r = t[
|
|
72
|
-
}, "getTreeGridCellStyleBaseline"),
|
|
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"),
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
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
|
|
84
|
-
if (
|
|
85
|
-
return `${
|
|
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"),
|
|
146
|
+
}, "getTreeGridTimeDateDisplayValue"), Te = /* @__PURE__ */ l((t, e) => {
|
|
90
147
|
const r = { ...e };
|
|
91
148
|
return Object.keys(t.Cols ?? {}).forEach((n) => {
|
|
92
|
-
|
|
149
|
+
F(t, e, n) && (r[n] = $(t, e, n));
|
|
93
150
|
}), r;
|
|
94
|
-
}, "normalizeTreeGridExternalRow"),
|
|
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
|
|
153
|
+
let a = n ?? (s ? s.parentNode : null) ?? t.GetFirst(), i = null;
|
|
97
154
|
switch (r) {
|
|
98
155
|
case "top":
|
|
99
|
-
|
|
156
|
+
i = t.GetFirst();
|
|
100
157
|
break;
|
|
101
158
|
case "last":
|
|
102
|
-
|
|
159
|
+
a = t.GetNext(t.GetLast(), t.RowCount > 0 ? t.RowCount + 1 : 0), i = a;
|
|
103
160
|
break;
|
|
104
161
|
case "above":
|
|
105
|
-
|
|
162
|
+
i = s ?? t.GetFirst();
|
|
106
163
|
break;
|
|
107
164
|
case "below":
|
|
108
|
-
|
|
165
|
+
i = (s == null ? void 0 : s.nextSibling) ?? t.GetFirst();
|
|
109
166
|
break;
|
|
110
167
|
}
|
|
111
|
-
return { resolvedParent:
|
|
112
|
-
}, "resolveRowInsertionTarget"),
|
|
113
|
-
if (!
|
|
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[
|
|
117
|
-
var
|
|
118
|
-
if (((
|
|
119
|
-
t.SetString(e, s,
|
|
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] =
|
|
179
|
+
e[s] = a;
|
|
123
180
|
});
|
|
124
|
-
}, "assignInitialRowValues"),
|
|
125
|
-
const n =
|
|
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((
|
|
130
|
-
var
|
|
131
|
-
(
|
|
186
|
+
n.forEach((a) => {
|
|
187
|
+
var i;
|
|
188
|
+
(i = t.Cols) != null && i[a] && (s[`${a}CanEdit`] = 1);
|
|
132
189
|
});
|
|
133
|
-
}, "assignEditableAddedRowColumns"),
|
|
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 !
|
|
136
|
-
}, "isVisibleTreeGridColumn"),
|
|
137
|
-
t == null ? void 0 : t[
|
|
138
|
-
).includes(e), "isTreeGridAddedRowInitialValueKey"),
|
|
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"),
|
|
142
|
-
|
|
143
|
-
), "normalizeAddedRow"),
|
|
144
|
-
(n) => r === "Changed" ?
|
|
145
|
-
).filter((n) => !
|
|
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((
|
|
151
|
-
|
|
207
|
+
return Object.keys(r).forEach((a) => {
|
|
208
|
+
F(t, n, a) && (s[a] = $(t, n, a));
|
|
152
209
|
}), s;
|
|
153
|
-
}) : e, "normalizeTreeGridChangedRows"),
|
|
154
|
-
const e =
|
|
155
|
-
return e ?
|
|
156
|
-
}, "getTreeGridDataRowsById"),
|
|
157
|
-
const r =
|
|
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
|
-
|
|
223
|
+
m(t);
|
|
167
224
|
}, 0);
|
|
168
|
-
}, "reloadTreeGridBodyById"),
|
|
169
|
-
const r =
|
|
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,
|
|
173
|
-
|
|
174
|
-
|
|
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"),
|
|
177
|
-
const
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
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
|
-
|
|
275
|
+
Ie(e, r),
|
|
184
276
|
n
|
|
185
277
|
)
|
|
186
278
|
])
|
|
187
279
|
) : { added: [], changed: [] };
|
|
188
|
-
}, "getTreeGridRowChangesById"),
|
|
189
|
-
const r =
|
|
190
|
-
r &&
|
|
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"),
|
|
194
|
-
const e =
|
|
195
|
-
return e && r ?
|
|
196
|
-
}, "getTreeGridSelectedRowsById"),
|
|
197
|
-
const r =
|
|
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"),
|
|
207
|
-
const r =
|
|
208
|
-
!r || !n || !s || (
|
|
209
|
-
}, "highlightTreeGridCellById"),
|
|
210
|
-
const r =
|
|
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
|
|
214
|
-
r.SetValue(n, `${s}Class`, (
|
|
215
|
-
}, "clearTreeGridCellHighlightById"),
|
|
216
|
-
const e =
|
|
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"),
|
|
219
|
-
t.forEach(
|
|
220
|
-
}, "resetTreeGridSelectionsByIds"),
|
|
221
|
-
const e =
|
|
222
|
-
e && (e.ActionUndoAll(1, 0),
|
|
223
|
-
|
|
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"),
|
|
226
|
-
t.forEach(
|
|
227
|
-
}, "resetTreeGridChangesByIds"),
|
|
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
|
|
231
|
-
if (!
|
|
322
|
+
const a = u(t);
|
|
323
|
+
if (!a)
|
|
232
324
|
return;
|
|
233
|
-
const
|
|
234
|
-
const
|
|
235
|
-
return `${s.map((R) =>
|
|
236
|
-
}).join("|"),
|
|
237
|
-
|
|
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
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
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
|