udp-react-enterprise-component-library 27.0.0-next.11 → 27.0.0-next.13
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/.tsbuildinfo +1 -1
- package/dist/UI/feedback/PageLoading.d.ts +11 -1
- package/dist/UI/feedback/PageLoading.d.ts.map +1 -1
- package/dist/UI/feedback/PageLoading.js +12 -12
- package/dist/UI/feedback/PageLoading.js.map +1 -1
- package/dist/UI/feedback/PageLoading.mjs +35 -21
- package/dist/UI/feedback/PageLoading.mjs.map +1 -1
- package/dist/UI/feedback/PageLoading.module.css +9 -0
- package/dist/UI/fluent-web-components/UdpIconPicker.d.ts +4 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.js +2 -2
- package/dist/UI/fluent-web-components/UdpIconPicker.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.mjs +32 -28
- package/dist/UI/fluent-web-components/UdpIconPicker.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpLink.d.ts +6 -0
- package/dist/UI/fluent-web-components/UdpLink.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpLink.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpLink.mjs.map +1 -1
- package/dist/UI/fluent-web-components/index.d.ts +10 -0
- package/dist/UI/fluent-web-components/index.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/index.js +10 -0
- package/dist/UI/fluent-web-components/index.js.map +1 -1
- package/dist/UI/fluent-web-components/shell/UdpShell.d.ts +10 -0
- package/dist/UI/fluent-web-components/shell/UdpShell.d.ts.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShell.js +7 -0
- package/dist/UI/fluent-web-components/shell/UdpShell.js.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShell.mjs +19 -0
- package/dist/UI/fluent-web-components/shell/UdpShell.mjs.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBar.d.ts +11 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBar.d.ts.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBar.js +7 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBar.js.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBar.mjs +19 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBar.mjs.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.d.ts +16 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.d.ts.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.js +7 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.js.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.mjs +19 -0
- package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.mjs.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellNav.d.ts +21 -0
- package/dist/UI/fluent-web-components/shell/UdpShellNav.d.ts.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellNav.js +7 -0
- package/dist/UI/fluent-web-components/shell/UdpShellNav.js.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellNav.mjs +19 -0
- package/dist/UI/fluent-web-components/shell/UdpShellNav.mjs.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellRibbon.d.ts +10 -0
- package/dist/UI/fluent-web-components/shell/UdpShellRibbon.d.ts.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellRibbon.js +7 -0
- package/dist/UI/fluent-web-components/shell/UdpShellRibbon.js.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellRibbon.mjs +19 -0
- package/dist/UI/fluent-web-components/shell/UdpShellRibbon.mjs.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellSidebar.d.ts +13 -0
- package/dist/UI/fluent-web-components/shell/UdpShellSidebar.d.ts.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellSidebar.js +7 -0
- package/dist/UI/fluent-web-components/shell/UdpShellSidebar.js.map +1 -0
- package/dist/UI/fluent-web-components/shell/UdpShellSidebar.mjs +19 -0
- package/dist/UI/fluent-web-components/shell/UdpShellSidebar.mjs.map +1 -0
- package/dist/UI/fluent-web-components/types.d.ts +2 -0
- package/dist/UI/fluent-web-components/types.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts +16 -3
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js +36 -13
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs +119 -62
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/index.mjs +3 -2
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts +9 -2
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js +18 -18
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs +79 -67
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts +8 -2
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js +32 -16
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs +129 -102
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts +3 -2
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js +11 -12
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs +6 -4
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts +2 -19
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js +4 -5
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs +5 -4
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs.map +1 -1
- package/dist/actionPanels/index.d.ts +0 -2
- package/dist/actionPanels/index.d.ts.map +1 -1
- package/dist/actionPanels/index.js +0 -2
- package/dist/actionPanels/index.js.map +1 -1
- package/dist/actionPanels/panelActionFields.d.ts +9 -26
- package/dist/actionPanels/panelActionFields.d.ts.map +1 -1
- package/dist/actionPanels/panelActionFields.js +32 -55
- package/dist/actionPanels/panelActionFields.js.map +1 -1
- package/dist/actionPanels/panelActionFields.mjs +159 -375
- package/dist/actionPanels/panelActionFields.mjs.map +1 -1
- package/dist/actionPanels/panelOperations.d.ts +15 -41
- package/dist/actionPanels/panelOperations.d.ts.map +1 -1
- package/dist/actionPanels/panelOperations.js +51 -89
- package/dist/actionPanels/panelOperations.js.map +1 -1
- package/dist/actionPanels/panelOperations.mjs +37 -92
- package/dist/actionPanels/panelOperations.mjs.map +1 -1
- package/dist/aiAssistant/aiFeatures.d.ts +1 -1
- package/dist/aiAssistant/aiFeatures.d.ts.map +1 -1
- package/dist/aiAssistant/aiFeatures.js +5 -0
- package/dist/aiAssistant/aiFeatures.js.map +1 -1
- package/dist/aiAssistant/aiFeatures.mjs +5 -1
- package/dist/aiAssistant/aiFeatures.mjs.map +1 -1
- package/dist/dashboard/DashboardWidget.d.ts.map +1 -1
- package/dist/dashboard/DashboardWidget.js +1 -1
- package/dist/dashboard/DashboardWidget.js.map +1 -1
- package/dist/dashboard/DashboardWidget.mjs +24 -21
- package/dist/dashboard/DashboardWidget.mjs.map +1 -1
- package/dist/domain/actionPanel/actionTypeMeta.d.ts +15 -2
- package/dist/domain/actionPanel/actionTypeMeta.d.ts.map +1 -1
- package/dist/domain/actionPanel/actionTypeMeta.js +21 -2
- package/dist/domain/actionPanel/actionTypeMeta.js.map +1 -1
- package/dist/domain/actionPanel/actionTypeMeta.mjs +18 -3
- package/dist/domain/actionPanel/actionTypeMeta.mjs.map +1 -1
- package/dist/domain/actionPanel/buttonOrder.d.ts +67 -0
- package/dist/domain/actionPanel/buttonOrder.d.ts.map +1 -0
- package/dist/domain/actionPanel/buttonOrder.js +105 -0
- package/dist/domain/actionPanel/buttonOrder.js.map +1 -0
- package/dist/domain/actionPanel/buttonOrder.mjs +90 -0
- package/dist/domain/actionPanel/buttonOrder.mjs.map +1 -0
- package/dist/domain/actionPanel/index.d.ts +1 -0
- package/dist/domain/actionPanel/index.d.ts.map +1 -1
- package/dist/domain/actionPanel/index.js +1 -0
- package/dist/domain/actionPanel/index.js.map +1 -1
- package/dist/domain/actionPanel/index.mjs +4 -3
- package/dist/domain/actionPanel/serialize.d.ts +6 -2
- package/dist/domain/actionPanel/serialize.d.ts.map +1 -1
- package/dist/domain/actionPanel/serialize.js +10 -3
- package/dist/domain/actionPanel/serialize.js.map +1 -1
- package/dist/domain/actionPanel/serialize.mjs +7 -3
- package/dist/domain/actionPanel/serialize.mjs.map +1 -1
- package/dist/domain/actionPanel/types.d.ts +24 -8
- package/dist/domain/actionPanel/types.d.ts.map +1 -1
- package/dist/domain/actionPanel/types.js.map +1 -1
- package/dist/domain/actionPanel/types.mjs.map +1 -1
- package/dist/domain/inquiryTree/describe.d.ts +15 -3
- package/dist/domain/inquiryTree/describe.d.ts.map +1 -1
- package/dist/domain/inquiryTree/describe.js +32 -28
- package/dist/domain/inquiryTree/describe.js.map +1 -1
- package/dist/domain/inquiryTree/describe.mjs +34 -16
- package/dist/domain/inquiryTree/describe.mjs.map +1 -1
- package/dist/domain/inquiryTree/displayTree.d.ts +75 -97
- package/dist/domain/inquiryTree/displayTree.d.ts.map +1 -1
- package/dist/domain/inquiryTree/displayTree.js +418 -551
- package/dist/domain/inquiryTree/displayTree.js.map +1 -1
- package/dist/domain/inquiryTree/displayTree.mjs +345 -414
- package/dist/domain/inquiryTree/displayTree.mjs.map +1 -1
- package/dist/domain/inquiryTree/groups.d.ts +2 -0
- package/dist/domain/inquiryTree/groups.d.ts.map +1 -1
- package/dist/domain/inquiryTree/groups.js.map +1 -1
- package/dist/domain/inquiryTree/groups.mjs.map +1 -1
- package/dist/domain/inquiryTree/index.d.ts +1 -1
- package/dist/domain/inquiryTree/index.d.ts.map +1 -1
- package/dist/domain/inquiryTree/index.js +1 -1
- package/dist/domain/inquiryTree/index.js.map +1 -1
- package/dist/domain/inquiryTree/index.mjs +12 -12
- package/dist/domain/inquiryTree/lazyLoad.d.ts +20 -129
- package/dist/domain/inquiryTree/lazyLoad.d.ts.map +1 -1
- package/dist/domain/inquiryTree/lazyLoad.js +48 -233
- package/dist/domain/inquiryTree/lazyLoad.js.map +1 -1
- package/dist/domain/inquiryTree/lazyLoad.mjs +32 -187
- package/dist/domain/inquiryTree/lazyLoad.mjs.map +1 -1
- package/dist/domain/inquiryTree/legalChildren.d.ts +13 -14
- package/dist/domain/inquiryTree/legalChildren.d.ts.map +1 -1
- package/dist/domain/inquiryTree/legalChildren.js +21 -42
- package/dist/domain/inquiryTree/legalChildren.js.map +1 -1
- package/dist/domain/inquiryTree/legalChildren.mjs +19 -37
- package/dist/domain/inquiryTree/legalChildren.mjs.map +1 -1
- package/dist/domain/inquiryTree/names.d.ts +38 -0
- package/dist/domain/inquiryTree/names.d.ts.map +1 -0
- package/dist/domain/inquiryTree/names.js +64 -0
- package/dist/domain/inquiryTree/names.js.map +1 -0
- package/dist/domain/inquiryTree/names.mjs +56 -0
- package/dist/domain/inquiryTree/names.mjs.map +1 -0
- package/dist/domain/inquiryTree/operations.d.ts +6 -2
- package/dist/domain/inquiryTree/operations.d.ts.map +1 -1
- package/dist/domain/inquiryTree/operations.js +17 -16
- package/dist/domain/inquiryTree/operations.js.map +1 -1
- package/dist/domain/inquiryTree/operations.mjs +14 -11
- package/dist/domain/inquiryTree/operations.mjs.map +1 -1
- package/dist/domain/inquiryTree/rules.d.ts +3 -4
- package/dist/domain/inquiryTree/rules.d.ts.map +1 -1
- package/dist/domain/inquiryTree/rules.js +3 -13
- package/dist/domain/inquiryTree/rules.js.map +1 -1
- package/dist/domain/inquiryTree/rules.mjs +3 -9
- package/dist/domain/inquiryTree/rules.mjs.map +1 -1
- package/dist/domain/inquiryTree/runtime.d.ts +23 -16
- package/dist/domain/inquiryTree/runtime.d.ts.map +1 -1
- package/dist/domain/inquiryTree/runtime.js +46 -54
- package/dist/domain/inquiryTree/runtime.js.map +1 -1
- package/dist/domain/inquiryTree/runtime.mjs +31 -26
- package/dist/domain/inquiryTree/runtime.mjs.map +1 -1
- package/dist/domain/inquiryTree/serialize.d.ts +20 -29
- package/dist/domain/inquiryTree/serialize.d.ts.map +1 -1
- package/dist/domain/inquiryTree/serialize.js +93 -205
- package/dist/domain/inquiryTree/serialize.js.map +1 -1
- package/dist/domain/inquiryTree/serialize.mjs +89 -180
- package/dist/domain/inquiryTree/serialize.mjs.map +1 -1
- package/dist/domain/inquiryTree/types.d.ts +146 -65
- package/dist/domain/inquiryTree/types.d.ts.map +1 -1
- package/dist/domain/inquiryTree/types.js +5 -0
- package/dist/domain/inquiryTree/types.js.map +1 -1
- package/dist/domain/inquiryTree/types.mjs +3 -1
- package/dist/domain/inquiryTree/types.mjs.map +1 -1
- package/dist/domain/inquiryTree/validate.d.ts +9 -2
- package/dist/domain/inquiryTree/validate.d.ts.map +1 -1
- package/dist/domain/inquiryTree/validate.js +30 -58
- package/dist/domain/inquiryTree/validate.js.map +1 -1
- package/dist/domain/inquiryTree/validate.mjs +29 -44
- package/dist/domain/inquiryTree/validate.mjs.map +1 -1
- package/dist/domain/inquiryTree/view.d.ts +8 -12
- package/dist/domain/inquiryTree/view.d.ts.map +1 -1
- package/dist/domain/inquiryTree/view.js +40 -66
- package/dist/domain/inquiryTree/view.js.map +1 -1
- package/dist/domain/inquiryTree/view.mjs +30 -60
- package/dist/domain/inquiryTree/view.mjs.map +1 -1
- package/dist/domain/inquiryTree/waveLoad.d.ts +32 -48
- package/dist/domain/inquiryTree/waveLoad.d.ts.map +1 -1
- package/dist/domain/inquiryTree/waveLoad.js +75 -90
- package/dist/domain/inquiryTree/waveLoad.js.map +1 -1
- package/dist/domain/inquiryTree/waveLoad.mjs +54 -60
- package/dist/domain/inquiryTree/waveLoad.mjs.map +1 -1
- package/dist/domain/inquiryTree/wireString.d.ts +5 -0
- package/dist/domain/inquiryTree/wireString.d.ts.map +1 -1
- package/dist/domain/inquiryTree/wireString.js +11 -0
- package/dist/domain/inquiryTree/wireString.js.map +1 -1
- package/dist/domain/inquiryTree/wireString.mjs +10 -1
- package/dist/domain/inquiryTree/wireString.mjs.map +1 -1
- package/dist/domain/nodeView/index.mjs +2 -2
- package/dist/domain/nodeView/model.d.ts +35 -30
- package/dist/domain/nodeView/model.d.ts.map +1 -1
- package/dist/domain/nodeView/model.js +108 -69
- package/dist/domain/nodeView/model.js.map +1 -1
- package/dist/domain/nodeView/model.mjs +86 -36
- package/dist/domain/nodeView/model.mjs.map +1 -1
- package/dist/errorBoundary/ErrorBoundary.d.ts +17 -1
- package/dist/errorBoundary/ErrorBoundary.d.ts.map +1 -1
- package/dist/errorBoundary/ErrorBoundary.js +25 -21
- package/dist/errorBoundary/ErrorBoundary.js.map +1 -1
- package/dist/errorBoundary/ErrorBoundary.mjs +22 -34
- package/dist/errorBoundary/ErrorBoundary.mjs.map +1 -1
- package/dist/errorBoundary/ErrorBoundaryFallback.d.ts +10 -0
- package/dist/errorBoundary/ErrorBoundaryFallback.d.ts.map +1 -0
- package/dist/errorBoundary/ErrorBoundaryFallback.js +8 -0
- package/dist/errorBoundary/ErrorBoundaryFallback.js.map +1 -0
- package/dist/errorBoundary/ErrorBoundaryFallback.mjs +91 -0
- package/dist/errorBoundary/ErrorBoundaryFallback.mjs.map +1 -0
- package/dist/icons/legacyIconNames.d.ts.map +1 -1
- package/dist/icons/legacyIconNames.js +46 -1
- package/dist/icons/legacyIconNames.js.map +1 -1
- package/dist/icons/legacyIconNames.mjs +46 -1
- package/dist/icons/legacyIconNames.mjs.map +1 -1
- package/dist/index.mjs +19 -14
- package/dist/inquiry/Inquiry.d.ts +3 -0
- package/dist/inquiry/Inquiry.d.ts.map +1 -1
- package/dist/inquiry/Inquiry.js +3 -0
- package/dist/inquiry/Inquiry.js.map +1 -1
- package/dist/inquiry/Inquiry.mjs +3 -0
- package/dist/inquiry/Inquiry.mjs.map +1 -1
- package/dist/inquiry/InquiryContainer.d.ts.map +1 -1
- package/dist/inquiry/InquiryContainer.js +22 -21
- package/dist/inquiry/InquiryContainer.js.map +1 -1
- package/dist/inquiry/InquiryContainer.mjs +14 -10
- package/dist/inquiry/InquiryContainer.mjs.map +1 -1
- package/dist/inquiry/InquiryTreeMenu.d.ts.map +1 -1
- package/dist/inquiry/InquiryTreeMenu.js +14 -23
- package/dist/inquiry/InquiryTreeMenu.js.map +1 -1
- package/dist/inquiry/InquiryTreeMenu.mjs +20 -20
- package/dist/inquiry/InquiryTreeMenu.mjs.map +1 -1
- package/dist/inquiry/v2/InquiryV2.d.ts +8 -6
- package/dist/inquiry/v2/InquiryV2.d.ts.map +1 -1
- package/dist/inquiry/v2/InquiryV2.js +45 -24
- package/dist/inquiry/v2/InquiryV2.js.map +1 -1
- package/dist/inquiry/v2/InquiryV2.mjs +108 -61
- package/dist/inquiry/v2/InquiryV2.mjs.map +1 -1
- package/dist/inquiry/v2/InquiryV2.module.css +60 -15
- package/dist/inquiry/v2/InquiryWorkspace.d.ts +9 -9
- package/dist/inquiry/v2/InquiryWorkspace.d.ts.map +1 -1
- package/dist/inquiry/v2/InquiryWorkspace.js +531 -408
- package/dist/inquiry/v2/InquiryWorkspace.js.map +1 -1
- package/dist/inquiry/v2/InquiryWorkspace.mjs +524 -408
- package/dist/inquiry/v2/InquiryWorkspace.mjs.map +1 -1
- package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts +3 -2
- package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts.map +1 -1
- package/dist/inquiry/v2/ai/InquiryV2Copilot.js +20 -37
- package/dist/inquiry/v2/ai/InquiryV2Copilot.js.map +1 -1
- package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs +19 -31
- package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs.map +1 -1
- package/dist/inquiry/v2/ai/copilotModel.d.ts +6 -14
- package/dist/inquiry/v2/ai/copilotModel.d.ts.map +1 -1
- package/dist/inquiry/v2/ai/copilotModel.js +35 -87
- package/dist/inquiry/v2/ai/copilotModel.js.map +1 -1
- package/dist/inquiry/v2/ai/copilotModel.mjs +23 -47
- package/dist/inquiry/v2/ai/copilotModel.mjs.map +1 -1
- package/dist/inquiry/v2/api/queries.d.ts +46 -73
- package/dist/inquiry/v2/api/queries.d.ts.map +1 -1
- package/dist/inquiry/v2/api/queries.js +151 -210
- package/dist/inquiry/v2/api/queries.js.map +1 -1
- package/dist/inquiry/v2/api/queries.mjs +227 -183
- package/dist/inquiry/v2/api/queries.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js +103 -32
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs +92 -32
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.module.css +8 -1
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts +20 -16
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js +111 -68
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs +108 -142
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/RetrieveSurface.mjs +1 -1
- package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts +66 -50
- package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/actionModel.js +141 -66
- package/dist/inquiry/v2/capabilities/actions/actionModel.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/actionModel.mjs +115 -53
- package/dist/inquiry/v2/capabilities/actions/actionModel.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts +26 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js +36 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs +41 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/runAction.d.ts +3 -2
- package/dist/inquiry/v2/capabilities/actions/runAction.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/runAction.js +27 -23
- package/dist/inquiry/v2/capabilities/actions/runAction.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/runAction.mjs +26 -20
- package/dist/inquiry/v2/capabilities/actions/runAction.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts +20 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js +112 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs +118 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts +25 -1
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js +7 -4
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs +9 -4
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts +5 -3
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js +11 -8
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs +13 -7
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.module.css +4 -4
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.js +20 -17
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs +101 -111
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.module.css +9 -6
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts +2 -1
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js +9 -2
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs +18 -15
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs.map +1 -1
- package/dist/inquiry/v2/index.d.ts +0 -1
- package/dist/inquiry/v2/index.d.ts.map +1 -1
- package/dist/inquiry/v2/index.js.map +1 -1
- package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts +3 -3
- package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/ActionRunnerContext.js +11 -5
- package/dist/inquiry/v2/kernel/ActionRunnerContext.js.map +1 -1
- package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs +15 -12
- package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs.map +1 -1
- package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts +3 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts.map +1 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.js +14 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.js.map +1 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs +20 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs.map +1 -0
- package/dist/inquiry/v2/kernel/RecordContext.d.ts +2 -0
- package/dist/inquiry/v2/kernel/RecordContext.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/RecordContext.js.map +1 -1
- package/dist/inquiry/v2/kernel/RecordContext.mjs.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.js +18 -13
- package/dist/inquiry/v2/kernel/UdpNodeView.js.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.mjs +177 -140
- package/dist/inquiry/v2/kernel/UdpNodeView.mjs.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.module.css +56 -5
- package/dist/inquiry/v2/kernel/capabilities.d.ts +0 -2
- package/dist/inquiry/v2/kernel/capabilities.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/capabilities.js.map +1 -1
- package/dist/inquiry/v2/kernel/capabilities.mjs.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts +26 -37
- package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.js +48 -57
- package/dist/inquiry/v2/landing/InquiryExplorePage.js.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.mjs +102 -106
- package/dist/inquiry/v2/landing/InquiryExplorePage.mjs.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.module.css +58 -6
- package/dist/inquiry/v2/landing/InquiryLanding.d.ts +3 -3
- package/dist/inquiry/v2/landing/InquiryLanding.d.ts.map +1 -1
- package/dist/inquiry/v2/landing/InquiryLanding.js +8 -3
- package/dist/inquiry/v2/landing/InquiryLanding.js.map +1 -1
- package/dist/inquiry/v2/landing/InquiryLanding.mjs +51 -35
- package/dist/inquiry/v2/landing/InquiryLanding.mjs.map +1 -1
- package/dist/inquiry/v2/landing/InquiryLanding.module.css +8 -0
- package/dist/inquiry/v2/page/UdpPageRenderer.d.ts +5 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.d.ts.map +1 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.js +13 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.js.map +1 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.mjs +36 -7
- package/dist/inquiry/v2/page/UdpPageRenderer.mjs.map +1 -1
- package/dist/inquiry/v2/search/InquirySearchPanel.d.ts +1 -7
- package/dist/inquiry/v2/search/InquirySearchPanel.d.ts.map +1 -1
- package/dist/inquiry/v2/search/InquirySearchPanel.js +6 -13
- package/dist/inquiry/v2/search/InquirySearchPanel.js.map +1 -1
- package/dist/inquiry/v2/search/InquirySearchPanel.mjs +4 -8
- package/dist/inquiry/v2/search/InquirySearchPanel.mjs.map +1 -1
- package/dist/inquiry/v2/search/RecordFinder.d.ts +30 -1
- package/dist/inquiry/v2/search/RecordFinder.d.ts.map +1 -1
- package/dist/inquiry/v2/search/RecordFinder.js +43 -20
- package/dist/inquiry/v2/search/RecordFinder.js.map +1 -1
- package/dist/inquiry/v2/search/RecordFinder.mjs +68 -42
- package/dist/inquiry/v2/search/RecordFinder.mjs.map +1 -1
- package/dist/inquiry/v2/search/index.d.ts +3 -3
- package/dist/inquiry/v2/search/index.d.ts.map +1 -1
- package/dist/inquiry/v2/search/index.js +1 -1
- package/dist/inquiry/v2/search/index.js.map +1 -1
- package/dist/inquiry/v2/search/searchModel.d.ts +130 -23
- package/dist/inquiry/v2/search/searchModel.d.ts.map +1 -1
- package/dist/inquiry/v2/search/searchModel.js +237 -36
- package/dist/inquiry/v2/search/searchModel.js.map +1 -1
- package/dist/inquiry/v2/search/searchModel.mjs +207 -34
- package/dist/inquiry/v2/search/searchModel.mjs.map +1 -1
- package/dist/inquiry/v2/search/useInquirySearch.d.ts.map +1 -1
- package/dist/inquiry/v2/search/useInquirySearch.js +46 -19
- package/dist/inquiry/v2/search/useInquirySearch.js.map +1 -1
- package/dist/inquiry/v2/search/useInquirySearch.mjs +83 -84
- package/dist/inquiry/v2/search/useInquirySearch.mjs.map +1 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts +4 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js +174 -166
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js.map +1 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs +343 -325
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs.map +1 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts +3 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.js +8 -7
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.js.map +1 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs +68 -72
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs.map +1 -1
- package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts +3 -3
- package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/LoadRecordDialog.js +12 -7
- package/dist/inquiry/v2/tree/LoadRecordDialog.js.map +1 -1
- package/dist/inquiry/v2/tree/LoadRecordDialog.mjs +48 -33
- package/dist/inquiry/v2/tree/LoadRecordDialog.mjs.map +1 -1
- package/dist/inquiry/v2/tree/NodeList.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/NodeList.js +17 -6
- package/dist/inquiry/v2/tree/NodeList.js.map +1 -1
- package/dist/inquiry/v2/tree/NodeList.mjs +49 -36
- package/dist/inquiry/v2/tree/NodeList.mjs.map +1 -1
- package/dist/inquiry/v2/tree/arrivalModel.d.ts +15 -0
- package/dist/inquiry/v2/tree/arrivalModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/arrivalModel.js +14 -1
- package/dist/inquiry/v2/tree/arrivalModel.js.map +1 -1
- package/dist/inquiry/v2/tree/arrivalModel.mjs +12 -1
- package/dist/inquiry/v2/tree/arrivalModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/branchRefreshModel.d.ts +32 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.d.ts.map +1 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.js +62 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.js.map +1 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.mjs +60 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.mjs.map +1 -0
- package/dist/inquiry/v2/tree/droppedPageModel.d.ts +23 -1
- package/dist/inquiry/v2/tree/droppedPageModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/droppedPageModel.js +53 -26
- package/dist/inquiry/v2/tree/droppedPageModel.js.map +1 -1
- package/dist/inquiry/v2/tree/droppedPageModel.mjs +48 -20
- package/dist/inquiry/v2/tree/droppedPageModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts +7 -12
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js +44 -15
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs +34 -15
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js +7 -18
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs +6 -14
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts +20 -16
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js +77 -55
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs +85 -106
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs.map +1 -1
- package/dist/inquiry/v2/tree/lineageModel.d.ts +18 -1
- package/dist/inquiry/v2/tree/lineageModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/lineageModel.js +71 -2
- package/dist/inquiry/v2/tree/lineageModel.js.map +1 -1
- package/dist/inquiry/v2/tree/lineageModel.mjs +53 -3
- package/dist/inquiry/v2/tree/lineageModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/menuRebuildModel.d.ts +10 -27
- package/dist/inquiry/v2/tree/menuRebuildModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/menuRebuildModel.js +8 -58
- package/dist/inquiry/v2/tree/menuRebuildModel.js.map +1 -1
- package/dist/inquiry/v2/tree/menuRebuildModel.mjs +8 -51
- package/dist/inquiry/v2/tree/menuRebuildModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts +26 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts.map +1 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.js +56 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.js.map +1 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.mjs +43 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.mjs.map +1 -0
- package/dist/inquiry/v2/tree/rootRemovalModel.d.ts +7 -0
- package/dist/inquiry/v2/tree/rootRemovalModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/rootRemovalModel.js +31 -5
- package/dist/inquiry/v2/tree/rootRemovalModel.js.map +1 -1
- package/dist/inquiry/v2/tree/rootRemovalModel.mjs +21 -4
- package/dist/inquiry/v2/tree/rootRemovalModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/treeFilterModel.d.ts +0 -2
- package/dist/inquiry/v2/tree/treeFilterModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/treeFilterModel.js +0 -7
- package/dist/inquiry/v2/tree/treeFilterModel.js.map +1 -1
- package/dist/inquiry/v2/tree/treeFilterModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/useInquiryMenu.d.ts +16 -7
- package/dist/inquiry/v2/tree/useInquiryMenu.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/useInquiryMenu.js +401 -163
- package/dist/inquiry/v2/tree/useInquiryMenu.js.map +1 -1
- package/dist/inquiry/v2/tree/useInquiryMenu.mjs +511 -310
- package/dist/inquiry/v2/tree/useInquiryMenu.mjs.map +1 -1
- package/dist/inquiry/v2/tree/waveLoader.d.ts +10 -11
- package/dist/inquiry/v2/tree/waveLoader.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/waveLoader.js +78 -72
- package/dist/inquiry/v2/tree/waveLoader.js.map +1 -1
- package/dist/inquiry/v2/tree/waveLoader.mjs +79 -68
- package/dist/inquiry/v2/tree/waveLoader.mjs.map +1 -1
- package/dist/inquiry/v2/widgets/listRow.module.css +27 -0
- package/dist/inquiry/v2/widgets/widgetRowModel.d.ts +6 -2
- package/dist/inquiry/v2/widgets/widgetRowModel.d.ts.map +1 -1
- package/dist/inquiry/v2/widgets/widgetRowModel.js +49 -14
- package/dist/inquiry/v2/widgets/widgetRowModel.js.map +1 -1
- package/dist/inquiry/v2/widgets/widgetRowModel.mjs +36 -12
- package/dist/inquiry/v2/widgets/widgetRowModel.mjs.map +1 -1
- package/dist/maintenance/UdpTaggedRecordsPage.mjs +1 -1
- package/dist/maintenance/api/lookupApi.mjs +1 -1
- package/dist/maintenance/api/tagsApi.mjs +1 -1
- package/dist/maintenance/config/nodeDefaults.d.ts.map +1 -1
- package/dist/maintenance/config/nodeDefaults.js +16 -5
- package/dist/maintenance/config/nodeDefaults.js.map +1 -1
- package/dist/maintenance/config/nodeDefaults.mjs +14 -5
- package/dist/maintenance/config/nodeDefaults.mjs.map +1 -1
- package/dist/maintenance/config/useEntityConfig.mjs +1 -1
- package/dist/maintenance/config/useLinkedLabels.mjs +1 -1
- package/dist/maintenance/grid/MaintenanceGrid.mjs +1 -1
- package/dist/maintenance/metadata/useEntityMetadata.mjs +1 -1
- package/dist/maintenance/record/ChildTab.mjs +1 -1
- package/dist/maintenance/record/DeleteRecordDialog.mjs +1 -1
- package/dist/maintenance/record/LinkRecordsSheet.mjs +1 -1
- package/dist/maintenance/record/RecordFacts.mjs +1 -1
- package/dist/maintenance/record/RecordSheet.mjs +2 -2
- package/dist/maintenance/record/displayValue.mjs +1 -1
- package/dist/maintenance/record/stampDisplayText.mjs +1 -1
- package/dist/maintenance/settings/UdpEntitySettingsPage.d.ts.map +1 -1
- package/dist/maintenance/settings/UdpEntitySettingsPage.js +3 -0
- package/dist/maintenance/settings/UdpEntitySettingsPage.js.map +1 -1
- package/dist/maintenance/settings/UdpEntitySettingsPage.mjs +2 -0
- package/dist/maintenance/settings/UdpEntitySettingsPage.mjs.map +1 -1
- package/dist/maintenance/settings/useEntityCatalog.mjs +1 -1
- package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts +4 -5
- package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts.map +1 -1
- package/dist/page/PageContainer/PageContainer.d.ts.map +1 -1
- package/dist/page/PageContainer/PageContainer.js +4 -11
- package/dist/page/PageContainer/PageContainer.js.map +1 -1
- package/dist/page/PageContainer/PageContainer.mjs +39 -50
- package/dist/page/PageContainer/PageContainer.mjs.map +1 -1
- package/dist/stores/inquiryStore.d.ts +2 -1
- package/dist/stores/inquiryStore.d.ts.map +1 -1
- package/dist/stores/inquiryStore.js +4 -3
- package/dist/stores/inquiryStore.js.map +1 -1
- package/dist/stores/inquiryStore.mjs +18 -11
- package/dist/stores/inquiryStore.mjs.map +1 -1
- package/dist/udp/extraFields/useExtraFieldsGridConfig.d.ts +3 -2
- package/dist/udp/extraFields/useExtraFieldsGridConfig.d.ts.map +1 -1
- package/dist/udp/extraFields/useExtraFieldsGridConfig.js +7 -6
- package/dist/udp/extraFields/useExtraFieldsGridConfig.js.map +1 -1
- package/dist/udp/extraFields/useExtraFieldsGridConfig.mjs +27 -22
- package/dist/udp/extraFields/useExtraFieldsGridConfig.mjs.map +1 -1
- package/dist/udp/fileImportMapping/FileImportMappingWizard.d.ts.map +1 -1
- package/dist/udp/fileImportMapping/FileImportMappingWizard.js +4 -4
- package/dist/udp/fileImportMapping/FileImportMappingWizard.js.map +1 -1
- package/dist/udp/fileImportMapping/FileImportMappingWizard.mjs +10 -9
- package/dist/udp/fileImportMapping/FileImportMappingWizard.mjs.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.d.ts.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs +2 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/components/EntitiyTimeLine.mjs +1 -1
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.d.ts.map +1 -1
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.js +84 -27
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.js.map +1 -1
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.mjs +53 -23
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.mjs.map +1 -1
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.d.ts.map +1 -1
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.js +45 -32
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.js.map +1 -1
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.mjs +27 -33
- package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.mjs.map +1 -1
- package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.d.ts.map +1 -1
- package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.js +14 -16
- package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.js.map +1 -1
- package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.mjs +2 -4
- package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.mjs.map +1 -1
- package/dist/udp/utilities/useDateStringColumnDef.d.ts +1 -1
- package/dist/utilities/i18n/locales/es-US.json +24 -9
- package/dist/utilities/i18n/locales/es-US.mjs +25 -8
- package/dist/utilities/i18n/locales/fr-CA.json +24 -9
- package/dist/utilities/i18n/locales/fr-CA.mjs +25 -8
- package/dist/utilities/tree/TreeUtilities.d.ts +10 -10
- package/dist/utilities/tree/TreeUtilities.d.ts.map +1 -1
- package/dist/utilities/tree/TreeUtilities.js +41 -58
- package/dist/utilities/tree/TreeUtilities.js.map +1 -1
- package/dist/utilities/tree/TreeUtilities.mjs +32 -41
- package/dist/utilities/tree/TreeUtilities.mjs.map +1 -1
- package/dist/utilities/tree/lazyLevels.d.ts +32 -0
- package/dist/utilities/tree/lazyLevels.d.ts.map +1 -0
- package/dist/utilities/tree/lazyLevels.js +25 -0
- package/dist/utilities/tree/lazyLevels.js.map +1 -0
- package/dist/utilities/tree/lazyLevels.mjs +16 -0
- package/dist/utilities/tree/lazyLevels.mjs.map +1 -0
- package/dist/utilities/types.d.ts +4 -4
- package/dist/utilities/types.d.ts.map +1 -1
- package/package.json +62 -18
- package/dist/actionPanels/PanelActionForm.d.ts +0 -56
- package/dist/actionPanels/PanelActionForm.d.ts.map +0 -1
- package/dist/actionPanels/PanelActionForm.js +0 -30
- package/dist/actionPanels/PanelActionForm.js.map +0 -1
- package/dist/actionPanels/PanelActionForm.mjs +0 -168
- package/dist/actionPanels/PanelActionForm.mjs.map +0 -1
- package/dist/actionPanels/PanelEditor.d.ts +0 -44
- package/dist/actionPanels/PanelEditor.d.ts.map +0 -1
- package/dist/actionPanels/PanelEditor.js +0 -78
- package/dist/actionPanels/PanelEditor.js.map +0 -1
- package/dist/actionPanels/PanelEditor.mjs +0 -345
- package/dist/actionPanels/PanelEditor.mjs.map +0 -1
- package/dist/actionPanels/panelActionFields.module.css +0 -18
- package/dist/domain/inquiryTree/ruleBindings.d.ts +0 -10
- package/dist/domain/inquiryTree/ruleBindings.d.ts.map +0 -1
- package/dist/domain/inquiryTree/ruleBindings.js +0 -20
- package/dist/domain/inquiryTree/ruleBindings.js.map +0 -1
- package/dist/domain/inquiryTree/ruleBindings.mjs +0 -21
- package/dist/domain/inquiryTree/ruleBindings.mjs.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.d.ts +0 -17
- package/dist/inquiry/v2/kernel/readOnlyModel.d.ts.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.js +0 -19
- package/dist/inquiry/v2/kernel/readOnlyModel.js.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.mjs +0 -21
- package/dist/inquiry/v2/kernel/readOnlyModel.mjs.map +0 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { applyRule, mapRuleVariables } from "./rules.mjs";
|
|
2
2
|
import { NODE_GROUP_OUTLIER, NODE_GROUP_TYPE, compareGroupByOrder, getGroupChildMap, getLabelFromProperty, orderGroupsByOrder } from "./groups.mjs";
|
|
3
3
|
import { toWireString } from "./wireString.mjs";
|
|
4
|
-
import { buildRuntimeSearchState, evaluateConditionalAdornmentParts, evaluateConditionalIconParts,
|
|
4
|
+
import { buildRuntimeSearchState, evaluateConditionalAdornmentParts, evaluateConditionalIconParts, isNodeHidden, resolveDisplayDetails, resolveDisplayName } from "./runtime.mjs";
|
|
5
5
|
import { buildLazyLoadDescriptors } from "./lazyLoad.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { levelName } from "./names.mjs";
|
|
7
|
+
import { deepClone } from "../jsonClone.mjs";
|
|
7
8
|
//#region src/domain/inquiryTree/displayTree.ts
|
|
8
9
|
/**
|
|
9
10
|
* Display-tree production pipeline — the pure port of the legacy renderer's
|
|
@@ -14,32 +15,22 @@ import { isEagerLevel } from "./waveLoad.mjs";
|
|
|
14
15
|
* - makeTreeStructure (:17-93) → makeDisplayTreeStructure
|
|
15
16
|
* - getSearchValueString (:2808-2815) → getSearchValueString
|
|
16
17
|
*
|
|
17
|
-
* OUTPUT SHAPE
|
|
18
|
-
* layer): nested nodes with children[], isExpanded, fresh per-row id,
|
|
18
|
+
* OUTPUT SHAPE: nested nodes with children[], isExpanded, fresh per-row id,
|
|
19
19
|
* parentId/entityNodeParentId, nodeObj, lazyLoadChildrenArr, parentGroupName,
|
|
20
|
-
* and `properties`
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* (InquiryTreeMenu.jsx:337-475) and the InquiryContainer consumers read.
|
|
20
|
+
* the row's own display state (childState, draggable) and `properties` — the
|
|
21
|
+
* level's config plus nodeLabel/nodeSubLabel, the conditionalNodeIcon… and
|
|
22
|
+
* conditionalNodeAdornment… triples, and searchValue.
|
|
24
23
|
*
|
|
25
|
-
* EAGER/LAZY:
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* - 'config' (v2 + the Tree Builder's v2 preview): the CONFIG decides — a
|
|
32
|
-
* level is eager only when `properties.eagerLoad === true`, and its rows
|
|
33
|
-
* are fetched in breadth-first waves and grafted onto the parent rows
|
|
34
|
-
* under their catalogObjectKey before composition, so this module walks
|
|
35
|
-
* one row graph regardless of whether the server nested anything.
|
|
36
|
-
* Either way splitChildLevels is the ONE owner: nothing downstream re-decides.
|
|
24
|
+
* EAGER/LAZY: THE CONFIG DECIDES — a level's child levels are eager unless it
|
|
25
|
+
* sets `lazyLoad` (loadsChildrenLazily, read off the parent), and eager rows
|
|
26
|
+
* are fetched in breadth-first waves and grafted onto the parent rows under
|
|
27
|
+
* their catalogObjectKey before composition, so this module walks one row
|
|
28
|
+
* graph regardless of whether the server nested anything. splitChildLevels is
|
|
29
|
+
* the ONE owner: nothing downstream re-decides.
|
|
37
30
|
*
|
|
38
|
-
* DRAGGABILITY
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* onto the seed in makeDisplayTreeStructure — the one place that sees every
|
|
42
|
-
* level at once).
|
|
31
|
+
* DRAGGABILITY is DERIVED from the tree's own On_Node_Drop actions
|
|
32
|
+
* (collectDropSourceEntities / isDraggableLevel, stamped onto the seed in
|
|
33
|
+
* makeDisplayTreeStructure — the one place that sees every level at once).
|
|
43
34
|
*
|
|
44
35
|
* PURITY: unlike legacy (which mutated the shared treeStructure and aliased
|
|
45
36
|
* query rows into nodeObj), every entry point deep-clones its tree AND row
|
|
@@ -60,34 +51,61 @@ import { isEagerLevel } from "./waveLoad.mjs";
|
|
|
60
51
|
* → makeDisplayTreeStructure(ts) (:569,:731,:1140,:1293,:1811,:2143,:2558)
|
|
61
52
|
* formatTreeMenuItem(row, tree, catalog, promoted, assocTree, lazy)
|
|
62
53
|
* → buildDisplayTree(row, tree, { makeId, catalogObjects: catalog,
|
|
63
|
-
* promotedEntities: promoted
|
|
64
|
-
* wasLazyLoaded: lazy }) (:574,:736,:1145,:1305,:1816,:1901,:2148;
|
|
54
|
+
* promotedEntities: promoted }) (:574,:736,:1145,:1305,:1816,:1901,:2148;
|
|
65
55
|
* InquiryTreeMenu :186,:249,:595)
|
|
66
56
|
* constructPreloadedTree(tree, pageList, catalog)
|
|
67
57
|
* → buildPreloadedDisplayList(tree, pageList, { makeId, catalogObjects: catalog }) (:2563)
|
|
68
58
|
* getSearchValueString(nodeObj, searchIdentifier) — unchanged signature (:598,:749,:1838)
|
|
69
59
|
*/
|
|
60
|
+
/** Where the row's child levels stand — THE chevron/fetch predicate. */
|
|
61
|
+
const rowChildState = (node) => node?.childState ?? "none";
|
|
62
|
+
/** A lazy level the row has not loaded yet: what an expand fetches. */
|
|
63
|
+
const hasUnloadedChildren = (node) => {
|
|
64
|
+
const state = rowChildState(node);
|
|
65
|
+
return state === "lazy" || state === "error";
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* THE load rule, read off the parent: a level's child levels load lazily —
|
|
69
|
+
* collapsed, fetched on expand — when it sets `lazyLoad`, and eagerly
|
|
70
|
+
* otherwise. One setting on the parent, the one both builders store and v1
|
|
71
|
+
* reads.
|
|
72
|
+
*/
|
|
73
|
+
const loadsChildrenLazily = (level) => !!level?.properties?.["lazyLoad"];
|
|
70
74
|
/**
|
|
71
|
-
* The row's DISPLAY label — the exact string the tree renders for a node:
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
75
|
+
* The row's DISPLAY label — the exact string the tree renders for a node: the
|
|
76
|
+
* entity row's resolved `nodeLabel` (stamped by processObjIndexInPlace from the
|
|
77
|
+
* `displayName` template), else the level's name as the Tree Builder shows it
|
|
78
|
+
* (levelName — a group's label). Never blank. One reader for the menu/filter
|
|
79
|
+
* and the record pane, so nothing derives it twice.
|
|
76
80
|
*/
|
|
77
81
|
const resolveRowLabel = (node) => {
|
|
78
|
-
const
|
|
79
|
-
|
|
80
|
-
|
|
82
|
+
const label = node.isGroupNode ? null : node.properties?.["nodeLabel"];
|
|
83
|
+
return typeof label === "string" && label || levelName({
|
|
84
|
+
...node,
|
|
85
|
+
properties: node.properties ?? {}
|
|
86
|
+
});
|
|
81
87
|
};
|
|
82
88
|
/** The row's entity name — `properties.catalogReturnObject` when it is a string. */
|
|
83
89
|
const nodeEntityName = (node) => {
|
|
84
90
|
const entity = node?.properties?.["catalogReturnObject"];
|
|
85
91
|
return typeof entity === "string" ? entity : void 0;
|
|
86
92
|
};
|
|
87
|
-
/**
|
|
88
|
-
|
|
93
|
+
/**
|
|
94
|
+
* A level node's per-row copy: everything but its config subtree is cloned
|
|
95
|
+
* (enrichment rewrites id/properties), while `children` stays the shared
|
|
96
|
+
* config array — enrichment and the walkers only read it, and
|
|
97
|
+
* makeTreeStructureInPlace replaces it before anything is nested.
|
|
98
|
+
*/
|
|
99
|
+
const cloneLevel = (node) => {
|
|
100
|
+
const copy = deepClone({
|
|
101
|
+
...node,
|
|
102
|
+
children: void 0
|
|
103
|
+
});
|
|
104
|
+
copy.children = node.children;
|
|
105
|
+
return copy;
|
|
106
|
+
};
|
|
89
107
|
/** checkNodeIsHidden (TreeUtilities.js:2199-2229) — delegates to the runtime port. */
|
|
90
|
-
const checkDisplayNodeHidden = (node, item
|
|
108
|
+
const checkDisplayNodeHidden = (node, item) => isNodeHidden(node, item);
|
|
91
109
|
/**
|
|
92
110
|
* GroupNode model port (models/GroupNode.ts:16-46) in the exact legacy display
|
|
93
111
|
* shape and key order. Legacy defaulted a missing id to uuid() — makeId here.
|
|
@@ -113,22 +131,6 @@ const makeDisplayGroupNode = (init, makeId) => ({
|
|
|
113
131
|
},
|
|
114
132
|
isOutlierGroup: init.isOutlierGroup || false
|
|
115
133
|
});
|
|
116
|
-
/** Port of processCatalogObjectKeysInOrder (TreeUtilities.js:365-378). */
|
|
117
|
-
const collectCatalogObjectKeysInOrder = (tree, keys) => {
|
|
118
|
-
if (!tree?.children?.length) keys.push(tree?.properties?.["catalogObjectKey"]);
|
|
119
|
-
else {
|
|
120
|
-
if (tree?.properties?.["catalogObjectKey"]) keys.push(tree.properties["catalogObjectKey"]);
|
|
121
|
-
tree.children.forEach((node) => collectCatalogObjectKeysInOrder(node, keys));
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
/** Port of processOrderedTreeData (TreeUtilities.js:380-389) — pre-order flatten. */
|
|
125
|
-
const flattenTreeInPreOrder = (tree, treeData) => {
|
|
126
|
-
if (!tree?.children?.length) treeData.push(tree);
|
|
127
|
-
else {
|
|
128
|
-
treeData.push(tree);
|
|
129
|
-
tree.children.forEach((node) => flattenTreeInPreOrder(node, treeData));
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
134
|
/** Port of findNodeById (TreeUtilities.js:1599-1609). */
|
|
133
135
|
const findDisplayNodeById = (tree, id) => {
|
|
134
136
|
let result = null;
|
|
@@ -157,10 +159,9 @@ const findDisplayNodesByIdAndLabel = (tree, id, label) => {
|
|
|
157
159
|
return results;
|
|
158
160
|
};
|
|
159
161
|
/**
|
|
160
|
-
* DRAGGABILITY IS DERIVED
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
* rather than ticked on its own:
|
|
162
|
+
* DRAGGABILITY IS DERIVED (see makeTreeStructureInPlace). A row can only be
|
|
163
|
+
* picked up where dropping it somewhere would do something, so the drag side is
|
|
164
|
+
* computed from the drop side rather than ticked on its own:
|
|
164
165
|
*
|
|
165
166
|
* a level's rows are draggable ⟺ SOME level of the tree carries an
|
|
166
167
|
* `On_Node_Drop` node action whose `dragEntityName` accepts this level's
|
|
@@ -169,9 +170,9 @@ const findDisplayNodesByIdAndLabel = (tree, id, label) => {
|
|
|
169
170
|
* That is exactly the accept rule the drop side already runs — the target row's
|
|
170
171
|
* accepts are its On_Node_Drop actions' dragEntityNames
|
|
171
172
|
* (InquiryFluentTreeMenu.jsx itemDropAccepts), matched against the source row's
|
|
172
|
-
* `catalogReturnObject` drag tag case-insensitively
|
|
173
|
-
*
|
|
174
|
-
*
|
|
173
|
+
* `catalogReturnObject` drag tag case-insensitively (isDragEntity). Deriving
|
|
174
|
+
* from the same rule is what makes "draggable" and "droppable" impossible to
|
|
175
|
+
* disagree.
|
|
175
176
|
*
|
|
176
177
|
* Trigger type is the whole gate, as on the drop side: whether the action then
|
|
177
178
|
* runs an API or opens a page is the drop handler's business, not the grip's.
|
|
@@ -182,7 +183,14 @@ const findDisplayNodesByIdAndLabel = (tree, id, label) => {
|
|
|
182
183
|
* as the drop side compares it (a wire enum: the number 1, never a name).
|
|
183
184
|
*/
|
|
184
185
|
const ON_NODE_DROP_TRIGGER = 1;
|
|
185
|
-
/**
|
|
186
|
+
/** An entity name as a drag tag: the full name, case-folded (blank if none). */
|
|
187
|
+
const dragTag = (entityName) => typeof entityName === "string" ? entityName.toLowerCase() : "";
|
|
188
|
+
/** Whether a drop action's `dragEntityName` names `entityName` — the gate's rule. */
|
|
189
|
+
const isDragEntity = (dragEntityName, entityName) => {
|
|
190
|
+
const tag = dragTag(entityName);
|
|
191
|
+
return !!tag && dragTag(dragEntityName) === tag;
|
|
192
|
+
};
|
|
193
|
+
/** The drag tags some level's On_Node_Drop actions accept. */
|
|
186
194
|
const collectDropSourceEntities = (levels) => {
|
|
187
195
|
const accepted = /* @__PURE__ */ new Set();
|
|
188
196
|
(levels ?? []).forEach((level) => {
|
|
@@ -191,8 +199,8 @@ const collectDropSourceEntities = (levels) => {
|
|
|
191
199
|
actions.forEach((action) => {
|
|
192
200
|
const row = action;
|
|
193
201
|
if (row?.triggerType !== ON_NODE_DROP_TRIGGER) return;
|
|
194
|
-
const
|
|
195
|
-
if (
|
|
202
|
+
const tag = dragTag(row?.dragEntityName);
|
|
203
|
+
if (tag) accepted.add(tag);
|
|
196
204
|
});
|
|
197
205
|
});
|
|
198
206
|
return accepted;
|
|
@@ -200,11 +208,16 @@ const collectDropSourceEntities = (levels) => {
|
|
|
200
208
|
/** Whether this level's rows are draggable, given the tree's accepted entities. */
|
|
201
209
|
const isDraggableLevel = (node, acceptedEntities) => {
|
|
202
210
|
if (!node || node.isGroupNode) return false;
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
return entity ? acceptedEntities.has(entity.toLowerCase()) : false;
|
|
211
|
+
const tag = dragTag(nodeEntityName(node));
|
|
212
|
+
return !!tag && acceptedEntities.has(tag);
|
|
206
213
|
};
|
|
207
214
|
/**
|
|
215
|
+
* A hideEmptyGroups heading with no record anywhere under it. Lazily fetched
|
|
216
|
+
* levels keep every heading (so a Show More page merges into them in config
|
|
217
|
+
* order); the menu hides these when it draws the tree.
|
|
218
|
+
*/
|
|
219
|
+
const isEmptyHiddenHeading = (node) => !!node?.isGroupNode && !!node.hideEmptyGroups && (node.children ?? []).every(isEmptyHiddenHeading);
|
|
220
|
+
/**
|
|
208
221
|
* In-place port of makeTreeStructure (TreeUtilities.js:17-93): resets every
|
|
209
222
|
* node's children, seeds isExpanded from defaultDisplay/lazyLoad for entity
|
|
210
223
|
* nodes without one, nests by parentKey/parentGroupKey (group nodes dedup by
|
|
@@ -212,17 +225,15 @@ const isDraggableLevel = (node, acceptedEntities) => {
|
|
|
212
225
|
* the presence of parentGroupId), prunes empty hideEmptyGroups groups, and
|
|
213
226
|
* returns a single root bare or several as an array.
|
|
214
227
|
*/
|
|
215
|
-
const makeTreeStructureInPlace = (treeData, key, parentKey, parentGroupKey = "parentGroupId"
|
|
228
|
+
const makeTreeStructureInPlace = (treeData, key, parentKey, parentGroupKey = "parentGroupId") => {
|
|
216
229
|
if (!treeData) return [];
|
|
217
|
-
const
|
|
218
|
-
|
|
219
|
-
if (!node?.isGroupNode
|
|
230
|
+
const parentsOfLevels = /* @__PURE__ */ new Set();
|
|
231
|
+
treeData.forEach((node) => {
|
|
232
|
+
if (!node?.isGroupNode) parentsOfLevels.add(node[parentKey]);
|
|
220
233
|
});
|
|
221
|
-
const dropSourceEntities = loadMode === "config" ? collectDropSourceEntities(treeData) : /* @__PURE__ */ new Set();
|
|
222
234
|
treeData.forEach((node) => {
|
|
223
235
|
node.children = [];
|
|
224
|
-
if (
|
|
225
|
-
if (node["isExpanded"] === void 0 && !node.isGroupNode) node.isExpanded = loadMode === "config" ? node.properties["defaultDisplay"] !== "collapsed" && parentsOfEagerLevels.has(node[key]) : !(node.properties["defaultDisplay"] === "collapsed" || node.properties["lazyLoad"]);
|
|
236
|
+
if (node["isExpanded"] === void 0 && !node.isGroupNode) node.isExpanded = node.properties["defaultDisplay"] !== "collapsed" && !loadsChildrenLazily(node) && parentsOfLevels.has(node[key]);
|
|
226
237
|
});
|
|
227
238
|
const roots = treeData.filter((node) => !(node?.isGroupNode ? node[parentGroupKey] : node[parentKey]));
|
|
228
239
|
const childrenByParent = /* @__PURE__ */ new Map();
|
|
@@ -262,146 +273,89 @@ const makeTreeStructureInPlace = (treeData, key, parentKey, parentGroupKey = "pa
|
|
|
262
273
|
return filteredRoots;
|
|
263
274
|
};
|
|
264
275
|
/**
|
|
265
|
-
* Pure port of makeTreeStructure (TreeUtilities.js:17-93) — flat
|
|
276
|
+
* Pure port of makeTreeStructure (TreeUtilities.js:17-93) — the tree's flat
|
|
266
277
|
* nodes → nested display seed. Legacy mutated the caller's treeStructure
|
|
267
278
|
* (poisoning shared caches); this deep-clones the input first, so the caller's
|
|
268
279
|
* array is never touched. Defaults match every legacy call site
|
|
269
280
|
* (`makeTreeStructure(ts, 'id', 'parentId')` — InquiryContainer.jsx:569,:731,
|
|
270
281
|
* :1140,:1293,:1811,:2143,:2558).
|
|
271
282
|
*/
|
|
272
|
-
const makeDisplayTreeStructure = (treeData, key = "id", parentKey = "parentId", parentGroupKey = "parentGroupId"
|
|
283
|
+
const makeDisplayTreeStructure = (treeData, key = "id", parentKey = "parentId", parentGroupKey = "parentGroupId") => {
|
|
273
284
|
if (!treeData) return [];
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* v1's eager/lazy rule, preserved verbatim (this is the former
|
|
280
|
-
* `resolveLoadMode`):
|
|
281
|
-
*
|
|
282
|
-
* A child level renders from nested eager data when the parent row carries
|
|
283
|
-
* it; otherwise it loads lazily. `properties.lazyLoad` is a FORCED-LAZY
|
|
284
|
-
* OVERRIDE — a level marked lazy ignores whatever eager data the row happens
|
|
285
|
-
* to carry.
|
|
286
|
-
*
|
|
287
|
-
* - the row carries the child's catalogObjectKey (any value, `[]` included)
|
|
288
|
-
* → eager: the level renders from that data, no descriptors, groups apply;
|
|
289
|
-
* - the row carries null/undefined/no key at all
|
|
290
|
-
* → lazy: search descriptors are built so the menu shows a chevron and
|
|
291
|
-
* pages the level in on expand;
|
|
292
|
-
* - a child level with no catalogObjectKey binds to no data and takes no
|
|
293
|
-
* part in the decision.
|
|
294
|
-
*
|
|
295
|
-
* @deprecated Dies with v1 (`src/inquiry/InquiryContainer.jsx`). New code
|
|
296
|
-
* passes `loadMode: 'config'`; nothing else may call this.
|
|
297
|
-
*/
|
|
298
|
-
const resolveLegacyLoadMode = (node, parentRow) => {
|
|
299
|
-
const children = node?.children ?? [];
|
|
300
|
-
if (node?.properties?.["lazyLoad"]) return {
|
|
301
|
-
eagerChildKeys: /* @__PURE__ */ new Set(),
|
|
302
|
-
lazyChildNodes: children,
|
|
303
|
-
forcedLazy: true
|
|
304
|
-
};
|
|
305
|
-
const row = parentRow ?? {};
|
|
306
|
-
const eagerChildKeys = /* @__PURE__ */ new Set();
|
|
307
|
-
const lazyChildNodes = [];
|
|
308
|
-
children.forEach((child) => {
|
|
309
|
-
const key = child?.properties?.["catalogObjectKey"];
|
|
310
|
-
if (!key) return;
|
|
311
|
-
if (row[key] == null) lazyChildNodes.push(child);
|
|
312
|
-
else eagerChildKeys.add(key);
|
|
285
|
+
const levels = deepClone(treeData);
|
|
286
|
+
const dropSourceEntities = collectDropSourceEntities(levels);
|
|
287
|
+
levels.forEach((node) => {
|
|
288
|
+
if (!node.isGroupNode) node.draggable = isDraggableLevel(node, dropSourceEntities);
|
|
313
289
|
});
|
|
314
|
-
return
|
|
315
|
-
eagerChildKeys,
|
|
316
|
-
lazyChildNodes,
|
|
317
|
-
forcedLazy: false
|
|
318
|
-
};
|
|
290
|
+
return makeTreeStructureInPlace(levels, key, parentKey, parentGroupKey);
|
|
319
291
|
};
|
|
320
292
|
/**
|
|
321
|
-
*
|
|
322
|
-
* loader could not fetch renders EMPTY — it
|
|
323
|
-
* a lazy level ignores anything that happens
|
|
293
|
+
* THE EAGER/LAZY SPLIT for one level: config decides (loadsChildrenLazily). An
|
|
294
|
+
* eager level whose rows the wave loader could not fetch renders EMPTY — it
|
|
295
|
+
* never silently becomes lazy — and a lazy level ignores anything that happens
|
|
296
|
+
* to ride the row. Nothing downstream re-decides it.
|
|
324
297
|
*/
|
|
325
|
-
const
|
|
298
|
+
const splitChildLevels = (node) => {
|
|
326
299
|
const eagerChildKeys = /* @__PURE__ */ new Set();
|
|
327
300
|
const lazyChildNodes = [];
|
|
301
|
+
const lazy = loadsChildrenLazily(node);
|
|
328
302
|
(node?.children ?? []).forEach((child) => {
|
|
329
303
|
const key = child?.properties?.["catalogObjectKey"];
|
|
330
304
|
if (!key) return;
|
|
331
|
-
if (
|
|
332
|
-
else
|
|
305
|
+
if (lazy) lazyChildNodes.push(child);
|
|
306
|
+
else eagerChildKeys.add(key);
|
|
333
307
|
});
|
|
334
308
|
return {
|
|
335
309
|
eagerChildKeys,
|
|
336
|
-
lazyChildNodes
|
|
337
|
-
forcedLazy: false
|
|
310
|
+
lazyChildNodes
|
|
338
311
|
};
|
|
339
312
|
};
|
|
340
313
|
/**
|
|
341
|
-
* THE EAGER/LAZY SPLIT for one level, under the caller's chosen rule. Nothing
|
|
342
|
-
* downstream re-decides it.
|
|
343
|
-
*/
|
|
344
|
-
const splitChildLevels = (node, loadMode = DEFAULT_LOAD_MODE, parentRow) => loadMode === "config" ? resolveConfiguredLoadMode(node) : resolveLegacyLoadMode(node, parentRow);
|
|
345
|
-
/**
|
|
346
314
|
* In-place port of processObjIndex (TreeUtilities.js:594-716), composed from
|
|
347
315
|
* the runtime.ts ports where legacy wrote properties: the
|
|
348
316
|
* conditionalNodeIcon… and conditionalNodeAdornment… triples via
|
|
349
|
-
* evaluateConditionalIconParts/evaluateConditionalAdornmentParts,
|
|
350
|
-
*
|
|
351
|
-
*
|
|
352
|
-
*
|
|
353
|
-
*
|
|
354
|
-
*
|
|
355
|
-
*
|
|
356
|
-
* :735-957 including the 'Error: Promote …' message, last child wins).
|
|
317
|
+
* evaluateConditionalIconParts/evaluateConditionalAdornmentParts, searchValue
|
|
318
|
+
* via buildRuntimeSearchState (one documented micro-divergence: a falsy
|
|
319
|
+
* non-nullish associatedTreePrimaryKeyMap value ('') resolves to '' instead of
|
|
320
|
+
* the identifier name — buildRuntimeSearchState uses ?? where legacy used a
|
|
321
|
+
* ternary), labels via resolveDisplayName/Details, and lazyLoadChildrenArr +
|
|
322
|
+
* childState via buildLazyLoadDescriptors (getLazyLoadChildrenArr :735-957
|
|
323
|
+
* including the 'Error: Promote …' message, last child wins).
|
|
357
324
|
*
|
|
358
325
|
* The eager/lazy split is NOT decided here — it asks splitChildLevels (the one
|
|
359
326
|
* owner) and returns that split so the walkers can honor it without
|
|
360
327
|
* re-deriving it.
|
|
361
328
|
*/
|
|
362
|
-
const processObjIndexInPlace = (node, obj, parentId,
|
|
363
|
-
const entityView = node;
|
|
329
|
+
const processObjIndexInPlace = (node, obj, parentId, { makeId, catalogObjects, promotedEntities }) => {
|
|
364
330
|
const props = node.properties;
|
|
365
|
-
const iconParts = evaluateConditionalIconParts(
|
|
331
|
+
const iconParts = evaluateConditionalIconParts(node, obj);
|
|
366
332
|
if (iconParts) {
|
|
367
333
|
props["conditionalNodeIconName"] = iconParts.name;
|
|
368
334
|
props["conditionalNodeIconColor"] = iconParts.colorHex;
|
|
369
335
|
props["conditionalNodeIconType"] = iconParts.type;
|
|
370
336
|
props["conditionalNodeIconFluentName"] = iconParts.fluentName;
|
|
371
337
|
}
|
|
372
|
-
const adornmentParts = evaluateConditionalAdornmentParts(
|
|
338
|
+
const adornmentParts = evaluateConditionalAdornmentParts(node, obj);
|
|
373
339
|
if (adornmentParts) {
|
|
374
340
|
props["conditionalNodeAdornmentName"] = adornmentParts.name;
|
|
375
341
|
props["conditionalNodeAdornmentColor"] = adornmentParts.colorHex;
|
|
376
342
|
props["conditionalNodeAdornmentType"] = adornmentParts.type;
|
|
377
343
|
props["conditionalNodeAdornmentFluentName"] = adornmentParts.fluentName;
|
|
378
344
|
}
|
|
379
|
-
if (props["catalogReturnObject"])
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
if (associatedTreePrimaryKeyMap) props["searchIdentifier"] = Object.keys(associatedTreePrimaryKeyMap);
|
|
383
|
-
const searchState = buildRuntimeSearchState(entityView, obj, catalogObjects);
|
|
384
|
-
props["filterElements"] = searchState.filterElements;
|
|
385
|
-
props["searchValue"] = searchState.searchValue;
|
|
386
|
-
}
|
|
387
|
-
props["nodeLabel"] = resolveDisplayName(entityView, obj);
|
|
388
|
-
props["nodeSubLabel"] = resolveDisplayDetails(entityView, obj);
|
|
389
|
-
props["headerTitle"] = resolveHeaderTitle(entityView, obj);
|
|
345
|
+
if (props["catalogReturnObject"]) props["searchValue"] = buildRuntimeSearchState(node, obj, catalogObjects).searchValue;
|
|
346
|
+
props["nodeLabel"] = resolveDisplayName(node, obj);
|
|
347
|
+
props["nodeSubLabel"] = resolveDisplayDetails(node, obj);
|
|
390
348
|
node.parentId = parentId;
|
|
391
349
|
node["entityNodeParentId"] = parentId;
|
|
392
350
|
node["configNodeId"] = node.id;
|
|
393
351
|
node.id = makeId();
|
|
394
352
|
node.nodeObj = obj;
|
|
395
|
-
const split = splitChildLevels(node
|
|
396
|
-
if (split.
|
|
397
|
-
const { descriptors, errorRetrievingChildren } = buildLazyLoadDescriptors(
|
|
398
|
-
node.lazyLoadChildrenArr = descriptors;
|
|
399
|
-
if (errorRetrievingChildren) node["errorRetrievingChildren"] = errorRetrievingChildren;
|
|
400
|
-
} else if (split.lazyChildNodes.length) {
|
|
401
|
-
const { descriptors, errorRetrievingChildren } = buildLazyLoadDescriptors(entityView, obj, split.lazyChildNodes, catalogObjects, promotedEntities);
|
|
353
|
+
const split = splitChildLevels(node);
|
|
354
|
+
if (split.lazyChildNodes.length) {
|
|
355
|
+
const { descriptors, errorRetrievingChildren } = buildLazyLoadDescriptors(node, obj, split.lazyChildNodes, catalogObjects, promotedEntities);
|
|
402
356
|
if (descriptors.length || errorRetrievingChildren) {
|
|
403
|
-
|
|
404
|
-
|
|
357
|
+
node.childState = errorRetrievingChildren ? "error" : "lazy";
|
|
358
|
+
node.isExpanded = false;
|
|
405
359
|
node.lazyLoadChildrenArr = descriptors;
|
|
406
360
|
if (errorRetrievingChildren) node["errorRetrievingChildren"] = errorRetrievingChildren;
|
|
407
361
|
}
|
|
@@ -409,6 +363,11 @@ const processObjIndexInPlace = (node, obj, parentId, catalogObjects, promotedEnt
|
|
|
409
363
|
return split;
|
|
410
364
|
};
|
|
411
365
|
/**
|
|
366
|
+
* The level's groupings of `groupType` when grouping is enabled, else [].
|
|
367
|
+
* Legacy's unguarded `groupings[groupType]` read (:1784) is kept.
|
|
368
|
+
*/
|
|
369
|
+
const groupingsOf = (groupConfiguration, groupType) => groupConfiguration?.enabled ? groupConfiguration.groupings[groupType] ?? [] : [];
|
|
370
|
+
/**
|
|
412
371
|
* In-place port of makeTreeStaticGroupStructure (TreeUtilities.js:95-145):
|
|
413
372
|
* replaces each ordered group config with a display GroupNode (quirk kept:
|
|
414
373
|
* parentId is set to the config parentGroupId). The per-config
|
|
@@ -418,7 +377,7 @@ const processObjIndexInPlace = (node, obj, parentId, catalogObjects, promotedEnt
|
|
|
418
377
|
* subgroup hides when empty just like its top-level heading — legacy forwarded
|
|
419
378
|
* it to the top group only, which left empty subgroup headings on screen.
|
|
420
379
|
*/
|
|
421
|
-
const makeTreeStaticGroupStructureInPlace = (treeData, key,
|
|
380
|
+
const makeTreeStaticGroupStructureInPlace = (treeData, key, groupType, makeId, hideEmptyGroups) => {
|
|
422
381
|
if (!treeData) return [];
|
|
423
382
|
const keys = [];
|
|
424
383
|
const groupNodes = treeData.map((node) => {
|
|
@@ -461,18 +420,17 @@ const makeTreeStaticGroupStructureInPlace = (treeData, key, parentKey, groupType
|
|
|
461
420
|
* apiMethodInstanceId/children inside properties (:1821), outlier==='group'
|
|
462
421
|
* adds the outlier group node. Divergence from legacy (:1824): hideEmptyGroups
|
|
463
422
|
* is stamped on EVERY heading this builds — subgroups and the ungrouped-records
|
|
464
|
-
* outlier heading included, not just the top group
|
|
465
|
-
*
|
|
466
|
-
* shows ON for a config that never stored the key, so treating it as OFF here
|
|
467
|
-
* left empty headings on screen against what the builder promised.
|
|
423
|
+
* outlier heading included, not just the top group. An absent flag reads as
|
|
424
|
+
* OFF, as legacy and the Tree Builder's toggle read it.
|
|
468
425
|
*/
|
|
469
426
|
const constructStaticNodeGroupsInPlace = (tree, shouldUseNewId, makeId) => {
|
|
470
427
|
const nodeGroups = [];
|
|
471
428
|
const groupConfiguration = tree?.properties?.["groupConfiguration"];
|
|
472
429
|
const groupType = groupConfiguration?.groupType || NODE_GROUP_TYPE.Static;
|
|
473
|
-
const hideEmptyGroups = groupConfiguration?.hideEmptyGroups
|
|
474
|
-
|
|
475
|
-
|
|
430
|
+
const hideEmptyGroups = groupConfiguration?.hideEmptyGroups === true;
|
|
431
|
+
const groupings = groupingsOf(groupConfiguration, groupType);
|
|
432
|
+
if (groupings.length) {
|
|
433
|
+
groupings.forEach((grouping) => {
|
|
476
434
|
const orderedGroups = orderGroupsByOrder(grouping?.groups ?? []);
|
|
477
435
|
const newIdMap = {};
|
|
478
436
|
orderedGroups.forEach((group) => {
|
|
@@ -486,7 +444,7 @@ const constructStaticNodeGroupsInPlace = (tree, shouldUseNewId, makeId) => {
|
|
|
486
444
|
if (orderedGroups?.length) {
|
|
487
445
|
const firstGroup = orderedGroups.find((group) => !group.parentGroupId) || orderedGroups[0];
|
|
488
446
|
orderedGroups.shift();
|
|
489
|
-
const displayTree = makeTreeStaticGroupStructureInPlace(orderedGroups, "id",
|
|
447
|
+
const displayTree = makeTreeStaticGroupStructureInPlace(orderedGroups, "id", groupType, makeId, hideEmptyGroups);
|
|
490
448
|
const { id, isExpanded, ...firstGroupProperties } = firstGroup;
|
|
491
449
|
const groupNode = makeDisplayGroupNode({
|
|
492
450
|
id,
|
|
@@ -517,7 +475,7 @@ const constructStaticNodeGroupsInPlace = (tree, shouldUseNewId, makeId) => {
|
|
|
517
475
|
/** In-place port of updateNodeForStaticGrouping (TreeUtilities.js:1659-1691). */
|
|
518
476
|
const updateNodeForStaticGroupingInPlace = (displayTree, nodeGroup, nodeChildren, treeList, scopedGroupItemIndexes, groupedItemIndexes, index, item) => {
|
|
519
477
|
const updatedDisplayTree = { ...displayTree };
|
|
520
|
-
if (!checkDisplayNodeHidden(updatedDisplayTree, item
|
|
478
|
+
if (!checkDisplayNodeHidden(updatedDisplayTree, item)) {
|
|
521
479
|
updatedDisplayTree.children = displayTree.children ? deepClone(displayTree.children) : displayTree.children;
|
|
522
480
|
updatedDisplayTree["parentId"] = nodeGroup.id;
|
|
523
481
|
updatedDisplayTree["parentGroupId"] = nodeGroup.id;
|
|
@@ -542,7 +500,7 @@ const processItemForStaticNodeGroupInPlace = (nodeGroup, item, groupedItemIndexe
|
|
|
542
500
|
const groupJsonLogic = nodeGroup?.properties?.["jsonLogic"];
|
|
543
501
|
if (propertyMapping && groupJsonLogic) {
|
|
544
502
|
const rule = mapRuleVariables(propertyMapping, groupJsonLogic);
|
|
545
|
-
if (rule && applyRule(rule, item
|
|
503
|
+
if (rule && applyRule(rule, item)) {
|
|
546
504
|
let itemAdded = false;
|
|
547
505
|
nodeGroup.children.forEach((childGroup) => {
|
|
548
506
|
if (childGroup.isGroupNode) itemAdded = processItemForStaticNodeGroupInPlace(childGroup, item, groupedItemIndexes, displayTree, index, childGroup.children?.length ? /* @__PURE__ */ new Set() : scopedGroupItemIndexes, treeList, nodeChildren)?.itemAdded;
|
|
@@ -555,7 +513,7 @@ const processItemForStaticNodeGroupInPlace = (nodeGroup, item, groupedItemIndexe
|
|
|
555
513
|
} else if (nodeGroup.isOutlierGroup && !groupedItemIndexes.has(index)) updateNodeForStaticGroupingInPlace(displayTree, nodeGroup, nodeChildren, treeList, scopedGroupItemIndexes, groupedItemIndexes, index, item);
|
|
556
514
|
if (treeList && nodeGroup.isGroupNode) {
|
|
557
515
|
if (!treeList.filter((node) => node.isGroupNode).find((eg) => eg.id === nodeGroup.id)) {
|
|
558
|
-
if (!checkDisplayNodeHidden(nodeGroup, item
|
|
516
|
+
if (!checkDisplayNodeHidden(nodeGroup, item)) treeList.push(nodeGroup);
|
|
559
517
|
}
|
|
560
518
|
}
|
|
561
519
|
return {
|
|
@@ -594,16 +552,44 @@ const updateTreeIdsInPlace = (node, lastEntityNodeId, newId, newParentId, parent
|
|
|
594
552
|
if (node?.children?.length) node.children.forEach((child) => updateTreeIdsInPlace(child, entityNodeParentId, makeId(), newId, parentGroupName, makeId));
|
|
595
553
|
};
|
|
596
554
|
/** In-place port of processGroupNodesAndAddToTreeList (TreeUtilities.js:2145-2179). */
|
|
597
|
-
const processGroupNodesAndAddToTreeListInPlace = (node, treeList, lastEntityNodeId, item
|
|
555
|
+
const processGroupNodesAndAddToTreeListInPlace = (node, treeList, lastEntityNodeId, item) => {
|
|
598
556
|
let entityNodeParentId = lastEntityNodeId;
|
|
599
557
|
if (treeList) {
|
|
600
558
|
if (!treeList.find((tree) => tree.id === node.id)) {
|
|
601
559
|
if (!node.isGroupNode && entityNodeParentId) node["entityNodeParentId"] = entityNodeParentId;
|
|
602
560
|
if (!node.isGroupNode) entityNodeParentId = node.id;
|
|
603
|
-
if (!checkDisplayNodeHidden(node, item
|
|
561
|
+
if (!checkDisplayNodeHidden(node, item)) treeList.push(node);
|
|
604
562
|
}
|
|
605
563
|
}
|
|
606
|
-
if (node?.children?.length) node.children.forEach((child) => processGroupNodesAndAddToTreeListInPlace(child, treeList, entityNodeParentId, item
|
|
564
|
+
if (node?.children?.length) node.children.forEach((child) => processGroupNodesAndAddToTreeListInPlace(child, treeList, entityNodeParentId, item));
|
|
565
|
+
};
|
|
566
|
+
/**
|
|
567
|
+
* The heading a group-by-field level gives records with NO value for the field.
|
|
568
|
+
* Deliberate divergence from legacy, which left those records loose beside the
|
|
569
|
+
* headings (v1 :2092-2093, v2 :2697-2735): a field's values are the groups, and
|
|
570
|
+
* no value is one of them — the grouped-list convention (a "(Blank)" group,
|
|
571
|
+
* listed last). The heading carries `properties.blank`, so a renderer can
|
|
572
|
+
* translate the label.
|
|
573
|
+
*/
|
|
574
|
+
const BLANK_GROUP_LABEL = "(Blank)";
|
|
575
|
+
const isBlankGroup = (node) => !!node.isGroupNode && node.properties?.["blank"] === true;
|
|
576
|
+
/** Blank headings after their siblings, at every depth of the headings. */
|
|
577
|
+
const blankGroupsLastInPlace = (nodes) => {
|
|
578
|
+
nodes.sort((a, b) => Number(isBlankGroup(a)) - Number(isBlankGroup(b)));
|
|
579
|
+
nodes.forEach((node) => {
|
|
580
|
+
if (node.isGroupNode) blankGroupsLastInPlace(node.children ?? []);
|
|
581
|
+
});
|
|
582
|
+
};
|
|
583
|
+
/**
|
|
584
|
+
* A row's group label for one field (v1 path): the field's value, or the blank
|
|
585
|
+
* label when it has none. A falsy value that IS a value (0, false) is given as
|
|
586
|
+
* text, so the truthiness checks legacy guards its headings with let it through.
|
|
587
|
+
*/
|
|
588
|
+
const dynamicGroupLabelOf = (item, property) => {
|
|
589
|
+
if (!property) return null;
|
|
590
|
+
const value = getLabelFromProperty(item, property);
|
|
591
|
+
if (value === null || value === void 0 || value === "") return BLANK_GROUP_LABEL;
|
|
592
|
+
return value || toWireString(value);
|
|
607
593
|
};
|
|
608
594
|
/** In-place port of makeDynamicTreeStructure (TreeUtilities.js:254-278). */
|
|
609
595
|
const makeDynamicTreeStructureInPlace = (treeData, key, parentKey) => {
|
|
@@ -630,7 +616,7 @@ const makeDynamicTreeStructureInPlace = (treeData, key, parentKey) => {
|
|
|
630
616
|
/** Port of makeDynamicGroupTree (TreeUtilities.js:217-252) — display GroupNode variant. */
|
|
631
617
|
const makeDynamicGroupTreeLocal = (node, item, parentGroupNode, makeId) => {
|
|
632
618
|
const { id, children, apiMethodInstanceId, parentGroupId, order, property, label, isExpanded, ...groupProperties } = node;
|
|
633
|
-
const updatedLabel =
|
|
619
|
+
const updatedLabel = dynamicGroupLabelOf(item, property);
|
|
634
620
|
if (updatedLabel) {
|
|
635
621
|
const groupNode = makeDisplayGroupNode({
|
|
636
622
|
id: `${id}`,
|
|
@@ -641,7 +627,8 @@ const makeDynamicGroupTreeLocal = (node, item, parentGroupNode, makeId) => {
|
|
|
641
627
|
properties: {
|
|
642
628
|
label: updatedLabel,
|
|
643
629
|
...groupProperties,
|
|
644
|
-
propertyKey: property
|
|
630
|
+
propertyKey: property,
|
|
631
|
+
...updatedLabel === "(Blank)" ? { blank: true } : {}
|
|
645
632
|
}
|
|
646
633
|
}, makeId);
|
|
647
634
|
if (parentGroupNode) parentGroupNode.children.push(groupNode);
|
|
@@ -652,7 +639,7 @@ const makeDynamicGroupTreeLocal = (node, item, parentGroupNode, makeId) => {
|
|
|
652
639
|
/** Port of processDynamicGroupForCurrentNodeLevel (TreeUtilities.js:164-215). */
|
|
653
640
|
const processDynamicGroupForCurrentNodeLevelLocal = (item, node, groupStructures, previousFilteredGroups, makeId) => {
|
|
654
641
|
const { property, id } = node;
|
|
655
|
-
const label =
|
|
642
|
+
const label = dynamicGroupLabelOf(item, property);
|
|
656
643
|
let filteredGroups = [];
|
|
657
644
|
previousFilteredGroups.forEach((group) => {
|
|
658
645
|
if (group) {
|
|
@@ -689,11 +676,13 @@ const makeDynamicGroupStructuresLocal = (treeStructure, results, makeId) => {
|
|
|
689
676
|
* the buggy id-only lookup below the root (:2080), unmatched rows land in
|
|
690
677
|
* EVERY previous-level matched group (:2097-2102), single-group configs push
|
|
691
678
|
* the display tree as a top-level sibling into the group set (:2092-2093).
|
|
679
|
+
* A row with no value for the group field joins the "(Blank)" group
|
|
680
|
+
* (dynamicGroupLabelOf).
|
|
692
681
|
*/
|
|
693
682
|
const processItemForDynamicNodeGroupsInPlace = (displayTree, node, groupNodes, previousFilteredGroups = [], isSingleGroup = false) => {
|
|
694
683
|
const { property, id } = node;
|
|
695
684
|
const item = displayTree?.nodeObj;
|
|
696
|
-
const label =
|
|
685
|
+
const label = dynamicGroupLabelOf(item, property);
|
|
697
686
|
let filteredGroups = [];
|
|
698
687
|
previousFilteredGroups.forEach((group) => {
|
|
699
688
|
if (group) {
|
|
@@ -720,17 +709,17 @@ const processItemForDynamicNodeGroupsInPlace = (displayTree, node, groupNodes, p
|
|
|
720
709
|
/**
|
|
721
710
|
* In-place port of constructDynamicNodeGroups (TreeUtilities.js:1886-1975) —
|
|
722
711
|
* the v1 dynamic path processReferences uses (:444). Builds a display tree per
|
|
723
|
-
* row against the (already-cloned) node subtree
|
|
724
|
-
*
|
|
725
|
-
* (:1940-1948) — assigns non-hidden rows into the group forest, then re-issues
|
|
712
|
+
* row against the (already-cloned) node subtree, in the caller's build
|
|
713
|
+
* context, assigns non-hidden rows into the group forest, then re-issues
|
|
726
714
|
* every id (updateTreeIds :1966-1968). MUTATES the node's cloned
|
|
727
715
|
* groupConfiguration like legacy.
|
|
728
716
|
*/
|
|
729
|
-
const constructDynamicNodeGroupsInPlace = (results, tree, shouldUseNewId,
|
|
717
|
+
const constructDynamicNodeGroupsInPlace = (results, tree, shouldUseNewId, context) => {
|
|
718
|
+
const { makeId } = context;
|
|
730
719
|
let nodeGroups = [];
|
|
731
720
|
const groupConfiguration = tree?.properties?.["groupConfiguration"];
|
|
732
|
-
const
|
|
733
|
-
if (
|
|
721
|
+
const groupings = groupingsOf(groupConfiguration, groupConfiguration?.groupType || NODE_GROUP_TYPE.Dynamic);
|
|
722
|
+
if (groupings.length) groupings.forEach((grouping) => {
|
|
734
723
|
const orderedGroups = orderGroupsByOrder(grouping?.groups ?? []);
|
|
735
724
|
const newIdMap = {};
|
|
736
725
|
orderedGroups.forEach((group) => {
|
|
@@ -745,16 +734,11 @@ const constructDynamicNodeGroupsInPlace = (results, tree, shouldUseNewId, makeId
|
|
|
745
734
|
const isSingleGroup = orderedGroups.length === 1;
|
|
746
735
|
const dynamicTreeStructure = makeDynamicTreeStructureInPlace(orderedGroups, "id", "parentGroupId");
|
|
747
736
|
const groupSet = makeDynamicGroupStructuresLocal(dynamicTreeStructure, results, makeId);
|
|
748
|
-
const orderedKeys = [];
|
|
749
|
-
const orderedTreeData = [];
|
|
750
|
-
collectCatalogObjectKeysInOrder(tree, orderedKeys);
|
|
751
|
-
flattenTreeInPreOrder(tree, orderedTreeData);
|
|
752
737
|
results.forEach((item) => {
|
|
753
|
-
const
|
|
754
|
-
|
|
755
|
-
const updatedDisplayTree = deepClone(makeTreeStructureInPlace(treeArr, "id", "parentId", "parentGroupId", loadMode));
|
|
756
|
-
if (!checkDisplayNodeHidden(updatedDisplayTree, item, false)) processItemForDynamicNodeGroupsInPlace(updatedDisplayTree, dynamicTreeStructure, groupSet, groupSet, isSingleGroup);
|
|
738
|
+
const updatedDisplayTree = deepClone(composeRowTree(item, tree, context));
|
|
739
|
+
if (!checkDisplayNodeHidden(updatedDisplayTree, item)) processItemForDynamicNodeGroupsInPlace(updatedDisplayTree, dynamicTreeStructure, groupSet, groupSet, isSingleGroup);
|
|
757
740
|
});
|
|
741
|
+
blankGroupsLastInPlace(groupSet);
|
|
758
742
|
groupSet.forEach((group) => updateTreeIdsInPlace(group, null, makeId(), makeId(), null, makeId));
|
|
759
743
|
nodeGroups = nodeGroups.concat(groupSet);
|
|
760
744
|
}
|
|
@@ -763,127 +747,70 @@ const constructDynamicNodeGroupsInPlace = (results, tree, shouldUseNewId, makeId
|
|
|
763
747
|
};
|
|
764
748
|
/**
|
|
765
749
|
* In-place port of processReferences (TreeUtilities.js:419-591) — the
|
|
766
|
-
* recursive walker that
|
|
767
|
-
*
|
|
768
|
-
* (:439/:444 — static uses constructStaticNodeGroups, dynamic the v1
|
|
769
|
-
* constructDynamicNodeGroups), drops hidden rows, and recurses into child
|
|
770
|
-
*
|
|
771
|
-
* called eager
|
|
772
|
-
*
|
|
773
|
-
*
|
|
774
|
-
* "this level's children are fetched separately", and such a level is never
|
|
775
|
-
* descended into at all).
|
|
750
|
+
* recursive walker that copies a level per data row, enriches each copy
|
|
751
|
+
* (processObjIndex), synthesizes child-level static/dynamic groups for a nested
|
|
752
|
+
* LIST (:439/:444 — static uses constructStaticNodeGroups, dynamic the v1
|
|
753
|
+
* constructDynamicNodeGroups), drops hidden rows, and recurses into the child
|
|
754
|
+
* rows keyed by catalogObjectKey — but only into the levels splitChildLevels
|
|
755
|
+
* called eager. Each child level is walked against its OWN config node (legacy
|
|
756
|
+
* re-found it by catalogObjectKey position in a flattened key list, which
|
|
757
|
+
* picked the wrong level whenever two levels shared a key).
|
|
776
758
|
*/
|
|
777
|
-
const processReferencesInPlace = (reference,
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
if (
|
|
788
|
-
if (
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
nodeGroup.parentGroupId = nodeCopy.parentId;
|
|
804
|
-
});
|
|
805
|
-
if (!processedItem.itemAdded && groupConfiguration?.outlier === NODE_GROUP_OUTLIER.Individual) {
|
|
806
|
-
if (!checkDisplayNodeHidden(nodeCopy, ref, wasLazyLoaded)) treeList.push(nodeCopy);
|
|
807
|
-
}
|
|
808
|
-
} else if (groupConfiguration?.groupType === NODE_GROUP_TYPE.Dynamic) nodeGroups.forEach((nodeGroup) => {
|
|
809
|
-
nodeGroup.parentGroupId = nodeCopy.parentId;
|
|
810
|
-
nodeGroup.parentId = nodeCopy.parentId;
|
|
811
|
-
processGroupNodesAndAddToTreeListInPlace(nodeGroup, treeList, nodeCopy.parentId, ref, wasLazyLoaded);
|
|
812
|
-
});
|
|
813
|
-
} else if (!checkDisplayNodeHidden(nodeCopy, ref, wasLazyLoaded)) treeList.push(nodeCopy);
|
|
814
|
-
if (nodeCopy?.children?.length) {
|
|
815
|
-
const objectReferenceKeysCopy = [...objectReferenceKeys];
|
|
816
|
-
nodeCopy.children.forEach((childNode) => {
|
|
817
|
-
const catalogObjectKey = childNode?.properties?.["catalogObjectKey"];
|
|
818
|
-
const nextIndex = objectReferenceKeysCopy.indexOf(catalogObjectKey);
|
|
819
|
-
if (!parentId) objectReferenceKeysCopy[nextIndex] = null;
|
|
820
|
-
if (!catalogObjectKey || !split.eagerChildKeys.has(catalogObjectKey)) return;
|
|
821
|
-
processReferencesInPlace(ref[catalogObjectKey], objectReferenceKeys, treeData, nextIndex, treeList, nodeCopy.id, catalogObjects, promotedEntities, false, makeId, loadMode);
|
|
822
|
-
});
|
|
823
|
-
}
|
|
824
|
-
}
|
|
759
|
+
const processReferencesInPlace = (reference, node, treeList, parentId, ctx) => {
|
|
760
|
+
if (!reference || typeof reference !== "object") return;
|
|
761
|
+
const isList = Array.isArray(reference);
|
|
762
|
+
const rows = isList ? reference : [reference];
|
|
763
|
+
const groupConfiguration = node.properties?.["groupConfiguration"];
|
|
764
|
+
const groupType = parentId && isList ? groupConfiguration?.groupType : void 0;
|
|
765
|
+
const nodeGroups = groupType === NODE_GROUP_TYPE.Static ? constructStaticNodeGroupsInPlace(node, true, ctx.makeId) : groupType === NODE_GROUP_TYPE.Dynamic ? constructDynamicNodeGroupsInPlace(rows, node, true, ctx) : [];
|
|
766
|
+
rows.forEach((ref, i) => {
|
|
767
|
+
const nodeCopy = cloneLevel(node);
|
|
768
|
+
const split = processObjIndexInPlace(nodeCopy, ref, parentId, ctx);
|
|
769
|
+
if (!nodeGroups.length) {
|
|
770
|
+
if (!checkDisplayNodeHidden(nodeCopy, ref)) treeList.push(nodeCopy);
|
|
771
|
+
} else if (groupType === NODE_GROUP_TYPE.Static) {
|
|
772
|
+
const groupedItemIndexes = /* @__PURE__ */ new Set();
|
|
773
|
+
let itemAdded = false;
|
|
774
|
+
nodeGroups.forEach((nodeGroup) => {
|
|
775
|
+
const processedItem = processItemForStaticNodeGroupInPlace(nodeGroup, ref, groupedItemIndexes, nodeCopy, i, /* @__PURE__ */ new Set(), treeList);
|
|
776
|
+
itemAdded = processedItem.itemAdded;
|
|
777
|
+
mapNodeGroupChildrenInPlace(nodeGroup, processedItem.nodeChildren);
|
|
778
|
+
nodeGroup.parentGroupId = nodeCopy.parentId;
|
|
779
|
+
});
|
|
780
|
+
if (!itemAdded && groupConfiguration?.outlier === NODE_GROUP_OUTLIER.Individual && !checkDisplayNodeHidden(nodeCopy, ref)) treeList.push(nodeCopy);
|
|
781
|
+
} else nodeGroups.forEach((nodeGroup) => {
|
|
782
|
+
nodeGroup.parentGroupId = nodeCopy.parentId;
|
|
783
|
+
nodeGroup.parentId = nodeCopy.parentId;
|
|
784
|
+
processGroupNodesAndAddToTreeListInPlace(nodeGroup, treeList, nodeCopy.parentId, ref);
|
|
825
785
|
});
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
const objectReferenceKeysCopy = [...objectReferenceKeys];
|
|
833
|
-
nodeCopy.children.forEach((childNode) => {
|
|
834
|
-
const catalogObjectKey = childNode?.properties?.["catalogObjectKey"];
|
|
835
|
-
const nextIndex = parentId ? newIndex : objectReferenceKeysCopy.indexOf(catalogObjectKey);
|
|
836
|
-
if (!parentId) objectReferenceKeysCopy[nextIndex] = null;
|
|
837
|
-
if (!catalogObjectKey || !split.eagerChildKeys.has(catalogObjectKey)) return;
|
|
838
|
-
processReferencesInPlace(reference[catalogObjectKey], objectReferenceKeys, treeData, nextIndex, treeList, nodeCopy.id, catalogObjects, promotedEntities, false, makeId, loadMode);
|
|
839
|
-
});
|
|
840
|
-
}
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
}
|
|
786
|
+
(nodeCopy.children ?? []).forEach((childNode) => {
|
|
787
|
+
const catalogObjectKey = childNode?.properties?.["catalogObjectKey"];
|
|
788
|
+
if (!catalogObjectKey || !split.eagerChildKeys.has(catalogObjectKey)) return;
|
|
789
|
+
processReferencesInPlace(ref[catalogObjectKey], childNode, treeList, nodeCopy.id, ctx);
|
|
790
|
+
});
|
|
791
|
+
});
|
|
844
792
|
};
|
|
845
|
-
/**
|
|
846
|
-
|
|
847
|
-
|
|
793
|
+
/**
|
|
794
|
+
* One row composed against a level into its nested display tree — the
|
|
795
|
+
* processObjectToTree + makeTreeStructure pair (TreeUtilities.js:392-413).
|
|
796
|
+
*/
|
|
797
|
+
const composeRowTree = (row, level, ctx) => {
|
|
798
|
+
const treeList = [];
|
|
799
|
+
processReferencesInPlace(row, level, treeList, null, ctx);
|
|
800
|
+
return makeTreeStructureInPlace(treeList, "id", "parentId", "parentGroupId");
|
|
848
801
|
};
|
|
849
802
|
/**
|
|
850
803
|
* Pure port of formatTreeMenuItem (TreeUtilities.js:1095-1124): one query row +
|
|
851
804
|
* the NESTED display seed (makeDisplayTreeStructure output) → the enriched
|
|
852
805
|
* display tree. Returns null when the row is falsy; a single root is returned
|
|
853
|
-
* bare, several as an array
|
|
854
|
-
*
|
|
855
|
-
* nor the row is mutated or aliased (both are deep-cloned up
|
|
856
|
-
* references the private row clone).
|
|
806
|
+
* bare, several as an array. (Legacy also attached its associatedInquiryTree
|
|
807
|
+
* argument to the result (:1121); v2 reads linked trees from their own query.)
|
|
808
|
+
* Neither the seed nor the row is mutated or aliased (both are deep-cloned up
|
|
809
|
+
* front; nodeObj references the private row clone).
|
|
857
810
|
*/
|
|
858
811
|
const buildDisplayTree = (row, nestedTreeStructure, options) => {
|
|
859
812
|
if (!row) return null;
|
|
860
|
-
|
|
861
|
-
const loadMode = options.loadMode ?? "legacy-data";
|
|
862
|
-
const tree = deepClone(nestedTreeStructure);
|
|
863
|
-
const responseObject = deepClone(row);
|
|
864
|
-
const orderedKeys = [];
|
|
865
|
-
const orderedTreeData = [];
|
|
866
|
-
const treeArr = [];
|
|
867
|
-
collectCatalogObjectKeysInOrder(tree, orderedKeys);
|
|
868
|
-
flattenTreeInPreOrder(tree, orderedTreeData);
|
|
869
|
-
processObjectToTreeInPlace(responseObject, orderedTreeData, orderedKeys, treeArr, options.catalogObjects, options.promotedEntities, options.wasLazyLoaded, makeId, loadMode);
|
|
870
|
-
const displayTree = makeTreeStructureInPlace(treeArr, "id", "parentId", "parentGroupId", loadMode);
|
|
871
|
-
displayTree["associatedInquiryTree"] = options.associatedInquiryTree;
|
|
872
|
-
displayTree["wasLazyLoaded"] = options.wasLazyLoaded;
|
|
873
|
-
return displayTree;
|
|
874
|
-
};
|
|
875
|
-
/**
|
|
876
|
-
* Single-node variant of buildDisplayTree: enrich ONE entity node with one
|
|
877
|
-
* record into the display shape the Inquiry renderer consumes — nodeLabel/
|
|
878
|
-
* nodeSubLabel/headerTitle resolved, conditional icon/adornment stamped,
|
|
879
|
-
* search state attached, nodeObj set. Same enrichment code path as
|
|
880
|
-
* buildDisplayTree (processObjIndexInPlace), so a Tree Builder preview node
|
|
881
|
-
* is byte-shaped like a live Inquiry node. Neither input is mutated.
|
|
882
|
-
*/
|
|
883
|
-
const buildDisplayNodeForRecord = (node, row, options) => {
|
|
884
|
-
const displayNode = deepClone(node);
|
|
885
|
-
processObjIndexInPlace(displayNode, deepClone(row), node.parentId ?? null, options.catalogObjects, options.promotedEntities, options.wasLazyLoaded ?? false, options.makeId, options.loadMode ?? "legacy-data");
|
|
886
|
-
return displayNode;
|
|
813
|
+
return composeRowTree(deepClone(row), deepClone(nestedTreeStructure), options);
|
|
887
814
|
};
|
|
888
815
|
/** Port of CompareSiblingNodes (TreeUtilities.js:2365-2378) — groups first, then by order. */
|
|
889
816
|
const compareSiblingNodes = (a, b) => {
|
|
@@ -894,6 +821,7 @@ const compareSiblingNodes = (a, b) => {
|
|
|
894
821
|
if (aIsGroup && bIsGroup) {
|
|
895
822
|
if (a.properties?.["order"] > b.properties?.["order"]) return 1;
|
|
896
823
|
if (a.properties?.["order"] < b.properties?.["order"]) return -1;
|
|
824
|
+
return Number(isBlankGroup(a)) - Number(isBlankGroup(b));
|
|
897
825
|
}
|
|
898
826
|
return 0;
|
|
899
827
|
};
|
|
@@ -914,31 +842,96 @@ const constructDynamicGroupConfigTrees2InPlace = (configNode) => {
|
|
|
914
842
|
const topLevelConfigGroupNodes = [];
|
|
915
843
|
const groupConfiguration = configNode?.properties?.["groupConfiguration"];
|
|
916
844
|
const groupType = groupConfiguration?.groupType || NODE_GROUP_TYPE.Dynamic;
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
if (group.parentGroupId === void 0 || group.parentGroupId === null) topLevelConfigGroupNodes.push(group);
|
|
925
|
-
else addGroupToChildMap(groupChildMap, group.parentGroupId, group);
|
|
926
|
-
}
|
|
845
|
+
for (const grouping of groupingsOf(groupConfiguration, groupType)) {
|
|
846
|
+
if (grouping.groups === void 0 || grouping.groups === null) continue;
|
|
847
|
+
const groupChildMap = {};
|
|
848
|
+
for (const group of grouping.groups) {
|
|
849
|
+
group["children"] = getGroupChildMap(groupChildMap, group.id);
|
|
850
|
+
if (group.parentGroupId === void 0 || group.parentGroupId === null) topLevelConfigGroupNodes.push(group);
|
|
851
|
+
else addGroupToChildMap(groupChildMap, group.parentGroupId, group);
|
|
927
852
|
}
|
|
928
853
|
}
|
|
929
854
|
for (const childConfigNode of configNode.children) constructDynamicGroupConfigTrees2InPlace(childConfigNode);
|
|
930
855
|
configNode["groupConfigTrees"] = topLevelConfigGroupNodes;
|
|
931
856
|
};
|
|
932
857
|
/**
|
|
858
|
+
* One record as an enriched display node under `parentId`, its EAGER child
|
|
859
|
+
* result sets composed through constructDynamicNodeGroups2 (:2516-2528,
|
|
860
|
+
* :2697-2735). Legacy passes a child set's raw value either way (:2550-2568 —
|
|
861
|
+
* the non-array wrap is built but never used), so a non-array set yields no
|
|
862
|
+
* children, exactly like legacy.
|
|
863
|
+
*/
|
|
864
|
+
const emitRecordNode = (configNode, item, parentId, context) => {
|
|
865
|
+
const recordNode = deepClone(configNode);
|
|
866
|
+
const split = processObjIndexInPlace(recordNode, item, parentId, context);
|
|
867
|
+
recordNode.children = (recordNode.children ?? []).flatMap((childConfigNode) => {
|
|
868
|
+
const key = childConfigNode.properties["catalogObjectKey"];
|
|
869
|
+
if (!key || !split.eagerChildKeys.has(key) || !item[key]) return [];
|
|
870
|
+
return constructDynamicNodeGroups2InPlace(item[key], childConfigNode, recordNode.id, context);
|
|
871
|
+
});
|
|
872
|
+
return recordNode;
|
|
873
|
+
};
|
|
874
|
+
/**
|
|
875
|
+
* Put one record under the heading `groupName` among `siblings` — reusing the
|
|
876
|
+
* heading or creating it — and on down through the heading's subgroup configs
|
|
877
|
+
* (createDynamicGroups2 :2448-2531). A record no subgroup field has a value for
|
|
878
|
+
* goes under that level's blank heading; with no subgroups it is emitted into
|
|
879
|
+
* the heading itself, with its own child result sets built through
|
|
880
|
+
* constructDynamicNodeGroups2.
|
|
881
|
+
*/
|
|
882
|
+
function joinDynamicGroup2InPlace(treeConfig, groupConfig, item, groupName, siblings, parentId, context, blank = false) {
|
|
883
|
+
const { makeId } = context;
|
|
884
|
+
let groupNode = siblings.find((sibling) => sibling.isGroupNode === true && sibling.properties["label"] === groupName) ?? null;
|
|
885
|
+
if (groupNode == null) {
|
|
886
|
+
groupNode = makeDisplayGroupNode({
|
|
887
|
+
id: `${makeId()}`,
|
|
888
|
+
groupType: NODE_GROUP_TYPE.Dynamic,
|
|
889
|
+
children: [],
|
|
890
|
+
parentGroupId: parentId,
|
|
891
|
+
parentId,
|
|
892
|
+
isExpanded: groupConfig.isExpanded,
|
|
893
|
+
properties: {
|
|
894
|
+
label: groupName,
|
|
895
|
+
propertyIsCustom: groupConfig["propertyIsCustom"],
|
|
896
|
+
propertyKey: groupConfig.property,
|
|
897
|
+
order: groupConfig.order,
|
|
898
|
+
...blank ? { blank: true } : {}
|
|
899
|
+
}
|
|
900
|
+
}, makeId);
|
|
901
|
+
siblings.push(groupNode);
|
|
902
|
+
}
|
|
903
|
+
const subGroupConfigs = groupConfig.children ?? [];
|
|
904
|
+
let subGroupWasCreated = false;
|
|
905
|
+
subGroupConfigs.forEach((subGroupConfig) => {
|
|
906
|
+
subGroupWasCreated = createDynamicGroups2InPlace(treeConfig, subGroupConfig, item, item, subGroupConfig.property ? subGroupConfig.property.split(".") : [], groupNode.children, groupNode.id, context) || subGroupWasCreated;
|
|
907
|
+
});
|
|
908
|
+
if (!subGroupWasCreated) joinBlankGroupOrEmit2InPlace(treeConfig, subGroupConfigs, item, groupNode.children, groupNode.id, context);
|
|
909
|
+
groupNode.children.sort(compareSiblingNodes);
|
|
910
|
+
}
|
|
911
|
+
/**
|
|
912
|
+
* A record none of a level's group fields has a value for: under the level's
|
|
913
|
+
* blank heading, or — where the level groups by no field — a plain record row.
|
|
914
|
+
*/
|
|
915
|
+
function joinBlankGroupOrEmit2InPlace(treeConfig, groupConfigs, item, siblings, parentId, context) {
|
|
916
|
+
const fieldGroup = groupConfigs.find((config) => !!config.property);
|
|
917
|
+
if (!fieldGroup) {
|
|
918
|
+
siblings.push(emitRecordNode(treeConfig, item, parentId, context));
|
|
919
|
+
return;
|
|
920
|
+
}
|
|
921
|
+
joinDynamicGroup2InPlace(treeConfig, fieldGroup, item, BLANK_GROUP_LABEL, siblings, parentId, context, true);
|
|
922
|
+
}
|
|
923
|
+
/**
|
|
933
924
|
* In-place port of createDynamicGroups2 (TreeUtilities.js:2399-2581): walk the
|
|
934
925
|
* dotted group property into the row (recursing through arrays/objects),
|
|
935
926
|
* reuse-or-create the sibling group node labeled by the resolved value, then
|
|
936
927
|
* recurse into subgroup configs — a row with no subgroup match becomes an
|
|
937
928
|
* enriched display node inside the group, with its own child result sets built
|
|
938
|
-
* through constructDynamicNodeGroups2
|
|
939
|
-
* :2519-2527)
|
|
929
|
+
* through constructDynamicNodeGroups2. Documented divergence from legacy
|
|
930
|
+
* (catalog/promoted null there, :2519-2527): the caller's catalog metadata is
|
|
931
|
+
* carried, so grouped rows get the same search state as every other row — their
|
|
932
|
+
* identifiers are what a link back to them names.
|
|
940
933
|
*/
|
|
941
|
-
const createDynamicGroups2InPlace = (treeConfig, groupConfig, item, curItem, pList, siblings, parentId,
|
|
934
|
+
const createDynamicGroups2InPlace = (treeConfig, groupConfig, item, curItem, pList, siblings, parentId, context) => {
|
|
942
935
|
let groupCreated = false;
|
|
943
936
|
if (pList.length > 0) {
|
|
944
937
|
const tmpProp = pList[0];
|
|
@@ -946,67 +939,16 @@ const createDynamicGroups2InPlace = (treeConfig, groupConfig, item, curItem, pLi
|
|
|
946
939
|
const newItem = curItem[tmpProp];
|
|
947
940
|
if (pList.length > 1) {
|
|
948
941
|
if (Array.isArray(newItem)) for (let i = 0, numOfItems = newItem.length; i < numOfItems; i++) {
|
|
949
|
-
const aGroupWasCreated = createDynamicGroups2InPlace(treeConfig, groupConfig, item, newItem[i], pList.slice(1), siblings, parentId,
|
|
942
|
+
const aGroupWasCreated = createDynamicGroups2InPlace(treeConfig, groupConfig, item, newItem[i], pList.slice(1), siblings, parentId, context);
|
|
950
943
|
groupCreated = aGroupWasCreated ? aGroupWasCreated : groupCreated;
|
|
951
944
|
}
|
|
952
945
|
else if (typeof newItem === "object" && newItem !== null) {
|
|
953
|
-
const aGroupWasCreated = createDynamicGroups2InPlace(treeConfig, groupConfig, item, newItem, pList.slice(1), siblings, parentId,
|
|
946
|
+
const aGroupWasCreated = createDynamicGroups2InPlace(treeConfig, groupConfig, item, newItem, pList.slice(1), siblings, parentId, context);
|
|
954
947
|
groupCreated = aGroupWasCreated ? aGroupWasCreated : groupCreated;
|
|
955
948
|
}
|
|
956
949
|
} else if (typeof newItem !== "object" && newItem !== null && newItem !== "") {
|
|
957
|
-
|
|
958
|
-
let groupNode = null;
|
|
959
|
-
for (let siblingIdx = 0, numOfSiblings = siblings.length; siblingIdx < numOfSiblings; siblingIdx++) {
|
|
960
|
-
const sibling = siblings[siblingIdx];
|
|
961
|
-
if (Object.prototype.hasOwnProperty.call(sibling, "isGroupNode") && sibling.isGroupNode === true) {
|
|
962
|
-
if (sibling.properties["label"] === groupName) {
|
|
963
|
-
groupNode = sibling;
|
|
964
|
-
break;
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
}
|
|
968
|
-
if (groupNode == null) {
|
|
969
|
-
groupNode = makeDisplayGroupNode({
|
|
970
|
-
id: `${makeId()}`,
|
|
971
|
-
groupType: NODE_GROUP_TYPE.Dynamic,
|
|
972
|
-
children: [],
|
|
973
|
-
parentGroupId: parentId,
|
|
974
|
-
parentId,
|
|
975
|
-
isExpanded: groupConfig.isExpanded,
|
|
976
|
-
properties: {
|
|
977
|
-
label: groupName,
|
|
978
|
-
propertyIsCustom: groupConfig["propertyIsCustom"],
|
|
979
|
-
propertyKey: groupConfig.property,
|
|
980
|
-
order: groupConfig.order
|
|
981
|
-
}
|
|
982
|
-
}, makeId);
|
|
983
|
-
siblings.push(groupNode);
|
|
984
|
-
}
|
|
950
|
+
joinDynamicGroup2InPlace(treeConfig, groupConfig, item, newItem.toString(), siblings, parentId, context);
|
|
985
951
|
groupCreated = true;
|
|
986
|
-
let subGroupWasCreated = false;
|
|
987
|
-
const subGroupConfigs = groupConfig.children;
|
|
988
|
-
for (let subGroupIdx = 0, numOfSubGroups = subGroupConfigs.length; subGroupIdx < numOfSubGroups; subGroupIdx++) {
|
|
989
|
-
const subGroupConfig = subGroupConfigs[subGroupIdx];
|
|
990
|
-
const subGroupCreated = createDynamicGroups2InPlace(treeConfig, subGroupConfig, item, item, subGroupConfig.property ? subGroupConfig.property.split(".") : [], groupNode.children, groupNode.id, makeId, loadMode);
|
|
991
|
-
subGroupWasCreated = subGroupCreated ? subGroupCreated : subGroupWasCreated;
|
|
992
|
-
}
|
|
993
|
-
if (!subGroupWasCreated) {
|
|
994
|
-
const tmpNode = deepClone(treeConfig);
|
|
995
|
-
const split = processObjIndexInPlace(tmpNode, item, groupNode.id, null, null, false, makeId, loadMode);
|
|
996
|
-
groupNode.children.push(tmpNode);
|
|
997
|
-
const newChildNodes = [];
|
|
998
|
-
const tmpChildren = tmpNode.children;
|
|
999
|
-
for (let childNodeIdx = 0, numOfChildNodes = tmpChildren.length; childNodeIdx < numOfChildNodes; childNodeIdx++) {
|
|
1000
|
-
const childConfigNode = tmpChildren[childNodeIdx];
|
|
1001
|
-
const propToGetRecords = childConfigNode.properties["catalogObjectKey"];
|
|
1002
|
-
if (propToGetRecords && propToGetRecords != null && split.eagerChildKeys.has(propToGetRecords) && Object.prototype.hasOwnProperty.call(item, propToGetRecords)) {
|
|
1003
|
-
const newResultSet = item[propToGetRecords];
|
|
1004
|
-
if (newResultSet && newResultSet != null) newChildNodes.push(...constructDynamicNodeGroups2InPlace(newResultSet, childConfigNode, tmpNode.id, makeId, loadMode));
|
|
1005
|
-
}
|
|
1006
|
-
}
|
|
1007
|
-
tmpNode.children = newChildNodes;
|
|
1008
|
-
}
|
|
1009
|
-
groupNode.children.sort(compareSiblingNodes);
|
|
1010
952
|
}
|
|
1011
953
|
}
|
|
1012
954
|
}
|
|
@@ -1015,11 +957,13 @@ const createDynamicGroups2InPlace = (treeConfig, groupConfig, item, curItem, pLi
|
|
|
1015
957
|
/**
|
|
1016
958
|
* In-place port of constructDynamicNodeGroups2 (TreeUtilities.js:2643-2740) —
|
|
1017
959
|
* the v2 dynamic path constructPreloadedTree uses (:2335). Rows that create or
|
|
1018
|
-
* join a group land under it;
|
|
1019
|
-
*
|
|
960
|
+
* join a group land under it; a row with no value for a group-by field joins
|
|
961
|
+
* the "(Blank)" heading (joinBlankGroupOrEmit2InPlace); rows matching no group
|
|
962
|
+
* otherwise become enriched sibling display nodes with their own child result
|
|
963
|
+
* sets processed recursively. Group
|
|
1020
964
|
* nodes sort before entity nodes (CompareSiblingNodes).
|
|
1021
965
|
*/
|
|
1022
|
-
const constructDynamicNodeGroups2InPlace = (results, configNode, parentId,
|
|
966
|
+
const constructDynamicNodeGroups2InPlace = (results, configNode, parentId, context) => {
|
|
1023
967
|
const levelNodes = [];
|
|
1024
968
|
if (!configNode["groupConfigTrees"]) constructDynamicGroupConfigTrees2InPlace(configNode);
|
|
1025
969
|
for (let rIdx = 0, numOfResults = results.length; rIdx < numOfResults; rIdx++) {
|
|
@@ -1028,30 +972,26 @@ const constructDynamicNodeGroups2InPlace = (results, configNode, parentId, makeI
|
|
|
1028
972
|
const groupConfigTrees = configNode["groupConfigTrees"];
|
|
1029
973
|
for (let ctlIdx = 0, numOfGroupConfigTrees = groupConfigTrees.length; ctlIdx < numOfGroupConfigTrees; ctlIdx++) {
|
|
1030
974
|
const groupConfigNode = groupConfigTrees[ctlIdx];
|
|
1031
|
-
const aGroupWasCreated = createDynamicGroups2InPlace(configNode, groupConfigNode, item, item, groupConfigNode.property ? groupConfigNode.property.split(".") : [], levelNodes, parentId,
|
|
975
|
+
const aGroupWasCreated = createDynamicGroups2InPlace(configNode, groupConfigNode, item, item, groupConfigNode.property ? groupConfigNode.property.split(".") : [], levelNodes, parentId, context);
|
|
1032
976
|
groupCreated = aGroupWasCreated ? aGroupWasCreated : groupCreated;
|
|
1033
977
|
}
|
|
1034
|
-
if (!groupCreated)
|
|
1035
|
-
const tmpNode = deepClone(configNode);
|
|
1036
|
-
const split = processObjIndexInPlace(tmpNode, item, parentId, null, null, false, makeId, loadMode);
|
|
1037
|
-
levelNodes.push(tmpNode);
|
|
1038
|
-
const newChildNodes = [];
|
|
1039
|
-
const tmpChildren = tmpNode.children;
|
|
1040
|
-
for (let childNodeIdx = 0, numOfChildNodes = tmpChildren.length; childNodeIdx < numOfChildNodes; childNodeIdx++) {
|
|
1041
|
-
const childConfigNode = tmpChildren[childNodeIdx];
|
|
1042
|
-
const propToGetRecords = childConfigNode.properties["catalogObjectKey"];
|
|
1043
|
-
if (propToGetRecords && propToGetRecords != null && split.eagerChildKeys.has(propToGetRecords) && Object.prototype.hasOwnProperty.call(item, propToGetRecords)) {
|
|
1044
|
-
const newResultSet = item[propToGetRecords];
|
|
1045
|
-
if (newResultSet && newResultSet != null) newChildNodes.push(...constructDynamicNodeGroups2InPlace(newResultSet, childConfigNode, tmpNode.id, makeId, loadMode));
|
|
1046
|
-
}
|
|
1047
|
-
}
|
|
1048
|
-
tmpNode.children = newChildNodes;
|
|
1049
|
-
}
|
|
978
|
+
if (!groupCreated) joinBlankGroupOrEmit2InPlace(configNode, groupConfigTrees, item, levelNodes, parentId, context);
|
|
1050
979
|
}
|
|
1051
980
|
levelNodes.sort(compareSiblingNodes);
|
|
1052
981
|
return levelNodes;
|
|
1053
982
|
};
|
|
1054
983
|
/**
|
|
984
|
+
* Whether a level's records are sorted into configured groups — the condition
|
|
985
|
+
* buildPreloadedDisplayList groups a root page under.
|
|
986
|
+
*/
|
|
987
|
+
const groupsLevelRecords = (level) => {
|
|
988
|
+
const config = level?.properties?.["groupConfiguration"];
|
|
989
|
+
if (!config?.enabled) return false;
|
|
990
|
+
if (config.groupType === NODE_GROUP_TYPE.Static) return !!config.groupings?.static?.length;
|
|
991
|
+
if (config.groupType === NODE_GROUP_TYPE.Dynamic) return !!config.groupings?.dynamic?.length;
|
|
992
|
+
return false;
|
|
993
|
+
};
|
|
994
|
+
/**
|
|
1055
995
|
* Pure port of constructPreloadedTree (TreeUtilities.js:2231-2351): seed the
|
|
1056
996
|
* menu from a preloaded page of rows against the NESTED display seed
|
|
1057
997
|
* (makeDisplayTreeStructure output).
|
|
@@ -1069,29 +1009,20 @@ const constructDynamicNodeGroups2InPlace = (results, configNode, parentId, makeI
|
|
|
1069
1009
|
const buildPreloadedDisplayList = (nestedTreeStructure, rows, options) => {
|
|
1070
1010
|
if (!rows) return null;
|
|
1071
1011
|
const { makeId } = options;
|
|
1072
|
-
const loadMode = options.loadMode ?? "legacy-data";
|
|
1073
|
-
const catalogObjects = options.catalogObjects ?? null;
|
|
1074
|
-
const promotedEntities = options.promotedEntities ?? null;
|
|
1075
1012
|
let preloadedList = [];
|
|
1076
1013
|
const tree = deepClone(nestedTreeStructure);
|
|
1077
1014
|
const pageList = deepClone(rows);
|
|
1078
1015
|
const groupConfiguration = tree.properties?.["groupConfiguration"];
|
|
1079
|
-
const
|
|
1080
|
-
const orderedTreeData = [];
|
|
1081
|
-
collectCatalogObjectKeysInOrder(tree, orderedKeys);
|
|
1082
|
-
flattenTreeInPreOrder(tree, orderedTreeData);
|
|
1083
|
-
const buildRowTree = (item, wasLazyLoaded) => {
|
|
1084
|
-
const treeArr = [];
|
|
1085
|
-
processObjectToTreeInPlace(item, orderedTreeData, orderedKeys, treeArr, catalogObjects, promotedEntities, wasLazyLoaded, makeId, loadMode);
|
|
1086
|
-
return makeTreeStructureInPlace(treeArr, "id", "parentId", "parentGroupId", loadMode);
|
|
1087
|
-
};
|
|
1016
|
+
const buildRowTree = (item) => composeRowTree(item, tree, options);
|
|
1088
1017
|
if (groupConfiguration?.enabled && groupConfiguration.groupType === NODE_GROUP_TYPE.Static && groupConfiguration?.groupings?.static?.length) {
|
|
1089
1018
|
const topNodeGroups = constructStaticNodeGroupsInPlace(tree, false, makeId);
|
|
1090
1019
|
const groupedItemIndexes = /* @__PURE__ */ new Set();
|
|
1020
|
+
const rowTrees = pageList.map(buildRowTree);
|
|
1091
1021
|
topNodeGroups.forEach((nodeGroup) => {
|
|
1092
1022
|
let nodeGroupChildren = [];
|
|
1093
1023
|
pageList.forEach((item, index) => {
|
|
1094
|
-
const
|
|
1024
|
+
const displayTree = rowTrees[index];
|
|
1025
|
+
const processedItem = processItemForStaticNodeGroupInPlace(nodeGroup, item, groupedItemIndexes, displayTree, index, /* @__PURE__ */ new Set());
|
|
1095
1026
|
nodeGroupChildren = nodeGroupChildren.concat(processedItem?.nodeChildren || []);
|
|
1096
1027
|
});
|
|
1097
1028
|
const updatedNodeGroup = mapNodeGroupChildrenInPlace(nodeGroup, nodeGroupChildren);
|
|
@@ -1102,19 +1033,19 @@ const buildPreloadedDisplayList = (nestedTreeStructure, rows, options) => {
|
|
|
1102
1033
|
});
|
|
1103
1034
|
if (groupConfiguration?.outlier === NODE_GROUP_OUTLIER.Individual) pageList.forEach((item, index) => {
|
|
1104
1035
|
if (!groupedItemIndexes.has(index)) {
|
|
1105
|
-
const displayTree =
|
|
1106
|
-
if (!checkDisplayNodeHidden(displayTree, item
|
|
1036
|
+
const displayTree = rowTrees[index];
|
|
1037
|
+
if (!checkDisplayNodeHidden(displayTree, item)) {
|
|
1107
1038
|
updateTreeIdsInPlace(displayTree, null, makeId(), makeId(), null, makeId);
|
|
1108
1039
|
preloadedList.push(displayTree);
|
|
1109
1040
|
}
|
|
1110
1041
|
}
|
|
1111
1042
|
});
|
|
1112
1043
|
} else if (groupConfiguration?.enabled && groupConfiguration.groupType === NODE_GROUP_TYPE.Dynamic && groupConfiguration?.groupings?.dynamic?.length) {
|
|
1113
|
-
const nodeGroups = constructDynamicNodeGroups2InPlace(pageList, tree, null,
|
|
1044
|
+
const nodeGroups = constructDynamicNodeGroups2InPlace(pageList, tree, null, options);
|
|
1114
1045
|
preloadedList = preloadedList.concat(nodeGroups);
|
|
1115
1046
|
} else pageList.forEach((item) => {
|
|
1116
|
-
const displayTree = buildRowTree(item
|
|
1117
|
-
if (!checkDisplayNodeHidden(displayTree, item
|
|
1047
|
+
const displayTree = buildRowTree(item);
|
|
1048
|
+
if (!checkDisplayNodeHidden(displayTree, item)) preloadedList.push(displayTree);
|
|
1118
1049
|
});
|
|
1119
1050
|
return preloadedList;
|
|
1120
1051
|
};
|
|
@@ -1135,6 +1066,6 @@ const getSearchValueString = (nodeObj, searchIdentifier) => {
|
|
|
1135
1066
|
return toWireString(searchValues);
|
|
1136
1067
|
};
|
|
1137
1068
|
//#endregion
|
|
1138
|
-
export {
|
|
1069
|
+
export { BLANK_GROUP_LABEL, buildDisplayTree, buildPreloadedDisplayList, collectDropSourceEntities, getSearchValueString, groupsLevelRecords, hasUnloadedChildren, isDragEntity, isDraggableLevel, isEmptyHiddenHeading, loadsChildrenLazily, makeDisplayTreeStructure, nodeEntityName, resolveRowLabel, rowChildState, splitChildLevels };
|
|
1139
1070
|
|
|
1140
1071
|
//# sourceMappingURL=displayTree.mjs.map
|