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
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* in over the network through the wave loader. Tree and search stay KERNEL
|
|
7
7
|
* CONSUMERS — the kernel just renders whichever display node is selected.
|
|
8
8
|
*
|
|
9
|
-
* It is a PURE component over data and callbacks: it is handed the
|
|
9
|
+
* It is a PURE component over data and callbacks: it is handed the
|
|
10
10
|
* tree and knows nothing about where it came from, the URL, or the app's
|
|
11
11
|
* stores. InquiryV2 is the route shell that fetches by id and mirrors the
|
|
12
12
|
* selection into the address bar; the Tree Builder's Preview hands it the
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
* search keeps its own entry in the ⋯ overflow.
|
|
22
22
|
*/
|
|
23
23
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
24
|
+
import { flushSync } from 'react-dom';
|
|
24
25
|
import { useQueryClient } from '@tanstack/react-query';
|
|
25
26
|
import { useTranslation } from 'react-i18next';
|
|
26
27
|
import { useSnackbar } from 'notistack';
|
|
@@ -34,70 +35,70 @@ import { UdpSpinner } from '../../UI/fluent-web-components/UdpSpinner';
|
|
|
34
35
|
import { UdpSkeletonLoading } from '../../UI/fluent-web-components/UdpSkeletonLoading';
|
|
35
36
|
import { UdpMessageBar } from '../../UI/fluent-web-components/UdpMessageBar';
|
|
36
37
|
import { UdpText } from '../../UI/fluent-web-components/UdpText';
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
38
|
+
import { parseInitialRecordCount, sameEntityName } from '../../domain/inquiryTree';
|
|
39
|
+
import { isDragEntity, nodeEntityName } from '../../domain/inquiryTree/displayTree';
|
|
40
|
+
import { executeApiMethodWithParameters, fetchApiMethodsByIds, fetchChildRows, fetchEntityMeta, fetchInquiryTree, fetchRecordsByIdentifierSets, fetchRowsForIdentifierSets, invalidateInquiryRowData, recordRecentlyLoadedNodes, useApiCatalogBinding, useLinkedTrees, usePrefetchLookupMethod, usePromotedMethodEntities, useRootRecords, useTreeCatalogObjects, stampRecordRows } from './api/queries';
|
|
41
|
+
import { hydrateRowsWithWaves, loadLazyChildren } from './tree/waveLoader';
|
|
42
|
+
import { findRecordRoot, locateNodeById } from './tree/lineageModel';
|
|
43
|
+
import { rootRecordsOf } from './tree/rootRemovalModel';
|
|
40
44
|
import { useHydratedRootRows } from './tree/useHydratedRootRows';
|
|
41
45
|
import { useInstanceParamValues } from './api/useInstanceParamValues';
|
|
42
46
|
import { UdpNodeView } from './kernel/UdpNodeView';
|
|
43
|
-
import { InquirySearchPanel, decideSearchValueOutcome, deriveSearchableEntities, searchHashFor
|
|
47
|
+
import { InquirySearchPanel, decideSearchValueOutcome, deriveSearchableEntities, searchHashFor } from './search';
|
|
48
|
+
import { hasIdentifierValue, levelForBusinessObjectKey, nestedRootOf, refreshedRow, treeTitleOf, resolveDeepLink } from './search/searchModel';
|
|
44
49
|
import { LOAD_DEBOUNCE_MS, LOAD_MIN_CHARS, LOAD_PAGE_SIZE, SEARCH_TIMEOUT_MS, useInquirySearch } from './search/useInquirySearch';
|
|
45
50
|
import { buildIdentifierFilterElements, useInquiryMenu } from './tree/useInquiryMenu';
|
|
46
|
-
import {
|
|
47
|
-
import { capabilityKeys } from './kernel/capabilities';
|
|
48
|
-
import { dropPageNode } from './tree/droppedPageModel';
|
|
51
|
+
import { ReadOnlyContext } from './kernel/ReadOnlyContext';
|
|
49
52
|
import { InquiryMenuToolbar } from './tree/InquiryMenuToolbar';
|
|
50
53
|
import { LoadRecordDialog } from './tree/LoadRecordDialog';
|
|
51
54
|
import { computeTreeFilter, flattenFilterRows } from './tree/treeFilterModel';
|
|
52
55
|
import { ROOT_PAGES_START, computeRootPaging, nextRootPages, rootRequestSize } from './tree/rootPagingModel';
|
|
53
|
-
import { deriveArrival } from './tree/arrivalModel';
|
|
56
|
+
import { deriveArrival, idleRecordPane } from './tree/arrivalModel';
|
|
54
57
|
import { ExecuteApiDropDialog } from './tree/ExecuteApiDropDialog';
|
|
55
58
|
import { InquiryLanding } from './landing/InquiryLanding';
|
|
56
59
|
import { useIsTruncated } from './ui/useIsTruncated';
|
|
57
60
|
import { SNACKBAR_TOP_CENTER } from './ui/snackbar';
|
|
58
61
|
import { InquiryCopilotDock, useCopilotDockSplit } from './ai/InquiryCopilotDock';
|
|
59
62
|
import { useInquiryCopilot } from './ai/InquiryV2Copilot';
|
|
63
|
+
import { useTenant } from '../../utilities/tenant/useTenant';
|
|
64
|
+
import { promotedSourceFrom } from '../../maintenance/api/promoted';
|
|
65
|
+
import { stampDisplayText } from '../../maintenance/record/stampDisplayText';
|
|
60
66
|
import styles from './InquiryV2.module.css';
|
|
67
|
+
/** Label widths for a record's placeholder child rows — varied, like names. */
|
|
68
|
+
const SKELETON_CHILD_WIDTHS = ['55%', '40%', '50%'];
|
|
61
69
|
/**
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
70
|
+
* How many child rows a loading record's placeholder shows. None when records
|
|
71
|
+
* land closed (the root level's own `isExpanded`). Otherwise the levels under
|
|
72
|
+
* the root that always render, since a level that hides when empty may not be
|
|
73
|
+
* there at all — and one row when every level is like that, so the placeholder
|
|
74
|
+
* still reads as a record with something under it.
|
|
65
75
|
*/
|
|
66
|
-
const
|
|
67
|
-
/** v1's entity-name rule: the fully qualified name, or the same simple name. */
|
|
68
|
-
const sameEntityName = (a, b) => a === b || simpleEntityName(a) === simpleEntityName(b);
|
|
69
|
-
/**
|
|
70
|
-
* Which searchable level a `businessObjectKey` — or a bare entity name — belongs
|
|
71
|
-
* to. The key's prefix is the record's fully qualified class name; an exact
|
|
72
|
-
* match wins over a simple-name one (v1's lookup rule). One reader for every
|
|
73
|
-
* door that arrives with a key or name: the `?node` deep link, a widget's
|
|
74
|
-
* loadInquiryNode and the recently-loaded history.
|
|
75
|
-
*/
|
|
76
|
-
const entityForBusinessObjectKey = (entities, businessObjectKey) => {
|
|
77
|
-
var _a, _b;
|
|
78
|
-
const fullyQualifiedName = businessObjectKey.split('|')[0];
|
|
79
|
-
return ((_b = (_a = entities.find((entity) => entity.entityName === fullyQualifiedName)) !== null && _a !== void 0 ? _a : entities.find((entity) => sameEntityName(entity.entityName, fullyQualifiedName))) !== null && _b !== void 0 ? _b : null);
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* A tree's nested root — the flat wire structure composed into the display
|
|
83
|
-
* tree. v2's rule: a level opens because an EAGER level renders under it.
|
|
84
|
-
*/
|
|
85
|
-
const nestedRootOf = (tree) => {
|
|
76
|
+
const skeletonChildCount = (rootNode) => {
|
|
86
77
|
var _a;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
const
|
|
91
|
-
return (
|
|
78
|
+
if (!(rootNode === null || rootNode === void 0 ? void 0 : rootNode.isExpanded))
|
|
79
|
+
return 0;
|
|
80
|
+
const levels = (_a = rootNode.children) !== null && _a !== void 0 ? _a : [];
|
|
81
|
+
const certain = levels.filter((level) => !level.hideEmptyGroups).length;
|
|
82
|
+
return Math.min(SKELETON_CHILD_WIDTHS.length, certain || Math.min(1, levels.length));
|
|
83
|
+
};
|
|
84
|
+
/** One placeholder row: the tree row's chevron box, icon and label. */
|
|
85
|
+
const TreeSkeletonRow = ({ child, compact, width }) => {
|
|
86
|
+
const icon = compact ? '16px' : '20px';
|
|
87
|
+
return (React.createElement("div", { className: [
|
|
88
|
+
styles.skeletonRow,
|
|
89
|
+
child && styles.skeletonChild,
|
|
90
|
+
compact && styles.skeletonCompact
|
|
91
|
+
]
|
|
92
|
+
.filter(Boolean)
|
|
93
|
+
.join(' ') }, React.createElement("span", { className: styles.skeletonChevron }, React.createElement(UdpSkeletonLoading, { width: "12px", height: "12px", borderRadius: "3px" })), React.createElement(UdpSkeletonLoading, { width: icon, height: icon, borderRadius: "4px" }), React.createElement(UdpSkeletonLoading, { className: styles.skeletonLabel, width: width, height: "16px" })));
|
|
92
94
|
};
|
|
93
95
|
/**
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
+
* Records still on their way, drawn on the tree row's exact geometry — each an
|
|
97
|
+
* open root with its child rows beneath it, as it will land — so the pane never
|
|
98
|
+
* goes blank between asking for a record and seeing it, and the rows that
|
|
99
|
+
* arrive take the placeholders' places.
|
|
96
100
|
*/
|
|
97
|
-
const
|
|
98
|
-
var _a;
|
|
99
|
-
return (_a = findSeedLevel(rootNode, entity.rootNode.id)) !== null && _a !== void 0 ? _a : entity.rootNode;
|
|
100
|
-
};
|
|
101
|
+
const TreeSkeletonRows = ({ count, childCount, compact, afterRows }) => (React.createElement("div", { className: afterRows ? styles.skeletonAfterRows : undefined }, Array.from({ length: count }, (_, index) => (React.createElement(React.Fragment, { key: index }, React.createElement(TreeSkeletonRow, { compact: compact, width: "45%" }), SKELETON_CHILD_WIDTHS.slice(0, childCount).map((width) => (React.createElement(TreeSkeletonRow, { key: width, child: true, compact: compact, width: width }))))))));
|
|
101
102
|
/** One recently-loaded history entry for a record loaded at `entity`'s level. */
|
|
102
103
|
const historyEntryFor = (entity, label, filterElements) => {
|
|
103
104
|
var _a;
|
|
@@ -110,17 +111,11 @@ const historyEntryFor = (entity, label, filterElements) => {
|
|
|
110
111
|
filterElements
|
|
111
112
|
});
|
|
112
113
|
};
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
: '';
|
|
117
|
-
export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp, searchValue, deepLink = null, treeHidden = false, assistant = true, containerId = '', onSelectionChange }) => {
|
|
118
|
-
var _a, _b, _c, _d, _e, _f;
|
|
119
|
-
var _g, _h, _j, _k, _l, _m, _o, _p;
|
|
114
|
+
export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly = false, searchValue, deepLink = null, treeHidden = false, assistant = true, containerId = '', onSelectionChange }) => {
|
|
115
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
116
|
+
var _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
120
117
|
const { t } = useTranslation();
|
|
121
|
-
const
|
|
122
|
-
const nodeCapabilities = useMemo(() => viewCapabilities(readOnly, capabilities, capabilityKeys), [readOnly, capabilities]);
|
|
123
|
-
const rootNode = useMemo(() => nestedRootOf(tree), [tree]);
|
|
118
|
+
const rootNode = useMemo(() => nestedRootOf(tree.nodes), [tree]);
|
|
124
119
|
const entityName = typeof ((_a = rootNode === null || rootNode === void 0 ? void 0 : rootNode.properties) === null || _a === void 0 ? void 0 : _a.catalogReturnObject) === 'string'
|
|
125
120
|
? rootNode.properties.catalogReturnObject
|
|
126
121
|
: '';
|
|
@@ -135,44 +130,54 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
135
130
|
// wrong catalog for a tree from another product (every entity comes back
|
|
136
131
|
// absent: no identifiers, no promotions, no field picker), which is exactly
|
|
137
132
|
// what the Tree Builder previews and what a cross-product link opens.
|
|
138
|
-
const catalogId = (
|
|
133
|
+
const catalogId = (_k = (_b = tree.wrapper.apiMethodInstance) === null || _b === void 0 ? void 0 : _b.apiCatalogId) !== null && _k !== void 0 ? _k : catalogBinding === null || catalogBinding === void 0 ? void 0 : catalogBinding.apiCatalogId;
|
|
139
134
|
const { data: catalogObjects, isError: catalogError, isSuccess: catalogLoaded } = useTreeCatalogObjects(catalogId, treeId);
|
|
140
135
|
// The catalog answered with NO entities for this tree (a tree whose product
|
|
141
136
|
// is not in this tenant's catalog). Every identifier-based path — loading a
|
|
142
137
|
// record, the deep link, the advanced field picker — has nothing to work
|
|
143
|
-
// from, so the pane says so once
|
|
144
|
-
//
|
|
138
|
+
// from, so the pane says so once; the waits that gate on the catalog treat
|
|
139
|
+
// it as settled (metadataSettled) rather than pending forever.
|
|
145
140
|
const catalogMissing = catalogLoaded && !(catalogObjects === null || catalogObjects === void 0 ? void 0 : catalogObjects.length);
|
|
146
|
-
const
|
|
147
|
-
|
|
141
|
+
const { data: promotedEntities, isError: promotedError } = usePromotedMethodEntities(catalogId, (_c = tree.wrapper.product) === null || _c === void 0 ? void 0 : _c.productId);
|
|
142
|
+
/**
|
|
143
|
+
* The catalog and the promotions have both answered (or failed). Everything
|
|
144
|
+
* that composes or loads records waits on this — the root page's hydration,
|
|
145
|
+
* a deep link, a `?searchValue` arrival: a load run before the promotions
|
|
146
|
+
* land plans no child level ("Promote … child entity") and keeps that empty
|
|
147
|
+
* branch.
|
|
148
|
+
*/
|
|
149
|
+
const metadataSettled = (catalogObjects !== undefined || catalogError) &&
|
|
150
|
+
(promotedEntities !== undefined || promotedError);
|
|
151
|
+
const queryClient = useQueryClient();
|
|
152
|
+
const tenantId = (_l = (_e = (_d = useTenant()) === null || _d === void 0 ? void 0 : _d.activeTenant) === null || _e === void 0 ? void 0 : _e.tenantId) !== null && _l !== void 0 ? _l : null;
|
|
153
|
+
const lookupContext = useMemo(() => ({
|
|
154
|
+
queryClient,
|
|
155
|
+
catalogId,
|
|
156
|
+
catalogObjects,
|
|
157
|
+
stampDisplayText: (entityName, rows) => {
|
|
158
|
+
var _a;
|
|
159
|
+
return stampDisplayText(entityName, rows, promotedSourceFrom(promotedEntities, `${catalogId}|${(_a = tree.wrapper.product) === null || _a === void 0 ? void 0 : _a.productId}`), tenantId);
|
|
160
|
+
}
|
|
161
|
+
}), [queryClient, catalogId, catalogObjects, promotedEntities, (_f = tree.wrapper.product) === null || _f === void 0 ? void 0 : _f.productId, tenantId]);
|
|
162
|
+
const stampRows = useCallback((levelEntityName, rows, lookupsMap) => stampRecordRows(lookupContext, levelEntityName, rows, lookupsMap), [lookupContext]);
|
|
148
163
|
// Warm the lookup get-data method with this wave so the first stamping pass
|
|
149
164
|
// doesn't have to discover it serially.
|
|
150
165
|
usePrefetchLookupMethod(catalogId);
|
|
151
|
-
// Every non-root level keyed by the association it rides on the parent row
|
|
152
|
-
// (`resourceAssignment` → `Assignment`): the wave loader grafts each level's
|
|
153
|
-
// fetched rows onto their parent under that key, and a response's lookupsMap
|
|
154
|
-
// describes only the entity it searched — so rows are stamped from their own
|
|
155
|
-
// level's entity config.
|
|
156
|
-
const nestedEntities = useMemo(() => {
|
|
157
|
-
var _a, _b;
|
|
158
|
-
const map = {};
|
|
159
|
-
for (const node of (_a = tree === null || tree === void 0 ? void 0 : tree.treeStructure) !== null && _a !== void 0 ? _a : []) {
|
|
160
|
-
const properties = (_b = node.properties) !== null && _b !== void 0 ? _b : {};
|
|
161
|
-
const key = properties['catalogObjectKey'];
|
|
162
|
-
const nodeEntity = properties['catalogReturnObject'];
|
|
163
|
-
if (typeof key === 'string' && typeof nodeEntity === 'string') {
|
|
164
|
-
map[key] = nodeEntity;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
return map;
|
|
168
|
-
}, [tree]);
|
|
169
166
|
// The searchable set, with each entity's Data Builder query filters already
|
|
170
167
|
// parsed and its `params.*` placeholders resolved. Derived BEFORE the root
|
|
171
168
|
// page because the root request composes the root entity's saved filters in —
|
|
172
169
|
// ad-hoc execution ignores the instance body, so this is the only way a
|
|
173
170
|
// query's own filters reach the server.
|
|
174
171
|
const paramValues = useInstanceParamValues();
|
|
175
|
-
const
|
|
172
|
+
const { trees: linkedTrees, settled: linkedTreesSettled } = useLinkedTrees(tree);
|
|
173
|
+
// Search results are rows like any other: stamped with display text the
|
|
174
|
+
// same way the tree's rows are, so a finder never shows a raw key.
|
|
175
|
+
const searchableEntities = useMemo(() => deriveSearchableEntities(tree, linkedTrees, paramValues).map((entity) => (Object.assign(Object.assign({}, entity), { stampRows: (rows, lookupsMap) => stampRows(entity.entityName, rows, lookupsMap) }))), [tree, linkedTrees, paramValues, stampRows]);
|
|
176
|
+
/**
|
|
177
|
+
* A deep link or arrival term resolved before the linked trees land would
|
|
178
|
+
* miss their levels, so both wait for them as well as for the metadata.
|
|
179
|
+
*/
|
|
180
|
+
const searchSettled = metadataSettled && linkedTreesSettled;
|
|
176
181
|
/** The tree's own root entity — what the Load dialog lists by default. */
|
|
177
182
|
const rootSearchEntity = useMemo(() => {
|
|
178
183
|
var _a;
|
|
@@ -184,23 +189,23 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
184
189
|
* and a `?node` deep link outranks both — it names one exact record, so there
|
|
185
190
|
* is nothing left to search for.
|
|
186
191
|
*/
|
|
187
|
-
const arrivalTerm = deepLink ? '' : (
|
|
188
|
-
/** The
|
|
189
|
-
const
|
|
190
|
-
?
|
|
191
|
-
: null, [deepLink, searchableEntities]);
|
|
192
|
-
const
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
192
|
+
const arrivalTerm = deepLink ? '' : (_m = searchValue === null || searchValue === void 0 ? void 0 : searchValue.trim()) !== null && _m !== void 0 ? _m : '';
|
|
193
|
+
/** The level and identifier filters the deep link names (resolveDeepLink). */
|
|
194
|
+
const deepLinkTarget = useMemo(() => deepLink
|
|
195
|
+
? resolveDeepLink(searchableEntities, catalogObjects, deepLink)
|
|
196
|
+
: null, [deepLink, searchableEntities, catalogObjects]);
|
|
197
|
+
const deepLinkEntity = (_o = deepLinkTarget === null || deepLinkTarget === void 0 ? void 0 : deepLinkTarget.entity) !== null && _o !== void 0 ? _o : null;
|
|
198
|
+
const deepLinkFilters = (deepLinkTarget === null || deepLinkTarget === void 0 ? void 0 : deepLinkTarget.filterElements.length)
|
|
199
|
+
? deepLinkTarget.filterElements
|
|
200
|
+
: null;
|
|
201
|
+
/** True once the link has been honored — or reported as unusable. */
|
|
202
|
+
const [deepLinkSettled, setDeepLinkSettled] = useState(!deepLink);
|
|
203
|
+
/** A link that could not be honored: a root link stops replacing the root page. */
|
|
204
|
+
const [rootLinkDropped, setRootLinkDropped] = useState(false);
|
|
198
205
|
/** A deep link to the ROOT level replaces the root page with that record. */
|
|
199
|
-
const deepLinkIsRoot = !!(deepLinkEntity === null || deepLinkEntity === void 0 ? void 0 : deepLinkEntity.isRoot);
|
|
206
|
+
const deepLinkIsRoot = !!(deepLinkEntity === null || deepLinkEntity === void 0 ? void 0 : deepLinkEntity.isRoot) && !rootLinkDropped;
|
|
200
207
|
/** A resolvable deep link holds the first fetch until its filters are ready. */
|
|
201
208
|
const deepLinkPending = !!deepLink && !!deepLinkEntity && !deepLinkFilters;
|
|
202
|
-
/** True once the link has been honored — or reported as unusable. */
|
|
203
|
-
const [deepLinkSettled, setDeepLinkSettled] = useState(!deepLink);
|
|
204
209
|
/* ------------------------------------------------------------ root paging */
|
|
205
210
|
/**
|
|
206
211
|
* How many pages of root records the user has asked for. One request, one
|
|
@@ -220,15 +225,15 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
220
225
|
* matrix, including the root level's `loadRecordsOnOpen` override and the one
|
|
221
226
|
* URL that still fetches on arrival.
|
|
222
227
|
*/
|
|
223
|
-
const explorePageId =
|
|
228
|
+
const explorePageId = (_p = tree.wrapper.explorePageId) !== null && _p !== void 0 ? _p : '';
|
|
224
229
|
const { seedRootRecords, autoSelectFirst } = deriveArrival({
|
|
225
230
|
explorePageId,
|
|
226
|
-
loadRecordsOnOpen: (
|
|
231
|
+
loadRecordsOnOpen: (_g = rootNode === null || rootNode === void 0 ? void 0 : rootNode.properties) === null || _g === void 0 ? void 0 : _g.loadRecordsOnOpen,
|
|
227
232
|
deepLinkIsRoot
|
|
228
233
|
});
|
|
229
234
|
const { data: records, isPending: recordsPending, isFetching: recordsFetching, isError: recordsError } = useRootRecords({
|
|
230
235
|
treeId,
|
|
231
|
-
apiMethodId: (
|
|
236
|
+
apiMethodId: (_h = tree.wrapper.apiMethodInstance) === null || _h === void 0 ? void 0 : _h.apiMethodId,
|
|
232
237
|
entityName,
|
|
233
238
|
instanceFilters: rootSearchEntity === null || rootSearchEntity === void 0 ? void 0 : rootSearchEntity.instanceFilters,
|
|
234
239
|
identifierFilters: deepLinkIsRoot ? deepLinkFilters : null,
|
|
@@ -247,9 +252,8 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
247
252
|
* show a spinner nothing will ever end.
|
|
248
253
|
*/
|
|
249
254
|
const recordsLoading = seedRootRecords && recordsPending;
|
|
250
|
-
const queryClient = useQueryClient();
|
|
251
255
|
/* ------------------------------------------------------------- wave load */
|
|
252
|
-
|
|
256
|
+
/** What every lookup-stamping pass carries (stampRecordRows). */
|
|
253
257
|
const waveContext = useMemo(() => ({
|
|
254
258
|
fetchRows: (apiMethodId, data) => fetchChildRows(queryClient, apiMethodId, data),
|
|
255
259
|
catalogObjects,
|
|
@@ -263,15 +267,14 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
263
267
|
records,
|
|
264
268
|
entityName,
|
|
265
269
|
waveContext,
|
|
266
|
-
ready:
|
|
267
|
-
(promotedEntities !== undefined || promotedError)
|
|
270
|
+
ready: metadataSettled
|
|
268
271
|
});
|
|
269
272
|
/** How much of the root record set is on screen, and what is left. */
|
|
270
273
|
const rootPaging = computeRootPaging({
|
|
271
274
|
pageSize: initialRecordCount,
|
|
272
275
|
pagesLoaded: rootPages,
|
|
273
|
-
loadedCount: (
|
|
274
|
-
total: (
|
|
276
|
+
loadedCount: (_q = rootRows === null || rootRows === void 0 ? void 0 : rootRows.length) !== null && _q !== void 0 ? _q : 0,
|
|
277
|
+
total: (_r = records === null || records === void 0 ? void 0 : records.total) !== null && _r !== void 0 ? _r : 0,
|
|
275
278
|
isFetching: recordsFetching
|
|
276
279
|
});
|
|
277
280
|
const menu = useInquiryMenu({
|
|
@@ -281,24 +284,131 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
281
284
|
promotedEntities,
|
|
282
285
|
autoSelectFirst
|
|
283
286
|
});
|
|
287
|
+
// The hook returns a fresh object each render; callbacks depend on the
|
|
288
|
+
// stable function, not on it.
|
|
289
|
+
const loadRecord = menu.loadRecord;
|
|
290
|
+
const findConfigLevel = menu.findConfigLevel;
|
|
284
291
|
/**
|
|
285
|
-
* The
|
|
286
|
-
*
|
|
287
|
-
*
|
|
292
|
+
* The root page is in hand and the menu has not been built from it yet — it
|
|
293
|
+
* is hydrated first, then composed in an effect — so the rows are COMING and
|
|
294
|
+
* the pane shows their placeholders, never the empty state. A menu that was
|
|
295
|
+
* built from this page and holds nothing is different: the user removed its
|
|
296
|
+
* rows, and the pane is simply empty.
|
|
288
297
|
*/
|
|
289
298
|
/** Records asked for by hand (Load, finder, history, deep link) not yet in the menu. */
|
|
290
299
|
const [loadsInFlight, setLoadsInFlight] = useState(0);
|
|
291
|
-
|
|
292
|
-
|
|
300
|
+
/**
|
|
301
|
+
* Records grafted into the menu that the tree has not DRAWN yet. The tree is
|
|
302
|
+
* a web component: it renders a frame or more after React commits, so
|
|
303
|
+
* dropping a record's placeholder in the commit that grafts it left the pane
|
|
304
|
+
* blank until the row painted. The placeholder is dropped instead when the
|
|
305
|
+
* tree's box grows — a ResizeObserver runs after layout and before paint, so
|
|
306
|
+
* the row arrives and its placeholder leaves in the same frame.
|
|
307
|
+
*/
|
|
308
|
+
const undrawnLoads = useRef(0);
|
|
309
|
+
const [treeBox, setTreeBox] = useState(null);
|
|
310
|
+
useEffect(() => {
|
|
311
|
+
if (!treeBox)
|
|
312
|
+
return undefined;
|
|
313
|
+
const observer = new ResizeObserver(() => {
|
|
314
|
+
const drawn = undrawnLoads.current;
|
|
315
|
+
if (!drawn)
|
|
316
|
+
return;
|
|
317
|
+
undrawnLoads.current = 0;
|
|
318
|
+
flushSync(() => setLoadsInFlight((count) => count - drawn));
|
|
319
|
+
});
|
|
320
|
+
observer.observe(treeBox);
|
|
321
|
+
return () => observer.disconnect();
|
|
322
|
+
}, [treeBox]);
|
|
323
|
+
const treeHasRows = menu.menuList.length > 0;
|
|
324
|
+
const rowsComposing = !treeHasRows &&
|
|
325
|
+
!!(rootRows === null || rootRows === void 0 ? void 0 : rootRows.length) &&
|
|
326
|
+
(!menuRows || menu.seededRows !== menuRows);
|
|
327
|
+
const treeLoading = recordsLoading || rowsComposing || loadsInFlight > 0;
|
|
328
|
+
/**
|
|
329
|
+
* ARRIVAL FOCUS. The tree is where work in the viewer starts, so once its
|
|
330
|
+
* first rows are drawn the keyboard is already in it (on the selected row):
|
|
331
|
+
* the arrow keys answer without a click first. Once per visit. It takes focus
|
|
332
|
+
* from the page or from the app chrome that brought the user here (the menu
|
|
333
|
+
* link they clicked) — never from something they have already focused inside
|
|
334
|
+
* the viewer, and never in a read-only preview, whose host keeps the focus.
|
|
335
|
+
*/
|
|
336
|
+
const arrivalFocused = useRef(false);
|
|
337
|
+
useEffect(() => {
|
|
338
|
+
var _a;
|
|
339
|
+
if (arrivalFocused.current || !treeBox || !treeHasRows)
|
|
340
|
+
return;
|
|
341
|
+
arrivalFocused.current = true;
|
|
342
|
+
if (readOnly)
|
|
343
|
+
return;
|
|
344
|
+
const workspace = treeBox.closest(`.${styles.workspace}`);
|
|
345
|
+
if (workspace === null || workspace === void 0 ? void 0 : workspace.contains(document.activeElement))
|
|
346
|
+
return;
|
|
347
|
+
void ((_a = treeBox
|
|
348
|
+
.querySelector('udp-tree')) === null || _a === void 0 ? void 0 : _a.setFocus());
|
|
349
|
+
}, [treeBox, treeHasRows, readOnly]);
|
|
350
|
+
/**
|
|
351
|
+
* F6 — the desktop convention for hopping between panes, with or without
|
|
352
|
+
* Shift (there are two): from the tree, or anywhere else in the viewer, to
|
|
353
|
+
* the record; from the record back to the tree's selected row. Left to the
|
|
354
|
+
* browser when there is no tree to hop to.
|
|
355
|
+
*/
|
|
356
|
+
const recordPaneRef = useRef(null);
|
|
357
|
+
const handlePaneKey = (event) => {
|
|
358
|
+
if (event.key !== 'F6' || event.altKey || event.ctrlKey || event.metaKey) {
|
|
359
|
+
return;
|
|
360
|
+
}
|
|
361
|
+
const record = recordPaneRef.current;
|
|
362
|
+
const treeEl = treeBox === null || treeBox === void 0 ? void 0 : treeBox.querySelector('udp-tree');
|
|
363
|
+
if (!record || !treeEl)
|
|
364
|
+
return;
|
|
365
|
+
event.preventDefault();
|
|
366
|
+
if (record.contains(document.activeElement))
|
|
367
|
+
void treeEl.setFocus();
|
|
368
|
+
else
|
|
369
|
+
record.focus();
|
|
370
|
+
};
|
|
371
|
+
/**
|
|
372
|
+
* MORE ROOT RECORDS — the tree's own last row, so it is reached and run with
|
|
373
|
+
* the keys that work every other row. Stood down while a hand-loaded record
|
|
374
|
+
* is on its way: that record lands in this row's place, and its placeholder
|
|
375
|
+
* holds the spot until it does.
|
|
376
|
+
*/
|
|
377
|
+
const rootMore = useMemo(() => rootPaging.showLoadMore && loadsInFlight === 0
|
|
378
|
+
? {
|
|
379
|
+
label: t('inquiry.tree.showMoreRecords', {
|
|
380
|
+
defaultValue: 'Show {{amount}} more',
|
|
381
|
+
amount: rootPaging.nextCount
|
|
382
|
+
}),
|
|
383
|
+
loading: rootPaging.isLoadingMore,
|
|
384
|
+
onShowMore: () => setRootPages(nextRootPages)
|
|
385
|
+
}
|
|
386
|
+
: undefined, [
|
|
387
|
+
rootPaging.showLoadMore,
|
|
388
|
+
rootPaging.nextCount,
|
|
389
|
+
rootPaging.isLoadingMore,
|
|
390
|
+
loadsInFlight,
|
|
391
|
+
t
|
|
392
|
+
]);
|
|
393
|
+
/** The tree pane holds nothing and has nothing coming. */
|
|
293
394
|
const treeIsEmpty = !treeHasRows && !treeLoading;
|
|
395
|
+
/**
|
|
396
|
+
* One placeholder per record on its way, whichever way it is coming. A root
|
|
397
|
+
* deep link's page is the one record the URL names, not a page of them.
|
|
398
|
+
*/
|
|
399
|
+
const pendingRowCount = recordsLoading
|
|
400
|
+
? deepLinkIsRoot
|
|
401
|
+
? 1
|
|
402
|
+
: initialRecordCount
|
|
403
|
+
: (rowsComposing ? ((_s = rootRows === null || rootRows === void 0 ? void 0 : rootRows.length) !== null && _s !== void 0 ? _s : 0) : 0) + loadsInFlight;
|
|
294
404
|
/** The menu's lazy-expand loader: one level, one batched request, cached. */
|
|
295
405
|
const loadChildren = useCallback(({ node, pageNumber }) => loadLazyChildren({
|
|
296
406
|
node,
|
|
297
|
-
|
|
407
|
+
findLevel: findConfigLevel,
|
|
298
408
|
pageNumber,
|
|
299
409
|
context: waveContext,
|
|
300
410
|
makeId: () => crypto.randomUUID()
|
|
301
|
-
}), [
|
|
411
|
+
}), [findConfigLevel, waveContext]);
|
|
302
412
|
const [sidebarOpen, setSidebarOpen] = useState(true);
|
|
303
413
|
// The tree/copilot split inside the pane — owned by the dock, set on the
|
|
304
414
|
// layout, which is where the drag seam lives.
|
|
@@ -310,15 +420,15 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
310
420
|
const [dropExecute, setDropExecute] = useState(null);
|
|
311
421
|
const [dropExecuting, setDropExecuting] = useState(false);
|
|
312
422
|
const { enqueueSnackbar } = useSnackbar();
|
|
423
|
+
/** Every toast this workspace raises: top-center, one variant. */
|
|
424
|
+
const notify = useCallback((message, variant) => enqueueSnackbar(message, { variant, anchorOrigin: SNACKBAR_TOP_CENTER }), [enqueueSnackbar]);
|
|
313
425
|
const handleDropNode = (source, target) => {
|
|
314
|
-
var _a
|
|
315
|
-
var
|
|
316
|
-
const sourceEntity = (
|
|
317
|
-
const dropActions = ((
|
|
318
|
-
(nodeAction === null || nodeAction === void 0 ? void 0 : nodeAction.dragEntityName
|
|
319
|
-
const pageNode =
|
|
320
|
-
if (pageNode)
|
|
321
|
-
menu.showDroppedPage(pageNode);
|
|
426
|
+
var _a;
|
|
427
|
+
var _b;
|
|
428
|
+
const sourceEntity = nodeEntityName(source);
|
|
429
|
+
const dropActions = ((_b = (_a = target === null || target === void 0 ? void 0 : target.properties) === null || _a === void 0 ? void 0 : _a.nodeActions) !== null && _b !== void 0 ? _b : []).filter((nodeAction) => (nodeAction === null || nodeAction === void 0 ? void 0 : nodeAction.triggerType) === NodeActionTriggerEnums.On_Node_Drop &&
|
|
430
|
+
isDragEntity(nodeAction === null || nodeAction === void 0 ? void 0 : nodeAction.dragEntityName, sourceEntity));
|
|
431
|
+
const pageNode = menu.dropOnto(target, source);
|
|
322
432
|
const methodIds = dropActions
|
|
323
433
|
.filter((nodeAction) => nodeAction.actionTypeId === NodeActionEnums.Execute_Api)
|
|
324
434
|
.map((nodeAction) => {
|
|
@@ -334,21 +444,17 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
334
444
|
// configure an action v2 can't run yet is a different story, and the user
|
|
335
445
|
// is owed the reason rather than a dead gesture.
|
|
336
446
|
if (dropActions.length) {
|
|
337
|
-
|
|
447
|
+
notify(t('inquiry.drop.unsupportedAction', {
|
|
338
448
|
defaultValue: 'That drop action is not supported by this viewer yet.'
|
|
339
|
-
}),
|
|
340
|
-
variant: 'warning',
|
|
341
|
-
anchorOrigin: SNACKBAR_TOP_CENTER
|
|
342
|
-
});
|
|
449
|
+
}), 'warning');
|
|
343
450
|
}
|
|
344
451
|
return;
|
|
345
452
|
}
|
|
346
453
|
fetchApiMethodsByIds(catalogId !== null && catalogId !== void 0 ? catalogId : '', methodIds)
|
|
347
454
|
.then((methods) => setDropExecute({ source, target, methods }))
|
|
348
|
-
.catch(() =>
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
}));
|
|
455
|
+
.catch(() => notify(t('inquiry.drop.methodsUnavailable', {
|
|
456
|
+
defaultValue: 'Unable to load the API methods for this drop action.'
|
|
457
|
+
}), 'error'));
|
|
352
458
|
};
|
|
353
459
|
// No drop handler in a read-only view: rows then neither drag nor accept
|
|
354
460
|
// drops, so a preview can never run a drop action.
|
|
@@ -370,19 +476,19 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
370
476
|
targetNodeType: (_b = dropExecute.target.properties) === null || _b === void 0 ? void 0 : _b.catalogReturnObject
|
|
371
477
|
}
|
|
372
478
|
});
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
});
|
|
479
|
+
notify(t('inquiry.drop.executed', {
|
|
480
|
+
defaultValue: '{{name}} executed successfully.',
|
|
481
|
+
name: (_c = method.name) !== null && _c !== void 0 ? _c : 'API'
|
|
482
|
+
}), 'success');
|
|
377
483
|
// The refresh mechanism: re-pull every row family the drop may have
|
|
378
484
|
// changed; the menu rebuild preserves the workspace around it.
|
|
379
|
-
refreshTree();
|
|
485
|
+
void refreshTree();
|
|
380
486
|
}
|
|
381
487
|
catch (_e) {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
});
|
|
488
|
+
notify(t('inquiry.drop.executeFailed', {
|
|
489
|
+
defaultValue: 'Unable to execute {{name}}.',
|
|
490
|
+
name: (_d = method.name) !== null && _d !== void 0 ? _d : 'the API'
|
|
491
|
+
}), 'error');
|
|
386
492
|
}
|
|
387
493
|
finally {
|
|
388
494
|
setDropExecuting(false);
|
|
@@ -391,13 +497,13 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
391
497
|
};
|
|
392
498
|
/**
|
|
393
499
|
* A saved query filter whose `params.*` placeholder could not be resolved is
|
|
394
|
-
* dropped rather than sent literally — which
|
|
395
|
-
* once per tree
|
|
500
|
+
* dropped rather than sent literally — which WIDENS the tree. Legacy dropped
|
|
501
|
+
* it silently; log it once per tree for whoever is debugging the config.
|
|
396
502
|
*/
|
|
397
503
|
const reportedDropsRef = useRef('');
|
|
398
504
|
const droppedParamFields = rootSearchEntity === null || rootSearchEntity === void 0 ? void 0 : rootSearchEntity.instanceFilters.droppedFields;
|
|
399
505
|
/* eslint-disable react-you-might-not-need-an-effect/no-pass-data-to-parent --
|
|
400
|
-
a one-shot report
|
|
506
|
+
a one-shot console report, not data lifted to a parent. */
|
|
401
507
|
useEffect(() => {
|
|
402
508
|
if (!(droppedParamFields === null || droppedParamFields === void 0 ? void 0 : droppedParamFields.length))
|
|
403
509
|
return;
|
|
@@ -406,14 +512,7 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
406
512
|
return;
|
|
407
513
|
reportedDropsRef.current = signature;
|
|
408
514
|
console.warn('[inquiry-v2] query filters dropped — unresolved params placeholder:', droppedParamFields.join(', '));
|
|
409
|
-
|
|
410
|
-
defaultValue: 'Showing more records than this tree’s query defines — its saved filters on {{fields}} were skipped because their parameter values are unavailable.',
|
|
411
|
-
fields: droppedParamFields.join(', ')
|
|
412
|
-
}), {
|
|
413
|
-
variant: 'warning',
|
|
414
|
-
anchorOrigin: SNACKBAR_TOP_CENTER
|
|
415
|
-
});
|
|
416
|
-
}, [treeId, droppedParamFields, t, enqueueSnackbar]);
|
|
515
|
+
}, [treeId, droppedParamFields]);
|
|
417
516
|
/* eslint-enable react-you-might-not-need-an-effect/no-pass-data-to-parent */
|
|
418
517
|
/* ------------------------------------------------------------------ filter */
|
|
419
518
|
// Filtering is a presentation pass over rows that are already loaded: it
|
|
@@ -463,18 +562,18 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
463
562
|
};
|
|
464
563
|
/* -------------------------------------------------------------------- load */
|
|
465
564
|
/** The singular catalog noun for prose ("Resource"), never a class path. */
|
|
466
|
-
const entityNoun = (
|
|
467
|
-
|
|
468
|
-
const [
|
|
565
|
+
const entityNoun = (_t = (_j = searchableEntities[0]) === null || _j === void 0 ? void 0 : _j.entityNoun) !== null && _t !== void 0 ? _t : '';
|
|
566
|
+
/** The Load dialog, open with its prefill text — null when closed. */
|
|
567
|
+
const [loadDialog, setLoadDialog] = useState(null);
|
|
469
568
|
/* --------------------------------------------------------- advanced search */
|
|
470
569
|
/**
|
|
471
|
-
* The advanced-search VIEW:
|
|
472
|
-
*
|
|
570
|
+
* The advanced-search VIEW: the filter the search panel opens with, or null
|
|
571
|
+
* while the panel is down. The ⋯ menu's entry opens it empty (the drawer is where the user
|
|
473
572
|
* builds the filter); the copilot's Apply card opens it with a filter already
|
|
474
573
|
* built, which is the same state the drawer's own submit produces. One piece
|
|
475
574
|
* of state, so both doors lead to the same screen — and so undo is a restore.
|
|
476
575
|
*/
|
|
477
|
-
const [advancedView, setAdvancedView] = useState(
|
|
576
|
+
const [advancedView, setAdvancedView] = useState(null);
|
|
478
577
|
const advancedViewRef = useRef(advancedView);
|
|
479
578
|
useEffect(() => {
|
|
480
579
|
advancedViewRef.current = advancedView;
|
|
@@ -483,26 +582,22 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
483
582
|
if (!searchableEntities.some((entity) => entity.key === preset.entityKey))
|
|
484
583
|
return null;
|
|
485
584
|
const previous = advancedViewRef.current;
|
|
486
|
-
setAdvancedView({
|
|
585
|
+
setAdvancedView({ preset });
|
|
487
586
|
return () => setAdvancedView(previous);
|
|
488
587
|
}, [searchableEntities]);
|
|
489
|
-
/**
|
|
490
|
-
|
|
588
|
+
/**
|
|
589
|
+
* businessObjectKeys already loaded as roots — the popover's dedup label.
|
|
590
|
+
* Under group headings too, when the root level groups its records.
|
|
591
|
+
*/
|
|
592
|
+
const loadedKeys = useMemo(() => new Set(menu.menuList.flatMap((entry) => entry
|
|
593
|
+
.flatMap(rootRecordsOf)
|
|
594
|
+
.map((root) => {
|
|
491
595
|
var _a;
|
|
492
596
|
return (_a = root.nodeObj) === null || _a === void 0 ? void 0 : _a.businessObjectKey;
|
|
493
597
|
}))), [menu.menuList]);
|
|
494
|
-
const openLoad = (prefill) => {
|
|
495
|
-
setLoadPrefill(prefill);
|
|
496
|
-
setLoadOpen(true);
|
|
497
|
-
};
|
|
598
|
+
const openLoad = (prefill) => setLoadDialog({ prefill });
|
|
498
599
|
/** The lookup-stamping context a record fetch at `levelEntityName` carries. */
|
|
499
|
-
const lookupContextFor = useCallback((levelEntityName) => ({
|
|
500
|
-
queryClient,
|
|
501
|
-
catalogId,
|
|
502
|
-
catalogObjects,
|
|
503
|
-
nestedEntities,
|
|
504
|
-
entityName: levelEntityName
|
|
505
|
-
}), [queryClient, catalogId, catalogObjects, nestedEntities]);
|
|
600
|
+
const lookupContextFor = useCallback((levelEntityName) => (Object.assign(Object.assign({}, lookupContext), { entityName: levelEntityName })), [lookupContext]);
|
|
506
601
|
/**
|
|
507
602
|
* RECENTLY LOADED (v1 parity) — the tree's server-held history. A read-only
|
|
508
603
|
* view writes none, so its writer is a no-op rather than a check at each load.
|
|
@@ -517,52 +612,16 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
517
612
|
});
|
|
518
613
|
}, [readOnly, queryClient, treeId, user === null || user === void 0 ? void 0 : user.id]);
|
|
519
614
|
/**
|
|
520
|
-
* Bring
|
|
521
|
-
*
|
|
522
|
-
*
|
|
523
|
-
*
|
|
615
|
+
* Bring records in — every door (the Load dialog, the finder's "Load
|
|
616
|
+
* selected", a deep link, `?searchValue`, a widget's loadInquiryNode, the
|
|
617
|
+
* history, load-to-tree) funnels through here. One identifier search per
|
|
618
|
+
* entity (the picks' identifier sets OR'd; LEAN — a search result may be a
|
|
619
|
+
* projection), ONE wave pass over the fetched rows, then each grafted into
|
|
620
|
+
* the menu and the whole load written to the history in ONE post. A missed
|
|
621
|
+
* row or a failed wave pass degrades to the row a pick already has; a failed
|
|
622
|
+
* fetch rejects the load when no pick in that entity's group has one.
|
|
524
623
|
*/
|
|
525
|
-
const
|
|
526
|
-
setLoadsInFlight((count) => count + 1);
|
|
527
|
-
try {
|
|
528
|
-
let record = null;
|
|
529
|
-
try {
|
|
530
|
-
record = await fetchRecordByIdentifiers(queryClient, entity.apiMethodId, filterElements, lookupContextFor(entity.entityName));
|
|
531
|
-
}
|
|
532
|
-
catch (_a) {
|
|
533
|
-
record = null;
|
|
534
|
-
}
|
|
535
|
-
const source = record !== null && record !== void 0 ? record : fallbackRow;
|
|
536
|
-
if (!source)
|
|
537
|
-
return null;
|
|
538
|
-
const [hydratedRow] = await hydrateRowsWithWaves(seedLevelFor(rootNode, entity), [source], waveContext);
|
|
539
|
-
const outcome = menu.loadRecord(entity.rootNode, hydratedRow !== null && hydratedRow !== void 0 ? hydratedRow : source);
|
|
540
|
-
// Every door that brings a record in by hand — the Load dialog, a deep
|
|
541
|
-
// link, `?searchValue`, a widget's loadInquiryNode, a click on the
|
|
542
|
-
// history itself — funnels through here, so the history is written from
|
|
543
|
-
// ONE place. A record that was already on screen was not loaded and is
|
|
544
|
-
// not recorded.
|
|
545
|
-
if (outcome &&
|
|
546
|
-
!outcome.alreadyLoaded &&
|
|
547
|
-
(options === null || options === void 0 ? void 0 : options.recordHistory) !== false) {
|
|
548
|
-
recordHistory([
|
|
549
|
-
historyEntryFor(entity, outcome.label, filterElements)
|
|
550
|
-
]);
|
|
551
|
-
}
|
|
552
|
-
return outcome;
|
|
553
|
-
}
|
|
554
|
-
finally {
|
|
555
|
-
setLoadsInFlight((count) => count - 1);
|
|
556
|
-
}
|
|
557
|
-
}, [queryClient, lookupContextFor, rootNode, waveContext, menu, recordHistory]);
|
|
558
|
-
/**
|
|
559
|
-
* Bring MANY records in — the finder's "Load selected". One identifier
|
|
560
|
-
* search per entity (the picks' identifier sets OR'd), ONE wave pass over
|
|
561
|
-
* all the fetched rows, then each grafted into the menu locally and the
|
|
562
|
-
* whole load written to the history in ONE post. The per-record path made
|
|
563
|
-
* 50+ requests for a 20-record bulk load; this makes a handful.
|
|
564
|
-
*/
|
|
565
|
-
const loadRecordsIntoMenu = useCallback(async (picks) => {
|
|
624
|
+
const loadRecordsIntoMenu = useCallback(async (picks, options) => {
|
|
566
625
|
const outcomes = [];
|
|
567
626
|
const historyEntries = [];
|
|
568
627
|
setLoadsInFlight((count) => count + picks.length);
|
|
@@ -574,70 +633,76 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
574
633
|
const key = pick.entity.key;
|
|
575
634
|
byEntity.set(key, [...((_a = byEntity.get(key)) !== null && _a !== void 0 ? _a : []), pick]);
|
|
576
635
|
});
|
|
577
|
-
// Every entity's fetch and waves run at once
|
|
578
|
-
// grafted in pick order below.
|
|
636
|
+
// Every entity's fetch and waves run at once.
|
|
579
637
|
const loaded = await Promise.all([...byEntity.values()].map(async (group) => {
|
|
580
638
|
const entity = group[0].entity;
|
|
581
|
-
const sets = group.map((pick) =>
|
|
582
|
-
let
|
|
639
|
+
const sets = group.map((pick) => pick.filterElements);
|
|
640
|
+
let found = [];
|
|
583
641
|
try {
|
|
584
|
-
|
|
642
|
+
found = await fetchRowsForIdentifierSets(queryClient, entity.apiMethodId, sets, lookupContextFor(entity.entityName));
|
|
585
643
|
}
|
|
586
|
-
catch (
|
|
587
|
-
|
|
644
|
+
catch (error) {
|
|
645
|
+
// Picks with a row of their own degrade to it; picks without one
|
|
646
|
+
// (a link, a widget, the history) fail the load.
|
|
647
|
+
if (!group.some((pick) => pick.fallbackRow))
|
|
648
|
+
throw error;
|
|
588
649
|
}
|
|
589
|
-
//
|
|
590
|
-
// degrades to the row the finder already has (same fallback the
|
|
591
|
-
// single-record path makes).
|
|
592
|
-
const candidates = fetched.map((row) => ({
|
|
593
|
-
row,
|
|
594
|
-
keys: new Map(Object.keys(row).map((key) => [key.toLowerCase(), key]))
|
|
595
|
-
}));
|
|
650
|
+
// A miss degrades to the row the pick already has.
|
|
596
651
|
const sources = group.map((pick, setIndex) => {
|
|
597
|
-
var _a;
|
|
598
|
-
|
|
599
|
-
if (!set.length)
|
|
600
|
-
return pick.row;
|
|
601
|
-
const match = candidates.find(({ row, keys }) => set.every((element) => {
|
|
602
|
-
const key = keys.get(asText(element.searchField).toLowerCase());
|
|
603
|
-
return (key !== undefined &&
|
|
604
|
-
asText(row[key]) === asText(element.searchValue));
|
|
605
|
-
}));
|
|
606
|
-
return (_a = match === null || match === void 0 ? void 0 : match.row) !== null && _a !== void 0 ? _a : pick.row;
|
|
652
|
+
var _a, _b;
|
|
653
|
+
return (_b = (_a = found[setIndex]) !== null && _a !== void 0 ? _a : pick.fallbackRow) !== null && _b !== void 0 ? _b : null;
|
|
607
654
|
});
|
|
608
|
-
|
|
655
|
+
const present = sources.filter((row) => !!row);
|
|
656
|
+
let hydrated = present;
|
|
609
657
|
try {
|
|
610
|
-
hydrated = await hydrateRowsWithWaves(
|
|
658
|
+
hydrated = await hydrateRowsWithWaves(entity.rootNode, present, waveContext);
|
|
611
659
|
}
|
|
612
|
-
catch (
|
|
613
|
-
hydrated =
|
|
660
|
+
catch (_a) {
|
|
661
|
+
hydrated = present;
|
|
614
662
|
}
|
|
615
|
-
|
|
663
|
+
let next = 0;
|
|
664
|
+
const rows = sources.map((row) => {
|
|
665
|
+
var _a;
|
|
666
|
+
if (!row)
|
|
667
|
+
return null;
|
|
668
|
+
const hydratedRow = (_a = hydrated[next]) !== null && _a !== void 0 ? _a : row;
|
|
669
|
+
next += 1;
|
|
670
|
+
return hydratedRow;
|
|
671
|
+
});
|
|
672
|
+
return { entity, sets, rows };
|
|
616
673
|
}));
|
|
617
|
-
loaded
|
|
618
|
-
|
|
619
|
-
|
|
674
|
+
// The first record loaded is the one selected — the top of what the
|
|
675
|
+
// load adds, not whichever came last.
|
|
676
|
+
let selected = false;
|
|
677
|
+
loaded.forEach(({ entity, sets, rows }) => {
|
|
678
|
+
rows.forEach((row, index) => {
|
|
679
|
+
const outcome = row
|
|
680
|
+
? loadRecord(entity.rootNode, row, { select: !selected })
|
|
681
|
+
: null;
|
|
682
|
+
if (outcome)
|
|
683
|
+
selected = true;
|
|
620
684
|
outcomes.push(outcome);
|
|
621
|
-
|
|
685
|
+
// A record that was already on screen was not loaded and is not
|
|
686
|
+
// recorded.
|
|
687
|
+
if (outcome &&
|
|
688
|
+
!outcome.alreadyLoaded &&
|
|
689
|
+
(options === null || options === void 0 ? void 0 : options.recordHistory) !== false) {
|
|
622
690
|
historyEntries.push(historyEntryFor(entity, outcome.label, sets[index]));
|
|
623
691
|
}
|
|
624
692
|
});
|
|
625
693
|
});
|
|
626
|
-
|
|
694
|
+
if (historyEntries.length)
|
|
695
|
+
recordHistory(historyEntries);
|
|
627
696
|
return outcomes;
|
|
628
697
|
}
|
|
629
698
|
finally {
|
|
630
|
-
|
|
699
|
+
// A record that reached the menu keeps its placeholder until the tree
|
|
700
|
+
// draws it (see `undrawnLoads`); the rest have nothing coming.
|
|
701
|
+
const grafted = outcomes.filter((outcome) => outcome && !outcome.alreadyLoaded).length;
|
|
702
|
+
undrawnLoads.current += grafted;
|
|
703
|
+
setLoadsInFlight((count) => count - (picks.length - grafted));
|
|
631
704
|
}
|
|
632
|
-
}, [
|
|
633
|
-
queryClient,
|
|
634
|
-
catalogObjects,
|
|
635
|
-
lookupContextFor,
|
|
636
|
-
rootNode,
|
|
637
|
-
waveContext,
|
|
638
|
-
menu,
|
|
639
|
-
recordHistory
|
|
640
|
-
]);
|
|
705
|
+
}, [queryClient, lookupContextFor, waveContext, loadRecord, recordHistory]);
|
|
641
706
|
/**
|
|
642
707
|
* Say what a load did — the one report every door into the tree makes (the
|
|
643
708
|
* Load dialog, `?searchValue`, a widget's loadInquiryNode). The label comes
|
|
@@ -646,29 +711,39 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
646
711
|
*/
|
|
647
712
|
const reportLoadOutcome = (outcome) => {
|
|
648
713
|
if (!outcome) {
|
|
649
|
-
|
|
714
|
+
notify(t('inquiry.load.notFoundNotice', {
|
|
650
715
|
defaultValue: 'That record could not be loaded.'
|
|
651
|
-
}),
|
|
652
|
-
variant: 'warning',
|
|
653
|
-
anchorOrigin: SNACKBAR_TOP_CENTER
|
|
654
|
-
});
|
|
716
|
+
}), 'warning');
|
|
655
717
|
return;
|
|
656
718
|
}
|
|
657
719
|
const label = outcome.label || entityNoun;
|
|
658
720
|
if (outcome.alreadyLoaded) {
|
|
659
|
-
|
|
721
|
+
notify(t('inquiry.load.alreadyLoadedNotice', {
|
|
660
722
|
defaultValue: '{{label}} is already loaded.',
|
|
661
723
|
label
|
|
662
|
-
}),
|
|
724
|
+
}), 'info');
|
|
663
725
|
return;
|
|
664
726
|
}
|
|
665
|
-
|
|
727
|
+
notify(t('inquiry.load.loadedNotice', {
|
|
728
|
+
defaultValue: '{{label}} loaded.',
|
|
729
|
+
label
|
|
730
|
+
}), 'success');
|
|
666
731
|
};
|
|
732
|
+
/** Load one pick and report it; a failed load reports as not loaded. */
|
|
733
|
+
const loadAndReport = (pick) => loadRecordsIntoMenu([pick])
|
|
734
|
+
.then(([outcome = null]) => outcome)
|
|
735
|
+
.catch(() => null)
|
|
736
|
+
.then(reportLoadOutcome);
|
|
737
|
+
/** A picked search row as a load: its identifier filters, the row as fallback. */
|
|
738
|
+
const pickFor = (entity, row) => ({
|
|
739
|
+
entity,
|
|
740
|
+
filterElements: buildIdentifierFilterElements(catalogObjects, entity.entityName, row),
|
|
741
|
+
fallbackRow: row
|
|
742
|
+
});
|
|
667
743
|
/** Returns what was loaded, so a non-clicking caller (the copilot) can say so. */
|
|
668
744
|
const handleLoadRecord = async (entity, row) => {
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
const outcome = await loadRecordIntoMenu(entity, buildIdentifierFilterElements(catalogObjects, entity.entityName, row), row);
|
|
745
|
+
setLoadDialog(null);
|
|
746
|
+
const [outcome = null] = await loadRecordsIntoMenu([pickFor(entity, row)]);
|
|
672
747
|
reportLoadOutcome(outcome);
|
|
673
748
|
return outcome;
|
|
674
749
|
};
|
|
@@ -680,48 +755,45 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
680
755
|
void handleLoadRecord(picks[0].entity, picks[0].row);
|
|
681
756
|
return;
|
|
682
757
|
}
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
const outcomes = await loadRecordsIntoMenu(picks);
|
|
758
|
+
setLoadDialog(null);
|
|
759
|
+
const outcomes = await loadRecordsIntoMenu(picks.map(({ entity, row }) => pickFor(entity, row)));
|
|
686
760
|
const loaded = outcomes.filter((outcome) => outcome && !outcome.alreadyLoaded).length;
|
|
687
761
|
const missed = outcomes.filter((outcome) => !outcome).length;
|
|
688
762
|
if (loaded) {
|
|
689
|
-
|
|
763
|
+
notify(t('inquiry.load.bulkLoadedNotice', {
|
|
690
764
|
defaultValue: '{{count}} records loaded.',
|
|
691
765
|
count: loaded
|
|
692
|
-
}),
|
|
766
|
+
}), 'success');
|
|
693
767
|
return;
|
|
694
768
|
}
|
|
695
|
-
|
|
769
|
+
notify(missed
|
|
696
770
|
? t('inquiry.load.bulkFailedNotice', {
|
|
697
771
|
defaultValue: 'Those records could not be loaded.'
|
|
698
772
|
})
|
|
699
773
|
: t('inquiry.load.bulkAlreadyLoadedNotice', {
|
|
700
774
|
defaultValue: 'Those records are already loaded.'
|
|
701
|
-
}),
|
|
775
|
+
}), missed ? 'warning' : 'info');
|
|
702
776
|
};
|
|
703
777
|
/**
|
|
704
778
|
* v1's load-to-tree (InquiryContainer handleLoadingSpecificNode): the record
|
|
705
779
|
* opens as a new root SHAPED BY THE CONFIGURED TREE — the active tab's
|
|
706
780
|
* `trees` entry naming the record's entity. It rides the same kernel path an
|
|
707
781
|
* associated-tree search hit uses (a foreign root node handed to
|
|
708
|
-
* menu.loadRecord); the target tree is fetched
|
|
709
|
-
*
|
|
710
|
-
*
|
|
711
|
-
* loadRecordIntoMenu option.
|
|
782
|
+
* menu.loadRecord); the target tree is fetched (cached) and nested so the
|
|
783
|
+
* new root carries its own child levels. Kept out of the recently-loaded
|
|
784
|
+
* history — see the loadRecordsIntoMenu option.
|
|
712
785
|
*/
|
|
713
786
|
const loadRecordIntoConfiguredTree = useCallback(async (targetTreeId, request) => {
|
|
714
787
|
var _a;
|
|
715
788
|
let outcome = null;
|
|
716
789
|
try {
|
|
717
790
|
const targetTree = await fetchInquiryTree(queryClient, targetTreeId);
|
|
718
|
-
const entity = (_a = deriveSearchableEntities(targetTree).find((e) => e.isRoot)) !== null && _a !== void 0 ? _a : null;
|
|
719
|
-
const nestedRoot = nestedRootOf(targetTree);
|
|
791
|
+
const entity = (_a = deriveSearchableEntities(targetTree, null).find((e) => e.isRoot)) !== null && _a !== void 0 ? _a : null;
|
|
720
792
|
const filterElements = entity
|
|
721
|
-
? buildIdentifierFilterElements(catalogObjects, entity.entityName, request)
|
|
793
|
+
? buildIdentifierFilterElements(catalogObjects, entity.entityName, request).filter(hasIdentifierValue)
|
|
722
794
|
: [];
|
|
723
|
-
if (entity &&
|
|
724
|
-
outcome = await
|
|
795
|
+
if (entity && filterElements.length) {
|
|
796
|
+
[outcome = null] = await loadRecordsIntoMenu([{ entity, filterElements }], { recordHistory: false });
|
|
725
797
|
}
|
|
726
798
|
}
|
|
727
799
|
catch (_b) {
|
|
@@ -731,7 +803,7 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
731
803
|
},
|
|
732
804
|
// reportLoadOutcome is re-created per render and is read, not watched.
|
|
733
805
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
734
|
-
[queryClient, catalogObjects,
|
|
806
|
+
[queryClient, catalogObjects, loadRecordsIntoMenu]);
|
|
735
807
|
/**
|
|
736
808
|
* v1's `loadInquiryNode`, the contract page widgets call to put a record they
|
|
737
809
|
* are showing INTO the tree (a linked asset's grid row, a child asset). The
|
|
@@ -760,30 +832,26 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
760
832
|
void loadRecordIntoConfiguredTree(targetRef.treeId, request);
|
|
761
833
|
return;
|
|
762
834
|
}
|
|
763
|
-
const entity = businessObjectKey
|
|
764
|
-
? entityForBusinessObjectKey(searchableEntities, businessObjectKey)
|
|
765
|
-
: null;
|
|
835
|
+
const { entity } = levelForBusinessObjectKey(searchableEntities, businessObjectKey);
|
|
766
836
|
const filterElements = entity
|
|
767
|
-
? buildIdentifierFilterElements(catalogObjects, entity.entityName, request)
|
|
837
|
+
? buildIdentifierFilterElements(catalogObjects, entity.entityName, request).filter(hasIdentifierValue)
|
|
768
838
|
: [];
|
|
769
839
|
if (!entity || !filterElements.length) {
|
|
770
|
-
|
|
840
|
+
notify(t('inquiry.load.unknownEntityNotice', {
|
|
771
841
|
defaultValue: 'Could not load that record — this tree does not show “{{key}}”.',
|
|
772
842
|
key: businessObjectKey || entityNoun
|
|
773
|
-
}),
|
|
774
|
-
variant: 'warning',
|
|
775
|
-
anchorOrigin: SNACKBAR_TOP_CENTER
|
|
776
|
-
});
|
|
843
|
+
}), 'warning');
|
|
777
844
|
return;
|
|
778
845
|
}
|
|
779
|
-
void
|
|
846
|
+
void loadAndReport({ entity, filterElements });
|
|
780
847
|
},
|
|
781
|
-
//
|
|
848
|
+
// loadAndReport is re-created per render and is read, not watched; the
|
|
849
|
+
// loadRecordsIntoMenu it calls is.
|
|
782
850
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
783
851
|
[
|
|
784
852
|
searchableEntities,
|
|
785
853
|
catalogObjects,
|
|
786
|
-
|
|
854
|
+
loadRecordsIntoMenu,
|
|
787
855
|
loadRecordIntoConfiguredTree,
|
|
788
856
|
entityNoun,
|
|
789
857
|
t
|
|
@@ -800,16 +868,14 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
800
868
|
var _a, _b;
|
|
801
869
|
var _c;
|
|
802
870
|
const entityName = (_c = (_a = entry === null || entry === void 0 ? void 0 : entry.nodeDetails) === null || _a === void 0 ? void 0 : _a.catalogReturnObject) !== null && _c !== void 0 ? _c : '';
|
|
803
|
-
const entity = entityName
|
|
804
|
-
? entityForBusinessObjectKey(searchableEntities, entityName)
|
|
805
|
-
: null;
|
|
871
|
+
const { entity } = levelForBusinessObjectKey(searchableEntities, entityName);
|
|
806
872
|
// The stored payload is the identifier search that loaded the record
|
|
807
873
|
// (v1 and v2 both write `getSearchObject(identifierFilters, 1, 1)`), so
|
|
808
874
|
// its filter elements go straight into the same load path every other
|
|
809
875
|
// door uses — the skeleton shows on the click, and the record is fetched
|
|
810
876
|
// once, not replayed and then fetched again.
|
|
811
877
|
const filterElements = Array.isArray((_b = entry === null || entry === void 0 ? void 0 : entry.queryPayload) === null || _b === void 0 ? void 0 : _b.filterElements)
|
|
812
|
-
? entry.queryPayload.filterElements
|
|
878
|
+
? entry.queryPayload.filterElements.filter(hasIdentifierValue)
|
|
813
879
|
: [];
|
|
814
880
|
if (!entity || !filterElements.length) {
|
|
815
881
|
// A history entry this tree can no longer resolve is not an error the
|
|
@@ -818,47 +884,46 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
818
884
|
reportLoadOutcome(null);
|
|
819
885
|
return;
|
|
820
886
|
}
|
|
821
|
-
void
|
|
822
|
-
.catch(() => null)
|
|
823
|
-
.then(reportLoadOutcome);
|
|
887
|
+
void loadAndReport({ entity, filterElements });
|
|
824
888
|
},
|
|
825
|
-
// reportLoadOutcome
|
|
889
|
+
// loadAndReport and reportLoadOutcome are re-created per render and are
|
|
890
|
+
// read, not watched; the loadRecordsIntoMenu they call is.
|
|
826
891
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
827
|
-
[searchableEntities,
|
|
892
|
+
[searchableEntities, loadRecordsIntoMenu]);
|
|
828
893
|
/* ----------------------------------------------------------- refreshTree */
|
|
829
894
|
/**
|
|
830
895
|
* REFRESH TREE, both halves.
|
|
831
896
|
*
|
|
832
897
|
* Invalidating the row families re-reads everything a QUERY owns — the root
|
|
833
898
|
* page and the badges, which is why the counts beside a mutated row update on
|
|
834
|
-
* their own.
|
|
835
|
-
* lazy
|
|
836
|
-
*
|
|
837
|
-
*
|
|
838
|
-
*
|
|
839
|
-
*
|
|
840
|
-
*
|
|
899
|
+
* their own. Rows below the root are owned by no query (the wave loader and
|
|
900
|
+
* lazy expands grafted them), so the refresh also re-reads the RECORD ROOT of
|
|
901
|
+
* the selection — the record an action over the selection, or under it, can
|
|
902
|
+
* have changed below — and the menu recomposes that branch, re-opened to
|
|
903
|
+
* where the user had it (branchRefreshModel). v1 re-fetched the selected root
|
|
904
|
+
* record the same way. A root record the server no longer returns is gone,
|
|
905
|
+
* and its row goes with it.
|
|
841
906
|
*
|
|
842
|
-
* The
|
|
843
|
-
* handed to the kernel as an effect override, and the
|
|
844
|
-
* whole effects bag whenever the override changes.
|
|
907
|
+
* The selection is read through a ref so this stays stable across
|
|
908
|
+
* selections: it is handed to the kernel as an effect override, and the
|
|
909
|
+
* kernel rebuilds its whole effects bag whenever the override changes. The
|
|
910
|
+
* refs are the menu's own, so a rebuild made in the same tick (Refresh
|
|
911
|
+
* bringing removed records back) is already what this reads.
|
|
845
912
|
*/
|
|
846
|
-
const
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
const restampRecords = menu.restampRecords;
|
|
851
|
-
const refreshTree = useCallback(() => {
|
|
852
|
-
invalidateInquiryRowData(queryClient);
|
|
853
|
-
void (async () => {
|
|
913
|
+
const { menuListRef, selectedIdRef } = menu;
|
|
914
|
+
const refreshRecord = menu.refreshRecord;
|
|
915
|
+
const refreshTree = useCallback(async () => {
|
|
916
|
+
const rereadBranch = async () => {
|
|
854
917
|
var _a, _b, _c;
|
|
855
|
-
const
|
|
856
|
-
const
|
|
857
|
-
|
|
918
|
+
const location = locateNodeById(menuListRef.current, selectedIdRef.current);
|
|
919
|
+
const target = findRecordRoot(location === null || location === void 0 ? void 0 : location.root, selectedIdRef.current);
|
|
920
|
+
const level = findConfigLevel(target === null || target === void 0 ? void 0 : target.configNodeId);
|
|
921
|
+
const levelEntityName = typeof ((_a = level === null || level === void 0 ? void 0 : level.properties) === null || _a === void 0 ? void 0 : _a.catalogReturnObject) === 'string'
|
|
922
|
+
? level.properties.catalogReturnObject
|
|
858
923
|
: '';
|
|
859
|
-
if (!(
|
|
924
|
+
if (!(target === null || target === void 0 ? void 0 : target.nodeObj) || !level || !levelEntityName || !catalogId)
|
|
860
925
|
return;
|
|
861
|
-
const filterElements = buildIdentifierFilterElements(catalogObjects, levelEntityName,
|
|
926
|
+
const filterElements = buildIdentifierFilterElements(catalogObjects, levelEntityName, target.nodeObj);
|
|
862
927
|
if (!filterElements.length)
|
|
863
928
|
return;
|
|
864
929
|
try {
|
|
@@ -868,22 +933,41 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
868
933
|
const apiMethodId = (_c = (_b = meta.promoted) === null || _b === void 0 ? void 0 : _b.unityBaseSearchMethod) === null || _c === void 0 ? void 0 : _c.apiMethodId;
|
|
869
934
|
if (!apiMethodId)
|
|
870
935
|
return;
|
|
871
|
-
const row = await
|
|
872
|
-
if (row)
|
|
873
|
-
|
|
936
|
+
const row = refreshedRow(await fetchRecordsByIdentifierSets(queryClient, apiMethodId, [filterElements], lookupContextFor(levelEntityName)), target.nodeObj.businessObjectKey);
|
|
937
|
+
if (row === undefined)
|
|
938
|
+
return;
|
|
939
|
+
const [hydrated = null] = row
|
|
940
|
+
? await hydrateRowsWithWaves(level, [row], waveContext)
|
|
941
|
+
: [];
|
|
942
|
+
await refreshRecord(target, hydrated, loadChildren);
|
|
874
943
|
}
|
|
875
944
|
catch (_d) {
|
|
876
|
-
// A refresh that cannot re-read the
|
|
877
|
-
// still the last answer the server gave. The toolbar's Refresh retries.
|
|
945
|
+
// A refresh that cannot re-read the branch leaves it exactly as it was
|
|
946
|
+
// — still the last answer the server gave. The toolbar's Refresh retries.
|
|
878
947
|
}
|
|
879
|
-
}
|
|
948
|
+
};
|
|
949
|
+
await Promise.all([invalidateInquiryRowData(queryClient), rereadBranch()]);
|
|
880
950
|
}, [
|
|
881
951
|
queryClient,
|
|
952
|
+
findConfigLevel,
|
|
882
953
|
catalogId,
|
|
883
954
|
catalogObjects,
|
|
884
955
|
lookupContextFor,
|
|
885
|
-
|
|
956
|
+
waveContext,
|
|
957
|
+
loadChildren,
|
|
958
|
+
refreshRecord,
|
|
959
|
+
menuListRef,
|
|
960
|
+
selectedIdRef
|
|
886
961
|
]);
|
|
962
|
+
// The toolbar's Refresh shows its own refresh in flight.
|
|
963
|
+
const [refreshing, setRefreshing] = useState(false);
|
|
964
|
+
const restoreRemoved = menu.restoreRemoved;
|
|
965
|
+
const handleRefresh = useCallback(() => {
|
|
966
|
+
setRefreshing(true);
|
|
967
|
+
// Refresh asks for the page again, records removed from it included.
|
|
968
|
+
restoreRemoved();
|
|
969
|
+
void refreshTree().finally(() => setRefreshing(false));
|
|
970
|
+
}, [refreshTree, restoreRemoved]);
|
|
887
971
|
/**
|
|
888
972
|
* The kernel's effect overrides. `loadNode` being a real function here (and
|
|
889
973
|
* null in an embedder) is also what lights up the widget Load button.
|
|
@@ -896,7 +980,9 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
896
980
|
* copilot can read and switch it.
|
|
897
981
|
*/
|
|
898
982
|
const [tabChoice, setTabChoice] = useState(null);
|
|
899
|
-
const selectedNodeId = menu.selectedNode
|
|
983
|
+
const selectedNodeId = menu.selectedNode
|
|
984
|
+
? String(menu.selectedNode.id)
|
|
985
|
+
: null;
|
|
900
986
|
const activeTabId = tabChoice && tabChoice.nodeId === selectedNodeId
|
|
901
987
|
? tabChoice.tabId
|
|
902
988
|
: undefined;
|
|
@@ -921,13 +1007,12 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
921
1007
|
/** One-shot latch: survives StrictMode's double effect invoke, which state can't. */
|
|
922
1008
|
const arrivalHandledRef = useRef(false);
|
|
923
1009
|
/**
|
|
924
|
-
* Searching before the searchable set and the
|
|
1010
|
+
* Searching before the searchable set and the metadata are in hand would settle
|
|
925
1011
|
* on an empty result and open the dialog against a term that was never asked.
|
|
926
1012
|
* Until then the term is withheld, which leaves the hook with empty text and
|
|
927
1013
|
* therefore no queries at all.
|
|
928
1014
|
*/
|
|
929
|
-
const arrivalReady = !!searchableEntities.length &&
|
|
930
|
-
(!!(catalogObjects === null || catalogObjects === void 0 ? void 0 : catalogObjects.length) || catalogUnavailable);
|
|
1015
|
+
const arrivalReady = !!searchableEntities.length && searchSettled;
|
|
931
1016
|
const arrivalSearch = useInquirySearch({
|
|
932
1017
|
entities: searchableEntities,
|
|
933
1018
|
text: !arrivalSettled && arrivalReady ? arrivalTerm : '',
|
|
@@ -957,13 +1042,14 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
957
1042
|
if (outcome === 'wait')
|
|
958
1043
|
return;
|
|
959
1044
|
arrivalHandledRef.current = true;
|
|
960
|
-
setArrivalSettled(true);
|
|
961
1045
|
if (outcome === 'load' && arrivalSearch.singleResult) {
|
|
962
1046
|
// The same path a chosen dialog row takes — including its loaded /
|
|
963
1047
|
// already-loaded notice, which is the only report this flow makes.
|
|
964
|
-
|
|
1048
|
+
// Settled once the record is in, so the pane loads until then.
|
|
1049
|
+
void handleLoadRecord(arrivalSearch.singleResult.entity, arrivalSearch.singleResult.row).finally(() => setArrivalSettled(true));
|
|
965
1050
|
return;
|
|
966
1051
|
}
|
|
1052
|
+
setArrivalSettled(true);
|
|
967
1053
|
openLoad(arrivalTerm);
|
|
968
1054
|
// handleLoadRecord/openLoad are re-created per render and are read, not
|
|
969
1055
|
// watched — the effect fires off the search outcome alone.
|
|
@@ -978,8 +1064,8 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
978
1064
|
* top of the page, the same way the Load dialog loads one.
|
|
979
1065
|
*
|
|
980
1066
|
* Unlike v1, a link that cannot be honored SAYS SO — an unrecognised entity,
|
|
981
|
-
*
|
|
982
|
-
* a silently empty tree.
|
|
1067
|
+
* a link that does not identify one record, or no single record matching it
|
|
1068
|
+
* left v1 showing a silently empty tree (or the wrong record).
|
|
983
1069
|
*/
|
|
984
1070
|
useEffect(() => {
|
|
985
1071
|
var _a;
|
|
@@ -987,59 +1073,75 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
987
1073
|
return;
|
|
988
1074
|
if (!searchableEntities.length)
|
|
989
1075
|
return;
|
|
990
|
-
// Wait for the catalog the identifiers come from
|
|
991
|
-
//
|
|
992
|
-
|
|
1076
|
+
// Wait for the catalog the identifiers come from and the promotions the
|
|
1077
|
+
// record's levels load through — a failed catalog settles too, and the
|
|
1078
|
+
// link then says it could not be opened and moves on.
|
|
1079
|
+
if (!searchSettled)
|
|
993
1080
|
return;
|
|
1081
|
+
const reportFailure = (reason) => {
|
|
1082
|
+
const messages = {
|
|
1083
|
+
unresolved: t('inquiry.deepLink.unresolved', {
|
|
1084
|
+
defaultValue: 'Could not open the linked record — this tree does not recognize “{{key}}”.',
|
|
1085
|
+
key: deepLink.businessObjectKey
|
|
1086
|
+
}),
|
|
1087
|
+
incomplete: t('inquiry.deepLink.incomplete', {
|
|
1088
|
+
defaultValue: 'Could not open the linked record — the link does not identify one record.'
|
|
1089
|
+
}),
|
|
1090
|
+
notFound: t('inquiry.deepLink.notFound', {
|
|
1091
|
+
defaultValue: 'Could not open the linked record — no single record matches it.'
|
|
1092
|
+
}),
|
|
1093
|
+
failed: t('inquiry.deepLink.failed', {
|
|
1094
|
+
defaultValue: 'Could not open the linked record.'
|
|
1095
|
+
})
|
|
1096
|
+
};
|
|
1097
|
+
notify(messages[reason], 'warning');
|
|
1098
|
+
};
|
|
994
1099
|
if (!deepLinkEntity || !deepLinkFilters) {
|
|
995
1100
|
setDeepLinkSettled(true);
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1101
|
+
setRootLinkDropped(true);
|
|
1102
|
+
// Without a catalog, a link to a known level cannot be judged.
|
|
1103
|
+
if (deepLinkTarget === null || deepLinkTarget === void 0 ? void 0 : deepLinkTarget.ambiguous)
|
|
1104
|
+
reportFailure('incomplete');
|
|
1105
|
+
else if (!deepLinkEntity)
|
|
1106
|
+
reportFailure('unresolved');
|
|
1107
|
+
else
|
|
1108
|
+
reportFailure((catalogObjects === null || catalogObjects === void 0 ? void 0 : catalogObjects.length) ? 'incomplete' : 'failed');
|
|
1003
1109
|
return;
|
|
1004
1110
|
}
|
|
1005
1111
|
if (deepLinkIsRoot) {
|
|
1006
1112
|
if (recordsPending)
|
|
1007
1113
|
return;
|
|
1008
1114
|
setDeepLinkSettled(true);
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
});
|
|
1016
|
-
}
|
|
1115
|
+
// The root query keeps its page only when exactly one record matched;
|
|
1116
|
+
// otherwise the link is dropped and the tree arrives as if it had none.
|
|
1117
|
+
if ((_a = records === null || records === void 0 ? void 0 : records.rows) === null || _a === void 0 ? void 0 : _a.length)
|
|
1118
|
+
return;
|
|
1119
|
+
setRootLinkDropped(true);
|
|
1120
|
+
reportFailure(recordsError ? 'failed' : 'notFound');
|
|
1017
1121
|
return;
|
|
1018
1122
|
}
|
|
1019
1123
|
setDeepLinkSettled(true);
|
|
1020
|
-
void
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
variant: 'warning',
|
|
1027
|
-
anchorOrigin: SNACKBAR_TOP_CENTER
|
|
1028
|
-
});
|
|
1029
|
-
});
|
|
1124
|
+
void loadRecordsIntoMenu([
|
|
1125
|
+
{ entity: deepLinkEntity, filterElements: deepLinkFilters }
|
|
1126
|
+
]).then(([outcome]) => {
|
|
1127
|
+
if (!outcome)
|
|
1128
|
+
reportFailure('notFound');
|
|
1129
|
+
}, () => reportFailure('failed'));
|
|
1030
1130
|
}, [
|
|
1031
1131
|
deepLink,
|
|
1032
1132
|
deepLinkSettled,
|
|
1133
|
+
deepLinkTarget,
|
|
1033
1134
|
deepLinkEntity,
|
|
1034
1135
|
deepLinkFilters,
|
|
1136
|
+
catalogObjects,
|
|
1035
1137
|
deepLinkIsRoot,
|
|
1036
1138
|
searchableEntities.length,
|
|
1037
|
-
|
|
1038
|
-
catalogUnavailable,
|
|
1139
|
+
searchSettled,
|
|
1039
1140
|
records,
|
|
1040
1141
|
recordsPending,
|
|
1041
|
-
|
|
1042
|
-
|
|
1142
|
+
recordsError,
|
|
1143
|
+
loadRecordsIntoMenu,
|
|
1144
|
+
notify,
|
|
1043
1145
|
t
|
|
1044
1146
|
]);
|
|
1045
1147
|
/* ------------------------------------------------------ selection report */
|
|
@@ -1069,7 +1171,9 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
1069
1171
|
const overflowItems = useMemo(() => [
|
|
1070
1172
|
{
|
|
1071
1173
|
id: 'collapseAll',
|
|
1072
|
-
text: t('inquiry.controls.collapseAll', {
|
|
1174
|
+
text: t('inquiry.controls.collapseAll', {
|
|
1175
|
+
defaultValue: 'Collapse All'
|
|
1176
|
+
}),
|
|
1073
1177
|
iconName: 'chevron-down-up',
|
|
1074
1178
|
onClick: menu.collapseAll
|
|
1075
1179
|
},
|
|
@@ -1088,8 +1192,12 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
1088
1192
|
{
|
|
1089
1193
|
id: 'treeViewMode',
|
|
1090
1194
|
text: treeViewMode === TreeViewModeEnums.Compact
|
|
1091
|
-
? t('inquiry.controls.classicView', {
|
|
1092
|
-
|
|
1195
|
+
? t('inquiry.controls.classicView', {
|
|
1196
|
+
defaultValue: 'Classic View'
|
|
1197
|
+
})
|
|
1198
|
+
: t('inquiry.controls.compactView', {
|
|
1199
|
+
defaultValue: 'Compact View'
|
|
1200
|
+
}),
|
|
1093
1201
|
iconName: treeViewMode === TreeViewModeEnums.Compact
|
|
1094
1202
|
? 'apps-list-detail'
|
|
1095
1203
|
: 'apps-list',
|
|
@@ -1105,12 +1213,19 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
1105
1213
|
defaultValue: 'Advanced Search'
|
|
1106
1214
|
}),
|
|
1107
1215
|
iconName: 'filter',
|
|
1108
|
-
onClick: () => setAdvancedView({
|
|
1216
|
+
onClick: () => setAdvancedView({ preset: null })
|
|
1109
1217
|
}
|
|
1110
1218
|
]
|
|
1111
1219
|
: [])
|
|
1112
|
-
], [
|
|
1113
|
-
|
|
1220
|
+
], [
|
|
1221
|
+
t,
|
|
1222
|
+
menu.collapseAll,
|
|
1223
|
+
menu.expandAll,
|
|
1224
|
+
menu.resetTree,
|
|
1225
|
+
treeViewMode,
|
|
1226
|
+
searchableEntities.length
|
|
1227
|
+
]);
|
|
1228
|
+
const treeName = treeTitleOf(tree) || 'Inquiry';
|
|
1114
1229
|
/**
|
|
1115
1230
|
* The pane title only gets a tooltip when the name is actually cut off. The
|
|
1116
1231
|
* pane is user-resizable, so this is measured (ResizeObserver) rather than
|
|
@@ -1122,7 +1237,7 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
1122
1237
|
// The viewer's AI function: every tool is a function this file already calls
|
|
1123
1238
|
// for its own controls. Handed to the docked assistant below.
|
|
1124
1239
|
const copilot = useInquiryCopilot({
|
|
1125
|
-
tree
|
|
1240
|
+
tree,
|
|
1126
1241
|
searchableEntities: searchableEntities,
|
|
1127
1242
|
menuList: menu.menuList,
|
|
1128
1243
|
selectedNode: menu.selectedNode,
|
|
@@ -1138,7 +1253,7 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
1138
1253
|
onFilterTextChange: applyFilterText,
|
|
1139
1254
|
onExpandAll: menu.expandAll,
|
|
1140
1255
|
onCollapseAll: menu.collapseAll,
|
|
1141
|
-
onApplyAdvancedSearch: applyAdvancedSearch
|
|
1256
|
+
onApplyAdvancedSearch: applyAdvancedSearch
|
|
1142
1257
|
});
|
|
1143
1258
|
if (!rootNode) {
|
|
1144
1259
|
return (React.createElement("div", { className: styles.centered }, React.createElement(UdpText, { variant: "body1" }, "Failed to load the inquiry tree.")));
|
|
@@ -1147,7 +1262,19 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
1147
1262
|
* The record side of the pane — the whole screen when the tree is hidden, so
|
|
1148
1263
|
* it is composed once and placed by the branch below rather than duplicated.
|
|
1149
1264
|
*/
|
|
1150
|
-
const
|
|
1265
|
+
const title = (React.createElement("div", { ref: titleRef, className: styles.title }, React.createElement(UdpText, { variant: "subtitle2", as: "span", block: false }, treeName)));
|
|
1266
|
+
const idlePane = idleRecordPane({
|
|
1267
|
+
// A tree with nothing searchable never runs its arrival, so never waits on
|
|
1268
|
+
// it. The landing waits for the searchable set too: its recently-loaded,
|
|
1269
|
+
// reminder and find rows resolve their level from it.
|
|
1270
|
+
arrivalPending: (!arrivalSettled || !searchSettled) && searchableEntities.length > 0,
|
|
1271
|
+
explorePageId,
|
|
1272
|
+
recordsLoading
|
|
1273
|
+
});
|
|
1274
|
+
const recordPane = (
|
|
1275
|
+
// A focus target of its own (never a tab stop), so F6 has somewhere to land
|
|
1276
|
+
// whatever the record holds; Tab from here enters the record's controls.
|
|
1277
|
+
React.createElement("div", { ref: recordPaneRef, className: styles.main, role: "region", "aria-label": t('inquiry.record.region', { defaultValue: 'Record' }), tabIndex: -1 }, advancedView ? (React.createElement(InquirySearchPanel
|
|
1151
1278
|
// A proposal applied over an open panel is a different search:
|
|
1152
1279
|
// remount so the panel starts from the filter it was given.
|
|
1153
1280
|
, {
|
|
@@ -1159,25 +1286,23 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
1159
1286
|
// With a filter already built the results ARE the screen; without
|
|
1160
1287
|
// one the drawer is where the user builds it.
|
|
1161
1288
|
initialAdvanced: advancedView.preset, initialAdvancedOpen: !advancedView.preset, onLoadRecord: (entity, row) => {
|
|
1162
|
-
setAdvancedView(
|
|
1289
|
+
setAdvancedView(null);
|
|
1163
1290
|
void handleLoadRecord(entity, row);
|
|
1164
|
-
}, onClear: () => setAdvancedView(
|
|
1291
|
+
}, onClear: () => setAdvancedView(null) })) : menu.selectedNode ? (React.createElement(UdpNodeView, { treeId: treeId, node: menu.selectedNode,
|
|
1165
1292
|
// The record this row hangs off — the lineage v1 handed page and
|
|
1166
1293
|
// action pages as `parentNodeObj`.
|
|
1167
|
-
parentNode: menu.selectedParent, containerId: containerId, capabilities:
|
|
1294
|
+
parentNode: menu.selectedParent, containerId: containerId, capabilities: capabilities, effects: nodeEffects,
|
|
1168
1295
|
// The selected row's own root record — the filed-for tree shared
|
|
1169
1296
|
// surfaces (notes/reminders) offer for attachment.
|
|
1170
|
-
menuRootNode: menu.selectedRoot, activeTabId: activeTabId, onActiveTabChange: switchTab })) :
|
|
1297
|
+
menuRootNode: menu.selectedRoot, activeTabId: activeTabId, onActiveTabChange: switchTab })) : idlePane === 'loading' ? (React.createElement("div", { className: styles.centered }, React.createElement(UdpSpinner, null))) : idlePane === 'landing' ? (
|
|
1171
1298
|
// THE TREE'S LANDING SCREEN (v1 InquiryContainer.jsx:2849). With no
|
|
1172
1299
|
// record selected, a tree that names an explore page shows that page
|
|
1173
|
-
// here rather than a sentence telling the user to pick something.
|
|
1174
|
-
// renders straight away — the landing owns its own data and has no
|
|
1175
|
-
// reason to sit behind the tree's root page, so no spinner precedes it.
|
|
1300
|
+
// here rather than a sentence telling the user to pick something.
|
|
1176
1301
|
React.createElement(InquiryLanding, { pageId: explorePageId, tree: tree, treeId: treeId, catalogObjects: catalogObjects, onLoadedNodeClick: handleRecentlyLoadedClick, onLoadRecord: (entity, row) => {
|
|
1177
1302
|
void handleLoadRecord(entity, row);
|
|
1178
1303
|
}, onLoadRecords: (picks) => {
|
|
1179
1304
|
void handleLoadRecords(picks);
|
|
1180
|
-
} })) :
|
|
1305
|
+
} })) : (React.createElement("div", { className: styles.centered }, React.createElement(UdpText, { variant: "body1" }, treeHidden
|
|
1181
1306
|
? t('inquiry.emptyRecordPaneNoTree', {
|
|
1182
1307
|
defaultValue: 'No record to show.'
|
|
1183
1308
|
})
|
|
@@ -1188,29 +1313,28 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
1188
1313
|
// Height-bearing: the host gives this element its height (InquiryV2's
|
|
1189
1314
|
// viewport wrapper, the Tree Builder's workspace body) and `fill` gives
|
|
1190
1315
|
// each pane its own independent scroll.
|
|
1191
|
-
React.createElement("div", { className: styles.workspace }, treeHidden ? (
|
|
1316
|
+
React.createElement(ReadOnlyContext.Provider, { value: readOnly }, React.createElement("div", { className: styles.workspace, onKeyDown: handlePaneKey }, treeHidden ? (
|
|
1192
1317
|
// No tree means no sidebar shell at all — not a collapsed rail. The
|
|
1193
1318
|
// record view IS the page.
|
|
1194
|
-
recordPane) : (React.createElement(UdpSidebarLayout, { fill: true, resizable: true, sidebarWidth: "300px", minSidebarWidth: 220, maxSidebarWidth: 520, footerResizable: assistant && copilotSplit.footerResizable, footerHeight: copilotSplit.footerHeight, minFooterHeight: 200, onFooterHeightChange: copilotSplit.onFooterHeightChange, onOpenChange: (event) => setSidebarOpen(event.detail) }, React.createElement("div", { slot: "sidebar-header", className: styles.sidebarHeader }, titleTruncated ? (React.createElement(UdpTooltip, { content: treeName },
|
|
1319
|
+
recordPane) : (React.createElement(UdpSidebarLayout, { fill: true, resizable: true, sidebarWidth: "300px", minSidebarWidth: 220, maxSidebarWidth: 520, footerResizable: assistant && copilotSplit.footerResizable, footerHeight: copilotSplit.footerHeight, minFooterHeight: 200, onFooterHeightChange: copilotSplit.onFooterHeightChange, onOpenChange: (event) => setSidebarOpen(event.detail) }, React.createElement("div", { slot: "sidebar-header", className: styles.sidebarHeader }, titleTruncated ? (React.createElement(UdpTooltip, { content: treeName }, title)) : (title), React.createElement(InquiryMenuToolbar, { filterText: filterText, onFilterTextChange: applyFilterText, onFilterKeyDown: handleFilterKeyDown, filterDisabled: filterRows.length === 0, onLoad: () => openLoad(''), onRefresh: handleRefresh, refreshing: refreshing, overflowItems: overflowItems })), React.createElement("div", { slot: "sidebar" }, recordsError && (React.createElement(UdpMessageBar, { intent: "error", layout: "multiline" }, t('inquiry.tree.recordsFailed', {
|
|
1195
1320
|
defaultValue: 'Records could not be loaded. Refresh to try again.'
|
|
1196
1321
|
}))), catalogMissing && (React.createElement(UdpMessageBar, { intent: "warning" }, t('inquiry.tree.catalogMissing', {
|
|
1197
1322
|
defaultValue: 'Advanced search is limited for this tree.'
|
|
1198
1323
|
}))), treeIsEmpty && (
|
|
1199
1324
|
/* NOTHING LOADED. An explore-first tree opens with an empty tree pane
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1325
|
+
on purpose, and a blank 300px column reads as broken — so it says
|
|
1326
|
+
what it is, in one quiet caption line on the same grid as the rows
|
|
1327
|
+
that will arrive. No art and no button: + Load is directly above it
|
|
1328
|
+
in the toolbar, so a second door here would be the same command
|
|
1329
|
+
twice. NodeList is not rendered at all in this state: its own empty
|
|
1330
|
+
state is 42px of artwork and an untranslated "No Entity Opened",
|
|
1331
|
+
which is shared with v1 and the Tree Builder preview and stays
|
|
1332
|
+
theirs. */
|
|
1208
1333
|
React.createElement("div", { className: styles.emptyTree }, React.createElement(UdpText, { variant: "caption1", as: "span" }, t('inquiry.tree.nothingLoaded', {
|
|
1209
1334
|
defaultValue: 'No records loaded. Use Load to bring one into the tree.'
|
|
1210
|
-
})))), treeHasRows && (React.createElement(NodeList, { menuItemsList: menu.menuList, onSelectNode: menu.handleSelectNode, onDropNode: onDropNode, selectedNodeId: (
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
})))), filter.active &&
|
|
1335
|
+
})))), React.createElement("div", { ref: setTreeBox }, treeHasRows && (React.createElement(NodeList, { menuItemsList: menu.menuList, onSelectNode: menu.handleSelectNode, onDropNode: onDropNode, selectedNodeId: (_u = menu.selectedId) !== null && _u !== void 0 ? _u : '', sidebarExpanded: sidebarOpen, catalogObjects: catalogObjects, promotedEntities: promotedEntities !== null && promotedEntities !== void 0 ? promotedEntities : [], findLevel: findConfigLevel, setMenuList: menu.setMenuList, loadChildren: loadChildren, rootMore: rootMore, treeViewMode: treeViewMode, filter: filter, onRemoveRoot: menu.removeRoot, removeRootLabel: t('common.remove', {
|
|
1336
|
+
defaultValue: 'Remove'
|
|
1337
|
+
}) }))), treeLoading && (React.createElement(TreeSkeletonRows, { count: pendingRowCount, childCount: skeletonChildCount(rootNode), compact: treeViewMode === TreeViewModeEnums.Compact, afterRows: treeHasRows })), filter.active &&
|
|
1214
1338
|
filter.matchIds.length === 0 &&
|
|
1215
1339
|
filter.query.length >= LOAD_MIN_CHARS && (React.createElement("div", { className: styles.bridge }, React.createElement(UdpText, { variant: "caption1", as: "span" }, t('inquiry.filter.notInTree', {
|
|
1216
1340
|
defaultValue: 'Not in the tree.'
|
|
@@ -1224,7 +1348,7 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
1224
1348
|
, {
|
|
1225
1349
|
// Remounted per open (and per handed-over prefill) so the dialog always
|
|
1226
1350
|
// starts from the term it was opened with.
|
|
1227
|
-
key: `load-${
|
|
1351
|
+
key: `load-${!!loadDialog}-${(_v = loadDialog === null || loadDialog === void 0 ? void 0 : loadDialog.prefill) !== null && _v !== void 0 ? _v : ''}`, open: !!loadDialog, entities: searchableEntities, initialText: (_w = loadDialog === null || loadDialog === void 0 ? void 0 : loadDialog.prefill) !== null && _w !== void 0 ? _w : '',
|
|
1228
1352
|
// The dialog's default listing IS the menu's own first page — already
|
|
1229
1353
|
// fetched and cached here, so opening Load costs no request.
|
|
1230
1354
|
defaultRows: stampedRows, defaultTotal: records === null || records === void 0 ? void 0 : records.total, defaultEntity: rootSearchEntity, loadedKeys: loadedKeys, catalogObjects: catalogObjects, onChoose: (entity, row) => {
|
|
@@ -1232,10 +1356,9 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
|
|
|
1232
1356
|
}, onChooseMany: (picks) => {
|
|
1233
1357
|
void handleLoadRecords(picks);
|
|
1234
1358
|
}, onClose: () => {
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
} }), React.createElement(ExecuteApiDropDialog, { open: !!dropExecute, methods: (_p = dropExecute === null || dropExecute === void 0 ? void 0 : dropExecute.methods) !== null && _p !== void 0 ? _p : [], executing: dropExecuting, onExecute: (method) => {
|
|
1359
|
+
setLoadDialog(null);
|
|
1360
|
+
} }), React.createElement(ExecuteApiDropDialog, { open: !!dropExecute, methods: (_x = dropExecute === null || dropExecute === void 0 ? void 0 : dropExecute.methods) !== null && _x !== void 0 ? _x : [], executing: dropExecuting, onExecute: (method) => {
|
|
1238
1361
|
void executeDrop(method);
|
|
1239
|
-
}, onClose: () => setDropExecute(null) })));
|
|
1362
|
+
}, onClose: () => setDropExecute(null) }))));
|
|
1240
1363
|
};
|
|
1241
1364
|
//# sourceMappingURL=InquiryWorkspace.js.map
|