udp-react-enterprise-component-library 27.0.0-next.12 → 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/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/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/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/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 +10 -12
- 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/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/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/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/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/utilities/useDateStringColumnDef.d.ts +1 -1
- package/dist/utilities/i18n/locales/es-US.json +23 -5
- package/dist/utilities/i18n/locales/es-US.mjs +24 -4
- package/dist/utilities/i18n/locales/fr-CA.json +23 -5
- package/dist/utilities/i18n/locales/fr-CA.mjs +24 -4
- package/package.json +30 -18
- package/dist/actionPanels/PanelActionForm.d.ts +0 -56
- package/dist/actionPanels/PanelActionForm.d.ts.map +0 -1
- package/dist/actionPanels/PanelActionForm.js +0 -30
- package/dist/actionPanels/PanelActionForm.js.map +0 -1
- package/dist/actionPanels/PanelActionForm.mjs +0 -168
- package/dist/actionPanels/PanelActionForm.mjs.map +0 -1
- package/dist/actionPanels/PanelEditor.d.ts +0 -44
- package/dist/actionPanels/PanelEditor.d.ts.map +0 -1
- package/dist/actionPanels/PanelEditor.js +0 -78
- package/dist/actionPanels/PanelEditor.js.map +0 -1
- package/dist/actionPanels/PanelEditor.mjs +0 -345
- package/dist/actionPanels/PanelEditor.mjs.map +0 -1
- package/dist/actionPanels/panelActionFields.module.css +0 -18
- package/dist/domain/inquiryTree/ruleBindings.d.ts +0 -10
- package/dist/domain/inquiryTree/ruleBindings.d.ts.map +0 -1
- package/dist/domain/inquiryTree/ruleBindings.js +0 -20
- package/dist/domain/inquiryTree/ruleBindings.js.map +0 -1
- package/dist/domain/inquiryTree/ruleBindings.mjs +0 -21
- package/dist/domain/inquiryTree/ruleBindings.mjs.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.d.ts +0 -17
- package/dist/inquiry/v2/kernel/readOnlyModel.d.ts.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.js +0 -19
- package/dist/inquiry/v2/kernel/readOnlyModel.js.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.mjs +0 -21
- package/dist/inquiry/v2/kernel/readOnlyModel.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InquiryWorkspace.mjs","names":["React","useCallback","useEffect","useMemo","useRef","useState","useQueryClient","useTranslation","useSnackbar","NodeList","NodeActionEnums","NodeActionTriggerEnums","TreeViewModeEnums","useAuthedUser","UdpButton","UdpTooltip","UdpSidebarLayout","UdpSpinner","UdpSkeletonLoading","UdpMessageBar","UdpText","buildRecordEntryFilterElements","getSearchIdentifiers","makeDisplayTreeStructure","parseInitialRecordCount","DisplayNode","ApiMethodDefinition","executeApiMethodWithParameters","fetchApiMethodsByIds","fetchChildRows","fetchEntityMeta","fetchInquiryTree","fetchRecordByIdentifiers","fetchRecordsByIdentifierSets","invalidateInquiryRowData","recordRecentlyLoadedNodes","RecentlyLoadedWriteEntry","useApiCatalogBinding","usePrefetchLookupMethod","usePromotedMethodEntities","useRootRecords","useTreeCatalogObjects","stampRecordRows","InquiryTreeWire","LookupsMap","NestedEntityMap","RecentlyLoadedNode","findSeedLevel","hydrateRowsWithWaves","loadLazyChildren","WaveContext","useHydratedRootRows","useInstanceParamValues","UdpNodeView","UdpNodeViewProps","LoadNodeRequest","InquirySearchPanel","decideSearchValueOutcome","deriveSearchableEntities","searchHashFor","simpleEntityName","SearchableEntity","AdvancedSearchState","LOAD_DEBOUNCE_MS","LOAD_MIN_CHARS","LOAD_PAGE_SIZE","SEARCH_TIMEOUT_MS","useInquirySearch","buildIdentifierFilterElements","useInquiryMenu","LoadRecordOutcome","isReadOnlyView","viewCapabilities","capabilityKeys","dropPageNode","InquiryMenuToolbar","InquiryMenuOverflowItem","LoadRecordDialog","computeTreeFilter","flattenFilterRows","ROOT_PAGES_START","computeRootPaging","nextRootPages","rootRequestSize","deriveArrival","ExecuteApiDropDialog","InquiryLanding","useIsTruncated","SNACKBAR_TOP_CENTER","InquiryCopilotDock","useCopilotDockSplit","useInquiryCopilot","styles","InquiryDeepLink","businessObjectKey","nodeSearch","InquirySelectionChange","node","arrivalSettled","InquiryWorkspaceProps","treeId","tree","capabilities","readOnly","searchValue","deepLink","treeHidden","assistant","containerId","onSelectionChange","change","TreeSkeletonRows","t0","$","_c","count","t1","Array","from","length","_temp","sameEntityName","a","b","entityForBusinessObjectKey","entities","fullyQualifiedName","split","find","entity","entityName","nestedRootOf","treeStructure","structure","isArray","seedLevelFor","rootNode","id","historyEntryFor","label","filterElements","Record","apiMethodId","treeStructureId","String","asText","value","NodeActionRow","triggerType","actionTypeId","dragEntityName","actionValue","InquiryWorkspace","readOnlyProp","t","nodeCapabilities","properties","catalogReturnObject","user","data","catalogBinding","currentTenantId","catalogId","apiMethodInstance","apiCatalogId","catalogObjects","isError","catalogError","isSuccess","catalogLoaded","catalogMissing","catalogUnavailable","promotedEntities","promotedError","product","productId","nestedEntities","map","key","nodeEntity","paramValues","searchableEntities","rootSearchEntity","isRoot","arrivalTerm","trim","deepLinkEntity","deepLinkFilters","filters","deepLinkIsRoot","deepLinkPending","deepLinkSettled","setDeepLinkSettled","rootPages","setRootPages","initialRecordCount","explorePageId","seedRootRecords","autoSelectFirst","loadRecordsOnOpen","records","isPending","recordsPending","isFetching","recordsFetching","recordsError","instanceFilters","identifierFilters","pageSize","enabled","recordsLoading","queryClient","stampRows","levelEntityName","rows","lookupsMap","waveContext","fetchRows","onLevelError","message","console","warn","rootRows","menuRows","stampedRows","ready","undefined","rootPaging","pagesLoaded","loadedCount","total","menu","seed","loadsInFlight","setLoadsInFlight","treeHasRows","menuList","treeLoading","treeIsEmpty","loadChildren","pageNumber","context","makeId","crypto","randomUUID","sidebarOpen","setSidebarOpen","copilotSplit","treeViewMode","setTreeViewMode","Classic","dropExecute","setDropExecute","source","target","methods","dropExecuting","setDropExecuting","enqueueSnackbar","handleDropNode","sourceEntity","dropActions","nodeActions","filter","nodeAction","On_Node_Drop","pageNode","showDroppedPage","methodIds","Execute_Api","Boolean","defaultValue","variant","anchorOrigin","then","catch","onDropNode","executeDrop","method","requestBody","nodeObj","sourceNodeType","targetNodeType","name","refreshTree","reportedDropsRef","droppedParamFields","droppedFields","signature","join","current","fields","filterText","setFilterText","stepAt","setStepAt","filterRows","applyFilterText","next","nextFilter","active","expandForFilter","expandIds","restoreExpansion","matchIds","stepMatch","delta","stepIds","selectNodeById","handleFilterKeyDown","event","KeyboardEvent","preventDefault","shiftKey","entityNoun","loadOpen","setLoadOpen","loadPrefill","setLoadPrefill","advancedView","setAdvancedView","open","preset","advancedViewRef","applyAdvancedSearch","some","entityKey","previous","loadedKeys","Set","flatMap","entry","root","openLoad","prefill","lookupContextFor","recordHistory","entries","userId","loadRecordIntoMenu","fallbackRow","options","record","hydratedRow","outcome","loadRecord","alreadyLoaded","loadRecordsIntoMenu","picks","row","outcomes","historyEntries","byEntity","Map","forEach","pick","set","get","loaded","Promise","all","values","group","sets","fetched","candidates","keys","Object","toLowerCase","sources","setIndex","match","every","element","searchField","hydrated","index","push","reportLoadOutcome","handleLoadRecord","handleLoadRecords","missed","loadRecordIntoConfiguredTree","targetTreeId","request","targetTree","e","nestedRoot","handleLoadNode","targetRef","targetTrees","ref","handleRecentlyLoadedClick","nodeDetails","queryPayload","selectedNodeRef","selectedNode","restampRecords","meta","promoted","unityBaseSearchMethod","nodeEffects","loadNode","tabChoice","setTabChoice","nodeId","tabId","selectedNodeId","activeTabId","switchTab","setArrivalSettled","arrivalHandledRef","arrivalReady","arrivalSearch","text","debounceMs","minChars","timeoutMs","term","isSettled","isTimedOut","hasSingleResult","singleResult","overflowItems","iconName","onClick","collapseAll","expandAll","resetTree","Compact","mode","treeName","titleRef","HTMLDivElement","titleTruncated","copilot","selectedRoot","filterMatchCount","isLoadingRecords","onLoadRecord","onSelectNode","onExpandNode","expandNode","onSwitchTab","onFilterTextChange","onExpandAll","onCollapseAll","onApplyAdvancedSearch","centered","recordPane","main","elements","selectedParent","workspace","footerResizable","footerHeight","onFooterHeightChange","detail","sidebarHeader","title","emptyTree","handleSelectNode","selectedId","setMenuList","removeRoot","showLoadMore","showMore","isLoadingMore","amount","nextCount","query","bridge","bridgeAction","onOpenChange","_","skeletonRow"],"sources":["../../../src/inquiry/v2/InquiryWorkspace.tsx"],"sourcesContent":["/**\n * The v2 inquiry WORKSPACE — everything the user sees of an inquiry tree: the\n * tree pane (shared NodeList/InquiryFluentTreeMenu fed by the domain\n * display-tree pipeline) beside the UdpNodeView kernel, inside the shared\n * udp-sidebar-layout. The root-record page seeds the menu; lazy children page\n * in over the network through the wave loader. Tree and search stay KERNEL\n * CONSUMERS — the kernel just renders whichever display node is selected.\n *\n * It is a PURE component over data and callbacks: it is handed the detailed\n * tree and knows nothing about where it came from, the URL, or the app's\n * stores. InquiryV2 is the route shell that fetches by id and mirrors the\n * selection into the address bar; the Tree Builder's Preview hands it the\n * working (unsaved) tree instead. One workspace, so the two can never drift.\n *\n * FIND vs LOAD (find-and-load spec, 2026-08-18). Two jobs, two controls:\n * the box above the tree FILTERS rows that are already loaded — client-side,\n * highlight-and-dim in place, never a request — and bringing a new record in is\n * the explicit + Load dialog, the only control here that can fetch. One bridge\n * connects them: a zero-match filter offers to load the typed text. Typing never\n * touches the record pane; only activation changes the selection. Advanced\n * search keeps its own entry in the ⋯ overflow.\n */\nimport React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { useQueryClient } from '@tanstack/react-query';\nimport { useTranslation } from 'react-i18next';\nimport { useSnackbar } from 'notistack';\nimport { NodeList } from './tree/NodeList';\nimport {\n NodeActionEnums,\n NodeActionTriggerEnums,\n TreeViewModeEnums\n} from '../../enums/unitySystemEnums';\nimport { useAuthedUser } from '../../utilities/auth/useAuthedUser';\nimport { UdpButton } from '../../UI/fluent-web-components/UdpButton';\nimport { UdpTooltip } from '../../UI/fluent-web-components/UdpTooltip';\nimport { UdpSidebarLayout } from '../../UI/fluent-web-components/UdpSidebarLayout';\nimport { UdpSpinner } from '../../UI/fluent-web-components/UdpSpinner';\nimport { UdpSkeletonLoading } from '../../UI/fluent-web-components/UdpSkeletonLoading';\nimport { UdpMessageBar } from '../../UI/fluent-web-components/UdpMessageBar';\nimport { UdpText } from '../../UI/fluent-web-components/UdpText';\nimport {\n buildRecordEntryFilterElements,\n getSearchIdentifiers,\n makeDisplayTreeStructure,\n parseInitialRecordCount\n} from '../../domain/inquiryTree';\nimport type { DisplayNode } from '../../domain/inquiryTree/displayTree';\nimport {\n ApiMethodDefinition,\n executeApiMethodWithParameters,\n fetchApiMethodsByIds,\n fetchChildRows,\n fetchEntityMeta,\n fetchInquiryTree,\n fetchRecordByIdentifiers,\n fetchRecordsByIdentifierSets,\n invalidateInquiryRowData,\n recordRecentlyLoadedNodes,\n type RecentlyLoadedWriteEntry,\n useApiCatalogBinding,\n usePrefetchLookupMethod,\n usePromotedMethodEntities,\n useRootRecords,\n useTreeCatalogObjects,\n stampRecordRows\n} from './api/queries';\nimport type {\n InquiryTreeWire,\n LookupsMap,\n NestedEntityMap,\n RecentlyLoadedNode\n} from './api/queries';\nimport {\n findSeedLevel,\n hydrateRowsWithWaves,\n loadLazyChildren\n} from './tree/waveLoader';\nimport type { WaveContext } from './tree/waveLoader';\nimport { useHydratedRootRows } from './tree/useHydratedRootRows';\nimport { useInstanceParamValues } from './api/useInstanceParamValues';\nimport { UdpNodeView } from './kernel/UdpNodeView';\nimport type { UdpNodeViewProps } from './kernel/UdpNodeView';\nimport type { LoadNodeRequest } from './kernel/RecordContext';\nimport {\n InquirySearchPanel,\n decideSearchValueOutcome,\n deriveSearchableEntities,\n searchHashFor,\n simpleEntityName,\n SearchableEntity\n} from './search';\nimport type { AdvancedSearchState } from './search';\nimport {\n LOAD_DEBOUNCE_MS,\n LOAD_MIN_CHARS,\n LOAD_PAGE_SIZE,\n SEARCH_TIMEOUT_MS,\n useInquirySearch\n} from './search/useInquirySearch';\nimport {\n buildIdentifierFilterElements,\n useInquiryMenu\n} from './tree/useInquiryMenu';\nimport type { LoadRecordOutcome } from './tree/useInquiryMenu';\nimport { isReadOnlyView, viewCapabilities } from './kernel/readOnlyModel';\nimport { capabilityKeys } from './kernel/capabilities';\nimport { dropPageNode } from './tree/droppedPageModel';\nimport { InquiryMenuToolbar } from './tree/InquiryMenuToolbar';\nimport type { InquiryMenuOverflowItem } from './tree/InquiryMenuToolbar';\nimport { LoadRecordDialog } from './tree/LoadRecordDialog';\nimport { computeTreeFilter, flattenFilterRows } from './tree/treeFilterModel';\nimport {\n ROOT_PAGES_START,\n computeRootPaging,\n nextRootPages,\n rootRequestSize\n} from './tree/rootPagingModel';\nimport { deriveArrival } from './tree/arrivalModel';\nimport { ExecuteApiDropDialog } from './tree/ExecuteApiDropDialog';\nimport { InquiryLanding } from './landing/InquiryLanding';\nimport { useIsTruncated } from './ui/useIsTruncated';\nimport { SNACKBAR_TOP_CENTER } from './ui/snackbar';\nimport {\n InquiryCopilotDock,\n useCopilotDockSplit\n} from './ai/InquiryCopilotDock';\nimport { useInquiryCopilot } from './ai/InquiryV2Copilot';\nimport styles from './InquiryV2.module.css';\n\n/** The record a mount arrives on — v1's `?node` / `?nodeSearch` contract. */\nexport interface InquiryDeepLink {\n businessObjectKey: string;\n /** Comma-joined identifier values, as the URL carries them. */\n nodeSearch: string;\n}\n\n/** What the workspace reports whenever the selected record changes. */\nexport interface InquirySelectionChange {\n node: DisplayNode | null;\n /** True once a `searchValue` arrival has been honored (or there was none). */\n arrivalSettled: boolean;\n}\n\nexport interface InquiryWorkspaceProps {\n /**\n * The tree's id — cache keys, the recently-loaded history and the kernel are\n * all keyed by it. The Tree Builder passes the saved tree's id while\n * previewing edits to it.\n */\n treeId: string;\n /** The DETAILED tree wire — what `inquirytree/{id}/detailed` returns. */\n tree: InquiryTreeWire;\n /** Forwarded to UdpNodeView (capability allowlist; default: all). */\n capabilities?: UdpNodeViewProps['capabilities'];\n /**\n * A view that acts on nothing live (the Tree Builder's preview): rows neither\n * drag nor accept drops, loading a record writes no recently-loaded history,\n * and the record view mounts without its actions. An allowlist without\n * `'actions'` means the same (kernel/readOnlyModel).\n */\n readOnly?: boolean;\n /** v1's `searchValue`: arrive with the quick search already run on this term. */\n searchValue?: string;\n /** Arrive on one exact record; outranks `searchValue`. */\n deepLink?: InquiryDeepLink | null;\n /** v1's `inquiryMenuHidden`: the record view alone, no tree beside it. */\n treeHidden?: boolean;\n /**\n * Mount the copilot dock and register the viewer's tools. Off where the host\n * already provides an assistant surface (the Tree Builder's own copilot).\n */\n assistant?: boolean;\n /**\n * v1's `containerId`: the token an embedder assigns so several inquiries on\n * one screen are distinguishable from inside a page widget, which receives it\n * as `inquiryContainerId`. See InquiryEnvironment.containerId — it names the\n * mount and namespaces nothing in the library.\n */\n containerId?: string | number;\n /**\n * The selected record, reported once any deep link has been honored — the\n * route shell mirrors it into the URL, the Tree Builder follows it in the\n * inspector.\n */\n onSelectionChange?: (change: InquirySelectionChange) => void;\n}\n\n/**\n * Rows still on their way, drawn on the tree row's own geometry (chevron box,\n * icon chip, label) so the pane never goes blank between asking for a record\n * and seeing it — and the rows that land replace the placeholders in place.\n */\nconst TreeSkeletonRows = ({ count }: { count: number }) => (\n <div>\n {Array.from({ length: count }, (_, index) => (\n <div key={index} className={styles.skeletonRow}>\n <UdpSkeletonLoading width='24px' height='24px' borderRadius='6px' />\n <UdpSkeletonLoading width='60%' height='16px' />\n </div>\n ))}\n </div>\n);\n\n/** v1's entity-name rule: the fully qualified name, or the same simple name. */\nconst sameEntityName = (a: string, b: string): boolean =>\n a === b || simpleEntityName(a) === simpleEntityName(b);\n\n/**\n * Which searchable level a `businessObjectKey` — or a bare entity name — belongs\n * to. The key's prefix is the record's fully qualified class name; an exact\n * match wins over a simple-name one (v1's lookup rule). One reader for every\n * door that arrives with a key or name: the `?node` deep link, a widget's\n * loadInquiryNode and the recently-loaded history.\n */\nconst entityForBusinessObjectKey = (\n entities: SearchableEntity[],\n businessObjectKey: string\n): SearchableEntity | null => {\n const fullyQualifiedName = businessObjectKey.split('|')[0];\n return (\n entities.find((entity) => entity.entityName === fullyQualifiedName) ??\n entities.find((entity) =>\n sameEntityName(entity.entityName, fullyQualifiedName)\n ) ??\n null\n );\n};\n\n/**\n * A tree's nested root — the flat wire structure composed into the display\n * tree. v2's rule: a level opens because an EAGER level renders under it.\n */\nconst nestedRootOf = (\n tree: InquiryTreeWire | null | undefined\n): DisplayNode | null => {\n if (!tree?.treeStructure?.length) return null;\n const structure = makeDisplayTreeStructure(\n tree.treeStructure as unknown as DisplayNode[],\n 'id',\n 'parentId',\n 'parentGroupId',\n 'config'\n );\n return (Array.isArray(structure) ? structure[0] : structure) ?? null;\n};\n\n/**\n * The entity's config level. Its config comes off the FLAT wire node; its\n * levels only hang off the nested seed, which is what the wave planner walks.\n */\nconst seedLevelFor = (\n rootNode: DisplayNode | null,\n entity: SearchableEntity\n): DisplayNode =>\n findSeedLevel(rootNode, entity.rootNode.id) ??\n (entity.rootNode as unknown as DisplayNode);\n\n/** One recently-loaded history entry for a record loaded at `entity`'s level. */\nconst historyEntryFor = (\n entity: SearchableEntity,\n label: string,\n filterElements: Array<Record<string, unknown>>\n): RecentlyLoadedWriteEntry => ({\n apiMethodId: entity.apiMethodId,\n entityName: entity.entityName,\n treeStructureId: String(entity.rootNode?.id ?? ''),\n label,\n filterElements\n});\n\n/** An identifier value as comparable text; anything non-scalar is blank. */\nconst asText = (value: unknown): string =>\n typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean'\n ? String(value)\n : '';\n\n/** A node-action row as it rides `properties.nodeActions` on the wire. */\ninterface NodeActionRow {\n triggerType?: NodeActionTriggerEnums;\n actionTypeId?: NodeActionEnums;\n dragEntityName?: string;\n actionValue?: string;\n}\n\nexport const InquiryWorkspace = ({\n treeId,\n tree,\n capabilities,\n readOnly: readOnlyProp,\n searchValue,\n deepLink = null,\n treeHidden = false,\n assistant = true,\n containerId = '',\n onSelectionChange\n}: InquiryWorkspaceProps) => {\n const { t } = useTranslation();\n const readOnly = isReadOnlyView(readOnlyProp, capabilities);\n const nodeCapabilities = useMemo(\n () => viewCapabilities(readOnly, capabilities, capabilityKeys),\n [readOnly, capabilities]\n );\n\n const rootNode = useMemo(() => nestedRootOf(tree), [tree]);\n\n const entityName =\n typeof rootNode?.properties?.catalogReturnObject === 'string'\n ? rootNode.properties.catalogReturnObject\n : '';\n\n // Catalog metadata for the display-tree/lazy-load composers, resolved\n // through v2's own cached queries (tenant → catalog binding → catalog\n // objects + promoted methods) — no dependency on the Shell's ActionProvider\n // store hydration.\n const user = useAuthedUser();\n const { data: catalogBinding } = useApiCatalogBinding(user?.currentTenantId);\n // The tree's QUERY names the catalog its entities live in. The tenant's\n // product binding is the fallback for a tree that carries none — it is the\n // wrong catalog for a tree from another product (every entity comes back\n // absent: no identifiers, no promotions, no field picker), which is exactly\n // what the Tree Builder previews and what a cross-product link opens.\n const catalogId =\n tree.apiMethodInstance?.apiCatalogId ?? catalogBinding?.apiCatalogId;\n const {\n data: catalogObjects,\n isError: catalogError,\n isSuccess: catalogLoaded\n } = useTreeCatalogObjects(catalogId, treeId);\n // The catalog answered with NO entities for this tree (a tree whose product\n // is not in this tenant's catalog). Every identifier-based path — loading a\n // record, the deep link, the advanced field picker — has nothing to work\n // from, so the pane says so once, and the waits that gate on the catalog\n // treat it as settled rather than pending forever.\n const catalogMissing = catalogLoaded && !catalogObjects?.length;\n const catalogUnavailable = catalogError || catalogMissing;\n const { data: promotedEntities, isError: promotedError } =\n usePromotedMethodEntities(catalogId, tree.product?.productId);\n // Warm the lookup get-data method with this wave so the first stamping pass\n // doesn't have to discover it serially.\n usePrefetchLookupMethod(catalogId);\n\n // Every non-root level keyed by the association it rides on the parent row\n // (`resourceAssignment` → `Assignment`): the wave loader grafts each level's\n // fetched rows onto their parent under that key, and a response's lookupsMap\n // describes only the entity it searched — so rows are stamped from their own\n // level's entity config.\n const nestedEntities = useMemo<NestedEntityMap>(() => {\n const map: NestedEntityMap = {};\n for (const node of tree?.treeStructure ?? []) {\n const properties = (node as DisplayNode).properties ?? {};\n const key = properties['catalogObjectKey'];\n const nodeEntity = properties['catalogReturnObject'];\n if (typeof key === 'string' && typeof nodeEntity === 'string') {\n map[key] = nodeEntity;\n }\n }\n return map;\n }, [tree]);\n\n // The searchable set, with each entity's Data Builder query filters already\n // parsed and its `params.*` placeholders resolved. Derived BEFORE the root\n // page because the root request composes the root entity's saved filters in —\n // ad-hoc execution ignores the instance body, so this is the only way a\n // query's own filters reach the server.\n const paramValues = useInstanceParamValues();\n const searchableEntities = useMemo<SearchableEntity[]>(\n () => (tree ? deriveSearchableEntities(tree, paramValues) : []),\n [tree, paramValues]\n );\n /** The tree's own root entity — what the Load dialog lists by default. */\n const rootSearchEntity = useMemo(\n () => searchableEntities.find((entity) => entity.isRoot) ?? null,\n [searchableEntities]\n );\n\n /* ------------------------------------------------------------ arrival */\n /**\n * The term this mount arrived with. The prop wins over the URL (v1's rule),\n * and a `?node` deep link outranks both — it names one exact record, so there\n * is nothing left to search for.\n */\n const arrivalTerm = deepLink ? '' : (searchValue?.trim() ?? '');\n\n /** The searchable level the deep-linked key belongs to (v1's lookup rule). */\n const deepLinkEntity = useMemo(\n () =>\n deepLink\n ? entityForBusinessObjectKey(\n searchableEntities,\n deepLink.businessObjectKey\n )\n : null,\n [deepLink, searchableEntities]\n );\n\n const deepLinkFilters = useMemo(() => {\n if (!deepLink || !deepLinkEntity || !catalogObjects?.length) return null;\n const filters = buildRecordEntryFilterElements(\n getSearchIdentifiers(catalogObjects, deepLinkEntity.entityName),\n deepLink.nodeSearch\n );\n return filters.length ? filters : null;\n }, [deepLink, deepLinkEntity, catalogObjects]);\n\n /** A deep link to the ROOT level replaces the root page with that record. */\n const deepLinkIsRoot = !!deepLinkEntity?.isRoot;\n /** A resolvable deep link holds the first fetch until its filters are ready. */\n const deepLinkPending = !!deepLink && !!deepLinkEntity && !deepLinkFilters;\n /** True once the link has been honored — or reported as unusable. */\n const [deepLinkSettled, setDeepLinkSettled] = useState(!deepLink);\n\n /* ------------------------------------------------------------ root paging */\n /**\n * How many pages of root records the user has asked for. One request, one\n * window: growing this re-requests the root query at N× the configured page\n * size rather than fetching page N on its own, so the rows always arrive in\n * the query's own order and a refresh reloads exactly what was open\n * (tree/rootPagingModel explains the trade in full).\n */\n const [rootPages, setRootPages] = useState(ROOT_PAGES_START);\n const initialRecordCount = parseInitialRecordCount(rootNode);\n\n /* --------------------------------------------------------------- arrival */\n /**\n * The tree's own landing screen. Configuring one is the tree author saying\n * this tree OPENS on a page — so the pane renders the landing, the menu stops\n * auto-selecting row one (otherwise the landing could never be reached), and\n * the root-record page is not fetched at all. `arrivalModel` holds the whole\n * matrix, including the root level's `loadRecordsOnOpen` override and the one\n * URL that still fetches on arrival.\n */\n const explorePageId =\n typeof tree?.explorePageId === 'string' ? tree.explorePageId : '';\n\n const { seedRootRecords, autoSelectFirst } = deriveArrival({\n explorePageId,\n loadRecordsOnOpen: rootNode?.properties?.loadRecordsOnOpen,\n deepLinkIsRoot\n });\n\n const {\n data: records,\n isPending: recordsPending,\n isFetching: recordsFetching,\n isError: recordsError\n } = useRootRecords({\n treeId,\n apiMethodId: tree?.apiMethodInstance?.apiMethodId,\n entityName,\n instanceFilters: rootSearchEntity?.instanceFilters,\n identifierFilters: deepLinkIsRoot ? deepLinkFilters : null,\n pageSize: rootRequestSize(initialRecordCount, rootPages),\n // An explore-first tree never asks for a root page at all — the landing is\n // the arrival and the tree fills through + Load. Beyond that: a pending\n // deep link must resolve its identifier filters (which need the catalog)\n // before anything is fetched — otherwise the whole root page is requested\n // and then thrown away. Once the link is settled (honored, or reported as\n // unusable) the ordinary root page loads.\n enabled: seedRootRecords && (!deepLinkPending || deepLinkSettled)\n });\n\n /**\n * A disabled query is \"pending\" forever, so every loading affordance reads the\n * SEED decision too — an unseeded tree is empty, not loading, and must never\n * show a spinner nothing will ever end.\n */\n const recordsLoading = seedRootRecords && recordsPending;\n\n const queryClient = useQueryClient();\n\n /* ------------------------------------------------------------- wave load */\n const stampRows = useCallback(\n (\n levelEntityName: string | undefined,\n rows: Array<Record<string, unknown>>,\n lookupsMap?: LookupsMap | null\n ) =>\n stampRecordRows(\n { queryClient, catalogId, catalogObjects, nestedEntities },\n levelEntityName,\n rows,\n lookupsMap\n ),\n [queryClient, catalogId, catalogObjects, nestedEntities]\n );\n\n const waveContext = useMemo<WaveContext>(\n () => ({\n fetchRows: (apiMethodId, data) =>\n fetchChildRows(queryClient, apiMethodId, data),\n catalogObjects,\n promotedEntities,\n stampRows,\n onLevelError: (message) => console.warn('[inquiry-v2]', message)\n }),\n [queryClient, catalogObjects, promotedEntities, stampRows]\n );\n\n const rootRows = records?.rows;\n const { menuRows, stampedRows } = useHydratedRootRows({\n rootNode,\n records,\n entityName,\n waveContext,\n ready:\n (catalogObjects !== undefined || catalogError) &&\n (promotedEntities !== undefined || promotedError)\n });\n\n /** How much of the root record set is on screen, and what is left. */\n const rootPaging = computeRootPaging({\n pageSize: initialRecordCount,\n pagesLoaded: rootPages,\n loadedCount: rootRows?.length ?? 0,\n total: records?.total ?? 0,\n isFetching: recordsFetching\n });\n\n const menu = useInquiryMenu({\n seed: rootNode,\n rows: menuRows,\n catalogObjects,\n promotedEntities,\n autoSelectFirst\n });\n\n /**\n * The tree pane holds nothing and has nothing coming. Rows-in-hand counts as\n * \"coming\": the menu is composed in an effect, one render after the page\n * lands, and the empty state must not flash over a tree that is about to fill.\n */\n /** Records asked for by hand (Load, finder, history, deep link) not yet in the menu. */\n const [loadsInFlight, setLoadsInFlight] = useState(0);\n const treeHasRows = menu.menuList.length > 0 || !!rootRows?.length;\n const treeLoading = recordsLoading || loadsInFlight > 0;\n const treeIsEmpty = !treeHasRows && !treeLoading;\n\n /** The menu's lazy-expand loader: one level, one batched request, cached. */\n const loadChildren = useCallback(\n ({ node, pageNumber }: { node: DisplayNode; pageNumber: number }) =>\n loadLazyChildren({\n node,\n seed: rootNode,\n pageNumber,\n context: waveContext,\n makeId: () => crypto.randomUUID()\n }),\n [rootNode, waveContext]\n );\n\n const [sidebarOpen, setSidebarOpen] = useState(true);\n // The tree/copilot split inside the pane — owned by the dock, set on the\n // layout, which is where the drag seam lives.\n const copilotSplit = useCopilotDockSplit();\n const [treeViewMode, setTreeViewMode] = useState(TreeViewModeEnums.Classic);\n\n // On_Node_Drop actions: Execute API (pick a method, run it on the pair) and\n // Load_Inquiry_Page (a client-side page root — tree/droppedPageModel). A\n // target configuring both runs both, as v1 did.\n const [dropExecute, setDropExecute] = useState<{\n source: DisplayNode;\n target: DisplayNode;\n methods: ApiMethodDefinition[];\n } | null>(null);\n const [dropExecuting, setDropExecuting] = useState(false);\n const { enqueueSnackbar } = useSnackbar();\n\n const handleDropNode = (source: DisplayNode, target: DisplayNode) => {\n const sourceEntity = source?.properties?.catalogReturnObject;\n const dropActions = (\n (target?.properties?.nodeActions as NodeActionRow[] | undefined) ?? []\n ).filter(\n (nodeAction) =>\n nodeAction?.triggerType === NodeActionTriggerEnums.On_Node_Drop &&\n nodeAction?.dragEntityName === sourceEntity\n );\n const pageNode = dropPageNode(target, source, () => crypto.randomUUID());\n if (pageNode) menu.showDroppedPage(pageNode);\n const methodIds = dropActions\n .filter(\n (nodeAction) => nodeAction.actionTypeId === NodeActionEnums.Execute_Api\n )\n .map((nodeAction) => String(nodeAction.actionValue ?? ''))\n .filter(Boolean);\n if (pageNode && !methodIds.length) return;\n if (!methodIds.length) {\n // A drop onto a row that configures NOTHING for this entity is just a\n // miss — the tree says no by doing nothing. A drop onto a row that does\n // configure an action v2 can't run yet is a different story, and the user\n // is owed the reason rather than a dead gesture.\n if (dropActions.length) {\n enqueueSnackbar(t('inquiry.drop.unsupportedAction', {\n defaultValue:\n 'That drop action is not supported by this viewer yet.'\n }), {\n variant: 'warning',\n anchorOrigin: SNACKBAR_TOP_CENTER\n });\n }\n return;\n }\n fetchApiMethodsByIds(catalogId ?? '', methodIds)\n .then((methods) => setDropExecute({ source, target, methods }))\n .catch(() =>\n enqueueSnackbar('Unable to load the API methods for this drop action.', {\n variant: 'error',\n anchorOrigin: SNACKBAR_TOP_CENTER\n })\n );\n };\n\n // No drop handler in a read-only view: rows then neither drag nor accept\n // drops, so a preview can never run a drop action.\n const onDropNode = readOnly ? undefined : handleDropNode;\n\n const executeDrop = async (method: ApiMethodDefinition) => {\n if (!dropExecute || !method.apiMethodId) return;\n setDropExecuting(true);\n try {\n // v1 wire contract: the {source, target} record pair plus their entity\n // names as the request body; menu indexes never leave the client.\n await executeApiMethodWithParameters(String(method.apiMethodId), {\n requestBody: {\n source: dropExecute.source.nodeObj,\n target: dropExecute.target.nodeObj,\n sourceNodeType: dropExecute.source.properties?.catalogReturnObject,\n targetNodeType: dropExecute.target.properties?.catalogReturnObject\n }\n });\n enqueueSnackbar(`${method.name ?? 'API'} executed successfully.`, {\n variant: 'success',\n anchorOrigin: SNACKBAR_TOP_CENTER\n });\n // The refresh mechanism: re-pull every row family the drop may have\n // changed; the menu rebuild preserves the workspace around it.\n refreshTree();\n } catch {\n enqueueSnackbar(`Unable to execute ${method.name ?? 'the API'}.`, {\n variant: 'error',\n anchorOrigin: SNACKBAR_TOP_CENTER\n });\n } finally {\n setDropExecuting(false);\n setDropExecute(null);\n }\n };\n\n /**\n * A saved query filter whose `params.*` placeholder could not be resolved is\n * dropped rather than sent literally — which silently WIDENS the tree. Say so\n * once per tree, beside everything else the pane reports.\n */\n const reportedDropsRef = useRef('');\n const droppedParamFields = rootSearchEntity?.instanceFilters.droppedFields;\n /* eslint-disable react-you-might-not-need-an-effect/no-pass-data-to-parent --\n a one-shot report to the platform snackbar, not data lifted to a parent. */\n useEffect(() => {\n if (!droppedParamFields?.length) return;\n const signature = `${treeId}:${droppedParamFields.join(',')}`;\n if (reportedDropsRef.current === signature) return;\n reportedDropsRef.current = signature;\n console.warn(\n '[inquiry-v2] query filters dropped — unresolved params placeholder:',\n droppedParamFields.join(', ')\n );\n enqueueSnackbar(t('inquiry.query.droppedParamFilters', {\n defaultValue:\n 'Showing more records than this tree’s query defines — its saved filters on {{fields}} were skipped because their parameter values are unavailable.',\n fields: droppedParamFields.join(', ')\n }), {\n variant: 'warning',\n anchorOrigin: SNACKBAR_TOP_CENTER\n });\n }, [treeId, droppedParamFields, t, enqueueSnackbar]);\n /* eslint-enable react-you-might-not-need-an-effect/no-pass-data-to-parent */\n\n /* ------------------------------------------------------------------ filter */\n // Filtering is a presentation pass over rows that are already loaded: it\n // never fetches, never hides or moves a row, and never touches the record\n // pane. `stepAt` is where Enter / F3 currently sits in the match list.\n const [filterText, setFilterText] = useState('');\n const [stepAt, setStepAt] = useState(-1);\n\n const filterRows = useMemo(\n () => flattenFilterRows(menu.menuList),\n [menu.menuList]\n );\n const filter = useMemo(\n () => computeTreeFilter(filterRows, filterText),\n [filterRows, filterText]\n );\n\n /**\n * Every keystroke: the text, the stepping cursor and the tree's expansion move\n * together. Matches inside collapsed branches open while the filter is live\n * and the tree goes back to how the user left it on clear.\n *\n * Returns how many rows the new text matched — the typing user reads that off\n * the count in the filter box, but the copilot's filter tool has none to read, and\n * `filter` here is a render behind the call.\n */\n const applyFilterText = (next: string): number => {\n setFilterText(next);\n setStepAt(-1);\n const nextFilter = computeTreeFilter(filterRows, next);\n if (nextFilter.active) menu.expandForFilter(nextFilter.expandIds);\n else menu.restoreExpansion();\n return nextFilter.matchIds.length;\n };\n\n const stepMatch = (delta: number) => {\n const { stepIds } = filter;\n if (!stepIds.length) return;\n const next = (stepAt + delta + stepIds.length) % stepIds.length;\n setStepAt(next);\n menu.selectNodeById(stepIds[next]);\n };\n\n const handleFilterKeyDown = (event: React.KeyboardEvent) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n applyFilterText('');\n return;\n }\n if (event.key === 'Enter' || event.key === 'F3') {\n event.preventDefault();\n stepMatch(event.shiftKey ? -1 : 1);\n }\n };\n\n /* -------------------------------------------------------------------- load */\n /** The singular catalog noun for prose (\"Resource\"), never a class path. */\n const entityNoun = searchableEntities[0]?.entityNoun ?? '';\n const [loadOpen, setLoadOpen] = useState(false);\n const [loadPrefill, setLoadPrefill] = useState('');\n\n /* --------------------------------------------------------- advanced search */\n /**\n * The advanced-search VIEW: whether the search panel is up, and the filter it\n * opens with. The ⋯ menu's entry opens it empty (the drawer is where the user\n * builds the filter); the copilot's Apply card opens it with a filter already\n * built, which is the same state the drawer's own submit produces. One piece\n * of state, so both doors lead to the same screen — and so undo is a restore.\n */\n const [advancedView, setAdvancedView] = useState<{\n open: boolean;\n preset: AdvancedSearchState | null;\n }>({ open: false, preset: null });\n const advancedViewRef = useRef(advancedView);\n useEffect(() => {\n advancedViewRef.current = advancedView;\n });\n\n const applyAdvancedSearch = useCallback(\n (preset: AdvancedSearchState) => {\n if (!searchableEntities.some((entity) => entity.key === preset.entityKey))\n return null;\n const previous = advancedViewRef.current;\n setAdvancedView({ open: true, preset });\n return () => setAdvancedView(previous);\n },\n [searchableEntities]\n );\n\n /** businessObjectKeys already loaded as roots — the popover's dedup label. */\n const loadedKeys = useMemo(\n () =>\n new Set(\n menu.menuList.flatMap((entry) =>\n entry.map((root) => root.nodeObj?.businessObjectKey)\n )\n ),\n [menu.menuList]\n );\n\n const openLoad = (prefill: string) => {\n setLoadPrefill(prefill);\n setLoadOpen(true);\n };\n\n /** The lookup-stamping context a record fetch at `levelEntityName` carries. */\n const lookupContextFor = useCallback(\n (levelEntityName: string) => ({\n queryClient,\n catalogId,\n catalogObjects,\n nestedEntities,\n entityName: levelEntityName\n }),\n [queryClient, catalogId, catalogObjects, nestedEntities]\n );\n\n /**\n * RECENTLY LOADED (v1 parity) — the tree's server-held history. A read-only\n * view writes none, so its writer is a no-op rather than a check at each load.\n */\n const recordHistory = useCallback(\n (entries: RecentlyLoadedWriteEntry[]) => {\n if (readOnly) return;\n void recordRecentlyLoadedNodes(queryClient, {\n treeId,\n userId: user?.id,\n entries\n });\n },\n [readOnly, queryClient, treeId, user?.id]\n );\n\n /**\n * Bring one record in: refetch it by identifier (LEAN — the search result may\n * be a projection), fill its eager levels with the same waves the root page\n * gets, then graft it into the menu. Every hop degrades to the row it already\n * has rather than failing the load.\n */\n const loadRecordIntoMenu = useCallback(\n async (\n entity: SearchableEntity,\n filterElements: Array<Record<string, unknown>>,\n fallbackRow?: Record<string, unknown>,\n options?: {\n /**\n * Off for a load into a CONFIGURED tree (load-to-tree): history entries\n * replay through this tree's searchable set, which cannot resolve a\n * foreign entity — recording one would write a dead history row.\n */\n recordHistory?: boolean;\n }\n ) => {\n setLoadsInFlight((count) => count + 1);\n try {\n let record: Record<string, unknown> | null = null;\n try {\n record = await fetchRecordByIdentifiers(\n queryClient,\n entity.apiMethodId,\n filterElements,\n lookupContextFor(entity.entityName)\n );\n } catch {\n record = null;\n }\n const source = record ?? fallbackRow;\n if (!source) return null;\n const [hydratedRow] = await hydrateRowsWithWaves(\n seedLevelFor(rootNode, entity),\n [source],\n waveContext\n );\n const outcome = menu.loadRecord(\n entity.rootNode as unknown as DisplayNode,\n hydratedRow ?? source\n );\n // Every door that brings a record in by hand — the Load dialog, a deep\n // link, `?searchValue`, a widget's loadInquiryNode, a click on the\n // history itself — funnels through here, so the history is written from\n // ONE place. A record that was already on screen was not loaded and is\n // not recorded.\n if (\n outcome &&\n !outcome.alreadyLoaded &&\n options?.recordHistory !== false\n ) {\n recordHistory([\n historyEntryFor(entity, outcome.label, filterElements)\n ]);\n }\n return outcome;\n } finally {\n setLoadsInFlight((count) => count - 1);\n }\n },\n [queryClient, lookupContextFor, rootNode, waveContext, menu, recordHistory]\n );\n\n /**\n * Bring MANY records in — the finder's \"Load selected\". One identifier\n * search per entity (the picks' identifier sets OR'd), ONE wave pass over\n * all the fetched rows, then each grafted into the menu locally and the\n * whole load written to the history in ONE post. The per-record path made\n * 50+ requests for a 20-record bulk load; this makes a handful.\n */\n const loadRecordsIntoMenu = useCallback(\n async (\n picks: Array<{\n entity: SearchableEntity;\n row: Record<string, unknown>;\n }>\n ) => {\n const outcomes: LoadRecordOutcome[] = [];\n const historyEntries: RecentlyLoadedWriteEntry[] = [];\n setLoadsInFlight((count) => count + picks.length);\n try {\n // One batch per entity — identifier fields only make sense within one.\n const byEntity = new Map<string, typeof picks>();\n picks.forEach((pick) => {\n const key = pick.entity.key;\n byEntity.set(key, [...(byEntity.get(key) ?? []), pick]);\n });\n\n // Every entity's fetch and waves run at once; the menu is still\n // grafted in pick order below.\n const loaded = await Promise.all(\n [...byEntity.values()].map(async (group) => {\n const entity = group[0].entity;\n const sets = group.map((pick) =>\n buildIdentifierFilterElements(\n catalogObjects,\n entity.entityName,\n pick.row\n )\n );\n let fetched: Array<Record<string, unknown>> = [];\n try {\n fetched = await fetchRecordsByIdentifierSets(\n queryClient,\n entity.apiMethodId,\n sets,\n lookupContextFor(entity.entityName)\n );\n } catch {\n fetched = [];\n }\n // Pair each pick to its fetched row by identifier values; a miss\n // degrades to the row the finder already has (same fallback the\n // single-record path makes).\n const candidates = fetched.map((row) => ({\n row,\n keys: new Map(\n Object.keys(row).map((key) => [key.toLowerCase(), key])\n )\n }));\n const sources = group.map((pick, setIndex) => {\n const set = sets[setIndex];\n if (!set.length) return pick.row;\n const match = candidates.find(({ row, keys }) =>\n set.every((element) => {\n const key = keys.get(asText(element.searchField).toLowerCase());\n return (\n key !== undefined &&\n asText(row[key]) === asText(element.searchValue)\n );\n })\n );\n return match?.row ?? pick.row;\n });\n\n let hydrated: Array<Record<string, unknown>> = sources;\n try {\n hydrated = await hydrateRowsWithWaves(\n seedLevelFor(rootNode, entity),\n sources,\n waveContext\n );\n } catch {\n hydrated = sources;\n }\n return { entity, sets, sources, hydrated };\n })\n );\n\n loaded.forEach(({ entity, sets, sources, hydrated }) => {\n hydrated.forEach((row, index) => {\n const outcome = menu.loadRecord(\n entity.rootNode as unknown as DisplayNode,\n row ?? sources[index]\n );\n outcomes.push(outcome);\n if (outcome && !outcome.alreadyLoaded) {\n historyEntries.push(\n historyEntryFor(entity, outcome.label, sets[index])\n );\n }\n });\n });\n\n recordHistory(historyEntries);\n return outcomes;\n } finally {\n setLoadsInFlight((count) => count - picks.length);\n }\n },\n [\n queryClient,\n catalogObjects,\n lookupContextFor,\n rootNode,\n waveContext,\n menu,\n recordHistory\n ]\n );\n\n /**\n * Say what a load did — the one report every door into the tree makes (the\n * Load dialog, `?searchValue`, a widget's loadInquiryNode). The label comes\n * off the node that was BUILT, not off a guessed column: it is the exact\n * string the tree row shows.\n */\n const reportLoadOutcome = (outcome: LoadRecordOutcome) => {\n if (!outcome) {\n enqueueSnackbar(t('inquiry.load.notFoundNotice', {\n defaultValue: 'That record could not be loaded.'\n }), {\n variant: 'warning',\n anchorOrigin: SNACKBAR_TOP_CENTER\n });\n return;\n }\n const label = outcome.label || entityNoun;\n if (outcome.alreadyLoaded) {\n enqueueSnackbar(\n t('inquiry.load.alreadyLoadedNotice', {\n defaultValue: '{{label}} is already loaded.',\n label\n }),\n { variant: 'info', anchorOrigin: SNACKBAR_TOP_CENTER }\n );\n return;\n }\n enqueueSnackbar(\n t('inquiry.load.loadedNotice', { defaultValue: '{{label}} loaded.', label }),\n { variant: 'success', anchorOrigin: SNACKBAR_TOP_CENTER }\n );\n };\n\n /** Returns what was loaded, so a non-clicking caller (the copilot) can say so. */\n const handleLoadRecord = async (\n entity: SearchableEntity,\n row: Record<string, unknown>\n ) => {\n setLoadOpen(false);\n setLoadPrefill('');\n const outcome = await loadRecordIntoMenu(\n entity,\n buildIdentifierFilterElements(catalogObjects, entity.entityName, row),\n row\n );\n reportLoadOutcome(outcome);\n return outcome;\n };\n\n /** The finder's ticked rows, loaded through the batch pipeline. */\n const handleLoadRecords = async (\n picks: Array<{ entity: SearchableEntity; row: Record<string, unknown> }>\n ) => {\n if (!picks.length) return;\n if (picks.length === 1) {\n void handleLoadRecord(picks[0].entity, picks[0].row);\n return;\n }\n setLoadOpen(false);\n setLoadPrefill('');\n const outcomes = await loadRecordsIntoMenu(picks);\n const loaded = outcomes.filter(\n (outcome) => outcome && !outcome.alreadyLoaded\n ).length;\n const missed = outcomes.filter((outcome) => !outcome).length;\n if (loaded) {\n enqueueSnackbar(\n t('inquiry.load.bulkLoadedNotice', {\n defaultValue: '{{count}} records loaded.',\n count: loaded\n }),\n { variant: 'success', anchorOrigin: SNACKBAR_TOP_CENTER }\n );\n return;\n }\n enqueueSnackbar(\n missed\n ? t('inquiry.load.bulkFailedNotice', {\n defaultValue: 'Those records could not be loaded.'\n })\n : t('inquiry.load.bulkAlreadyLoadedNotice', {\n defaultValue: 'Those records are already loaded.'\n }),\n { variant: missed ? 'warning' : 'info', anchorOrigin: SNACKBAR_TOP_CENTER }\n );\n };\n\n /**\n * v1's load-to-tree (InquiryContainer handleLoadingSpecificNode): the record\n * opens as a new root SHAPED BY THE CONFIGURED TREE — the active tab's\n * `trees` entry naming the record's entity. It rides the same kernel path an\n * associated-tree search hit uses (a foreign root node handed to\n * menu.loadRecord); the target tree is fetched detailed (v1's\n * executeGetDetailedTree, cached) and nested so the new root carries its own\n * child levels. Kept out of the recently-loaded history — see the\n * loadRecordIntoMenu option.\n */\n const loadRecordIntoConfiguredTree = useCallback(\n async (targetTreeId: string, request: LoadNodeRequest) => {\n let outcome: LoadRecordOutcome = null;\n try {\n const targetTree = await fetchInquiryTree(queryClient, targetTreeId);\n const entity =\n deriveSearchableEntities(targetTree).find((e) => e.isRoot) ?? null;\n const nestedRoot = nestedRootOf(targetTree);\n const filterElements = entity\n ? buildIdentifierFilterElements(\n catalogObjects,\n entity.entityName,\n request as Record<string, unknown>\n )\n : [];\n if (entity && nestedRoot && filterElements.length) {\n outcome = await loadRecordIntoMenu(\n { ...entity, rootNode: nestedRoot },\n filterElements,\n undefined,\n { recordHistory: false }\n );\n }\n } catch {\n outcome = null;\n }\n reportLoadOutcome(outcome);\n },\n // reportLoadOutcome is re-created per render and is read, not watched.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [queryClient, catalogObjects, loadRecordIntoMenu]\n );\n\n /**\n * v1's `loadInquiryNode`, the contract page widgets call to put a record they\n * are showing INTO the tree (a linked asset's grid row, a child asset). The\n * request names the entity through its businessObjectKey and carries the\n * record's identifier values as its own fields — which is what the refetch\n * reads, exactly as v1 did (the key's own suffix is not always the same pair).\n *\n * Resolution order: a tab-configured target tree naming the record's entity\n * wins (v1's only behavior — the record opens shaped by THAT tree); otherwise\n * the record loads into the open tree when one of its searchable levels holds\n * the entity (v2's addition — v1 errored here).\n */\n const handleLoadNode = useCallback(\n (request: LoadNodeRequest) => {\n const businessObjectKey =\n typeof request?.businessObjectKey === 'string'\n ? request.businessObjectKey\n : '';\n const fullyQualifiedName = businessObjectKey.split('|')[0] ?? '';\n const targetRef = fullyQualifiedName\n ? request.targetTrees?.find(\n (ref) =>\n !!ref?.treeId &&\n !!ref.catalogReturnObject &&\n sameEntityName(ref.catalogReturnObject, fullyQualifiedName)\n )\n : undefined;\n if (targetRef?.treeId) {\n void loadRecordIntoConfiguredTree(targetRef.treeId, request);\n return;\n }\n const entity = businessObjectKey\n ? entityForBusinessObjectKey(searchableEntities, businessObjectKey)\n : null;\n const filterElements = entity\n ? buildIdentifierFilterElements(\n catalogObjects,\n entity.entityName,\n request as Record<string, unknown>\n )\n : [];\n if (!entity || !filterElements.length) {\n enqueueSnackbar(t('inquiry.load.unknownEntityNotice', {\n defaultValue:\n 'Could not load that record — this tree does not show “{{key}}”.',\n key: businessObjectKey || entityNoun\n }), {\n variant: 'warning',\n anchorOrigin: SNACKBAR_TOP_CENTER\n });\n return;\n }\n void loadRecordIntoMenu(entity, filterElements).then(reportLoadOutcome);\n },\n // reportLoadOutcome is re-created per render and is read, not watched.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [\n searchableEntities,\n catalogObjects,\n loadRecordIntoMenu,\n loadRecordIntoConfiguredTree,\n entityNoun,\n t\n ]\n );\n\n /**\n * A row of the landing screen's Recently Loaded history, put back in the\n * tree. v1 replayed the entry's stored `queryPayload` against its stored\n * method and rebuilt a display tree from the result; v2 replays the same\n * request — so entries v1 wrote still work — and then hands the row to the\n * ordinary load path, which is what makes the outcome (and its toast)\n * identical to picking the record out of + Load.\n */\n const handleRecentlyLoadedClick = useCallback(\n (entry: RecentlyLoadedNode) => {\n const entityName = entry?.nodeDetails?.catalogReturnObject ?? '';\n const entity = entityName\n ? entityForBusinessObjectKey(searchableEntities, entityName)\n : null;\n // The stored payload is the identifier search that loaded the record\n // (v1 and v2 both write `getSearchObject(identifierFilters, 1, 1)`), so\n // its filter elements go straight into the same load path every other\n // door uses — the skeleton shows on the click, and the record is fetched\n // once, not replayed and then fetched again.\n const filterElements = Array.isArray(entry?.queryPayload?.filterElements)\n ? (entry.queryPayload.filterElements as Array<Record<string, unknown>>)\n : [];\n if (!entity || !filterElements.length) {\n // A history entry this tree can no longer resolve is not an error the\n // user can act on — it is a record that cannot be loaded, worded by the\n // one reporter every load door already shares.\n reportLoadOutcome(null);\n return;\n }\n void loadRecordIntoMenu(entity, filterElements)\n .catch(() => null)\n .then(reportLoadOutcome);\n },\n // reportLoadOutcome is re-created per render and is read, not watched.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [searchableEntities, loadRecordIntoMenu]\n );\n\n /* ----------------------------------------------------------- refreshTree */\n /**\n * REFRESH TREE, both halves.\n *\n * Invalidating the row families re-reads everything a QUERY owns — the root\n * page and the badges, which is why the counts beside a mutated row update on\n * their own. It cannot reach the row itself when that row was grafted in by a\n * lazy expand: nothing observes `['inquiry','childBatch']`, so invalidating it\n * refetches nothing, and the rebuild that would recompose the branch only runs\n * when the ROOT page answers differently — which a child mutation never makes\n * it do. So the refresh also re-reads the record the pane is looking at (the\n * one an action over it just changed) and stamps it back onto every row that\n * holds it.\n *\n * The node is read through a ref so this stays stable across selections: it is\n * handed to the kernel as an effect override, and the kernel rebuilds its\n * whole effects bag whenever the override changes.\n */\n const selectedNodeRef = useRef<DisplayNode | null>(null);\n useEffect(() => {\n selectedNodeRef.current = menu.selectedNode;\n }, [menu.selectedNode]);\n\n const restampRecords = menu.restampRecords;\n const refreshTree = useCallback(() => {\n invalidateInquiryRowData(queryClient);\n void (async () => {\n const node = selectedNodeRef.current;\n const levelEntityName =\n typeof node?.properties?.catalogReturnObject === 'string'\n ? node.properties.catalogReturnObject\n : '';\n if (!node?.nodeObj || !levelEntityName || !catalogId) return;\n const filterElements = buildIdentifierFilterElements(\n catalogObjects,\n levelEntityName,\n node.nodeObj\n );\n if (!filterElements.length) return;\n try {\n // The entity's own promoted search method — the same read the lazy-load\n // composer falls back to, cached for the session.\n const meta = await fetchEntityMeta(\n queryClient,\n catalogId,\n levelEntityName\n );\n const apiMethodId = meta.promoted?.unityBaseSearchMethod?.apiMethodId;\n if (!apiMethodId) return;\n const row = await fetchRecordByIdentifiers(\n queryClient,\n apiMethodId,\n filterElements,\n lookupContextFor(levelEntityName)\n );\n if (row) restampRecords([row]);\n } catch {\n // A refresh that cannot re-read the row leaves it exactly as it was —\n // still the last answer the server gave. The toolbar's Refresh retries.\n }\n })();\n }, [\n queryClient,\n catalogId,\n catalogObjects,\n lookupContextFor,\n restampRecords\n ]);\n\n /**\n * The kernel's effect overrides. `loadNode` being a real function here (and\n * null in an embedder) is also what lights up the widget Load button.\n */\n const nodeEffects = useMemo(\n () => ({ loadNode: handleLoadNode, refreshTree }),\n [handleLoadNode, refreshTree]\n );\n\n /**\n * The record pane's open tab, remembered against the row it was chosen on so\n * a selection change falls back to the new record's first tab (the kernel's\n * own default). Lifted here, rather than left inside UdpNodeView, so the\n * copilot can read and switch it.\n */\n const [tabChoice, setTabChoice] = useState<{\n nodeId: string;\n tabId: string;\n } | null>(null);\n const selectedNodeId = menu.selectedNode ? String(menu.selectedNode.id) : null;\n const activeTabId =\n tabChoice && tabChoice.nodeId === selectedNodeId\n ? tabChoice.tabId\n : undefined;\n const switchTab = useCallback(\n (tabId: string) => {\n if (selectedNodeId) setTabChoice({ nodeId: selectedNodeId, tabId });\n },\n [selectedNodeId]\n );\n\n /* ------------------------------------------------ ?searchValue: arrival */\n /**\n * v1's `initialSearchValue`: arriving with a term meant the quick search was\n * already on screen, run. v2 keeps the contract but answers it headlessly\n * first — the common case is a term that names exactly one record, and opening\n * a dialog on a one-row result list to make the user click that row is a step\n * that carries no decision. So: one hit loads straight in; anything else hands\n * the term to + Load, which is the surface that already knows how to say \"no\n * records matched\", offer a retry, and let the user pick between several.\n *\n * Nothing here is an error path — a term that resolves to none or many is a\n * search the user finishes, not a failure the pane reports.\n */\n const [arrivalSettled, setArrivalSettled] = useState(!arrivalTerm);\n /** One-shot latch: survives StrictMode's double effect invoke, which state can't. */\n const arrivalHandledRef = useRef(false);\n /**\n * Searching before the searchable set and the catalog are in hand would settle\n * on an empty result and open the dialog against a term that was never asked.\n * Until then the term is withheld, which leaves the hook with empty text and\n * therefore no queries at all.\n */\n const arrivalReady =\n !!searchableEntities.length &&\n (!!catalogObjects?.length || catalogUnavailable);\n const arrivalSearch = useInquirySearch({\n entities: searchableEntities,\n text: !arrivalSettled && arrivalReady ? arrivalTerm : '',\n // The + Load parameters exactly: whatever this decides, the dialog it may\n // hand over to must be looking at the same result set.\n debounceMs: LOAD_DEBOUNCE_MS,\n minChars: LOAD_MIN_CHARS,\n pageSize: LOAD_PAGE_SIZE,\n timeoutMs: SEARCH_TIMEOUT_MS\n });\n\n /* eslint-disable react-you-might-not-need-an-effect/no-pass-live-state-to-parent,\n react-you-might-not-need-an-effect/no-derived-state --\n `handleLoadRecord` is this component's OWN handler over its own state; the\n effect reacts to a search result landing, which no render or event can\n stand in for. */\n useEffect(() => {\n if (arrivalHandledRef.current || arrivalSettled || !arrivalReady) return;\n const outcome = decideSearchValueOutcome({\n term: arrivalTerm,\n minChars: LOAD_MIN_CHARS,\n isPending: arrivalSearch.isPending,\n isSettled: arrivalSearch.isSettled,\n isTimedOut: arrivalSearch.isTimedOut,\n hasSingleResult: !!arrivalSearch.singleResult\n });\n if (outcome === 'wait') return;\n arrivalHandledRef.current = true;\n setArrivalSettled(true);\n if (outcome === 'load' && arrivalSearch.singleResult) {\n // The same path a chosen dialog row takes — including its loaded /\n // already-loaded notice, which is the only report this flow makes.\n void handleLoadRecord(\n arrivalSearch.singleResult.entity,\n arrivalSearch.singleResult.row\n );\n return;\n }\n openLoad(arrivalTerm);\n // handleLoadRecord/openLoad are re-created per render and are read, not\n // watched — the effect fires off the search outcome alone.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [arrivalSettled, arrivalReady, arrivalTerm, arrivalSearch]);\n /* eslint-enable react-you-might-not-need-an-effect/no-pass-live-state-to-parent,\n react-you-might-not-need-an-effect/no-derived-state */\n\n /* --------------------------------------------------- deep link: restore */\n /**\n * Open the record the URL names. A ROOT-level key is already the whole root\n * page (the query fetched that one record); any other level is loaded in on\n * top of the page, the same way the Load dialog loads one.\n *\n * Unlike v1, a link that cannot be honored SAYS SO — an unrecognised entity,\n * missing identifier values or a record that no longer exists left v1 showing\n * a silently empty tree.\n */\n useEffect(() => {\n if (!deepLink || deepLinkSettled) return;\n if (!searchableEntities.length) return;\n // Wait for the catalog the identifiers come from — unless it failed, in\n // which case the link is unusable and the pane should say so and move on.\n if (!catalogObjects?.length && !catalogUnavailable) return;\n\n if (!deepLinkEntity || !deepLinkFilters) {\n setDeepLinkSettled(true);\n enqueueSnackbar(t('inquiry.deepLink.unresolved', {\n defaultValue:\n 'Could not open the linked record — this tree does not recognize “{{key}}”.',\n key: deepLink.businessObjectKey\n }), {\n variant: 'warning',\n anchorOrigin: SNACKBAR_TOP_CENTER\n });\n return;\n }\n\n if (deepLinkIsRoot) {\n if (recordsPending) return;\n setDeepLinkSettled(true);\n if (!records?.rows?.length) {\n enqueueSnackbar(t('inquiry.deepLink.notFound', {\n defaultValue: 'The linked record could not be found.'\n }), {\n variant: 'warning',\n anchorOrigin: SNACKBAR_TOP_CENTER\n });\n }\n return;\n }\n\n setDeepLinkSettled(true);\n void loadRecordIntoMenu(deepLinkEntity, deepLinkFilters).then((outcome) => {\n if (outcome) return;\n enqueueSnackbar(t('inquiry.deepLink.notFound', {\n defaultValue: 'The linked record could not be found.'\n }), {\n variant: 'warning',\n anchorOrigin: SNACKBAR_TOP_CENTER\n });\n });\n }, [\n deepLink,\n deepLinkSettled,\n deepLinkEntity,\n deepLinkFilters,\n deepLinkIsRoot,\n searchableEntities.length,\n catalogObjects,\n catalogUnavailable,\n records,\n recordsPending,\n loadRecordIntoMenu,\n enqueueSnackbar,\n t\n ]);\n\n /* ------------------------------------------------------ selection report */\n /**\n * Tell the host what is selected — the route shell mirrors it into the URL\n * (replaceState), the Tree Builder follows it in the inspector. Held until a\n * pending deep link has been honored, or the first empty render would erase\n * the very params the shell is about to consume. The selection changes from\n * clicks, filter stepping, loads and menu rebuilds alike; one effect over the\n * derived selection is the only place that sees all of them.\n */\n /* eslint-disable react-you-might-not-need-an-effect/no-event-handler,\n react-you-might-not-need-an-effect/no-pass-live-state-to-parent --\n the host is a peer surface (the address bar, the Tree Builder inspector),\n not a parent that owns this selection; it is told, not consulted. */\n useEffect(() => {\n if (!deepLinkSettled) return;\n onSelectionChange?.({\n node: menu.selectedNode ?? null,\n arrivalSettled\n });\n }, [deepLinkSettled, arrivalSettled, menu.selectedNode, onSelectionChange]);\n /* eslint-enable react-you-might-not-need-an-effect/no-event-handler,\n react-you-might-not-need-an-effect/no-pass-live-state-to-parent */\n\n const overflowItems = useMemo<InquiryMenuOverflowItem[]>(\n () => [\n {\n id: 'collapseAll',\n text: t('inquiry.controls.collapseAll', { defaultValue: 'Collapse All' }),\n iconName: 'chevron-down-up',\n onClick: menu.collapseAll\n },\n {\n id: 'expandAll',\n text: t('inquiry.controls.expandAll', { defaultValue: 'Expand All' }),\n iconName: 'chevron-up-down',\n onClick: menu.expandAll\n },\n {\n id: 'resetTree',\n text: t('inquiry.controls.resetTree', { defaultValue: 'Reset tree' }),\n iconName: 'subtract',\n onClick: menu.resetTree\n },\n {\n id: 'treeViewMode',\n text:\n treeViewMode === TreeViewModeEnums.Compact\n ? t('inquiry.controls.classicView', { defaultValue: 'Classic View' })\n : t('inquiry.controls.compactView', { defaultValue: 'Compact View' }),\n iconName:\n treeViewMode === TreeViewModeEnums.Compact\n ? 'apps-list-detail'\n : 'apps-list',\n onClick: () =>\n setTreeViewMode((mode) =>\n mode === TreeViewModeEnums.Compact\n ? TreeViewModeEnums.Classic\n : TreeViewModeEnums.Compact\n )\n },\n ...(searchableEntities.length\n ? [\n {\n id: 'advancedSearch',\n text: t('inquiry.advancedSearch.title', {\n defaultValue: 'Advanced Search'\n }),\n iconName: 'filter',\n onClick: () => setAdvancedView({ open: true, preset: null })\n }\n ]\n : [])\n ],\n [t, menu.collapseAll, menu.expandAll, menu.resetTree, treeViewMode, searchableEntities.length]\n );\n\n const treeName =\n typeof tree?.name === 'string' && tree.name ? tree.name : 'Inquiry';\n /**\n * The pane title only gets a tooltip when the name is actually cut off. The\n * pane is user-resizable, so this is measured (ResizeObserver) rather than\n * assumed — a tooltip that repeats a name the user can already read in full\n * is noise.\n */\n const titleRef = useRef<HTMLDivElement>(null);\n const titleTruncated = useIsTruncated(titleRef, treeName);\n\n // The viewer's AI function: every tool is a function this file already calls\n // for its own controls. Handed to the docked assistant below.\n const copilot = useInquiryCopilot({\n tree: tree as Record<string, unknown> | null | undefined,\n searchableEntities: searchableEntities,\n menuList: menu.menuList,\n selectedNode: menu.selectedNode,\n selectedRoot: menu.selectedRoot,\n filterText: filterText,\n filterMatchCount: filter.matchIds.length,\n isLoadingRecords: recordsLoading,\n onLoadRecord: handleLoadRecord,\n onSelectNode: menu.selectNodeById,\n onExpandNode: menu.expandNode,\n activeTabId: activeTabId ?? null,\n onSwitchTab: switchTab,\n onFilterTextChange: applyFilterText,\n onExpandAll: menu.expandAll,\n onCollapseAll: menu.collapseAll,\n onApplyAdvancedSearch: applyAdvancedSearch,\n });\n\n if (!rootNode) {\n return (\n <div className={styles.centered}>\n <UdpText variant='body1'>Failed to load the inquiry tree.</UdpText>\n </div>\n );\n }\n\n /**\n * The record side of the pane — the whole screen when the tree is hidden, so\n * it is composed once and placed by the branch below rather than duplicated.\n */\n const recordPane = (\n <div className={styles.main}>\n {advancedView.open ? (\n <InquirySearchPanel\n // A proposal applied over an open panel is a different search:\n // remount so the panel starts from the filter it was given.\n key={\n advancedView.preset\n ? searchHashFor(\n 'advanced',\n advancedView.preset.entityKey,\n advancedView.preset.elements\n )\n : 'advanced'\n }\n entities={searchableEntities}\n text=''\n // With a filter already built the results ARE the screen; without\n // one the drawer is where the user builds it.\n initialAdvanced={advancedView.preset}\n initialAdvancedOpen={!advancedView.preset}\n onLoadRecord={(entity, row) => {\n setAdvancedView({ open: false, preset: null });\n void handleLoadRecord(entity, row);\n }}\n onClear={() => setAdvancedView({ open: false, preset: null })}\n />\n ) : menu.selectedNode ? (\n <UdpNodeView\n treeId={treeId}\n node={menu.selectedNode}\n // The record this row hangs off — the lineage v1 handed page and\n // action pages as `parentNodeObj`.\n parentNode={menu.selectedParent}\n containerId={containerId}\n capabilities={nodeCapabilities}\n effects={nodeEffects}\n // The selected row's own root record — the filed-for tree shared\n // surfaces (notes/reminders) offer for attachment.\n menuRootNode={menu.selectedRoot}\n activeTabId={activeTabId}\n onActiveTabChange={switchTab}\n />\n ) : explorePageId ? (\n // THE TREE'S LANDING SCREEN (v1 InquiryContainer.jsx:2849). With no\n // record selected, a tree that names an explore page shows that page\n // here rather than a sentence telling the user to pick something. It\n // renders straight away — the landing owns its own data and has no\n // reason to sit behind the tree's root page, so no spinner precedes it.\n <InquiryLanding\n pageId={explorePageId}\n tree={tree as Record<string, unknown> | null | undefined}\n treeId={treeId}\n catalogObjects={catalogObjects}\n onLoadedNodeClick={handleRecentlyLoadedClick}\n onLoadRecord={(entity, row) => {\n void handleLoadRecord(entity, row);\n }}\n onLoadRecords={(picks) => {\n void handleLoadRecords(picks);\n }}\n />\n ) : recordsLoading ? (\n <div className={styles.centered}>\n <UdpSpinner />\n </div>\n ) : (\n <div className={styles.centered}>\n <UdpText variant='body1'>\n {treeHidden\n ? t('inquiry.emptyRecordPaneNoTree', {\n defaultValue: 'No record to show.'\n })\n : t('inquiry.emptyRecordPane', {\n defaultValue:\n 'Select a record from the tree, or use Load to bring one in.'\n })}\n </UdpText>\n </div>\n )}\n </div>\n );\n\n return (\n // Height-bearing: the host gives this element its height (InquiryV2's\n // viewport wrapper, the Tree Builder's workspace body) and `fill` gives\n // each pane its own independent scroll.\n <div className={styles.workspace}>\n {treeHidden ? (\n // No tree means no sidebar shell at all — not a collapsed rail. The\n // record view IS the page.\n recordPane\n ) : (\n <UdpSidebarLayout\n fill\n resizable\n sidebarWidth='300px'\n minSidebarWidth={220}\n maxSidebarWidth={520}\n footerResizable={assistant && copilotSplit.footerResizable}\n footerHeight={copilotSplit.footerHeight}\n minFooterHeight={200}\n onFooterHeightChange={copilotSplit.onFooterHeightChange}\n onOpenChange={(event) => setSidebarOpen(event.detail)}\n >\n {/* The sidebar-header slot renders inside the panel's sticky header, so\n the tree name and the menu toolbar stay pinned while the tree scrolls. */}\n <div slot='sidebar-header' className={styles.sidebarHeader}>\n {/* udp-text is shadow DOM (no truncate prop) — inline span inside an\n ellipsis div is the house truncation trick. The tooltip exists only\n to recover a name the ellipsis ate, so it is rendered only while the\n name is measurably cut off; at full width the title stands alone. */}\n {titleTruncated ? (\n <UdpTooltip content={treeName}>\n <div ref={titleRef} className={styles.title}>\n <UdpText variant='subtitle2' as='span' block={false}>\n {treeName}\n </UdpText>\n </div>\n </UdpTooltip>\n ) : (\n <div ref={titleRef} className={styles.title}>\n <UdpText variant='subtitle2' as='span' block={false}>\n {treeName}\n </UdpText>\n </div>\n )}\n <InquiryMenuToolbar\n filterText={filterText}\n onFilterTextChange={applyFilterText}\n onFilterKeyDown={handleFilterKeyDown}\n filterDisabled={filterRows.length === 0}\n onLoad={() => openLoad('')}\n onRefresh={refreshTree}\n overflowItems={overflowItems}\n />\n </div>\n <div slot='sidebar'>\n {/* A failed root fetch must say so — an empty tree would read as\n \"no records\". The toolbar's Refresh is the retry. */}\n {recordsError && (\n <UdpMessageBar intent='error' layout='multiline'>\n {t('inquiry.tree.recordsFailed', {\n defaultValue: 'Records could not be loaded. Refresh to try again.'\n })}\n </UdpMessageBar>\n )}\n {/* No catalog for this tree's entities: field search and key-based\n loads have nothing to work from, so say it once, in one line, where\n the search door is — rather than let each path fail quietly. */}\n {catalogMissing && (\n <UdpMessageBar intent='warning'>\n {t('inquiry.tree.catalogMissing', {\n defaultValue: 'Advanced search is limited for this tree.'\n })}\n </UdpMessageBar>\n )}\n {treeIsEmpty && (\n /* NOTHING LOADED. An explore-first tree opens with an empty tree pane\n on purpose, and a blank 300px column reads as broken — so it says\n what it is, in one quiet caption line on the same grid as the rows\n that will arrive. No art and no button: + Load is directly above it\n in the toolbar, so a second door here would be the same command\n twice. NodeList is not rendered at all in this state: its own empty\n state is 42px of artwork and an untranslated \"No Entity Opened\",\n which is shared with v1 and the Tree Builder preview and stays\n theirs. */\n <div className={styles.emptyTree}>\n <UdpText variant='caption1' as='span'>\n {t('inquiry.tree.nothingLoaded', {\n defaultValue:\n 'No records loaded. Use Load to bring one into the tree.'\n })}\n </UdpText>\n </div>\n )}\n {treeHasRows && (\n <NodeList\n menuItemsList={menu.menuList}\n onSelectNode={menu.handleSelectNode}\n onDropNode={onDropNode}\n selectedNodeId={menu.selectedId ?? ''}\n sidebarExpanded={sidebarOpen}\n catalogObjects={catalogObjects}\n promotedEntities={promotedEntities ?? []}\n treeStructureArr={tree?.treeStructure ?? []}\n setMenuList={menu.setMenuList}\n loadChildren={loadChildren}\n treeViewMode={treeViewMode}\n filter={filter}\n onRemoveRoot={menu.removeRoot}\n removeRootLabel={t('common.remove', { defaultValue: 'Remove' })}\n />\n )}\n {/* ROWS ON THE WAY. The root page while it is in flight (one placeholder\n per record the page will bring, so the pane never reads as an empty\n tree before the records land), and after the rows already there, one\n per record asked for by hand — + Load, the landing's finder, history,\n a deep link — until it is grafted in. */}\n {treeLoading && (\n <TreeSkeletonRows\n count={recordsLoading ? initialRecordCount : loadsInFlight}\n />\n )}\n {/* MORE ROOT RECORDS. A v2-owned row at the end of the tree, not chrome\n inside NodeList/InquiryFluentTreeMenu — those are shared with v1 and\n the Tree Builder preview, which page their roots differently or not\n at all. Quiet by design: it is the tail of a list, not an action the\n pane is asking for. */}\n {rootPaging.showLoadMore && (\n <div className={styles.showMore}>\n <UdpButton\n appearance='transparent'\n size='small'\n loading={rootPaging.isLoadingMore}\n onClick={() => setRootPages(nextRootPages)}\n >\n {t('inquiry.tree.showMoreRecords', {\n defaultValue: 'Show {{amount}} more',\n amount: rootPaging.nextCount\n })}\n </UdpButton>\n </div>\n )}\n {/* The one bridge between filtering and loading: filtering can say\n \"not here\" without implying \"doesn't exist\". */}\n {filter.active &&\n filter.matchIds.length === 0 &&\n filter.query.length >= LOAD_MIN_CHARS && (\n <div className={styles.bridge}>\n <UdpText variant='caption1' as='span'>\n {t('inquiry.filter.notInTree', {\n defaultValue: 'Not in the tree.'\n })}\n </UdpText>\n <UdpButton\n appearance='transparent'\n size='small'\n className={styles.bridgeAction}\n onClick={() => openLoad(filter.query)}\n >\n {t('inquiry.filter.loadFromSearch', {\n defaultValue: 'Load “{{text}}” from {{entity}} search',\n text: filter.query,\n entity: entityNoun\n })}\n </UdpButton>\n </div>\n )}\n </div>\n {/* The pane is a vertical split: the tree scrolls in the layout's sidebar\n body above, the copilot is docked in the footer slot below — pinned to\n the pane's bottom edge, collapsed to a single bar until it is asked for. */}\n {assistant && copilot && (\n <InquiryCopilotDock\n treeId={treeId}\n capability={copilot}\n slot='sidebar-footer'\n onOpenChange={copilotSplit.onOpenChange}\n />\n )}\n {recordPane}\n </UdpSidebarLayout>\n )}\n <LoadRecordDialog\n // Remounted per open (and per handed-over prefill) so the dialog always\n // starts from the term it was opened with.\n key={`load-${loadOpen}-${loadPrefill}`}\n open={loadOpen}\n entities={searchableEntities}\n initialText={loadPrefill}\n // The dialog's default listing IS the menu's own first page — already\n // fetched and cached here, so opening Load costs no request.\n defaultRows={stampedRows}\n defaultTotal={records?.total}\n defaultEntity={rootSearchEntity}\n loadedKeys={loadedKeys}\n catalogObjects={catalogObjects}\n onChoose={(entity, row) => {\n void handleLoadRecord(entity, row);\n }}\n onChooseMany={(picks) => {\n void handleLoadRecords(picks);\n }}\n onClose={() => {\n setLoadOpen(false);\n setLoadPrefill('');\n }}\n />\n <ExecuteApiDropDialog\n open={!!dropExecute}\n methods={dropExecute?.methods ?? []}\n executing={dropExecuting}\n onExecute={(method) => {\n void executeDrop(method);\n }}\n onClose={() => setDropExecute(null)}\n />\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgMA,MAAM+G,oBAAmBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAC,MAAA,EAAAC,UAAAH;CAA4B,IAAAI;AAAA,KAAAH,EAAA,OAAAE,OAAA;AACpDC,OAAA,sBAAA,cAAA,OAAA,MACGC,MAAKC,KAAM,EAAAC,QAAUJ,OAAO,EAAEK,MAK9B,CACG;AAAAP,IAAA,KAAAE;AAAAF,IAAA,KAAAG;OAAAA,MAAAH,EAAA;AAAA,QAPNG;;;AAWF,MAAMK,kBAAkBC,GAAWC,MACjCD,MAAMC,KAAK/D,iBAAiB8D,EAAE,KAAK9D,iBAAiB+D,EAAE;;;;;;;;AASxD,MAAMC,8BACJC,UACA/B,sBAC4B;CAC5B,MAAMgC,qBAAqBhC,kBAAkBiC,MAAM,IAAI,CAAC;AACxD,QACEF,SAASG,MAAMC,WAAWA,OAAOC,eAAeJ,mBAAmB,IACnED,SAASG,MAAMC,WACbR,eAAeQ,OAAOC,YAAYJ,mBACpC,CAAC,IACD;;;;;;AAQJ,MAAMK,gBACJ9B,SACuB;AACvB,KAAI,CAACA,MAAM+B,eAAeb,OAAQ,QAAO;CACzC,MAAMc,YAAY9G,yBAChB8E,KAAK+B,eACL,MACA,YACA,iBACA,SACD;AACD,SAAQf,MAAMiB,QAAQD,UAAU,GAAGA,UAAU,KAAKA,cAAc;;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A,cAAC,WAAD;EACE,YAAW;EACX,MAAK;EACL,WAAWnL,OAAO4X;EAClB,eAAe3I,SAAStE,OAAO+M,MAAM;EAO5B,EALR5T,EAAE,iCAAiC;EAClCqH,cAAc;EACd+I,MAAMvJ,OAAO+M;EACbrV,QAAQyL;EACT,CAAC,CACO,CAEd,CACA,EAIJ/M,aAAawU,WACZ,sBAAA,cAAC,oBAAD;EACU/U;EACR,YAAY+U;EACZ,MAAK;EACL,cAAc5L,aAAakO;EAE9B,CAAA,EACAxB,WAEA,EACD,sBAAA,cAAC,kBAAD;EAGE,KAAK,QAAQtI,SAAQ,GAAIE;EACzB,MAAMF;EACN,UAAUtI;EACV,aAAawI;EAGb,aAAa7F;EACb,cAAcxB,SAAS8B;EACvB,eAAehD;EACHkJ;EACInK;EAChB,WAAWpC,QAAQ4N,QAAQ;AACpB8B,oBAAiB1P,QAAQ4N,IAAI;;EAEpC,eAAeD,UAAU;AAClBgC,qBAAkBhC,MAAM;;EAE/B,eAAe;AACbhC,eAAY,MAAM;AAClBE,kBAAe,GAAG;;EAClB,CAAA,EAEJ,sBAAA,cAAC,sBAAD;EACE,MAAM,CAAC,CAACnE;EACR,SAASA,aAAaI,WAAW,EAAE;EACnC,WAAWC;EACX,YAAYsB,WAAW;AAChBD,eAAYC,OAAO;;EAE1B,eAAe1B,eAAe,KAAK;EAAC,CAAA,CAEnC;;AA9pDgB,SAAApI,MAAAkW,GAAAlG,OAAA;AAAA,QAGnB,sBAAA,cAAA,OAAA;EAAUA,KAAAA;EAAkB,WAAA5R,OAAM+X;EAG5B,EAFJ,sBAAA,cAAC,oBAAD;EAA0B,OAAA;EAAc,QAAA;EAAoB,cAAA;EAC5D,CAAA,EAAA,sBAAA,cAAC,oBAAD;EAA0B,OAAA;EAAa,QAAA;EACzC,CAAA,CAAM"}
|
|
1
|
+
{"version":3,"file":"InquiryWorkspace.mjs","names":["React","useCallback","useEffect","useMemo","useRef","useState","flushSync","useQueryClient","useTranslation","useSnackbar","VariantType","Components","NodeList","NodeActionEnums","NodeActionTriggerEnums","TreeViewModeEnums","useAuthedUser","UdpButton","UdpTooltip","UdpSidebarLayout","UdpSpinner","UdpSkeletonLoading","UdpMessageBar","UdpText","parseInitialRecordCount","sameEntityName","InquiryTree","isDragEntity","nodeEntityName","DisplayNode","ApiMethodDefinition","executeApiMethodWithParameters","fetchApiMethodsByIds","fetchChildRows","fetchEntityMeta","fetchInquiryTree","fetchRecordsByIdentifierSets","fetchRowsForIdentifierSets","invalidateInquiryRowData","recordRecentlyLoadedNodes","RecentlyLoadedWriteEntry","useApiCatalogBinding","useLinkedTrees","usePrefetchLookupMethod","usePromotedMethodEntities","useRootRecords","useTreeCatalogObjects","stampRecordRows","LookupsMap","RecentlyLoadedNode","hydrateRowsWithWaves","loadLazyChildren","WaveContext","findRecordRoot","locateNodeById","rootRecordsOf","useHydratedRootRows","useInstanceParamValues","UdpNodeView","UdpNodeViewProps","LoadNodeRequest","InquirySearchPanel","decideSearchValueOutcome","deriveSearchableEntities","searchHashFor","SearchableEntity","AdvancedSearchState","hasIdentifierValue","levelForBusinessObjectKey","nestedRootOf","refreshedRow","treeTitleOf","resolveDeepLink","LOAD_DEBOUNCE_MS","LOAD_MIN_CHARS","LOAD_PAGE_SIZE","SEARCH_TIMEOUT_MS","useInquirySearch","buildIdentifierFilterElements","useInquiryMenu","LoadRecordOutcome","ReadOnlyContext","InquiryMenuToolbar","InquiryMenuOverflowItem","LoadRecordDialog","computeTreeFilter","flattenFilterRows","ROOT_PAGES_START","computeRootPaging","nextRootPages","rootRequestSize","deriveArrival","idleRecordPane","ExecuteApiDropDialog","InquiryLanding","useIsTruncated","SNACKBAR_TOP_CENTER","InquiryCopilotDock","useCopilotDockSplit","useInquiryCopilot","useTenant","promotedSourceFrom","stampDisplayText","styles","InquiryDeepLink","businessObjectKey","nodeSearch","InquirySelectionChange","node","arrivalSettled","InquiryWorkspaceProps","treeId","tree","capabilities","readOnly","searchValue","deepLink","treeHidden","assistant","containerId","onSelectionChange","change","SKELETON_CHILD_WIDTHS","skeletonChildCount","rootNode","isExpanded","levels","children","certain","filter","level","hideEmptyGroups","length","Math","min","TreeSkeletonRow","t0","$","_c","child","compact","width","icon","t1","skeletonChild","t2","skeletonCompact","t3","skeletonRow","Boolean","t4","join","t5","Symbol","for","skeletonChevron","t6","t7","skeletonLabel","t8","TreeSkeletonRows","count","childCount","afterRows","skeletonAfterRows","undefined","_","index","slice","map","Array","from","LoadPick","entity","filterElements","Record","fallbackRow","historyEntryFor","label","apiMethodId","entityName","treeStructureId","String","id","NodeActionRow","triggerType","actionTypeId","dragEntityName","actionValue","InquiryWorkspace","t","nodes","properties","catalogReturnObject","user","data","catalogBinding","currentTenantId","catalogId","wrapper","apiMethodInstance","apiCatalogId","catalogObjects","isError","catalogError","isSuccess","catalogLoaded","catalogMissing","promotedEntities","promotedError","product","productId","metadataSettled","queryClient","tenantId","activeTenant","lookupContext","rows","stampRows","levelEntityName","lookupsMap","paramValues","trees","linkedTrees","settled","linkedTreesSettled","searchableEntities","searchSettled","rootSearchEntity","find","isRoot","arrivalTerm","trim","deepLinkTarget","deepLinkEntity","deepLinkFilters","deepLinkSettled","setDeepLinkSettled","rootLinkDropped","setRootLinkDropped","deepLinkIsRoot","deepLinkPending","rootPages","setRootPages","initialRecordCount","explorePageId","seedRootRecords","autoSelectFirst","loadRecordsOnOpen","records","isPending","recordsPending","isFetching","recordsFetching","recordsError","instanceFilters","identifierFilters","pageSize","enabled","recordsLoading","waveContext","fetchRows","onLevelError","message","console","warn","rootRows","menuRows","stampedRows","ready","rootPaging","pagesLoaded","loadedCount","total","menu","seed","loadRecord","findConfigLevel","loadsInFlight","setLoadsInFlight","undrawnLoads","treeBox","setTreeBox","HTMLDivElement","observer","ResizeObserver","drawn","current","observe","disconnect","treeHasRows","menuList","rowsComposing","seededRows","treeLoading","arrivalFocused","workspace","closest","contains","document","activeElement","querySelector","HTMLElement","UdpTree","setFocus","recordPaneRef","handlePaneKey","event","KeyboardEvent","key","altKey","ctrlKey","metaKey","record","treeEl","preventDefault","focus","rootMore","showLoadMore","defaultValue","amount","nextCount","loading","isLoadingMore","onShowMore","treeIsEmpty","pendingRowCount","loadChildren","pageNumber","findLevel","context","makeId","crypto","randomUUID","sidebarOpen","setSidebarOpen","copilotSplit","treeViewMode","setTreeViewMode","Classic","dropExecute","setDropExecute","source","target","methods","dropExecuting","setDropExecuting","enqueueSnackbar","notify","variant","anchorOrigin","handleDropNode","sourceEntity","dropActions","nodeActions","nodeAction","On_Node_Drop","pageNode","dropOnto","methodIds","Execute_Api","then","catch","onDropNode","executeDrop","method","requestBody","nodeObj","sourceNodeType","targetNodeType","name","refreshTree","reportedDropsRef","droppedParamFields","droppedFields","signature","filterText","setFilterText","stepAt","setStepAt","filterRows","applyFilterText","next","nextFilter","active","expandForFilter","expandIds","restoreExpansion","matchIds","stepMatch","delta","stepIds","selectNodeById","handleFilterKeyDown","shiftKey","entityNoun","loadDialog","setLoadDialog","prefill","advancedView","setAdvancedView","preset","advancedViewRef","applyAdvancedSearch","some","entityKey","previous","loadedKeys","Set","flatMap","entry","root","openLoad","lookupContextFor","recordHistory","entries","userId","loadRecordsIntoMenu","picks","options","Promise","outcomes","historyEntries","byEntity","Map","forEach","pick","set","get","loaded","all","values","group","sets","found","error","sources","setIndex","present","row","hydrated","hydratedRow","selected","outcome","select","push","alreadyLoaded","grafted","reportLoadOutcome","loadAndReport","pickFor","handleLoadRecord","handleLoadRecords","missed","loadRecordIntoConfiguredTree","targetTreeId","request","targetTree","e","handleLoadNode","fullyQualifiedName","split","targetRef","targetTrees","ref","handleRecentlyLoadedClick","nodeDetails","isArray","queryPayload","menuListRef","selectedIdRef","refreshRecord","rereadBranch","location","configNodeId","meta","promoted","unityBaseSearchMethod","refreshing","setRefreshing","restoreRemoved","handleRefresh","finally","nodeEffects","loadNode","tabChoice","setTabChoice","nodeId","tabId","selectedNodeId","selectedNode","activeTabId","switchTab","setArrivalSettled","arrivalHandledRef","arrivalReady","arrivalSearch","entities","text","debounceMs","minChars","timeoutMs","term","isSettled","isTimedOut","hasSingleResult","singleResult","reportFailure","reason","messages","unresolved","incomplete","notFound","failed","ambiguous","overflowItems","iconName","onClick","collapseAll","expandAll","resetTree","Compact","mode","treeName","titleRef","titleTruncated","copilot","selectedRoot","filterMatchCount","isLoadingRecords","onLoadRecord","onSelectNode","onExpandNode","expandNode","onSwitchTab","onFilterTextChange","onExpandAll","onCollapseAll","onApplyAdvancedSearch","centered","title","idlePane","arrivalPending","recordPane","main","elements","selectedParent","footerResizable","footerHeight","onFooterHeightChange","detail","sidebarHeader","emptyTree","handleSelectNode","selectedId","setMenuList","removeRoot","query","bridge","bridgeAction","onOpenChange"],"sources":["../../../src/inquiry/v2/InquiryWorkspace.tsx"],"sourcesContent":["/**\n * The v2 inquiry WORKSPACE — everything the user sees of an inquiry tree: the\n * tree pane (shared NodeList/InquiryFluentTreeMenu fed by the domain\n * display-tree pipeline) beside the UdpNodeView kernel, inside the shared\n * udp-sidebar-layout. The root-record page seeds the menu; lazy children page\n * in over the network through the wave loader. Tree and search stay KERNEL\n * CONSUMERS — the kernel just renders whichever display node is selected.\n *\n * It is a PURE component over data and callbacks: it is handed the\n * tree and knows nothing about where it came from, the URL, or the app's\n * stores. InquiryV2 is the route shell that fetches by id and mirrors the\n * selection into the address bar; the Tree Builder's Preview hands it the\n * working (unsaved) tree instead. One workspace, so the two can never drift.\n *\n * FIND vs LOAD (find-and-load spec, 2026-08-18). Two jobs, two controls:\n * the box above the tree FILTERS rows that are already loaded — client-side,\n * highlight-and-dim in place, never a request — and bringing a new record in is\n * the explicit + Load dialog, the only control here that can fetch. One bridge\n * connects them: a zero-match filter offers to load the typed text. Typing never\n * touches the record pane; only activation changes the selection. Advanced\n * search keeps its own entry in the ⋯ overflow.\n */\nimport React, {\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState\n} from 'react';\nimport { flushSync } from 'react-dom';\nimport { useQueryClient } from '@tanstack/react-query';\nimport { useTranslation } from 'react-i18next';\nimport { useSnackbar } from 'notistack';\nimport type { VariantType } from 'notistack';\nimport type { Components } from '@univerus/udp-stencil-component-library';\nimport { NodeList } from './tree/NodeList';\nimport {\n NodeActionEnums,\n NodeActionTriggerEnums,\n TreeViewModeEnums\n} from '../../enums/unitySystemEnums';\nimport { useAuthedUser } from '../../utilities/auth/useAuthedUser';\nimport { UdpButton } from '../../UI/fluent-web-components/UdpButton';\nimport { UdpTooltip } from '../../UI/fluent-web-components/UdpTooltip';\nimport { UdpSidebarLayout } from '../../UI/fluent-web-components/UdpSidebarLayout';\nimport { UdpSpinner } from '../../UI/fluent-web-components/UdpSpinner';\nimport { UdpSkeletonLoading } from '../../UI/fluent-web-components/UdpSkeletonLoading';\nimport { UdpMessageBar } from '../../UI/fluent-web-components/UdpMessageBar';\nimport { UdpText } from '../../UI/fluent-web-components/UdpText';\nimport {\n parseInitialRecordCount,\n sameEntityName\n} from '../../domain/inquiryTree';\nimport type { InquiryTree } from '../../domain/inquiryTree';\nimport {\n isDragEntity,\n nodeEntityName,\n type DisplayNode\n} from '../../domain/inquiryTree/displayTree';\nimport {\n ApiMethodDefinition,\n executeApiMethodWithParameters,\n fetchApiMethodsByIds,\n fetchChildRows,\n fetchEntityMeta,\n fetchInquiryTree,\n fetchRecordsByIdentifierSets,\n fetchRowsForIdentifierSets,\n invalidateInquiryRowData,\n recordRecentlyLoadedNodes,\n type RecentlyLoadedWriteEntry,\n useApiCatalogBinding,\n useLinkedTrees,\n usePrefetchLookupMethod,\n usePromotedMethodEntities,\n useRootRecords,\n useTreeCatalogObjects,\n stampRecordRows\n} from './api/queries';\nimport type { LookupsMap, RecentlyLoadedNode } from './api/queries';\nimport { hydrateRowsWithWaves, loadLazyChildren } from './tree/waveLoader';\nimport type { WaveContext } from './tree/waveLoader';\nimport { findRecordRoot, locateNodeById } from './tree/lineageModel';\nimport { rootRecordsOf } from './tree/rootRemovalModel';\nimport { useHydratedRootRows } from './tree/useHydratedRootRows';\nimport { useInstanceParamValues } from './api/useInstanceParamValues';\nimport { UdpNodeView } from './kernel/UdpNodeView';\nimport type { UdpNodeViewProps } from './kernel/UdpNodeView';\nimport type { LoadNodeRequest } from './kernel/RecordContext';\nimport {\n InquirySearchPanel,\n decideSearchValueOutcome,\n deriveSearchableEntities,\n searchHashFor,\n SearchableEntity\n} from './search';\nimport type { AdvancedSearchState } from './search';\nimport {\n hasIdentifierValue,\n levelForBusinessObjectKey,\n nestedRootOf,\n refreshedRow,\n treeTitleOf,\n resolveDeepLink\n} from './search/searchModel';\nimport {\n LOAD_DEBOUNCE_MS,\n LOAD_MIN_CHARS,\n LOAD_PAGE_SIZE,\n SEARCH_TIMEOUT_MS,\n useInquirySearch\n} from './search/useInquirySearch';\nimport {\n buildIdentifierFilterElements,\n useInquiryMenu\n} from './tree/useInquiryMenu';\nimport type { LoadRecordOutcome } from './tree/useInquiryMenu';\nimport { ReadOnlyContext } from './kernel/ReadOnlyContext';\nimport { InquiryMenuToolbar } from './tree/InquiryMenuToolbar';\nimport type { InquiryMenuOverflowItem } from './tree/InquiryMenuToolbar';\nimport { LoadRecordDialog } from './tree/LoadRecordDialog';\nimport { computeTreeFilter, flattenFilterRows } from './tree/treeFilterModel';\nimport {\n ROOT_PAGES_START,\n computeRootPaging,\n nextRootPages,\n rootRequestSize\n} from './tree/rootPagingModel';\nimport { deriveArrival, idleRecordPane } from './tree/arrivalModel';\nimport { ExecuteApiDropDialog } from './tree/ExecuteApiDropDialog';\nimport { InquiryLanding } from './landing/InquiryLanding';\nimport { useIsTruncated } from './ui/useIsTruncated';\nimport { SNACKBAR_TOP_CENTER } from './ui/snackbar';\nimport {\n InquiryCopilotDock,\n useCopilotDockSplit\n} from './ai/InquiryCopilotDock';\nimport { useInquiryCopilot } from './ai/InquiryV2Copilot';\nimport { useTenant } from '../../utilities/tenant/useTenant';\nimport { promotedSourceFrom } from '../../maintenance/api/promoted';\nimport { stampDisplayText } from '../../maintenance/record/stampDisplayText';\nimport styles from './InquiryV2.module.css';\n\n/** The record a route mount arrives on — the `?node` / `?nodeSearch` deep link. */\nexport interface InquiryDeepLink {\n businessObjectKey: string;\n /** Comma-joined identifier values, as the URL carries them. */\n nodeSearch: string;\n}\n\n/** What the workspace reports whenever the selected record changes. */\nexport interface InquirySelectionChange {\n node: DisplayNode | null;\n /** True once a `searchValue` arrival has been honored (or there was none). */\n arrivalSettled: boolean;\n}\n\nexport interface InquiryWorkspaceProps {\n /**\n * The tree's id — cache keys, the recently-loaded history and the kernel are\n * all keyed by it. The Tree Builder passes the saved tree's id while\n * previewing edits to it.\n */\n treeId: string;\n /** The tree to show — a saved one as read, or a builder's working copy. */\n tree: InquiryTree;\n /** Forwarded to UdpNodeView (capability allowlist; default: all). */\n capabilities?: UdpNodeViewProps['capabilities'];\n /**\n * A view that acts on nothing live (the Tree Builder's preview): rows neither\n * drag nor accept drops, loading a record writes no recently-loaded history,\n * action buttons show disabled and pages show their name in place of their\n * widgets (kernel/ReadOnlyContext).\n */\n readOnly?: boolean;\n /** v1's `searchValue`: arrive with the quick search already run on this term. */\n searchValue?: string;\n /** Arrive on one exact record; outranks `searchValue`. */\n deepLink?: InquiryDeepLink | null;\n /** v1's `inquiryMenuHidden`: the record view alone, no tree beside it. */\n treeHidden?: boolean;\n /**\n * Mount the copilot dock and register the viewer's tools. Off where the host\n * already provides an assistant surface (the Tree Builder's own copilot).\n */\n assistant?: boolean;\n /**\n * v1's `containerId`: the token an embedder assigns so several inquiries on\n * one screen are distinguishable from inside a page widget, which receives it\n * as `inquiryContainerId`. See InquiryEnvironment.containerId — it names the\n * mount and namespaces nothing in the library.\n */\n containerId?: string | number;\n /**\n * The selected record, reported once any deep link has been honored — the\n * route shell mirrors it into the URL, the Tree Builder follows it in the\n * inspector.\n */\n onSelectionChange?: (change: InquirySelectionChange) => void;\n}\n\n/** Label widths for a record's placeholder child rows — varied, like names. */\nconst SKELETON_CHILD_WIDTHS = ['55%', '40%', '50%'];\n\n/**\n * How many child rows a loading record's placeholder shows. None when records\n * land closed (the root level's own `isExpanded`). Otherwise the levels under\n * the root that always render, since a level that hides when empty may not be\n * there at all — and one row when every level is like that, so the placeholder\n * still reads as a record with something under it.\n */\nconst skeletonChildCount = (rootNode: DisplayNode | null): number => {\n if (!rootNode?.isExpanded) return 0;\n const levels = rootNode.children ?? [];\n const certain = levels.filter((level) => !level.hideEmptyGroups).length;\n return Math.min(\n SKELETON_CHILD_WIDTHS.length,\n certain || Math.min(1, levels.length)\n );\n};\n\n/** One placeholder row: the tree row's chevron box, icon and label. */\nconst TreeSkeletonRow = ({\n child,\n compact,\n width\n}: {\n child?: boolean;\n compact: boolean;\n width: string;\n}) => {\n const icon = compact ? '16px' : '20px';\n return (\n <div\n className={[\n styles.skeletonRow,\n child && styles.skeletonChild,\n compact && styles.skeletonCompact\n ]\n .filter(Boolean)\n .join(' ')}\n >\n <span className={styles.skeletonChevron}>\n <UdpSkeletonLoading width='12px' height='12px' borderRadius='3px' />\n </span>\n <UdpSkeletonLoading width={icon} height={icon} borderRadius='4px' />\n <UdpSkeletonLoading\n className={styles.skeletonLabel}\n width={width}\n height='16px'\n />\n </div>\n );\n};\n\n/**\n * Records still on their way, drawn on the tree row's exact geometry — each an\n * open root with its child rows beneath it, as it will land — so the pane never\n * goes blank between asking for a record and seeing it, and the rows that\n * arrive take the placeholders' places.\n */\nconst TreeSkeletonRows = ({\n count,\n childCount,\n compact,\n afterRows\n}: {\n count: number;\n childCount: number;\n /** Compact View: the tree's shorter rows. */\n compact: boolean;\n /** The placeholders follow rows already in the tree. */\n afterRows: boolean;\n}) => (\n <div className={afterRows ? styles.skeletonAfterRows : undefined}>\n {Array.from({ length: count }, (_, index) => (\n <React.Fragment key={index}>\n <TreeSkeletonRow compact={compact} width='45%' />\n {SKELETON_CHILD_WIDTHS.slice(0, childCount).map((width) => (\n <TreeSkeletonRow key={width} child compact={compact} width={width} />\n ))}\n </React.Fragment>\n ))}\n </div>\n);\n\n/** One record to load: its level, its identifier filters, the row in hand. */\ninterface LoadPick {\n entity: SearchableEntity;\n filterElements: Array<Record<string, unknown>>;\n fallbackRow?: Record<string, unknown>;\n}\n\n/** One recently-loaded history entry for a record loaded at `entity`'s level. */\nconst historyEntryFor = (\n entity: SearchableEntity,\n label: string,\n filterElements: Array<Record<string, unknown>>\n): RecentlyLoadedWriteEntry => ({\n apiMethodId: entity.apiMethodId,\n entityName: entity.entityName,\n treeStructureId: String(entity.rootNode?.id ?? ''),\n label,\n filterElements\n});\n\n/** A node-action row as it rides `properties.nodeActions` on the wire. */\ninterface NodeActionRow {\n triggerType?: NodeActionTriggerEnums;\n actionTypeId?: NodeActionEnums;\n dragEntityName?: string;\n actionValue?: string;\n}\n\nexport const InquiryWorkspace = ({\n treeId,\n tree,\n capabilities,\n readOnly = false,\n searchValue,\n deepLink = null,\n treeHidden = false,\n assistant = true,\n containerId = '',\n onSelectionChange\n}: InquiryWorkspaceProps) => {\n const { t } = useTranslation();\n\n const rootNode = useMemo(() => nestedRootOf(tree.nodes), [tree]);\n\n const entityName =\n typeof rootNode?.properties?.catalogReturnObject === 'string'\n ? rootNode.properties.catalogReturnObject\n : '';\n\n // Catalog metadata for the display-tree/lazy-load composers, resolved\n // through v2's own cached queries (tenant → catalog binding → catalog\n // objects + promoted methods) — no dependency on the Shell's ActionProvider\n // store hydration.\n const user = useAuthedUser();\n const { data: catalogBinding } = useApiCatalogBinding(user?.currentTenantId);\n // The tree's QUERY names the catalog its entities live in. The tenant's\n // product binding is the fallback for a tree that carries none — it is the\n // wrong catalog for a tree from another product (every entity comes back\n // absent: no identifiers, no promotions, no field picker), which is exactly\n // what the Tree Builder previews and what a cross-product link opens.\n const catalogId =\n tree.wrapper.apiMethodInstance?.apiCatalogId ??\n catalogBinding?.apiCatalogId;\n const {\n data: catalogObjects,\n isError: catalogError,\n isSuccess: catalogLoaded\n } = useTreeCatalogObjects(catalogId, treeId);\n // The catalog answered with NO entities for this tree (a tree whose product\n // is not in this tenant's catalog). Every identifier-based path — loading a\n // record, the deep link, the advanced field picker — has nothing to work\n // from, so the pane says so once; the waits that gate on the catalog treat\n // it as settled (metadataSettled) rather than pending forever.\n const catalogMissing = catalogLoaded && !catalogObjects?.length;\n const { data: promotedEntities, isError: promotedError } =\n usePromotedMethodEntities(catalogId, tree.wrapper.product?.productId);\n /**\n * The catalog and the promotions have both answered (or failed). Everything\n * that composes or loads records waits on this — the root page's hydration,\n * a deep link, a `?searchValue` arrival: a load run before the promotions\n * land plans no child level (\"Promote … child entity\") and keeps that empty\n * branch.\n */\n const metadataSettled =\n (catalogObjects !== undefined || catalogError) &&\n (promotedEntities !== undefined || promotedError);\n const queryClient = useQueryClient();\n const tenantId = useTenant()?.activeTenant?.tenantId ?? null;\n const lookupContext = useMemo(\n () => ({\n queryClient,\n catalogId,\n catalogObjects,\n stampDisplayText: (entityName: string, rows: Array<Record<string, unknown>>) =>\n stampDisplayText(\n entityName,\n rows,\n promotedSourceFrom(promotedEntities, `${catalogId}|${tree.wrapper.product?.productId}`),\n tenantId\n )\n }),\n [queryClient, catalogId, catalogObjects, promotedEntities, tree.wrapper.product?.productId, tenantId]\n );\n const stampRows = useCallback(\n (\n levelEntityName: string | undefined,\n rows: Array<Record<string, unknown>>,\n lookupsMap?: LookupsMap | null\n ) => stampRecordRows(lookupContext, levelEntityName, rows, lookupsMap),\n [lookupContext]\n );\n\n // Warm the lookup get-data method with this wave so the first stamping pass\n // doesn't have to discover it serially.\n usePrefetchLookupMethod(catalogId);\n\n // The searchable set, with each entity's Data Builder query filters already\n // parsed and its `params.*` placeholders resolved. Derived BEFORE the root\n // page because the root request composes the root entity's saved filters in —\n // ad-hoc execution ignores the instance body, so this is the only way a\n // query's own filters reach the server.\n const paramValues = useInstanceParamValues();\n const { trees: linkedTrees, settled: linkedTreesSettled } =\n useLinkedTrees(tree);\n // Search results are rows like any other: stamped with display text the\n // same way the tree's rows are, so a finder never shows a raw key.\n const searchableEntities = useMemo<SearchableEntity[]>(\n () =>\n deriveSearchableEntities(tree, linkedTrees, paramValues).map((entity) => ({\n ...entity,\n stampRows: (rows, lookupsMap) =>\n stampRows(entity.entityName, rows, lookupsMap as LookupsMap | null | undefined)\n })),\n [tree, linkedTrees, paramValues, stampRows]\n );\n /**\n * A deep link or arrival term resolved before the linked trees land would\n * miss their levels, so both wait for them as well as for the metadata.\n */\n const searchSettled = metadataSettled && linkedTreesSettled;\n /** The tree's own root entity — what the Load dialog lists by default. */\n const rootSearchEntity = useMemo(\n () => searchableEntities.find((entity) => entity.isRoot) ?? null,\n [searchableEntities]\n );\n\n /* ------------------------------------------------------------ arrival */\n /**\n * The term this mount arrived with. The prop wins over the URL (v1's rule),\n * and a `?node` deep link outranks both — it names one exact record, so there\n * is nothing left to search for.\n */\n const arrivalTerm = deepLink ? '' : searchValue?.trim() ?? '';\n\n /** The level and identifier filters the deep link names (resolveDeepLink). */\n const deepLinkTarget = useMemo(\n () =>\n deepLink\n ? resolveDeepLink(searchableEntities, catalogObjects, deepLink)\n : null,\n [deepLink, searchableEntities, catalogObjects]\n );\n const deepLinkEntity = deepLinkTarget?.entity ?? null;\n const deepLinkFilters = deepLinkTarget?.filterElements.length\n ? deepLinkTarget.filterElements\n : null;\n\n /** True once the link has been honored — or reported as unusable. */\n const [deepLinkSettled, setDeepLinkSettled] = useState(!deepLink);\n /** A link that could not be honored: a root link stops replacing the root page. */\n const [rootLinkDropped, setRootLinkDropped] = useState(false);\n /** A deep link to the ROOT level replaces the root page with that record. */\n const deepLinkIsRoot = !!deepLinkEntity?.isRoot && !rootLinkDropped;\n /** A resolvable deep link holds the first fetch until its filters are ready. */\n const deepLinkPending = !!deepLink && !!deepLinkEntity && !deepLinkFilters;\n\n /* ------------------------------------------------------------ root paging */\n /**\n * How many pages of root records the user has asked for. One request, one\n * window: growing this re-requests the root query at N× the configured page\n * size rather than fetching page N on its own, so the rows always arrive in\n * the query's own order and a refresh reloads exactly what was open\n * (tree/rootPagingModel explains the trade in full).\n */\n const [rootPages, setRootPages] = useState(ROOT_PAGES_START);\n const initialRecordCount = parseInitialRecordCount(rootNode);\n\n /* --------------------------------------------------------------- arrival */\n /**\n * The tree's own landing screen. Configuring one is the tree author saying\n * this tree OPENS on a page — so the pane renders the landing, the menu stops\n * auto-selecting row one (otherwise the landing could never be reached), and\n * the root-record page is not fetched at all. `arrivalModel` holds the whole\n * matrix, including the root level's `loadRecordsOnOpen` override and the one\n * URL that still fetches on arrival.\n */\n const explorePageId = tree.wrapper.explorePageId ?? '';\n\n const { seedRootRecords, autoSelectFirst } = deriveArrival({\n explorePageId,\n loadRecordsOnOpen: rootNode?.properties?.loadRecordsOnOpen,\n deepLinkIsRoot\n });\n\n const {\n data: records,\n isPending: recordsPending,\n isFetching: recordsFetching,\n isError: recordsError\n } = useRootRecords({\n treeId,\n apiMethodId: tree.wrapper.apiMethodInstance?.apiMethodId,\n entityName,\n instanceFilters: rootSearchEntity?.instanceFilters,\n identifierFilters: deepLinkIsRoot ? deepLinkFilters : null,\n pageSize: rootRequestSize(initialRecordCount, rootPages),\n // An explore-first tree never asks for a root page at all — the landing is\n // the arrival and the tree fills through + Load. Beyond that: a pending\n // deep link must resolve its identifier filters (which need the catalog)\n // before anything is fetched — otherwise the whole root page is requested\n // and then thrown away. Once the link is settled (honored, or reported as\n // unusable) the ordinary root page loads.\n enabled: seedRootRecords && (!deepLinkPending || deepLinkSettled)\n });\n\n /**\n * A disabled query is \"pending\" forever, so every loading affordance reads the\n * SEED decision too — an unseeded tree is empty, not loading, and must never\n * show a spinner nothing will ever end.\n */\n const recordsLoading = seedRootRecords && recordsPending;\n\n\n /* ------------------------------------------------------------- wave load */\n /** What every lookup-stamping pass carries (stampRecordRows). */\n const waveContext = useMemo<WaveContext>(\n () => ({\n fetchRows: (apiMethodId, data) =>\n fetchChildRows(queryClient, apiMethodId, data),\n catalogObjects,\n promotedEntities,\n stampRows,\n onLevelError: (message) => console.warn('[inquiry-v2]', message)\n }),\n [queryClient, catalogObjects, promotedEntities, stampRows]\n );\n\n const rootRows = records?.rows;\n const { menuRows, stampedRows } = useHydratedRootRows({\n rootNode,\n records,\n entityName,\n waveContext,\n ready: metadataSettled\n });\n\n /** How much of the root record set is on screen, and what is left. */\n const rootPaging = computeRootPaging({\n pageSize: initialRecordCount,\n pagesLoaded: rootPages,\n loadedCount: rootRows?.length ?? 0,\n total: records?.total ?? 0,\n isFetching: recordsFetching\n });\n\n const menu = useInquiryMenu({\n seed: rootNode,\n rows: menuRows,\n catalogObjects,\n promotedEntities,\n autoSelectFirst\n });\n // The hook returns a fresh object each render; callbacks depend on the\n // stable function, not on it.\n const loadRecord = menu.loadRecord;\n const findConfigLevel = menu.findConfigLevel;\n\n /**\n * The root page is in hand and the menu has not been built from it yet — it\n * is hydrated first, then composed in an effect — so the rows are COMING and\n * the pane shows their placeholders, never the empty state. A menu that was\n * built from this page and holds nothing is different: the user removed its\n * rows, and the pane is simply empty.\n */\n /** Records asked for by hand (Load, finder, history, deep link) not yet in the menu. */\n const [loadsInFlight, setLoadsInFlight] = useState(0);\n /**\n * Records grafted into the menu that the tree has not DRAWN yet. The tree is\n * a web component: it renders a frame or more after React commits, so\n * dropping a record's placeholder in the commit that grafts it left the pane\n * blank until the row painted. The placeholder is dropped instead when the\n * tree's box grows — a ResizeObserver runs after layout and before paint, so\n * the row arrives and its placeholder leaves in the same frame.\n */\n const undrawnLoads = useRef(0);\n const [treeBox, setTreeBox] = useState<HTMLDivElement | null>(null);\n useEffect(() => {\n if (!treeBox) return undefined;\n const observer = new ResizeObserver(() => {\n const drawn = undrawnLoads.current;\n if (!drawn) return;\n undrawnLoads.current = 0;\n flushSync(() => setLoadsInFlight((count) => count - drawn));\n });\n observer.observe(treeBox);\n return () => observer.disconnect();\n }, [treeBox]);\n const treeHasRows = menu.menuList.length > 0;\n const rowsComposing =\n !treeHasRows &&\n !!rootRows?.length &&\n (!menuRows || menu.seededRows !== menuRows);\n const treeLoading = recordsLoading || rowsComposing || loadsInFlight > 0;\n /**\n * ARRIVAL FOCUS. The tree is where work in the viewer starts, so once its\n * first rows are drawn the keyboard is already in it (on the selected row):\n * the arrow keys answer without a click first. Once per visit. It takes focus\n * from the page or from the app chrome that brought the user here (the menu\n * link they clicked) — never from something they have already focused inside\n * the viewer, and never in a read-only preview, whose host keeps the focus.\n */\n const arrivalFocused = useRef(false);\n useEffect(() => {\n if (arrivalFocused.current || !treeBox || !treeHasRows) return;\n arrivalFocused.current = true;\n if (readOnly) return;\n const workspace = treeBox.closest(`.${styles.workspace}`);\n if (workspace?.contains(document.activeElement)) return;\n void treeBox\n .querySelector<HTMLElement & Components.UdpTree>('udp-tree')\n ?.setFocus();\n }, [treeBox, treeHasRows, readOnly]);\n /**\n * F6 — the desktop convention for hopping between panes, with or without\n * Shift (there are two): from the tree, or anywhere else in the viewer, to\n * the record; from the record back to the tree's selected row. Left to the\n * browser when there is no tree to hop to.\n */\n const recordPaneRef = useRef<HTMLDivElement>(null);\n const handlePaneKey = (event: React.KeyboardEvent<HTMLDivElement>) => {\n if (event.key !== 'F6' || event.altKey || event.ctrlKey || event.metaKey) {\n return;\n }\n const record = recordPaneRef.current;\n const treeEl = treeBox?.querySelector<HTMLElement & Components.UdpTree>(\n 'udp-tree'\n );\n if (!record || !treeEl) return;\n event.preventDefault();\n if (record.contains(document.activeElement)) void treeEl.setFocus();\n else record.focus();\n };\n /**\n * MORE ROOT RECORDS — the tree's own last row, so it is reached and run with\n * the keys that work every other row. Stood down while a hand-loaded record\n * is on its way: that record lands in this row's place, and its placeholder\n * holds the spot until it does.\n */\n const rootMore = useMemo(\n () =>\n rootPaging.showLoadMore && loadsInFlight === 0\n ? {\n label: t('inquiry.tree.showMoreRecords', {\n defaultValue: 'Show {{amount}} more',\n amount: rootPaging.nextCount\n }),\n loading: rootPaging.isLoadingMore,\n onShowMore: () => setRootPages(nextRootPages)\n }\n : undefined,\n [\n rootPaging.showLoadMore,\n rootPaging.nextCount,\n rootPaging.isLoadingMore,\n loadsInFlight,\n t\n ]\n );\n /** The tree pane holds nothing and has nothing coming. */\n const treeIsEmpty = !treeHasRows && !treeLoading;\n /**\n * One placeholder per record on its way, whichever way it is coming. A root\n * deep link's page is the one record the URL names, not a page of them.\n */\n const pendingRowCount = recordsLoading\n ? deepLinkIsRoot\n ? 1\n : initialRecordCount\n : (rowsComposing ? (rootRows?.length ?? 0) : 0) + loadsInFlight;\n\n /** The menu's lazy-expand loader: one level, one batched request, cached. */\n const loadChildren = useCallback(\n ({ node, pageNumber }: { node: DisplayNode; pageNumber: number }) =>\n loadLazyChildren({\n node,\n findLevel: findConfigLevel,\n pageNumber,\n context: waveContext,\n makeId: () => crypto.randomUUID()\n }),\n [findConfigLevel, waveContext]\n );\n\n const [sidebarOpen, setSidebarOpen] = useState(true);\n // The tree/copilot split inside the pane — owned by the dock, set on the\n // layout, which is where the drag seam lives.\n const copilotSplit = useCopilotDockSplit();\n const [treeViewMode, setTreeViewMode] = useState(TreeViewModeEnums.Classic);\n\n // On_Node_Drop actions: Execute API (pick a method, run it on the pair) and\n // Load_Inquiry_Page (a client-side page root — tree/droppedPageModel). A\n // target configuring both runs both, as v1 did.\n const [dropExecute, setDropExecute] = useState<{\n source: DisplayNode;\n target: DisplayNode;\n methods: ApiMethodDefinition[];\n } | null>(null);\n const [dropExecuting, setDropExecuting] = useState(false);\n const { enqueueSnackbar } = useSnackbar();\n /** Every toast this workspace raises: top-center, one variant. */\n const notify = useCallback(\n (message: string, variant: VariantType) =>\n enqueueSnackbar(message, { variant, anchorOrigin: SNACKBAR_TOP_CENTER }),\n [enqueueSnackbar]\n );\n\n const handleDropNode = (source: DisplayNode, target: DisplayNode) => {\n const sourceEntity = nodeEntityName(source);\n const dropActions = (\n (target?.properties?.nodeActions as NodeActionRow[] | undefined) ?? []\n ).filter(\n (nodeAction) =>\n nodeAction?.triggerType === NodeActionTriggerEnums.On_Node_Drop &&\n isDragEntity(nodeAction?.dragEntityName, sourceEntity)\n );\n const pageNode = menu.dropOnto(target, source);\n const methodIds = dropActions\n .filter(\n (nodeAction) => nodeAction.actionTypeId === NodeActionEnums.Execute_Api\n )\n .map((nodeAction) => String(nodeAction.actionValue ?? ''))\n .filter(Boolean);\n if (pageNode && !methodIds.length) return;\n if (!methodIds.length) {\n // A drop onto a row that configures NOTHING for this entity is just a\n // miss — the tree says no by doing nothing. A drop onto a row that does\n // configure an action v2 can't run yet is a different story, and the user\n // is owed the reason rather than a dead gesture.\n if (dropActions.length) {\n notify(\n t('inquiry.drop.unsupportedAction', {\n defaultValue:\n 'That drop action is not supported by this viewer yet.'\n }),\n 'warning'\n );\n }\n return;\n }\n fetchApiMethodsByIds(catalogId ?? '', methodIds)\n .then((methods) => setDropExecute({ source, target, methods }))\n .catch(() =>\n notify(\n t('inquiry.drop.methodsUnavailable', {\n defaultValue: 'Unable to load the API methods for this drop action.'\n }),\n 'error'\n )\n );\n };\n\n // No drop handler in a read-only view: rows then neither drag nor accept\n // drops, so a preview can never run a drop action.\n const onDropNode = readOnly ? undefined : handleDropNode;\n\n const executeDrop = async (method: ApiMethodDefinition) => {\n if (!dropExecute || !method.apiMethodId) return;\n setDropExecuting(true);\n try {\n // v1 wire contract: the {source, target} record pair plus their entity\n // names as the request body; menu indexes never leave the client.\n await executeApiMethodWithParameters(String(method.apiMethodId), {\n requestBody: {\n source: dropExecute.source.nodeObj,\n target: dropExecute.target.nodeObj,\n sourceNodeType: dropExecute.source.properties?.catalogReturnObject,\n targetNodeType: dropExecute.target.properties?.catalogReturnObject\n }\n });\n notify(\n t('inquiry.drop.executed', {\n defaultValue: '{{name}} executed successfully.',\n name: method.name ?? 'API'\n }),\n 'success'\n );\n // The refresh mechanism: re-pull every row family the drop may have\n // changed; the menu rebuild preserves the workspace around it.\n void refreshTree();\n } catch {\n notify(\n t('inquiry.drop.executeFailed', {\n defaultValue: 'Unable to execute {{name}}.',\n name: method.name ?? 'the API'\n }),\n 'error'\n );\n } finally {\n setDropExecuting(false);\n setDropExecute(null);\n }\n };\n\n /**\n * A saved query filter whose `params.*` placeholder could not be resolved is\n * dropped rather than sent literally — which WIDENS the tree. Legacy dropped\n * it silently; log it once per tree for whoever is debugging the config.\n */\n const reportedDropsRef = useRef('');\n const droppedParamFields = rootSearchEntity?.instanceFilters.droppedFields;\n /* eslint-disable react-you-might-not-need-an-effect/no-pass-data-to-parent --\n a one-shot console report, not data lifted to a parent. */\n useEffect(() => {\n if (!droppedParamFields?.length) return;\n const signature = `${treeId}:${droppedParamFields.join(',')}`;\n if (reportedDropsRef.current === signature) return;\n reportedDropsRef.current = signature;\n console.warn(\n '[inquiry-v2] query filters dropped — unresolved params placeholder:',\n droppedParamFields.join(', ')\n );\n }, [treeId, droppedParamFields]);\n /* eslint-enable react-you-might-not-need-an-effect/no-pass-data-to-parent */\n\n /* ------------------------------------------------------------------ filter */\n // Filtering is a presentation pass over rows that are already loaded: it\n // never fetches, never hides or moves a row, and never touches the record\n // pane. `stepAt` is where Enter / F3 currently sits in the match list.\n const [filterText, setFilterText] = useState('');\n const [stepAt, setStepAt] = useState(-1);\n\n const filterRows = useMemo(\n () => flattenFilterRows(menu.menuList),\n [menu.menuList]\n );\n const filter = useMemo(\n () => computeTreeFilter(filterRows, filterText),\n [filterRows, filterText]\n );\n\n /**\n * Every keystroke: the text, the stepping cursor and the tree's expansion move\n * together. Matches inside collapsed branches open while the filter is live\n * and the tree goes back to how the user left it on clear.\n *\n * Returns how many rows the new text matched — the typing user reads that off\n * the count in the filter box, but the copilot's filter tool has none to read, and\n * `filter` here is a render behind the call.\n */\n const applyFilterText = (next: string): number => {\n setFilterText(next);\n setStepAt(-1);\n const nextFilter = computeTreeFilter(filterRows, next);\n if (nextFilter.active) menu.expandForFilter(nextFilter.expandIds);\n else menu.restoreExpansion();\n return nextFilter.matchIds.length;\n };\n\n const stepMatch = (delta: number) => {\n const { stepIds } = filter;\n if (!stepIds.length) return;\n const next = (stepAt + delta + stepIds.length) % stepIds.length;\n setStepAt(next);\n menu.selectNodeById(stepIds[next]);\n };\n\n const handleFilterKeyDown = (event: React.KeyboardEvent) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n applyFilterText('');\n return;\n }\n if (event.key === 'Enter' || event.key === 'F3') {\n event.preventDefault();\n stepMatch(event.shiftKey ? -1 : 1);\n }\n };\n\n /* -------------------------------------------------------------------- load */\n /** The singular catalog noun for prose (\"Resource\"), never a class path. */\n const entityNoun = searchableEntities[0]?.entityNoun ?? '';\n /** The Load dialog, open with its prefill text — null when closed. */\n const [loadDialog, setLoadDialog] = useState<{ prefill: string } | null>(\n null\n );\n\n /* --------------------------------------------------------- advanced search */\n /**\n * The advanced-search VIEW: the filter the search panel opens with, or null\n * while the panel is down. The ⋯ menu's entry opens it empty (the drawer is where the user\n * builds the filter); the copilot's Apply card opens it with a filter already\n * built, which is the same state the drawer's own submit produces. One piece\n * of state, so both doors lead to the same screen — and so undo is a restore.\n */\n const [advancedView, setAdvancedView] = useState<{\n preset: AdvancedSearchState | null;\n } | null>(null);\n const advancedViewRef = useRef(advancedView);\n useEffect(() => {\n advancedViewRef.current = advancedView;\n });\n\n const applyAdvancedSearch = useCallback(\n (preset: AdvancedSearchState) => {\n if (!searchableEntities.some((entity) => entity.key === preset.entityKey))\n return null;\n const previous = advancedViewRef.current;\n setAdvancedView({ preset });\n return () => setAdvancedView(previous);\n },\n [searchableEntities]\n );\n\n /**\n * businessObjectKeys already loaded as roots — the popover's dedup label.\n * Under group headings too, when the root level groups its records.\n */\n const loadedKeys = useMemo(\n () =>\n new Set(\n menu.menuList.flatMap((entry) =>\n entry\n .flatMap(rootRecordsOf)\n .map((root) => root.nodeObj?.businessObjectKey)\n )\n ),\n [menu.menuList]\n );\n\n const openLoad = (prefill: string) => setLoadDialog({ prefill });\n\n /** The lookup-stamping context a record fetch at `levelEntityName` carries. */\n const lookupContextFor = useCallback(\n (levelEntityName: string) => ({\n ...lookupContext,\n entityName: levelEntityName\n }),\n [lookupContext]\n );\n\n /**\n * RECENTLY LOADED (v1 parity) — the tree's server-held history. A read-only\n * view writes none, so its writer is a no-op rather than a check at each load.\n */\n const recordHistory = useCallback(\n (entries: RecentlyLoadedWriteEntry[]) => {\n if (readOnly) return;\n void recordRecentlyLoadedNodes(queryClient, {\n treeId,\n userId: user?.id,\n entries\n });\n },\n [readOnly, queryClient, treeId, user?.id]\n );\n\n /**\n * Bring records in — every door (the Load dialog, the finder's \"Load\n * selected\", a deep link, `?searchValue`, a widget's loadInquiryNode, the\n * history, load-to-tree) funnels through here. One identifier search per\n * entity (the picks' identifier sets OR'd; LEAN — a search result may be a\n * projection), ONE wave pass over the fetched rows, then each grafted into\n * the menu and the whole load written to the history in ONE post. A missed\n * row or a failed wave pass degrades to the row a pick already has; a failed\n * fetch rejects the load when no pick in that entity's group has one.\n */\n const loadRecordsIntoMenu = useCallback(\n async (\n picks: LoadPick[],\n options?: {\n /**\n * Off for a load into a CONFIGURED tree (load-to-tree): history entries\n * replay through this tree's searchable set, which cannot resolve a\n * foreign entity — recording one would write a dead history row.\n */\n recordHistory?: boolean;\n }\n ): Promise<LoadRecordOutcome[]> => {\n const outcomes: LoadRecordOutcome[] = [];\n const historyEntries: RecentlyLoadedWriteEntry[] = [];\n setLoadsInFlight((count) => count + picks.length);\n try {\n // One batch per entity — identifier fields only make sense within one.\n const byEntity = new Map<string, LoadPick[]>();\n picks.forEach((pick) => {\n const key = pick.entity.key;\n byEntity.set(key, [...(byEntity.get(key) ?? []), pick]);\n });\n\n // Every entity's fetch and waves run at once.\n const loaded = await Promise.all(\n [...byEntity.values()].map(async (group) => {\n const entity = group[0].entity;\n const sets = group.map((pick) => pick.filterElements);\n let found: Array<Record<string, unknown> | null> = [];\n try {\n found = await fetchRowsForIdentifierSets(\n queryClient,\n entity.apiMethodId,\n sets,\n lookupContextFor(entity.entityName)\n );\n } catch (error) {\n // Picks with a row of their own degrade to it; picks without one\n // (a link, a widget, the history) fail the load.\n if (!group.some((pick) => pick.fallbackRow)) throw error;\n }\n // A miss degrades to the row the pick already has.\n const sources = group.map(\n (pick, setIndex) => found[setIndex] ?? pick.fallbackRow ?? null\n );\n\n const present = sources.filter(\n (row): row is Record<string, unknown> => !!row\n );\n let hydrated = present;\n try {\n hydrated = await hydrateRowsWithWaves(\n entity.rootNode,\n present,\n waveContext\n );\n } catch {\n hydrated = present;\n }\n let next = 0;\n const rows = sources.map((row) => {\n if (!row) return null;\n const hydratedRow = hydrated[next] ?? row;\n next += 1;\n return hydratedRow;\n });\n return { entity, sets, rows };\n })\n );\n\n // The first record loaded is the one selected — the top of what the\n // load adds, not whichever came last.\n let selected = false;\n loaded.forEach(({ entity, sets, rows }) => {\n rows.forEach((row, index) => {\n const outcome = row\n ? loadRecord(entity.rootNode, row, { select: !selected })\n : null;\n if (outcome) selected = true;\n outcomes.push(outcome);\n // A record that was already on screen was not loaded and is not\n // recorded.\n if (\n outcome &&\n !outcome.alreadyLoaded &&\n options?.recordHistory !== false\n ) {\n historyEntries.push(\n historyEntryFor(entity, outcome.label, sets[index])\n );\n }\n });\n });\n\n if (historyEntries.length) recordHistory(historyEntries);\n return outcomes;\n } finally {\n // A record that reached the menu keeps its placeholder until the tree\n // draws it (see `undrawnLoads`); the rest have nothing coming.\n const grafted = outcomes.filter(\n (outcome) => outcome && !outcome.alreadyLoaded\n ).length;\n undrawnLoads.current += grafted;\n setLoadsInFlight((count) => count - (picks.length - grafted));\n }\n },\n [queryClient, lookupContextFor, waveContext, loadRecord, recordHistory]\n );\n\n /**\n * Say what a load did — the one report every door into the tree makes (the\n * Load dialog, `?searchValue`, a widget's loadInquiryNode). The label comes\n * off the node that was BUILT, not off a guessed column: it is the exact\n * string the tree row shows.\n */\n const reportLoadOutcome = (outcome: LoadRecordOutcome) => {\n if (!outcome) {\n notify(\n t('inquiry.load.notFoundNotice', {\n defaultValue: 'That record could not be loaded.'\n }),\n 'warning'\n );\n return;\n }\n const label = outcome.label || entityNoun;\n if (outcome.alreadyLoaded) {\n notify(\n t('inquiry.load.alreadyLoadedNotice', {\n defaultValue: '{{label}} is already loaded.',\n label\n }),\n 'info'\n );\n return;\n }\n notify(\n t('inquiry.load.loadedNotice', {\n defaultValue: '{{label}} loaded.',\n label\n }),\n 'success'\n );\n };\n\n /** Load one pick and report it; a failed load reports as not loaded. */\n const loadAndReport = (pick: LoadPick) =>\n loadRecordsIntoMenu([pick])\n .then(([outcome = null]) => outcome)\n .catch(() => null)\n .then(reportLoadOutcome);\n\n /** A picked search row as a load: its identifier filters, the row as fallback. */\n const pickFor = (\n entity: SearchableEntity,\n row: Record<string, unknown>\n ): LoadPick => ({\n entity,\n filterElements: buildIdentifierFilterElements(\n catalogObjects,\n entity.entityName,\n row\n ),\n fallbackRow: row\n });\n\n /** Returns what was loaded, so a non-clicking caller (the copilot) can say so. */\n const handleLoadRecord = async (\n entity: SearchableEntity,\n row: Record<string, unknown>\n ) => {\n setLoadDialog(null);\n const [outcome = null] = await loadRecordsIntoMenu([pickFor(entity, row)]);\n reportLoadOutcome(outcome);\n return outcome;\n };\n\n /** The finder's ticked rows, loaded through the batch pipeline. */\n const handleLoadRecords = async (\n picks: Array<{ entity: SearchableEntity; row: Record<string, unknown> }>\n ) => {\n if (!picks.length) return;\n if (picks.length === 1) {\n void handleLoadRecord(picks[0].entity, picks[0].row);\n return;\n }\n setLoadDialog(null);\n const outcomes = await loadRecordsIntoMenu(\n picks.map(({ entity, row }) => pickFor(entity, row))\n );\n const loaded = outcomes.filter(\n (outcome) => outcome && !outcome.alreadyLoaded\n ).length;\n const missed = outcomes.filter((outcome) => !outcome).length;\n if (loaded) {\n notify(\n t('inquiry.load.bulkLoadedNotice', {\n defaultValue: '{{count}} records loaded.',\n count: loaded\n }),\n 'success'\n );\n return;\n }\n notify(\n missed\n ? t('inquiry.load.bulkFailedNotice', {\n defaultValue: 'Those records could not be loaded.'\n })\n : t('inquiry.load.bulkAlreadyLoadedNotice', {\n defaultValue: 'Those records are already loaded.'\n }),\n missed ? 'warning' : 'info'\n );\n };\n\n /**\n * v1's load-to-tree (InquiryContainer handleLoadingSpecificNode): the record\n * opens as a new root SHAPED BY THE CONFIGURED TREE — the active tab's\n * `trees` entry naming the record's entity. It rides the same kernel path an\n * associated-tree search hit uses (a foreign root node handed to\n * menu.loadRecord); the target tree is fetched (cached) and nested so the\n * new root carries its own child levels. Kept out of the recently-loaded\n * history — see the loadRecordsIntoMenu option.\n */\n const loadRecordIntoConfiguredTree = useCallback(\n async (targetTreeId: string, request: LoadNodeRequest) => {\n let outcome: LoadRecordOutcome = null;\n try {\n const targetTree = await fetchInquiryTree(queryClient, targetTreeId);\n const entity =\n deriveSearchableEntities(targetTree, null).find((e) => e.isRoot) ??\n null;\n const filterElements = entity\n ? buildIdentifierFilterElements(\n catalogObjects,\n entity.entityName,\n request as Record<string, unknown>\n ).filter(hasIdentifierValue)\n : [];\n if (entity && filterElements.length) {\n [outcome = null] = await loadRecordsIntoMenu(\n [{ entity, filterElements }],\n { recordHistory: false }\n );\n }\n } catch {\n outcome = null;\n }\n reportLoadOutcome(outcome);\n },\n // reportLoadOutcome is re-created per render and is read, not watched.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [queryClient, catalogObjects, loadRecordsIntoMenu]\n );\n\n /**\n * v1's `loadInquiryNode`, the contract page widgets call to put a record they\n * are showing INTO the tree (a linked asset's grid row, a child asset). The\n * request names the entity through its businessObjectKey and carries the\n * record's identifier values as its own fields — which is what the refetch\n * reads, exactly as v1 did (the key's own suffix is not always the same pair).\n *\n * Resolution order: a tab-configured target tree naming the record's entity\n * wins (v1's only behavior — the record opens shaped by THAT tree); otherwise\n * the record loads into the open tree when one of its searchable levels holds\n * the entity (v2's addition — v1 errored here).\n */\n const handleLoadNode = useCallback(\n (request: LoadNodeRequest) => {\n const businessObjectKey =\n typeof request?.businessObjectKey === 'string'\n ? request.businessObjectKey\n : '';\n const fullyQualifiedName = businessObjectKey.split('|')[0] ?? '';\n const targetRef = fullyQualifiedName\n ? request.targetTrees?.find(\n (ref) =>\n !!ref?.treeId &&\n !!ref.catalogReturnObject &&\n sameEntityName(ref.catalogReturnObject, fullyQualifiedName)\n )\n : undefined;\n if (targetRef?.treeId) {\n void loadRecordIntoConfiguredTree(targetRef.treeId, request);\n return;\n }\n const { entity } = levelForBusinessObjectKey(\n searchableEntities,\n businessObjectKey\n );\n const filterElements = entity\n ? buildIdentifierFilterElements(\n catalogObjects,\n entity.entityName,\n request as Record<string, unknown>\n ).filter(hasIdentifierValue)\n : [];\n if (!entity || !filterElements.length) {\n notify(\n t('inquiry.load.unknownEntityNotice', {\n defaultValue:\n 'Could not load that record — this tree does not show “{{key}}”.',\n key: businessObjectKey || entityNoun\n }),\n 'warning'\n );\n return;\n }\n void loadAndReport({ entity, filterElements });\n },\n // loadAndReport is re-created per render and is read, not watched; the\n // loadRecordsIntoMenu it calls is.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [\n searchableEntities,\n catalogObjects,\n loadRecordsIntoMenu,\n loadRecordIntoConfiguredTree,\n entityNoun,\n t\n ]\n );\n\n /**\n * A row of the landing screen's Recently Loaded history, put back in the\n * tree. v1 replayed the entry's stored `queryPayload` against its stored\n * method and rebuilt a display tree from the result; v2 replays the same\n * request — so entries v1 wrote still work — and then hands the row to the\n * ordinary load path, which is what makes the outcome (and its toast)\n * identical to picking the record out of + Load.\n */\n const handleRecentlyLoadedClick = useCallback(\n (entry: RecentlyLoadedNode) => {\n const entityName = entry?.nodeDetails?.catalogReturnObject ?? '';\n const { entity } = levelForBusinessObjectKey(\n searchableEntities,\n entityName\n );\n // The stored payload is the identifier search that loaded the record\n // (v1 and v2 both write `getSearchObject(identifierFilters, 1, 1)`), so\n // its filter elements go straight into the same load path every other\n // door uses — the skeleton shows on the click, and the record is fetched\n // once, not replayed and then fetched again.\n const filterElements = Array.isArray(entry?.queryPayload?.filterElements)\n ? (\n entry.queryPayload.filterElements as Array<Record<string, unknown>>\n ).filter(hasIdentifierValue)\n : [];\n if (!entity || !filterElements.length) {\n // A history entry this tree can no longer resolve is not an error the\n // user can act on — it is a record that cannot be loaded, worded by the\n // one reporter every load door already shares.\n reportLoadOutcome(null);\n return;\n }\n void loadAndReport({ entity, filterElements });\n },\n // loadAndReport and reportLoadOutcome are re-created per render and are\n // read, not watched; the loadRecordsIntoMenu they call is.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [searchableEntities, loadRecordsIntoMenu]\n );\n\n /* ----------------------------------------------------------- refreshTree */\n /**\n * REFRESH TREE, both halves.\n *\n * Invalidating the row families re-reads everything a QUERY owns — the root\n * page and the badges, which is why the counts beside a mutated row update on\n * their own. Rows below the root are owned by no query (the wave loader and\n * lazy expands grafted them), so the refresh also re-reads the RECORD ROOT of\n * the selection — the record an action over the selection, or under it, can\n * have changed below — and the menu recomposes that branch, re-opened to\n * where the user had it (branchRefreshModel). v1 re-fetched the selected root\n * record the same way. A root record the server no longer returns is gone,\n * and its row goes with it.\n *\n * The selection is read through a ref so this stays stable across\n * selections: it is handed to the kernel as an effect override, and the\n * kernel rebuilds its whole effects bag whenever the override changes. The\n * refs are the menu's own, so a rebuild made in the same tick (Refresh\n * bringing removed records back) is already what this reads.\n */\n const { menuListRef, selectedIdRef } = menu;\n\n const refreshRecord = menu.refreshRecord;\n const refreshTree = useCallback(async () => {\n const rereadBranch = async () => {\n const location = locateNodeById(\n menuListRef.current,\n selectedIdRef.current\n );\n const target = findRecordRoot(location?.root, selectedIdRef.current);\n const level = findConfigLevel(target?.configNodeId);\n const levelEntityName =\n typeof level?.properties?.catalogReturnObject === 'string'\n ? level.properties.catalogReturnObject\n : '';\n if (!target?.nodeObj || !level || !levelEntityName || !catalogId) return;\n const filterElements = buildIdentifierFilterElements(\n catalogObjects,\n levelEntityName,\n target.nodeObj\n );\n if (!filterElements.length) return;\n try {\n // The entity's own promoted search method — the same read the lazy-load\n // composer falls back to, cached for the session.\n const meta = await fetchEntityMeta(\n queryClient,\n catalogId,\n levelEntityName\n );\n const apiMethodId = meta.promoted?.unityBaseSearchMethod?.apiMethodId;\n if (!apiMethodId) return;\n const row = refreshedRow(\n await fetchRecordsByIdentifierSets(\n queryClient,\n apiMethodId,\n [filterElements],\n lookupContextFor(levelEntityName)\n ),\n target.nodeObj.businessObjectKey\n );\n if (row === undefined) return;\n const [hydrated = null] = row\n ? await hydrateRowsWithWaves(level, [row], waveContext)\n : [];\n await refreshRecord(target, hydrated, loadChildren);\n } catch {\n // A refresh that cannot re-read the branch leaves it exactly as it was\n // — still the last answer the server gave. The toolbar's Refresh retries.\n }\n };\n await Promise.all([invalidateInquiryRowData(queryClient), rereadBranch()]);\n }, [\n queryClient,\n findConfigLevel,\n catalogId,\n catalogObjects,\n lookupContextFor,\n waveContext,\n loadChildren,\n refreshRecord,\n menuListRef,\n selectedIdRef\n ]);\n\n // The toolbar's Refresh shows its own refresh in flight.\n const [refreshing, setRefreshing] = useState(false);\n const restoreRemoved = menu.restoreRemoved;\n const handleRefresh = useCallback(() => {\n setRefreshing(true);\n // Refresh asks for the page again, records removed from it included.\n restoreRemoved();\n void refreshTree().finally(() => setRefreshing(false));\n }, [refreshTree, restoreRemoved]);\n\n /**\n * The kernel's effect overrides. `loadNode` being a real function here (and\n * null in an embedder) is also what lights up the widget Load button.\n */\n const nodeEffects = useMemo(\n () => ({ loadNode: handleLoadNode, refreshTree }),\n [handleLoadNode, refreshTree]\n );\n\n /**\n * The record pane's open tab, remembered against the row it was chosen on so\n * a selection change falls back to the new record's first tab (the kernel's\n * own default). Lifted here, rather than left inside UdpNodeView, so the\n * copilot can read and switch it.\n */\n const [tabChoice, setTabChoice] = useState<{\n nodeId: string;\n tabId: string;\n } | null>(null);\n const selectedNodeId = menu.selectedNode\n ? String(menu.selectedNode.id)\n : null;\n const activeTabId =\n tabChoice && tabChoice.nodeId === selectedNodeId\n ? tabChoice.tabId\n : undefined;\n const switchTab = useCallback(\n (tabId: string) => {\n if (selectedNodeId) setTabChoice({ nodeId: selectedNodeId, tabId });\n },\n [selectedNodeId]\n );\n\n /* ------------------------------------------------ ?searchValue: arrival */\n /**\n * v1's `initialSearchValue`: arriving with a term meant the quick search was\n * already on screen, run. v2 keeps the contract but answers it headlessly\n * first — the common case is a term that names exactly one record, and opening\n * a dialog on a one-row result list to make the user click that row is a step\n * that carries no decision. So: one hit loads straight in; anything else hands\n * the term to + Load, which is the surface that already knows how to say \"no\n * records matched\", offer a retry, and let the user pick between several.\n *\n * Nothing here is an error path — a term that resolves to none or many is a\n * search the user finishes, not a failure the pane reports.\n */\n const [arrivalSettled, setArrivalSettled] = useState(!arrivalTerm);\n /** One-shot latch: survives StrictMode's double effect invoke, which state can't. */\n const arrivalHandledRef = useRef(false);\n /**\n * Searching before the searchable set and the metadata are in hand would settle\n * on an empty result and open the dialog against a term that was never asked.\n * Until then the term is withheld, which leaves the hook with empty text and\n * therefore no queries at all.\n */\n const arrivalReady = !!searchableEntities.length && searchSettled;\n const arrivalSearch = useInquirySearch({\n entities: searchableEntities,\n text: !arrivalSettled && arrivalReady ? arrivalTerm : '',\n // The + Load parameters exactly: whatever this decides, the dialog it may\n // hand over to must be looking at the same result set.\n debounceMs: LOAD_DEBOUNCE_MS,\n minChars: LOAD_MIN_CHARS,\n pageSize: LOAD_PAGE_SIZE,\n timeoutMs: SEARCH_TIMEOUT_MS\n });\n\n /* eslint-disable react-you-might-not-need-an-effect/no-pass-live-state-to-parent,\n react-you-might-not-need-an-effect/no-derived-state --\n `handleLoadRecord` is this component's OWN handler over its own state; the\n effect reacts to a search result landing, which no render or event can\n stand in for. */\n useEffect(() => {\n if (arrivalHandledRef.current || arrivalSettled || !arrivalReady) return;\n const outcome = decideSearchValueOutcome({\n term: arrivalTerm,\n minChars: LOAD_MIN_CHARS,\n isPending: arrivalSearch.isPending,\n isSettled: arrivalSearch.isSettled,\n isTimedOut: arrivalSearch.isTimedOut,\n hasSingleResult: !!arrivalSearch.singleResult\n });\n if (outcome === 'wait') return;\n arrivalHandledRef.current = true;\n if (outcome === 'load' && arrivalSearch.singleResult) {\n // The same path a chosen dialog row takes — including its loaded /\n // already-loaded notice, which is the only report this flow makes.\n // Settled once the record is in, so the pane loads until then.\n void handleLoadRecord(\n arrivalSearch.singleResult.entity,\n arrivalSearch.singleResult.row\n ).finally(() => setArrivalSettled(true));\n return;\n }\n setArrivalSettled(true);\n openLoad(arrivalTerm);\n // handleLoadRecord/openLoad are re-created per render and are read, not\n // watched — the effect fires off the search outcome alone.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [arrivalSettled, arrivalReady, arrivalTerm, arrivalSearch]);\n /* eslint-enable react-you-might-not-need-an-effect/no-pass-live-state-to-parent,\n react-you-might-not-need-an-effect/no-derived-state */\n\n /* --------------------------------------------------- deep link: restore */\n /**\n * Open the record the URL names. A ROOT-level key is already the whole root\n * page (the query fetched that one record); any other level is loaded in on\n * top of the page, the same way the Load dialog loads one.\n *\n * Unlike v1, a link that cannot be honored SAYS SO — an unrecognised entity,\n * a link that does not identify one record, or no single record matching it\n * left v1 showing a silently empty tree (or the wrong record).\n */\n useEffect(() => {\n if (!deepLink || deepLinkSettled) return;\n if (!searchableEntities.length) return;\n // Wait for the catalog the identifiers come from and the promotions the\n // record's levels load through — a failed catalog settles too, and the\n // link then says it could not be opened and moves on.\n if (!searchSettled) return;\n\n const reportFailure = (\n reason: 'unresolved' | 'incomplete' | 'notFound' | 'failed'\n ) => {\n const messages = {\n unresolved: t('inquiry.deepLink.unresolved', {\n defaultValue:\n 'Could not open the linked record — this tree does not recognize “{{key}}”.',\n key: deepLink.businessObjectKey\n }),\n incomplete: t('inquiry.deepLink.incomplete', {\n defaultValue:\n 'Could not open the linked record — the link does not identify one record.'\n }),\n notFound: t('inquiry.deepLink.notFound', {\n defaultValue:\n 'Could not open the linked record — no single record matches it.'\n }),\n failed: t('inquiry.deepLink.failed', {\n defaultValue: 'Could not open the linked record.'\n })\n };\n notify(messages[reason], 'warning');\n };\n\n if (!deepLinkEntity || !deepLinkFilters) {\n setDeepLinkSettled(true);\n setRootLinkDropped(true);\n // Without a catalog, a link to a known level cannot be judged.\n if (deepLinkTarget?.ambiguous) reportFailure('incomplete');\n else if (!deepLinkEntity) reportFailure('unresolved');\n else reportFailure(catalogObjects?.length ? 'incomplete' : 'failed');\n return;\n }\n\n if (deepLinkIsRoot) {\n if (recordsPending) return;\n setDeepLinkSettled(true);\n // The root query keeps its page only when exactly one record matched;\n // otherwise the link is dropped and the tree arrives as if it had none.\n if (records?.rows?.length) return;\n setRootLinkDropped(true);\n reportFailure(recordsError ? 'failed' : 'notFound');\n return;\n }\n\n setDeepLinkSettled(true);\n void loadRecordsIntoMenu([\n { entity: deepLinkEntity, filterElements: deepLinkFilters }\n ]).then(\n ([outcome]) => {\n if (!outcome) reportFailure('notFound');\n },\n () => reportFailure('failed')\n );\n }, [\n deepLink,\n deepLinkSettled,\n deepLinkTarget,\n deepLinkEntity,\n deepLinkFilters,\n catalogObjects,\n deepLinkIsRoot,\n searchableEntities.length,\n searchSettled,\n records,\n recordsPending,\n recordsError,\n loadRecordsIntoMenu,\n notify,\n t\n ]);\n\n /* ------------------------------------------------------ selection report */\n /**\n * Tell the host what is selected — the route shell mirrors it into the URL\n * (replaceState), the Tree Builder follows it in the inspector. Held until a\n * pending deep link has been honored, or the first empty render would erase\n * the very params the shell is about to consume. The selection changes from\n * clicks, filter stepping, loads and menu rebuilds alike; one effect over the\n * derived selection is the only place that sees all of them.\n */\n /* eslint-disable react-you-might-not-need-an-effect/no-event-handler,\n react-you-might-not-need-an-effect/no-pass-live-state-to-parent --\n the host is a peer surface (the address bar, the Tree Builder inspector),\n not a parent that owns this selection; it is told, not consulted. */\n useEffect(() => {\n if (!deepLinkSettled) return;\n onSelectionChange?.({\n node: menu.selectedNode ?? null,\n arrivalSettled\n });\n }, [deepLinkSettled, arrivalSettled, menu.selectedNode, onSelectionChange]);\n /* eslint-enable react-you-might-not-need-an-effect/no-event-handler,\n react-you-might-not-need-an-effect/no-pass-live-state-to-parent */\n\n const overflowItems = useMemo<InquiryMenuOverflowItem[]>(\n () => [\n {\n id: 'collapseAll',\n text: t('inquiry.controls.collapseAll', {\n defaultValue: 'Collapse All'\n }),\n iconName: 'chevron-down-up',\n onClick: menu.collapseAll\n },\n {\n id: 'expandAll',\n text: t('inquiry.controls.expandAll', { defaultValue: 'Expand All' }),\n iconName: 'chevron-up-down',\n onClick: menu.expandAll\n },\n {\n id: 'resetTree',\n text: t('inquiry.controls.resetTree', { defaultValue: 'Reset tree' }),\n iconName: 'subtract',\n onClick: menu.resetTree\n },\n {\n id: 'treeViewMode',\n text:\n treeViewMode === TreeViewModeEnums.Compact\n ? t('inquiry.controls.classicView', {\n defaultValue: 'Classic View'\n })\n : t('inquiry.controls.compactView', {\n defaultValue: 'Compact View'\n }),\n iconName:\n treeViewMode === TreeViewModeEnums.Compact\n ? 'apps-list-detail'\n : 'apps-list',\n onClick: () =>\n setTreeViewMode((mode) =>\n mode === TreeViewModeEnums.Compact\n ? TreeViewModeEnums.Classic\n : TreeViewModeEnums.Compact\n )\n },\n ...(searchableEntities.length\n ? [\n {\n id: 'advancedSearch',\n text: t('inquiry.advancedSearch.title', {\n defaultValue: 'Advanced Search'\n }),\n iconName: 'filter',\n onClick: () => setAdvancedView({ preset: null })\n }\n ]\n : [])\n ],\n [\n t,\n menu.collapseAll,\n menu.expandAll,\n menu.resetTree,\n treeViewMode,\n searchableEntities.length\n ]\n );\n\n const treeName = treeTitleOf(tree) || 'Inquiry';\n /**\n * The pane title only gets a tooltip when the name is actually cut off. The\n * pane is user-resizable, so this is measured (ResizeObserver) rather than\n * assumed — a tooltip that repeats a name the user can already read in full\n * is noise.\n */\n const titleRef = useRef<HTMLDivElement>(null);\n const titleTruncated = useIsTruncated(titleRef, treeName);\n\n // The viewer's AI function: every tool is a function this file already calls\n // for its own controls. Handed to the docked assistant below.\n const copilot = useInquiryCopilot({\n tree,\n searchableEntities: searchableEntities,\n menuList: menu.menuList,\n selectedNode: menu.selectedNode,\n selectedRoot: menu.selectedRoot,\n filterText: filterText,\n filterMatchCount: filter.matchIds.length,\n isLoadingRecords: recordsLoading,\n onLoadRecord: handleLoadRecord,\n onSelectNode: menu.selectNodeById,\n onExpandNode: menu.expandNode,\n activeTabId: activeTabId ?? null,\n onSwitchTab: switchTab,\n onFilterTextChange: applyFilterText,\n onExpandAll: menu.expandAll,\n onCollapseAll: menu.collapseAll,\n onApplyAdvancedSearch: applyAdvancedSearch\n });\n\n if (!rootNode) {\n return (\n <div className={styles.centered}>\n <UdpText variant='body1'>Failed to load the inquiry tree.</UdpText>\n </div>\n );\n }\n\n /**\n * The record side of the pane — the whole screen when the tree is hidden, so\n * it is composed once and placed by the branch below rather than duplicated.\n */\n const title = (\n <div ref={titleRef} className={styles.title}>\n <UdpText variant='subtitle2' as='span' block={false}>\n {treeName}\n </UdpText>\n </div>\n );\n\n const idlePane = idleRecordPane({\n // A tree with nothing searchable never runs its arrival, so never waits on\n // it. The landing waits for the searchable set too: its recently-loaded,\n // reminder and find rows resolve their level from it.\n arrivalPending:\n (!arrivalSettled || !searchSettled) && searchableEntities.length > 0,\n explorePageId,\n recordsLoading\n });\n\n const recordPane = (\n // A focus target of its own (never a tab stop), so F6 has somewhere to land\n // whatever the record holds; Tab from here enters the record's controls.\n <div\n ref={recordPaneRef}\n className={styles.main}\n role='region'\n aria-label={t('inquiry.record.region', { defaultValue: 'Record' })}\n tabIndex={-1}\n >\n {advancedView ? (\n <InquirySearchPanel\n // A proposal applied over an open panel is a different search:\n // remount so the panel starts from the filter it was given.\n key={\n advancedView.preset\n ? searchHashFor(\n 'advanced',\n advancedView.preset.entityKey,\n advancedView.preset.elements\n )\n : 'advanced'\n }\n entities={searchableEntities}\n text=''\n // With a filter already built the results ARE the screen; without\n // one the drawer is where the user builds it.\n initialAdvanced={advancedView.preset}\n initialAdvancedOpen={!advancedView.preset}\n onLoadRecord={(entity, row) => {\n setAdvancedView(null);\n void handleLoadRecord(entity, row);\n }}\n onClear={() => setAdvancedView(null)}\n />\n ) : menu.selectedNode ? (\n <UdpNodeView\n treeId={treeId}\n node={menu.selectedNode}\n // The record this row hangs off — the lineage v1 handed page and\n // action pages as `parentNodeObj`.\n parentNode={menu.selectedParent}\n containerId={containerId}\n capabilities={capabilities}\n effects={nodeEffects}\n // The selected row's own root record — the filed-for tree shared\n // surfaces (notes/reminders) offer for attachment.\n menuRootNode={menu.selectedRoot}\n activeTabId={activeTabId}\n onActiveTabChange={switchTab}\n />\n ) : idlePane === 'loading' ? (\n <div className={styles.centered}>\n <UdpSpinner />\n </div>\n ) : idlePane === 'landing' ? (\n // THE TREE'S LANDING SCREEN (v1 InquiryContainer.jsx:2849). With no\n // record selected, a tree that names an explore page shows that page\n // here rather than a sentence telling the user to pick something.\n <InquiryLanding\n pageId={explorePageId}\n tree={tree}\n treeId={treeId}\n catalogObjects={catalogObjects}\n onLoadedNodeClick={handleRecentlyLoadedClick}\n onLoadRecord={(entity, row) => {\n void handleLoadRecord(entity, row);\n }}\n onLoadRecords={(picks) => {\n void handleLoadRecords(picks);\n }}\n />\n ) : (\n <div className={styles.centered}>\n <UdpText variant='body1'>\n {treeHidden\n ? t('inquiry.emptyRecordPaneNoTree', {\n defaultValue: 'No record to show.'\n })\n : t('inquiry.emptyRecordPane', {\n defaultValue:\n 'Select a record from the tree, or use Load to bring one in.'\n })}\n </UdpText>\n </div>\n )}\n </div>\n );\n\n return (\n // Height-bearing: the host gives this element its height (InquiryV2's\n // viewport wrapper, the Tree Builder's workspace body) and `fill` gives\n // each pane its own independent scroll.\n <ReadOnlyContext.Provider value={readOnly}>\n <div className={styles.workspace} onKeyDown={handlePaneKey}>\n {treeHidden ? (\n // No tree means no sidebar shell at all — not a collapsed rail. The\n // record view IS the page.\n recordPane\n ) : (\n <UdpSidebarLayout\n fill\n resizable\n sidebarWidth='300px'\n minSidebarWidth={220}\n maxSidebarWidth={520}\n footerResizable={assistant && copilotSplit.footerResizable}\n footerHeight={copilotSplit.footerHeight}\n minFooterHeight={200}\n onFooterHeightChange={copilotSplit.onFooterHeightChange}\n onOpenChange={(event) => setSidebarOpen(event.detail)}\n >\n {/* The sidebar-header slot renders inside the panel's sticky header, so\n the tree name and the menu toolbar stay pinned while the tree scrolls. */}\n <div slot='sidebar-header' className={styles.sidebarHeader}>\n {/* udp-text is shadow DOM (no truncate prop) — inline span inside an\n ellipsis div is the house truncation trick. The tooltip exists only\n to recover a name the ellipsis ate, so it is rendered only while the\n name is measurably cut off; at full width the title stands alone. */}\n {titleTruncated ? (\n <UdpTooltip content={treeName}>{title}</UdpTooltip>\n ) : (\n title\n )}\n <InquiryMenuToolbar\n filterText={filterText}\n onFilterTextChange={applyFilterText}\n onFilterKeyDown={handleFilterKeyDown}\n filterDisabled={filterRows.length === 0}\n onLoad={() => openLoad('')}\n onRefresh={handleRefresh}\n refreshing={refreshing}\n overflowItems={overflowItems}\n />\n </div>\n <div slot='sidebar'>\n {/* A failed root fetch must say so — an empty tree would read as\n \"no records\". The toolbar's Refresh is the retry. */}\n {recordsError && (\n <UdpMessageBar intent='error' layout='multiline'>\n {t('inquiry.tree.recordsFailed', {\n defaultValue:\n 'Records could not be loaded. Refresh to try again.'\n })}\n </UdpMessageBar>\n )}\n {/* No catalog for this tree's entities: field search and key-based\n loads have nothing to work from, so say it once, in one line, where\n the search door is — rather than let each path fail quietly. */}\n {catalogMissing && (\n <UdpMessageBar intent='warning'>\n {t('inquiry.tree.catalogMissing', {\n defaultValue: 'Advanced search is limited for this tree.'\n })}\n </UdpMessageBar>\n )}\n {treeIsEmpty && (\n /* NOTHING LOADED. An explore-first tree opens with an empty tree pane\n on purpose, and a blank 300px column reads as broken — so it says\n what it is, in one quiet caption line on the same grid as the rows\n that will arrive. No art and no button: + Load is directly above it\n in the toolbar, so a second door here would be the same command\n twice. NodeList is not rendered at all in this state: its own empty\n state is 42px of artwork and an untranslated \"No Entity Opened\",\n which is shared with v1 and the Tree Builder preview and stays\n theirs. */\n <div className={styles.emptyTree}>\n <UdpText variant='caption1' as='span'>\n {t('inquiry.tree.nothingLoaded', {\n defaultValue:\n 'No records loaded. Use Load to bring one into the tree.'\n })}\n </UdpText>\n </div>\n )}\n {/* The box the tree draws into — watched so a loading record's\n placeholder leaves on the frame its row arrives (`undrawnLoads`). */}\n <div ref={setTreeBox}>\n {treeHasRows && (\n <NodeList\n menuItemsList={menu.menuList}\n onSelectNode={menu.handleSelectNode}\n onDropNode={onDropNode}\n selectedNodeId={menu.selectedId ?? ''}\n sidebarExpanded={sidebarOpen}\n catalogObjects={catalogObjects}\n promotedEntities={promotedEntities ?? []}\n findLevel={findConfigLevel}\n setMenuList={menu.setMenuList}\n loadChildren={loadChildren}\n rootMore={rootMore}\n treeViewMode={treeViewMode}\n filter={filter}\n onRemoveRoot={menu.removeRoot}\n removeRootLabel={t('common.remove', {\n defaultValue: 'Remove'\n })}\n />\n )}\n </div>\n {/* ROWS ON THE WAY. The root page while it is in flight (one placeholder\n per record the page will bring, so the pane never reads as an empty\n tree before the records land), and after the rows already there, one\n per record asked for by hand — + Load, the landing's finder, history,\n a deep link — until it is grafted in. */}\n {treeLoading && (\n <TreeSkeletonRows\n count={pendingRowCount}\n childCount={skeletonChildCount(rootNode)}\n compact={treeViewMode === TreeViewModeEnums.Compact}\n afterRows={treeHasRows}\n />\n )}\n {/* The one bridge between filtering and loading: filtering can say\n \"not here\" without implying \"doesn't exist\". */}\n {filter.active &&\n filter.matchIds.length === 0 &&\n filter.query.length >= LOAD_MIN_CHARS && (\n <div className={styles.bridge}>\n <UdpText variant='caption1' as='span'>\n {t('inquiry.filter.notInTree', {\n defaultValue: 'Not in the tree.'\n })}\n </UdpText>\n <UdpButton\n appearance='transparent'\n size='small'\n className={styles.bridgeAction}\n onClick={() => openLoad(filter.query)}\n >\n {t('inquiry.filter.loadFromSearch', {\n defaultValue: 'Load “{{text}}” from {{entity}} search',\n text: filter.query,\n entity: entityNoun\n })}\n </UdpButton>\n </div>\n )}\n </div>\n {/* The pane is a vertical split: the tree scrolls in the layout's sidebar\n body above, the copilot is docked in the footer slot below — pinned to\n the pane's bottom edge, collapsed to a single bar until it is asked for. */}\n {assistant && copilot && (\n <InquiryCopilotDock\n treeId={treeId}\n capability={copilot}\n slot='sidebar-footer'\n onOpenChange={copilotSplit.onOpenChange}\n />\n )}\n {recordPane}\n </UdpSidebarLayout>\n )}\n <LoadRecordDialog\n // Remounted per open (and per handed-over prefill) so the dialog always\n // starts from the term it was opened with.\n key={`load-${!!loadDialog}-${loadDialog?.prefill ?? ''}`}\n open={!!loadDialog}\n entities={searchableEntities}\n initialText={loadDialog?.prefill ?? ''}\n // The dialog's default listing IS the menu's own first page — already\n // fetched and cached here, so opening Load costs no request.\n defaultRows={stampedRows}\n defaultTotal={records?.total}\n defaultEntity={rootSearchEntity}\n loadedKeys={loadedKeys}\n catalogObjects={catalogObjects}\n onChoose={(entity, row) => {\n void handleLoadRecord(entity, row);\n }}\n onChooseMany={(picks) => {\n void handleLoadRecords(picks);\n }}\n onClose={() => {\n setLoadDialog(null);\n }}\n />\n <ExecuteApiDropDialog\n open={!!dropExecute}\n methods={dropExecute?.methods ?? []}\n executing={dropExecuting}\n onExecute={(method) => {\n void executeDrop(method);\n }}\n onClose={() => setDropExecute(null)}\n />\n </div>\n </ReadOnlyContext.Provider>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0MA,MAAM0H,wBAAwB;CAAC;CAAO;CAAO;CAAM;;;;;;;;AASnD,MAAMC,sBAAsBC,aAAyC;AACnE,KAAI,CAACA,UAAUC,WAAY,QAAO;CAClC,MAAMC,SAASF,SAASG,YAAY,EAAE;CACtC,MAAMC,UAAUF,OAAOG,QAAQC,UAAU,CAACA,MAAMC,gBAAgB,CAACC;AACjE,QAAOC,KAAKC,IACVZ,sBAAsBU,QACtBJ,WAAWK,KAAKC,IAAI,GAAGR,OAAOM,OAChC,CAAC;;;AAIH,MAAMG,mBAAkBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAAC,MAAA,EAAAC,OAAAC,SAAAC,UAAAL;CASvB,MAAAM,OAAaF,UAAA,SAAA;CAKP,MAAAG,KAAAJ,SAASpC,OAAMyC;CACf,MAAAC,KAAAL,WAAWrC,OAAM2C;CA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cAAC,oBAAD;EACU/Z;EACR,YAAY+Z;EACZ,MAAK;EACL,cAAc9L,aAAagO;EAE9B,CAAA,EACAjB,WAEJ,EACD,sBAAA,cAAC,kBAAD;EAGE,KAAK,QAAQ,CAAC,CAACnJ,WAAU,GAAIA,YAAYE,WAAW;EACpD,MAAM,CAAC,CAACF;EACR,UAAU1K;EACV,aAAa0K,YAAYE,WAAW;EAGpC,aAAalI;EACb,cAAcnB,SAASwB;EACvB,eAAe7C;EACHmL;EACI7M;EAChB,WAAW7B,QAAQ0Q,QAAQ;AACpBY,oBAAiBtR,QAAQ0Q,IAAI;;EAEpC,eAAerB,UAAU;AAClBkC,qBAAkBlC,MAAM;;EAE/B,eAAe;AACbrB,iBAAc,KAAK;;EACnB,CAAA,EAEJ,sBAAA,cAAC,sBAAD;EACE,MAAM,CAAC,CAACzD;EACR,SAASA,aAAaI,WAAW,EAAE;EACnC,WAAWC;EACX,YAAYoB,WAAW;AAChBD,eAAYC,OAAO;;EAE1B,eAAexB,eAAe,KAAK;EAAC,CAAA,CAEnC,CACmB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AiCapability } from '../../../aiAssistant/types';
|
|
2
|
+
import type { InquiryTree } from '../../../domain/inquiryTree';
|
|
2
3
|
import { type DisplayNode } from '../../../domain/inquiryTree/displayTree';
|
|
3
4
|
import type { SearchFilterElement, SearchableEntity } from '../search/searchModel';
|
|
4
5
|
import type { LoadRecordOutcome } from '../tree/useInquiryMenu';
|
|
@@ -10,8 +11,8 @@ export interface AdvancedSearchProposal {
|
|
|
10
11
|
elements: SearchFilterElement[];
|
|
11
12
|
}
|
|
12
13
|
export interface InquiryV2CopilotProps {
|
|
13
|
-
/**
|
|
14
|
-
tree:
|
|
14
|
+
/** The tree on screen — described for the prompt. */
|
|
15
|
+
tree: InquiryTree | null | undefined;
|
|
15
16
|
/** What find_records may search (the derived searchable set). */
|
|
16
17
|
searchableEntities: SearchableEntity[];
|
|
17
18
|
/** The tree pane's menus, exactly as NodeList renders them. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InquiryV2Copilot.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/ai/InquiryV2Copilot.tsx"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EACV,YAAY,EAGb,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"InquiryV2Copilot.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/ai/InquiryV2Copilot.tsx"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EACV,YAAY,EAGb,MAAM,4BAA4B,CAAC;AAcpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,yCAAyC,CAAC;AAOjD,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAO/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AA6DhE,0EAA0E;AAC1E,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,2EAA2E;IAC3E,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,mBAAmB,EAAE,CAAC;CACjC;AAQD,MAAM,WAAW,qBAAqB;IACpC,uDAAqD;IACrD,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,iEAAiE;IACjE,kBAAkB,EAAE,gBAAgB,EAAE,CAAC;IACvC,+DAA+D;IAC/D,QAAQ,EAAE,WAAW,EAAE,EAAE,CAAC;IAC1B,YAAY,EAAE,WAAW,GAAG,IAAI,CAAC;IACjC,YAAY,EAAE,WAAW,GAAG,IAAI,CAAC;IACjC,kEAAkE;IAClE,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,gEAA8D;IAC9D,YAAY,EAAE,C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